1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8395],{3179:function(e,t,r){"use strict";var n=r(9109).Buffer,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.map=t.array=t.rustEnum=t.str=t.vecU8=t.tagged=t.vec=t.bool=t.option=t.publicKey=t.i256=t.u256=t.i128=t.u128=t.i64=t.u64=t.struct=t.f64=t.f32=t.i32=t.u32=t.i16=t.u16=t.i8=t.u8=void 0;let a=r(19632),i=r(45429),s=o(r(58171));var l=r(19632);Object.defineProperty(t,"u8",{enumerable:!0,get:function(){return l.u8}}),Object.defineProperty(t,"i8",{enumerable:!0,get:function(){return l.s8}}),Object.defineProperty(t,"u16",{enumerable:!0,get:function(){return l.u16}}),Object.defineProperty(t,"i16",{enumerable:!0,get:function(){return l.s16}}),Object.defineProperty(t,"u32",{enumerable:!0,get:function(){return l.u32}}),Object.defineProperty(t,"i32",{enumerable:!0,get:function(){return l.s32}}),Object.defineProperty(t,"f32",{enumerable:!0,get:function(){return l.f32}}),Object.defineProperty(t,"f64",{enumerable:!0,get:function(){return l.f64}}),Object.defineProperty(t,"struct",{enumerable:!0,get:function(){return l.struct}});class u extends a.Layout{constructor(e,t,r){super(e,r),this.blob=(0,a.blob)(e),this.signed=t}decode(e,t=0){let r=new s.default(this.blob.decode(e,t),10,"le");return this.signed?r.fromTwos(8*this.span).clone():r}encode(e,t,r=0){return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(n,"le",this.span),t,r)}}function d(e){return new u(8,!1,e)}function c(e){return new u(8,!0,e)}function f(e){return new u(16,!1,e)}function g(e){return new u(16,!0,e)}function p(e){return new u(32,!1,e)}function h(e){return new u(32,!0,e)}t.u64=d,t.i64=c,t.u128=f,t.i128=g,t.u256=p,t.i256=h;class b extends a.Layout{constructor(e,t,r,n){super(e.span,n),this.layout=e,this.decoder=t,this.encoder=r}decode(e,t){return this.decoder(this.layout.decode(e,t))}encode(e,t,r){return this.layout.encode(this.encoder(e),t,r)}getSpan(e,t){return this.layout.getSpan(e,t)}}function m(e){return new b((0,a.blob)(32),e=>new i.PublicKey(e),e=>e.toBuffer(),e)}t.publicKey=m;class y extends a.Layout{constructor(e,t){super(-1,t),this.layout=e,this.discriminator=(0,a.u8)()}encode(e,t,r=0){return null==e?this.discriminator.encode(0,t,r):(this.discriminator.encode(1,t,r),this.layout.encode(e,t,r+1)+1)}decode(e,t=0){let r=this.discriminator.decode(e,t);if(0===r)return null;if(1===r)return this.layout.decode(e,t+1);throw Error("Invalid option "+this.property)}getSpan(e,t=0){let r=this.discriminator.decode(e,t);if(0===r)return 1;if(1===r)return this.layout.getSpan(e,t+1)+1;throw Error("Invalid option "+this.property)}}function v(e,t){return new y(e,t)}function x(e){return new b((0,a.u8)(),w,k,e)}function w(e){if(0===e)return!1;if(1===e)return!0;throw Error("Invalid bool: "+e)}function k(e){return e?1:0}function E(e,t){let r=(0,a.u32)("length");return new b((0,a.struct)([r,(0,a.seq)(e,(0,a.offset)(r,-r.span),"values")]),({values:e})=>e,e=>({values:e}),t)}function N(e,t,r){function n({tag:t,data:r}){if(!t.eq(e))throw Error("Invalid tag, expected: "+e.toString("hex")+", got: "+t.toString("hex"));return r}return new b((0,a.struct)([d("tag"),t.replicate("data")]),n,t=>({tag:e,data:t}),r)}function j(e){let t=(0,a.u32)("length");return new b((0,a.struct)([t,(0,a.blob)((0,a.offset)(t,-t.span),"data")]),({data:e})=>e,e=>({data:e}),e)}function S(e){return new b(j(),e=>e.toString("utf-8"),e=>n.from(e,"utf-8"),e)}function R(e,t,r){let n=(0,a.union)(null!=r?r:(0,a.u8)(),t);return e.forEach((e,t)=>n.addVariant(t,e,e.property)),n}function C(e,t,r){return new b((0,a.struct)([(0,a.seq)(e,t,"values")]),({values:e})=>e,e=>({values:e}),r)}t.option=v,t.bool=x,t.vec=E,t.tagged=N,t.vecU8=j,t.str=S,t.rustEnum=R,t.array=C;class T extends a.Layout{constructor(e,t,r){super(e.span+t.span,r),this.keyLayout=e,this.valueLayout=t}decode(e,t){return t=t||0,[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}encode(e,t,r){r=r||0;let n=this.keyLayout.encode(e[0],t,r),o=this.valueLayout.encode(e[1],t,r+n);return n+o}getSpan(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}function I(e,t,r){let n=(0,a.u32)("length");return new b((0,a.struct)([n,(0,a.seq)(new T(e,t),(0,a.offset)(n,-n.span),"values")]),({values:e})=>new Map(e),e=>({values:Array.from(e.entries())}),r)}t.map=I},48635:function(e,t,r){var n=r(35197),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";e.exports=n(o)},19467:function(e){"use strict";let t=/[\p{Lu}]/u,r=/[\p{Ll}]/u,n=/^[\p{Lu}](?![\p{Lu}])/gu,o=/([\p{Alpha}\p{N}_]|$)/u,a=/[_.\- ]+/,i=RegExp("^"+a.source),s=RegExp(a.source+o.source,"gu"),l=RegExp("\\d+"+o.source,"gu"),u=(e,n,o)=>{let a=!1,i=!1,s=!1;for(let l=0;l<e.length;l++){let u=e[l];a&&t.test(u)?(e=e.slice(0,l)+"-"+e.slice(l),a=!1,s=i,i=!0,l++):i&&s&&r.test(u)?(e=e.slice(0,l-1)+"-"+e.slice(l-1),s=i,i=!1,a=!0):(a=n(u)===u&&o(u)!==u,s=i,i=o(u)===u&&n(u)!==u)}return e},d=(e,t)=>(n.lastIndex=0,e.replace(n,e=>t(e))),c=(e,t)=>(s.lastIndex=0,l.lastIndex=0,e.replace(s,(e,r)=>t(r)).replace(l,e=>t(e))),f=(e,t)=>{if(!("string"==typeof e||Array.isArray(e)))throw TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},0===(e=Array.isArray(e)?e.map(e=>e.trim()).filter(e=>e.length).join("-"):e.trim()).length)return"";let r=!1===t.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t.locale),n=!1===t.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(t.locale);return 1===e.length?t.pascalCase?n(e):r(e):(e!==r(e)&&(e=u(e,r,n)),e=e.replace(i,""),e=t.preserveConsecutiveUppercase?d(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),c(e,n))};e.exports=f,e.exports.default=f},19632:function(e,t,r){"use strict";var n=r(9109).Buffer;/** 2 * Support for translating between Buffer instances and JavaScript
3 * native types. 4 * 5 * {@link module:Layout~Layout|Layout} is the basis of a class 6 * hierarchy that associates property names with sequences of encoded 7 * bytes. 8 * 9 * Layouts are supported for these scalar (numeric) types: 10 * * {@link module:Layout~UInt|Unsigned integers in little-endian 11 * format} with {@link module:Layout.u8|8-bit}, {@link 12 * module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit}, 13 * {@link module:Layout.u32|32-bit}, {@link 14 * module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit} 15 * representation ranges; 16 * * {@link module:Layout~UIntBE|Unsigned integers in big-endian 17 * format} with {@link module:Layout.u16be|16-bit}, {@link 18 * module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit}, 19 * {@link module:Layout.u40be|40-bit}, and {@link 20 * module:Layout.u48be|48-bit} representation ranges; 21 * * {@link module:Layout~Int|Signed integers in little-endian 22 * format} with {@link module:Layout.s8|8-bit}, {@link 23 * module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit}, 24 * {@link module:Layout.s32|32-bit}, {@link 25 * module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit} 26 * representation ranges; 27 * * {@link module:Layout~IntBE|Signed integers in big-endian format} 28 * with {@link module:Layout.s16be|16-bit}, {@link 29 * module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit}, 30 * {@link module:Layout.s40be|40-bit}, and {@link 31 * module:Layout.s48be|48-bit} representation ranges; 32 * * 64-bit integral values that decode to an exact (if magnitude is 33 * less than 2^53) or nearby integral Number in {@link 34 * module:Layout.nu64|unsigned little-endian}, {@link 35 * module:Layout.nu64be|unsigned big-endian}, {@link 36 * module:Layout.ns64|signed little-endian}, and {@link 37 * module:Layout.ns64be|unsigned big-endian} encodings; 38 * * 32-bit floating point values with {@link 39 * module:Layout.f32|little-endian} and {@link 40 * module:Layout.f32be|big-endian} representations; 41 * * 64-bit floating point values with {@link 42 * module:Layout.f64|little-endian} and {@link 43 * module:Layout.f64be|big-endian} representations; 44 * * {@link module:Layout.const|Constants} that take no space in the 45 * encoded expression. 46 * 47 * and for these aggregate types: 48 * * {@link module:Layout.seq|Sequence}s of instances of a {@link 49 * module:Layout~Layout|Layout}, with JavaScript representation as 50 * an Array and constant or data-dependent {@link 51 * module:Layout~Sequence#count|length}; 52 * * {@link module:Layout.struct|Structure}s that aggregate a 53 * heterogeneous sequence of {@link module:Layout~Layout|Layout} 54 * instances, with JavaScript representation as an Object; 55 * * {@link module:Layout.union|Union}s that support multiple {@link 56 * module:Layout~VariantLayout|variant layouts} over a fixed 57 * (padded) or variable (not padded) span of bytes, using an 58 * unsigned integer at the start of the data or a separate {@link 59 * module:Layout.unionLayoutDiscriminator|layout element} to 60 * determine which layout to use when interpreting the buffer 61 * contents; 62 * * {@link module:Layout.bits|BitStructure}s that contain a sequence 63 * of individual {@link 64 * module:Layout~BitStructure#addField|BitField}s packed into an 8, 65 * 16, 24, or 32-bit unsigned integer starting at the least- or 66 * most-significant bit; 67 * * {@link module:Layout.cstr|C strings} of varying length; 68 * * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link 69 * module:Layout~Blob#length|length} raw data. 70 * 71 * All {@link module:Layout~Layout|Layout} instances are immutable 72 * after construction, to prevent internal state from becoming 73 * inconsistent. 74 * 75 * @local Layout 76 * @local ExternalLayout 77 * @local GreedyCount 78 * @local OffsetLayout 79 * @local UInt 80 * @local UIntBE 81 * @local Int 82 * @local IntBE 83 * @local NearUInt64 84 * @local NearUInt64BE 85 * @local NearInt64 86 * @local NearInt64BE 87 * @local Float 88 * @local FloatBE 89 * @local Double 90 * @local DoubleBE 91 * @local Sequence 92 * @local Structure 93 * @local UnionDiscriminator 94 * @local UnionLayoutDiscriminator 95 * @local Union 96 * @local VariantLayout 97 * @local BitStructure 98 * @local BitField 99 * @local Boolean 100 * @local Blob 101 * @local CString 102 * @local Constant 103 * @local bindConstructorLayout 104 * @module Layout 105 * @license MIT 106 * @author Peter A. Bigot
107 * @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub} 108 */class o{constructor(e,t){if(!Number.isInteger(e))throw TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}decode(e,t){throw Error("Layout is abstract")}encode(e,t,r){throw Error("Layout is abstract")}getSpan(e,t){if(0>this.span)throw RangeError("indeterminate span");return this.span}replicate(e){let t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}}function a(e,t){return t.property?e+"["+t.property+"]":e}function i(e,t){if("function"!=typeof e)throw TypeError("Class must be constructor");if(e.hasOwnProperty("layout_"))throw Error("Class is already bound to a layout");if(!(t&&t instanceof o))throw TypeError("layout must be a Layout");if(t.hasOwnProperty("boundConstructor_"))throw Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=()=>new e,Object.defineProperty(e.prototype,"encode",{value:function(e,r){return t.encode(this,e,r)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,r){return t.decode(e,r)},writable:!0})}t.Layout=o,t.nameWithProperty=a,t.bindConstructorLayout=i;class s extends o{isCount(){throw Error("ExternalLayout is abstract")}}class l extends s{constructor(e,t){if(void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e,t){return void 0===t&&(t=0),Math.floor((e.length-t)/this.elementSpan)}encode(e,t,r){return 0}}class u extends s{constructor(e,t,r){if(!(e instanceof o))throw TypeError("layout must be a Layout");if(void 0===t)t=0;else if(!Number.isInteger(t))throw TypeError("offset must be integer or undefined");super(e.span,r||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof d||this.layout instanceof c}decode(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}encode(e,t,r){return void 0===r&&(r=0),this.layout.encode(e,t,r+this.offset)}}class d extends o{constructor(e,t){if(super(e,t),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(e,t){return void 0===t&&(t=0),e.readUIntLE(t,this.span)}encode(e,t,r){return void 0===r&&(r=0),t.writeUIntLE(e,r,this.span),this.span}}class c extends o{constructor(e,t){if(super(e,t),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(e,t){return void 0===t&&(t=0),e.readUIntBE(t,this.span)}encode(e,t,r){return void 0===r&&(r=0),t.writeUIntBE(e,r,this.span),this.span}}class f extends o{constructor(e,t){if(super(e,t),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(e,t){return void 0===t&&(t=0),e.readIntLE(t,this.span)}encode(e,t,r){return void 0===r&&(r=0),t.writeIntLE(e,r,this.span),this.span}}class g extends o{constructor(e,t){if(super(e,t),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(e,t){return void 0===t&&(t=0),e.readIntBE(t,this.span)}encode(e,t,r){return void 0===r&&(r=0),t.writeIntBE(e,r,this.span),this.span}}let p=4294967296;function h(e){let t=Math.floor(e/p),r=e-t*p;return{hi32:t,lo32:r}}function b(e,t){return e*p+t}class m extends o{constructor(e){super(8,e)}decode(e,t){void 0===t&&(t=0);let r=e.readUInt32LE(t);return b(e.readUInt32LE(t+4),r)}encode(e,t,r){void 0===r&&(r=0);let n=h(e);return t.writeUInt32LE(n.lo32,r),t.writeUInt32LE(n.hi32,r+4),8}}class y extends o{constructor(e){super(8,e)}decode(e,t){return void 0===t&&(t=0),b(e.readUInt32BE(t),e.readUInt32BE(t+4))}encode(e,t,r){void 0===r&&(r=0);let n=h(e);return t.writeUInt32BE(n.hi32,r),t.writeUInt32BE(n.lo32,r+4),8}}class v extends o{constructor(e){super(8,e)}decode(e,t){void 0===t&&(t=0);let r=e.readUInt32LE(t);return b(e.readInt32LE(t+4),r)}encode(e,t,r){void 0===r&&(r=0);let n=h(e);return t.writeUInt32LE(n.lo32,r),t.writeInt32LE(n.hi32,r+4),8}}class x extends o{constructor(e){super(8,e)}decode(e,t){return void 0===t&&(t=0),b(e.readInt32BE(t),e.readUInt32BE(t+4))}encode(e,t,r){void 0===r&&(r=0);let n=h(e);return t.writeInt32BE(n.hi32,r),t.writeUInt32BE(n.lo32,r+4),8}}class w extends o{constructor(e){super(4,e)}decode(e,t){return void 0===t&&(t=0),e.readFloatLE(t)}encode(e,t,r){return void 0===r&&(r=0),t.writeFloatLE(e,r),4}}class k extends o{constructor(e){super(4,e)}decode(e,t){return void 0===t&&(t=0),e.readFloatBE(t)}encode(e,t,r){return void 0===r&&(r=0),t.writeFloatBE(e,r),4}}class E extends o{constructor(e){super(8,e)}decode(e,t){return void 0===t&&(t=0),e.readDoubleLE(t)}encode(e,t,r){return void 0===r&&(r=0),t.writeDoubleLE(e,r),8}}class N extends o{constructor(e){super(8,e)}decode(e,t){return void 0===t&&(t=0),e.readDoubleBE(t)}encode(e,t,r){return void 0===r&&(r=0),t.writeDoubleBE(e,r),8}}class j extends o{constructor(e,t,r){if(!(e instanceof o))throw TypeError("elementLayout must be a Layout");if(!(t instanceof s&&t.isCount()||Number.isInteger(t)&&0<=t))throw TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let n=-1;t instanceof s||!(0<e.span)||(n=t*e.span),super(n,r),this.elementLayout=e,this.count=t}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let r=0,n=this.count;if(n instanceof s&&(n=n.decode(e,t)),0<this.elementLayout.span)r=n*this.elementLayout.span;else{let o=0;for(;o<n;)r+=this.elementLayout.getSpan(e,t+r),++o}return r}decode(e,t){void 0===t&&(t=0);let r=[],n=0,o=this.count;for(o instanceof s&&(o=o.decode(e,t));n<o;)r.push(this.elementLayout.decode(e,t)),t+=this.elementLayout.getSpan(e,t),n+=1;return r}encode(e,t,r){void 0===r&&(r=0);let n=this.elementLayout,o=e.reduce((e,o)=>e+n.encode(o,t,r+e),0);return this.count instanceof s&&this.count.encode(e.length,t,r),o}}class S extends o{constructor(e,t,r){if(!(Array.isArray(e)&&e.reduce((e,t)=>
108e&&t instanceof o,!0)))throw TypeError("fields must be array of Layout instances");for(let n of("boolean"==typeof t&&void 0===r&&(r=t,t=void 0),e))if(0>n.span&&void 0===n.property)throw Error("fields cannot contain unnamed variable-length layout");let n=-1;try{n=e.reduce((e,t)=>e+t.getSpan(),0)}catch(e){}super(n,t),this.fields=e,this.decodePrefixes=!!r}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let r=0;try{r=this.fields.reduce((r,n)=>{let o=n.getSpan(e,t);return t+=o,r+o},0)}catch(e){throw RangeError("indeterminate span")}return r}decode(e,t){void 0===t&&(t=0);let r=this.makeDestinationObject();for(let n of this.fields)if(void 0!==n.property&&(r[n.property]=n.decode(e,t)),t+=n.getSpan(e,t),this.decodePrefixes&&e.length===t)break;return r}encode(e,t,r){void 0===r&&(r=0);let n=r,o=0,a=0;for(let n of this.fields){let i=n.span;if(a=0<i?i:0,void 0!==n.property){let o=e[n.property];void 0!==o&&(a=n.encode(o,t,r),0>i&&(i=n.getSpan(t,r)))}o=r,r+=i}return o+a-n}fromArray(e){let t=this.makeDestinationObject();for(let r of this.fields)void 0!==r.property&&0<e.length&&(t[r.property]=e.shift());return t}layoutFor(e){if("string"!=typeof e)throw TypeError("property must be string");for(let t of this.fields)if(t.property===e)return t}offsetOf(e){if("string"!=typeof e)throw TypeError("property must be string");let t=0;for(let r of this.fields){if(r.property===e)return t;0>r.span?t=-1:0<=t&&(t+=r.span)}}}class R{constructor(e){this.property=e}decode(){throw Error("UnionDiscriminator is abstract")}encode(){throw Error("UnionDiscriminator is abstract")}}class C extends R{constructor(e,t){if(!(e instanceof s&&e.isCount()))throw TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,r){return this.layout.encode(e,t,r)}}class T extends o{constructor(e,t,r){let n=e instanceof d||e instanceof c;if(n)e=new C(new u(e));else if(e instanceof s&&e.isCount())e=new C(e);else if(!(e instanceof R))throw TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===t&&(t=null),!(null===t||t instanceof o))throw TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let a=-1;t&&0<=(a=t.span)&&n&&(a+=e.layout.span),super(a,r),this.discriminator=e,this.usesPrefixDiscriminator=n,this.defaultLayout=t,this.registry={};let i=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return i(e)},this.configGetSourceVariant=function(e){i=e.bind(this)}}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let r=this.getVariant(e,t);if(!r)throw Error("unable to determine span for unrecognized variant");return r.getSpan(e,t)}defaultGetSourceVariant(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;let t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(let t in this.registry){let r=this.registry[t];if(e.hasOwnProperty(r.property))return r}throw Error("unable to infer src variant")}decode(e,t){let r;void 0===t&&(t=0);let n=this.discriminator,o=n.decode(e,t),a=this.registry[o];if(void 0===a){let i=0;a=this.defaultLayout,this.usesPrefixDiscriminator&&(i=n.layout.span),(r=this.makeDestinationObject())[n.property]=o,r[a.property]=this.defaultLayout.decode(e,t+i)}else r=a.decode(e,t);return r}encode(e,t,r){void 0===r&&(r=0);let n=this.getSourceVariant(e);if(void 0===n){let n=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=n.layout.span),n.encode(e[n.property],t,r),a+o.encode(e[o.property],t,r+a)}return n.encode(e,t,r)}addVariant(e,t,r){let n=new I(this,e,t,r);return this.registry[e]=n,n}getVariant(e,t){let r=e;return n.isBuffer(e)&&(void 0===t&&(t=0),r=this.discriminator.decode(e,t)),this.registry[r]}}class I extends o{constructor(e,t,r,n){if(!(e instanceof T))throw TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw TypeError("variant must be a (non-negative) integer");if("string"==typeof r&&void 0===n&&(n=r,r=null),r){if(!(r instanceof o))throw TypeError("layout must be a Layout");
108if(null!==e.defaultLayout&&0<=r.span&&r.span>e.defaultLayout.span)throw Error("variant span exceeds span of containing union");if("string"!=typeof n)throw TypeError("variant must have a String property")}let a=e.span;0>e.span&&0<=(a=r?r.span:0)&&e.usesPrefixDiscriminator&&(a+=e.discriminator.layout.span),super(a,n),this.union=e,this.variant=t,this.layout=r||null}getSpan(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),r+this.layout.getSpan(e,t+r)}decode(e,t){let r=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw Error("variant mismatch");let n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout?r[this.property]=this.layout.decode(e,t+n):this.property?r[this.property]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r}encode(e,t,r){void 0===r&&(r=0);let n=0;if(this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,r);let o=n;if(this.layout&&(this.layout.encode(e[this.property],t,r+n),o+=this.layout.getSpan(t,r+n),0<=this.union.span&&o>this.union.span))throw Error("encoded variant overruns containing union");return o}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function O(e){return 0>e&&(e+=4294967296),e}class L extends o{constructor(e,t,r){if(!(e instanceof d||e instanceof c))throw TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===r&&(r=t,t=void 0),4<e.span)throw RangeError("word cannot exceed 32 bits");super(e.span,r),this.word=e,this.msb=!!t,this.fields=[];let n=0;this._packedSetValue=function(e){return n=O(e),this},this._packedGetValue=function(){return n}}decode(e,t){let r=this.makeDestinationObject();void 0===t&&(t=0);let n=this.word.decode(e,t);for(let e of(this._packedSetValue(n),this.fields))void 0!==e.property&&(r[e.property]=e.decode(n));return r}encode(e,t,r){void 0===r&&(r=0);let n=this.word.decode(t,r);for(let t of(this._packedSetValue(n),this.fields))if(void 0!==t.property){let r=e[t.property];void 0!==r&&t.encode(r)}return this.word.encode(this._packedGetValue(),t,r)}addField(e,t){let r=new M(this,e,t);return this.fields.push(r),r}addBoolean(e){let t=new P(this,e);return this.fields.push(t),t}fieldFor(e){if("string"!=typeof e)throw TypeError("property must be string");for(let t of this.fields)if(t.property===e)return t}}class M{constructor(e,t,r){if(!(e instanceof L))throw TypeError("container must be a BitStructure");if(!Number.isInteger(t)||0>=t)throw TypeError("bits must be positive integer");let n=8*e.span,o=e.fields.reduce((e,t)=>e+t.bits,0);if(t+o>n)throw Error("bits too long for span remainder ("+(n-o)+" of "+n+" remain)");this.container=e,this.bits=t,this.valueMask=(1<<t)-1,32===t&&(this.valueMask=4294967295),this.start=o,this.container.msb&&(this.start=n-o-t),this.wordMask=O(this.valueMask<<this.start),this.property=r}decode(){return O(this.container._packedGetValue()&this.wordMask)>>>this.start}encode(e){if(!Number.isInteger(e)||e!==O(e&this.valueMask))throw TypeError(a("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);let t=this.container._packedGetValue(),r=O(e<<this.start);this.container._packedSetValue(O(t&~this.wordMask)|r)}}class P extends M{constructor(e,t){super(e,1,t)}decode(e,t){return!!M.prototype.decode.call(this,e,t)}encode(e){return"boolean"==typeof e&&(e=+e),M.prototype.encode.call(this,e)}}class D extends o{constructor(e,t){if(!(e instanceof s&&e.isCount()||Number.isInteger(e)&&0<=e))throw TypeError("length must be positive integer or an unsigned integer ExternalLayout");let r=-1;e instanceof s||(r=e),super(r,t),this.length=e}getSpan(e,t){let r=this.span;return 0>r&&(r=this.length.decode(e,t)),r}decode(e,t){void 0===t&&(t=0);let r=this.span;return 0>r&&(r=this.length.decode(e,t)),e.slice(t,t+r)}encode(e,t,r){let o=this.length;if(this.length instanceof s&&(o=e.length),!(n.isBuffer(e)&&o===e.length))throw TypeError(a("Blob.encode",this)+" requires (length "+o+") Buffer as src");if(r+o>t.length)throw RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),r,o,"hex"),this.length instanceof s&&this.length.encode(o,t,r),o}}class A extends o{constructor(e){super(-1,e)}getSpan(e,t){if(!n.isBuffer(e))throw TypeError("b must be a Buffer");void 0===t&&(t=0);let r=t;for(;r<e.length&&0!==e[r];)r+=1;return 1+r-t}decode(e,t,r){void 0===t&&(t=0);let n=this.getSpan(e,t);return e.slice(t,t+n-1).toString("utf-8")}encode(e,t,r){void 0===r&&(r=0),"string"!=typeof e&&(e=e.toString());let o=new n(e,"utf8"),a=o.length;if(r+a>t.length)throw RangeError("encoding overruns Buffer");return o.copy(t,r),t[r+a]=0,a+1}}class F extends o{constructor(e,t){if("string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e,t){if(!n.isBuffer(e))throw TypeError("b must be a Buffer");return void 0===t&&(t=0),e.length-t}decode(e,t,r){void 0===t&&(t=0);let n=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan<n)throw RangeError("text length exceeds maxSpan");return e.slice(t,t+n).toString("utf-8")}encode(e,t,r){void 0===r&&(r=0),"string"!=typeof e&&(e=e.toString());let o=new n(e,"utf8"),a=o.length;if(0<=this.maxSpan&&this.maxSpan<a)throw RangeError("text length exceeds maxSpan");if(r+a>t.length)throw RangeError("encoding overruns Buffer");return o.copy(t,r),a}}class z extends o{constructor(e,t){super(0,t),this.value=e}decode(e,t,r){return this.value}encode(e,t,r){return 0}}t.ExternalLayout=s,t.GreedyCount=l,t.OffsetLayout=u,t.UInt=d,t.UIntBE=c,t.Int=f,t.IntBE=g,t.Float=w,t.FloatBE=k,t.Double=E,t.DoubleBE=N,t.Sequence=j,t.Structure=S,t.UnionDiscriminator=R,t.UnionLayoutDiscriminator=C,t.Union=T,t.VariantLayout=I,t.BitStructure=L,t.BitField=M,t.Boolean=P,t.Blob=D,t.CString=A,t.UTF8=F,t.Constant=z,t.greedy=(e,t)=>new l(e,t),t.offset=(e,t,r)=>new u(e,t,r),t.u8=e=>new d(1,e),t.u16=e=>new d(2,e),t.u24=e=>new d(3,e),t.u32=e=>new d(4,e),t.u40=e=>new d(5,e),t.u48=e=>new d(6,e),t.nu64=e=>new m(e),t.u16be=e=>new c(2,e),t.u24be=e=>new c(3,e),t.u32be=e=>new c(4,e),t.u40be=e=>new c(5,e),t.u48be=e=>new c(6,e),t.nu64be=e=>new y(e),t.s8=e=>new f(1,e),t.s16=e=>
108new f(2,e),t.s24=e=>new f(3,e),t.s32=e=>new f(4,e),t.s40=e=>new f(5,e),t.s48=e=>new f(6,e),t.ns64=e=>new v(e),t.s16be=e=>new g(2,e),t.s24be=e=>new g(3,e),t.s32be=e=>new g(4,e),t.s40be=e=>new g(5,e),t.s48be=e=>new g(6,e),t.ns64be=e=>new x(e),t.f32=e=>new w(e),t.f32be=e=>new k(e),t.f64=e=>new E(e),t.f64be=e=>new N(e),t.struct=(e,t,r)=>new S(e,t,r),t.bits=(e,t,r)=>new L(e,t,r),t.seq=(e,t,r)=>new j(e,t,r),t.union=(e,t,r)=>new T(e,t,r),t.unionLayoutDiscriminator=(e,t)=>new C(e,t),t.blob=(e,t)=>new D(e,t),t.cstr=e=>new A(e),t.utf8=(e,t)=>new F(e,t),t.const=(e,t)=>new z(e,t)},94692:function(e){function t(e,t=100,r={}){let n,o,a,i,s;if("function"!=typeof e)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");let{immediate:l}="boolean"==typeof r?{immediate:r}:r;function u(){let r=Date.now()-i;if(r<t&&r>=0)a=setTimeout(u,t-r);else if(a=void 0,!l){let t=n,r=o;n=void 0,o=void 0,s=e.apply(t,r)}}let d=function(...r){if(n&&this!==n)throw Error("Debounced method called with different contexts.");n=this,o=r,i=Date.now();let d=l&&!a;if(a||(a=setTimeout(u,t)),d){let t=n,r=o;n=void 0,o=void 0,s=e.apply(t,r)}return s};return d.clear=()=>{a&&(clearTimeout(a),a=void 0)},d.flush=()=>
108{if(!a)return;let t=n,r=o;n=void 0,o=void 0,s=e.apply(t,r),clearTimeout(a),a=void 0},d}e.exports.debounce=t,e.exports=t},32741:function(e,t,r){"use strict";var n;function o(e,t){void 0===t&&(t="0");var r,n=0,o=-1;"-"!=e[0]||u(e=e.substring(1))||(n++,o=1,e.length),"-"!=t[0]||u(t=t.substring(1))||(n++,o=2,t.length),e=i(e),t=i(t),e=(r=s(i(e),i(t)))[0],t=r[1],1==n&&(1===o?e=a(e):2===o&&(t=a(t)));var d=l(e,t);return n?2==n?"-"+i(d):e.length<d.length?i(d.substring(1)):"-"+i(a(d)):i(d)}function a(e){if(u(e))return e;for(var t="",r=e.length,n=e.split(".")[1],o=n?n.length:0,a=0;a<r;a++)e[a]>="0"&&e[a]<="9"?t+=9-parseInt(e[a]):t+=e[a];return l(t,o>0?"0."+Array(o).join("0")+"1":"1")}function i(e){var t=e.split(".");for(t[0]||(t[0]="0");"0"==t[0][0]&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function s(e,t){var r=e.split("."),n=t.split("."),o=r[0].length,a=n[0].length;return o>a?n[0]=Array(Math.abs(o-a)+1).join("0")+(n[0]?n[0]:""):r[0]=Array(Math.abs(o-a)+1).join("0")+(r[0]?r[0]:""),o=r[1]?r[1].length:0,a=n[1]?n[1].length:0,(o||a)&&(o>a?n[1]=(n[1]?n[1]:"")+Array(Math.abs(o-a)+1).join("0"):r[1]=(r[1]?r[1]:"")+Array(Math.abs(o-a)+1).join("0")),[e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:"")]}function l(e,t){e=(r=s(e,t))[0],t=r[1];for(var r,n="",o=0,a=e.length-1;a>=0;a--){if("."===e[a]){n="."+n;continue}var i=parseInt(e[a])+parseInt(t[a])+o;n=i%10+n,o=Math.floor(i/10)}return o?o.toString()+n:n}function u(e){return/^0[0]*[.]{0,1}[0]*$/.test(e)}function d(e){return(("number"==typeof e||"bigint"==typeof e)&&(e=e.toString()),"-"==e[0])?e.substring(1):e}function c(e,t,r){if(void 0===t&&(t=0),void 0===r&&(r=n.HALF_EVEN),r===n.UNNECESSARY)throw Error("UNNECESSARY Rounding Mode has not yet been implemented");("number"==typeof e||"bigint"==typeof e)&&(e=e.toString());var o=!1;"-"===e[0]&&(o=!0,e=e.substring(1));var a=e.split("."),i=a[0],s=a[1];if(t<0){if(t=-t,i.length<=t)return"0";var l=i.substr(0,i.length-t);return(o?"-":"")+(l=c(e=l+"."+i.substr(i.length-t)+s,0,r))+Array(t+1).join("0")}if(0==t)return i.length,f(a[1],i,o,r)&&(i=g(i)),(o&&parseInt(i)?"-":"")+i;if(!a[1])return(o?"-":"")+i+"."+Array(t+1).join("0");if(a[1].length<t)return(o?"-":"")+i+"."+a[1]+Array(t-a[1].length+1).join("0");s=a[1].substring(0,t);var u=a[1].substring(t);return u&&f(u,s,o,r)&&(s=g(s)).length>t?(o?"-":"")+g(i,parseInt(s[0]))+"."+s.substring(1):(o&&(parseInt(i)||parseInt(s))?"-":"")+i+"."+s}function f(e,t,r,o){if(!e||e===Array(e.length+1).join("0")||o===n.DOWN||!r&&o===n.FLOOR||r&&o===n.CEILING)return!1;if(o===n.UP||r&&o===n.FLOOR||!r&&o===n.CEILING)return!0;var a="5"+Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(o){case n.HALF_DOWN:return!1;case n.HALF_UP:return!0;case n.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function g(e,t){void 0===t&&(t=0),t||(t=1),"number"==typeof e&&e.toString();for(var r=e.length-1,n="",o=r;o>=0;o--){var a=parseInt(e[o])+t;10==a?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function p(e){var t="-"===e[0];for(t&&(e=e.substr(1));"0"==e[0];)e=e.substr(1);if(-1!=e.indexOf("."))for(;"0"==e[e.length-1];)e=e.substr(0,e.length-1);return""==e||"."==e?e="0":"."==e[e.length-1]&&(e=e.substr(0,e.length-1)),"."==e[0]&&(e="0"+e),t&&"0"!=e&&(e="-"+e),e}function h(e,t){e=e.toString(),t=t.toString();var r=0;"-"==e[0]&&(r++,e=e.substr(1)),"-"==t[0]&&(r++,t=t.substr(1)),e=p(e),t=p(t);var n=0,o=0;-1!=e.indexOf(".")&&(n=e.length-e.indexOf(".")-1),-1!=t.indexOf(".")&&(o=t.length-t.indexOf(".")-1);var a=n+o;if(e=p(e.replace(".","")),t=p(t.replace(".","")),e.length<t.length){var i=e;e=t,t=i}if("0"==t)return"0";for(var s=t.length,l=0,u=[],d=s-1,c="",f=0;f<s;f++)u[f]=e.length-1;for(var f=0;f<2*e.length;f++){for(var g=0,h=t.length-1;h>=d&&h>=0;h--)u[h]>-1&&u[h]<e.length&&(g+=parseInt(e[u[h]--])*parseInt(t[h]));g+=l,l=Math.floor(g/10),c=g%10+c,d--}return c=p(b(c,a)),1==r&&(c="-"+c),c}function b(e,t){return 0==t?e:(e=t>=e.length?Array(t-e.length+1).join("0")+e:e).substr(0,e.length-t)+"."+e.substr(e.length-t,t)}function m(e,t,r){if(void 0===r&&(r=8),0==t)throw Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),0==e)return"0";var n=0;"-"==t[0]&&(t=t.substring(1),n++),"-"==e[0]&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=i(t.replace(".","")),a>=0){var s=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(-1==s)e=i(e+Array(a+1).join("0"));else if(a>s)e=i((e=e.replace(".",""))+Array(a-s+1).join("0"));else if(a<s){var l=(e=e.replace(".","")).length-s+a;e=i(e.substring(0,l)+"."+e.substring(l))}else a==s&&(e=i(e.replace(".","")))}var u=0,d=t.length,f="",g=e.indexOf(".")>-1&&e.indexOf(".")<d?e.substring(0,d+1):e.substring(0,d);if(e=e.indexOf(".")>-1&&e.indexOf(".")<d?e.substring(d+1):e.substring(d),g.indexOf(".")>-1){var p=g.length-g.indexOf(".")-1;d>(g=g.replace(".","")).length&&(p+=d-g.length,g+=Array(d-g.length+1).join("0")),u=p,f="0."+Array(p).join("0")}for(r+=2;u<=r;){for(var h=0;parseInt(g)>
108=parseInt(t);)g=o(g,"-"+t),h++;f+=h,e?("."==e[0]&&(f+=".",u++,e=e.substring(1)),g+=e.substring(0,1),e=e.substring(1)):(u||(f+="."),u++,g+="0")}return(1==n?"-":"")+i(c(f,r-2))}function y(e,t){return o(e=e.toString(),t=v(t=t.toString()))}function v(e){return e="-"==e[0]?e.substr(1):"-"+e}function x(e,t){if(0==t)throw Error("Cannot divide by 0");e=e.toString(),t=t.toString(),w(e),w(t);var r="";return"-"==e[0]&&(r="-",e=e.substr(1)),"-"==t[0]&&(t=t.substr(1)),r+y(e,h(t,c(m(e,t),0,n.FLOOR)))}function w(e){if(-1!=e.indexOf("."))throw Error("Modulus of non-integers not supported")}function k(e,t){var r,n,o=!1;if(e=(r=[e,t].map(function(e){return p(e)}))[0],t=r[1],"-"==e[0]&&"-"!=t[0])return -1;if("-"!=e[0]&&"-"==t[0])return 1;if("-"==e[0]&&"-"==t[0]&&(e=e.substr(1),t=t.substr(1),o=!0),e=(n=s(e,t))[0],t=n[1],0==e.localeCompare(t))return 0;for(var a=0;a<e.length;a++)if(e[a]!=t[a]){if(e[a]>t[a]){if(o)return -1;return 1}if(o)return 1;return -1}return 0}!function(e){e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP"}(n||(n={})),function(){function e(t){void 0===t&&(t="0"),this.value=e.validate(t)}e.validate=function(e){if(e){if(isNaN(e=e.toString()))throw Error("Parameter is not a number: "+e);"+"==e[0]&&(e=e.substring(1))}else e="0";if(e.startsWith(".")?e="0"+e:e.startsWith("-.")&&(e="-0"+e.substr(1)),/e/i.test(e)){var t=e.split(/[eE]/),r=t[0],n=t[1];r=i(r);var o="";"-"==r[0]&&(o="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,e=r.length<n?o+r+Array(n-r.length+1).join("0"):r.length>=n&&n>0?o+i(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):o+"0."+Array(-n+1).join("0")+r}return e},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t){this.value=e.validate(t)},e.getPrettyValue=function(t,r,n){void 0===r&&(r=3),void 0===n&&(n=",");var o="-"==(t=e.validate(t)).charAt(0);o&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<r?(r=s,s=0):s-=r,i=t.substring(s,s+r)+(s<a-r&&s>=0?n:"")+i;return(o?"-":"")+i+t.substring(a)},e.prototype.getPrettyValue=function(t,r){return void 0===t&&(t=3),void 0===r&&(r=","),e.getPrettyValue(this.value,t,r)},e.round=function(t,r,o){if(void 0===r&&(r=0),void 0===o&&(o=n.HALF_EVEN),t=e.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return c(t,r,o)},e.prototype.round=function(t,r){if(void 0===t&&(t=0),void 0===r&&(r=n.HALF_EVEN),isNaN(t))throw Error("Precision is not a number: "+t);return new e(c(this.value,t,r))},e.abs=function(t){return d(t=e.validate(t))},e.prototype.abs=function(){return new e(d(this.value))},e.floor=function(t){return -1===(t=e.validate(t)).indexOf(".")?t:e.round(t,0,n.FLOOR)},e.prototype.floor=function(){return -1===this.value.indexOf(".")?new e(this.value):new e(this.value).round(0,n.FLOOR)},e.ceil=function(t){return -1===(t=e.validate(t)).indexOf(".")?t:e.round(t,0,n.CEILING)},e.prototype.ceil=function(){return -1===this.value.indexOf(".")?new e(this.value):new e(this.value).round(0,n.CEILING)},e.add=function(t,r){return o(t=e.validate(t),r=e.validate(r))},e.prototype.add=function(t){return new e(o(this.value,t.getValue()))},e.subtract=function(t,r){return y(t=e.validate(t),r=e.validate(r))},e.prototype.subtract=function(t){return new e(y(this.value,t.getValue()))},e.multiply=function(t,r){return h(t=e.validate(t),r=e.validate(r))},e.prototype.multiply=function(t){return new e(h(this.value,t.getValue()))},e.divide=function(t,r,n){return m(t=e.validate(t),r=e.validate(r),n)},e.prototype.divide=function(t,r){return new e(m(this.value,t.getValue(),r))},e.modulus=function(t,r){return x(t=e.validate(t),r=e.validate(r))},e.prototype.modulus=function(t){return new e(x(this.value,t.getValue()))},e.compareTo=function(t,r){return k(t=e.validate(t),r=e.validate(r))},e.prototype.compareTo=function(e){return k(this.value,e.getValue())},e.negate=function(t){return v(t=e.validate(t))},e.prototype.negate=function(){return new e(v(this.value))},e.stripTrailingZero=function(t){return p(t=e.validate(t))},e.prototype.stripTrailingZero=function(){return new e(p(this.value))},e.RoundingModes=n}()},75544:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__,process=__webpack_require__(25566);!function(){"use strict";
108var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(r){return new Sha256(t,!0).update(r)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];t[n]=createOutputMethod(n,e)}return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(r,n){return new HmacSha256(r,t,!0).update(n)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,r){return t.create(e).update(r)};for(var r=0;r<OUTPUT_TYPES.length;++r){var n=OUTPUT_TYPES[r];t[n]=createHmacOutputMethod(n,e)}return t};function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,r){var n,o=typeof e;if("string"===o){var a,i=[],s=e.length,l=0;for(n=0;n<s;++n)(a=e.charCodeAt(n))<128?i[l++]=a:(a<2048?i[l++]=192|a>>6:(a<55296||a>=57344?i[l++]=224|a>>12:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++n)),i[l++]=240|a>>18,i[l++]=128|a>>12&63),i[l++]=128|a>>6&63),i[l++]=128|63&a);e=i}else if("object"===o){if(null===e)throw Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw Error(ERROR)}else throw Error(ERROR);e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],d=[];for(n=0;n<64;++n){var c=e[n]||0;u[n]=92^c,d[n]=54^c}Sha256.call(this,t,r),this.update(d),this.oKeyPad=u,this.inner=!0,this.sharedMemory=r}Sha256.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(ERROR);
108if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw Error(ERROR)}else throw Error(ERROR);t=!0}for(var n,o,a=0,i=e.length,s=this.blocks;a<i;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)for(o=this.start;a<i&&o<64;++a)s[o>>2]|=e[a]<<SHIFT[3&o++];else for(o=this.start;a<i&&o<64;++a)(n=e.charCodeAt(a))<128?s[o>>2]|=n<<SHIFT[3&o++]:(n<2048?s[o>>2]|=(192|n>>6)<<SHIFT[3&o++]:(n<55296||n>=57344?s[o>>2]|=(224|n>>12)<<SHIFT[3&o++]:(n=65536+((1023&n)<<10|1023&e.charCodeAt(++a)),s[o>>2]|=(240|n>>18)<<SHIFT[3&o++],s[o>>2]|=(128|n>>12&63)<<SHIFT[3&o++]),s[o>>2]|=(128|n>>6&63)<<SHIFT[3&o++]),s[o>>2]|=(128|63&n)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=s[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,r,n,o,a,i,s,l,u,d,c=this.h0,f=this.h1,g=this.h2,p=this.h3,h=this.h4,b=this.h5,m=this.h6,y=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((o=v[e-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,r=((o=v[e-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,v[e]=v[e-16]+t+v[e-7]+r<<0;for(e=0,d=f&g;e<64;e+=4)this.first?(this.is224?(s=300032,y=(o=v[0]-1413257819)-150054599<<0,p=o+24177077<<0):(s=704751109,y=(o=v[0]-210244248)-1521486534<<0,p=o+143694565<<0),this.first=!1):(t=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7),n=(s=c&f)^c&g^d,o=y+r+(i=h&b^~h&m)+K[e]+v[e],a=t+n,y=p+o<<0,p=o+a<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),n=(l=p&c)^p&f^s,o=m+r+(i=y&h^~y&b)+K[e+1]+v[e+1],a=t+n,m=g+o<<0,t=((g=o+a<<0)>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10),r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),n=(u=g&p)^g&c^l,o=b+r+(i=m&y^~m&h)+K[e+2]+v[e+2],a=t+n,b=f+o<<0,t=((f=o+a<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),n=(d=f&g)^f&p^u,o=h+r+(i=b&m^~b&y)+K[e+3]+v[e+3],a=t+n,h=c+o<<0,c=o+a<<0;this.h0=this.h0+c<<0,this.h1=this.h1+f<<0,this.h2=this.h2+g<<0,this.h3=this.h3+p<<0,this.h4=this.h4+h<<0,this.h5=this.h5+b<<0,this.h6=this.h6+m<<0,this.h7=this.h7+y<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4,a=this.h5,i=this.h6,s=this.h7,l=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i];return this.is224||(l+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,o=this.h4,a=this.h5,i=this.h6,s=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i];return this.is224||l.push(s>>24&255,s>>16&255,s>>8&255,255&s),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return exports}).call(exports,__webpack_require__,exports,module))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}()},73136:function(e,t,r){!function(t,n){e.exports=n(r(2265))}("undefined"!=typeof self&&self,e=>(()=>{"use strict";var t={156:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
108),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>c,useStopwatch:()=>u,useTime:()=>d,useTimer:()=>l});var e=n(156);class t{static expiryTimestamp(e){let t=new Date(e).getTime()>0;return t||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",e),t}static onExpire(e){let t=e&&"function"==typeof e;return e&&!t&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",e),t}}class r{static getTimeFromSeconds(e){let t=Math.ceil(e),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),o=Math.floor(t%3600/60);return{totalSeconds:t,seconds:Math.floor(t%60),minutes:o,hours:n,days:r}}static getSecondsFromExpiry(e,t){let r=e-(new Date).getTime();if(r>0){let e=r/1e3;return t?Math.round(e):e}return 0}static getSecondsFromPrevTime(e,t){let r=(new Date).getTime()-e;if(r>0){let e=r/1e3;return t?Math.round(e):e}return 0}static getSecondsFromTimeNow(){let e=new Date;return e.getTime()/1e3-60*e.getTimezoneOffset()}static getFormattedTimeFromSeconds(e,t){let{seconds:n,minutes:o,hours:a}=r.getTimeFromSeconds(e),i="",s=a;return"12-hour"===t&&(i=a>=12?"pm":"am",s=a%12),{seconds:n,minutes:o,hours:s,ampm:i}}}function a(t,r){let n=(0,e.useRef)();(0,e.useEffect)(()=>{n.current=t}),(0,e.useEffect)(()=>{if(!r)return()=>{};let e=setInterval(()=>{n.current&&n.current()},r);return()=>clearInterval(e)},[r])}let i=1e3;function s(e){if(!t.expiryTimestamp(e))return null;let n=r.getSecondsFromExpiry(e),o=Math.floor(1e3*(n-Math.floor(n)));return o>0?o:i}function l(){let{expiryTimestamp:n,onExpire:o,autoStart:l=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[u,d]=(0,e.useState)(n),[c,f]=(0,e.useState)(r.getSecondsFromExpiry(u)),[g,p]=(0,e.useState)(l),[h,b]=(0,e.useState)(l),[m,y]=(0,e.useState)(s(u)),v=(0,e.useCallback)(()=>{t.onExpire(o)&&o(),p(!1),y(null)},[o]),x=(0,e.useCallback)(()=>{p(!1)},[]),w=(0,e.useCallback)(function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];y(s(e)),b(t),p(t),d(e),f(r.getSecondsFromExpiry(e))},[]),k=(0,e.useCallback)(()=>{let e=new Date;e.setMilliseconds(e.getMilliseconds()+1e3*c),w(e)},[c,w]),E=(0,e.useCallback)(()=>{h?(f(r.getSecondsFromExpiry(u)),p(!0)):k()},[u,h,k]);return a(()=>{m!==i&&y(i);let e=r.getSecondsFromExpiry(u);f(e),e<=0&&v()},g?m:null),{...r.getTimeFromSeconds(c),start:E,pause:x,resume:k,restart:w,isRunning:g}}function u(){let{autoStart:t,offsetTimestamp:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[o,i]=(0,e.useState)(r.getSecondsFromExpiry(n,!0)||0),[s,l]=(0,e.useState)(new Date),[u,d]=(0,e.useState)(o+r.getSecondsFromPrevTime(s||0,!0)),[c,f]=(0,e.useState)(t);a(()=>{d(o+r.getSecondsFromPrevTime(s,!0))},c?1e3:null);let g=(0,e.useCallback)(()=>{let e=new Date;l(e),f(!0),d(o+r.getSecondsFromPrevTime(e,!0))},[o]),p=(0,e.useCallback)(()=>{i(u),f(!1)},[u]),h=(0,e.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=r.getSecondsFromExpiry(e,!0)||0,o=new Date;l(o),i(n),f(t),d(n+r.getSecondsFromPrevTime(o,!0))},[]);return{...r.getTimeFromSeconds(u),start:g,pause:p,reset:h,isRunning:c}}function d(){let{format:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[n,o]=(0,e.useState)(r.getSecondsFromTimeNow());return a(()=>{o(r.getSecondsFromTimeNow())},1e3),{...r.getFormattedTimeFromSeconds(n,t)}}function c(t){if((0,e.useEffect)(()=>{console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead")},[]),t.expiryTimestamp){let e=l(t);return{...e,startTimer:e.start,stopTimer:e.pause,resetTimer:()=>{}}}let r=u(t);return{...r,startTimer:r.start,stopTimer:r.pause,resetTimer:r.reset}}})(),o})())},23983:function(e,t,r){"use strict";let n,o,a,i,s,l,u,d,c,f;r.d(t,{v:function(){return eC}});var g,p=r(2265),h=r(99299),b=r(6584),m=r(54462),y=r(61463),v=r(33856);let x=null!=(g=p.useId)?g:function(){let e=(0,v.H)(),[t,r]=p.useState(e?()=>m.O.nextId():null);return(0,y.e)(()=>{null===t&&r(m.O.nextId())},[t]),null!=t?""+t:void 0};var w=r(81694),k=r(5583);function E(e){return m.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let N=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var j=((n=j||{})[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n),S=((o=S||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),R=((a=R||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a);function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(N)).sort((e,t)=>
108Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var T=((i=T||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function I(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=E(e))?void 0:t.body)&&(0,k.E)(r,{0:()=>e.matches(N),1(){let t=e;for(;null!==t;){if(t.matches(N))return!0;t=t.parentElement}return!1}})}function O(e){let t=E(e);(0,w.k)().nextFrame(()=>{t&&!I(t.activeElement,0)&&M(e)})}var L=((s=L||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function M(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let P="textarea,input";function D(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,P))&&r}function A(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,r)=>{let n=t(e),o=t(r);if(null===n||null===o)return 0;let a=n.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function F(e,t){return z(C(),t,{relativeTo:e})}function z(e,t){let{sorted:r=!0,relativeTo:n=null,skipElements:o=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?r?A(e):e:C(e);o.length>0&&i.length>1&&(i=i.filter(e=>!o.includes(e))),n=null!=n?n:a.activeElement;let s=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,i.indexOf(n))-1;if(4&t)return Math.max(0,i.indexOf(n))+1;if(8&t)return i.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,c=i.length,f;do{if(d>=c||d+c<=0)return 0;let e=l+d;if(16&t)e=(e+c)%c;else{if(e<0)return 3;if(e>=c)return 1}null==(f=i[e])||f.focus(u),d+=s}while(f!==a.activeElement);return 6&t&&D(f)&&f.select(),2}function B(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function _(){return/Android/gi.test(window.navigator.userAgent)}function U(){return B()||_()}var V=r(88703);function W(e,t,r){let n=(0,V.E)(t);(0,p.useEffect)(()=>{function t(e){n.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}function H(e,t,r){let n=(0,V.E)(t);(0,p.useEffect)(()=>{function t(e){n.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}function G(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=(0,p.useRef)(!1);function o(r,o){if(!n.current||r.defaultPrevented)return;let a=o(r);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(a)||r.composed&&r.composedPath().includes(e))return}return I(a,T.Loose)||-1===a.tabIndex||r.preventDefault(),t(r,a)}}(0,p.useEffect)(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);let a=(0,p.useRef)(null);W("pointerdown",e=>{var t,r;n.current&&(a.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),W("mousedown",e=>{var t,r;n.current&&(a.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),W("click",e=>{U()||a.current&&(o(e,()=>a.current),a.current=null)},!0),W("touchend",e=>o(e,()=>e.target instanceof HTMLElement?e.target:null),!0),H("blur",e=>o(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Y(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,p.useMemo)(()=>E(...t),[...t])}function Q(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}function K(e,t){let[r,n]=(0,p.useState)(()=>Q(e));return(0,y.e)(()=>{n(Q(e))},[e.type,e.as]),(0,y.e)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}var q=r(41469);let $=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function X(e){var t,r;let n=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return n;let a=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let i=a?null!=(r=o.innerText)?r:"":n;return $.test(i)&&(i=i.replace($,"")),i}function Z(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():X(t).trim()}return null}
108).filter(Boolean);if(e.length>0)return e.join(", ")}return X(e).trim()}function J(e){let t=(0,p.useRef)(""),r=(0,p.useRef)("");return(0,b.z)(()=>{let n=e.current;if(!n)return"";let o=n.innerText;if(t.current===o)return r.current;let a=Z(n).trim().toLowerCase();return t.current=o,r.current=a,a})}function ee(e){return[e.screenX,e.screenY]}function et(){let e=(0,p.useRef)([-1,-1]);return{wasMoved(t){let r=ee(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=ee(t)}}}function er(e){let{container:t,accept:r,walk:n,enabled:o=!0}=e,a=(0,p.useRef)(r),i=(0,p.useRef)(n);(0,p.useEffect)(()=>{a.current=r,i.current=n},[r,n]),(0,y.e)(()=>{if(!t||!o)return;let e=E(t);if(!e)return;let r=a.current,n=i.current,s=Object.assign(e=>r(e),{acceptNode:r}),l=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)n(l.currentNode)},[t,o,a,i])}var en=r(53509);function eo(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&ea(r))&&n}function ea(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function ei(e){throw Error("Unexpected object: "+e)}var es=((l=es||{})[l.First=0]="First",l[l.Previous=1]="Previous",l[l.Next=2]="Next",l[l.Last=3]="Last",l[l.Specific=4]="Specific",l[l.Nothing=5]="Nothing",l);function el(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=o+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:ei(e)}}var eu=r(3600),ed=((u=ed||{}).Space=" ",u.Enter="Enter",u.Escape="Escape",u.Backspace="Backspace",u.Delete="Delete",u.ArrowLeft="ArrowLeft",u.ArrowUp="ArrowUp",u.ArrowRight="ArrowRight",u.ArrowDown="ArrowDown",u.Home="Home",u.End="End",u.PageUp="PageUp",u.PageDown="PageDown",u.Tab="Tab",u),ec=((d=ec||{})[d.Open=0]="Open",d[d.Closed=1]="Closed",d),ef=((c=ef||{})[c.Pointer=0]="Pointer",c[c.Other=1]="Other",c),eg=((f=eg||{})[f.OpenMenu=0]="OpenMenu",f[f.CloseMenu=1]="CloseMenu",f[f.GoToItem=2]="GoToItem",f[f.Search=3]="Search",f[f.ClearSearch=4]="ClearSearch",f[f.RegisterItem=5]="RegisterItem",f[f.UnregisterItem=6]="UnregisterItem",f);function ep(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=A(t(e.items.slice()),e=>e.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return -1===o&&(o=null),{items:n,activeItemIndex:o}}let eh={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var r;let n=ep(e),o=el(t,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeItemIndex:o,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),a=o?e.items.indexOf(o):-1;return -1===a||a===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:a,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=ep(e,e=>[...e,{id:t.id,dataRef:t.dataRef}]);return{...e,...r}},6:(e,t)=>{let r=ep(e,e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}}},eb=(0,p.createContext)(null);function em(e){let t=(0,p.useContext)(eb);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,em),t}return t}function ey(e,t){return(0,k.E)(t.type,eh,e,t)}eb.displayName="MenuContext";let ev=p.Fragment;function ex(e,t){let{__demoMode:r=!1,...n}=e,o=(0,p.useReducer)(ey,{__demoMode:r,menuState:r?0:1,buttonRef:(0,p.createRef)(),itemsRef:(0,p.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:i,buttonRef:s},l]=o,u=(0,q.T)(t);G([s,i],(e,t)=>{var r;l({type:1}),I(t,T.Loose)||(e.preventDefault(),null==(r=s.current)||r.focus())},0===a);let d=(0,b.z)(()=>
108{l({type:1})}),c=(0,p.useMemo)(()=>({open:0===a,close:d}),[a,d]),f={ref:u};return p.createElement(eb.Provider,{value:o},p.createElement(en.up,{value:(0,k.E)(a,{0:en.ZM.Open,1:en.ZM.Closed})},(0,eu.sY)({ourProps:f,theirProps:n,slot:c,defaultTag:ev,name:"Menu"})))}let ew="button";function ek(e,t){var r;let n=x(),{id:o="headlessui-menu-button-".concat(n),...a}=e,[i,s]=em("Menu.Button"),l=(0,q.T)(i.buttonRef,t),u=(0,h.G)(),d=(0,b.z)(e=>{switch(e.key){case ed.Space:case ed.Enter:case ed.ArrowDown:e.preventDefault(),e.stopPropagation(),s({type:0}),u.nextFrame(()=>s({type:2,focus:es.First}));break;case ed.ArrowUp:e.preventDefault(),e.stopPropagation(),s({type:0}),u.nextFrame(()=>s({type:2,focus:es.Last}))}}),c=(0,b.z)(e=>{e.key===ed.Space&&e.preventDefault()}),f=(0,b.z)(t=>{if(eo(t.currentTarget))return t.preventDefault();e.disabled||(0===i.menuState?(s({type:1}),u.nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(t.preventDefault(),s({type:0})))}),g=(0,p.useMemo)(()=>({open:0===i.menuState}),[i]),m={ref:l,id:o,type:K(e,i.buttonRef),"aria-haspopup":"menu","aria-controls":null==(r=i.itemsRef.current)?void 0:r.id,"aria-expanded":0===i.menuState,onKeyDown:d,onKeyUp:c,onClick:f};return(0,eu.sY)({ourProps:m,theirProps:a,slot:g,defaultTag:ew,name:"Menu.Button"})}let eE="div",eN=eu.AN.RenderStrategy|eu.AN.Static;function ej(e,t){var r,n;let o=x(),{id:a="headlessui-menu-items-".concat(o),...i}=e,[s,l]=em("Menu.Items"),u=(0,q.T)(s.itemsRef,t),d=Y(s.itemsRef),c=(0,h.G)(),f=(0,en.oJ)(),g=null!==f?(f&en.ZM.Open)===en.ZM.Open:0===s.menuState;(0,p.useEffect)(()=>{let e=s.itemsRef.current;e&&0===s.menuState&&e!==(null==d?void 0:d.activeElement)&&e.focus({preventScroll:!0})},[s.menuState,s.itemsRef,d]),er({container:s.itemsRef.current,enabled:0===s.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let m=(0,b.z)(e=>{var t,r;switch(c.dispose(),e.key){case ed.Space:if(""!==s.searchQuery)return e.preventDefault(),e.stopPropagation(),l({type:3,value:e.key});case ed.Enter:if(e.preventDefault(),e.stopPropagation(),l({type:1}),null!==s.activeItemIndex){let{dataRef:e}=s.items[s.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}O(s.buttonRef.current);break;case ed.ArrowDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:es.Next});case ed.ArrowUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:es.Previous});case ed.Home:case ed.PageUp:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:es.First});case ed.End:case ed.PageDown:return e.preventDefault(),e.stopPropagation(),l({type:2,focus:es.Last});case ed.Escape:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,w.k)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case ed.Tab:e.preventDefault(),e.stopPropagation(),l({type:1}),(0,w.k)().nextFrame(()=>{F(s.buttonRef.current,e.shiftKey?j.Previous:j.Next)});break;default:1===e.key.length&&(l({type:3,value:e.key}),c.setTimeout(()=>l({type:4}),350))}}),y=(0,b.z)(e=>{e.key===ed.Space&&e.preventDefault()}),v=(0,p.useMemo)(()=>({open:0===s.menuState}),[s]),k={"aria-activedescendant":null===s.activeItemIndex||null==(r=s.items[s.activeItemIndex])?void 0:r.id,"aria-labelledby":null==(n=s.buttonRef.current)?void 0:n.id,id:a,onKeyDown:m,onKeyUp:y,role:"menu",tabIndex:0,ref:u};return(0,eu.sY)({ourProps:k,theirProps:i,slot:v,defaultTag:eE,features:eN,visible:g,name:"Menu.Items"})}let eS=p.Fragment;function eR(e,t){let r=x(),{id:n="headlessui-menu-item-".concat(r),disabled:o=!1,...a}=e,[i,s]=em("Menu.Item"),l=null!==i.activeItemIndex&&i.items[i.activeItemIndex].id===n,u=(0,p.useRef)(null),d=(0,q.T)(t,u);(0,y.e)(()=>{if(i.__demoMode||0!==i.menuState||!l||0===i.activationTrigger)return;let e=(0,w.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[i.__demoMode,u,l,i.menuState,i.activationTrigger,i.activeItemIndex]);let c=J(u),f=(0,p.useRef)({disabled:o,domRef:u,get textValue(){return c()}});(0,y.e)(()=>{f.current.disabled=o},[f,o]),(0,y.e)(()=>(s({type:5,id:n,dataRef:f}),()=>s({type:6,id:n})),[f,n]);let g=(0,b.z)(()=>{s({type:1})}),h=(0,b.z)(e=>{if(o)return e.preventDefault();s({type:1}),O(i.buttonRef.current)}),m=(0,b.z)(()=>
108{if(o)return s({type:2,focus:es.Nothing});s({type:2,focus:es.Specific,id:n})}),v=et(),k=(0,b.z)(e=>v.update(e)),E=(0,b.z)(e=>{v.wasMoved(e)&&(o||l||s({type:2,focus:es.Specific,id:n,trigger:0}))}),N=(0,b.z)(e=>{v.wasMoved(e)&&(o||l&&s({type:2,focus:es.Nothing}))}),j=(0,p.useMemo)(()=>({active:l,disabled:o,close:g}),[l,o,g]);return(0,eu.sY)({ourProps:{id:n,ref:d,role:"menuitem",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:k,onMouseEnter:k,onPointerMove:E,onMouseMove:E,onPointerLeave:N,onMouseLeave:N},theirProps:a,slot:j,defaultTag:eS,name:"Menu.Item"})}let eC=Object.assign((0,eu.yV)(ex),{Button:(0,eu.yV)(ek),Items:(0,eu.yV)(ej),Item:(0,eu.yV)(eR)})},28489:function(e,t,r){"use strict";r.d(t,{z:function(){return a}});var n=r(2265),o=r(28782);function a(){let{publicKey:e,signTransaction:t,signAllTransactions:r}=(0,o.O)();return(0,n.useMemo)(()=>e&&t&&r?{publicKey:e,signTransaction:t,signAllTransactions:r}:void 0,[e,t,r])}},1448:function(e,t,r){"use strict";r.d(t,{D:function(){return c}});var n=r(2265),o=r(19444),a=r(80847),i=r(58905),s=r(99972),l=class extends i.l{#e;#t=void 0;#r;#n;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#o(),this.#a()}mutate(e,t){return this.#n=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#o(){let e=this.#r?.state??(0,o.R)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#a(e){a.V.batch(()=>{if(this.#n&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context;e?.type==="success"?(this.#n.onSuccess?.(e.data,t,r),this.#n.onSettled?.(e.data,null,t,r)):e?.type==="error"&&(this.#n.onError?.(e.error,t,r),this.#n.onSettled?.(void 0,e.error,t,r))}this.listeners.forEach(e=>{e(this.#t)})})}},u=r(93191),d=r(37832);function c(e,t){let r=(0,u.NL)(t),[o]=n.useState(()=>new l(r,e));n.useEffect(()=>{o.setOptions(e)},[o,e]);let i=n.useSyncExternalStore(n.useCallback(e=>o.subscribe(a.V.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),s=n.useCallback((e,t)=>{o.mutate(e,t).catch(d.Z)},[o]);if(i.error&&(0,d.L)(o.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}},65691:function(e,t,r){"use strict";r.d(t,{a:function(){return I}});var n=r(99972),o=r(80847),a=r(90740),i=r(58905),s=r(24498),l=class extends i.l{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#l=void 0;#t=void 0;#u;#d;#i;#c;#f;#g;#p;#h;#b;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),d(this.#s,this.options)?this.#y():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#s.removeObserver(this)}setOptions(e,t){let r=this.options,o=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.#k(),this.#s.setOptions(this.options),r._defaulted&&!(0,n.VS)(this.options,r)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let a=this.hasListeners();a&&f(this.#s,o,this.options,r)&&this.#y(),this.updateResult(t),a&&(this.#s!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.#E();let i=this.#N();a&&(this.#s!==o||this.options.enabled!==r.enabled||i!==this.#b)&&this.#j(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return p(this,r)&&(this.#t=r,this.#d=this.options,this.#u=this.#s.state),r}getCurrentResult(){return this.#t}trackResult(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})}),r}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#y({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#y(e){this.#k();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(n.ZT)),t}#E(){if(this.#x(),n.sk||this.#t.isStale||!(0,n.PN)(this.options.staleTime))return;let e=(0,n.Kp)(this.#t.dataUpdatedAt,this.options.staleTime)+1;this.#p=setTimeout(()=>{this.#t.isStale||this.updateResult()},e)}#N(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#j(e){this.#w(),this.#b=e,!n.sk&&!1!==this.options.enabled&&(0,n.PN)(this.#b)&&0!==this.#b&&(this.#h=setInterval(()=>
108{(this.options.refetchIntervalInBackground||a.j.isFocused())&&this.#y()},this.#b))}#v(){this.#E(),this.#j(this.#N())}#x(){this.#p&&(clearTimeout(this.#p),this.#p=void 0)}#w(){this.#h&&(clearInterval(this.#h),this.#h=void 0)}createResult(e,t){let r;let o=this.#s,a=this.options,i=this.#t,l=this.#u,u=this.#d,c=e!==o?e.state:this.#l,{state:p}=e,h={...p},b=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&d(e,t),i=r&&f(e,o,t,a);(n||i)&&(h={...h,...(0,s.z)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(h.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:v}=h;if(t.select&&void 0!==h.data){if(i&&h.data===l?.data&&t.select===this.#c)r=this.#f;else try{this.#c=t.select,r=t.select(h.data),r=(0,n.oE)(i?.data,r,t),this.#f=r,this.#i=null}catch(e){this.#i=e}}else r=h.data;if(void 0!==t.placeholderData&&void 0===r&&"pending"===v){let e;if(i?.isPlaceholderData&&t.placeholderData===u?.placeholderData)e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#g?.state.data,this.#g):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#i=null}catch(e){this.#i=e}void 0!==e&&(v="success",r=(0,n.oE)(i?.data,e,t),b=!0)}this.#i&&(m=this.#i,r=this.#f,y=Date.now(),v="error");let x="fetching"===h.fetchStatus,w="pending"===v,k="error"===v,E=w&&x,N=void 0!==r;return{status:v,fetchStatus:h.fetchStatus,isPending:w,isSuccess:"success"===v,isError:k,isInitialLoading:E,isLoading:E,data:r,dataUpdatedAt:h.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:k&&!N,isPaused:"paused"===h.fetchStatus,isPlaceholderData:b,isRefetchError:k&&N,isStale:g(e,t),refetch:this.refetch}}updateResult(e){let t=this.#t,r=this.createResult(this.#s,this.options);if(this.#u=this.#s.state,this.#d=this.options,void 0!==this.#u.data&&(this.#g=this.#s),(0,n.VS)(r,t))return;this.#t=r;let o={},a=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#m.size)return!0;let n=new Set(r??this.#m);return this.options.throwOnError&&n.add("error"),Object.keys(this.#t).some(e=>{let r=e;return this.#t[r]!==t[r]&&n.has(r)})};e?.listeners!==!1&&a()&&(o.listeners=!0),this.#a({...o,...e})}#k(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#l=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#a(e){o.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#t)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function u(e,t){return!1!==t.enabled&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}function d(e,t){return u(e,t)||void 0!==e.state.data&&c(e,t,t.refetchOnMount)}function c(e,t,r){if(!1!==t.enabled){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&g(e,t)}return!1}function f(e,t,r,n){return(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&g(e,r)}function g(e,t){return!1!==t.enabled&&e.isStaleByTime(t.staleTime)}function p(e,t){return!(0,n.VS)(e.getCurrentResult(),t)}var h=r(2265);function b(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}r(57437);var m=h.createContext(b()),y=()=>h.useContext(m),v=r(93191),x=h.createContext(!1),w=()=>h.useContext(x);x.Provider;var k=r(37832),E=(e,t)=>{(e.suspense||e.throwOnError)&&!t.isReset()&&(e.retryOnMount=!1)},N=e=>{h.useEffect(()=>{e.clearReset()},[e])},j=e=>{let{result:t,errorResetBoundary:r,throwOnError:n,query:o}=e;return t.isError&&!r.isReset()&&!t.isFetching&&o&&(0,k.L)(n,[t.error,o])},S=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},R=(e,t)=>e?.suspense&&t.isPending,C=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function T(e,t,r){let n=(0,v.NL)(r),a=w(),i=y(),s=n.defaultQueryOptions(e);s._optimisticResults=a?"isRestoring":"optimistic",S(s),E(s,i),N(i);let[l]=h.useState(()=>new t(n,s)),u=l.getOptimisticResult(s);if(h.useSyncExternalStore(h.useCallback(e=>{let t=a?()=>void 0:l.subscribe(o.V.batchCalls(e));return l.updateResult(),t},[l,a]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),h.useEffect(()=>{l.setOptions(s,{listeners:!1})},[s,l]),R(s,u))throw C(s,l,i);if(j({result:u,errorResetBoundary:i,throwOnError:s.throwOnError,query:n.getQueryCache().get(s.queryHash)}))throw u.error;return s.notifyOnChangeProps?u:l.trackResult(u)}function I(e,t){return T(e,l,t)}},37832:function(e,t,r){"use strict";function n(e,t){return"function"==typeof e?e(...t):!!e}function o(){}r.d(t,{L:function(){return n},Z:function(){return o}})},24314:function(e,t,r){"use strict";let n,o,a,i;r.d(t,{UQ:function(){return tt},zx:function(){return tf},u_:function(){return iA}});var s=r(57437),l=r(2265),u=r.t(l,2),d=r(60525);let c="-";function f(e){let t=b(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:function(e){let r=e.split(c);return""===r[0]&&1!==r.length&&r.shift(),g(r,t)||h(e)},getConflictingClassGroupIds:function(e,t){let o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}}function g(e,t){if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),o=n?g(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;let a=e.join(c);return t.validators.find(({validator:e})=>e(a))?.classGroupId}let p=/^\[(.+)\]$/;function h(e){if(p.test(e)){let t=p.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function b(e){let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return x(Object.entries(e.classGroups),r).forEach(([e,r])=>{m(r,n,e,t)}),n}
108function m(e,t,r,n){e.forEach(e=>{if("string"==typeof e){(""===e?t:y(t,e)).classGroupId=r;return}if("function"==typeof e){if(v(e)){m(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([e,o])=>{m(o,y(t,e),r,n)})})}function y(e,t){let r=e;return t.split(c).forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}function v(e){return e.isThemeGetter}function x(e,t){return t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e}function w(e){if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map;function o(o,a){r.set(o,a),++t>e&&(t=0,n=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}}let k="!";function E(e){let t=e.separator,r=1===t.length,n=t[0],o=t.length;return function(e){let a;let i=[],s=0,l=0;for(let u=0;u<e.length;u++){let d=e[u];if(0===s){if(d===n&&(r||e.slice(u,u+o)===t)){i.push(e.slice(l,u)),l=u+o;continue}if("/"===d){a=u;continue}}"["===d?s++:"]"===d&&s--}let u=0===i.length?e:e.substring(l),d=u.startsWith(k),c=d?u.substring(1):u;return{modifiers:i,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}}function N(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t}function j(e){return{cache:w(e.cacheSize),splitModifiers:E(e),...f(e)}}let S=/\s+/;function R(e,t){let{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(S).map(e=>{let{modifiers:t,hasImportantModifier:o,baseClassName:a,maybePostfixModifierPosition:i}=r(e),s=n(i?a.substring(0,i):a),l=!!i;if(!s){if(!i||!(s=n(a)))return{isTailwindClass:!1,originalClassName:e};l=!1}let u=N(t).join(":");return{isTailwindClass:!0,modifierId:o?u+k:u,classGroupId:s,originalClassName:e,hasPostfixModifier:l}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:r,hasPostfixModifier:n}=e,i=t+r;return!a.has(i)&&(a.add(i),o(r,n).forEach(e=>a.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(" ")}function C(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=T(e))&&(n&&(n+=" "),n+=t);return n}function T(e){let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=T(e[n]))&&(r&&(r+=" "),r+=t);return r}function I(e,...t){let r,n,o;let a=i;function i(i){return n=(r=j(t.reduce((e,t)=>t(e),e()))).cache.get,o=r.cache.set,a=s,s(i)}function s(e){let t=n(e);if(t)return t;let a=R(e,r);return o(e,a),a}return function(){return a(C.apply(null,arguments))}}function O(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}let L=/^\[(?:([a-z-]+):)?(.+)\]$/i,M=/^\d+\/\d+$/,P=new Set(["px","full","screen"]),D=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A=/\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$/,F=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,z=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,B=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function _(e){return V(e)||P.has(e)||M.test(e)}function U(e){return et(e,"length",er)}function V(e){return!!e&&!Number.isNaN(Number(e))}function W(e){return et(e,"number",V)}function H(e){return!!e&&Number.isInteger(Number(e))}function G(e){return e.endsWith("%")&&V(e.slice(0,-1))}function Y(e){return L.test(e)}function Q(e){return D.test(e)}let K=new Set(["length","size","percentage"]);function q(e){return et(e,K,en)}function $(e){return et(e,"position",en)}let X=new Set(["image","url"]);function Z(e){return et(e,X,ea)}function J(e){return et(e,"",eo)}function ee(){return!0}function et(e,t,r){let n=L.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function er(e){return A.test(e)&&!F.test(e)}function en(){return!1}function eo(e){return z.test(e)}function ea(e){return B.test(e)}let ei=I(function(){let e=O("colors"),t=O("spacing"),r=O("blur"),n=O("brightness"),o=O("borderColor"),a=O("borderRadius"),i=O("borderSpacing"),s=O("borderWidth"),l=O("contrast"),u=O("grayscale"),d=O("hueRotate"),c=O("invert"),f=O("gap"),g=O("gradientColorStops"),p=O("gradientColorStopPositions"),h=O("inset"),b=O("margin"),m=O("opacity"),y=O("padding"),v=O("saturate"),x=O("scale"),w=O("sepia"),k=O("skew"),E=O("space"),N=O("translate"),j=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",Y,t],C=()=>[Y,t],T=()=>["",_,U],I=()=>["auto",V,Y],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],P=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],D=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",Y],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[V,W],B=()=>[V,Y];return{cacheSize:500,separator:":",theme:{colors:[ee],spacing:[_,U],blur:["none","",Q,Y],brightness:z(),borderColor:[e],borderRadius:["n
108one","","full",Q,Y],borderSpacing:C(),borderWidth:T(),contrast:z(),grayscale:A(),hueRotate:B(),invert:A(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[G,U],inset:R(),margin:R(),opacity:z(),padding:C(),saturate:z(),scale:z(),sepia:A(),skew:B(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[Q]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),Y]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,Y]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",H,Y]}],"grid-cols":[{"grid-cols":[ee]}],"col-start-end":[{col:["auto",{span:["full",H,Y]},Y]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[ee]}],"row-start-end":[{row:["auto",{span:[H,Y]},Y]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[Q]},Q]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Q,U]}],"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:[ee]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",V,W]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_,U]}],"underline-offset":[{"underline-offset":["auto",_,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),$]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",q]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Z]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}
vendor: 5,057 bytes, line 108
108],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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":[m]}],"border-style":[{border:[...M(),"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":[m]}],"divide-style":[{divide:M()}],"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:["",...M()]}],"outline-offset":[{"outline-offset":[_,Y]}],"outline-w":[{outline:[_,U]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[_,U]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Q,J]}],"shadow-color":[{shadow:[ee]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":P()}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Q,Y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[H,Y]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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"]}
108],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_,U,W]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function es(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function el(e){if(!es(e))return e;let t={};for(let r in e)t[r]=el(e[r]);return t}function eu(e,t){if(es(t)&&0===Object.keys(t).length)return el({...e,...t});let r={...e,...t};if(es(t)&&es(e))for(let n in t)es(t[n])&&n in e&&es(e[n])?r[n]=eu(e[n],t[n]):r[n]=es(t[n])?el(t[n]):t[n];return r}function ed(e){return e}let ec=ed({root:{base:"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700",flush:{off:"rounded-lg border",on:"border-b"}},content:{base:"p-5 first:rounded-t-lg last:rounded-b-lg dark:bg-gray-900"},title:{arrow:{base:"h-6 w-6 shrink-0",open:{off:"",on:"rotate-180"}},base:"flex w-full items-center justify-between p-5 text-left font-medium text-gray-500 first:rounded-t-lg last:rounded-b-lg dark:text-gray-400",flush:{off:"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800",on:"bg-transparent dark:bg-transparent"},heading:"",open:{off:"",on:"bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-white"}}}),ef=ed({base:"flex flex-col gap-2 p-4 text-sm",borderAccent:"border-t-4",closeButton:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2",icon:"h-5 w-5",color:{info:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",gray:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white",failure:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",success:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",warning:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",red:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",green:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",yellow:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",blue:"bg-blue-100 text-blue-500 hover:bg-blue-200 focus:ring-blue-400 dark:bg-blue-200 dark:text-blue-600 dar
108k:hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",pink:"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300",lime:"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300",dark:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300",indigo:"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300",purple:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300",teal:"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300",light:"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white"}},color:{info:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",gray:"border-gray-500 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300",failure:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",success:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",warning:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",red:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",green:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",yellow:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",blue:"border-blue-500 bg-blue-100 text-blue-700 dark:bg-blue-200 dark:text-blue-800",cyan:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",pink:"border-pink-500 bg-pink-100 text-pink-700 dark:bg-pink-200 dark:text-pink-800",lime:"border-lime-500 bg-lime-100 text-lime-700 dark:bg-lime-200 dark:text-lime-800",dark:"border-gray-600 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:text-gray-300",indigo:"border-indigo-500 bg-indigo-100 text-indigo-700 dark:bg-indigo-200 dark:text-indigo-800",purple:"border-purple-500 bg-purple-100 text-purple-700 dark:bg-purple-200 dark:text-purple-800",teal:"border-teal-500 bg-teal-100 text-teal-700 dark:bg-teal-200 dark:text-teal-800",light:"border-gray-400 bg-gray-50 text-gray-600 dark:bg-gray-500 dark:text-gray-200"},icon:"mr-3 inline h-5 w-5 flex-shrink-0",rounded:"rounded-lg",wrapper:"flex items-center"}),eg=ed({root:{base:"flex items-center justify-center space-x-4 rounded",bordered:"p-1 ring-2",rounded:"rounded-full",color:{dar
108k:"ring-gray-800 dark:ring-gray-800",failure:"ring-red-500 dark:ring-red-700",gray:"ring-gray-500 dark:ring-gray-400",info:"ring-cyan-400 dark:ring-cyan-800",light:"ring-gray-300 dark:ring-gray-500",purple:"ring-purple-500 dark:ring-purple-600",success:"ring-green-500 dark:ring-green-500",warning:"ring-yellow-300 dark:ring-yellow-500",pink:"ring-pink-500 dark:ring-pink-500"},img:{base:"rounded",off:"relative overflow-hidden bg-gray-100 dark:bg-gray-600",on:"",placeholder:"absolute -bottom-1 h-auto w-auto text-gray-400"},size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-20 w-20",xl:"h-36 w-36"},stacked:"ring-2 ring-gray-300 dark:ring-gray-500",statusPosition:{"bottom-left":"-bottom-1 -left-1","bottom-center":"-bottom-1","bottom-right":"-bottom-1 -right-1","top-left":"-left-1 -top-1","top-center":"-top-1","top-right":"-right-1 -top-1","center-right":"-right-1",center:"","center-left":"-left-1"},status:{away:"bg-yellow-400",base:"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800",busy:"bg-red-400",offline:"bg-gray-400",online:"bg-green-400"},initials:{text:"font-medium text-gray-600 dark:text-gray-300",base:"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 dark:bg-gray-600"}},group:{base:"flex -space-x-4"},groupCounter:{base:"relative flex h-10 w-10 items-center justify-center rounded-full bg-gray-700 text-xs font-medium text-white ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500"}}),ep=ed({root:{base:"flex h-fit items-center gap-1 font-semibold",color:{info:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-800 dark:group-hover:bg-cyan-300",gray:"bg-gray-100 text-gray-800 group-hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:group-hover:bg-gray-600",failure:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",success:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",warning:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300",indigo:"bg-indigo-100 text-indigo-800 group-hover:bg-indigo-200 dark:bg-indigo-200 dark:text-indigo-900 dark:group-hover:bg-indigo-300",purple:"bg-purple-100 text-purple-800 group-hover:bg-purple-200 dark:bg-purple-200 dark:text-purple-900 dark:group-hover:bg-purple-300",pink:"bg-pink-100 text-pink-800 group-hover:bg-pink-200 dark:bg-pink-200 dark:text-pink-900 dark:group-hover:bg-pink-300",blue:"bg-blue-100 text-blue-800 group-hover:bg-blue-200 dark:bg-blue-200 dark:text-blue-900 dark:group-hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-900 dark:group-hover:bg-cyan-300",dark:"bg-gray-600 text-gray-100 group-hover:bg-gray-500 dark:bg-gray-900 dark:text-gray-200 dark:group-hover:bg-gray-700",light:"bg-gray-200 text-gray-800 group-hover:bg-gray-300 dark:bg-gray-400 dark:text-gray-900 dark:group-hover:bg-gray-500",green:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",lime:"bg-lime-100 text-lime-800 group-hover:bg-lime-200 dark:bg-lime-200 dark:text-lime-900 dark:group-hover:bg-lime-300",red:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",teal:"bg-teal-100 text-teal-800 group-hover:bg-teal-200 dark:bg-teal-200 dark:text-teal-900 dark:group-hover:bg-teal-300",yellow:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300"},href:"group",size:{xs:"p-1 text-xs",sm:"p-1.5 text-sm"}},icon:{off:"rounded px-2 py-0.5",on:"rounded-full p-1.5",size:{xs:"h-3 w-3",sm:"h-3.5 w-3.5"}}}),eh=ed({root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}}),eb=ed({root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}}),em=ed({base:"group relative flex items-stretch justify-center p-0.5 text-center font-medium transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] focu
108s:z-10 focus:outline-none",fullSized:"w-full",color:{dark:"border border-transparent bg-gray-800 text-white focus:ring-4 focus:ring-gray-300 enabled:hover:bg-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-gray-800 dark:enabled:hover:bg-gray-700",failure:"border border-transparent bg-red-700 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-800 dark:bg-red-600 dark:focus:ring-red-900 dark:enabled:hover:bg-red-700",gray:":ring-cyan-700 border border-gray-200 bg-white text-gray-900 focus:text-cyan-700 focus:ring-4 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 dark:border-gray-600 dark:bg-transparent dark:text-gray-400 dark:enabled:hover:bg-gray-700 dark:enabled:hover:text-white",info:"border border-transparent bg-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-800 dark:bg-cyan-600 dark:focus:ring-cyan-800 dark:enabled:hover:bg-cyan-700",light:"border border-gray-300 bg-white text-gray-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-600 dark:text-white dark:focus:ring-gray-700 dark:enabled:hover:border-gray-700 dark:enabled:hover:bg-gray-700",purple:"border border-transparent bg-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-purple-800 dark:bg-purple-600 dark:focus:ring-purple-900 dark:enabled:hover:bg-purple-700",success:"border border-transparent bg-green-700 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-800 dark:bg-green-600 dark:focus:ring-green-800 dark:enabled:hover:bg-green-700",warning:"border border-transparent bg-yellow-400 text-white focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-500 dark:focus:ring-yellow-900",blue:"border border-transparent bg-blue-700 text-white focus:ring-4 focus:ring-blue-300 enabled:hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"border border-cyan-300 bg-white text-cyan-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-100 dark:border-cyan-600 dark:bg-cyan-600 dark:text-white dark:focus:ring-cyan-700 dark:enabled:hover:border-cyan-700 dark:enabled:hover:bg-cyan-700",green:"border border-green-300 bg-white text-green-900 focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-100 dark:border-green-600 dark:bg-green-600 dark:text-white dark:focus:ring-green-700 dark:enabled:hover:border-green-700 dark:enabled:hover:bg-green-700",indigo:"border border-indigo-300 bg-white text-indigo-900 focus:ring-4 focus:ring-indigo-300 enabled:hover:bg-indigo-100 dark:border-indigo-600 dark:bg-indigo-600 dark:text-white dark:focus:ring-indigo-700 dark:enabled:hover:border-indigo-700 dark:enabled:hover:bg-indigo-700",lime:"border border-lime-300 bg-white text-lime-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-lime-100 dark:border-lime-600 dark:bg-lime-600 dark:text-white dark:focus:ring-lime-700 dark:enabled:hover:border-lime-700 dark:enabled:hover:bg-lime-700",pink:"border border-pink-300 bg-white text-pink-900 focus:ring-4 focus:ring-pink-300 enabled:hover:bg-pink-100 dark:border-pink-600 dark:bg-pink-600 dark:text-white dark:focus:ring-pink-700 dark:enabled:hover:border-pink-700 dark:enabled:hover:bg-pink-700",red:"border border-red-300 bg-white text-red-900 focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-100 dark:border-red-600 dark:bg-red-600 dark:text-white dark:focus:ring-red-700 dark:enabled:hover:border-red-700 dark:enabled:hover:bg-red-700",teal:"border border-teal-300 bg-white text-teal-900 focus:ring-4 focus:ring-teal-300 enabled:hover:bg-teal-100 dark:border-teal-600 dark:bg-teal-600 dark:text-white dark:focus:ring-teal-700 dark:enabled:hover:border-teal-700 dark:enabled:hover:bg-teal-700",yellow:"border border-yellow-300 bg-white text-yellow-900 focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-100 dark:border-yellow-600 dark:bg-yellow-600 dark:text-white dark:focus:ring-yellow-700 dark:enabled:hover:border-yellow-700 dark:enabled:hover:bg-yellow-700"},disabled:"cursor-not-allowed opacity-50",isProcessing:"cursor-wait",spinnerSlot:"absolute top-0 flex h-full items-center",spinnerLeftPosition:{xs:"left-2",sm:"left-3",md:"left-4",lg:"left-5",xl:"left-6"},gradient:{cyan:"bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800",failure:"bg-gradient-to-r from-red-400 via-red-500 to-red-600 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-gradient-to-br dark:focus:ring-red-800",info:"bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800 ",lime:"bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 text-gray-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-gradient-to-br dark:focus:ring-lime-800",pink:"bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 text-white focus:ring-4 focus:ring-pink-300 enabled:hover:bg-gradient-to-br dark:focus:ring-pink-800",purple:"bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-gradient-to-br dark:focus:ring-purple-800",success:"bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-gradient-to-br dark:focus:ring-green-800",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 text-white focus:ring-4 focus:ring-teal-300 enabled:hover:bg-gradient-to-br dark:focus:ring-teal-800"},gradientDuoTone:{cyanToBlue:"bg-gradient-to-r from-cyan-500 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",greenToBlue:"bg-gradient-to-br from-green-400 to-cyan-600 text-white focus:ring-4 focus:ring-green-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-green-800",pinkToOrange:"bg-gradient-to-br from-pink-500 to-orange-400 text-white focus:ring-4 focus:ring-pink-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-pink-800",purpleToBlue:"bg-gradient-to-br from-purple-600 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",purpleToPink:"bg-gradient-to-r from-purple-500 to-pink-500 text-white focus:ring-4 focus:ring-purple-200 enabled:hover:bg-gradient-to-l dark:focus:ring-purple-800",redToYellow:"bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 text-gray-900 focus:ring-4 focus:ring-red-100 enabled:hover:bg-gradient-to-bl dark:focus:ring-red-400",tealToLime:"bg-gradient-to-r from-teal-200 to-lime-200 text-gray-900 focus:ring-4 focus:ring-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 dark:focus:ring-teal-700"},inner:{base:"flex items-stretch transition-all duration-200",position:{none:"",start:"rounded-r-none",middle:"rounded-none",end:"roun
108ded-l-none"},outline:"border border-transparent",isProcessingPadding:{xs:"pl-8",sm:"pl-10",md:"pl-12",lg:"pl-16",xl:"pl-20"}},label:"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800",outline:{color:{gray:"border border-gray-900 dark:border-white",default:"border-0",light:""},off:"",on:"flex w-full justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-enabled:group-hover:bg-opacity-0 group-enabled:group-hover:text-inherit dark:bg-gray-900 dark:text-white",pill:{off:"rounded-md",on:"rounded-full"}},pill:{off:"rounded-lg",on:"rounded-full"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-2.5 text-base",xl:"px-6 py-3 text-base"}}),ey=ed({base:"inline-flex",position:{none:"",start:"rounded-r-none focus:ring-2",middle:"rounded-none border-l-0 pl-0 focus:ring-2",end:"rounded-l-none border-l-0 pl-0 focus:ring-2"}}),ev=ed({root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}}),ex=ed({root:{base:"relative h-full w-full",leftControl:"absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none",rightControl:"absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none"},indicators:{active:{off:"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800",on:"bg-white dark:bg-gray-800"},base:"h-3 w-3 rounded-full",wrapper:"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3"},item:{base:"absolute left-1/2 top-1/2 block w-full -translate-x-1/2 -translate-y-1/2",wrapper:{off:"w-full flex-shrink-0 transform cursor-default snap-center",on:"w-full flex-shrink-0 transform cursor-grab snap-center"}},control:{base:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10",icon:"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6"},scrollContainer:{base:"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg",snap:"snap-x"}}),ew=ed({root:{base:"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700",color:{default:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-gray-800 dark:focus:ring-cyan-600",dark:"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800",failure:"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900",gray:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",info:"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800",light:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",purple:"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600",success:"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800",warning:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400",blue:"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700",cyan:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600",green:"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600",indigo:"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700",pink:"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600",red:"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600",teal:"text-teal-600 focus:ring-teal-600 dar
108k:ring-offset-teal-600 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400"}}}),ek=ed({root:{base:"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",icon:"h-5 w-5"}}),eE=ed({root:{base:"relative"},popup:{root:{base:"absolute top-10 z-50 block pt-2",inline:"relative top-0 z-auto",inner:"inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700"},header:{base:"",title:"px-2 py-3 text-center font-semibold text-gray-900 dark:text-white",selectors:{base:"mb-2 flex justify-between",button:{base:"rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",prev:"",next:"",view:""}}},view:{base:"p-1"},footer:{base:"mt-2 flex space-x-2",button:{base:"w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-cyan-300",today:"bg-cyan-700 text-white hover:bg-cyan-800 dark:bg-cyan-600 dark:hover:bg-cyan-700",clear:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600"}}},views:{days:{header:{base:"mb-1 grid grid-cols-7",title:"h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400"},items:{base:"grid w-64 grid-cols-7",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600 ",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},months:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},years:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},decades:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}}}}),eN=ed({root:{base:"fixed z-40 overflow-y-auto bg-white p-4 transition-transform dark:bg-gray-800",backdrop:"fixed inset-0 z-30 bg-gray-900/50 dark:bg-gray-900/80",edge:"bottom-16",position:{top:{on:"left-0 right-0 top-0 w-full transform-none",off:"left-0 right-0 top-0 w-full -translate-y-full"},right:{on:"right-0 top-0 h-screen w-80 transform-none",off:"right-0 top-0 h-screen w-80 translate-x-full"},bottom:{on:"bottom-0 left-0 right-0 w-full transform-none",off:"bottom-0 left-0 right-0 w-full translate-y-full"},left:{on:"left-0 top-0 h-screen w-80 transform-none",off:"left-0 top-0 h-screen w-80 -translate-x-full"}}},header:{inner:{closeButton:"absolute end-2.5 top-2.5 flex h-8 w-8 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",closeIcon:"h-4 w-4",titleIcon:"me-2.5 h-4 w-4",titleText:"mb-4 inline-flex items-center text-base font-semibold text-gray-500 dark:text-gray-400"},collapsed:{on:"hidden",off:"block"}},items:{base:""}}),ej=ed({arrowIcon:"ml-2 h-4 w-4",content:"py-1 focus:outline-none",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"}
108),eS=ed({root:{base:"flex"},field:{base:"relative w-full",input:{base:"block w-full overflow-hidden rounded-lg border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}}),eR=ed({input:{default:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"}},success:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"}},error:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"}}},label:{default:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dar
108k:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"}},success:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500"}},error:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500"}}},helperText:{default:"mt-2 text-xs text-gray-600 dark:text-gray-400",success:"mt-2 text-xs text-green-600 dark:text-green-400",error:"mt-2 text-xs text-red-600 dark:text-red-400"}}
108),eC=ed({root:{base:"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between",container:"w-full p-6",bgDark:"bg-gray-800"},groupLink:{base:"flex flex-wrap text-sm text-gray-500 dark:text-white",link:{base:"me-4 last:mr-0 md:mr-6",href:"hover:underline"},col:"flex-col space-y-4"},icon:{base:"text-gray-500 dark:hover:text-white",size:"h-5 w-5"},title:{base:"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white"},divider:{base:"my-6 w-full border-gray-200 dark:border-gray-700 sm:mx-auto lg:my-8"},copyright:{base:"text-sm text-gray-500 dark:text-gray-400 sm:text-center",href:"ml-1 hover:underline",span:"ml-1"},brand:{base:"mb-4 flex items-center sm:mb-0",img:"mr-3 h-8",span:"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white"}}),eT=ed({root:{base:"mt-2 text-sm",colors:{gray:"text-gray-500 dark:text-gray-400",info:"text-cyan-700 dark:text-cyan-800",success:"text-green-600 dark:text-green-500",failure:"text-red-600 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600"}}}),eI=ed({root:{base:"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100",icon:"inline-block"}}),eO=ed({root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}}),eL=ed({root:{base:"list-inside space-y-1 text-gray-500 dark:text-gray-400",ordered:{off:"list-disc",on:"list-decimal"},horizontal:"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0",unstyled:"list-none",nested:"mt-2 ps-5"},item:{withIcon:{off:"",on:"flex items-center"},icon:"me-2 h-3.5 w-3.5 flex-shrink-0"}}),eM=ed({root:{base:"list-none rounded-lg border border-gray-200 bg-white text-left text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white"},item:{base:"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0",link:{base:"flex w-full items-center border-b border-gray-200 px-4 py-2 dark:border-gray-600",active:{off:"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500",on:"bg-cyan-700 text-white dark:bg-gray-800"},disabled:{off:"",on:"cursor-not-allowed bg-gray-100 text-gray-900 hover:bg-gray-100 hover:text-gray-900 focus:text-gray-900"},href:{off:"",on:""},icon:"mr-2 h-4 w-4 fill-current"}}}),eP=ed({root:{base:"bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",rounded:{on:"rounded",off:""},bordered:{on:"border",off:""},inner:{base:"mx-auto flex flex-wrap items-center justify-between",fluid:{on:"",off:"container"}}},brand:{base:"flex items-center"},collapse:{base:"w-full md:block md:w-auto",list:"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium",hidden:{on:"hidden",off:""}},link:{base:"block py-2 pl-3 pr-4 md:p-0",active:{on:"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700",off:"border-b border-gray-100 text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white"},disabled:{on:"text-gray-400 hover:cursor-not-allowed dark:text-gray-600",off:""}},toggle:{base:"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden",icon:"h-6 w-6 shrink-0"}}),eD=ed({...eP,dropdown:{base:"",toggle:{...ej,floating:{...ej.floating,base:ei(ej.floating.base,"mt-2 block"),content:ei(ej.floating.content,"text-gray-500 dark:text-gray-400"),style:{...ej.floating.style,auto:ei(ej.floating.style.auto,"text-gray-500 dark:text-gray-400")}}
108,inlineWrapper:ei(ej.inlineWrapper,"flex w-full items-center justify-between")}},dropdownToggle:{base:ei(eP.link.base,eP.link.active.off,"flex w-full items-center justify-between")}}),eA=ed({root:{base:"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full p-4 md:h-auto",inner:"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700"},body:{base:"flex-1 overflow-auto p-6",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600",popup:"border-b-0 p-2",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}}),eF=ed({base:"",layout:{table:{base:"text-sm text-gray-700 dark:text-gray-400",span:"font-semibold text-gray-900 dark:text-white"}},pages:{base:"xs:mt-0 mt-2 inline-flex items-center -space-x-px",showIcon:"inline-flex",previous:{base:"ml-0 rounded-l-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},next:{base:"rounded-r-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},selector:{base:"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",active:"bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",disabled:"cursor-not-allowed opacity-50"}}}),ez={base:"absolute z-20 inline-block w-max max-w-[100vw] bg-white outline-none border border-gray-200 rounded-lg shadow-sm dark:border-gray-600 dark:bg-gray-800",content:"z-10 overflow-hidden rounded-[7px]",arrow:{base:"absolute h-2 w-2 z-0 rotate-45 mix-blend-lighten bg-white border border-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:mix-blend-color",placement:"-4px"}},eB=ed({base:"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",label:"mb-1 flex justify-between font-medium dark:text-white",bar:"space-x-2 rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100",color:{dark:"bg-gray-600 dark:bg-gray-300",blue:"bg-blue-600",red:"bg-red-600 dark:bg-red-500",green:"bg-green-600 dark:bg-green-500",yellow:"bg-yellow-400",indigo:"bg-indigo-600 dark:bg-indigo-500",purple:"bg-purple-600 dark:bg-purple-500",cyan:"bg-cyan-600",gray:"bg-gray-500",lime:"bg-lime-600",pink:"bg-pink-500",teal:"bg-teal-600"},size:{sm:"h-1.5",md:"h-2.5",lg:"h-4",xl:"h-6"}}),e_=ed({root:{base:"h-4 w-4 border border-gray-300 text-cyan-600 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600"}}),eU=ed({root:{base:"flex"},field:{base:"relative w-full",input:{base:"w-full cursor-pointer appearance-none rounded-lg bg-gray-200 dark:bg-gray-700",sizes:{sm:"h-1",md:"h-2",lg:"h-3"}}}}
108),eV=ed({root:{base:"flex items-center"},star:{empty:"text-gray-300 dark:text-gray-500",filled:"text-yellow-400",sizes:{sm:"h-5 w-5",md:"h-7 w-7",lg:"h-10 w-10"}}}),eW=ed({base:"flex items-center",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500",progress:{base:"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700",fill:"h-5 rounded bg-yellow-400",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500"}}),eH=ed({base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}}),eG=ed({root:{base:"h-full",collapsed:{on:"w-16",off:"w-64"},inner:"h-full overflow-y-auto overflow-x-hidden rounded bg-gray-50 px-3 py-4 dark:bg-gray-800"},collapse:{button:"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",icon:{base:"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",open:{off:"",on:"text-gray-900"}},label:{base:"ml-3 flex-1 whitespace-nowrap text-left",icon:{base:"h-6 w-6 transition delay-0 ease-in-out",open:{on:"rotate-180",off:""}}},list:"space-y-2 py-2"},cta:{base:"mt-6 rounded-lg bg-gray-100 p-4 dark:bg-gray-700",color:{blue:"bg-cyan-50 dark:bg-cyan-900",dark:"bg-dark-50 dark:bg-dark-900",failure:"bg-red-50 dark:bg-red-900",gray:"bg-alternative-50 dark:bg-alternative-900",green:"bg-green-50 dark:bg-green-900",light:"bg-light-50 dark:bg-light-900",red:"bg-red-50 dark:bg-red-900",purple:"bg-purple-50 dark:bg-purple-900",success:"bg-green-50 dark:bg-green-900",yellow:"bg-yellow-50 dark:bg-yellow-900",warning:"bg-yellow-50 dark:bg-yellow-900"}},item:{base:"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",active:"bg-gray-100 dark:bg-gray-700",collapsed:{insideCollapse:"group w-full pl-8 transition duration-75",noIcon:"font-bold"},content:{base:"flex-1 whitespace-nowrap px-3"},icon:{base:"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",active:"text-gray-700 dark:text-gray-100"},label:"",listItem:""},items:{base:""},itemGroup:{base:"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700"},logo:{base:"mb-5 flex items-center pl-2.5",collapsed:{on:"hidden",off:"self-center whitespace-nowrap text-xl font-semibold dark:text-white"},img:"mr-3 h-6 sm:h-7"}}),eY=ed({base:"inline animate-spin text-gray-200",color:{failure:"fill-red-600",gray:"fill-gray-600",info:"fill-cyan-600",pink:"fill-pink-600",purple:"fill-purple-600",success:"fill-green-500",warning:"fill-yellow-400"},light:{off:{base:"dark:text-gray-600",color:{failure:"",gray:"dark:fill-gray-300",info:"",pink:"",purple:"",success:"",warning:""}},on:{base:"",color:{failure:"",gray:"",info:"",pink:"",purple:"",success:"",warning:""}}},size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}}
108),eQ=ed({root:{base:"w-full text-left text-sm text-gray-500 dark:text-gray-400",shadow:"absolute left-0 top-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-black",wrapper:"relative"},body:{base:"group/body",cell:{base:"px-6 py-4 group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg"}},head:{base:"group/head text-xs uppercase text-gray-700 dark:text-gray-400",cell:{base:"bg-gray-50 px-6 py-3 group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg dark:bg-gray-700"}},row:{base:"group/row",hovered:"hover:bg-gray-50 dark:hover:bg-gray-600",striped:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700"}}),eK=ed({base:"flex flex-col gap-2",tablist:{base:"flex text-center",styles:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none focus:ring-4 focus:ring-cyan-300 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",styles:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"active rounded-t-lg border-b-2 border-cyan-600 text-cyan-600 dark:border-cyan-500 dark:text-cyan-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-cyan-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"active rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",styles:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"}),eq=ed({base:"block w-full rounded-lg border text-sm disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}),e$=ed({base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}}),eX=ed({root:{direction:{horizontal:"sm:flex",vertical:"relative border-l border-gray-200 dark:border-gray-700"}},item:{root:{horizontal:"relative mb-6 sm:mb-0",vertical:"mb-10 ml-6"}
108,content:{root:{base:"mt-3 sm:pr-8"},body:{base:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},time:{base:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"},title:{base:"text-lg font-semibold text-gray-900 dark:text-white"}},point:{horizontal:"flex items-center",line:"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex",marker:{base:{horizontal:"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700",vertical:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"},icon:{base:"h-3 w-3 text-cyan-600 dark:text-cyan-300",wrapper:"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900"}},vertical:""}}}),eZ=ed({root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}}),eJ={accordion:ec,alert:ef,avatar:eg,badge:ep,blockquote:eh,breadcrumb:eb,button:em,buttonGroup:ey,card:ev,carousel:ex,checkbox:ew,datepicker:eE,darkThemeToggle:ek,drawer:eN,dropdown:ej,fileInput:eS,floatingLabel:eR,footer:eC,helperText:eT,kbd:eI,label:eO,listGroup:eM,list:eL,megaMenu:eD,modal:eA,navbar:eP,pagination:eF,popover:ez,progress:eB,radio:e_,rangeSlider:eU,rating:eV,ratingAdvanced:eW,select:eH,textInput:e$,textarea:eq,toggleSwitch:ed({root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4",md:"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5",lg:"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6"}}}),sidebar:eG,spinner:eY,table:eQ,tabs:eK,timeline:eX,toast:eZ,tooltip:ed({target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"})},e0={theme:el(eJ)};function e1(e){e0.mode=e}function e2(){return e0.mode}function e5(e){e&&(e0.theme=eu(eJ,e))}function e4(){return el(e0.theme)}let e6=(0,l.createContext)(void 0);function e3(){let e=(0,l.useContext)(e6);if(!e)throw Error("useAccordionContext should be used within the AccordionPanelContext provider!");return e}let e7=e=>{let{children:t,className:r,theme:n={},...o}=e,{isOpen:a}=e3(),i=eu(e4().accordion.content,n);return(0,s.jsx)("div",{className:ei(i.base,r),"data-testid":"flowbite-accordion-content",hidden:!a,...o,children:t})},e8=e=>{let{children:t,...r}=e,{alwaysOpen:n}=r,[o,a]=(0,l.useState)(r.isOpen),i=n?{...r,isOpen:o,setOpen:()=>a(!o)}:r;return(0,s.jsx)(e6.Provider,{value:i,children:t})},e9=e=>{let{as:t="h2",children:r,className:n,theme:o={},...a}=e,{arrowIcon:i,flush:l,isOpen:u,setOpen:d}=e3(),c=()=>void 0!==d&&d(),f=eu(e4().accordion.title,o);return(0,s.jsxs)("button",{className:ei(f.base,f.flush[l?"on":"off"],f.open[u?"on":"off"],n),onClick:c,type:"button",...a,children:[(0,s.jsx)(t,{className:f.heading,"data-testid":"flowbite-accordion-heading",children:r}
108),i&&(0,s.jsx)(i,{"aria-hidden":!0,className:ei(f.arrow.base,f.arrow.open[u?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},te=e=>{let{alwaysOpen:t=!1,arrowIcon:r=d.kWQ,children:n,flush:o=!1,collapseAll:a=!1,className:i,theme:u={},...c}=e,[f,g]=(0,l.useState)(a?-1:0),p=(0,l.useMemo)(()=>l.Children.map(n,(e,n)=>(0,l.cloneElement)(e,{alwaysOpen:t,arrowIcon:r,flush:o,isOpen:f===n,setOpen:()=>g(f===n?-1:n)})),[t,r,n,o,f]),h=eu(e4().accordion.root,u);return(0,s.jsx)("div",{className:ei(h.base,h.flush[o?"on":"off"],i),"data-testid":"flowbite-accordion",...c,children:p})};te.displayName="Accordion",e8.displayName="Accordion.Panel",e9.displayName="Accordion.Title",e7.displayName="Accordion.Content";let tt=Object.assign(te,{Panel:e8,Title:e9,Content:e7}),tr=({children:e,className:t,theme:r={},...n})=>{let o=eu(e4().avatar.group,r);return(0,s.jsx)("div",{"data-testid":"avatar-group-element",className:ei(o.base,t),...n,children:e})};tr.displayName="Avatar.Group";let tn=({className:e,href:t,theme:r={},total:n,...o})=>{let a=eu(e4().avatar.groupCounter,r);return(0,s.jsxs)("a",{href:t,className:ei(a.base,e),...o,children:["+",n]})};tn.displayName="Avatar.GroupCounter";let to=({alt:e="",bordered:t=!1,children:r,className:n,color:o="light",img:a,placeholderInitials:i="",rounded:l=!1,size:u="md",stacked:d=!1,status:c,statusPosition:f="top-left",theme:g={},...p})=>{let h=eu(e4().avatar,g),b=ei(h.root.img.base,t&&h.root.bordered,t&&h.root.color[o],l&&h.root.rounded,d&&h.root.stacked,h.root.img.on,h.root.size[u]),m={className:ei(b,h.root.img.on),"data-testid":"flowbite-avatar-img"};return(0,s.jsxs)("div",{className:ei(h.root.base,n),"data-testid":"flowbite-avatar",...p,children:[(0,s.jsxs)("div",{className:"relative",children:[a?"string"==typeof a?(0,s.jsx)("img",{alt:e,src:a,...m}):a({alt:e,...m}):i?(0,s.jsx)("div",{className:ei(h.root.img.off,h.root.initials.base,d&&h.root.stacked,t&&h.root.bordered,t&&h.root.color[o],h.root.size[u],l&&h.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:(0,s.jsx)("span",{className:ei(h.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:i})}):(0,s.jsx)("div",{className:ei(b,h.root.img.off),"data-testid":"flowbite-avatar-img",children:(0,s.jsx)("svg",{className:h.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),c&&(0,s.jsx)("span",{"data-testid":"flowbite-avatar-status",className:ei(h.root.status.base,h.root.status[c],h.root.statusPosition[f])})]}),r&&(0,s.jsx)("div",{children:r})]})};to.displayName="Avatar",Object.assign(to,{Group:tr,Counter:tn});let ta=({children:e,color:t="info",href:r,icon:n,size:o="xs",className:a,theme:i={},...l})=>{let u=eu(e4().badge,i),d=()=>(0,s.jsxs)("span",{className:ei(u.root.base,u.root.color[t],u.root.size[o],u.icon[n?"on":"off"],a),"data-testid":"flowbite-badge",...l,children:[n&&(0,s.jsx)(n,{"aria-hidden":!0,className:u.icon.size[o],"data-testid":"flowbite-badge-icon"}),e&&(0,s.jsx)("span",{children:e})]});return r?(0,s.jsx)("a",{className:u.root.href,href:r,children:(0,s.jsx)(d,{})}):(0,s.jsx)(d,{})};ta.displayName="Badge";let ti=({className:e,color:t="info",light:r,size:n="md",theme:o={},...a})=>{let i=eu(e4().spinner,o);return(0,s.jsx)("span",{role:"status",...a,children:(0,s.jsxs)("svg",{fill:"none",viewBox:"0 0 100 101",className:ei(i.base,i.color[t],i.light[r?"on":"off"].base,i.light[r?"on":"off"].color[t],i.size[n],e),children:[(0,s.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
1081071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})};ti.displayName="Spinner";let ts=(0,l.forwardRef)(({children:e,as:t,href:r,type:n="button",...o},a)=>{let i=t||(r?"a":"button");return(0,l.createElement)(i,{ref:a,href:r,type:n,...o},e)});ts.displayName="ButtonBaseComponent";let tl=(e,t,r)=>l.Children.map(e,(n,o)=>(0,l.isValidElement)(n)?n.props.children?(0,l.cloneElement)(n,{...n.props,children:tl(n.props.children,t,r),positionInGroup:tu(o,l.Children.count(e))}):(0,l.cloneElement)(n,{outline:t,pill:r,positionInGroup:tu(o,l.Children.count(e))}):n),tu=(e,t)=>0===e?"start":e===t-1?"end":"middle",td=({children:e,className:t,outline:r,pill:n,theme:o={},...a})=>{let i=(0,l.useMemo)(()=>tl(e,r,n),[e,r,n]),u=eu(e4().buttonGroup,o);return(0,s.jsx)("div",{className:ei(u.base,t),role:"group",...a,children:i})};td.displayName="Button.Group";let tc=(0,l.forwardRef)(({children:e,className:t,color:r="info",disabled:n,fullSized:o,isProcessing:a=!1,processingLabel:i="Loading...",processingSpinner:l,gradientDuoTone:u,gradientMonochrome:d,label:c,outline:f=!1,pill:g=!1,positionInGroup:p="none",size:h="md",theme:b={},...m},y)=>{let{buttonGroup:v,button:x}=e4(),w=eu(x,b),k=m;return(0,s.jsx)(ts,{ref:y,disabled:n,className:ei(w.base,n&&w.disabled,!u&&!d&&w.c
108olor[r],u&&!d&&w.gradientDuoTone[u],!u&&d&&w.gradient[d],f&&(w.outline.color[r]??w.outline.color.default),w.pill[g?"on":"off"],o&&w.fullSized,v.position[p],t),...k,children:(0,s.jsx)("span",{className:ei(w.inner.base,w.outline[f?"on":"off"],w.outline.pill[f&&g?"on":"off"],w.size[h],f&&!w.outline.color[r]&&w.inner.outline,a&&w.isProcessing,a&&w.inner.isProcessingPadding[h],w.inner.position[p]),children:(0,s.jsxs)(s.Fragment,{children:[a&&(0,s.jsx)("span",{className:ei(w.spinnerSlot,w.spinnerLeftPosition[h]),children:l||(0,s.jsx)(ti,{size:h})}),void 0!==e?e:(0,s.jsx)("span",{"data-testid":"flowbite-button-label",className:ei(w.label),children:a?i:c})]})})})});tc.displayName="Button";let tf=Object.assign(tc,{Group:td}),tg=e=>{let{children:t,...r}=e,n=e=>{let t=e.target.closest('[role="banner"]');null==t||t.remove()};return(0,s.jsx)(tf,{onClick:n,...r,children:t})};tg.displayName="Banner.CollapseButton";let tp=({children:e,...t})=>(0,s.jsx)("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...t,children:e});tp.displayName="Banner",Object.assign(tp,{CollapseButton:tg});let th=(0,l.forwardRef)(({children:e,className:t,href:r,icon:n,theme:o={},...a},i)=>{let l=void 0!==r,u=l?"a":"span",c=eu(e4().breadcrumb.item,o);return(0,s.jsxs)("li",{className:ei(c.base,t),...a,children:[(0,s.jsx)(d.yoF,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),(0,s.jsxs)(u,{ref:i,className:c.href[l?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&(0,s.jsx)(n,{"aria-hidden":!0,className:c.icon}),e]})]})});th.displayName="Breadcrumb.Item";let tb=({children:e,className:t,theme:r={},...n})=>{let o=eu(e4().breadcrumb.root,r);return(0,s.jsx)("nav",{"aria-label":"Breadcrumb",className:ei(o.base,t),...n,children:(0,s.jsx)("ol",{className:o.list,children:e})})};tb.displayName="Breadcrumb",Object.assign(tb,{Item:th}),o=["renderImage","imgSrc","imgAlt","children","className","horizontal","href","theme"],e=>{let t={};for(let r in e)o.includes(r)||(t[r]=e[r]);return t};var tm=r(56800),ty=r(94692),tv=Object.defineProperty,tx=(e,t,r)=>t in e?tv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tw=(e,t,r)=>(tx(e,"symbol"!=typeof t?t+"":t,r),r);let tk=300,tE=0;class tN extends l.PureComponent{constructor(e){super(e),tw(this,"container"),tw(this,"scrolling"),tw(this,"started"),tw(this,"pressed"),tw(this,"isMobile",!1),tw(this,"internal"),tw(this,"scrollLeft"),tw(this,"scrollTop"),tw(this,"clientX"),tw(this,"clientY"),tw(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),tw(this,"onScroll",()=>{let e=this.container.current;(e.scrollLeft!==this.scrollLeft||e.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),tw(this,"onTouchStart",e=>{let{nativeMobileScroll:t}=this.props;if(this.isDraggable(e.target)){if(this.internal=!0,t&&this.scrolling)this.pressed=!0;else{let r=e.touches[0];this.processClick(r.clientX,r.clientY),!t&&this.props.stopPropagation&&e.stopPropagation()}}}),tw(this,"onTouchEnd",()=>{let{nativeMobileScroll:e}=this.props;this.pressed&&(!this.started||this.scrolling&&e?this.pressed=!1:this.processEnd(),this.forceUpdate())}),tw(this,"onTouchMove",e=>{let{nativeMobileScroll:t}=this.props;if(this.pressed&&(!t||!this.isMobile)){let t=e.touches[0];t&&this.processMove(t.clientX,t.clientY),e.preventDefault(),this.props.stopPropagation&&e.stopPropagation()}}),tw(this,"onMouseDown",e=>{this.isDraggable(e.target)&&this.isScrollable()&&(this.internal=!0,this.props?.buttons?.indexOf(e.button)!==-1&&(this.processClick(e.clientX,e.clientY),e.preventDefault(),this.props.stopPropagation&&e.stopPropagation()))}),tw(this,"onMouseMove",e=>{this.pressed&&(this.processMove(e.clientX,e.clientY),e.preventDefault(),this.props.stopPropagation&&e.stopPropagation())}),tw(this,"onMouseUp",e=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(e)),e.preventDefault(),this.props.stopPropagation&&e.stopPropagation())}),this.container=l.createRef(),this.onEndScroll=ty(this.onEndScroll,tk),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){let{nativeMobileScroll:e}=this.props,t=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),t.addEventListener("touchstart",this.onTouchStart,{passive:!1}),t.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())}componentWillUnmount(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)}getElement(){return this.container.current}isMobileDevice(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}isDraggable(e){let t=this.props.ignoreElements;if(!t)return!0;{let r=e.closest(t);return null===r||r.contains(this.getElement())}}isScrollable(){let e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,t){let r=this.container.current;this.scrollLeft=r?.scrollLeft,this.scrollTop=r?.scrollTop,this.clientX=e,this.clientY=t,this.pressed=!0}processStart(e=!0){let{onStartScroll:t}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),t&&t({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){let{onScroll:e}=this.props;e&&e({external:!this.internal})}else this.processStart(!1)}processMove(e,t){let{horizontal:r,vertical:n,activationDistance:o,onScroll:a}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),n&&(i.scrollTop-=t-this.clientY),a&&a({external:!this.internal}),this.clientX=e,this.clientY=t,this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop):(r&&Math.abs(e-this.clientX)>o||n&&Math.abs(t-this.clientY)>o)&&(this.clientX=e,this.clientY=t,this.processStart())}processEnd(){let{onEndScroll:e}=this.props;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(e){[this.container,this.props.innerRef].forEach(t=>{t&&("function"==typeof t?t(e):t.current=e)})}render(){let{children:e,draggingClassName:t,className:r,style:n,hideScrollbars:o}=this.props;return(0,s.jsx)("div",{className:tm(r,this.pressed&&t,{"!scroll-auto [&>*]:pointer-events-none [&>*]:cursor-grab":this.pressed,"overflow-auto":this.isMobile,"overflow-hidden !overflow-x-hidden [overflow:-moz-scrollbars-none] [scrollbar-width:none]":o,"[&::-webkit-scrollbar]:[-webkit-appearance:none
108!important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":o}),style:n,ref:this.getRef,onScroll:this.onScroll,children:e})}}tw(tN,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[tE]});let tj=()=>"undefined"!=typeof window;(0,l.forwardRef)(({className:e,color:t="default",theme:r={},...n},o)=>{let a=eu(e4().checkbox,r);return(0,s.jsx)("input",{ref:o,type:"checkbox",className:ei(a.root.base,a.root.color[t],e),...n})}).displayName="Checkbox";let tS=e=>{let{key:t,onChange:r}=e;function n(e){let{key:n,newValue:o}=e;n===t&&r(o)}(0,l.useEffect)(()=>(window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)),[])},tR="light",tC="flowbite-theme-mode",tT="flowbite-theme-mode-sync",tI=()=>{let[e,t]=(0,l.useState)(tP(e2()));(0,l.useEffect)(()=>{tL(e),tM(e)},[]),tS({key:tC,onChange(e){if(e)return r(e)}}),tO(e=>t(e));let r=e=>{t(e),tL(e),tM(e),document.dispatchEvent(new CustomEvent(tT,{detail:e}))},n=()=>{let t=e;"auto"===t&&(t=tD(t)),r(t="dark"===t?"light":"dark")},o=()=>{var e;r(null!==(e=e2())&&void 0!==e?e:tR)};return{mode:e,computedMode:tD(e),setMode:r,toggleMode:n,clearMode:o}},tO=e=>{(0,l.useEffect)(()=>{function t(t){e(t.detail)}return document.addEventListener(tT,t),()=>document.removeEventListener(tT,t)},[])},tL=e=>localStorage.setItem(tC,e),tM=e=>{"dark"===tD(e)?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},tP=e=>{var t;if(!tj())return tR;let r=localStorage.getItem(tC);return null!==(t=null!=r?r:e)&&void 0!==t?t:tR}
108,tD=e=>"auto"===e?tA():e,tA=()=>{var e,t;return(null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-color-scheme: dark)").matches)?"dark":"light"},tF=({children:e,className:t,color:r="default",theme:n={},value:o,...a})=>{let i=eu(e4().helperText,n);return(0,s.jsx)("p",{className:ei(i.root.base,i.root.colors[r],t),...a,children:o??e??""})};tF.displayName="HelperText";let tz=(0,l.forwardRef)(({addon:e,className:t,color:r="gray",helperText:n,icon:o,rightIcon:a,shadow:i,sizing:l="md",theme:u={},type:d="text",...c},f)=>{let g=eu(e4().textInput,u);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:ei(g.base,t),children:[e&&(0,s.jsx)("span",{className:g.addon,children:e}),(0,s.jsxs)("div",{className:g.field.base,children:[o&&(0,s.jsx)("div",{className:g.field.icon.base,children:(0,s.jsx)(o,{className:g.field.icon.svg})}),a&&(0,s.jsx)("div",{"data-testid":"right-icon",className:g.field.rightIcon.base,children:(0,s.jsx)(a,{className:g.field.rightIcon.svg})}),(0,s.jsx)("input",{className:ei(g.field.input.base,g.field.input.colors[r],g.field.input.sizes[l],g.field.input.withIcon[o?"on":"off"],g.field.input.withRightIcon[a?"on":"off"],g.field.input.withAddon[e?"on":"off"],g.field.input.withShadow[i?"on":"off"]),type:d,...c,ref:f})]})]}),n&&(0,s.jsx)(tF,{color:r,children:n})]})});tz.displayName="TextInput";let tB=(0,l.createContext)(void 0);function t_(){let e=(0,l.useContext)(tB);if(!e)throw Error("useDatePickerContext should be used within the DatePickerContext provider!");return e}var tU=((a=tU||{})[a.Days=0]="Days",a[a.Months=1]="Months",a[a.Years=2]="Years",a[a.Decades=3]="Decades",a),tV=((i=tV||{})[i.Sunday=0]="Sunday",i[i.Monday=1]="Monday",i[i.Tuesday=2]="Tuesday",i[i.Wednesday=3]="Wednesday",i[i.Thursday=4]="Thursday",i[i.Friday=5]="Friday",i[i.Saturday=6]="Saturday",i);let tW=(e,t,r)=>{let n=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();if(t&&r){let e=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n>=e&&n<=o}return t?n>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime():!r||n<=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime()},tH=(e,t)=>(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()),tG=(e,t,r)=>(!tW(e,t,r)&&(t&&e<t?e=t:r&&e>r&&(e=r)),e),tY=(e,t)=>{let r=new Date(e.getFullYear(),e.getMonth(),1),n=r.getDay()-t;return n<0&&(n+=7),tK(r,-n)},tQ=(e,t)=>{let r=[],n=new Date(0);n.setDate(n.getDate()-n.getDay()+t);let o=new Intl.DateTimeFormat(e,{weekday:"short"});for(let e=0;e<7;e++)r.push(o.format(tK(n,e)));return r},tK=(e,t)=>{let r=new Date(e);return r.setDate(r.getDate()+t),r},tq=(e,t)=>{let r=new Date(e);return r.setMonth(r.getMonth()+t),r},t$=(e,t)=>{let r=new Date(e);return r.setFullYear(r.getFullYear()+t),r},tX=(e,t,r)=>{let n={day:"numeric",month:"long",year:"numeric"};return r&&(n=r),new Intl.DateTimeFormat(e,n).format(t)},tZ=(e,t)=>Math.floor(e.getFullYear()/t)*t,tJ=(e,t)=>{let r=e.getFullYear(),n=t+9;return r>=t&&r<=n},t0=({theme:e={}})=>{let{theme:t,weekStart:r,minDate:n,maxDate:o,viewDate:a,selectedDate:i,changeSelectedDate:l,language:u}=t_(),d=eu(t.views.days,e),c=tQ(u,r),f=tY(a,r);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:d.header.base,children:c.map((e,t)=>(0,s.jsx)("span",{className:d.header.title,children:e},t))}),(0,s.jsx)("div",{className:d.items.base,children:[...Array(42)].map((e,t)=>{let r=tK(f,t),a=tX(u,r,{day:"numeric"}),c=tH(i,r),g=!tW(r,n,o);return(0,s.jsx)("button",{disabled:g,type:"button",className:ei(d.items.item.base,c&&d.items.item.selected,g&&d.items.item.disabled),onClick:()=>{g||l(r,!0)},children:a},t)})})]})},t1=({theme:e={}})=>{let{theme:t,selectedDate:r,viewDate:n,setViewDate:o,setView:a}=t_(),i=eu(t.views.decades,e);return(0,s.jsx)("div",{className:i.items.base,children:[...Array(12)].map((e,t)=>{let l=tZ(n,100)-10+10*t,u=new Date(l,0,1),d=t$(u,9),c=tJ(n,l),f=!tW(n,u,d);return(0,s.jsx)("button",{disabled:f,type:"button",className:ei(i.items.item.base,c&&i.items.item.selected,f&&i.items.item.disabled),onClick:()=>
108{f||(o(t$(n,l-r.getFullYear())),a(tU.Years))},children:l},t)})})},t2=({theme:e={}})=>{let{theme:t,minDate:r,maxDate:n,selectedDate:o,viewDate:a,language:i,setViewDate:l,setView:u}=t_(),d=eu(t.views.months,e);return(0,s.jsx)("div",{className:d.items.base,children:[...Array(12)].map((e,t)=>{let c=new Date(a.getTime());c.setMonth(t);let f=tX(i,c,{month:"short"}),g=tH(o,c),p=!tW(c,r,n);return(0,s.jsx)("button",{disabled:p,type:"button",className:ei(d.items.item.base,g&&d.items.item.selected,p&&d.items.item.disabled),onClick:()=>{p||(l(c),u(tU.Days))},children:f},t)})})},t5=e=>{let{theme:t={}}=e,{theme:r,selectedDate:n,minDate:o,maxDate:a,viewDate:i,setViewDate:l,setView:u}=t_(),d=eu(r.views.years,t);return(0,s.jsx)("div",{className:d.items.base,children:[...Array(12)].map((e,t)=>{let r=tZ(i,10)-1+1*t,c=new Date(i.getTime());c.setFullYear(r);let f=tH(n,c),g=!tW(c,o,a);return(0,s.jsx)("button",{disabled:g,type:"button",className:ei(d.items.item.base,f&&d.items.item.selected,g&&d.items.item.disabled),onClick:()=>{g||(l(c),u(tU.Months))},children:r},t)})})},t4=(e,t)=>{let{title:r,open:n,inline:o=!1,autoHide:a=!0,showClearButton:i=!0,labelClearButton:u="Clear",showTodayButton:c=!0,labelTodayButton:f="Today",defaultDate:g=new Date,minDate:p,maxDate:h,language:b="en",weekStart:m=tV.Sunday,className:y,theme:v={},onSelectedDateChanged:x,...w}=e,k=eu(e4().datepicker,v);g=tG(g,p,h);let[E,N]=(0,l.useState)(n),[j,S]=(0,l.useState)(tU.Days),[R,C]=(0,l.useState)(g),[T,I]=(0,l.useState)(g),O=(0,l.useRef)(null),L=(0,l.useRef)(null),M=(e,t)=>{C(e),x&&x(e),a&&j===tU.Days&&!0==t&&!o&&N(!1)},P=()=>{M(g,!0),g&&I(g)};(0,l.useImperativeHandle)(t,()=>({focus(){var e;null===(e=O.current)||void 0===e||e.focus()},clear(){P()}}));let D=e=>{switch(e){case tU.Decades:return(0,s.jsx)(t1,{theme:k.views.decades});case tU.Years:return(0,s.jsx)(t5,{theme:k.views.years});case tU.Months:return(0,s.jsx)(t2,{theme:k.views.months});case tU.Days:default:return(0,s.jsx)(t0,{theme:k.views.days})}},A=()=>{switch(j){case tU.Days:return tU.Months;case tU.Months:return tU.Years;case tU.Years:return tU.Decades}return j},F=()=>{switch(j){case tU.Decades:return"".concat(tZ(T,100)," - ").concat(tZ(T,100)+90);case tU.Years:return"".concat(tZ(T,10)," - ").concat(tZ(T,10)+9);case tU.Months:return tX(b,T,{year:"numeric"});case tU.Days:default:return tX(b,T,{month:"long",year:"numeric"})}},z=(e,t,r)=>{switch(e){case tU.Days:return new Date(tq(t,r));case tU.Months:return new Date(t$(t,r));case tU.Years:return new Date(t$(t,10*r));case tU.Decades:return new Date(t$(t,100*r));default:return new Date(t$(t,10*r))}};return(0,l.useEffect)(()=>{let e=e=>{var t,r;let n=null==L?void 0:null===(t=L.current)||void 0===t?void 0:t.contains(e.target),o=null==O?void 0:null===(r=O.current)||void 0===r?void 0:r.contains(e.target);n||o||N(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[O,L,N]),(0,s.jsx)(tB.Provider,{value:{theme:k,language:b,minDate:p,maxDate:h,weekStart:m,isOpen:E,setIsOpen:N,view:j,setView:S,viewDate:T,setViewDate:I,selectedDate:R,setSelectedDate:C,changeSelectedDate:M},children:(0,s.jsxs)("div",{className:ei(k.root.base,y),children:[!o&&(0,s.jsx)(tz,{theme:k.root.input,icon:d.IAP,ref:O,onFocus:()=>{tH(T,R)||I(R),N(!0)},value:R&&tX(b,R),readOnly:!0,...w}),(E||o)&&(0,s.jsx)("div",{ref:L,className:ei(k.popup.root.base,o&&k.popup.root.inline),children:(0,s.jsxs)("div",{className:k.popup.root.inner,children:[(0,s.jsxs)("div",{className:k.popup.header.base,children:[r&&(0,s.jsx)("div",{className:k.popup.header.title,children:r}),(0,s.jsxs)("div",{className:k.popup.header.selectors.base,children:[(0,s.jsx)("button",{type:"button",className:ei(k.popup.header.selectors.button.base,k.popup.header.selectors.button.prev),onClick:()=>I(z(j,T,-1)),children:(0,s.jsx)(d.jTe,{})}),(0,s.jsx)("button",{type:"button",className:ei(k.popup.header.selectors.button.base,k.popup.header.selectors.button.view),onClick:()=>S(A()),children:F()}),(0,s.jsx)("button",{type:"button",className:ei(k.popup.header.selectors.button.base,k.popup.header.selectors.button.next),onClick:()=>I(z(j,T,1)),children:(0,s.jsx)(d.WY3,{})})]})]}),(0,s.jsx)("div",{className:k.popup.view.base,children:D(j)}
108),(i||c)&&(0,s.jsxs)("div",{className:k.popup.footer.base,children:[c&&(0,s.jsx)("button",{type:"button",className:ei(k.popup.footer.button.base,k.popup.footer.button.today),onClick:()=>{let e=new Date;M(e,!0),I(e)},children:f}),i&&(0,s.jsx)("button",{type:"button",className:ei(k.popup.footer.button.base,k.popup.footer.button.clear),onClick:()=>{M(g,!0),g&&I(g)},children:u})]})]})})]})})};(0,l.forwardRef)(t4).displayName="Datepicker";let t6=(0,l.createContext)(void 0);function t3(){let e=(0,l.useContext)(t6);if(!e)throw Error("useDrawerContext should be used within the DrawerContext provider!");return e}var t7=r(51161);let t8=e=>{let{children:t,className:r,closeIcon:n=t7.FU5,theme:o={},title:a,titleIcon:i=t7.bH4,...u}=e,d=(0,l.useId)(),{id:c,isOpen:f,onClose:g,theme:p}=t3(),h=eu(p.header,o);return(0,s.jsxs)("div",{className:r,...u,children:[(0,s.jsxs)("h5",{className:h.inner.titleText,id:c,children:[(0,s.jsx)(i,{"aria-hidden":!0,className:h.inner.titleIcon}),a]}),(0,s.jsxs)("button",{onClick:g,"data-testid":"close-drawer",className:h.inner.closeButton,children:[(0,s.jsx)(n,{"aria-hidden":!0,className:h.inner.closeIcon}),(0,s.jsx)("span",{className:"sr-only",children:"Close menu"})]}),(0,s.jsx)("span",{className:h.collapsed[f?"on":"off"],id:"flowbite-drawer-header-".concat(d),children:t})]})};t8.displayName="Drawer.Header";let t9=e=>{let{children:t,className:r,theme:n={},...o}=e,{theme:a}=t3(),i=eu(a.items,n);return(0,s.jsx)("div",{"data-testid":"flowbite-drawer-items",className:ei(i.base,r),...o,children:t})};t9.displayName="Drawer.Items";let re=e=>{let{backdrop:t=!0,children:r,className:n,edge:o=!1,position:a="left",onClose:i,open:u=!1,theme:d={},...c}=e,f=(0,l.useId)(),g=eu(e4().drawer,d);return(0,l.useEffect)(()=>{let e=e=>{"Escape"===e.key&&u&&i&&i()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i,u]),(0,s.jsxs)(t6.Provider,{value:{theme:g,onClose:i,isOpen:u,id:f},children:[(0,s.jsx)("div",{"aria-modal":!0,"aria-describedby":"drawer-dialog-".concat(f),role:"dialog",tabIndex:-1,"data-testid":"flowbite-drawer",className:ei(g.root.base,g.root.position[a][u?"on":"off"],o&&!u&&g.root.edge,n),...c,children:r}),u&&t&&(0,s.jsx)("div",{onClick:()=>i(),className:g.root.backdrop})]})};function rt(e){return ro(e)?(e.nodeName||"").toLowerCase():"#document"}function rr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function rn(e){var t;return null==(t=(ro(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ro(e){return e instanceof Node||e instanceof rr(e).Node}function ra(e){return e instanceof Element||e instanceof rr(e).Element}function ri(e){return e instanceof HTMLElement||e instanceof rr(e).HTMLElement}function rs(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof rr(e).ShadowRoot)}function rl(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=rp(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function ru(e){return["table","td","th"].includes(rt(e))}function rd(e){let t=rf(),r=rp(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 rc(e){let t=rb(e);for(;ri(t)&&!rg(t);){if(rd(t))return t;t=rb(t)}return null}function rf(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function rg(e){return["html","body","#document"].includes(rt(e))}function rp(e){return rr(e).getComputedStyle(e)}function rh(e){return ra(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function rb(e){if("html"===rt(e))return e;let t=e.assignedSlot||e.parentNode||rs(e)&&e.host||rn(e);return rs(t)?t.host:t}function rm(e){let t=rb(e);return rg(t)?e.ownerDocument?e.ownerDocument.body:e.body:ri(t)&&rl(t)?t:rm(t)}function ry(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=rm(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),i=rr(o);
108return a?t.concat(i,i.visualViewport||[],rl(o)?o:[],i.frameElement&&r?ry(i.frameElement):[]):t.concat(o,ry(o,[],r))}function rv(e){let t=e.activeElement;for(;(null==(r=t)||null==(r=r.shadowRoot)?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function rx(e,t){if(!e||!t)return!1;let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&rs(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function rw(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function rk(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}function rE(e){return 0===e.mozInputSource&&!!e.isTrusted||(rS()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function rN(e){return!rC()&&(!rS()&&0===e.width&&0===e.height||rS()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function rj(){return/apple/i.test(navigator.vendor)}function rS(){let e=/android/i;return e.test(rw())||e.test(rk())}function rR(){return rw().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function rC(){return rk().includes("jsdom/")}function rT(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function rI(e){return"nativeEvent"in e}function rO(e){return e.matches("html,body")}function rL(e){return(null==e?void 0:e.ownerDocument)||document}function rM(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);let r=e;return null!=r.target&&t.contains(r.target)}function rP(e){return"composedPath"in e?e.composedPath()[0]:e.target}re.displayName="Drawer",Object.assign(re,{Header:t8,Items:t9});let rD="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function rA(e){return ri(e)&&e.matches(rD)}function rF(e){e.preventDefault(),e.stopPropagation()}function rz(e){return!!e&&"combobox"===e.getAttribute("role")&&rA(e)}let rB=["start","end"],r_=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-"+rB[0],t+"-"+rB[1]),[]),rU=Math.min,rV=Math.max,rW=Math.round,rH=Math.floor,rG=e=>({x:e,y:e}),rY={left:"right",right:"left",bottom:"top",top:"bottom"},rQ={start:"end",end:"start"};function rK(e,t,r){return rV(e,rU(t,r))}function rq(e,t){return"function"==typeof e?e(t):e}function r$(e){return e.split("-")[0]}function rX(e){return e.split("-")[1]}function rZ(e){return"x"===e?"y":"x"}function rJ(e){return"y"===e?"height":"width"}function r0(e){return["top","bottom"].includes(r$(e))?"y":"x"}function r1(e){return rZ(r0(e))}function r2(e,t,r){void 0===r&&(r=!1);let n=rX(e),o=r1(e),a=rJ(o),i="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=r7(i)),[i,r7(i)]}function r5(e){let t=r7(e);return[r4(e),t,r4(t)]}function r4(e){return e.replace(/start|end/g,e=>rQ[e])}function r6(e,t,r){let n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":if(r)return t?o:n;return t?n:o;case"left":case"right":return t?a:i;default:return[]}}function r3(e,t,r,n){let o=rX(e),a=r6(r$(e),"start"===r,n);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(r4)))),a}function r7(e){return e.replace(/left|right|bottom|top/g,e=>rY[e])}function r8(e){return{top:0,right:0,bottom:0,left:0,...e}}function r9(e){return"number"!=typeof e?r8(e):{top:e,right:e,bottom:e,left:e}}function ne(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function nt(e,t,r){let n,{reference:o,floating:a}=e,i=r0(t),s=r1(t),l=rJ(s),u=r$(t),d="y"===i,c=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,g=o[l]/2-a[l]/2;switch(u){case"top":n={x:c,y:o.y-a.height};break;case"bottom":n={x:c,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:f};break;case"left":n={x:o.x-a.width,y:f};break;default:n={x:o.x,y:o.y}}switch(rX(t)){case"start":n[s]-=g*(r&&d?-1:1);break;case"end":n[s]+=g*(r&&d?-1:1)}return n}let nr=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}
vendor: 4,620 bytes, line 108
108=r,s=a.filter(Boolean),l=await (null==i.isRTL?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=nt(u,n,l),f=n,g={},p=0;for(let r=0;r<s.length;r++){let{name:a,fn:h}=s[r],{x:b,y:m,data:y,reset:v}=await h({x:d,y:c,initialPlacement:n,placement:f,strategy:o,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});d=null!=b?b:d,c=null!=m?m:c,g={...g,[a]:{...g[a],...y}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(u=!0===v.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):v.rects),{x:d,y:c}=nt(u,f,l)),r=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:g}};async function nn(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:g=0}=rq(t,e),p=r9(g),h="floating"===c?"reference":"floating",b=s[f?h:c],m=ne(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(b)))||r?b:b.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),y="floating"===c?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),x=await (null==a.isElement?void 0:a.isElement(v))&&await (null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=ne(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(m.top-w.top+p.top)/x.y,bottom:(w.bottom-m.bottom+p.bottom)/x.y,left:(m.left-w.left+p.left)/x.x,right:(w.right-m.right+p.right)/x.x}}let no=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=rq(e,t)||{};if(null==u)return{};let c=r9(d),f={x:r,y:n},g=r1(o),p=rJ(g),h=await i.getDimensions(u),b="y"===g,m=b?"top":"left",y=b?"bottom":"right",v=b?"clientHeight":"clientWidth",x=a.reference[p]+a.reference[g]-f[g]-a.floating[p],w=f[g]-a.reference[g],k=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u)),E=k?k[v]:0;E&&await (null==i.isElement?void 0:i.isElement(k))||(E=s.floating[v]||a.floating[p]);let N=x/2-w/2,j=E/2-h[p]/2-1,S=rU(c[m],j),R=rU(c[y],j),C=S,T=E-h[p]-R,I=E/2-h[p]/2+N,O=rK(C,I,T),L=!l.arrow&&null!=rX(o)&&I!==O&&a.reference[p]/2-(I<C?S:R)-h[p]/2<0,M=L?I<C?I-C:I-T:0;return{[g]:f[g]+M,data:{[g]:O,centerOffset:I-O-M,...L&&{alignmentOffset:M}},reset:L}}});function na(e,t,r){return(e?[...r.filter(t=>rX(t)===e),...r.filter(t=>rX(t)!==e)]:r.filter(e=>r$(e)===e)).filter(r=>!e||rX(r)===e||!!t&&r4(r)!==r)}let ni=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;let{rects:a,middlewareData:i,placement:s,platform:l,elements:u}=t,{crossAxis:d=!1,alignment:c,allowedPlacements:f=r_,autoAlignment:g=!0,...p}=rq(e,t),h=void 0!==c||f===r_?na(c||null,g,f):f,b=await nn(t,p),m=(null==(r=i.autoPlacement)?void 0:r.index)||0,y=h[m];if(null==y)return{};let v=r2(y,a,await (null==l.isRTL?void 0:l.isRTL(u.floating)));if(s!==y)return{reset:{placement:h[0]}};let x=[b[r$(y)],b[v[0]],b[v[1]]],w=[...(null==(n=i.autoPlacement)?void 0:n.overflows)||[],{placement:y,overflows:x}],k=h[m+1];if(k)return{data:{index:m+1,overflows:w},reset:{placement:k}};let E=w.map(e=>{let t=rX(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),N=(null==(o=E.filter(e=>e[2].slice(0,rX(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||E[0][0];return N!==s?{data:{index:m+1,overflows:w},reset:{placement:N}}:{}}}},ns=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,o,a,i;let{placement:s,middlewareData:l,rects:u,initialPlacement:d,platform:c,elements:f}=t,{mainAxis:g=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...v}=rq(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let x=r$(s),w=r$(d)===d,k=await (null==c.isRTL?void 0:c.isRTL(f.floating)),E=h||(w||!y?[r7(d)]:r5(d));h||"none"===m||E.push(...r3(d,y,m,k));let N=[d,...E],j=await nn(t,v),S=[],R=(null==(n=l.flip)?void 0:n.overflows)||[];if(g&&S.push(j[x]),p){let e=r2(s,u,k);S.push(j[e[0]],j[e[1]])}if(R=[...R,{placement:s,overflows:S}],!S.every(e=>e<=0)){let e=((null==(o=l.flip)?void 0:o.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:R},reset:{placement:t}};let r=null==(a=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>
108e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!r)switch(b){case"bestFit":{let e=null==(i=R.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:i[0];e&&(r=e);break}case"initialPlacement":r=d}if(s!==r)return{reset:{placement:r}}}return{}}}};async function nl(e,t){let{placement:r,platform:n,elements:o}=e,a=await (null==n.isRTL?void 0:n.isRTL(o.floating)),i=r$(r),s=rX(r),l="y"===r0(r),u=["left","top"].includes(i)?-1:1,d=a&&l?-1:1,c=rq(t,e),{mainAxis:f,crossAxis:g,alignmentAxis:p}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&"number"==typeof p&&(g="end"===s?-1*p:p),l?{x:g*d,y:f*u}:{x:f*u,y:g*d}}let nu=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:a,placement:i,middlewareData:s}=t,l=await nl(t,e);return i===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},nd=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=rq(e,t),u={x:r,y:n},d=await nn(t,l),c=r0(r$(o)),f=rZ(c),g=u[f],p=u[c];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=g+d[e],n=g-d[t];g=rK(r,g,n)}if(i){let e="y"===c?"top":"left",t="y"===c?"bottom":"right",r=p+d[e],n=p-d[t];p=rK(r,p,n)}let h=s.fn({...t,[f]:g,[c]:p});return{...h,data:{x:h.x-r,y:h.y-n}}}}};function nc(e){let t=rp(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=ri(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=rW(r)!==a||rW(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function nf(e){return ra(e)?e:e.contextElement}function ng(e){let t=nf(e);if(!ri(t))return rG(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=nc(t),i=(a?rW(r.width):r.width)/n,s=(a?rW(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}let np=rG(0);function nh(e){let t=rr(e);return rf()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:np}function nb(e,t,r){return void 0===t&&(t=!1),!!r&&(!t||r===rr(e))&&t}function nm(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=nf(e),i=rG(1);t&&(n?ra(n)&&(i=ng(n)):i=ng(e));let s=nb(a,r,n)?nh(a):rG(0),l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,d=o.width/i.x,c=o.height/i.y;if(a){let e=rr(a),t=n&&ra(n)?rr(n):n,r=e,o=r.frameElement;for(;o&&n&&t!==r;){let e=ng(o),t=o.getBoundingClientRect(),n=rp(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,c*=e.y,l+=a,u+=i,o=(r=rr(o)).frameElement}}return ne({width:d,height:c,x:l,y:u})}let ny=[":popover-open",":modal"];function nv(e){return ny.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function nx(e){return nm(rn(e)).left+rh(e).scrollLeft}function nw(e){let t=rn(e),r=rh(e),n=e.ownerDocument.body,o=rV(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=rV(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),i=-r.scrollLeft+nx(e),s=-r.scrollTop;return"rtl"===rp(n).direction&&(i+=rV(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}function nk(e,t){let r=rr(e),n=rn(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;let e=rf();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function nE(e,t){let r=nm(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=ri(e)?ng(e):rG(1),i=e.clientWidth*a.x;return{width:i,height:e.clientHeight*a.y,x:o*a.x,y:n*a.y}}function nN(e,t,r){let n;if("viewport"===t)n=nk(e,r);else if("document"===t)n=nw(rn(e));else if(ra(t))n=nE(t,r);else{let r=nh(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return ne(n)}function nj(e,t){let r=rb(e);return!(r===t||!ra(r)||rg(r))&&("fixed"===rp(r).position||nj(r,t))}function nS(e,t){let r=t.get(e);if(r)return r;let n=ry(e,[],!1).filter(e=>ra(e)&&"body"!==rt(e)),o=null,a="fixed"===rp(e).position,i=a?rb(e):e;for(;ra(i)&&!rg(i);){let t=rp(i),r=rd(i);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||rl(i)&&!r&&nj(e,i))?n=n.filter(e=>e!==i):o=t,i=rb(i)}return t.set(e,n),n}function nR(e,t,r){let n=ri(t),o=rn(t),a="fixed"===r,i=nm(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=rG(0);if(n||!n&&!a){if(("body"!==rt(t)||rl(o))&&(s=rh(t)),n){let e=nm(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=nx(o))}return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function nC(e){return"static"===rp(e).position}function nT(e,t){return ri(e)&&"fixed"!==rp(e).position?t?t(e):e.offsetParent:null}function nI(e,t){let r=rr(e);if(nv(e))return r;if(!ri(e)){let t=rb(e);for(;t&&!rg(t);){if(ra(t)&&!nC(t))return t;t=rb(t)}return r}let n=nT(e,t);for(;n&&ru(n)&&nC(n);)n=nT(n,t);return n&&rg(n)&&nC(n)&&!rd(n)?r:n||rc(e)||r}let nO=async function(e){let t=this.getOffsetParent||nI,r=this.getDimensions,n=await r(e.floating);return{reference:nR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},nL={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a="fixed"===o,i=rn(n),s=!!t&&nv(t.floating);if(n===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},u=rG(1),d=rG(0),c=ri(n);if((c||!c&&!a)&&(("body"!==rt(n)||rl(i))&&(l=rh(n)),ri(n))){let e=nm(n);u=ng(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x,y:r.y*u.y-l.scrollTop*u.y+d.y}},getDocumentElement:rn,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,a=[..."clippingAncestors"===r?nv(t)?[]:nS(t,this._c):[].concat(r),n],i=a[0],s=a.reduce((e,r)=>{let n=nN(t,r,o);return e.top=rV(n.top,e.top),e.right=rU(n.right,e.right),e.bottom=rU(n.bottom,e.bottom),e.left=rV(n.left,e.left),e},nN(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:nI,getElementRects:nO,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=nc(e);return{width:t,height:r}},getScale:ng,isElement:ra,isRTL:function(e){return"rtl"===rp(e).direction}};function nM(e,t){let r,n=null,o=rn(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let{left:u,top:d,width:c,height:f}=e.getBoundingClientRect();if(s||t(),!c||!f)return;let g=rH(d),p={rootMargin:-g+"px "+-rH(o.clientWidth-(u+c))+"px "+-rH(o.clientHeight-(d+f))+"px "+-rH(u)+"px",threshold:rV(0,rU(1,l))||1},h=!0;function b(e){let t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):r=setTimeout(()=>{i(!1,1e-7)},1e3)}h=!1}try{n=new IntersectionObserver(b,{...p,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(b,p)}n.observe(e)}return i(!0),a}function nP(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,d=nf(e),c=a||i?[...d?ry(d):[],...ry(t)]:[];
108c.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});let f=d&&l?nM(d,r):null,g=-1,p=null;s&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),d&&!u&&p.observe(d),p.observe(t));let h=u?nm(e):null;function b(){let t=nm(e);h&&(t.x!==h.x||t.y!==h.y||t.width!==h.width||t.height!==h.height)&&r(),h=t,o=requestAnimationFrame(b)}return u&&b(),r(),()=>{var e;c.forEach(e=>{a&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(o)}}let nD=nu,nA=ni,nF=nd,nz=ns,nB=no,n_=(e,t,r)=>{let n=new Map,o={platform:nL,...r},a={...o.platform,_c:n};return nr(e,t,{...o,platform:a})};var nU=r(54887);let nV=e=>{function t(e){return({}).hasOwnProperty.call(e,"current")}return{name:"arrow",options:e,fn(r){let{element:n,padding:o}="function"==typeof e?e(r):e;return n&&t(n)?null!=n.current?nB({element:n.current,padding:o}).fn(r):{}:n?nB({element:n,padding:o}).fn(r):{}}}};var nW="undefined"!=typeof document?l.useLayoutEffect:l.useEffect;function nH(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(!nH(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)&&!nH(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function nG(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nY(e,t){let r=nG(e);return Math.round(t*r)/r}function nQ(e){let t=l.useRef(e);return nW(()=>{t.current=e}),t}function nK(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:d}=e,[c,f]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,p]=l.useState(n);nH(g,n)||p(n);let[h,b]=l.useState(null),[m,y]=l.useState(null),v=l.useCallback(e=>{e!==E.current&&(E.current=e,b(e))},[]),x=l.useCallback(e=>{e!==N.current&&(N.current=e,y(e))},[]),w=a||h,k=i||m,E=l.useRef(null),N=l.useRef(null),j=l.useRef(c),S=null!=u,R=nQ(u),C=nQ(o),T=l.useCallback(()=>{if(!E.current||!N.current)return;let e={placement:t,strategy:r,middleware:g};C.current&&(e.platform=C.current),n_(E.current,N.current,e).then(e=>{let t={...e,isPositioned:!0};I.current&&!nH(j.current,t)&&(j.current=t,nU.flushSync(()=>{f(t)}))})},[g,t,r,C]);nW(()=>{!1===d&&j.current.isPositioned&&(j.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[d]);let I=l.useRef(!1);nW(()=>(I.current=!0,()=>{I.current=!1}),[]),nW(()=>{if(w&&(E.current=w),k&&(N.current=k),w&&k){if(R.current)return R.current(w,k,T);T()}},[w,k,T,R,S]);let O=l.useMemo(()=>({reference:E,floating:N,setReference:v,setFloating:x}),[v,x]),L=l.useMemo(()=>({reference:w,floating:k}),[w,k]),M=l.useMemo(()=>{let e={position:r,left:0,top:0};if(!L.floating)return e;let t=nY(L.floating,c.x),n=nY(L.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...nG(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,L.floating,c.x,c.y]);return l.useMemo(()=>({...c,update:T,refs:O,elements:L,floatingStyles:M}),[c,T,O,L,M])}var nq='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',n$="undefined"==typeof Element,nX=n$?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,nZ=!n$&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},nJ=function e(t,r){void 0===r&&(r=!0);var n,o=null==t?void 0:null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||r&&t&&e(t.parentNode)},n0=function(e){var t,r=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r},n1=function(e,t,r){if(nJ(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(nq));return t&&nX.call(e,nq)&&n.unshift(e),n=n.filter(r)},n2=function e(t,r,n){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!nJ(i,!1)){if("SLOT"===i.tagName){var s=i.assignedElements(),l=e(s.length?s:i.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{nX.call(i,nq)&&n.filter(i)&&(r||!t.includes(i))&&o.push(i);var u=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),d=!nJ(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(u&&d){var c=e(!0===u?i.children:u.children,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:i,candidates:c})}else a.unshift.apply(a,i.children)}}}return o},n5=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},n4=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||n0(e))&&!n5(e)?0:e.tabIndex},n6=function(e,t){var r=n4(e);return r<0&&t&&!n5(e)?0:r},n3=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},n7=function(e){return"INPUT"===e.tagName},n8=function(e){return n7(e)&&"hidden"===e.type},n9=function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})},oe=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},ot=function(e){if(!e.name)return!0;var t,r=e.form||nZ(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=oe(t,e.form);return!o||o===e},or=function(e){return n7(e)&&"radio"===e.type},on=function(e){return or(e)&&!ot(e)},oo=function(e){var t,r,n,o,a,i,s,l=e&&nZ(e),u=null===(t=l)||void 0===t?void 0:t.host,d=!1;if(l&&l!==e)for(d=!!(null!==(r=u)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(u)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!d&&u;)d=!!(null!==(i=u=null===(a=l=nZ(u))||void 0===a?void 0:a.host)&&void 0!==i&&null!==(s=i.ownerDocument)&&void 0!==s&&s.contains(u));return d},oa=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},oi=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=nX.call(e,"details>summary:first-of-type")?e.parentElement:e;if(nX.call(o,"details:not([open]) *"))return!0;
108if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return oa(e)}else{if("function"==typeof n){for(var a=e;e;){var i=e.parentElement,s=nZ(e);if(i&&!i.shadowRoot&&!0===n(i))return oa(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=a}if(oo(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},os=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!nX.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},ol=function(e,t){return!(t.disabled||nJ(t)||n8(t)||oi(t,e)||n9(t)||os(t))},ou=function(e,t){return!(on(t)||0>n4(t))&&!!ol(e,t)},od=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},oc=function e(t){var r=[],n=[];return t.forEach(function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,s=n6(i,a),l=a?e(t.candidates):i;0===s?a?r.push.apply(r,l):r.push(i):n.push({documentOrder:o,tabIndex:s,item:t,isScope:a,content:l})}),n.sort(n3).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},of=function(e,t){var r;return oc(r=(t=t||{}).getShadowRoot?n2([e],t.includeContainer,{filter:ou.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:od}):n1(e,t.includeContainer,ou.bind(null,t)))},og=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==nX.call(e,nq)&&ou(t,e)};function op(e){return l.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}let oh=u["useInsertionEffect".toString()]||(e=>e());function ob(e){let t=l.useRef(()=>{});return oh(()=>{t.current=e}),l.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}let om="ArrowUp",oy="ArrowDown",ov="ArrowLeft",ox="ArrowRight";function ow(e,t,r){return Math.floor(e/t)!==r}function ok(e,t){return t<0||t>=e.current.length}function oE(e,t){return oj(e,{disabledIndices:t})}function oN(e,t){return oj(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function oj(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t,i=e.current,s=o?e=>o.includes(e):e=>{let t=i[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")},l=r;do l+=n?-a:a;while(l>=0&&l<=i.length-1&&s(l));return l}function oS(e,t){let{event:r,orientation:n,loop:o,cols:a,disabledIndices:i,minIndex:s,maxIndex:l,prevIndex:u,stopEvent:d=!1}=t,c=u;if(r.key===om){if(d&&rF(r),-1===u)c=l;else if(c=oj(e,{startingIndex:c,amount:a,decrement:!0,disabledIndices:i}),o&&(u-a<s||c<0)){let e=u%a,t=l%a,r=l-(t-e);c=t===e?l:t>e?r:r-a}ok(e,c)&&(c=u)}if(r.key===oy&&(d&&rF(r),-1===u?c=s:(c=oj(e,{startingIndex:u,amount:a,disabledIndices:i}),o&&u+a>l&&(c=oj(e,{startingIndex:u%a-a,amount:a,disabledIndices:i}))),ok(e,c)&&(c=u)),"both"===n){let t=rH(u/a);r.key===ox&&(d&&rF(r),u%a!=a-1?(c=oj(e,{startingIndex:u,disabledIndices:i}),o&&ow(c,a,t)&&(c=oj(e,{startingIndex:u-u%a-1,disabledIndices:i}))):o&&(c=oj(e,{startingIndex:u-u%a-1,disabledIndices:i})),ow(c,a,t)&&(c=u)),r.key===ov&&(d&&rF(r),u%a!=0?(c=oj(e,{startingIndex:u,disabledIndices:i,decrement:!0}),o&&ow(c,a,t)&&(c=oj(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:i}))):o&&(c=oj(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:i})),ow(c,a,t)&&(c=u));let n=rH(l/a)===t;ok(e,c)&&(c=o&&n?r.key===ov?l:oj(e,{startingIndex:u-u%a-1,disabledIndices:i}):u)}return c}function oR(e,t,r){let n=[],o=0;return e.forEach((e,a)=>{let{width:i,height:s}=e,l=!1;for(r&&(o=0);!l;){let e=[];for(let r=0;r<i;r++)for(let n=0;n<s;n++)e.push(o+r+n*t);o%t+i<=t&&e.every(e=>null==n[e])?(e.forEach(e=>{n[e]=a}),l=!0):o++}}),[...n]}function oC(e,t,r,n,o){if(-1===e)return -1;let a=r.indexOf(e);switch(o){case"tl":return a;case"tr":return a+t[e].width-1;case"bl":return a+(t[e].height-1)*n;case"br":return r.lastIndexOf(e)}}function oT(e,t){return t.flatMap((t,r)=>e.includes(t)?[r]:[])}let oI=0;function oO(e,t){void 0===t&&(t={});
108let{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(oI);let a=()=>null==e?void 0:e.focus({preventScroll:r});o?a():oI=requestAnimationFrame(a)}var oL="undefined"!=typeof document?l.useLayoutEffect:l.useEffect;function oM(e,t){let r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function oP(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e.entries())if(n!==t.get(r))return!1;return!0}let oD=l.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function oA(e){let{children:t,elementsRef:r,labelsRef:n}=e,[o,a]=l.useState(()=>new Map),i=l.useCallback(e=>{a(t=>new Map(t).set(e,null))},[]),s=l.useCallback(e=>{a(t=>{let r=new Map(t);return r.delete(e),r})},[]);return oL(()=>{let e=new Map(o);Array.from(e.keys()).sort(oM).forEach((t,r)=>{e.set(t,r)}),oP(o,e)||a(e)},[o]),l.createElement(oD.Provider,{value:l.useMemo(()=>({register:i,unregister:s,map:o,elementsRef:r,labelsRef:n}),[i,s,o,r,n])},t)}function oF(e){let{label:t}=void 0===e?{}:e,[r,n]=l.useState(null),o=l.useRef(null),{register:a,unregister:i,map:s,elementsRef:u,labelsRef:d}=l.useContext(oD),c=l.useCallback(e=>{if(o.current=e,null!==r&&(u.current[r]=e,d)){var n;let o=void 0!==t;d.current[r]=o?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[r,u,d,t]);return oL(()=>{let e=o.current;if(e)return a(e),()=>{i(e)}},[a,i]),oL(()=>{let e=o.current?s.get(o.current):null;null!=e&&n(e)},[s]),l.useMemo(()=>({ref:c,index:null==r?-1:r}),[r,c])}function oz(){return(oz=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)}let oB=!1,o_=0,oU=()=>"floating-ui-"+o_++;function oV(){let[e,t]=l.useState(()=>oB?oU():void 0);return oL(()=>{null==e&&t(oU())},[]),l.useEffect(()=>{oB||(oB=!0)},[]),e}let oW=u["useId".toString()]||oV;function oH(){let e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}}let oG=l.createContext(null),oY=l.createContext(null),oQ=()=>{var e;return(null==(e=l.useContext(oG))?void 0:e.id)||null},oK=()=>l.useContext(oY);function oq(e){return"data-floating-ui-"+e}function o$(e){let t=(0,l.useRef)(e);return oL(()=>{t.current=e}),t}let oX=oq("safe-polygon");function oZ(e,t,r){return r&&!rT(r)?0:"number"==typeof e?e:null==e?void 0:e[t]}function oJ(e,t){void 0===t&&(t={});let{open:r,onOpenChange:n,dataRef:o,events:a,elements:{domReference:i,floating:s},refs:u}=e,{enabled:d=!0,delay:c=0,handleClose:f=null,mouseOnly:g=!1,restMs:p=0,move:h=!0}=t,b=oK(),m=oQ(),y=o$(f),v=o$(c),x=l.useRef(),w=l.useRef(),k=l.useRef(),E=l.useRef(),N=l.useRef(!0),j=l.useRef(!1),S=l.useRef(()=>{}),R=l.useCallback(()=>{var e;let t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[o]);l.useEffect(()=>{if(d)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(E.current),N.current=!0)}},[d,a]),l.useEffect(()=>{if(!d||!y.current||!r)return;function e(e){R()&&n(!1,e,"hover")}let t=rL(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s,r,n,d,y,R]);let C=l.useCallback(function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r="hover");let o=oZ(v.current,"close",x.current);o&&!k.current?(clearTimeout(w.current),w.current=setTimeout(()=>n(!1,e,r),o)):t&&(clearTimeout(w.current),n(!1,e,r))},[v,n]),T=l.useCallback(()=>{S.current(),k.current=void 0},[]),I=l.useCallback(()=>{if(j.current){let e=rL(u.floating.current).body;e.style.pointerEvents="",e.removeAttribute(oX),j.current=!1}},[u]);return l.useEffect(()=>{if(d&&ra(i)){let e=i;return r&&e.addEventListener("mouseleave",u),null==s||s.addEventListener("mouseleave",u),h&&e.addEventListener("mousemove",a,{once:!0}),e.addEventListener("mouseenter",a),e.addEventListener("mouseleave",l),()=>{r&&e.removeEventListener("mouseleave",u),null==s||s.removeEventListener("mouseleave",u),h&&e.removeEventListener("mousemove",a),e.removeEventListener("mouseenter",a),e.removeEventListener("mouseleave",l)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function a(e){if(clearTimeout(w.current),N.current=!1,g&&!rT(x.current)||p>0&&0===oZ(v.current,"open"))return;let t=oZ(v.current,"open",x.current);t?w.current=setTimeout(()=>{n(!0,e,"hover")},t):n(!0,e,"hover")}function l(n){if(t())return;S.current();let o=rL(s);if(clearTimeout(E.current),y.current){r||clearTimeout(w.current),k.current=y.current({...e,tree:b,x:n.clientX,y:n.clientY,onClose(){I(),T(),C(n,!0,"safe-polygon")}});let t=k.current;o.addEventListener("mousemove",t),S.current=()=>{o.removeEventListener("mousemove",t)};return}"touch"===x.current&&rx(s,n.relatedTarget)||C(n)}function u(r){t()||null==y.current||y.current({...e,tree:b,x:r.clientX,y:r.clientY,onClose(){I(),T(),C(r)}})(r)}},[i,s,d,e,g,p,h,C,T,I,n,r,b,v,y,o]),oL(()=>{var e,t;if(d&&r&&null!=(e=y.current)&&e.__options.blockPointerEvents&&R()){let e=rL(s).body;if(e.setAttribute(oX,""),e.style.pointerEvents="none",j.current=!0,ra(i)&&s){let e=i,r=null==b||null==(t=b.nodesRef.current.find(e=>e.id===m))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{e.style.pointerEvents="",s.style.pointerEvents=""}}}},[d,r,m,s,i,b,y,R]),oL(()=>{r||(x.current=void 0,T(),I())},[r,T,I]),l.useEffect(()=>()=>{T(),clearTimeout(w.current),clearTimeout(E.current),I()},[d,i,T,I]),l.useMemo(()=>
108{if(!d)return{};function e(e){x.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){r||0===p||(clearTimeout(E.current),E.current=setTimeout(()=>{N.current||n(!0,e.nativeEvent,"hover")},p))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){C(e.nativeEvent,!1)}}}},[d,p,r,n,C])}function o0(e,t){var r;let n=[],o=null==(r=e.find(e=>e.id===t))?void 0:r.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(n=n.concat(t))}return n}function o1(e,t){let r=e.filter(e=>{var r;return e.parentId===t&&(null==(r=e.context)?void 0:r.open)}),n=r;for(;n.length;)n=e.filter(e=>{var t;return null==(t=n)?void 0:t.some(t=>{var r;return e.parentId===t.id&&(null==(r=e.context)?void 0:r.open)})}),r=r.concat(n);return r}function o2(e,t){let r;let n=-1;function o(t,a){a>n&&(r=t,n=a),o1(e,t).forEach(e=>{o(e.id,a+1)})}return o(t,0),e.find(e=>e.id===r)}let o5=new WeakMap,o4=new WeakSet,o6={},o3=0,o7=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,o8=e=>e&&(e.host||o8(e.parentNode)),o9=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=o8(t);return e.contains(r)?r:null}).filter(e=>null!=e);function ae(e,t,r,n){let o="data-floating-ui-inert",a=n?"inert":r?"aria-hidden":null,i=o9(t,e),s=new Set,l=new Set(i),u=[];o6[o]||(o6[o]=new WeakMap);let d=o6[o];function c(e){!(!e||s.has(e))&&(s.add(e),e.parentNode&&c(e.parentNode))}function f(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,e=>{if(s.has(e))f(e);else{let t=a?e.getAttribute(a):null,r=null!==t&&"false"!==t,n=(o5.get(e)||0)+1,i=(d.get(e)||0)+1;o5.set(e,n),d.set(e,i),u.push(e),1===n&&r&&o4.add(e),1===i&&e.setAttribute(o,""),!r&&a&&e.setAttribute(a,"true")}})}return i.forEach(c),f(t),s.clear(),o3++,()=>{u.forEach(e=>{let t=(o5.get(e)||0)-1,r=(d.get(e)||0)-1;o5.set(e,t),d.set(e,r),t||(!o4.has(e)&&a&&e.removeAttribute(a),o4.delete(e)),r||e.removeAttribute(o)}),--o3||(o5=new WeakMap,o5=new WeakMap,o4=new WeakSet,o6={})}}function at(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);let n=rL(e[0]).body;return ae(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}let ar=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function an(e,t){let r=of(e,ar());"prev"===t&&r.reverse();let n=r.indexOf(rv(rL(e)));return r.slice(n+1)[0]}function ao(){return an(document.body,"next")}function aa(){return an(document.body,"prev")}function ai(e,t){let r=t||e.currentTarget,n=e.relatedTarget;return!n||!rx(r,n)}function as(e){of(e,ar()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function al(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}let au={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function ad(e){"Tab"===e.key&&(e.target,clearTimeout(n))}let ac=l.forwardRef(function(e,t){let[r,n]=l.useState();oL(()=>(rj()&&n("button"),document.addEventListener("keydown",ad),()=>{document.removeEventListener("keydown",ad)}),[]);let o={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[oq("focus-guard")]:"",style:au};return l.createElement("span",oz({},e,o))}),af=l.createContext(null),ag=oq("portal");function ap(e){let{id:t,root:r}=void 0===e?{}:e,[n,o]=l.useState(null),a=oW(),i=ab(),s=l.useRef(null);return oL(()=>()=>{null==n||n.remove(),queueMicrotask(()=>{s.current=null})},[n]),oL(()=>{if(s.current)return;let e=t?document.getElementById(t):null;if(!e)return;let r=document.createElement("div");r.id=a,r.setAttribute(ag,""),e.appendChild(r),s.current=r,o(r)},[t,a]),oL(()=>{if(s.current)return;let e=r||(null==i?void 0:i.portalNode);e&&!ra(e)&&(e=e.current),e=e||document.body;let n=null;t&&((n=document.createElement("div")).id=t,e.appendChild(n));let l=document.createElement("div");l.id=a,l.setAttribute(ag,""),(e=n||e).appendChild(l),s.current=l,o(l)},[t,r,a,i]),n}function ah(e){let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e,a=ap({id:r,root:n}),[i,s]=l.useState(null),u=l.useRef(null),d=l.useRef(null),c=l.useRef(null),f=l.useRef(null),g=!!i&&!i.modal&&i.open&&o&&!!(n||a);return l.useEffect(()=>{if(a&&o&&(null==i||!i.modal))return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){a&&ai(e)&&("focusin"===e.type?al:as)(a)}},[a,o,null==i?void 0:i.modal]),l.createElement(af.Provider,{value:l.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:c,afterInsideRef:f,portalNode:a,setFocusManagerState:s}),[o,a])},g&&a&&l.createElement(ac,{"data-type":"outside",ref:u,onFocus:e=>{if(ai(e,a)){var t;
108null==(t=c.current)||t.focus()}else{let e=aa()||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),g&&a&&l.createElement("span",{"aria-owns":a.id,style:au}),a&&(0,nU.createPortal)(t,a),g&&a&&l.createElement(ac,{"data-type":"outside",ref:d,onFocus:e=>{if(ai(e,a)){var t;null==(t=f.current)||t.focus()}else{let t=ao()||(null==i?void 0:i.refs.domReference.current);null==t||t.focus(),(null==i?void 0:i.closeOnFocusOut)&&(null==i||i.onOpenChange(!1,e.nativeEvent))}}}))}let ab=()=>l.useContext(af),am=20,ay=[];function av(e){ay=ay.filter(e=>e.isConnected);let t=e;if(t&&"body"!==rt(t)){if(!og(t,ar())){let e=of(t,ar())[0];if(!e)return;t=e}ay.push(t),ay.length>am&&(ay=ay.slice(-am))}}function ax(){return ay.slice().reverse().find(e=>e.isConnected)}let aw=l.forwardRef(function(e,t){return l.createElement("button",oz({},e,{type:"button",ref:t,tabIndex:-1,style:au}))});function ak(e){let{context:t,children:r,disabled:n=!1,order:o=["content"],guards:a=!0,initialFocus:i=0,returnFocus:s=!0,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:c=!0}=e,{open:f,refs:g,nodeId:p,onOpenChange:h,events:b,dataRef:m,elements:{domReference:y,floating:v}}=t,x="number"==typeof i&&i<0,w=rz(y)&&x,k=!o7()||a,E=o$(o),N=o$(i),j=o$(s),S=oK(),R=ab(),C=l.useRef(null),T=l.useRef(null),I=l.useRef(!1),O=l.useRef(!1),L=null!=R,M=l.useCallback(function(e){return void 0===e&&(e=v),e?of(e,ar()):[]},[v]),P=l.useCallback(e=>{let t=M(e);return E.current.map(e=>y&&"reference"===e?y:v&&"floating"===e?v:t).filter(Boolean).flat()},[y,v,E,M]);function D(e){return!n&&d&&u?l.createElement(aw,{ref:"start"===e?C:T,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}l.useEffect(()=>{if(n||!u)return;function e(e){if("Tab"===e.key){rx(v,rv(rL(v)))&&0===M().length&&!w&&rF(e);let t=P(),r=rP(e);"reference"===E.current[0]&&r===y&&(rF(e),e.shiftKey?oO(t[t.length-1]):oO(t[1])),"floating"===E.current[1]&&r===v&&e.shiftKey&&(rF(e),oO(t[0]))}}let t=rL(v);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[n,y,v,u,E,w,M,P]),l.useEffect(()=>{if(!n&&c&&v&&ri(y))return y.addEventListener("focusout",t),y.addEventListener("pointerdown",e),u||v.addEventListener("focusout",t),()=>{y.removeEventListener("focusout",t),y.removeEventListener("pointerdown",e),u||v.removeEventListener("focusout",t)};function e(){O.current=!0,setTimeout(()=>{O.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let r=!(rx(y,t)||rx(v,t)||rx(t,v)||rx(null==R?void 0:R.portalNode,t)||null!=t&&t.hasAttribute(oq("focus-guard"))||S&&(o1(S.nodesRef.current,p).find(e=>{var r,n;return rx(null==(r=e.context)?void 0:r.elements.floating,t)||rx(null==(n=e.context)?void 0:n.elements.domReference,t)})||o0(S.nodesRef.current,p).find(e=>{var r,n;return(null==(r=e.context)?void 0:r.elements.floating)===t||(null==(n=e.context)?void 0:n.elements.domReference)===t})));t&&r&&!O.current&&t!==ax()&&(I.current=!0,h(!1,e))})}},[n,y,v,u,p,S,R,h,c]),l.useEffect(()=>{var e;if(n)return;let t=Array.from((null==R||null==(e=R.portalNode)?void 0:e.querySelectorAll("["+oq("portal")+"]"))||[]);if(v){let e=[v,...t,C.current,T.current,E.current.includes("reference")||w?y:null].filter(e=>null!=e),r=u||w?at(e,k,!k):at(e);return()=>{r()}}},[n,y,v,u,E,R,w,k]),oL(()=>{if(n||!v)return;let e=rv(rL(v));queueMicrotask(()=>{let t=P(v),r=N.current,n=("number"==typeof r?t[r]:r.current)||v,o=rx(v,e);x||o||!f||oO(n,{preventScroll:n===v})})},[n,f,v,x,P,N]),oL(()=>{if(n||!v)return;let e=!1,t=rL(v),r=rv(t),o=m.current;function a(t){let{reason:r,event:n,nested:o}=t;"escape-key"===r&&g.domReference.current&&av(g.domReference.current),"hover"===r&&"mouseleave"===n.type&&(I.current=!0),"outside-press"===r&&(o?(I.current=!1,e=!0):I.current=!(rE(n)||rN(n)))}return av(r),b.on("openchange",a),()=>{b.off("openchange",a);let r=rv(t),n=rx(v,r)||S&&o1(S.nodesRef.current,p).some(e=>{var t;return rx(null==(t=e.context)?void 0:t.elements.floating,r)});(n||o.openEvent&&["click","mousedown"].includes(o.openEvent.type))&&g.domReference.current&&av(g.domReference.current);let i=ax();j.current&&!I.current&&ri(i)&&(i===r||r===t.body||n)&&oO(i,{cancelPrevious:!1,preventScroll:e})}},[n,v,j,m,g,b,S,p]),oL(()=>
108{if(!n&&R)return R.setFocusManagerState({modal:u,closeOnFocusOut:c,open:f,onOpenChange:h,refs:g}),()=>{R.setFocusManagerState(null)}},[n,R,u,f,h,g,c]),oL(()=>{if(n||!v||"function"!=typeof MutationObserver||x)return;let e=()=>{let e=v.getAttribute("tabindex");E.current.includes("floating")||rv(rL(v))!==g.domReference.current&&0===M().length?"0"!==e&&v.setAttribute("tabindex","0"):"-1"!==e&&v.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(v,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[n,v,g,E,M,x]);let A=!n&&k&&(L||u);return l.createElement(l.Fragment,null,A&&l.createElement(ac,{"data-type":"inside",ref:null==R?void 0:R.beforeInsideRef,onFocus:e=>{if(u){let e=P();oO("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=R&&R.preserveTabOrder&&R.portalNode){if(I.current=!1,ai(e,R.portalNode)){let e=ao()||y;null==e||e.focus()}else{var t;null==(t=R.beforeOutsideRef.current)||t.focus()}}}}),!w&&D("start"),r,D("end"),A&&l.createElement(ac,{"data-type":"inside",ref:null==R?void 0:R.afterInsideRef,onFocus:e=>{if(u)oO(P()[0]);else if(null!=R&&R.preserveTabOrder&&R.portalNode){if(c&&(I.current=!0),ai(e,R.portalNode)){let e=aa()||y;null==e||e.focus()}else{var t;null==(t=R.afterOutsideRef.current)||t.focus()}}}}))}let aE=new Set,aN=l.forwardRef(function(e,t){let{lockScroll:r=!1,...n}=e,o=oW();return oL(()=>{if(!r)return;aE.add(o);let e=/iP(hone|ad|od)|iOS/.test(rw()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",a=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.pageXOffset,s=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",a&&(t[n]=a+"px"),e){var l,u;let e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor((null==(u=window.visualViewport)?void 0:u.offsetTop)||0))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{aE.delete(o),0===aE.size&&(Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,s)))}},[o,r]),l.createElement("div",oz({ref:t},n,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...n.style}}))});function aj(e){return ri(e.target)&&"BUTTON"===e.target.tagName}function aS(e){return rA(e)}function aR(e,t){void 0===t&&(t={});let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:a}}=e,{enabled:i=!0,event:s="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:c=!0}=t,f=l.useRef(),g=l.useRef(!1);return l.useMemo(()=>i?{reference:{onPointerDown(e){f.current=e.pointerType},onMouseDown(e){0!==e.button||rT(f.current,!0)&&d||"click"===s||(r&&u&&(!o.current.openEvent||"mousedown"===o.current.openEvent.type)?n(!1,e.nativeEvent,"click"):(e.preventDefault(),n(!0,e.nativeEvent,"click")))},onClick(e){if("mousedown"===s&&f.current){f.current=void 0;return}rT(f.current,!0)&&d||(r&&u&&(!o.current.openEvent||"click"===o.current.openEvent.type)?n(!1,e.nativeEvent,"click"):n(!0,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!c||aj(e)||(" "!==e.key||aS(a)||(e.preventDefault(),g.current=!0),"Enter"===e.key&&(r&&u?n(!1,e.nativeEvent,"click"):n(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!c||aj(e)||aS(a))&&" "===e.key&&g.current&&(g.current=!1,r&&u?n(!1,e.nativeEvent,"click"):n(!0,e.nativeEvent,"click"))}}}:{},[i,o,s,d,c,a,u,r,n])}let aC={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},aT={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},aI=e=>{var t,r;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(r=null==e?void 0:e.outsidePress)||r}};function aO(e,t){void 0===t&&(t={});let{open:r,onOpenChange:n,nodeId:o,elements:{reference:a,domReference:i,floating:s},dataRef:u}=e,{enabled:d=!0,escapeKey:c=!0,outsidePress:f=!0,outsidePressEvent:g="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:b=!1,bubbles:m,capture:y}=t,v=oK(),x=ob("function"==typeof f?f:()=>!1),w="function"==typeof f?x:f,k=l.useRef(!1),E=l.useRef(!1),{escapeKey:N,outsidePress:j}=aI(m),{escapeKey:S,outsidePress:R}=aI(y),C=ob(e=>{if(!r||!d||!c||"Escape"!==e.key)return;let t=v?o1(v.nodesRef.current,o):[];if(!N&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach(t=>{var r;if(null!=(r=t.context)&&r.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}n(!1,rI(e)?e.nativeEvent:e,"escape-key")}),T=ob(e=>{var t;let r=()=>{var t;C(e),null==(t=rP(e))||t.removeEventListener("keydown",r)};null==(t=rP(e))||t.addEventListener("keydown",r)}),I=ob(e=>{let t=k.current;k.current=!1;let r=E.current;if(E.current=!1,"click"===g&&r||t||"function"==typeof w&&!w(e))return;let a=rP(e),l="["+oq("inert")+"]",u=rL(s).querySelectorAll(l),d=ra(a)?a:null;for(;d&&!rg(d);){let e=rb(d);if(rg(e)||!ra(e))break;d=e}if(u.length&&ra(a)&&!rO(a)&&!rx(a,s)&&Array.from(u).every(e=>!rx(d,e)))return;if(ri(a)&&s){let t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,r=a.clientHeight>0&&a.scrollHeight>a.clientHeight,n=r&&e.offsetX>a.clientWidth;if(r&&"rtl"===rp(a).direction&&(n=e.offsetX<=a.offsetWidth-a.clientWidth),n||t&&e.offsetY>a.clientHeight)return}let c=v&&o1(v.nodesRef.current,o).some(t=>{var r;return rM(e,null==(r=t.context)?void 0:r.elements.floating)});if(rM(e,s)||rM(e,i)||c)return;let f=v?o1(v.nodesRef.current,o):[];if(f.length>0){let e=!0;if(f.forEach(t=>{var r;if(null!=(r=t.context)&&r.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}n(!1,e,"outside-press")}),O=ob(e=>{var t;let r=()=>{var t;I(e),null==(t=rP(e))||t.removeEventListener(g,r)};null==(t=rP(e))||t.addEventListener(g,r)});return l.useEffect(()=>{if(!r||!d)return;function e(e){n(!1,e,"ancestor-scroll")}u.current.__escapeKeyBubbles=N,u.current.__outsidePressBubbles=j;let t=rL(s);c&&t.addEventListener("keydown",S?T:C,S),w&&t.addEventListener(g,R?O:I,R);let o=[];
108return b&&(ra(i)&&(o=ry(i)),ra(s)&&(o=o.concat(ry(s))),!ra(a)&&a&&a.contextElement&&(o=o.concat(ry(a.contextElement)))),(o=o.filter(e=>{var r;return e!==(null==(r=t.defaultView)?void 0:r.visualViewport)})).forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),()=>{c&&t.removeEventListener("keydown",S?T:C,S),w&&t.removeEventListener(g,R?O:I,R),o.forEach(t=>{t.removeEventListener("scroll",e)})}},[u,s,i,a,c,w,g,r,n,b,d,N,j,C,S,T,I,R,O]),l.useEffect(()=>{k.current=!1},[w,g]),l.useMemo(()=>d?{reference:{onKeyDown:C,[aC[h]]:e=>{p&&n(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:C,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[aT[g]]:()=>{k.current=!0}}}:{},[d,p,g,h,n,C])}function aL(e){var t;void 0===e&&(e={});let{open:r=!1,onOpenChange:n,nodeId:o}=e,[a,i]=l.useState(null),s=(null==(t=e.elements)?void 0:t.reference)||a,u=nK(e),d=oK(),c=null!=oQ(),f=ob((e,t,r)=>{e&&(p.current.openEvent=t),h.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)}),g=l.useRef(null),p=l.useRef({}),h=l.useState(()=>oH())[0],b=oW(),m=l.useCallback(e=>{let t=ra(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u.refs.setReference(t)},[u.refs]),y=l.useCallback(e=>{(ra(e)||null===e)&&(g.current=e,i(e)),(ra(u.refs.reference.current)||null===u.refs.reference.current||null!==e&&!ra(e))&&u.refs.setReference(e)},[u.refs]),v=l.useMemo(()=>({...u.refs,setReference:y,setPositionReference:m,domReference:g}),[u.refs,y,m]),x=l.useMemo(()=>({...u.elements,domReference:s}),[u.elements,s]),w=l.useMemo(()=>({...u,refs:v,elements:x,dataRef:p,nodeId:o,floatingId:b,events:h,open:r,onOpenChange:f}),[u,o,b,h,r,f,v,x]);return oL(()=>{let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===o);e&&(e.context=w)}),l.useMemo(()=>({...u,context:w,refs:v,elements:x}),[u,v,x,w])}function aM(e,t){void 0===t&&(t={});let{open:r,onOpenChange:n,events:o,refs:a,elements:{domReference:i}}=e,{enabled:s=!0,visibleOnly:u=!0}=t,d=l.useRef(!1),c=l.useRef(),f=l.useRef(!0);return l.useEffect(()=>{if(!s)return;let e=rr(i);function t(){!r&&ri(i)&&i===rv(rL(i))&&(d.current=!0)}function n(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}},[i,r,s]),l.useEffect(()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(d.current=!0)}},[o,s]),l.useEffect(()=>()=>{clearTimeout(c.current)},[]),l.useMemo(()=>s?{reference:{onPointerDown(e){rN(e.nativeEvent)||(f.current=!1)},onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;let t=rP(e.nativeEvent);if(u&&ra(t))try{if(rj()&&rR())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!f.current&&!rA(t))return}n(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;let t=e.relatedTarget,r=ra(t)&&t.hasAttribute(oq("focus-guard"))&&"outside"===t.getAttribute("data-type");c.current=window.setTimeout(()=>{let o=rv(i?i.ownerDocument:document);if(t||o!==i){if(rx(a.floating.current,o)||rx(i,o)||r)return;n(!1,e.nativeEvent,"focus")}})}}}:{},[s,u,i,a,n])}let aP="active",aD="selected";function aA(e,t,r){let n=new Map,o="item"===r,a=e;if(o&&e){let{[aP]:t,[aD]:r,...n}=e;a=n}return{..."floating"===r&&{tabIndex:-1},...a,...t.map(t=>{let n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[r,a]=t;if(!(o&&[aP,aD].includes(r))){if(0===r.indexOf("on")){if(n.has(r)||n.set(r,[]),"function"==typeof a){var i;null==(i=n.get(r))||i.push(a),e[r]=function(){for(var e,t=arguments.length,o=Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=n.get(r))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[r]=a}}),e),{})}}function aF(e){void 0===e&&(e=[]);let t=e,r=l.useCallback(t=>aA(t,e,"reference"),t),n=l.useCallback(t=>aA(t,e,"floating"),t),o=l.useCallback(t=>aA(t,e,"item"),e.map(e=>null==e?void 0:e.item));return l.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let az=!1;function aB(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function a_(e,t){return aB(t,e===om||e===oy,e===ov||e===ox)}function aU(e,t,r){return aB(t,e===oy,r?e===ov:e===ox)||"Enter"===e||" "===e||""===e}function aV(e,t,r){return aB(t,r?e===ov:e===ox,e===oy)}function aW(e,t,r){return aB(t,r?e===ox:e===ov,e===om)}function aH(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:a,floating:i}}=e,{listRef:s,activeIndex:u,onNavigate:d=()=>{},enabled:c=!0,selectedIndex:f=null,allowEscape:g=!1,loop:p=!1,nested:h=!1,rtl:b=!1,virtual:m=!1,focusItemOnOpen:y="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:x=!0,disabledIndices:w,orientation:k="vertical",cols:E=1,scrollItemIntoView:N=!0,virtualItemRef:j,itemSizes:S,dense:R=!1}=t,C=oQ(),T=oK(),I=ob(d),O=l.useRef(y),L=l.useRef(null!=f?f:-1),M=l.useRef(null),P=l.useRef(!0),D=l.useRef(I),A=l.useRef(!!i),F=l.useRef(!1),z=l.useRef(!1),B=o$(w),_=o$(r),U=o$(N),[V,W]=l.useState(),[H,G]=l.useState(),Y=ob(function(e,t,r){void 0===r&&(r=!1);let n=e.current[t.current];n&&(m?(W(n.id),null==T||T.events.emit("virtualfocus",n),j&&(j.current=n)):oO(n,{preventScroll:!0,sync:!!(rR()&&rj())&&(az||F.current)}),requestAnimationFrame(()=>{let e=U.current;e&&n&&(r||!P.current)&&(null==n.scrollIntoView||n.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))}))});oL(()=>{document.createElement("div").focus({get preventScroll(){return az=!0,!1}})},[]),oL(()=>{c&&(r&&i?O.current&&null!=f&&(z.current=!0,L.current=f,I(f)):A.current&&(L.current=-1,D.current(null)))},[c,r,i,f,I]),oL(()=>
108{if(c&&r&&i){if(null==u){if(F.current=!1,null==f&&(A.current&&(L.current=-1,Y(s,L)),!A.current&&O.current&&(null!=M.current||!0===O.current&&null==M.current))){let e=0,t=()=>{null==s.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(L.current=null==M.current||aU(M.current,k,b)||h?oE(s,B.current):oN(s,B.current),M.current=null,I(L.current))};t()}}else ok(s,u)||(L.current=u,Y(s,L,z.current),z.current=!1)}},[c,r,i,u,f,h,s,k,b,I,Y,B]),oL(()=>{var e;if(!c||i||!T||m||!A.current)return;let t=T.nodesRef.current,r=null==(e=t.find(e=>e.id===C))||null==(e=e.context)?void 0:e.elements.floating,n=rv(rL(i)),o=t.some(e=>e.context&&rx(e.context.elements.floating,n));r&&!o&&P.current&&r.focus({preventScroll:!0})},[c,i,T,C,m]),oL(()=>{if(c&&T&&m&&!C)return T.events.on("virtualfocus",e),()=>{T.events.off("virtualfocus",e)};function e(e){G(e.id),j&&(j.current=e)}},[c,T,m,C,j]),oL(()=>{D.current=I,A.current=!!i}),oL(()=>{r||(M.current=null)},[r]);let Q=null!=u,K=l.useMemo(()=>{function e(e){if(!r)return;let t=s.current.indexOf(e);-1!==t&&I(t)}return{onFocus(t){let{currentTarget:r}=t;e(r)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(t){let{currentTarget:r}=t;e(r)},onPointerLeave(e){let{pointerType:t}=e;P.current&&"touch"!==t&&(L.current=-1,Y(s,L),I(null),m||oO(o.floating.current,{preventScroll:!0}))}}}},[r,o,Y,v,s,I,m]);return l.useMemo(()=>{if(!c)return{};let e=B.current;function t(t){if(P.current=!1,F.current=!0,!_.current&&t.currentTarget===o.floating.current)return;if(h&&aW(t.key,k,b)){rF(t),n(!1,t.nativeEvent,"list-navigation"),ri(a)&&!m&&a.focus();return}let i=L.current,l=oE(s,e),u=oN(s,e);if("Home"===t.key&&(rF(t),L.current=l,I(L.current)),"End"===t.key&&(rF(t),L.current=u,I(L.current)),E>1){let r=S||Array.from({length:s.current.length},()=>({width:1,height:1})),n=oR(r,E,R),o=n.findIndex(t=>null!=t&&!(null!=e&&e.includes(t))),a=n.reduce((t,r,n)=>null==r||null!=e&&e.includes(r)?t:n,-1);if(L.current=n[oS({current:n.map(e=>null!=e?s.current[e]:null)},{event:t,orientation:k,loop:p,cols:E,disabledIndices:oT([...e||[],void 0],n),minIndex:o,maxIndex:a,prevIndex:oC(L.current,r,n,E,t.key===oy?"bl":t.key===ox?"tr":"tl"),stopEvent:!0})],I(L.current),"both"===k)return}if(a_(t.key,k)){if(rF(t),r&&!m&&rv(t.currentTarget.ownerDocument)===t.currentTarget){L.current=aU(t.key,k,b)?l:u,I(L.current);return}aU(t.key,k,b)?p?L.current=i>=u?g&&i!==s.current.length?-1:l:oj(s,{startingIndex:i,disabledIndices:e}):L.current=Math.min(u,oj(s,{startingIndex:i,disabledIndices:e})):p?L.current=i<=l?g&&-1!==i?s.current.length:u:oj(s,{startingIndex:i,decrement:!0,disabledIndices:e}):L.current=Math.max(l,oj(s,{startingIndex:i,decrement:!0,disabledIndices:e})),ok(s,L.current)?I(null):I(L.current)}}function i(e){"auto"===y&&rE(e.nativeEvent)&&(O.current=!0)}function l(e){O.current=y,"auto"===y&&rN(e.nativeEvent)&&(O.current=!0)}let u=m&&r&&Q&&{"aria-activedescendant":H||V},d=s.current.find(e=>(null==e?void 0:e.id)===V);return{reference:{...u,onKeyDown(o){P.current=!1;let a=0===o.key.indexOf("Arrow"),i=aV(o.key,k,b),l=aW(o.key,k,b),u=a_(o.key,k),c=(h?i:u)||"Enter"===o.key||""===o.key.trim();if(m&&r){let e=null==T?void 0:T.nodesRef.current.find(e=>null==e.parentId),r=T&&e?o2(T.nodesRef.current,e.id):null;if(a&&r&&j){var g,p,y;let e=new KeyboardEvent("keydown",{key:o.key,bubbles:!0});if(i||l){let t=(null==(g=r.context)?void 0:g.elements.domReference)===o.currentTarget,n=l&&!t?null==(p=r.context)?void 0:p.elements.domReference:i?d:null;n&&(rF(o),n.dispatchEvent(e),G(void 0))}if(u&&r.context&&r.context.open&&r.parentId&&o.currentTarget!==r.context.elements.domReference){rF(o),null==(y=r.context.elements.domReference)||y.dispatchEvent(e);return}}return t(o)}if(r||x||!a){if(c&&(M.current=h&&u?null:o.key),h){i&&(rF(o),r?(L.current=oE(s,e),I(L.current)):n(!0,o.nativeEvent,"list-navigation"));return}u&&(null!=f&&(L.current=f),rF(o),!r&&x?n(!0,o.nativeEvent,"list-navigation"):t(o),r&&I(L.current))}},onFocus(){r&&I(null)},onPointerDown:l,onMouseDown:i,onClick:i},floating:{"aria-orientation":"both"===k?void 0:k,...!rz(a)&&u,onKeyDown:t,onPointerMove(){P.current=!0}},item:K}},[a,o,V,H,B,_,s,c,k,b,m,r,Q,h,f,x,g,E,p,y,I,n,K,T,j,S,R])}let aG=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function aY(e,t){var r;void 0===t&&(t={});let{open:n,floatingId:o}=e,{enabled:a=!0,role:i="dialog"}=t,s=null!=(r=aG.get(i))?r:i,u=oW(),d=null!=oQ();return l.useMemo(()=>
108{if(!a)return{};let e={id:o,...s&&{role:s}};return"tooltip"===s||"label"===i?{reference:{["aria-"+("label"===i?"labelledby":"describedby")]:n?o:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":n?o:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:u},..."menu"===s&&d&&{role:"menuitem"},..."select"===i&&{"aria-autocomplete":"none"},..."combobox"===i&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===s&&{"aria-labelledby":u}},item(e){let{active:t,selected:r}=e,n={role:"option",...t&&{id:o+"-option"}};switch(i){case"select":return{...n,"aria-selected":t&&r};case"combobox":return{...n,...t&&{"aria-selected":!0}}}return{}}}},[a,i,s,n,o,u,d])}function aQ(e,t){var r;let{open:n,dataRef:o}=e,{listRef:a,activeIndex:i,onMatch:s,onTypingChange:u,enabled:d=!0,findMatch:c=null,resetMs:f=750,ignoreKeys:g=[],selectedIndex:p=null}=t,h=l.useRef(),b=l.useRef(""),m=l.useRef(null!=(r=null!=p?p:i)?r:-1),y=l.useRef(null),v=ob(s),x=ob(u),w=o$(c),k=o$(g);return oL(()=>{n&&(clearTimeout(h.current),y.current=null,b.current="")},[n]),oL(()=>{if(n&&""===b.current){var e;m.current=null!=(e=null!=p?p:i)?e:-1}},[n,p,i]),l.useMemo(()=>{if(!d)return{};function e(e){e?o.current.typing||(o.current.typing=e,x(e)):o.current.typing&&(o.current.typing=e,x(e))}function t(e,t,r){let n=w.current?w.current(t,r):t.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(r.toLocaleLowerCase()))===0);return n?e.indexOf(n):-1}function r(r){let o=a.current;if(b.current.length>0&&" "!==b.current[0]&&(-1===t(o,o,b.current)?e(!1):" "===r.key&&rF(r)),null==o||k.current.includes(r.key)||1!==r.key.length||r.ctrlKey||r.metaKey||r.altKey)return;n&&" "!==r.key&&(rF(r),e(!0)),o.every(e=>{var t,r;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(r=e[1])?void 0:r.toLocaleLowerCase())})&&b.current===r.key&&(b.current="",m.current=y.current),b.current+=r.key,clearTimeout(h.current),h.current=setTimeout(()=>{b.current="",m.current=y.current,e(!1)},f);let i=m.current,s=t(o,[...o.slice((i||0)+1),...o.slice(0,(i||0)+1)],b.current);-1!==s?(v(s),y.current=s):" "!==r.key&&(b.current="",e(!1))}return{reference:{onKeyDown:r},floating:{onKeyDown:r,onKeyUp(t){" "===t.key&&e(!1)}}}},[d,n,o,a,f,k,w,v,x])}function aK(e,t){let[r,n]=e,o=!1,a=t.length;for(let e=0,i=a-1;e<a;i=e++){let[a,s]=t[e]||[0,0],[l,u]=t[i]||[0,0];s>=n!=u>=n&&r<=(l-a)*(n-s)/(u-s)+a&&(o=!o)}return o}function aq(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function a$(e){let t;void 0===e&&(e={});let{buffer:r=.5,blockPointerEvents:n=!1,requireIntent:o=!0}=e,a=!1,i=null,s=null,l=performance.now();function u(e,t){let r=performance.now(),n=r-l;if(null===i||null===s||0===n)return i=e,s=t,l=r,null;let o=e-i,a=t-s,u=Math.sqrt(o*o+a*a)/n;return i=e,s=t,l=r,u}let d=e=>{let{x:n,y:i,placement:s,elements:l,onClose:d,nodeId:c,tree:f}=e;return function(e){function g(){clearTimeout(t),d()}if(clearTimeout(t),!l.domReference||!l.floating||null==s||null==n||null==i)return;let{clientX:p,clientY:h}=e,b=[p,h],m=rP(e),y="mouseleave"===e.type,v=rx(l.floating,m),x=rx(l.domReference,m),w=l.domReference.getBoundingClientRect(),k=l.floating.getBoundingClientRect(),E=s.split("-")[0],N=n>k.right-k.width/2,j=i>k.bottom-k.height/2,S=aq(b,w),R=k.width>w.width,C=k.height>w.height,T=(R?w:k).left,I=(R?w:k).right,O=(C?w:k).top,L=(C?w:k).bottom;if(v&&(a=!0,!y))return;if(x&&(a=!1),x&&!y){a=!0;return}if(y&&ra(e.relatedTarget)&&rx(l.floating,e.relatedTarget)||f&&o1(f.nodesRef.current,c).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===E&&i>=w.bottom-1||"bottom"===E&&i<=w.top+1||"left"===E&&n>=w.right-1||"right"===E&&n<=w.left+1)return g();let M=[];switch(E){case"top":M=[[T,w.top+1],[T,k.bottom-1],[I,k.bottom-1],[I,w.top+1]];break;case"bottom":M=[[T,k.top+1],[T,w.bottom-1],[I,w.bottom-1],[I,k.top+1]];break;case"left":M=[[k.right-1,L],[k.right-1,O],[w.left+1,O],[w.left+1,L]];break;case"right":M=[[w.right-1,L],[w.right-1,O],[k.left+1,O],[k.left+1,L]]}function P(e){let[t,n]=e;switch(E){case"top":return[[R?t+r/2:N?t+4*r:t-4*r,n+r+1],[R?t-r/2:N?t+4*r:t-4*r,n+r+1],[k.left,N?k.bottom-r:R?k.bottom-r:k.top],[k.right,N?R?k.bottom-r:k.top:k.bottom-r]];case"bottom":return[[R?t+r/2:N?t+4*r:t-4*r,n-r],[R?t-r/2:N?t+4*r:t-4*r,n-r],[k.left,N?k.top+r:R?k.top+r:k.bottom],[k.right,N?R?k.top+r:k.bottom:k.top+r]];case"left":{let e=[t+r+1,C?n+r/2:j?n+4*r:n-4*r],o=[t+r+1,C?n-r/2:j?n+4*r:n-4*r];return[[j?k.right-r:C?k.right-r:k.left,k.top],[j?C?k.right-r:k.left:k.right-r,k.bottom],e,o]}case"right":return[[t-r,C?n+r/2:j?n+4*r:n-4*r],[t-r,C?n-r/2:j?n+4*r:n-4*r],[j?k.left+r:C?k.left+r:k.right,k.top],[j?C?k.left+r:k.right:k.left+r,k.bottom]]}}
108if(!aK([p,h],M)){if(a&&!S)return g();if(!y&&o){let t=u(e.clientX,e.clientY),r=.1;if(null!==t&&t<r)return g()}aK([p,h],P([n,i]))?!a&&o&&(t=window.setTimeout(g,40)):g()}}};return d.__options={blockPointerEvents:n},d}let aX=({arrowRef:e,placement:t})=>{let r=[];return r.push(nD(8)),r.push("auto"===t?nA():nz()),r.push(nF({padding:8})),e?.current&&r.push(nV({element:e.current})),r},aZ=({placement:e})=>"auto"===e?void 0:e,aJ=({placement:e})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[e.split("-")[0]],a0=({open:e,arrowRef:t,placement:r="top",setOpen:n})=>aL({placement:aZ({placement:r}),open:e,onOpenChange:n,whileElementsMounted:nP,middleware:aX({placement:r,arrowRef:t})}),a1=({context:e,trigger:t,role:r="tooltip",interactions:n=[]})=>aF([aR(e,{enabled:"click"===t}),oJ(e,{enabled:"hover"===t,handleClose:a$()}),aO(e),aY(e,{role:r}),...n]),a2=(0,l.createContext)(void 0);function a5(){let e=(0,l.useContext)(a2);if(!e)throw Error("useDropdownContext should be used within the DropdownContext provider!");return e}let a4=e=>{var t;let{className:r,theme:n={},...o}=e,{theme:a}=a5(),i=null!==(t=n.divider)&&void 0!==t?t:a.floating.divider;return(0,s.jsx)("div",{className:ei(i,r),...o})},a6=e=>{var t;let{children:r,className:n,theme:o={},...a}=e,{theme:i}=a5(),l=null!==(t=o.header)&&void 0!==t?t:i.floating.header;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ei(l,n),...a,children:r}),(0,s.jsx)(a4,{})]})},a3=(0,l.forwardRef)((e,t)=>{let{children:r,className:n,icon:o,onClick:a,theme:i={},...l}=e,{ref:u,index:d}=oF({label:"string"==typeof r?r:void 0}),c=op([t,u]),{theme:f,activeIndex:g,dismissOnClick:p,getItemProps:h,handleSelect:b}=a5(),m=g===d,y=eu(f.floating.item,i),v=l;return(0,s.jsx)("li",{role:"menuitem",className:y.container,children:(0,s.jsxs)(ts,{ref:c,className:ei(y.base,n),...v,...h({onClick:()=>{null==a||a(),p&&b(null)}}),tabIndex:m?0:-1,children:[o&&(0,s.jsx)(o,{className:y.icon}),r]})})});a3.displayName="DropdownItem";let a7={top:d.lVW,right:d.yoF,bottom:d.kzR,left:d.PSe},a8=e=>{let{refs:t,children:r,inline:n,theme:o,disabled:a,setButtonWidth:i,getReferenceProps:u,renderTrigger:d,...c}=e,f=t.reference,g=u();if((0,l.useEffect)(()=>{f.current&&(null==i||i(f.current.clientWidth))},[f,i]),d){let e=d(o);return(0,l.cloneElement)(e,{ref:t.setReference,disabled:a,...g,...e.props})}return n?(0,s.jsx)("button",{type:"button",ref:t.setReference,className:null==o?void 0:o.inlineWrapper,disabled:a,...g,children:r}):(0,s.jsx)(tf,{...c,disabled:a,type:"button",ref:t.setReference,...g,children:r})},a9=e=>{let{children:t,className:r,dismissOnClick:n=!0,theme:o={},renderTrigger:a,...i}=e,[u,c]=(0,l.useState)(!1),[f,g]=(0,l.useState)(null),[p,h]=(0,l.useState)(null),[b,m]=(0,l.useState)(void 0),y=(0,l.useRef)([]),v=(0,l.useRef)([]),x=eu(e4().dropdown,o),w=i,k=i["data-testid"]||"flowbite-dropdown-target",{placement:E=i.inline?"bottom-start":"bottom",trigger:N="click",label:j,inline:S,arrowIcon:R=!0,...C}=w,T=(0,l.useCallback)(e=>{h(e),c(!1)},[]),I=(0,l.useCallback)(e=>{u?g(e):T(e)},[u,T]),{context:O,floatingStyles:L,refs:M}=a0({open:u,setOpen:c,placement:E}),P=aH(O,{listRef:y,activeIndex:f,selectedIndex:p,onNavigate:g}),D=aQ(O,{listRef:v,activeIndex:f,selectedIndex:p,onMatch:I}),{getReferenceProps:A,getFloatingProps:F,getItemProps:z}=a1({context:O,role:"menu",trigger:N,interactions:[P,D]}),B=(0,l.useMemo)(()=>{var e;let[t]=E.split("-");return null!==(e=a7[t])&&void 0!==e?e:d.kzR},[E]);return(0,s.jsxs)(a2.Provider,{value:{theme:x,activeIndex:f,dismissOnClick:n,getItemProps:z,handleSelect:T},children:[(0,s.jsxs)(a8,{...C,refs:M,inline:S,theme:x,"data-testid":k,className:ei(x.floating.target,C.className),setButtonWidth:m,getReferenceProps:A,renderTrigger:a,children:[j,R&&(0,s.jsx)(B,{className:x.arrowIcon})]}),u&&(0,s.jsx)(ak,{context:O,modal:!1,children:(0,s.jsx)("div",{ref:M.setFloating,style:{...L,minWidth:b},"data-testid":"flowbite-dropdown","aria-expanded":u,...F({className:ei(x.floating.base,x.floating.animation,"duration-100",!u&&x.floating.hidden,x.floating.style.auto,r)}),children:(0,s.jsx)(oA,{elementsRef:y,labelsRef:v,children:(0,s.jsx)("ul",{className:x.content,tabIndex:-1,
108children:t})})})})]})};a9.displayName="Dropdown",a6.displayName="Dropdown.Header",a4.displayName="Dropdown.Divider";let ie=Object.assign(a9,{Item:a3,Header:a6,Divider:a4});function it(e){let{theme:t}=e;return e5(t),null}function ir(e){let{mode:t}=e;return t&&e1(t),tI(),null}function io({theme:e}){return e5(e),null}(0,l.forwardRef)(({className:e,color:t="gray",helperText:r,sizing:n="md",theme:o={},...a},i)=>{let l=eu(e4().fileInput,o);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ei(l.root.base,e),children:(0,s.jsx)("div",{className:l.field.base,children:(0,s.jsx)("input",{className:ei(l.field.input.base,l.field.input.colors[t],l.field.input.sizes[n]),...a,type:"file",ref:i})})}),r&&(0,s.jsx)(tF,{color:t,children:r})]})}).displayName="FileInput",(0,l.forwardRef)(({label:e,helperText:t,color:r="default",sizing:n="md",variant:o,disabled:a=!1,theme:i={},className:u,...d},c)=>{let f=(0,l.useId)(),g=eu(e4().floatingLabel,i);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:ei("relative","standard"===o?"z-0":""),children:[(0,s.jsx)("input",{type:"text",id:d.id?d.id:"floatingLabel"+f,"aria-describedby":"outlined_success_help",className:ei(g.input[r][o][n],u),placeholder:" ","data-testid":"floating-label",disabled:a,...d,ref:c}),(0,s.jsx)("label",{htmlFor:d.id?d.id:"floatingLabel"+f,className:ei(g.label[r][o][n],u),children:e})]}),(0,s.jsx)("p",{id:"outlined_helper_text"+f,className:ei(g.helperText[r],u),children:t})]})}).displayName="FloatingLabel";let ia=({alt:e,className:t,children:r,href:n,name:o,src:a,theme:i={},...l})=>{let u=eu(e4().footer.brand,i);return(0,s.jsx)("div",{children:n?(0,s.jsxs)("a",{"data-testid":"flowbite-footer-brand",href:n,className:ei(u.base,t),...l,children:[(0,s.jsx)("img",{alt:e,src:a,className:u.img}),(0,s.jsx)("span",{"data-testid":"flowbite-footer-brand-span",className:u.span,children:o}),r]}):(0,s.jsx)("img",{alt:e,"data-testid":"flowbite-footer-brand",src:a,className:ei(u.img,t),...l})})},ii=({by:e,className:t,href:r,theme:n={},year:o,...a})=>{let i=eu(e4().footer.copyright,n);return(0,s.jsxs)("div",{"data-testid":"flowbite-footer-copyright",className:ei(i.base,t),...a,children:["\xa9 ",o,r?(0,s.jsx)("a",{href:r,className:i.href,children:e}):(0,s.jsx)("span",{"data-testid":"flowbite-footer-copyright-span",className:i.span,children:e})]})},is=({className:e,theme:t={},...r})=>{let n=eu(e4().footer.divider,t);return(0,s.jsx)("hr",{"data-testid":"footer-divider",className:ei(n.base,e),...r})},il=({ariaLabel:e,className:t,href:r,icon:n,theme:o={},...a})=>{let i=eu(e4().footer.icon,o);return(0,s.jsx)("div",{children:r?(0,s.jsx)("a",{"aria-label":e,"data-testid":"flowbite-footer-icon",href:r,className:ei(i.base,t),...a,children:(0,s.jsx)(n,{className:i.size})}):(0,s.jsx)(n,{"data-testid":"flowbite-footer-icon",className:i.size,...a})})},iu=({as:e="a",children:t,className:r,href:n,theme:o={},...a})=>{let i=eu(e4().footer.groupLink.link,o);return(0,s.jsx)("li",{className:ei(i.base,r),children:(0,s.jsx)(e,{href:n,className:i.href,...a,children:t})})},id=({children:e,className:t,col:r=!1,theme:n={},...o})=>{let a=eu(e4().footer.groupLink,n);return(0,s.jsx)("ul",{"data-testid":"footer-groupLink",className:ei(a.base,r&&a.col,t),...o,children:e})},ic=({as:e="h2",className:t,theme:r={},title:n,...o})=>{let a=eu(e4().footer.title,r);return(0,s.jsx)(e,{"data-testid":"flowbite-footer-title",className:ei(a.base,t),...o,children:n})},ig=({bgDark:e=!1,children:t,className:r,container:n=!1,theme:o={},...a})=>{let i=eu(e4().footer,o);return(0,s.jsx)("footer",{"data-testid":"flowbite-footer",className:ei(i.root.base,e&&i.root.bgDark,n&&i.root.container,r),...a,children:t})};ig.displayName="Footer",ii.displayName="Footer.Copyright",iu.displayName="Footer.Link",ia.displayName="Footer.Brand",id.displayName="Footer.LinkGroup",il.displayName="Footer.Icon",ic.displayName="Footer.Title",is.displayName="Footer.Divider",Object.assign(ig,{Copyright:ii,Link:iu,LinkGroup:id,Brand:ia,Icon:il,Title:ic,Divider:is});let ip=({children:e,className:t,icon:r,theme:n={},...o})=>{let a=eu(e4().list.item,n);return(0,s.jsxs)("li",{className:ei(a.withIcon[r?"on":"off"],t),...o,children:[r&&(0,s.jsx)(r,{className:ei(a.icon)}),e]})},ih=({children:e,className:t,unstyled:r,nested:n,ordered:o,horizontal:a,theme:i={},...l})=>
108{let u=eu(e4().list,i),d=o?"ol":"ul";return(0,s.jsx)(d,{className:ei(u.root.base,u.root.ordered[o?"on":"off"],r&&u.root.unstyled,n&&u.root.nested,a&&u.root.horizontal,t),...l,children:e})};ih.displayName="List",ip.displayName="List.Item",Object.assign(ih,{Item:ip});let ib=({active:e,children:t,className:r,href:n,icon:o,onClick:a,theme:i={},disabled:l,...u})=>{let d=eu(e4().listGroup.item,i),c=void 0!==n,f=c?"a":"button";return(0,s.jsx)("li",{className:ei(d.base,r),children:(0,s.jsxs)(f,{href:n,onClick:a,type:c?void 0:"button",disabled:l,className:ei(d.link.active[e?"on":"off"],d.link.disabled[l?"on":"off"],d.link.base,d.link.href[c?"on":"off"]),...u,children:[o&&(0,s.jsx)(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:d.link.icon}),t]})})},im=({children:e,className:t,theme:r={},...n})=>{let o=eu(e4().listGroup,r);return(0,s.jsx)("ul",{className:ei(o.root.base,t),...n,children:e})};im.displayName="ListGroup",ib.displayName="ListGroup.Item",Object.assign(im,{Item:ib});let iy=(0,l.createContext)(void 0);function iv(){let e=(0,l.useContext)(iy);if(!e)throw Error("useNavBarContext should be used within the NavbarContext provider!");return e}let ix=e=>{let{as:t="a",children:r,className:n,theme:o={},...a}=e,{theme:i}=iv(),l=eu(i.brand,o);return(0,s.jsx)(t,{className:ei(l.base,n),...a,children:r})},iw=e=>{let{children:t,className:r,theme:n={},...o}=e,{theme:a,isOpen:i}=iv(),l=eu(a.collapse,n);return(0,s.jsx)("div",{"data-testid":"flowbite-navbar-collapse",className:ei(l.base,l.hidden[i?"off":"on"],r),...o,children:(0,s.jsx)("ul",{className:l.list,children:t})})},ik=e=>{let{active:t,as:r="a",disabled:n,children:o,className:a,theme:i={},onClick:l,...u}=e,{theme:d,setIsOpen:c}=iv(),f=eu(d.link,i),g=e=>{c(!1),null==l||l(e)};return(0,s.jsx)("li",{children:(0,s.jsx)(r,{className:ei(f.base,t&&f.active.on,!t&&!n&&f.active.off,f.disabled[n?"on":"off"],a),onClick:g,...u,children:o})})};var iE=r(22953);let iN=e=>{let{barIcon:t=iE.Fm7,className:r,theme:n={},...o}=e,{theme:a,isOpen:i,setIsOpen:l}=iv(),u=eu(a.toggle,n),d=()=>{l(!i)};return(0,s.jsxs)("button",{"data-testid":"flowbite-navbar-toggle",onClick:d,className:ei(u.base,r),...o,children:[(0,s.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,s.jsx)(t,{"aria-hidden":!0,className:u.icon})]})},ij=e=>{let{border:t,children:r,className:n,fluid:o=!1,menuOpen:a,rounded:i,theme:u={},...d}=e,[c,f]=(0,l.useState)(a),g=eu(e4().navbar,u);return(0,s.jsx)(iy.Provider,{value:{theme:g,isOpen:c,setIsOpen:f},children:(0,s.jsx)("nav",{className:ei(g.root.base,g.root.bordered[t?"on":"off"],g.root.rounded[i?"on":"off"],n),...d,children:(0,s.jsx)("div",{className:ei(g.root.inner.base,g.root.inner.fluid[o?"on":"off"]),children:r})})})};ij.displayName="Navbar",ix.displayName="Navbar.Brand",iw.displayName="Navbar.Collapse",ik.displayName="Navbar.Link",iN.displayName="Navbar.Toggle";let iS=Object.assign(ij,{Brand:ix,Collapse:iw,Link:ik,Toggle:iN}),iR=e=>{let{children:t,className:r,theme:n={},toggle:o,...a}=e,[i,u]=(0,l.useState)(void 0),d=eu(e4().megaMenu.dropdown,n);if(o)return(0,s.jsx)(ie,{inline:!0,label:o,placement:"bottom",theme:d.toggle,className:ei(d.base,r),children:t});let c=(0,l.useId)(),f=(0,l.useRef)(null);return(0,l.useEffect)(()=>{var e;u(null===(e=function(){var e;let t=null===(e=f.current)||void 0===e?void 0:e.closest("nav");return null==t?void 0:t.querySelector('[aria-haspopup="menu"]')}())||void 0===e?void 0:e.id)},[]),(0,s.jsx)("div",{"aria-labelledby":i,id:c,ref:f,role:"menu",className:ei(d.base,r),...a,children:t})};iR.displayName="MegaMenu.Dropdown";let iC=e=>{let{children:t,className:r,theme:n={},...o}=e,a=(0,l.useId)(),i=(0,l.useRef)(null),[u,d]=(0,l.useState)(void 0),[c,f]=(0,l.useState)(void 0),g=eu(e4().megaMenu.dropdownToggle,n),p=function(){var e;let t=null===(e=i.current)||void 0===e?void 0:e.closest("nav");return null==t?void 0:t.querySelector('[role="menu"]')},h=function(){var e;null===(e=p())||void 0===e||e.classList.toggle("hidden"),f(!c)};return(0,l.useEffect)(()=>{let e=p(),t=null==e?void 0:e.classList.contains("hidden");d(null==e?void 0:e.id),f(!t)},[]),(0,s.jsx)("button",{"aria-controls":u,"aria-expanded":c,"aria-haspopup":"menu",id:a,onClick:h,ref:i,className:ei(g.base,r),...o,children:t})};iC.displayName="MegaMenu.DropdownToggle";let iT=e=>{let{children:t,theme:r={},...n}=e,o=eu(e4().megaMenu,r);return(0,s.jsx)(iS,{fluid:!0,theme:o,...n,children:t})};Object.assign(iT,{Dropdown:iR,DropdownToggle:iC}),iT.displayName="MegaMenu";let iI=(0,l.createContext)(void 0);function iO(){let e=(0,l.useContext)(iI);if(!e)throw Error("useModalContext should be used within the ModalContext provider!");return e}let iL=e=>{let{children:t,className:r,theme:n={},...o}=e,{theme:a,popup:i}=iO(),l=eu(a.body,n);return(0,s.jsx)("div",{className:ei(l.base,i&&[l.popup],r),...o,children:t})}
108,iM=e=>{let{children:t,className:r,theme:n={},...o}=e,{theme:a,popup:i}=iO(),l=eu(a.footer,n);return(0,s.jsx)("div",{className:ei(l.base,!i&&l.popup,r),...o,children:t})},iP=e=>{let{as:t="h3",children:r,className:n,theme:o={},id:a,...i}=e,u=(0,l.useId)(),c=a||u,{theme:f,popup:g,onClose:p,setHeaderId:h}=iO(),b=eu(f.header,o);return(0,l.useLayoutEffect)(()=>(h(c),()=>h(void 0)),[c,h]),(0,s.jsxs)("div",{className:ei(b.base,g&&b.popup,n),...i,children:[(0,s.jsx)(t,{id:c,className:b.title,children:r}),(0,s.jsx)("button",{"aria-label":"Close",className:b.close.base,type:"button",onClick:p,children:(0,s.jsx)(d.fMW,{"aria-hidden":!0,className:b.close.icon})})]})},iD=(0,l.forwardRef)((e,t)=>{let{children:r,className:n,dismissible:o=!1,onClose:a,popup:i,position:u="center",root:d,show:c,size:f="2xl",theme:g={},initialFocus:p,...h}=e,[b,m]=(0,l.useState)(void 0),y=eu(e4().modal,g),{context:v}=aL({open:c,onOpenChange:()=>a&&a()}),x=op([v.refs.setFloating,t]),{getFloatingProps:w}=aF([aR(v),aO(v,{outsidePressEvent:"mousedown",enabled:o}),aY(v)]);return c?(0,s.jsx)(iI.Provider,{value:{theme:y,popup:i,onClose:a,setHeaderId:m},children:(0,s.jsx)(ah,{root:d,children:(0,s.jsx)(aN,{lockScroll:!0,"data-testid":"modal-overlay",className:ei(y.root.base,y.root.positions[u],c?y.root.show.on:y.root.show.off,n),...h,children:(0,s.jsx)(ak,{context:v,initialFocus:p,children:(0,s.jsx)("div",{ref:x,...w(h),"aria-labelledby":b,className:ei(y.content.base,y.root.sizes[f]),children:(0,s.jsx)("div",{className:y.content.inner,children:r})})})})})}):null});iD.displayName="Modal",iP.displayName="Modal.Header",iL.displayName="Modal.Body",iM.displayName="Modal.Footer";let iA=Object.assign(iD,{Header:iP,Body:iL,Footer:iM}),iF=(e,t)=>e>=t?[]:[...Array(t-e+1).keys()].map(t=>t+e),iz=({active:e,children:t,className:r,onClick:n,theme:o={},...a})=>{let i=eu(e4().pagination,o);return(0,s.jsx)("button",{type:"button",className:ei(e&&i.pages.selector.active,r),onClick:n,...a,children:t})};iz.displayName="Pagination.Button";let iB=({children:e,className:t,onClick:r,theme:n={},disabled:o=!1,...a})=>{let i=eu(e4().pagination,n);return(0,s.jsx)("button",{type:"button",className:ei(o&&i.pages.selector.disabled,t),disabled:o,onClick:r,...a,children:e})};iB.displayName="Pagination.Navigation";let i_=({className:e,currentPage:t,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:a="Previous",renderPaginationButton:i=e=>(0,s.jsx)(iz,{...e}),showIcons:l=!1,theme:u={},totalPages:c,...f})=>{let g=eu(e4().pagination,u),p=Math.min(Math.max("pagination"===r?t+2:t+4,5),c),h=Math.max(1,p-4),b=()=>{o(Math.min(t+1,c))},m=()=>{o(Math.max(t-1,1))};return(0,s.jsxs)("nav",{className:ei(g.base,e),...f,children:["table"===r&&(0,s.jsxs)("div",{className:g.layout.table.base,children:["Showing ",(0,s.jsx)("span",{className:g.layout.table.span,children:h})," to\xa0",(0,s.jsx)("span",{className:g.layout.table.span,children:p})," of\xa0",(0,s.jsx)("span",{className:g.layout.table.span,children:c})," Entries"]}),(0,s.jsxs)("ul",{className:g.pages.base,children:[(0,s.jsx)("li",{children:(0,s.jsxs)(iB,{className:ei(g.pages.previous.base,l&&g.pages.showIcon),onClick:m,disabled:1===t,children:[l&&(0,s.jsx)(d.DEl,{"aria-hidden":!0,className:g.pages.previous.icon}),a]})}),"pagination"===r&&iF(h,p).map(e=>(0,s.jsx)("li",{"aria-current":e===t?"page":void 0,children:i({className:ei(g.pages.selector.base,t===e&&g.pages.selector.active),active:e===t,onClick:()=>o(e),children:e})},e)),(0,s.jsx)("li",{children:(0,s.jsxs)(iB,{className:ei(g.pages.next.base,l&&g.pages.showIcon),onClick:b,disabled:t===c,children:[n,l&&(0,s.jsx)(d.MOd,{"aria-hidden":!0,className:g.pages.next.icon})]})})]})]})};i_.displayName="Pagination",Object.assign(i_,{Button:iz}),(0,l.forwardRef)(({className:e,theme:t={},...r},n)=>{let o=eu(e4().radio,t);return(0,s.jsx)("input",{ref:n,type:"radio",className:ei(o.root.base,e),...r})}).displayName="Radio",(0,l.forwardRef)(({className:e,sizing:t="md",theme:r={},...n},o)=>{let a=eu(e4().rangeSlider,r);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{"data-testid":"flowbite-range-slider",className:ei(a.root.base,e),children:(0,s.jsx)("div",{className:a.field.base,children:(0,s.jsx)("input",{ref:o,type:"range",className:ei(a.field.input.base,a.field.input.sizes[t]),...n})})})})}).displayName="RangeSlider";let iU=({children:e,className:t,percentFilled:r=0,theme:n={},...o})=>{let a=eu(e4().ratingAdvanced,n);return(0,s.jsxs)("div",{className:ei(a.base,t),...o,children:[(0,s.jsx)("span",{className:a.label,children:e}),(0,s.jsx)("div",{className:a.progress.base,children:(0,s.jsx)("div",{className:a.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),(0,s.jsx)("span",{className:a.progress.label,children:`${r}%`})]})},iV=(0,l.createContext)(void 0);function iW(){let e=(0,l.useContext)(iV);
108if(!e)throw Error("useRatingContext should be used within the RatingContext provider!");return e}let iH=e=>{let{className:t,filled:r=!0,starIcon:n=d.xiv,theme:o={},...a}=e,{theme:i,size:l="sm"}=iW(),u=eu(i.star,o);return(0,s.jsx)(n,{"data-testid":"flowbite-rating-star",className:ei(u.sizes[l],u[r?"filled":"empty"],t),...a})},iG=e=>{let{children:t,className:r,size:n="sm",theme:o={},...a}=e,i=eu(e4().rating,o);return(0,s.jsx)(iV.Provider,{value:{theme:i,size:n},children:(0,s.jsx)("div",{className:ei(i.root.base,r),...a,children:t})})};iG.displayName="Rating",iH.displayName="Rating.Star",iU.displayName="Rating.Advanced",Object.assign(iG,{Star:iH,Advanced:iU}),(0,l.forwardRef)(({addon:e,children:t,className:r,color:n="gray",helperText:o,icon:a,shadow:i,sizing:l="md",theme:u={},...d},c)=>{let f=eu(e4().select,u);return(0,s.jsxs)("div",{className:ei(f.base,r),children:[e&&(0,s.jsx)("span",{className:f.addon,children:e}),(0,s.jsxs)("div",{className:f.field.base,children:[a&&(0,s.jsx)("div",{className:f.field.icon.base,children:(0,s.jsx)(a,{className:f.field.icon.svg})}),(0,s.jsx)("select",{className:ei(f.field.select.base,f.field.select.colors[n],f.field.select.sizes[l],f.field.select.withIcon[a?"on":"off"],f.field.select.withAddon[e?"on":"off"],f.field.select.withShadow[i?"on":"off"]),...d,ref:c,children:t}),o&&(0,s.jsx)(tF,{color:n,children:o})]})]})}).displayName="Select";let iY=e=>{let{animation:t="duration-300",arrow:r=!0,children:n,className:o,content:a,placement:i="top",style:u="dark",theme:d,trigger:c="hover",minWidth:f,...g}=e,p=(0,l.useRef)(null),[h,b]=(0,l.useState)(!1),m=a0({open:h,placement:i,arrowRef:p,setOpen:b}),{context:y,middlewareData:{arrow:{x:v,y:x}={}},refs:w,strategy:k,update:E,x:N,y:j}=m,S=aM(y),{getFloatingProps:R,getReferenceProps:C}=a1({context:y,role:"tooltip",trigger:c,interactions:[S]});return(0,l.useEffect)(()=>{if(w.reference.current&&w.floating.current&&h)return nP(w.reference.current,w.floating.current,E)},[h,w.floating,w.reference,E]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:w.setReference,className:d.target,"data-testid":"flowbite-tooltip-target",...C(),children:n}),(0,s.jsxs)("div",{ref:w.setFloating,"data-testid":"flowbite-tooltip",...R({className:ei(d.base,t&&"".concat(d.animation," ").concat(t),!h&&d.hidden,d.style[u],o),style:{position:k,top:null!=j?j:" ",left:null!=N?N:" ",minWidth:f},...g}),children:[(0,s.jsx)("div",{className:d.content,children:a}),r&&(0,s.jsx)("div",{className:ei(d.arrow.base,"dark"===u&&d.arrow.style.dark,"light"===u&&d.arrow.style.light,"auto"===u&&d.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:p,style:{top:null!=x?x:" ",left:null!=v?v:" ",right:" ",bottom:" ",[aJ({placement:m.placement})]:d.arrow.placement},children:"\xa0"})]})]})},iQ=({animation:e="duration-300",arrow:t=!0,children:r,className:n,content:o,placement:a="top",style:i="dark",theme:l={},trigger:u="hover",...d})=>{let c=eu(e4().tooltip,l);return(0,s.jsx)(iY,{animation:e,arrow:t,content:o,placement:a,style:i,theme:c,trigger:u,className:n,...d,children:r})};iQ.displayName="Tooltip";let iK=(0,l.createContext)(void 0);function iq(){let e=(0,l.useContext)(iK);if(!e)throw Error("useSidebarContext should be used within the SidebarContext provider!");return e}let i$=(0,l.createContext)(void 0);function iX(){let e=(0,l.useContext)(i$);if(!e)throw Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return e}let iZ=e=>{let{children:t,className:r,icon:n,label:o,chevronIcon:a=d.kWQ,renderChevronIcon:i,open:u=!1,theme:c={},...f}=e,g=(0,l.useId)(),[p,h]=(0,l.useState)(u),{theme:b,isCollapsed:m}=iq(),y=eu(b.collapse,c);(0,l.useEffect)(()=>h(u),[u]);let v=e=>{let{children:t}=e;return(0,s.jsx)("li",{children:m&&!p?(0,s.jsx)(iQ,{content:o,placement:"right",children:t}):t})};return(0,s.jsxs)(v,{children:[(0,s.jsxs)("button",{id:"flowbite-sidebar-collapse-".concat(g),onClick:()=>h(!p),title:o,type:"button",className:ei(y.button,r),...f,children:[n&&(0,s.jsx)(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:ei(y.icon.base,y.icon.open[p?"on":"off"])}),m?(0,s.jsx)("span",{className:"sr-only",children:o}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"data-testid":"flowbite-sidebar-collapse-label",className:y.label.base,children:o}
108),i?i(y,p):(0,s.jsx)(a,{"aria-hidden":!0,className:ei(y.label.icon.base,y.label.icon.open[p?"on":"off"])})]})]}),(0,s.jsx)("ul",{"aria-labelledby":"flowbite-sidebar-collapse-".concat(g),hidden:!p,className:y.list,children:(0,s.jsx)(i$.Provider,{value:{isInsideCollapse:!0},children:t})})]})};iZ.displayName="Sidebar.Collapse";let iJ=e=>{let{children:t,color:r="info",className:n,theme:o={},...a}=e,{theme:i,isCollapsed:l}=iq(),u=eu(i.cta,o);return(0,s.jsx)("div",{"data-testid":"sidebar-cta",hidden:l,className:ei(u.base,u.color[r],n),...a,children:t})};iJ.displayName="Sidebar.CTA";let i0=e=>{let{id:t,theme:r,isCollapsed:n,tooltipChildren:o,children:a,...i}=e;return(0,s.jsx)("li",{...i,children:n?(0,s.jsx)(iQ,{content:(0,s.jsx)(i1,{id:t,theme:r,children:o}),placement:"right",children:a}):a})},i1=e=>{let{id:t,theme:r,children:n}=e;return(0,s.jsx)("span",{"data-testid":"flowbite-sidebar-item-content",id:"flowbite-sidebar-item-".concat(t),className:ei(r.content.base),children:n})},i2=(0,l.forwardRef)((e,t)=>{var r,n,o,a,i;let{active:u,as:d="a",children:c,className:f,icon:g,label:p,labelColor:h="info",theme:b={},...m}=e,y=(0,l.useId)(),{theme:v,isCollapsed:x}=iq(),{isInsideCollapse:w}=iX(),k=eu(v.item,b);return(0,s.jsx)(i0,{theme:k,className:k.listItem,id:y,isCollapsed:x,tooltipChildren:c,children:(0,s.jsxs)(d,{"aria-labelledby":"flowbite-sidebar-item-".concat(y),ref:t,className:ei(k.base,u&&k.active,!x&&w&&(null===(r=k.collapsed)||void 0===r?void 0:r.insideCollapse),f),...m,children:[g&&(0,s.jsx)(g,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:ei(null===(n=k.icon)||void 0===n?void 0:n.base,u&&(null===(o=k.icon)||void 0===o?void 0:o.active))}),x&&!g&&(0,s.jsx)("span",{className:null===(a=k.collapsed)||void 0===a?void 0:a.noIcon,children:null!==(i=c.charAt(0).toLocaleUpperCase())&&void 0!==i?i:"?"}),!x&&(0,s.jsx)(i1,{id:y,theme:k,children:c}),!x&&p&&(0,s.jsx)(ta,{color:h,"data-testid":"flowbite-sidebar-label",hidden:x,className:k.label,children:p})]})})});i2.displayName="Sidebar.Item";let i5=e=>{let{children:t,className:r,theme:n={},...o}=e,{theme:a}=iq(),i=eu(a.itemGroup,n);return(0,s.jsx)("ul",{"data-testid":"flowbite-sidebar-item-group",className:ei(i.base,r),...o,children:(0,s.jsx)(i$.Provider,{value:{isInsideCollapse:!1},children:t})})};i5.displayName="Sidebar.ItemGroup";let i4=e=>{let{children:t,className:r,theme:n={},...o}=e,{theme:a}=iq(),i=eu(a.items,n);return(0,s.jsx)("div",{className:ei(i.base,r),"data-testid":"flowbite-sidebar-items",...o,children:t})};i4.displayName="Sidebar.Items";let i6=e=>{let{children:t,className:r,href:n,img:o,imgAlt:a="",theme:i={},...u}=e,d=(0,l.useId)(),{theme:c,isCollapsed:f}=iq(),g=eu(c.logo,i);return(0,s.jsxs)("a",{"aria-labelledby":"flowbite-sidebar-logo-".concat(d),href:n,className:ei(g.base,r),...u,children:[(0,s.jsx)("img",{alt:a,src:o,className:g.img}),(0,s.jsx)("span",{className:g.collapsed[f?"on":"off"],id:"flowbite-sidebar-logo-".concat(d),children:t})]})};i6.displayName="Sidebar.Logo";let i3=e=>{let{children:t,as:r="nav",collapseBehavior:n="collapse",collapsed:o=!1,theme:a={},className:i,...l}=e,u=eu(e4().sidebar,a);return(0,s.jsx)(iK.Provider,{value:{theme:u,isCollapsed:o},children:(0,s.jsx)(r,{"aria-label":"Sidebar",hidden:o&&"hide"===n,className:ei(u.root.base,u.root.collapsed[o?"on":"off"],i),...l,children:(0,s.jsx)("div",{className:u.root.inner,children:t})})})};i3.displayName="Sidebar",Object.assign(i3,{Collapse:iZ,CTA:iJ,Item:i2,Items:i4,ItemGroup:i5,Logo:i6});let i7=(0,l.createContext)(void 0);function i8(){let e=(0,l.useContext)(i7);if(!e)throw Error("useTableBodyContext should be used within the TableBodyContext provider!");return e}let i9=(0,l.createContext)(void 0);function se(){let e=(0,l.useContext)(i9);if(!e)throw Error("useTableContext should be used within the TableContext provider!");return e}let st=(0,l.forwardRef)((e,t)=>{let{children:r,className:n,theme:o={},...a}=e,{theme:i}=se(),l=eu(i.body,o);return(0,s.jsx)(i7.Provider,{value:{theme:l},children:(0,s.jsx)("tbody",{className:ei(l.base,n),ref:t,...a,children:r})})});st.displayName="Table.Body";let sr=(0,l.forwardRef)((e,t)=>{let{children:r,className:n,theme:o={},...a}=e,{theme:i}=i8(),l=eu(i.cell,o);return(0,s.jsx)("td",{className:ei(l.base,n),ref:t,...a,children:r})});sr.displayName="Table.Cell";let sn=(0,l.createContext)(void 0);function so(){let e=(0,l.useContext)(sn);if(!e)throw Error("useTableHeadContext should be used within the TableHeadContext provider!");return e}let sa=(0,l.forwardRef)((e,t)=>{let{children:r,className:n,theme:o={},...a}=e,{theme:i}=se(),l=eu(i.head,o);return(0,s.jsx)(sn.Provider,{value:{theme:l},children:(0,s.jsx)("thead",{className:ei(l.base,n),ref:t,...a,children:(0,s.jsx)("tr",{children:r})})})});sa.displayName="Table.Head";let si=(0,l.forwardRef)((e,t)=>{let{children:r,className:n,theme:o={},...a}=e,{theme:i}=so(),l=eu(i.cell,o);return(0,s.jsx)("th",{className:ei(l.base,n),ref:t,...a,children:r})});si.displayName="Table.HeadCell";let ss=(0,l.forwardRef)((e,t)=>{let{children:r,className:n,theme:o={},...a}=e,{theme:i,hoverable:l,striped:u}=se(),d=eu(i.row,o);return(0,s.jsx)("tr",{ref:t,"data-testid":"table-row-element",className:ei(d.base,u&&d.striped,l&&d.hovered,n),...a,children:r})});ss.displayName="Table.Row";let sl=(0,l.forwardRef)((e,t)=>{let{children:r,className:n,striped:o,hoverable:a,theme:i={},...l}=e,u=eu(e4().table,i);return(0,s.jsx)("div",{"data-testid":"table-element",className:ei(u.root.wrapper),children:(0,s.jsxs)(i9.Provider,{value:{theme:u,striped:o,hoverable:a},children:[(0,s.jsx)("div",{className:ei(u.root.shadow,n)}),(0,s.jsx)("table",{className:ei(u.root.base,n),...l,ref:t,children:r})]})})});
108sl.displayName="Table",Object.assign(sl,{Head:sa,Body:st,Row:ss,Cell:sr,HeadCell:si});let su=e=>{let{children:t,className:r}=e;return(0,s.jsx)("div",{className:r,children:t})};su.displayName="Tabs.Item";let sd=(0,l.forwardRef)((e,t)=>{let{children:r,className:n,onActiveTabChange:o,style:a="default",theme:i={},...u}=e,d=eu(e4().tabs,i),c=(0,l.useId)(),f=(0,l.useMemo)(()=>l.Children.map(l.Children.toArray(r),e=>{let{props:t}=e;return t}),[r]),g=(0,l.useRef)([]),[p,h]=(0,l.useState)(Math.max(0,f.findIndex(e=>e.active))),[b,m]=(0,l.useState)(-1),y=e=>{h(e),o&&o(e)},v=e=>{let{target:t}=e;y(t),m(t)},x=e=>{let{event:t,target:r}=e;"ArrowLeft"===t.key&&m(Math.max(0,b-1)),"ArrowRight"===t.key&&m(Math.min(f.length-1,b+1)),"Enter"===t.key&&(y(r),m(r))},w=d.tablist.tabitem.styles[a],k=d.tabitemcontainer.styles[a];return(0,l.useEffect)(()=>{var e;null===(e=g.current[b])||void 0===e||e.focus()},[b]),(0,l.useImperativeHandle)(t,()=>({setActiveTab:y})),(0,s.jsxs)("div",{className:ei(d.base,n),children:[(0,s.jsx)("div",{"aria-label":"Tabs",role:"tablist",className:ei(d.tablist.base,d.tablist.styles[a],n),...u,children:f.map((e,t)=>(0,s.jsxs)("button",{type:"button","aria-controls":"".concat(c,"-tabpanel-").concat(t),"aria-selected":t===p,className:ei(d.tablist.tabitem.base,w.base,t===p&&w.active.on,t!==p&&!e.disabled&&w.active.off),disabled:e.disabled,id:"".concat(c,"-tab-").concat(t),onClick:()=>v({target:t}),onKeyDown:e=>x({event:e,target:t}),ref:e=>g.current[t]=e,role:"tab",tabIndex:t===b?0:-1,style:{zIndex:t===b?2:1},children:[e.icon&&(0,s.jsx)(e.icon,{className:d.tablist.tabitem.icon}),e.title]},t))}),(0,s.jsx)("div",{className:ei(d.tabitemcontainer.base,k),children:f.map((e,t)=>(0,s.jsx)("div",{"aria-labelledby":"".concat(c,"-tab-").concat(t),className:d.tabpanel,hidden:t!==p,id:"".concat(c,"-tabpanel-").concat(t),role:"tabpanel",tabIndex:0,children:e.children},t))})]})});sd.displayName="Tabs",Object.assign(sd,{Item:su}),(0,l.forwardRef)(({className:e,color:t="gray",helperText:r,shadow:n,theme:o={},...a},i)=>{let l=eu(e4().textarea,o);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("textarea",{ref:i,className:ei(l.base,l.colors[t],l.withShadow[n?"on":"off"],e),...a}),r&&(0,s.jsx)(tF,{color:t,children:r})]})}).displayName="Textarea";let sc=(0,l.createContext)(void 0);function sf(){let e=(0,l.useContext)(sc);if(!e)throw Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return e}let sg=e=>{let{children:t,className:r,theme:n={},...o}=e,{theme:a}=sf(),i=eu(a.body,n);return(0,s.jsx)("div",{className:ei(i.base,r),...o,children:t})},sp=(0,l.createContext)(void 0);function sh(){let e=(0,l.useContext)(sp);if(!e)throw Error("useTimelineContext should be used within the TimelineContext provider!");return e}let sb=(0,l.createContext)(void 0);function sm(){let e=(0,l.useContext)(sb);if(!e)throw Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return e}let sy=e=>{let{children:t,className:r,theme:n={},...o}=e,{horizontal:a}=sh(),{theme:i}=sm(),l=eu(i.content,n);return(0,s.jsx)(sc.Provider,{value:{theme:l},children:(0,s.jsx)("div",{"data-testid":"timeline-content",className:ei(a&&l.root.base,r),...o,children:t})})},sv=e=>{let{children:t,className:r,theme:n={},...o}=e,{theme:a,horizontal:i}=sh(),l=eu(a.item,n);return(0,s.jsx)(sb.Provider,{value:{theme:l},children:(0,s.jsx)("li",{"data-testid":"timeline-item",className:ei(i&&l.root.horizontal,!i&&l.root.vertical,r),...o,children:t})})},sx=e=>{let{children:t,className:r,icon:n,theme:o={},...a}=e,{horizontal:i}=sh(),{theme:l}=sm(),u=eu(l.point,o);return(0,s.jsxs)("div",{"data-testid":"timeline-point",className:ei(i&&u.horizontal,!i&&u.vertical,r),...a,children:[t,n?(0,s.jsx)("span",{className:ei(u.marker.icon.wrapper),children:(0,s.jsx)(n,{"aria-hidden":!0,className:ei(u.marker.icon.base)})}):(0,s.jsx)("div",{className:ei(i&&u.marker.base.horizontal,!i&&u.marker.base.vertical)}),i&&(0,s.jsx)("div",{className:ei(u.line)})]})},sw=e=>{let{children:t,className:r,theme:n={},...o}=e,{theme:a}=sf(),i=eu(a.time,n);return(0,s.jsx)("time",{className:ei(i.base,r),...o,children:t})},sk=e=>{let{as:t="h3",children:r,className:n,theme:o={},...a}=e,{theme:i}=sf(),l=eu(i.title,o);return(0,s.jsx)(t,{className:ei(l.base,n),...a,children:r})},sE=e=>{let{children:t,className:r,horizontal:n,theme:o={},...a}=e,i=eu(e4().timeline,o);return(0,s.jsx)(sp.Provider,{value:{theme:i,horizontal:n}
108,children:(0,s.jsx)("ol",{"data-testid":"timeline-component",className:ei(n&&i.root.direction.horizontal,!n&&i.root.direction.vertical,r),...a,children:t})})};sE.displayName="Timeline",sv.displayName="Timeline.Item",sx.displayName="Timeline.Point",sy.displayName="Timeline.Content",sw.displayName="Timeline.Time",sk.displayName="Timeline.Title",sg.displayName="Timeline.Body",Object.assign(sE,{Item:sv,Point:sx,Content:sy,Time:sw,Title:sk,Body:sg});let sN=(0,l.createContext)(void 0);function sj(){let e=(0,l.useContext)(sN);if(!e)throw Error("useToastContext should be used within the ToastContext provider!");return e}let sS=e=>{let{className:t,onClick:r,theme:n={},xIcon:o=d.apv,onDismiss:a,...i}=e,{theme:l,duration:u,isClosed:c,isRemoved:f,setIsClosed:g,setIsRemoved:p}=sj(),h=eu(l.toggle,n),b=e=>{if(r&&r(e),a){a();return}g(!c),setTimeout(()=>p(!f),u)};return(0,s.jsx)("button",{"aria-label":"Close",onClick:b,type:"button",className:ei(h.base,t),...i,children:(0,s.jsx)(o,{"aria-hidden":!0,className:h.icon})})},sR={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},sC=e=>{let{children:t,className:r,duration:n=300,theme:o={},...a}=e,[i,u]=(0,l.useState)(!1),[d,c]=(0,l.useState)(!1),f=eu(e4().toast,o);return d?null:(0,s.jsx)(sN.Provider,{value:{theme:f,duration:n,isClosed:i,isRemoved:d,setIsClosed:u,setIsRemoved:c},children:(0,s.jsx)("div",{"data-testid":"flowbite-toast",role:"alert",className:ei(f.root.base,sR[n],i&&f.root.closed,r),...a,children:t})})};sC.displayName="Toast",sS.displayName="Toast.Toggle",Object.assign(sC,{Toggle:sS}),(0,l.forwardRef)(({checked:e,className:t,color:r="blue",sizing:n="md",disabled:o,label:a,name:i,onChange:u,theme:d={},...c},f)=>{let g=(0,l.useId)(),p=eu(e4().toggleSwitch,d),h=()=>u(!e),b=()=>{h()},m=e=>{"Enter"==e.code&&e.preventDefault()};return(0,s.jsxs)(s.Fragment,{children:[i&&e?(0,s.jsx)("input",{ref:f,checked:e,hidden:!0,name:i,readOnly:!0,type:"checkbox",className:"sr-only"}):null,(0,s.jsxs)("button",{"aria-checked":e,"aria-labelledby":`${g}-flowbite-toggleswitch-label`,disabled:o,id:`${g}-flowbite-toggleswitch`,onClick:b,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:ei(p.root.base,p.root.active[o?"off":"on"],t),...c,children:[(0,s.jsx)("div",{"data-testid":"flowbite-toggleswitch-toggle",className:ei(p.toggle.base,p.toggle.checked[e?"on":"off"],e&&p.toggle.checked.color[r],p.toggle.sizes[n])}),a?.length?(0,s.jsx)("span",{"data-testid":"flowbite-toggleswitch-label",id:`${g}-flowbite-toggleswitch-label`,className:p.root.label,children:a}):null]})]})}).displayName="ToggleSwitch"},67823:function(e,t,r){"use strict";r.d(t,{w_:function(){return b}});var n=r(2265),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=n.createContext&&n.createContext(o),i=["attr","size","title"];function s(e,t){if(null==e)return{};var r,n,o=l(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function l(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function u(){return(u=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)}function d(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?d(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=p(e,"string");return"symbol"==typeof t?t:String(t)}function p(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)}function h(e){return e&&e.map((e,t)=>n.createElement(e.tag,c({key:t},e.attr),h(e.child)))}function b(e){return t=>n.createElement(m,u({attr:c({},e.attr)},t),h(e.child))}function m(e){var t=t=>{var r,{attr:o,size:a,title:l}=e,d=s(e,i),f=a||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",u({stroke:"currentColor",fill:"
108currentColor",strokeWidth:"0"},t.attr,o,d,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==a?n.createElement(a.Consumer,null,e=>t(e)):t(o)}},91810:function(e,t,r){"use strict";r.d(t,{w_:function(){return b}});var n=r(2265),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=n.createContext&&n.createContext(o),i=["attr","size","title"];function s(e,t){if(null==e)return{};var r,n,o=l(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function l(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function u(){return(u=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)}function d(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?d(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=p(e,"string");return"symbol"==typeof t?t:t+""}function p(e,t){if("object"!=typeof e||!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)}function h(e){return e&&e.map((e,t)=>n.createElement(e.tag,c({key:t},e.attr),h(e.child)))}function b(e){return t=>n.createElement(m,u({attr:c({},e.attr)},t),h(e.child))}function m(e){var t=t=>{var r,{attr:o,size:a,title:l}=e,d=s(e,i),f=a||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",u({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,d,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==a?n.createElement(a.Consumer,null,e=>t(e)):t(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.