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K;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AACLC,KAAK;AAC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AC/D,IAKI6X,GAAUK,GALVsB,IAAWxZ,EAAK,IAChByZ,IAAczZ,EAAK,IACnB0Z,IAAU1Z,EAAK,IAGI/1C,IAAI;AAC3B,IAAGuvD,EAAS9xB,MAAK,SAASn4B;AAAM,OAA+B,MAAxB0pD,EAAgB1pD;AAAW,KAAI;AACrE,KAAIsoD,KAAY4B,GACZ9B,EAAoBlpC,EAAEgrC,GAAa5B,OACrCF,EAAoB3sC,EAAE6sC,KAAY4B,EAAY5B;AAGhD,IAAG6B,GAAsBA,EAAQ/B;AAClC;AAEA,KADG4B,KAA4BA,EAA2BvZ,IACrD/1C,IAAIuvD,EAAStvD,QAAQD,KACzBiuD,IAAUsB,EAASvvD,IAChB0tD,EAAoBlpC,EAAEwqC,GAAiBf,MAAYe,EAAgBf,MACrEe,EAAgBf,GAAS,MAE1Be,EAAgBf,KAAW;AAG7B,GAEIyB,IAAqB5mC,KAAoC,gCAAIA,KAAoC,iCAAK;AAC1G4mC,EAAmB9pD,QAAQypD,EAAqB//C,KAAK,MAAM,KAC3DogD,EAAmBpvD,OAAO+uD,EAAqB//C,KAAK,MAAMogD,EAAmBpvD,KAAKgP,KAAKogD;;;OCtFvFtxD,EAAQ,OAGR9B,EAAQsP,QAAQ,EAAhBtP,OAEA8B,EAAQ,OAER9B,EAAQqzD,eAAe,EAAvBrzD,MACA8B,EAAQ,OACRA,EAAQ;AACRA,EAAQ,OACRA,EAAQ,OACRA,EAAQ,OACRA,EAAQ,OACRA,EAAQ,OACRA,EAAQ,OAIRA,EAAAA,MAAAA,QAEAA,EAAAA,MAAAA;AAEAA,EAAQ,OACRA,EAAQ,OACRA,EAAQ,OACRA,EAAQ","sources":["webpack://wp/webpack/runtime/load script","webpack://wp/./modules/adjustWeekRange.js","webpack://wp/./modules/client/config.js","webpack://wp/./modules/client/dateTime/dateExceptElement.js","webpack://wp/./modules/client/dateTime/dateLocalElement.js","webpack://wp/./modules/client/dateTime/getTimeZoneName.js","webpack://wp/./modules/client/dateTime/weekRangeElement.js","webpack://wp/./modules/client/delegate.js","webpack://wp/./modules/client/disqus.js","webpack://wp/./modules/client/dom/getDocumentHeight.js","webpack://wp/./modules/client/dom/getScrollbarHeight.js","webpack://wp/./modules/client/head/bannerBottom.js","webpack://wp/./modules/client/head/hover.js","webpack://wp/./modules/client/head/layout.js","webpack://wp/./modules/client/head/login.js","webpack://wp/./modules/client/head/logout.js","webpack://wp/./modules/client/head/navigationArrows.js","webpack://wp/./modules/client/head/resizeOnload/iframeResize.js","webpack://wp/./modules/client/head/resizeOnload/index.js","webpack://wp/./modules/client/head/siteSearch.js","webpack://wp/./modules/client/head/sitetoolbar.js","webpack://wp/./modules/client/head/spoiler.js","webpack://wp/./modules/client/head/trackLinks.js","webpack://wp/./modules/client/notification/index.js","webpack://wp/./modules/client/onSwipe.js","webpack://wp/./modules/client/polyfill/customEvent.js","webpack://wp/./modules/client/polyfill/dataset.js","webpack://wp/./modules/client/polyfill/dom.js","webpack://wp/./modules/client/polyfill/hidden.js","webpack://wp/./modules/client/polyfill/index.js","webpack://wp/./modules/client/polyfill/requestAnimationFrame.js","webpack://wp/./modules/client/polyfill/string.js","webpack://wp/./modules/client/price/priceCurrencyElement.js","webpack://wp/./modules/client/recaptcha/index.js","webpack://wp/./modules/client/recaptcha/initForms.js","webpack://wp/./modules/client/recaptcha/loadScript.js","webpack://wp/./modules/client/recaptcha/recaptcha.js","webpack://wp/./modules/client/spinner.js","webpack://wp/./modules/engine/moment-with-locale/index.js","webpack://wp/./modules/engine/sidebar/client/index.js","webpack://wp/./modules/gaHitCallback.js","webpack://wp/./modules/lib/throttle.js","webpack://wp/ts_src/Patch/Native.ts","webpack://wp/ts_src/Utilities.ts","webpack://wp/ts_src/CustomElementInternals.ts","webpack://wp/ts_src/custom-elements.ts","webpack://wp/ts_src/CustomElementState.ts","webpack://wp/ts_src/Deferred.ts","webpack://wp/ts_src/DocumentConstructionObserver.ts","webpack://wp/ts_src/CustomElementRegistry.ts","webpack://wp/ts_src/Patch/Interface/ParentNode.ts","webpack://wp/ts_src/Patch/Element.ts","webpack://wp/ts_src/Patch/Interface/ChildNode.ts","webpack://wp/ts_src/AlreadyConstructedMarker.ts","webpack://wp/ts_src/Patch/HTMLElement.ts","webpack://wp/ts_src/Patch/Document.ts","webpack://wp/ts_src/Patch/DocumentFragment.ts","webpack://wp/ts_src/Patch/Node.ts","webpack://wp/./node_modules/core-js/fn/string/match-all.js","webpack://wp/./node_modules/core-js/modules/_a-function.js","webpack://wp/./node_modules/core-js/modules/_an-object.js","webpack://wp/./node_modules/core-js/modules/_array-includes.js","webpack://wp/./node_modules/core-js/modules/_cof.js","webpack://wp/./node_modules/core-js/modules/_core.js","webpack://wp/./node_modules/core-js/modules/_ctx.js","webpack://wp/./node_modules/core-js/modules/_defined.js","webpack://wp/./node_modules/core-js/modules/_descriptors.js","webpack://wp/./node_modules/core-js/modules/_dom-create.js","webpack://wp/./node_modules/core-js/modules/_enum-bug-keys.js","webpack://wp/./node_modules/core-js/modules/_export.js","webpack://wp/./node_modules/core-js/modules/_fails.js","webpack://wp/./node_modules/core-js/modules/_flags.js","webpack://wp/./node_modules/core-js/modules/_function-to-string.js","webpack://wp/./node_modules/core-js/modules/_global.js","webpack://wp/./node_modules/core-js/modules/_has.js","webpack://wp/./node_modules/core-js/modules/_hide.js","webpack://wp/./node_modules/core-js/modules/_html.js","webpack://wp/./node_modules/core-js/modules/_ie8-dom-define.js","webpack://wp/./node_modules/core-js/modules/_iobject.js","webpack://wp/./node_modules/core-js/modules/_is-object.js","webpack://wp/./node_modules/core-js/modules/_is-regexp.js","webpack://wp/./node_modules/core-js/modules/_iter-create.js","webpack://wp/./node_modules/core-js/modules/_library.js","webpack://wp/./node_modules/core-js/modules/_object-create.js","webpack://wp/./node_modules/core-js/modules/_object-dp.js","webpack://wp/./node_modules/core-js/modules/_object-dps.js","webpack://wp/./node_modules/core-js/modules/_object-keys-internal.js","webpack://wp/./node_modules/core-js/modules/_object-keys.js","webpack://wp/./node_modules/core-js/modules/_property-desc.js","webpack://wp/./node_modules/core-js/modules/_redefine.js","webpack://wp/./node_modules/core-js/modules/_set-to-string-tag.js","webpack://wp/./node_modules/core-js/modules/_shared-key.js","webpack://wp/./node_modules/core-js/modules/_shared.js","webpack://wp/./node_modules/core-js/modules/_to-absolute-index.js","webpack://wp/./node_modules/core-js/modules/_to-integer.js","webpack://wp/./node_modules/core-js/modules/_to-iobject.js","webpack://wp/./node_modules/core-js/modules/_to-length.js","webpack://wp/./node_modules/core-js/modules/_to-primitive.js","webpack://wp/./node_modules/core-js/modules/_uid.js","webpack://wp/./node_modules/core-js/modules/_wks.js","webpack://wp/./node_modules/core-js/modules/es7.string.match-all.js","webpack://wp/./node_modules/currency-symbol-map/currency-symbol-map.js","webpack://wp/./node_modules/currency-symbol-map/map.js","webpack://wp/./node_modules/moment/locale/ja.js","webpack://wp/./node_modules/moment/locale/ru.js","webpack://wp/./node_modules/moment/locale/zh-cn.js","webpack://wp/./node_modules/moment/moment.js","webpack://wp/./node_modules/moment/locale/ sync ^\\.\\/.*$","webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/ensure chunk","webpack://wp/webpack/runtime/get javascript chunk filename","webpack://wp/webpack/runtime/get mini-css chunk filename","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/webpack/runtime/node module decorator","webpack://wp/webpack/runtime/publicPath","webpack://wp/webpack/runtime/jsonp chunk loading","webpack://wp/./modules/client/head/index.js"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"javascript-nodejs:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","\n// assuming weekdays, from, to are UTC\n// shift them to given timezone offset\nfunction adjustWeekRange(weekDays, from, to, offset) {\n\n offset = +offset;\n\n if (from.split) from = from.split(':').map(Number);\n if (to.split) to = to.split(':').map(Number);\n // apply timezone shift\n\n // convert to minutes to shift fractional (04:30) zones\n from = from[0] * 60 + from[1] + offset;\n to = to[0] * 60 + to[1] + offset;\n\n // go day back\n if (from < 0) {\n from += 24 * 60;\n to += 24 * 60;\n weekDays = weekDays.map(weekDay => weekDay === 1 ? 7 : (weekDay - 1)); // decrease day\n } else if (from >= 24 * 60) {\n from -= 24 * 60;\n to -= 24 * 60;\n weekDays = weekDays.map(weekDay => weekDay === 7 ? 1 : (weekDay + 1)); // increase day\n }\n\n // from is adjusted above, but to is not\n if (to > 24 * 60) to -= 24 * 60;\n if (to < 0) to += 24 * 60;\n\n\n let pad = num =>\n num === 0 ? '00' :\n num < 10 ? ('0' + num) :\n num;\n\n from = [Math.floor(from / 60), from % 60].map(pad).join(':');\n to = [Math.floor(to / 60), to % 60].map(pad).join(':');\n\n return [weekDays, from, to];\n\n}\n\nmodule.exports = adjustWeekRange;","module.exports = {\n lang: LANG,\n localCurrency: localCurrency,\n shopCurrency: shopCurrency,\n env: NODE_ENV,\n rateShopTo: rateShopTo,\n countryCode: countryCode,\n ordersMail: ordersMail,\n providers: providers,\n stripeKey: stripeKey,\n paypalClientId: paypalClientId,\n telegramBotId: telegramBotId,\n lookatCodeUrlBase: lookatCodeUrlBase,\n isRTL: isRTL\n};\n","let moment = require('engine/moment-with-locale');\n\nlet getTimeZoneName = require('./getTimeZoneName');\n\nclass DateExceptElement extends HTMLElement {\n\n constructor() {\n super();\n\n this.render();\n }\n\n connectedCallback() {\n this.render();\n }\n\n static get observedAttributes() {\n return ['except'];\n }\n\n attributeChangedCallback(name, oldValue, newValue) {\n this.render();\n }\n\n format(date, format, withZone) {\n\n let formatted = moment(date).utcOffset(-new Date().getTimezoneOffset()).format(format);\n\n if (withZone) {\n formatted += ' ' + getTimeZoneName();\n }\n\n return formatted;\n }\n\n\n // from=\"...\" to=\"...\"\n render() {\n // firefox throws error with infinite recursion otherwise\n let params = ['except'].map(f => this.getAttribute(f)).join(':');\n if (this.lastParams === params) {\n return;\n }\n this.lastParams = params;\n\n if (this.getAttribute('except')[0] === '{') return; // Angular\n\n if (!this.getAttribute('except')) { // no dates to skip\n return;\n }\n\n // dates in browser-local timezone\n let datesExcept = this.getAttribute('except').split(',').map(d => new Date(d));\n\n // (кроме 1, 2 дек, 4 янв)\n let output = [];\n for (let i = 0; i < datesExcept.length; i++) {\n let date = datesExcept[i];\n let nextDate = datesExcept[i+1];\n let needsMonth = !nextDate || nextDate.getMonth() != date.getMonth();\n let outputDate = moment(date).utcOffset(-new Date().getTimezoneOffset()).format(needsMonth ? 'D MMM' : 'D');\n output.push(outputDate);\n }\n\n this.innerHTML = `(кроме ${output.join(', ')})`;\n }\n\n}\n\nwindow.DateExceptElement = DateExceptElement;\n\nwindow.customElements.define('date-except', DateExceptElement);\n","let moment = require('engine/moment-with-locale');\n\nlet getTimeZoneName = require('./getTimeZoneName');\n\nclass DateLocalElement extends HTMLElement {\n\n\n constructor() {\n super();\n\n this.render();\n }\n\n connectedCallback() {\n this.render();\n }\n\n static get observedAttributes() {\n return ['timestamp', 'format', 'with-zone', 'to', 'from'];\n }\n\n attributeChangedCallback(name, oldValue, newValue) {\n this.render();\n }\n\n format(date, format, withZone) {\n\n let formatted = moment(date).utcOffset(-new Date().getTimezoneOffset()).format(format);\n\n if (withZone) {\n formatted += ' ' + getTimeZoneName();\n }\n\n return formatted;\n }\n\n\n // from=\"...\" to=\"...\"\n render() {\n\n // firefox throws error with infinite recursion otherwise\n let params = ['timestamp', 'from', 'to', 'format'].map(f => this.getAttribute(f)).join(':');\n if (this.lastParams === params) {\n return;\n }\n this.lastParams = params;\n\n if (this.hasAttribute('with-zone')) {\n let zone = getTimeZoneName();\n this.setAttribute('data-tooltip', \"Время в вашем часовом поясе,
по данным браузера это \" + zone + \".\");\n }\n\n if (this.getAttribute('timestamp')) {\n // console.log(this.getAttribute('timestamp'));\n if (this.getAttribute('timestamp')[0] === '{') return; // Angular\n this.innerHTML = this.format(this.getAttribute('timestamp'), this.getAttribute('format'), this.hasAttribute('with-zone'));\n return;\n }\n\n let fromTo = [];\n\n if (this.getAttribute('from')[0] === '{' || this.getAttribute('to')[0] === '{') return; // Angular\n\n let from = new Date(this.getAttribute('from'));\n let to = new Date(this.getAttribute('to'));\n\n let fromFormat = this.getAttribute('format');\n let toFormat = this.getAttribute('format');\n\n if (from.getFullYear() === to.getFullYear()) {\n fromFormat = fromFormat.replace(/ YY(YY)?$/g, '');\n }\n\n // if day is not the same we display range\n if (from.getFullYear() !== to.getFullYear() || from.getMonth() !== to.getMonth() || from.getDate() !== to.getDate())\n fromTo.push(this.format(from, fromFormat));\n\n fromTo.push(this.format(to, toFormat, this.hasAttribute('with-zone')));\n\n this.innerHTML = fromTo.join(' – ');\n }\n\n}\n\nwindow.DateLocalElement = DateLocalElement;\n\nwindow.customElements.define('date-local', DateLocalElement);\n","\n\nlet hasFormatToParts = new Intl.DateTimeFormat([], { timeZoneName: 'short'}).formatToParts;\n\nmodule.exports = function() {\n\n // from https://github.com/moment/luxon/blob/e77f74f27fae1237a5b59b1df15e4114215f665c/src/impl/util.js\n if (hasFormatToParts) { // Edge doesn't have it\n return new Intl.DateTimeFormat([], { timeZoneName: 'short'}).formatToParts(new Date()).find(t => t.type == 'timeZoneName').value;\n }\n\n let browserUtcOffset = -new Date().getTimezoneOffset();\n\n let timeZoneShort = new Date().toLocaleTimeString([], {timeZoneName: 'short'}).split(' ');\n\n if (timeZoneShort[0].match(/[+-]/)) { // can be \"GMT+3 xiayu13:00\"\n timeZoneShort = timeZoneShort[0];\n } else if (timeZoneShort[timeZoneShort.length-1].match(/[+-]/)) { // or \"12.23.32 GMT+3\"\n timeZoneShort = timeZoneShort[timeZoneShort.length-1];\n } else if (timeZoneShort[timeZoneShort.length-1].match(/[A-Z]{2,}/)) {\n timeZoneShort = timeZoneShort[timeZoneShort.length - 1]; // or \"12:32 PDT\"\n } else {\n timeZoneShort = 'GMT';\n if (browserUtcOffset > 0) timeZoneShort += '+' + browserUtcOffset/60;\n if (browserUtcOffset < 0) timeZoneShort += '-' + -browserUtcOffset/60;\n }\n\n return timeZoneShort;\n};\n","let moment = require('engine/moment-with-locale');\n\nlet getTimeZoneName = require('./getTimeZoneName');\nlet adjustWeekRange = require('adjustWeekRange');\n\nconst LANG = require('config').lang;\n\nclass WeekRangeElement extends HTMLElement {\n\n constructor() {\n super();\n\n this.render();\n }\n\n static get observedAttributes() {\n return ['weekdays', 'format', 'with-zone', 'to', 'from'];\n }\n\n attributeChangedCallback(name, oldValue, newValue) {\n this.render();\n }\n\n connectedCallback() {\n this.render();\n }\n\n format(date, format, withZone) {\n\n let formatted = moment(date).utcOffset(-new Date().getTimezoneOffset()).format(format);\n\n if (withZone) {\n formatted += ' ' + getTimeZoneName();\n }\n\n return formatted;\n }\n\n\n // from=\"...\" to=\"...\"\n render() {\n\n if (this.getAttribute('weekdays')[0] === '{') return; // Angular\n\n // firefox throws error with infinite recursion otherwise\n let params = ['weekdays', 'with-zone', 'from', 'to'].map(f => this.getAttribute(f)).join(':');\n\n if (this.lastParams === params) {\n return;\n }\n this.lastParams = params;\n\n let weekDays = this.getAttribute('weekdays').split(',').map(Number);\n\n let from = this.getAttribute('from');\n let to = this.getAttribute('to');\n\n // apply timezone shift\n [weekDays, from, to] = adjustWeekRange(weekDays, from, to, - new Date().getTimezoneOffset());\n\n let shortDays;\n if (LANG === 'ru') {\n shortDays = ['', \"пн\", \"вт\", \"ср\", \"чт\", \"пт\", \"сб\", \"вс\"];\n } else {\n shortDays = ['', \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n }\n\n weekDays = weekDays.map(day => shortDays[day]);\n\n if (LANG === 'ru') {\n weekDays = weekDays.join('/');\n } else {\n weekDays = weekDays.join(', ');\n }\n\n if (this.hasAttribute('with-zone')) {\n let zone = getTimeZoneName();\n this.setAttribute('data-tooltip', \"Время указано в вашем часовом поясе,
по данным браузера это \" + zone);\n }\n\n this.innerHTML = weekDays + ' ' + from + ' – ' + to;\n\n }\n\n}\n\nwindow.WeekRangeElement = WeekRangeElement;\n\nwindow.customElements.define('week-range', WeekRangeElement);\n","\nfunction findDelegateTarget(event, selector) {\n let currentNode = event.target;\n while (currentNode) {\n if (currentNode.matches(selector)) {\n return currentNode;\n }\n\n if (currentNode == event.currentTarget) {\n break;\n }\n currentNode = currentNode.parentElement;\n }\n return null;\n}\n\n// delegate(table, 'th', click, handler)\n// table\n// thead\n// th ^*\n// code <--\nfunction delegate(topElement, selector, eventName, handler, context) {\n /* jshint -W040 */\n topElement.addEventListener(eventName, function(event) {\n let found = findDelegateTarget(event, selector);\n\n // .currentTarget is read only, I can not overwrite it to the \"found\" element\n // Object.create wrapper would break event.preventDefault()\n // so, keep in mind:\n // --> event.currentTarget is always the top-level (delegating) element!\n // use \"this\" to get the found target\n\n event.delegateTarget = found; // use instead of \"this\" in object methods\n\n if (found) {\n // if in context of object, use object as this,\n handler.call(context || this, event);\n }\n });\n}\n\ndelegate.delegateMixin = function(obj) {\n obj.delegate = function(selector, eventName, handler) {\n delegate(this.elem, selector, eventName, handler, this);\n };\n};\n\nmodule.exports = delegate;\n\n","const disqusEmbedUrl = '//' + window.disqus_shortname + '.disqus.com/embed.js';\nconst disqusCountUrl = '//' + window.disqus_shortname + '.disqus.com/count.js';\n\nfunction loadDisqus() {\n const disqusElem = document.getElementById('disqus_thread');\n\n if (disqusElem.classList.contains('disqus-loading')) {\n return;\n }\n\n disqusElem.classList.add('disqus-loading');\n const spinner = new Spinner({\n size: 'large'\n });\n disqusElem.append(spinner.elem);\n spinner.start();\n\n const s = document.createElement('script');\n s.src = disqusEmbedUrl;\n s.setAttribute('data-timestamp', +new Date());\n document.head.appendChild(s);\n s.onload = () => {\n spinner.stop();\n spinner.elem.remove();\n };\n}\n\nfunction loadDisqusIfVisible() {\n if (!window.disqus_enabled) return;\n\n const disqusElem = document.getElementById('disqus_thread');\n\n // remove ads\n let observer = new MutationObserver(mutationRecords => {\n for(let record of mutationRecords) {\n if (record.type !== 'childList') {\n return;\n }\n if (!record.addedNodes) {\n return;\n }\n record.addedNodes.forEach(node => {\n if (node.tagName === 'IFRAME' && !node.src.includes('embed/comments')) {\n node.remove();\n }\n });\n }\n });\n\n observer.observe(disqusElem, {\n childList: true,\n });\n\n\n if (document.querySelector(`script[src=\"${disqusEmbedUrl}\"]`)) {\n // already loaded or loading\n return;\n }\n\n if (disqusElem.hasChildNodes()) return;\n\n const coords = disqusElem.getBoundingClientRect();\n\n if (coords.top > document.documentElement.clientHeight + 150 || coords.bottom < -150) {\n // not visible +-150 px\n return;\n }\n\n loadDisqus();\n}\n\nfunction loadDisqusComments() {\n const disqusElem = document.getElementById('disqus_comments');\n if (!disqusElem) return;\n\n window.disqus_config();\n disqusElem.dataset.disqusIdentifier = window.page.identifier;\n\n let s = document.createElement('script');\n s.id = \"dsq-count-scr\";\n s.src = disqusCountUrl;\n s.setAttribute('data-timestamp', +new Date());\n document.head.appendChild(s);\n}\n\nexports.loadDisqus = loadDisqus;\nexports.loadDisqusComments = loadDisqusComments;\nexports.loadDisqusIfVisible = loadDisqusIfVisible;\n","let getScrollbarHeight = require('./getScrollbarHeight');\nlet scrollbarHeight;\n\nfunction getDocumentHeight(doc) {\n doc = doc || document;\n\n let height = Math.max(\n doc.body.scrollHeight, doc.documentElement.scrollHeight,\n doc.body.offsetHeight, doc.documentElement.offsetHeight,\n doc.body.clientHeight, doc.documentElement.clientHeight\n );\n\n if (doc.documentElement.scrollWidth > doc.documentElement.clientWidth) {\n // got a horiz scroll, let's add it\n if (!scrollbarHeight) scrollbarHeight = getScrollbarHeight();\n height += scrollbarHeight;\n }\n\n return height;\n}\n\nmodule.exports = getDocumentHeight;\n\n","function getScrollbarHeight() {\n let outer = document.createElement(\"div\");\n outer.style.cssText = \"visibility:hidden;height:100px\";\n if (!document.body) {\n throw new Error(\"getScrollbarHeight called to early: no document.body\");\n }\n document.body.appendChild(outer);\n\n let widthNoScroll = outer.offsetWidth;\n // force scrollbars\n outer.style.overflow = \"scroll\";\n\n // add innerdiv\n let inner = document.createElement(\"div\");\n inner.style.width = \"100%\";\n outer.appendChild(inner);\n\n let widthWithScroll = inner.offsetWidth;\n\n // remove divs\n outer.parentNode.removeChild(outer);\n\n return widthNoScroll - widthWithScroll;\n}\n\nmodule.exports = getScrollbarHeight;\n","let notification = require('client/notification');\n\ndocument.addEventListener(\"click\", function(event) {\n let target = event.target.closest('[data-banner-close]');\n if (!target) {\n return;\n }\n\n localStorage[\"hideBanner\" + target.dataset.bannerClose] = Date.now();\n new notification.Success(target.dataset.bannerCloseMessage);\n\n target.parentNode.remove();\n\n});\n","// add/remove .hover onmouseenter/leave\n// for mobile devices (:hover sticks)\n\nlet currentHoverElem;\n\n/*\nfunction log(e) {\n console.log(Date.now() % 1e4, e.type);\n}\n\ndocument.addEventListener(\"focusin\", log, false);\ndocument.addEventListener(\"focus\", log, false);\ndocument.addEventListener(\"touchstart\", log, false);\ndocument.addEventListener(\"touchend\", log, false);\ndocument.addEventListener(\"touchcancel\", log, false);\ndocument.addEventListener(\"touchleave\", log, false);\ndocument.addEventListener(\"touchmove\", log, false);\ndocument.addEventListener(\"touch\", log, false);\n\ndocument.addEventListener(\"pointerup\", log, false);\ndocument.addEventListener(\"pointerdown\", log, false);\ndocument.addEventListener(\"pointermove\", log, false);\ndocument.addEventListener(\"pointercancel\", log, false);\ndocument.addEventListener(\"mouseover\", log, false);\n*/\ndocument.addEventListener('mouseover', function(event) {\n if (!event.target.closest) return;\n\n let target = event.target.closest('[data-add-class-on-hover]') || event.target.closest('.button');\n if (target) {\n currentHoverElem = target;\n target.classList.add('hover');\n }\n});\n\ndocument.addEventListener('touchend', function(event) {\n setTimeout(function() {\n if (currentHoverElem) {\n currentHoverElem.classList.remove('hover');\n currentHoverElem = null;\n }\n }, 500); // touchstart -> tourchend -> (delay up to 300ms) -> mouseover\n});\n\ndocument.addEventListener('mouseout', function(event) {\n if (!currentHoverElem) return;\n\n if (currentHoverElem.contains(event.relatedTarget)) {\n return;\n }\n\n currentHoverElem.classList.remove('hover');\n currentHoverElem = null;\n});\n\nif (!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) {\n document.documentElement.classList.add('working-hover');\n}\n\n","const loadDisqus = require('client/disqus').loadDisqus;\nconst loadDisqusComments = require('client/disqus').loadDisqusComments;\nconst loadDisqusIfVisible = require('client/disqus').loadDisqusIfVisible;\n\nlet requestAnimationFrameId;\n\nlet DEBUG = false;\nfunction log() {\n if (DEBUG) {\n console.log.apply(console, arguments);\n }\n}\n\nlet TABLET_WIDTH = 840;\n\n// don't handle onscroll more often than animation\nfunction onWindowScrollAndResizeThrottled() {\n log('onWindowScrollAndResizeThrottled', requestAnimationFrameId);\n if (requestAnimationFrameId) return;\n\n requestAnimationFrameId = window.requestAnimationFrame(function() {\n onWindowScrollAndResize();\n requestAnimationFrameId = null;\n });\n}\n\nwindow.addEventListener('resize-internal', onWindowScrollAndResizeThrottled);\nwindow.addEventListener('scroll', onWindowScrollAndResizeThrottled);\nwindow.addEventListener('resize', onWindowScrollAndResizeThrottled);\n\nif (document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', onDOMContentLoaded);\n} else {\n onDOMContentLoaded();\n}\n\nfunction onDOMContentLoaded() {\n initThemeToggler();\n\n if (window.location.hash.match(/#comment-/)) {\n loadDisqus();\n }\n loadDisqusComments();\n\n onWindowScrollAndResizeThrottled();\n if (LANG === 'zh') {\n document.addEventListener('click', (event) => {\n let link = event.target;\n let wechatqq = link.closest('.wechat-qq');\n\n if (!wechatqq) return;\n\n event.preventDefault();\n\n let modal = new Modal();\n modal.setContent(`