(()=>{"use strict";var e,t,n={249(e,t,n){n.d(t,{N:()=>s,_:()=>a});var r=n(8823),o=n(388);const i=(0,r.q6)(void 0),a=()=>{const e=(0,r.NT)(i);if(!e)throw new Error("Cannot useConfiguration() outside of ConfigurationContext");return e},s=e=>{const t=(0,r.To)(()=>(0,o.$)(e.config));return(0,r.a0)(i.Provider,{value:()=>t(),get children(){return e.children}})}},388(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return(t=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+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{j:()=>M,$:()=>R});const a={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function s(e){var t,n,r;return e?{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}:a}function l(e){var t;return null===(t=void 0)||void 0===t?void 0:t.get(e)}function u(e){var t;return null===(t=void 0)||void 0===t?void 0:t.get(e)}function c(e,t){var n;return null===(n=void 0)||void 0===n||null===(n=n.get(e))||void 0===n?void 0:n.get(t)}function f(e){var t,n;const r=typeof e;return"string"===r?'"'.concat(e,'"'):"number"===r||"bigint"===r||"boolean"===r?"".concat(e):"object"===r||"function"===r?null!==(t=e&&(null===(n=Object.getPrototypeOf(e))||void 0===n||null===(n=n.constructor)||void 0===n?void 0:n.name))&&void 0!==t?t:"null":r}function d(e,t,n,r,o){var i,a,s,d,p,h,v,g;const y=o&&"input"in o?o.input:n.value,m=null!==(i=null!==(a=null==o?void 0:o.expected)&&void 0!==a?a:e.expects)&&void 0!==i?i:null,b=null!==(s=null==o?void 0:o.received)&&void 0!==s?s:f(y),w={kind:e.kind,type:e.type,input:y,expected:m,received:b,message:"Invalid ".concat(t,": ").concat(m?"Expected ".concat(m," but r"):"R","eceived ").concat(b),requirement:e.requirement,path:null==o?void 0:o.path,issues:null==o?void 0:o.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},S="schema"===e.kind,O=null!==(d=null!==(p=null!==(h=null!==(v=null!==(g=null==o?void 0:o.message)&&void 0!==g?g:e.message)&&void 0!==v?v:c(e.reference,w.lang))&&void 0!==h?h:S?u(w.lang):null)&&void 0!==p?p:r.message)&&void 0!==d?d:l(w.lang);void 0!==O&&(w.message="function"==typeof O?O(w):O),S&&(n.typed=!1),n.issues?n.issues.push(w):n.issues=[w]}const p=new WeakMap;function h(e){let t=p.get(e);return t||(t={version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},s())},p.set(e,t)),t}function v(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"}var g=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};function y(e,t){return{kind:"validation",type:"max_value",reference:y,async:!1,expects:"<=".concat(e instanceof Date?e.toJSON():f(e)),requirement:e,message:t,"~run"(e,t){return!e.typed||e.value<=this.requirement||d(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function m(e,t){return{kind:"validation",type:"min_value",reference:m,async:!1,expects:">=".concat(e instanceof Date?e.toJSON():f(e)),requirement:e,message:t,"~run"(e,t){return!e.typed||e.value>=this.requirement||d(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():f(e.value)}),e}}}function b(e,t,n){return"function"==typeof e.fallback?e.fallback(t,n):e.fallback}function w(e,t){return o(o({},e),{},{fallback:t,get"~standard"(){return h(this)},"~run"(t,n){const r=e["~run"](t,n);return r.issues?{typed:!0,value:b(this,r,n)}:r}})}function S(e,t,n){return"function"==typeof e.default?e.default(t,n):e.default}function O(e){return{kind:"schema",type:"boolean",reference:O,expects:"boolean",async:!1,message:e,get"~standard"(){return h(this)},"~run"(e,t){return"boolean"==typeof e.value?e.typed=!0:d(this,"type",e,t),e}}}function E(e,t){const n=[];for(const t in e)"".concat(+t)===t&&"string"==typeof e[t]&&Object.is(e[e[t]],+t)||n.push(e[t]);return{kind:"schema",type:"enum",reference:E,expects:v(n.map(f),"|"),async:!1,enum:e,options:n,message:t,get"~standard"(){return h(this)},"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:d(this,"type",e,t),e}}}function A(e){return{kind:"schema",type:"number",reference:A,expects:"number",async:!1,message:e,get"~standard"(){return h(this)},"~run"(e,t){return"number"!=typeof e.value||isNaN(e.value)?d(this,"type",e,t):e.typed=!0,e}}}function k(e,t){return{kind:"schema",type:"object",reference:k,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return h(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 i=this.entries[o];if(o in n||("exact_optional"===i.type||"optional"===i.type||"nullish"===i.type)&&void 0!==i.default){const a=o in n?n[o]:S(i),s=i["~run"]({value:a},t);if(s.issues){const i={type:"object",origin:"value",input:n,key:o,value:a};for(const t of s.issues){var r;t.path?t.path.unshift(i):t.path=[i],null===(r=e.issues)||void 0===r||r.push(t)}if(e.issues||(e.issues=s.issues),t.abortEarly){e.typed=!1;break}}s.typed||(e.typed=!1),e.value[o]=s.value}else if(void 0!==i.fallback)e.value[o]=b(i);else if("exact_optional"!==i.type&&"optional"!==i.type&&"nullish"!==i.type&&(d(this,"key",e,t,{input:void 0,expected:'"'.concat(o,'"'),path:[{type:"object",origin:"key",input:n,key:o,value:n[o]}]}),t.abortEarly))break}}else d(this,"type",e,t);return e}}}function x(e,t){return{kind:"schema",type:"optional",reference:x,expects:"(".concat(e.expects," | undefined)"),async:!1,wrapped:e,default:t,get"~standard"(){return h(this)},"~run"(e,t){return void 0===e.value&&(void 0!==this.default&&(e.value=S(this,e,t)),void 0===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function P(e){return{kind:"schema",type:"string",reference:P,expects:"string",async:!1,message:e,get"~standard"(){return h(this)},"~run"(e,t){return"string"==typeof e.value?e.typed=!0:d(this,"type",e,t),e}}}function j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(o({},t[0]),{},{pipe:t,get"~standard"(){return h(this)},"~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 C=n(951);const T=(e,t)=>j(A(),m(e),y(t)),L=/^(\d+)\s* \s*(\d*(?:\.\d+)?%)\s* \s*(\d*(?:\.\d+)?%)$/;let M=function(e){return e.MEMORY="MEMORY",e.DEFAULT="DEFAULT",e}({});const I=function e(t,n){return{kind:"schema",type:"custom",reference:e,expects:"unknown",async:!1,check:t,message:n,get"~standard"(){return h(this)},"~run"(e,t){return this.check(e.value)?e.typed=!0:d(this,"type",e,t),e}}}(e=>void 0===e||"string"==typeof e&&L.test(e)),$=k({appId:P(),apiUrl:P(),watermark:w(O(),!0),placeholderText:w(P(),"Искать на сайте"),disableLinks:w(O(),!1),disableImages:w(O(),!1),currency:w(E(C.S),C.S.RUB),disablePrices:w(O(),!1),router:w(k({mode:w(E(M),M.MEMORY)}),{mode:M.MEMORY}),theme:w(x(k({primaryColor:w(x(I),void 0),textColor:w(x(I),void 0),textSize:w(j(A(),m(12),y(24)),16)})),void 0),displayParams:w(function e(t,n){return{kind:"schema",type:"array",reference:e,expects:"Array",async:!1,item:t,message:n,get"~standard"(){return h(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 i=n[o],a=this.item["~run"]({value:i},t);if(a.issues){const s={type:"array",origin:"value",input:n,key:o,value:i};for(const t of a.issues){var r;t.path?t.path.unshift(s):t.path=[s],null===(r=e.issues)||void 0===r||r.push(t)}if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else d(this,"type",e,t);return e}}}(k({name:P()})),[]),displayOfferCounter:w(O(),!0),displayUnits:w(O(),!0),displayCloseButton:w(O(),!1),history:w(k({enabled:w(O(),!0),maxItems:w(T(0,10),5)}),{enabled:!0,maxItems:5}),catalog:w(k({enabled:w(O(),!1),facetedSearch:w(k({enabled:w(O(),!1)}),{enabled:!1}),pagination:w(k({enabled:w(O(),!0),perPage:w(T(0,50),20)}),{enabled:!0,perPage:20})}),{enabled:!1,pagination:{enabled:!0,perPage:20},facetedSearch:{enabled:!1}})});function R(e){try{return function(e,t,n){const r=e["~run"]({value:t},s(n));if(r.issues)throw new g(r.issues);return r.value}($,e)}catch(e){throw new Error("Cannot validate widget config",{cause:e})}}},5951(e,t,n){n.d(t,{E:()=>r,q:()=>o});const r="poisk-dev-search-bar",o="[data-poisk-dev-host]"},601(e,t,n){n.d(t,{v:()=>r});const r=console},8788(e,t,n){n.d(t,{p:()=>i});var r=n(1337);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const i=()=>{const e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,r.ok)(),2),t=e[0],n=e[1];return[t,(e,t)=>n(e,t)]}},951(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}({})},1337(e,t,n){n.d(t,{Ix:()=>te,fS:()=>ne,ok:()=>C,qh:()=>K});var r=n(4193),o=n(8823);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=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+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){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 i of e)i.listener(l(l({},o),{},{from:i.location,retry:e=>{e&&(t=!0),i.navigate(n,l(l({},r),{},{resolve:!1}))}}));return!o.defaultPrevented}}}let f;function d(){window.history.state&&null!=window.history.state._depth||window.history.replaceState(l(l({},window.history.state),{},{_depth:window.history.length-1}),""),f=window.history.state._depth}r.S$||d();const p=/^(?:[a-z0-9]+:)?\/\//i,h=/^\/+|(\/)\/+$/g,v="http://sr";function g(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.replace(h,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function y(e,t,n){if(p.test(t))return;const r=g(e),o=n&&g(n);let i="";return i=!o||t.startsWith("/")?r:0!==o.toLowerCase().indexOf(r.toLowerCase())?r+o:o,(i||"/")+g(t,!i)}function m(e,t){return g(e).replace(/\/*(\*.*)?$/g,"")+g(t)}function b(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 w(e,t,n){const r=i(e.split("/*",2),2),o=r[0],a=r[1],s=o.split("/").filter(Boolean),l=s.length;return e=>{const r=e.split("/").filter(Boolean),o=r.length-l;if(o<0||o>0&&void 0===a&&!t)return null;const i={path:l?"":"/",params:{}},u=e=>void 0===n?void 0:n[e];for(let e=0;e<l;e++){const t=s[e],n=":"===t[0],o=n?r[e]:r[e].toLowerCase(),a=n?t.slice(1):t.toLowerCase();if(n&&S(o,u(a)))i.params[a]=o;else if(n||!S(o,a))return null;i.path+="/".concat(o)}if(a){const e=o?r.slice(-o).join("/"):"";if(!S(e,u(a)))return null;i.params[a]=e}return i}}function S(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 O(e){const t=i(e.pattern.split("/*",2),2),n=t[0],r=t[1],o=n.split("/").filter(Boolean);return o.reduce((e,t)=>e+(t.startsWith(":")?2:3),o.length-(void 0===r?0:1))}function E(e){const t=new Map,n=(0,o.QQ)();return new Proxy({},{get:(r,i)=>(t.has(i)||(0,o.vP)(n,()=>t.set(i,(0,o.To)(()=>e()[i]))),t.get(i)()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),ownKeys:()=>Reflect.ownKeys(e())})}function A(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 A(r).reduce((e,t)=>[...e,...o.map(e=>e+t)],[])}const k=(0,o.q6)(),x=(0,o.q6)(),P=()=>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)(k)),j=()=>P().navigatorFactory(),C=()=>{const e=P().location,t=j();return[e.query,(n,r)=>{const a=(0,o.vz)(()=>function(e,t){const n=new URLSearchParams(e);Object.entries(t).forEach(e=>{let t=i(e,2),r=t[0],o=t[1];null==o||""===o||o instanceof Array&&!o.length?n.delete(r):o instanceof Array?(n.delete(r),o.forEach(e=>{n.append(r,String(e))})):n.set(r,String(o))});const r=n.toString();return r?"?".concat(r):""}(e.search,n)+e.hash);t(a,l({scroll:!1,resolve:!1},r))}]};function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.component,r=e.preload,o=e.load,i=e.children,a=e.info,s=!i||Array.isArray(i)&&!i.length,u={key:e,component:n,preload:r||o,info:a};return M(e.path).reduce((n,r)=>{for(const o of A(r)){const i=m(t,o);let a=s?i:i.split("/*",1)[0];a=a.split("/").map(e=>e.startsWith(":")||e.startsWith("*")?e:encodeURIComponent(e)).join("/"),n.push(l(l({},u),{},{originalPath:r,pattern:a,matcher:w(a,!s,e.matchFilters)}))}return n},[])}function L(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{routes:e,score:1e4*O(e[e.length-1])-t,matcher(t){const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r],i=o.matcher(t);if(!i)return null;n.unshift(l(l({},i),{},{route:o}))}return n}}}function M(e){return Array.isArray(e)?e:[e]}function I(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=M(e);for(let e=0,i=o.length;e<i;e++){const i=o[e];if(i&&"object"==typeof i){i.hasOwnProperty("path")||(i.path="");const e=T(i,t);for(const t of e){n.push(t);const e=Array.isArray(i.children)&&0===i.children.length;if(i.children&&!e)I(i.children,t.pattern,n,r);else{const e=L([...n],r.length);r.push(e)}n.pop()}}}return n.length?r:r.sort((e,t)=>t.score-e.score)}function $(e,t){for(let n=0,r=e.length;n<r;n++){const r=e[n].matcher(t);if(r)return r}return[]}let R;function D(){return R}let N=!1;function U(){return N}function q(e){N=e}function F(e,t,n,r){const i=e.base,a=e.location,s=e.params,l=r().route,u=l.pattern,c=l.component,f=l.preload,d=(0,o.To)(()=>r().path);c&&c.preload&&c.preload(),N=!0;const p=f?f({params:s,location:a,intent:R||"initial"}):void 0;return N=!1,{parent:t,pattern:u,path:d,outlet:()=>c?(0,o.a0)(c,{params:s,location:a,data:p,get children(){return n()}}):n(),resolvePath:e=>y(i.path(),e,d())}}const _=e=>t=>{const n=t.base,a=(0,o.Y_)(()=>t.children),s=(0,o.To)(()=>I(a(),t.base||""));let u;const f=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s=i(e.signal,2),u=s[0],f=s[1],d=e.utils,p=void 0===d?{}:d,h=p.parsePath||(e=>e),g=p.renderPath||(e=>e),m=p.beforeLeave||c(),w=y("",a.base||"");if(void 0===w)throw new Error("".concat(w," is not a valid base path"));w&&!u().value&&f({value:w,replace:!0,scroll:!1});const S=i((0,o.n5)(!1),2),O=S[0],A=S[1];let k;const P=(e,t)=>{t.value===C()&&t.state===M()||(void 0===k&&A(!0),R=e,k=t,(0,o.KQ)(()=>{k===t&&(T(k.value),I(k.state),(0,o.Sc)(),r.S$||q[1](e=>e.filter(e=>e.pending)))}).finally(()=>{k===t&&(0,o.vA)(()=>{R=void 0,"navigate"===e&&function(e){const t=U[0];t&&(f(l(l({},e),{},{replace:t.replace,scroll:t.scroll})),U.length=0)}(k),A(!1),k=void 0})}))},j=i((0,o.n5)(u().value),2),C=j[0],T=j[1],L=i((0,o.n5)(u().state),2),M=L[0],I=L[1],D=function(e,t,n){const r=new URL(v),i=(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}),a=(0,o.To)(()=>i().pathname),s=(0,o.To)(()=>i().search,!0),l=(0,o.To)(()=>i().hash),u=(0,o.on)(s,()=>b(i()));return{get pathname(){return a()},get search(){return s()},get hash(){return l()},get state(){return t()},get key(){return""},query:n?n(u):E(u)}}(C,M,p.queryWrapper),U=[],q=(0,o.n5)(r.S$?function(){const e=(0,r.yS)();return e&&e.router&&e.router.submission?[e.router.submission]:[]}():[]),F=(0,o.To)(()=>"function"==typeof a.transformUrl?$(t(),a.transformUrl(D.pathname)):$(t(),D.pathname)),_=()=>{const e=F(),t={};for(let n=0;n<e.length;n++)Object.assign(t,e[n].params);return t},B=p.paramsWrapper?p.paramsWrapper(_,t):E(_),V={pattern:w,path:()=>w,outlet:()=>null,resolvePath:e=>y(w,e)};return(0,o.gb)((0,o.on)(u,e=>P("native",e),{defer:!0})),{base:V,location:D,params:B,isRouting:O,renderPath:g,parsePath:h,navigatorFactory:function(e){return e=e||(0,o.NT)(x)||V,(t,n)=>function(e,t,n){(0,o.vz)(()=>{if("number"==typeof t)return void(t&&(p.go?p.go(t):console.warn("Router integration does not support relative routing")));const o=!t||"?"===t[0],i=l({replace:!1,resolve:!o,scroll:!0},n),a=i.replace,s=i.resolve,u=i.scroll,c=i.state,d=s?e.resolvePath(t):y(o&&D.pathname||"",t);if(void 0===d)throw new Error("Path '".concat(t,"' is not a routable path"));if(U.length>=100)throw new Error("Too many redirects");const h=C();if(d!==h||c!==M())if(r.S$){const e=(0,r.yS)();e&&(e.response={status:302,headers:new Headers({Location:d})}),f({value:d,replace:a,scroll:u,state:c})}else m.confirm(d,n)&&(U.push({value:h,replace:a,scroll:u,state:M()}),P("navigate",{value:d,state:c}))})}(e,t,n)},matches:F,beforeLeave:m,preloadRoute:function(e,r){const i=$(t(),e.pathname),a=R;R="preload";for(let t in i){const a=i[t],s=a.route,l=a.params;s.component&&s.component.preload&&s.component.preload();const u=s.preload;N=!0,r&&u&&(0,o.vP)(n(),()=>u({params:l,location:{pathname:e.pathname,search:e.search,hash:e.hash,query:b(e),state:null,key:""},intent:"preload"})),N=!1}R=a},singleFlight:void 0===a.singleFlight||a.singleFlight,submissions:q}}(e,s,()=>u,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(f),(0,o.a0)(k.Provider,{value:f,get children(){return(0,o.a0)(B,{routerState:f,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[(0,r.ph)(()=>(u=(0,o.QQ)())&&null),(0,o.a0)(V,{routerState:f,get branches(){return s()}})]}})}})};function B(e){const t=e.routerState.location,n=e.routerState.params,r=(0,o.To)(()=>e.preload&&(0,o.vz)(()=>{q(!0),e.preload({params:n,location:t,intent:D()||"initial"}),q(!1)}));return(0,o.a0)(o.wv,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:i=>(0,o.a0)(i,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function V(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=$(n,new URL(e.router.previousUrl||e.request.url).pathname),i=$(n,r.pathname);for(let n=0;n<i.length;n++){o[n]&&i[n].route===o[n].route||(e.router.dataOnly=!0);const r=i[n],a=r.route,s=r.params;a.preload&&a.preload({params:s,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 t=e.route,n=e.path,r=e.params;return{path:t.originalPath,pattern:t.pattern,match:n,params:r,info:t.info}})))}const t=[];let n;const i=(0,o.To)((0,o.on)(e.routerState.matches,(r,a,s)=>{let l=a&&r.length===a.length;const u=[];for(let n=0,c=r.length;n<c;n++){const c=a&&a[n],f=r[n];s&&c&&f.route.key===c.route.key?u[n]=s[n]:(l=!1,t[n]&&t[n](),(0,o.Hr)(r=>{t[n]=r,u[n]=F(e.routerState,u[n-1]||e.routerState.base,H(()=>i()[n+1]),()=>e.routerState.matches()[n])}))}return t.splice(r.length).forEach(e=>e()),s&&l?s:(n=u[0],u)}));return H(()=>i()&&n)()}const H=e=>()=>(0,o.a0)(o.wv,{get when(){return e()},keyed:!0,children:e=>(0,o.a0)(x.Provider,{value:e,get children(){return e.outlet()}})}),K=e=>{const t=(0,o.Y_)(()=>e.children);return(0,o.v6)(e,{get children(){return t()}})};function z(e){let t=!1;const n=e=>"string"==typeof e?{value:e}:e,r=function(e,t,n){let r=i(e,2),o=r[0],a=r[1];return[o,n?e=>a(n(e)):a]}((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})),_({signal:r,create:e.create,utils:e.utils})}function W(e,t){const n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}function Y(e){const t=new URL(e);return t.pathname+t.search}let Q=new Map;function G(){if(!r.S$)return Q;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 Z(e,t){e.GET&&(e=e.GET);const n=function(){const n=G(),i=D(),a=U(),s=(0,o.QQ)()?j():void 0,l=Date.now();for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];const d=t+X(c);let p,h,v=n.get(d);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&&d in n)return n[d];if(Array.isArray(t)&&!function(e,t){for(let n of t)if(n&&e.startsWith(n))return!0;return!1}(d,t))return n[d]=void 0,Promise.resolve()}}}if((0,o.ZR)()&&!r.S$&&(p=!0,(0,o.Ki)(()=>v[4].count--)),v&&v[0]&&(r.S$||"native"===i||v[4].count||Date.now()-v[0]<5e3)){p&&(v[4].count++,v[4][0]()),"preload"===v[3]&&"preload"!==i&&(v[0]=l);let e=v[1];return"preload"!==i&&(e="then"in v[1]?v[1].then(g(!1),g(!0)):g(!1)(v[1]),!r.S$&&"navigate"===i&&(0,o.KQ)(()=>v[4][1](v[0]))),a&&"then"in e&&e.catch(()=>{}),e}if(!r.S$&&o.sE.has&&o.sE.has(d)?(h=o.sE.load(d),delete globalThis._$HY.r[d]):h=e(...c),v?(v[0]=l,v[1]=h,v[3]=i,!r.S$&&"navigate"===i&&(0,o.KQ)(()=>v[4][1](v[0]))):(n.set(d,v=[l,h,,i,(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[d]=h}if("preload"!==i&&(h="then"in h?h.then(g(!1),g(!0)):g(!1)(h)),a&&"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(d,h)}return h;function g(e){return async t=>{if(t instanceof Response){const e=t.headers.get("Location");if(null!==e){if(s&&e.startsWith("/"))(0,o.KQ)(()=>{s(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+X(n)},n.key=t,n}function X(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 n of Q.entries()){var t=i(n,2);let r=t[0],o=t[1];!o[4].count&&e-o[0]>18e4&&Q.delete(r)}},3e5),Z.get=e=>G().get(e)[2],Z.set=(e,t)=>{const n=G(),r=Date.now();let i=n.get(e);i?(i[0]=r,i[1]=Promise.resolve(t),i[2]=t,i[3]="preload"):(n.set(e,i=[r,Promise.resolve(t),t,"preload",(0,o.n5)(r)]),i[4].count=0)},Z.delete=e=>G().delete(e),Z.clear=()=>G().clear();const J=new Map;function ee(){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",a=arguments.length>3?arguments[3]:void 0;return s=>{const l=s.base.path(),u=s.navigatorFactory(s.base);let c,f;function d(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 i=(n.getAttribute("rel")||"").split(/\s+/);if(n.hasAttribute("download")||i&&i.includes("external"))return;const a=r?new URL(o,document.baseURI):new URL(o);return a.origin!==window.location.origin||l&&a.pathname&&!a.pathname.toLowerCase().startsWith(l.toLowerCase())?void 0:[n,a]}function p(e){const t=d(e);if(!t)return;const n=i(t,2),r=n[0],o=n[1],a=s.parsePath(o.pathname+o.search+o.hash),l=r.getAttribute("state");e.preventDefault(),u(a,{resolve:!1,replace:r.hasAttribute("replace"),scroll:!r.hasAttribute("noscroll"),state:l?JSON.parse(l):void 0})}function h(e){const t=d(e);if(!t)return;const n=i(t,2),r=n[0],o=n[1];a&&(o.pathname=a(o.pathname)),s.preloadRoute(o,"false"!==r.getAttribute("preload"))}function g(e){clearTimeout(c);const t=d(e);if(!t)return f=null;const n=i(t,2),r=n[0],o=n[1];f!==r&&(a&&(o.pathname=a(o.pathname)),c=setTimeout(()=>{s.preloadRoute(o,"false"!==r.getAttribute("preload")),f=r},20))}function y(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,v);if(t=s.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=J.get(t);if(r){e.preventDefault();const t=new FormData(e.target,e.submitter);r.call({r:s,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",g,{passive:!0}),document.addEventListener("focusin",h,{passive:!0}),document.addEventListener("touchstart",h,{passive:!0})),document.addEventListener("submit",y),(0,o.Ki)(()=>{document.removeEventListener("click",p),e&&(document.removeEventListener("mousemove",g),document.removeEventListener("focusin",h),document.removeEventListener("touchstart",h)),document.removeEventListener("submit",y)})}}function te(e){if(r.S$)return function(e){let t;const n={value:e.url||(t=(0,r.yS)())&&Y(t.request.url)||""};return _({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=c();return z({get:t,set(e){let t=e.value,n=e.replace,r=e.scroll,o=e.state;n?window.history.replaceState(function(e){return l(l({},e),{},{_depth:window.history.state&&window.history.state._depth})}(o),"",t):window.history.pushState(o,"",t),W(decodeURIComponent(window.location.hash.slice(1)),r),d()},init:e=>{return r=window,o="popstate",i=function(e,t){let n=!1;return()=>{const r=f;d();const o=null==r?null:f-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,i),()=>r.removeEventListener(o,i);var r,o,i},create:ee(e.preload,e.explicitLinks,e.actionBase,e.transformUrl),utils:{go:e=>window.history.go(e),beforeLeave:n}})(e)}function ne(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 o=r.value,i=r.scroll;r.replace?e[t]=o:(e.splice(t+1,e.length-t,o),t++),n.forEach(e=>e(o)),setTimeout(()=>{i&&W(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 z({get:t.get,set:t.set,init:t.listen,create:ee(e.preload,e.explicitLinks,e.actionBase),utils:{go:t.go}})(e)}},8823(e,t,n){function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=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+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Ds:()=>Ee,EH:()=>C,Hr:()=>k,IJ:()=>$e,KQ:()=>F,KZ:()=>P,Ki:()=>D,NT:()=>H,QQ:()=>U,RZ:()=>Se,Rc:()=>R,Sc:()=>Te,To:()=>T,WX:()=>p,YG:()=>je,Y_:()=>K,ZR:()=>N,Zg:()=>L,a:()=>ke,a0:()=>he,dO:()=>Pe,dg:()=>f,gb:()=>j,n5:()=>x,on:()=>$,q6:()=>V,rg:()=>we,sE:()=>l,tH:()=>Le,tY:()=>Ie,v6:()=>be,vA:()=>M,vP:()=>q,vz:()=>I,wv:()=>xe});const l={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return u(this.context.count)},getNextContextId(){return u(this.context.count++)}};function u(e){const t=String(e),n=t.length-1;return l.context.id+(n?String.fromCharCode(96+n):"")+t}function c(e){l.context=e}const f=Symbol("solid-proxy"),d="function"==typeof Proxy,p=Symbol("solid-track"),h=(Symbol("solid-dev-component"),{equals:(e,t)=>e===t});let v=null,g=te;const y={owned:null,cleanups:null,context:null,owner:null},m={};var b=null;let w=null,S=null,O=null,E=null,A=0;function k(e,t){const n=S,r=b,o=0===e.length,i=void 0===t?r:t,a=o?y:{owned:null,cleanups:null,context:i?i.context:null,owner:i},s=o?e:()=>e(()=>I(()=>ie(a)));b=a,S=null;try{return ee(s,!0)}finally{S=n,b=r}}function x(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},h,t):h).equals||void 0};return[Y.bind(n),e=>("function"==typeof e&&(e=w&&w.running&&w.sources.has(n)?e(n.tValue):e(n.value)),Q(n,e))]}function P(e,t,n){const r=X(e,t,!0,1);G(r)}function j(e,t,n){const r=X(e,t,!1,1);G(r)}function C(e,t,n){g=ne;const r=X(e,t,!1,1),o=z&&H(z);o&&(r.suspense=o),n&&n.render||(r.user=!0),E?E.push(r):G(r)}function T(e,t,n){n=n?Object.assign({},h,n):h;const r=X(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,G(r),Y.bind(r)}function L(e,t,n){let o,i,a;"function"==typeof t?(o=e,i=t,a=n||{}):(o=!0,i=e,a=t||{});let s=null,u=m,c=null,f=!1,d=!1,p="initialValue"in a,h="function"==typeof o&&T(o);const v=new Set,g=r((a.storage||x)(a.initialValue),2),y=g[0],O=g[1],E=r(x(void 0),2),A=E[0],k=E[1],j=r(x(void 0,{equals:!1}),2),C=j[0],L=j[1],M=r(x(p?"ready":"unresolved"),2),$=M[0],R=M[1];function D(e,t,n,r){return s===e&&(s=null,void 0!==r&&(p=!0),e!==u&&t!==u||!a.onHydrated||queueMicrotask(()=>a.onHydrated(r,{value:t})),u=m,w&&e&&f?(w.promises.delete(e),f=!1,ee(()=>{w.running=!0,N(t,n)},!1)):N(t,n)),t}function N(e,t){ee(()=>{void 0===t&&O(()=>e),R(void 0!==t?"errored":p?"ready":"unresolved"),k(t);for(const e of v.keys())e.decrement();v.clear()},!1)}function U(){const e=z&&H(z),t=y(),n=A();if(void 0!==n&&!s)throw n;return S&&!S.user&&e&&P(()=>{C(),s&&(e.resolved&&w&&f?w.promises.add(s):v.has(e)||(e.increment(),v.add(e)))}),t}function F(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!1!==e&&d)return;d=!1;const t=h?h():o;if(f=w&&w.running,null==t||!1===t)return void D(s,I(y));let n;w&&s&&w.promises.delete(s);const r=u!==m?u:I(()=>{try{return i(t,{value:y(),refetching:e})}catch(e){n=e}});var a;if(void 0===n)return(a=r)&&"object"==typeof a&&"then"in a?(s=r,"v"in r?(1===r.s?D(s,r.v,void 0,t):D(s,void 0,se(r.v),t),r):(d=!0,queueMicrotask(()=>d=!1),ee(()=>{R(p?"refreshing":"pending"),L()},!1),r.then(e=>D(r,e,void 0,t),e=>D(r,void 0,se(e),t)))):(D(s,r,void 0,t),r);D(s,void 0,se(n),t)}l.context&&(c=l.getNextContextId(),"initial"===a.ssrLoadFrom?u=a.initialValue:l.load&&l.has(c)&&(u=l.load(c))),Object.defineProperties(U,{state:{get:()=>$()},error:{get:()=>A()},loading:{get(){const e=$();return"pending"===e||"refreshing"===e}},latest:{get(){if(!p)return U();const e=A();if(e&&!s)throw e;return y()}}});let _=b;return h?P(()=>(_=b,F(!1))):F(!1),[U,{refetch:e=>q(_,()=>F(e)),mutate:O}]}function M(e){return ee(e,!1)}function I(e){if(null===S)return e();const t=S;S=null;try{return e()}finally{S=t}}function $(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return n=>{let a;if(r){a=Array(e.length);for(let t=0;t<e.length;t++)a[t]=e[t]()}else a=e();if(i)return i=!1,n;const s=I(()=>t(a,o,n));return o=a,s}}function R(e){C(()=>I(e))}function D(e){return null===b||(null===b.cleanups?b.cleanups=[e]:b.cleanups.push(e)),e}function N(){return S}function U(){return b}function q(e,t){const n=b,r=S;b=e,S=null;try{return ee(t,!0)}catch(e){ue(e)}finally{b=n,S=r}}function F(e){if(w&&w.running)return e(),w.done;const t=S,n=b;return Promise.resolve().then(()=>{let r;return S=t,b=n,z&&(r=w||(w={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),S=b=null,r?r.done:void 0})}const _=r(x(!1),2),B=(_[0],_[1]);function V(e,t){const n=Symbol("context");return{id:n,Provider:fe(n),defaultValue:e}}function H(e){let t;return b&&b.context&&void 0!==(t=b.context[e.id])?t:e.defaultValue}function K(e){const t=T(e),n=T(()=>ce(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}let z;function W(){return z||(z=V())}function Y(){const e=w&&w.running;if(this.sources&&(e?this.tState:this.state))if(1===(e?this.tState:this.state))G(this);else{const e=O;O=null,ee(()=>re(this),!1),O=e}if(S){const e=this.observers;if(!e||e[e.length-1]!==S){const t=e?e.length:0;S.sources?(S.sources.push(this),S.sourceSlots.push(t)):(S.sources=[this],S.sourceSlots=[t]),e?(e.push(S),this.observerSlots.push(S.sources.length-1)):(this.observers=[S],this.observerSlots=[S.sources.length-1])}}return e&&w.sources.has(this)?this.tValue:this.value}function Q(e,t,n){let r=w&&w.running&&w.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(w){const r=w.running;(r||!n&&w.sources.has(e))&&(w.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=w&&w.running;r&&w.disposed.has(n)||((r?n.tState:n.state)||(n.pure?O.push(n):E.push(n),n.observers&&oe(n)),r?n.tState=1:n.state=1)}if(O.length>1e6)throw O=[],new Error},!1)}return t}function G(e){if(!e.fn)return;ie(e);const t=A;Z(e,w&&w.running&&w.sources.has(e)?e.tValue:e.value,t),w&&!w.running&&w.sources.has(e)&&queueMicrotask(()=>{ee(()=>{w&&(w.running=!0),S=b=e,Z(e,e.tValue,t),S=b=null},!1)})}function Z(e,t,n){let r;const o=b,i=S;S=b=e;try{r=e.fn(t)}catch(t){return e.pure&&(w&&w.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(ie),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(ie),e.owned=null)),e.updatedAt=n+1,ue(t)}finally{S=i,b=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?Q(e,r,!0):w&&w.running&&e.pure?(w.sources.has(e)||(e.value=r),w.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]:1;const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:b,context:b?b.context:null,pure:n};return w&&w.running&&(o.state=0,o.tState=r),null===b||b!==y&&(w&&w.running&&b.pure?b.tOwned?b.tOwned.push(o):b.tOwned=[o]:b.owned?b.owned.push(o):b.owned=[o]),o}function J(e){const t=w&&w.running;if(0===(t?e.tState:e.state))return;if(2===(t?e.tState:e.state))return re(e);if(e.suspense&&I(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<A);){if(t&&w.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(w.disposed.has(t))return}if(1===(t?e.tState:e.state))G(e);else if(2===(t?e.tState:e.state)){const t=O;O=null,ee(()=>re(e,n[0]),!1),O=t}}}function ee(e,t){if(O)return e();let n=!1;t||(O=[]),E?n=!0:E=[],A++;try{const t=e();return function(e){if(O&&(te(O),O=null),e)return;let t;if(w)if(w.promises.size||w.queue.size){if(w.running)return w.running=!1,w.effects.push.apply(w.effects,E),E=null,void B(!0)}else{const e=w.sources,n=w.disposed;E.push.apply(E,w.effects),t=w.resolve;for(const e of E)"tState"in e&&(e.state=e.tState),delete e.tState;w=null,ee(()=>{for(const e of n)ie(e);for(const t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)ie(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}B(!1)},!1)}const n=E;E=null,n.length&&ee(()=>g(n),!1),t&&t()}(n),t}catch(e){n||(E=null),O=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(l.context){if(l.count)return l.effects||(l.effects=[]),void l.effects.push(...e.slice(0,n));c()}for(!l.effects||!l.done&&l.count||(e=[...l.effects,...e],n+=l.effects.length,delete l.effects),t=0;t<n;t++)J(e[t])}function re(e,t){const n=w&&w.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;1===e?o!==t&&(!o.updatedAt||o.updatedAt<A)&&J(o):2===e&&re(o,t)}}}function oe(e){const t=w&&w.running;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];(t?r.tState:r.state)||(t?r.tState=2:r.state=2,r.pure?O.push(r):E.push(r),r.observers&&oe(r))}}function ie(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--)ie(e.tOwned[t]);delete e.tOwned}if(w&&w.running&&e.pure)ae(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)ie(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}w&&w.running?e.tState=0:e.state=0}function ae(e,t){if(t||(e.tState=0,w.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)ae(e.owned[t])}function se(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]:b;const n=v&&t&&t.context&&t.context[v],r=se(e);if(!n)throw r;E?E.push({fn(){le(r,n,t)},state:1}):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]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let e=0;e<r.length;e++)t.push(r[e]);else t.push(r)}return t}return e}function fe(e,t){return function(t){let n;return j(()=>n=I(()=>(b.context=a(a({},b.context),{},{[e]:t.value}),K(()=>t.children))),void 0),n}}const de=Symbol("fallback");function pe(e){for(let t=0;t<e.length;t++)e[t]()}function he(e,t){return I(()=>e(t||{}))}function ve(){return!0}const ge={get:(e,t,n)=>t===f?n:e.get(t),has:(e,t)=>t===f||e.has(t),set:ve,deleteProperty:ve,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:ve,deleteProperty:ve}),ownKeys:e=>e.keys()};function ye(e){return(e="function"==typeof e?e():e)?e:{}}function me(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function be(){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&&f in n,t[e]="function"==typeof n?(r=!0,T(n)):n}if(d&&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)]}},ge);const o={},i=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 a=Object.getOwnPropertyDescriptor(n,t);if(i[t]){const e=o[t];e&&(a.get?e.push(a.get.bind(n)):void 0!==a.value&&e.push(()=>a.value))}else i[t]=a.get?{enumerable:!0,configurable:!0,get:me.bind(o[t]=[a.get.bind(n)])}:void 0!==a.value?a:void 0}}const a={},s=Object.keys(i);for(let e=s.length-1;e>=0;e--){const t=s[e],n=i[t];n&&n.get?Object.defineProperty(a,t,n):a[t]=n?n.value:void 0}return a}function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=n.length;if(d&&f in e){const t=o>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)},ge));return r.push(new Proxy({get:n=>t.includes(n)?void 0:e[n],has:n=>!t.includes(n)&&n in e,keys:()=>Object.keys(e).filter(e=>!t.includes(e))},ge)),r}const i=[];for(let e=0;e<=o;e++)i[e]={};for(const t of Object.getOwnPropertyNames(e)){let r=o;for(let e=0;e<n.length;e++)if(n[e].includes(t)){r=e;break}const a=Object.getOwnPropertyDescriptor(e,t);!a.get&&!a.set&&a.enumerable&&a.writable&&a.configurable?i[r][t]=a.value:Object.defineProperty(i[r],t,a)}return i}function Se(e){let t,n;const o=o=>{const i=l.context;if(i){const o=r(x(),2),a=o[0],s=o[1];l.count||(l.count=0),l.count++,(n||(n=e())).then(e=>{!l.done&&c(i),l.count--,s(()=>e.default),c()}),t=a}else if(!t){const o=r(L(()=>(n||(n=e())).then(e=>e.default)),1)[0];t=o}let a;return T(()=>(a=t())?I(()=>{if(!i||l.done)return a(o);const e=l.context;c(i);const t=a(o);return c(e),t}):"")};return o.preload=()=>n||((n=e()).then(e=>t=()=>e.default),n),o}let Oe=0;function Ee(){return l.context?l.getNextContextId():"cl-".concat(Oe++)}const Ae=e=>"Stale read from <".concat(e,">.");function ke(e){const t="fallback"in e&&{fallback:()=>e.fallback};return T(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],i=[],a=[],s=0,l=t.length>1?[]:null;return D(()=>pe(a)),()=>{let u,c,f=e()||[],d=f.length;return f[p],I(()=>{let e,t,r,p,v,g,y,m,b;if(0===d)0!==s&&(pe(a),a=[],o=[],i=[],s=0,l&&(l=[])),n.fallback&&(o=[de],i[0]=k(e=>(a[0]=e,n.fallback())),s=1);else if(0===s){for(i=new Array(d),c=0;c<d;c++)o[c]=f[c],i[c]=k(h);s=d}else{for(r=new Array(d),p=new Array(d),l&&(v=new Array(d)),g=0,y=Math.min(s,d);g<y&&o[g]===f[g];g++);for(y=s-1,m=d-1;y>=g&&m>=g&&o[y]===f[m];y--,m--)r[m]=i[y],p[m]=a[y],l&&(v[m]=l[y]);for(e=new Map,t=new Array(m+1),c=m;c>=g;c--)b=f[c],u=e.get(b),t[c]=void 0===u?-1:u,e.set(b,c);for(u=g;u<=y;u++)b=o[u],c=e.get(b),void 0!==c&&-1!==c?(r[c]=i[u],p[c]=a[u],l&&(v[c]=l[u]),c=t[c],e.set(b,c)):a[u]();for(c=g;c<d;c++)c in r?(i[c]=r[c],a[c]=p[c],l&&(l[c]=v[c],l[c](c))):i[c]=k(h);i=i.slice(0,s=d),o=f.slice(0)}return i});function h(e){if(a[c]=e,l){const e=r(x(c),2),n=e[0],o=e[1];return l[c]=o,t(f[c],n)}return t(f[c])}}}(()=>e.each,e.children,t||void 0))}function xe(e){const t=e.keyed,n=T(()=>e.when,void 0,void 0),r=t?n:T(n,void 0,{equals:(e,t)=>!e==!t});return T(()=>{const o=r();if(o){const i=e.children;return"function"==typeof i&&i.length>0?I(()=>i(t?o:()=>{if(!I(r))throw Ae("Show");return n()})):i}return e.fallback},void 0,void 0)}function Pe(e){const t=K(()=>e.children),n=T(()=>{const e=t(),n=Array.isArray(e)?e:[e];let r=()=>{};for(let e=0;e<n.length;e++){const t=e,o=n[e],i=r,a=T(()=>i()?void 0:o.when,void 0,void 0),s=o.keyed?a:T(a,void 0,{equals:(e,t)=>!e==!t});r=()=>i()||(s()?[t,a,o]:void 0)}return r});return T(()=>{const t=n()();if(!t)return e.fallback;const o=r(t,3),i=o[0],a=o[1],s=o[2],l=s.children;return"function"==typeof l&&l.length>0?I(()=>l(s.keyed?a():()=>{var e;if((null===(e=I(n)())||void 0===e?void 0:e[0])!==i)throw Ae("Match");return a()})):l},void 0,void 0)}function je(e){return e}let Ce;function Te(){Ce&&[...Ce].forEach(e=>e())}function Le(e){let t;l.context&&l.load&&(t=l.load(l.getContextId()));const n=r(x(t,void 0),2),o=n[0],i=n[1];return Ce||(Ce=new Set),Ce.add(i),D(()=>Ce.delete(i)),T(()=>{let t;if(t=o()){const n=e.fallback;return"function"==typeof n&&n.length?I(()=>n(t,()=>i())):n}return function(t,n){v||(v=Symbol("error")),(b=X(void 0,void 0,!0)).context=a(a({},b.context),{},{[v]:[n]}),w&&w.running&&w.sources.add(b);try{return e.children}catch(e){ue(e)}finally{b=b.owner}}(0,i)},void 0,void 0)}const Me=V();function Ie(e){let t,n,o,i,a,s=0;const u=r(x(!1),2),f=u[0],d=u[1],p=W(),h={increment:()=>{1===++s&&d(!0)},decrement:()=>{0===--s&&d(!1)},inFallback:f,effects:[],resolved:!1},v=U();if(l.context&&l.load){const e=l.getContextId();let t=l.load(e);if(t&&("object"!=typeof t||1!==t.s?o=t:l.gather(e)),o&&"$$f"!==o){const t=r(x(void 0,{equals:!1}),2),s=t[0],u=t[1];i=s,o.then(()=>{if(l.done)return u();l.gather(e),c(n),u(),c()},e=>{a=e,u()})}}const g=H(Me);let y;return g&&(t=g.register(h.inFallback)),D(()=>y&&y()),he(p.Provider,{value:h,get children(){return T(()=>{if(a)throw a;if(n=l.context,i)return i(),i=void 0;n&&"$$f"===o&&c();const r=T(()=>e.children);return T(i=>{const a=h.inFallback(),s=t?t():{},l=s.showContent,u=void 0===l||l,f=s.showFallback,d=void 0===f||f;return(!a||o&&"$$f"!==o)&&u?(h.resolved=!0,y&&y(),y=n=o=void 0,p=h.effects,E.push.apply(E,p),p.length=0,r()):d?y?i:k(t=>(y=t,n&&(c({id:n.id+"F",count:0}),n=void 0),e.fallback),v):void 0;var p})})}})}const $e=void 0},4193(e,t,n){n.d(t,{$h:()=>w,Bq:()=>m,Qi:()=>D,S$:()=>I,XX:()=>v,Yr:()=>E,Yx:()=>O,ZL:()=>R,il:()=>S,ph:()=>p,s7:()=>b,vs:()=>g,yS:()=>M,z_:()=>y});var r=n(8823);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const a=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable","allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"]),s=new Set(["innerHTML","textContent","innerText","children"]),l=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),u=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}}),c=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),f=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"]),d={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},p=e=>(0,r.To)(()=>e()),h="_$DX_DELEGATE";function v(e,t,n){let o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,r.Hr)(r=>{o=r,t===document?e():E(t,e(),t.firstChild?null:void 0,n)},i.owner),()=>{o(),t.textContent=""}}function g(e,t,n,o){let i;const a=()=>{const t=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return t.innerHTML=e,n?t.content.firstChild.firstChild:o?t.firstChild:t.content.firstChild},s=t?()=>(0,r.vz)(()=>document.importNode(i||(i=a()),!0)):()=>(i||(i=a())).cloneNode(!0);return s.cloneNode=s,s}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;const n=t[h]||(t[h]=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,P))}}function m(e,t,n){A(e)||(null==n?e.removeAttribute(t):e.setAttribute(t,n))}function b(e,t){A(e)||(null==t?e.removeAttribute("class"):e.className=t)}function w(e,t,n){null!=n?e.style.setProperty(t,n):e.style.removeProperty(t)}function S(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=j(e,t.children,o.children)),(0,r.gb)(()=>"function"==typeof t.ref&&O(t.ref,e)),(0,r.gb)(()=>function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=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,i,t)}for(const a in t){if("children"===a){r||j(e,t.children);continue}const s=t[a];o[a]=x(e,a,s,o[a],n,i,t)}}(e,t,n,!0,o,!0)),o}function O(e,t,n){return(0,r.vz)(()=>e(t,n))}function E(e,t,n,o){if(void 0===n||o||(o=[]),"function"!=typeof t)return j(e,t,o,n);(0,r.gb)(r=>j(e,t(),r,n),o)}function A(e){return!!r.sE.context&&!r.sE.done&&(!e||e.isConnected)}function k(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,o,i,f){let p,h,v,g,w;if("style"===t)return function(e,t,n){if(!t)return n?m(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,i;for(i in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=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 i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(k(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(k(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||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(),i=c.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||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,i),i&&y([o]))}else if("attr:"===t.slice(0,5))m(e,t.slice(5),n);else if("bool:"===t.slice(0,5))!function(e,t,n){A(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}(e,t.slice(5),n);else if((w="prop:"===t.slice(0,5))||(v=s.has(t))||!o&&((g=function(e,t){const n=u[e];return"object"==typeof n?n[t]?n.$:void 0:n}(t,e.tagName))||(h=a.has(t)))||(p=e.nodeName.includes("-")||"is"in f)){if(w)t=t.slice(5),h=!0;else if(A(e))return n;"class"===t||"className"===t?b(e,n):!p||h||v?e[g||t]=n:e[S=t,S.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())]=n}else{const r=o&&t.indexOf(":")>-1&&d[t.split(":")[0]];r?function(e,t,n,r){A(e)||(null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}(e,r,t,n):m(e,l[t]||t,n)}var S;return n}function P(e){if(r.sE.registry&&r.sE.events&&r.sE.events.find(t=>{let n=o(t,2);return n[0],n[1]===e}))return;let t=e.target;const n="$$".concat(e.type),i=e.target,a=e.currentTarget,s=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),l=()=>{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)&&s(t.host),!0},u=()=>{for(;l()&&(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();s(n[0]);for(let e=0;e<n.length-2&&(t=n[e],l());e++){if(t._$host){t=t._$host,u();break}if(t.parentNode===a)break}}else u();s(i)}function j(e,t,n,o,i){const a=A(e);if(a){!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 s=typeof t,l=void 0!==o;if(e=l&&n[0]&&n[0].parentNode||e,"string"===s||"number"===s){if(a)return n;if("number"===s&&(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=L(e,n,o,r)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===s){if(a)return n;n=L(e,n,o)}else{if("function"===s)return(0,r.gb)(()=>{let r=t();for(;"function"==typeof r;)r=r();n=j(e,r,n,o)}),()=>n;if(Array.isArray(t)){const s=[],u=n&&Array.isArray(n);if(C(s,t,n,i))return(0,r.gb)(()=>n=j(e,s,n,o,!0)),()=>n;if(a){if(!s.length)return n;if(void 0===o)return n=[...e.childNodes];let t=s[0];if(t.parentNode!==e)return n;const r=[t];for(;(t=t.nextSibling)!==o;)r.push(t);return n=r}if(0===s.length){if(n=L(e,n,o),l)return n}else u?0===n.length?T(e,s,o):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,u=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)u&&u.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!u){u=new Map;let e=s;for(;e<i;)u.set(n[e],e++)}const r=u.get(t[a]);if(null!=r)if(s<r&&r<i){let l,c=a,f=1;for(;++c<o&&c<i&&null!=(l=u.get(t[c]))&&l===r+f;)f++;if(f>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,s):(n&&L(e),T(e,s));n=s}else if(t.nodeType){if(a&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=L(e,n,o,t);L(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function C(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a,s=t[i],l=n&&n[e.length];if(null==s||!0===s||!1===s);else if("object"==(a=typeof s)&&s.nodeType)e.push(s);else if(Array.isArray(s))o=C(e,s,l)||o;else if("function"===a)if(r){for(;"function"==typeof s;)s=s();o=C(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||o}else e.push(s),o=!0;else{const t=String(s);l&&3===l.nodeType&&l.data===t?e.push(l):e.push(document.createTextNode(t))}}return o}function T(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 L(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}const M=()=>{};Symbol();const I=!1;function $(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e,{is:t})}function R(e){const t=e.useShadow,n=document.createTextNode(""),i=(0,r.QQ)();let a,s=!!r.sE.context;return(0,r.EH)(()=>{s&&((0,r.QQ)().user=s=!1),a||(a=(0,r.vP)(i,()=>(0,r.To)(()=>e.children)));const l=e.mount||document.body;if(l instanceof HTMLHeadElement){const e=o((0,r.n5)(!1),2),t=e[0],n=e[1],i=()=>n(!0);(0,r.Hr)(e=>E(l,()=>t()?e():a(),null)),(0,r.Ki)(i)}else{const o=$(e.isSVG?"g":"div",e.isSVG),i=t&&o.attachShadow?o.attachShadow({mode:"open"}):o;Object.defineProperty(o,"_$host",{get:()=>n.parentNode,configurable:!0}),E(i,a),l.appendChild(o),e.ref&&e.ref(o),(0,r.Ki)(()=>l.removeChild(o))}},void 0,{render:!s}),n}function D(e){return function(e,t){const n=(0,r.To)(e);return(0,r.To)(()=>{const e=n();switch(typeof e){case"function":return(0,r.vz)(()=>e(t));case"string":const n=f.has(e),o=r.sE.context?function(e){let t,n;return A()&&(t=r.sE.registry.get(n=r.sE.getNextContextId()))?(r.sE.completed&&r.sE.completed.add(t),r.sE.registry.delete(n),t):e()}():$(e,n,(0,r.vz)(()=>t.is));return S(o,t,n),o}})}(()=>e.component,o((0,r.rg)(e,["component"]),2)[1])}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.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:"f8a9d28a9604823ae112",603:"d49683584772cf3ed795",718:"0c1d8c7cdae9f6842b87",806:"38075ee9ed987e437b4c"}[e]+".chunk.js",o.miniCssF=e=>{},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="poiskDevWidget:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var f=u[c];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+i){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n,0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous")),e[n]=[r];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(r)),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}},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/web-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 i=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,s,l]=n,u=0;if(a.some(t=>0!==e[t])){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);l&&l(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkpoiskDevWidget=self.webpackChunkpoiskDevWidget||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i={};o.r(i),o.d(i,{renderApp:()=>D});var a=o(8823),s=o(4193),l=o(1337),u=o(249),c=o(388),f=o(601),d=o(8788),p=(0,s.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 h=()=>p(),v=e=>{var t;return(null===(t=e.composedPath)||void 0===t?void 0:t.call(e))||e.path||[]};function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const y=e=>{var t;return null==e||null===(t=e.matches)||void 0===t?void 0:t.call(e,"[data-poisk-dev-trigger]")},m={"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"]};function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const w=(0,a.RZ)(()=>Promise.all([o.e(603),o.e(806)]).then(o.bind(o,3685))),S="poiskDevApplication",O=()=>{const e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,d.p)(),2),t=e[0],n=e[1],r=(0,u._)(),o=()=>Boolean(t.pdAppOpen),i=e=>{n(e?{pdAppOpen:"true"}:{pdAppOpen:null,pdCatId:null,pdSelParams:null,pdMinPrice:null,pdMaxPrice:null,pdQuery:null,pdMode:null})};var s;return(0,a.Rc)(()=>{if(r().router.mode!==c.j.MEMORY)return;const e=e=>{null!=e&&e.state&&S in e.state&&i(!1)};window.addEventListener("popstate",e,{passive:!0}),(0,a.Ki)(()=>{window.removeEventListener("popstate",e)})}),(0,a.Rc)(()=>{const e=setTimeout(()=>{w.preload().catch(f.v.error)},3e3);(0,a.Ki)(()=>{window.clearTimeout(e)})}),s=e=>{e instanceof HTMLElement&&e.blur(),e instanceof HTMLInputElement&&(e.value=""),(()=>{const e=!o();i(e),e&&r().router.mode===c.j.MEMORY&&history.pushState({[S]:!0},"")})()},(0,a.Rc)(()=>{var e;const t=null===(e=Object.entries(m).find(e=>{let t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0];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,a.Ki)(()=>{n.forEach(e=>e())})}),(0,a.Rc)(()=>{const e=e=>{const t=v(e).find(e=>e instanceof Element&&y(e));t&&t instanceof Element&&s(t)},t=e=>{const t=v(e).find(e=>e instanceof Element&&y(e));t&&t instanceof HTMLInputElement&&s(t)};document.addEventListener("focusin",t,{passive:!0,capture:!0}),document.addEventListener("click",e,{passive:!0,capture:!0}),(0,a.Ki)(()=>{document.removeEventListener("focusin",t,{capture:!0}),document.removeEventListener("click",e,{capture:!0})})}),(0,a.a0)(a.wv,{get when(){return o()},get children(){return(0,a.a0)(a.tH,{fallback:()=>null,get children(){return(0,a.a0)(a.tY,{get fallback(){return(0,a.a0)(h,{})},get children(){return(0,a.a0)(w,{onOpenChange:i})}})}})}})},E=()=>{const e=(0,u._)()().router.mode,t=(0,a.a0)(l.qh,{path:"*",component:O});return(0,a.a0)(a.dO,{get children(){return[(0,a.a0)(a.YG,{get when(){return e===c.j.MEMORY},get children(){return(0,a.a0)(l.fS,{explicitLinks:!0,children:t})}}),(0,a.a0)(a.YG,{get when(){return e===c.j.DEFAULT},get children(){return(0,a.a0)(l.Ix,{explicitLinks:!0,children:t})}})]}})};function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const k=function(e){if(Array.isArray(e))return e}(j=(0,a.n5)())||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,l=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(j)||function(e){if(e){if("string"==typeof e)return A(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,2):void 0}}(j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),x=k[0],P=k[1];var j,C=(0,s.vs)("<div>");function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const M=e=>{const t=(0,u._)(),n=(0,a.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=T(e,2)[1];return Boolean(t)}))});return(0,a.Rc)(()=>{const e=document.createElement("style"),t=Object.entries(n()).reduce((e,t)=>{let n=T(t,2),r=n[0],o=n[1];return e+"".concat(r,": ").concat(o,";\n")},"");e.textContent=".light[data-poisk-dev-root] {\n      ".concat(t,"\n    }\n  ");const r=x();null==r||r.append(e),(0,a.Ki)(()=>{e.remove()})}),r=C(),(0,s.Yr)(r,()=>e.children),(0,a.gb)(()=>(0,s.Bq)(r,"data-theme",Object.keys(n()).length>0?"true":"false")),r;var r};var I=o(5951);const $={};let R=null;const D=e=>{var t;const n=(()=>{if(R)return R;const e=document.querySelector(I.q);if(!e)return null;const t=e.shadowRoot;if(!t)return null;if(P(t),!R){const e=["light","text-foreground"],n=document.createElement("div");n.classList.add(...e),n.dataset.poiskDevRoot="",t.appendChild(n),R=n}return R})();var r;if(!n)return null===(r=$.current)||void 0===r||r.call($),void f.v.error("Cannot find root to render");null===(t=$.current)||void 0===t||t.call($);const o=(0,s.XX)(()=>(0,a.a0)(a.tH,{fallback:()=>null,get children(){return(0,a.a0)(a.tY,{get children(){return(0,a.a0)(u.N,{config:e,get children(){return(0,a.a0)(M,{get children(){return(0,a.a0)(E,{})}})}})}})}}),n);return $.current=()=>{o(),delete $.current},$.current};self.poiskDevWidget=i})();
try {
const host = document.createElement("div");
host.dataset.poiskDevHost = "";
document.body.appendChild(host);
const shadowRoot = host.attachShadow({ mode: "open" });
;["https://cdn.poisk.dev/web-widget/static/css/main.c10f7826e914903503ba.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 {}