(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67638,e=>{"use strict";var t=e.i(47167);e.i(43476),e.i(10679);var r=e.i(8438);let s=(0,e.i(22468).g)("root-layout","sc");Object.freeze({layout:`${s}__layout`,body:`${s}__body`}),e.s(["getEnvValue",0,()=>{if(typeof window>"u")return{...t.default.env};let e=(0,r.g)();if(!e)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что env передан в RootLayout (LayoutClientInitializer вызовет setEnvStore).");return e}])},82372,e=>{"use strict";e.i(47167);let t=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,s=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o(e,t){var r;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(r=e,console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)):t}function a(e,n={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let i=e.trim();if(i.length<=9)switch(i.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return 1/0;case"-infinity":return-1/0}if(!s.test(e)){if(n.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(t.test(e)||r.test(e)){if(n.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,o)}return JSON.parse(e)}catch(t){if(n.strict)throw t;return e}}let n=/#/g,i=/&/g,l=/\//g,c=/=/g,d=/\+/g,u=/%5e/gi,p=/%60/gi,f=/%7c/gi,h=/%20/gi;function m(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(f,"|").replace(d,"%2B").replace(h,"+").replace(n,"%23").replace(i,"%26").replace(p,"`").replace(u,"^").replace(l,"%2F")}function g(e){return m(e).replace(c,"%3D")}function y(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let b=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,v=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,w=/^([/\\]\s*){2,}[^/\\]/,x=/\/$|\/\?|\/#/,$=/^\.?\//;function j(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?b.test(e):v.test(e)||!!t.acceptRelative&&w.test(e)}let _=Symbol.for("ufo:protocolRelative");function E(e=""){let[t="",r="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:s}}class N extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let S=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function C(e="GET"){return S.has(e.toUpperCase())}let k=new Set(["image/svg","application/xml","application/xhtml","application/html"]),T=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function R(e,t){if(t)if(Array.isArray(t))for(let r of t)await r(e);else await t(e)}let A=new Set([408,409,425,429,500,502,503,504]),L=new Set([101,204,205,304]),I="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,D=I.fetch?(...e)=>I.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),q=function e(t={}){let{fetch:r=globalThis.fetch,Headers:s=globalThis.Headers,AbortController:o=globalThis.AbortController}=t;async function n(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:+!C(e.options.method);let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):A.has(r))){let r="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),i(e.request,{...e.options,retry:t-1})}}let r=function(e){let t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",o=`[${r}] ${JSON.stringify(s)}`,a=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",n=new N(`${o}: ${a}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(n,t,{get:()=>e[t]});for(let[t,r]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(n,t,{get:()=>e.response&&e.response[r]});return n}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,i),r}let i=async function(e,i={}){var l,c,u,p;let f,h,b,v={request:e,options:(l=t.defaults,b=function(e,t,r){if(!t)return new r(e);let s=new r(t);if(e)for(let[t,o]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))s.set(t,o);return s}(i?.headers??e?.headers,l?.headers,s),(l?.query||l?.params||i?.params||i?.query)&&(h={...l?.params,...l?.query,...i?.params,...i?.query}),{...l,...i,query:h,params:h,headers:b}),response:void 0,error:void 0};if(v.options.method&&(v.options.method=v.options.method.toUpperCase()),v.options.onRequest&&(await R(v,v.options.onRequest),v.options.headers instanceof s||(v.options.headers=new s(v.options.headers||{}))),"string"==typeof v.request){if(v.options.baseURL&&(v.request=function(e,t){var r;if(!(r=t)||"/"===r||j(e))return e;let s=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(s)){let t=e[s.length];if(!t||"/"===t||"?"===t)return e}return function(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace($,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}(s,e)}(v.request,v.options.baseURL)),v.options.query){let e,t,r,s,o,a,n;c=v.request,u=v.options.query,t={...function(e=""){let t=Object.create(null);for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let s=y(e[1].replace(d," "));if("__proto__"===s||"constructor"===s)continue;let o=y((e[2]||"").replace(d," "));void 0===t[s]?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}((e=function e(t="",r){let s=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(s){let[,e,t=""]=s;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!j(t,{acceptRelative:!0}))return r?e(r+t):E(t);let[,o="",a,n=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",l=""]=n.match(/([^#/?]*)(.*)?/)||[];"file:"===o&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:c,search:d,hash:u}=E(l);return{protocol:o.toLowerCase(),auth:a?a.slice(0,Math.max(0,a.length-1)):"",host:i,pathname:c,search:d,hash:u,[_]:!o}}(c)).search),...u},e.search=Object.keys(t).filter(e=>void 0!==t[e]).map(e=>{var r;return(("number"==typeof(r=t[e])||"boolean"==typeof r)&&(r=String(r)),r)?Array.isArray(r)?r.map(t=>`${g(e)}=${m(t)}`).join("&"):`${g(e)}=${m(r)}`:g(e)}).filter(Boolean).join("&"),r=(p=e).pathname||"",s=p.search?(p.search.startsWith("?")?"":"?")+p.search:"",o=p.hash||"",a=p.auth?p.auth+"@":"",n=p.host||"",v.request=(p.protocol||p[_]?(p.protocol||"")+"//":"")+a+n+r+s+o,delete v.options.query}"query"in v.options&&delete v.options.query,"params"in v.options&&delete v.options.params}if(v.options.body&&C(v.options.method))if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(v.options.body)){let e=v.options.headers.get("content-type");"string"!=typeof v.options.body&&(v.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(v.options.body).toString():JSON.stringify(v.options.body)),e||v.options.headers.set("content-type","application/json"),v.options.headers.has("accept")||v.options.headers.set("accept","application/json")}else("pipeTo"in v.options.body&&"function"==typeof v.options.body.pipeTo||"function"==typeof v.options.body.pipe)&&!("duplex"in v.options)&&(v.options.duplex="half");if(!v.options.signal&&v.options.timeout){let e=new o;f=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},v.options.timeout),v.options.signal=e.signal}try{v.response=await r(v.request,v.options)}catch(e){return v.error=e,v.options.onRequestError&&await R(v,v.options.onRequestError),await n(v)}finally{f&&clearTimeout(f)}if((v.response.body||v.response._bodyInit)&&!L.has(v.response.status)&&"HEAD"!==v.options.method){let e=(v.options.parseResponse?"json":v.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return T.test(t)?"json":"text/event-stream"===t?"stream":k.has(t)||t.startsWith("text/")?"text":"blob"}(v.response.headers.get("content-type")||"");switch(e){case"json":{let e=await v.response.text(),t=v.options.parseResponse||a;v.response._data=t(e);break}case"stream":v.response._data=v.response.body||v.response._bodyInit;break;default:v.response._data=await v.response[e]()}}return(v.options.onResponse&&await R(v,v.options.onResponse),!v.options.ignoreResponseError&&v.response.status>=400&&v.response.status<600)?(v.options.onResponseError&&await R(v,v.options.onResponseError),await n(v)):v.response},l=async function(e,t){return(await i(e,t))._data};return l.raw=i,l.native=(...e)=>r(...e),l.create=(r={},s={})=>e({...t,...s,defaults:{...t.defaults,...s.defaults,...r}}),l}({fetch:D,Headers:I.Headers,AbortController:I.AbortController});var O=e.i(67638);let P=0,U=[],M=new Map,F=async()=>{P>=12&&await new Promise(e=>{U.push(e)}),P+=1},B=async e=>{await F();try{return await e()}finally{P=Math.max(0,P-1),U.shift()?.()}},H=(e,t)=>{let{isPageContent:r,isMpScRedirects:s,isMpScApi:o,isMpScNavigator:a}=t;return r?`${e.NEXT_PUBLIC_BASE_URL}/page-content`:o||a?`${e.NEXT_PUBLIC_BASE_URL}/sc`:e.NEXT_PUBLIC_BASE_URL},z=async({url:e,endpoint:t,method:r,config:s,env:o,tags:a})=>{let n=new AbortController,i=setTimeout(()=>n.abort(),5e3),l=()=>n.abort();s?.signal?.aborted&&n.abort(),s?.signal?.addEventListener("abort",l,{once:!0});let c=performance.now();try{let a=await q(e,{baseURL:t,method:r,headers:{...s?.headers},...s,signal:n.signal,timeout:5e3,retry:0,next:{revalidate:Number(o.REVALIDATE_REQUEST_VALUE)||1800,...{}}}),i=performance.now()-c;return i>=1e3&&console.warn(`Запрос ${t}${e} занял ${i.toFixed(2)} ms`),{data:a,error:null}}catch(r){return r.status??r.statusCode,console.error("Ошибка запроса",`${r}: ${t}${e}`),{data:null,error:r||"Unknown error"}}finally{clearTimeout(i),s?.signal?.removeEventListener("abort",l)}},J=async({url:e,options:t={},config:r})=>{let s=(0,O.getEnvValue)(),o=H(s,t),a=(r?.method||"GET").toUpperCase();if(!o)return console.error("Ошибка запроса: API endpoint не задан",e),{data:null,error:"API endpoint is not configured"};let n=()=>B(()=>z({url:e,endpoint:o,method:a,config:r,env:s,tags:t.tags}));if(r?.signal||"GET"!==a&&"HEAD"!==a)return n();var i=`${a}:${o}${e}`;let l=M.get(i);if(l)return l;let c=n().finally(()=>{M.delete(i)});return M.set(i,c),c};e.s(["callApi",0,J,"getApiEndpoint",0,H],82372)},231,e=>{"use strict";let t={setItem:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.localStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let r=t.getItemRaw(e);if(r&&"undefined"!==r)try{return JSON.parse(r)}catch{console.warn(`invalid object in localStorage by key: ${e}`)}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}},r={setItem:(e,t)=>{try{window.sessionStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.sessionStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let t=r.getItemRaw(e);if(t&&"undefined"!==t)try{return JSON.parse(t)}catch{console.warn(`invalid object in localStorage by key: ${e}`)}return null},removeItem:e=>{try{window.sessionStorage.removeItem(e)}catch(e){console.error(e)}}};e.s(["appLocalStorage",0,t,"appSessionStorage",0,r])},62798,e=>{"use strict";e.i(91402),e.s(["pluralize",0,(e,t,r,s)=>{let o=[t,r,s];return o[e%100>4&&e%100<20?2:[2,0,1,1,1,2][e%10<5?e%10:5]]||o[0]}])},30083,e=>{"use strict";var t=e.i(71645);e.s(["S",0,function(e){return t.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("defs",null,t.createElement("clipPath",{id:"a"},t.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),t.createElement("g",{clipPath:"url(#a)"},t.createElement("path",{d:"m10.53 16.53 8.25-8.25a.743.743 0 0 0 0-1.06.743.743 0 0 0-1.06 0L10 14.94l-3.72-3.72a.743.743 0 0 0-1.06 0 .743.743 0 0 0 0 1.06l4.25 4.25c.146.147.323.22.53.22a.722.722 0 0 0 .53-.22Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))},"g",0,(e,t,r)=>{if(e)return"object"!=typeof e?r:"function"==typeof t?t(e):e[t]},"v",0,e=>{let{width:t,height:r}=e.getBoundingClientRect();return{x:{start:e.scrollLeft,end:Math.floor(e.scrollLeft+t)},y:{start:e.scrollTop,end:Math.floor(e.scrollTop+r)}}}])},10653,e=>{"use strict";e.s(["i",0,function(e){return void 0!==e}])},33329,e=>{"use strict";var t=e.i(43476),r=e.i(7670),s=e.i(71645),o=e.i(2404),a=e.i(54061);function n(e){return s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.836 6.466a1.5 1.5 0 0 1-.051 2.12l-9.45 9a1.5 1.5 0 0 1-2.07 0l-4.05-3.857a1.5 1.5 0 1 1 2.07-2.172L9.3 14.429l8.415-8.015a1.5 1.5 0 0 1 2.121.052Z"}))}function i(e){return s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{width:18,height:3,x:3,y:10.5,fill:"currentColor",rx:1.5}))}let l=["checkbox"],c=(0,a.g)("common-marker"),d={marker:c,icon:`${c}__icon`,states:{checkbox:`${c}--checkbox`,radio:`${c}--radio`,toggle:`${c}--toggle`,error:`${c}--error`,checked:`${c}--checked`,disabled:`${c}--disabled`,inverted:`${c}--inverted`,indeterminate:`${c}--indeterminate`}},u=({as:e,state:s="default",type:a="checkbox",className:c,checked:u,inverted:p,disabled:f,...h})=>(0,t.jsx)(e||"span",{...h,className:(0,r.default)(c,d.marker,{[d.states.checkbox]:"checkbox"===a,[d.states.radio]:"radio"===a,[d.states.toggle]:"toggle"===a,[d.states.checked]:!!u,[d.states.indeterminate]:"indeterminate"===u,[d.states.error]:"error"===s,[d.states.inverted]:p,[d.states.disabled]:f}),children:l.includes(a)&&(0,t.jsx)(o.P,{className:(0,r.default)(d.icon,{[d.states.checked]:u,[d.states.inverted]:p,[d.states.error]:"error"===s,[d.states.disabled]:f}),children:"indeterminate"===u?(0,t.jsx)(i,{}):(0,t.jsx)(n,{})})});u.displayName="CommonMarker",e.s(["C",0,u])},23179,e=>{"use strict";var t=e.i(43476),r=e.i(54061),s=e.i(71645),o=e.i(7670),a=e.i(43489),n=e.i(53760),i=e.i(58950),l=e.i(2753),c=e.i(89485),d=e.i(14044),u=e.i(21214),p=e.i(2404);function f(){return"u"<typeof window}let h=f()?s.useLayoutEffect:s.useEffect;function m(e,t=!1){return f()?t:window.matchMedia(e).matches}function g(e){let{minWidth:t}=c.a[e];return function(e,{defaultValue:t=!1,initializeWithValue:r=!0}={}){let[o,a]=(0,s.useState)(()=>r?m(e,t):t??!1);function n(){a(m(e))}return h(()=>{let t=window.matchMedia(e);return n(),"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},[e]),o}(`screen and (min-width: ${t}px)`)}let y=Object.freeze({divider:(0,r.g)("dropdown-divider")}),b=({...e})=>(0,t.jsx)("div",{...e,className:y.divider});b.displayName="DropdownDivider";let v=(0,r.g)("dropdown-group"),w=Object.freeze({group:v,title:`${v}__title`,content:`${v}__content`}),x=({title:e,children:r,...s})=>(0,t.jsxs)("div",{...s,className:w.group,children:[(0,t.jsx)("div",{className:w.title,children:e}),(0,t.jsx)("div",{className:w.content,children:r})]});x.displayName="DropdownGroup";let $=(0,r.g)("dropdown-option"),j=Object.freeze({option:$,slot:`${$}__slot`,iconSlot:`${$}__slot--icon`,wrapper:`${$}__wrapper`,label:`${$}__label`,caption:`${$}__caption`,states:{danger:`${$}--danger`,success:`${$}--success`,focused:`${$}--focused`,disabled:`${$}--disabled`}}),_=(0,s.createContext)(null),E=()=>{let e=(0,s.useContext)(_);if(null===e)throw Error("Dropdown components must be wrapped in <Dropdown />");return e};function N({placement:e="bottom",width:t="auto",desktopMaxHeight:r,mobileFullHeight:o=!1,title:l,description:c,opened:d,onToggle:u,heading:p,footer:f,dataQa:h,dataId:m}={}){let[g,y]=(0,s.useState)(!1),b=d??g,v=u??y,w=(0,a.useFloating)({open:b,onOpenChange:v,placement:e,whileElementsMounted:n.autoUpdate,middleware:[(0,i.offset)(8),(0,i.flip)({fallbackAxisSideDirection:"none"}),(0,i.shift)({crossAxis:!1,padding:8})]});return(0,s.useMemo)(()=>({open:b,setOpen:v,...w,width:t,desktopMaxHeight:r,title:l,description:c,heading:p,footer:f,mobileFullHeight:o,dataQa:h,dataId:m}),[b,v,w,t,r,l,c,p,f,o,h,m])}let S=({children:e,...r})=>{let s=N(r);return(0,t.jsx)(_.Provider,{value:s,children:e})};S.displayName="Dropdown";let C=(0,r.g)("dropdown"),k=Object.freeze({dropdown:C,overlay:`${C}__overlay`,mobileHeading:`${C}__mobile-heading`,heading:`${C}__heading`,title:`${C}__title`,description:`${C}__description`,content:`${C}__content`,contentInner:`${C}__content-inner`,footer:`${C}__footer`,close:`${C}__close`,closeIcon:`${C}__close-icon`,states:{auto:`${C}--auto`,fullHeight:`${C}--full-height`}}),T=({footer:e,...r})=>e?(0,t.jsx)("div",{...r,className:k.footer,children:e}):null;T.displayName="DropdownFooter";let R=({title:e,description:r,heading:o,isDesktop:a,setOpen:n,...i})=>{let l=(0,s.useMemo)(()=>o||(a&&(e||r)?(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)("div",{className:k.title,children:e}),r&&(0,t.jsx)("div",{className:k.description,children:r})]}):null),[r,o,a,e]);return(0,t.jsxs)(t.Fragment,{children:[!a&&(0,t.jsxs)("div",{...i,className:k.mobileHeading,children:[e&&(0,t.jsx)("div",{className:k.title,children:e}),r&&(0,t.jsx)("div",{className:k.description,children:r}),(0,t.jsx)("button",{className:k.close,type:"button",tabIndex:-1,"aria-label":"Закрыть окно",onClick:()=>n(!1),children:(0,t.jsx)(p.P,{"aria-hidden":"true",className:k.closeIcon,style:{display:"inline-flex"},children:(0,t.jsx)(u.S,{})})})]}),l&&(0,t.jsx)("div",{...i,className:k.heading,children:l})]})};R.displayName="DropdownHeader";let A=(0,s.forwardRef)(({style:e,contentInnerRef:r,...n},i)=>{var c,u;let{open:p,context:f,width:h,floatingStyles:m,refs:y,heading:b,title:v,description:w,footer:x,desktopMaxHeight:$,mobileFullHeight:j,dataQa:_,dataId:N,setOpen:S}=E(),C=(0,a.useMergeRefs)([y.setFloating,i]),A=(0,s.useRef)(null),L=g("s"),{isMounted:I,styles:D}=(0,a.useTransitionStyles)(f,{initial:{opacity:.2,transform:L?"translate(0, 0)":"translate(0, 100%)"},open:{opacity:1,transform:"translate(0, 0)"},duration:{open:300,close:100}});if((0,s.useEffect)(()=>{let e=({target:e})=>{!p||[A.current,y.reference.current].some(t=>t===e||t&&t.contains(e))||S(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p,y.reference,S]),!I)return null;let q=(0,t.jsxs)("div",{ref:A,className:(0,o.default)(k.dropdown,{[k.states.fullHeight]:j}),role:L?"popup":"dialog","aria-modal":!L,"data-id":N,"data-qa":_,style:D,children:[(0,t.jsx)(R,{title:v,description:w,heading:b,isDesktop:L,setOpen:S,"data-qa":(0,d.g)(`${_}-header`,!!_)}),(0,t.jsx)("div",{...n,className:k.content,"data-qa":(0,d.g)(`${_}-content`,!!_),children:(0,t.jsx)("div",{className:k.contentInner,style:{maxHeight:L?$:void 0},ref:r,children:n.children})}),(0,t.jsx)(T,{"data-qa":(0,d.g)(`${_}-header`,!!_),footer:x})]});if(L){let r;return"inherit"===h?r=null==(u=null==(c=null==y?void 0:y.reference)?void 0:c.current)?void 0:u.clientWidth:"auto"===h?r=void 0:"number"==typeof h&&(r=h),(0,t.jsx)("div",{className:(0,o.default)(k.overlay,{[k.states.auto]:"auto"===h}),style:{...e,...m,...void 0!==r&&{width:r}},ref:C,children:q})}return(0,t.jsx)(a.FloatingPortal,{id:l.D,children:(0,t.jsx)(a.FloatingOverlay,{lockScroll:!0,className:(0,o.default)(k.overlay,{[k.states.auto]:"auto"===h}),style:e,ref:C,children:q})})});A.displayName="DropdownContent";let L=(0,s.forwardRef)(function({children:e,asChild:r=!1,disabled:o,...n},i){let{refs:l,open:c,setOpen:d}=E(),u=e.ref,p=(0,a.useMergeRefs)([l.setReference,i,u]),f=(0,s.useCallback)(()=>{o||d(!c)},[o,c,d]);return r&&(0,s.isValidElement)(e)?(0,s.cloneElement)(e,{ref:p,disabled:o,onClick:f,...n,...e.props}):(0,t.jsx)("button",{ref:p,onClick:f,disabled:o,...n,type:"button",children:e})});L.displayName="DropdownTrigger",e.s(["D",0,S,"a",0,A,"b",0,_,"c",0,b,"d",0,T,"e",0,x,"f",0,R,"g",0,function({as:e,label:r,caption:a,iconLeft:n,iconRight:i,prepend:l,append:c,variant:d="default",disabled:u=!1,focused:p=!1,className:f,onClick:h,...m}){let g=(0,o.default)(f,j.option,{[j.states.focused]:p,[j.states.success]:"success"===d,[j.states.danger]:"danger"===d,[j.states.disabled]:!!u}),y=(0,s.useCallback)(e=>{e.preventDefault(),u||null==h||h(e)},[u,h]);return(0,t.jsxs)(e||"div",{...m,className:g,"aria-disabled":u,onClick:y,children:[l&&(0,t.jsx)("span",{className:j.slot,children:l}),n&&(0,t.jsx)("span",{className:(0,o.default)(j.slot,j.iconSlot),children:n}),(0,t.jsxs)("div",{className:j.wrapper,children:[(0,t.jsx)("span",{className:j.label,children:r}),a&&(0,t.jsx)("span",{className:j.caption,children:a})]}),i&&(0,t.jsx)("span",{className:(0,o.default)(j.slot,j.iconSlot),children:i}),c&&(0,t.jsx)("span",{className:j.slot,children:c})]})},"h",0,L,"i",0,"div","j",0,E,"k",0,g,"u",0,N])},14087,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(7670),o=e.i(30083),a=e.i(2404),n=e.i(10653),i=e.i(33329),l=e.i(23179);function c(e){return r.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"m19.03 10.28-6.5 6.5a.75.75 0 0 1-1.06 0l-6.5-6.5a.75.75 0 1 1 1.06-1.06L12 15.19l5.97-5.97a.75.75 0 1 1 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let d=(0,e.i(54061).g)("select"),u={select:d,activator:`${d}__activator`,activatorWrapper:`${d}__activator-wrapper`,placeholder:`${d}__placeholder`,selected:`${d}__selected`,label:`${d}__label`,rightLabel:`${d}__right-label`,icon:`${d}__icon`,options:`${d}__options`,optionIcon:`${d}__option-icon`,caption:`${d}__caption`,states:{primary:`${d}--primary`,secondary:`${d}--secondary`,small:`${d}--s`,medium:`${d}--m`,large:`${d}--l`,opened:`${d}--opened`,error:`${d}--error`,success:`${d}--success`,selected:`${d}--selected`,disabled:`${d}--disabled`}};function p({value:e,label:d,options:f=[],optionValue:h="value",optionLabel:m="label",optionCaption:g="caption",optionDisabled:y="disabled",variant:b="primary",state:v,size:w="m",icon:x,rightLabel:$,clearable:j=!1,multiple:_=!1,disabled:E=!1,caption:N,placeholder:S,className:C,dataId:k,dataQa:T,isOpen:R=!1,classnameTrigger:A,selectedValue:L,onChange:I,onToggle:D,onSelect:q,onUnselect:O,onFocus:P,onBlur:U,...M}){let[F,B]=(0,r.useState)(!1),[H,z]=(0,r.useState)(),[J,W]=(0,r.useState)(),[V,G]=(0,r.useState)(!1),K=(0,r.useRef)(null),Z=(0,r.useId)(),X=(0,r.useId)(),Q=(0,r.useId)();(0,r.useEffect)(()=>{e?z(e):z(_?[]:void 0)},[_,e]);let Y=(0,r.useMemo)(()=>f.map((e,t)=>{let r=(0,o.g)(e,h,e),s=_&&Array.isArray(H)?H.map(e=>(0,o.g)(e,h,e)):(0,o.g)(H,h,H);return{index:t,value:r,label:(0,o.g)(e,m,e),caption:(0,o.g)(e,g),disabled:(0,o.g)(e,y,!1),selected:_?Array.isArray(s)&&s.includes(r):s===r,active:J===t,original:e,id:`${Q}-option-${t}`}}),[J,Q,H,_,g,y,m,h,f]),ee=(0,r.useMemo)(()=>Y.filter(e=>e.selected),[Y]),et=(0,r.useMemo)(()=>(0,n.i)(J)&&Y[J].id,[J]),er=(0,r.useCallback)(e=>{z(e),null==I||I(e)},[I]),es=(0,r.useCallback)(()=>{if(K.current&&et){let{start:e,end:t}=(0,o.v)(K.current).y,r=document.getElementById(et);if(r){let s=r.offsetTop+r.clientHeight-t,o=e-r.offsetTop;s>0?K.current.scrollTop+=s+8:o>0&&(K.current.scrollTop-=o+8)}}},[et]),eo=e=>{B(e),null==D||D(e)},ea=(0,r.useCallback)(e=>{if(!(0,n.i)(e))return 0;let t=0===e?Y.length-1:e-1;return Y[t].disabled?ea(t):t},[Y]),en=(0,r.useCallback)(e=>{if(!(0,n.i)(e))return 0;let t=e===Y.length-1?0:e+1;return Y[t].disabled?en(t):t},[Y]),ei=(0,r.useCallback)(e=>{let t=e&&e.index!==Y.length-1?Y[e.index+1]:Y[0];return t.disabled?ei(t):t},[Y]),el=(0,r.useCallback)(e=>{let t=e&&0!==e.index?Y[e.index-1]:Y[Y.length-1];return t.disabled?el(t):t},[Y]),ec=()=>{eo(!0),W(ee.length>0?ee[0].index:0)},ed=()=>{eo(!1),W(void 0)},eu=(0,r.useCallback)(e=>{if(!_){er(j&&e.selected?void 0:e.original),ed();return}if(e.selected&&Array.isArray(H)){er(H.filter(t=>(0,o.g)(t,h,t)!==e.value)),null==O||O(e.original);return}Array.isArray(H)&&(er([...H,e.original]),null==q||q(e.original))},[j,ed,H,_,q,O,h,er]),ep=(0,r.useCallback)(e=>{e.preventDefault(),F?ed():(j||_)&&(ee.forEach(e=>null==O?void 0:O(e.original)),er(_?[]:void 0))},[j,ed,_,O,F,ee,er]),ef=(0,r.useCallback)(()=>{F&&ed()},[ed,F]),eh=(0,r.useCallback)(e=>{(e.preventDefault(),F)?W(ea(J)):_||er(el(ee[0]).original)},[J,ea,el,_,F,ee,er]),em=(0,r.useCallback)(e=>{(e.preventDefault(),F)?W(en(J)):_?ec():er(ei(ee[0]).original)},[J,en,ei,_,F,ec,ee,er]),eg=(0,r.useCallback)(e=>{switch(G(!0),e.key){case"Escape":case"Esc":ep(e);break;case"Tab":ef();break;case"ArrowDown":em(e);break;case"ArrowUp":eh(e)}},[em,eh,ep,ef]),ey=(0,r.useCallback)(e=>{(e.preventDefault(),F)?((0,n.i)(J)&&eu(Y[J]),_||ed()):ec()},[J,ed,eu,Y,_,F,ec]),eb=(0,r.useCallback)(e=>{G(!0),(" "===e.key||"Enter"===e.key)&&ey(e)},[ey]);(0,r.useEffect)(()=>{R&&(()=>{eo(!0);let{value:t,label:r}=(Array.isArray(e)?e[0]:e)??{},s=Y.find(e=>e.value===t&&e.label===r);W((null==s?void 0:s.index)??0)})()},[R]),(0,r.useEffect)(()=>{F&&es()},[F,es]),(0,r.useEffect)(()=>{if(!F)return;let e=e=>{eg(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[eg,F]);let ev=(0,s.default)(A,u.activator,{[u.states.primary]:"primary"===b,[u.states.secondary]:"secondary"===b,[u.states.small]:"s"===w,[u.states.medium]:"m"===w,[u.states.large]:"l"===w,[u.states.error]:"error"===v,[u.states.success]:"success"===v,[u.states.opened]:F,[u.states.disabled]:E}),ew=(0,r.useMemo)(()=>ee.length>0?(0,t.jsxs)(t.Fragment,{children:["s"!==w&&(0,t.jsx)("div",{id:X,className:(0,s.default)(u.label,{[u.states.error]:"error"===v,[u.states.success]:"success"===v,[u.states.opened]:F,[u.states.disabled]:E}),children:d},"label"),(0,t.jsx)("div",{className:(0,s.default)(u.selected,{[u.states.disabled]:E}),children:(null==L?void 0:L(ee.map(e=>e.original)))||ee.map(({label:e})=>e).join(", ")})]}):(0,t.jsx)("div",{id:X,className:(0,s.default)(u.placeholder,{[u.states.error]:"error"===v,[u.states.success]:"success"===v,[u.states.opened]:F,[u.states.disabled]:E}),children:S||d},"placeholder"),[E,d,X,F,S,ee,L,w,v]);return(0,t.jsx)("div",{className:(0,s.default)(C,u.select),children:(0,t.jsxs)(l.D,{opened:F,onToggle:()=>{F?ed():ec()},width:"inherit",placement:"bottom",children:[(0,t.jsx)(l.h,{asChild:!0,disabled:E,children:(0,t.jsxs)("div",{className:ev,id:Z,tabIndex:E?-1:0,role:"combobox","aria-haspopup":"listbox","aria-labelledby":X,"aria-controls":Q,"aria-disabled":E,"aria-expanded":F,...!E&&{onFocus:e=>{null==P||P(e)},onBlur:e=>{null==U||U(e)},onKeyDownCapture:eb,onKeyDown:F?void 0:eg},...M,"data-id":k,"data-qa":T,children:[(0,t.jsx)("div",{className:u.activatorWrapper,children:ew}),$&&(0,t.jsx)("div",{"aria-label":$,className:(0,s.default)(u.rightLabel,{[u.states.disabled]:E}),children:$}),x&&(0,t.jsx)("div",{"aria-hidden":"true",className:(0,s.default)(u.icon,{[u.states.disabled]:E}),children:x}),(0,t.jsx)("div",{className:(0,s.default)(u.icon,{[u.states.disabled]:E,[u.states.opened]:F}),children:(0,t.jsx)(a.P,{style:{fontSize:24},"aria-expanded":F,children:(0,t.jsx)(c,{})})})]})}),N&&(0,t.jsx)("div",{className:(0,s.default)(u.caption,{[u.states.error]:"error"===v,[u.states.success]:"success"===v,[u.states.secondary]:"secondary"===b,[u.states.disabled]:E}),children:N}),(0,t.jsx)(l.a,{contentInnerRef:K,children:(0,t.jsx)("ul",{role:"listbox",id:Q,className:u.options,onMouseOver:()=>{V&&G(!1)},children:Y.map(e=>(0,t.jsx)(l.g,{as:"li",disabled:e.disabled,label:e.label,caption:e.caption,focused:e.active&&V,onClick:()=>eu(e),prepend:_?(0,t.jsx)(i.C,{type:"checkbox",checked:e.selected,disabled:e.disabled}):void 0,append:_?void 0:(0,t.jsx)(a.P,{className:(0,s.default)(u.optionIcon,{[u.states.selected]:e.selected}),style:{fontSize:24},children:(0,t.jsx)(o.S,{})}),"aria-selected":e.selected,role:"option",id:e.id},JSON.stringify(e.value)))})})]})})}p.displayName="Select",e.s(["Select",0,p])},65018,e=>{"use strict";var t=e.i(71645);let r={xl:"screen and (max-width: 1440px)",lg:"screen and (max-width: 1200px)",md:"screen and (max-width: 900px)",sm:"screen and (max-width: 600px)"};e.s(["useMedia",0,(e="lg")=>{let s=(0,t.useRef)(null),[o,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{!s.current&&window&&(s.current=window?.matchMedia(r[e]||e));let t=()=>{a(!!s.current&&s.current.matches)};return t(),s.current?.addEventListener("change",t),()=>s.current?.removeEventListener("change",t)},[e]),o}])}]);