1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7859],{8096:(e,t,n)=>{n.d(t,{bL:()=>k});var r=n(14232),o=n.t(r,2);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function u(...e){return r.useCallback(l(...e),e)}var a=n(37876),s=n(33716),c=globalThis?.document?r.useLayoutEffect:()=>{},f=o[" useInsertionEffect ".trim().toString()]||c;Symbol("RADIX:SYNC_STATE");var d=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=r.useState(),l=r.useRef(null),u=r.useRef(e),a=r.useRef("none"),[s,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=p(l.current);a.current="mounted"===s?e:"none"},[s]),c(()=>{let t=l.current,n=u.current;if(n!==e){let r=a.current,o=p(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),c(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,n=n=>{let r=p(l.current).includes(n.animationName);if(n.target===o&&r&&(f("ANIMATION_END"),!u.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(a.current=p(l.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),l=u(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:l}):null};function p(e){return e?.animationName||"none"}d.displayName="Presence",n(98477);var m=Symbol("radix.slottable");function y(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===m}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var i;let e,u,a=(i=n,(u=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(u=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(s.ref=t?l(t,a):a),r.cloneElement(n,s)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...i}=e,l=r.Children.toArray(o),u=l.find(y);if(u){let e=u.props.children,o=l.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...i,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,a.jsx)(t,{...i,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),v="Checkbox",[b,g]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;n=[...n,o];let u=t=>{let{scope:n,children:o,...u}=t,s=n?.[e]?.[l]||i,c=r.useMemo(()=>u,Object.values(u));return(0,a.jsx)(s.Provider,{value:c,children:o})};return u.displayName=t+"Provider",[u,function(n,u){let a=u?.[e]?.[l]||i,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(v),[N,w]=b(v);function E(e){let{__scopeCheckbox:t,checked:n,children:o,defaultChecked:i,disabled:l,form:u,name:s,onCheckedChange:c,required:d,value:p="on",internal_do_not_use_render:m}=e,[y,h]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){let[i,l,u]=function({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),i=r.useRef(n),l=r.useRef(t);return f(()=>{l.current=t},[t]),r.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,o,l]}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:i;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,o])}return[s,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else l(t)},[a,e,l,u])]}({prop:n,defaultProp:i??!1,onChange:c,caller:v}),[b,g]=r.useState(null),[w,E]=r.useState(null),x=r.useRef(!1),R=!b||!!u||!!b.closest("form"),k={checked:y,disabled:l,setChecked:h,control:b,setControl:g,name:s,form:u,value:p,hasConsumerStoppedPropagationRef:x,required:d,defaultChecked:!_(i)&&i,isFormControl:R,bubbleInput:w,setBubbleInput:E};return(0,a.jsx)(N,{scope:t,...k,children:"function"==typeof m?m(k):o})}var x="CheckboxTrigger",R=r.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...o},i)=>{let{control:l,value:c,disabled:f,checked:d,required:p,setControl:m,setChecked:y,hasConsumerStoppedPropagationRef:v,isFormControl:b,bubbleInput:g}=w(x,e),N=u(i,m),E=r.useRef(d);return r.useEffect(()=>{let e=l?.form;if(e){let t=()=>y(E.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[l,y]),(0,a.jsx)(h.button,{type:"button",role:"checkbox","aria-checked":_(d)?"mixed":d,"aria-required":p,"data-state":j(d),"data-disabled":f?"":void 0,disabled:f,value:c,...o,ref:N,onKeyDown:(0,s.m)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.m)(n,e=>{y(e=>!!_(e)||!e),g&&b&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})});R.displayName=x;var k=r.forwardRef((e,t)=>
1{let{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:l,disabled:u,value:s,onCheckedChange:c,form:f,...d}=e;return(0,a.jsx)(E,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:u,required:l,onCheckedChange:c,name:r,form:f,value:s,internal_do_not_use_render:({isFormControl:e})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(R,{...d,ref:t,__scopeCheckbox:n}),e&&(0,a.jsx)(S,{__scopeCheckbox:n})]})})});k.displayName=v;var O="CheckboxIndicator";r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...o}=e,i=w(O,n);return(0,a.jsx)(d,{present:r||_(i.checked)||!0===i.checked,children:(0,a.jsx)(h.span,{"data-state":j(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})}).displayName=O;var C="CheckboxBubbleInput",S=r.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:o,hasConsumerStoppedPropagationRef:i,checked:l,defaultChecked:s,required:f,disabled:d,name:p,value:m,form:y,bubbleInput:v,setBubbleInput:b}=w(C,e),g=u(n,b),N=function(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(l),E=function(e){let[t,n]=r.useState(void 0);return c(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(o);r.useEffect(()=>{if(!v)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!i.current;if(N!==l&&e){let n=new Event("click",{bubbles:t});v.indeterminate=_(l),e.call(v,!_(l)&&l),v.dispatchEvent(n)}},[v,N,l,i]);let x=r.useRef(!_(l)&&l);return(0,a.jsx)(h.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??x.current,required:f,disabled:d,name:p,value:m,form:y,...t,tabIndex:-1,ref:g,style:{...t.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function _(e){return"indeterminate"===e}function j(e){return _(e)?"indeterminate":e?"checked":"unchecked"}S.displayName=C},45794:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(87430);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,u=[],a=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw o}}return u}}(e,t)||(0,r.A)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}}]); 2//# sourceMappingURL=7859-a84bc1dc613ecf65.js.map
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.