/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/dzsap-wave-generator.sourcepack.js":
/*!************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/dzsap-wave-generator.sourcepack.js ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _js_common_esjquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./js_common/_esjquery */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_esjquery.js\");\n/* harmony import */ var _configs_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./configs/_constants */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js\");\n/* harmony import */ var _jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jsinc/_dzsap_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js\");\n/*\n* deprecated\n * */\n\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\n\nvar WaveGenerator = /*#__PURE__*/function () {\n  function WaveGenerator($waveGenerator_) {\n    _classCallCheck(this, WaveGenerator);\n\n    this.initOptions = {};\n    this.dataSource = '';\n    this.$waveGenerator_ = $waveGenerator_;\n    this.$waveGenerator = (0,_js_common_esjquery__WEBPACK_IMPORTED_MODULE_0__.$es)($waveGenerator_);\n    this.$wavedataField = null;\n    this.$status = null;\n    this.init();\n  }\n\n  _createClass(WaveGenerator, [{\n    key: \"init\",\n    value: function init() {\n      var finalOptions = {};\n      var defaultOptions = Object.assign({\n        source: '',\n        selectorWaveData: ''\n      }, {});\n      finalOptions = (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_2__.convertPluginOptionsToFinalOptions)(this.$waveGenerator_, defaultOptions, null, 'data-options', _js_common_esjquery__WEBPACK_IMPORTED_MODULE_0__.$es);\n      var selfClass = this;\n      selfClass.initOptions = finalOptions;\n      selfClass.$status = selfClass.$waveGenerator.find('.dzsap-wave-generator--status');\n\n      if (selfClass.initOptions.source) {\n        selfClass.dataSource = selfClass.initOptions.source;\n      }\n\n      if (selfClass.initOptions.selectorWaveData) {\n        selfClass.$wavedataField = (0,_js_common_esjquery__WEBPACK_IMPORTED_MODULE_0__.$es)(selfClass.initOptions.selectorWaveData);\n      }\n\n      selfClass.$status.html('generating waveforms');\n\n      if (selfClass.dataSource) {\n        promise_waveGenerate(selfClass.$waveGenerator.find('.dzsap-wave-generator--wave').get(0), selfClass.dataSource).then(function (resolve) {\n          selfClass.$status.html('');\n\n          try {\n            if (resolve.pcm_data) {\n              if (selfClass.$wavedataField) {\n                selfClass.$wavedataField.val(resolve.pcm_data);\n\n                if (dzsap_settings.dzsap_wave_generate_auto === 'on' && get_query_arg(window.location.href, 'dzsap_wave_generate_auto') === 'on') {\n                  window.dzsap_admin_waveforms_submitPcmData(document.querySelector('.track-waveform-meta'));\n                }\n              }\n            }\n          } catch (err) {\n            console.log(err);\n          }\n        });\n      }\n    }\n  }]);\n\n  return WaveGenerator;\n}();\n\nwindow.es_document_ready(function () {\n  (0,_js_common_esjquery__WEBPACK_IMPORTED_MODULE_0__.$es)('.dzsap-wave-generator.auto-init').each(function ($el) {\n    var generator = new WaveGenerator($el.get(0));\n  });\n});\n\nfunction get_query_arg(purl, key) {\n  if (purl.indexOf(key + '=') > -1) {\n    var regexS = \"[?&]\" + key + \"=.+\";\n    var regex = new RegExp(regexS);\n    var regtest = regex.exec(purl);\n\n    if (regtest != null) {\n      var splitterS = regtest[0];\n\n      if (splitterS.indexOf('&') > -1) {\n        var aux = splitterS.split('&');\n        splitterS = aux[1];\n      }\n\n      var splitter = splitterS.split('=');\n      return splitter[1];\n    }\n  }\n}\n\nwindow.dzsap_generating_pcm = false;\n\nvar promise_waveGenerate = /*#__PURE__*/function () {\n  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2($container_, sourceMp3, pargs) {\n    var margs, self;\n    return regeneratorRuntime.wrap(function _callee2$(_context2) {\n      while (1) {\n        switch (_context2.prev = _context2.next) {\n          case 0:\n            margs = Object.assign({\n              called_from: 'default',\n              preferBackendPeaks: true,\n              wavesurfer_pcm_length: 200\n            }, pargs);\n            self = this;\n            return _context2.abrupt(\"return\", new Promise(function (resolvePcm, rejectPcm) {\n              function wavesurfer_renderPcm() {\n                return _wavesurfer_renderPcm.apply(this, arguments);\n              }\n\n              function _wavesurfer_renderPcm() {\n                _wavesurfer_renderPcm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n                  var asyncRenderPcm;\n                  return regeneratorRuntime.wrap(function _callee$(_context) {\n                    while (1) {\n                      switch (_context.prev = _context.next) {\n                        case 0:\n                          asyncRenderPcm = function _asyncRenderPcm(resolve, reject) {\n                            // -- make sure we are generating only once\n                            if (window.dzsap_generating_pcm) {\n                              setTimeout(function () {\n                                asyncRenderPcm(resolve, reject);\n                              }, 1000);\n                              return false;\n                            }\n\n                            window.dzsap_generating_pcm = true;\n                            var wavesurferConId = 'wavesurfer_' + Math.ceil(Math.random() * 10000);\n\n                            if (!$container_) {\n                              $container_ = document.body;\n                            }\n\n                            (0,_js_common_esjquery__WEBPACK_IMPORTED_MODULE_0__.$es)($container_).append(\"<div id=\\\"\".concat(wavesurferConId, \"\\\"></div>\"));\n                            var ctx = document.createElement('canvas').getContext('2d');\n                            var linGrad = ctx.createLinearGradient(0, 64, 0, 200);\n                            linGrad.addColorStop(0.5, 'rgb(107,95,95)');\n                            linGrad.addColorStop(0.5, 'rgb(119,115,115)');\n                            var wavesurfer = WaveSurfer.create({\n                              container: '#' + wavesurferConId,\n                              normalize: true,\n                              pixelRatio: 1,\n                              waveColor: linGrad,\n                              progressColor: 'hsla(200, 100%, 30%, 0.5)',\n                              cursorColor: '#fff',\n                              // This parameter makes the waveform look like SoundCloud's player\n                              barWidth: 2\n                            });\n                            wavesurfer.on('loading', function (percents) {\n                              $container_.parentNode.querySelector('.dzsap-wave-generator--status').innerHTML = percents + '%';\n                            });\n\n                            try {\n                              wavesurfer.load(sourceMp3);\n                            } catch (err) {\n                              console.log(\"[wavesurfer] WAVE SURFER NO LOAD\");\n                            }\n\n                            wavesurfer.on('ready', function () {\n                              console.log('[dzsap] [wavesurfer] generating wave data for ', sourceMp3);\n                              var accuracy = 100;\n                              var pcmDataArr = [];\n                              var pcmDataString = '';\n\n                              if (wavesurfer && wavesurfer.exportPCM) {\n                                if (margs.preferBackendPeaks !== true) {\n                                  pcmDataArr = wavesurfer.exportPCM(margs.wavesurfer_pcm_length, accuracy, true);\n                                }\n\n                                var isPcmDataArrValid = false;\n\n                                try {\n                                  pcmDataArr = JSON.parse(pcmDataString);\n\n                                  for (var i in pcmDataArr) {\n                                    if (pcmDataArr[i] !== null && pcmDataArr[i] !== 0 && pcmDataArr[i] !== \"0\") {\n                                      isPcmDataArrValid = true;\n                                      break;\n                                    }\n                                  }\n                                } catch (err) {\n                                  isPcmDataArrValid = false;\n                                }\n\n                                if (!isPcmDataArrValid) {\n                                  pcmDataArr = wavesurfer.backend.getPeaks(margs.wavesurfer_pcm_length, 0, margs.wavesurfer_pcm_length);\n                                }\n\n                                for (var _i in pcmDataArr) {\n                                  if (pcmDataArr[_i] !== null && pcmDataArr[_i] !== 0 && pcmDataArr[_i] !== \"0\") {\n                                    pcmDataArr[_i] = Math.abs(Number(Number(pcmDataArr[_i]).toFixed(2)));\n                                  }\n                                }\n                              } else {\n                                pcmDataArr = (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_2__.generateFakeArrayForPcm)();\n                              }\n\n                              pcmDataString = JSON.stringify(pcmDataArr);\n                              resolve({\n                                resolve_type: 'success',\n                                pcm_data: pcmDataString\n                              });\n                            });\n                            wavesurfer.on('error', function (err, err2) {\n                              reject({\n                                error_type: 'wavesurfer_error',\n                                error_message: err\n                              });\n                            });\n                            setTimeout(function () {\n                              reject({\n                                error_type: 'wavesurfer_timeout',\n                                error_message: 'timeout'\n                              });\n                            }, _configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.WAVESURFER_MAX_TIMEOUT);\n                          };\n\n                          return _context.abrupt(\"return\", new Promise(function (resolve, reject) {\n                            asyncRenderPcm(resolve, reject);\n                          }));\n\n                        case 2:\n                        case \"end\":\n                          return _context.stop();\n                      }\n                    }\n                  }, _callee);\n                }));\n                return _wavesurfer_renderPcm.apply(this, arguments);\n              }\n\n              wavesurfer_renderPcm().then(function (responsePcm) {\n                console.log('%c [dzsap] [wave] success while generating pcm - ', _configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.DEBUG_STYLE_PLAY_FUNCTIONS, responsePcm);\n                resolvePcm(responsePcm);\n              })[\"catch\"](function (err) {\n                var default_pcm = [];\n\n                for (var i3 = 0; i3 < 200; i3++) {\n                  default_pcm[i3] = Math.abs(Number(Math.random()).toFixed(2));\n                }\n\n                default_pcm = JSON.stringify(default_pcm);\n                console.log('%c [dzsap] [wave] error while generating pcm - ', _configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.DEBUG_STYLE_PLAY_FUNCTIONS, err, err.error_message);\n                resolvePcm(default_pcm);\n              });\n            }));\n\n          case 3:\n          case \"end\":\n            return _context2.stop();\n        }\n      }\n    }, _callee2, this);\n  }));\n\n  return function promise_waveGenerate(_x, _x2, _x3) {\n    return _ref.apply(this, arguments);\n  };\n}();\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/dzsap-wave-generator.sourcepack.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js":
/*!***********************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js ***!
  \***********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"ConstantsDzsAp\": () => (/* binding */ ConstantsDzsAp),\n/* harmony export */   \"DZSAP_PLAYER_ATTR_PLAY_FROM_LAST_POS\": () => (/* binding */ DZSAP_PLAYER_ATTR_PLAY_FROM_LAST_POS),\n/* harmony export */   \"DZSAP_PLAYER_CLASS_FOOTER_PLAYER\": () => (/* binding */ DZSAP_PLAYER_CLASS_FOOTER_PLAYER),\n/* harmony export */   \"DZSAP_PLAYER_CLASS_FOR_STICK_TO_BOTTOM_SHOW\": () => (/* binding */ DZSAP_PLAYER_CLASS_FOR_STICK_TO_BOTTOM_SHOW),\n/* harmony export */   \"DZSAP_PLAYER_CLASS_LOADED\": () => (/* binding */ DZSAP_PLAYER_CLASS_LOADED),\n/* harmony export */   \"DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM\": () => (/* binding */ DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM),\n/* harmony export */   \"DZSAP_PLAYER_PLACEHOLDER_CLASS_STICK_TO_BOTTOM\": () => (/* binding */ DZSAP_PLAYER_PLACEHOLDER_CLASS_STICK_TO_BOTTOM),\n/* harmony export */   \"DZSAP_PLAYER_TYPE_FOR_ACCEPTING_FEED\": () => (/* binding */ DZSAP_PLAYER_TYPE_FOR_ACCEPTING_FEED),\n/* harmony export */   \"DZSAP_SCRIPT_SELECTOR_KEYBOARD\": () => (/* binding */ DZSAP_SCRIPT_SELECTOR_KEYBOARD),\n/* harmony export */   \"DZSAP_SCRIPT_SELECTOR_MAIN_SETTINGS\": () => (/* binding */ DZSAP_SCRIPT_SELECTOR_MAIN_SETTINGS),\n/* harmony export */   \"DZSAP_VIEW_PLAYER_PLAYING_EASED_TIMEOUT\": () => (/* binding */ DZSAP_VIEW_PLAYER_PLAYING_EASED_TIMEOUT)\n/* harmony export */ });\nconst ConstantsDzsAp = {\n  PLAYLIST_TRANSITION_DURATION: 300,\n  'DEBUG_STYLE_1': 'background-color: #aaa022; color: #222222;',\n  'DEBUG_STYLE_2': 'background-color: #7c3b8e; color: #ffffff;',\n  'DEBUG_STYLE_3': 'background-color: #3a696b; color: #eeeeee;',\n  'DEBUG_STYLE_ERROR': 'background-color: #3a696b; color: #eeeeee;',\n  URL_WAVESURFER_HELPER_BACKUP: 'https://zoomthe.me/assets/dzsap-wave-generate.js',\n  WAVESURFER_MAX_TIMEOUT: 20000,\n  URL_JQUERY: 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js',\n  DEBUG_STYLE_PLAY_FUNCTIONS: 'background-color: #daffda; color: #222222;',\n  ERRORED_OUT_CLASS: 'errored-out',\n  ERRORED_OUT_MAX_ATTEMPTS: 5\n}\n\nconst DZSAP_PLAYER_CLASS_FOOTER_PLAYER = 'dzsap_footer';\nconst DZSAP_PLAYER_CLASS_LOADED = 'dzsap-loaded';\nconst DZSAP_PLAYER_CLASS_FOR_STICK_TO_BOTTOM_SHOW = 'audioplayer-loaded';\nconst DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM = 'dzsap-sticktobottom';\nconst DZSAP_PLAYER_PLACEHOLDER_CLASS_STICK_TO_BOTTOM = 'dzsap-sticktobottom-placeholder';\nconst DZSAP_PLAYER_TYPE_FOR_ACCEPTING_FEED = 'fake';\nconst DZSAP_PLAYER_ATTR_PLAY_FROM_LAST_POS = 'last';\n\nconst DZSAP_SCRIPT_SELECTOR_MAIN_SETTINGS = '#dzsap-main-settings';\nconst DZSAP_SCRIPT_SELECTOR_KEYBOARD = '#dzsap-keyboard-controls';\nconst DZSAP_VIEW_PLAYER_PLAYING_EASED_TIMEOUT = 500;\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js":
/*!***************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"decode_json\": () => (/* binding */ decode_json),\n/* harmony export */   \"dzsap_jQueryInit\": () => (/* binding */ dzsap_jQueryInit),\n/* harmony export */   \"getBaseUrl\": () => (/* binding */ getBaseUrl),\n/* harmony export */   \"getRelativeX\": () => (/* binding */ getRelativeX),\n/* harmony export */   \"isInt\": () => (/* binding */ isInt),\n/* harmony export */   \"isValid\": () => (/* binding */ isValid),\n/* harmony export */   \"loadScriptIfItDoesNotExist\": () => (/* binding */ loadScriptIfItDoesNotExist),\n/* harmony export */   \"sanitizeToCssPx\": () => (/* binding */ sanitizeToCssPx),\n/* harmony export */   \"setupTooltip\": () => (/* binding */ setupTooltip),\n/* harmony export */   \"simpleStringify\": () => (/* binding */ simpleStringify),\n/* harmony export */   \"string_curateClassName\": () => (/* binding */ string_curateClassName)\n/* harmony export */ });\n/* harmony import */ var _configs_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../configs/_constants */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js\");\n\n\nconst decode_json = function (arg) {\n  var fout = {};\n\n  if (arg) {\n\n    try {\n\n      fout = JSON.parse(arg);\n    } catch (err) {\n\n      return null;\n    }\n  }\n\n  return fout;\n}\nasync function dzsap_jQueryInit(callback, reject) {\n\n  return new Promise((resolve, reject) => {\n\n    if (window.jQuery) {\n      resolve('jQuery loaded');\n    } else {\n      const script = document.createElement('script');\n      script.onload = function () {\n        if (window.jQuery) {\n          resolve('jQuery loaded');\n        } else {\n          reject('error loading');\n        }\n      };\n      script.src = _configs_constants__WEBPACK_IMPORTED_MODULE_0__.ConstantsDzsAp.URL_JQUERY;\n\n      document.head.appendChild(script);\n    }\n\n    setTimeout(() => {\n      reject('error loading');\n    }, 15000);\n  })\n}\n/**\n *\n * @param {string} arg\n * @return {string}\n */\nfunction string_curateClassName(arg){\n\n  arg = arg.replace('feed-dzsap', '');\n  arg = arg.replace('feed-dzsap--extra-html', '');\n  return arg;\n}\n\n\nfunction simpleStringify (object){\n  if (object && typeof object === 'object') {\n    object = copyWithoutCircularReferences([object], object);\n  }\n  return JSON.stringify(object);\n\n  function copyWithoutCircularReferences(references, object) {\n    const cleanObject = {};\n    Object.keys(object).forEach(function(key) {\n      var value = object[key];\n      if (value && typeof value === 'object') {\n        if (references.indexOf(value) < 0) {\n          references.push(value);\n          cleanObject[key] = copyWithoutCircularReferences(references, value);\n          references.pop();\n        } else {\n          cleanObject[key] = '###_Circular_###';\n        }\n      } else if (typeof value !== 'function') {\n        cleanObject[key] = value;\n      }\n    });\n    return cleanObject;\n  }\n}\n\nconst loadScriptIfItDoesNotExist = (scriptSrc, checkForVar) => {\n  return new Promise((resolve, reject) => {\n    if (checkForVar) {\n      resolve('loadfromvar');\n      return;\n    }\n\n    var script = document.createElement('script');\n    script.onload = function () {\n      resolve('loadfromload');\n    };\n    script.onerror = function () {\n      reject();\n    };\n    script.src = scriptSrc;\n\n    document.head.appendChild(script);\n  })\n}\n\n\nconst getBaseUrl = (baseUrlVar, scriptName) => {\n  if (window[baseUrlVar]) {\n    return window[baseUrlVar];\n  }\n\n  let scripts = document.getElementsByTagName(\"script\");\n  for (var scriptKey in scripts) {\n    if (scripts[scriptKey] && scripts[scriptKey].src && String(scripts[scriptKey].src).indexOf(scriptName) > -1) {\n      break;\n    }\n  }\n  var baseUrl_arr = String(scripts[scriptKey].src).split('/');\n  baseUrl_arr.splice(-1, 1);\n  const result = string_addTrailingSlash(baseUrl_arr.join('/'));\n  window[baseUrlVar] = result+'/';\n  return result;\n}\n\nfunction string_addTrailingSlash(url){\n  var lastChar = url.substr(-1); // Selects the last character\n  if (lastChar != '/') {         // If the last character is not a slash\n    url = url + '/';            // Append a slash to it.\n  }\n  return url;\n}\nconst sanitizeToCssPx = (arg) => {\n\n  if (String(arg).indexOf('%') > -1 || String(arg).indexOf('em') > -1 || String(arg).indexOf('px') > -1 || String(arg).indexOf('auto') > -1) {\n    return arg;\n  }\n  return arg + 'px';\n}\n\n\nconst setupTooltip = (args) => {\n\n  var mainArgs = Object.assign({\n    tooltipInnerHTML: '',\n    tooltipIndicatorText: '',\n    tooltipConClass: '',\n  }, args)\n\n  return `<div class=\"dzstooltip-con ${mainArgs.tooltipConClass}\"><span class=\"dzstooltip main-tooltip   talign-end arrow-bottom style-rounded color-dark-light  dims-set transition-slidedown \" style=\"width: 280px;\"><span class=\"dzstooltip--inner\">${mainArgs.tooltipInnerHTML}</span> </span></span><span class=\"tooltip-indicator\">${mainArgs.tooltipIndicatorText}</span></div>`;\n}\n\n\nconst isInt = function (n) {\n  return typeof n == 'number' && Math.round(n) % 1 == 0;\n}\n\nconst isValid = function (n) {\n  return typeof n != 'undefined' && n != '';\n}\n\n\nfunction getRelativeX (mouseX, $el_) {\n  if (jQuery) {\n    return mouseX - jQuery($el_).offset().left;\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_esjquery.js":
/*!************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_esjquery.js ***!
  \************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"$es\": () => (/* binding */ $es),\n/* harmony export */   \"documentReady\": () => (/* binding */ documentReady)\n/* harmony export */ });\n/**\n * v1.0.0\n * @type {esJquery}\n */\nlet esJquery = class {\n\n  /**\n   *\n   * @param {string|esJquery} selector\n   */\n  constructor(selector) {\n\n    if (typeof selector == 'string') {\n\n      this.$el = document.querySelector(selector);\n      this.$els = document.querySelectorAll(selector);\n    } else {\n\n      this.$el = selector;\n\n      if (isNodeList(selector)) {\n        this.$el = selector[0];\n      }\n      this.$els = [];\n\n      if (isNodeList(selector)) {\n\n        selector.forEach((_el) => {\n\n          this.$els.push(_el);\n        })\n      } else {\n\n        this.$els.push(this.$el);\n      }\n\n\n    }\n  }\n\n  /**\n   *\n   * @param {number} indexNr\n   * @returns {esJquery}\n   */\n  eq(indexNr) {\n\n    if (this.$els.length < indexNr - 1) {\n      return $es(this.$els[this.$els.length - 1]);\n    }\n    return $es(this.$els[indexNr]);\n\n  }\n\n  length() {\n\n    return this.$els.length;\n\n  }\n\n  hide() {\n\n    this.$els.forEach(function (el) {\n      el.style.display = 'none';\n    });\n  }\n\n  clone() {\n    // -- @only works on first element\n    const cln = this.$el.cloneNode(true);\n    this.$el.parentNode.appendChild(cln)\n    return cln;\n  }\n\n  show() {\n\n    this.$els.forEach(function (el) {\n      el.style.display = '';\n    });\n  }\n\n  /**\n   *\n   * @param {string} arg\n   * @return {esJquery}\n   */\n  addClass(arg) {\n    this.$els.forEach(function (el3) {\n      if (el3) {\n        el3.classList.add(arg);\n      }\n    });\n    return this;\n  }\n\n  /**\n   *\n   * @param {string} arg\n   * @return {esJquery}\n   */\n  removeClass(arg) {\n\n\n    this.$els.forEach(function (el3) {\n      const classesToRemove = arg.split(' ');\n      classesToRemove.forEach((classToRemove) => {\n\n        if (el3) {\n          el3.classList.remove(classToRemove);\n        }\n      })\n    });\n    return this;\n  }\n\n  /**\n   *\n   * @param {string} html\n   * @return {esJquery}\n   */\n  prepend(html) {\n    if (typeof html == 'string') {\n\n      const _tempKid = document.createElement(\"div\");\n\n\n      this.$els.forEach(function (el) {\n        try {\n\n          el.appendChild(_tempKid);\n          el.insertBefore(_tempKid, el.firstChild);\n          _tempKid.outerHTML = html;\n        } catch (err) {\n          console.error('something went wrong .. ', err, this, el);\n        }\n      })\n    }\n  }\n\n  /**\n   *\n   * @param {number} index\n   * @returns {Element}\n   */\n  get(index) {\n    if (index === 0) {\n      return this.$el;\n    }\n  }\n\n  /**\n   *\n   * @param {function} callback\n   */\n  each(callback) {\n    this.$els.forEach((el) => {\n        callback.bind(el)($es(el));\n      }\n    )\n  }\n\n  text() {\n    if (arguments.length === 0) {\n\n      return this.$el.textContent;\n    } else {\n\n      this.$el.textContent = arguments[0];\n\n      return this;\n    }\n  }\n\n  /**\n   *\n   * @param {string} selector\n   * @return {esJquery}\n   */\n  find(selector) {\n\n    if (this.$el) {\n      return new esJquery(this.$el.querySelectorAll(selector));\n    }\n    return new esJquery(this.$el);\n  }\n\n  /**\n   *\n   * @param {string} html\n   * @return {esJquery}\n   */\n  append(html) {\n    if (typeof html == 'string') {\n\n      const _tempKid = document.createElement(\"div\");\n      _tempKid.innerHTML = html;\n\n\n      this.$els.forEach(function (el) {\n        try {\n          el.appendChild(_tempKid);\n        } catch (err) {\n          console.error('something went wrong .. ', err, this, el);\n        }\n      })\n    }\n  }\n\n  /**\n   *\n   * @param {string} actionType\n   */\n  trigger(actionType) {\n\n    var event = new CustomEvent(actionType, {\n      bubbles: true, detail: 'event'\n    });\n\n    this.$el.dispatchEvent(event);\n  }\n\n  /**\n   *\n   * @param {string} eventName\n   * @param {string|function} sel\n   * @param {string|function} handler\n   * @return {esJquery}\n   */\n  on(eventName, sel, handler) {\n    const isSelTheHandler = typeof sel === 'function';\n    const theHandler = isSelTheHandler ? sel : handler;\n\n\n    if (this.$el) {\n\n      this.$el.addEventListener(eventName, function (event) {\n\n        if (isSelTheHandler) {\n          theHandler.call(this.$el, event);\n          return;\n        }\n        let t = event.target;\n        while (t && t !== this) {\n          if (t.matches(sel)) {\n            theHandler.call(t, event);\n          }\n          t = t.parentNode;\n        }\n      });\n    }\n    return $es(this);\n  }\n\n  /**\n   *\n   * @param {string} arg\n   * @return {esJquery}\n   */\n  hasClass(arg) {\n    if (this.$el) {\n\n      return this.$el.classList.contains(arg);\n    }\n    return $es(null);\n  }\n\n  html() {\n\n    const attrArgs = arguments;\n    if (attrArgs.length === 0) {\n      return this.$el.innerHTML;\n    }\n    if (attrArgs.length === 1) {\n\n      if (this.$el) {\n        this.$el.innerHTML = attrArgs[0];\n      }\n\n      return this;\n    }\n  }\n\n  getLast() {\n\n    if (this.$els.length) {\n      return $es(this.$els[this.$els.length - 1]);\n    }\n    return null;\n  }\n\n  val() {\n    const attrArgs = arguments;\n    if (attrArgs.length === 0) {\n      return this.$el.value ? this.$el.value : '';\n    }\n    if (attrArgs.length === 1) {\n\n      this.$els.forEach(function (el) {\n        if (el) {\n          console.log('arguments - ', attrArgs);\n          el.value = attrArgs[0];\n        }\n      });\n    }\n    return this;\n\n\n  }\n\n  attr() {\n    const attrArgs = arguments;\n    if (attrArgs.length === 0) {\n      console.log('no attrArgs.. ');\n    }\n    if (attrArgs.length === 1) {\n      return this.$el.getAttribute(attrArgs[0]);\n    }\n    if (attrArgs.length === 2) {\n      this.$els.forEach(function (el) {\n        if (el) {\n          el.setAttribute(attrArgs[0], attrArgs[1]);\n        }\n      });\n    }\n\n    return $es(this.$el);\n\n\n  }\n\n  css() {\n    const self = this;\n    const attrArgs = arguments;\n    if (attrArgs.length === 0) {\n      console.log('no attrArgs.. ');\n    }\n    if (attrArgs.length === 1) {\n      return this.$el.getAttribute(attrArgs[0]);\n    }\n    if (attrArgs.length === 2) {\n\n      this.$els.forEach(function (el) {\n        if (el) {\n          console.log('toCamel case - ', self._toCamelCase(attrArgs[0]), attrArgs[1]);\n          el.style[self._toCamelCase(attrArgs[0])] = attrArgs[1];\n        }\n      })\n\n      console.log(this.$el);\n\n    }\n\n    return $es(this.$el);\n\n\n  }\n\n  _toCamelCase(s) {\n    return s.replace(/-./g, x => x[1].toUpperCase())\n  }\n\n  remove() {\n    this.$el.remove();\n  }\n\n  parent() {\n\n    if (this.$el) {\n\n      return $es(this.$el.parentNode);\n    }\n    return $es(null);\n  }\n\n  prev() {\n\n    return $es(this.$el.previousElementSibling);\n  }\n\n  /**\n   *\n   * @returns {Element}\n   */\n  getEl() {\n\n    return this.$el;\n  }\n\n  children() {\n    return $es(this.$el.childNodes);\n  }\n\n  serialize() {\n    var form = this.$el;\n    var field, query = '';\n    if (typeof form == 'object' && form.nodeName === \"FORM\") {\n      for (let i = 0; i <= form.elements.length - 1; i++) {\n        field = form.elements[i];\n        if (field.name && field.type !== 'file' && field.type !== 'reset') {\n          if (field.type === 'select-multiple') {\n            for (let j = 0; j <= form.elements[i].options.length - 1; j++) {\n              if (field.options[j].selected) {\n                query += '&' + field.name + \"=\" + encodeURIComponent(field.options[j].value).replace(/%20/g, '+');\n              }\n            }\n          } else {\n            if ((field.type !== 'submit' && field.type !== 'button')) {\n              if ((field.type !== 'checkbox' && field.type !== 'radio') || field.checked) {\n                query += '&' + field.name + \"=\" + encodeURIComponent(field.value).replace(/%20/g, '+');\n              }\n            }\n          }\n        }\n      }\n    }\n    return query.substr(1);\n  }\n};\n\nfunction isNodeList(nodes) {\n  var stringRepr = Object.prototype.toString.call(nodes);\n\n  return typeof nodes === 'object' &&\n    /^\\[object (HTMLCollection|NodeList|Object)\\]$/.test(stringRepr) &&\n    (typeof nodes.length === 'number') &&\n    (nodes.length === 0 || (typeof nodes[0] === \"object\" && nodes[0].nodeType > 0));\n}\n\n/**\n * jQuery, but in es6\n * @returns {esJquery} esjQuery\n * @param arg\n */\nconst $es = (arg) => {\n\n\n  return new esJquery(arg)\n};\n\n\nfunction documentReady(callback) {\n  new Promise((resolutionFunc, rejectionFunc) => {\n    if (document.readyState === 'interactive' || document.readyState === 'complete') {\n      resolutionFunc('interactive')\n    }\n    document.addEventListener('DOMContentLoaded', () => {\n      resolutionFunc('DOMContentLoaded')\n    }, false);\n    setTimeout(() => {\n      resolutionFunc('timeout')\n    }, 5000);\n  }).then(resolution => {\n    callback(resolution);\n  }).catch(err => {\n    callback(err)\n  });\n}\n\n\nwindow.es_document_ready = documentReady;\n\n/** call ajax function\n * {\n    'type':'GET',\n    'url':'/',\n    'data':{},\n    'success':null\n  }\n */\nwindow.es_ajax = function (pargs) {\n  var margs = {\n    'method': 'GET',\n    'url': '/',\n    'data': {},\n    'success': null\n  };\n\n  if (pargs) {\n    margs = Object.assign(margs, pargs);\n  }\n\n  let xhr = new XMLHttpRequest();\n\n  xhr.open(margs.method, margs.url);\n  var form_data = new FormData();\n\n  for (var key in margs.data) {\n    form_data.append(key, margs.data[key]);\n  }\n\n  xhr.send(form_data);\n  xhr.addEventListener('load', handle_loaded);\n\n  function handle_loaded(e) {\n\n    if (xhr.status !== 200) {\n\n      if (margs.error) {\n        margs.error(e, this);\n      }\n    } else { // show the result\n      if (margs.success) {\n        margs.success(e, this);\n      }\n    }\n  }\n\n\n}\n\nwindow.get_query_arg = function (purl, key) {\n  if (purl.indexOf(key + '=') > -1) {\n    var regexS = \"[?&]\" + key + \"(.+?)(?=&|$)\";\n    var regex = new RegExp(regexS);\n    var regtest = regex.exec(purl);\n\n\n    if (regtest != null) {\n\n\n      if (regtest[1]) {\n        return regtest[1].replace(/=/g, '');\n      } else {\n        return '';\n      }\n\n\n    }\n  }\n}\n\n\n/**\n *\n * @param {string} purl\n * @param {string} key\n * @param {string} value\n * @returns {*}\n */\nwindow.add_query_arg = function (purl, key, value) {\n  key = encodeURIComponent(key);\n  value = encodeURIComponent(value);\n\n\n  var s = purl;\n  var pair = key + \"=\" + value;\n\n  var r = new RegExp(\"(&|\\\\?)\" + key + \"=[^\\&]*\");\n\n\n  s = s.replace(r, \"$1\" + pair);\n  var addition = '';\n  if (s.indexOf(key + '=') > -1) {\n\n\n  } else {\n    if (s.indexOf('?') > -1) {\n      addition = '&' + pair;\n    } else {\n      addition = '?' + pair;\n    }\n    s += addition;\n  }\n\n  if (value === 'NaN') {\n    var regex_attr = new RegExp('[\\?|\\&]' + key + '=' + value);\n    s = s.replace(regex_attr, '');\n  }\n\n\n  return s;\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_esjquery.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js":
/*!*************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"add_query_arg\": () => (/* binding */ add_query_arg),\n/* harmony export */   \"assignHelperFunctionsToJquery\": () => (/* binding */ assignHelperFunctionsToJquery),\n/* harmony export */   \"assignPcmData\": () => (/* binding */ assignPcmData),\n/* harmony export */   \"can_canvas\": () => (/* binding */ can_canvas),\n/* harmony export */   \"can_history_api\": () => (/* binding */ can_history_api),\n/* harmony export */   \"convertPluginOptionsToFinalOptions\": () => (/* binding */ convertPluginOptionsToFinalOptions),\n/* harmony export */   \"dzs_clean_string\": () => (/* binding */ dzs_clean_string),\n/* harmony export */   \"dzsapInitjQueryRegisters\": () => (/* binding */ dzsapInitjQueryRegisters),\n/* harmony export */   \"dzsap_generate_keyboard_tooltip\": () => (/* binding */ dzsap_generate_keyboard_tooltip),\n/* harmony export */   \"dzsap_is_mobile\": () => (/* binding */ dzsap_is_mobile),\n/* harmony export */   \"dzsap_singleton_ready_calls\": () => (/* binding */ dzsap_singleton_ready_calls),\n/* harmony export */   \"formatTime\": () => (/* binding */ formatTime),\n/* harmony export */   \"generateFakeArrayForPcm\": () => (/* binding */ generateFakeArrayForPcm),\n/* harmony export */   \"get_query_arg\": () => (/* binding */ get_query_arg),\n/* harmony export */   \"hexToRgb\": () => (/* binding */ hexToRgb),\n/* harmony export */   \"htmlEncode\": () => (/* binding */ htmlEncode),\n/* harmony export */   \"is_android\": () => (/* binding */ is_android),\n/* harmony export */   \"is_android_good\": () => (/* binding */ is_android_good),\n/* harmony export */   \"is_ios\": () => (/* binding */ is_ios),\n/* harmony export */   \"is_safari\": () => (/* binding */ is_safari),\n/* harmony export */   \"jQueryAuxBindings\": () => (/* binding */ jQueryAuxBindings),\n/* harmony export */   \"playerFunctions\": () => (/* binding */ playerFunctions),\n/* harmony export */   \"playerRegisterWindowFunctions\": () => (/* binding */ playerRegisterWindowFunctions),\n/* harmony export */   \"player_checkIfWeShouldShowAComment\": () => (/* binding */ player_checkIfWeShouldShowAComment),\n/* harmony export */   \"player_delete\": () => (/* binding */ player_delete),\n/* harmony export */   \"player_determineStickToBottomContainer\": () => (/* binding */ player_determineStickToBottomContainer),\n/* harmony export */   \"player_getPlayFromTime\": () => (/* binding */ player_getPlayFromTime),\n/* harmony export */   \"player_identifySource\": () => (/* binding */ player_identifySource),\n/* harmony export */   \"player_identifyTypes\": () => (/* binding */ player_identifyTypes),\n/* harmony export */   \"player_isGoingToSetupMediaNow\": () => (/* binding */ player_isGoingToSetupMediaNow),\n/* harmony export */   \"player_radio_isNameUpdatable\": () => (/* binding */ player_radio_isNameUpdatable),\n/* harmony export */   \"player_reinit_findIfPcmNeedsGenerating\": () => (/* binding */ player_reinit_findIfPcmNeedsGenerating),\n/* harmony export */   \"player_service_getSourceProtection\": () => (/* binding */ player_service_getSourceProtection),\n/* harmony export */   \"player_stickToBottomContainerDetermineClasses\": () => (/* binding */ player_stickToBottomContainerDetermineClasses),\n/* harmony export */   \"player_stopOtherPlayers\": () => (/* binding */ player_stopOtherPlayers),\n/* harmony export */   \"player_syncPlayers_buildList\": () => (/* binding */ player_syncPlayers_buildList),\n/* harmony export */   \"player_syncPlayers_gotoItem\": () => (/* binding */ player_syncPlayers_gotoItem),\n/* harmony export */   \"player_view_addMetaLoaded\": () => (/* binding */ player_view_addMetaLoaded),\n/* harmony export */   \"registerTextWidth\": () => (/* binding */ registerTextWidth),\n/* harmony export */   \"sanitizeObjectForChangeMediaArgs\": () => (/* binding */ sanitizeObjectForChangeMediaArgs),\n/* harmony export */   \"sanitizeToHexColor\": () => (/* binding */ sanitizeToHexColor),\n/* harmony export */   \"sanitizeToIntFromPointTime\": () => (/* binding */ sanitizeToIntFromPointTime),\n/* harmony export */   \"select_all\": () => (/* binding */ select_all),\n/* harmony export */   \"string_jsonConvertToArray\": () => (/* binding */ string_jsonConvertToArray),\n/* harmony export */   \"utils_sanitizeToColor\": () => (/* binding */ utils_sanitizeToColor),\n/* harmony export */   \"view_player_globalDetermineSyncPlayersIndex\": () => (/* binding */ view_player_globalDetermineSyncPlayersIndex),\n/* harmony export */   \"view_player_playMiscEffects\": () => (/* binding */ view_player_playMiscEffects),\n/* harmony export */   \"waitForScriptToBeAvailableThenExecute\": () => (/* binding */ waitForScriptToBeAvailableThenExecute)\n/* harmony export */ });\n/* harmony import */ var _js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js\");\n/* harmony import */ var _dzsap_svgs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_dzsap_svgs */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js\");\n/* harmony import */ var _player_player_keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./player/_player_keyboard */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_keyboard.js\");\n/* harmony import */ var _configs_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../configs/_constants */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js\");\n\n\n\n\n\n\nfunction formatTime(arg) {\n\n  var s = Math.round(arg);\n  var m = 0;\n  var h = 0;\n  if (s > 0) {\n    while (s > 3599 && s < 3000000 && isFinite(s)) {\n      h++;\n      s -= 3600;\n    }\n    while (s > 59 && s < 3000000 && isFinite(s)) {\n      m++;\n      s -= 60;\n    }\n    if (h) {\n\n      return String((h < 10 ? \"0\" : \"\") + h + \":\" + String((m < 10 ? \"0\" : \"\") + m + \":\" + (s < 10 ? \"0\" : \"\") + s));\n    }\n    return String((m < 10 ? \"0\" : \"\") + m + \":\" + (s < 10 ? \"0\" : \"\") + s);\n  } else {\n    return \"00:00\";\n  }\n}\n\nfunction can_history_api() {\n  return !!(window.history && history.pushState);\n}\n\nfunction dzs_clean_string(arg) {\n\n  if (arg) {\n\n    arg = arg.replace(/[^A-Za-z0-9\\-]/g, '');\n\n    arg = arg.replace(/\\./g, '');\n    return arg;\n  }\n\n  return '';\n\n\n}\n\n\nfunction get_query_arg(purl, key) {\n  if (purl) {\n\n    if (String(purl).indexOf(key + '=') > -1) {\n\n      var regexS = \"[?&]\" + key + \"=.+\";\n      var regex = new RegExp(regexS);\n      var regtest = regex.exec(purl);\n\n\n      if (regtest != null) {\n        var splitterS = regtest[0];\n        if (splitterS.indexOf('&') > -1) {\n          var aux = splitterS.split('&');\n          splitterS = aux[1];\n        }\n\n        var splitter = splitterS.split('=');\n\n\n        return splitter[1];\n\n      }\n\n    }\n\n  } else {\n  }\n}\n\nfunction add_query_arg(purl, key, value) {\n\n  key = encodeURIComponent(key);\n  value = encodeURIComponent(value);\n\n  if (!(purl)) {\n    purl = '';\n  }\n  var s = purl;\n  var pair = key + \"=\" + value;\n\n  var r = new RegExp(\"(&|\\\\?)\" + key + \"=[^\\&]*\");\n\n  s = s.replace(r, \"$1\" + pair);\n\n  if (s.indexOf(key + '=') > -1) {\n\n\n  } else {\n    if (s.indexOf('?') > -1) {\n      s += '&' + pair;\n    } else {\n      s += '?' + pair;\n    }\n  }\n\n\n  if (value === 'NaN') {\n    var regex_attr = new RegExp('[\\?|\\&]' + key + '=' + value);\n    s = s.replace(regex_attr, '');\n\n\n    if (s.indexOf('?') === -1 && s.indexOf('&') > -1) {\n      s = s.replace('&', '?');\n    }\n  }\n\n  return s;\n}\n\n\nfunction dzsap_is_mobile() {\n\n\n  return is_ios() || is_android();\n}\n\nfunction is_ios() {\n\n  return ((navigator.platform.indexOf(\"iPhone\") !== -1) || (navigator.platform.indexOf(\"iPod\") !== -1) || (navigator.platform.indexOf(\"iPad\") !== -1));\n}\n\n\nfunction can_canvas() {\n\n  var oCanvas = document.createElement(\"canvas\");\n  return !!oCanvas.getContext(\"2d\");\n\n}\n\nfunction is_safari() {\n  return Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;\n}\n\n\nfunction is_android() {\n  var ua = navigator.userAgent.toLowerCase();\n\n  return (ua.indexOf(\"android\") > -1);\n}\n\nfunction select_all(el) {\n  if (typeof window.getSelection !== \"undefined\" && typeof document.createRange !== \"undefined\") {\n    var range = document.createRange();\n    range.selectNodeContents(el);\n    var sel = window.getSelection();\n    sel.removeAllRanges();\n    sel.addRange(range);\n  } else if (typeof document.selection !== \"undefined\" && typeof document.body.createTextRange !== \"undefined\") {\n    var textRange = document.body.createTextRange();\n    textRange.moveToElementText(el);\n    textRange.select();\n  }\n}\n\nfunction is_android_good() {\n\n\n}\n\nfunction htmlEncode(arg) {\n  return jQuery('<div/>').text(arg).html();\n}\n\nfunction dzsap_generate_keyboard_tooltip(keyboard_controls, lab) {\n\n\n  var structureDzsTooltipCommentAfterSubmit = '<span class=\"dzstooltip color-dark-light talign-start transition-slidein arrow-bottom style-default\" style=\"width: auto;  white-space:nowrap;\"><span class=\"dzstooltip--inner\">' + 'Shortcut' + ': ' + keyboard_controls[lab] + '</span></span>';\n\n  structureDzsTooltipCommentAfterSubmit = structureDzsTooltipCommentAfterSubmit.replace('32', 'space');\n  structureDzsTooltipCommentAfterSubmit = structureDzsTooltipCommentAfterSubmit.replace('27', 'escape');\n\n  return structureDzsTooltipCommentAfterSubmit;\n\n\n}\n\n\n/**\n *\n * @param hex\n * @param {number|null} targetAlpha 0-1\n * @returns {string}\n */\nfunction hexToRgb(hex, targetAlpha = null) {\n  var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n  var str = '';\n  if (result) {\n    result = {\n      r: parseInt(result[1], 16),\n      g: parseInt(result[2], 16),\n      b: parseInt(result[3], 16)\n    };\n\n\n    var alpha = 1;\n\n    if (targetAlpha !== null) {\n      alpha = targetAlpha;\n    }\n\n\n    str = 'rgba(' + result.r + ',' + result.g + ',' + result.b + ',' + alpha + ')';\n  }\n\n\n  return str;\n\n\n}\n\nfunction assignHelperFunctionsToJquery($) {\n\n\n  Math.easeIn = function (t, b, c, d) {\n    return -c * (t /= d) * (t - 2) + b;\n  };\n\n\n  /**\n   *\n   * @param {string} argfind\n   * @param {string} arg\n   * @returns {string}\n   */\n  const checkIfHasClass = (argfind, arg) => {\n\n    if (!argfind) {\n      var regex = new RegExp('class=\"(.*?)\"');\n      var auxarr = regex.exec(arg);\n\n\n      if (auxarr && auxarr[1]) {\n        argfind = '.' + auxarr[1];\n      }\n    }\n\n    return argfind;\n  }\n  $.fn.prependOnce = function (arg, argfind) {\n    var _t = $(this)\n\n\n    argfind = checkIfHasClass(argfind, arg);\n\n\n    if (_t.children(argfind).length < 1) {\n      _t.prepend(arg);\n      return true;\n    }\n    return false;\n  };\n  $.fn.appendOnce = function (arg, argfind) {\n    var _t = $(this)\n\n    argfind = checkIfHasClass(argfind, arg);\n\n    if (_t.children(argfind).length < 1) {\n      _t.append(arg);\n      return true;\n    }\n    return false;\n  };\n};\n\n\nfunction registerTextWidth($) {\n\n  $.fn.textWidth = function () {\n    var _t = jQuery(this);\n    var html_org = _t.html();\n    if (_t[0].nodeName === 'INPUT') {\n      html_org = _t.val();\n    }\n    var html_calcS = '<span class=\"forcalc\">' + html_org + '</span>';\n    jQuery('body').append(html_calcS);\n    var _lastspan = jQuery('span.forcalc').last();\n\n    _lastspan.css({\n      'font-size': _t.css('font-size'),\n      'font-family': _t.css('font-family')\n    })\n    var width = _lastspan.width();\n\n    _lastspan.remove();\n    return width;\n  };\n}\n\nfunction player_checkIfWeShouldShowAComment(selfClass, real_time_curr, real_time_total) {\n\n  var $ = jQuery;\n  var timer_curr_perc = Math.round((real_time_curr / real_time_total) * 100) / 100;\n  if (selfClass.audioType === 'fake') {\n    timer_curr_perc = Math.round((selfClass.timeCurrent / selfClass.timeTotal) * 100) / 100;\n  }\n  if (selfClass._commentsHolder) {\n    selfClass._commentsHolder.children().each(function () {\n      var _t = $(this);\n      if (_t.hasClass('dzstooltip-con')) {\n        var _t_posx = _t.offset().left - selfClass._commentsHolder.offset().left;\n\n\n        var aux = Math.round((parseFloat(_t_posx) / selfClass._commentsHolder.outerWidth()) * 100) / 100;\n\n\n        if (aux) {\n\n          if (Math.abs(aux - timer_curr_perc) < 0.02) {\n            selfClass._commentsHolder.find('.dzstooltip').removeClass('active');\n            _t.find('.dzstooltip').addClass('active');\n          } else {\n            _t.find('.dzstooltip').removeClass('active');\n          }\n        }\n      }\n    })\n  }\n}\n\n\nfunction sanitizeObjectForChangeMediaArgs(_sourceForChange) {\n\n  var changeMediaArgs = {};\n  var _feed_fakePlayer = _sourceForChange;\n\n  var lab = '';\n\n  if (_sourceForChange.data('original-settings')) {\n    return _sourceForChange.data('original-settings');\n  }\n\n\n  changeMediaArgs.source = null;\n  if (_feed_fakePlayer.attr('data-source')) {\n    changeMediaArgs.source = _feed_fakePlayer.attr('data-source')\n  } else {\n\n    if (_feed_fakePlayer.attr('href')) {\n      changeMediaArgs.source = _feed_fakePlayer.attr('href');\n    }\n  }\n\n  if (_feed_fakePlayer.attr('data-pcm')) {\n    changeMediaArgs.pcm = _feed_fakePlayer.attr('data-pcm');\n  }\n\n\n  lab = 'thumb';\n  if (_feed_fakePlayer.attr('data-' + lab)) {\n    changeMediaArgs[lab] = _sourceForChange.attr('data-' + lab);\n  }\n\n  lab = 'playerid';\n  if (_feed_fakePlayer.attr('data-' + lab)) {\n    changeMediaArgs[lab] = _sourceForChange.attr('data-' + lab);\n  }\n  lab = 'type';\n  if (_feed_fakePlayer.attr('data-' + lab)) {\n    changeMediaArgs[lab] = _sourceForChange.attr('data-' + lab);\n  }\n\n\n  if (_feed_fakePlayer.attr('data-thumb_link')) {\n    changeMediaArgs.thumb_link = _sourceForChange.attr('data-thumb_link');\n  }\n\n\n  if (_sourceForChange.find('.meta-artist').length > 0 || _sourceForChange.find('.meta-artist-con').length > 0) {\n\n    changeMediaArgs.artist = _sourceForChange.find('.the-artist').eq(0).html();\n    changeMediaArgs.song_name = _sourceForChange.find('.the-name').eq(0).html();\n  }\n\n\n  if (_sourceForChange.attr('data-thumb_for_parent')) {\n    changeMediaArgs.thumb = _sourceForChange.attr('data-thumb_for_parent');\n  }\n\n\n  if (_sourceForChange.find('.feed-song-name').length > 0 || _sourceForChange.find('.feed-artist-name').length > 0) {\n    changeMediaArgs.artist = _sourceForChange.find('.feed-artist-name').eq(0).html();\n    changeMediaArgs.song_name = _sourceForChange.find('.feed-song-name').eq(0).html();\n  }\n\n\n  return changeMediaArgs;\n}\n\n\nfunction utils_sanitizeToColor(colorString) {\n  if (colorString.indexOf('#') === -1 && colorString.indexOf('rgb') === -1 && colorString.indexOf('hsl') === -1) {\n    return '#' + colorString;\n  }\n  return colorString;\n}\n\nfunction dzsapInitjQueryRegisters() {\n}\n\nfunction player_radio_isNameUpdatable(selfClass, radio_update_song_name, targetKey) {\n\n  if (selfClass._metaArtistCon.find(targetKey).length && selfClass._metaArtistCon.find(targetKey).eq(0).text().length > 0) {\n\n    if (selfClass._metaArtistCon.find(targetKey).eq(0).html().indexOf('{{update}}') > -1) {\n      return true;\n    }\n  }\n\n\n  return false;\n}\n\nfunction playerRegisterWindowFunctions() {\n\n\n  window['dzsap_functions'] = {};\n  window['dzsap_functions']['send_total_time'] = function (argtime, argcthis) {\n\n\n    if (argtime && argtime !== Infinity) {\n      const data = {\n        action: 'dzsap_send_total_time_for_track',\n        id_track: argcthis.attr('data-playerid'),\n        postdata: Math.ceil(argtime)\n      };\n      jQuery.post(window.dzsap_ajaxurl, data, function (response) {\n      });\n    }\n\n  }\n\n\n  window.dzs_open_social_link = function (arg, argthis) {\n    var leftPosition, topPosition;\n    var w = 500, h = 500;\n\n    leftPosition = (window.screen.width / 2) - ((w / 2) + 10);\n\n    topPosition = (window.screen.height / 2) - ((h / 2) + 50);\n    var windowFeatures = \"status=no,height=\" + h + \",width=\" + w + \",resizable=yes,left=\" + leftPosition + \",top=\" + topPosition + \",screenX=\" + leftPosition + \",screenY=\" + topPosition + \",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no\";\n\n\n    arg = arg.replace('{{replacewithcurrurl}}', encodeURIComponent(window.location.href));\n\n    if (argthis && argthis.attr) {\n      arg = arg.replace(/{{replacewithdataurl}}/g, argthis.attr('data-url'));\n    }\n\n    const locationHref = window.location.href;\n\n\n    const auxa = locationHref.split('?');\n\n    let cid = '';\n    let cid_gallery = '';\n\n\n    if (argthis) {\n\n    } else {\n      if (window.dzsap_currplayer_from_share) {\n\n        argthis = window.dzsap_currplayer_from_share;\n      }\n    }\n\n\n    if (argthis) {\n\n      const $ = jQuery;\n\n      if ($(argthis).hasClass('audioplayer')) {\n        cid = $(argthis).parent().children().index(argthis);\n        cid_gallery = $(argthis).parent().parent().parent().attr('id');\n      } else {\n        if (jQuery(argthis).parent().parent().attr('data-menu-index')) {\n\n          cid = jQuery(argthis).parent().parent().attr('data-menu-index');\n        }\n        if (jQuery(argthis).parent().parent().attr('data-gallery-id')) {\n\n          cid_gallery = jQuery(argthis).parent().parent().attr('data-gallery-id');\n        }\n      }\n\n    }\n\n\n    var shareurl = encodeURIComponent(auxa[0] + '?fromsharer=on&audiogallery_startitem_' + cid_gallery + '=' + cid + '');\n    arg = arg.replace('{{shareurl}}', shareurl);\n\n\n    window.open(arg, \"sharer\", windowFeatures);\n  }\n\n\n  window.dzsap_wp_send_contor_60_secs = function (argcthis, argtitle) {\n\n    var data = {\n      video_title: argtitle\n\n      , video_analytics_id: argcthis.attr('data-playerid')\n      , curr_user: window.dzsap_curr_user\n    };\n    var theajaxurl = 'index.php?action=ajax_dzsap_submit_contor_60_secs';\n\n    if (window.dzsap_settings.dzsap_site_url) {\n\n      theajaxurl = dzsap_settings.dzsap_site_url + theajaxurl;\n    }\n\n\n    jQuery.ajax({\n      type: \"POST\",\n      url: theajaxurl,\n      data: data,\n      success: function (response) {\n\n\n      },\n      error: function (arg) {\n\n      }\n    });\n  }\n\n\n  window.dzsap_init_multisharer = function () {\n\n\n  }\n\n\n}\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction assignPcmData(selfClass) {\n\n  selfClass.pcmSource = string_jsonConvertToArray(selfClass.cthis.attr('data-pcm'));\n  if (selfClass.initOptions.skinwave_enableSpectrum === 'on') {\n    var pcmSourceLen = selfClass.pcmSource.length;\n    var desiredSize = 256;\n\n    for (var i = 0; i < pcmSourceLen; i++) {\n      if (i > desiredSize) {\n        continue;\n      }\n      selfClass.pcmSource[i] = selfClass.pcmSource[i * pcmSourceLen / desiredSize] * desiredSize;\n    }\n    selfClass.pcmSource.splice(desiredSize, pcmSourceLen - desiredSize); // removes 3rd element of array\n  }\n}\n\nfunction string_jsonConvertToArray(ar_str) {\n  let waves = [];\n  if (typeof (ar_str) == 'object') {\n    waves = ar_str;\n  } else {\n    try {\n      waves = JSON.parse(ar_str);\n    } catch (err) {\n\n    }\n  }\n\n  return waves;\n}\n\n/**\n * should be called only once on init\n */\nfunction dzsap_singleton_ready_calls() {\n\n  window.dzsap_singleton_ready_calls_is_called = true;\n\n\n  let $feed_dzsapMainSettings = null;\n  const $feed_dzsapMainSettingsAll = document.querySelectorAll('.dzsap-main-settings');\n  if ($feed_dzsapMainSettingsAll.length) {\n    $feed_dzsapMainSettings = $feed_dzsapMainSettingsAll[$feed_dzsapMainSettingsAll.length - 1];\n  }\n  if ($feed_dzsapMainSettings) {\n    window.dzsap_settings = JSON.parse($feed_dzsapMainSettings.innerHTML);\n    window.ajaxurl = window.dzsap_settings.ajax_url;\n    window.dzsap_curr_user = window.dzsap_settings.dzsap_curr_user;\n  }\n\n  jQuery('body').append('<style class=\"dzsap--style\"></style>');\n\n\n  window.dzsap__style = jQuery('.dzsap--style');\n\n\n  jQuery('audio.zoomsounds-from-audio').each(function () {\n    var _t = jQuery(this);\n    _t.after('<div class=\"audioplayer-tobe auto-init skin-silver\" data-source=\"' + _t.attr('src') + '\"></div>');\n    _t.remove();\n  })\n\n  jQuery(document).on('focus.dzsap', 'input', function () {\n    window.dzsap_currplayer_focused = null;\n  })\n\n  registerTextWidth(jQuery);\n\n  (0,_player_player_keyboard__WEBPACK_IMPORTED_MODULE_2__.dzsap_keyboardSetup)();\n}\n\nfunction jQueryAuxBindings($) {\n\n\n  function handleClick_onGlobalZoomSoundsButton(e) {\n    var $t = $(this);\n\n\n    e.preventDefault();\n    e.stopPropagation();\n    e.stopImmediatePropagation();\n\n    if ($t.hasClass('audioplayer-song-changer')) {\n      var _c = $($t.attr('data-fakeplayer')).eq(0);\n\n\n      if (_c && _c.get(0) && _c.get(0).api_change_media) {\n        _c.get(0).api_change_media($t, {\n          'feeder_type': 'button'\n          , 'call_from': 'changed audioplayer-song-changer'\n        });\n      }\n\n      return false;\n    }\n\n    if ($t.hasClass('dzsap-wishlist-but')) {\n\n\n      var data = {\n        action: 'dzsap_add_to_wishlist',\n        playerid: $t.attr('data-post_id'),\n        wishlist_action: 'add',\n      };\n\n\n      if ($t.find('.svg-icon').hasClass('fa-star')) {\n        data.wishlist_action = 'remove';\n      }\n\n\n      if (window.dzsap_lasto.settings_php_handler) {\n        $.ajax({\n          type: \"POST\",\n          url: window.dzsap_lasto.settings_php_handler,\n          data: data,\n          success: function (response) {\n\n\n            if ($t.find('.svg-icon').hasClass('fa-star-o')) {\n              $t.find('.svg-icon').eq(0).attr('class', 'svg-icon fa fa-star');\n            } else {\n\n              $t.find('.svg-icon').eq(0).attr('class', 'svg-icon fa fa-star-o');\n            }\n\n          },\n          error: function (arg) {\n\n          }\n        });\n      }\n\n      return false;\n\n\n    }\n\n  }\n\n\n  $(document).off('click.dzsap_metas')\n  $(document).on('click.dzsap_metas', '.audioplayer-song-changer, .dzsap-wishlist-but', handleClick_onGlobalZoomSoundsButton)\n\n\n}\n\n\n/**\n * for .zoomsounds-wrapper-bg-center\n * @param selfClass\n */\nfunction view_player_playMiscEffects(selfClass) {\n\n  selfClass.$conPlayPause.addClass('playing');\n\n  if (selfClass.cthis.parent().hasClass('zoomsounds-wrapper-bg-center')) {\n    selfClass.cthis.parent().addClass('is-playing');\n  }\n}\n\n\nfunction view_player_globalDetermineSyncPlayersIndex(selfClass) {\n\n  if (selfClass._sourcePlayer === null && window.dzsap_syncList_players) {\n    window.dzsap_syncList_players.forEach(($syncPlayer, index) => {\n      if (selfClass.cthis.attr('data-playerid') == $syncPlayer.attr('data-playerid')) {\n        window.dzsap_syncList_index = index;\n      }\n    })\n  }\n}\n\n\nfunction player_view_addMetaLoaded(selfClass) {\n\n  selfClass.cthis.addClass('meta-loaded');\n  selfClass.cthis.removeClass('meta-fake');\n  if (selfClass._sourcePlayer) {\n    selfClass._sourcePlayer.addClass('meta-loaded');\n    selfClass._sourcePlayer.removeClass('meta-fake');\n  }\n  if (selfClass.$totalTime) {\n\n    selfClass.timeModel.refreshTimes();\n    selfClass.$totalTime.html(formatTime(selfClass.timeModel.getVisualTotalTime()));\n  }\n  if (selfClass._sourcePlayer) {\n    selfClass._sourcePlayer.addClass('meta-loaded');\n  }\n}\n\n\n\nfunction htmlEntities(str) {\n  return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n}\n\nfunction waitForScriptToBeAvailableThenExecute(verifyVar, callbackFn) {\n\n  new Promise((resolve, reject) => {\n\n    var checkInterval = 0;\n\n    function checkIfVarExists() {\n      if (verifyVar) {\n        clearInterval(checkInterval);\n        resolve('var exists');\n      }\n    }\n\n    checkIfVarExists()\n    checkInterval = setInterval(checkIfVarExists, 300);\n    setTimeout(() => {\n      reject('timeout');\n    }, 5000);\n\n  }).then((resolve => {\n    callbackFn(resolve);\n  })).catch((err) => {\n  })\n}\n\n\n\n\nfunction player_reinit_findIfPcmNeedsGenerating(selfClass) {\n  const o = selfClass.initOptions;\n\n  if (selfClass.cthis.attr('data-pcm')) {\n    selfClass.hasInitialPcmData = true;\n  }\n\n  if (!selfClass.hasInitialPcmData && o.skinwave_wave_mode === 'canvas' && (o.design_skin === 'skin-wave' || selfClass.cthis.attr('data-fakeplayer'))) {\n    selfClass.isPcmRequiredToGenerate = true;\n  }\n\n\n  if (o.scrubbar_type === 'wave') {\n    if (o.is_inited_from_playlist) {\n\n      selfClass.cthis.addClass('scrubbar-type-wave--has-reveal-animation');\n    }\n    if (o.scrubbar_type_wave__has_reveal_animation === 'on') {\n\n      selfClass.cthis.addClass('scrubbar-type-wave--has-reveal-animation');\n    }\n    if (selfClass.isPcmRequiredToGenerate) {\n      selfClass.cthis.addClass('scrubbar-type-wave--has-reveal-animation');\n    }\n  }\n}\n\n\nfunction playerFunctions(selfClass, functionType) {\n  var o = selfClass.initOptions;\n\n  if (functionType === 'detectIds') {\n\n\n    if (o.skinwave_comments_playerid === '') {\n      if (typeof (selfClass.cthis.attr('id')) !== 'undefined') {\n        selfClass.the_player_id = selfClass.cthis.attr('id');\n      }\n    }\n\n\n    if (selfClass.the_player_id == '') {\n\n      if (selfClass.cthis.attr('data-computed-playerid')) {\n        selfClass.the_player_id = selfClass.cthis.attr('data-computed-playerid');\n      }\n      if (selfClass.cthis.attr('data-real-playerid')) {\n        selfClass.the_player_id = selfClass.cthis.attr('data-real-playerid');\n      }\n    }\n    selfClass.uniqueId = selfClass.the_player_id;\n\n    if (typeof selfClass.uniqueId === 'string') {\n      selfClass.uniqueId = selfClass.uniqueId.replace('ap', '');\n    }\n    selfClass.identifier_pcm = selfClass.uniqueId;\n\n\n    if (selfClass.uniqueId === '') {\n      o.skinwave_comments_enable = 'off';\n    }\n\n  }\n}\n\nfunction player_delete(selfClass) {\n\n  var _con = null;\n  if (selfClass.cthis.parent().parent().hasClass('dzsap-sticktobottom')) {\n    _con = selfClass.cthis.parent().parent();\n  }\n  if (_con) {\n    if (_con.prev().hasClass(\"dzsap-sticktobottom-placeholder\")) {\n      _con.prev().remove();\n    }\n    _con.remove();\n  }\n  selfClass.cthis.remove();\n  return false;\n}\n\n\n\nfunction sanitizeToHexColor(hexcolor) {\n  if (hexcolor.indexOf('#') === -1) {\n    hexcolor = '#' + hexcolor;\n  }\n  return hexcolor;\n}\n\nfunction player_identifySource(selfClass) {\n\n  selfClass.data_source = selfClass.cthis.attr('data-source') || '';\n}\n\nfunction player_identifyTypes(selfClass) {\n\n\n  var o = selfClass.initOptions;\n  const cthis = selfClass.cthis;\n  if (cthis.attr('data-type') === 'youtube') {\n    o.type = 'youtube';\n    selfClass.audioType = 'youtube';\n  }\n  if (cthis.attr('data-type') === 'soundcloud') {\n    o.type = 'soundcloud';\n    selfClass.audioType = 'soundcloud';\n\n    o.skinwave_enableSpectrum = 'off';\n    cthis.removeClass('skin-wave-is-spectrum');\n  }\n  if (cthis.attr('data-type') === 'mediafile') {\n    o.type = 'audio';\n    selfClass.audioType = 'audio';\n  }\n\n  if (cthis.attr('data-type') === 'shoutcast') {\n    o.type = 'shoutcast';\n    selfClass.audioType = 'audio';\n    o.disable_timer = 'on';\n    o.skinwave_enableSpectrum = 'off';\n\n    if (!cthis.attr('data-streamtype')) {\n\n      selfClass.audioTypeSelfHosted_streamType = 'shoutcast';\n    }\n\n\n    if (o.design_skin === 'skin-default') {\n      o.disable_scrub = 'on';\n    }\n\n  }\n\n\n  if (selfClass.audioType === 'audio' || selfClass.audioType === 'normal' || selfClass.audioType === '') {\n    selfClass.audioType = 'selfHosted';\n  }\n\n\n  if (String(selfClass.data_source).indexOf('https://soundcloud.com/') > -1) {\n    selfClass.audioType = 'soundcloud';\n  }\n}\n\n\n\nfunction player_getPlayFromTime(selfClass) {\n\n  selfClass.playFrom = selfClass.initOptions.playfrom;\n\n  if ((0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_0__.isValid)(selfClass.cthis.attr('data-playfrom'))) {\n    selfClass.playFrom = selfClass.cthis.attr('data-playfrom');\n  }\n\n  if (isNaN(parseInt(selfClass.playFrom, 10)) === false) {\n    selfClass.playFrom = parseInt(selfClass.playFrom, 10);\n  }\n\n\n  if (selfClass.playFrom === 'off' || selfClass.playFrom === '') {\n    if (get_query_arg(window.location.href, 'audio_time')) {\n      selfClass.playFrom = sanitizeToIntFromPointTime(get_query_arg(window.location.href, 'audio_time'));\n    }\n  }\n\n  if (selfClass.timeModel.sampleTimeStart) {\n    if (selfClass.playFrom < selfClass.timeModel.sampleTimeStart) {\n      selfClass.playFrom = selfClass.timeModel.sampleTimeStart;\n    }\n    if (typeof selfClass.playFrom === 'string') {\n      selfClass.playFrom = selfClass.timeModel.sampleTimeStart;\n    }\n  }\n}\n\n\nfunction sanitizeToIntFromPointTime(arg) {\n\n\n  arg = String(arg).replace('%3A', ':');\n  arg = String(arg).replace('#', '');\n\n  if (arg && String(arg).indexOf(':') > -1) {\n\n    var arr = /(\\d.*):(\\d.*)/g.exec(arg);\n\n\n    var m = parseInt(arr[1], 10);\n    var s = parseInt(arr[2], 10);\n\n\n    return (m * 60) + s;\n  } else {\n    return Number(arg);\n  }\n}\n\n\n/**\n * called in player init()\n * @param {DzsAudioPlayer} selfClass\n */\nfunction player_determineStickToBottomContainer(selfClass) {\n\n  let $conTest = selfClass.cthis.parent();\n\n\n\n  if ($conTest.hasClass(_configs_constants__WEBPACK_IMPORTED_MODULE_3__.DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM)) {\n    selfClass.$stickToBottomContainer = $conTest;\n    selfClass.isStickyPlayer = true;\n\n  }\n  $conTest = selfClass.cthis.parent().parent();\n  if ($conTest.hasClass(_configs_constants__WEBPACK_IMPORTED_MODULE_3__.DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM)) {\n    selfClass.$stickToBottomContainer = $conTest;\n    selfClass.isStickyPlayer = true;\n  }\n}\n\n\n/**\n *\n * todo: maybe move\n * @param {DzsAudioPlayer} selfClass\n */\nfunction player_stickToBottomContainerDetermineClasses(selfClass) {\n\n  if (selfClass.$stickToBottomContainer) {\n    if (selfClass.cthis.hasClass('theme-dark')) {\n      selfClass.$stickToBottomContainer.addClass('theme-dark');\n    }\n\n    setTimeout(function () {\n\n      selfClass.$stickToBottomContainer.addClass('inited');\n    }, 500)\n\n\n  }\n\n}\n\nfunction player_service_getSourceProtection(selfClass) {\n\n  return new Promise((resolve, reject) => {\n\n    jQuery.ajax({\n      type: \"POST\",\n      url: selfClass.data_source,\n      data: {},\n      success: function (response) {\n        resolve(response);\n      },\n      error: function (err) {\n        reject(err);\n      }\n    });\n  })\n}\n\nfunction player_isGoingToSetupMediaNow(selfClass) {\n  return selfClass.audioTypeSelfHosted_streamType !== 'icecast' && selfClass.audioType !== 'youtube';\n}\n\n\nfunction player_stopOtherPlayers(dzsap_list, selfClass) {\n\n  let i = 0;\n  for (i = 0; i < dzsap_list.length; i++) {\n\n    if (dzsap_list[i].get(0) && dzsap_list[i].get(0).api_pause_media && (dzsap_list[i].get(0) != selfClass.cthis.get(0))) {\n\n\n      if (dzsap_list[i].data('type_audio_stop_buffer_on_unfocus') && dzsap_list[i].data('type_audio_stop_buffer_on_unfocus') === 'on') {\n        dzsap_list[i].get(0).api_destroy_for_rebuffer();\n      } else {\n        dzsap_list[i].get(0).api_pause_media({\n          'audioapi_setlasttime': false\n        });\n      }\n    }\n  }\n}\n\n\nfunction player_syncPlayers_gotoItem(selfClass, targetIncrement) {\n  if (window.dzsap_settings.syncPlayers_autoplayEnabled) {\n\n    for (let keySyncPlayer in window.dzsap_syncList_players) {\n      let $playerInSyncList = selfClass.cthis;\n\n      if (selfClass._sourcePlayer) {\n        $playerInSyncList = selfClass._sourcePlayer;\n      }\n\n\n      if (window.dzsap_syncList_players[keySyncPlayer].get(0) === $playerInSyncList.get(0)) {\n\n        keySyncPlayer = parseInt(keySyncPlayer, 10);\n        let targetIndex = window.dzsap_syncList_index + targetIncrement;\n        if (targetIndex >= 0 && targetIndex < window.dzsap_syncList_players.length) {\n          const $currentSyncPlayer_ = window.dzsap_syncList_players[targetIndex].get(0);\n\n\n          if ($currentSyncPlayer_ && $currentSyncPlayer_.api_play_media) {\n            setTimeout(function () {\n              $currentSyncPlayer_.api_play_media({\n                'called_from': 'api_sync_players_prev'\n              });\n            }, 200);\n\n          }\n        }\n      }\n    }\n  }\n\n}\n\nfunction player_syncPlayers_buildList() {\n\n  if (!window.syncPlayers_isDzsapListBuilt) {\n\n    window.dzsap_syncList_players = [];\n\n    window.syncPlayers_isDzsapListBuilt = true;\n\n    jQuery('.audioplayer.is-single-player,.audioplayer-tobe.is-single-player').each(function () {\n      var _t23 = jQuery(this);\n\n\n      if (_t23.hasClass(_configs_constants__WEBPACK_IMPORTED_MODULE_3__.DZSAP_PLAYER_CLASS_FOOTER_PLAYER)) {\n        return;\n      }\n\n\n      if (_t23.attr('data-do-not-include-in-list') !== 'on') {\n        window.dzsap_syncList_players.push(_t23);\n      }\n    })\n\n\n    clearTimeout(window.syncPlayers_buildTimeout);\n\n    window.syncPlayers_buildTimeout = setTimeout(function () {\n      window.syncPlayers_isDzsapListBuilt = false;\n    }, 500);\n\n  }\n}\n\n\n\nfunction convertPluginOptionsToFinalOptions(elThis, defaultOptions, argOptions = null, searchedAttr = 'data-options', $es) {\n\n  var finalOptions = null;\n  var tempOptions = {};\n  var isSetFromJson = false;\n\n  if ($es === undefined) {\n    $es = jQuery;\n  }\n\n\n  var $elThis = $es(elThis);\n\n  const isArgOptionsDefinedViaJs = Boolean(argOptions && typeof argOptions === 'object' && Object.keys(argOptions).length);\n\n\n  if (isArgOptionsDefinedViaJs) {\n    tempOptions = argOptions;\n  } else {\n    if ($elThis.attr(searchedAttr)) {\n      try {\n        tempOptions = JSON.parse($elThis.attr(searchedAttr));\n        isSetFromJson = true;\n      } catch (err) {\n\n      }\n    }\n    if (!isSetFromJson) {\n      if (typeof $elThis.attr(searchedAttr) != 'undefined' && $elThis.attr('data-options') != '') {\n        let aux = $elThis.attr(searchedAttr);\n        aux = 'var aux_opts = ' + aux;\n        eval(aux);\n        tempOptions = Object.assign({}, argOptions);\n      }\n    }\n  }\n  finalOptions = Object.assign(defaultOptions, tempOptions);\n\n  return finalOptions;\n}\n\nfunction generateFakeArrayForPcm() {\n\n\n  var maxlen = 256;\n\n  var arr = [];\n\n  for (let it1 = 0; it1 < maxlen; it1++) {\n    arr[it1] = Math.random() * 100;\n\n  }\n\n  return arr;\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js":
/*!**********************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"pausebtn_svg\": () => (/* binding */ pausebtn_svg),\n/* harmony export */   \"playbtn_svg\": () => (/* binding */ playbtn_svg),\n/* harmony export */   \"svg_embed_btn\": () => (/* binding */ svg_embed_btn),\n/* harmony export */   \"svg_embed_button\": () => (/* binding */ svg_embed_button),\n/* harmony export */   \"svg_footer_playlist\": () => (/* binding */ svg_footer_playlist),\n/* harmony export */   \"svg_menu_state\": () => (/* binding */ svg_menu_state),\n/* harmony export */   \"svg_next_btn\": () => (/* binding */ svg_next_btn),\n/* harmony export */   \"svg_prev_btn\": () => (/* binding */ svg_prev_btn),\n/* harmony export */   \"svg_share_icon\": () => (/* binding */ svg_share_icon)\n/* harmony export */ });\n\n\n\nconst playbtn_svg = '<svg class=\"svg-icon\" version=\"1.2\" baseProfile=\"tiny\" id=\"Layer_1\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"25px\" height=\"30px\" viewBox=\"0 0 25 30\" xml:space=\"preserve\"> <path d=\"M24.156,13.195L2.406,0.25C2.141,0.094,1.867,0,1.555,0C0.703,0,0.008,0.703,0.008,1.562H0v26.875h0.008 C0.008,29.297,0.703,30,1.555,30c0.32,0,0.586-0.109,0.875-0.266l21.727-12.93C24.672,16.375,25,15.727,25,15 S24.672,13.633,24.156,13.195z\"/> </svg>';\nconst pausebtn_svg = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_3\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"12px\" height=\"13px\" viewBox=\"0 0 13.415 16.333\" enable-background=\"new 0 0 13.415 16.333\" xml:space=\"preserve\"> <path fill=\"#D2D6DB\" d=\"M4.868,14.59c0,0.549-0.591,0.997-1.322,0.997H2.2c-0.731,0-1.322-0.448-1.322-0.997V1.618 c0-0.55,0.592-0.997,1.322-0.997h1.346c0.731,0,1.322,0.447,1.322,0.997V14.59z\"/> <path fill=\"#D2D6DB\" d=\"M12.118,14.59c0,0.549-0.593,0.997-1.324,0.997H9.448c-0.729,0-1.322-0.448-1.322-0.997V1.619 c0-0.55,0.593-0.997,1.322-0.997h1.346c0.731,0,1.324,0.447,1.324,0.997V14.59z\"/> </svg>';\n\n\n\n\n\nconst svg_share_icon = '<svg class=\"svg-icon\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" version=\"1.1\" id=\"Capa_1\" x=\"0px\" y=\"0px\" width=\"512px\" height=\"512px\" viewBox=\"0 0 511.626 511.627\" style=\"enable-background:new 0 0 511.626 511.627;\" xml:space=\"preserve\"> <g> <path d=\"M506.206,179.012L360.025,32.834c-3.617-3.617-7.898-5.426-12.847-5.426s-9.233,1.809-12.847,5.426 c-3.617,3.619-5.428,7.902-5.428,12.85v73.089h-63.953c-135.716,0-218.984,38.354-249.823,115.06C5.042,259.335,0,291.03,0,328.907 c0,31.594,12.087,74.514,36.259,128.762c0.57,1.335,1.566,3.614,2.996,6.849c1.429,3.233,2.712,6.088,3.854,8.565 c1.146,2.471,2.384,4.565,3.715,6.276c2.282,3.237,4.948,4.859,7.994,4.859c2.855,0,5.092-0.951,6.711-2.854 c1.615-1.902,2.424-4.284,2.424-7.132c0-1.718-0.238-4.236-0.715-7.569c-0.476-3.333-0.715-5.564-0.715-6.708 c-0.953-12.938-1.429-24.653-1.429-35.114c0-19.223,1.668-36.449,4.996-51.675c3.333-15.229,7.948-28.407,13.85-39.543 c5.901-11.14,13.512-20.745,22.841-28.835c9.325-8.09,19.364-14.702,30.118-19.842c10.756-5.141,23.413-9.186,37.974-12.135 c14.56-2.95,29.215-4.997,43.968-6.14s31.455-1.711,50.109-1.711h63.953v73.091c0,4.948,1.807,9.232,5.421,12.847 c3.62,3.613,7.901,5.424,12.847,5.424c4.948,0,9.232-1.811,12.854-5.424l146.178-146.183c3.617-3.617,5.424-7.898,5.424-12.847 C511.626,186.92,509.82,182.636,506.206,179.012z\" fill=\"#696969\"/> </g></svg> ';\n\n\n\nconst svg_embed_button = ' <svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_1\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"10.975px\" height=\"14.479px\" viewBox=\"0 0 10.975 14.479\" enable-background=\"new 0 0 10.975 14.479\" xml:space=\"preserve\"> <g> <path d=\"M2.579,1.907c0.524-0.524,1.375-0.524,1.899,0l4.803,4.804c0.236-0.895,0.015-1.886-0.687-2.587L5.428,0.959 c-1.049-1.05-2.75-1.05-3.799,0L0.917,1.671c-1.049,1.05-1.049,2.751,0,3.801l3.167,3.166c0.7,0.702,1.691,0.922,2.587,0.686 L1.867,4.52c-0.524-0.524-0.524-1.376,0-1.899L2.579,1.907z M5.498,13.553c1.05,1.05,2.75,1.05,3.801,0l0.712-0.713 c1.05-1.05,1.05-2.75,0-3.8L6.843,5.876c-0.701-0.7-1.691-0.922-2.586-0.686l4.802,4.803c0.524,0.525,0.524,1.376,0,1.897 l-0.713,0.715c-0.523,0.522-1.375,0.522-1.898,0L1.646,7.802c-0.237,0.895-0.014,1.886,0.686,2.586L5.498,13.553z\"/> </g> </svg> ';\n\n\n\nconst svg_prev_btn = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_2\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"14px\" height=\"14px\" viewBox=\"0 0 12.5 12.817\" enable-background=\"new 0 0 12.5 12.817\" xml:space=\"preserve\"> <g> <g> <g> <path fill=\"#D2D6DB\" d=\"M2.581,7.375c-0.744-0.462-1.413-0.94-1.486-1.061C1.021,6.194,1.867,5.586,2.632,5.158l2.35-1.313 c0.765-0.427,1.505-0.782,1.646-0.789s0.257,1.03,0.257,1.905V7.87c0,0.876-0.051,1.692-0.112,1.817 C6.711,9.81,5.776,9.361,5.032,8.898L2.581,7.375z\"/> </g> </g> </g> <g> <g> <g> <path fill=\"#D2D6DB\" d=\"M6.307,7.57C5.413,7.014,4.61,6.441,4.521,6.295C4.432,6.15,5.447,5.42,6.366,4.906l2.82-1.577 c0.919-0.513,1.809-0.939,1.979-0.947s0.309,1.236,0.309,2.288v3.493c0,1.053-0.061,2.033-0.135,2.182S10.144,9.955,9.25,9.4 L6.307,7.57z\"/> </g> </g> </g> </svg>';\nconst svg_next_btn = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_2\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"14px\" height=\"14px\" viewBox=\"0 0 12.5 12.817\" enable-background=\"new 0 0 12.5 12.817\" xml:space=\"preserve\"> <g> <g> <g> <path fill=\"#D2D6DB\" d=\"M9.874,5.443c0.744,0.462,1.414,0.939,1.486,1.06c0.074,0.121-0.771,0.729-1.535,1.156L7.482,8.967 C6.719,9.394,5.978,9.75,5.837,9.756C5.696,9.761,5.581,8.726,5.581,7.851V4.952c0-0.875,0.05-1.693,0.112-1.816 c0.062-0.124,0.995,0.326,1.739,0.788L9.874,5.443z\"/> </g> </g> </g> <g> <g> <g> <path fill=\"#D2D6DB\" d=\"M6.155,5.248c0.893,0.556,1.696,1.129,1.786,1.274c0.088,0.145-0.928,0.875-1.847,1.389l-2.811,1.57 c-0.918,0.514-1.808,0.939-1.978,0.947c-0.169,0.008-0.308-1.234-0.308-2.287V4.66c0-1.052,0.061-2.034,0.135-2.182 s1.195,0.391,2.089,0.947L6.155,5.248z\"/> </g> </g> </g> </svg>';\n\n\n\n\n\nconst svg_menu_state = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_2\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"13.25px\" height=\"13.915px\" viewBox=\"0 0 13.25 13.915\" enable-background=\"new 0 0 13.25 13.915\" xml:space=\"preserve\"> <path d=\"M1.327,4.346c-0.058,0-0.104-0.052-0.104-0.115V2.222c0-0.063,0.046-0.115,0.104-0.115H11.58 c0.059,0,0.105,0.052,0.105,0.115v2.009c0,0.063-0.046,0.115-0.105,0.115H1.327z\"/> <path d=\"M1.351,8.177c-0.058,0-0.104-0.051-0.104-0.115V6.054c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.063-0.047,0.115-0.105,0.115H1.351z\"/> <path d=\"M1.351,12.182c-0.058,0-0.104-0.05-0.104-0.115v-2.009c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.064-0.047,0.115-0.105,0.115H1.351z\"/> </svg>';\nconst svg_embed_btn = '<svg class=\"svg-icon\" version=\"1.2\" baseProfile=\"tiny\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"15px\" height=\"15px\" viewBox=\"0 0 15 15\" xml:space=\"preserve\"> <g id=\"Layer_1\"> <polygon fill=\"#E6E7E8\" points=\"1.221,7.067 0.494,5.422 4.963,1.12 5.69,2.767 \"/> <polygon fill=\"#E6E7E8\" points=\"0.5,5.358 1.657,4.263 3.944,10.578 2.787,11.676 \"/> <polygon fill=\"#E6E7E8\" points=\"13.588,9.597 14.887,8.34 12.268,2.672 10.969,3.93 \"/> <polygon fill=\"#E6E7E8\" points=\"14.903,8.278 14.22,6.829 9.714,11.837 10.397,13.287 \"/> </g> <g id=\"Layer_2\"> <rect x=\"6.416\" y=\"1.713\" transform=\"matrix(0.9663 0.2575 -0.2575 0.9663 2.1699 -1.6329)\" fill=\"#E6E7E8\" width=\"1.805\" height=\"11.509\"/> </g> </svg>';\n\n\nconst svg_footer_playlist = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_2\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"13.25px\" height=\"13.915px\" viewBox=\"0 0 13.25 13.915\" enable-background=\"new 0 0 13.25 13.915\" xml:space=\"preserve\"> <path d=\"M1.327,4.346c-0.058,0-0.104-0.052-0.104-0.115V2.222c0-0.063,0.046-0.115,0.104-0.115H11.58 c0.059,0,0.105,0.052,0.105,0.115v2.009c0,0.063-0.046,0.115-0.105,0.115H1.327z\"/> <path d=\"M1.351,8.177c-0.058,0-0.104-0.051-0.104-0.115V6.054c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.063-0.047,0.115-0.105,0.115H1.351z\"/> <path d=\"M1.351,12.182c-0.058,0-0.104-0.05-0.104-0.115v-2.009c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.064-0.047,0.115-0.105,0.115H1.351z\"/> </svg>';\n\n\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_keyboard.js":
/*!**********************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_keyboard.js ***!
  \**********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"dzsap_generate_keyboard_controls\": () => (/* binding */ dzsap_generate_keyboard_controls),\n/* harmony export */   \"dzsap_keyboardSetup\": () => (/* binding */ dzsap_keyboardSetup),\n/* harmony export */   \"handle_keypresses\": () => (/* binding */ handle_keypresses)\n/* harmony export */ });\n/* harmony import */ var _configs_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../configs/_constants */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js\");\n\n\nconst dzsap_generate_keyboard_controls = function () {\n  let keyboard_controls = {\n    'play_trigger_step_back': 'off'\n    , 'step_back_amount': '5'\n    , 'step_back': '37'\n    , 'step_forward': '39'\n    , 'sync_players_goto_next': ''\n    , 'sync_players_goto_prev': ''\n    , 'pause_play': '32'\n    , 'show_tooltips': 'off'\n  }\n\n\n  const $keyboardControlsInfo = jQuery(_configs_constants__WEBPACK_IMPORTED_MODULE_0__.DZSAP_SCRIPT_SELECTOR_KEYBOARD);\n  if ($keyboardControlsInfo.length) {\n    window.dzsap_keyboard_controls = JSON.parse($keyboardControlsInfo.html());\n  }\n\n  if (window.dzsap_keyboard_controls) {\n    keyboard_controls = jQuery.extend(keyboard_controls, window.dzsap_keyboard_controls);\n  }\n\n  keyboard_controls.step_back_amount = Number(keyboard_controls.step_back_amount);\n\n\n  return keyboard_controls;\n};\n\n\nfunction handle_keypresses(e) {\n\n  if (window.dzsap_isTextFieldFocused) {\n    return;\n  }\n\n\n  function isKeyPressed(checkKeyCode) {\n    let isKeyPressed = false;\n    if (checkKeyCode.indexOf('ctrl+') > -1) {\n      if (e.ctrlKey) {\n        checkKeyCode = checkKeyCode.replace('ctrl+', '');\n        if (e.keyCode === Number(checkKeyCode)) {\n          isKeyPressed = true;\n        }\n      }\n    } else {\n      if (e.keyCode === Number(checkKeyCode)) {\n        isKeyPressed = true;\n      }\n    }\n    return isKeyPressed;\n  }\n\n  var $ = jQuery;\n\n  const keyboard_controls = $.extend({}, dzsap_generate_keyboard_controls());\n\n\n  if (dzsap_currplayer_focused && dzsap_currplayer_focused.api_pause_media) {\n\n    if (isKeyPressed(keyboard_controls.pause_play)) {\n      if (!$(dzsap_currplayer_focused).hasClass('comments-writer-active')) {\n        if ($(dzsap_currplayer_focused).hasClass('is-playing')) {\n          dzsap_currplayer_focused.api_pause_media();\n        } else {\n          dzsap_currplayer_focused.api_play_media();\n        }\n\n        if (window.dzsap_mouseover) {\n          e.preventDefault();\n          return false;\n        }\n      }\n    }\n\n    if (isKeyPressed(keyboard_controls.step_back)) {\n      dzsap_currplayer_focused.api_step_back(keyboard_controls.step_back_amount);\n    }\n\n    if (isKeyPressed(keyboard_controls.step_forward)) {\n      dzsap_currplayer_focused.api_step_forward(keyboard_controls.step_back_amount);\n    }\n\n    if (isKeyPressed(keyboard_controls.sync_players_goto_next)) {\n      dzsap_currplayer_focused.api_sync_players_goto_next();\n    }\n\n\n    if (isKeyPressed(keyboard_controls.sync_players_goto_prev)) {\n      dzsap_currplayer_focused.api_sync_players_goto_prev();\n    }\n\n\n  }\n}\n\n\n/**\n * called in singleton\n */\nconst dzsap_keyboardSetup = () => {\n\n  let $ = jQuery;\n\n  window.dzsap_isTextFieldFocused = false;\n\n  $(document).off('keydown.dzsapkeyup');\n  $(document).on('keydown.dzsapkeyup', handle_keypresses);\n\n\n  $(document).on('focus blur', 'textarea,input', function (e) {\n\n    if (e.type == 'focusin' || e.type == 'focus') {\n\n      window.dzsap_isTextFieldFocused = true;\n    }\n    if (e.type == 'focusout' || e.type == 'blur') {\n\n      window.dzsap_isTextFieldFocused = false;\n    }\n  });\n\n\n  $(document).on('keydown blur', '.zoomsounds-search-field', function (e) {\n    const _t = $(e.currentTarget);\n\n    setTimeout(function () {\n\n      if (_t) {\n        let $audioGallery = $('.audiogallery').eq(0);\n        if (_t.attr('data-target')) {\n          $audioGallery = $(_t.attr('data-target'));\n        }\n        if ($audioGallery.get(0) && $audioGallery.get(0).api_filter) {\n          $audioGallery.get(0).api_filter('title', _t.val());\n        }\n      }\n    }, 100);\n\n  });\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_keyboard.js?");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval devtool is used.
/******/ 	var __webpack_exports__ = __webpack_require__("../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/dzsap-wave-generator.sourcepack.js");
/******/ 	
/******/ })()
;