1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,254329,e=>{"use strict";var t=e.i(538567),r=e.i(209977);let n=(0,e.i(281277).default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);var i=e.i(908180),o=e.i(981831),s=e.i(183144),a=e.i(636273),u=e.i(447749),f=e.i(145296);let c=["en","fr","rw"];e.s(["TranslatableField",0,function({value:e,i18n:l,onChange:h,context:p,placeholder:d,multiline:g=!1,rows:y=3,label:m,required:v,disabled:b}){let w=(0,u.useTranslations)("shared.translatableField"),x={en:w("localeEn"),fr:w("localeFr"),rw:w("localeRw")},[E,k]=(0,r.useState)({en:e??"",fr:l?.fr??"",rw:l?.rw??""}),[A,B]=(0,r.useState)(!1),[C,j]=(0,r.useState)(!1),[R,S]=(0,r.useState)({en:!1,fr:!1,rw:!1}),T=(0,r.useRef)(e),I=(0,r.useRef)(l),U=(0,r.useRef)(""),L=(0,r.useRef)(E);L.current=E;let P=(0,r.useRef)(R);P.current=R,(0,r.useEffect)(()=>{e!==T.current&&(T.current=e,k(t=>({...t,en:e??""})))},[e]),(0,r.useEffect)(()=>{l!==I.current&&(I.current=l,k(e=>({...e,fr:e.fr||l?.fr||"",rw:e.rw||l?.rw||""})))},[l]);let N=async e=>{let t=L.current,r=(t.en??"").trim();if(r){e&&(U.current=r),B(!0);try{let n=(await f.bizDirectApi.post("/business/translate",{text:r,context:p})).data.payload??{},i=P.current,o={en:n.en?.trim()||t.en||r,fr:e&&i.fr&&(t.fr??"").trim()?t.fr:n.fr?.trim()||t.fr||"",rw:e&&i.rw&&(t.rw??"").trim()?t.rw:n.rw?.trim()||t.rw||""};k(o),S(e=>({...e,en:!0})),U.current=r,h({value:o.en??"",i18n:o})}catch(t){let e=t?.response?.status;(401===e||403===e||404===e)&&j(!0)}finally{B(!1)}}};(0,r.useEffect)(()=>{let e=(E.en??"").trim();if(!e||C||e===U.current)return;let t=R.fr&&(E.fr??"").trim(),r=R.rw&&(E.rw??"").trim();if(t&&r)return;let n=setTimeout(()=>void N(!0),900);return()=>clearTimeout(n)},[E.en,C]);let O=g?a.Textarea:s.Input,M=g?{rows:y}:{},z=e=>v&&R[e]&&!(E[e]??"").trim();return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-end justify-between gap-2",children:[m&&(0,t.jsxs)("div",{className:"text-sm font-medium text-muted-foreground",children:[m,v&&(0,t.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),!C&&(0,t.jsxs)(o.Button,{type:"button",variant:"ghost",size:"sm",onClick:()=>N(!1),disabled:A||!E.en?.trim()||b,className:"text-xs h-7 ml-auto",children:[A?(0,t.jsx)(i.Loader2,{className:"h-3 w-3 mr-1 animate-spin"}):(0,t.jsx)(n,{className:"h-3 w-3 mr-1"}),w("suggestTranslations")]})]}),(0,t.jsx)("div",{className:"space-y-2",children:c.map(e=>(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"flex items-center justify-between",children:(0,t.jsxs)("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:[x[e],v&&(0,t.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]})}),(0,t.jsx)(O,{value:E[e]??"",onChange:t=>{var r;let n;return r=t.target.value,void(k(n={...E,[e]:r}),S(t=>({...t,[e]:!0})),h({value:n.en??"",i18n:{en:n.en??"",fr:n.fr??"",rw:n.rw??""}}))},onBlur:()=>S(t=>({...t,[e]:!0})),placeholder:d?`${d} (${x[e]})`:x[e],disabled:b,"aria-invalid":z(e)||void 0,...M}),z(e)&&(0,t.jsx)("p",{className:"text-xs text-red-600",children:w("requiredError",{locale:x[e]})})]},e))})]})},"isLocaleMapComplete",0,e=>!!e&&c.every(t=>(e[t]??"").trim().length>0)],254329)},53565,e=>{"use strict";var t=e.i(538567),r=e.i(209977),n=e.i(447749),i=e.i(908180),o=e.i(278533),s=e.i(350760),a=e.i(981831),u=e.i(215571),f=e.i(145296);e.s(["BackgroundRemovalDialog",0,function({open:e,onOpenChange:c,originalFile:l,onAccept:h}){let p=(0,n.useTranslations)("dashboard.bgRemoval"),[d,g]=(0,r.useState)("idle"),[y,m]=(0,r.useState)(""),[v,b]=(0,r.useState)(null),w=(0,r.useRef)(""),x=(0,r.useRef)("");return(0,r.useEffect)(()=>{if(!e){w.current&&(URL.revokeObjectURL(w.current),w.current=""),x.current&&(URL.revokeObjectURL(x.current),x.current=""),b(null),g("idle"),m("");return}if(!l)return;let t=!1;return g("processing"),m(""),w.current=URL.createObjectURL(l),(async()=>{try{let e=new FormData;e.append("image",l);let r=await f.bizDirectApi.post("/business/products/remove-bg",e,{responseType:"blob"});if(t)return;let n=r.data;b(n),x.current=URL.createObjectURL(n),g("ready")}catch(e){if(t)return;m(e?.response?.data?.message??e?.message??String(e)),g("error")}})(),()=>{t=!0}},[e,l]),(0,t.jsx)(u.Dialog,{open:e,onOpenChange:c,children:(0,t.jsxs)(u.DialogContent,{className:"max-w-2xl",children:[(0,t.jsx)(u.DialogHeader,{children:(0,t.jsxs)(u.DialogTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(o.Sparkles,{className:"h-4 w-4 text-primary"}),p("title")]})}),"processing"===d&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 py-8",children:[(0,t.jsx)(i.Loader2,{className:"h-8 w-8 animate-spin text-primary"}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground text-center max-w-sm",children:p("processing")})]}),"error"===d&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[(0,t.jsx)(s.X,{className:"h-8 w-8 text-destructive"}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground max-w-sm",children:p("error")}
1),(0,t.jsx)("div",{className:"text-xs text-muted-foreground/70 font-mono",children:y})]}),("ready"===d||"processing"===d&&v)&&(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{className:"text-xs font-medium text-muted-foreground",children:p("original")}),(0,t.jsx)("div",{className:"aspect-square w-full overflow-hidden rounded-lg border bg-muted",children:w.current&&(0,t.jsx)("img",{src:w.current,alt:"",className:"h-full w-full object-cover"})})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("div",{className:"text-xs font-medium text-muted-foreground",children:p("cleaned")}),(0,t.jsx)("div",{className:"aspect-square w-full overflow-hidden rounded-lg border bg-card",children:x.current&&(0,t.jsx)("img",{src:x.current,alt:"",className:"h-full w-full object-cover"})})]})]}),(0,t.jsxs)("div",{className:"flex flex-row-reverse gap-2 mt-2",children:[(0,t.jsx)(a.Button,{type:"button",disabled:"ready"!==d,onClick:()=>{if(!v||!l)return;let e=l.name.replace(/\.[^.]+$/,"");h(new File([v],`${e}-clean.jpg`,{type:"image/jpeg",lastModified:Date.now()})),c(!1)},children:p("useClean")}),(0,t.jsx)(a.Button,{type:"button",variant:"ghost",onClick:()=>c(!1),children:p("keepOriginal")})]})]})})}])},153013,e=>{"use strict";var t=e.i(447749),r=e.i(209977),n=e.i(586819);e.s(["useUnsavedChangesWarning",0,function(e){let i=(0,t.useTranslations)("shared.unsavedChanges");!function(e,t={}){let{confirm:n}=t,i=(0,r.useRef)(n);i.current=n;let o=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!e)return;let t=e=>{e.preventDefault(),e.returnValue=""},r=e=>{let t;if(o.current||e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=e.target,n=r?.closest?.("a");if(!n||!n.getAttribute("href")||n.hasAttribute("download")||n.target&&"_self"!==n.target)return;try{t=new URL(n.href,window.location.href)}catch{return}if("http:"!==t.protocol&&"https:"!==t.protocol||t.origin!==window.location.origin||t.pathname===window.location.pathname&&t.search===window.location.search)return;e.preventDefault(),e.stopPropagation();let s=i.current;Promise.resolve(s?s():window.confirm("You have unsaved changes. Leave anyway?")).then(e=>{if(e){o.current=!0;try{n.click()}finally{o.current=!1}}})};return window.addEventListener("beforeunload",t),document.addEventListener("click",r,!0),()=>{window.removeEventListener("beforeunload",t),document.removeEventListener("click",r,!0)}},[e])}(e,{confirm:()=>(0,n.confirmDialog)({title:i("title"),description:i("description"),confirmText:i("leave"),cancelText:i("stay"),destructive:!0})})}],153013)},794471,e=>{"use strict";let t={Electronics:"Ãlectronique","Fashion & Clothing":"Mode et vêtements","Food & Beverage":"Alimentation et boissons","Home & Garden":"Maison et jardin","Health & Beauty":"Santé et beauté","Sports & Recreation":"Sport et loisirs","Arts & Crafts":"Arts et artisanat",Automotive:"Automobile","Books & Media":"Livres et médias","Jewelry & Accessories":"Bijoux et accessoires","Baby & Kids":"Bébé et enfants","Office Supplies":"Fournitures de bureau","Pet Supplies":"Animaux de compagnie",Photography:"Photographie","Music & Instruments":"Musique et instruments","Digital Services":"Services numériques",Entertainment:"Divertissement","Professional Services":"Services professionnels","Real Estate":"Immobilier","Travel & Tourism":"Voyage et tourisme",Agriculture:"Agriculture",Construction:"Construction",Finance:"Finance",Technology:"Technologie",Retail:"Commerce de détail",Education:"Ãducation"},r={Electronics:"Ibikoresho bya elegitoroniki","Fashion & Clothing":"Imideli n'imyenda","Food & Beverage":"Ibiribwa n'ibinyobwa","Home & Garden":"Mu rugo no mu busitani","Health & Beauty":"Ubuzima n'ubwiza","Sports & Recreation":"Imikino n'imyidagaduro","Arts & Crafts":"Ubugeni n'ubukorikori",Automotive:"Imodoka","Books & Media":"Ibitabo n'amakuru","Jewelry & Accessories":"Imitako n'ibyukubahiriza","Baby & Kids":"Abana n'impinja","Office Supplies":"Ibikoresho byo mu biro","Pet Supplies":"Ibikoresho by'inyamaswa zo mu rugo",Photography:"Gufata amafoto","Music & Instruments":"Umuziki n'ibyuma byawo","Digital Services":"Serivisi za digitale",Entertainment:"Imyidagaduro","Professional Services":"Serivisi z'umwuga","Real Estate":"Imitungo itimukanwa","Travel & Tourism":"Ingendo n'ubukerarugendo",Agriculture:"Ubuhinzi",Construction:"Ubwubatsi",Finance:"Imari",Technology:"Ikoranabuhanga",Retail
1:"Ubucuruzi buciriritse",Education:"Uburezi"},n=[[/electronic|phone|tech/i,"iPhone 15 Pro"],[/fashion|cloth|apparel|wear/i,"Cotton T-shirt"],[/food|beverage|drink|restaurant|grocery/i,"Chicken Pizza"],[/home|garden|furnitur/i,"Ceramic Plant Pot"],[/health|beauty|cosmetic/i,"Moisturizing Cream"],[/sport|recreation|fitness/i,"Football"],[/art|craft/i,"Acrylic Paint Set"],[/auto|car|vehicle/i,"Car Air Freshener"],[/book|media/i,"Bestselling Novel"],[/jewel|accessor/i,"Gold Necklace"],[/baby|kid|child/i,"Baby Stroller"],[/office|stationer/i,"A4 Printer Paper"],[/pet/i,"Dog Food 5kg"],[/photo/i,"Camera Tripod"],[/music|instrument/i,"Acoustic Guitar"],[/agricultur|farm/i,"Maize Seeds 1kg"],[/construction|hardware/i,"Cement Bag 50kg"],[/education|school/i,"Math Textbook"]];e.s(["CATEGORY_LIST",0,["Electronics","Fashion & Clothing","Food & Beverage","Home & Garden","Health & Beauty","Sports & Recreation","Arts & Crafts","Automotive","Books & Media","Jewelry & Accessories","Baby & Kids","Office Supplies","Pet Supplies","Photography","Music & Instruments","Digital Services","Entertainment","Professional Services","Real Estate","Travel & Tourism","Agriculture","Construction","Finance","Technology","Retail","Education"],"categoryI18n",0,e=>{let n=t[e],i=r[e];return n&&i?{en:e,fr:n,rw:i}:null},"labelForCategory",0,(e,n)=>{let i="fr"===n||"rw"===n?n:"en";return"fr"===i?t[e]??e:"rw"===i?r[e]??e:e},"productNamePlaceholder",0,e=>{let t=(e??"").trim();if(t){for(let[e,r]of n)if(e.test(t))return`e.g. ${r}`}return"e.g. Cotton T-shirt"}])},767242,e=>{"use strict";let t=(0,e.i(281277).default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["CheckCircle",0,t],767242)},276098,e=>{"use strict";let t=(0,e.i(281277).default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);e.s(["default",0,t])},593392,(e,t,r)=>{var n={872:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),s=o[0],a=o[1],f=new i((s+a)*3/4-a),c=0,l=a>0?s-4:s;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],f[c++]=t>>16&255,f[c++]=t>>8&255,f[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,f[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,f[c++]=t>>8&255,f[c++]=255&t),f},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(e,t,n){for(var i,o=[],s=t;s<n;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},230:function(e,t,r){"use strict";var n=r(872),i=r(321),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),u=s(o),f=u.write(n,i);return f!==o&&(u=u.slice(0,f)),u}if(ArrayBuffer.isView(e))return l(e);
vendor: 17,965 bytes, line 1
1if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(S(e,ArrayBuffer)||e&&S(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(S(e,SharedArrayBuffer)||e&&S(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return a.from(c,t,r);var d=function(e){if(a.isBuffer(e)){var t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return f(e),s(e<0?0:0|h(e))}function l(e){for(var t=e.length<0?0:0|h(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(f(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||S(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(i)return n?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var i,o,s,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=T[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,s=r,0===o&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,u/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;o<a;o++)if(f(e,o)===f(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else -1!==c&&(o-=o-c),c=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var l=!0,h=0;h<u;h++)if(f(e,o+h)!==f(t,h)){l=!1;break}if(l)return o}return -1}a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(S(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),S(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(S(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):d.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(S(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,u=Math.min(o,s),f=this.slice(n,i),c=e.slice(t,r),l=0;l<u;++l)if(f[l]!==c[l]){o=f[l],s=c[l];break}return o<s?-1:+(s<o)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function v(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,u,f=e[i],c=null,l=f>239?4:f>223?3:f>191?2:1;if(i+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(u=(15&f)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(u=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var d="",g=0;g<p;)d+=String.fromCharCode.apply(String,h.slice(g,g+=4096));return d}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function x(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,o){return t*=1,r>>>=0,o||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,o){return t*=1,r>>>=0,o||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,u,f,c,l,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a,u=parseInt(t.substr(2*s,2),16);if((a=u)!=a)break;e[r+s]=u}return s}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,R(B(e,this.length-i),this,i,o);case"ascii":return s=t,a=r,R(C(e),this,s,a);case"latin1":case"binary":return function(e,t,r,n){return R(C(t),e,r,n)}(this,e,t,r);case"base64":return u=t,f=r,R(j(e),this,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,l=r,R(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,l);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s<r&&(o*=256);)this[t+s]=e/o&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),u=s.length;
1if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%u]}return this};var A=/[^+/0-9A-Za-z-_]/g;function B(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function C(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function j(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function S(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},321:function(e,t){t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,c=-7,l=r?i-1:0,h=r?-1:1,p=e[t+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+e[t+l],l+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+l>=1?t+=h/u:t+=h*Math.pow(2,1-l),t*u>=2&&(s++,u/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;e[r+p]=255&s,p+=d,s/=256,f-=8);e[r+p-d]|=128*g}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},s=!0;try{n[e](r,r.exports,o),s=!1}finally{s&&delete i[e]}return r.exports}o.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/buffer/",t.exports=o(230)},325329,e=>{"use strict";var t=e.i(538567),r=e.i(209977),n=e.i(976173),i=e.i(464503),o=e.i(543836),s=e.i(76440),a=e.i(772261),u=e.i(911681),f=e.i(156316),c=Object.defineProperty,l=(e,t)=>c(e,"name",{value:t,configurable:!0}),h="Checkbox",[p,d]=(0,i.createContextScope)(h),[g,y]=p(h);function m(e){let{__scopeCheckbox:n,checked:i,children:o,defaultChecked:a,disabled:u,form:f,name:c,onCheckedChange:l,required:p,value:d="on",internal_do_not_use_render:y}=e,[m,v]=(0,s.useControllableState)({prop:i,defaultProp:a??!1,onChange:l,caller:h}),[b,w]=r.useState(null),[x,A]=r.useState(null),B=r.useRef(!1),[C,j]=r.useReducer(e=>e+1,0),R=!b||!!f||!!b.closest("form"),S={checked:m,disabled:u,setChecked:v,control:b,setControl:w,name:c,form:f,value:d,hasConsumerStoppedPropagationRef:B,userInteractionCount:C,onUserInteraction:j,required:p,defaultChecked:!k(a)&&a,isFormControl:R,bubbleInput:x,setBubbleInput:A};return(0,t.jsx)(g,{scope:n,...S,children:E(y)?y(S):o})}l(m,"CheckboxProvider");var v=r.forwardRef(l(function({__scopeCheckbox:e,onKeyDown:i,onClick:s,...a},u){let{control:c,value:h,disabled:p,checked:d,required:g,setControl:m,setChecked:v,hasConsumerStoppedPropagationRef:b,onUserInteraction:w,isFormControl:x,bubbleInput:E}=y("CheckboxTrigger",e),B=(0,n.useComposedRefs)(u,m),C=r.useRef(d);return r.useEffect(()=>{let e=c?.form;if(e){let t=l(()=>v(C.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,v]),(0,t.jsx)(f.Primitive.button,{type:"button",role:"checkbox","aria-checked":k(d)?"mixed":d,"aria-required":g,"data-state":A(d),"data-disabled":p?"":void 0,disabled:p,value:h,...a,ref:B,onKeyDown:(0,o.composeEventHandlers)(i,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,o.composeEventHandlers)(s,e=>
1{w(),v(e=>!!k(e)||!e),E&&x&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})},"CheckboxTrigger")),b=r.forwardRef(l(function(e,r){let{__scopeCheckbox:n,name:i,checked:o,defaultChecked:s,required:a,disabled:u,value:f,onCheckedChange:c,form:l,...h}=e;return(0,t.jsx)(m,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:u,required:a,onCheckedChange:c,name:i,form:l,value:f,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v,{...h,ref:r,__scopeCheckbox:n}),e&&(0,t.jsx)(x,{__scopeCheckbox:n})]})})},"Checkbox")),w=r.forwardRef(l(function(e,r){let{__scopeCheckbox:n,forceMount:i,...o}=e,s=y("CheckboxIndicator",n);return(0,t.jsx)(u.Presence,{present:i||k(s.checked)||!0===s.checked,children:(0,t.jsx)(f.Primitive.span,{"data-state":A(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:r,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),x=r.forwardRef(l(function({__scopeCheckbox:e,onClick:i,...s},u){let{control:c,hasConsumerStoppedPropagationRef:l,userInteractionCount:h,checked:p,defaultChecked:d,required:g,disabled:m,name:v,value:b,form:w,bubbleInput:x,setBubbleInput:E}=y("CheckboxBubbleInput",e),A=(0,n.useComposedRefs)(u,E),B=(0,a.useSize)(c),C=r.useRef(!1),j=r.useRef(p),R=r.useRef(h);r.useEffect(()=>{if(!x)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=h!==R.current;R.current=h;let r=j.current!==p;j.current=p;let n=!(t&&l.current);if(r&&e){C.current=!t;let r=new Event("click",{bubbles:n});x.indeterminate=k(p),e.call(x,!k(p)&&p),x.dispatchEvent(r),C.current=!1}},[x,p,l,h]);let S=r.useRef(!k(p)&&p);return(0,t.jsx)(f.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??S.current,required:g,disabled:m,name:v,value:b,form:w,...s,tabIndex:-1,ref:A,onClick:(0,o.composeEventHandlers)(i,e=>{C.current&&e.stopPropagation()}),style:{...s.style,...B,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function E(e){return"function"==typeof e}function k(e){return"indeterminate"===e}function A(e){return k(e)?"indeterminate":e?"checked":"unchecked"}l(E,"isFunction"),l(k,"isIndeterminate"),l(A,"getState");var B=e.i(638343),C=e.i(632137);e.s(["Checkbox",0,function({className:e,...r}){return(0,t.jsx)(b,{"data-slot":"checkbox",className:(0,C.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:(0,t.jsx)(w,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,t.jsx)(B.CheckIcon,{className:"size-3.5"})})})}],325329)}]);
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.