1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{66167:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function d(t,r,n,i){var a,s,l=Object.create((r&&r.prototype instanceof v?r:v).prototype);return o(l,"_invoke",{value:(a=new R(i||[]),s=p,function(r,o){if(s===h)throw Error("Generator is already running");if(s===m){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var i=a.delegate;if(i){var l=function t(r,n){var o=n.method,i=r.iterator[o];if(i===e)return n.delegate=null,"throw"===o&&r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),g;var a=f(i,r.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var s=a.arg;return s?s.done?(n[r.resultName]=s.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,g)}(i,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===p)throw s=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=h;var u=f(t,n,a);if("normal"===u.type){if(s=a.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(s=m,a.method="throw",a.arg=u.arg)}})}),l}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var p="suspendedStart",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};c(w,s,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(S([])));E&&E!==r&&n.call(E,s)&&(w=E);var j=y.prototype=v.prototype=Object.create(w);function C(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){var r;o(this,"_invoke",{value:function(o,i){function a(){return new t(function(r,a){!function r(o,i,a,s){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(c).then(function(e){u.value=e,a(u)},function(e){return r("throw",e,a,s)})}s(l.arg)}(o,i,r,a)})}return r=r?r.then(a,a):a()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw TypeError(typeof t+" is not iterable")}return b.prototype=y,o(j,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,u,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},C(O.prototype),c(O.prototype,l,function(){return this}),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
1ise);var a=new O(d(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(j),c(j,u,"Generator"),c(j,s,function(){return this}),c(j,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=S,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function a(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,o)}r.d(t,{J4:function(){return w}});var s,l,u,c,d,f,p,h,m,g,v,b="https://cdn.paddle.com/paddle/v2/paddle.js";(s=p||(p={})).CHECKOUT_LOADED="checkout.loaded",s.CHECKOUT_CLOSED="checkout.closed",s.CHECKOUT_UPDATED="checkout.updated",s.CHECKOUT_COMPLETED="checkout.completed",s.CHECKOUT_ERROR="checkout.error",s.CHECKOUT_FAILED="checkout.failed",s.CHECKOUT_ITEMS_UPDATED="checkout.items.updated",s.CHECKOUT_ITEMS_REMOVED="checkout.items.removed",s.CHECKOUT_CUSTOMER_CREATED="checkout.customer.created",s.CHECKOUT_CUSTOMER_UPDATED="checkout.customer.updated",s.CHECKOUT_CUSTOMER_REMOVED="checkout.customer.removed",s.CHECKOUT_PAYMENT_SELECTED="checkout.payment.selected",s.CHECKOUT_PAYMENT_INITIATED="checkout.payment.initiated",s.CHECKOUT_PAYMENT_FAILED="checkout.payment.failed",s.CHECKOUT_DISCOUNT_APPLIED="checkout.discount.applied",s.CHECKOUT_DISCOUNT_REMOVED="checkout.discount.removed",(l=h||(h={})).DAY="day",l.WEEK="week",l.MONTH="month",l.YEAR="year",(u=m||(m={})).ALIPAY="alipay",u.APPLE_PAY="apple-pay",u.CARD="card",u.GOOGLE_PAY="google-pay",u.IDEAL="ideal",u.PAYPAL="paypal",u.WIRE_TRANSFER="wire-transfer",u.NONE="none",(c=g||(g={})).AMERICAN_EXPRESS="american_express",c.DINERS_CLUB="diners_club",c.DISCOVER="discover",c.JCB="jcb",c.MADA="mada",c.MAESTRO="maestro",c.MASTER_CARD="mastercard",c.UNION_PAY="union_pay",c.VISA="visa",c.UNKNOWN="unknown",(d=v||(v={})).DRAFT="draft",d.READY="ready",d.COMPLETED="completed",d.BILLED="billed",d.canceled="canceled",d.PAST_DUE="past_due";var y=["environment"];function w(e){return x.apply(this,arguments)}function x(){var e;return e=i().mark(function e(t){var r,n,a;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,void 0!==f?f:f=new Promise(function(e,t){if("undefined"==typeof window){e(void 0);return}if(window.Paddle){e(window.Paddle);return}try{var r=document.querySelector('script[src="'.concat(b,'"]'))||void 0;r||(r=function(e){var t=document.createElement("script");t.src=e;var r=document.head||document.body;if(!r)throw Error("Cannot inject Paddle.js. It needs a <head> or <body> element.");return r.appendChild(t),t}(b)),r.addEventListener("load",function(){window.Paddle?e(window.Paddle):t(Error("Paddle.js not available"))}),r.addEventListener("error",function(){t(Error("Failed to load Paddle.js"))})}catch(e){t(e);return}});case 2:if(!(r=e.sent)){e.next=8;break}if(t){n=t.environment,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,y);
1try{n&&r.Environment.set(n),r.Initialized?r.Update(o({},a)):r.Initialize(o({},a))}catch(e){console.warn("Paddle Initialization failed. Please check the inputs",e)}}return e.abrupt("return",r);case 8:return console.warn("Error Loading Paddle"),e.abrupt("return");case 10:case"end":return e.stop()}},e)}),(x=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,l,"next",e)}function l(e){a(i,n,o,s,l,"throw",e)}s(void 0)})}).apply(this,arguments)}},23541:function(e,t,r){"use strict";r.d(t,{Ry:function(){return u}});var n=new WeakMap,o=new WeakMap,i={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var c=i[r],d=[],f=new Set,p=new Set(u),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};u.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,a=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,a),c.set(e,s),d.push(e),1===a&&i&&o.set(e,!0),1===s&&e.setAttribute(r,"true"),i||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=n.get(e)-1,i=c.get(e)-1;n.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),i||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,o=new WeakMap,i={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),l(n,o,r,"aria-hidden")):function(){return null}}},79742:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=l(e),a=i[0],s=i[1],u=new o((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(function(e,t,n){for(var o,i=[],a=t;a<n;a+=3)i.push(r[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(e,t,r){"use strict";/*! 2 * The buffer module from node.js, for the browser. 3 * 4 * @author Feross Aboukhadijeh <https://feross.org> 5 * @license MIT 6 */let n=r(79742),o=r(80645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|h(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(D(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(D(e,ArrayBuffer)||e&&D(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(D(e,SharedArrayBuffer)||e&&D(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let o=function(e){var t;if(s.isBuffer(e)){let t=0|p(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 19,225 bytes, line 6
6if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|p(e))}function d(e){let t=e.length<0?0:0|p(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||D(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return M(e).length;default:if(o)return n?-1:L(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,r){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let n=t;n<r;++n)o+=z[e[n]];return o}(this,t,r);case"utf8":case"utf-8":return y(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":var i,a;return i=t,a=r,0===i&&a===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),o="";for(let e=0;e<n.length-1;e+=2)o+=String.fromCharCode(n[e]+256*n[e+1]);return o}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,o){let i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let n=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===l)return n*a}else -1!==n&&(i-=i-n),n=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){let r=!0;for(let n=0;n<l;n++)if(u(e,i+n)!==u(t,n)){r=!1;break}if(r)return i}return -1}function y(e,t,r){r=Math.min(e.length,r);let n=[],o=t;for(;o<r;){let t=e[o],i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:(192&(r=e[o+1]))==128&&(l=(31&t)<<6|63&r)>127&&(i=l);break;case 3:r=e[o+1],n=e[o+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(i=l);break;case 4:r=e[o+1],n=e[o+2],s=e[o+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(i=l)}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function E(e,t,r,n,o){_(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function j(e,t,r,n,o){_(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function C(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function O(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(D(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),D(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=s.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){let t=e[r];if(D(t,Uint8Array))o+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else if(s.isBuffer(t))t.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=t.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,o){if(D(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;let i=o-n,a=r-t,l=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){i=u[e],a=c[e];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){var o,i,a,s,l,u,c,d;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let p=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let o;r=Number(r)||0;let i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;let a=t.length;for(n>a/2&&(n=a/2),o=0;o<n;++o){let n=parseInt(t.substr(2*o,2),16);if(n!=n)break;e[r+o]=n}return o}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,I(L(e,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return a=t,s=r,I(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,s);case"base64":return l=t,u=r,I(M(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,I(function(e,t){let r,n;let o=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=U(function(e){T(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],o=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(o)<<BigInt(32))}),s.prototype.readBigUInt64BE=U(function(e){T(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],o=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=U(function(e){T(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),s.prototype.readBigInt64BE=U(function(e){T(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,e,t,r,n,0)}let o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,e,t,r,n,0)}let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=U(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=U(function(e,t=0){return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}let o=0,i=1,a=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=U(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=U(function(e,t=0){return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},s.prototype.fill=function(e,t,r,n){let o;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{let i=s.isBuffer(e)?e:s.from(e,n),a=i.length;
6if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%a]}return this};let N={};function R(e,t,r){N[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function S(e){let t="",r=e.length,n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function _(e,t,r,n,o,i){if(e>r||e<t){let n;let o="bigint"==typeof t?"n":"";throw n=i>3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:`>= ${t}${o} and <= ${r}${o}`,new N.ERR_OUT_OF_RANGE("value",n,e)}T(o,"offset"),(void 0===n[o]||void 0===n[o+i])&&P(o,n.length-(i+1))}function T(e,t){if("number"!=typeof e)throw new N.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw T(e,r),new N.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}R("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),R("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),R("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?o=S(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=S(o)),o+="n"),n+=` It must be ${t}. Received ${o}`},RangeError);let A=/[^+/0-9A-Za-z-_]/g;function L(e,t){let r;t=t||1/0;let n=e.length,o=null,i=[];for(let a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function M(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function D(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let z=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function U(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},80645:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?o-1:0,f=r?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,d=c>>1,f=23===o?5960464477539062e-23:0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[r+p]=255&a,p+=h,a/=256,u-=8);e[r+p-h]|=128*m}},84297:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(67294),o={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"};let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=(e,t)=>{let r=(0,n.forwardRef)(({color:r="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:l,children:u,...c},d)=>(0,n.createElement)("svg",{ref:d,...o,width:a,height:a,stroke:r,strokeWidth:l?24*Number(s)/Number(a):s,className:`lucide lucide-${i(e)}`,...c},[...t.map(([e,t])=>(0,n.createElement)(e,t)),...(Array.isArray(u)?u:[u])||[]]));return r.displayName=`${e}`,r}},62112:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},13742:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]])},64998:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},34958:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},50316:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},62958:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76",key:"m9r19z"}]])},58621:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);
6let o=(0,n.Z)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},33587:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},13766:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]])},67038:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("GanttChartSquare",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]])},28505:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},75283:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},79503:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},78051:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},56953:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},77232:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},5097:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("MessageCircle",[["path",{d:"m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z",key:"v2veuj"}]])},31012:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},52981:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},87764:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},54463:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("ShieldCheck",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",key:"3xmgem"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},35162:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]])},71646:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Tag",[["path",{d:"M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z",key:"14b2ls"}],["path",{d:"M7 7h.01",key:"7u93v4"}]])},1303:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("UserCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]])},66784:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]])},41352:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
6],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},40726:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},49461:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84297);let o=(0,n.Z)("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]])},29548:function(e,t,r){"use strict";var n=r(36426);Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastChannel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(t){var r=function(r){if(r.key===e){var n,o=JSON.parse(null!==(n=r.newValue)&&void 0!==n?n:"{}");(null==o?void 0:o.event)==="session"&&null!=o&&o.data&&t(o)}};return window.addEventListener("storage",r),function(){return window.removeEventListener("storage",r)}},post:function(t){"undefined"!=typeof window&&localStorage.setItem(e,JSON.stringify(l(l({},t),{},{timestamp:d()})))}}},t.apiBaseUrl=c,t.fetchData=function(e,t,r){return u.apply(this,arguments)},t.now=d;var o=n(r(26572)),i=n(r(55010)),a=n(r(82479));function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(){return(u=(0,a.default)(o.default.mark(function e(t,r,n){var i,a,s,l,u,d,f,p,h=arguments;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=(i=h.length>3&&void 0!==h[3]?h[3]:{}).ctx,l=void 0===(s=i.req)?null==a?void 0:a.req:s,u="".concat(c(r),"/").concat(t),e.prev=2,d=null!=l&&l.headers.cookie?{headers:{cookie:l.headers.cookie}}:{},e.next=6,fetch(u,d);case 6:return f=e.sent,e.next=9,f.json();case 9:if(p=e.sent,f.ok){e.next=12;break}throw p;case 12:return e.abrupt("return",Object.keys(p).length>0?p:null);case 15:return e.prev=15,e.t0=e.catch(2),n.error("CLIENT_FETCH_ERROR",{error:e.t0,url:u}),e.abrupt("return",null);case 19:case"end":return e.stop()}},e,null,[[2,15]])}))).apply(this,arguments)}function c(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function d(){return Math.floor(Date.now()/1e3)}},36925:function(e,t,r){"use strict";var n=r(36426);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=function(e,t){if(e)return Object.keys(e).reduce(function(r,n){return r[n]=(0,i.default)(o.default.mark(function r(){var i,a,s,l,u,c=arguments;return o.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(r.prev=0,a=Array(i=c.length),s=0;s<i;s++)a[s]=c[s];return t.debug("adapter_".concat(n),{args:a}),l=e[n],r.next=6,l.apply(void 0,a);case 6:return r.abrupt("return",r.sent);case 9:throw r.prev=9,r.t0=r.catch(0),t.error("adapter_error_".concat(n),r.t0),(u=new h(r.t0)).name="".concat(C(n),"Error"),u;case 15:case"end":return r.stop()}},r,null,[[0,9]])})),r},{})},t.capitalize=C,t.eventsErrorHandler=function(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=(0,i.default)(o.default.mark(function r(){var i,a=arguments;return o.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,i=e[n],r.next=4,i.apply(void 0,a);case 4:return r.abrupt("return",r.sent);case 7:r.prev=7,r.t0=r.catch(0),t.error("".concat(j(n),"_EVENT_ERROR"),r.t0);case 10:case"end":return r.stop()}},r,null,[[0,7]])})),r},{})},t.upperSnake=j;var o=n(r(26572)),i=n(r(82479)),a=n(r(60182)),s=n(r(55010)),l=n(r(52870)),u=n(r(39033)),c=n(r(24221)),d=n(r(97688)),f=n(r(99590));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,d.default)(this,r)}}var h=function(e){(0,c.default)(r,e);var t=p(r);function r(e){var n,o;return(0,l.default)(this,r),(o=t.call(this,null!==(n=null==e?void 0:e.message)&&void 0!==n?n:e)).name="UnknownError",o.
6code=e.code,e instanceof Error&&(o.stack=e.stack),o}return(0,u.default)(r,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}]),r}((0,n(r(32615)).default)(Error));t.UnknownError=h;var m=function(e){(0,c.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.default)((0,a.default)(e),"name","OAuthCallbackError"),e}return(0,u.default)(r)}(h);t.OAuthCallbackError=m;var g=function(e){(0,c.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.default)((0,a.default)(e),"name","AccountNotLinkedError"),e}return(0,u.default)(r)}(h);t.AccountNotLinkedError=g;var v=function(e){(0,c.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.default)((0,a.default)(e),"name","MissingAPIRouteError"),(0,s.default)((0,a.default)(e),"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,u.default)(r)}(h);t.MissingAPIRoute=v;var b=function(e){(0,c.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.default)((0,a.default)(e),"name","MissingSecretError"),(0,s.default)((0,a.default)(e),"code","NO_SECRET"),e}return(0,u.default)(r)}(h);t.MissingSecret=b;var y=function(e){(0,c.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.default)((0,a.default)(e),"name","MissingAuthorizeError"),(0,s.default)((0,a.default)(e),"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,u.default)(r)}(h);t.MissingAuthorize=y;var w=function(e){(0,c.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.default)((0,a.default)(e),"name","MissingAdapterError"),(0,s.default)((0,a.default)(e),"code","EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,u.default)(r)}(h);t.MissingAdapter=w;var x=function(e){(0,c.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.default)((0,a.default)(e),"name","UnsupportedStrategyError"),(0,s.default)((0,a.default)(e),"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,u.default)(r)}(h);t.UnsupportedStrategy=x;var E=function(e){(0,c.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.default)((0,a.default)(e),"name","InvalidCallbackUrl"),(0,s.default)((0,a.default)(e),"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,u.default)(r)}(h);function j(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function C(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}t.InvalidCallbackUrl=E},33299:function(e,t,r){"use strict";var n,o,i,a,s=r(34155),l=r(36426),u=r(4749);Object.defineProperty(t,"__esModule",{value:!0});var c={useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};t.SessionProvider=function(e){var t=e.children,r=e.basePath;r&&(O.basePath=r);var n=void 0!==e.session;O._lastSync=n?(0,b.now)():0;var o=m.useState(function(){return n&&(O._session=e.session),e.session}),i=(0,p.default)(o,2),a=i[0],s=i[1],l=m.useState(!n),u=(0,p.default)(l,2),c=u[0],f=u[1];m.useEffect(function(){return O._getSession=(0,h.default)(d.default.mark(function e(){var t,r,n=arguments;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(n.length>0&&void 0!==n[0]?n[0]:{}).event,e.prev=1,!((r="storage"===t)||void 0===O._session)){e.next=10;break}return O._lastSync=(0,b.now)(),e.next=7,S({broadcast:!r});case 7:return O._session=e.sent,s(O._session),e.abrupt("return");case 10:if(!(!t||null===O._session||(0,b.now)()<O._lastSync)){e.next=12;break}return e.abrupt("return");case 12:return O._lastSync=(0,b.now)(),e.next=15,S();case 15:O._session=e.sent,s(O._session),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),N.error("CLIENT_SESSION_ERROR",e.t0);case 22:return e.prev=22,f(!1),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,19,22,25]])}
6)),O._getSession(),function(){O._lastSync=0,O._session=void 0,O._getSession=function(){}}},[]),m.useEffect(function(){var e=k.receive(function(){return O._getSession({event:"storage"})});return function(){return e()}},[]),m.useEffect(function(){var t=e.refetchOnWindowFocus,r=void 0===t||t,n=function(){r&&"visible"===document.visibilityState&&O._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",n,!1),function(){return document.removeEventListener("visibilitychange",n,!1)}},[e.refetchOnWindowFocus]),m.useEffect(function(){var t=e.refetchInterval;if(t){var r=setInterval(function(){O._session&&O._getSession({event:"poll"})},1e3*t);return function(){return clearInterval(r)}}},[e.refetchInterval]);var g=m.useMemo(function(){return{data:a,status:c?"loading":a?"authenticated":"unauthenticated"}},[a,c]);return(0,y.jsx)(R.Provider,{value:g,children:t})},t.getCsrfToken=T,t.getProviders=A,t.getSession=S,t.signIn=function(e,t,r){return M.apply(this,arguments)},t.signOut=function(e){return I.apply(this,arguments)},t.useSession=function(e){var t=m.useContext(R),r=null!=e?e:{},n=r.required,o=r.onUnauthenticated,i=n&&"unauthenticated"===t.status;return(m.useEffect(function(){if(i){var e="/api/auth/signin?".concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));o?o():window.location.href=e}},[i,o]),i)?{data:t.data,status:"loading"}:t};var d=l(r(26572)),f=l(r(55010)),p=l(r(73089)),h=l(r(82479)),m=E(r(67294)),g=E(r(26553)),v=l(r(30762)),b=r(29548),y=r(85893),w=r(527);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(x=function(e){return e?r:t})(e)}function E(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var r=x(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){(0,f.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}
6Object.keys(w).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(c,e))&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))});var O={baseUrl:(0,v.default)(null!==(n=s.env.NEXTAUTH_URL)&&void 0!==n?n:s.env.VERCEL_URL).origin,basePath:(0,v.default)(s.env.NEXTAUTH_URL).path,baseUrlServer:(0,v.default)(null!==(o=null!==(i=s.env.NEXTAUTH_URL_INTERNAL)&&void 0!==i?i:s.env.NEXTAUTH_URL)&&void 0!==o?o:s.env.VERCEL_URL).origin,basePathServer:(0,v.default)(null!==(a=s.env.NEXTAUTH_URL_INTERNAL)&&void 0!==a?a:s.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},k=(0,b.BroadcastChannel)(),N=(0,g.proxyLogger)(g.default,O.basePath),R=m.createContext(void 0);function S(e){return _.apply(this,arguments)}function _(){return(_=(0,h.default)(d.default.mark(function e(t){var r,n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("session",O,N,t);case 2:return n=e.sent,(null===(r=null==t?void 0:t.broadcast)||void 0===r||r)&&k.post({event:"session",data:{trigger:"getSession"}}),e.abrupt("return",n);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function T(e){return P.apply(this,arguments)}function P(){return(P=(0,h.default)(d.default.mark(function e(t){var r;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("csrf",O,N,t);case 2:return r=e.sent,e.abrupt("return",null==r?void 0:r.csrfToken);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function A(){return L.apply(this,arguments)}function L(){return(L=(0,h.default)(d.default.mark(function e(){return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("providers",O,N);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function M(){return(M=(0,h.default)(d.default.mark(function e(t,r,n){var o,i,a,s,l,u,c,f,p,h,m,g,v,y,w,x,E;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0===(i=(o=null!=r?r:{}).callbackUrl)?window.location.href:i,l=void 0===(s=o.redirect)||s,u=(0,b.apiBaseUrl)(O),e.next=4,A();case 4:if(c=e.sent){e.next=8;break}return window.location.href="".concat(u,"/error"),e.abrupt("return");case 8:if(!(!t||!(t in c))){e.next=11;break}return window.location.href="".concat(u,"/signin?").concat(new URLSearchParams({callbackUrl:a})),e.abrupt("return");case 11:return f="credentials"===c[t].type,p="email"===c[t].type,h=f||p,m="".concat(u,"/").concat(f?"callback":"signin","/").concat(t),g="".concat(m,"?").concat(new URLSearchParams(n)),e.t0=fetch,e.t1=g,e.t2={"Content-Type":"application/x-www-form-urlencoded"},e.t3=URLSearchParams,e.t4=C,e.t5=C({},r),e.t6={},e.next=25,T();case 25:return e.t7=e.sent,e.t8=a,e.t9={csrfToken:e.t7,callbackUrl:e.t8,json:!0},e.t10=(0,e.t4)(e.t5,e.t6,e.t9),e.t11=new e.t3(e.t10),e.t12={method:"post",headers:e.t2,body:e.t11},e.next=33,(0,e.t0)(e.t1,e.t12);case 33:return v=e.sent,e.next=36,v.json();case 36:if(y=e.sent,!(l||!h)){e.next=42;break}return x=null!==(w=y.url)&&void 0!==w?w:a,window.location.href=x,x.includes("#")&&window.location.reload(),e.abrupt("return");case 42:if(E=new URL(y.url).searchParams.get("error"),!v.ok){e.next=46;break}return e.next=46,O._getSession({event:"storage"});case 46:return e.abrupt("return",{error:E,status:v.status,ok:v.ok,url:E?null:y.url});case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function I(){return(I=(0,h.default)(d.default.mark(function e(t){var r,n,o,i,a,s,l,u,c;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=void 0===(n=(null!=t?t:{}).callbackUrl)?window.location.href:n,i=(0,b.apiBaseUrl)(O),e.t0={"Content-Type":"application/x-www-form-urlencoded"},e.t1=URLSearchParams,e.next=6,T();case 6:return e.t2=e.sent,e.t3=o,e.t4={csrfToken:e.t2,callbackUrl:e.t3,json:!0},e.t5=new e.t1(e.t4),a={method:"post",headers:e.t0,body:e.t5},e.next=13,fetch("".concat(i,"/signout"),a);case 13:return s=e.sent,e.next=16,s.json();case 16:if(l=e.sent,k.post({event:"session",data:{trigger:"signout"}}),!(null===(r=null==t?void 0:t.redirect)||void 0===r||r)){e.next=23;break}return c=null!==(u=l.url)&&void 0!==u?u:o,window.location.href=c,c.includes("#")&&window.location.reload(),e.abrupt("return");case 23:return e.next=25,O._getSession({event:"storage"});case 25:return e.abrupt("return",l);case 26:case"end":return e.stop()}},e)}))).apply(this,arguments)}},527:function(e,t){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0})},26553:function(e,t,r){"use strict";var n=r(36426);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var r={},n=function(e){r[e]=function(r,n){l[e](r,n),"error"===e&&(n=s(n)),n.client=!0;var i="".concat(t,"/_log"),u=new URLSearchParams(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({level:e,code:r},n));return navigator.sendBeacon?navigator.sendBeacon(i,u):fetch(i,{method:"POST",body:u,keepalive:!0})}};for(var i in e)n(i);return r}catch(e){return l}},t.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(l.debug=function(){}),e.error&&(l.error=e.error),e.warn&&(l.warn=e.warn),e.debug&&(l.debug=e.debug)};var o=n(r(55010)),i=r(36925);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){var t;return e instanceof Error&&!(e instanceof i.UnknownError)?{message:e.message,stack:e.stack,name:e.name}:(null!=e&&e.error&&(e.error=s(e.error),e.message=null!==(t=e.message)&&void 0!==t?t:e.error.message),e)}var l={error:function(e,t){t=s(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};t.default=l},30762:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let n=new URL(null!==(t=e)&&void 0!==t?t:r),o=("/"===n.pathname?r.pathname:n.pathname).replace(/\/$/,""),i=`${n.origin}${o}`;return{origin:n.origin,host:n.host,path:o,base:i,toString:()=>i}}},5017:function(e,t,r){"use strict";r.d(t,{ZP:function(){return f},wW:function(){return p}});var n=r(67294),o=r(4298),i=r.n(o),a=r(34155);let s=(e,...t)=>{var r,n;let o=null!==(r=e.basePath)&&void 0!==r?r:"";return e.subdirectory&&(o+=`/${e.subdirectory}`),`${o}/js/${[null!==(n=e.scriptName)&&void 0!==n?n:"script",...t.sort().filter(e=>null!==e)].join(".")}.js`},l=e=>e?"plausible":"script",u=e=>{var t;return null!==(t=e.customDomain)&&void 0!==t?t:"https://plausible.io"},c=e=>{var t,r;return`${null!==(t=e.basePath)&&void 0!==t?t:""}/${null!==(r=e.subdirectory)&&void 0!==r?r:"proxy"}/api/event${e.trailingSlash?"/":""}`},d=()=>{if(a.env.next_plausible_proxy)return{trailingSlash:"true"===a.env.next_plausible_trailingSlash,basePath:a.env.next_plausible_basePath,customDomain:a.env.next_plausible_customDomain,scriptName:a.env.next_plausible_scriptName,subdirectory:a.env.next_plausible_subdirectory}};function f(e){let{enabled:t=!a.env.NEXT_PUBLIC_VERCEL_ENV||"production"===a.env.NEXT_PUBLIC_VERCEL_ENV}=e,r=u(e),o=d();return n.createElement(n.Fragment,null,t&&n.createElement(i(),Object.assign({async:!0,defer:!0,"data-api":o?c(o):void 0,"data-domain":e.domain,"data-exclude":e.exclude,src:(o?"":r)+s(Object.assign(Object.assign({},o),{scriptName:o?o.scriptName:l(e.selfHosted)}),e.trackLocalhost?"local":null,e.manualPageviews?"manual":null,e.pageviewProps?"pageview-props":null,e.trackOutboundLinks?"outbound-links":null,e.exclude?"exclusions":null,e.revenue?"revenue":null,e.trackFileDownloads?"file-downloads":null,e.taggedEvents?"tagged-events":null),integrity:e.integrity,crossOrigin:e.integrity?"anonymous":void 0},e.scriptProps)),t&&n.createElement(i(),{id:"next-plausible-init",dangerouslySetInnerHTML:{__html:"window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }"}}),e.children)}function p(){return(0,n.useCallback)(function(e,...t){var r,n;return null===(n=(r=window).plausible)||void 0===n?void 0:n.call(r,e,t[0])},[])}},82010:function(e,t,r){"use strict";r.d(t,{F:function(){return u},f:function(){return c}});var n=r(67294);let o=["light","dark"],i="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,n.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,n.useContext)(s))&&void 0!==e?e:l},c=e=>(0,n.useContext)(s)?n.createElement(n.Fragment,null,e.children):n.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=r?"system":"light",attribute:f="data-theme",value:v,children:b,nonce:y})=>
6{let[w,x]=(0,n.useState)(()=>h(l,c)),[E,j]=(0,n.useState)(()=>h(l)),C=v?Object.values(v):u,O=(0,n.useCallback)(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=g());let i=v?v[n]:n,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...C),i&&l.classList.add(i)):i?l.setAttribute(f,i):l.removeAttribute(f),a){let e=o.includes(c)?c:null,t=o.includes(n)?n:e;l.style.colorScheme=t}null==s||s()},[]),k=(0,n.useCallback)(e=>{x(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),N=(0,n.useCallback)(t=>{let n=g(t);j(n),"system"===w&&r&&!e&&O("system")},[w,e]);(0,n.useEffect)(()=>{let e=window.matchMedia(i);return e.addListener(N),N(e),()=>e.removeListener(N)},[N]),(0,n.useEffect)(()=>{let e=e=>{e.key===l&&k(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),(0,n.useEffect)(()=>{O(null!=e?e:w)},[e,w]);let R=(0,n.useMemo)(()=>({theme:w,setTheme:k,forcedTheme:e,resolvedTheme:"system"===w?E:w,themes:r?[...u,"system"]:u,systemTheme:r?E:void 0}),[w,k,e,E,r,u]);return n.createElement(s.Provider,{value:R},n.createElement(p,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:v,children:b,attrs:C,nonce:y}),b)},p=(0,n.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,p="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=s?o.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,n=!0)=>{let i=u?u[e]:e,a=t?e+"|| ''":`'${i}'`,l="";return s&&n&&!t&&o.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||i?`c.add(${a})`:"null":i&&(l+=`d[s](n,${a})`),l},g=e?`!function(){${p}${m(e)}}()`:a?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${i}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${h}}catch(t){}}();`;return n.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:g}})},()=>!0),h=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},g=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},91118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(37267)}])},11340:function(e,t,r){"use strict";r.d(t,{$P:function(){return i},ES:function(){return h},G_:function(){return d},Gw:function(){return l},Gz:function(){return f},Hg:function(){return w},SP:function(){return m},Sg:function(){return c},TU:function(){return v},WM:function(){return x},bn:function(){return u},cr:function(){return y},dV:function(){return a},gc:function(){return p},iU:function(){return s},l4:function(){return b},lG:function(){return g},qY:function(){return n},wm:function(){return o}});let n="new",o="New chat",i="/tools/chat/".concat("v1"),a="".concat(i,"/").concat(n),s="/api/tools-api/chat/".concat("v1"),l="reply",u=10,c=300,d="160px 0px",f=120,p=12e3,h="anthropic/claude-sonnet-4.6",m=[{key:"~deepseek/deepseek-v4-flash-latest",displayName:"Low",displayModel:"DeepSeek V4 Flash",credits:2,hidden:!1},{key:"anthropic/claude-sonnet-4.6",displayName:"Medium",displayModel:"Claude Sonnet 4.6",credits:5,hidden:!1},{key:"anthropic/claude-opus-4.6",displayName:"High",displayModel:"Claude Opus 4.6",credits:8,hidden:!0},{key:"anthropic/claude-opus-5.5",displayName:"High",displayModel:"Claude Opus 5.5",credits:8,hidden:!1},{key:"anthropic/claude-opus-5",displayName:"High",displayModel:"Claude Opus 5",credits:8,hidden:!1},{key:"anthropic/claude-fable-5.1",displayName:"Extra High",displayModel:"Claude Fable 5.1",credits:16,hidden:!1},{key:"openai/gpt-6-astra",displayName:"Extra High",displayModel:"GPT-6 Astra",credits:16,hidden:!1}];Object.freeze({name:"tubemagic-chat",version:"1.0.0"}
6),Object.freeze([/\byou\s*tube\b/i,/\byoutubers?\b/i,/\byt\s+(?:channels?|videos?|shorts?)\b/i,/\b(?:channels?|videos?|shorts?|uploads?|thumbnails?)\b/i,/\b(?:subscribers?|views?|watch\s*time|audience\s+retention|click[- ]through\s+rate|ctr)\b/i,/\b(?:video\s+ideas?|content\s+ideas?|content\s+strategy|content\s+calendar|content\s+plan)\b/i,/\b(?:ideas?|brainstorm)\b/i,/\b(?:scripts?|hooks?|intros?|outros?|storyboards?|voiceovers?|b[- ]roll)\b/i,/\b(?:titles?|descriptions?|tags?|keywords?|youtube\s+seo|monetization|niches?)\b/i]),Object.freeze([/\b(?:javascript|typescript|python|java|php|ruby|rust|golang|react|next\.?js|node\.?js|sql|bash|shell)\b/i,/\b(?:code|coding|programming|software|api|database)\b/i,/\b(?:movie|film|screenplay|stage\s+play|theatre|theater)\s+scripts?\b/i]),Object.freeze([/\byou\s*tube\b/i,/\byoutubers?\b/i,/\byt\s+(?:channels?|videos?|shorts?)\b/i,/\b(?:channels?|videos?|shorts?|uploads?|thumbnails?|subscribers?|views?|watch\s*time|audience\s+retention|click[- ]through\s+rate|ctr)\b/i]),Object.freeze([/^(?:make|shorten|rewrite|expand|improve|refine|change|adjust|add|remove|continue|compare|rank|retry|try|use|turn)\b/i,/^(?:another|more|less|shorter|longer|better)\b/i,/^(?:give|show)\s+me\s+(?:another|more)\b/i,/^(?:based\s+on|using)\s+(?:that|this|those|these|it)\b/i,/^(?:how|why|which|what)\s+(?:can|should|would|could|did|does|do|is|are|was|were)\s+(?:i|we|it|that|this|they|those|these|my|our|the)\b/i,/^(?:what|how)\s+about\s+(?:it|that|this|those|these|my|our|the)\b/i,/^(?:yes|no|ok|okay|sure|great|perfect|that works)\b/i]);let g={USER:"USER",ASSISTANT:"ASSISTANT"},v={STARTED:"started",DELTA:"delta",REPLACE:"replace",DONE:"done",ERROR:"error"},b="data: ",y="\n\n",w="streaming-",x=[{title:"What video should I make next?",prompt:"What video should I make next?"},{title:"Which title has the best outlier potential?",prompt:"Which title has the best outlier potential?"},{title:"What's working in my niche this week?",prompt:"What's working in my niche this week?"},{title:"Analyze my last 10 videos",prompt:"Analyze my last 10 videos"}]},23084:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});let n=Object.freeze({className:"font-inter"})},35542:function(e,t,r){"use strict";r.d(t,{Bn:function(){return s},DV:function(){return i},Fv:function(){return p},GZ:function(){return f},Pg:function(){return o},Rr:function(){return b},VP:function(){return v},fY:function(){return m},hh:function(){return d},mT:function(){return h},nB:function(){return g},pr:function(){return a},ve:function(){return c},xl:function(){return n},zO:function(){return u}});let n=!1;Object.freeze(["__Secure-next-auth.session-token","next-auth.session-token"]);let o="/device-verification",i="/auth/login",a="/app",s="https://device-verification.local";Object.freeze(["/admin","/app","/billing","/logs","/micro-tools","/my-scripts","/project","/projects","/scripts","/settings","/tools","/usage"]),Object.freeze(["/api/auth/callback","/api/auth/csrf","/api/auth/device","/api/auth/error","/api/auth/providers","/api/auth/session","/api/auth/signin","/api/auth/signout","/api/auth/verify-request","/api/auth/_log"]),Object.freeze(["cf-ipcountry","sec-ch-ua-mobile","sec-ch-ua-platform","true-client-ip","user-agent","x-forwarded-for","x-real-ip","x-vercel-ip-country"]),Object.freeze(["cf-connecting-ip","true-client-ip","x-real-ip"]),Object.freeze([["Edge",/Edg(?:A|iOS)?\/([\d.]+)/],["Opera",/OPR\/([\d.]+)/],["Samsung Internet",/SamsungBrowser\/([\d.]+)/],["Chrome",/(?:Chrome|CriOS)\/([\d.]+)/],["Firefox",/(?:Firefox|FxiOS)\/([\d.]+)/],["Safari",/Version\/([\d.]+).*Safari/]]),Object.freeze({"10.0":"10/11","6.3":"8.1","6.2":"8","6.1":"7"}),Object.freeze({android:"Android","chrome os":"ChromeOS",ios:"iOS",linux:"Linux",macos:"macOS",windows:"Windows"});let l=Object.freeze({VALID:"DEVICE_VALID",DEVICE_ID_REQUIRED:"DEVICE_ID_REQUIRED",FINGERPRINT_REQUIRED:"FINGERPRINT_REQUIRED",VERIFICATION_REQUIRED:"DEVICE_VERIFICATION_REQUIRED",DEVICE_REVOKED:"DEVICE_REVOKED",SESSION_INVALID:"SESSION_INVALID"}),u=Object.freeze([l.VERIFICATION_REQUIRED,l.FINGERPRINT_REQUIRED]),c=Object.freeze([l.DEVICE_ID_REQUIRED,l.DEVICE_REVOKED,l.SESSION_INVALID]);Object.freeze([l.DEVICE_ID_REQUIRED,l.DEVICE_REVOKED]);let d=3e4,f=24e4,p=15e3;
6Object.freeze(["revoke-session","revoke-other-sessions"]),Object.freeze(["visitorId","version"]);let h=Object.freeze({EMAILS:"emails",ALL:"all"}),m=Object.freeze({PREPARE:"prepare",EXECUTE:"execute"}),g=5e3,v=200,b=/^[^\s@]+@[^\s@]+\.[^\s@]+$/},37137:function(e,t,r){"use strict";r.d(t,{$g:function(){return p},Ao:function(){return h},C:function(){return g},Fc:function(){return x},Kw:function(){return l},N8:function(){return d},QC:function(){return m},SC:function(){return u},WK:function(){return a},Y6:function(){return w},YB:function(){return y},an:function(){return c},eW:function(){return v},gH:function(){return n},nQ:function(){return f},oy:function(){return b},uW:function(){return i},wl:function(){return E},xx:function(){return s},z5:function(){return o}});let n="Untitled Project",o="thumbnail-generator",i="/tools/thumbnail-generator/v2",a="new",s="".concat(i,"/").concat(a),l="/api/tools-api/thumbnail-generator/v2/projects",u="/api/tools-api/thumbnail-generator/v2/video-context",c="Untitled thumbnail",d=120,f=12,p=300,h="160px 0px",m=20,g=5242880,v=Object.freeze(["image/jpeg","image/png","image/webp"]);Object.freeze({name:"tubemagic-thumbnail-generator",version:"1.0.0"});let b=Object.freeze({YOUTUBE_VIDEO:Object.freeze({value:"youtube-video",label:"YouTube video",aspectRatio:"16:9",orientation:"landscape"}),YOUTUBE_SHORTS:Object.freeze({value:"youtube-shorts",label:"YouTube Shorts",aspectRatio:"9:16",orientation:"portrait"})}),y=Object.freeze(Object.values(b)),w=b.YOUTUBE_VIDEO.value,x=500,E=350},13991:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let o="refresh",i="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81516:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(82387),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68872:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return m}});
6let n=r(38754),o=r(61757),i=o._(r(67294)),a=n._(r(42636)),s=r(55471),l=r(3735),u=r(83341);r(34210);let c=n._(r(57746)),d={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function f(e,t,r,n,o,i){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===t&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}})}function p(e){let[t,r]=i.version.split("."),n=parseInt(t,10),o=parseInt(r,10);return n>18||18===n&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let h=(0,i.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:h,loading:m,unoptimized:g,fill:v,onLoadRef:b,onLoadingCompleteRef:y,setBlurComplete:w,setShowAltText:x,onLoad:E,onError:j,...C}=e;return i.default.createElement("img",{...C,...p(d),loading:m,width:s,height:a,decoding:l,"data-nimg":v?"fill":"1",className:u,style:c,sizes:o,srcSet:n,src:r,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&f(e,h,b,y,w,g))},[r,h,b,y,w,j,g,t]),onLoad:e=>{let t=e.currentTarget;f(t,h,b,y,w,g)},onError:e=>{x(!0),"blur"===h&&w(!0),j&&j(e)}})}),m=(0,i.forwardRef)((e,t)=>{let r=(0,i.useContext)(u.ImageConfigContext),n=(0,i.useMemo)(()=>{let e=d||r||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:o,onLoadingComplete:f}=e,m=(0,i.useRef)(o);(0,i.useEffect)(()=>{m.current=o},[o]);let g=(0,i.useRef)(f);(0,i.useEffect)(()=>{g.current=f},[f]);let[v,b]=(0,i.useState)(!1),[y,w]=(0,i.useState)(!1),{props:x,meta:E}=(0,s.getImgProps)(e,{defaultLoader:c.default,imgConf:n,blurComplete:v,showAltText:y});return i.default.createElement(i.default.Fragment,null,i.default.createElement(h,{...x,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:w,ref:t}),E.priority?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+x.src+x.srcSet+x.sizes,rel:"preload",as:"image",href:x.srcSet?void 0:x.src,imageSrcSet:x.srcSet,imageSizes:x.sizes,crossOrigin:x.crossOrigin,referrerPolicy:x.referrerPolicy,...p(x.fetchPriority)})):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95569:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let n=r(38754),o=n._(r(67294)),i=r(14532),a=r(83353),s=r(61410),l=r(79064),u=r(370),c=r(69955),d=r(24224),f=r(80508),p=r(81516),h=r(64266),m=r(13991),g=new Set;function v(e,t,r,n,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,i=t+"%"+r+"%"+o;if(g.has(i))return;g.add(i)}let s=i?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(s).catch(e=>{})}function b(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let y=o.default.forwardRef(function(e,t){let r,n;let{href:s,as:g,children:y,prefetch:w=null,passHref:x,replace:E,shallow:j,scroll:C,locale:O,onClick:k,onMouseEnter:N,onTouchStart:R,legacyBehavior:S=!1,..._}=e;r=y,S&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let T=o.default.useContext(c.RouterContext),P=o.default.useContext(d.AppRouterContext),A=null!=T?T:P,L=!T,M=!1!==w,I=null===w?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:D,as:z}=o.default.useMemo(()=>
6{if(!T){let e=b(s);return{href:e,as:g?b(g):e}}let[e,t]=(0,i.resolveHref)(T,s,!0);return{href:e,as:g?(0,i.resolveHref)(T,g):t||e}},[T,s,g]),U=o.default.useRef(D),F=o.default.useRef(z);S&&(n=o.default.Children.only(r));let B=S?n&&"object"==typeof n&&n.ref:t,[Z,W,V]=(0,f.useIntersection)({rootMargin:"200px"}),$=o.default.useCallback(e=>{(F.current!==z||U.current!==D)&&(V(),F.current=z,U.current=D),Z(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[z,B,D,V,Z]);o.default.useEffect(()=>{A&&W&&M&&v(A,D,z,{locale:O},{kind:I},L)},[z,D,W,O,M,null==T?void 0:T.locale,A,L,I]);let H={ref:$,onClick(e){S||"function"!=typeof k||k(e),S&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),A&&!e.defaultPrevented&&function(e,t,r,n,i,s,l,u,c,d){let{nodeName:f}=e.currentTarget,p="A"===f.toUpperCase();if(p&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let h=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,locale:u,scroll:e}):t[i?"replace":"push"](n||r,{forceOptimisticNavigation:!d,scroll:e})};c?o.default.startTransition(h):h()}(e,A,D,z,E,j,C,O,L,M)},onMouseEnter(e){S||"function"!=typeof N||N(e),S&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),A&&(M||!L)&&v(A,D,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:I},L)},onTouchStart(e){S||"function"!=typeof R||R(e),S&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),A&&(M||!L)&&v(A,D,z,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:I},L)}};if((0,l.isAbsoluteUrl)(z))H.href=z;else if(!S||x||"a"===n.type&&!("href"in n.props)){let e=void 0!==O?O:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,p.getDomainLocale)(z,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);H.href=t||(0,h.addBasePath)((0,u.addLocale)(z,e,null==T?void 0:T.defaultLocale))}return S?o.default.cloneElement(n,H):o.default.createElement("a",{..._,...H},r)}),w=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80508:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(67294),o=r(10029),i="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!i,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(i){if(u||c)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:o,elements:i}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:i,elements:o},s.push(r),a.set(r,t),t}(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,c,f.current]);let h=(0,n.useCallback)(()=>{d(!1)},[]);return[p,c,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95677:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return a},default:function(){return s}});let n=r(38754),o=(r(67294),n._(r(8976)));function i(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let r=o.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e}),n={...n,...t};let s=n.loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=s?s().then(i):Promise.resolve(i(()=>null))}):(delete n.webpack,delete n.modules,a(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
6dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(34210);let n=r(97757),o=r(3735);function i(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:p=!1,loading:h,className:m,quality:g,width:v,height:b,fill:y=!1,style:w,onLoad:x,onLoadingComplete:E,placeholder:j="empty",blurDataURL:C,fetchPriority:O,layout:k,objectFit:N,objectPosition:R,lazyBoundary:S,lazyRoot:_,...T}=e,{imgConf:P,showAltText:A,blurComplete:L,defaultLoader:M}=t,I=P||o.imageConfigDefault;if("allSizes"in I)s=I;else{let e=[...I.deviceSizes,...I.imageSizes].sort((e,t)=>e-t),t=I.deviceSizes.sort((e,t)=>e-t);s={...I,allSizes:e,deviceSizes:t}}let D=T.loader||M;delete T.loader,delete T.srcSet;let z="__next_img_default"in D;if(z){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=D;D=t=>{let{config:r,...n}=t;return e(n)}}if(k){"fill"===k&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[k];t&&!d&&(d=t)}let U="",F=a(v),B=a(b);if("object"==typeof(r=c)&&(i(r)||void 0!==r.src)){let e=i(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,C=C||e.blurDataURL,U=e.src,!y){if(F||B){if(F&&!B){let t=F/e.width;B=Math.round(e.height*t)}else if(!F&&B){let t=B/e.height;F=Math.round(e.width*t)}}else F=e.width,B=e.height}}let Z=!p&&("lazy"===h||void 0===h);(!(c="string"==typeof c?c:U)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,Z=!1),s.unoptimized&&(f=!0),z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),p&&(O="high");let W=a(g),V=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:R}:{},A?{}:{color:"transparent"},w),$="blur"===j&&C&&!L?{backgroundSize:V.objectFit||"cover",backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:F,heightInt:B,blurWidth:l,blurHeight:u,blurDataURL:C,objectFit:V.objectFit})+'")'}:{},H=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:i,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:i,width:l[c]})}}({config:s,src:c,unoptimized:f,width:F,quality:W,sizes:d,loader:D}),q={...T,loading:Z?"lazy":h,fetchPriority:O,width:F,height:B,decoding:"async",className:m,style:{...V,...$},sizes:H.sizes,srcSet:H.srcSet,src:H.src},G={unoptimized:f,priority:p,placeholder:j,fill:y};return{props:q,meta:G}}},97757:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,s=n||t,l=o||r,u=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return s&&l?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+s+" "+l+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(n&&o?"1":"20")+"'/%3E"+u+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}
6Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},32555:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let n=r(38754),o=r(55471),i=r(34210),a=r(68872),s=n._(r(57746)),l=e=>{(0,i.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,o.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},u=a.Image},57746:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:o}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},92254:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return i}});let n=r(38754),o=n._(r(67294)),i=o.default.createContext(null)},8976:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let n=r(38754),o=n._(r(67294)),i=r(92254),a=[],s=[],l=!1;function u(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function a(){if(!n){let t=new c(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!l){let e=r.webpack?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return a()})}function u(e,t){!function(){a();let e=o.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let s=o.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),o.default.useMemo(()=>{var t;return s.loading||s.error?o.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:n.retry}):s.loaded?o.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>a(),u.displayName="LoadableComponent",o.default.forwardRef(u)}(u,e)}function f(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>
6(l=!0,t());f(s,e).then(r,r)})),window.__NEXT_PRELOADREADY=d.preloadReady;let p=d},95720:function(e,t,r){"use strict";r.d(t,{Z:function(){return K}});var n=r(85893),o=r(67294),i=r(82010),a=r(41664),s=r.n(a),l=r(11163),u=r(79503),c=r(87764);r(62958);var d=r(13766),f=r(5097);r(66784);var p=r(71646),h=r(49461),m=r(35162),g=r(77232),v=r(31012),b=r(40726),y=r(62112),w=r(1303),x=r(58621),E=r(67038),j=r(33587),C=r(56953),O=r(54463),k=r(78051),N=r(28505),R=r(52981),S=r(75283),_=r(34958),T=r(86501),P=r(66167),A=r(49267),L=r(74777),M=r(57481),I=r(33299),D=r(5521),z=r(66953),U=r(83855);r(99723),r(83283);var F=r(5121),B=r(79351),Z=r(36695);Object.freeze(["FREE","TRIAL"]);let W=[{name:"Top Up Plan",credits:100,price:9,key:"topup-100-9-23_04_2026_1",paddlePriceId:"pri_01kqff6xb6qrs9ga6jyfyrrwbz",isLatest:!0}],V=()=>{let e=W.find(e=>e.isLatest);if(!e)throw Error("No latest top-up plan found.");return e};var $=r(11340),H=r(37137),q=r(199);let G=()=>{let e=confirm("Are you sure you want to logout?");e&&(localStorage.clear(),(0,I.signOut)({callbackUrl:"/app"}))};var K=()=>{var e,t,r,a,W,K,Y,X,J;let Q=(0,l.useRouter)(),{theme:ee,setTheme:et}=(0,i.F)("dark"),[er,en]=(0,o.useState)([]),[eo,ei]=(0,o.useState)(!1),[ea,es]=(0,o.useState)([]),[el,eu]=(0,o.useState)(!1),[ec,ed]=(0,o.useState)([]),[ef,ep]=(0,o.useState)(!1),[eh,em]=(0,o.useState)(null),[eg,ev]=(0,o.useState)(!1);(0,o.useEffect)(()=>{(0,P.J4)({environment:"production",token:"live_0783811edb89c2eab6963a8f899"}).then(e=>{e&&em(e)})},[]);let{data:eb}=(0,I.useSession)(),ey=(null==eb?void 0:null===(e=eb.user)||void 0===e?void 0:e.name)||"TubeMagic User",ew=(null==eb?void 0:null===(t=eb.user)||void 0===t?void 0:t.email)||"[email protected]",ex=(null==eb?void 0:null===(r=eb.user)||void 0===r?void 0:r.subscription)||(null==eb?void 0:null===(a=eb.user)||void 0===a?void 0:a.subscriptionType)||"FREE";null==eb||null===(W=eb.user)||void 0===W||W.planType;let eE="dark"===ee?"text-white":"text-zinc-900",{handleNewScriptClick:ej}=(0,B.A)(),eC=()=>{ej()},eO=(Q.asPath||Q.pathname||"").split("?")[0].split("#")[0],ek=eO.startsWith("/tools/video-research/v2")||"/tools/video-research"===eO,eN=eO===$.$P||eO.startsWith("".concat($.$P,"/")),eR="/tools/thumbnail-generator"===eO||eO===H.uW||eO.startsWith("".concat(H.uW,"/")),eS=eN||ek||"/tools/script-writer"===eO||eR,e_="/tools"===eO||eO.startsWith("/micro-tools/")||eO.startsWith("/tools/")&&!eS,eT=e=>(0,Z.cn)("rounded-xl px-4 group-data-[collapsible=icon]:h-11 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:gap-0 group-data-[collapsible=icon]:px-0 [&>span]:transition-opacity group-data-[collapsible=icon]:[&>span]:sr-only",e?"h-11 border border-white/[0.06] bg-[#1b1d1f] text-white shadow-none hover:bg-[#202225] hover:text-white":"h-11 text-zinc-400 hover:bg-white/[0.04] hover:text-zinc-100");(0,o.useEffect)(()=>{let e=localStorage.getItem("theme");e&&"dark"===e||(et("dark"),localStorage.setItem("theme","dark"))},[]);let[eP,eA]=(0,o.useState)(()=>{{let e=localStorage.getItem("sidebarScriptsSectionExpanded");if(null!==e)return"true"===e}return!0}),[eL,eM]=(0,o.useState)(()=>{{let e=localStorage.getItem("sidebarIdeasSectionExpanded");if(null!==e)return"true"===e}return!1});(0,o.useEffect)(()=>{let e=e=>{let{channelId:t,channelName:r}=e.detail;en(e=>e.map(e=>e.channelId===t?{...e,channelName:r}:e))};return window.addEventListener("channel-name-updated",e),()=>{window.removeEventListener("channel-name-updated",e)}},[]),(0,o.useEffect)(()=>{localStorage.setItem("sidebarScriptsSectionExpanded",eP)},[eP]),(0,o.useEffect)(()=>{localStorage.setItem("sidebarIdeasSectionExpanded",eL)},[eL]),(0,o.useEffect)(()=>{let e=()=>{ei(window.innerWidth<768)};return window.addEventListener("resize",e),e(),eI(),ez(),eD(),()=>window.removeEventListener("resize",e)},[]);let eI=async e=>{let t="channelsData",r=new Date().getTime();if("force"!==e){let e=localStorage.getItem(t);if(e){let{data:t,timestamp:n}=JSON.parse(e);if(r-n<432e6){en(t.channels);return}}}try{let e=await F.Z.get("/api/tools-api/ideas-manager/fetchChannelsAPI");if(200!==e.status)return;en(e.data.channels),localStorage.setItem(t,JSON.stringify({data:e.data,timestamp:r}))}catch(e){console.error("Error fetching channels:",e)}},eD=async()=>{let e=localStorage.getItem("isAdminCheck");
6if(null===e)try{let t=await fetch("/api/admin/isAdminAPI"),r=await t.json();if(r&&r.admin)localStorage.setItem("isAdminCheck",r.admin.toString()),e=r.admin.toString();else throw Error("Admin status not found in response")}catch(t){console.error("Error checking admin status:",t),localStorage.setItem("isAdminCheck","false"),e="false"}eu("true"===e)},ez=async()=>{try{var e;if(!(null==eb?void 0:null===(e=eb.user)||void 0===e?void 0:e.email))return;let t=await fetch("/api/user/userScripts?email=".concat(encodeURIComponent(eb.user.email),"&offset=",0,"&limit=",5));if(t.ok){let e=await t.json();es(e.userScripts)}}catch(e){console.error("Error fetching user scripts:",e)}},eU=async()=>{ep(!0);try{if(!eb)return;if("FREE"===ex){T.ZP.error("You are on the free plan. Please upgrade to access this feature.");return}let e=await fetch("/api/payments/paddle/getPaddleIdAndLoggerTopUpAPI");if(!e.ok){T.ZP.error("Failed to initiate top-up. Please try again.");return}let t=await e.json();null==eh||eh.Checkout.open({items:[{priceId:V().paddlePriceId}],customer:{id:t.customerPaddleId},customData:{topUpPlan:V().key},settings:{displayMode:"overlay",theme:document.documentElement.classList.contains("dark")?"dark":"light",locale:"en",successUrl:"".concat("https://tubemagic.com","/app"),allowLogout:!1}})}catch(e){console.error("Error accessing paddleCustomerId:",e)}finally{ep(!1)}};(0,o.useEffect)(()=>{let e=localStorage.getItem("favouriteTools");e&&ed(JSON.parse(e));let t=()=>{let e=localStorage.getItem("favouriteTools");e&&ed(JSON.parse(e))};return window.addEventListener("favouriteToolsChanged",t),()=>{window.removeEventListener("favouriteToolsChanged",t)}},[]);let eF=e=>e.split(" ").map(e=>e[0]).slice(0,2).join("").toUpperCase(),eB=(null==eb?void 0:null===(K=eb.user)||void 0===K?void 0:K.name)?eF(eb.user.name):"TM",eZ=e=>{let t=Number(e);return Number.isNaN(t)?"0":t.toLocaleString()};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(()=>{var e,t,r,o;return(0,n.jsx)("div",{className:"sticky top-0 z-50 md:hidden",children:(0,n.jsxs)("div",{className:"flex h-16 items-center border-b border-[var(--border-subtle)] bg-[var(--bg-app)] px-4",children:[(0,n.jsx)(s(),{href:"/app",className:"flex items-center",children:(0,n.jsx)(q.Z,{className:"mr-2",imageClassName:"h-6 w-6",textClassName:eE})}),(0,n.jsxs)(L.yo,{children:[(0,n.jsx)(L.aM,{asChild:!0,children:(0,n.jsxs)(A.z,{variant:"outline",size:"icon",className:"ml-auto",children:[(0,n.jsx)(g.Z,{className:"h-5 w-5 text-zinc-950 dark:text-zinc-50"}),(0,n.jsx)("span",{className:"sr-only",children:"Toggle menu"})]})}),(0,n.jsx)(L.ue,{side:"right",className:"w-[85%] max-w-sm border-[var(--border-subtle)] p-0 [background:var(--bg-sidebar-gradient)]",children:(0,n.jsxs)("div",{className:"flex h-full flex-col",children:[(0,n.jsx)("div",{className:"border-b border-[var(--border-subtle)] p-4",children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsxs)(z.qE,{className:"h-8 w-8",children:[(0,n.jsx)(z.F$,{src:null==eb?void 0:null===(e=eb.user)||void 0===e?void 0:e.image,alt:"User avatar"}),(0,n.jsx)(z.Q5,{children:(null==eb?void 0:null===(t=eb.user)||void 0===t?void 0:t.name)?eF(eb.user.name):"TM"})]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("span",{className:"text-sm font-medium truncate",children:(null==eb?void 0:null===(r=eb.user)||void 0===r?void 0:r.name)||"TubeMagic User"}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground truncate",children:(null==eb?void 0:null===(o=eb.user)||void 0===o?void 0:o.email)||"[email protected]"})]})]})}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto py-2",children:(0,n.jsxs)(M.Wq,{className:"px-2 flex flex-col justify-between h-full",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)(M.pC,{children:[(0,n.jsxs)(M.Uw,{href:$.dV,active:eN,children:[(0,n.jsx)(f.Z,{className:"h-4 w-4 text-zinc-100"}),(0,n.jsx)("span",{className:"text-zinc-950 dark:text-zinc-100",children:"Chat"})]}),(0,n.jsxs)(M.Uw,{href:"/tools/script-writer",onClick:eC,active:"/tools/script-writer"===Q.pathname,children:[(0,n.jsx)(v.Z,{className:"h-4 w-4 text-zinc-100"}),(0,n.jsx)("span",{className:"text-zinc-950 dark:text-zinc-100",children:"New Script"})]}),(0,n.jsxs)(M.Uw,{href:"/my-scripts",active:"/my-scripts"===Q.pathname,children:[(0,n.jsx)(d.Z,{className:"h-4 w-4 text-zinc-100"}),(0,n.jsx)("span",{className:"text-zinc-950 dark:text-zinc-100",children:"My Scripts"})]})]}),(0,n.jsxs)(M.pC,{title:"Tools",children:[(0,n.jsx)(M.Uw,{href:"/tools",active:"/tools"===Q.pathname,className:"text-zinc-950 dark:text-zinc-100",children:(0,n.jsx)("span",{children:"All Tools"})}),(0,n.jsxs)(M.Uw,{href:"/tools/warp-upload",active:"/tools/warp-upload"===Q.pathname,className:"rounded-lg",children:[(0,n.jsx)(h.Z,{className:"h-4 w-4 text-zinc-400"}),(0,n.jsx)("span",{className:"text-zinc-300 dark:text-zinc-300 font-medium",children:"Warp Upload"})]}),(0,n.jsxs)(M.Uw,{href:"/tools/video-ideas",active:"/tools/video-ideas"===Q.pathname,children:[(0,n.jsx)(u.Z,{className:"h-4 w-4 text-zinc-100"}),(0,n.jsx)("span",{className:"text-zinc-950 dark:text-zinc-100",children:"Video Ideas"})]}),(0,n.jsxs)(M.Uw,{href:"/tools/keyword-research",active:"/tools/keyword-research"===Q.pathname,children:[(0,n.jsx)(c.Z,{className:"h-4 w-4 text-zinc-100"}),(0,n.jsx)("span",{className:"text-zinc-950 dark:text-zinc-100",children:"Keyword Research"})]}),(0,n.jsxs)(M.Uw,{href:H.xx,active:eR,children:[(0,n.jsx)(m.Z,{className:"h-4 w-4 text-zinc-100"}),(0,n.jsx)("span",{className:"text-zinc-950 dark:text-zinc-100",children:"Thumbnails"})]}),(0,n.jsxs)(M.Uw,{href:"/my-channels",active:"/my-channels"===eO,children:[(0,n.jsx)(b.Z,{className:"h-4 w-4 text-zinc-100"}),(0,n.jsx)("span",{className:"text-zinc-950 dark:text-zinc-100",children:"My Channels"})]}),(0,n.jsxs)(M.Uw,{href:"/tools/video-tags",active:"/tools/video-tags"===Q.pathname,children:[(0,n.jsx)(p.Z,{className:"h-4 w-4 text-zinc-100"}),(0,n.jsx)("span",{className:"text-zinc-950 dark:text-zinc-100",children:"Video Tags"})]})]})]}),(0,n.jsxs)(M.pC,{title:"External Links",children:[(0,n.jsxs)(M.Uw,{href:"https://tubemagic.com/affiliates",target:"_blank",rel:"noopener noreferrer",className:"flex justify-between items-center text-zinc-950 dark:text-zinc-100",children:[(0,n.jsx)("span",{children:"Affiliates"}),(0,n.jsx)(y.Z,{className:"h-4 w-4"})]}),(0,n.jsxs)(M.Uw,{href:"https://www.facebook.com/groups/tubemagic",target:"_blank",rel:"noopener noreferrer",className:"flex justify-between items-center text-zinc-950 dark:text-zinc-100",children:[(0,n.jsx)("span",{children:"Community"}),(0,n.jsx)(y.Z,{className:"h-4 w-4"})]}),(0,n.jsxs)(M.Uw,{href:"https://members.tubemagic.com",target:"_blank",rel:"noopener noreferrer",className:"flex justify-between items-center text-zinc-950 dark:text-zinc-100",children:[(0,n.jsx)("span",{children:"Courses"}),(0,n.jsx)(y.Z,{className:"h-4 w-4"})]})]})]})}),(0,n.jsx)("div",{className:"border-t border-[var(--border-subtle)] p-2",children:(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(A.z,{variant:"ghost",className:"w-full justify-start",asChild:!0,children:(0,n.jsxs)(s(),{href:"/settings?tab=profile",children:[(0,n.jsx)(w.Z,{className:"mr-2 h-4 w-4"}),"Account"]})}),(0,n.jsx)(A.z,{variant:"ghost",className:"w-full justify-start",asChild:!0,children:(0,n.jsxs)(s(),{href:"/my-channels",children:[(0,n.jsx)(b.Z,{className:"mr-2 h-4 w-4"}),"My Channels"]})}),(0,n.jsx)(A.z,{variant:"ghost",className:"w-full justify-start",asChild:!0,children:(0,n.jsxs)(s(),{href:"/settings?tab=billing",children:[(0,n.jsx)(x.Z,{className:"mr-2 h-4 w-4"}),"Billing"]})}),(0,n.jsx)(A.z,{variant:"ghost",className:"w-full justify-start",asChild:!0,children:(0,n.jsxs)(s(),{href:"/settings?tab=usage",children:[(0,n.jsx)(E.Z,{className:"mr-2 h-4 w-4"}),"Usage"]})}),(0,n.jsx)(A.z,{variant:"ghost",className:"w-full justify-start",asChild:!0,children:(0,n.jsxs)(s(),{href:"/settings?tab=logs",children:[(0,n.jsx)(j.Z,{className:"mr-2 h-4 w-4"}),"Logs"]})}),(0,n.jsx)(A.z,{variant:"ghost",className:"w-full justify-start",asChild:!0,children:(0,n.jsxs)(s(),{href:"/contact",children:[(0,n.jsx)(C.Z,{className:"mr-2 h-4 w-4"}),"Contact"]})}),el&&(0,n.jsx)(A.z,{variant:"ghost",className:"w-full justify-start",asChild:!0,children:(0,n.jsxs)(s(),{href:"/admin",children:[(0,n.jsx)(O.Z,{className:"mr-2 h-4 w-4"}),"Admin Dashboard"]})}),(0,n.jsxs)(A.z,{variant:"destructive",onClick:G,className:"w-full justify-start mt-2",children:[(0,n.jsx)(k.Z,{className:"mr-2 h-4 w-4"}),"Log out"]})]})})]})})]})]})})},{}),(0,n.jsxs)(M.DD,{collapsible:"icon",className:"hidden md:flex inset-y-0 left-0 h-screen w-[var(--sidebar-width)] overflow-hidden border-r border-[var(--border-subtle)] [background:var(--bg-sidebar-gradient)] shadow-none group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]",children:[(0,n.jsx)(M.$l,{className:"h-[74px] flex-row items-center justify-between px-6 py-0 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",children:(0,n.jsxs)(s(),{href:"/app",className:"flex items-center group-data-[collapsible=icon]:justify-center",children:[(0,n.jsx)(q.Z,{className:"group-data-[collapsible=icon]:hidden",imageClassName:"h-7 w-7",textClassName:eE}
6),(0,n.jsx)(q.Z,{showText:!1,className:"hidden group-data-[collapsible=icon]:flex",imageClassName:"h-7 w-7"})]})}),(0,n.jsxs)(M.TZ,{className:"px-4 py-2 group-data-[collapsible=icon]:px-3",children:[(0,n.jsxs)(M.Wq,{className:"gap-2",children:[(0,n.jsxs)(M.Uw,{href:"/app",active:"/app"===eO,className:eT("/app"===eO),children:[(0,n.jsx)(N.Z,{className:"h-5 w-5"}),(0,n.jsx)("span",{children:"Dashboard"})]}),(0,n.jsxs)(M.Uw,{href:$.dV,active:eN,className:eT(eN),children:[(0,n.jsx)(f.Z,{className:"h-5 w-5"}),(0,n.jsx)("span",{children:"Chat"})]}),(0,n.jsxs)(M.Uw,{href:"/tools/video-research/v2/tracking",active:ek,className:eT(ek),children:[(0,n.jsx)(c.Z,{className:"h-5 w-5"}),(0,n.jsx)("span",{children:"Video Research"})]}),(0,n.jsxs)(M.Uw,{href:"/tools/script-writer",onClick:eC,active:"/tools/script-writer"===eO,className:eT("/tools/script-writer"===eO),children:[(0,n.jsx)(R.Z,{className:"h-5 w-5"}),(0,n.jsx)("span",{children:"Script Writer"})]}),(0,n.jsxs)(M.Uw,{href:H.xx,active:eR,className:eT(eR),children:[(0,n.jsx)(S.Z,{className:"h-5 w-5"}),(0,n.jsx)("span",{children:"Thumbnails"})]}),(0,n.jsxs)(M.Uw,{href:"/my-channels",active:"/my-channels"===eO,className:eT("/my-channels"===eO),children:[(0,n.jsx)(b.Z,{className:"h-5 w-5"}),(0,n.jsx)("span",{children:"My Channels"})]}),(0,n.jsxs)(M.Uw,{href:"/tools",active:e_,className:eT(e_),children:[(0,n.jsx)(N.Z,{className:"h-5 w-5"}),(0,n.jsx)("span",{children:"More Tools"})]})]}),(0,n.jsx)("div",{className:"my-4 h-px bg-[var(--border-subtle)]"}),(0,n.jsx)(M.Wq,{className:"gap-2",children:(0,n.jsxs)(M.Uw,{href:"https://vid.ai",target:"_blank",rel:"noopener noreferrer","aria-label":"Open VidAI in a new tab",title:"Open VidAI in a new tab",className:"h-11 rounded-xl px-2.5 text-zinc-400 hover:bg-white/[0.04] hover:text-zinc-100 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:gap-0 group-data-[collapsible=icon]:px-0",children:[(0,n.jsx)(m.Z,{className:"h-5 w-5"}),(0,n.jsx)("span",{className:"shrink-0 text-[13px] group-data-[collapsible=icon]:sr-only",children:"Generate Videos"}),(0,n.jsxs)("span",{className:"ml-auto inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded-lg border border-[var(--brand-accent)]/30 bg-[var(--brand-accent)]/10 px-1.5 py-1.5 text-[10px] font-semibold leading-none text-[var(--brand-accent)] group-data-[collapsible=icon]:hidden",children:["Get VidAI",(0,n.jsx)(y.Z,{className:"h-3 w-3"})]})]})})]}),(0,n.jsxs)(M.ZW,{className:"mt-auto px-3.5 pb-4 pt-0 group-data-[collapsible=icon]:px-2",children:[(0,n.jsx)("div",{className:"mb-3 h-px bg-[var(--border-subtle)]"}),(0,n.jsx)("div",{className:"mb-3 rounded-xl border border-[var(--border-subtle)] bg-[var(--bg-panel)] p-2 group-data-[collapsible=icon]:hidden",children:(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2 px-2 py-1 text-sm text-zinc-400",children:[(0,n.jsxs)("span",{children:["Credits: ",eZ(null==eb?void 0:null===(Y=eb.user)||void 0===Y?void 0:Y.credits)]}),(0,n.jsx)("button",{onClick:()=>ev(!0),disabled:ef,className:"flex items-center gap-1 text-xs font-medium text-[var(--brand-accent)] transition hover:text-red-300 disabled:opacity-60",children:ef?(0,n.jsx)("span",{className:"text-xs animate-bounce",children:"..."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{size:12}),(0,n.jsx)("span",{children:"Add"})]})})]})}),(0,n.jsx)(U.Vq,{open:eg,onOpenChange:ev,children:(0,n.jsxs)(U.cZ,{className:"sm:max-w-sm",children:[(0,n.jsxs)(U.fK,{children:[(0,n.jsx)(U.$N,{className:"flex items-center gap-2",children:"Buy Credits"}),(0,n.jsxs)(U.Be,{children:["Premium credits are used for premium models like Opus across all tools."," ",(0,n.jsx)("a",{href:"/pricing",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 hover:text-foreground transition-colors",children:"See pricing for details."})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 py-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:"Current balance"}),(0,n.jsxs)("span",{className:"font-semibold",children:[eZ(null==eb?void 0:null===(X=eb.user)||void 0===X?void 0:X.credits)," credits"]})]}),(0,n.jsx)("div",{className:"border rounded-lg p-4 flex flex-col gap-3 bg-zinc-50 dark:bg-zinc-900",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("span",{className:"font-semibold text-base",children:"100 Credits"}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:"One-time purchase"})]}),(0,n.jsx)("span",{className:"text-xl font-bold",children:"$9"})]})})]}),(0,n.jsx)(U.cN,{children:(0,n.jsx)(A.z,{onClick:eU,disabled:ef,className:"w-full",children:ef?"Redirecting...":"Buy 100 Credits - $9"})})]})}),(0,n.jsxs)(D.h_,{children:[(0,n.jsx)(D.$F,{asChild:!0,children:(0,n.jsxs)("button",{type:"button",className:"flex w-full items-center gap-3 rounded-xl px-2 py-2 text-left transition hover:bg-white/[0.04] group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:gap-0 group-data-[collapsible=icon]:px-0",children:[(0,n.jsxs)(z.qE,{className:"h-10 w-10",children:[(0,n.jsx)(z.F$,{src:null==eb?void 0:null===(J=eb.user)||void 0===J?void 0:J.image,alt:ey}),(0,n.jsx)(z.Q5,{children:eB}
6)]}),(0,n.jsxs)("span",{className:"min-w-0 flex-1 group-data-[collapsible=icon]:sr-only",children:[(0,n.jsx)("span",{className:"block truncate text-sm font-medium text-white",children:ey}),(0,n.jsx)("span",{className:"block truncate text-xs text-zinc-500",children:(e=>{let t=String(e||"FREE").toLowerCase();return"".concat(t.charAt(0).toUpperCase()).concat(t.slice(1)," Plan")})(ex)})]}),(0,n.jsx)(_.Z,{className:"h-4 w-4 text-zinc-500 group-data-[collapsible=icon]:hidden"})]})}),(0,n.jsxs)(D.AW,{side:"top",align:"end",sideOffset:8,className:"w-60 border-[var(--border-subtle)] bg-[var(--bg-panel)] p-2 text-zinc-200 shadow-2xl shadow-black/40",children:[(0,n.jsxs)(D.Ju,{className:"px-2 py-1.5",children:[(0,n.jsx)("span",{className:"block truncate text-sm text-white",children:ey}),(0,n.jsx)("span",{className:"block truncate text-xs font-normal text-zinc-500",children:ew})]}),(0,n.jsx)(D.VD,{className:"bg-[var(--border-subtle)]"}),(0,n.jsxs)(D.Qk,{children:[(0,n.jsx)(D.Xi,{asChild:!0,children:(0,n.jsxs)(s(),{href:"/settings?tab=profile",className:"cursor-pointer gap-2 text-zinc-200 focus:text-white",children:[(0,n.jsx)(w.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{children:"Account"})]})}),(0,n.jsx)(D.Xi,{asChild:!0,children:(0,n.jsxs)(s(),{href:"/my-channels",className:"cursor-pointer gap-2 text-zinc-200 focus:text-white",children:[(0,n.jsx)(b.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{children:"My Channels"})]})}),(0,n.jsx)(D.Xi,{asChild:!0,children:(0,n.jsxs)(s(),{href:"/settings?tab=billing",className:"cursor-pointer gap-2 text-zinc-200 focus:text-white",children:[(0,n.jsx)(x.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{children:"Billing"})]})}),(0,n.jsx)(D.Xi,{asChild:!0,children:(0,n.jsxs)(s(),{href:"/settings?tab=usage",className:"cursor-pointer gap-2 text-zinc-200 focus:text-white",children:[(0,n.jsx)(E.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{children:"Usage"})]})}),(0,n.jsx)(D.Xi,{asChild:!0,children:(0,n.jsxs)(s(),{href:"/settings?tab=logs",className:"cursor-pointer gap-2 text-zinc-200 focus:text-white",children:[(0,n.jsx)(j.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{children:"Logs"})]})})]}),(0,n.jsx)(D.VD,{className:"bg-[var(--border-subtle)]"}),(0,n.jsxs)(D.Qk,{children:[(0,n.jsx)(D.Xi,{asChild:!0,children:(0,n.jsxs)(s(),{href:"/contact",className:"cursor-pointer gap-2 text-zinc-200 focus:text-white",children:[(0,n.jsx)(C.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{children:"Contact"})]})}),el&&(0,n.jsx)(D.Xi,{asChild:!0,children:(0,n.jsxs)(s(),{href:"/admin",className:"cursor-pointer gap-2 text-zinc-200 focus:text-white",children:[(0,n.jsx)(O.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{children:"Admin Dashboard"})]})})]}),(0,n.jsx)(D.VD,{className:"bg-[var(--border-subtle)]"}),(0,n.jsxs)(D.Xi,{onClick:G,className:"cursor-pointer gap-2 text-red-400 focus:bg-red-500/10 focus:text-red-300",children:[(0,n.jsx)(k.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{children:"Log out"})]})]})]})]})]})]})}},199:function(e,t,r){"use strict";var n=r(85893),o=r(25675),i=r.n(o),a=r(36695);t.Z=e=>{let{className:t,imageClassName:r,textClassName:o,showText:s=!0,priority:l=!1,alt:u="tubemagic"}=e;return(0,n.jsxs)("div",{className:(0,a.cn)("flex items-center gap-2",t),children:[(0,n.jsx)(i(),{src:"/assets/tubemagic-logos/tubemagic_sparkle_logo.png",alt:s?"":u,"aria-hidden":!!s||void 0,width:24,height:24,priority:l,className:(0,a.cn)("h-6 w-6 object-contain",r)}),s&&(0,n.jsx)("span",{className:(0,a.cn)("font-bold text-lg tracking-tight lowercase",o),children:"tubemagic"})]})}},66953:function(e,t,r){"use strict";r.d(t,{qE:function(){return E},Q5:function(){return C},F$:function(){return j}});var n=r(85893),o=r(67294),i=globalThis?.document?o.useLayoutEffect:()=>{};r(73935);var a=o.forwardRef((e,t)=>{let{children:r,...i}=e,a=o.Children.toArray(r),l=a.find(u);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,n.jsx)(s,{...i,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,n.jsx)(s,{...i,ref:t,children:r})});a.displayName="Slot";var s=o.forwardRef((e,t)=>
6{let{children:r,...n}=e;if(o.isValidElement(r)){let e,i;let a=(i=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.ref:(i=(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.props.ref:r.props.ref||r.ref;return o.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n],a=/^on[A-Z]/.test(n);a?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return o.Children.count(r)>1?o.Children.only(null):null});s.displayName="SlotClone";var l=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});function u(e){return o.isValidElement(e)&&e.type===l}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=o.forwardRef((e,r)=>{let{asChild:o,...i}=e,s=o?a:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),d="Avatar",[f,p]=function(e,t=[]){let r=[],i=()=>{let t=r.map(e=>o.createContext(e));return function(r){let n=r?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return i.scopeName=e,[function(t,i){let a=o.createContext(i),s=r.length;function l(t){let{scope:r,children:i,...l}=t,u=r?.[e][s]||a,c=o.useMemo(()=>l,Object.values(l));return(0,n.jsx)(u.Provider,{value:c,children:i})}return r=[...r,i],l.displayName=t+"Provider",[l,function(r,n){let l=n?.[e][s]||a,u=o.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e),i=o[`__scope${n}`];return{...t,...i}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(i,...t)]}(d),[h,m]=f(d),g=o.forwardRef((e,t)=>{let{__scopeAvatar:r,...i}=e,[a,s]=o.useState("idle");return(0,n.jsx)(h,{scope:r,imageLoadingStatus:a,onImageLoadingStatusChange:s,children:(0,n.jsx)(c.span,{...i,ref:t})})});g.displayName=d;var v="AvatarImage",b=o.forwardRef((e,t)=>{let{__scopeAvatar:r,src:a,onLoadingStatusChange:s=()=>{},...l}=e,u=m(v,r),d=function(e){let[t,r]=o.useState("idle");return i(()=>{if(!e){r("error");return}let t=!0,n=new window.Image,o=e=>()=>{t&&r(e)};return r("loading"),n.onload=o("loaded"),n.onerror=o("error"),n.src=e,()=>{t=!1}},[e]),t}(a),f=function(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}(e=>{s(e),u.onImageLoadingStatusChange(e)});return i(()=>{"idle"!==d&&f(d)},[d,f]),"loaded"===d?(0,n.jsx)(c.img,{...l,ref:t,src:a}):null});b.displayName=v;var y="AvatarFallback",w=o.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:i,...a}=e,s=m(y,r),[l,u]=o.useState(void 0===i);return o.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(e)}},[i]),l&&"loaded"!==s.imageLoadingStatus?(0,n.jsx)(c.span,{...a,ref:t}):null});w.displayName=y;var x=r(36695);let E=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(g,{ref:t,className:(0,x.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",r),...o})});E.displayName=g.displayName;let j=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(b,{ref:t,className:(0,x.cn)("aspect-square h-full w-full",r),...o})});j.displayName=b.displayName;let C=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(w,{ref:t,className:(0,x.cn)("flex h-full w-full items-center justify-center rounded-full bg-zinc-100 dark:bg-zinc-800",r),...o})});C.displayName=w.displayName},49267:function(e,t,r){"use strict";r.d(t,{d:function(){return l},z:function(){return u}});var n=r(85893),o=r(67294),i=r(4222),a=r(12003),s=r(36695);let l=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:ring-offset-zinc-950 dark:focus-visible:ring-zinc-300",{variants:{variant:{default:"bg-zinc-900 text-zinc-50 hover:bg-zinc-900/90 dark:bg-zinc-50 dark:text-zinc-900 dark:hover:bg-zinc-50/90",destructive:"bg-red-500 text-zinc-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-zinc-50 dark:hover:bg-red-900/90",outline:"border border-zinc-200 bg-white hover:bg-zinc-100 hover:text-zinc-900 dark:border-zinc-800 dark:bg-zinc-950 dark:hover:bg-zinc-800 dark:hover:text-zinc-50",secondary:"bg-zinc-100 text-zinc-900 hover:bg-zinc-100/80 dark:bg-zinc-800 dark:text-zinc-50 dark:hover:bg-zinc-800/80",ghost:"hover:bg-zinc-100 hover:text-zinc-900 dark:hover:bg-zinc-800 dark:hover:text-zinc-50",link:"text-zinc-900 underline-offset-4 hover:underline dark:text-zinc-50"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),u=o.forwardRef((e,t)=>
6{let{className:r,variant:o,size:a,asChild:u=!1,...c}=e,d=u?i.g7:"button";return(0,n.jsx)(d,{className:(0,s.cn)(l({variant:o,size:a,className:r})),ref:t,...c})});u.displayName="Button"},83855:function(e,t,r){"use strict";r.d(t,{$N:function(){return m},Be:function(){return g},Vq:function(){return l},cN:function(){return h},cZ:function(){return f},fK:function(){return p},hg:function(){return u}});var n=r(85893),o=r(67294),i=r(63047),a=r(41352),s=r(36695);let l=i.fC,u=i.xz,c=i.h_;i.x8;let d=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(i.aV,{ref:t,className:(0,s.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...o})});d.displayName=i.aV.displayName;let f=o.forwardRef((e,t)=>{let{className:r,children:o,...l}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(d,{}),(0,n.jsxs)(i.VY,{ref:t,className:(0,s.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-zinc-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-zinc-800 dark:bg-zinc-950",r),...l,children:[o,(0,n.jsxs)(i.x8,{className:"absolute right-4 top-4 roun
6ded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-zinc-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-500 dark:ring-offset-zinc-950 dark:focus:ring-zinc-300 dark:data-[state=open]:bg-zinc-800 dark:data-[state=open]:text-zinc-400",children:[(0,n.jsx)(a.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=i.VY.displayName;let p=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};p.displayName="DialogHeader";let h=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};h.displayName="DialogFooter";let m=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(i.Dx,{ref:t,className:(0,s.cn)("text-lg font-semibold leading-none tracking-tight",r),...o})});m.displayName=i.Dx.displayName;let g=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(i.dk,{ref:t,className:(0,s.cn)("text-sm text-zinc-500 dark:text-zinc-400",r),...o})});g.displayName=i.dk.displayName},5521:function(e,t,r){"use strict";
6r.d(t,{h_:function(){return eY},AW:function(){return e1},Qk:function(){return eJ},Xi:function(){return e2},Ju:function(){return e4},VD:function(){return e3},$F:function(){return eX}});var n=r(85893),o=r(67294),i=r(87462),a=r(36206),s=r(28771),l=r(25360),u=r(77342),c=r(64757),d=r(13879),f=r(78990),p=r(40856),h=r(27552),m=r(95420),g=r(91276),v=r(46066),b=r(42651),y=r(29115),w=r(66681);let x=(0,o.forwardRef)((e,t)=>{let{children:r,...n}=e,a=o.Children.toArray(r),s=a.find(C);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null);return(0,o.createElement)(E,(0,i.Z)({},n,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,r):null)}return(0,o.createElement)(E,(0,i.Z)({},n,{ref:t}),r)});x.displayName="Slot";let E=(0,o.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n],a=/^on[A-Z]/.test(n);a?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?(0,s.F)(t,r.ref):r.ref}):o.Children.count(r)>1?o.Children.only(null):null});E.displayName="SlotClone";let j=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function C(e){return(0,o.isValidElement)(e)&&e.type===j}var O=r(79698),k=r(23541),N=r(91202);let R=["Enter"," "],S=["ArrowUp","PageDown","End"],_=["ArrowDown","PageUp","Home",...S],T={ltr:[...R,"ArrowRight"],rtl:[...R,"ArrowLeft"]},P={ltr:["ArrowLeft"],rtl:["ArrowRight"]},A="Menu",[L,M,I]=(0,d.B)(A),[D,z]=(0,l.b)(A,[I,v.D7,w.Pc]),U=(0,v.D7)(),F=(0,w.Pc)(),[B,Z]=D(A),[W,V]=D(A),$=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e,a=U(r);return(0,o.createElement)(v.ee,(0,i.Z)({},a,n,{ref:t}))}),H="MenuPortal",[q,G]=D(H,{forceMount:void 0}),K="MenuContent",[Y,X]=D(K),J=(0,o.forwardRef)((e,t)=>{let r=G(K,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,s=Z(K,e.__scopeMenu),l=V(K,e.__scopeMenu);return(0,o.createElement)(L.Provider,{scope:e.__scopeMenu},(0,o.createElement)(y.z,{present:n||s.open},(0,o.createElement)(L.Slot,{scope:e.__scopeMenu},l.modal?(0,o.createElement)(Q,(0,i.Z)({},a,{ref:t})):(0,o.createElement)(ee,(0,i.Z)({},a,{ref:t})))))}),Q=(0,o.forwardRef)((e,t)=>{let r=Z(K,e.__scopeMenu),n=(0,o.useRef)(null),l=(0,s.e)(t,n);return(0,o.useEffect)(()=>{let e=n.current;if(e)return(0,k.Ry)(e)},[]),(0,o.createElement)(et,(0,i.Z)({},e,{ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),ee=(0,o.forwardRef)((e,t)=>{let r=Z(K,e.__scopeMenu);return(0,o.createElement)(et,(0,i.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),et=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:f,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:y,onInteractOutside:E,onDismiss:j,disableOutsideScroll:C,...O}=e,k=Z(K,r),R=V(K,r),T=U(r),P=F(r),A=M(r),[L,I]=(0,o.useState)(null),D=(0,o.useRef)(null),z=(0,s.e)(t,D,k.onContentChange),B=(0,o.useRef)(0),W=(0,o.useRef)(""),$=(0,o.useRef)(0),H=(0,o.useRef)(null),q=(0,o.useRef)("right"),G=(0,o.useRef)(0),X=C?N.Z:o.Fragment,J=C?{as:x,allowPinchZoom:!0}:void 0,Q=e=>{var t,r;let n=W.current+e,o=A().filter(e=>!e.disabled),i=document.activeElement,a=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,s=o.map(e=>e.textValue),l=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0]),i=o?t[0]:t,a=r?e.indexOf(r):-1,s=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length])),l=1===i.length;l&&(s=s.filter(e=>e!==r));let u=s.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return u!==r?u:void 0}(s,n,a),u=null===(r=o.find(e=>e.textValue===l))||void 0===r?void 0:r.ref.current;!function e(t){W.current=t,window.clearTimeout(B.current),""!==t&&(B.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>
6u.focus())};(0,o.useEffect)(()=>()=>window.clearTimeout(B.current),[]),(0,h.EW)();let ee=(0,o.useCallback)(e=>{var t,r;let n=q.current===(null===(t=H.current)||void 0===t?void 0:t.side);return n&&function(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y,c=s>n!=u>n&&r<(l-a)*(n-s)/(u-s)+a;c&&(o=!o)}return o}(r,t)}(e,null===(r=H.current)||void 0===r?void 0:r.area)},[]);return(0,o.createElement)(Y,{scope:r,searchRef:W,onItemEnter:(0,o.useCallback)(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:(0,o.useCallback)(e=>{var t;ee(e)||(null===(t=D.current)||void 0===t||t.focus(),I(null))},[ee]),onTriggerLeave:(0,o.useCallback)(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:$,onPointerGraceIntentChange:(0,o.useCallback)(e=>{H.current=e},[])},(0,o.createElement)(X,J,(0,o.createElement)(m.M,{asChild:!0,trapped:l,onMountAutoFocus:(0,a.M)(u,e=>{var t;e.preventDefault(),null===(t=D.current)||void 0===t||t.focus()}),onUnmountAutoFocus:c},(0,o.createElement)(p.XB,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:y,onInteractOutside:E,onDismiss:j},(0,o.createElement)(w.fC,(0,i.Z)({asChild:!0},P,{dir:R.dir,orientation:"vertical",loop:n,currentTabStopId:L,onCurrentTabStopIdChange:I,onEntryFocus:(0,a.M)(f,e=>{R.isUsingKeyboardRef.current||e.preventDefault()})}),(0,o.createElement)(v.VY,(0,i.Z)({role:"menu","aria-orientation":"vertical","data-state":eE(k.open),"data-radix-menu-content":"",dir:R.dir},T,O,{ref:z,style:{outline:"none",...O.style},onKeyDown:(0,a.M)(O.onKeyDown,e=>{let t=e.target,r=t.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;r&&("Tab"===e.key&&e.preventDefault(),!n&&o&&Q(e.key));let i=D.current;if(e.target!==i||!_.includes(e.key))return;e.preventDefault();let a=A().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);S.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,a.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(B.current),W.current="")}),onPointerMove:(0,a.M)(e.onPointerMove,eO(e=>{let t=e.target,r=G.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>G.current?"right":"left";q.current=t,G.current=e.clientX}}))})))))))}),er=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,o.createElement)(c.WV.div,(0,i.Z)({role:"group"},n,{ref:t}))}),en=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,o.createElement)(c.WV.div,(0,i.Z)({},n,{ref:t}))}),eo="MenuItem",ei="menu.itemSelect",ea=(0,o.forwardRef)((e,t)=>{let{disabled:r=!1,onSelect:n,...l}=e,u=(0,o.useRef)(null),d=V(eo,e.__scopeMenu),f=X(eo,e.__scopeMenu),p=(0,s.e)(t,u),h=(0,o.useRef)(!1);return(0,o.createElement)(es,(0,i.Z)({},l,{ref:p,disabled:r,onClick:(0,a.M)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(ei,{bubbles:!0,cancelable:!0});e.addEventListener(ei,e=>null==n?void 0:n(e),{once:!0}),(0,c.jH)(e,t),t.defaultPrevented?h.current=!1:d.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),h.current=!0},onPointerUp:(0,a.M)(e.onPointerUp,e=>{var t;h.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;!r&&(!t||" "!==e.key)&&R.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),es=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:l,...u}=e,d=X(eo,r),f=F(r),p=(0,o.useRef)(null),h=(0,s.e)(t,p),[m,g]=(0,o.useState)(!1),[v,b]=(0,o.useState)("");return(0,o.useEffect)(()=>{let e=p.current;if(e){var t;b((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[u.children]),(0,o.createElement)(L.ItemSlot,{scope:r,disabled:n,textValue:null!=l?l:v},(0,o.createElement)(w.ck,(0,i.Z)({asChild:!0},f,{focusable:!n}),(0,o.createElement)(c.WV.div,(0,i.Z)({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},u,{ref:h,onPointerMove:(0,a.M)(e.onPointerMove,eO(e=>{if(n)d.onItemLeave(e);else if(d.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;
6t.focus()}})),onPointerLeave:(0,a.M)(e.onPointerLeave,eO(e=>d.onItemLeave(e))),onFocus:(0,a.M)(e.onFocus,()=>g(!0)),onBlur:(0,a.M)(e.onBlur,()=>g(!1))}))))}),el=(0,o.forwardRef)((e,t)=>{let{checked:r=!1,onCheckedChange:n,...s}=e;return(0,o.createElement)(ep,{scope:e.__scopeMenu,checked:r},(0,o.createElement)(ea,(0,i.Z)({role:"menuitemcheckbox","aria-checked":ej(r)?"mixed":r},s,{ref:t,"data-state":eC(r),onSelect:(0,a.M)(s.onSelect,()=>null==n?void 0:n(!!ej(r)||!r),{checkForDefaultPrevented:!1})})))}),[eu,ec]=D("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),ed=((e,t)=>{let{value:r,onValueChange:n,...a}=e,s=(0,O.W)(n);return(0,o.createElement)(eu,{scope:e.__scopeMenu,value:r,onValueChange:s},(0,o.createElement)(er,(0,i.Z)({},a,{ref:t})))},(0,o.forwardRef)((e,t)=>{let{value:r,...n}=e,s=ec("MenuRadioItem",e.__scopeMenu),l=r===s.value;return(0,o.createElement)(ep,{scope:e.__scopeMenu,checked:l},(0,o.createElement)(ea,(0,i.Z)({role:"menuitemradio","aria-checked":l},n,{ref:t,"data-state":eC(l),onSelect:(0,a.M)(n.onSelect,()=>{var e;return null===(e=s.onValueChange)||void 0===e?void 0:e.call(s,r)},{checkForDefaultPrevented:!1})})))})),ef="MenuItemIndicator",[ep,eh]=D(ef,{checked:!1}),em=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,forceMount:n,...a}=e,s=eh(ef,r);return(0,o.createElement)(y.z,{present:n||ej(s.checked)||!0===s.checked},(0,o.createElement)(c.WV.span,(0,i.Z)({},a,{ref:t,"data-state":eC(s.checked)})))}),eg=(0,o.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,o.createElement)(c.WV.div,(0,i.Z)({role:"separator","aria-orientation":"horizontal"},n,{ref:t}))}),[ev,eb]=((e,t)=>{let{__scopeMenu:r,...n}=e,a=U(r);return(0,o.createElement)(v.Eh,(0,i.Z)({},a,n,{ref:t}))},D("MenuSub")),ey="MenuSubTrigger",ew=(0,o.forwardRef)((e,t)=>{let r=Z(ey,e.__scopeMenu),n=V(ey,e.__scopeMenu),l=eb(ey,e.__scopeMenu),u=X(ey,e.__scopeMenu),c=(0,o.useRef)(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=u,p={__scopeMenu:e.__scopeMenu},h=(0,o.useCallback)(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return(0,o.useEffect)(()=>h,[h]),(0,o.useEffect)(()=>{let e=d.current;return()=>{window.clearTimeout(e),f(null)}},[d,f]),(0,o.createElement)($,(0,i.Z)({asChild:!0},p),(0,o.createElement)(es,(0,i.Z)({id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":eE(r.open)},e,{ref:(0,s.F)(t,l.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.M)(e.onPointerMove,eO(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),h()},100))})),onPointerLeave:(0,a.M)(e.onPointerLeave,eO(e=>{var t,n;h();let o=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,i="right"===t,a=o[i?"left":"right"],s=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:s,y:o.top},{x:s,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.M)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&T[n.dir].includes(t.key)){var i;r.onOpenChange(!0),null===(i=r.content)||void 0===i||i.focus(),t.preventDefault()}})})))}),ex=(0,o.forwardRef)((e,t)=>{let r=G(K,e.__scopeMenu),{forceMount:n=r.forceMount,...l}=e,u=Z(K,e.__scopeMenu),c=V(K,e.__scopeMenu),d=eb("MenuSubContent",e.__scopeMenu),f=(0,o.useRef)(null),p=(0,s.e)(t,f);return(0,o.createElement)(L.Provider,{scope:e.__scopeMenu},(0,o.createElement)(y.z,{present:n||u.open},(0,o.createElement)(L.Slot,{scope:e.__scopeMenu},(0,o.createElement)(et,(0,i.Z)({id:d.contentId,"aria-labelledby":d.triggerId},l,{ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=f.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>{e.target!==d.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,a.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=P[c.dir].includes(e.ke
6y);if(t&&r){var n;u.onOpenChange(!1),null===(n=d.trigger)||void 0===n||n.focus(),e.preventDefault()}})})))))});function eE(e){return e?"open":"closed"}function ej(e){return"indeterminate"===e}function eC(e){return ej(e)?"indeterminate":e?"checked":"unchecked"}function eO(e){return t=>"mouse"===t.pointerType?e(t):void 0}let ek=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:a,modal:s=!0}=e,l=U(t),[u,c]=(0,o.useState)(null),d=(0,o.useRef)(!1),p=(0,O.W)(a),h=(0,f.gm)(i);return(0,o.useEffect)(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,o.createElement)(v.fC,l,(0,o.createElement)(B,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:c},(0,o.createElement)(W,{scope:t,onClose:(0,o.useCallback)(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:h,modal:s},n)))},eN=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,a=Z(H,t);return(0,o.createElement)(q,{scope:t,forceMount:r},(0,o.createElement)(y.z,{present:r||a.open},(0,o.createElement)(b.h,{asChild:!0,container:i},n)))},eR="DropdownMenu",[eS,e_]=(0,l.b)(eR,[z]),eT=z(),[eP,eA]=eS(eR),eL=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...l}=e,u=eA("DropdownMenuTrigger",r),d=eT(r);return(0,o.createElement)($,(0,i.Z)({asChild:!0},d),(0,o.createElement)(c.WV.button,(0,i.Z)({type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},l,{ref:(0,s.F)(t,u.triggerRef),onPointerDown:(0,a.M)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),eM=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,s=eA("DropdownMenuContent",r),l=eT(r),u=(0,o.useRef)(!1);return(0,o.createElement)(J,(0,i.Z)({id:s.contentId,"aria-labelledby":s.triggerId},l,n,{ref:t,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=s.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,a.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!s.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),eI=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eT(r);return(0,o.createElement)(er,(0,i.Z)({},a,n,{ref:t}))}),eD=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eT(r);return(0,o.createElement)(en,(0,i.Z)({},a,n,{ref:t}))}),ez=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eT(r);return(0,o.createElement)(ea,(0,i.Z)({},a,n,{ref:t}))}),eU=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eT(r);return(0,o.createElement)(el,(0,i.Z)({},a,n,{ref:t}))}),eF=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eT(r);return(0,o.createElement)(ed,(0,i.Z)({},a,n,{ref:t}))}),eB=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eT(r);return(0,o.createElement)(em,(0,i.Z)({},a,n,{ref:t}))}),eZ=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eT(r);return(0,o.createElement)(eg,(0,i.Z)({},a,n,{ref:t}))}),eW=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eT(r);return(0,o.createElement)(ew,(0,i.Z)({},a,n,{ref:t}))}),eV=(0,o.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eT(r);return(0,o.createElement)(ex,(0,i.Z)({},a,n,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),e$=e=>{let{__scopeDropdownMenu:t,...r}=e,n=eT(t);return(0,o.createElement)(eN,(0,i.Z)({},n,r))};var eH=r(64998),eq=r(13742),eG=r(50316),eK=r(36695);let eY=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,d=eT(t),f=(0,o.useRef)(null),[p=!1,h]=(0,u.T)({prop:a,defaultProp:s,onChange:l});return(0,o.createElement)(eP,{scope:t,triggerId:(0,g.M)(),triggerRef:f,contentId:(0,g.M)(),open:p,onOpenChange:h,onOpenToggle:(0,o.useCallback)(()=>h(e=>!e),[h]),modal:c},(0,o.createElement)(ek,(0,i.Z)({},d,{open:p,onOpenChange:h,dir:n,modal:c}),r))},eX=eL,eJ=eI,eQ=o.forwardRef((e,t)=>
6{let{className:r,inset:o,children:i,...a}=e;return(0,n.jsxs)(eW,{ref:t,className:(0,eK.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",o&&"pl-8",r),...a,children:[i,(0,n.jsx)(eH.Z,{className:"ml-auto h-4 w-4"})]})});eQ.displayName=eW.displayName;let e0=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(eV,{ref:t,className:(0,eK.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...o})});e0.displayName=eV.displayName;let e1=o.forwardRef((e,t)=>{let{className:r,sideOffset:o=4,...i}=e;return(0,n.jsx)(e$,{children:(0,n.jsx)(eM,{ref:t,sideOffset:o,className:(0,eK.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...i})})});e1.displayName=eM.displayName;let e2=o.forwardRef((e,t)=>{let{className:r,inset:o,...i}=e;return(0,n.jsx)(ez,{ref:t,className:(0,eK.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o&&"pl-8",r),...i})});e2.displayName=ez.displayName;let e5=o.forwardRef((e,t)=>{let{className:r,children:o,checked:i,...a}=e;return(0,n.jsxs)(eU,{ref:t,className:(0,eK.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:i,...a,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(eB,{children:(0,n.jsx)(eq.Z,{className:"h-4 w-4"})})}),o]})});e5.displayName=eU.displayName;let e6=o.forwardRef((e,t)=>{let{className:r,children:o,...i}=e;return(0,n.jsxs)(eF,{ref:t,className:(0,eK.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(eB,{children:(0,n.jsx)(eG.Z,{className:"h-2 w-2 fill-current"})})}),o]})});e6.displayName=eF.displayName;let e4=o.forwardRef((e,t)=>{let{className:r,inset:o,...i}=e;return(0,n.jsx)(eD,{ref:t,className:(0,eK.cn)("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",r),...i})});e4.displayName=eD.displayName;let e3=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(eZ,{ref:t,className:(0,eK.cn)("-mx-1 my-1 h-px bg-muted",r),...o})});e3.displayName=eZ.displayName},83283:function(e,t,r){"use strict";r.d(t,{I:function(){return a}});var n=r(85893),o=r(67294),i=r(36695);let a=o.forwardRef((e,t)=>{let{className:r,type:o,...a}=e;return(0,n.jsx)("input",{type:o,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
6ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...a})});a.displayName="Input"},99723:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var n=r(85893),o=r(67294),i=r(87462),a=r(64757);let s=(0,o.forwardRef)((e,t)=>(0,o.createElement)(a.WV.label,(0,i.Z)({},e,{ref:t,onMouseDown:t=>{var r;null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})));var l=r(12003),u=r(36695);let c=(0,l.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(s,{ref:t,className:(0,u.cn)(c(),r),...o})});d.displayName=s.displayName},51070:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(85893),o=r(67294);r(73935);var i=o.forwardRef((e,t)=>{let{children:r,...i}=e,s=o.Children.toArray(r),u=s.find(l);if(u){let e=u.props.children,r=s.map(t=>t!==u?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,n.jsx)(a,{...i,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,n.jsx)(a,{...i,ref:t,children:r})});i.displayName="Slot";var a=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(o.isValidElement(r)){let e,i;let a=(i=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.ref:(i=(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.props.ref:r.props.ref||r.ref;return o.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n],a=/^on[A-Z]/.test(n);a?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return o.Children.count(r)>1?o.Children.only(null):null});a.displayName="SlotClone";var s=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});function l(e){return o.isValidElement(e)&&e.type===s}var u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=o.forwardRef((e,r)=>{let{asChild:o,...a}=e,s=o?i:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(s,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),c="horizontal",d=["horizontal","vertical"],f=o.forwardRef((e,t)=>{let{decorative:r,orientation:o=c,...i}=e,a=d.includes(o)?o:c;return(0,n.jsx)(u.div,{"data-orientation":a,...r?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},...i,ref:t})});f.displayName="Separator";var p=r(36695);let h=o.forwardRef((e,t)=>{let{className:r,orientation:o="horizontal",decorative:i=!0,...a}=e;return(0,n.jsx)(f,{ref:t,decorative:i,orientation:o,className:(0,p.cn)("shrink-0 bg-zinc-200 dark:bg-zinc-700","horizontal"===o?"h-[1px] w-full":"h-full w-[1px]",r),...a})});h.displayName=f.displayName},74777:function(e,t,r){"use strict";r.d(t,{Ei:function(){return v},Tu:function(){return m},aM:function(){return c},bC:function(){return g},ue:function(){return h},yo:function(){return u}});var n=r(85893),o=r(67294),i=r(63047),a=r(12003),s=r(41352),l=r(36695);let u=i.fC,c=i.xz;i.x8;let d=i.h_,f=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(i.aV,{className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...o,ref:t})});f.displayName=i.aV.displayName;let p=(0,a.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),h=o.forwardRef((e,t)=>
6{let{side:r="right",className:o,children:a,...u}=e;return(0,n.jsxs)(d,{children:[(0,n.jsx)(f,{}),(0,n.jsxs)(i.VY,{ref:t,className:(0,l.cn)(p({side:r}),o),...u,children:[a,(0,n.jsxs)(i.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,n.jsx)(s.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});h.displayName=i.VY.displayName;let m=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};m.displayName="SheetHeader";let g=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(i.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold text-foreground",r),...o})});g.displayName=i.Dx.displayName;let v=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(i.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...o})});v.displayName=i.dk.displayName},57481:function(e,t,r){"use strict";r.d(t,{DD:function(){return j},TZ:function(){return T},ZW:function(){return S},$l:function(){return R},Wq:function(){return I},Uw:function(){return q},Hn:function(){return E},pC:function(){return W},vP:function(){return C}});var n=r(85893),o=r(67294),i=r(4222),a=r(12003),s=r(84297);let l=(0,s.Z)("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),u=(0,s.Z)("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);var c=r(36695),d=r(49267),f=r(83283),p=r(51070),h=r(74777),m=r(12277),g=r(35852),v=r(41664),b=r.n(v);let y=()=>{let[e,t]=o.useState(!1);return o.useEffect(()=>{let e=()=>{t(window.innerWidth<768)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e},w=o.createContext(null);function x(){let e=o.useContext(w);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}function E(e){let{defaultOpen:t=!0,open:r,onOpenChange:i,className:a,style:s,children:l,...u}
6=e,d=y(),[f,p]=o.useState(!1),[h,m]=o.useState(()=>{{let e=localStorage.getItem("sidebarOpen");if(null!==e)return"true"===e}return t}),v=null!=r?r:h,b=o.useCallback(e=>{let t="function"==typeof e?e(v):e;i?i(t):m(t),localStorage.setItem("sidebarOpen",String(t))},[i,v]),x=o.useCallback(()=>d?p(e=>!e):b(e=>!e),[d,b,p]);o.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),x())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[x]);let E=v?"expanded":"collapsed",j=o.useMemo(()=>({state:E,open:v,setOpen:b,isMobile:d,openMobile:f,setOpenMobile:p,toggleSidebar:x}),[E,v,b,d,f,p,x]);return(0,n.jsx)(w.Provider,{value:j,children:(0,n.jsx)(g.pn,{delayDuration:0,children:(0,n.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width-default":"16rem","--sidebar-width-2xl":"17.5rem","--sidebar-width-icon":"4.75rem",...s},className:(0,c.cn)("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-screen w-full [--sidebar-width:var(--sidebar-width-default)] 2xl:[--sidebar-width:var(--sidebar-width-2xl)]",a),...u,children:l})})})}let j=o.forwardRef((e,t)=>{let{side:r="left",variant:o="sidebar",collapsible:i="offcanvas",className:a,children:s,...l}=e,{isMobile:u,state:d,openMobile:f,setOpenMobile:p}=x();return"none"===i?(0,n.jsx)("div",{ref:t,"data-slot":"sidebar",className:(0,c.cn)("bg-sidebar text-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col",a),...l,children:s}):u?(0,n.jsx)(h.yo,{open:f,onOpenChange:p,...l,children:(0,n.jsxs)(h.ue,{ref:t,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-[var(--sidebar-width)] p-0 [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:r,children:[(0,n.jsxs)(h.Tu,{className:"sr-only",children:[(0,n.jsx)(h.bC,{children:"Sidebar"}),(0,n.jsx)(h.Ei,{children:"Displays the mobile sidebar."})]}),(0,n.jsx)("div",{className:"flex h-full w-full flex-col",children:s})]})}):(0,n.jsxs)("div",{ref:t,className:"group peer text-sidebar-foreground hidden md:block","data-state":d,"data-collapsible":"collapsed"===d?i:"","data-variant":o,"data-side":r,"data-slot":"sidebar",children:[(0,n.jsx)("div",{"data-slot":"sidebar-gap",className:(0,c.cn)("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===o||"inset"===o?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),(0,n.jsx)("div",{"data-slot":"sidebar-container",className:(0,c.cn)("fixed inset-y-0 z-10 hidden h-screen w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex","left"===r?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===o||"inset"===o?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=right]:border-l",a),...l,children:(0,n.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:s})})]})});j.displayName="Sidebar";let C=o.forwardRef((e,t)=>{let{className:r,onClick:o,...i}=e,{toggleSidebar:a,open:s}=x();return(0,n.jsxs)(d.z,{ref:t,"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:(0,c.cn)("size-7 rounded-lg",r),onClick:e=>{null==o||o(e),a()},...i,children:[s?(0,n.jsx)(l,{className:"h-5 w-5 text-zinc-500 dark:text-zinc-400"}):(0,n.jsx)(u,{className:"h-5 w-5 text-zinc-500 dark:text-zinc-400"}),(0,n.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});C.displayName="SidebarTrigger";let O=o.forwardRef((e,t)=>{let{className:r,...o}=e,{toggleSidebar:i}=x();return(0,n.jsx)("button",{ref:t,"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:(0,
6c.cn)("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","group-data-[side=left]:cursor-w-resize group-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",r),...o})});O.displayName="SidebarRail";let k=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("main",{ref:t,"data-slot":"sidebar-inset",className:(0,c.cn)("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",r),...o})});k.displayName="SidebarInset";let N=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(f.I,{ref:t,"data-slot":"sidebar-input","data-sidebar":"input",className:(0,c.cn)("bg-background h-8 w-full shadow-none",r),...o})});N.displayName="SidebarInput";let R=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,"data-slot":"sidebar-header","data-sidebar":"header",className:(0,c.cn)("flex flex-col gap-2 p-2",r),...o})});R.displayName="SidebarHeader";let S=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,c.cn)("flex flex-col gap-2 p-2",r),...o})});S.displayName="SidebarFooter";let _=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(p.Z,{ref:t,"data-slot":"sidebar-separator","data-sidebar":"separator",className:(0,c.cn)("bg-sidebar-border mx-2 w-auto",r),...o})});_.displayName="SidebarSeparator";let T=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,"data-slot":"sidebar-content","data-sidebar":"content",className:(0,c.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",r),...o})});T.displayName="SidebarContent";let P=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,"data-slot":"sidebar-group","data-sidebar":"group",className:(0,c.cn)("relative flex w-full min-w-0 flex-col p-2",r),...o})});P.displayName="SidebarGroup";let A=o.forwardRef((e,t)=>{let{className:r,asChild:o=!1,...a}=e,s=o?i.g7:"div";return(0,n.jsx)(s,{ref:t,"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,c.cn)("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",r),...a})});A.displayName="SidebarGroupLabel";let L=o.forwardRef((e,t)=>{let{className:r,asChild:o=!1,...a}=e,s=o?i.g7:"button";return(0,n.jsx)(s,{ref:t,"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:(0,c.cn)("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",r),...a})});L.displayName="SidebarGroupAction";let M=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:(0,c.cn)("w-full text-sm",r),...o})});M.displayName="SidebarGroupContent";let I=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("ul",{ref:t,"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,
6c.cn)("flex w-full min-w-0 flex-col gap-1",r),...o})});I.displayName="SidebarNav";let D=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("li",{ref:t,"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,c.cn)("group/menu-item relative",r),...o})});D.displayName="SidebarNavItem";let z=(0,a.j)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),U=o.forwardRef((e,t)=>{let{asChild:r=!1,isActive:o=!1,variant:a="default",size:s="default",tooltip:l,className:u,...d}=e,f=r?i.g7:"button",{isMobile:p,state:h}=x(),m=(0,n.jsx)(f,{ref:t,"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":s,"data-active":o,className:(0,c.cn)(z({variant:a,size:s}),u),...d});return l?("string"==typeof l&&(l={children:l}),(0,n.jsxs)(g.u,{children:[(0,n.jsx)(g.aJ,{asChild:!0,children:m}),(0,n.jsx)(g._v,{side:"right",align:"center",hidden:"collapsed"!==h||p,...l})]})):m});U.displayName="SidebarMenuButton";let F=o.forwardRef((e,t)=>{let{className:r,asChild:o=!1,showOnHover:a=!1,...s}=e,l=o?i.g7:"button";return(0,n.jsx)(l,{ref:t,"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:(0,c.cn)("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",r),...s})});F.displayName="SidebarMenuAction";let B=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:(0,c.cn)("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r),...o})});B.displayName="SidebarMenuBadge";let Z=o.forwardRef((e,t)=>{let{className:r,showIcon:i=!1,...a}=e,s=o.useMemo(()=>"".concat(Math.floor(40*Math.random())+50,"%"),[]);return(0,n.jsxs)("div",{ref:t,"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:(0,c.cn)("flex h-8 items-center gap-2 rounded-md px-2",r),...a,children:[i&&(0,n.jsx)(m.O,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,n.jsx)(m.O,{className:"h-4 max-w-[var(--skeleton-width)] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]})});Z.displayName="SidebarMenuSkeleton";let W=o.forwardRef((e,t)=>
6{let{className:r,title:i,collapsible:a,defaultOpen:s=!0,onOpenChange:l,children:u,...d}=e,[f,p]=o.useState(s);return(0,n.jsxs)("div",{ref:t,className:(0,c.cn)("py-2",r),...d,children:[i&&(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("h4",{className:"mb-1 px-2 text-xs font-medium text-muted-foreground",children:i}),a&&(0,n.jsx)("button",{onClick:()=>{let e=!f;p(e),l&&l(e)},className:"ml-auto px-2 text-muted-foreground hover:text-foreground",children:f?"−":"+"})]}),(!a||f)&&u]})});W.displayName="SidebarSection";let V=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("ul",{ref:t,"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:(0,c.cn)("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",r),...o})});V.displayName="SidebarMenuSub";let $=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("li",{ref:t,"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:(0,c.cn)("group/menu-sub-item relative",r),...o})});$.displayName="SidebarMenuSubItem";let H=o.forwardRef((e,t)=>{let{asChild:r=!1,size:o="md",isActive:a=!1,className:s,...l}=e,u=r?i.g7:"a";return(0,n.jsx)(u,{ref:t,"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":o,"data-active":a,className:(0,c.cn)("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===o&&"text-xs","md"===o&&"text-sm","group-data-[collapsible=icon]:hidden",s),...l})});H.displayName="SidebarMenuSubButton";let q=o.forwardRef((e,t)=>{let{className:r,active:o,children:i,href:a,...s}=e;return(0,n.jsx)(b(),{ref:t,href:a||"#",className:(0,c.cn)("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-all",o?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground",r),...s,children:i})});q.displayName="SidebarNavLink"},12277:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});var n=r(85893),o=r(36695);function i(e){let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,o.cn)("animate-pulse rounded-md bg-muted",t),...r})}},35852:function(e,t,r){"use strict";r.d(t,{u:function(){return B},_v:function(){return W},pn:function(){return F},aJ:function(){return Z}});var n=r(85893),o=r(67294),i=r(87462),a=r(36206),s=r(28771),l=r(25360),u=r(40856),c=r(91276),d=r(46066),f=(r(42651),r(29115)),p=r(64757);let h=(0,o.forwardRef)((e,t)=>{let{children:r,...n}=e,a=o.Children.toArray(r),s=a.find(v);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null);return(0,o.createElement)(m,(0,i.Z)({},n,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,r):null)}return(0,o.createElement)(m,(0,i.Z)({},n,{ref:t}),r)});h.displayName="Slot";let m=(0,o.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n],a=/^on[A-Z]/.test(n);a?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?(0,s.F)(t,r.ref):r.ref}):o.Children.count(r)>1?o.Children.only(null):null});m.displayName="SlotClone";let g=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function v(e){return(0,o.isValidElement)(e)&&e.type===g}var b=r(77342),y=r(96219);let[w,x]=(0,l.b)("Tooltip",[d.D7]),E=(0,d.D7)(),j="tooltip.open",[C,O]=w("TooltipProvider"),k="Tooltip",[N,R]=w(k),S="TooltipTrigger",_=(0,o.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,l=R(S,r),u=O(S,r),c=E(r),f=(0,o.useRef)(null),h=(0,s.e)(t,f,l.onTriggerChange),m=(0,o.useRef)(!1),g=(0,o.useRef)(!1),v=(0,o.useCallback)(()=>m.current=!1,[]);return(0,o.useEffect)(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,o.createElement)(d.ee,(0,i.Z)({asChild:!0},c),(0,o.createElement)(p.WV.button,(0,i.Z)({"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute},n,{ref:h,onPointerMove:(0,a.M)(e.onPointerMove,e=>{"touch"===e.pointerType||g.current||u.isPointerInTransitRef.current||(l.onTriggerEnter(),g.current=!0)}),onPointerLeave:(0,a.M)(e.onPointerLeave,()=>{l.onTriggerLeave(),g.current=!1}),onPointerDown:(0,a.M)(e.onPointerDown,()=>{m.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,a.M)(e.onFocus,()=>{m.current||l.onOpen()}),onBlur:(0,a.M)(e.onBlur,l.onClose),onClick:(0,a.M)(e.onClick,l.onClose)})))}),[T,P]=w("TooltipPortal",{forceMount:void 0}),A="TooltipContent",L=(0,o.forwardRef)((e,t)=>{let r=P(A,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...s}=e,l=R(A,e.__scopeTooltip);return(0,o.createElement)(f.z,{present:n||l.open},l.disableHoverableContent?(0,o.createElement)(z,(0,i.Z)({side:a},s,{ref:t})):(0,o.createElement)(M,(0,i.Z)({side:a},s,{ref:t})))}),M=(0,o.forwardRef)((e,t)=>{let r=R(A,e.__scopeTooltip),n=O(A,e.__scopeTooltip),a=(0,o.useRef)(null),l=(0,s.e)(t,a),[u,c]=(0,o.useState)(null),{trigger:d,onClose:f}=r,p=a.current,{onPointerInTransitChange:h}=n,m=(0,o.useCallback)(()=>{c(null),h(!1)}
6,[h]),g=(0,o.useCallback)((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},o=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect()),i=function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,o),a=function(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect()),s=function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...i,...a]);c(s),h(!0)},[h]);return(0,o.useEffect)(()=>()=>m(),[m]),(0,o.useEffect)(()=>{if(d&&p){let e=e=>g(e,p),t=e=>g(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[d,p,g,m]),(0,o.useEffect)(()=>{if(u){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==d?void 0:d.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y,c=s>n!=u>n&&r<(l-a)*(n-s)/(u-s)+a;c&&(o=!o)}return o}(r,u);n?m():o&&(m(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,p,u,f,m]),(0,o.createElement)(z,(0,i.Z)({},e,{ref:l}))}),[I,D]=w(k,{isInside:!1}),z=(0,o.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=e,f=R(A,r),p=E(r),{onClose:h}=f;return(0,o.useEffect)(()=>(document.addEventListener(j,h),()=>document.removeEventListener(j,h)),[h]),(0,o.useEffect)(()=>{if(f.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(f.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,h]),(0,o.createElement)(u.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:h},(0,o.createElement)(d.VY,(0,i.Z)({"data-state":f.stateAttribute},p,c,{ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,o.createElement)(g,null,n),(0,o.createElement)(I,{scope:r,isInside:!0},(0,o.createElement)(y.f,{id:f.contentId,role:"tooltip"},a||n))))});var U=r(36695);let F=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:a}=e,[s,l]=(0,o.useState)(!0),u=(0,o.useRef)(!1),c=(0,o.useRef)(0);return(0,o.useEffect)(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,o.createElement)(C,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:(0,o.useCallback)(()=>{window.clearTimeout(c.current),l(!1)},[]),onClose:(0,o.useCallback)(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l(!0),n)},[n]),isPointerInTransitRef:u,onPointerInTransitChange:(0,o.useCallback)(e=>{u.current=e},[]),disableHoverableContent:i},a)},B=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,u=O(k,e.__scopeTooltip),f=E(t),[p,h]=(0,o.useState)(null),m=(0,c.M)(),g=(0,o.useRef)(0),v=null!=s?s:u.disableHoverableContent,y=null!=l?l:u.delayDuration,w=(0,o.useRef)(!1),[x=!1,C]=(0,b.T)({prop:n,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(j))):u.onClose(),null==a||a(e)}}),R=(0,o.useMemo)(()=>x?w.current?"delayed-open":"instant-open":"closed",[x]),S=(0,o.useCallback)(()=>{window.clearTimeout(g.current),w.current=!1,C(!0)},[C]),_=(0,o.useCallback)(()=>{window.clearTimeout(g.current),C(!1)},[C]),T=(0,o.useCallback)(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,C(!0)},y)},[y,C]);return(0,o.useEffect)(()=>()=>window.clearTimeout(g.current),[]),(0,o.createElement)(d.fC,f,(0,o.createElement)(N,{scope:t,contentId:m,open:x,stateAttribute:R,trigger:p,onTriggerChange:h,onTriggerEnter:(0,o.useCallback)(()=>{u.isOpenDelayed?T():S()},[u.isOpenDelayed,T,S]),onTriggerLeave:(0,o.useCallback)(()=>{v?_():window.clearTimeout(g.current)},[_,v]),onOpen:S,onClose:_,disableHoverableContent:v},r))},Z=_,W=o.forwardRef((e,t)=>
6{let{className:r,sideOffset:o=4,...i}=e;return(0,n.jsx)(L,{ref:t,sideOffset:o,className:(0,U.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...i})});W.displayName=L.displayName},649:function(e,t,r){"use strict";let n;r.d(t,{U:function(){return i}});let o=async()=>(n||(n=(n=r.e(5936).then(r.bind(r,65936)).then(e=>{let{default:t}=e;return t.load({monitoring:!1})})).catch(e=>{throw n=null,e})),await n),i=async()=>{let e=await o(),{visitorId:t,version:r}=await e.get();if(!t||!r)throw Error("Browser fingerprint is unavailable");return{visitorId:t,version:r}}},36695:function(e,t,r){"use strict";r.d(t,{cn:function(){return M}});var n=r(90512),o=/^\[(.+)\]$/;function i(e,t){var r=e;return t.split("-").forEach(function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}var a=/\s+/;function s(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){if("string"==typeof t)return t;for(var r,n="",o=0;o<t.length;o++)t[o]&&(r=e(t[o]))&&(n&&(n+=" "),n+=r);return n}(e))&&(n&&(n+=" "),n+=t);return n}function l(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var u=/^\[(?:([a-z-]+):)?(.+)\]$/i,c=/^\d+\/\d+$/,d=new Set(["px","full","screen"]),f=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,h=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function m(e){return x(e)||d.has(e)||c.test(e)||g(e)}function g(e){return R(e,"length",S)}function v(e){return R(e,"size",_)}function b(e){return R(e,"position",_)}function y(e){return R(e,"url",T)}function w(e){return R(e,"number",x)}function x(e){return!Number.isNaN(Number(e))}function E(e){return e.endsWith("%")&&x(e.slice(0,-1))}function j(e){return P(e)||R(e,"number",P)}function C(e){return u.test(e)}function O(){return!0}function k(e){return f.test(e)}function N(e){return R(e,"",A)}function R(e,t,r){var n=u.exec(e);return!!n&&(n[1]?n[1]===t:r(n[2]))}function S(e){return p.test(e)}function _(){return!1}function T(e){return e.startsWith("url(")}function P(e){return Number.isInteger(Number(e))}function A(e){return h.test(e)}var L=function(){for(var e,t,r,n=arguments.length,l=Array(n),u=0;u<n;u++)l[u]=arguments[u];var c=function(n){var a=l[0];return t=(e=function(e){var t,r,n,a,s,l,u,c,d,f,p;return{cache:function(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(o,i){r.set(o,i),++t>e&&(t=0,n=r,r=new Map)}return{get:function(e){var t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set:function(e,t){r.has(e)?r.set(e,t):o(e,t)}}}(e.cacheSize),splitModifiers:(r=1===(t=e.separator||":").length,n=t[0],a=t.length,function(e){for(var o,i=[],s=0,l=0,u=0;u<e.length;u++){var c=e[u];if(0===s){if(c===n&&(r||e.slice(u,u+a)===t)){i.push(e.slice(l,u)),l=u+a;continue}if("/"===c){o=u;continue}}"["===c?s++:"]"===c&&s--}var d=0===i.length?e:e.substring(l),f=d.startsWith("!"),p=f?d.substring(1):d;return{modifiers:i,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}),...(c=e.theme,d=e.prefix,f={nextPart:new Map,validators:[]},(p=Object.entries(e.classGroups),d?p.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}):p).forEach(function(e){var t=e[0];(function e(t,r,n,o){t.forEach(function(t){if("string"==typeof t){(""===t?r:i(r,t)).classGroupId=n;return}if("function"==typeof t){if(t.isThemeGetter){e(t(o),r,n,o);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(function(t){var a=t[0];e(t[1],i(r,a),n,o)})})})(e[1],f,t,c)}),s=e.conflictingClassGroups,u=void 0===(l=e.conflictingClassGroupModifiers)?{}:l,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,r){if(0===t.length)return r.classGroupId;var n=t[0],o=r.nextPart.get(n),i=o?e(t.slice(1),o):void 0;if(i)return i;if(0!==r.validators.length){var a=t.join("-");return r.validators.find(function(e){return(0,e.validator)(a)})?.classGroupId}}(t,f)||function(e){if(o.test(e)){var t=o.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var r=s[e]||[];return t&&u[e]?[].concat(r,u[e]):r}})}}(l.slice(1).reduce(function(e,t){return t(e)},a()))).cache.get,r=e.cache.set,c=d,d(n)};function d(n){var o,i,s,l,u,c=t(n);if(c)return c;var d=(i=(o=e).splitModifiers,s=o.getClassGroupId,l=o.getConflictingClassGroupIds,u=new Set,n.trim().split(a).map(function(e){var t=i(e),r=t.modifiers,n=t.hasImportantModifier,o=t.baseClassName,a=t.maybePostfixModifierPosition,l=s(a?o.substring(0,a):o),u=!!a;if(!l){if(!a||!(l=s(o)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=(function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)}),t.push.apply(t,r.sort()),t})(r).join(":");return{isTailwindClass:!0,modifierId:n?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:u}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId,n=e.hasPostfixModifier,o=t+r;
6return!u.has(o)&&(u.add(o),l(r,n).forEach(function(e){return u.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return r(n,d),d}return function(){return c(s.apply(null,arguments))}}(function(){var e=l("colors"),t=l("spacing"),r=l("blur"),n=l("brightness"),o=l("borderColor"),i=l("borderRadius"),a=l("borderSpacing"),s=l("borderWidth"),u=l("contrast"),c=l("grayscale"),d=l("hueRotate"),f=l("invert"),p=l("gap"),h=l("gradientColorStops"),R=l("gradientColorStopPositions"),S=l("inset"),_=l("margin"),T=l("opacity"),P=l("padding"),A=l("saturate"),L=l("scale"),M=l("sepia"),I=l("skew"),D=l("space"),z=l("translate"),U=function(){return["auto","contain","none"]},F=function(){return["auto","hidden","clip","visible","scroll"]},B=function(){return["auto",C,t]},Z=function(){return[C,t]},W=function(){return["",m]},V=function(){return["auto",x,C]},$=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},H=function(){return["solid","dashed","dotted","double","none"]},q=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},G=function(){return["start","end","center","between","around","evenly","stretch"]},K=function(){return["","0",C]},Y=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},X=function(){return[x,w]},J=function(){return[x,C]};return{cacheSize:500,theme:{colors:[O],spacing:[m],blur:["none","",k,C],brightness:X(),borderColor:[e],borderRadius:["none","","full",k,C],borderSpacing:Z(),borderWidth:W(),contrast:X(),grayscale:K(),hueRotate:J(),invert:K(),gap:Z(),gradientColorStops:[e],gradientColorStopPositions:[E,g],inset:B(),margin:B(),opacity:X(),padding:Z(),saturate:X(),scale:X(),sepia:K(),skew:J(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat($(),[C])}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",j]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",j]}],"grid-cols":[{"grid-cols":[O]}],"col-start-end":[{col:["auto",{span:["full",j]},C]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[O]}],"row-start-end":[{row:["auto",{span:[j]},C]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(G())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(G(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(G(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",C,t]}],"min-w":[{"min-w":["min","max","fit",C,m]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[k]},k,C]}],h:[{h:[C,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",C,m]}],"max-h":[{"max-h":[C,t,"min","max","fit"]}],"font-size":[{text:["base",k,g]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",w]}],"font-family":[{font:[O]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",x,w]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",C,m]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(H(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",m]}],"underline-offset":[{"underline-offset":["auto",C,m]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat($(),[b])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",v]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},y]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}
vendor: 5,054 bytes, line 6
6],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[].concat(H(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(H())}],"outline-offset":[{"outline-offset":[C,m]}],"outline-w":[{outline:[m]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[m]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,N]}],"shadow-color":[{shadow:[O]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":q()}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",k,C]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[A]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[j,C]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
6],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[m,w]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function M(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return L((0,n.W)(t))}},37267:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ex}});var n=r(85893),o=r(67294),i=r(11163),a=r.n(i),s=r(33299),l=r(4283),u=r.n(l),c=function(){},d=c(),f=Object,p=function(e){return e===d},h=function(e){return"function"==typeof e},m=function(e,t){return f.assign({},e,t)},g="undefined",v=function(){return typeof window!=g},b=new WeakMap,y=0,w=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(f(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++y+"~",b.set(e,t),o==Array){for(r=0,t="@";r<e.length;r++)t+=w(e[r])+",";b.set(e,t)}if(o==f){t="#";for(var a=f.keys(e).sort();!p(r=a.pop());)p(e[r])||(t+=r+":"+w(e[r])+",");b.set(e,t)}}return t},x=!0,E=v(),j=typeof document!=g,C=E&&window.addEventListener?window.addEventListener.bind(window):c,O=j?document.addEventListener.bind(document):c,k=E&&window.removeEventListener?window.removeEventListener.bind(window):c,N=j?document.removeEventListener.bind(document):c,R={initFocus:function(e){return O("visibilitychange",e),C("focus",e),function(){N("visibilitychange",e),k("focus",e)}},initReconnect:function(e){var t=function(){x=!0,e()},r=function(){x=!1};return C("online",t),C("offline",r),function(){k("online",t),k("offline",r)}}},S=!v()||"Deno"in window,_=S?o.useEffect:o.useLayoutEffect,T="undefined"!=typeof navigator&&navigator.connection,P=!S&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.saveData),A=function(e){if(h(e))try{e=e()}catch(t){e=""}var t=[].concat(e),r=(e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?w(e):"")?"$swr$"+e:"";return[e,t,r]},L=new WeakMap,M=function(e,t,r,n,o,i,a){void 0===a&&(a=!0);var s=L.get(e),l=s[3],u=s[0][t],c=s[1][t];if(a&&c)for(var d=0;d<c.length;++d)c[d](r,n,o);return i&&(delete l[t],u&&u[0])?u[0](2).then(function(){return e.get(t)}):e.get(t)},I=0,D=function(){return++I},z=function(){for(var e,t,r,n,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e=void 0,t=void 0,r=void 0,n=function(){var e,t,r,n,i,a,s,l,u,c,f,g,v,b,y,w,x,E,j,C;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(O){switch(O.label){case 0:if(e=o[0],t=o[1],r=o[2],a=!!p((i="boolean"==typeof(n=o[3])?{revalidate:n}:n||{}).populateCache)||i.populateCache,s=!1!==i.revalidate,l=!1!==i.rollbackOnError,u=i.optimisticData,f=(c=A(t))[0],g=c[2],!f)return[2];if(v=L.get(e)[2],o.length<3)return[2,M(e,f,e.get(f),d,d,s,!0)];if(b=r,w=D(),v[f]=[w,0],x=!p(u),E=e.get(f),x&&(j=h(u)?u(E):u,e.set(f,j),M(e,f,j)),h(b))try{b=b(e.get(f))}catch(e){y=e}if(!(b&&h(b.then)))return[3,2];return[4,b.catch(function(e){y=e})];case 1:if(b=O.sent(),w!==v[f][0]){if(y)throw y;return[2,b]}
6y&&x&&l&&(a=!0,b=E,e.set(f,E)),O.label=2;case 2:return a&&(y||(h(a)&&(b=a(b,E)),e.set(f,b)),e.set(g,m(e.get(g),{error:y}))),v[f][1]=D(),[4,M(e,f,b,y,d,s,!!a)];case 3:if(C=O.sent(),y)throw y;return[2,a?C:b]}})},new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},U=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},F=function(e,t){if(!L.has(e)){var r=m(R,t),n={},o=z.bind(d,e),i=c;if(L.set(e,[n,{},{},{},o]),!S){var a=r.initFocus(setTimeout.bind(d,U.bind(d,n,0))),s=r.initReconnect(setTimeout.bind(d,U.bind(d,n,1)));i=function(){a&&a(),s&&s(),L.delete(e)}}return[e,o,i]}return[e,L.get(e)[4]]},B=F(new Map),Z=B[0],W=m({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:function(e,t,r,n,o){var i=r.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(p(i)||!(a>i))&&setTimeout(n,s,o)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:function(e,t){return w(e)==w(t)},isPaused:function(){return!1},cache:Z,mutate:B[1],fallback:{}},{isOnline:function(){return x},isVisible:function(){var e=j&&document.visibilityState;return p(e)||"hidden"!==e}}),V=function(e,t){var r=m(e,t);if(t){var n=e.use,o=e.fallback,i=t.use,a=t.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=m(o,a))}return r},$=(0,o.createContext)({}),H=f.defineProperty(function(e){var t=e.value,r=V((0,o.useContext)($),t),n=t&&t.provider,i=(0,o.useState)(function(){return n?F(n(r.cache||Z),t):d})[0];return i&&(r.cache=i[0],r.mutate=i[1]),_(function(){return i?i[2]:d},[]),(0,o.createElement)($.Provider,m(e,{value:r}))},"default",{value:W}),q=()=>({barColors:{0:"red"},shadowBlur:0});let G=async e=>{let t=await fetch(e);return t.json()},K=e=>{throw Error("Error: ".concat(e))};var Y=()=>({fetcher:G,onError:K,refreshInterval:1e3}),X=r(5017);r(7952);var J=r(23084),Q=r(5152),ee=r.n(Q),et=r(9008),er=r.n(et),en=r(4298),eo=r.n(en),ei=r(82010),ea=r(66167),es=r(57481);r(95720);var el=r(649),eu=r(35542);let ec=async e=>{try{return await e.json()}catch(e){return{}}},ed=async()=>{let e;try{return await Promise.race([(0,el.U)(),new Promise((t,r)=>{e=window.setTimeout(()=>r(Error("Browser verification timed out")),eu.Fv)})])}finally{window.clearTimeout(e)}},ef=e=>"string"!=typeof e||!e.startsWith("/")||e.startsWith("//")||e.startsWith(eu.Pg)?null:e,ep=async e=>{if(a().pathname===eu.Pg)return;let t=ef(e);await a().replace({pathname:eu.Pg,query:t?{returnTo:t}:{}})},eh=async e=>{await a().replace({pathname:eu.DV,query:e?{error:e}:{}})},em=e=>{let{children:t}=e,{status:r}=(0,s.useSession)(),l=(0,i.useRouter)(),u=(0,o.useRef)(null),c=(0,o.useRef)(0),[d,f]=(0,o.useState)(!1),p=(0,o.useCallback)(async function(){let{force:e=!1,path:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(l.pathname===eu.Pg||"loading"===r||"unauthenticated"===r&&l.pathname!==eu.DV)return;let n=t||l.asPath,o=Date.now();if(!e&&o-c.current<eu.hh||u.current&&(await u.current,!e))return;c.current=o;let i=(async()=>{try{let e;let t=await ed(),o=new AbortController,i=window.setTimeout(()=>o.abort(),eu.Fv),a={method:"POST",credentials:"same-origin",cache:"no-store",signal:o.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)};try{e=await fetch("/api/auth/device/validate",a)}finally{window.clearTimeout(i)}let s=await ec(e),l=eu.zO.includes(s.code)||!0===s.verificationRequired,u=401===e.status||eu.ve.includes(s.code);if(u&&"authenticated"===r){f(!0),await eh(s.code);return}if(l&&"authenticated"===r||!e.ok&&"authenticated"===r){f(!0),await ep(n);return}e.ok&&!1!==s.valid&&f(!1)}catch(e){console.error("Failed to validate this browser:",e),"authenticated"===r&&(f(!0),await ep(n))}})();u.current=i;try{await i}finally{u.current===i&&(u.current=null)}},[l.asPath,l.pathname,r]);return((0,o.useEffect)(()=>{p({force:!0})}
6,[p]),(0,o.useEffect)(()=>{l.pathname===eu.Pg&&(f(!1),c.current=0)},[l.pathname]),(0,o.useEffect)(()=>{let e=e=>{p({path:e})},t=()=>{p()},r=window.setInterval(()=>p(),eu.GZ);return a().events.on("routeChangeComplete",e),window.addEventListener("focus",t),()=>{a().events.off("routeChangeComplete",e),window.removeEventListener("focus",t),window.clearInterval(r)}},[p]),l.pathname===eu.Pg)?t:d?(0,n.jsx)("main",{className:"flex min-h-screen items-center justify-center bg-zinc-950 px-4 text-zinc-200",children:(0,n.jsx)("p",{className:"text-sm",children:"Verifying this browser…"})}):t};var eg=e=>{let{children:t}=e;return eu.xl?t:(0,n.jsx)(em,{children:t})};let ev=ee()(()=>r.e(2752).then(r.bind(r,22752)),{loadableGenerated:{webpack:()=>[22752]},ssr:!1}),eb=["/tools/video-research/v2"],ey=e=>!!e&&eb.some(t=>e.startsWith(t)),ew=e=>{let{children:t}=e,{status:r}=(0,s.useSession)(),n=(0,o.useCallback)(async()=>{if(!eu.xl&&"authenticated"===r)try{var e;let t=await fetch("/api/user/session-limit/status");if(!t.ok)return;let r=await t.json();if((null===(e=r.device)||void 0===e?void 0:e.code)!=="DEVICE_VALID")return;r.isSessionLimitExceeded&&"/session-limit"!==a().pathname&&"/device-verification"!==a().pathname&&await a().replace("/session-limit")}catch(e){console.error("Failed to check session limit:",e)}},[r]);return(0,o.useEffect)(()=>(n(),a().events.on("routeChangeComplete",n),()=>{a().events.off("routeChangeComplete",n)}),[n]),t};var ex=e=>{let{Component:t,pageProps:r}=e,[i,l]=(0,o.useState)(!1),c=Y(),d=()=>{let e={environment:"production",token:"live_0783811edb89c2eab6963a8f899"};r.user&&(e.pwCustomer={email:r.user.userEmail}),(0,ea.J4)(e).then(e=>{})};return(0,o.useEffect)(()=>{d();let e=[{src:"https://www.googletagmanager.com/gtag/js?id=AW-666807682",async:!0,attributes:{"data-script-id":"gtag-js"}},{content:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'AW-666807682');\n ",attributes:{"data-script-id":"gtag-inline"}},{src:"https://174342.t.hyros.com/v1/lst/universal-script?ph=f83aeee371eeb73c3df3ec4b289c4e2b5ef4624828df38da70e6da6985714cb8&tag=!clicked&ref_url="+encodeURI(document.URL),attributes:{"data-script-id":"hyros"}},{src:"https://plausible.io/js/pa-hv9_LevBlPZsJcXu2RuJu.js",async:!0,attributes:{"data-script-id":"plausible-js"}},{content:"window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init()",attributes:{"data-script-id":"plausible-inline"}}];return e.forEach(e=>{let{src:t,content:r,async:n,defer:o,attributes:i}=e,a=document.createElement("script");t&&(a.src=t),r&&(a.innerHTML=r),n&&(a.async=n),o&&(a.defer=o),i&&Object.entries(i).forEach(e=>{let[t,r]=e;a.setAttribute(t,r)}),document.head.appendChild(a)}),()=>{e.forEach(e=>{let{attributes:t}=e,r=null==t?void 0:t["data-script-id"];if(!r)return;let n=document.querySelector('script[data-script-id="'.concat(r,'"]'));n&&document.head.removeChild(n)})}},[]),(0,o.useEffect)(()=>{let e=e=>{if(ey(a().asPath)||ey(e)){l(!1);return}l(!0)},t=()=>l(!1);return a().events.on("routeChangeStart",e),a().events.on("routeChangeComplete",t),a().events.on("routeChangeError",t),()=>{a().events.off("routeChangeStart",e),a().events.off("routeChangeComplete",t),a().events.off("routeChangeError",t)}},[]),u().config(q()),(0,n.jsx)(s.SessionProvider,{session:r.session,children:(0,n.jsx)(eg,{children:(0,n.jsx)(ew,{children:(0,n.jsxs)(H,{value:c,children:[(0,n.jsx)(ev,{}),(0,n.jsxs)(X.ZP,{taggedEvents:!0,domain:"tubemagic.com",customDomain:"https://plausible.tubemagic.com",children:[i&&(0,n.jsx)(u(),{}),(0,n.jsxs)(er(),{children:[(0,n.jsx)("title",{children:"TubeMagic - AI Tools to Help You With YouTube"}),(0,n.jsx)("meta",{name:"description",content:"TubeMagic is a suite of online tools designed to help you succeed with YouTube. Including AI titles, descriptions, tags, and scripts designed to help you get more views and subscribers."}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,n.jsx)("meta",{name:"keywords",content:"youtube scripts, AI script generator, viral videos, youtube content, video scripts, ai writing, youtube tools"}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:url",content:"https://tubemagic.com"}),(0,n.jsx)("meta",{property:"og:title",content:"TubeMagic - AI Tools to Help You With YouTube"}),(0,n.jsx)("meta",{property:"og:description",content:"TubeMagic is a suite of online tools designed to help you succeed with YouTube. Including AI titles, descriptions, tags, and scripts designed to help you get more views and subscribers."}),(0,n.jsx)("meta",{property:"og:image",content:"".concat("https://tubemagic.com","/og-image.jpg")}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{name:"twitter:title",content:"TubeMagic - AI Tools to Help You With YouTube"}),(0,n.jsx)("meta",{name:"twitter:description",content:"TubeMagic is a suite of online tools designed to help you succeed with YouTube. Including AI titles, descriptions, tags, and scripts designed to help you get more views and subscribers."}),(0,n.jsx)("meta",{name:"twitter:image",content:"".concat("https://tubemagic.com","/og-image.jpg")}),(0,n.jsx)("link",{rel:"icon",href:"/assets/favicon/favicon.ico"},"favicon-ico"),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/assets/favicon/favicon-32x32.png"},"favicon-32"),(0,n.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/assets/favicon/favicon-16x16.png"},"favicon-16"),(0,n.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/assets/favicon/apple-touch-icon.png"},"apple-touch-icon"),(0,n.jsx)("link",{rel:"manifest",href:"/assets/favicon/site.webmanifest"},"manifest"),(0,n.jsx)("meta",{name:"theme-color",content:"#121315"},"theme-color"),(0,n.jsx)(eo(),{async:!0,src:"https://www.googletagmanager.com/gtag/js?i
6d=AW-666807682"}),(0,n.jsx)(eo(),{children:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', 'AW-666807682');\n "}),(0,n.jsx)(eo(),{children:"\n var head = document.head;\n var script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = \"https://174342.t.hyros.com/v1/lst/universal-script?ph=f83aeee371eeb73c3df3ec4b289c4e2b5ef4624828df38da70e6da6985714cb8&tag=!clicked&ref_url=\" + encodeURI(document.URL);\n head.appendChild(script);\n "}),(0,n.jsx)(eo(),{async:!0,src:"https://plausible.io/js/pa-hv9_LevBlPZsJcXu2RuJu.js"}),(0,n.jsx)(eo(),{children:"\n window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};\n plausible.init()\n "})]}),(0,n.jsx)(ei.f,{attribute:"class",defaultTheme:"dark",children:(0,n.jsx)(es.Hn,{children:(0,n.jsx)("main",{className:"".concat(J.j.className," w-full"),children:(0,n.jsx)(t,{...r})})})})]})]})})})})}},79351:function(e,t,r){"use strict";r.d(t,{A:function(){return s},H:function(){return a}});var n=r(85893),o=r(67294);let i=(0,o.createContext)(),a=e=>{let{children:t}=e,[r,a]=(0,o.useState)(!1);return(0,n.jsx)(i.Provider,{value:{isNewScriptClicked:r,handleNewScriptClick:()=>{a(!0)},resetNewScriptClick:()=>{a(!1)}},children:t})},s=()=>(0,o.useContext)(i)},7952:function(){},5152:function(e,t,r){e.exports=r(95677)},9008:function(e,t,r){e.exports=r(42636)},25675:function(e,t,r){e.exports=r(32555)},41664:function(e,t,r){e.exports=r(95569)},11163:function(e,t,r){e.exports=r(96885)},4298:function(e,t,r){e.exports=r(85442)},34155:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},71642:function(e,t,r){"use strict";r.d(t,{Av:function(){return a},pF:function(){return n},xv:function(){return i},zi:function(){return o}});var n="right-scroll-bar-position",o="width-before-scroll-bar",i="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},37087:function(e,t,r){"use strict";r.d(t,{jp:function(){return m}});var n=r(67294),o=r(6525),i=r(71642),a={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},l=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[s(r),s(n),s(o)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return a;var t=l(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},c=(0,o.Ws)(),d="data-scroll-locked",f=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat(i.xv," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";
6")].filter(Boolean).join(""),"\n }\n \n .").concat(i.pF," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(i.zi," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(i.pF," .").concat(i.pF," {\n right: 0 ").concat(n,";\n }\n \n .").concat(i.zi," .").concat(i.zi," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(d,"] {\n ").concat(i.Av,": ").concat(l,"px;\n }\n")},p=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},h=function(){n.useEffect(function(){return document.body.setAttribute(d,(p()+1).toString()),function(){var e=p()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},m=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;h();var a=n.useMemo(function(){return u(i)},[i]);return n.createElement(c,{styles:f(a,!t,i,r?"":"!important")})}},91202:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=r(67294),i=r(71642),a=r(99495),s=(0,r(87122)._)(),l=function(){},u=o.forwardRef(function(e,t){var r=o.useRef(null),i=o.useState({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:l}),u=i[0],c=i[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,b=e.noIsolation,y=e.inert,w=e.allowPinchZoom,x=e.as,E=void 0===x?"div":x,j=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),C=(0,a.q)([r,t]),O=n(n({},j),u);return o.createElement(o.Fragment,null,m&&o.createElement(v,{sideCar:s,removeScrollBar:h,shards:g,noIsolation:b,inert:y,setCallbacks:c,allowPinchZoom:!!w,lockRef:r}),d?o.cloneElement(o.Children.only(f),n(n({},O),{ref:C})):o.createElement(E,n({},O,{className:p,ref:C}),f))});u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},u.classNames={fullWidth:i.zi,zeroRight:i.pF};var c=r(66781),d=r(37087),f=r(6525),p=!1;if("undefined"!=typeof window)try{var h=Object.defineProperty({},"passive",{get:function(){return p=!0,!0}});window.addEventListener("test",h,h),window.removeEventListener("test",h,h)}catch(e){p=!1}var m=!!p&&{passive:!1},g=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},v=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),b(e,r)){var n=y(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},b=function(e,t){return"v"===e?g(t,"overflowY"):g(t,"overflowX")},y=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},w=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{var h=y(e,l),m=h[0],g=h[1]-h[2]-a*m;(m||g)&&b(e,l)&&(f+=g,p+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(o&&0===f||!o&&s>f)?c=!0:!d&&(o&&0===p||!o&&-s>p)&&(c=!0),c},x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E=function(e){return[e.deltaX,e.deltaY]},j=function(e){return e&&"current"in e?e.current:e},C=0,O=[],k=(0,c.L)(s,function(e){var t=o.useRef([]),r=o.useRef([0,0]),n=o.useRef(),i=o.useState(C++)[0],a=o.useState(function(){return(0,f.Ws)()})[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}
6)([e.lockRef.current],(e.shards||[]).map(j),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=x(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=v(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=v(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=o),!o)return!0;var p=n.current||o;return w(p,t,e,"h"===p?l:u,!0)},[]),u=o.useCallback(function(e){if(O.length&&O[O.length-1]===a){var r="deltaY"in e?E(e):x(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(s.current.shards||[]).map(j).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),p=o.useCallback(function(e){r.current=x(e),n.current=void 0},[]),h=o.useCallback(function(t){c(t.type,E(t),t.target,l(t,e.lockRef.current))},[]),g=o.useCallback(function(t){c(t.type,x(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return O.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",u,m),document.addEventListener("touchmove",u,m),document.addEventListener("touchstart",p,m),function(){O=O.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,m),document.removeEventListener("touchmove",u,m),document.removeEventListener("touchstart",p,m)}},[]);var b=e.removeScrollBar,y=e.inert;return o.createElement(o.Fragment,null,y?o.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,b?o.createElement(d.jp,{gapMode:"margin"}):null)}),N=o.forwardRef(function(e,t){return o.createElement(u,n({},e,{ref:t,sideCar:k}))});N.classNames=u.classNames;var R=N},6525:function(e,t,r){"use strict";r.d(t,{Ws:function(){return s}});var n,o=r(67294),i=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a=function(){var e=i();return function(t,r){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},s=function(){var e=a();return function(t){return e(t.styles,t.dynamic),null}}},4283:function(e,t,r){var n=r(67294),o="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:r(5747),i=0,a=function(e){return e.topbar||o};function s(e){return n.useEffect(function(){return 0===i&&a(e).show(),i++,function(){0==--i&&a(e).hide()}},[]),null}s.config=o.config,e.exports=s},5747:function(e,t,r){var n;/*! topbar 0.1.4, 2020-04-27 7 * http://buunguyen.github.io/topbar 8 * Copyright (c) 2019 Buu Nguyen 9 * Licensed under the MIT License */(function(o,i){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],r=0;r<t.length&&!o.requestAnimationFrame;++r)o.requestAnimationFrame=o[t[r]+"RequestAnimationFrame"],o.cancelAnimationFrame=o[t[r]+"CancelAnimationFrame"]||o[t[r]+"CancelRequestAnimationFrame"];o.requestAnimationFrame||(o.requestAnimationFrame=function(t,r){var n=new Date().getTime(),i=Math.max(0,16-(n-e)),a=o.setTimeout(function(){t(n+i)},i);return e=n+i,a}),o.cancelAnimationFrame||(o.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,l,u,c,d=function(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r}
9,f={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},p=function(){a.width=o.innerWidth,a.height=5*f.barThickness;var e=a.getContext("2d");e.shadowBlur=f.shadowBlur,e.shadowColor=f.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var r in f.barColors)t.addColorStop(r,f.barColors[r]);e.lineWidth=f.barThickness,e.beginPath(),e.moveTo(0,f.barThickness/2),e.lineTo(Math.ceil(u*a.width),f.barThickness/2),e.strokeStyle=t,e.stroke()},h=function(){var e=(a=i.createElement("canvas")).style;e.position="fixed",e.top=e.left=e.right=e.margin=e.padding=0,e.zIndex=100001,e.display="none",f.className&&a.classList.add(f.className),i.body.appendChild(a),d(o,"resize",p)},m={config:function(e){for(var t in e)f.hasOwnProperty(t)&&(f[t]=e[t])},show:function(){!c&&(c=!0,null!==l&&o.cancelAnimationFrame(l),a||h(),a.style.opacity=1,a.style.display="block",m.progress(0),f.autoRun&&function e(){s=o.requestAnimationFrame(e),m.progress("+"+.05*Math.pow(1-Math.sqrt(u),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?u:0)+parseFloat(e)),u=e>1?1:e,p()),u},hide:function(){c&&(c=!1,null!=s&&(o.cancelAnimationFrame(s),s=null),function e(){if(m.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05)){a.style.display="none",l=null;return}l=o.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=m:void 0!==(n=(function(){return m}).call(t,r,t,e))&&(e.exports=n)}).call(this,window,document)},99495:function(e,t,r){"use strict";r.d(t,{q:function(){return s}});var n=r(67294);function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,a=new WeakMap;function s(e,t){var r,s,l,u=(r=t||null,s=function(t){return e.forEach(function(e){return o(e,t)})},(l=(0,n.useState)(function(){return{value:r,callback:s,facade:{get current(){return l.value},set current(value){var e=l.value;e!==value&&(l.value=value,l.callback(value,e))}}}})[0]).callback=s,l.facade);return i(function(){var t=a.get(u);if(t){var r=new Set(t),n=new Set(e),i=u.current;r.forEach(function(e){n.has(e)||o(e,null)}),n.forEach(function(e){r.has(e)||o(e,i)})}a.set(u,e)},[e]),u}},66781:function(e,t,r){"use strict";r.d(t,{L:function(){return a}});var n=r(67463),o=r(67294),i=function(e){var t=e.sideCar,r=(0,n._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw Error("Sidecar medium not found");return o.createElement(i,(0,n.pi)({},r))};function a(e,t){return e.useMedium(t),i}i.isSideCarExport=!0},87122:function(e,t,r){"use strict";r.d(t,{_:function(){return i}});var n=r(67463);function o(e){return e}function i(e){void 0===e&&(e={});var t,r,i,a=(void 0===t&&(t=o),r=[],i=!1,{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var n=t(e,i);return r.push(n),function(){r=r.filter(function(e){return e!==n})}},assignSyncMedium:function(e){for(i=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){i=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return a.options=(0,n.pi)({async:!0,ssr:!1},e),a}},25383:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},68799:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},60182:function(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},82479:function(e){function t(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise(function(o,i){var a=e.apply(r,n);
9function s(e){t(a,o,i,s,l,"next",e)}function l(e){t(a,o,i,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},52870:function(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},21360:function(e,t,r){var n=r(39686),o=r(6009);e.exports=function(e,t,r){if(o())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return r&&n(a,r.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports},39033:function(e,t,r){var n=r(88398);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},55010:function(e,t,r){var n=r(88398);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},99590:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},24221:function(e,t,r){var n=r(39686);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},36426:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},18666:function(e){e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},6009:function(e){function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},26371:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},48124:function(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},97688:function(e,t,r){var n=r(4749).default,o=r(60182);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},80035:function(e,t,r){var n=r(4749).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,r,n,o){var i,a,l=Object.create((r&&r.prototype instanceof y?r:y).prototype);return s(l,"_invoke",{value:(i=new _(o||[]),a=m,function(r,o){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===r)throw o;return{value:t,done:!0}}for(i.method=r,i.arg=o;;){var s=i.delegate;if(s){var l=function e(r,n){var o=n.method,i=r.iterator[o];if(i===t)return n.delegate=null,"throw"===o&&r.iterator.return&&
vendor: 5,137 bytes, line 9
9(n.method="return",n.arg=t,e(r,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),b;var a=h(i,r.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,b;var s=a.arg;return s?s.done?(n[r.resultName]=s.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,b)}(s,i);if(l){if(l===b)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===m)throw a=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=g;var u=h(e,n,i);if("normal"===u.type){if(a=i.done?v:"suspendedYield",u.arg===b)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(a=v,i.method="throw",i.arg=u.arg)}})}),l}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var m="suspendedStart",g="executing",v="completed",b={};function y(){}function w(){}function x(){}var E={};f(E,u,function(){return this});var j=Object.getPrototypeOf,C=j&&j(j(T([])));C&&C!==i&&a.call(C,u)&&(E=C);var O=x.prototype=y.prototype=Object.create(E);function k(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function N(e,t){var r;s(this,"_invoke",{value:function(o,i){function s(){return new t(function(r,s){!function r(o,i,s,l){var u=h(e[o],e,i);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==n(d)&&a.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,s,l)},function(e){r("throw",e,s,l)}):t.resolve(d).then(function(e){c.value=e,s(c)},function(e){return r("throw",e,s,l)})}l(u.arg)}(o,i,r,s)})}return r=r?r.then(s,s):s()}})}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw TypeError(n(e)+" is not iterable")}return w.prototype=x,s(O,"constructor",{value:x,configurable:!0}),s(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,d,"GeneratorFunction")),e.prototype=Object.create(O),e},r.awrap=function(e){return{__await:e}},k(N.prototype),f(N.prototype,c,function(){return this}),r.AsyncIterator=N,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new N(p(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},k(O),f(O,d,"Generator"),f(O,u,function(){return this}),f(O,"toString",function(){return"[object Generator]"}),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=T,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];
9if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},39686:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},73089:function(e,t,r){var n=r(68799),o=r(26371),i=r(10355),a=r(48124);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},19110:function(e,t,r){var n=r(4749).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},88398:function(e,t,r){var n=r(4749).default,o=r(19110);e.exports=function(e){var t=o(e,"string");return"symbol"==n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},4749:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},10355:function(e,t,r){var n=r(25383);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}},e.exports.__esModule=!0,e.exports.default=e.exports},32615:function(e,t,r){var n=r(99590),o=r(39686),i=r(18666),a=r(21360);function s(t){var r="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},26572:function(e,t,r){var n=r(80035)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},87462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},85983:function(e,t,r){"use strict";r.d(t,{Cp:function(){return d},RR:function(){return l},cv:function(){return p},dp:function(){return g},dr:function(){return m},oo:function(){return i},uY:function(){return h},x7:function(){return s}});var n=r(71347);function o(e,t,r){let o,{reference:i,floating:a}=e,s=(0,n.Qq)(t),l=(0,n.Wh)(t),u=(0,n.I4)(l),c=(0,n.k3)(t),d="y"===s,f=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2,h=i[u]/2-a[u]/2;switch(c){case"top":o={x:f,y:i.y-a.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-a.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,n.hp)(t)){case"start":o[l]-=h*(r&&d?-1:1);break;case"end":o[l]+=h*(r&&d?-1:1)}return o}let i=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}
9=r,l=a.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(c,n,u),p=n,h={},m=0;for(let r=0;r<l.length;r++){let{name:a,fn:g}=l[r],{x:v,y:b,data:y,reset:w}=await g({x:d,y:f,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=b?b:f,h={...h,[a]:{...h[a],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:f}=o(c,p,u)),r=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}};async function a(e,t){var r;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,n.ku)(t,e),m=(0,n.yd)(h),g=l[p?"floating"===f?"reference":"floating":f],v=(0,n.JB)(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(g)))||r?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===f?{...s.floating,x:o,y:i}:s.reference,y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await (null==a.isElement?void 0:a.isElement(y))&&await (null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},x=(0,n.JB)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:y,strategy:u}):b);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}let s=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:i,rects:a,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=(0,n.ku)(e,t)||{};if(null==c)return{};let f=(0,n.yd)(d),p={x:r,y:o},h=(0,n.Wh)(i),m=(0,n.I4)(h),g=await s.getDimensions(c),v="y"===h,b=v?"clientHeight":"clientWidth",y=a.reference[m]+a.reference[h]-p[h]-a.floating[m],w=p[h]-a.reference[h],x=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),E=x?x[b]:0;E&&await (null==s.isElement?void 0:s.isElement(x))||(E=l.floating[b]||a.floating[m]);let j=E/2-g[m]/2-1,C=(0,n.VV)(f[v?"top":"left"],j),O=(0,n.VV)(f[v?"bottom":"right"],j),k=E-g[m]-O,N=E/2-g[m]/2+(y/2-w/2),R=(0,n.uZ)(C,N,k),S=!u.arrow&&null!=(0,n.hp)(i)&&N!==R&&a.reference[m]/2-(N<C?C:O)-g[m]/2<0,_=S?N<C?N-C:N-k:0;return{[h]:p[h]+_,data:{[h]:R,centerOffset:N-R-_,...S&&{alignmentOffset:_}},reset:S}}}),l=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,o,i,s,l;let{placement:u,middlewareData:c,rects:d,initialPlacement:f,platform:p,elements:h}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...x}=(0,n.ku)(e,t);if(null!=(r=c.arrow)&&r.alignmentOffset)return{};let E=(0,n.k3)(u),j=(0,n.k3)(f)===f,C=await (null==p.isRTL?void 0:p.isRTL(h.floating)),O=v||(j||!w?[(0,n.pw)(f)]:(0,n.gy)(f));v||"none"===y||O.push(...(0,n.KX)(f,w,y,C));let k=[f,...O],N=await a(t,x),R=[],S=(null==(o=c.flip)?void 0:o.overflows)||[];if(m&&R.push(N[E]),g){let e=(0,n.i8)(u,d,C);R.push(N[e[0]],N[e[1]])}if(S=[...S,{placement:u,overflows:R}],!R.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let r=null==(s=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:s.placement;if(!r)switch(b){case"bestFit":{let e=null==(l=S.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(r=e);break}case"initialPlacement":r=f}if(u!==r)return{reset:{placement:r}}}return{}}}};function u(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function c(e){return n.mA.some(t=>e[t]>=0)}let d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:o="referenceHidden",...i}=(0,n.ku)(e,t);switch(o){case"referenceHidden":{let e=await a(t,{...i,elementContext:"reference"}),n=u(e,r.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:c(n)}}}case"escaped":{let e=await a(t,{...i,altBoundary:!0}),n=u(e,r.floating);return{data:{escapedOffsets:n,escaped:c(n)}}}default:return{}}}}};async function f(e,t){let{placement:r,platform:o,elements:i}=e,a=await (null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,n.k3)(r),l=(0,n.hp)(r),u="y"===(0,n.Qq)(r),c=["left","top"].includes(s)?-1:1,d=a&&u?-1:1,f=(0,n.ku)(t,e),{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof m&&(h="end"===l?-1*m:m),u?{x:h*d,y:p*c}:{x:p*c,y:h*d}}let p=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:i,placement:a,middlewareData:s}=t,l=await f(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},h=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=(0,n.ku)(e,t),d={x:r,y:o},f=await a(t,c),p=(0,n.Qq)((0,n.k3)(i)),h=(0,n.Rn)(p),m=d[h],g=d[p];
9if(s){let e=m+f["y"===h?"top":"left"],t=m-f["y"===h?"bottom":"right"];m=(0,n.uZ)(e,m,t)}if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=g+f[e],o=g-f[t];g=(0,n.uZ)(r,g,o)}let v=u.fn({...t,[h]:m,[p]:g});return{...v,data:{x:v.x-r,y:v.y-o}}}}},m=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:o,placement:i,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=(0,n.ku)(e,t),d={x:r,y:o},f=(0,n.Qq)(i),p=(0,n.Rn)(f),h=d[p],m=d[f],g=(0,n.ku)(l,t),v="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,r=a.reference[p]+a.reference[e]-v.mainAxis;h<t?h=t:h>r&&(h=r)}if(c){var b,y;let e="y"===p?"width":"height",t=["top","left"].includes((0,n.k3)(i)),r=a.reference[f]-a.floating[e]+(t&&(null==(b=s.offset)?void 0:b[f])||0)+(t?0:v.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[f])||0)-(t?v.crossAxis:0);m<r?m=r:m>o&&(m=o)}return{[p]:h,[f]:m}}}},g=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let r,o;let{placement:i,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...d}=(0,n.ku)(e,t),f=await a(t,d),p=(0,n.k3)(i),h=(0,n.hp)(i),m="y"===(0,n.Qq)(i),{width:g,height:v}=s.floating;"top"===p||"bottom"===p?(r=p,o=h===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(o=p,r="end"===h?"top":"bottom");let b=v-f[r],y=g-f[o],w=!t.middlewareData.shift,x=b,E=y;if(m){let e=g-f.left-f.right;E=h||w?(0,n.VV)(y,e):e}else{let e=v-f.top-f.bottom;x=h||w?(0,n.VV)(b,e):e}if(w&&!h){let e=(0,n.Fp)(f.left,0),t=(0,n.Fp)(f.right,0),r=(0,n.Fp)(f.top,0),o=(0,n.Fp)(f.bottom,0);m?E=g-2*(0!==e||0!==t?e+t:(0,n.Fp)(f.left,f.right)):x=v-2*(0!==r||0!==o?r+o:(0,n.Fp)(f.top,f.bottom))}await c({...t,availableWidth:E,availableHeight:x});let j=await l.getDimensions(u.floating);return g!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}}},62367:function(e,t,r){"use strict";r.d(t,{x7:function(){return U},Me:function(){return L},oo:function(){return B},RR:function(){return I},Cp:function(){return z},dr:function(){return F},uY:function(){return M},dp:function(){return D}});var n=r(71347),o=r(85983);function i(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return e instanceof Node||e instanceof a(e).Node}function u(e){return e instanceof Element||e instanceof a(e).Element}function c(e){return e instanceof HTMLElement||e instanceof a(e).HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=g(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function p(e){let t=h(),r=g(e);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function h(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function m(e){return["html","body","#document"].includes(i(e))}function g(e){return a(e).getComputedStyle(e)}function v(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function b(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function y(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=b(t);return m(r)?t.ownerDocument?t.ownerDocument.body:t.body:c(r)&&f(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=a(o);return i?t.concat(s,s.visualViewport||[],f(o)?o:[],s.frameElement&&r?y(s.frameElement):[]):t.concat(o,y(o,[],r))}function w(e){let t=g(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=c(e),a=i?e.offsetWidth:r,s=i?e.offsetHeight:o,l=(0,n.NM)(r)!==a||(0,n.NM)(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function x(e){return u(e)?e:e.contextElement}function E(e){let t=x(e);if(!c(t))return(0,n.ze)(1);let r=t.getBoundingClientRect(),{width:o,height:i,$:a}=w(t),s=(a?(0,n.NM)(r.width):r.width)/o,l=(a?(0,n.NM)(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let j=(0,n.ze)(0);function C(e){let t=a(e);
9return h()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:j}function O(e,t,r,o){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let s=e.getBoundingClientRect(),l=x(e),c=(0,n.ze)(1);t&&(o?u(o)&&(c=E(o)):c=E(e));let d=(void 0===(i=r)&&(i=!1),o&&(!i||o===a(l))&&i)?C(l):(0,n.ze)(0),f=(s.left+d.x)/c.x,p=(s.top+d.y)/c.y,h=s.width/c.x,m=s.height/c.y;if(l){let e=a(l),t=o&&u(o)?a(o):o,r=e,n=r.frameElement;for(;n&&o&&t!==r;){let e=E(n),t=n.getBoundingClientRect(),o=g(n),i=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,s=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;f*=e.x,p*=e.y,h*=e.x,m*=e.y,f+=i,p+=s,n=(r=a(n)).frameElement}}return(0,n.JB)({width:h,height:m,x:f,y:p})}let k=[":popover-open",":modal"];function N(e){return k.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function R(e){return O(s(e)).left+v(e).scrollLeft}function S(e,t,r){let o;if("viewport"===t)o=function(e,t){let r=a(e),n=s(e),o=r.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,c=0;if(o){i=o.width,l=o.height;let e=h();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:u,y:c}}(e,r);else if("document"===t)o=function(e){let t=s(e),r=v(e),o=e.ownerDocument.body,i=(0,n.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=(0,n.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),l=-r.scrollLeft+R(e),u=-r.scrollTop;return"rtl"===g(o).direction&&(l+=(0,n.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:l,y:u}}(s(e));else if(u(t))o=function(e,t){let r=O(e,!0,"fixed"===t),o=r.top+e.clientTop,i=r.left+e.clientLeft,a=c(e)?E(e):(0,n.ze)(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,u=i*a.x,d=o*a.y;return{width:s,height:l,x:u,y:d}}(t,r);else{let r=C(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return(0,n.JB)(o)}function _(e,t){return c(e)&&"fixed"!==g(e).position?t?t(e):e.offsetParent:null}function T(e,t){let r=a(e);if(!c(e)||N(e))return r;let n=_(e,t);for(;n&&["table","td","th"].includes(i(n))&&"static"===g(n).position;)n=_(n,t);return n&&("html"===i(n)||"body"===i(n)&&"static"===g(n).position&&!p(n))?r:n||function(e){let t=b(e);for(;c(t)&&!m(t);){if(p(t))return t;t=b(t)}return null}(e)||r}let P=async function(e){let t=this.getOffsetParent||T,r=this.getDimensions;return{reference:function(e,t,r){let o=c(t),a=s(t),l="fixed"===r,u=O(e,!0,l,t),d={scrollLeft:0,scrollTop:0},p=(0,n.ze)(0);if(o||!o&&!l){if(("body"!==i(t)||f(a))&&(d=v(t)),o){let e=O(t,!0,l,t);p.x=e.x+t.clientLeft,p.y=e.y+t.clientTop}else a&&(p.x=R(a))}let h=u.left+d.scrollLeft-p.x,m=u.top+d.scrollTop-p.y;return{x:h,y:m,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await r(e.floating)}}},A={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:o,strategy:a}=e,l="fixed"===a,u=s(o),d=!!t&&N(t.floating);if(o===u||d&&l)return r;let p={scrollLeft:0,scrollTop:0},h=(0,n.ze)(1),m=(0,n.ze)(0),g=c(o);if((g||!g&&!l)&&(("body"!==i(o)||f(u))&&(p=v(o)),c(o))){let e=O(o);h=E(o),m.x=e.x+o.clientLeft,m.y=e.y+o.clientTop}return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-p.scrollLeft*h.x+m.x,y:r.y*h.y-p.scrollTop*h.y+m.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e,s="clippingAncestors"===r?function(e,t){let r=t.get(e);if(r)return r;let n=y(e,[],!1).filter(e=>u(e)&&"body"!==i(e)),o=null,a="fixed"===g(e).position,s=a?b(e):e;for(;u(s)&&!m(s);){let t=g(s),r=p(s);r||"fixed"!==t.position||(o=null);let i=a?!r&&!o:!r&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||f(s)&&!r&&function e(t,r){let n=b(t);return!(n===r||!u(n)||m(n))&&("fixed"===g(n).position||e(n,r))}(e,s);i?n=n.filter(e=>e!==s):o=t,s=b(s)}return t.set(e,n),n}(t,this._c):[].concat(r),l=[...s,o],c=l[0],d=l.reduce((e,r)=>{let o=S(t,r,a);return e.top=(0,n.Fp)(o.top,e.top),e.right=(0,n.VV)(o.right,e.right),e.bottom=(0,n.VV)(o.bottom,e.bottom),e.left=(0,n.Fp)(o.left,e.left),e},S(t,c,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},getOffsetParent:T,getElementRects:P,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=w(e);return{width:t,height:r}},getScale:E,isElement:u,isRTL:function(e){return"rtl"===g(e).direction}};function L(e,t,r,o){let i;void 0===o&&(o={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,f=x(e),p=a||l?[...f?y(f):[],...y(t)]:[];
9p.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});let h=f&&c?function(e,t){let r,o=null,i=s(e);function a(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}return!function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();let{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;let h=(0,n.GW)(d),m=(0,n.GW)(i.clientWidth-(c+f)),g=(0,n.GW)(i.clientHeight-(d+p)),v=(0,n.GW)(c),b={rootMargin:-h+"px "+-m+"px "+-g+"px "+-v+"px",threshold:(0,n.Fp)(0,(0,n.VV)(1,u))||1},y=!0;function w(e){let t=e[0].intersectionRatio;if(t!==u){if(!y)return s();t?s(!1,t):r=setTimeout(()=>{s(!1,1e-7)},100)}y=!1}try{o=new IntersectionObserver(w,{...b,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(w,b)}o.observe(e)}(!0),a}(f,r):null,m=-1,g=null;u&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),f&&!d&&g.observe(f),g.observe(t));let v=d?O(e):null;return d&&function t(){let n=O(e);v&&(n.x!==v.x||n.y!==v.y||n.width!==v.width||n.height!==v.height)&&r(),v=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(i)}}let M=o.uY,I=o.RR,D=o.dp,z=o.Cp,U=o.x7,F=o.dr,B=(e,t,r)=>{let n=new Map,i={platform:A,...r},a={...i.platform,_c:n};return(0,o.oo)(e,t,{...i,platform:a})}},1371:function(e,t,r){"use strict";r.d(t,{YF:function(){return f},x7:function(){return a}});var n=r(62367),o=r(67294),i=r(73935);let a=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:o}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?(0,n.x7)({element:r.current,padding:o}).fn(t):{}:r?(0,n.x7)({element:r,padding:o}).fn(t):{}}});var s="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function l(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!l(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!l(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function u(e){if("undefined"==typeof window)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function c(e,t){let r=u(e);return Math.round(t*r)/r}function d(e){let t=o.useRef(e);return s(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:f,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:g,open:v}=e,[b,y]=o.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=o.useState(a);l(w,a)||x(a);let[E,j]=o.useState(null),[C,O]=o.useState(null),k=o.useCallback(e=>{e!==_.current&&(_.current=e,j(e))},[]),N=o.useCallback(e=>{e!==T.current&&(T.current=e,O(e))},[]),R=p||E,S=h||C,_=o.useRef(null),T=o.useRef(null),P=o.useRef(b),A=null!=g,L=d(g),M=d(f),I=o.useCallback(()=>{if(!_.current||!T.current)return;let e={placement:t,strategy:r,middleware:w};M.current&&(e.platform=M.current),(0,n.oo)(_.current,T.current,e).then(e=>{let t={...e,isPositioned:!0};D.current&&!l(P.current,t)&&(P.current=t,i.flushSync(()=>{y(t)}))})},[w,t,r,M]);s(()=>{!1===v&&P.current.isPositioned&&(P.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[v]);let D=o.useRef(!1);s(()=>(D.current=!0,()=>{D.current=!1}),[]),s(()=>{if(R&&(_.current=R),S&&(T.current=S),R&&S){if(L.current)return L.current(R,S,I);I()}},[R,S,I,L,A]);let z=o.useMemo(()=>({reference:_,floating:T,setReference:k,setFloating:N}),[k,N]),U=o.useMemo(()=>({reference:R,floating:S}),[R,S]),F=o.useMemo(()=>{let e={position:r,left:0,top:0};if(!U.floating)return e;let t=c(U.floating,b.x),n=c(U.floating,b.y);return m?{...e,transform:"translate("+t+"px, "+n+"px)",...u(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,m,U.floating,b.x,b.y]);return o.useMemo(()=>({...b,update:I,refs:z,elements:U,floatingStyles:F}),[b,I,z,U,F])}},71347:function(e,t,r){"use strict";r.d(t,{Fp:function(){return i},GW:function(){return s},I4:function(){return g},JB:function(){return O},KX:function(){return E},NM:function(){return a},Qq:function(){return v},Rn:function(){return m},VV:function(){return o},Wh:function(){return b},gy:function(){return w},hp:function(){return h},i8:function(){return y},k3:function(){return p},ku:function(){return f},mA:function(){return n},pw:function(){return j},uZ:function(){return d},yd:function(){return C},ze:function(){return l}});let n=["top","right","bottom","left"],o=Math.min,i=Math.max,a=Math.round,s=Math.floor,l=e=>({x:e,y:e}
9),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t,r){return i(e,o(t,r))}function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(p(e))?"y":"x"}function b(e){return m(v(e))}function y(e,t,r){void 0===r&&(r=!1);let n=h(e),o=b(e),i=g(o),a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=j(a)),[a,j(a)]}function w(e){let t=j(e);return[x(e),t,x(t)]}function x(e){return e.replace(/start|end/g,e=>c[e])}function E(e,t,r,n){let o=h(e),i=function(e,t,r){let n=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(r)return t?o:n;return t?n:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(x)))),i}function j(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function O(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},36206:function(e,t,r){"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}r.d(t,{M:function(){return n}})},13879:function(e,t,r){"use strict";r.d(t,{B:function(){return d}});var n=r(67294),o=r(25360),i=r(28771),a=r(87462);let s=(0,n.forwardRef)((e,t)=>{let{children:r,...o}=e,i=n.Children.toArray(r),s=i.find(c);if(s){let e=s.props.children,r=i.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):(0,n.isValidElement)(e)?e.props.children:null);return(0,n.createElement)(l,(0,a.Z)({},o,{ref:t}),(0,n.isValidElement)(e)?(0,n.cloneElement)(e,void 0,r):null)}return(0,n.createElement)(l,(0,a.Z)({},o,{ref:t}),r)});s.displayName="Slot";let l=(0,n.forwardRef)((e,t)=>{let{children:r,...o}=e;return(0,n.isValidElement)(r)?(0,n.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n],a=/^on[A-Z]/.test(n);a?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,i.F)(t,r.ref):r.ref}):n.Children.count(r)>1?n.Children.only(null):null});l.displayName="SlotClone";let u=({children:e})=>(0,n.createElement)(n.Fragment,null,e);function c(e){return(0,n.isValidElement)(e)&&e.type===u}function d(e){let t=e+"CollectionProvider",[r,a]=(0,o.b)(t),[l,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e+"CollectionSlot",d=n.forwardRef((e,t)=>{let{scope:r,children:o}=e,a=u(c,r),l=(0,i.e)(t,a.collectionRef);return n.createElement(s,{ref:l},o)}),f=e+"CollectionItemSlot",p="data-radix-collection-item",h=n.forwardRef((e,t)=>{let{scope:r,children:o,...a}=e,l=n.useRef(null),c=(0,i.e)(t,l),d=u(f,r);return n.useEffect(()=>(d.itemMap.set(l,{ref:l,...a}),()=>void d.itemMap.delete(l))),n.createElement(s,{[p]:"",ref:c},o)});return[{Provider:e=>{let{scope:t,children:r}=e,o=n.useRef(null),i=n.useRef(new Map).current;return n.createElement(l,{scope:t,itemMap:i,collectionRef:o},r)},Slot:d,ItemSlot:h},function(t){let r=u(e+"CollectionConsumer",t),o=n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`)),n=Array.from(r.itemMap.values()),o=n.sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current));return o},[r.collectionRef,r.itemMap]);return o},a]}},28771:function(e,t,r){"use strict";r.d(t,{F:function(){return o},e:function(){return i}});var n=r(67294);function o(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return(0,n.useCallback)(o(...e),e)}},25360:function(e,t,r){"use strict";r.d(t,{b:function(){return i},k:function(){return o}});var n=r(67294);function o(e,t){let r=(0,n.createContext)(t);function o(e){let{children:t,...o}=e,i=(0,n.useMemo)(()=>o,Object.values(o));return(0,n.createElement)(r.Provider,{value:i},t)}return o.displayName=e+"Provider",[o,function(o){let i=(0,n.useContext)(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],o=()=>{let t=r.map(e=>(0,n.createContext)(e));return function(r){let o=(null==r?void 0:r[e])||t;return(0,n.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){let i=(0,n.createContext)(o),a=r.length;function s(t){let{scope:r,children:o,...s}=t,l=(null==r?void 0:r[e][a])||i,u=(0,n.useMemo)(()=>s,Object.values(s));return(0,n.createElement)(l.Provider,{value:u},o)}return r=[...r,o],s.displayName=t+"Provider",[s,function(r,s){let l=(null==s?void 0:s[e][a])||i,u=(0,n.useContext)(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>
9{let o=r(e),i=o[`__scope${n}`];return{...t,...i}},{});return(0,n.useMemo)(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(o,...t)]}},63047:function(e,t,r){"use strict";let n;r.d(t,{x8:function(){return eJ},VY:function(){return eK},dk:function(){return eX},aV:function(){return eG},h_:function(){return eq},fC:function(){return e$},Dx:function(){return eY},xz:function(){return eH}});var o,i=r(67294),a=r.t(i,2);function s(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function l(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function u(...e){return i.useCallback(l(...e),e)}var c=r(85893),d=globalThis?.document?i.useLayoutEffect:()=>{},f=a["useId".toString()]||(()=>void 0),p=0;function h(e){let[t,r]=i.useState(f());return d(()=>{e||r(e=>e??String(p++))},[e]),e||(t?`radix-${t}`:"")}function m(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var g=r(73935),v=i.forwardRef((e,t)=>{let{children:r,...n}=e,o=i.Children.toArray(r),a=o.find(w);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,c.jsx)(b,{...n,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,c.jsx)(b,{...n,ref:t,children:r})});v.displayName="Slot";var b=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(i.isValidElement(r)){let e,o;let a=(o=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.ref:(o=(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.props.ref:r.props.ref||r.ref;return i.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n],a=/^on[A-Z]/.test(n);a?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?l(t,a):a})}return i.Children.count(r)>1?i.Children.only(null):null});b.displayName="SlotClone";var y=({children:e})=>(0,c.jsx)(c.Fragment,{children:e});function w(e){return i.isValidElement(e)&&e.type===y}var x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=i.forwardRef((e,r)=>{let{asChild:n,...o}=e,i=n?v:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(i,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),E=r(95629),j="dismissableLayer.update",C=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),O=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:d,onDismiss:f,...p}=e,h=i.useContext(C),[g,v]=i.useState(null),b=g?.ownerDocument??globalThis?.document,[,y]=i.useState({}),w=u(t,e=>v(e)),O=Array.from(h.layers),[R]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),S=O.indexOf(R),_=g?O.indexOf(g):-1,T=h.layersWithOutsidePointerEventsDisabled.size>0,P=_>=S,A=function(e,t=globalThis?.document){let r=m(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){N("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...h.branches].some(e=>e.contains(t));!P||r||(a?.(e),d?.(e),e.defaultPrevented||f?.())},b),L=function(e,t=globalThis?.document){let r=m(e),n=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!n.current&&N("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,r=[...h.branches].some(e=>e.contains(t));r||(l?.(e),d?.(e),e.defaultPrevented||f?.())},b);return(0,E.e)(e=>{let t=_===h.layers.size-1;t&&(n?.(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))},b),i.useEffect(()=>{if(g)return r&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(o=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),k(),()=>{r&&1===h.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=o)}},[g,b,r,h]),i.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),k())},[g,h]),i.useEffect(()=>{let e=()=>y({});return document.addEventListener(j,e),()=>document.removeEventListener(j,e)},[]),(0,c.jsx)(x.div,{...p,ref:w,style:{pointerEvents:T?P?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,L.onFocusCapture),onBlurCapture:s(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,A.onPointerDownCapture)})});function k(){let e=new CustomEvent(j);document.dispatchEvent(e)}function N(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});(t&&o.addEventListener(e,t,{once:!0}),n)?o&&g.flushSync(()=>o.dispatchEvent(i)):o.dispatchEvent(i)}O.displayName="DismissableLayer",i.forwardRef((e,t)=>
9{let r=i.useContext(C),n=i.useRef(null),o=u(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,c.jsx)(x.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var R="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",_={bubbles:!1,cancelable:!0},T=i.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,d]=i.useState(null),f=m(o),p=m(a),h=i.useRef(null),g=u(t,e=>d(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let e=function(e){if(v.paused||!l)return;let t=e.target;l.contains(t)?h.current=t:L(h.current,{select:!0})},t=function(e){if(v.paused||!l)return;let t=e.relatedTarget;null===t||l.contains(t)||L(h.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&L(l)});return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,l,v.paused]),i.useEffect(()=>{if(l){M.add(v);let e=document.activeElement,t=l.contains(e);if(!t){let t=new CustomEvent(R,_);l.addEventListener(R,f),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(L(n,{select:t}),document.activeElement!==r)return}(P(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&L(l))}return()=>{l.removeEventListener(R,f),setTimeout(()=>{let t=new CustomEvent(S,_);l.addEventListener(S,p),l.dispatchEvent(t),t.defaultPrevented||L(e??document.body,{select:!0}),l.removeEventListener(S,p),M.remove(v)},0)}}},[l,f,p,v]);let b=i.useCallback(e=>{if(!r&&!n||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[n,i]=function(e){let t=P(e),r=A(t,e),n=A(t.reverse(),e);return[r,n]}(t),a=n&&i;a?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&L(i,{select:!0})):(e.preventDefault(),r&&L(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,v.paused]);return(0,c.jsx)(x.div,{tabIndex:-1,...s,ref:g,onKeyDown:b})});function P(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function A(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function L(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}T.displayName="FocusScope";var M=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=I(n,e)).unshift(e)},remove(e){n=I(n,e),n[0]?.resume()}});function I(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var D=i.forwardRef((e,t)=>{let{container:r,...n}=e,[o,a]=i.useState(!1);d(()=>a(!0),[]);let s=r||o&&globalThis?.document?.body;return s?g.createPortal((0,c.jsx)(x.div,{...n,ref:t}),s):null});D.displayName="Portal";var z=e=>{let t,r;let{present:n,children:o}=e,a=function(e){var t;let[r,n]=i.useState(),o=i.useRef({}),a=i.useRef(e),s=i.useRef("none"),l=e?"mounted":"unmounted",[u,c]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,r)=>{let n=t[e][r];return n??e},l));return i.useEffect(()=>{let e=U(o.current);s.current="mounted"===u?e:"none"},[u]),d(()=>
9{let t=o.current,r=a.current,n=r!==e;if(n){let n=s.current,o=U(t);e?c("MOUNT"):"none"===o||t?.display==="none"?c("UNMOUNT"):r&&n!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),d(()=>{if(r){let e=e=>{let t=U(o.current),n=t.includes(e.animationName);e.target===r&&n&&g.flushSync(()=>c("ANIMATION_END"))},t=e=>{e.target===r&&(s.current=U(o.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:i.useCallback(e=>{e&&(o.current=getComputedStyle(e)),n(e)},[])}}(n),s="function"==typeof o?o({present:a.isPresent}):i.Children.only(o),l=u(a.ref,(r=(t=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?s.ref:(r=(t=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?s.props.ref:s.props.ref||s.ref),c="function"==typeof o;return c||a.isPresent?i.cloneElement(s,{ref:l}):null};function U(e){return e?.animationName||"none"}z.displayName="Presence";var F=0;function B(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Z=function(){return(Z=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},W=r(71642),V=r(99495),$=(0,r(87122)._)(),H=function(){},q=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),o=n[0],a=n[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,y=e.gapMode,w=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(0,V.q)([r,t]),E=Z(Z({},w),o);return i.createElement(i.Fragment,null,d&&i.createElement(p,{sideCar:$,removeScrollBar:c,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:y}),s?i.cloneElement(i.Children.only(l),Z(Z({},E),{ref:x})):i.createElement(b,Z({},E,{className:u,ref:x}),l))});q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},q.classNames={fullWidth:W.zi,zeroRight:W.pF};var G=r(66781),K=r(37087),Y=r(6525),X=!1;if("undefined"!=typeof window)try{var J=Object.defineProperty({},"passive",{get:function(){return X=!0,!0}});window.addEventListener("test",J,J),window.removeEventListener("test",J,J)}catch(e){X=!1}var Q=!!X&&{passive:!1},ee=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},et=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),er(e,n)){var o=en(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},er=function(e,t){return"v"===e?ee(t,"overflowY"):ee(t,"overflowX")},en=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eo=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{var h=en(e,l),m=h[0],g=h[1]-h[2]-a*m;(m||g)&&er(e,l)&&(f+=g,p+=m),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&s>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-s>p)&&(c=!0),c},ei=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ea=function(e){return[e.deltaX,e.deltaY]},es=function(e){return e&&"current"in e?e.current:e},el=0,eu=[],ec=(0,G.L)($,function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(el++)[0],a=i.useState(Y.Ws)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}
9)([e.lockRef.current],(e.shards||[]).map(es),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=ei(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=et(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=et(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=o),!o)return!0;var p=n.current||o;return eo(p,t,e,"h"===p?l:u,!0)},[]),u=i.useCallback(function(e){if(eu.length&&eu[eu.length-1]===a){var r="deltaY"in e?ea(e):ei(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(s.current.shards||[]).map(es).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){r.current=ei(e),n.current=void 0},[]),f=i.useCallback(function(t){c(t.type,ea(t),t.target,l(t,e.lockRef.current))},[]),p=i.useCallback(function(t){c(t.type,ei(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return eu.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Q),document.addEventListener("touchmove",u,Q),document.addEventListener("touchstart",d,Q),function(){eu=eu.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,Q),document.removeEventListener("touchmove",u,Q),document.removeEventListener("touchstart",d,Q)}},[]);var h=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?i.createElement(K.jp,{gapMode:e.gapMode}):null)}),ed=i.forwardRef(function(e,t){return i.createElement(q,Z({},e,{ref:t,sideCar:ec}))});ed.classNames=q.classNames;var ef=r(23541),ep="Dialog",[eh,em]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>i.createContext(e));return function(r){let n=r?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let o=i.createContext(n),a=r.length;function s(t){let{scope:r,children:n,...s}=t,l=r?.[e][a]||o,u=i.useMemo(()=>s,Object.values(s));return(0,c.jsx)(l.Provider,{value:u,children:n})}return r=[...r,n],s.displayName=t+"Provider",[s,function(r,s){let l=s?.[e][a]||o,u=i.useContext(l);if(u)return u;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e),i=o[`__scope${n}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(ep),[eg,ev]=eh(ep),eb=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=i.useRef(null),u=i.useRef(null),[d=!1,f]=function({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,o]=function({defaultProp:e,onChange:t}){let r=i.useState(e),[n]=r,o=i.useRef(n),a=m(t);return i.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,s=a?e:n,l=m(r),u=i.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else o(t)},[a,e,o,l]);return[s,u]}({prop:n,defaultProp:o,onChange:a});return(0,c.jsx)(eg,{scope:t,triggerRef:l,contentRef:u,contentId:h(),titleId:h(),descriptionId:h(),open:d,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(e=>!e),[f]),modal:s,children:r})};
9eb.displayName=ep;var ey="DialogTrigger",ew=i.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=ev(ey,r),i=u(t,o.triggerRef);return(0,c.jsx)(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eU(o.open),...n,ref:i,onClick:s(e.onClick,o.onOpenToggle)})});ew.displayName=ey;var ex="DialogPortal",[eE,ej]=eh(ex,{forceMount:void 0}),eC=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=ev(ex,t);return(0,c.jsx)(eE,{scope:t,forceMount:r,children:i.Children.map(n,e=>(0,c.jsx)(z,{present:r||a.open,children:(0,c.jsx)(D,{asChild:!0,container:o,children:e})}))})};eC.displayName=ex;var eO="DialogOverlay",ek=i.forwardRef((e,t)=>{let r=ej(eO,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=ev(eO,e.__scopeDialog);return i.modal?(0,c.jsx)(z,{present:n||i.open,children:(0,c.jsx)(eN,{...o,ref:t})}):null});ek.displayName=eO;var eN=i.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=ev(eO,r);return(0,c.jsx)(ed,{as:v,allowPinchZoom:!0,shards:[o.contentRef],children:(0,c.jsx)(x.div,{"data-state":eU(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),eR="DialogContent",eS=i.forwardRef((e,t)=>{let r=ej(eR,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=ev(eR,e.__scopeDialog);return(0,c.jsx)(z,{present:n||i.open,children:i.modal?(0,c.jsx)(e_,{...o,ref:t}):(0,c.jsx)(eT,{...o,ref:t})})});eS.displayName=eR;var e_=i.forwardRef((e,t)=>{let r=ev(eR,e.__scopeDialog),n=i.useRef(null),o=u(t,r.contentRef,n);return i.useEffect(()=>{let e=n.current;if(e)return(0,ef.Ry)(e)},[]),(0,c.jsx)(eP,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:s(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:s(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;n&&e.preventDefault()}),onFocusOutside:s(e.onFocusOutside,e=>e.preventDefault())})}),eT=i.forwardRef((e,t)=>{let r=ev(eR,e.__scopeDialog),n=i.useRef(!1),o=i.useRef(!1);return(0,c.jsx)(eP,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let i=t.target,a=r.triggerRef.current?.contains(i);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eP=i.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,l=ev(eR,r),d=i.useRef(null),f=u(t,d);return i.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??B()),document.body.insertAdjacentElement("beforeend",e[1]??B()),F++,()=>{1===F&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),F--}},[]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(T,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,c.jsx)(O,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":eU(l.open),...s,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eW,{titleId:l.titleId}),(0,c.jsx)(eV,{contentRef:d,descriptionId:l.descriptionId})]})]})}),eA="DialogTitle",eL=i.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=ev(eA,r);return(0,c.jsx)(x.h2,{id:o.titleId,...n,ref:t})});eL.displayName=eA;var eM="DialogDescription",eI=i.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=ev(eM,r);return(0,c.jsx)(x.p,{id:o.descriptionId,...n,ref:t})});eI.displayName=eM;var eD="DialogClose",ez=i.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=ev(eD,r);return(0,c.jsx)(x.button,{type:"button",...n,ref:t,onClick:s(e.onClick,()=>o.onOpenChange(!1))})});function eU(e){return e?"open":"closed"}ez.displayName=eD;var eF="DialogTitleWarning",[eB,eZ]=function(e,t){let r=i.createContext(t);function n(e){let{children:t,...n}=e,o=i.useMemo(()=>n,Object.values(n));return(0,c.jsx)(r.Provider,{value:o,children:t})}return n.displayName=e+"Provider",[n,function(n){let o=i.useContext(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}(eF,{contentName:eR,titleName:eA,docsSlug:"dialog"}),eW=({titleId:e})=>{let t=eZ(eF),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 10 11If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 12 13For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{if(e){let t=document.getElementById(e);t||console.error(r)}},[r,e]),null},eV=({contentRef:e,descriptionId:t})=>{let r=eZ("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return i.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");if(t&&r){let e=document.getElementById(t);e||console.warn(n)}},[n,e,t]),null},e$=eb,eH=ew,eq=eC,eG=ek,eK=eS,eY=eL,eX=eI,eJ=ez},78990:function(e,t,r){"use strict";r.d(t,{gm:function(){return i}});var n=r(67294);let o=(0,n.createContext)(void 0);function i(e){let t=(0,n.useContext)(o);return e||t||"ltr"}},40856:function(e,t,r){"use strict";let n;r.d(t,{XB:function(){return f}});var o=r(87462),i=r(67294),a=r(36206),s=r(64757),l=r(28771),u=r(79698);let c="dismissableLayer.update",d=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,i.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:b,onDismiss:y,...w}=e,x=(0,i.useContext)(d),[E,j]=(0,i.useState)(null),C=null!==(r=null==E?void 0:E.ownerDocument)&&void 0!==r?r:null==globalThis?void 0:globalThis.document,[,O]=(0,i.useState)({}),k=(0,l.e)(t,e=>j(e)),N=Array.from(x.layers),[R]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),S=N.indexOf(R),_=E?N.indexOf(E):-1,T=x.layersWithOutsidePointerEventsDisabled.size>0,P=_>=S,A=function(e,t=null==globalThis?void 0:globalThis.document){let r=(0,u.W)(e),n=(0,i.useRef)(!1),o=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){h("dismissableLayer.pointerDownOutside",r,n,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));!P||r||(null==g||g(e),null==b||b(e),e.defaultPrevented||null==y||y())},C),L=function(e,t=null==globalThis?void 0:globalThis.document){let r=(0,u.W)(e),n=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=e=>{e.target&&!n.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));r||(null==v||v(e),null==b||b(e),e.defaultPrevented||null==y||y())},C);return!function(e,t=null==globalThis?void 0:globalThis.document){let r=(0,u.W)(e);(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[r,t])}(e=>{let t=_===x.layers.size-1;t&&(null==m||m(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},C),(0,i.useEffect)(()=>
13{if(E)return f&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(n=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(E)),x.layers.add(E),p(),()=>{f&&1===x.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=n)}},[E,C,f,x]),(0,i.useEffect)(()=>()=>{E&&(x.layers.delete(E),x.layersWithOutsidePointerEventsDisabled.delete(E),p())},[E,x]),(0,i.useEffect)(()=>{let e=()=>O({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,i.createElement)(s.WV.div,(0,o.Z)({},w,{ref:k,style:{pointerEvents:T?P?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,A.onPointerDownCapture)}))});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?(0,s.jH)(o,i):o.dispatchEvent(i)}},27552:function(e,t,r){"use strict";r.d(t,{EW:function(){return i}});var n=r(67294);let o=0;function i(){(0,n.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},95420:function(e,t,r){"use strict";let n;r.d(t,{M:function(){return f}});var o=r(87462),i=r(67294),a=r(28771),s=r(64757),l=r(79698);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,i.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:f,onUnmountAutoFocus:v,...b}=e,[y,w]=(0,i.useState)(null),x=(0,l.W)(f),E=(0,l.W)(v),j=(0,i.useRef)(null),C=(0,a.e)(t,e=>w(e)),O=(0,i.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,i.useEffect)(()=>{if(n){function e(e){if(O.paused||!y)return;let t=e.target;y.contains(t)?j.current=t:m(j.current,{select:!0})}function t(e){if(O.paused||!y)return;let t=e.relatedTarget;null===t||y.contains(t)||m(j.current,{select:!0})}document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&m(y)});return y&&r.observe(y,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,y,O.paused]),(0,i.useEffect)(()=>{if(y){g.add(O);let e=document.activeElement,t=y.contains(e);if(!t){let t=new CustomEvent(u,d);y.addEventListener(u,x),y.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(m(n,{select:t}),document.activeElement!==r)return}(p(y).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(y))}return()=>{y.removeEventListener(u,x),setTimeout(()=>{let t=new CustomEvent(c,d);y.addEventListener(c,E),y.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),y.removeEventListener(c,E),g.remove(O)},0)}}},[y,x,E,O]);let k=(0,i.useCallback)(e=>{if(!r&&!n||O.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[n,i]=function(e){let t=p(e),r=h(t,e),n=h(t.reverse(),e);return[r,n]}(t),a=n&&i;a?e.shiftKey||o!==i?e.shiftKey&&o===n&&(e.preventDefault(),r&&m(i,{select:!0})):(e.preventDefault(),r&&m(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,O.paused]);return(0,i.createElement)(s.WV.div,(0,o.Z)({tabIndex:-1},b,{ref:C,onKeyDown:k}))});function p(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function h(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function m(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}let g=(n=[],{add(e){let t=n[0];e!==t&&(null==t||t.pause()),(n=v(n,e)).unshift(e)},remove(e){var t;null===(t=(n=v(n,e))[0])||void 0===t||t.resume()}});function v(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},91276:function(e,t,r){"use strict";r.d(t,{M:function(){return l}});var n,o=r(67294),i=r(9981);let a=(n||(n=r.t(o,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,r]=o.useState(a());return(0,i.b)(()=>{e||r(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},46066:function(e,t,r){"use strict";r.d(t,{ee:function(){return T},Eh:function(){return A},VY:function(){return P},fC:function(){return _},D7:function(){return v}});var n=r(87462),o=r(67294),i=r(1371),a=r(62367),s=r(85983),l=r(64757);let u=(0,o.forwardRef)((e,t)=>{let{children:r,width:i=10,height:a=5,...s}=e;return(0,o.createElement)(l.WV.svg,(0,n.Z)({},s,{ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,o.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var c=r(28771),d=r(25360),f=r(79698),p=r(9981),h=r(7546);let m="Popper",[g,v]=(0,d.b)(m),[b,y]=g(m),w=(0,o.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:i,...a}=e,s=y("PopperAnchor",r),u=(0,o.useRef)(null),d=(0,c.e)(t,u);return(0,o.useEffect)(()=>{s.onAnchorChange((null==i?void 0:i.current)||u.current)}),i?null:(0,o.createElement)(l.WV.div,(0,n.Z)({},a,{ref:d}))}),x="PopperContent",[E,j]=g(x),C=(0,o.forwardRef)((e,t)=>{var r,u,d,m,g,v,b,w;let{__scopePopper:j,side:C="bottom",sideOffset:O=0,align:k="center",alignOffset:_=0,arrowPadding:T=0,avoidCollisions:P=!0,collisionBoundary:A=[],collisionPadding:L=0,sticky:M="partial",hideWhenDetached:I=!1,updatePositionStrategy:D="optimized",onPlaced:z,...U}=e,F=y(x,j),[B,Z]=(0,o.useState)(null),W=(0,c.e)(t,e=>Z(e)),[V,$]=(0,o.useState)(null),H=(0,h.t)(V),q=null!==(r=null==H?void 0:H.width)&&void 0!==r?r:0,G=null!==(u=null==H?void 0:H.height)&&void 0!==u?u:0,K="number"==typeof L?L:{top:0,right:0,bottom:0,left:0,...L},Y=Array.isArray(A)?A:[A],X=Y.length>0,J={padding:K,boundary:Y.filter(N),altBoundary:X},{refs:Q,floatingStyles:ee,placement:et,isPositioned:er,middlewareData:en}=(0,i.YF)({strategy:"fixed",placement:C+("center"!==k?"-"+k:""),whileElementsMounted:(...e)=>{let t=(0,a.Me)(...e,{animationFrame:"always"===D});return t},elements:{reference:F.anchor},middleware:[(0,s.cv)({mainAxis:O+G,alignmentAxis:_}),P&&(0,a.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===M?(0,a.dr)():void 0,...J}),P&&(0,a.RR)({...J}),(0,a.dp)({...J,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),V&&(0,i.x7)({element:V,padding:T}),R({arrowWidth:q,arrowHeight:G}),I&&(0,a.Cp)({strategy:"referenceHidden",...J})]}),[eo,ei]=S(et),ea=(0,f.W)(z);(0,p.b)(()=>{er&&(null==ea||ea())},[er,ea]);let es=null===(d=en.arrow)||void 0===d?void 0:d.x,el=null===(m=en.arrow)||void 0===m?void 0:m.y,eu=(null===(g=en.arrow)||void 0===g?void 0:g.centerOffset)!==0,[ec,ed]=(0,o.useState)();return(0,p.b)(()=>{B&&ed(window.getComputedStyle(B).zIndex)},[B]),(0,o.createElement)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:er?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(v=en.transformOrigin)||void 0===v?void 0:v.x,null===(b=en.transformOrigin)||void 0===b?void 0:b.y].join(" ")},dir:e.dir},(0,o.createElement)(E,{scope:j,placedSide:eo,onArrowChange:$,arrowX:es,arrowY:el,shouldHideArrow:eu},(0,o.createElement)(l.WV.div,(0,n.Z)({"data-side":eo,"data-align":ei},U,{ref:W,style:{...U.style,animation:er?void 0:"none",opacity:null!==(w=en.hide)&&void 0!==w&&w.referenceHidden?0:void 0}}))))}
13),O={top:"bottom",right:"left",bottom:"top",left:"right"},k=(0,o.forwardRef)(function(e,t){let{__scopePopper:r,...i}=e,a=j("PopperArrow",r),s=O[a.placedSide];return(0,o.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,o.createElement)(u,(0,n.Z)({},i,{ref:t,style:{...i.style,display:"block"}})))});function N(e){return null!==e}let R=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=S(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(n=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==n?n:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2,b="",y="";return"bottom"===p?(b=c?m:`${g}px`,y=`${-f}px`):"top"===p?(b=c?m:`${g}px`,y=`${l.floating.height+f}px`):"right"===p?(b=`${-f}px`,y=c?m:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,y=c?m:`${v}px`),{data:{x:b,y:y}}}});function S(e){let[t,r="center"]=e.split("-");return[t,r]}let _=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,o.useState)(null);return(0,o.createElement)(b,{scope:t,anchor:n,onAnchorChange:i},r)},T=w,P=C,A=k},42651:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(87462),o=r(67294),i=r(73935),a=r(64757);let s=(0,o.forwardRef)((e,t)=>{var r;let{container:s=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...l}=e;return s?i.createPortal((0,o.createElement)(a.WV.div,(0,n.Z)({},l,{ref:t})),s):null})},29115:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(67294),o=r(73935),i=r(28771),a=r(9981);let s=e=>{let{present:t,children:r}=e,s=function(e){var t;let[r,i]=(0,n.useState)(),s=(0,n.useRef)({}),u=(0,n.useRef)(e),c=(0,n.useRef)("none"),d=e?"mounted":"unmounted",[f,p]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,n.useReducer)((e,r)=>{let n=t[e][r];return null!=n?n:e},d));return(0,n.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,r=u.current,n=r!==e;if(n){let n=c.current,o=l(t);e?p("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):r&&n!==o?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,a.b)(()=>{if(r){let e=e=>{let t=l(s.current),n=t.includes(e.animationName);e.target===r&&n&&(0,o.flushSync)(()=>p("ANIMATION_END"))},t=e=>{e.target===r&&(c.current=l(s.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,n.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),i(e)},[])}}(t),u="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),c=(0,i.e)(s.ref,u.ref),d="function"==typeof r;return d||s.isPresent?(0,n.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},64757:function(e,t,r){"use strict";r.d(t,{WV:function(){return d},jH:function(){return f}});var n=r(87462),o=r(67294),i=r(73935),a=r(28771);let s=(0,o.forwardRef)((e,t)=>{let{children:r,...i}=e,a=o.Children.toArray(r),s=a.find(c);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null);return(0,o.createElement)(l,(0,n.Z)({},i,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,r):null)}return(0,o.createElement)(l,(0,n.Z)({},i,{ref:t}),r)});s.displayName="Slot";let l=(0,o.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n],a=/^on[A-Z]/.test(n);a?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}
13:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?(0,a.F)(t,r.ref):r.ref}):o.Children.count(r)>1?o.Children.only(null):null});l.displayName="SlotClone";let u=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function c(e){return(0,o.isValidElement)(e)&&e.type===u}let d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,o.forwardRef)((e,r)=>{let{asChild:i,...a}=e,l=i?s:t;return(0,o.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,o.createElement)(l,(0,n.Z)({},a,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function f(e,t){e&&(0,i.flushSync)(()=>e.dispatchEvent(t))}},66681:function(e,t,r){"use strict";r.d(t,{Pc:function(){return x},ck:function(){return _},fC:function(){return S}});var n=r(87462),o=r(67294),i=r(36206),a=r(13879),s=r(28771),l=r(25360),u=r(91276),c=r(64757),d=r(79698),f=r(77342),p=r(78990);let h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,b,y]=(0,a.B)(g),[w,x]=(0,l.b)(g,[y]),[E,j]=w(g),C=(0,o.forwardRef)((e,t)=>(0,o.createElement)(v.Provider,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(v.Slot,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(O,(0,n.Z)({},e,{ref:t}))))),O=(0,o.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:l=!1,dir:u,currentTabStopId:g,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:y,onEntryFocus:w,...x}=e,j=(0,o.useRef)(null),C=(0,s.e)(t,j),O=(0,p.gm)(u),[k=null,N]=(0,f.T)({prop:g,defaultProp:v,onChange:y}),[S,_]=(0,o.useState)(!1),T=(0,d.W)(w),P=b(r),A=(0,o.useRef)(!1),[L,M]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let e=j.current;if(e)return e.addEventListener(h,T),()=>e.removeEventListener(h,T)},[T]),(0,o.createElement)(E,{scope:r,orientation:a,dir:O,loop:l,currentTabStopId:k,onItemFocus:(0,o.useCallback)(e=>N(e),[N]),onItemShiftTab:(0,o.useCallback)(()=>_(!0),[]),onFocusableItemAdd:(0,o.useCallback)(()=>M(e=>e+1),[]),onFocusableItemRemove:(0,o.useCallback)(()=>M(e=>e-1),[])},(0,o.createElement)(c.WV.div,(0,n.Z)({tabIndex:S||0===L?-1:0,"data-orientation":a},x,{ref:C,style:{outline:"none",...e.style},onMouseDown:(0,i.M)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,i.M)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable),t=e.find(e=>e.active),r=e.find(e=>e.id===k),n=[t,r,...e].filter(Boolean),o=n.map(e=>e.ref.current);R(o)}}A.current=!1}),onBlur:(0,i.M)(e.onBlur,()=>_(!1))})))}),k=(0,o.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:s=!1,tabStopId:l,...d}=e,f=(0,u.M)(),p=l||f,h=j("RovingFocusGroupItem",r),m=h.currentTabStopId===p,g=b(r),{onFocusableItemAdd:y,onFocusableItemRemove:w}=h;return(0,o.useEffect)(()=>{if(a)return y(),()=>w()},[a,y,w]),(0,o.createElement)(v.ItemSlot,{scope:r,id:p,focusable:a,active:s},(0,o.createElement)(c.WV.span,(0,n.Z)({tabIndex:m?0:-1,"data-orientation":h.orientation},d,{ref:t,onMouseDown:(0,i.M)(e.onMouseDown,e=>{a?h.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.M)(e.onFocus,()=>h.onItemFocus(p)),onKeyDown:(0,i.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return N[o]}(e,h.orientation,h.dir);if(void 0!==t){e.preventDefault();let o=g().filter(e=>e.focusable),i=o.map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=h.loop?(r=i,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(o+1)}setTimeout(()=>R(i))}})})))}),N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}let S=C,_=k},4222:function(e,t,r){"use strict";r.d(t,{g7:function(){return s},Z8:function(){return a}});var n=r(67294);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var i=r(85893);function a(e){let t=function(e){let t=n.forwardRef((e,t)=>
13{let{children:r,...i}=e;if(n.isValidElement(r)){let e,a;let s=(a=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.ref:(a=(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?r.props.ref:r.props.ref||r.ref,l=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n],a=/^on[A-Z]/.test(n);a?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(l.ref=t?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}(t,s):s),n.cloneElement(r,l)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:o,...a}=e,s=n.Children.toArray(o),l=s.find(u);if(l){let e=l.props.children,o=s.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var s=a("Slot"),l=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},79698:function(e,t,r){"use strict";r.d(t,{W:function(){return o}});var n=r(67294);function o(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),(0,n.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}},77342:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(67294),o=r(79698);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,a]=function({defaultProp:e,onChange:t}){let r=(0,n.useState)(e),[i]=r,a=(0,n.useRef)(i),s=(0,o.W)(t);return(0,n.useEffect)(()=>{a.current!==i&&(s(i),a.current=i)},[i,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:i,u=(0,o.W)(r),c=(0,n.useCallback)(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else a(t)},[s,e,a,u]);return[l,c]}},95629:function(e,t,r){"use strict";r.d(t,{e:function(){return o}});var n=r(67294);function o(e,t=globalThis?.document){let r=function(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}(e);n.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}},9981:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(67294);let o=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:()=>{}},7546:function(e,t,r){"use strict";r.d(t,{t:function(){return i}});var n=r(67294),o=r(9981);function i(e){let[t,r]=(0,n.useState)(void 0);return(0,o.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},96219:function(e,t,r){"use strict";r.d(t,{T:function(){return a},f:function(){return s}});var n=r(87462),o=r(67294),i=r(64757);let a=(0,o.forwardRef)((e,t)=>(0,o.createElement)(i.WV.span,(0,n.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),s=a},5121:function(e,t,r){"use strict";r.d(t,{Z:function(){return eH}});var n,o,i,a={};function s(e,t){return function(){return e.apply(t,arguments)}}r.r(a),r.d(a,{hasBrowserEnv:function(){return ei},hasStandardBrowserEnv:function(){return ea},hasStandardBrowserWebWorkerEnv:function(){return es}});let{toString:l}=Object.prototype,{getPrototypeOf:u}=Object,c=(n=Object.create(null),e=>{let t=l.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined"),m=d("ArrayBuffer"),g=f("string"),v=f("function"),b=f("number"),y=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==c(e))return!1;let t=u(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=d("Date"),E=d("File"),j=d("Blob"),C=d("FileList"),O=d("URLSearchParams");function k(e,t,{allOwnKeys:r=!1}={}){let n,o;
13if(null!=e){if("object"!=typeof e&&(e=[e]),p(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let o;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}}function N(e,t){let r;t=t.toLowerCase();let n=Object.keys(e),o=n.length;for(;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}let R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,S=e=>!h(e)&&e!==R,_=(o="undefined"!=typeof Uint8Array&&u(Uint8Array),e=>o&&e instanceof o),T=d("HTMLFormElement"),P=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),A=d("RegExp"),L=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};k(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},M="abcdefghijklmnopqrstuvwxyz",I="0123456789",D={DIGIT:I,ALPHA:M,ALPHA_DIGIT:M+M.toUpperCase()+I},z=d("AsyncFunction");var U={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)},isString:g,isNumber:b,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:w,isUndefined:h,isDate:x,isFile:E,isBlob:j,isRegExp:A,isFunction:v,isStream:e=>y(e)&&v(e.pipe),isURLSearchParams:O,isTypedArray:_,isFileList:C,forEach:k,merge:function e(){let{caseless:t}=S(this)&&this||{},r={},n=(n,o)=>{let i=t&&N(r,o)||o;w(r[i])&&w(n)?r[i]=e(r[i],n):w(n)?r[i]=e({},n):p(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&k(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(k(t,(t,n)=>{r&&v(t)?e[n]=s(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;let s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&u(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!b(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=e&&e[Symbol.iterator],o=n.call(e);for(;(r=o.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:T,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:L,freezeMethods:e=>{L(e,(t,r)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=e[r];if(v(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(p(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:N,global:R,isContextDefined:S,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let o=p(e)?[]:{};return k(e,(e,t)=>{let i=r(e,n+1);h(i)||(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:z,isThenable:e=>e&&(y(e)||v(e))&&v(e.then)&&v(e.catch)};function F(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}U.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let B=F.prototype,Z={};
13["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Z[e]={value:e}}),Object.defineProperties(F,Z),Object.defineProperty(B,"isAxiosError",{value:!0}),F.from=(e,t,r,n,o,i)=>{let a=Object.create(B);return U.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),F.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var W=r(48764).lW;function V(e){return U.isPlainObject(e)||U.isArray(e)}function $(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function H(e,t,r){return e?e.concat(t).map(function(e,t){return e=$(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let q=U.toFlatObject(U,{},null,function(e){return/^is[A-Z]/.test(e)});var G=function(e,t,r){if(!U.isObject(e))throw TypeError("target must be an object");t=t||new FormData,r=U.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!U.isUndefined(t[e])});let n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=r.Blob||"undefined"!=typeof Blob&&Blob,l=s&&U.isSpecCompliantForm(t);if(!U.isFunction(o))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(U.isDate(e))return e.toISOString();if(!l&&U.isBlob(e))throw new F("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(e)||U.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):W.from(e):e}function c(e,r,o){let s=e;if(e&&!o&&"object"==typeof e){if(U.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var l;if(U.isArray(e)&&(l=e,U.isArray(l)&&!l.some(V))||(U.isFileList(e)||U.endsWith(r,"[]"))&&(s=U.toArray(e)))return r=$(r),s.forEach(function(e,n){U.isUndefined(e)||null===e||t.append(!0===a?H([r],n,i):null===a?r:r+"[]",u(e))}),!1}}return!!V(e)||(t.append(H(o,r,i),u(e)),!1)}let d=[],f=Object.assign(q,{defaultVisitor:c,convertValue:u,isVisitable:V});if(!U.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!U.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),U.forEach(r,function(r,i){let a=!(U.isUndefined(r)||null===r)&&o.call(t,r,U.isString(i)?i.trim():i,n,f);!0===a&&e(r,n?n.concat(i):[i])}),d.pop()}}(e),t};function K(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Y(e,t){this._pairs=[],e&&G(e,this,t)}let X=Y.prototype;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Q(e,t,r){let n;if(!t)return e;let o=r&&r.encode||J,i=r&&r.serialize;if(n=i?i(t,r):U.isURLSearchParams(t)?t.toString():new Y(t,r).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){let t=e?function(t){return e.call(this,t,K)}:K;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var ee=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){U.forEach(this.handlers,function(t){null!==t&&e(t)})}},et={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},er="undefined"!=typeof URLSearchParams?URLSearchParams:Y,en="undefined"!=typeof FormData?FormData:null,eo="undefined"!=typeof Blob?Blob:null;let ei="undefined"!=typeof window&&"undefined"!=typeof document,ea=(i="undefined"!=typeof navigator&&navigator.product,ei&&0>["ReactNative","NativeScript","NS"].indexOf(i)),es="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var el={...a,isBrowser:!0,classes:{URLSearchParams:er,FormData:en,Blob:eo},protocols:["http","https","file","blob","url","data"]},eu=function(e){if(U.isFormData(e)&&U.isFunction(e.entries)){let t={};
13return U.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&U.isArray(n)?n.length:i,s)return U.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&U.isObject(n[i])||(n[i]=[]);let l=e(t,r,n[i],o);return l&&U.isArray(n[i])&&(n[i]=function(e){let t,r;let n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i])),!a}(U.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let ec={transitional:et,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=U.isObject(e);i&&U.isHTMLForm(e)&&(e=new FormData(e));let a=U.isFormData(e);if(a)return o?JSON.stringify(eu(e)):e;if(U.isArrayBuffer(e)||U.isBuffer(e)||U.isStream(e)||U.isFile(e)||U.isBlob(e))return e;if(U.isArrayBufferView(e))return e.buffer;if(U.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1){var s,l;return(s=e,l=this.formSerializer,G(s,new el.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return el.isNode&&U.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},l))).toString()}if((r=U.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return G(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if(U.isString(e))try{return(0,JSON.parse)(e),U.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||ec.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&U.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw F.from(e,F.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:el.classes.FormData,Blob:el.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],e=>{ec.headers[e]={}});let ed=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ef=e=>{let t,r,n;let o={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&ed[t]||("set-cookie"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+", "+r:r)}),o};let ep=Symbol("internals");function eh(e){return e&&String(e).trim().toLowerCase()}function em(e){return!1===e||null==e?e:U.isArray(e)?e.map(em):String(e)}let eg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ev(e,t,r,n,o){if(U.isFunction(n))return n.call(this,t,r);if(o&&(t=r),U.isString(t)){if(U.isString(n))return -1!==t.indexOf(n);if(U.isRegExp(n))return n.test(t)}}class eb{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=eh(t);if(!o)throw Error("header name must be a non-empty string");let i=U.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=em(e))}let i=(e,t)=>U.forEach(e,(e,r)=>o(e,r,t));return U.isPlainObject(e)||e instanceof this.constructor?i(e,t):U.isString(e)&&(e=e.trim())&&!eg(e)?i(ef(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=eh(e)){let r=U.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
13for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(U.isFunction(t))return t.call(this,e,r);if(U.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eh(e)){let r=U.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||ev(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=eh(e)){let o=U.findKey(r,e);o&&(!t||ev(r,r[o],o,t))&&(delete r[o],n=!0)}}return U.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||ev(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return U.forEach(this,(n,o)=>{let i=U.findKey(r,o);if(i){t[i]=em(n),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();a!==o&&delete t[o],t[a]=em(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return U.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&U.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=this[ep]=this[ep]={accessors:{}},r=t.accessors,n=this.prototype;function o(e){let t=eh(e);r[t]||(!function(e,t){let r=U.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(n,e),r[t]=!0)}return U.isArray(e)?e.forEach(o):o(e),this}}function ey(e,t){let r=this||ec,n=t||r,o=eb.from(n.headers),i=n.data;return U.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ew(e){return!!(e&&e.__CANCEL__)}function ex(e,t,r){F.call(this,null==e?"canceled":e,F.ERR_CANCELED,t,r),this.name="CanceledError"}eb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(eb.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),U.freezeMethods(eb),U.inherits(ex,F,{__CANCEL__:!0});var eE=el.hasStandardBrowserEnv?{write(e,t,r,n,o,i){let a=[e+"="+encodeURIComponent(t)];U.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),U.isString(n)&&a.push("path="+n),U.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ej(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}var eC=el.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=U.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},eO=function(e,t){let r;e=e||10;let n=Array(e),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=o[a];r||(r=l),n[i]=s,o[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}};function ek(e,t){let r=0,n=eO(50,250);return o=>{let i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,l=n(s),u=i<=a;r=i;let c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}let eN="undefined"!=typeof XMLHttpRequest;var eR=eN&&function(e){return new Promise(function(t,r){let n,o,i=e.data,a=eb.from(e.headers).normalize(),{responseType:s,withXSRFToken:l}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}if(U.isFormData(i)){if(el.hasStandardBrowserEnv||el.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if(!1!==(o=a.getContentType())){let[e,...t]=o?o.split(";").map(e=>
13e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}}let c=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+r))}let d=ej(e.baseURL,e.url);function f(){if(!c)return;let n=eb.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),o=s&&"text"!==s&&"json"!==s?c.response:c.responseText,i={data:o,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};!function(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new F("Request failed with status code "+r.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}(function(e){t(e),u()},function(e){r(e),u()},i),c=null}if(c.open(e.method.toUpperCase(),Q(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(r(new F("Request aborted",F.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||et;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new F(t,n.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,c)),c=null},el.hasStandardBrowserEnv&&(l&&U.isFunction(l)&&(l=l(e)),l||!1!==l&&eC(d))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&eE.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===i&&a.setContentType(null),"setRequestHeader"in c&&U.forEac
13h(a.toJSON(),function(e,t){c.setRequestHeader(t,e)}),U.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",ek(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",ek(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{c&&(r(!t||t.type?new ex(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let p=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);if(p&&-1===el.protocols.indexOf(p)){r(new F("Unsupported protocol "+p+":",F.ERR_BAD_REQUEST,e));return}c.send(i||null)})};let eS={http:null,xhr:eR};U.forEach(eS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e_=e=>`- ${e}`,eT=e=>U.isFunction(e)||null===e||!1===e;var eP={getAdapter:e=>{let t,r;e=U.isArray(e)?e:[e];let{length:n}=e,o={};for(let i=0;i<n;i++){let n;if(r=t=e[i],!eT(t)&&void 0===(r=eS[(n=String(t)).toLowerCase()]))throw new F(`Unknown adapter '${n}'`);if(r)break;o[n||"#"+i]=r}if(!r){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=n?e.length>1?"since :\n"+e.map(e_).join("\n"):" "+e_(e[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:eS};function eA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ex(null,e)}function eL(e){eA(e),e.headers=eb.from(e.headers),e.data=ey.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=eP.getAdapter(e.adapter||ec.adapter);return t(e).then(function(t){return eA(e),t.data=ey.call(e,e.transformResponse,t),t.headers=eb.from(t.headers),t},function(t){return!ew(t)&&(eA(e),t&&t.response&&(t.response.data=ey.call(e,e.transformResponse,t.response),t.response.headers=eb.from(t.response.headers))),Promise.reject(t)})}let eM=e=>e instanceof eb?{...e}:e;function eI(e,t){t=t||{};let r={};function n(e,t,r){return U.isPlainObject(e)&&U.isPlainObject(t)?U.merge.call({caseless:r},e,t):U.isPlainObject(t)?U.merge({},t):U.isArray(t)?t.slice():t}function o(e,t,r){return U.isUndefined(t)?U.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!U.isUndefined(t))return n(void 0,t)}function a(e,t){return U.isUndefined(t)?U.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}let l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eM(e),eM(t),!0)};return U.forEach(Object.keys(Object.assign({},e,t)),function(n){let i=l[n]||o,a=i(e[n],t[n],n);U.isUndefined(a)&&i!==s||(r[n]=a)}),r}let eD="1.6.8",ez={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ez[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let eU={};ez.transitional=function(e,t,r){function n(e,t){return"[Axios v"+eD+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new F(n(o," has been removed"+(t?" in "+t:"")),F.ERR_DEPRECATED);return t&&!eU[o]&&(eU[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var eF={assertOptions:function(e,t,r){if("object"!=typeof e)throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],a=t[i];if(a){let t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new F("option "+i+" must be "+r,F.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new F("Unknown option "+i,F.ERR_BAD_OPTION)}},validators:ez};let eB=eF.validators;class eZ{constructor(e){this.defaults=e,this.interceptors={request:new ee,response:new ee}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=eI(this.defaults,t);let{transitional:o,paramsSerializer:i,headers:a}=t;void 0!==o&&eF.assertOptions(o,{silentJSONParsing:eB.transitional(eB.boolean),forcedJSONParsing:eB.transitional(eB.boolean),clarifyTimeoutError:eB.transitional(eB.boolean)}
13,!1),null!=i&&(U.isFunction(i)?t.paramsSerializer={serialize:i}:eF.assertOptions(i,{encode:eB.function,serialize:eB.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&U.merge(a.common,a[t.method]);a&&U.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eb.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[eL.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let f=t;for(d=0;d<n;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=eL.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){e=eI(this.defaults,e);let t=ej(e.baseURL,e.url);return Q(t,e.params,e.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(e){eZ.prototype[e]=function(t,r){return this.request(eI(r||{},{method:e,url:t,data:(r||{}).data}))}}),U.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(eI(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}eZ.prototype[e]=t(),eZ.prototype[e+"Form"]=t(!0)});class eW{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new ex(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;let t=new eW(function(t){e=t});return{token:t,cancel:e}}}let eV={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
13alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eV).forEach(([e,t])=>{eV[t]=e});let e$=function e(t){let r=new eZ(t),n=s(eZ.prototype.request,r);return U.extend(n,eZ.prototype,r,{allOwnKeys:!0}),U.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eI(t,r))},n}(ec);e$.Axios=eZ,e$.CanceledError=ex,e$.CancelToken=eW,e$.isCancel=ew,e$.VERSION=eD,e$.toFormData=G,e$.AxiosError=F,e$.Cancel=e$.CanceledError,e$.all=function(e){return Promise.all(e)},e$.spread=function(e){return function(t){return e.apply(null,t)}},e$.isAxiosError=function(e){return U.isObject(e)&&!0===e.isAxiosError},e$.mergeConfig=eI,e$.AxiosHeaders=eb,e$.formToJSON=e=>eu(U.isHTMLForm(e)?new FormData(e):e),e$.getAdapter=eP.getAdapter,e$.HttpStatusCode=eV,e$.default=e$;var eH=e$},12003:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(90512);let o=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,i=n.W,a=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let i=o(t)||o(n);return a[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),c=null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]);return i(e,l,c,null==r?void 0:r.class,null==r?void 0:r.className)}},90512:function(e,t,r){"use strict";function n(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{W:function(){return n}})},86501:function(e,t,r){"use strict";let n,o;r.d(t,{x7:function(){return eo},ZP:function(){return ei},Am:function(){return z}});var i,a=r(67294);let s={data:""},l=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||s,u=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,c=/\/\*[^]*?\*\/| +/g,d=/\n+/g,f=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+a+";":n+="f"==i[1]?f(a,i):i+"{"+f(a,"k"==i[1]?"":t)+"}":"object"==typeof a?n+=f(a,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=f.p?f.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},p={},h=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+h(e[r]);return t}return e},m=(e,t,r,n,o)=>{var i;let a=h(e),s=p[a]||(p[a]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(a));if(!p[s]){let t=a!==e?e:(e=>{let t,r,n=[{}];for(;t=u.exec(e.replace(c,""));)t[4]?n.shift():t[3]?(r=t[3].replace(d," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(d," ").trim();return n[0]})(e);p[s]=f(o?{["@keyframes "+s]:t}:t,r?"":"."+s)}let l=r&&p.g?p.g:null;return r&&(p.g=p[s]),i=p[s],l?t.data=t.data.replace(l,i):-1===t.data.indexOf(i)&&(t.data=n?i+t.data:t.data+i),s},g=(e,t,r)=>e.reduce((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":f(e,""):!1===e?"":e}return e+n+(null==i?"":i)},"");function v(e){let t=this||{},r=e.call?e(t.p):e;
13return m(r.unshift?r.raw?g(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,l(t.target),t.g,t.o,t.k)}v.bind({g:1});let b,y,w,x=v.bind({k:1});function E(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;r.p=Object.assign({theme:y&&y()},s),r.o=/ *go\d+/.test(l),s.className=v.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),w&&u[0]&&w(s),b(u,s)}return t?t(o):o}}var j=e=>"function"==typeof e,C=(e,t)=>j(e)?e(t):e,O=(n=0,()=>(++n).toString()),k=()=>{if(void 0===o&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");o=!e||e.matches}return o},N=new Map,R=e=>{if(N.has(e))return;let t=setTimeout(()=>{N.delete(e),A({type:4,toastId:e})},1e3);N.set(e,t)},S=e=>{let t=N.get(e);t&&clearTimeout(t)},_=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&S(t.toast.id),{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return e.toasts.find(e=>e.id===r.id)?_(e,{type:1,toast:r}):_(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?R(n):e.toasts.forEach(e=>{R(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+o}))}}},T=[],P={toasts:[],pausedAt:void 0},A=e=>{P=_(P,e),T.forEach(e=>{e(P)})},L={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},M=(e={})=>{let[t,r]=(0,a.useState)(P);(0,a.useEffect)(()=>(T.push(r),()=>{let e=T.indexOf(r);e>-1&&T.splice(e,1)}),[t]);let n=t.toasts.map(t=>{var r,n;return{...e,...e[t.type],...t,duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||L[t.type],style:{...e.style,...null==(n=e[t.type])?void 0:n.style,...t.style}}});return{...t,toasts:n}},I=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||O()}),D=e=>(t,r)=>{let n=I(t,e,r);return A({type:2,toast:n}),n.id},z=(e,t)=>D("blank")(e,t);z.error=D("error"),z.success=D("success"),z.loading=D("loading"),z.custom=D("custom"),z.dismiss=e=>{A({type:3,toastId:e})},z.remove=e=>A({type:4,toastId:e}),z.promise=(e,t,r)=>{let n=z.loading(t.loading,{...r,...null==r?void 0:r.loading});return e.then(e=>(z.success(C(t.success,e),{id:n,...r,...null==r?void 0:r.success}),e)).catch(e=>{z.error(C(t.error,e),{id:n,...r,...null==r?void 0:r.error})}),e};var U=(e,t)=>{A({type:1,toast:{id:e,height:t}})},F=()=>{A({type:5,time:Date.now()})},B=e=>{let{toasts:t,pausedAt:r}=M(e);(0,a.useEffect)(()=>{if(r)return;let e=Date.now(),n=t.map(t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(r<0){t.visible&&z.dismiss(t.id);return}return setTimeout(()=>z.dismiss(t.id),r)});return()=>{n.forEach(e=>e&&clearTimeout(e))}},[t,r]);let n=(0,a.useCallback)(()=>{r&&A({type:6,time:Date.now()})},[r]),o=(0,a.useCallback)((e,r)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:i}=r||{},a=t.filter(t=>(t.position||i)===(e.position||i)&&t.height),s=a.findIndex(t=>t.id===e.id),l=a.filter((e,t)=>t<s&&e.visible).length;return a.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+o,0)},[t]);return{toasts:t,handlers:{updateHeight:U,startPause:F,endPause:n,calculateOffset:o}}},Z=E("div")` 14 width: 20px; 15 opacity: 0; 16 height: 20px; 17 border-radius: 10px; 18 background: ${e=>e.primary||"#ff4b4b"}; 19 position: relative; 20 transform: rotate(45deg); 21 22 animation: ${x` 23from { 24 transform: scale(0) rotate(45deg); 25 opacity: 0; 26} 27to { 28 transform: scale(1) rotate(45deg); 29 opacity: 1; 30}`} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 31 forwards; 32 animation-delay: 100ms; 33 34 &:after, 35 &:before { 36 content: ''; 37 animation: ${x` 38from { 39 transform: scale(0); 40 opacity: 0; 41} 42to { 43 transform: scale(1); 44 opacity: 1; 45}`} 0.15s ease-out forwards; 46 animation-delay: 150ms; 47 position: absolute; 48 border-radius: 3px; 49 opacity: 0; 50 background: ${e=>e.secondary||"#fff"}; 51 bottom: 9px; 52 left: 4px; 53 height: 2px; 54 width: 12px; 55 } 56 57 &:before { 58 animation: ${x` 59from { 60 transform: scale(0) rotate(90deg); 61 opacity: 0; 62} 63to { 64 transform: scale(1) rotate(90deg); 65 opacity: 1; 66}`} 0.15s ease-out forwards; 67 animation-delay: 180ms; 68 transform: rotate(90deg); 69 } 70`,W=E("div")` 71 width: 12px; 72 height: 12px; 73 box-sizing: border-box; 74 border: 2px solid; 75 border-radius: 100%; 76 border-color: ${e=>e.secondary||"#e0e0e0"}; 77 border-right-color: ${e=>e.primary||"#616161"}; 78 animation: ${x` 79 from { 80 transform: rotate(0deg); 81 } 82 to { 83 transform: rotate(360deg); 84 } 85`} 1s linear infinite; 86`,V=E("div")`
87 width: 20px; 88 opacity: 0; 89 height: 20px; 90 border-radius: 10px; 91 background: ${e=>e.primary||"#61d345"}; 92 position: relative; 93 transform: rotate(45deg); 94 95 animation: ${x` 96from { 97 transform: scale(0) rotate(45deg); 98 opacity: 0; 99} 100to { 101 transform: scale(1) rotate(45deg); 102 opacity: 1; 103}`} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 104 forwards; 105 animation-delay: 100ms; 106 &:after { 107 content: ''; 108 box-sizing: border-box; 109 animation: ${x` 1100% { 111 height: 0; 112 width: 0; 113 opacity: 0; 114} 11540% { 116 height: 0; 117 width: 6px; 118 opacity: 1; 119} 120100% { 121 opacity: 1; 122 height: 10px; 123}`} 0.2s ease-out forwards; 124 opacity: 0; 125 animation-delay: 200ms; 126 position: absolute; 127 border-right: 2px solid; 128 border-bottom: 2px solid; 129 border-color: ${e=>e.secondary||"#fff"}; 130 bottom: 6px; 131 left: 6px; 132 height: 10px; 133 width: 6px; 134 } 135`,$=E("div")` 136 position: absolute; 137`,H=E("div")` 138 position: relative; 139 display: flex; 140 justify-content: center; 141 align-items: center; 142 min-width: 20px; 143 min-height: 20px; 144`,q=E("div")` 145 position: relative; 146 transform: scale(0.6); 147 opacity: 0.4; 148 min-width: 20px; 149 animation: ${x` 150from { 151 transform: scale(0.6); 152 opacity: 0.4; 153} 154to { 155 transform: scale(1); 156 opacity: 1; 157}`} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 158 forwards; 159`,G=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?a.createElement(q,null,t):t:"blank"===r?null:a.createElement(H,null,a.createElement(W,{...n}),"loading"!==r&&a.createElement($,null,"error"===r?a.createElement(Z,{...n}):a.createElement(V,{...n})))},K=e=>` 1600% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 161100% {transform: translate3d(0,0,0) scale(1); opacity:1;} 162`,Y=e=>` 1630% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 164100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} 165`,X=E("div")` 166 display: flex; 167 align-items: center; 168 background: #fff; 169 color: #363636; 170 line-height: 1.3; 171 will-change: transform; 172 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 173 max-width: 350px; 174 pointer-events: auto; 175 padding: 8px 10px; 176 border-radius: 8px; 177`,J=E("div")` 178 display: flex; 179 justify-content: center; 180 margin: 4px 10px; 181 color: inherit; 182 flex: 1 1 auto; 183 white-space: pre-line; 184`,Q=(e,t)=>{let r=e.includes("top")?1:-1,[n,o]=k()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[K(r),Y(r)];return{animation:t?`${x(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${x(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ee=a.memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?Q(e.position||t||"top-center",e.visible):{opacity:0},i=a.createElement(G,{toast:e}),s=a.createElement(J,{...e.ariaProps},C(e.message,e));return a.createElement(X,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:i,message:s}):a.createElement(a.Fragment,null,i,s))});i=a.createElement,f.p=void 0,b=i,y=void 0,w=void 0;var et=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let i=a.useCallback(t=>{if(t){let r=()=>{n(e,t.getBoundingClientRect().height)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return a.createElement("div",{ref:i,className:t,style:r},o)},er=(e,t)=>{let r=e.includes("top"),n=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:k()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...r?{top:0}:{bottom:0},...n}},en=v` 185 z-index: 9999; 186 > * { 187 pointer-events: auto; 188 } 189`,eo=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:l,handlers:u}=B(r);return a.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...i},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},l.map(r=>{let i=r.position||t,s=er(i,u.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return a.createElement(et,{id:r.id,key:r.id,onHeightUpdate:u.updateHeight,className:r.visible?en:"",style:s},"custom"===r.type?C(r.message,r):o?o(r):a.createElement(ee,{toast:r,position:i}))}))},ei=z},67463:function(e,t,r){"use strict";r.d(t,{_T:function(){return o},pi:function(){return n}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}"function"==typeof SuppressedError&&SuppressedError}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(91118),t(96885)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.