function _OverloadYield(t,e){this.v=t,this.k=e}function _applyDecoratedDescriptor(t,e,r,o,n){var i={};return Object.keys(o).forEach((function(t){i[t]=o[t]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,o){return o(t,e,r)||r}),i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer?(Object.defineProperty(t,e,i),null):i}function _applyDecs2311(t,e,r,o,n,i){var s,a,c,l,d,p,u,_=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,y=Object.create,v=[y(null),y(null)],g=e.length;function m(e,r,o){return function(n,i){r&&(i=n,n=t);for(var s=0;s=0;k-=r?2:1){var L=h(y[k],"A decorator","be",!0),T=r?y[k-1]:void 0,q={},I={kind:["field","accessor","method","getter","setter","class"][n],name:o,metadata:s,addInitializer:function(t,e){if(t.v)throw new TypeError("attempted to call addInitializer after decoration was finished");h(e,"An initializer","be",!0),i.push(e)}.bind(null,q)};if(b)a=L.call(T,O,I),q.v=1,h(a,"class decorators","return")&&(O=a);else if(I.static=l,I.private=d,a=I.access={has:d?u.bind():function(t){return o in t}},E||(a.get=d?P?function(t){return _(t),C.value}:x("get",0,_):function(t){return t[o]}),P||S||(a.set=d?x("set",0,_):function(t,e){t[o]=e}),O=L.call(T,w?{get:C.get,set:C.set}:C[j],I),q.v=1,w){if("object"==typeof O&&O)(a=h(O.get,"accessor.get"))&&(C.get=a),(a=h(O.set,"accessor.set"))&&(C.set=a),(a=h(O.init,"accessor.init"))&&A.unshift(a);else if(void 0!==O)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else h(O,(p?"field":"method")+" decorators","return")&&(p?A.unshift(O):C[j]=O)}return n<2&&c.push(m(A,l,1),m(i,l,0)),p||b||(d?w?c.splice(-1,0,x("get",l),x("set",l)):c.push(P?C[j]:h.call.bind(C[j])):f(t,o,C)),O}function w(t){return f(t,_,{configurable:!0,enumerable:!0,value:s})}return void 0!==i&&(s=i[_]),s=y(null==s?null:s),d=[],p=function(t){t&&d.push(m(t))},u=function(e,o){for(var i=0;it.length)&&(e=t.length);for(var r=0,o=Array(e);r=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function _createForOfIteratorHelperLoose(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var r,o=_getPrototypeOf(t);if(e){var n=_getPrototypeOf(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _decorate(t,e,r,o){var n=_getDecoratorsApi();if(o)for(var i=0;i=0;i--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var a=this.fromElementDescriptor(t),c=this.toElementFinisherExtras((0,n[i])(a)||a);t=c.element,this.addElementPlacement(t,e),c.finisher&&o.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;o--){var n=this.fromClassDescriptor(t),i=this.toClassDescriptor((0,e[o])(n)||n);if(void 0!==i.finisher&&r.push(i.finisher),void 0!==i.elements){t=i.elements;for(var s=0;s1){for(var s=Array(i),a=0;a=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var c=o.call(s,"catchLoc"),l=o.call(s,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;O(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:L(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),v}},e}function set(t,e,r,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,o){var n,i=_superPropBase(t,e);if(i){if((n=Object.getOwnPropertyDescriptor(i,e)).set)return n.set.call(o,r),!0;if(!n.writable)return!1}if(n=Object.getOwnPropertyDescriptor(o,e)){if(!n.writable)return!1;n.value=r,Object.defineProperty(o,e,n)}else _defineProperty(o,e,r);return!0},set(t,e,r,o)}function _set(t,e,r,o,n){if(!set(t,e,r,o||t)&&n)throw new TypeError("failed to set property");return r}function _setFunctionName(t,e,r){"symbol"==typeof e&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _skipFirstGeneratorNext(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _superPropBase(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _superPropGet(t,e,r,o){var n=_get(_getPrototypeOf(1&o?t.prototype:t),e,r);return 2&o&&"function"==typeof n?function(t){return n.apply(r,t)}:n}function _superPropSet(t,e,r,o,n,i){return _set(_getPrototypeOf(i?t.prototype:t),e,r,o,n)}function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _taggedTemplateLiteralLoose(t,e){return e||(e=t.slice(0)),t.raw=e,t}function _tdz(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function _temporalRef(t,e){return t===_temporalUndefined?_tdz(e):t}function _temporalUndefined(){}function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}function _toSetter(t,e,r){e||(e=[]);var o=e.length++;return Object.defineProperty({},"_",{set:function(n){e[o]=n,t.apply(r,e)}})}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _usingCtx(){var t="function"==typeof SuppressedError?SuppressedError:function(t,e){var r=Error();return r.name="SuppressedError",r.error=t,r.suppressed=e,r},e={},r=[];function o(t,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(t)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],t))var n=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");n&&(o=function(){try{n.call(e)}catch(t){return Promise.reject(t)}}),r.push({v:e,d:o,a:t})}else t&&r.push({d:e,a:t});return e}return{e:e,u:o.bind(null,!1),a:o.bind(null,!0),d:function(){var o,n=this.e,i=0;function s(){for(;o=r.pop();)try{if(!o.a&&1===i)return i=0,r.push(o),Promise.resolve().then(s);if(o.d){var t=o.d.call(o.v);if(o.a)return i|=2,Promise.resolve(t).then(s,a)}else i|=1}catch(t){return a(t)}if(1===i)return n!==e?Promise.reject(n):Promise.resolve();if(n!==e)throw n}function a(r){return n=n!==e?new t(r,n):r,s()}return s()}}}function _wrapAsyncGenerator(t){return function(){return new AsyncGenerator(t.apply(this,arguments))}}function AsyncGenerator(t){var e,r;function o(e,r){try{var i=t[e](r),s=i.value,a=s instanceof _OverloadYield;Promise.resolve(a?s.v:s).then((function(r){if(a){var c="return"===e?"return":"next";if(!s.k||r.done)return o(c,r);r=t[c](r).value}n(i.done?"return":"normal",r)}),(function(t){o("throw",t)}))}catch(t){n("throw",t)}}function n(t,n){switch(t){case"return":e.resolve({value:n,done:!0});break;case"throw":e.reject(n);break;default:e.resolve({value:n,done:!1})}(e=e.next)?o(e.key,e.arg):r=null}this._invoke=function(t,n){return new Promise((function(i,s){var a={key:t,arg:n,resolve:i,reject:s,next:null};r?r=r.next=a:(e=r=a,o(t,n))}))},"function"!=typeof t.return&&(this.return=void 0)}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,t)},_wrapNativeSuper(t)}function _wrapRegExp(){_wrapRegExp=function(t,e){return new r(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function r(t,o,n){var i=RegExp(t,o);return e.set(i,n||e.get(t)),_setPrototypeOf(i,r.prototype)}function o(t,r){var o=e.get(r);return Object.keys(o).reduce((function(e,r){var n=o[r];if("number"==typeof n)e[r]=t[n];else{for(var i=0;void 0===t[n[i]]&&i+1]+)>/g,(function(t,e){var r=i[e];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof n){var s=this;return t[Symbol.replace].call(this,r,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(o(t,s)),n.apply(this,t)}))}return t[Symbol.replace].call(this,r,n)},_wrapRegExp.apply(this,arguments)}function _writeOnlyError(t){throw new TypeError('"'+t+'" is write-only')}function _AwaitValue(t){this.wrapped=t}function old_createMetadataMethodsForProperty(t,e,r,o){return{getMetadata:function(n){old_assertNotFinished(o,"getMetadata"),old_assertMetadataKey(n);var i=t[n];if(void 0!==i)if(1===e){var s=i.public;if(void 0!==s)return s[r]}else if(2===e){var a=i.private;if(void 0!==a)return a.get(r)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(n,i){old_assertNotFinished(o,"setMetadata"),old_assertMetadataKey(n);var s=t[n];if(void 0===s&&(s=t[n]={}),1===e){var a=s.public;void 0===a&&(a=s.public={}),a[r]=i}else if(2===e){var c=s.priv;void 0===c&&(c=s.private=new Map),c.set(r,i)}else s.constructor=i}}}function old_convertMetadataMapToFinal(t,e){var r=t[Symbol.metadata||Symbol.for("Symbol.metadata")],o=Object.getOwnPropertySymbols(e);if(0!==o.length){for(var n=0;n=0;g--){var m;void 0!==(_=old_memberDec(v[g],o,l,a,c,n,i,s,u))&&(old_assertValidReturnValue(n,_),0===n?m=_:1===n?(m=old_getInit(_),f=_.get||u.get,y=_.set||u.set,u={get:f,set:y}):u=_,void 0!==m&&(void 0===d?d=m:"function"==typeof d?d=[d,m]:d.push(m)))}if(0===n||1===n){if(void 0===d)d=function(t,e){return e};else if("function"!=typeof d){var h=d;d=function(t,e){for(var r=e,o=0;o3,g=f>=5;if(g?(p=e,u=o,0!=(f-=5)&&(_=s=s||[])):(p=e.prototype,u=r,0!==f&&(_=i=i||[])),0!==f&&!v){var m=g?c:a,h=m.get(y)||0;if(!0===h||3===h&&4!==f||4===h&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!h&&f>2?m.set(y,f):m.set(y,!0)}old_applyMemberDec(t,p,d,y,f,g,v,u,_)}}old_pushInitializers(t,i),old_pushInitializers(t,s)}function old_pushInitializers(t,e){e&&t.push((function(t){for(var r=0;r0){for(var n=[],i=e,s=e.name,a=o.length-1;a>=0;a--){var c={v:!1};try{var l=Object.assign({kind:"class",name:s,addInitializer:old_createAddInitializerMethod(n,c)},old_createMetadataMethodsForProperty(r,0,s,c)),d=o[a](i,l)}finally{c.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}t.push(i,(function(){for(var t=0;t=0;g--){var m;void 0!==(_=e(v[g],i,d,l,s,a,c,u))&&(o(s,_),0===s?m=_:1===s?(m=_.init,f=_.get||u.get,y=_.set||u.set,u={get:f,set:y}):u=_,void 0!==m&&(void 0===p?p=m:"function"==typeof p?p=[p,m]:p.push(m)))}if(0===s||1===s){if(void 0===p)p=function(t,e){return e};else if("function"!=typeof p){var h=p;p=function(t,e){for(var r=e,o=0;o3,v=_>=5;if(v?(p=e,0!=(_-=5)&&(u=s=s||[])):(p=e.prototype,0!==_&&(u=o=o||[])),0!==_&&!y){var g=v?c:a,m=g.get(f)||0;if(!0===m||3===m&&4!==_||4===m&&3!==_)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+f);!m&&_>2?g.set(f,_):g.set(f,!0)}n(t,p,d,f,_,v,y,u)}}i(t,o),i(t,s)}(a,e,r),function(e,r,n){if(n.length>0){for(var i=[],s=r,a=r.name,c=n.length-1;c>=0;c--){var l={v:!1};try{var d=n[c](s,{kind:"class",name:a,addInitializer:t(i,l)})}finally{l.v=!0}void 0!==d&&(o(10,d),s=d)}e.push(s,(function(){for(var t=0;t=0;m--){var h;void 0!==(f=e(g[m],i,d,l,s,a,c,_))&&(o(s,f),0===s?h=f:1===s?(h=f.init,y=f.get||_.get,v=f.set||_.set,_={get:y,set:v}):_=f,void 0!==h&&(void 0===p?p=h:"function"==typeof p?p=[p,h]:p.push(h)))}if(0===s||1===s){if(void 0===p)p=function(t,e){return e};else if("function"!=typeof p){var b=p;p=function(t,e){for(var r=e,o=0;o3,v=_>=5;if(v?(p=t,0!=(_-=5)&&(u=o=o||[])):(p=t.prototype,0!==_&&(u=r=r||[])),0!==_&&!y){var g=v?c:a,m=g.get(f)||0;if(!0===m||3===m&&4!==_||4===m&&3!==_)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+f);!m&&_>2?g.set(f,_):g.set(f,!0)}n(i,p,d,f,_,v,y,u)}}return s(i,r),s(i,o),i}function s(t,e){e&&t.push((function(t){for(var r=0;r0){for(var n=[],i=e,s=e.name,a=r.length-1;a>=0;a--){var c={v:!1};try{var l=r[a](i,{kind:"class",name:s,addInitializer:t(n,c)})}finally{c.v=!0}void 0!==l&&(o(10,l),i=l)}return[i,function(){for(var t=0;t=0;w--){var S;void 0!==(g=r(b[w],s,u,d,a,c,l,y,p))&&(n(a,g),0===a?S=g:1===a?(S=g.init,m=g.get||y.get,h=g.set||y.set,y={get:m,set:h}):y=g,void 0!==S&&(void 0===_?_=S:"function"==typeof _?_=[_,S]:_.push(S)))}if(0===a||1===a){if(void 0===_)_=function(t,e){return e};else if("function"!=typeof _){var E=_;_=function(t,e){for(var r=e,o=0;o3,m=y>=5,h=r;if(m?(_=t,0!=(y-=5)&&(f=n=n||[]),g&&!i&&(i=function(e){return _checkInRHS(e)===t}),h=i):(_=t.prototype,0!==y&&(f=o=o||[])),0!==y&&!g){var b=m?d:l,w=b.get(v)||0;if(!0===w||3===w&&4!==y||4===w&&3!==y)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!w&&y>2?b.set(v,y):b.set(v,!0)}s(a,_,u,v,y,m,g,f,h)}}return c(a,o),c(a,n),a}function c(t,e){e&&t.push((function(t){for(var r=0;r0){for(var o=[],i=e,s=e.name,a=r.length-1;a>=0;a--){var c={v:!1};try{var l=r[a](i,{kind:"class",name:s,addInitializer:t(o,c)})}finally{c.v=!0}void 0!==l&&(n(10,l),i=l)}return[i,function(){for(var t=0;t=0;P-=r?2:1){var x=g[P],C=r?g[P-1]:void 0,A={},j={kind:["field","accessor","method","getter","setter","class"][n],name:o,metadata:i,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");c(e,"An initializer","be",!0),a.push(e)}.bind(null,A)};try{if(h)(v=c(x.call(C,E,j),"class decorators","return"))&&(E=v);else{var O,k;j.static=d,j.private=p,p?2===n?O=function(t){return y(t),b.value}:(n<4&&(O=s(b,"get",y)),3!==n&&(k=s(b,"set",y))):(O=function(t){return t[o]},(n<2||4===n)&&(k=function(t,e){t[o]=e}));var L=j.access={has:p?f.bind():function(t){return o in t}};if(O&&(L.get=O),k&&(L.set=k),E=x.call(C,_?{get:b.get,set:b.set}:b[S],j),_){if("object"==typeof E&&E)(v=c(E.get,"accessor.get"))&&(b.get=v),(v=c(E.set,"accessor.set"))&&(b.set=v),(v=c(E.init,"accessor.init"))&&w.push(v);else if(void 0!==E)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else c(E,(u?"field":"method")+" decorators","return")&&(u?w.push(E):b[S]=E)}}finally{A.v=!0}}return(u||_)&&l.push((function(t,e){for(var r=w.length-1;r>=0;r--)e=w[r].call(t,e);return e})),u||h||(p?_?l.push(s(b,"get"),s(b,"set")):l.push(2===n?b[S]:s.call.bind(b[S])):Object.defineProperty(t,o,b)),E}function d(t,e){return Object.defineProperty(t,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:e})}if(arguments.length>=6)var p=i[Symbol.metadata||Symbol.for("Symbol.metadata")];var u=Object.create(null==p?null:p),_=function(t,e,r,o){var n,i,s=[],c=function(e){return _checkInRHS(e)===t},d=new Map;function p(t){t&&s.push(a.bind(null,t))}for(var u=0;u3,g=16&f,m=!!(8&f),h=0==(f&=7),b=y+"/"+m;if(!h&&!v){var w=d.get(b);if(!0===w||3===w&&4!==f||4===w&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);d.set(b,!(f>2)||f)}l(m?t:t.prototype,_,g,v?"#"+y:_toPropertyKey(y),f,o,m?i=i||[]:n=n||[],s,m,v,h,1===f,m&&v?c:r)}}return p(n),p(i),s}(t,e,n,u);return r.length||d(t,u),{e:_,get c(){var e=[];return r.length&&[d(l(t,[r],o,t.name,5,u,e),u),a.bind(null,e,t)]}}}function _classApplyDescriptorDestructureSet(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function _classApplyDescriptorGet(t,e){return e.get?e.get.call(t):e.value}function _classApplyDescriptorSet(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function _classCheckPrivateStaticAccess(t,e,r){return _assertClassBrand(e,t,r)}function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function _classExtractFieldDescriptor(t,e){return _classPrivateFieldGet2(e,t)}function _classPrivateFieldDestructureSet(t,e){var r;return _classApplyDescriptorDestructureSet(t,_classPrivateFieldGet2(e,t))}function _classPrivateFieldGet(t,e){var r;return _classApplyDescriptorGet(t,_classPrivateFieldGet2(e,t))}function _classPrivateFieldSet(t,e,r){var o;return _classApplyDescriptorSet(t,_classPrivateFieldGet2(e,t),r),r}function _classPrivateMethodGet(t,e,r){return _assertClassBrand(e,t),r}function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}function _classStaticPrivateFieldDestructureSet(t,e,r){return _assertClassBrand(e,t),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorDestructureSet(t,r)}function _classStaticPrivateFieldSpecGet(t,e,r){return _assertClassBrand(e,t),_classCheckPrivateStaticFieldDescriptor(r,"get"),_classApplyDescriptorGet(t,r)}function _classStaticPrivateFieldSpecSet(t,e,r,o){return _assertClassBrand(e,t),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorSet(t,r,o),o}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _defineEnumerableProperties(t,e){for(var r in e){var o=e[r];o.configurable=o.enumerable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r,o)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),i=0;i0;)try{var i=t.pop(),s=i.d.call(i.v);if(i.a)return Promise.resolve(s).then(o,n)}catch(t){return n(t)}if(r)throw e}function n(t){return e=r?new dispose_SuppressedError(e,t):t,r=!0,o()}return o()}function _objectSpread(t){for(var e=1;e7?(window.tStoreInit[t]="lazy",new IntersectionObserver((function(r,o){r.forEach((function(r){if(r.isIntersecting){var n=r.target;o.unobserve(n),"lazy"===window.tStoreInit[t]&&(t_store_lazyInit(t,e),window.tStoreInit[t]=!0)}}))}),{rootMargin:"150px 0px"}).observe(r)):t_store_lazyInit(t,e))}))}function t_store_lazyInit(t,e){var r=e,o=document.getElementById("rec"+t),n;document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))||t_store_initRouting(),window.tStoreDict||t_store_getDictObj();var i=o.querySelector(".js-store"),s=t_store_get_productPopup_html(t,r);i&&i.insertAdjacentHTML("beforeend",s);var a=document.getElementById("allrecords").getAttribute("data-tilda-mode");r.isPublishedPage="edit"!==a&&"preview"!==a,r.isPublishedPage&&t_store_checkUrl(r,t);var c=document.getElementById("record"+t),l;if(c&&!r.isPublishedPage&&"y"==c.getAttribute("off"))return;var d=o.querySelector(".js-store-grid-cont-preloader");if(""!==r.storepart){setTimeout((function(){d&&d.classList.remove("t-store__grid-cont-preloader_hidden")}),1e3);var p=1,u=t_store_paramsToObj(t,r),_;if(u[t]&&(_=t_store_updateOptionsBasedOnUrl(r,u,t))&&(r=_),r.sidebar){var f=o.querySelector(".js-store-parts-select-container"),y;if(f)f.querySelector(".t951__sidebar")||f.insertAdjacentHTML("afterbegin",'
')}var v=function e(){u[t]&&u[t].page&&(p=Array.isArray(u[t].page)?u[t].page.join(""):u[t].page),t_store_loadProducts("",t,r,p),t_store_mobileHoriz_checkBtnVisibility(t,r)},g=function e(){u[t]&&_&&o.addEventListener("controlsDrawn",(function(){t_store_filters_render_selected(r,t)})),r.sidebar&&o.addEventListener("controlsDrawn",(function(){t_store_filters_opts_sort(r,t)})),p=1,v()},m=function e(r){if(window.tStoreFilters||(window.tStoreFilters={}),r&&(r.filters&&r.filters.length>0||r.search||r.sort)){window.tStoreFilters[t]=r;var o=t_store__getRootZone(),n="tilda-catalog-filters-1.0";if(document.head.querySelector('script[src*="'+n+'"]'))t_store_onFuncLoad("t_store_filters_init",(function(){g()}));else{var i=document.createElement("script");i.type="text/javascript",i.src="https://static.tildacdn."+o+"/js/"+n+".min.js",i.onload=g,i.onerror=function(){console.error("Failed to load tilda-catalog-filters: ",this.src),v()},document.head.appendChild(i)}if(!document.head.querySelector('link[href*="'+n+'"]')){var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.href="https://static.tildacdn."+o+"/css/"+n+".min.css",s.media="all",document.head.appendChild(s)}t_store__loadJSFile("https://static.tildacdn."+o+"/js/tilda-tooltip-1.0.min.js"),t_store__loadCSSFile("https://static.tildacdn."+o+"/css/tooltipster.min.css")}else v()},h,b,w;if(t_store_loadFilters(r,m,(function(t){t_store_changeEndpoint(t,(function(){t_store_loadFilters(r,m)}))})),r.isHorizOnMob){var S=t_store_get_handIcon_html(t,r.horizontalScrollHint);d&&d.insertAdjacentHTML("beforebegin",S)}r.tabs&&(h="tilda-catalog-tabs-1.0",document.head.querySelector('script[src*="'+h+'"]')||((b=document.createElement("script")).type="text/javascript",b.src="https://static.tildacdn."+t_store__getRootZone()+"/js/"+h+".min.js",b.onerror=function(){console.error("Failed to load tilda-catalog-tabs: ",this.src)},document.head.appendChild(b)),document.head.querySelector('link[href*="'+h+'"]')||((w=document.createElement("link")).rel="stylesheet",w.type="text/css",w.href="https://static.tildacdn."+t_store__getRootZone()+"/css/"+h+".min.css",w.media="all",document.head.appendChild(w))),r.showPagination&&"on"===r.showPagination&&(h="tilda-catalog-pagination-1.0",document.head.querySelector('script[src*="'+h+'"]')||((b=document.createElement("script")).type="text/javascript",b.src="https://static.tildacdn."+t_store__getRootZone()+"/js/"+h+".min.js",b.onerror=function(){console.error("Failed to load tilda-catalog-pagination: ",this.src)},document.head.appendChild(b)),document.head.querySelector('link[href*="'+h+'"]')||((w=document.createElement("link")).rel="stylesheet",w.type="text/css",w.href="https://static.tildacdn."+t_store__getRootZone()+"/css/"+h+".min.css",w.media="all",document.head.appendChild(w))),t_onFuncLoad("t_throttle",(function(){window.addEventListener("resize",t_throttle((function(){o&&(r.prodCard&&"1025"==r.prodCard.blockId&&t_store_unifyCardsWidth(t),t_store_loadMoreBtn_display(t),(r.sidebar||Object.keys(r.filters||{}).length>1)&&t_store_moveSearhSort(t,r),r.showPagination&&"on"===r.showPagination&&t_store_onFuncLoad("t_store_pagination_display",(function(){t_store_pagination_display(t)})))})))}));var E=o.querySelector(".t-store");E&&E.addEventListener("displayChanged",(function(){setTimeout((function(){t_store_unifyCardsWidth(t)}))})),r.popup_opts.fixedButton&&t_store_fixedPopupButton(t,r)}else if(d.style.display="none",r.sidebar){var P=o.querySelector(".t951__grid-cont");P&&P.classList.remove("t951__grid-cont_hidden")}}function t_store_history_pushState(t,e,r){try{void 0!==history.pushState&&window.history.pushState(t,e,r)}catch(o){console.error(o)}}function t_store_productInit(t,e,r){t_onReady((function(){var o;document.getElementById("allrecords")&&t_store__setupEndpoint(),t_store_snippet_initProduct(t,e,r)}))}function t_store_snippet_initProduct(t,e,r){var o=document.querySelector("#rec"+t),n=o.querySelector(".t-store__product-snippet.js-store-product");n.setAttribute("data-card-size","large");var i=t_store_snippet_getJsonFromUrl();if("100"===e.popup_opts.popupContainer){var s=n.querySelector(".t-container");s.classList.add("t-container_fluid"),s.style.maxWidth="100%",s.firstElementChild&&s.firstElementChild.classList.add("t-container_fluid")}t_store_snippet_copyTypographyToSnippet(t,e),t_store_drawProdPopup_drawGallery(t,n,r,e);var a=function o(){t_store_addProductOptions(t,r,n,e,"largecard"),t_store_snippet_chooseEditionFromUrl(t,r,n,e),t_store_onFuncLoad("t_prod__init",(function(){t_prod__init(t)}))},c=document.getElementById("allrecords");if(c){var l=c.getAttribute("data-tilda-project-lang");l&&(window.tStoreBrowserLang=l)}window.tStoreDict||t_store_getDictObj();var d=n.querySelector(".js-store-prod-sku");if(d&&"none"!==d.style.display&&d.insertAdjacentHTML("beforebegin",window.tStoreDict.sku+": "),n.setAttribute("data-product-gen-uid",r.uid),n.setAttribute("data-product-part-uid",r.partuids?r.partuids.join(","):""),e.tabs){var p="tilda-catalog-tabs-1.0";if(document.head.querySelector('script[src*="'+p+'"]'))t_onFuncLoad("t_store_tabs_initSnippet",(function(){t_store_tabs_initSnippet(t,e,n,r),a()}));else{var u=document.createElement("script");u.type="text/javascript",u.src="https://static.tildacdn."+t_store__getRootZone()+"/js/"+p+".min.js",u.onload=function(){t_onFuncLoad("t_store_tabs_initSnippet",(function(){t_store_tabs_initSnippet(t,e,n,r),a()}))},u.onerror=function(){console.error("Failed to load tilda-catalog-tabs: ",this.src)},document.head.appendChild(u)}if(!document.head.querySelector('link[href*="'+p+'"]')){var _=document.createElement("link");_.rel="stylesheet",_.type="text/css",_.href="https://static.tildacdn."+t_store__getRootZone()+"/css/"+p+".min.css",_.media="all",document.head.appendChild(_)}}else t_store_initTextAndCharacteristics(n,r),a();if(t_store_triggerEvent(document.body,"twishlist_addbtn"),!e.relevants_slider){var f=o.querySelector(".t-store__relevants-grid-cont.t-store__grid-cont_mobile-one-row");if(f){var y=t_store_get_handIcon_html(t,e.horizontalScrollHint);f.insertAdjacentHTML("beforebegin",y)}}e.popup_opts.fixedButton&&t_store_fixedPopupButton(t,e),t_store_applyButtonStyles(t,e),t_store_renderSnippetButtonIcon(t,e),t_store_hoverZoom_init(t),t_store_get_productPopup_closeIcon_color(t,e),setTimeout((function(){!window.tStoreIsSearchBot&&window.Tilda&&"function"==typeof Tilda.sendEcommerceEvent&&(i.editionuid?r.editions.forEach((function(t){t.uid===i.editionuid&&Tilda.sendEcommerceEvent("detail",[{id:""+t.uid,uid:""+t.uid,price:""+t.price,sku:t.sku?t.sku:"",name:r.title}])})):Tilda.sendEcommerceEvent("detail",[{id:""+(r.id?r.id:r.uid),uid:""+r.uid,price:""+(r.price_min?r.price_min:r.price),sku:r.sku?r.sku:"",name:r.title}]))}),3e3)}function t_store_initRouting(){window.onpopstate=function(){if(window.history.state&&window.history.state.productData){var t=window.history.state.productData,e,r,o,n;t_store_openProductPopup(t.recid,t.opts,t.productObj,t.isRelevantsShow)}}}function t_store_getSnippetMainButton(t){var e=document.getElementById("rec"+t);return e?e.querySelector(".t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn"):null}function t_store_buildBaseButtonCssRules(t,e){var r=[];Object.keys(t).forEach((function(o){var n=t[o],i=e[o];i&&("bgcolor"===o?t_store_isGradient(i)?(t_store_addRule(r,"background-image",i),t_store_addRule(r,"background-color","transparent")):(t_store_addRule(r,"background-color",i),t_store_addRule(r,"background-image","none")):t_store_addRule(r,n,i))}));var o=e.bordersize||"0",n=e.bordercolor||"transparent";return(e.bordersize||e.bordercolor)&&(/^0($|[^0-9])/i.test(o)||"0px"===o?t_store_addRule(r,"border","none"):t_store_addRule(r,"border",o+" solid "+n)),t_store_addRule(r,"transition-duration",e.speedhover||"0.2s"),t_store_addRule(r,"transition-property","background-color, color, border-color, box-shadow, opacity, transform"),t_store_addRule(r,"transition-timing-function","ease-in-out"),e.bgcolorhover&&(t_store_isGradient(e.bgcolorhover)?t_store_addRule(r,"--button-after-background-image-hover",e.bgcolorhover):t_store_addRule(r,"--button-after-background-color-hover",e.bgcolorhover)),r}function t_store_buildHoverCssRules(t){var e=[];if(t.shadowhover&&t_store_addRule(e,"box-shadow",t.shadowhover),t.bordersize||t.bordercolorhover){var r=t.bordersize||"0",o=t.bordercolorhover||t.bordercolor||"transparent";/^0($|[^0-9])/i.test(r)||"0px"===r?t_store_addRule(e,"border","none"):t_store_addRule(e,"border",r+" solid "+o)}return t.bgcolorhover&&t_store_addRule(e,"background-color",t.bgcolorhover),e}function t_store_buildMobileCssRules(t,e){var r="_res_480",o=[];return Object.keys(e).forEach((function(n){if(n.includes(r)){var i=n.replace(r,""),s=t[i];s&&t_store_addRule(o,s,e[n])}})),e.padding_res_480&&t_store_addRule(o,"padding",e.padding_res_480),o}function t_store_createButtonTextCss(t,e,r){var o=[],n=[],i=[];r.color&&t_store_addTextColorRule(o,r.color),r.colorhover&&t_store_addTextColorRule(n,r.colorhover),r.color_res_480&&t_store_addTextColorRule(i,r.color_res_480);var s=e+" .t-btnflex__text, "+e+" .t-store__card__btn-text",a=e+":hover .t-btnflex__text, "+e+":hover .t-store__card__btn-text",c="";return null!=o&&o.length&&(c+=s+"{"+o.join("")+"}"),null!=n&&n.length&&(c+="\n"+a+"{"+n.join("")+"}"),null!=i&&i.length&&(c+="\n@media screen and (max-width:480px){"+s+"{"+i.join("")+"}}"),c}function t_store_createButtonAppereanceCss(t,e,r,o){var n={bgcolor:"background-color",radius:"border-radius",wrap:"white-space",shadow:"box-shadow",fontweight:"font-weight",uppercase:"text-transform",fontsize:"font-size",fontfamily:"font-family",lineheight:"line-height",letterspacing:"letter-spacing",gap:"gap",padding:"padding",iconposition:"flex-direction"};if(Array.isArray(o)&&o.length){var i=new Set(o);for(var s in n)i.has(s)&&delete n[s]}var a=t_store_buildBaseButtonCssRules(n,r),c=t_store_buildHoverCssRules(r),l=t_store_buildMobileCssRules(n,r),d="#rec"+t+" "+e,p="#rec"+t+" "+e+":hover",u="";return null!=a&&a.length&&(u+=d+"{"+a.join("")+"}"),null!=c&&c.length&&(u+="\n"+p+"{"+c.join("")+"}"),null!=l&&l.length&&(u+="\n@media screen and (max-width:480px){"+d+"{"+l.join("")+"}}"),u}function t_store_createСssStyleTag(t,e){var r=document.getElementById(t);r||((r=document.createElement("style")).id=t,(document.head||document.documentElement).appendChild(r)),r.styleSheet?r.styleSheet.cssText=e:r.textContent=e}function t_store_applyButtonStyles(t,e){try{if(!e||!e.button_styles)return;var r=t_store_getSnippetMainButton(t);if(r){var o=r.classList.contains("t_catalog__prod-popup__btn-replaced");r.removeAttribute("style"),o&&(r.style.display="none"),t_store_applyButtonClasses(r)}var n=t_store_createButtonStyleCss(t,".t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn",e.button_styles);if(e.showRelevants&&(n+=t_store_createButtonStyleCss(t,".t-store__relevants__container .t-store__card__btn:not(.t-store__card__btn_second)",e.button_styles,["padding"]),e.button2_styles&&(n+=t_store_createButtonStyleCss(t,".t-store__relevants__container .t-store__card__btn_second",e.button2_styles,["padding"]))),t_store_createСssStyleTag("js-store-btn-styles-"+t,n),null!=r&&r.parentNode)return void(r.parentNode.style.opacity=1);var i=document.querySelector(".t-store__product-snippet .t-store__prod-popup__btn-wrapper");if(!i)return;i.style.display="none"}catch(s){console.error("Ошибка при применениии стилей к кнопке (refactored): "+s)}}function t_store_applyButtonClasses(t){var e;t.classList.add("t-btnflex"),t.classList.add("t-btnflex_type_button"),t.classList.contains("t-btn_sm")&&t.classList.replace("t-btn_sm","t-btnflex_sm"),t.querySelector("td").classList.add("t-btnflex__text")}function t_store_createButtonStyleCss(t,e,r,o){try{var n=JSON.parse(r),i=t_store_createButtonAppereanceCss(t,e,n,o);return i+=t_store_createButtonTextCss(t,e,n),n.bgcolor&&n.bgcolorhover&&(i=t_store_appendMainButtonBgHoverStyle(i)),n.iconsize&&(i+="\n\n\t\t\t\t.t-btnflex.t-btnflex_type_button .t-btnflex__icon {\n\t\t\t\t\twidth: "+n.iconsize+";\n\t\t\t\t\theight:"+n.iconsize+";\n\t\t\t\t}"),i}catch(s){return console.error("Ошибка при создании css-правил для кнопки ",s),""}}function t_store_renderSnippetButtonIcon(t,e){try{var r=e.buttonicon,o=e.buttoniconhover;if(!r&&!o)return;var n=t_store_getSnippetMainButton(t);if(!n)return;var i=document.createElement("span");i.className="t-btnflex__icon";var s="";r&&(s+='--icon:url("'+r.replace(/"/g,""")+'");\n',r.includes("/lib/icons/button/")&&i.classList.add("t-btnflex__icon_default_glyph")),o&&(i.classList.add("t-btnflex__icon_has_hover"),s+='--icon-hover:url("'+o.replace(/"/g,""")+'");\n',o.includes("/lib/icons/button/")&&i.classList.add("t-btnflex__icon_hover_glyph")),s&&i.setAttribute("style",s),n.insertAdjacentElement("afterbegin",i)}catch(a){console.error("Ошибка при рендере иконки в кнопке: "+a)}}function t_store_createCssProperty(t,e){return t+": "+e+";"}function t_store_addRule(t,e,r){null!=r&&""!==r&&t.push(t_store_createCssProperty(e,r))}function t_store_addTextColorRule(t,e){t_store_isGradient(e)?(t_store_addRule(t,"background-image",e),t_store_addRule(t,"color","transparent"),t_store_addRule(t,"-webkit-background-clip","text"),t_store_addRule(t,"background-clip","text")):t_store_addRule(t,"color",e)}function t_store_isGradient(t){return"string"==typeof t&&-1!==t.indexOf("gradient")}function t_store_appendMainButtonBgHoverStyle(t){return t+"\n\t\t\n\n\t\t@media (hover: hover) {\n\t\t\t.t-store__prod-snippet__container .t-store__prod-popup__btn:hover {\n\t\t\t\tanimation-name: t-button-hover-animation;\n\t\t\t\tanimation-duration: 0s;\n\t\t\t\tanimation-fill-mode: forwards;\n\t\t\t\tanimation-delay: 1s;\n\t\t\t\tanimation-timing-function: linear;\n\t\t\t}\n\t\t}\n\t"}function t_store__changeSnippetButtonBlockVisibility(t){var e;(null==t||null==(e=t.children)?void 0:e.length)>0||(t.style.opacity=1)}function t_store_hoverZoom_init(t){var e="https://static.tildacdn."+t_store__getRootZone()+"/js/tilda-hover-zoom-1.0.min.js",r;window.tStoreIsMobile||document.getElementById("rec"+t).querySelector("[data-hover-zoom]")&&t_store__loadJSFile(e,(function(){t_hoverZoom_init(t)}))}function t_store_loadProducts(t,e,r,o,n){window.tStoreProductsRequested=!0;var i="relevants"===t,s=Date.now(),a=r.storepart,c=!o||1===parseInt(o,10),l=document.getElementById("rec"+e);if(l){var d=i?l.querySelector(".js-store-relevants-grid-cont"):l.querySelector(".js-store-grid-cont"),p="973"===l.getAttribute("data-record-type")||"973"===l.getAttribute("data-parenttplid"),u;i?(u={storepartuid:a,productuid:n.currentProductUid,quantity:n.relevantsQuantity,method:n.relevantsMethod,sort:n.relevantsSort},(d=l.querySelector(".t-store__relevants-grid-cont"))&&(d.style.opacity=0)):u={storepartuid:a,recid:e,c:s},c&&(u.getparts=!0,u.getoptions=!0),o&&(u.slice=o),r.filters&&(u.filters=r.filters,u.getparts=!0),r.sort&&!i&&(u.sort=r.sort),r.size&&r.size>0&&(u.size=r.size),r&&r.defaultSort&&r.defaultSort.in_stock&&i&&(u.filters||(u.filters={}),u.filters.quantity="y"),u.flag_root="withroot";var _="https://"+window.t_store_endpoint+"/api"+(i?"/getrelevantproducts/":"/getproductslist/");if(!r.isPublishedPage){var f=window.location.hostname.split("."),y="tilda."+f[f.length-1];u.projectid=document.getElementById("allrecords").getAttribute("data-tilda-project-id"),_="https://"+y+"/projects/store"+(i?"/getrelevantproducts/":"/getproductslist/")}var v=Date.now();window.tStoreXHR||(window.tStoreXHR={}),window.tStoreXHR[e]&&(window.tStoreXHR[e].abort(),delete window.tStoreXHR[e]);var g=new XMLHttpRequest;window.tStoreXHR[e]=g,g.onload=function(){if(g.readyState===g.DONE&&200===g.status){var s=g.responseText;if(t_store__handleRootzoneRedirect(g.responseText,_))return void t_store_loadProducts(t,e,r,o,n);clearTimeout(l.getAttribute("data-preloader-timeout"));var a=l.querySelector(".js-store-grid-cont-preloader");if(a&&(a.style.display="none"),r.sidebar){var u=l.querySelector(".t951__grid-cont");u&&u.classList.remove("t951__grid-cont_hidden")}if(c&&d&&(d.innerHTML=""),"string"==typeof s&&"{"!==s.substring(0,1)&&(-1!==s.indexOf("ERROR:")||-1!==s.indexOf("Wrong"))){var f=t_store_get_errorBox(r,s);return d.insertAdjacentHTML("beforeend",f),void t_store__fadeIn(l.querySelector(".js-store-error-msg"))}if(""===s)return;var y={};try{(y=JSON.parse(s)).partlinks&&(r.linksSizeChart=y.partlinks)}catch(R){console.error(R)}if("object"!=typeof y)return;var v=i?y.relevants:y.products;if(y.options&&y.options.length>=1&&(window.tStoreOptionsList=y.options),t_store_process(v,e,r,!!o,i,y),y.parts&&y.parts.length>1&&!l.querySelector(".js-store-parts-switcher")&&!r.hideStoreParts){var m=function t(){t_store_onFuncLoad("t_store_addStoreParts",(function(){t_store_addStoreParts(e,r,y.parts),t_store_setActiveStorePart(e)}))},h="tilda-catalog-filters-1.0";if(document.head.querySelector('script[src*="'+h+'"]'))m();else{var b=document.createElement("script");b.type="text/javascript",b.src="https://static.tildacdn."+t_store__getRootZone()+"/js/"+h+".min.js",b.onload=m,b.onerror=function(){console.error("Failed to load tilda-catalog-filters: ",this.src)},document.head.appendChild(b)}if(!document.head.querySelector('link[href*="'+h+'"]')){var w=document.createElement("link");w.rel="stylesheet",w.type="text/css",w.href="https://static.tildacdn."+t_store__getRootZone()+"/css/"+h+".min.css",w.media="all",document.head.appendChild(w)}}window.tStoreFilters||(window.tStoreFilters={});var s=window.tStoreFilters[e];if("y"===y.filter&&!r.hideFilters&&s)s&&(s.filters&&s.filters.length>0||s.search||s.sort)&&t_store_onFuncLoad("t_store_filters_init",(function(){t_store_filters_init(e,r,s),i||t_store_filters_prodsNumber_update(l,r,y)}));else if(r.sidebar&&!i&&y.parts&&0===y.parts.length){var S=l.querySelector(".t951__sidebar");if(S){S.classList.add("t951__sidebar_empty");var E="RU"===window.tStoreBrowserLang?'Пожалуйста, добавьте хотя бы один фильтр каталога для отображения боковой панели магазина. Справка':'Please add at least one catalog filter to display the store sidebar';S.innerHTML=''+E+""}}if(t_store_isQueryInAddressBar("tstore")&&window.t_store__scrollToBlock){var P=decodeURI(window.location.hash).split("/"),x=P.indexOf("r")+1,C;P[x]===e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:0,top:l.getBoundingClientRect().top+window.pageYOffset-50,behavior:"smooth"}):window.scrollTo(0,l.getBoundingClientRect().top+window.pageYOffset-50),window.t_store__scrollToBlock=null)}var A=l.querySelector(".js-store-load-more-btn"),j;A&&A.classList.remove("t-btn_sending"),t_onFuncLoad("t_throttle",(function(){j=t_throttle((function(){if(!window.tStoreProductsRequested&&window.innerWidth<960){var t=d.scrollWidth,e=d.scrollLeft,r;d.offsetWidth+e+20>t&&"none"!==A.style.display&&(A.click(),d.removeEventListener("scroll",j))}}))}));var O=d&&d.classList.contains("t-store__grid-cont_mobile-one-row");if(y.nextslice){if(!A){var k;if(A=t_store_get_loadMoreBtn_html(l,r),r.sidebar)l.querySelector(".t951__cont-w-filter .t951__cont-wrapper + .t-store__pagination")||l.querySelector(".t951__cont-w-filter").insertAdjacentHTML("beforeend",A);else if(!i){var L=l.querySelector(".js-store-grid-cont");L&&L.insertAdjacentHTML("afterend",A)}A=l.querySelector(".js-store-load-more-btn")}if(A){A.style.display="";var T=function t(){window.tStoreProductsRequested||(A.classList.add("t-btn_sending"),t_store_loadProducts("",e,r,y.nextslice))};A.parentNode.replaceChild(A.cloneNode(!0),A),(A=l.querySelector(".js-store-load-more-btn")).addEventListener("click",T)}O&&d.addEventListener("scroll",j)}else i||(A&&(A.style.display="none"),d&&d.removeEventListener("scroll",j));if(r.showPagination&&"on"===r.showPagination&&!i&&t_store_onFuncLoad("t_store_pagination_draw",(function(){t_store_pagination_draw(e,r,o,y.total)})),O){var q=document.getElementById("allrecords").getAttribute("data-tilda-mode");d&&"edit"!==q&&"preview"!==q&&("y"!==window.lazy&&"yes"!==document.getElementById("allrecords").getAttribute("data-tilda-lazy")||t_store_onFuncLoad("t_lazyload_update",(function(){t_onFuncLoad("t_throttle",(function(){d.addEventListener("scroll",t_throttle((function(){t_lazyload_update()})))}))})))}if(i){l.querySelector(".t-store__relevants-grid-cont").style.opacity=1;var I=4;r.relevants_slider&&(v.length>4||window.innerWidth<=960)&&t_store_onFuncLoad("t_sldsInit",(function(){t_sldsInit(e+" .js-store-relevants-grid-cont")}))}p&&!i&&t_store_onFuncLoad("t_sldsInit",(function(){t_sldsInit(e+" .js-store-grid-cont")})),r.itemsAnim&&r.previewmode&&t_store_onFuncLoad("t_animate__startAnimation",(function(){t_animate__startAnimation()})),d.style.height="",t_store_triggerEvent(document.body,"twishlist_addbtn"),t_store_triggerEvent(d,"tStoreRendered"),window.tStoreProductsRequested=!1}},g.ontimeout=m,g.onerror=m,g.open("GET",_+"?"+t_store__serializeData(u)),g.timeout=2e4,g.send()}function m(i){if(-1!==window.t_store_endpoint.indexOf("store.tilda"))t_store_changeEndpoint(i,(function(){t_store_loadProducts(t,e,r,o,n)}));else{var s=l.querySelector(".js-store-load-more-btn");s&&s.classList.remove("t-btn_sending");var a=Date.now()-v;0===g.status&&a<100&&console.error("Request error (get store products). Please check internet connection..."),window.tStoreProductsRequested=!1;var c=l.querySelector(".js-store-grid-cont-preloader");c&&(c.style.display="none");var p=t_store_get_errorBox(r,'Request timeout (40s). Please check internet connection and reload the page. If the situation has not changed, please contact support team@tilda.cc.');d.insertAdjacentHTML("beforeend",p),t_store__fadeIn(l.querySelector(".js-store-error-msg"))}}}function t_store_loadOneProduct(t,e,r,o,n){var i=Date.now(),s,a={storepartuid:e.storepart,recid:t,productuid:r,c:i},c="https://"+window.t_store_endpoint+"/api/getproduct/?"+t_store__serializeData(a),l=new XMLHttpRequest;function d(t){console.error("Can't get product with uid = "+r+" in storepart = "+e.storepart),"function"==typeof n&&n(t)}l.onload=function(){if(l.readyState===l.DONE&&200===l.status){if(t_store__handleRootzoneRedirect(l.responseText,c))return void t_store_loadOneProduct(t,e,r,o,n);o()}},l.ontimeout=d,l.onerror=d,l.open("GET",c),l.timeout=2e4,l.send()}function t_store_loadProducts_byId(t,e,r,o){var n=Date.now(),i={productsuid:t,c:n},s="https://"+window.t_store_endpoint+"/api/getproductsbyuid/";if(e&&!e.isPublishedPage){i.projectid=document.getElementById("allrecords").getAttribute("data-tilda-project-id");var a=window.location.hostname.split("."),c="tilda."+a[a.length-1];s="https://"+c+"/projects/store/getproductsbyuid/"}i=JSON.stringify(i);var l=new XMLHttpRequest;function d(e){console.error("Can't get getproductsbyuid. Requesting idArr: "+t),"function"==typeof o&&o(e)}l.onload=function(){if(l.readyState===l.DONE&&200===l.status){if("string"==typeof l.responseText&&"{"===l.responseText.substring(0,1)||console.error("Can't get products array by uid list"),t_store__handleRootzoneRedirect(l.responseText,s))return void t_store_loadProducts_byId(t,e,r,o);r(JSON.parse(l.responseText))}},l.ontimeout=d,l.onerror=d,l.open("POST",s),l.timeout=2e4,l.send(i)}function t_store_loadFilters(t,e,r){var o=Date.now(),n,i={storepartuid:t.storepart,c:o},s=document.getElementById("allrecords");t&&t.defaultSort&&t.defaultSort.in_stock&&(i.filters||(i.filters={}),i.filters.quantity="y");var a="https://"+window.t_store_endpoint+"/api/getfilters/";if(!t.isPublishedPage){s&&(i.projectid=s.getAttribute("data-tilda-project-id"));var c=window.location.hostname.split("."),l="tilda."+c[c.length-1];a="https://"+l+"/projects/store/getfilters/"}var d=new XMLHttpRequest;function p(e){console.error("Can't get filters in storepart = "+t.storepart),"function"==typeof r&&r(e)}d.onload=function(){if(d.readyState===d.DONE&&200===d.status){if(t_store__handleRootzoneRedirect(d.responseText,a))return void t_store_loadFilters(t,e,r);try{e(JSON.parse(d.responseText))}catch(o){console.error(o),e()}}},d.ontimeout=p,d.onerror=p,d.open("GET",a+"?"+t_store__serializeData(i)),d.timeout=2e4,d.send()}function t_store_process(t,e,r,o,n,i){var s=document.getElementById("rec"+e);if(s){var a=s.querySelector(".js-store-grid-cont");if(a){var c="973"===s.getAttribute("data-record-type")||"973"===s.getAttribute("data-parenttplid"),l=r.prodCard&&"1025"===r.prodCard.blockId,d=r.prodCard&&!!r.prodCard.hasWrap,p=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"));n&&(a=s.querySelector(".js-store-relevants-grid-cont"));var u=t_store_get_horizSeparator_html(r),_={},f=a.querySelectorAll(".t-store__card").length;if(0===t.length){var y=t_store_get_emptyMsg_html(r);return a.insertAdjacentHTML("beforeend",y),void t_store__fadeIn(s.querySelector(".js-store-empty-part-msg"))}if(n&&r.prodCard){var v=r.prodCard.shadowSize,g=r.prodCard.shadow,m=r.prodCard.shadowHover,h=r.prodCard.shadowSizeHover,b=r.prodCard.shadowOpacityHover,w=r.prodCard.shadowShiftyHover,S=parseInt(v,10)||0;S=Math.min(S,10);var E=h?parseInt(h,10):20;E=Math.min(E,40);var P=b?parseInt(b,10)/100:.3,x=g||m?20:Math.max(E,S),C="";if(m)C="box-shadow: "+m+" !important;";else if(h||b){var A,j;C="box-shadow: 0px "+({sm:10,md:20}[w]||0)+"px "+E+"px rgba(0,0,0,"+P+") !important;"}var O="";C&&d&&(O+="#rec"+e+" .t-store .t-store__relevants__container .t-store__relevants-grid-cont .t-store__card__wrap_all:hover {",O+=C,O+="}\n"),(S||h||g||m)&&(O+="@media screen and (max-width:960px) {\n",O+="#rec"+e+" .t-store .t-store__relevants__container .t-store__relevants-grid-cont .t-store__card__wrap_all {\n",O+="margin: "+x+"px;\n",O+="}\n",O+="}\n",O+="@media screen and (min-width:961px) {\n",O+="#rec"+e+" .t-store .t-store__relevants__container .t-store__relevants-grid-cont .t-slds__items-wrapper .t-slds__item {\n",O+="padding-top: "+x+"px;\n",O+="padding-bottom: "+x+"px;\n",O+="}\n",O+="#rec"+e+" .t-store .t-store__relevants__container .t-store__relevants__title-wrapper .t-store__relevants__title {\n",O+="margin-bottom: "+(40-x)+"px;\n",O+="}\n",O+="}\n");var k=s.querySelector(".t-store__product-snippet + .t-store__relevants__container"),L=s.querySelector(".t-popup .t-store__relevants__container");O&&(O="",L&&L.insertAdjacentHTML("beforebegin",O),p&&k&&k.insertAdjacentHTML("beforebegin",O)),p&&k&&r.isFlexCols?k.classList.add("t-store__grid-cont_col-width_stretch"):L&&r.isFlexCols&&L.classList.add("t-store__grid-cont_col-width_stretch")}var T="",q=4,I=n?4:r.blocksInRow;if(n&&r.relevants_slider&&(t.length>4||window.innerWidth<=960)||!n&&c){var R="",z="300";"fast"===r.slider_opts.anim_speed&&(R="t-slds_animated-fast"),"slow"===r.slider_opts.anim_speed&&(R="t-slds_animated-slow",z="500"),T+='",F&&n&&(T+=F)}if(t_store_process_appendAndShowProducts(s,D||a,T),-1===T.indexOf('data-animate-style="fadeinleft"')||a.classList.contains("t-store__grid-cont_mobile-one-row")||(a.style.overflowX="hidden"),Array.prototype.forEach.call(t,(function(t){var o=t,i=n?s.querySelector('.t-store__relevants__container .js-product.t-item[data-product-gen-uid="'+o.uid+'"]'):s.querySelector('.t-store__grid-cont .js-product.t-item[data-product-gen-uid="'+o.uid+'"]'),a;i.setAttribute("data-card-size","small"),o=_[o.uid],parseInt(o.quantity,10)<=0||"both"!==r.showStoreBtnQuantity&&"list"!==r.showStoreBtnQuantity||t_store_addProductQuantity(i,o,r),t_store_addProductOptions(e,o,i,r),t_store_option_handleOnChange(i),t_store_option_handleOnChange_custom(e,i,r),t_store_onFuncLoad("t_prod__initProduct",(function(){t_prod__initProduct(i,r)}))})),!n&&window.tStoreFilters&&"object"==typeof window.tStoreFilters&&window.tStoreFilters[e]&&"object"==typeof window.tStoreFilters[e]&&window.tStoreCustomUrlParams&&"object"==typeof window.tStoreCustomUrlParams&&window.tStoreCustomUrlParams[e]&&"object"==typeof window.tStoreCustomUrlParams[e]&&Array.prototype.forEach.call(t,(function(t){var r=s.querySelector('.t-store__grid-cont .js-product.t-item[data-product-gen-uid="'+t.uid+'"]');Array.prototype.forEach.call(r.querySelectorAll(".js-product-edition-option"),(function t(r){var o=r.querySelector("select");if(o){var n=window.tStoreCustomUrlParams[e];if(n)for(var i=0,s=Object.keys(n);i');if("y"!==window.lazy&&"yes"!==document.getElementById("allrecords").getAttribute("data-tilda-lazy")||(r.relevants_slider?setTimeout((function(){t_store_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}),100):t_store_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))),document.querySelector(".t706__cartwin")||document.querySelector(".t706__sidebar")?"function"==typeof tcart__addEvent__links&&tcart__addEvent__links(e):console.warn("Warning: cart block is not added to this page"),t_store_initPopup(e,_,r,n,i),"1025"==r.prodCard.blockId&&setTimeout((function(){t_store_unifyCardsWidth(e)}),1e3),!r.previewmode)try{window.tp__record__addEditFieldEvents(e)}catch(U){console.error(U.message)}}}}function t_store_process_appendAndShowProducts(t,e,r){e.insertAdjacentHTML("beforeend",r),!0===t.getAttribute("data-already-loaded-first-products")?setTimeout((function(){Array.prototype.forEach.call(t.querySelectorAll(".t-store__card"),(function(t){t.classList.remove("t-store__card_hidden")}))}),10):(Array.prototype.forEach.call(t.querySelectorAll(".t-store__card"),(function(t){t.classList.remove("t-store__card_hidden")})),t.setAttribute("data-already-loaded-first-products",!0))}function t_store_mobileHoriz_checkBtnVisibility(t,e){var r=function t(e,r){var o=document.getElementById("rec"+e),n;window.innerWidth<960&&r.hasMobileHorizScroll&&t_store__removeElement(o.querySelector(".js-store-load-more-btn"))};r(t,e),t_onFuncLoad("t_throttle",(function(){window.addEventListener("resize",t_throttle((function(){r(t,e)}),500))}))}function t_store_get_productPopup_html(t,e){var r="",o=e.popup_opts.popupStat?'data-track-popup="'+e.popup_opts.popupStat+'"':"",n=e.popup_opts.overlayBgColorRgba?'style="background-color:'+e.popup_opts.overlayBgColorRgba+'"':"",i="t-popup__container t-popup__container-static ",s=e.verticalAlignButtons?"t-store__valign-buttons":"",a=e.showRelevants,c=e.titleRelevants?e.titleRelevants:window.tStoreDict.seeAlso,l=e.relevants_slider?"":"t-store__grid-cont_mobile-one-row";e.popup_opts.isVertical&&(i+="t-store__popup-container_8-cols ");var d="",p=e.popup_opts.isVertical?"":"t-store__prod-popup__col-left t-col t-col_"+e.popup_opts.columns,u,_="t-align_"+("center"===e.popup_opts.align?"center":"left")+" "+(e.popup_opts.isVertical?"":"t-store__prod-popup__col-right t-col t-col_"+e.popup_opts.columns2),f="js-store-product js-product t-store__product-popup ";e.popup_opts.containerBgColor&&(d+="background-color:"+e.popup_opts.containerBgColor+";"),"100"===e.popup_opts.popupContainer&&(d+="max-width:100%;",f+="t-container_fluid "),r+='
",r+=t_store_get_productPopup_closeIcon_html(e),r+=t_store_get_productPopup_closeText_html(e),r+='
',r+="
",r+='
',r+='
';var y=[];return"100"===e.popup_opts.popupContainer&&y.push("t-container_fluid"),r+=y.length?'
':"
",r+='
',r+='
',r+=t_store_get_productPopup_titleText_html(),r+='
',r+=t_store_get_productPopup_onePrice_html(e,"current"),r+=t_store_get_productPopup_onePrice_html(e,"old"),r+="
",r+='
',r+=t_store_get_productPopup_linksSizeChart_html(),r+=t_store_get_productPopup_buyBtn_html(e),r+=t_store_get_productPopup_text_html(),r+="
",r+="
",r+="
",a&&(r+='
',r+='
',r+='
"+c+"
",r+="
",e.relevants_slider||(r+=t_store_get_handIcon_html(t,e.horizontalScrollHint)),r+='
',r+="
"),r+="
",r+="
",r+="
",r+="
"}function t_store_get_productPopup_text_html(){var t="";return t+='
'}function t_store_get_productPopup_linksSizeChart_html(){var t="";return t+=''}function t_store_get_productPopup_buyBtn_html(t){var e=document.getElementById("button_buy_"+t.recid),r;return e&&e.content?'\n\t\t
\n\t\t\t'+e.content.cloneNode(!0).firstElementChild.outerHTML+"\n\t\t
\n\t":t_store_get_productPopup_buyBtn_html_legacy(t)}function t_store_get_productPopup_buyBtn_html_legacy(t){var e="",r=t.btn1_style,o=t.popup_opts.btnTitle;return""!==o&&(e+='"),e}function t_store_get_productPopup_onePrice_html(t,e){var r="",o="current"===e?"js-store-prod-price t-store__prod-popup__price":"js-store-prod-price-old t-store__prod-popup__price_old",n=Object.prototype.hasOwnProperty.call(t.price,"fontWeight")&&Object.prototype.hasOwnProperty.call(t.price,"fontSize"),i,s="",a="current"===e?t.price.color:t.price.colorOld,c=t.popup_opts.containerBgColor;0===Math.abs(t_store_getLightnessColor(a)-t_store_getLightnessColor(c))&&(a=t_store_luma_rgb(c),n||(s+=a?"color:"+a+";":"")),n&&(s+=a?"color:"+a+";":"",s+=t.price.fontWeight?"font-weight:"+t.price.fontWeight+";":""),i=""!==s?'style = "'+s+'"':"";var l=t.currencyTxt?'
'+t.currencyTxt+"
":"",d="current"===e?"js-product-price js-store-prod-price-val":"js-store-prod-price-old-val";return r+='
",r+="r"!==t.currencySide&&l?l:"",r+='
',r+="r"===t.currencySide&&l?l:"",r+="
"}function t_store_get_productPopup_titleText_html(){var t="";return t+='
',t+='
',t+='
',t+='
',t+=window.tStoreDict.sku+": ",t+='',t+="",t+="
",t+="
"}function t_store_get_productPopup_closeIcon_html(t){var e="",r=t.popup_opts.iconColor?t.popup_opts.iconColor:"#000000",o=t.popup_opts.overlayBgColorRgba?t_store_removeRgbOpacity(t.popup_opts.overlayBgColorRgba):t.popup_opts.containerBgColor,n=o&&o.length?o:"#ffffff",i;t.popup_opts.overlayBgColorRgba&&!t.popup_opts.iconColor&&(r=t_store_luma_rgb(t_store_removeRgbOpacity(t.popup_opts.overlayBgColorRgba)));return e+='
',e+='
',e+='',e+='',e+="",e+=' ',e+=' ',e+=' ',e+=' ',e+=" ",e+=" ",e+="
",e+="
"}function t_store_get_productPopup_closeIcon_color(t,e){var r=e.popup_opts.iconColor?e.popup_opts.iconColor:"#000000",o=e.popup_opts.overlayBgColorRgba?t_store_removeRgbOpacity(e.popup_opts.overlayBgColorRgba):e.popup_opts.containerBgColor,n=o&&o.length?o:"#ffffff",i;e.popup_opts.overlayBgColorRgba&&!e.popup_opts.iconColor&&(r=t_store_luma_rgb(i=t_store_removeRgbOpacity(e.popup_opts.overlayBgColorRgba)));var s=document.getElementById("rec"+t),a=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")),c=a?s.querySelector(".t-store__prod-snippet__container"):s.querySelector(".t-popup"),l;c.querySelector(".t-popup__close").style.backgroundColor=n;var d=c.querySelector(".t-popup__close-icon_cross"),p;a&&!e.popup_opts.iconColor&&Math.abs(t_store_getLightnessColor(r)-t_store_getLightnessColor(t_store_removeRgbOpacity(n)))>.1?(i=t_store_removeRgbOpacity(e.popup_opts.containerBgColor)||"rgb(255,255,255)",d.querySelector("g").setAttribute("fill",t_store_luma_rgb(i))):d.querySelector("g").setAttribute("fill",r),c.querySelector(".t-popup__close-icon_arrow").querySelector("path").setAttribute("fill",r)}function t_store_get_productPopup_closeText_html(t){if(!t.popup_opts.closeText)return"";var e=t_store_unescapeHtml(t.popup_opts.closeText),r=t.popup_opts.iconColor?t.popup_opts.iconColor:"#000000",o=t.popup_opts.containerBgColor&&t.popup_opts.containerBgColor.length?t.popup_opts.containerBgColor:"#ffffff",n;t.popup_opts.containerBgColor&&!t.popup_opts.iconColor&&(r=t_store_luma_rgb(t_store_hexToRgb(o)));var i,s="";return s+='
',s+='
",s+=e,s+="
",s+="
"}function t_store_get_loadMoreBtn_html(t,e){var r=document.getElementById("button_loadmore_"+e.recid);if(!r||!r.content)return t_store_get_loadMoreBtn_html_legacy(t,e);var o=r.content.cloneNode(!0),n=o.querySelector(".js-store-load-more-btn-text"),i,s;return n&&(n.textContent=window.tStoreDict.loadmore),'\n\t\t
\n\t\t\t'+o.firstElementChild.outerHTML+"\n\t\t
\n\t"}function t_store_get_loadMoreBtn_html_legacy(t,e){var r="",o,n,i;return r+='
',r+='
',r+='
'+window.tStoreDict.loadmore+"
",r+="
",r+="
"}function t_store_get_handIcon_html(t,e){var r=document.getElementById("rec"+t),o="rgba(190,190,190,0.3)",n="rgba(190,190,190,1)",i="rgba(190,190,190,0.3)",s="mix-blend-mode: multiply;",a,c=r.getAttribute("data-bg-color"),l,d,p,u;(c&&(a=-1!==c.indexOf("-gradient(")?t_store_getFirstColorFromGradient(c):t_store_hexToRgb(c)),document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))&&(a=r.style.backgroundColor),a)&&("white"===t_store_luma_rgb(a)&&(s="mix-blend-mode: lighten;",o="rgba(255,255,255,0.2)",n="rgba(255,255,255,1)",i="rgba(255,255,255,0.2)"));return"hand"!==e&&e?"circle"===e?'
':"":'
'}function t_store_get_emptyMsg_html(t){var e="",r=t.typo.titleColor?"color:"+t.typo.titleColor+";border-color:"+t.typo.titleColor+";":"",o="js-store-empty-part-msg t-store__empty-part-msg-cont";return e+='"}function t_store_get_errorBox(t,e){var r="",o=t.typo.titleColor?"color:"+t.typo.titleColor+";border-color:"+t.typo.titleColor+";":"",n="js-store-error-msg t-store__error-msg-cont";return r+="\x3c!--googleoff: all--\x3e",r+="\x3c!--noindex--\x3e",r+='",r+="\x3c!--/noindex--\x3e",r+="\x3c!--googleon: all--\x3e"}function t_store_get_productCard_html(t,e,r,o,n,i){var s=o?"t-col t-col_3":r.colClass,a=t_store_product_getFirstAvailableEditionData(e.editions),c="",l="left"===r.align?"t-align_left":"t-align_center",d=r.itemsAnim&&r.previewmode?"t-animate":"";if(window.tStoreIsMobile){var p=navigator.connection||navigator.mozConnection||navigator.webkitConnection;p&&("slow-2g"!==p.effectiveType&&"2g"!==p.effectiveType&&"3g"!==p.effectiveType||(d=""))}var u=r.itemsAnim?'data-animate-style="'+r.itemsAnim+'" data-animate-chain="yes" ':"",_=a.quantity&&parseInt(a.quantity,10)<=0,f='data-product-inv="'+(a.quantity||"")+'" ',y="1025"===r.prodCard.blockId,v=r.prodCard.btnLink1,g=t_store_get_productCard_link(v,e,o,t),m=t_store_get_productCard_targetAttr(v,e),h={open:r.previewmode?'":"",close:r.previewmode?"":""};(_&&"#order"===g||!document.querySelector(".t706__cartwin")&&!document.querySelector(".t706__sidebar")&&"#order"===g)&&(h.open="",h.close="");var b="";o&&(b="js-product-relevant");var w=4,S=e.pack_label,E=e.pack_m,P=e.pack_x,x=e.pack_y,C=e.pack_z,A=parseInt(n,10)+1,j=("973"===t.getAttribute("data-record-type")||"973"===t.getAttribute("data-parenttplid"))&&!o,O=o&&r.relevants_slider&&(i.length>4||window.innerWidth<=960);(O||j)&&(c+='
',c+='
');var k=e.url||"",L="";y&&("2"===r.prodCard.style?L+=" t-store__card_in-row":"3"===r.prodCard.style?L+=" t-store__card_under-description":L+=" t-store__card_in-column",L+=r.prodCard.hasSeparator?"":" t-store__card_no-separator",L+=parseInt(r.rightColumnWidth,10)?" t-store__card_fixed-width":"",L+=r.verticalAlign?" t-store__card_verticalAlign_"+r.verticalAlign:"");var T=[];try{T=JSON.parse(e.partuids)}catch(q){console.error(q)}return c+='
',r.prodCard.hasWrap?c+=t_store_get_productCard_wrapperStructure(e,a,r,h,o,t):c+=y&&!o?t_store_get_productCard_horizontalStructure(e,a,r,h,o,t):t_store_get_productCard_simpleStructure(e,a,r,h,o,t),c+="
",(O||j)&&(c+="
",c+="
"),c}function t_store_get_productCard_simpleStructure(t,e,r,o,n,i){var s=r.prodCard&&r.prodCard.showOpts?"":'style="display:none;"',a=t_store_get_productCard_img_html(t,r),c=t_store_get_productCard_btn_html(t,r,n,i),l=c&&c.length>0?"store__card__has-btns":"";return"\n\t\t"+o.open+"\n\t\t\t"+a+"\n\t\t"+o.close+'\n\t\t
\n\t\t\t
\n\t\t\t\t'+o.open+"\n\t\t\t\t\t"+t_store_get_productCard_txtAndPrice_html(t,e,r,a)+"\n\t\t\t\t"+o.close+'\n\t\t\t\t
\n\t\t\t
\n\t\t\t"+c+"\n\t\t
\n\t"}function t_store_get_productCard_wrapperStructure(t,e,r,o,n,i){var s=t_store_get_productCard_getWrapperStylesStr(r),a=r.prodCard&&r.prodCard.showOpts?"":'style="display:none;"',c=r.prodCard&&r.prodCard.txtPad?"t-store__card__wrap_pad-"+r.prodCard.txtPad:"",l=r.verticalAlignButtons?"t-store__card__wrap_txt-and-btns__vertical-align":"",d=t_store_get_productCard_btn_html(t,r,n,i),p=d&&d.length>0?"store__card__has-btns":"";return'\n\t\t
\n\t\t\t'+o.open+"\n\t\t\t\t"+t_store_get_productCard_img_html(t,r)+"\n\t\t\t"+o.close+'\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t'+o.open+"\n\t\t\t\t\t\t"+t_store_get_productCard_txtAndPrice_html(t,e,r)+"\n\t\t\t\t\t"+o.close+'\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t"+d+"\n\t\t\t
\n\t\t
\n\t"}function t_store_get_productCard_getWrapperStylesStr(t){var e="";e+=t.prodCard.bgColor?"background-color:"+t.prodCard.bgColor+";":"",e+=t.prodCard.borderRadius?"border-radius:"+parseInt(t.prodCard.borderRadius,10)+"px;":"";var r=t.prodCard.shadowOpacity,o=t.prodCard.shadowSize,n=t.prodCard.shadow,i="";return n?i="box-shadow:"+n+";":(r||o)&&(r=r?parseInt(r,10)/100:.3,i="box-shadow: 0px 0px "+(o=o?parseInt(o,10):10)+"px rgba(0,0,0,"+r+");"),e+=i}function t_store_get_productCard_img_html(t,e,r){var o="1025"===e.prodCard.blockId;if(o&&!e.prodCard.hasImg)return"";var n="",i=e.hasOriginalAspectRatio&&!e.isHorizOnMob?"t-store__card__imgwrapper_original-ratio":"",s="t-store__card__imgwrapper ",a;if(s+=o?e.imageRatioClass:i+(e.isFlexCols?" "+e.imageRatioClass:""),document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))&&!e.colWidth){var c={1:760,2:560,3:360,4:260};e.colWidth=c[e.blocksInRow]}var l=!e.imageHeight||e.isFlexCols||o?"":"padding-bottom:"+100*parseInt(e.imageHeight,10)/(e.colWidth||360)+"%;";if(e.hasOriginalAspectRatio&&e.prodCard.borderRadius){var d=parseInt(e.prodCard.borderRadius,10);l+="border-radius:"+d+"px "+d+"px 0px 0px; overflow: hidden;"}var p=t_store_get_productCard_imgElHover_html(t,e,r),u=e.imageHover&&p,_,f=r||t_store_getProductFirstImg(t);if(""!==(f=f.replace(/&amp;/,"&"))){var y;if(e.hasOriginalAspectRatio)(_=document.createElement("img")).classList.add("js-product-img"),_.classList.add("t-store__card__img"),u&&_.classList.add("t-store__card__img_hover"),/Version\/16\.3 Safari/.test(navigator.userAgent)&&(_.style.objectFit="contain"),_.classList.add("t-img"),_.setAttribute("data-original",f),_.src=t_store_getLazySrc(e,f);else(_=document.createElement("div")).classList.add("js-product-img"),_.classList.add("t-store__card__bgimg"),u&&_.classList.add("t-store__card__bgimg_hover"),_.classList.add("t-bgimg"),_.setAttribute("data-original",f),_.style.backgroundImage='url("'+t_store_getLazyUrl(e,f)+'")',t_store_get_productCard_getImgStyles(_,e);if(1===t.editions.length){var v=t_store_product_getFirstAvailableEditionData(t.editions);v.uid&&_.setAttribute(e.hasOriginalAspectRatio?"imgfield":"bgimgfield","st_gallery__"+v.uid+":::0")}return n+='
',n+=" "+t_store_get_productCard_mark_html(t,e),n+=" "+_.outerHTML,n+=" "+(e.imageHover?p:""),n+="
"}return""}function t_store_get_productCard_img_replaceWith(t,e,r,o){var n=e.querySelector(".t-store__card__imgwrapper"),i=t_store_get_productCard_img_html(t,r,o);n&&(n.outerHTML=i),t_store_popup_updateLazyLoad(),t_store_triggerEvent(document.body,"twishlist_addbtn")}function t_store_get_productCard_imgElHover_html(t,e,r){if(t.gallery&&"["===t.gallery[0]){var o=JSON.parse(t.gallery);if(void 0!==o[1]){var n=o[1].img,i,s;if(r&&r.length)for(var a=0;a0&&!window.tStoreIsMobile&&(t.style.top="-2px")}}function t_store_get_productCard_mark_html(t,e){if(!t.mark)return"";var r="";r+=e.markColor?"color:"+e.markColor+";":"";var o,n="";return n+='
',n+='
",n+=t.mark,n+="
",n+="
"}function t_store_get_productCard_txtAndPrice_html(t,e,r,o){var n="",i;return n+='
",n+=t_store_get_productCard_txt_html(t,e,r),n+="
"}function t_store_get_productCard_txt_html(t,e,r){var o="",n;if("at"===r.price.position&&(o+=t_store_get_productCard_Price_html(t,e,r)),t.title){n=4===parseInt(r.blocksInRow,10)?"t-name_xs":2===parseInt(r.blocksInRow,10)?"t-name_xl":"t-name_md";var i=1===t.editions.length&&e.uid?'field="st_title__'+e.uid+'" data-redactor-toolbar="no"':"";o+='
",o+=t.title,o+="
"}if("bt"===r.price.position&&(o+=t_store_get_productCard_Price_html(t,e,r)),e.sku){var s,a,c='style="'+(r.prodCard.showOpts?"":"display:none;")+(r.typo.descrColor?"color:"+r.typo.descrColor+";":"")+'"',l=1===t.editions.length&&e.uid?'field="st_sku__'+e.uid+'" data-redactor-toolbar="no"':"";o+='
",o+=window.tStoreDict.sku+": ",o+='",o+=e.sku,o+="",o+="
"}if(t.descr){var d=1===t.editions.length&&e.uid?'field="st_descr__'+e.uid+'" data-redactor-toolbar="yes"':"";o+='
",o+=t.descr,o+="
"}return r.price.position||(o+=t_store_get_productCard_Price_html(t,e,r)),o}function t_store_get_productCard_Price_html(t,e,r){var o="",n="",i=t_store__getFormattedPriceRange(r,t),s;return Object.prototype.hasOwnProperty.call(r.price,"position")&&("at"===r.price.position?n=" t-store__card__price-wrapper_above-title":"bt"===r.price.position&&(n=" t-store__card__price-wrapper_below-title")),o+='
"}function t_store_get_productCard_onePrice_html(t,e,r,o){var n="current"===o?e.price:e.priceold,i=t_store__getFormattedPrice(r,n),s=r.price.priceRange,a=t_store__getFormattedPriceRange(r,t);a&&"range"===s&&(i=a);var c="current"===o?"price":"priceold",l="",d="current"===o?"t-store__card__price":"t-store__card__price_old",p,u="",_;if(u+=n&&+n.replace(/\s/g,"")?"":"display: none;",Object.prototype.hasOwnProperty.call(r.price,"fontWeight")&&Object.prototype.hasOwnProperty.call(r.price,"fontSize")){var f="current"===o?r.price.color:r.price.colorOld;u+=f?"color:"+f+";":"",u+=r.price.fontSize?"font-size:"+r.price.fontSize+";":"",u+=r.price.fontWeight?"font-weight:"+r.price.fontWeight+";":""}p=""!==u?'style = "'+u+'"':"";var y=1===t.editions.length&&e.uid?'field="st_'+c+"__"+e.uid+'" data-redactor-toolbar="no"':"",v=r.currencyTxt?'
'+r.currencyTxt+"
":"",g="current"===o?"js-product-price js-store-prod-price-val":"js-store-prod-price-old-val",m;if(a&&(g+=" js-store-prod-price-range-val"),l+='
",a&&"from"===s){l+='
"+window.tStoreDict.from+"
";var h=t_store__getFormattedMinPrice(r,t);null!==h&&(i=h)}return l+="r"!==r.currencySide&&v?v:"",l+='
"+i+"
",l+="r"===r.currencySide&&v?v:"",t.unit&&t.portion>0&&(l+='
/',"1"!==t.portion&&(l+=+t.portion+" "),l+=window.tStoreDict[t.unit]+"
"),l+="
"}function t_store_get_productCard_btn_html(t,e,r,o){var n=document.getElementById("button_cardfirst_"+e.recid),i=document.getElementById("button_cardsecond_"+e.recid);if(!(n&&n.content||i&&i.content))return t_store_get_productCard_btn_html_legacy(t,e,r,o);var s="1025"===e.prodCard.blockId,a="";if(n&&n.content){var c=t_store_get_productCard_link(e.prodCard.btnLink1,t,r,o),l=t_store_get_productCard_targetAttr(e.prodCard.btnLink1,t),d=n.content.cloneNode(!0).firstElementChild;d.setAttribute("href",c.replaceAll("&","&")),l&&d.setAttribute("target","_blank"),a=s?'\n\t\t\t\t
\n\t\t\t\t\t'+d.outerHTML+"\n\t\t\t\t
\n\t\t\t":d.outerHTML}var p="";if(i&&i.content){var u=t_store_get_productCard_link(e.prodCard.btnLink2,t,r,o),_=t_store_get_productCard_targetAttr(e.prodCard.btnLink2,t),f=i.content.cloneNode(!0).firstElementChild;f.setAttribute("href",u.replaceAll("&","&")),_&&f.setAttribute("target","_blank"),p=s?'\n\t\t\t\t
\n\t\t\t\t\t'+f.outerHTML+"\n\t\t\t\t
\n\t\t\t":f.outerHTML}return'\n\t\t
\n\t\t\t'+a+p+"\n\t\t
\n\t"}function t_store_get_productCard_btn_html_legacy(t,e,r,o){if(!e.prodCard.btnTitle1&&!e.prodCard.btnTitle2)return"";var n="1025"===e.prodCard.blockId,i="",s,a,c="sm"===e.btnSize?"t-btn_xs":"t-btn_sm";return i+='
',e.prodCard.btnTitle1&&(n&&(i+='
'),i+=''+e.prodCard.btnTitle1+"",n&&(i+="
")),e.prodCard.btnTitle2&&(n&&(i+='
'),i+=''+e.prodCard.btnTitle2+"",n&&(i+="
")),i+="
"}function t_store_get_productCard_link(t,e,r,o){var n;if(o[0]&&(document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))&&"popup"===t))return t_store_generateUrl(e);if("order"===t)return"#order";if(r)return e.buttonlink?e.buttonlink:"#prodpopup";if("popup"===t){if(e.buttonlink){var i=e.buttonlink;return-1===i.indexOf("//")&&"/"!==i.slice(0,1)&&"#"!==i.slice(0,1)&&(i="http://"+i),i}return"#prodpopup"}return"#prodpopup"}function t_store_get_productCard_targetAttr(t,e){return"popup"===t&&e.buttonlink&&"_blank"===e.buttontarget?'target="_blank"':""}function t_store_get_horizSeparator_html(t){var e='
';return e=e.replace("[[style]]",t.vindent?'style="margin-bottom:'+t.vindent+';"':"")}function t_store_unifyCardsHeights_getBlocksInRow(t,e){return window.innerWidth<=960&&t.isHorizOnMob?e.length:window.innerWidth<=960?2:parseInt(t.blocksInRow,10)}function t_store_unifyCardsWidth(t){var e=document.getElementById("rec"+t);if(e){var r=e.querySelector(".t-store__grid-cont_itemwrapper");if(r){var o=r.querySelectorAll(".js-product");if(!o||!o.length||!o[0].classList.contains("t-store__card_fixed-width")&&!o[0].classList.contains("t-store__card_under-description")){var n=0,i=0,s=0;Array.prototype.forEach.call(o,(function(t){var e=t.querySelector(".t-store__card__price-buttons");if(e)if(e.classList.contains("t-store__card__price-buttons_in-row")){var r=e.querySelector(".t-store__card__price-wrapper"),o=e.querySelector(".t-store__card__btns-wrapper");r&&(r.style.width=null),o&&(o.style.width=null),e.style.width=null}else e.style.width=null})),Array.prototype.forEach.call(o,(function(t){var e=t.querySelector(".t-store__card__price-buttons");if(e)if(e.classList.contains("t-store__card__price-buttons_in-row")){var r=e.querySelector(".t-store__card__price-wrapper"),o=e.querySelector(".t-store__card__btns-wrapper");if(r){var a=window.getComputedStyle(r),c=Math.ceil(parseFloat(a.width))+Math.ceil(parseFloat(a.marginRight));c>i&&(i=c)}if(o){var l=Math.ceil(parseFloat(window.getComputedStyle(o).width));l>s&&(s=l)}}else{var d=Math.ceil(parseFloat(window.getComputedStyle(e).width));d>n&&(n=d)}})),Array.prototype.forEach.call(o,(function(t){var e=t.querySelector(".t-store__card__price-buttons");if(e)if(e.classList.contains("t-store__card__price-buttons_in-row")){var r=e.querySelector(".t-store__card__price-wrapper"),o=e.querySelector(".t-store__card__btns-wrapper");r&&(r.style.width=i+"px"),o&&(o.style.width=s+"px"),e.style.width=i+s+"px"}else e.style.width=n+"px"}))}}}}function t_store_initPopup(t,e,r,o,n){o||(window.urlBeforePopupOpen=window.location.href,window.titleBeforePopupOpen=document.title);var i=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")),s=document.getElementById("rec"+t);for(var a in e){var c=o?s.querySelector('.js-product-relevant[data-product-gen-uid="'+a+'"]'):s.querySelector('[data-product-gen-uid="'+a+'"]'),l=c.querySelectorAll('[href^="#prodpopup"]');Array.prototype.forEach.call(l,(function(s){var a=c.closest(".js-product"),l=a.getAttribute("data-product-gen-uid"),d=e[l];d&&s.setAttribute("href",d.url);var p=function i(s){if(s.preventDefault(),!s.target.closest(".t1002__addBtn")){a=this.closest(".js-product"),l=a.getAttribute("data-product-gen-uid"),d=e[l];var c=s.ctrlKey,p=s.metaKey&&-1!==navigator.platform.indexOf("Mac");c||p?window.open(d.url):(n.header||n.footer)&&n.disablepopup?location.href=d.url:t_store_openProductPopup(t,r,d,o,!1,!!o)}};i||s.addEventListener("click",p)}))}r.isPublishedPage&&setTimeout((function(){t_store_checkUrl(r,t)}),300),t_store_copyTypographyFromLeadToPopup(t,r)}function t_store_openProductPopup(t,e,r,o,n,i){var s=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"));s||t_store_open_popup_routing_init(t,e);var a=e.showRelevants,c,l=document.getElementById("rec"+t).querySelector(".t-popup"),d,p;if(l&&t_store_drawProdPopup(t,l,r,e,i),t_store_showPopup(t,n,i),window.Tilda&&(Tilda.sendEcommerceEvent&&(window.tStoreDetailEvent||(window.tStoreDetailEvent={}),window.tStoreDetailEvent[r.id?r.id:r.uid]||(Tilda.sendEcommerceEvent("detail",[{id:""+(r.id?r.id:r.uid),uid:""+r.uid,price:""+(r.price_min?r.price_min:r.price),sku:r.sku?r.sku:"",name:r.title}]),window.tStoreDetailEvent[r.id?r.id:r.uid]=!0)),Tilda.sendEventToStatistics)){var u=l.getAttribute("data-track-popup");if(u){var _="Popup: "+r.title;Tilda.sendEventToStatistics(u,_,"",0)}}if(e.isPublishedPage&&!n&&t_store_changeUrl(t,r,o,e),a&&!s){var f,y={cc:"current_category",all:"all_categories"}[a]||"category_"+a,v="random",g=e.relevants_quantity||4;t_store_loadProducts("relevants",t,e,!1,{currentProductUid:r.uid,relevantsQuantity:g,relevantsMethod:y,relevantsSort:v})}("y"!==window.lazy&&"yes"!==document.getElementById("allrecords").getAttribute("data-tilda-lazy")||t_store_popup_updLazyOnScroll(t),parseInt(r.quantity,10)<=0||"both"!==e.showStoreBtnQuantity&&"popup"!==e.showStoreBtnQuantity)||t_store_addProductQuantity(document.querySelector("#rec"+t+" .t-popup .js-store-product"),r,e);t_store_hoverZoom_init(t),e.itemsAnim&&e.previewmode&&setTimeout((function(){t_store_onFuncLoad("t_animate__setAnimationStateChains",(function(){var t=document.querySelectorAll(".r"),e=[];Array.prototype.forEach.call(t,(function(t){t.querySelector(".t-animate[data-animate-chain=yes]")&&e.push(t)})),e.length&&t_animate__setAnimationStateChains(e)}))}),300)}function t_store_addProductQuantity(t,e,r){var o=t,n=r||{};if(window.jQuery&&o instanceof jQuery){if(0===o.length)return;o=$(o).get(0)}var i=o.querySelector('.t-store__prod-popup__btn-wrapper a[href="#order"]:not(.t-store__prod-popup__btn_disabled)'),s=o.querySelector('.t-store__card__btns-wrapper a[href="#order"]:not([style*="display: none"])'),a=parseInt(e.quantity,10),c,l;if(isNaN(a)&&e.editions){var d=t_store_product_getFirstAvailableEditionData(e.editions);a=parseInt(d.quantity,10)}if((s||i)&&0!==a&&1!==a&&""!==n.showStoreBtnQuantity&&n.showStoreBtnQuantity){if("list"===n.showStoreBtnQuantity&&o.classList.contains("t-store__card")||"popup"===n.showStoreBtnQuantity&&o.classList.contains("t-store__product-snippet")||"popup"===n.showStoreBtnQuantity&&o.classList.contains("t-store__product-popup")||"both"===n.showStoreBtnQuantity){if(n||(n={}),(c=o.querySelector(".t-store__prod__quantity"))&&(l=c.querySelector(".t-store__prod__quantity-input")),c){var p=l.min||1;l.value=p,t_store_triggerEvent(l,"change");var u=l.value;isNaN(a)?c.classList.remove("t-store__prod-popup__btn_disabled"):a>1?(c.classList.remove("t-store__prod-popup__btn_disabled"),0===parseInt(u,10)&&(l.value=p)):c.classList.add("t-store__prod-popup__btn_disabled")}else{var _="",f=n.btn1_style,y=n.buttonRadius,v="";if(o.classList.contains("t-store__card")){var g={xs:"t-store__prod__quantity_xs",sm:"t-store__prod__quantity_sm",smd:"t-store__prod__quantity_smd",md:"t-store__prod__quantity_md",lg:"t-store__prod__quantity_lg",xl:"t-store__prod__quantity_xl",xxl:"t-store__prod__quantity_xxl"};v=g[n.btnSize]||g.sm}if(f&&"string"!=typeof y){var m=f.indexOf("border-radius");if(-1!==m){var h=f.slice(m).indexOf(";");y=f.slice(m+14,m+h)}}var b="";if(y&&(b="border-radius:"+y+";"),_+='
',_+='
',_+='',_+="
",_+='',_+='
',_+='',_+="
",_+="
",i?i.insertAdjacentHTML("beforebegin",_):s&&s.insertAdjacentHTML("beforebegin",_),t_store_addProductQuantityEvents(o),l=(c=o.querySelector(".t-store__prod__quantity")).querySelector(".t-store__prod__quantity-input"),s){var w=s.parentNode;if(w.querySelectorAll('a:not([href^="#order"])').length>0&&Element.prototype.matches.call(w.parentNode,"div[class]")){var S=document.createElement("div");for(S.classList.add("t-store__card__btns-wrapper--quantity"),w.appendChild(S);w.firstChild&&w.firstChild!==S;)S.appendChild(w.firstChild)}}}l&&(isNaN(a)?l.max=99999:a>0&&(l.max=a))}}else(c=o.querySelector(".t-store__prod__quantity"))&&(c.parentNode.classList.remove("t-store__card__btns-wrapper--quantity"),t_store__removeElement(c))}function t_store_addProductQuantityEvents(t){var e=t;if(window.jQuery&&e instanceof jQuery){if(0===e.length)return;e=e[0]}var r=e.querySelector(".t-store__prod__quantity");if(r){var o=r.querySelector(".t-store__prod__quantity-input"),n=function t(){o.stepDown()},i=e.querySelector(".t-store__prod__quantity__minus-wrapper");i&&(i.removeEventListener("click",n),i.addEventListener("click",n));var s=function t(){o.stepUp()},a=e.querySelector(".t-store__prod__quantity__plus-wrapper");a&&(a.removeEventListener("click",s),a.addEventListener("click",s));var c=function t(){var e=o.min||1,r=o.max||9999,n=parseInt(o.value||1,10);n<1||isNaN(n)?o.value=e:o.value=n>r?r:n},l=e.querySelector(".t-store__prod__quantity-input");l&&(l.removeEventListener("change",c),l.addEventListener("change",c))}}function t_store_removeProductQuantity(t){var e=t.querySelector('.t-store__prod-popup__btn-wrapper a[href="#order"]:not(.t-store__prod-popup__btn_disabled)'),r;if(t.querySelector('.t-store__card__btns-wrapper a[href="#order"]:not([style*="display: none"])')||e){var o=t.querySelector(".t-store__prod__quantity");o&&(o.parentNode.classList.remove("t-store__card__btns-wrapper--quantity"),t_store__removeElement(o))}}function t_store_open_popup_routing_init(t,e){window.onpopstate=function(){if(window.history.state)if(window.history.state.productData){var r=window.history.state.productData,o,n,i,s;t_store_openProductPopup(r.recid,r.opts,r.productObj,r.isRelevantsShow,!0)}else t_store_closePopup(!0,t,e);else t_store_closePopup(!0,t,e)}}function t_store_popup_updLazyOnScroll(t){var e=document.querySelector("#rec"+t+" .t-popup"),r=document.getElementById("allrecords").getAttribute("data-tilda-mode");e&&"edit"!==r&&"preview"!==r&&t_onFuncLoad("t_throttle",(function(){e.addEventListener("scroll",t_throttle((function(){t_store_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))})))}))}function t_store_changeUrl(t,e,r,o){var n=/iPhone|iPad|iPod/i.test(navigator.userAgent),i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),s=window.location.href,a={productObj:e,opts:o,isRelevantsShow:r,recid:t},c,l=document.title+" – "+e.title;s.indexOf("/tproduct/")<0&&s.indexOf("%2Ftproduct%2F")<0?(t_store_history_pushState({productData:a},l,c=t_store_generateUrl(e)),n&&i&&(document.querySelector('head link[rel="canonical"]').setAttribute("href",c),document.title=l)):r&&t_store_history_pushState({productData:a},l,c=t_store_generateUrl(e))}function t_store_generateUrl(t){var e=window.location.protocol,r=window.location.host,o;return(o=(o=t.url.split("://")[1]).split("/")).shift(),e+"//"+r+"/"+(o=o.join("/"))}function t_store_drawProdPopup(t,e,r,o,n){e.scrollTop=0;var i=e.querySelector(".js-store-product.js-product");i.setAttribute("data-card-size","large"),t_store_drawProdPopup_drawGallery(t,e,r,o),window.tStoreDefPackObj||(window.tStoreDefPackObj={});var s=e.querySelector(".js-store-product");s.setAttribute("data-product-lid",r.uid),s.setAttribute("data-product-uid",r.uid),s.setAttribute("data-product-gen-uid",r.uid);var a=e.querySelector(".js-store-prod-name");r.title?(a.innerHTML=r.title,a.style.display=""):(a.innerHTML="",a.style.display="none");var c=[];try{c=JSON.parse(r.partuids)}catch(f){console.error(f)}if(s.setAttribute("data-product-part-uid",c.join(",")),o.linksSizeChart&&c.length>0){for(var l="",d=[],p=0;p',l+='',l+=o.linksSizeChart[u].infotext,l+="",l+="
",d.push(o.linksSizeChart[u].infourl))}e.querySelector(".t-store__prod-popup__links-wrapper").innerHTML=l}else e.querySelector(".t-store__prod-popup__links-wrapper").innerHTML="";t_store_initTextAndCharacteristics(e,r);var _=function s(){t_store_addProductOptions(t,r,i,o),t_store_option_handleOnChange(i),t_store_option_handleOnChange_custom(t,i,o),t_store_onFuncLoad("t_prod__initProduct",(function(){t_prod__initProduct(i,o)})),t_store_notifyButton_applyEffects(e),window.t_store_prodPopup_updateGalleryThumbsEvent=function(){t_store_prodPopup_updateGalleryThumbs(t,e,r,o)},n&&window.removeEventListener("resize",window.t_store_prodPopup_updateGalleryThumbsEvent),window.addEventListener("resize",window.t_store_prodPopup_updateGalleryThumbsEvent)};_(),o.tabs&&t_store_onFuncLoad("t_store_tabs_init",(function(){t_store_tabs_init(t,o,r,i,e,_)}))}function t_store_notifyButton_applyEffects(t){var e=t.querySelector(".t_catalog__prod-popup__btn-replaced");if(e){var r=(null==e?void 0:e.querySelector(".t-btn_wrap-effects"))||(null==e?void 0:e.querySelector(".t-btn-effects"));if(r){var o=e.nextElementSibling,n;(null==o?void 0:o.querySelector(".t-btn_wrap-effects"))||(null==o?void 0:o.querySelector(".t-btn-effects"))||o.appendChild(r.cloneNode(!0))}}}function t_store_initTextAndCharacteristics(t,e){var r=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")),o=t.querySelector(".js-store-prod-text");if(o){for(;o.firstChild;)o.removeChild(o.firstChild);o.style.display="none"}var n=e.pack_label||"",i=parseInt(e.pack_m,10)||0,s=parseInt(e.pack_x,10)||0,a=parseInt(e.pack_y,10)||0,c=parseInt(e.pack_z,10)||0,l=e.url||"",d=n&&s&&a&&c,p=i,u=e.characteristics&&e.characteristics.length>0||d||p,_=!0,f=u,y;t.querySelectorAll('.t-store__tabs .t-store__tabs__item[data-tab-type="text"]').length&&(_=!1);var v=t.querySelectorAll('.t-store__tabs .t-store__tabs__item[data-tab-type="chars"]');v.length&&(f=!1);var g='";var m=_?"margin-top: 20px;":"",h='
",b="";if(u&&e.characteristics.forEach((function(t){b+='

'+t.title+": "+t.value+"

"})),b+='

',h+=b+='

',h+="
",o&&(o.insertAdjacentHTML("beforeend",g),o.insertAdjacentHTML("beforeend",h),o.style.display=""),r&&v.length&&Array.prototype.forEach.call(v,(function(t,e){var r=t.querySelector(".t-store__tabs__content");if(r){for(;r.firstChild;)r.removeChild(r.firstChild);r.insertAdjacentHTML("beforeend",b),0!==e&&(r.querySelector(".js-store-prod-dimensions").parentNode.style.display="")}})),d){var w=s+"x"+a+"x"+c,S=window.tStoreDict["product-"+n]+": "+w+" "+window.tStoreDict.mm,E=t.querySelector(".js-store-prod-dimensions");E&&(E.innerHTML=S),r&&(Array.prototype.forEach.call(v,(function(t){var e=t.querySelector(".js-store-prod-dimensions");e&&(e.innerHTML=S)})),t.setAttribute("data-product-pack-label",n),t.setAttribute("data-product-pack-x",s),t.setAttribute("data-product-pack-y",a),t.setAttribute("data-product-pack-z",c))}if(p){var P=window.tStoreDict["product-weight"]+": "+i+" "+window.tStoreDict.g;t.querySelector(".js-store-prod-weight").innerHTML=P,r&&(v.length&&Array.prototype.forEach.call(v,(function(t){var e=t.querySelector(".js-store-prod-weight");e&&(e.innerHTML=P)})),t.setAttribute("data-product-pack-m",i))}var x=t.querySelector(".js-store-product");r&&t.classList.contains("js-store-product")&&(x=t),x&&(x.setAttribute("data-product-pack-label",n),x.setAttribute("data-product-pack-m",i),x.setAttribute("data-product-pack-x",s),x.setAttribute("data-product-pack-y",a),x.setAttribute("data-product-pack-z",c),x.setAttribute("data-product-url",l))}function t_store_addProductOptions(t,e,r,o){var n=r;if(window.jQuery&&n instanceof jQuery){if(0===n.length)return;n=n[0]}var i=n.querySelector(".js-product-controls-wrapper");if(i){i.innerHTML="";var s=document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")),a=t_store_product_getFirstAvailableEditionData(e.editions),c,l;if(t_store_product_initEditions(t,e,n,o),e.prod_option||e.prod_option2||e.prod_option3||e.prod_option4||e.prod_option5)["",2,3,4,5].map((function(t){return{name:e["prod_option"+t],values:e["prod_variants"+t]}})).forEach((function(e){t_store_product_addOneOptionsControl("modificator",e,i,o,a,t)}));else e.properties&&e.properties.forEach((function(e){if("single"===e.params.type){var r;t_store_product_addOneOptionsControl("modificator",{name:e.title,values:e.values},i,o,a,t)}else{var n=t_store_product_getMultioptionCheckboxesEl(t,e,o);i.append(n)}}));if(s){t_store_option_handleOnChange(n);var d=n.closest(".t-records"),p=d&&d.getAttribute("id"),u=!n.closest(".t-store__relevants__container"),_;d&&u&&("t-header"!==p&&"t-footer"!==p)&&t_store_option_handleOnChange_custom(t,n,o)}}}function t_store_product_getMultioptionCheckboxesEl(t,e,r){var o=t_store_option_getStyle(r),n=r.typo&&r.typo.optionsColor?o:"",i=function t(e,r){var o;return'"},s,a=e.values.split("\n").reduce((function(t,e){var r=e.split("="),o=r[0],n=r[1];return t+i(o,n)}),""),c='
"+e.title+'
'+a+"
",l=document.createElement("div");return l.innerHTML=c,l}function t_store_get_control_option_html(t){var e="",r;return e+='
',e+='
[[name]]
",e+='
',e+="
"}function t_store_get_control_editionOption_html(t,e){var r="",o=t_store_option_getStyle(t),n="",i,s=t_store_option_checkIfCustom(e)?' style="display: none;"':"";return e.params&&(e.params.view&&(n+=' data-view-type="'+e.params.view+'"'),e.params.hasColor?n+=' data-option-type="color"':n+=' data-option-type="regular"'),r+='
",r+='
[[name]]
",r+='
',r+="
"}function t_store_option_getStyle(t){var e,r,o="";t.typo&&t.typo.descrColor&&!t.typo.optionsColor?o=t.typo.descrColor:t.typo&&t.typo.optionsColor&&(o=t.typo.optionsColor);var n=o.startsWith("linear-gradient")||o.startsWith("radial-gradient");return t.options_typo||n?n&&(e=""!==(r=""!==o?"color: transparent; background-clip: text; background-image:"+o+";":"")?'style = "'+r+'"':""):e=""!==(r=""!==o?"color:"+o+";":"")?'style = "'+r+'"':"",e}function t_store_option_styleCustomControl(t,e,r,o,n){var i="",s=o.querySelector('.js-product-edition-option[data-edition-option-id="'+r.id+'"]');if(s){var a=r.params&&"select"===r.params.view,c=r.params&&r.params.hasColor&&!r.params.linkImage,l=r.params&&r.params.linkImage,d=r.values[0],p=t_store_option_getClassModificator(r,"select","t-product__option-variants"),u=t_store_option_getClassModificator(r,"select","t-product__option-item"),_=t_store_option_getClassModificator(r,"select","t-product__option-input"),f=t_store_option_getClassModificator(r,"select","t-product__option-checkmark"),y=t_store_option_getClassModificator(r,"select","t-product__option-title"),v,g,m;if(a){var h,b;if(i+='
',c)i+='";else if(l){var w;v=r.values[0],i+='
"}i+=''+d+"",i+="
",p+=" t-product__option-variants_hidden"}i+='
';for(var S=0;S',i+='",l&&r.imagesObj?i+='
':i+='
",i+=''+v+"",i+=""}i+="",s.insertAdjacentHTML("beforeend",i)}}function t_store_option_getColorValue(t,e){var r="#ffffff";for(var o in t){var n=t[o];if(n.value===e.toString()){r=n.color;break}}return r}function t_store_option_getClassModificator(t,e,r){if(!t)return"";var o=t.params,n=r+"_"+o.view;return o.hasColor&&o.linkImage?"filter"===e?(n=r+"_buttons",n+=" "+r+"_color"):n+=" "+r+"_image":o.hasColor?n+=" "+r+"_color":o.linkImage?n+=" "+r+"_image":n+=" "+r+"_simple",n}function t_store_checkUrl(t,e){var r=window.location.href,o=r.indexOf("/tproduct/");if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&o<0&&(o=r.indexOf("/tproduct/"))<0&&(o=r.indexOf("%2Ftproduct%2F")),o>=0){var n=(r=r.substring(o,r.length)).split("-");if(void 0===n[1])return;var i=n[1],s=document.getElementById("rec"+e),a=s.querySelector('.js-store-grid-cont [data-product-gen-uid="'+i+'"]'),c=s.querySelector(".t-popup");if(r.indexOf(e)>=0&&a){if(!c.classList.contains("t-popup_show")){var l=a.querySelector('[href^="#prodpopup"]');l&&l.click()}}else if(r.indexOf(e)>=0&&c){if(c.classList.contains("t-popup_show"))return;var d;if(!(document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet")))){var p=function r(o){if("string"==typeof o&&"{"===o.substring(0,1)){var n;try{var s;n=JSON.parse(o).product}catch(a){console.error(a)}if(!n)return void console.error("Can't get product with uid = "+i+" in storepart = "+t.storepart);t_store_openProductPopup(e,t,n)}else console.error("Can't get product with uid = "+i+" in storepart = "+t.storepart)};t_store_loadOneProduct(e,t,i,p,(function(r){t_store_changeEndpoint(r,(function(){t_store_loadOneProduct(e,t,i,p)}))}))}}}}function t_store_showPopup(t,e,r){var o=document.getElementById("rec"+t),n=o.querySelector(".t-popup");t_store_resetNavStyles(t),t_store_triggerEvent(document.body,"popupShowed"),document.body.classList.add("t-body_popupshowed"),n.style.display="block";var i=n.scrollHeight>document.documentElement.clientHeight;i||(n.style.overflow="hidden"),setTimeout((function(){n.querySelector(".t-popup__container").classList.add("t-popup__container-animated"),n.classList.add("t-popup_show"),t_store_triggerEvent(document.body,"twishlist_addbtn"),t_store_popup_updateLazyLoad(),i?(n.scrollTop=0,t_store_triggerEvent(n,t_store_POPUP_SHOWED_EVENT_NAME)):setTimeout((function(){n.style.overflow="auto",t_store_triggerEvent(n,t_store_POPUP_SHOWED_EVENT_NAME)}),300)}),50),n.addEventListener(t_store_POPUP_SHOWED_EVENT_NAME,t_store_popup_updateLazyLoad),r||addPopupEvents(o,t)}function t_store_popup_updateLazyLoad(){"y"!==window.lazy&&"yes"!==document.getElementById("allrecords").getAttribute("data-tilda-lazy")||t_store_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}))}function t_store_closePopupKeyDown(t){var e,r;document.body.classList.contains("t-zoomer__show")||(document.body.classList.contains("t-zoomer__active")||27===t.keyCode&&t_store_closePopup(!1))}function addPopupEvents(t){var e=function t(e){e.target===this&&t_store_closePopup(!1)};t.querySelector(".t-popup").removeEventListener("click",e),t.querySelector(".t-popup").addEventListener("click",e);var r=function t(){t_store_closePopup(!1)};Array.prototype.forEach.call(t.querySelectorAll(".t-popup__close, .js-store-close-text"),(function(t){t.removeEventListener("click",r),t.addEventListener("click",r)})),document.addEventListener("keydown",t_store_closePopupKeyDown);var o=30,n=200,i=t.querySelectorAll(".t-popup__close-opacity-scroll");if(i.length){var s=function t(e){var r=e.scrollTop(),s;s=r>=n?1:r<=o?0:r/n,i.style.backgroundClor="rgba(255,255,255,"+s+")"};t.querySelector(".t-popup").removeEventListener("scroll",s),t.querySelector(".t-popup").addEventListener("scroll",s)}}function t_store_resetNavStyles(t){var e=document.getElementById("rec"+t).querySelector(".t-popup__close");e.classList.contains("t-popup__close-solid")?e.style.backgroundColor="rgba(255,255,255,1)":e.classList.contains("t-popup__close-opacity-scroll")&&(e.style.backgroundColor="rgba(255,255,255,0)")}function t_store_closePopup(t,e,r){var o=e,n=r,i=/iPhone|iPad|iPod/i.test(navigator.userAgent),s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),a,c,l,d;if(document.getElementById("allrecords")!==document.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(document.querySelector(".t-store__product-snippet"))||t_store_closePopup_routing(),Array.prototype.forEach.call(document.querySelectorAll(".t-popup"),(function(t){var e=t.querySelector(".t-slds__item_active .t-slds__frame");e&&e.src&&-1!==e.src.indexOf("&enablejsapi=1")&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),t.classList.remove("t-popup_show");var r=t.nextElementSibling;r&&r.classList.contains("t-popup__bg-active")&&r.classList.remove("t-popup__bg-active")})),t_store_triggerEvent(document.body,"popupHidden"),document.body.classList.remove("t-body_popupshowed"),t)if(t_store_isQueryInAddressBar("tstore")){var p=decodeURI(window.location.hash).split("/"),u=p.indexOf("c")+1,_=p.indexOf("r")+1,f=p[_];c=-1!==p[u].indexOf("-")?p[u].slice(0,p[u].indexOf("-")):p[u],window.history.state&&((l=window.history.state.opts).storepart=c),t_store_isStorepartFromHistoryActive(c,o,n)||t_store_loadProducts("",f,l)}else t_store_isStorepartFromHistoryActive(n.storepart,o,n)||t_store_loadProducts("",o,n);else if(window.history.state&&window.history.state.productData)try{var y=window.urlBeforePopupOpen,v=window.titleBeforePopupOpen;t_store_history_pushState({storepartuid:c=(d=window.history.state.productData).opts.storepart,opts:n=d.opts,recid:o=d.recid},null,y),i&&s&&(document.querySelector('head link[rel="canonical"]').setAttribute("href",y),document.title=v)}catch(m){console.error(m)}o&&(document.getElementById("rec"+o).querySelector(".js-store-parts-switcher")&&!n.hideStoreParts&&t_store_setActiveStorePart(o),n.tabs&&t_store_onFuncLoad("t_store_tabs_videoClearFrame",(function(){t_store_tabs_videoClearFrame(o)})));var g=document.querySelector(".t-popup");setTimeout((function(){g.scrollTop=0,Array.prototype.forEach.call(document.querySelectorAll(".t-popup:not(.t-popup_show)"),(function(t){t.style.display="none"}))}),300),document.removeEventListener("keydown",t_store_closePopupKeyDown),window.removeEventListener("resize",window.t_store_prodPopup_updateGalleryThumbsEvent),t_store_triggerEvent(document.body,"twishlist_addbtn"),t_store_triggerEvent(g,t_store_POPUP_CLOSED_EVENT_NAME)}function t_store_isStorepartFromHistoryActive(t,e,r){var o,n=document.getElementById("rec"+e);if(r&&!r.storePartsArr)return!0;if(!t)return!1;var i=null==(o=n.querySelector(".js-store-parts-switcher.t-active"))?void 0:o.getAttribute("data-storepart-uid");return parseInt(i,10)===parseInt(t,10)}function t_store_closePopup_routing(){window.onpopstate=function(){var t;if(window.history.state){if(window.history.state.productData){var e=window.history.state.productData,r=e.recid,o=e.productObj,n=e.isRelevantsShow;t_store_openProductPopup(r,t=e.opts,o,n,!0)}if(window.history.state.storepartuid){var i=window.history.state.opts,s=window.history.state.recid;t.isPublishedPage=!0,t_store_loadProducts("",s,i)}}}}function t_store_applyContrastColorIfNecessary(t,e,r){var o;0===Math.abs(t_store_getLightnessColor(e)-t_store_getLightnessColor(r))&&(t.style.color=t_store_luma_rgb(r))}function t_store_copyTypographyFromLeadToPopup(t,e){var r=document.getElementById("rec"+t),o=r.querySelector(".js-store-grid-cont .js-store-prod-name"),n=r.querySelector(".js-store-grid-cont .js-store-prod-descr"),i=r.querySelector(".t-popup .t-popup__container"),s,a;if(i&&(s=i.style.backgroundColor),o){var c=o.getAttribute("style"),l=r.querySelector(".t-popup .js-store-prod-name"),d;if(l)if(l.setAttribute("style",t_store_removeSizesFromStylesLine(c)),s)t_store_applyContrastColorIfNecessary(l,e.typo.titleColor,s)}n&&(a=n.getAttribute("style")),!a&&e&&e.typo&&e.typo.descr&&(a=(a=e.typo.descr).replace("line-height:0;",""));var p=r.querySelector(".t-popup .js-store-prod-text"),u;p&&(p.setAttribute("style",t_store_removeSizesFromStylesLine(a)),s&&t_store_applyContrastColorIfNecessary(p,e.typo.descrColor,s))}function t_store_setProductNameStyles(t,e,r,o){var n=t.querySelector(".t-store__prod-popup__title-wrapper .js-store-prod-name");if(n)if(r.title_typo)t_store_parseTypoStylesConfig(e,".t-store__prod-popup__name",r.title_typo,"js-store-title-typo-styles-"+e);else{var i=n.getAttribute("style"),s;if(n.setAttribute("style",t_store_removeSizesFromStylesLine(i)),o)t_store_applyContrastColorIfNecessary(n,r.typo.titleColor,o)}}function t_store_setRelevantsSliderStyles(t,e){e.showRelevants&&(e.title_typo&&(t_store_parseTypoStylesConfig(t,".t-store__relevants__title",e.title_typo,"js-store-relevants-title-typo-styles-"+t,{color:!0,"font-size":!0,"font-family":!0,"line-height":!0,"font-weight":!0,"letter-spacing":!0,opacity:!0,"text-transform":!0,"text-shadow":!0}),t_store_parseTypoStylesConfig(t,".t-store__card__title",e.title_typo,"js-store-relevants-descr-typo-styles-"+t)),e.descr_typo&&t_store_parseTypoStylesConfig(t,".t-store__card__descr",e.descr_typo,"js-store-relevants-item-descr-typo-styles-"+t),e.price_typo&&t_store_parseTypoStylesConfig(t,".t-store__card__price",e.price_typo,"js-store-relevants-price-typo-styles-"+t),e.price_old_typo&&t_store_parseTypoStylesConfig(t,".t-store__card__price_old",e.price_old_typo,"js-store-relevants-old-price-typo-styles-"+t))}function t_store_setProductDescriptionStyles(t,e,r,o){var n=t.querySelector(".js-store-prod-text");if(n)if(r.descr_typo)t_store_parseTypoStylesConfig(e,".t-store__prod-popup__text",r.descr_typo,"js-store-descr-typo-styles-"+e);else{var i=n.getAttribute("style"),s;if(n.setAttribute("style",t_store_removeSizesFromStylesLine(i)),o)t_store_applyContrastColorIfNecessary(n,r.typo.descrColor,o)}}function t_store_setProductPriceStyles(t,e,r,o){var n=t.querySelector(".js-store-prod-price"),i;n&&(r.price_typo?t_store_parseTypoStylesConfig(e,".t-store__prod-popup__price",r.price_typo,"js-store-price-typo-styles-"+e):o&&t_store_applyContrastColorIfNecessary(n,r.price.color,o))}function t_store_setProductOldPriceStyles(t,e,r,o){var n=t.querySelector(".js-store-prod-price-old"),i;n&&(r.price_old_typo?t_store_parseTypoStylesConfig(e,".t-store__prod-popup__price_old",r.price_old_typo,"js-store-old-price-typo-styles-"+e):o&&t_store_applyContrastColorIfNecessary(n,r.price.colorOld,o))}function t_store_setProductOptionsStyles(t,e){if(e.options_typo){var r;try{r=JSON.parse(e.options_typo)}catch(l){return void console.error("Error when parse options_typo parse error",l)}delete r.shadowsize,delete r.shadowopacity;var o=JSON.stringify(r),n=".t-product__option-title:not(.t-product__option-title_select):not(.t-product__option-title_radio):not(.t-product__option-title_buttons)";if(t_store_parseTypoStylesConfig(t,n,e.options_typo,"js-store-options-title-typo-styles-"+t),e.descr_typo)try{var i,s,a=t_store_option_getStyleInSnippet(JSON.parse(e.descr_typo).color,JSON.parse(e.options_typo).color),c;if(""!==a)t_store_createСssStyleTag("js-store-options-title-color-rewrite-typo-styles-"+t,"#rec"+t+" "+n+" { "+a+"; }")}catch(d){console.error("Error when parse descr_typo config",d)}t_store_parseTypoStylesConfig(t,".t-product__option-selected-title",o,"js-store-options-selected-title-typo-styles-"+t),t_store_parseTypoStylesConfig(t,".t-product__option-title_select",o,"js-store-options-title-select-typo-styles-"+t),t_store_parseTypoStylesConfig(t,".t-product__option-select",o,"js-store-options-select-typo-styles-"+t),t_store_parseTypoStylesConfig(t,".t-product__option-title_radio",o,"js-store-options-title-radio-typo-styles-"+t),t_store_parseTypoStylesConfig(t,".t-product__option-title_buttons",o,"js-store-options-title-buttons-typo-styles-"+t)}}function t_store_option_getStyleInSnippet(t,e){var r,o="";t&&!e?o=t:e&&(o=e);var n=o.startsWith("linear-gradient")||o.startsWith("radial-gradient");return n?n&&(r=""!==o?"color: transparent; background-clip: text; background-image:"+o+";":""):r=""!==o?"color:"+o+";":"",r}function t_store_setProductCharacteristicsStyles(t,e,r){var o;t.querySelector(".js-store-prod-all-charcs")&&r.characteristics_typo&&t_store_parseTypoStylesConfig(e,".t-typography__characteristics",r.characteristics_typo,"js-store-characteristics-typo-styles-"+e)}function t_store_setProductBrandStyles(t,e,r){var o;t.querySelector(".js-product-brand")&&r.sku_typo&&t_store_parseTypoStylesConfig(e,".t-store__prod-popup__brand",r.sku_typo,"js-store-brand-typo-styles-"+e)}function t_store_setProductSkuStyles(t,e,r){var o;t.querySelector(".js-store-prod-sku")&&r.sku_typo&&t_store_parseTypoStylesConfig(e,".t-store__prod-popup__sku",r.sku_typo,"js-store-sku-typo-styles-"+e)}function t_store_setProductTabsStyles(t,e,r){var o=t.querySelector(".js-store-tabs");if(o&&r.descr_typo){o.classList.contains("t-store__tabs_accordion")?t_store_parseTypoStylesConfig(e,".t-store__tabs__content",r.descr_typo,"js-store-tabs-typo-styles-"+e,{color:!0}):t_store_parseTypoStylesConfig(e,".t-store__tabs__button-title",r.descr_typo,"js-store-tabs-typo-styles-"+e,{color:!0});try{var n=JSON.parse(r.descr_typo).color;if(n){var i=t_store_hexToRgb(n),s;if(i)t_store_createСssStyleTag("js-store-tabs-items-styles-"+e,"\n\t\t\t\t\t#rec"+e+" .t-store__tabs__button { \n\t\t\t\t\t\tborder-bottom: 1px solid rgba("+i.join(",")+", 0.3); \n\t\t\t\t\t}\n\t\t\t\t\t#rec"+e+" .t-store__tabs__button_active,\n\t\t\t\t\t#rec"+e+" .t-store__tabs__button:hover { \n\t\t\t\t\t\tborder-bottom: 1px solid rgba("+i.join(",")+", 1.0); \n\t\t\t\t\t}\n\t\t\t\t")}}catch(a){console.error("Error when parse descr_typo config",a)}}}function t_store_snippet_copyTypographyToSnippet(t,e){var r,o=document.getElementById("rec"+t).querySelector(".t-store__product-snippet"),n=e.popup_opts.containerBgColor;t_store_setProductNameStyles(o,t,e,n),t_store_setProductDescriptionStyles(o,t,e,n),t_store_setProductPriceStyles(o,t,e,n),t_store_setProductOldPriceStyles(o,t,e,n),t_store_setProductOptionsStyles(t,e),t_store_setProductCharacteristicsStyles(o,t,e),t_store_setProductBrandStyles(o,t,e),t_store_setProductSkuStyles(o,t,e),t_store_setRelevantsSliderStyles(t,e),t_store_setProductTabsStyles(o,t,e)}function t_store_parseTypoStylesConfig(t,e,r,o,n){if(r&&o)try{var i=JSON.parse(r);if(!i||"object"!=typeof i)return;var s={},a={};Object.keys(i).forEach((function(t){var e=i[t];t_store_isEmptyValue(e)||(/_res_480$/.test(t)?a[t.replace(/_res_480$/,"")]=e:s[t]=e)}));var c=[],l=[],d={color:"color",fontsize:"font-size",fontfamily:"font-family",lineheight:"line-height",fontweight:"font-weight",letterspacing:"letter-spacing",margintop:"padding-top",marginbottom:"padding-bottom",opacity:"opacity",uppercase:"text-transform"};if(t_store_applyTypoConfig(s,c,d,n),t_store_applyTypoConfig(a,l,d,n),!c.length&&!l.length)return;var p="#rec"+t+" "+e,u="";c.length&&(u+=p+"{"+c.join("")+"}"),l.length&&(u+="\n@media screen and (max-width:480px){"+p+"{"+l.join("")+"}}"),t_store_createСssStyleTag(o,u)}catch(_){console.error("t_store_parseTypoStylesConfig error",_)}}function t_store_isEmptyValue(t){return null==t||""===t}function t_store_isPercentValue(t){return"string"==typeof t&&/%$/.test(t.trim())}function t_store_percentToFloat(t){if(t_store_isPercentValue(t)){var e=parseFloat(t);return isNaN(e)?"":(e/100).toString()}return t}function t_store_buildTextShadow(t){var e=t.shadowSize,r=t.shadowOpacity;if(!e||!r)return null;var o=t_store_percentToFloat(r),n=parseFloat(o);return isNaN(n)&&(n=1),"0 0 "+e+" rgba(0,0,0,"+n+")"}function t_store_applyTypoConfig(t,e,r,o){var n={shadowSize:null,shadowOpacity:null},i=o||null,s=function t(e){return!i||i[e]};Object.keys(t).forEach((function(o){var i=t[o];switch(o){case"shadowsize":n.shadowSize=i;break;case"shadowopacity":n.shadowOpacity=i;break;case"opacity":s("opacity")&&t_store_addRule(e,r[o],t_store_percentToFloat(i));break;case"color":s("color")&&t_store_addTextColorRule(e,i);break;default:r[o]&&s(r[o])&&t_store_addRule(e,r[o],i)}}));var a=t_store_buildTextShadow(n);a&&s("text-shadow")&&t_store_addRule(e,"text-shadow",a)}function t_store_removeSizesFromStylesLine(t){var e,r;return t?t.split(";").filter((function(t){return!t.match(/(font-size|padding-(top|bottom)|line-height)/)})).join(";"):""}function t_store_drawProdPopup_drawGallery(t,e,r,o){var n=980,i="https://static.tildacdn."+t_store__getRootZone()+"/js/tilda-catalog-slds-1.0.min.js",s=e;if(window.jQuery&&s instanceof jQuery){if(0===s.length)return;s=s[0]}if(s){var a=s.querySelector(".js-store-prod-slider"),c;if(r.gallery)if(0!==(c="string"==typeof r.gallery?JSON.parse(r.gallery):r.gallery).length){var l=function e(){var a={recid:t,el_popup:s,product:r,options:o,galleryArr:c},l,d=window.isMobile||"ontouchend"in document&&-1!==navigator.userAgent.indexOf("AppleWebKit")?document.documentElement.clientWidth:window.innerWidth;if(o.galleryStyle&&d>n||o.popup_opts.mobileGalleryStyle&&d<=n)t_store__loadJSFile(i,(function(){t_onFuncLoad("t_store__initCustomGallery",(function(){t_store__initCustomGallery(a)}))}));else{if(o.galleryStyle){var p=s.querySelector(".t-store__prod-popup__info");p&&p.classList.remove("t-store__prod-popup__col_fixed")}t_store__initDefaultGallery(a)}};l(),window.t_store_drawProdPopup_resizeGalleryEvent&&window.removeEventListener("resize",window.t_store_drawProdPopup_resizeGalleryEvent),window.t_store_drawProdPopup_resizeGalleryEvent=function(){var t,e=window.isMobile||"ontouchend"in document&&-1!==navigator.userAgent.indexOf("AppleWebKit")?document.documentElement.clientWidth:window.innerWidth,r=".js-store-desktop-custom-gallery",i=".js-store-mobile-custom-gallery",s=o.galleryStyle||"",c,d,p=s&&-1!==["col1_fixed","col2_fixed"].indexOf(s)&&e>n,u,_=(o.popup_opts.mobileGalleryStyle||"")&&e<=n;if(o.galleryStyle&&e>=n||o.popup_opts.mobileGalleryStyle&&e'+t_store_svgVideoIcon(r)+"
":"").replace("[[activeClass]]",0===e?"t-slds__bullet_active":"").replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(r,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt)),l+=g})),a=a.replace("[[slides]]",c),d&&(a=a.replace("[[bullets]]",l));var m=e.querySelector(".js-store-prod-slider");m&&(m.innerHTML=a),t_store_galleryVideoHandle(i);var h=".t-slds__arrow_container, .t-slds__bullet_wrapper, .t-slds__thumbsbullet-wrapper",b=e.querySelectorAll(h),w;b&&(1===o.length?Array.prototype.forEach.call(b,(function(t){t.style.display="none"})):Array.prototype.forEach.call(b,(function(t){t.style.display=""}))),"l"===r.sliderthumbsside&&(w={thumbsbulletGallery:!0,storeOptions:r}),setTimeout((function(){t_store_onFuncLoad("t_sldsInit",(function(){t_sldsInit(i+" .js-store-product",w),t_store__addSlideChangeListener(i);var t=t_store_product_detectEditionByControls(e,n);t&&t_store_product_updateEdition_moveSlider(i,e,t),setTimeout((function(){t_slds_updateSlider(s)}),200)}))}),200)}}}}}function t_store_galleryVideoHandle(t){var e=document.getElementById("rec"+t);if(e){var r=e.querySelectorAll(".t-slds__play_icon");Array.prototype.forEach.call(r,(function(t){t&&t.addEventListener("click",(function(){var t=this.parentNode,r=t.querySelector(".t-slds__frame-wrapper");r||((r=document.createElement("div")).classList.add("t-slds__frame-wrapper"),this.insertAdjacentElement("afterend",r)),r.style.zIndex=3;var o=this.getAttribute("data-slider-video-type"),n=this.getAttribute("data-slider-video-url"),i=this.getAttribute("data-slider-video-hash"),s=this.getAttribute("data-slider-video-time"),a=this.getAttribute("data-slider-video-params"),c,l=t_store__getVideoElement(o,{videoId:n,videoHash:i,videoTime:s,vkOID:this.getAttribute("data-slider-video-oid"),videoParams:a});if(l){r.innreHtml="",r.appendChild(l);var d=function t(){l.remove(),r.style.zIndex=""};document.addEventListener("popupHidden",d,{once:!0});var p=e.querySelector(".t-slds__items-wrapper");p&&p.addEventListener("slideChangeStart",d,{once:!0});var u=t.closest(".js-product");u&&u.addEventListener("tStoreVariantChange",d,{once:!0})}}))}))}}function t_store__getVideoElement(t,e){if(!t)return null;var r=e.videoId,o=e.videoHash,n=e.videoTime,i=e.vkOID,s=e.videoParams,a,c,l={youtube:{baseUrl:"https://www.youtube.com/embed/"+r,params:["rel=0","fmt=18","html5=1","showinfo=0","autoplay=1","muted=1","enable",n&&"start="+n]},vimeo:{baseUrl:"https://player.vimeo.com/video/"+r,params:["title=0","byline=0","portrait=0","badge=0","color=ffffff","autoplay=1","muted=1",o&&"h="+o],hashtag:n?"#t="+n:""},kinescope:{baseUrl:"https://kinescope.io/embed/"+r,params:["autoplay=1","muted=1",n&&"t="+n]},rutube:{baseUrl:"https://rutube.ru/embed/"+r,params:["autoplay=1","muted=1",n&&"t="+n,o&&"p="+o]},vk:{baseUrl:"https://vkvideo.ru/video_ext.php",params:["js_api=1","hd=2","autoplay=1","muted=1","id="+r,"oid="+i,o&&"hash="+o,n&&"t="+n]}}[t.replace(/\.com/,"")];if(!l)return null;var d=l.baseUrl,p=l.params,u=l.hashtag,_=void 0===u?"":u,f,y;return s&&p.push(s),v(d+"?"+p.filter((function(t){return t})).join("&")+_);function v(t,e){var r=document.createElement("iframe");for(var o in r.src=t,r.classList.add("t-slds__frame"),r.width="100%",r.height="100%",r.frameBorder="0",r.allowFullscreen=!0,r.setAttribute("mozallowfullscreen","true"),r.setAttribute("msallowfullscreen","true"),r.setAttribute("oallowfullscreen","true"),r.setAttribute("webkitallowfullscreen","true"),r.scrolling="no",r.allow="clipboard-write; autoplay; fullscreen; picture-in-picture; encrypted-media; gyroscope; accelerometer;",e)e.hasOwnProperty(o)&&r.setAttribute(o,e[o]);return r}}function t_store_addVideoIconForGallery(t,e){var r="",o=e.video;if(o){var n=e.videoid,i=void 0===n?"":n,s=e.vtype,a=void 0===s?"":s,c=e.vhash,l=void 0===c?"":c,d=e.vtime,p=void 0===d?"":d,u=e.void||"",_="";"youtube.com"===e.vtype&&-1!==o.indexOf("?v="+e.videoid)&&-1!==(_=(_=o.split("?v="+e.videoid)[1]).replace(/&/g,"&")).indexOf("loop=1")&&-1===_.indexOf("&playlist=")&&(_+="&playlist="+e.videoid),r+='\n
\n
\n '+t_store_svgVideoIcon(t)+'\n
\n
\n
'}return r}function t_store_svgVideoIcon(t){var e="",r;return e+='',e+='',e+='',e+='',e+="",e+="",e+=""}function t_store_prodPopup_updateGalleryThumbs(t,e,r,o){var n=document.getElementById("rec"+t),i,s;if(!("thumbs"===o.slider_opts.controls||"arrowsthumbs"===o.slider_opts.controls)&&"l"===o.sliderthumbsside&&r.gallery){i="string"==typeof r.gallery?JSON.parse(r.gallery):r.gallery;var a=e.querySelector(".js-store-prod-slider");if(0!==i.length){var c=parseInt(o.popup_opts.columns,10),l=+o.slider_slidesOpts.ratio,d=60,p=10,u=n.querySelectorAll(".t-slds__thumbsbullet").length,_=t_store_prodPopup_gallery_calcMaxThumbsCount(c,l,d,p),f,y,v,g,m;if(u!==_&&i.length>=_||u<_&&u!==i.length)Array.prototype.forEach.call(i,(function(t,e){e<=_-1&&(e<=_-2||e===i.length-1?(y=t_store_get_productcard_oneSliderBullet_html(o),v=y.replace("[[videoPlayIcon]]","").replace("[[activeClass]]",0===e?"t-slds__bullet_active":"").replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(o,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt))):(y=t_store_get_productcard_thumbsGallery_html(o,i.length,_),v=y.replace("[[activeClass]]",0===e?"t-slds__bullet_active":"").replace(/\[\[index\]\]/g,e+1).replace(/\[\[imgsource_lazy\]\]/g,t_store_getLazyUrl(o,t.img)).replace(/\[\[imgsource\]\]/g,t.img).replace(/\[\[imgalttext\]\]/g,t_store_escapeQuote(t.alt))),f+=v)})),n.querySelector(".t-slds__thumbsbullet-wrapper").innerHTML=f,"l"===o.sliderthumbsside&&(m={thumbsbulletGallery:!0,storeOptions:o}),t_sldsInit(t+" .js-store-product",m),t_store_popup_updateLazyLoad()}else a&&(a.innerHTML="")}}function t_store_prodPopup_gallery_calcMaxThumbsCount(t,e,r,o){var n=t_store_getColumnWidth(t),i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;i>=960&&i<=1240&&(n=440);var s=Math.floor(100*e),a=Math.floor(s*(n-(r+o))/100),c=Math.floor(a/(r+o));return(r+o)*(c+1)-o<=a&&(c+=1),c}function t_store_get_productcard_slider_html(t,e){var r="",o="t-slds_animated-none",n="300";"fast"===e.slider_opts.anim_speed&&(o="t-slds_animated-fast"),"slow"===e.slider_opts.anim_speed&&(o="t-slds_animated-slow",n="500");var i="",s;if(("thumbs"===e.slider_opts.controls||"arrowsthumbs"===e.slider_opts.controls)&&"l"===e.sliderthumbsside&&(i="t-slds__thumbsbullets-with-gallery"),r+='","arrows"===e.slider_opts.controls||"arrowsthumbs"===e.slider_opts.controls||""===e.slider_opts.controls){var a,c=t.querySelector(".js-store-tpl-slider-arrows").innerHTML,l;c='
'+c+"
",r=r.replace("[[arrows]]",c)}else r=r.replace("[[arrows]]","");if("thumbs"===e.slider_opts.controls||"arrowsthumbs"===e.slider_opts.controls){var d='
[[bullets]]
';r=r.replace("[[bullets]]",d)}else r="dots"===e.slider_opts.controls||""===e.slider_opts.controls?r.replace("[[bullets]]",'
[[bullets]]
'):r.replace("[[bullets]]","");return r=r.replace("[[containerStyles]]",e.slider_opts.bgcolor?'style="background-color:'+e.slider_opts.bgcolor+';"':"").replace("[[noCycleClass]]",e.slider_opts.cycle?"":"t-slds__nocycle").replace("[[isCycled]]",e.slider_opts.cycle?"true":"false")}function t_store_get_productcard_oneSlide_html(t,e){var r="";return r+='
',r+='
',r+=' ',r+=' ',r+='
',r+='
',r+="
",r+="
",r+=t_store_addVideoIconForGallery(t,e),r+="
",r=(r+="
").replace("[[zoomAttrs]]",t.slider_slidesOpts.zoomable?'data-zoom-target="[[index]]" data-zoomable="yes" data-img-zoom-url="[[imgsource]]"':"").replace("[[zoomClass]]",t.slider_slidesOpts.zoomable?"t-zoomable":"").replace("[[containClass]]","contain"===t.slider_slidesOpts.bgsize?"t-slds__bgimg-contain":"").replace("[[paddingBottomVal]]",100*t.slider_slidesOpts.ratio+"%")}function t_store_get_productcard_oneSliderBullet_html(t){var e="";if("thumbs"!==t.slider_opts.controls&&"arrowsthumbs"!==t.slider_opts.controls||(e+='
',e+=" [[videoPlayIcon]]",e+='
',e+='
',e+="
"),"dots"===t.slider_opts.controls||""===t.slider_opts.controls){e+='
',e+='
',e+="
";var r="";if(t.slider_dotsOpts.size){var o=parseInt(t.slider_dotsOpts.size,10);r+="width:"+(o=o>20?20:o)+"px;height:"+o+"px;"}if(t.slider_dotsOpts.bgcolor&&(r+="background-color:"+t.slider_dotsOpts.bgcolor+";"),t.slider_dotsOpts.bordersize){var n=t.slider_dotsOpts.bgcoloractive?t.slider_dotsOpts.bgcoloractive:"#222";r+="border: "+t.slider_dotsOpts.bordersize+" solid "+n+";"}e=e.replace("[[styles]]",""!==r?'style="'+r+'"':"")}return e}function t_store_get_productcard_thumbsGallery_html(t,e,r){var o="",n=e-r;if("thumbs"===t.slider_opts.controls||"arrowsthumbs"===t.slider_opts.controls){var i="t-slds__thumbsbullet t-slds__bullet t-slds__thumbs_gallery [[activeClass]]";t.slider_slidesOpts.zoomable&&(i+=" t-slds__thumbs_gallery-zoomable"),o+='
',o+='
',o+='
',o=(o+="
").replace("[[zoomAttrs]]",t.slider_slidesOpts.zoomable?'data-zoom-target="[[index]]" data-zoomable="yes" data-img-zoom-url="[[imgsource]]"':"")}return o}function t_store_getLazyUrl(t,e){if(!t.isPublishedPage||"y"!==window.lazy)return e;if(-1===e.indexOf("static.tildacdn."+t_store__getRootZone()))return e;var r=e.split("/");return r.splice(e.split("/").length-1,0,"-/resizeb/x20"),r.join("/")}function t_store_getLazySrc(t,e){if(!t.isPublishedPage||"y"!==window.lazy)return e;if(-1===e.indexOf(".tildacdn.com")||-1!==e.indexOf("-/empty/")||-1!==e.indexOf("-/resize/"))return e;var r=e.split("/");return r.splice(e.split("/").length-1,0,"-/empty"),r.join("/")}function t_store_dict(t){return window.tStoreDict||t_store_getDictObj(),window.tStoreDict[t]||'Text not found for "'+t+'"'}function t_store_escapeQuote(t){if(!t)return"";var e={'"':""","'":"'"};return t.replace(/["']/g,(function(t){return e[t]}))}function t_store_product_initEditions(t,e,r,o){var n=r.querySelector(".js-product-controls-wrapper"),i;if(t_store_product_addEditionControls(e,n,o,t),t_store_product_selectAvailableEdition(t,e,r,o)){t_store_product_triggerSoldOutMsg(t,r,!1,o);var s=t_store_product_getFirstAvailableEditionData(e.editions);s&&t_store_addProductQuantity(r,s,o),t_store_product__verifyOptionConsisency(r,e),t_store_product_disableUnavaileOptions(r,e)}else t_store_product_triggerSoldOutMsg(t,r,!0,o),t_store_removeProductQuantity(r),t_store_product_disableUnavaileOptions(r,e);var a,c=document.getElementById("rec"+t).querySelector(".t-store");Array.prototype.forEach.call(r.querySelectorAll(".js-product-edition-option"),(function(n){n.addEventListener("change",(function(){var n=t_store_product_detectEditionByControls(r,e),i=!0;if(n){t_store_product_updateEdition(t,r,n,e,o,i),t_prod__updatePrice(r,o);var s=parseInt(n.quantity,10)<=0;t_store_product_triggerSoldOutMsg(t,r,s,o),s?t_store_removeProductQuantity(r):t_store_addProductQuantity(r,n,o),window.Tilda&&Tilda.sendEcommerceEvent&&(window.tStoreDetailEvent||(window.tStoreDetailEvent={}),window.tStoreDetailEvent[n.id?n.id:n.uid]||(Tilda.sendEcommerceEvent("detail",[{id:""+(n.id?n.id:n.uid),uid:""+n.uid,price:""+(n.price_min?n.price_min:n.price),sku:n.sku?n.sku:"",name:e.title}]),window.tStoreDetailEvent[n.id?n.id:n.uid]=!0))}else{for(var a=this.getAttribute("data-edition-option-id"),l=[],d=0;d0?t_store_product_getFirstAvailableEditionData_forCertainVals(e.editions,n,r):t_store_product_getFirstAvailableEditionData(e.editions);if(!s)return console.error("No available edition for uid = "+e.uid+" with selected options values"),!1;var a=document.getElementById("allrecords"),c=a&&"edit"===a.getAttribute("data-tilda-mode"),l=parseInt(s.quantity,10)>0||""===s.quantity,d=i;if(Array.prototype.forEach.call(e.editionOptions,(function(t){var e=s[t.name],n=t_store_product_getEditionSelectEl(r,t);if(n){var i=n.querySelector(".js-product-edition-option-variants"),a;function l(t,e,r){var n;t.querySelectorAll(".t-product__option-item").forEach((function(t){var n=t.querySelector(".t-product__option-input");if(n){var i=(e||"").replace(/&/g,"&");n.value===i?(t.classList.add("t-product__option-item_active"),setTimeout((function(){n.checked=!0,r||n.click()})),o.prodCard&&o.prodCard.showOpts&&(d=!0)):(n.checked=!1,t.classList.remove("t-product__option-item_active"))}}))}i&&(i.value=(e||"").replace(/>/g,">").replace(/</g,"<").replace(/\/g,"\\"),o.prodCard&&o.prodCard.showOpts&&(d=!0)),n.querySelectorAll(".t-product__option-variants_custom").forEach((function(t){return l(t,e,c)}))}})),r.classList.contains("js-product-relevant"))t_store_product_updateEdition(t,r,s,e,o,d);else{var p,u=t_store_snippet_getJsonFromUrl().editionuid,_;u&&document.querySelector("#rec"+t+" .js-product").getAttribute("data-product-uid")!==u&&e.editions.forEach((function(t){t.uid===u&&(_=t)})),t_store_product_updateEdition(t,r,_||s,e,o,d)}return l}function t_store_product__verifyOptionConsisency(t,e){var r=document.getElementById("allrecords"),o=r&&"edit"===r.getAttribute("data-tilda-mode"),n=[];e.editionOptions.length>0&&n.push(e.editionOptions[0]);for(var i=1;i").replace(/</g,"<"),n;if(!e.editions.some((function(e){var r;return(e[t.name]||"").replace(/>/g,">").replace(/</g,"<")===o&&"0"!==e.quantity}))){var i={};i[t.name]=o,window.tStoreDisabledOptionsList[r].push(i)}}))})),0===window.tStoreDisabledOptionsList[r].length&&delete window.tStoreDisabledOptionsList[r]}function t_store_product_updateEdition(t,e,r,o,n,i){var s=t_store_snippet_getJsonFromUrl();s.editionuid=parseInt(s.editionuid,10);var a=e,c=r;window.jQuery&&a instanceof jQuery&&(a=a[0]),c||o.editions.forEach((function(t){t.uid===s.editionuid&&(c=t)})),s.editionuid===c.uid&&(Array.prototype.forEach.call(document.querySelectorAll(".js-store-product"),(function(t){t.setAttribute("data-product-lid",c.uid),t.setAttribute("data-product-uid",c.uid),t.setAttribute("data-product-url",window.location),t.setAttribute("data-product-img",c.img)})),setTimeout((function(){t_store_product_updateEdition_moveSlider(t,a,c)}),200),Array.prototype.forEach.call(o.editionOptions,(function(t){var e=c[t.name],r=t_store_product_getEditionSelectEl(a,t);if(r){var o=r.querySelector(".js-product-edition-option-variants");o&&o.value!==e&&(o.value=(e||"").replace(/>/g,">").replace(/</g,"<"),setTimeout((function(){t_store_triggerEvent(o,"change")})))}})));var l=a.querySelector(".js-store-price-wrapper"),d,p,u,_,f,y,v;if(l&&(d=l.querySelector(".t-store__card__price"),p=l.querySelector(".js-store-prod-price"),u=l.querySelector(".js-store-prod-price-val"),_=l.querySelector(".js-product-price")),c.price&&0!==parseFloat(c.price)){var g=t_store__getFormattedPrice(n,c.price),m=t_store__getFormattedPriceRange(n,o);if(n.price){var h=n.price.priceRange;if(m&&"range"===h&&(g=m),m&&"from"===h){var b=t_store__getFormattedMinPrice(n,o);null!==b&&(g=b)}}u&&(u.textContent=g),d&&(d.style.display=""),p&&(p.style.display=""),l&&(l.style.visibility="");var w=t_store__cleanPrice(c.price);if(_&&(_.setAttribute("data-product-price-def",w),_.setAttribute("data-product-price-def-str",w)),Array.prototype.forEach.call(a.querySelectorAll(".t-store__prod__price-portion"),(function(t){t_store__removeElement(t)})),o.unit&&o.portion>0){var S='
/';"1"!==o.portion&&(S+=+o.portion+" "),S+=window.tStoreDict[o.unit]+"
";var E=[".t-store__card__price-currency + .js-product-price",".t-store__card__price-currency + .js-store-prod-price-old-val",".js-product-price + .t-store__card__price-currency",".js-store-prod-price-old-val + .t-store__card__price-currency",".t-store__prod-popup__price-currency + .js-product-price",".js-product-price + .t-store__prod-popup__price-currency",".t-store__prod-popup__price-currency + .js-store-prod-price-old-val",".js-store-prod-price-old-val + .t-store__prod-popup__price-currency",".js-product-price-currency + .js-product-price",".js-product-price + .js-product-price-currency",".js-product-price-currency + .js-store-prod-price-old-val",".js-store-prod-price-old-val + .js-product-price-currency"];Array.prototype.forEach.call(a.querySelectorAll(E.join(",")),(function(t){t.insertAdjacentHTML("afterend",S)}))}}else l&&(l.style.visibility="hidden"),d&&(d.style.display="none"),p&&(p.style.display="none"),u&&(u.textContent=""),_&&(_.setAttribute("data-product-price-def",""),_.setAttribute("data-product-price-def-str","")),t_store__removeElement(a.querySelector(".t-store__prod__price-portion"));if(c.priceold&&"0"!==c.priceold&&t_store__cleanPrice(c.price)!==t_store__cleanPrice(c.priceold)){var P=t_store__getFormattedPrice(n,c.priceold);(f=a.querySelector(".js-store-prod-price-old"))&&(f.style.display=""),(y=a.querySelector(".t-store__card__price_old"))&&(y.style.display=""),(v=a.querySelector(".js-store-prod-price-old-val"))&&(v.innerHTML=P)}else(f=a.querySelector(".js-store-prod-price-old"))&&(f.style.display="none"),(y=a.querySelector(".t-store__card__price_old"))&&(y.style.display="none"),(v=a.querySelector(".js-store-prod-price-old-val"))&&(v.innerHTML="");var x=a.querySelector(".t-store__prod-popup__brand");o.brand&&o.brand>""&&x&&(1===x.querySelectorAll("span[itemprop=brand]").length?x.querySelector("span[itemprop=brand]").innerHTML=o.brand:x.innerHTML=''+o.brand+""),!o.brand&&x&&(x.style.display="none");var C=a.querySelector(".t-store__prod-popup__sku"),A=a.querySelector(".js-store-prod-sku"),j;c.sku?(A&&(A.innerHTML=c.sku),"large"===a.getAttribute("data-card-size")&&(A.style.display="",C&&(C.style.display=""))):(A&&(A.innerHTML="",A.style.display="none"),C&&(C.style.display="none")),a.setAttribute("data-product-inv",c.quantity),a.setAttribute("data-product-lid",c.uid),a.setAttribute("data-product-uid",c.uid),window.tStoreDefPackObj||(window.tStoreDefPackObj={});try{var O=window.tStoreDefPackObj[o.uid],k=a.querySelectorAll('.t-store__tabs .t-store__tabs__item[data-tab-type="chars"]'),L="",T,q;c.pack_x&&c.pack_y&&c.pack_z?(O||(O={pack_x:a.getAttribute("data-product-pack-x")||0,pack_y:a.getAttribute("data-product-pack-y")||0,pack_z:a.getAttribute("data-product-pack-z")||0,pack_label:a.getAttribute("data-product-pack-label")||o.pack_label||"lwh",pack_m:a.getAttribute("data-product-pack-m")||0},window.tStoreDefPackObj[o.uid]=O),a.setAttribute("data-product-pack-x",c.pack_x),a.setAttribute("data-product-pack-y",c.pack_y),a.setAttribute("data-product-pack-z",c.pack_z),a.setAttribute("data-product-pack-label",O.pack_label),T=c.pack_x+"x"+c.pack_y+"x"+c.pack_z,q=a.querySelector(".js-store-prod-dimensions"),L=window.tStoreDict["product-"+O.pack_label]+": "+T+" "+window.tStoreDict.mm,q&&(a.querySelector(".js-store-prod-dimensions").innerHTML=L)):O&&O.pack_x&&(a.setAttribute("data-product-pack-x",O.pack_x),a.setAttribute("data-product-pack-y",O.pack_y),a.setAttribute("data-product-pack-z",O.pack_z),a.setAttribute("data-product-pack-label",O.pack_label),T=O.pack_x+"x"+O.pack_y+"x"+O.pack_z,L=window.tStoreDict["product-"+O.pack_label]+": "+T+" "+window.tStoreDict.mm,(q=a.querySelector(".js-store-prod-dimensions"))&&(q.innerHTML=L)),L&&Array.prototype.forEach.call(k,(function(t){var e=t.querySelector(".js-store-prod-dimensions");e&&(e.innerHTML=L)}));var I="",R;c.pack_m?(a.setAttribute("data-product-pack-m",c.pack_m),I=window.tStoreDict["product-weight"]+": "+c.pack_m+" "+window.tStoreDict.g,(R=a.querySelector(".js-store-prod-weight"))&&(R.innerHTML=I)):O&&parseFloat(O.pack_m)>0&&(a.setAttribute("data-product-pack-m",O.pack_m),I=window.tStoreDict["product-weight"]+": "+O.pack_m+" "+window.tStoreDict.g,(R=a.querySelector(".js-store-prod-weight"))&&(R.innerHTML=I)),I&&Array.prototype.forEach.call(k,(function(t){var e=t.querySelector(".js-store-prod-weight");e&&(e.innerHTML=I)}))}catch(z){console.error(z)}c.img?(a.setAttribute("data-product-img",c.img),"large"===a.getAttribute("data-card-size")?t_store_product_updateEdition_moveSlider(t,a,c):i&&t_store_get_productCard_img_replaceWith(o,a,n,c.img)):a.getAttribute("data-product-img")&&"large"===a.getAttribute("data-card-size")&&(t_store_product_updateEdition_moveSlider(t,a,c),a.setAttribute("data-product-img",""));o.unit&&o.portion>0?(a.setAttribute("data-product-unit",o.unit),a.setAttribute("data-product-portion",o.portion),a.setAttribute("data-product-single",o.single)):(a.removeAttribute("data-product-unit"),a.removeAttribute("data-product-portion"),a.removeAttribute("data-product-single"))}function t_store_product_updateEdition_moveSlider(t,e,r){if(e&&r&&r.img){var o=e.querySelector(".t-slds__items-wrapper");if(o){var n=1,i=parseInt(o.getAttribute("data-slider-totalslides"),10),s=r.img.replace(/&/g,"&"),a,c=Array.from(e.querySelectorAll(".t-slds__item")).find((function(t){var e=parseInt(t.getAttribute("data-slide-index")||"",10);return 0===e||e===i+1?null:t.querySelector('.t-slds__bgimg[data-original="'+s+'"]')}));if(!c){var l=function(){try{var t;return null==(t=new URL(s))?void 0:t.pathname}catch(e){return""}}();if(l&&"/"!==l){var d=e.querySelector('.t-slds__item .t-slds__bgimg[data-original$="'+l+'"]');d&&(c=d.closest(".t-slds__item"))}}if(-1!==s.indexOf("http://")||-1!==s.indexOf("https://"))try{var p,u=new URL(s).pathname;"/"===u[0]&&(u=u.slice(1).replace(/\//,"__"));var _=e.querySelector('.t-slds__item .t-slds__bgimg[data-original$="'+u+'"]');!c&&_&&(c=_.closest(".t-slds__item"))}catch(f){console.error(f)}c&&0===(n=parseInt(c.getAttribute("data-slide-index"),10))&&(n=i),o.setAttribute("data-slider-pos",n.toString()),e.classList.contains("t922")||t_store_onFuncLoad("t_slideMoveInstantly",(function(){t_slideMoveInstantly(t+" .js-store-product")}))}}}function t_store_product_triggerSoldOutMsg(t,e,r,o){var n=e;t_store__removeElement(n.querySelector(".js-store-prod-sold-out"));var i=n.querySelectorAll('.t-store__card__btns-wrapper [href="#order"], .t-store__prod-popup__btn-wrapper [href="#order"]');0===i.length&&(i=n.querySelectorAll('[href="#order"]')),window.jQuery&&n instanceof jQuery&&(n=$(n).get(0));var s=o.prodCard&&"order"===o.prodCard.btnLink1,a=o.prodCard&&"order"===o.prodCard.btnLink2,c;if(i[0]&&(c=i[0].querySelector(".js-store-prod-popup-buy-btn-txt"),"small"===n.getAttribute("data-card-size")&&(c=i[0].querySelector(".t-store__card__btn-text")),c||(c=i[0].querySelector(".js-store-prod-buy-btn-txt"))),r){var l=function t(){var e=n.querySelector(".js-store-price-wrapper");if(e){var r='
'+window.tStoreDict.soldOut+"
",o;e.insertAdjacentHTML("beforeend",r),"hidden"===window.getComputedStyle(e).visibility&&(e.style.visibility="visible")}};i.length||l(),Array.prototype.forEach.call(i,(function(t){t.classList.add("t-store__prod-popup__btn_disabled")})),c&&(c.textContent=window.tStoreDict.soldOut),t_store_triggerEvent(n,"tStoreSoldOut",{product:t_store__collectProductDataByElement(n),buttonBuyElement:i[0],renderSoldOutMessage:l,recId:t})}else{Array.prototype.forEach.call(i,(function(t){t.classList.remove("t-store__prod-popup__btn_disabled")}));var d=o.buyBtnTitle||o.popup_opts&&o.popup_opts.btnTitle||window.tStoreDict.addtocart;"small"===n.getAttribute("data-card-size")&&(s&&o.prodCard.btnTitle1&&(d=o.prodCard.btnTitle1),a&&o.prodCard.btnTitle2&&(d=o.prodCard.btnTitle2)),c&&(c.textContent=d),t_store_triggerEvent(n,"tStoreAvailable",{product:t_store__collectProductDataByElement(n),buttonBuyElement:i[0]})}}function t_store_product_addOneOptionsControl(t,e,r,o,n,i){if(e.name){var s,a,c,l="",d;if("modificator"===t){if(void 0===e.values)return null;a='';var p=e.values.split("\n");Array.prototype.forEach.call(p,(function(t){var e=t.split("=")[0],r=t.split("=")[1];l+=a.replace(/\[\[value\]\]/g,t_store_escapeQuote(e).replace(/&/g,"&amp;")).replace(/\[\[text\]\]/g,t_store_escapeQuote(e)).replace(/\[\[price\]\]/g,r||"")})),s=(c=t_store_get_control_option_html(o)).replace(/\[\[name\]\]/g,e.name).replace(/\[\[optiontags\]\]/g,l)}else a='',Array.prototype.forEach.call(e.values,(function(t){""!==t&&(l+=a.replace(/\[\[value\]\]/g,t_store_escapeQuote(t).replace(/&/g,"&amp;")).replace(/\[\[text\]\]/g,t_store_escapeQuote(t)))})),""!==l&&(s=(c=t_store_get_control_editionOption_html(o,e)).replace(/\[\[id\]\]/g,e.id.replace(/&/g,"&amp;").replace(/\/g,"&#92;")).replace(/\[\[name\]\]/g,e.name).replace(/\[\[optiontags\]\]/g,l));if(s&&r.insertAdjacentHTML("beforeend",s),t_store_option_checkIfCustom(e)&&t_store_option_styleCustomControl(i,o,e,r,n),"editionopt"===t){var u=r.querySelectorAll(".js-product-edition-option"),_,f=u[u.length-1];if(f)return f}}return null}function t_store_product_getEditionOptionsArr(t,e){var r=t.editions,o=["quantity","price","priceold","gallery","sku","uid","img","externalid","externalids","pack_x","pack_y","pack_z","pack_m"],n={},i=[];return r.forEach((function(t){Object.keys(t).forEach((function(t){-1!==o.indexOf(t)||n[t]||(n[t]=!0)}))})),Object.keys(n).forEach((function(o){var n={name:o,id:t_store_combineOptionIdByName(o),params:t_store_product_getEditionOptionsArr_getParams(o,t,e),values:t_store_product_getEditionOptionsArr_getValues(o,r),imagesObj:t_store_product_getEditionOptionsArr_getImgValues(o,r),valuesObj:e&&e[o]?e[o].values:{}};i.push(n)})),i}function t_store_product_getFirstAvailableEditionData(t){for(var e=0;e").replace(/</g,"<"),o&&c===e.length-1&&(p=o),s[l]!==p){a=!1;break}}if(a){if(0!==parseInt(s.quantity,10))return s;n||(n=s)}}if(n){var u;if(document.querySelector(".t1122"))return n;0===parseInt(n.quantity,10)&&(n="")}return n}function t_store_product_getCurEditionOptValById(t,e){var r=t.querySelector('.js-product-edition-option[data-edition-option-id="'+e+'"]');return r?r.querySelector(".js-product-edition-option-variants").value:""}function t_store_product_getEditionOptionsArr_getValues(t,e){var r=[];return e.forEach((function(e){var o=e[t];void 0!==o&&-1===r.indexOf(o)&&r.push(o)})),r=t_store_product_sortValues(r)}function t_store_product_sortValuesByOrder(t,e,r){return t.sort((function(t,o){var n="filter"===e?t.value:t,i="filter"===e?o.value:o;return n=n.toString().toUpperCase(),i=i.toString().toUpperCase(),r.indexOf(n)-r.indexOf(i)}))}function t_store_product_isSimpleOrderValid(t,e){return t.every((function(t){var r=t;return"object"==typeof r&&"string"==typeof r.value&&(r=r.value),"string"==typeof r&&(r=r.trim().toUpperCase(),e.indexOf(r)>=0)}))}function t_store_product_isDateOrderValid(t){var e=/(\d{2})\.(\d{2})\.(\d{4})/;return t.every((function(t){var r=t;return"object"==typeof r&&"string"==typeof r.value&&(r=r.value),"string"==typeof r&&(r=r.trim().toUpperCase()).match(e)}))}t_onReady((function(){var t=document.getElementById("allrecords");if(t){var e=t.getAttribute("data-tilda-project-lang");e&&(window.tStoreBrowserLang=e),t_store__setupEndpoint()}t_store_getDictObj(),t_store_fixImgs()}));var rangeRegexArray=[new RegExp("^\\d+(?:[.,]\\d+)?\\s*[–—-]\\s*\\d+(?:[.,]\\d+)?(?:\\s+.+)?$","i"),new RegExp("^(от|from)\\s+\\d+(?:[.,]\\d+)?\\s+(до|to)\\s+\\d+(?:[.,]\\d+)?(?:\\s+.+)?$","i"),new RegExp("^(менее|меньше|less\\s+than)\\s+\\d+(?:[.,]\\d+)?(?:\\s+.+)?$","i"),new RegExp("^(более|больше|more\\s+than)\\s+\\d+(?:[.,]\\d+)?(?:\\s+.+)?$","i"),new RegExp("^(до|up\\s+to)\\s+\\d+(?:[.,]\\d+)?(?:\\s+.+)?$","i"),new RegExp("^(от|from)\\s+\\d+(?:[.,]\\d+)?(?:\\s+.+)?$","i"),new RegExp("^~\\s*\\d+(?:[.,]\\d+)?(?:\\s+.+)?$","i"),new RegExp("^(около|about)\\s+\\d+(?:[.,]\\d+)?(?:\\s+.+)?$","i")];function t_store_product_isRangeValid(t){return t.every((function(t){var e=t,e;return"string"==typeof(e="object"==typeof t&&t.value||t)&&(e=e.trim().toLowerCase(),rangeRegexArray.some((function(t){return t.test(e)})))}))}var rangeRegex=/^(от|from|менее|меньше|less\s+than|более|больше|more\s+than|до|up\s+to|около|about|~)\s+/i,units=[{pattern:/(секунд|секунда|секунды|sec|seconds|second)/i,weight:1},{pattern:/(минут|минута|минуты|min|minutes|minute)/i,weight:60},{pattern:/(часов|часа|час|hours|hour|hr)/i,weight:3600},{pattern:/(дней|дня|день|days|day)/i,weight:86400}];function t_store_product_parseTimeRangeValue(t){var e=t.toString().replace(rangeRegex,""),r=parseFloat(e.replace(",","."));if(r)for(var o=0;ol?1:l>c?-1:0}return s-a}))}catch(E){console.error(E)}try{for(var h in v){var b=v[h],w=t_store_product_hasMeasureUnit(b,i)&&t_store_product_hasMeasureUnit(b,s),S=new RegExp(/^\d*,?\.?\d+\s*/,"gi");if(w)return n=n.sort((function(t,r){var o="filter"===e?t.value:t,n="filter"===e?r.value:r;return o=o.toString().replace(S,"").trim(),n=n.toString().replace(S,"").trim(),b.indexOf(o)-b.indexOf(n)}))}}catch(E){console.error(E)}}return n}function t_store_product_hasMeasureUnit(t,e){var r=e.replace(/\s/g,"");return t.some((function(t){var e,o;return new RegExp("^[\\d.,]+("+t+"){1}$","i").test(r)}))}function t_store_product_getEditionOptionsArr_getParams(t,e,r){var o={};if(r)o=r[t]?r[t].params:{};else try{var n=JSON.parse(e.json_options);n&&n.forEach((function(e){e.params&&e.title&&e.title===t&&(o=e.params)}))}catch(i){console.error(i)}return o}function t_store_product_getEditionOptionsArr_getImgValues(t,e){var r={};return e.forEach((function(e){var o=e[t];r[o]||(r[o]=e.img)})),r}function t_store_product_getEditionSelectEl(t,e){return t.querySelector('.js-product-edition-option[data-edition-option-id="'+e.id+'"]')}function t_store_combineOptionIdByName(t){return t.replace(/[\\'"<>{}]/g,"")}function t_store_getProductFirstImg(t){if(t.gallery&&"["===t.gallery[0]){var e=JSON.parse(t.gallery);if(e[0]&&e[0].img)return e[0].img}return""}function t_store__getFormattedPrice(t,e){if(null==e||""===e)return"";var r=t_store__cleanPrice(e);r=r.toString();var o=!1,n=!1,i;(t.currencyDecimal?o="00"===t.currencyDecimal:void 0!==window.tcart&&void 0!==window.tcart.currency_dec&&(o="00"===window.tcart.currency_dec),t.currencySeparator?n="."===t.currencySeparator:void 0!==window.tcart&&void 0!==window.tcart.currency_sep&&(n="."===window.tcart.currency_sep),o)&&(-1===r.indexOf(".")&&-1===r.indexOf(",")?r+=".00":1===r.substring(r.indexOf(".")+1).length&&(r+="0"));return r=(r=n?r.replace(",","."):r.replace(".",",")).toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}function t_store__getFormattedMinPrice(t,e){var r=e.minPrice;return null!=r&&(r=t_store__getFormattedPrice(t,r)),r}function t_store__getFormattedPriceRange(t,e){if(!Object.prototype.hasOwnProperty.call(t,"prodCard")||t.prodCard.showOpts||!t.price.priceRange||""===t.price.priceRange||!Object.prototype.hasOwnProperty.call(e,"minPrice")||!Object.prototype.hasOwnProperty.call(e,"maxPrice"))return null;var r=e.minPrice,o=e.maxPrice;if(null===r||null===o||r===o)return null;r=t_store__getFormattedPrice(t,r),o=t_store__getFormattedPrice(t,o);var n=t.price.priceRange;return"range"===n?r+"—"+o:"from"===n?window.tStoreDict.from+" "+r:null}function t_store_loadMoreBtn_display(t){var e=document.getElementById("rec"+t);if(e){var r=e.querySelector(".t-store__load-more-btn-wrap"),o=e.querySelector(".js-store-grid-cont.t-store__grid-cont_mobile-one-row"),n=!!(window.innerWidth<960&&o);r&&r.classList.toggle("t-store__load-more-btn-wrap_hidden",n)}}function t_store_oneProduct_init(t,e){var r=document.querySelector("#rec"+t+" .js-store-product_single");if(r){var o=r.getAttribute("data-product-gen-uid");o=t_store_oneProduct_clearUid(o),r.setAttribute("data-product-gen-uid",o),window.tStoreIsSearchBot||t_store_oneProduct_preloader_add(t);var n=document.getElementById("allrecords").getAttribute("data-tilda-mode");e.isPublishedPage="edit"!==n&&"preview"!==n;var i=window.tStoreSingleProdsObj&&!e.previewmode;!window.tStoreSingleProductsIsRequested||i?(t_store_oneProduct_requestAllSingle(e),window.tStoreSingleProductsIsRequested=!0,r.addEventListener("tStoreSingleProductsLoaded",(function(){t_store_oneProduct_fill(t,window.tStoreSingleProdsObj[o],e)}))):window.tStoreSingleProdsObj?t_store_oneProduct_fill(t,window.tStoreSingleProdsObj[o],e):r.addEventListener("tStoreSingleProductsLoaded",(function(){t_store_oneProduct_fill(t,window.tStoreSingleProdsObj[o],e)}))}}function t_store_oneProduct_clearUid(t){return t.replace("product id: ","")}function t_store_oneProduct_preloader_add(t){var e=document.getElementById("rec"+t),r=e.querySelector(".js-store-product_single");if(r){var o=r.querySelector(".js-store-single-product-info");o.style.display="none",clearTimeout(e.getAttribute("data-preloader-timeout"));var n=setTimeout((function(){var t="";t+='",o.insertAdjacentHTML("beforebegin",t),t_store__fadeIn(r.querySelector(".t-store__single-prod-preloader"))}),1e3);e.setAttribute("data-preloader-timeout",n)}}function t_store_oneProduct_preloader_hide(t){var e=document.getElementById("rec"+t),r=e.querySelector(".js-store-product_single");if(r){clearTimeout(e.getAttribute("data-preloader-timeout"));var o=r.querySelector(".js-store-single-product-info");o&&(o.style.display="");var n=r.querySelector('a.t-btn[href="#order"]'),i=n?n.parentElement||n.parentNode:"";i&&(i.style.pointerEvents="inherit"),t_store__removeElement(r.querySelector(".t-store__single-prod-preloader"))}}function t_store_oneProduct_requestAllSingle(t){var e=document.querySelectorAll(".js-store-product_single"),r=[];Array.prototype.forEach.call(e,(function(t){var e=t.getAttribute("data-product-gen-uid");e=t_store_oneProduct_clearUid(e),r.push(e)}));var o=function t(r){var o=r.products;""!==o?(r.options&&r.options.length&&!window.tStoreOptionsList&&(window.tStoreOptionsList=r.options),window.tStoreSingleProdsObj=t_store_oneProduct_prodsArrToAssociative(o),Array.prototype.forEach.call(e,(function(t){t_store_triggerEvent(t,"tStoreSingleProductsLoaded")}))):console.error("Something went wrong. Can't get products array by uid list. Please check products UID.")};t_store_loadProducts_byId(r,t,o,(function(e){t_store_changeEndpoint(e,(function(){t_store_loadProducts_byId(r,t,o)}))}))}function t_store_oneProduct_prodsArrToAssociative(t){var e={};if(!t)return e;for(var r=0;r","success")}}function t_store_oneProduct_error_show(t,e){var r,o;e.previewmode||t_store_showMsgInRedactor(document.getElementById("rec"+t),"RU"===window.tStoreBrowserLang?"Не удается получить товар из каталога. Возможно он был удален или отключен. Пожалуйста, проверьте, что товар с таким ID существует.":"Can't find a product in the catalog. It may have been deleted or disabled. Please check that the product with this ID exists.","error")}function t_store_showMsgInRedactor(t,e,r){var o;t_store__removeElement(t.querySelector(".js-store-msg"));var n,i="success"===r?"#62C584":"yellow",s="";s+='
',s+='
',s+='
',s+=' ',s+="
",s+=e,s+="
",s+="
",t.insertAdjacentHTML("afterbegin",s)}function t_store_isQueryInAddressBar(t){var e;try{e=decodeURI(window.location.href)}catch(r){console.error(r),e=window.location.href}return!!e&&-1!==e.indexOf(t)}function t_store_getColumnWidth(t){var e,r,o;return{minWidth1200:{col_1:60,col_2:160,col_3:260,col_4:360,col_5:460,col_6:560,col_7:660,col_8:760,col_9:860,col_10:960,col_11:1060,col_12:1160},maxWidth1200:{col_1:60,col_2:140,col_3:220,col_4:300,col_5:380,col_6:460,col_7:540,col_8:620,col_9:700,col_10:780,col_11:860,col_12:940}}[(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>1200?"minWidth1200":"maxWidth1200"]["col_"+t]}function t_store_option_getOptionsData(){var t=window.tStoreOptionsList;if(!t)return null;for(var e={},r=0;r7e3&&"function"!=typeof window[t]&&i(),setTimeout(n,r||100)):e()}))}}function t_store_hexToRgb(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=t.replace(e,(function(t,e,r,o){return e+e+r+r+o+o})),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),n=o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null;return o?[n.r,n.g,n.b]:null}function t_store_getFirstColorFromGradient(t){var e=/rgba\(\d+,\d+,\d+,\d+\)/gi,r=/(\d+),(\d+),(\d+)/i,o=t.match(e),n=o?o[0]:null,i=r.exec(n),s=i?{r:i[1],g:i[2],b:i[3]}:null;return i?[s.r,s.g,s.b]:null}function t_store_parsecolor(t){if(Array.isArray(t)&&3===t.length)return t;if(!t||"string"!=typeof t)return null;var e,r=/^var\((--uc-color-color-[a-zA-Z0-9]+),\s*(.+)\)$/.exec(t),o=t;if(r&&r[1]){var n=r[1],i;o=window.getComputedStyle(document.body).getPropertyValue(n)||r[2]}var s=/^rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+)(?:,\s*[0-9.%]+)?\)$/i.exec(o),a=/^#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/i.exec(o),c,l;return s?s.splice(1).map((function(t){return parseInt(t,10)})):a?a.splice(1).map((function(t){return parseInt(t,16)})):null}function t_store_luma_rgb(t){var e="black",r=function t(e){return.2126*e[0]+.7152*e[1]+.0722*e[2]>128?"black":"white"},o=t_store_parsecolor(t);return o?r(o):e}function t_store_getLightnessColor(t){var e,r=(t_store_parsecolor(t)||[0,0,0]).map((function(t){return t/255}));return(Math.max.apply(Math,r)+Math.min.apply(Math,r))/2}function t_store_removeRgbOpacity(t){if(!t||!t.length)return null;var e=t.split(",");return e[3]&&(e[3]="1)"),e.join()}function t_store_snippet_getJsonFromUrl(){var t,e=window.location.search.substring(1),r={};return e.split("&").forEach((function(t){var e=t.split("=");try{r[e[0]]=decodeURIComponent(e[1])}catch(o){console.error(o),r[e[0]]=e[1]}})),r}function t_store__cleanPrice(t){var e=t;return e?(e=(e=e.toString()).replace(",",".").replace(/[^0-9.]/g,""),e=parseFloat(e).toFixed(2),isNaN(e)&&(e=0),e=parseFloat(e),(e*=1)<0&&(e=0)):e=0,e}function t_store__removeElement(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function t_store__fadeIn(t,e){if(("1"===getComputedStyle(t).opacity||""===getComputedStyle(t).opacity)&&"none"!==getComputedStyle(t).display)return!1;var r=0,o=e;o||(o=200);var n=(o=parseInt(o))>0?o/10:40;t.style.opacity=r,t.style.display="block";var i=setInterval((function(){t.style.opacity=r,(r+=.1)>=1&&clearInterval(i)}),n);return!0}function t_store__serializeData(t,e){var r=[];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var n=e?e+"["+o+"]":o,i=t[o],s;"{}"!==JSON.stringify(i)&&null!==i&&r.push(null!==i&&"object"==typeof i?t_store__serializeData(i,n):encodeURIComponent(n)+"="+encodeURIComponent(i))}return r.join("&")}function t_store_changeEndpoint(t,e){if(t&&(t.status>=500||408==t.status||410==t.status||429==t.status||"timeout"===t.type)&&-1!==window.t_store_endpoint.indexOf("store.tilda")){var r=t_store__getRootZone();window.t_store_endpoint="store2.tildaapi."+r,"function"==typeof e&&e()}else{var o;o=t&&t.responseText>""?"["+t.status+"] "+t.responseText:t&&t.statusText?"Error ["+t.status+", "+t.statusText+"]":"Error type ["+t.type+"]",console.error(o+". Please, try again later.")}}function t_store__handleRootzoneRedirect(t,e){var r,o=t;if("string"==typeof t)try{o=JSON.parse(t)}catch(a){return!1}var n=null==(r=o)?void 0:r.redirectto;if(!n)return!1;var i,s=t_store__getRootZoneFromEndpoint(e)!==n;return s&&(window.t_store_endpoint=window.t_store_endpoint.split(".").slice(0,-1).join(".")+"."+n),t_store__setRootZone(n),s}function t_store__getRootZoneFromEndpoint(t){var e=t.match(/\.([a-z]{2,})(?:[\/:]|$)/i);return e?e[1]:""}function t_store_paramsToObj(t,e){var r=window.location.search;try{r=(r=r.replace(/%25/g,"%")).replace(/%2B/gi,"__TPLUS__"),r=decodeURIComponent(r)}catch(d){console.error(d)}var o={otherParams:[]};o[t]={};try{r=r.replace(/&/g,"%26amp")}catch(p){console.error(p)}var n=r.slice(1).split("&"),i;(n=n.map((function(t){return t.replace(/%26amp/g,"&")})),o.otherParams=n.filter((function(t){var e;return!(/^tfc_/i.test(t)||/^s_/i.test(t))&&t})),-1!==window.location.href.indexOf("s_recid="))?window.location.href.split("s_recid=")[1].split("&")[0]===t&&n.splice(1).forEach((function(e){try{var r=/^s_/i.test(e),n;if(!document.querySelector("#rec"+t))return;if(o[t]||(o[t]={}),r){var i=e.replace(/^s_/i,"tfc_"),s=(i=i.replace(/%3A/gi,":")).split("="),a=s[0],c=s[1].replace(/\+/g," ").split(":::"),l=a.replace(/^tfc_/i,"");o[t][l]=o[t][l]?o[t][l].concat(c):c}}catch(p){console.error(p)}})):-1!==window.location.href.indexOf("tfc_")&&n.forEach((function(t){var e=t.split("=");try{var r;if(/^tfc_/i.test(t)&&"tfc_div"!==e[0]){var n=e[0],i;i=-1!==window.location.href.indexOf("tfc_div")?e[1].replace(/\+/g," ").replace(/__TPLUS__/g,"+").split(":::"):e[1].replace(/\+/g," ").replace(/__TPLUS__/g,"+").split("%2B");var s=new RegExp(/\[\d.*\]$/,"gi"),a=n.match(s),c=a?Number(JSON.parse(a[0])):null,l;if(!c)return void console.error("Can't find recid in URL param");if(!document.querySelector("#rec"+c))return;var d=n.replace(s,"").replace("tfc_","");o[c]||(o[c]={}),o[c][d]=o[c][d]?o[c][d].concat(i):i}}catch(p){console.error(p)}}));window.tStoreCustomUrlParams=o,t_store_paramsToObj_updateUrl(o);var s=t_store_paramsToObj_getDefaultSort(t,e.defaultSort);for(var a in s){var c=s[a].sort,l=s[a].quantity;(c||l)&&(o[a]&&o[a].sort&&e.previewmode||c&&(o[a]||(o[a]={}),o[a].sort=c),o[a]&&o[a].quantity&&"object"==typeof o[a].quantity&&"y"===o[a].quantity[0]&&e.previewmode||l&&(o[a]||(o[a]={}),o[t].quantity||(o[a].quantity=["y"])))}return window.tStoreCustomUrlParams=o,o}function t_store_paramsToObj_updateUrl(t){var e=t_store_customURLParamsToString(t);window.location.hash&&(e+=window.location.hash);try{window.history.replaceState(null,null,encodeURI(e))}catch(r){console.error(r)}}function t_store_paramsToObj_getDefaultSort(t,e){var r=window.tStoreDefaultSort?window.tStoreDefaultSort:{};if(!e)return r;if(e.default){var o={"sort-price-asc":"price:asc","sort-price-desc":"price:desc","sort-name-asc":"title:asc","sort-name-desc":"title:desc","sort-created-asc":"created:asc","sort-created-desc":"created:desc"};r[t]||(r[t]={}),r[t].sort=new Array(o[e.default])}return e.in_stock&&(r[t]||(r[t]={}),r[t].quantity||(r[t].quantity=["y"])),window.tStoreDefaultSort=r,r}function t_store_customURLParamsToString(t){var e="",r="";for(var o in t){var n=t[o];if("otherParams"!==o)for(var i in n)try{var s=Array.isArray(n[i])?n[i].join("[[PLUS]]"):n[i].toString();s=(s=(s=(s=(s=(s=s.replace(/%/g,"%25")).replace(/#/g,"%23")).replace(/\+/g,"%2B")).replace(/\[\[PLUS\]\]/g,":::")).replace(/%26amp/g,"&")).replace(/\s/gi,"+"),e+=e.length?"&":"?",e+="tfc_"+i+"["+o+"]="+s}catch(a){console.error(a)}}return e&&(e+="&tfc_div=:::"),t.otherParams&&t.otherParams.length&&(t.otherParams.forEach((function(t){t.length&&(r+="&"+t)})),e=e.length?e+r:"?"+r.slice(1)),e.length?e:window.location.origin+window.location.pathname}function t_store_updateOptionsBasedOnUrl(t,e,r){try{var o=e[r];for(var n in t.filters={},o)if("sort"!==n){var i=-1!==n.indexOf("price:m")||-1!==n.indexOf("quantity");t.filters[n]=i?o[n].toString():o[n]}else{t.sort={};var s=o[n].join().split(":"),a=s[0],c=s[1];t.sort[a]=c}return t}catch(l){return console.error("something wrong in t_store_updateOptionsBasedOnUrl",l),null}}function t_store_snippet_chooseEditionFromUrl(t,e,r,o){try{var n,i=t_store_snippet_getJsonFromUrl().editionuid;if(i&&r.getAttribute("data-product-uid")!==i){console.info("show product by uid from url = "+i);var s="",a;if(e.editions.forEach((function(t){t.uid===parseInt(i,10)&&(s=t)})),!s)return;t_store_product_updateEdition(t,r,s,e,o),t_store_product_triggerSoldOutMsg(t,r,0===parseInt(s.quantity),o)}}catch(c){console.error("Error decode url:"+c)}}function t_store_moveSearhSort(t,e){var r=document.getElementById("rec"+t);if(r){var o=r.querySelector(".t-store__filter__search-and-sort");if(window.innerWidth>960&&o&&"none"===window.getComputedStyle(o).display&&(o.style.display=""),e.sidebar){var n=r.querySelector(".t-store__filter__controls-wrapper"),i=r.querySelector(".js-store-cont-w-filter");if(o){var s=o.parentNode.classList.contains("js-store-cont-w-filter");window.innerWidth<960?s&&(t_store__removeElement(o),n.insertAdjacentElement("beforeend",o)):s||(t_store__removeElement(o),i.insertAdjacentElement("afterbegin",o))}}}}function t_store_get_productCard_horizontalStructure(t,e,r,o,n,i){var s="";return(t.gallery[0]&&""!==t.gallery[0]||t.gallery[0]&&""!==t.gallery[0])&&r.prodCard&&r.prodCard.hasImg&&(s+='
"+o.open+t_store_get_productCard_img_html(t,r)+o.close+"
"),s+='
'+t_store_get_horizontalProductCard_txt_html(t,r,o,e,n,i)+t_store_get_horizontalProductCard_priceAndButtons(t,r,e,n,i)+"
"}function t_store_get_horizontalProductCard_txt_html(t,e,r,o){var n=t.title,i;e.isTitleClip&&(n=t.title.length>50?t.title.slice(0,50)+"...":t.title),t.title&&(i='
"+n+"
");var s="";t.descr&&e.prodCard&&e.prodCard.hasDescr&&(s='
"+t.descr+"
");var a="",c;return o.sku&&(a='"),'
'+r.open+i+r.close+s+a+'
'}function t_store_get_horizontalProductCard_priceAndButtons(t,e,r,o,n){var i=parseInt(e.rightColumnWidth,10),s=i?'style="width: '+i+'px;"':"",a;return'
"+t_store_get_productCard_Price_html(t,r,e)+t_store_get_productCard_btn_html(t,e,o,n)+"
"}function t_store_getDictObj(){var t={sku:{EN:"SKU",RU:"Артикул",FR:"UGS",DE:"SKU",ES:"SKU",PT:"SKU",UK:"Код товару",JA:"SKU",ZH:"SKU",PL:"SKU",KK:"SKU",IT:"SKU",LV:"SKU"},soldOut:{EN:"Out of stock",RU:"Нет в наличии",FR:"En rupture de stock",DE:"Ausverkauft",ES:"Agotado",PT:"Fora de estoque",UK:"Немає в наявності",JA:"在庫切れ",ZH:"缺货",PL:"Nie ma na stanie",KK:"Қорда жоқ",IT:"Esaurito",LV:"Nav noliktavā"},all:{EN:"All",RU:"Все",FR:"Tout",DE:"Alles",ES:"Todos",PT:"Todos",UK:"Всі",JA:"すべて",ZH:"所有",PL:"Wszystkie",KK:"Барлық",IT:"Tutti",LV:"Visi"},from:{EN:"from",RU:"от",FR:"de",DE:"von",ES:"de",PT:"de",JA:"から",ZH:"从",UK:"від",PL:"od",KK:"бастап",IT:"da",LV:"no"},emptypartmsg:{EN:"Nothing found",RU:"Ничего не найдено",FR:"Rien trouvé",DE:"Nichts gefunden",ES:"Nada encontrado",PT:"Nada encontrado",UK:"Нічого не знайдено",JA:"何も見つかりませんでした",ZH:"什么都没找到",PL:"Nic nie znaleziono",KK:"Ештеңе табылмады",IT:"Non abbiamo trovato nulla",LV:"Nekas nav atrasts"},seeotherproducts:{EN:"See other",RU:"Другие товары",FR:"Autres produits",DE:"Andere produkte",ES:"Otros productos",PT:"Outros produtos",UK:"Інші товари",JA:"その他の商品",ZH:"其他产品",PL:"Inne produkty",KK:"Басқа қараңыз",IT:"Vedi altri",LV:"Skatiet citas"},seeAlso:{EN:"See also",RU:"Смотрите также",FR:"Voir également",DE:"Siehe auch",ES:"Ver también",PT:"Veja também",UK:"Дивись також",JA:"また見なさい",ZH:"也可以看看",PL:"Patrz również",KK:"Сондай-ақ, қараңыз",IT:"Guarda anche",LV:"Skatīt arī"},addtocart:{EN:"Buy now",RU:"Купить",FR:"Acheter",DE:"Zu kaufen",ES:"Para comprar",PT:"Comprar",UK:"Купити",JA:"購入する",ZH:"要买",PL:"Kup",KK:"Қазір сатып Ал",IT:"Acquista ora",LV:"Pērc tagad"},loadmore:{EN:"Load more",RU:"Загрузить ещё",FR:"Charger plus",DE:"Mehr laden",ES:"Carga más",PT:"Carregue mais",UK:"Завантажити ще",JA:"もっと読み込む",ZH:"裝載更多",PL:"Pokaż więcej",KK:"Тағы жүктеу",IT:"Carica ancora",LV:"Ielādēt vairāk"},PCE:{EN:"pc",RU:"шт",UK:"шт",KK:"шт"},NMP:{EN:"pack",RU:"уп",UK:"уп",KK:"уп"},MGM:{EN:"mg",RU:"мг",UK:"мг",KK:"мг"}},e={EN:"g",RU:"г",UK:"г",KK:"г"};t.g=e,t.GRM=e,t.KGM={EN:"kg",RU:"кг",UK:"кг",KK:"кг"},t.TNE={EN:"t",RU:"т",UK:"т",KK:"т"},t.MLT={EN:"ml",RU:"мл",UK:"мл",KK:"мл"},t.LTR={EN:"l",RU:"л",UK:"л",KK:"л"};var r={EN:"mm",RU:"мм",UK:"мм",KK:"мм"};t.mm=r,t.MMT=r,t.CMT={EN:"cm",RU:"см",UK:"см",KK:"см"},t.DMT={EN:"dm",RU:"дм",UK:"дм",KK:"дм"},t.MTR={EN:"m",RU:"м",UK:"м",KK:"м"},t.MTK={EN:"m²",RU:"м²",UK:"м²",KK:"м²"},t.MTQ={EN:"m³",RU:"м³",UK:"м³",KK:"м³"},t.LMT={EN:"lm",RU:"пог. м",UK:"пог. м",KK:"пог. м"},t.HAR={EN:"ha",RU:"га",UK:"га",KK:"га"},t.ACR={EN:"acre"},t.YRD={EN:"yd"},t.LBR={EN:"lb"},t.ONZ={EN:"oz"},t.INH={EN:"in"},t.FOT={EN:"ft"},t["product-lwh"]={EN:"LxWxH",RU:"ДxШxВ",DE:"LxBxH",ES:"PxLxK",UK:"ДxШxВ"},t["product-wht"]={EN:"WxHxT",RU:"ШxВxТ",FR:"LxHxÉ",DE:"BxHxD",ES:"LxKxP",PT:"LxAxE",UK:"ШxВxТ"},t["product-whd"]={EN:"WxHxD",RU:"ШxВxГ",FR:"LxHxP",DE:"BxHxT",ES:"LxKxS",PT:"LxAxP",UK:"ШxВxГ"},t["product-weight"]={EN:"Weight",RU:"Вес",FR:"Poids",DE:"Gewicht",ES:"Kaal",PT:"Peso",UK:"Вага",JA:"重さ",ZH:"機重",PL:"Waga",KK:"Салмақ",IT:"Peso",LV:"Svars"};var o=window.tStoreBrowserLang;window.tStoreDict||(window.tStoreDict={}),Object.keys(t).forEach((function(e){window.tStoreDict[e]=t[e][o]?t[e][o]:t[e].EN}))}function t_store_triggerEvent(t,e,r){var o;r&&window.CustomEvent?(o=new CustomEvent(e,{detail:r,bubbles:!0,cancelable:!1}),t.dispatchEvent(o)):document.createEvent?((o=document.createEvent("HTMLEvents")).initEvent(e,!0,!1),o.eventName=e,t.dispatchEvent(o)):document.createEventObject?((o=document.createEventObject()).eventType=e,o.eventName=e,t.fireEvent("on"+o.eventType,o)):t[e]?t[e]():t["on"+e]&&t["on"+e]()}function t_store__collectProductDataByElement(t){var e=t.querySelector(".js-product-name"),r=e?e.textContent.trim():"",o;r=t_store_escapeQuote(r);var n=t.querySelector(".js-product-price"),i;n&&(o=n.getAttribute("data-product-price-def")),o=t_store__cleanPrice(o);var s=t.getAttribute("data-product-img");if(s)i=s;else{var a=t.querySelector(".js-product-img");if(a){var c=a.getAttribute("data-original");c&&(i=c)}}var l=t.getAttribute("data-product-uid"),d=t.getAttribute("data-product-inv"),p;d=parseInt(d,10)||"";var u=t.querySelector(".js-store-prod-sku");u&&(p=t_store_escapeQuote(p=u.textContent.trim()));var _=t_store__collectOptionsByElement(t),f={name:r,price:o,uid:l,inv:d};return i&&(f.img=i),p&&(f.sku=p),_&&_.length>0&&(f.options=_),f}function t_store__collectOptionsByElement(t){var e=[],r=t.querySelectorAll(".js-product-edition-option");Array.prototype.forEach.call(r,(function(t){var r=t.querySelector(".js-product-edition-option-name").textContent,o=t.querySelector("option:checked");if(o){var n=o.value,i=o.getAttribute("data-product-edition-variant-price");if(i=parseFloat(i),r&&n){var s={};""!=r&&(r=t_store_escapeQuote(r)),""!=n&&(n=(n=t_store_escapeQuote(n)).replace(/(?:\r\n|\r|\n)/g,"")),r.length>1&&":"==r.charAt(r.length-1)&&(r=r.substring(0,r.length-1)),s.option=r,s.variant=n,s.price=i,e.push(s)}}}));var o=t.querySelectorAll(".js-product-option");Array.prototype.forEach.call(o,(function(t){var r=t.querySelector(".js-product-option-name").textContent,o=t.querySelector("option:checked");if(o){var n=o.value,i=o.getAttribute("data-product-variant-price");if(i=parseFloat(i),void 0!==r&&void 0!==n){var s={};""!=r&&(r=t_store_escapeQuote(r)),""!=n&&(n=(n=t_store_escapeQuote(n)).replace(/(?:\r\n|\r|\n)/g,"")),r.length>1&&":"==r.charAt(r.length-1)&&(r=r.substring(0,r.length-1)),s.option=r,s.variant=n,s.price=i,e.push(s)}}}));var n=t.querySelectorAll(".js-product-multioption");return Array.prototype.forEach.call(n,(function(t){var r=t.querySelectorAll('input[type="checkbox"]:checked');Array.prototype.forEach.call(r,(function(r){var o=t.querySelector(".js-product-option-name").textContent;o&&(o=t_store_escapeQuote(o)),o.length>1&&":"==o.charAt(o.length-1)&&(o=o.substring(0,o.length-1));var n=r.name;n&&(n=(n=t_store_escapeQuote(n)).replace(/(?:\r\n|\r|\n)/g,""));var i=r.getAttribute("data-product-variant-price");i&&(i=parseFloat(i));var s={option:o,variant:n,price:i};e.push(s)}))})),e}function t_store_fixedPopupButton(t,e){var r,o=document.getElementById("rec"+t);if(o){var n=130,i=90,s=560,a="t-store__prod-popup__btn-wrapper-fixed",c=null==e||null==(r=e.popup_opts)?void 0:r.containerBgColor,l=o.querySelectorAll(".t-store__prod-popup__btn-wrapper"),d;if(Array.prototype.forEach.call(l,(function(t){t.classList.add(a),c&&(t.style.background=c)})),!(document.getElementById("allrecords")!==o.querySelector(".t-store__product-snippet")&&document.getElementById("allrecords").contains(o.querySelector(".t-store__product-snippet")))){var p=o.querySelector(".t-popup"),u=p.querySelector(".t-popup__container"),_=function t(){u.style.paddingBottom="220px",u.style.cssText+=";transform:none !important;"},f=function t(){u.style.paddingBottom="",u.style.transform=""},y=function t(){window.innerWidth>s?f():_()};window.isMobile&&window.addEventListener("orientationchange",y),p.addEventListener(t_store_POPUP_SHOWED_EVENT_NAME,(function(){setTimeout((function(){y()}),0)})),p.addEventListener(t_store_POPUP_CLOSED_EVENT_NAME,(function(){setTimeout((function(){f()}),0)})),window.addEventListener("resize",y)}}}function t_store__loadJSFile(t,e){if(document.querySelector('script[src^="'+t+'"]'))e&&e();else{var r=document.createElement("script");r.type="text/javascript",r.src=t,e&&(r.onload=e),r.onerror=function(t){console.error("Upload script error: "+t)},document.head.appendChild(r)}}function t_store__loadCSSFile(t,e){if(document.querySelector('link[href^="'+t+'"]'))e&&e();else{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.media="all",r.href=t,e&&(r.onload=e),r.onerror=function(t){console.error("Upload style error: "+t)},document.head.appendChild(r)}}function t_store__getRootZone(){return t_cart__useRootZone().getRootZone()}function t_store__setRootZone(t){t_cart__useRootZone().setRootZone(t)}function t_store__getSliderWrapper(t){return document.querySelector("#rec"+t+" .js-store-product .t-slds__items-wrapper")}function t_store__addSlideChangeListener(t){var e=t_store__getSliderWrapper(t);e&&e.addEventListener("slideChangeEnd",(function(){var r=e.querySelector(".t-slds__item_active");if(r&&"1"!==r.getAttribute("data-slide-index")){var o=r.querySelector(".t-slds__bgimg");o.classList.contains("t-bgimg")||o.classList.add("t-bgimg");var n=null==r?void 0:r.nextElementSibling;if(n){var i=n.querySelector(".t-slds__bgimg");if(i){i.classList.add("t-bgimg"),t_onFuncLoad("t_lazyload_update",(function(){t_lazyload_update()}));var s=document.getElementById("rec"+t);t_slds_updateSlider(s)}}}}))}function t_store__setupEndpoint(){var t=t_store__getRootZone();window.t_store_endpoint="store.tildaapi."+t}Array.prototype.some||(Array.prototype.some=function(t){"use strict";if(null===this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof t)throw new TypeError;for(var e=Object(this),r=e.length>>>0,o=arguments.length>=2?arguments[1]:void 0,n=0;n