(()=>{"use strict";var e,t,n={495:(e,t,n)=>{function r(e){var t,n,r;return{lang:null!==(t=null==e?void 0:e.lang)&&void 0!==t?t:void 0,message:null==e?void 0:e.message,abortEarly:null!==(n=null==e?void 0:e.abortEarly)&&void 0!==n?n:void 0,abortPipeEarly:null!==(r=null==e?void 0:e.abortPipeEarly)&&void 0!==r?r:void 0}}function o(e){const t=typeof e;return"string"===t?'"'.concat(e,'"'):"number"===t||"bigint"===t||"boolean"===t?"".concat(e):"object"===t||"function"===t?null!==(n=e&&(null===(r=Object.getPrototypeOf(e))||void 0===r||null===(r=r.constructor)||void 0===r?void 0:r.name))&&void 0!==n?n:"null":t;var n,r}function s(e,t,n,r,s){var i,a,l,u,c,d,f,p;const h=s&&"input"in s?s.input:n.value,v=null!==(i=null!==(a=null==s?void 0:s.expected)&&void 0!==a?a:e.expects)&&void 0!==i?i:null,g=null!==(l=null==s?void 0:s.received)&&void 0!==l?l:o(h),m={kind:e.kind,type:e.type,input:h,expected:v,received:g,message:"Invalid ".concat(t,": ").concat(v?"Expected ".concat(v," but r"):"R","eceived ").concat(g),requirement:e.requirement,path:null==s?void 0:s.path,issues:null==s?void 0:s.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},y="schema"===e.kind,b=null!==(u=null!==(c=null!==(d=null!==(f=null!==(p=null==s?void 0:s.message)&&void 0!==p?p:e.message)&&void 0!==f?f:(w=e.reference,S=m.lang,null===(x=undefined)||void 0===x||null===(x=x.get(w))||void 0===x?void 0:x.get(S)))&&void 0!==d?d:y?function(e){var t;return null===(t=undefined)||void 0===t?void 0:t.get(e)}(m.lang):null)&&void 0!==c?c:r.message)&&void 0!==u?u:function(e){var t;return null===(t=undefined)||void 0===t?void 0:t.get(e)}(m.lang);var w,S,x;b&&(m.message="function"==typeof b?b(m):b),y&&(n.typed=!1),n.issues?n.issues.push(m):n.issues=[m]}function i(e){return{version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},r())}}function a(e,t){var n;const r=[...new Set(e)];return r.length>1?"(".concat(r.join(" ".concat(t," ")),")"):null!==(n=r[0])&&void 0!==n?n:"never"}n.d(t,{j:()=>k,$:()=>O});var l=class extends Error{constructor(e){var t,n,r;super(e[0].message),t=this,r=void 0,(n=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(n="issues"))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.name="ValiError",this.issues=e}};function u(e,t){return{kind:"validation",type:"max_value",reference:u,async:!1,expects:"<=".concat(e instanceof Date?e.toJSON():o(e)),requirement:e,message:t,"~run"(e,t){return!e.typed||e.value<=this.requirement||s(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():o(e.value)}),e}}}function c(e,t){return{kind:"validation",type:"min_value",reference:c,async:!1,expects:">=".concat(e instanceof Date?e.toJSON():o(e)),requirement:e,message:t,"~run"(e,t){return!e.typed||e.value>=this.requirement||s(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():o(e.value)}),e}}}function d(e,t,n){return"function"==typeof e.fallback?e.fallback(t,n):e.fallback}function f(e,t){return{...e,fallback:t,"~run"(t,n){const r=e["~run"](t,n);return r.issues?{typed:!0,value:d(this,r,n)}:r}}}function p(e){return{kind:"schema",type:"boolean",reference:p,expects:"boolean",async:!1,message:e,get"~standard"(){return i(this)},"~run"(e,t){return"boolean"==typeof e.value?e.typed=!0:s(this,"type",e,t),e}}}function h(e,t){const n=Object.entries(e).filter((e=>{let[t]=e;return isNaN(+t)})).map((e=>{let[,t]=e;return t}));return{kind:"schema",type:"enum",reference:h,expects:a(n.map(o),"|"),async:!1,enum:e,options:n,message:t,get"~standard"(){return i(this)},"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:s(this,"type",e,t),e}}}function v(e){return{kind:"schema",type:"number",reference:v,expects:"number",async:!1,message:e,get"~standard"(){return i(this)},"~run"(e,t){return"number"!=typeof e.value||isNaN(e.value)?s(this,"type",e,t):e.typed=!0,e}}}function g(e,t){return{kind:"schema",type:"object",reference:g,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return i(this)},"~run"(e,t){const n=e.value;if(n&&"object"==typeof n){e.typed=!0,e.value={};for(const o in this.entries){const s=n[o],i=this.entries[o]["~run"]({value:s},t);if(i.issues){const a={type:"object",origin:"value",input:n,key:o,value:s};for(const t of i.issues){var r;t.path?t.path.unshift(a):t.path=[a],null===(r=e.issues)||void 0===r||r.push(t)}if(e.issues||(e.issues=i.issues),t.abortEarly){e.typed=!1;break}}i.typed||(e.typed=!1),(void 0!==i.value||o in n)&&(e.value[o]=i.value)}}else s(this,"type",e,t);return e}}}function m(e,t){return{kind:"schema",type:"optional",reference:m,expects:"(".concat(e.expects," | undefined)"),async:!1,wrapped:e,default:t,get"~standard"(){return i(this)},"~run"(e,t){return void 0===e.value&&(void 0!==this.default&&(e.value=function(e,t,n){return"function"==typeof e.default?e.default(t,n):e.default}(this,e,t)),void 0===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function y(e){return{kind:"schema",type:"string",reference:y,expects:"string",async:!1,message:e,get"~standard"(){return i(this)},"~run"(e,t){return"string"==typeof e.value?e.typed=!0:s(this,"type",e,t),e}}}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{...t[0],pipe:t,"~run"(e,n){for(const r of t)if("metadata"!==r.kind){if(e.issues&&("schema"===r.kind||"transformation"===r.kind)){e.typed=!1;break}e.issues&&(n.abortEarly||n.abortPipeEarly)||(e=r["~run"](e,n))}return e}}}var w=n(6772);const S=(e,t)=>b(v(),c(e),u(t)),x=/^(\d+)\s* \s*(\d*(?:\.\d+)?%)\s* \s*(\d*(?:\.\d+)?%)$/;let k=function(e){return e.MEMORY="MEMORY",e.DEFAULT="DEFAULT",e}({});const E=function e(t,n){return{kind:"schema",type:"custom",reference:e,expects:"unknown",async:!1,check:t,message:n,get"~standard"(){return i(this)},"~run"(e,t){return this.check(e.value)?e.typed=!0:s(this,"type",e,t),e}}}((e=>void 0===e||"string"==typeof e&&x.test(e))),A=g({appId:y(),apiUrl:y(),watermark:f(p(),!0),placeholderText:f(y(),"Искать на сайте"),disableLinks:f(p(),!1),disableImages:f(p(),!1),currency:f(h(w.S),w.S.RUB),disablePrices:f(p(),!1),router:f(g({mode:f(h(k),k.MEMORY)}),{mode:k.MEMORY}),theme:f(m(g({primaryColor:f(m(E),void 0),textColor:f(m(E),void 0),textSize:f(b(v(),c(12),u(24)),16)})),void 0),displayParams:f(function e(t,n){return{kind:"schema",type:"array",reference:e,expects:"Array",async:!1,item:t,message:n,get"~standard"(){return i(this)},"~run"(e,t){const n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let o=0;o<n.length;o++){const s=n[o],i=this.item["~run"]({value:s},t);if(i.issues){const a={type:"array",origin:"value",input:n,key:o,value:s};for(const t of i.issues){var r;t.path?t.path.unshift(a):t.path=[a],null===(r=e.issues)||void 0===r||r.push(t)}if(e.issues||(e.issues=i.issues),t.abortEarly){e.typed=!1;break}}i.typed||(e.typed=!1),e.value.push(i.value)}}else s(this,"type",e,t);return e}}}(g({name:y()})),[]),displayOfferCounter:f(p(),!0),displayUnits:f(p(),!0),displayCloseButton:f(p(),!1),history:f(g({enabled:f(p(),!0),maxItems:f(S(0,10),5)}),{enabled:!0,maxItems:5}),catalog:f(g({enabled:f(p(),!1),facetedSearch:f(g({enabled:f(p(),!1)}),{enabled:!1}),pagination:f(g({enabled:f(p(),!0),perPage:f(S(0,50),20)}),{enabled:!0,perPage:20})}),{enabled:!1,pagination:{enabled:!0,perPage:20},facetedSearch:{enabled:!1}})});function O(e){try{return function(e,t,n){const o=e["~run"]({value:t},r(n));if(o.issues)throw new l(o.issues);return o.value}(A,e)}catch(e){throw new Error("Cannot validate widget config",{cause:e})}}},706:(e,t,n)=>{n.d(t,{P:()=>s,j:()=>o});var r=n(7932);const[o,s]=(0,r.n5)()},2162:(e,t,n)=>{n.d(t,{Ix:()=>W,fS:()=>G,ok:()=>k,qh:()=>I});var r=n(8826),o=n(7932);function s(){let e=new Set,t=!1;return{subscribe:function(t){return e.add(t),()=>e.delete(t)},confirm:function(n,r){if(t)return!(t=!1);const o={to:n,options:r,defaultPrevented:!1,preventDefault:()=>o.defaultPrevented=!0};for(const s of e)s.listener({...o,from:s.location,retry:e=>{e&&(t=!0),s.navigate(n,{...r,resolve:!1})}});return!o.defaultPrevented}}}let i;function a(){window.history.state&&null!=window.history.state._depth||window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),i=window.history.state._depth}r.S$||a();const l=/^(?:[a-z0-9]+:)?\/\//i,u=/^\/+|(\/)\/+$/g,c="http://sr";function d(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.replace(u,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function f(e,t,n){if(l.test(t))return;const r=d(e),o=n&&d(n);let s="";return s=!o||t.startsWith("/")?r:0!==o.toLowerCase().indexOf(r.toLowerCase())?r+o:o,(s||"/")+d(t,!s)}function p(e){const t={};return e.searchParams.forEach(((e,n)=>{n in t?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e})),t}function h(e,t,n){const[r,o]=e.split("/*",2),s=r.split("/").filter(Boolean),i=s.length;return e=>{const r=e.split("/").filter(Boolean),a=r.length-i;if(a<0||a>0&&void 0===o&&!t)return null;const l={path:i?"":"/",params:{}},u=e=>void 0===n?void 0:n[e];for(let e=0;e<i;e++){const t=s[e],n=":"===t[0],o=n?r[e]:r[e].toLowerCase(),i=n?t.slice(1):t.toLowerCase();if(n&&v(o,u(i)))l.params[i]=o;else if(n||!v(o,i))return null;l.path+="/".concat(o)}if(o){const e=a?r.slice(-a).join("/"):"";if(!v(e,u(o)))return null;l.params[o]=e}return l}}function v(e,t){const n=t=>t===e;return void 0===t||("string"==typeof t?n(t):"function"==typeof t?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp&&t.test(e))}function g(e){const[t,n]=e.pattern.split("/*",2),r=t.split("/").filter(Boolean);return r.reduce(((e,t)=>e+(t.startsWith(":")?2:3)),r.length-(void 0===n?0:1))}function m(e){const t=new Map,n=(0,o.QQ)();return new Proxy({},{get:(r,s)=>(t.has(s)||(0,o.vP)(n,(()=>t.set(s,(0,o.To)((()=>e()[s]))))),t.get(s)()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),ownKeys:()=>Reflect.ownKeys(e())})}function y(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length);const o=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)o.push(n+=t[1]),r=r.slice(t[0].length);return y(r).reduce(((e,t)=>[...e,...o.map((e=>e+t))]),[])}const b=(0,o.q6)(),w=(0,o.q6)(),S=()=>function(e){if(null==e)throw new Error("<A> and 'use' router primitives can be only used inside a Route.");return e}((0,o.NT)(b)),x=()=>S().navigatorFactory(),k=()=>{const e=S().location,t=x();return[e.query,(n,r)=>{const s=(0,o.vz)((()=>function(e,t){const n=new URLSearchParams(e);Object.entries(t).forEach((e=>{let[t,r]=e;null==r||""===r||r instanceof Array&&!r.length?n.delete(t):r instanceof Array?(n.delete(t),r.forEach((e=>{n.append(t,String(e))}))):n.set(t,String(r))}));const r=n.toString();return r?"?".concat(r):""}(e.search,n)+e.hash));t(s,{scroll:!1,resolve:!1,...r})}]};function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{component:n,preload:r,load:o,children:s,info:i}=e,a=!s||Array.isArray(s)&&!s.length,l={key:e,component:n,preload:r||o,info:i};return O(e.path).reduce(((n,r)=>{for(const s of y(r)){const i=(o=s,d(t).replace(/\/*(\*.*)?$/g,"")+d(o));let u=a?i:i.split("/*",1)[0];u=u.split("/").map((e=>e.startsWith(":")||e.startsWith("*")?e:encodeURIComponent(e))).join("/"),n.push({...l,originalPath:r,pattern:u,matcher:h(u,!a,e.matchFilters)})}var o;return n}),[])}function A(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{routes:e,score:1e4*g(e[e.length-1])-t,matcher(t){const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r],s=o.matcher(t);if(!s)return null;n.unshift({...s,route:o})}return n}}}function O(e){return Array.isArray(e)?e:[e]}function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o=O(e);for(let e=0,s=o.length;e<s;e++){const s=o[e];if(s&&"object"==typeof s){s.hasOwnProperty("path")||(s.path="");const e=E(s,t);for(const t of e){n.push(t);const e=Array.isArray(s.children)&&0===s.children.length;if(s.children&&!e)P(s.children,t.pattern,n,r);else{const e=A([...n],r.length);r.push(e)}n.pop()}}}return n.length?r:r.sort(((e,t)=>t.score-e.score))}function C(e,t){for(let n=0,r=e.length;n<r;n++){const r=e[n].matcher(t);if(r)return r}return[]}let L;function T(){return L}let j=!1;function N(){return j}function M(e){j=e}function $(e,t,n,r){const{base:s,location:i,params:a}=e,{pattern:l,component:u,preload:c}=r().route,d=(0,o.To)((()=>r().path));u&&u.preload&&u.preload(),j=!0;const p=c?c({params:a,location:i,intent:L||"initial"}):void 0;return j=!1,{parent:t,pattern:l,path:d,outlet:()=>u?(0,o.a0)(u,{params:a,location:i,data:p,get children(){return n()}}):n(),resolvePath:e=>f(s.path(),e,d())}}const R=e=>t=>{const{base:n}=t,i=(0,o.Y_)((()=>t.children)),a=(0,o.To)((()=>P(i(),t.base||"")));let l;const u=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{signal:[a,l],utils:u={}}=e,d=u.parsePath||(e=>e),h=u.renderPath||(e=>e),v=u.beforeLeave||s(),g=f("",i.base||"");if(void 0===g)throw new Error("".concat(g," is not a valid base path"));g&&!a().value&&l({value:g,replace:!0,scroll:!1});const[y,b]=(0,o.n5)(!1);let S;const x=(e,t)=>{t.value===k()&&t.state===A()||(void 0===S&&b(!0),L=e,S=t,(0,o.KQ)((()=>{S===t&&(E(S.value),O(S.state),(0,o.Sc)(),r.S$||N[1]((e=>e.filter((e=>e.pending)))))})).finally((()=>{S===t&&(0,o.vA)((()=>{L=void 0,"navigate"===e&&function(e){const t=T[0];t&&(l({...e,replace:t.replace,scroll:t.scroll}),T.length=0)}(S),b(!1),S=void 0}))})))},[k,E]=(0,o.n5)(a().value),[A,O]=(0,o.n5)(a().state),P=function(e,t,n){const r=new URL(c),s=(0,o.To)((t=>{const n=e();try{return new URL(n,r)}catch(e){return console.error("Invalid path ".concat(n)),t}}),r,{equals:(e,t)=>e.href===t.href}),i=(0,o.To)((()=>s().pathname)),a=(0,o.To)((()=>s().search),!0),l=(0,o.To)((()=>s().hash)),u=(0,o.on)(a,(()=>p(s())));return{get pathname(){return i()},get search(){return a()},get hash(){return l()},get state(){return t()},get key(){return""},query:n?n(u):m(u)}}(k,A,u.queryWrapper),T=[],N=(0,o.n5)(r.S$?function(){const e=(0,r.yS)();return e&&e.router&&e.router.submission?[e.router.submission]:[]}():[]),M=(0,o.To)((()=>"function"==typeof i.transformUrl?C(t(),i.transformUrl(P.pathname)):C(t(),P.pathname))),$=()=>{const e=M(),t={};for(let n=0;n<e.length;n++)Object.assign(t,e[n].params);return t},R=u.paramsWrapper?u.paramsWrapper($,t):m($),q={pattern:g,path:()=>g,outlet:()=>null,resolvePath:e=>f(g,e)};return(0,o.gb)((0,o.on)(a,(e=>x("native",e)),{defer:!0})),{base:q,location:P,params:R,isRouting:y,renderPath:h,parsePath:d,navigatorFactory:function(e){return e=e||(0,o.NT)(w)||q,(t,n)=>function(e,t,n){(0,o.vz)((()=>{if("number"==typeof t)return void(t&&(u.go?u.go(t):console.warn("Router integration does not support relative routing")));const o=!t||"?"===t[0],{replace:s,resolve:i,scroll:a,state:c}={replace:!1,resolve:!o,scroll:!0,...n},d=i?e.resolvePath(t):f(o&&P.pathname||"",t);if(void 0===d)throw new Error("Path '".concat(t,"' is not a routable path"));if(T.length>=100)throw new Error("Too many redirects");const p=k();if(d!==p||c!==A())if(r.S$){const e=(0,r.yS)();e&&(e.response={status:302,headers:new Headers({Location:d})}),l({value:d,replace:s,scroll:a,state:c})}else v.confirm(d,n)&&(T.push({value:p,replace:s,scroll:a,state:A()}),x("navigate",{value:d,state:c}))}))}(e,t,n)},matches:M,beforeLeave:v,preloadRoute:function(e,r){const s=C(t(),e.pathname),i=L;L="preload";for(let t in s){const{route:i,params:a}=s[t];i.component&&i.component.preload&&i.component.preload();const{preload:l}=i;j=!0,r&&l&&(0,o.vP)(n(),(()=>l({params:a,location:{pathname:e.pathname,search:e.search,hash:e.hash,query:p(e),state:null,key:""},intent:"preload"}))),j=!1}L=i},singleFlight:void 0===i.singleFlight||i.singleFlight,submissions:N}}(e,a,(()=>l),{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(u),(0,o.a0)(b.Provider,{value:u,get children(){return(0,o.a0)(q,{routerState:u,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[(0,o.To)((()=>(l=(0,o.QQ)())&&null)),(0,o.a0)(D,{routerState:u,get branches(){return a()}})]}})}})};function q(e){const t=e.routerState.location,n=e.routerState.params,r=(0,o.To)((()=>e.preload&&(0,o.vz)((()=>{M(!0),e.preload({params:n,location:t,intent:T()||"initial"}),M(!1)}))));return(0,o.a0)(o.wv,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:s=>(0,o.a0)(s,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function D(e){if(r.S$){const t=(0,r.yS)();if(t&&t.router&&t.router.dataOnly)return void function(e,t,n){const r=new URL(e.request.url),o=C(n,new URL(e.router.previousUrl||e.request.url).pathname),s=C(n,r.pathname);for(let n=0;n<s.length;n++){o[n]&&s[n].route===o[n].route||(e.router.dataOnly=!0);const{route:r,params:i}=s[n];r.preload&&r.preload({params:i,location:t.location,intent:"preload"})}}(t,e.routerState,e.branches);t&&((t.router||(t.router={})).matches||(t.router.matches=e.routerState.matches().map((e=>{let{route:t,path:n,params:r}=e;return{path:t.originalPath,pattern:t.pattern,match:n,params:r,info:t.info}}))))}const t=[];let n;const s=(0,o.To)((0,o.on)(e.routerState.matches,((r,i,a)=>{let l=i&&r.length===i.length;const u=[];for(let n=0,c=r.length;n<c;n++){const c=i&&i[n],d=r[n];a&&c&&d.route.key===c.route.key?u[n]=a[n]:(l=!1,t[n]&&t[n](),(0,o.Hr)((r=>{t[n]=r,u[n]=$(e.routerState,u[n-1]||e.routerState.base,U((()=>s()[n+1])),(()=>e.routerState.matches()[n]))})))}return t.splice(r.length).forEach((e=>e())),a&&l?a:(n=u[0],u)})));return U((()=>s()&&n))()}const U=e=>()=>(0,o.a0)(o.wv,{get when(){return e()},keyed:!0,children:e=>(0,o.a0)(w.Provider,{value:e,get children(){return e.outlet()}})}),I=e=>{const t=(0,o.Y_)((()=>e.children));return(0,o.v6)(e,{get children(){return t()}})};function _(e){let t=!1;const n=e=>"string"==typeof e?{value:e}:e,r=function(e,t,n){let[r,o]=e;return[r,n?e=>o(n(e)):o]}((0,o.n5)(n(e.get()),{equals:(e,t)=>e.value===t.value&&e.state===t.state}),0,(n=>(!t&&e.set(n),o.sE.registry&&!o.sE.done&&(o.sE.done=!0),n)));return e.init&&(0,o.Ki)(e.init((function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.get();t=!0,r[1](n(o)),t=!1}))),R({signal:r,create:e.create,utils:e.utils})}function B(e,t){const n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}function F(e){const t=new URL(e);return t.pathname+t.search}let H=new Map;function K(){if(!r.S$)return H;const e=(0,r.yS)();if(!e)throw new Error("Cannot find cache context");return(e.router||(e.router={})).cache||(e.router.cache=new Map)}function V(e,t){e.GET&&(e=e.GET);const n=function(){const n=K(),s=T(),i=N(),a=(0,o.QQ)()?x():void 0,l=Date.now();for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];const f=t+Y(c);let p,h,v=n.get(f);if(r.S$){const e=(0,r.yS)();if(e){const t=(e.router||(e.router={})).dataOnly;if(t){const n=e&&(e.router.data||(e.router.data={}));if(n&&f in n)return n[f];if(Array.isArray(t)&&!function(e,t){for(let n of t)if(n&&e.startsWith(n))return!0;return!1}(f,t))return n[f]=void 0,Promise.resolve()}}}if((0,o.ZR)()&&!r.S$&&(p=!0,(0,o.Ki)((()=>v[4].count--))),v&&v[0]&&(r.S$||"native"===s||v[4].count||Date.now()-v[0]<5e3)){p&&(v[4].count++,v[4][0]()),"preload"===v[3]&&"preload"!==s&&(v[0]=l);let e=v[1];return"preload"!==s&&(e="then"in v[1]?v[1].then(g(!1),g(!0)):g(!1)(v[1]),!r.S$&&"navigate"===s&&(0,o.KQ)((()=>v[4][1](v[0])))),i&&"then"in e&&e.catch((()=>{})),e}if(!r.S$&&o.sE.has&&o.sE.has(f)?(h=o.sE.load(f),delete globalThis._$HY.r[f]):h=e(...c),v?(v[0]=l,v[1]=h,v[3]=s,!r.S$&&"navigate"===s&&(0,o.KQ)((()=>v[4][1](v[0])))):(n.set(f,v=[l,h,,s,(0,o.n5)(l)]),v[4].count=0),p&&(v[4].count++,v[4][0]()),r.S$){const e=(0,r.yS)();if(e&&e.router.dataOnly)return e.router.data[f]=h}if("preload"!==s&&(h="then"in h?h.then(g(!1),g(!0)):g(!1)(h)),i&&"then"in h&&h.catch((()=>{})),r.S$&&o.sE.context&&o.sE.context.async&&!o.sE.context.noHydrate){const e=(0,r.yS)();(!e||!e.serverOnly)&&o.sE.context.serialize(f,h)}return h;function g(e){return async t=>{if(t instanceof Response){const e=t.headers.get("Location");if(null!==e){if(a&&e.startsWith("/"))(0,o.KQ)((()=>{a(e,{replace:!0})}));else if(r.S$){if(r.S$){const t=(0,r.yS)();t&&(t.response={status:302,headers:new Headers({Location:e})})}}else window.location.href=e;return}t.customBody&&(t=await t.customBody())}if(e)throw t;return v[2]=t,t}}};return n.keyFor=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t+Y(n)},n.key=t,n}function Y(e){return JSON.stringify(e,((e,t)=>function(e){let t;return null!=e&&"object"==typeof e&&(!(t=Object.getPrototypeOf(e))||t===Object.prototype)}(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}r.S$||setInterval((()=>{const e=Date.now();for(let[t,n]of H.entries())!n[4].count&&e-n[0]>18e4&&H.delete(t)}),3e5),V.get=e=>K().get(e)[2],V.set=(e,t)=>{const n=K(),r=Date.now();let s=n.get(e);s?(s[0]=r,s[1]=Promise.resolve(t),s[2]=t,s[3]="preload"):(n.set(e,s=[r,Promise.resolve(t),t,"preload",(0,o.n5)(r)]),s[4].count=0)},V.delete=e=>K().delete(e),V.clear=()=>K().clear();const z=new Map;function Q(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/_server",s=arguments.length>3?arguments[3]:void 0;return i=>{const a=i.base.path(),l=i.navigatorFactory(i.base);let u,d;function f(e){if(e.defaultPrevented||0!==e.button||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;const n=e.composedPath().find((e=>e instanceof Node&&"A"===e.nodeName.toUpperCase()));if(!n||t&&!n.hasAttribute("link"))return;const r="http://www.w3.org/2000/svg"===n.namespaceURI,o=r?n.href.baseVal:n.href;if((r?n.target.baseVal:n.target)||!o&&!n.hasAttribute("state"))return;const s=(n.getAttribute("rel")||"").split(/\s+/);if(n.hasAttribute("download")||s&&s.includes("external"))return;const i=r?new URL(o,document.baseURI):new URL(o);return i.origin!==window.location.origin||a&&i.pathname&&!i.pathname.toLowerCase().startsWith(a.toLowerCase())?void 0:[n,i]}function p(e){const t=f(e);if(!t)return;const[n,r]=t,o=i.parsePath(r.pathname+r.search+r.hash),s=n.getAttribute("state");e.preventDefault(),l(o,{resolve:!1,replace:n.hasAttribute("replace"),scroll:!n.hasAttribute("noscroll"),state:s?JSON.parse(s):void 0})}function h(e){const t=f(e);if(!t)return;const[n,r]=t;s&&(r.pathname=s(r.pathname)),i.preloadRoute(r,"false"!==n.getAttribute("preload"))}function v(e){clearTimeout(u);const t=f(e);if(!t)return d=null;const[n,r]=t;d!==n&&(s&&(r.pathname=s(r.pathname)),u=setTimeout((()=>{i.preloadRoute(r,"false"!==n.getAttribute("preload")),d=n}),20))}function g(e){if(e.defaultPrevented)return;let t=e.submitter&&e.submitter.hasAttribute("formaction")?e.submitter.getAttribute("formaction"):e.target.getAttribute("action");if(!t)return;if(!t.startsWith("https://action/")){const e=new URL(t,c);if(t=i.parsePath(e.pathname+e.search),!t.startsWith(n))return}if("POST"!==e.target.method.toUpperCase())throw new Error("Only POST forms are supported for Actions");const r=z.get(t);if(r){e.preventDefault();const t=new FormData(e.target,e.submitter);r.call({r:i,f:e.target},"multipart/form-data"===e.target.enctype?t:new URLSearchParams(t))}}(0,r.z_)(["click","submit"]),document.addEventListener("click",p),e&&(document.addEventListener("mousemove",v,{passive:!0}),document.addEventListener("focusin",h,{passive:!0}),document.addEventListener("touchstart",h,{passive:!0})),document.addEventListener("submit",g),(0,o.Ki)((()=>{document.removeEventListener("click",p),e&&(document.removeEventListener("mousemove",v),document.removeEventListener("focusin",h),document.removeEventListener("touchstart",h)),document.removeEventListener("submit",g)}))}}function W(e){if(r.S$)return function(e){let t;const n={value:e.url||(t=(0,r.yS)())&&F(t.request.url)||""};return R({signal:[()=>n,e=>Object.assign(n,e)]})(e)}(e);const t=()=>{const e=window.location.pathname.replace(/^\/+/,"/")+window.location.search,t=window.history.state&&window.history.state._depth&&1===Object.keys(window.history.state).length?void 0:window.history.state;return{value:e+window.location.hash,state:t}},n=s();return _({get:t,set(e){let{value:t,replace:n,scroll:r,state:o}=e;n?window.history.replaceState(function(e){return{...e,_depth:window.history.state&&window.history.state._depth}}(o),"",t):window.history.pushState(o,"",t),B(decodeURIComponent(window.location.hash.slice(1)),r),a()},init:e=>{return r=window,o="popstate",s=function(e,t){let n=!1;return()=>{const r=i;a();const o=null==r?null:i-r;n?n=!1:o&&t(o)?(n=!0,window.history.go(-o)):e()}}(e,(e=>{if(e&&e<0)return!n.confirm(e);{const e=t();return!n.confirm(e.value,{state:e.state})}})),r.addEventListener(o,s),()=>r.removeEventListener(o,s);var r,o,s},create:Q(e.preload,e.explicitLinks,e.actionBase,e.transformUrl),utils:{go:e=>window.history.go(e),beforeLeave:n}})(e)}function G(e){const t=e.history||function(){const e=["/"];let t=0;const n=[],r=r=>{t=Math.max(0,Math.min(t+r,e.length-1));const o=e[t];n.forEach((e=>e(o)))};return{get:()=>e[t],set:r=>{let{value:o,scroll:s,replace:i}=r;i?e[t]=o:(e.splice(t+1,e.length-t,o),t++),n.forEach((e=>e(o))),setTimeout((()=>{s&&B(o.split("#")[1]||"",!0)}),0)},back:()=>{r(-1)},forward:()=>{r(1)},go:r,listen:e=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})}}();return _({get:t.get,set:t.set,init:t.listen,create:Q(e.preload,e.explicitLinks,e.actionBase),utils:{go:t.go}})(e)}},2470:(e,t,n)=>{n.d(t,{v:()=>r});const r=console},3573:(e,t,n)=>{n.d(t,{p:()=>o});var r=n(2162);const o=()=>{const[e,t]=(0,r.ok)();return[e,(e,n)=>t(e,n)]}},5350:(e,t,n)=>{n.d(t,{E:()=>r,q:()=>o});const r="poisk-dev-search-bar",o="[data-poisk-dev-host]"},6772:(e,t,n)=>{n.d(t,{S:()=>r});let r=function(e){return e.RUB="RUB",e.USD="USD",e.EUR="EUR",e.KZT="KZT",e}({})},6870:(e,t,n)=>{n.d(t,{N:()=>a,_:()=>i});var r=n(7932),o=n(495);const s=(0,r.q6)(void 0),i=()=>{const e=(0,r.NT)(s);if(!e)throw new Error("Cannot useConfiguration() outside of ConfigurationContext");return e},a=e=>{const t=(0,r.To)((()=>(0,o.$)(e.config)));return(0,r.a0)(s.Provider,{value:()=>t(),get children(){return e.children}})}},7932:(e,t,n)=>{n.d(t,{Ds:()=>Ee,EH:()=>C,Hr:()=>E,IJ:()=>Re,KQ:()=>I,KZ:()=>O,Ki:()=>R,NT:()=>K,QQ:()=>D,RZ:()=>xe,Rc:()=>$,Sc:()=>je,To:()=>L,WX:()=>l,YG:()=>Le,Y_:()=>V,ZR:()=>q,Zg:()=>T,a:()=>Oe,a0:()=>ve,dO:()=>Ce,dg:()=>i,gb:()=>P,n5:()=>A,on:()=>M,pn:()=>F,q6:()=>H,rg:()=>Se,sE:()=>r,tH:()=>Ne,tY:()=>$e,v6:()=>we,vA:()=>j,vP:()=>U,vz:()=>N,wv:()=>Pe});const r={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return o(this.context.count)},getNextContextId(){return o(this.context.count++)}};function o(e){const t=String(e),n=t.length-1;return r.context.id+(n?String.fromCharCode(96+n):"")+t}function s(e){r.context=e}const i=Symbol("solid-proxy"),a="function"==typeof Proxy,l=Symbol("solid-track"),u=(Symbol("solid-dev-component"),{equals:(e,t)=>e===t});let c=null,d=te;const f=1,p=2,h={owned:null,cleanups:null,context:null,owner:null},v={};var g=null;let m=null,y=null,b=null,w=null,S=null,x=null,k=0;function E(e,t){const n=w,r=g,o=0===e.length,s=void 0===t?r:t,i=o?h:{owned:null,cleanups:null,context:s?s.context:null,owner:s},a=o?e:()=>e((()=>N((()=>se(i)))));g=i,w=null;try{return ee(a,!0)}finally{w=n,g=r}}function A(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},u,t):u).equals||void 0};return[Q.bind(n),e=>("function"==typeof e&&(e=m&&m.running&&m.sources.has(n)?e(n.tValue):e(n.value)),W(n,e))]}function O(e,t,n){const r=X(e,t,!0,f);y&&m&&m.running?S.push(r):G(r)}function P(e,t,n){const r=X(e,t,!1,f);y&&m&&m.running?S.push(r):G(r)}function C(e,t,n){d=ne;const r=X(e,t,!1,f),o=Y&&K(Y);o&&(r.suspense=o),n&&n.render||(r.user=!0),x?x.push(r):G(r)}function L(e,t,n){n=n?Object.assign({},u,n):u;const r=X(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,y&&m&&m.running?(r.tState=f,S.push(r)):G(r),Q.bind(r)}function T(e,t,n){let o,s,i;"function"==typeof t?(o=e,s=t,i=n||{}):(o=!0,s=e,i=t||{});let a=null,l=v,u=null,c=!1,d=!1,f="initialValue"in i,p="function"==typeof o&&L(o);const h=new Set,[g,y]=(i.storage||A)(i.initialValue),[b,S]=A(void 0),[x,k]=A(void 0,{equals:!1}),[E,P]=A(f?"ready":"unresolved");function C(e,t,n,r){return a===e&&(a=null,void 0!==r&&(f=!0),e!==l&&t!==l||!i.onHydrated||queueMicrotask((()=>i.onHydrated(r,{value:t}))),l=v,m&&e&&c?(m.promises.delete(e),c=!1,ee((()=>{m.running=!0,T(t,n)}),!1)):T(t,n)),t}function T(e,t){ee((()=>{void 0===t&&y((()=>e)),P(void 0!==t?"errored":f?"ready":"unresolved"),S(t);for(const e of h.keys())e.decrement();h.clear()}),!1)}function j(){const e=Y&&K(Y),t=g(),n=b();if(void 0!==n&&!a)throw n;return w&&!w.user&&e&&O((()=>{x(),a&&(e.resolved&&m&&c?m.promises.add(a):h.has(e)||(e.increment(),h.add(e)))})),t}function M(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!1!==e&&d)return;d=!1;const t=p?p():o;if(c=m&&m.running,null==t||!1===t)return void C(a,N(g));m&&a&&m.promises.delete(a);const n=l!==v?l:N((()=>s(t,{value:g(),refetching:e})));return(r=n)&&"object"==typeof r&&"then"in r?(a=n,"value"in n?("success"===n.status?C(a,n.value,void 0,t):C(a,void 0,ae(n.value),t),n):(d=!0,queueMicrotask((()=>d=!1)),ee((()=>{P(f?"refreshing":"pending"),k()}),!1),n.then((e=>C(n,e,void 0,t)),(e=>C(n,void 0,ae(e),t))))):(C(a,n,void 0,t),n);var r}return r.context&&(u=r.getNextContextId(),"initial"===i.ssrLoadFrom?l=i.initialValue:r.load&&r.has(u)&&(l=r.load(u))),Object.defineProperties(j,{state:{get:()=>E()},error:{get:()=>b()},loading:{get(){const e=E();return"pending"===e||"refreshing"===e}},latest:{get(){if(!f)return j();const e=b();if(e&&!a)throw e;return g()}}}),p?O((()=>M(!1))):M(!1),[j,{refetch:M,mutate:y}]}function j(e){return ee(e,!1)}function N(e){if(!b&&null===w)return e();const t=w;w=null;try{return b?b.untrack(e):e()}finally{w=t}}function M(e,t,n){const r=Array.isArray(e);let o,s=n&&n.defer;return n=>{let i;if(r){i=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]()}else i=e();if(s)return s=!1,n;const a=N((()=>t(i,o,n)));return o=i,a}}function $(e){C((()=>N(e)))}function R(e){return null===g||(null===g.cleanups?g.cleanups=[e]:g.cleanups.push(e)),e}function q(){return w}function D(){return g}function U(e,t){const n=g,r=w;g=e,w=null;try{return ee(t,!0)}catch(e){ue(e)}finally{g=n,w=r}}function I(e){if(m&&m.running)return e(),m.done;const t=w,n=g;return Promise.resolve().then((()=>{let r;return w=t,g=n,(y||Y)&&(r=m||(m={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise((e=>r.resolve=e))),r.running=!0),ee(e,!1),w=g=null,r?r.done:void 0}))}const[_,B]=A(!1);function F(){return[_,I]}function H(e,t){const n=Symbol("context");return{id:n,Provider:de(n),defaultValue:e}}function K(e){let t;return g&&g.context&&void 0!==(t=g.context[e.id])?t:e.defaultValue}function V(e){const t=L(e),n=L((()=>ce(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}let Y;function z(){return Y||(Y=H())}function Q(){const e=m&&m.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===f)G(this);else{const e=S;S=null,ee((()=>re(this)),!1),S=e}if(w){const e=this.observers?this.observers.length:0;w.sources?(w.sources.push(this),w.sourceSlots.push(e)):(w.sources=[this],w.sourceSlots=[e]),this.observers?(this.observers.push(w),this.observerSlots.push(w.sources.length-1)):(this.observers=[w],this.observerSlots=[w.sources.length-1])}return e&&m.sources.has(this)?this.tValue:this.value}function W(e,t,n){let r=m&&m.running&&m.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(m){const r=m.running;(r||!n&&m.sources.has(e))&&(m.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&ee((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=m&&m.running;r&&m.disposed.has(n)||((r?n.tState:n.state)||(n.pure?S.push(n):x.push(n),n.observers&&oe(n)),r?n.tState=f:n.state=f)}if(S.length>1e6)throw S=[],new Error}),!1)}return t}function G(e){if(!e.fn)return;se(e);const t=k;Z(e,m&&m.running&&m.sources.has(e)?e.tValue:e.value,t),m&&!m.running&&m.sources.has(e)&&queueMicrotask((()=>{ee((()=>{m&&(m.running=!0),w=g=e,Z(e,e.tValue,t),w=g=null}),!1)}))}function Z(e,t,n){let r;const o=g,s=w;w=g=e;try{r=e.fn(t)}catch(t){return e.pure&&(m&&m.running?(e.tState=f,e.tOwned&&e.tOwned.forEach(se),e.tOwned=void 0):(e.state=f,e.owned&&e.owned.forEach(se),e.owned=null)),e.updatedAt=n+1,ue(t)}finally{w=s,g=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?W(e,r,!0):m&&m.running&&e.pure?(m.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function X(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f;const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:g,context:g?g.context:null,pure:n};if(m&&m.running&&(o.state=0,o.tState=r),null===g||g!==h&&(m&&m.running&&g.pure?g.tOwned?g.tOwned.push(o):g.tOwned=[o]:g.owned?g.owned.push(o):g.owned=[o]),b&&o.fn){const[e,t]=A(void 0,{equals:!1}),n=b.factory(o.fn,t);R((()=>n.dispose()));const r=()=>I(t).then((()=>s.dispose())),s=b.factory(o.fn,r);o.fn=t=>(e(),m&&m.running?s.track(t):n.track(t))}return o}function J(e){const t=m&&m.running;if(0===(t?e.tState:e.state))return;if((t?e.tState:e.state)===p)return re(e);if(e.suspense&&N(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<k);){if(t&&m.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,o=n[r+1];for(;(t=t.owner)&&t!==o;)if(m.disposed.has(t))return}if((t?e.tState:e.state)===f)G(e);else if((t?e.tState:e.state)===p){const t=S;S=null,ee((()=>re(e,n[0])),!1),S=t}}}function ee(e,t){if(S)return e();let n=!1;t||(S=[]),x?n=!0:x=[],k++;try{const t=e();return function(e){if(S&&(y&&m&&m.running?function(e){for(let t=0;t<e.length;t++){const n=e[t],r=m.queue;r.has(n)||(r.add(n),y((()=>{r.delete(n),ee((()=>{m.running=!0,J(n)}),!1),m&&(m.running=!1)})))}}(S):te(S),S=null),e)return;let t;if(m)if(m.promises.size||m.queue.size){if(m.running)return m.running=!1,m.effects.push.apply(m.effects,x),x=null,void B(!0)}else{const e=m.sources,n=m.disposed;x.push.apply(x,m.effects),t=m.resolve;for(const e of x)"tState"in e&&(e.state=e.tState),delete e.tState;m=null,ee((()=>{for(const e of n)se(e);for(const t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)se(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}B(!1)}),!1)}const n=x;x=null,n.length&&ee((()=>d(n)),!1),t&&t()}(n),t}catch(e){n||(x=null),S=null,ue(e)}}function te(e){for(let t=0;t<e.length;t++)J(e[t])}function ne(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:J(r)}if(r.context){if(r.count)return r.effects||(r.effects=[]),void r.effects.push(...e.slice(0,n));s()}for(!r.effects||!r.done&&r.count||(e=[...r.effects,...e],n+=r.effects.length,delete r.effects),t=0;t<n;t++)J(e[t])}function re(e,t){const n=m&&m.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];if(o.sources){const e=n?o.tState:o.state;e===f?o!==t&&(!o.updatedAt||o.updatedAt<k)&&J(o):e===p&&re(o,t)}}}function oe(e){const t=m&&m.running;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];(t?r.tState:r.state)||(t?r.tState=p:r.state=p,r.pure?S.push(r):x.push(r),r.observers&&oe(r))}}function se(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)se(e.tOwned[t]);delete e.tOwned}if(m&&m.running&&e.pure)ie(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)se(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}m&&m.running?e.tState=0:e.state=0}function ie(e,t){if(t||(e.tState=0,m.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ie(e.owned[t])}function ae(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function le(e,t,n){try{for(const n of t)n(e)}catch(e){ue(e,n&&n.owner||null)}}function ue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;const n=c&&t&&t.context&&t.context[c],r=ae(e);if(!n)throw r;x?x.push({fn(){le(r,n,t)},state:f}):le(r,n,t)}function ce(e){if("function"==typeof e&&!e.length)return ce(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=ce(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function de(e,t){return function(t){let n;return P((()=>n=N((()=>(g.context={...g.context,[e]:t.value},V((()=>t.children)))))),void 0),n}}const fe=Symbol("fallback");function pe(e){for(let t=0;t<e.length;t++)e[t]()}let he=!1;function ve(e,t){if(he&&r.context){const n=r.context;s({...r.context,id:r.getNextContextId(),count:0});const o=N((()=>e(t||{})));return s(n),o}return N((()=>e(t||{})))}function ge(){return!0}const me={get:(e,t,n)=>t===i?n:e.get(t),has:(e,t)=>t===i||e.has(t),set:ge,deleteProperty:ge,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:ge,deleteProperty:ge}),ownKeys:e=>e.keys()};function ye(e){return(e="function"==typeof e?e():e)?e:{}}function be(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function we(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=!1;for(let e=0;e<t.length;e++){const n=t[e];r=r||!!n&&i in n,t[e]="function"==typeof n?(r=!0,L(n)):n}if(a&&r)return new Proxy({get(e){for(let n=t.length-1;n>=0;n--){const r=ye(t[n])[e];if(void 0!==r)return r}},has(e){for(let n=t.length-1;n>=0;n--)if(e in ye(t[n]))return!0;return!1},keys(){const e=[];for(let n=0;n<t.length;n++)e.push(...Object.keys(ye(t[n])));return[...new Set(e)]}},me);const o={},s=Object.create(null);for(let e=t.length-1;e>=0;e--){const n=t[e];if(!n)continue;const r=Object.getOwnPropertyNames(n);for(let e=r.length-1;e>=0;e--){const t=r[e];if("__proto__"===t||"constructor"===t)continue;const i=Object.getOwnPropertyDescriptor(n,t);if(s[t]){const e=o[t];e&&(i.get?e.push(i.get.bind(n)):void 0!==i.value&&e.push((()=>i.value)))}else s[t]=i.get?{enumerable:!0,configurable:!0,get:be.bind(o[t]=[i.get.bind(n)])}:void 0!==i.value?i:void 0}}const l={},u=Object.keys(s);for(let e=u.length-1;e>=0;e--){const t=u[e],n=s[t];n&&n.get?Object.defineProperty(l,t,n):l[t]=n?n.value:void 0}return l}function Se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(a&&i in e){const t=new Set(n.length>1?n.flat():n[0]),r=n.map((t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter((t=>t in e))},me)));return r.push(new Proxy({get:n=>t.has(n)?void 0:e[n],has:n=>!t.has(n)&&n in e,keys:()=>Object.keys(e).filter((e=>!t.has(e)))},me)),r}const o={},s=n.map((()=>({})));for(const t of Object.getOwnPropertyNames(e)){const r=Object.getOwnPropertyDescriptor(e,t),i=!r.get&&!r.set&&r.enumerable&&r.writable&&r.configurable;let a=!1,l=0;for(const e of n)e.includes(t)&&(a=!0,i?s[l][t]=r.value:Object.defineProperty(s[l],t,r)),++l;a||(i?o[t]=r.value:Object.defineProperty(o,t,r))}return[...s,o]}function xe(e){let t,n;const o=o=>{const i=r.context;if(i){const[o,a]=A();r.count||(r.count=0),r.count++,(n||(n=e())).then((e=>{!r.done&&s(i),r.count--,a((()=>e.default)),s()})),t=o}else if(!t){const[r]=T((()=>(n||(n=e())).then((e=>e.default))));t=r}let a;return L((()=>(a=t())?N((()=>{if(!i||r.done)return a(o);const e=r.context;s(i);const t=a(o);return s(e),t})):""))};return o.preload=()=>n||((n=e()).then((e=>t=()=>e.default)),n),o}let ke=0;function Ee(){return r.context?r.getNextContextId():"cl-".concat(ke++)}const Ae=e=>"Stale read from <".concat(e,">.");function Oe(e){const t="fallback"in e&&{fallback:()=>e.fallback};return L(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=[],s=[],i=0,a=t.length>1?[]:null;return R((()=>pe(s))),()=>{let u,c,d=e()||[],f=d.length;return d[l],N((()=>{let e,t,l,h,v,g,m,y,b;if(0===f)0!==i&&(pe(s),s=[],r=[],o=[],i=0,a&&(a=[])),n.fallback&&(r=[fe],o[0]=E((e=>(s[0]=e,n.fallback()))),i=1);else if(0===i){for(o=new Array(f),c=0;c<f;c++)r[c]=d[c],o[c]=E(p);i=f}else{for(l=new Array(f),h=new Array(f),a&&(v=new Array(f)),g=0,m=Math.min(i,f);g<m&&r[g]===d[g];g++);for(m=i-1,y=f-1;m>=g&&y>=g&&r[m]===d[y];m--,y--)l[y]=o[m],h[y]=s[m],a&&(v[y]=a[m]);for(e=new Map,t=new Array(y+1),c=y;c>=g;c--)b=d[c],u=e.get(b),t[c]=void 0===u?-1:u,e.set(b,c);for(u=g;u<=m;u++)b=r[u],c=e.get(b),void 0!==c&&-1!==c?(l[c]=o[u],h[c]=s[u],a&&(v[c]=a[u]),c=t[c],e.set(b,c)):s[u]();for(c=g;c<f;c++)c in l?(o[c]=l[c],s[c]=h[c],a&&(a[c]=v[c],a[c](c))):o[c]=E(p);o=o.slice(0,i=f),r=d.slice(0)}return o}));function p(e){if(s[c]=e,a){const[e,n]=A(c);return a[c]=n,t(d[c],e)}return t(d[c])}}}((()=>e.each),e.children,t||void 0))}function Pe(e){const t=e.keyed,n=L((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e==!n});return L((()=>{const r=n();if(r){const o=e.children;return"function"==typeof o&&o.length>0?N((()=>o(t?r:()=>{if(!N(n))throw Ae("Show");return e.when}))):o}return e.fallback}),void 0,void 0)}function Ce(e){let t=!1;const n=V((()=>e.children)),r=L((()=>{let e=n();Array.isArray(e)||(e=[e]);for(let n=0;n<e.length;n++){const r=e[n].when;if(r)return t=!!e[n].keyed,[n,r,e[n]]}return[-1]}),void 0,{equals:(e,n)=>(t?e[1]===n[1]:!e[1]==!n[1])&&e[2]===n[2]});return L((()=>{const[n,o,s]=r();if(n<0)return e.fallback;const i=s.children;return"function"==typeof i&&i.length>0?N((()=>i(t?o:()=>{if(N(r)[0]!==n)throw Ae("Match");return s.when}))):i}),void 0,void 0)}function Le(e){return e}let Te;function je(){Te&&[...Te].forEach((e=>e()))}function Ne(e){let t;r.context&&r.load&&(t=r.load(r.getContextId()));const[n,o]=A(t,void 0);return Te||(Te=new Set),Te.add(o),R((()=>Te.delete(o))),L((()=>{let t;if(t=n()){const n=e.fallback;return"function"==typeof n&&n.length?N((()=>n(t,(()=>o())))):n}return function(t,n){c||(c=Symbol("error")),(g=X(void 0,void 0,!0)).context={...g.context,[c]:[n]},m&&m.running&&m.sources.add(g);try{return e.children}catch(e){ue(e)}finally{g=g.owner}}(0,o)}),void 0,void 0)}const Me=H();function $e(e){let t,n,o,i,a,l=0;const[u,c]=A(!1),d=z(),f={increment:()=>{1==++l&&c(!0)},decrement:()=>{0==--l&&c(!1)},inFallback:u,effects:[],resolved:!1},p=D();if(r.context&&r.load){const e=r.getContextId();let t=r.load(e);if(t&&("object"!=typeof t||"success"!==t.status?o=t:r.gather(e)),o&&"$$f"!==o){const[t,l]=A(void 0,{equals:!1});i=t,o.then((()=>{if(r.done)return l();r.gather(e),s(n),l(),s()}),(e=>{a=e,l()}))}}const h=K(Me);let v;return h&&(t=h.register(f.inFallback)),R((()=>v&&v())),ve(d.Provider,{value:f,get children(){return L((()=>{if(a)throw a;if(n=r.context,i)return i(),i=void 0;n&&"$$f"===o&&s();const l=L((()=>e.children));return L((r=>{const i=f.inFallback(),{showContent:a=!0,showFallback:u=!0}=t?t():{};return(!i||o&&"$$f"!==o)&&a?(f.resolved=!0,v&&v(),v=n=o=void 0,c=f.effects,x.push.apply(x,c),c.length=0,l()):u?v?r:E((t=>(v=t,n&&(s({id:n.id+"F",count:0}),n=void 0),e.fallback)),p):void 0;var c}))}))}})}const Re=void 0},8826:(e,t,n)=>{n.d(t,{Bq:()=>v,Qi:()=>M,S$:()=>L,XX:()=>f,Yr:()=>b,Yx:()=>y,ZL:()=>N,il:()=>m,s7:()=>g,vs:()=>p,yS:()=>C,z_:()=>h});var r=n(7932);const o=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),s=new Set(["innerHTML","textContent","innerText","children"]),i=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),a=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}}),l=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),u=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),c={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},d="_$DX_DELEGATE";function f(e,t,n){let o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,r.Hr)((r=>{o=r,t===document?e():b(t,e(),t.firstChild?null:void 0,n)}),s.owner),()=>{o(),t.textContent=""}}function p(e,t,n){let o;const s=()=>{const t=document.createElement("template");return t.innerHTML=e,n?t.content.firstChild.firstChild:t.content.firstChild},i=t?()=>(0,r.vz)((()=>document.importNode(o||(o=s()),!0))):()=>(o||(o=s())).cloneNode(!0);return i.cloneNode=i,i}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;const n=t[d]||(t[d]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,k))}}function v(e,t,n){w(e)||(null==n?e.removeAttribute(t):e.setAttribute(t,n))}function g(e,t){w(e)||(null==t?e.removeAttribute("class"):e.className=t)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o={};return(arguments.length>3?arguments[3]:void 0)||(0,r.gb)((()=>o.children=E(e,t.children,o.children))),(0,r.gb)((()=>"function"==typeof t.ref&&y(t.ref,e))),(0,r.gb)((()=>function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];t||(t={});for(const r in o)if(!(r in t)){if("children"===r)continue;o[r]=x(e,r,null,o[r],n,s,t)}for(const i in t){if("children"===i){r||E(e,t.children);continue}const a=t[i];o[i]=x(e,i,a,o[i],n,s,t)}}(e,t,n,!0,o,!0))),o}function y(e,t,n){return(0,r.vz)((()=>e(t,n)))}function b(e,t,n,o){if(void 0===n||o||(o=[]),"function"!=typeof t)return E(e,t,o,n);(0,r.gb)((r=>E(e,t(),r,n)),o)}function w(e){return!!r.sE.context&&!r.sE.done&&(!e||e.isConnected)}function S(e,t,n){const r=t.trim().split(/\s+/);for(let t=0,o=r.length;t<o;t++)e.classList.toggle(r[t],n)}function x(e,t,n,r,u,d,f){let p,m,y,b,x;if("style"===t)return function(e,t,n){if(!t)return n?v(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,s;for(s in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[s]&&r.removeProperty(s),delete n[s];for(s in t)o=t[s],o!==n[s]&&(r.setProperty(s,o),n[s]=o);return n}(e,n,r);if("classList"===t)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Object.keys(t||{}),o=Object.keys(n);let s,i;for(s=0,i=o.length;s<i;s++){const r=o[s];r&&"undefined"!==r&&!t[r]&&(S(e,r,!1),delete n[r])}for(s=0,i=r.length;s<i;s++){const o=r[s],i=!!t[o];o&&"undefined"!==o&&n[o]!==i&&i&&(S(e,o,!0),n[o]=i)}return n}(e,n,r);if(n===r)return r;if("ref"===t)d||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r,"function"!=typeof r&&r),n&&e.addEventListener(o,n,"function"!=typeof n&&n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),s=l.has(o);if(!s&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(s||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e["$$".concat(t)]=n[0],e["$$".concat(t,"Data")]=n[1]):e["$$".concat(t)]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,"function"!=typeof n&&n)}(e,o,n,s),s&&h([o]))}else if("attr:"===t.slice(0,5))v(e,t.slice(5),n);else if("bool:"===t.slice(0,5))!function(e,t,n){w(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}(e,t.slice(5),n);else if((x="prop:"===t.slice(0,5))||(y=s.has(t))||!u&&((b=function(e,t){const n=a[e];return"object"==typeof n?n[t]?n.$:void 0:n}(t,e.tagName))||(m=o.has(t)))||(p=e.nodeName.includes("-")||"is"in f)){if(x)t=t.slice(5),m=!0;else if(w(e))return n;"class"===t||"className"===t?g(e,n):!p||m||y?e[b||t]=n:e[(k=t,k.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase())))]=n}else{const r=u&&t.indexOf(":")>-1&&c[t.split(":")[0]];r?function(e,t,n,r){w(e)||(null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}(e,r,t,n):v(e,i[t]||t,n)}var k;return n}function k(e){if(r.sE.registry&&r.sE.events&&r.sE.events.find((t=>{let[n,r]=t;return r===e})))return;let t=e.target;const n="$$".concat(e.type),o=e.target,s=e.currentTarget,i=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),a=()=>{const r=t[n];if(r&&!t.disabled){const o=t["".concat(n,"Data")];if(void 0!==o?r.call(t,o,e):r.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},l=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),r.sE.registry&&!r.sE.done&&(r.sE.done=_$HY.done=!0),e.composedPath){const n=e.composedPath();i(n[0]);for(let e=0;e<n.length-2&&(t=n[e],a());e++){if(t._$host){t=t._$host,l();break}if(t.parentNode===s)break}}else l();i(o)}function E(e,t,n,o,s){const i=w(e);if(i){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){const r=n[e];8===r.nodeType&&"!$"===r.data.slice(0,2)?r.remove():t.push(r)}n=t}for(;"function"==typeof n;)n=n();if(t===n)return n;const a=typeof t,l=void 0!==o;if(e=l&&n[0]&&n[0].parentNode||e,"string"===a||"number"===a){if(i)return n;if("number"===a&&(t=t.toString())===n)return n;if(l){let r=n[0];r&&3===r.nodeType?r.data!==t&&(r.data=t):r=document.createTextNode(t),n=P(e,n,o,r)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===a){if(i)return n;n=P(e,n,o)}else{if("function"===a)return(0,r.gb)((()=>{let r=t();for(;"function"==typeof r;)r=r();n=E(e,r,n,o)})),()=>n;if(Array.isArray(t)){const a=[],u=n&&Array.isArray(n);if(A(a,t,n,s))return(0,r.gb)((()=>n=E(e,a,n,o,!0))),()=>n;if(i){if(!a.length)return n;if(void 0===o)return n=[...e.childNodes];let t=a[0];if(t.parentNode!==e)return n;const r=[t];for(;(t=t.nextSibling)!==o;)r.push(t);return n=r}if(0===a.length){if(n=P(e,n,o),l)return n}else u?0===n.length?O(e,a,o):function(e,t,n){let r=n.length,o=t.length,s=r,i=0,a=0,l=t[o-1].nextSibling,u=null;for(;i<o||a<s;)if(t[i]!==n[a]){for(;t[o-1]===n[s-1];)o--,s--;if(o===i){const t=s<r?a?n[a-1].nextSibling:n[s-a]:l;for(;a<s;)e.insertBefore(n[a++],t)}else if(s===a)for(;i<o;)u&&u.has(t[i])||t[i].remove(),i++;else if(t[i]===n[s-1]&&n[a]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[a++],t[i++].nextSibling),e.insertBefore(n[--s],r),t[o]=n[s]}else{if(!u){u=new Map;let e=a;for(;e<s;)u.set(n[e],e++)}const r=u.get(t[i]);if(null!=r)if(a<r&&r<s){let l,c=i,d=1;for(;++c<o&&c<s&&null!=(l=u.get(t[c]))&&l===r+d;)d++;if(d>r-a){const o=t[i];for(;a<r;)e.insertBefore(n[a++],o)}else e.replaceChild(n[a++],t[i++])}else i++;else t[i++].remove()}}else i++,a++}(e,n,a):(n&&P(e),O(e,a));n=a}else if(t.nodeType){if(i&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=P(e,n,o,t);P(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function A(e,t,n,r){let o=!1;for(let s=0,i=t.length;s<i;s++){let i,a=t[s],l=n&&n[e.length];if(null==a||!0===a||!1===a);else if("object"==(i=typeof a)&&a.nodeType)e.push(a);else if(Array.isArray(a))o=A(e,a,l)||o;else if("function"===i)if(r){for(;"function"==typeof a;)a=a();o=A(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o}else e.push(a),o=!0;else{const t=String(a);l&&3===l.nodeType&&l.data===t?e.push(l):e.push(document.createTextNode(t))}}return o}function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function P(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let s=t.length-1;s>=0;s--){const i=t[s];if(o!==i){const t=i.parentNode===e;r||s?t&&i.remove():t?e.replaceChild(o,i):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}const C=()=>{};Symbol();const L=!1,T="http://www.w3.org/2000/svg";function j(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?document.createElementNS(T,e):document.createElement(e)}function N(e){const{useShadow:t}=e,n=document.createTextNode(""),o=(0,r.QQ)();let s,i=!!r.sE.context;return(0,r.EH)((()=>{i&&((0,r.QQ)().user=i=!1),s||(s=(0,r.vP)(o,(()=>(0,r.To)((()=>e.children)))));const a=e.mount||document.body;if(a instanceof HTMLHeadElement){const[e,t]=(0,r.n5)(!1),n=()=>t(!0);(0,r.Hr)((t=>b(a,(()=>e()?t():s()),null))),(0,r.Ki)(n)}else{const o=j(e.isSVG?"g":"div",e.isSVG),i=t&&o.attachShadow?o.attachShadow({mode:"open"}):o;Object.defineProperty(o,"_$host",{get:()=>n.parentNode,configurable:!0}),b(i,s),a.appendChild(o),e.ref&&e.ref(o),(0,r.Ki)((()=>a.removeChild(o)))}}),void 0,{render:!i}),n}function M(e){const[t,n]=(0,r.rg)(e,["component"]),o=(0,r.To)((()=>t.component));return(0,r.To)((()=>{const e=o();switch(typeof e){case"function":return(0,r.vz)((()=>e(n)));case"string":const t=u.has(e),o=r.sE.context?function(e){let t,n;return w()&&(t=r.sE.registry.get(n=r.sE.getNextContextId()))?(r.sE.completed&&r.sE.completed.add(t),r.sE.registry.delete(n),t):e()}():j(e,t);return m(o,n,t),o}}))}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={exports:{}};return n[e](s,s.exports,o),s.exports}o.m=n,o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"static/js/"+({344:"CatalogWidgetAsync",806:"ApplicationModalAsync"}[e]||e)+"."+{344:"b72f47ca6ab7471473db",368:"10e00f5dac691bcdebb8",806:"e36088c3067cc938747d",889:"3dacb59ac52513833c1e"}[e]+".chunk.js",o.miniCssF=e=>{},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="poiskDevWidget:",o.l=(n,r,s,i)=>{if(e[n])e[n].push(r);else{var a,l;if(void 0!==s)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+s){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",t+s),a.src=n,0!==a.src.indexOf(window.location.origin+"/")&&(a.crossOrigin="anonymous")),e[n]=[r];var f=(t,r)=>{a.onerror=a.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="https://cdn.poisk.dev/widget/",(()=>{var e={792:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var s=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=s);var i=o.p+o.u(t),a=new Error;o.l(i,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",a.name="ChunkLoadError",a.type=s,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,s,i=n[0],a=n[1],l=n[2],u=0;if(i.some((t=>0!==e[t]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);l&&l(o)}for(t&&t(n);u<i.length;u++)s=i[u],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=self.webpackChunkpoiskDevWidget=self.webpackChunkpoiskDevWidget||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var s={};o.r(s),o.d(s,{renderApp:()=>L});var i=o(7932),{setLocatorOptions:a}={setLocatorOptions(){}},l=o(8826),u=o(2162),c=o(6870),d=o(495),f=o(2470),p=o(3573),h=(0,l.vs)('<div><div class="fixed inset-0 z-50 bg-overlay/50"></div><div class="fixed inset-0 z-50 flex w-screen flex-col items-center overflow-y-auto overflow-x-hidden"><div class="flex w-screen grow flex-col bg-background lg:my-4 lg:w-[min(calc(100vw-8rem),1400px)]"><div class="mx-4 my-3 h-12 bg-default-100 lg:mb-5"></div><div class="flex h-full"role=status><div class="grid min-h-[140px] w-full place-items-center overflow-x-scroll rounded-lg p-6 lg:overflow-visible"><svg class="animate-spin text-default-400"viewBox="0 0 64 64"fill=none xmlns=http://www.w3.org/2000/svg width=48 height=48><path d="M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z"stroke=currentColor stroke-width=5 stroke-linecap=round stroke-linejoin=round></path><path d="M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762"stroke=currentColor stroke-width=5 stroke-linecap=round stroke-linejoin=round class=text-primary>');const v=()=>h(),g=e=>{var t;return(null===(t=e.composedPath)||void 0===t?void 0:t.call(e))||e.path||[]},m=e=>{var t;return null==e||null===(t=e.matches)||void 0===t?void 0:t.call(e,"[data-poisk-dev-trigger]")},y={"tvoiodelo.ru":["button.header-search",".searchinput button.btn-search",".searchinput input.q"],"electric-spb.com":["#title-search-input","#title-search btn.btn-secondary.m-0","#title-search"],"46koles.ru":["#ftSearch input","#ftSearch .search-button","#input-search","#button-search"]},b=(0,i.RZ)((()=>Promise.all([o.e(368),o.e(806)]).then(o.bind(o,7633)))),w="poiskDevApplication",S=()=>{const[e,t]=(0,p.p)(),n=(0,c._)(),r=()=>Boolean(e.pdAppOpen),o=e=>{t(e?{pdAppOpen:"true"}:{pdAppOpen:null,pdCatId:null,pdSelParams:null,pdMinPrice:null,pdMaxPrice:null,pdQuery:null,pdMode:null})};var s;return(0,i.Rc)((()=>{if(n().router.mode!==d.j.MEMORY)return;const e=e=>{null!=e&&e.state&&w in e.state&&o(!1)};window.addEventListener("popstate",e,{passive:!0}),(0,i.Ki)((()=>{window.removeEventListener("popstate",e)}))})),(0,i.Rc)((()=>{const e=setTimeout((()=>{b.preload().catch(f.v.error)}),3e3);(0,i.Ki)((()=>{window.clearTimeout(e)}))})),s=e=>{e instanceof HTMLElement&&e.blur(),e instanceof HTMLInputElement&&(e.value=""),(()=>{const e=!r();o(e),e&&n().router.mode===d.j.MEMORY&&history.pushState({[w]:!0},"")})()},(0,i.Rc)((()=>{var e;const t=null===(e=Object.entries(y).find((e=>{let[t]=e;return window.origin.includes(t)})))||void 0===e?void 0:e[1];if(!t)return;const n=[],r=e=>{e.currentTarget instanceof HTMLElement&&(e.stopPropagation(),e.preventDefault(),s(e.currentTarget))},o=e=>{e.currentTarget instanceof HTMLInputElement&&(e.stopPropagation(),e.preventDefault(),s(e.currentTarget))};for(const e of t){const t=Array.from(document.querySelectorAll(e));for(const e of t)e.addEventListener("click",r),n.push((()=>e.removeEventListener("click",r))),e instanceof HTMLInputElement&&(e.addEventListener("focus",o),n.push((()=>e.removeEventListener("focus",o))))}(0,i.Ki)((()=>{n.forEach((e=>e()))}))})),(0,i.Rc)((()=>{const e=e=>{const t=g(e).find((e=>e instanceof Element&&m(e)));t&&t instanceof Element&&s(t)},t=e=>{const t=g(e).find((e=>e instanceof Element&&m(e)));t&&t instanceof HTMLInputElement&&s(t)};document.addEventListener("focusin",t,{passive:!0,capture:!0}),document.addEventListener("click",e,{passive:!0,capture:!0}),(0,i.Ki)((()=>{document.removeEventListener("focusin",t,{capture:!0}),document.removeEventListener("click",e,{capture:!0})}))})),(0,i.a0)(i.wv,{get when(){return r()},get children(){return(0,i.a0)(i.tH,{fallback:()=>null,get children(){return(0,i.a0)(i.tY,{get fallback(){return(0,i.a0)(v,{})},get children(){return(0,i.a0)(b,{onOpenChange:o})}})}})}})},x=()=>{const e=(0,c._)()().router.mode,t=(0,i.a0)(u.qh,{path:"*",component:S});return(0,i.a0)(i.dO,{get children(){return[(0,i.a0)(i.YG,{get when(){return e===d.j.MEMORY},get children(){return(0,i.a0)(u.fS,{explicitLinks:!0,children:t})}}),(0,i.a0)(i.YG,{get when(){return e===d.j.DEFAULT},get children(){return(0,i.a0)(u.Ix,{explicitLinks:!0,children:t})}})]}})};var k=o(706),E=(0,l.vs)("<div>");const A=e=>{const t=(0,c._)(),n=(0,i.To)((()=>{var e,n,r;const o={"--nextui-primary":null===(e=t().theme)||void 0===e?void 0:e.primaryColor,"--nextui-foreground":null===(n=t().theme)||void 0===n?void 0:n.textColor,"--poisk-dev-font-size":"".concat((null===(r=t().theme)||void 0===r?void 0:r.textSize)||16,"px")};return Object.fromEntries(Object.entries(o).filter((e=>{let[,t]=e;return Boolean(t)})))}));return(0,i.Rc)((()=>{const e=document.createElement("style"),t=Object.entries(n()).reduce(((e,t)=>{let[n,r]=t;return e+"".concat(n,": ").concat(r,";\n")}),"");e.textContent=".light[data-poisk-dev-root] {\n      ".concat(t,"\n    }\n  ");const r=(0,k.j)();null==r||r.append(e),(0,i.Ki)((()=>{e.remove()}))})),r=E(),(0,l.Yr)(r,(()=>e.children)),(0,i.gb)((()=>(0,l.Bq)(r,"data-theme",Object.keys(n()).length>0?"true":"false"))),r;var r};var O=o(5350);const P={};let C=null;const L=e=>{var t;const n=(()=>{if(C)return C;const e=document.querySelector(O.q);if(!e)return null;const t=e.shadowRoot;if(!t)return null;if((0,k.P)(t),!C){const e=["light","text-foreground"],n=document.createElement("div");n.classList.add(...e),n.dataset.poiskDevRoot="",t.appendChild(n),C=n}return C})();var r;if(!n)return null===(r=P.current)||void 0===r||r.call(P),void f.v.error("Cannot find root to render");null===(t=P.current)||void 0===t||t.call(P);const o=(0,l.XX)((()=>(0,i.a0)(i.tH,{fallback:()=>null,get children(){return(0,i.a0)(i.tY,{get children(){return(0,i.a0)(c.N,{config:e,get children(){return(0,i.a0)(A,{get children(){return(0,i.a0)(x,{})}})}})}})}})),n);return P.current=()=>{o(),delete P.current},P.current};self.poiskDevWidget=s})();
try {
const host = document.createElement("div");
host.dataset.poiskDevHost = "";
document.body.appendChild(host);
const shadowRoot = host.attachShadow({ mode: "open" });
;["https://cdn.poisk.dev/widget/static/css/main.14d6ca06f161dc8e3492.entry.css"].forEach((src) => { 
      const link = document.createElement('link');
      link.type = 'text/css';
      link.rel = 'stylesheet';
      link.href = src;
      link.crossorigin = 'anonymous'; 
      shadowRoot.appendChild(link);
    });
const config = JSON.parse('null')  ;
const render = () => { /** no-render  */ }
if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", render); }
else { render(); }
} catch {}