(()=>{var e={7157:()=>{},6378:()=>{},9966:()=>{},7412:()=>{},6550:()=>{},7625:()=>{},2113:()=>{},5072:e=>{"use strict";var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var o={},a=[],r=0;r<e.length;r++){var l=e[r],h=n.base?l[0]+n.base:l[0],c=o[h]||0,d="".concat(h," ").concat(c);o[h]=c+1;var u=i(d),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(m);else{var v=s(m,n);n.byIndex=r,t.splice(r,0,{identifier:d,updater:v,references:1})}a.push(d)}return a}function s(e,t){var i=t.domAPI(t);return i.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;i.update(e=t)}else i.remove()}}e.exports=function(e,s){var o=n(e=e||[],s=s||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var r=i(o[a]);t[r].references--}for(var l=n(e,s),h=0;h<o.length;h++){var c=i(o[h]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=l}}},7659:e=>{"use strict";var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,i)=>{"use strict";e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,"){")),i.media&&(n+="@media ".concat(i.media," {"));var s=void 0!==i.layer;s&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,s&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var o=i.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.nc=void 0,(()=>{"use strict";var e=i(5072),t=i.n(e),n=i(7825),s=i.n(n),o=i(7659),a=i.n(o),r=i(5056),l=i.n(r),h=i(540),c=i.n(h),d=i(1113),u=i.n(d),m=i(2113),v=i.n(m),g={};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=p(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}g.styleTagTransform=u(),g.setAttributes=l(),g.insert=a().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=c(),t()(v(),g),v()&&v().locals&&v().locals;var b,w,S,E,C=Object.freeze({MORE_SVG:'<svg height="48" viewBox="0 0 48 48" width="48"><path d="M0 0h48v48h-48z" fill="none"/><path d="M12 20c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm24 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-12 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"/></svg>',ARR_DOWN_SVG:'<svg height="48" viewBox="0 0 48 48" width="48"><path d="M14.83 16.42l9.17 9.17 9.17-9.17 2.83 2.83-12 12-12-12z"/><path d="M0-.75h48v48h-48z" fill="none"/></svg>',ZOOM_SVG:'<svg enable-background="new 0 0 32 32" id="Glyph" viewBox="0 0 32 32"><path d="M27.414,24.586l-5.077-5.077C23.386,17.928,24,16.035,24,14c0-5.514-4.486-10-10-10S4,8.486,4,14  s4.486,10,10,10c2.035,0,3.928-0.614,5.509-1.663l5.077,5.077c0.78,0.781,2.048,0.781,2.828,0  C28.195,26.633,28.195,25.367,27.414,24.586z M7,14c0-3.86,3.14-7,7-7s7,3.14,7,7s-3.14,7-7,7S7,17.86,7,14z" id="XMLID_223_"/></svg>',MAXIMIZE_SVG:'<svg fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/></svg>',NOTE_SVG:'<svg viewBox="0 0 58 94"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736   c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451   c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',VIMEO_SVG:'<svg enable-background="new 0 0 56.693 56.693" height="56.693px" viewBox="-5 -5 66.693 66.693" width="56.693px"><path d="M3.602,22.974l2.01,2.636c0,0,4.146-3.267,5.528-1.634c1.382,1.634,6.656,21.357,8.417,24.997  c1.537,3.192,5.777,7.413,10.426,4.397c4.646-3.014,20.098-16.205,22.863-31.781c2.764-15.574-18.594-12.313-20.854,1.256  c5.652-3.395,8.671,1.38,5.778,6.784c-2.889,5.399-5.527,8.921-6.908,8.921c-1.379,0-2.441-3.612-4.021-9.928  c-1.635-6.53-1.624-18.291-8.416-16.958C12.019,12.921,3.602,22.974,3.602,22.974z"/></svg>',YOU_TUBE_SVG:'<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24"><title/><path d="M21.80731,7.805a2.79915,2.79915,0,0,0-2.54907-2.53906C17.69061,5.13586,15.36707,5,12.50012,5c-3.45251,0-6.05865.14105-7.74353.27332A2.79932,2.79932,0,0,0,2.1925,7.815C2.08936,8.90021,2,10.33344,2,12.0423c0,1.66632.08862,3.07422.19128,4.14594a2.79852,2.79852,0,0,0,2.56384,2.53833C6.43994,18.85883,9.04657,19,12.50012,19c2.86694,0,5.19049-.13586,6.75812-.266a2.799,2.799,0,0,0,2.54907-2.539C21.91052,15.11548,22,13.69189,22,12S21.91052,8.88452,21.80731,7.805ZM9.77594,14.93878V9.06122L15.574,12Z"/></svg>',VIDEO_PRESS_SVG:'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="37" viewBox="0 0 50 37" fill="none"><g clip-path="url(#clip0_1652_12342)"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.81098 1.02393C6.95914 1.02393 8.84659 2.4426 9.43474 4.4993L15.2503 24.8354C15.2562 24.8561 15.2657 24.8749 15.278 24.8913L22.1676 1.02393H26.0219H36.676C44.1436 1.02393 49.1493 5.86043 49.1493 13.1824C49.1493 20.5883 44.0124 25.2064 36.3479 25.2064H31.2929H24.7791L23.5136 29.1059C22.3786 32.6028 19.1081 34.9725 15.4164 34.9725C11.7247 34.9725 8.45416 32.6028 7.31926 29.1059L0.236326 7.28084C-0.766674 4.19025 1.54834 1.02393 4.81098 1.02393ZM27.1334 17.9518H34.5097C37.71 17.9518 39.6303 16.1212 39.6303 13.1824C39.6303 10.2267 37.71 8.4802 34.5097 8.4802H30.2072L27.1334 17.9518Z"/></g></svg>',BOOKMARK_SVG:'<svg height="1792" viewBox="0 0 1792 1792" width="1792"><path d="M1420 128q23 0 44 9 33 13 52.5 41t19.5 62v1289q0 34-19.5 62t-52.5 41q-19 8-44 8-48 0-83-32l-441-424-441 424q-36 33-83 33-23 0-44-9-33-13-52.5-41t-19.5-62v-1289q0-34 19.5-62t52.5-41q21-9 44-9h1048z"/></svg>',HEART_SVG:'<svg enable-background="new 0 0 51 46" height="46px" viewBox="0 0 51 46" width="51px"><path d="M46.188,4.101c-5.529-5.53-14.495-5.53-20.023,0L25.39,4.875l-0.996-0.774c-5.529-5.53-14.715-5.53-20.245,0  C-1.38,9.63-1.27,18.595,4.26,24.125l18.753,18.643c0.671,0.671,1.4,1.258,2.376,1.766c0.76-0.508,1.483-1.095,2.155-1.766  l18.643-18.643C51.717,18.595,51.717,9.63,46.188,4.101z""/></svg>',HEART_2_SVG:'<svg enable-background="new 0 0 24 24" viewBox="0 0 24 24"><path d="M16.4,6c2,0,3.6,1.6,3.6,3.6c0,2-3.9,6.4-8,9.8c-4.1-3.5-8-7.9-8-9.8C4,7.6,5.6,6,7.6,6C10,6,12,9,12,9S13.9,6,16.4,6   M16.4,4C14.6,4,13,4.9,12,6.3C11,4.9,9.4,4,7.6,4C4.5,4,2,6.5,2,9.6C2,14,12,22,12,22s10-8,10-12.4C22,6.5,19.5,4,16.4,4L16.4,4z"/></svg>',COMENTS_SVG:'<svg style="enable-background:new 0 0 24 24;" viewBox="0 0 24 24"><g id="info"/><g id="icons"><path d="M20,1H4C1.8,1,0,2.8,0,5v10c0,2.2,1.8,4,4,4v3c0,0.9,1.1,1.3,1.7,0.7L9.4,19H20c2.2,0,4-1.8,4-4V5   C24,2.8,22.2,1,20,1z M14,13H8c-0.6,0-1-0.4-1-1c0-0.6,0.4-1,1-1h6c0.6,0,1,0.4,1,1C15,12.6,14.6,13,14,13z M16,9H8   C7.4,9,7,8.6,7,8c0-0.6,0.4-1,1-1h8c0.6,0,1,0.4,1,1C17,8.6,16.6,9,16,9z" id="message"/></g></svg>',COMENTS_2_SVG:'<svg enable-background="new 0 0 64 64" height="64px" viewBox="0 0 64 64" width="64px"><g><path d="M47.964,8.127H16.036c-4.4,0-8,3.6-8,8v20.977c0,4.4,3.6,8,8,8h7.397v10.768l13.333-10.768h11.197c4.4,0,8-3.6,8-8V16.127   C55.964,11.727,52.364,8.127,47.964,8.127z M50.964,37.104c0,1.626-1.374,3-3,3H36.767H35l-1.375,1.11l-5.191,4.193v-0.303v-5h-5   h-7.397c-1.626,0-3-1.374-3-3V16.127c0-1.626,1.374-3,3-3h31.928c1.626,0,3,1.374,3,3V37.104z"/><circle cx="21.743" cy="26.617" r="2.913"/><circle cx="32" cy="26.617" r="2.913"/><circle cx="42.256" cy="26.617" r="2.913"/></g></svg>',INFO_SVG:'<svg height="100px" id="Capa_1" style="enable-background:new 0 0 46 100;" viewBox="0 0 46 100" width="46px"><g><path d="M35.162,0c6.696,0,10.043,4.567,10.043,9.789c0,6.522-5.814,12.555-13.391,12.555c-6.344,0-10.045-3.752-9.869-9.947   C21.945,7.176,26.35,0,35.162,0z M14.543,100c-5.287,0-9.164-3.262-5.463-17.615l6.07-25.457c1.057-4.077,1.23-5.707,0-5.707   c-1.588,0-8.451,2.816-12.51,5.59L0,52.406C12.863,41.48,27.662,35.072,34.004,35.072c5.285,0,6.168,6.361,3.525,16.148   L30.58,77.98c-1.234,4.729-0.703,6.359,0.527,6.359c1.586,0,6.787-1.963,11.896-6.041L46,82.377C33.488,95.1,19.83,100,14.543,100z   "/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',DOWNLOAD_SVG:'<svg viewBox="0 0 24 24"><g id="info"/><g id="icons"><g id="save"><path d="M11.2,16.6c0.4,0.5,1.2,0.5,1.6,0l6-6.3C19.3,9.8,18.8,9,18,9h-4c0,0,0.2-4.6,0-7c-0.1-1.1-0.9-2-2-2c-1.1,0-1.9,0.9-2,2    c-0.2,2.3,0,7,0,7H6c-0.8,0-1.3,0.8-0.8,1.4L11.2,16.6z"/><path d="M19,19H5c-1.1,0-2,0.9-2,2v0c0,0.6,0.4,1,1,1h16c0.6,0,1-0.4,1-1v0C21,19.9,20.1,19,19,19z"/></g></g></svg>',DOWNLOAD_2_SVG:'<svg enable-background="new 0 0 64 64" height="64px" viewBox="0 0 64 64" width="64px"><g><path d="M40.001,36.254c0,3.299-2.673,5.971-5.97,5.971H29.97c-3.297,0-5.97-2.672-5.97-5.971H8v17c0,2.209,1.791,4,4,4h40   c2.209,0,4-1.791,4-4v-17H40.001z"/><path d="M31.916,33.246l7.608-7.452c0.747-0.733,0.506-1.327-0.543-1.327h-4.565V9.246c0-1.381-1.119-2.5-2.5-2.5   s-2.5,1.119-2.5,2.5v15.221h-4.565c-1.05,0-1.291,0.595-0.542,1.327L31.916,33.246z"/></g></svg>',LINK_SVG:'<svg height="1792" viewBox="0 0 1792 1792" width="1792"><path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/></svg>',LINK_2_SVG:'<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24"><title/><path d="M9.87012,5.541l4.26953,4.26953a2.02108,2.02108,0,0,1,0,2.855l-1.42383,1.42285,1.41406,1.415,1.42383-1.42334a4.02449,4.02449,0,0,0,0-5.68359L11.28418,4.127a4.01858,4.01858,0,0,0-5.68359,0L4.17676,5.55029a4.02212,4.02212,0,0,0,0,5.68311L5.59082,9.81934a2.02108,2.02108,0,0,1,0-2.855L7.01465,5.541A2.06778,2.06778,0,0,1,9.87012,5.541Z"/><path d="M19.82324,12.666l-1.41406,1.41406a2.02108,2.02108,0,0,1,0,2.855L16.98535,18.3584a2.06778,2.06778,0,0,1-2.85547,0L9.86035,14.08887a2.02108,2.02108,0,0,1,0-2.855L11.28418,9.811,9.87012,8.396,8.44629,9.81934a4.02449,4.02449,0,0,0,0,5.68359l4.26953,4.26953a4.01917,4.01917,0,0,0,5.68359.00049l1.42383-1.42334A4.02449,4.02449,0,0,0,19.82324,12.666Z"/></svg>',SHARE_SVG:'<svg height="1792" viewBox="0 0 1792 1792" width="1792"><path d="M1344 1024q133 0 226.5 93.5t93.5 226.5-93.5 226.5-226.5 93.5-226.5-93.5-93.5-226.5q0-12 2-34l-360-180q-92 86-218 86-133 0-226.5-93.5t-93.5-226.5 93.5-226.5 226.5-93.5q126 0 218 86l360-180q-2-22-2-34 0-133 93.5-226.5t226.5-93.5 226.5 93.5 93.5 226.5-93.5 226.5-226.5 93.5q-126 0-218-86l-360 180q2 22 2 34t-2 34l360 180q92-86 218-86z"/></svg>',SHARE_2_SVG:'<svg enable-background="new 0 0 64 64" height="64px" viewBox="0 0 64 64" width="64px"><path d="M48,39.26c-2.377,0-4.515,1-6.033,2.596L24.23,33.172c0.061-0.408,0.103-0.821,0.103-1.246c0-0.414-0.04-0.818-0.098-1.215  l17.711-8.589c1.519,1.609,3.667,2.619,6.054,2.619c4.602,0,8.333-3.731,8.333-8.333c0-4.603-3.731-8.333-8.333-8.333  s-8.333,3.73-8.333,8.333c0,0.414,0.04,0.817,0.098,1.215l-17.711,8.589c-1.519-1.609-3.666-2.619-6.054-2.619  c-4.603,0-8.333,3.731-8.333,8.333c0,4.603,3.73,8.333,8.333,8.333c2.377,0,4.515-1,6.033-2.596l17.737,8.684  c-0.061,0.407-0.103,0.821-0.103,1.246c0,4.603,3.731,8.333,8.333,8.333s8.333-3.73,8.333-8.333C56.333,42.99,52.602,39.26,48,39.26  z"/></svg>',FULL_SCREEN_SVG:'<svg height="14px" viewBox="0 0 14 14" width="14px"><title/><desc/><defs/><g fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g transform="translate(-215.000000, -257.000000)"><g transform="translate(215.000000, 257.000000)"><path d="M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z" id="Shape"/></g></g></g></svg>',NORMAL_SCREEN_SVG:'<svg height="14px" viewBox="0 0 14 14" width="14px"><g fill-rule="evenodd" stroke="none" stroke-width="1"><g id="Core" transform="translate(-257.000000, -257.000000)"><g id="fullscreen-exit" transform="translate(257.000000, 257.000000)"><path d="M0,11 L3,11 L3,14 L5,14 L5,9 L0,9 L0,11 L0,11 Z M3,3 L0,3 L0,5 L5,5 L5,0 L3,0 L3,3 L3,3 Z M9,14 L11,14 L11,11 L14,11 L14,9 L9,9 L9,14 L9,14 Z M11,3 L11,0 L9,0 L9,5 L14,5 L14,3 L11,3 L11,3 Z" id="Shape"/></g></g></g></svg>',CLOSE_SVG:'<svg height="512px"  viewBox="0 0 512 512" width="512px"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5  c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9  c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>',VIEW_SVG:'<svg enable-background="new 0 0 167 93" height="93px" viewBox="0 0 167 93" width="167px"><g><path d="M83.25,29.25c-9.649,0-17.5,7.851-17.5,17.5s7.851,17.5,17.5,17.5s17.5-7.851,17.5-17.5   S92.899,29.25,83.25,29.25z"/><path d="M83.25,0.75c-45.84,0-83,46-83,46s37.16,46,83,46s83-46,83-46S129.09,0.75,83.25,0.75z M83.25,81.25   c-19.054,0-34.5-15.445-34.5-34.5c0-19.054,15.446-34.5,34.5-34.5s34.5,15.446,34.5,34.5C117.75,65.805,102.304,81.25,83.25,81.25z   "/></g></svg>',FB_SVG_COLOR:'<svg viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M27.6 3h-23.2c-.8 0-1.4.6-1.4 1.4v23.1c0 .9.6 1.5 1.4 1.5h12.5v-10.1h-3.4v-3.9h3.4v-2.9c0-3.4 2.1-5.2 5-5.2 1.4 0 2.7.1 3 .2v3.5h-2.1c-1.6 0-1.9.8-1.9 1.9v2.5h3.9l-.5 3.9h-3.4v10.1h6.6c.8 0 1.4-.6 1.4-1.4v-23.2c.1-.8-.5-1.4-1.3-1.4z"></path></svg>',FB_SVG:'<svg enable-background="new 0 0 32 32" viewBox="0 0 32 32"><g id="Flat_copy"><path d="M11.848,32h6.612V15.998h4.411l0.584-5.514H18.46l0.007-2.761c0-1.437,0.137-2.209,2.2-2.209h2.757V0h-4.412   c-5.299,0-7.164,2.675-7.164,7.174v3.311H8.545v5.515h3.303V32z"/></g></svg>',TW_SVG:'<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1227" viewBox="0 0 1200 1227" fill="none"><g><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/></g></svg>',PIN_SVG:'<svg viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M16 3c-7.2 0-13 5.8-13 13 0 5.5 3.4 10.2 8.3 12.1-.1-1-.2-2.6 0-3.7.2-1 1.5-6.5 1.5-6.5s-.4-.8-.4-1.9c0-1.8 1-3.2 2.4-3.2 1.1 0 1.6.8 1.6 1.8 0 1.1-.7 2.8-1.1 4.3-.3 1.3.6 2.3 1.9 2.3 2.3 0 4.1-2.4 4.1-6 0-3.1-2.2-5.3-5.4-5.3-3.7 0-5.9 2.8-5.9 5.6 0 1.1.4 2.3 1 3 .1.1.1.2.1.4-.1.4-.3 1.3-.4 1.5-.1.2-.2.3-.4.2-1.6-.8-2.6-3.1-2.6-5 0-4.1 3-7.9 8.6-7.9 4.5 0 8 3.2 8 7.5 0 4.5-2.8 8.1-6.7 8.1-1.3 0-2.6-.7-3-1.5 0 0-.7 2.5-.8 3.1-.3 1.1-1.1 2.5-1.6 3.4 1.2.4 2.5.6 3.8.6 7.2 0 13-5.8 13-13 0-7.1-5.8-12.9-13-12.9z"></path></svg>',NEXT_ARR:'<svg height="512px" viewBox="0 0 512 512" width="512px"><polygon points="160,115.4 180.7,96 352,256 180.7,416 160,396.7 310.5,256 "/></svg>',PREV_ARR:'<svg height="512px" viewBox="0 0 512 512" width="512px"><polygon points="352,115.4 331.3,96 160,256 331.3,416 352,396.7 201.5,256 "/></svg>',ZOOM_IN_SVG:'<svg enable-background="new 0 0 512 512" height="512px" viewBox="0 0 512 512" width="512px"><path d="M497.913,497.914c-18.782,18.781-49.226,18.781-68.008,0l-84.862-84.864c-34.89,22.366-76.131,35.718-120.66,35.718  C100.468,448.768,0,348.314,0,224.384C0,100.454,100.468,0,224.383,0c123.931,0,224.384,100.453,224.384,224.384  c0,44.529-13.353,85.771-35.718,120.675l84.863,84.849C516.695,448.689,516.695,479.131,497.913,497.914z M224.383,64.11  c-88.511,0-160.274,71.763-160.274,160.274c0,88.526,71.764,160.274,160.274,160.274c88.526,0,160.273-71.748,160.273-160.274  C384.656,135.873,312.909,64.11,224.383,64.11z M256.438,320.548h-64.108v-64.109H128.22V192.33h64.109v-64.11h64.108v64.11h64.11  v64.109h-64.11V320.548z"/></svg>',ZOOM_OUT_SVG:'<svg enable-background="new 0 0 512 512" height="512px" viewBox="0 0 512 512" width="512px"><g><g><path d="M497.913,429.906l-84.863-84.848c22.365-34.903,35.718-76.146,35.718-120.676C448.768,100.453,348.314,0,224.383,0    C100.468,0,0,100.453,0,224.384s100.468,224.384,224.383,224.384c44.529,0,85.771-13.352,120.66-35.718l84.862,84.864    c18.782,18.781,49.226,18.781,68.008,0C516.695,479.131,516.695,448.689,497.913,429.906z M224.383,384.658    c-88.511,0-160.274-71.748-160.274-160.274c0-88.511,71.764-160.274,160.274-160.274c88.526,0,160.273,71.763,160.273,160.274    C384.656,312.91,312.909,384.658,224.383,384.658z M128.219,256.438h192.329v-64.109H128.219V256.438z"/></g></g></svg>',PLAY_SVG:'<svg height="512px" enable-background:new 0 0 512 512 viewBox="0 0 512 512" width="512px"><path d="M405.2,232.9L126.8,67.2c-3.4-2-6.9-3.2-10.9-3.2c-10.9,0-19.8,9-19.8,20H96v344h0.1c0,11,8.9,20,19.8,20  c4.1,0,7.5-1.4,11.2-3.4l278.1-165.5c6.6-5.5,10.8-13.8,10.8-23.1C416,246.7,411.8,238.5,405.2,232.9z"/></svg>',PAUSE_SVG:'<svg height="512px" enable-background:new 0 0 512 512 viewBox="0 0 512 512" width="512px"><g><path d="M224,435.8V76.1c0-6.7-5.4-12.1-12.2-12.1h-71.6c-6.8,0-12.2,5.4-12.2,12.1v359.7c0,6.7,5.4,12.2,12.2,12.2h71.6   C218.6,448,224,442.6,224,435.8z"/><path d="M371.8,64h-71.6c-6.7,0-12.2,5.4-12.2,12.1v359.7c0,6.7,5.4,12.2,12.2,12.2h71.6c6.7,0,12.2-5.4,12.2-12.2V76.1   C384,69.4,378.6,64,371.8,64z"/></g></svg>',USER_SVG:'<svg viewBox="0 0 24 24"><g id="info"/><g id="icons"><path d="M12,0C5.4,0,0,5.4,0,12c0,6.6,5.4,12,12,12s12-5.4,12-12C24,5.4,18.6,0,12,0z M12,4c2.2,0,4,2.2,4,5s-1.8,5-4,5   s-4-2.2-4-5S9.8,4,12,4z M18.6,19.5C16.9,21,14.5,22,12,22s-4.9-1-6.6-2.5c-0.4-0.4-0.5-1-0.1-1.4c1.1-1.3,2.6-2.2,4.2-2.7   c0.8,0.4,1.6,0.6,2.5,0.6s1.7-0.2,2.5-0.6c1.7,0.5,3.1,1.4,4.2,2.7C19.1,18.5,19.1,19.1,18.6,19.5z" id="user2"/></g></svg>',ATTENTION_SVG:'<svg enable-background="new 0 0 91.8 92.6" viewBox="0 0 91.8 92.6"><path d="M45.9,3.6c-23.5,0-42.5,19-42.5,42.5c0,23.5,19,42.5,42.5,42.5c23.5,0,42.5-19,42.5-42.5  C88.4,22.7,69.4,3.6,45.9,3.6z M43.7,21.1h4.3c0.5,0,0.9,0.4,0.9,0.9l-0.6,34.5c0,0.5-0.4,0.9-0.9,0.9h-3c-0.5,0-0.9-0.4-0.9-0.9  L42.8,22C42.8,21.5,43.2,21.1,43.7,21.1z M48.6,71.2c-0.8,0.8-1.7,1.1-2.7,1.1c-1,0-1.9-0.3-2.6-1c-0.8-0.7-1.3-1.8-1.3-2.9  c0-1,0.4-1.9,1.1-2.7c0.7-0.8,1.8-1.2,2.9-1.2c1.2,0,2.2,0.5,3,1.4c0.5,0.6,0.8,1.3,0.9,2.1C49.9,69.3,49.5,70.3,48.6,71.2z"/></svg>',POST_TYPE:'<svg height="1792" viewBox="0 0 1792 1792" width="1792"><path d="M1596 380q28 28 48 76t20 88v1152q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h896q40 0 88 20t76 48zm-444-244v376h376q-10-29-22-41l-313-313q-12-12-41-22zm384 1528v-1024h-416q-40 0-68-28t-28-68v-416h-768v1536h1280zm-1024-864q0-14 9-23t23-9h704q14 0 23 9t9 23v64q0 14-9 23t-23 9h-704q-14 0-23-9t-9-23v-64zm736 224q14 0 23 9t9 23v64q0 14-9 23t-23 9h-704q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h704zm0 256q14 0 23 9t9 23v64q0 14-9 23t-23 9h-704q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h704z"/></svg>',VIDEO_TYPE:'<svg height="1792" viewBox="0 0 1792 1792" width="1792"><path d="M1596 380q28 28 48 76t20 88v1152q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h896q40 0 88 20t76 48zm-444-244v376h376q-10-29-22-41l-313-313q-12-12-41-22zm384 1528v-1024h-416q-40 0-68-28t-28-68v-416h-768v1536h1280zm-640-896q52 0 90 38t38 90v384q0 52-38 90t-90 38h-384q-52 0-90-38t-38-90v-384q0-52 38-90t90-38h384zm492 2q20 8 20 30v576q0 22-20 30-8 2-12 2-14 0-23-9l-265-266v-90l265-266q9-9 23-9 4 0 12 2z"/></svg>',AUDIO_TYPE:'<svg height="1792" viewBox="0 0 1792 1792" width="1792"><path d="M1596 380q28 28 48 76t20 88v1152q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h896q40 0 88 20t76 48zm-444-244v376h376q-10-29-22-41l-313-313q-12-12-41-22zm384 1528v-1024h-416q-40 0-68-28t-28-68v-416h-768v1536h1280zm-788-814q20 8 20 30v544q0 22-20 30-8 2-12 2-12 0-23-9l-166-167h-131q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h131l166-167q16-15 35-7zm417 689q31 0 50-24 129-159 129-363t-129-363q-16-21-43-24t-47 14q-21 17-23.5 43.5t14.5 47.5q100 123 100 282t-100 282q-17 21-14.5 47.5t23.5 42.5q18 15 40 15zm-211-148q27 0 47-20 87-93 87-219t-87-219q-18-19-45-20t-46 17-20 44.5 18 46.5q52 57 52 131t-52 131q-19 20-18 46.5t20 44.5q20 17 44 17z"/></svg>',GRID_SVG:'<svg height="32" viewBox="0 0 32 32" width="32"><path d=" M2 2 L10 2 L10 10 L2 10z M12 2 L20 2 L20 10 L12 10z M22 2 L30 2 L30 10 L22 10z M2 12 L10 12 L10 20 L2 20z M12 12 L20 12 L20 20 L12 20z M22 12 L30 12 L30 20 L22 20z M2 22 L10 22 L10 30 L2 30z M12 22 L20 22 L20 30 L12 30z M22 22 L30 22 L30 30 L22 30z "/></svg>',SHOP_SVG:'<svg xmlns=height="24" viewBox="0 0 24 24" width="24"><circle cx="8" cy="21" r="3"></circle><circle cx="20" cy="21" r="3"></circle><path d="M5.67,6H23l-1.68,8.39a2,2,0,0,1-2,1.61H8.75a2,2,0,0,1-2-1.74L5.23,2.74A2,2,0,0,0,3.25,1H1"></path></svg>',EXPAND_SVG:'<svg enable-background="new 0 0 2048 2048" height="2048px" viewBox="0.0 0 1536.0 2048" width="1536.0px"><path d="M755,1184c0,8.667-3.333,16.333-10,23l-332,332l144,144c12.667,12.667,19,27.667,19,45s-6.333,32.333-19,45  s-27.667,19-45,19H64c-17.333,0-32.333-6.333-45-19s-19-27.667-19-45v-448c0-17.333,6.333-32.333,19-45s27.667-19,45-19  s32.333,6.333,45,19l144,144l332-332c6.667-6.667,14.333-10,23-10s16.333,3.333,23,10l114,114  C751.667,1167.667,755,1175.333,755,1184z M1536,320v448c0,17.333-6.333,32.333-19,45s-27.667,19-45,19s-32.333-6.333-45-19  l-144-144l-332,332c-6.667,6.667-14.333,10-23,10s-16.333-3.333-23-10L791,887c-6.667-6.667-10-14.333-10-23s3.333-16.333,10-23  l332-332L979,365c-12.667-12.667-19-27.667-19-45s6.333-32.333,19-45s27.667-19,45-19h448c17.333,0,32.333,6.333,45,19  S1536,302.667,1536,320z"/></svg>',REDUCE_SVG:'<svg enable-background="new 0 0 2048 2048" height="2048px" viewBox="13.0 0 1510.0 2048" width="1510.0px"><path d="M768,1088v448c0,17.333-6.333,32.333-19,45s-27.667,19-45,19s-32.333-6.333-45-19l-144-144l-332,332  c-6.667,6.667-14.333,10-23,10s-16.333-3.333-23-10L23,1655c-6.667-6.667-10-14.333-10-23s3.333-16.333,10-23l332-332l-144-144  c-12.667-12.667-19-27.667-19-45s6.333-32.333,19-45s27.667-19,45-19h448c17.333,0,32.333,6.333,45,19S768,1070.667,768,1088z   M1523,416c0,8.667-3.333,16.333-10,23l-332,332l144,144c12.667,12.667,19,27.667,19,45s-6.333,32.333-19,45s-27.667,19-45,19H832  c-17.333,0-32.333-6.333-45-19s-19-27.667-19-45V512c0-17.333,6.333-32.333,19-45s27.667-19,45-19s32.333,6.333,45,19l144,144  l332-332c6.667-6.667,14.333-10,23-10s16.333,3.333,23,10l114,114C1519.667,399.667,1523,407.333,1523,416z"/></svg>'}),_=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=this;this.mouseDetected=!1,this.mouseMoveHandler=function(){return function(e){window.removeEventListener("mousedown",t.mouseMoveHandler,!1),window.removeEventListener("touchstart",t.mouseMoveHandler,!1),"touchstart"===e.type?(e.stopPropagation(),t.mouseDetected=!1):t.mouseDetected=!0}},window.addEventListener("mousedown",this.mouseMoveHandler,!1),window.addEventListener("touchstart",this.mouseMoveHandler,!1)}return t=e,i=[{key:"ClassPref",get:function(){return"pgc-rev-utils-"}},{key:"ICONS",get:function(){return C}},{key:"createPreloaderView",value:function(t){var i=0,n=document.createElement("div");n.className="".concat(e.ClassPref,"preloader");var s=document.createElement("div");s.className="".concat(e.ClassPref,"static"),s.style.width="".concat(8,"px"),s.style.height="".concat(8,"px"),s.style.margin="".concat(-4,"px"),s.style.backgroundColor=t,n.appendChild(s);var o=document.createElement("div");o.className="".concat(e.ClassPref,"spinner"),o.style.position="absolute",o.style.width="".concat(36,"px"),o.style.height="".concat(36,"px"),o.style.margin="".concat(-18,"px");for(var a=0;a<8;a+=1){var r=document.createElement("div");r.className="".concat(e.ClassPref,"point"),r.style.marginTop="".concat(-4,"px"),r.style.marginLeft="".concat(-4,"px"),r.style.width="".concat(8,"px"),r.style.height="".concat(8,"px"),r.style.backgroundColor=t,r.style.transform="rotate(".concat(i,"deg) translate(").concat(18,"px)"),i+=45,o.appendChild(r)}return n.appendChild(o),n}},{key:"passiveListener",get:function(){if(void 0!==b)return b;var e=!1;try{var t={get:function(){e=!0}},i=Object.defineProperty({},"passive",t);window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(e){}return b=!!e&&{passive:!1,capture:!1}}},{key:"requestAnimationFrame",value:function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame;return t?t.call(window,e):window.setTimeout(e,1e3/60)}},{key:"cancelAnimationFrame",value:function(e){if(null!=e){var t=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelAnimationFrame||window.mozCancelRequestAnimationFrame||window.msCancelAnimationFrame;t?t.call(window,e):window.clearTimeout(e)}}},{key:"whichTransitionEventEnd",value:function(){var e=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},i=Object.keys(t);for(var n in i)if(void 0!==e.style[n])return t[n]}},{key:"Device",get:function(){if(w)return w;var e=window,t=e.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:e.cordova||e.phonegap,phonegap:e.cordova||e.phonegap,browser:{ie11:!1}},n=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),s=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=t.match(/(iPad).*OS\s([\d_]+)/),a=t.match(/(iPod)(.*OS\s([\d_]+))?/),r=!o&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(n&&(i.os="windows",i.osVersion=n[2],i.windows=!0),s&&!n&&(i.os="android",i.osVersion=s[2],i.android=!0,i.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(o||r||a)&&(i.os="ios",i.ios=!0),r&&!a&&(i.osVersion=r[2].replace(/_/g,"."),i.iphone=!0),o&&(i.osVersion=o[2].replace(/_/g,"."),i.ipad=!0),a&&(i.osVersion=a[3]?a[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&t.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),i.desktop=!(i.os||i.android||i.webView),i.webView=(r||o||a)&&t.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var l=i.osVersion.split("."),h=document.querySelector('meta[name="viewport"]');i.minimalUi=!i.webView&&(a||r)&&(1*l[0]==7?1*l[1]>=1:1*l[0]>7)&&h&&h.getAttribute("content").indexOf("minimal-ui")>=0}i.pixelRatio=e.devicePixelRatio||1,t.indexOf("Trident/7.0")>-1&&(i.browser.ie11=!0);var c=t.indexOf("Chrome")>-1;i.browser.explorer=t.indexOf("MSIE")>-1,i.browser.firefox=t.indexOf("Firefox")>-1;var d=t.indexOf("Safari")>-1,u=t.toLowerCase().indexOf("op")>-1;return i.browser.opera=u,i.browser.chrome=(!c||!u)&&c,i.browser.safari=(!c||!d)&&d,w=i}},{key:"preloadedAttributForVideo",get:function(){return e.Device.browser.safari?"auto":"metadata"}},{key:"isTouchDevice",get:function(){if(void 0!==S)return S;if(S=navigator.maxTouchPoints&&navigator.maxTouchPoints>0||"ontouchstart"in window)return S;try{document.createEvent("TouchEvent"),S=!0}catch(e){S=!1}return S}},{key:"isiPpad",get:function(){return 768===window.screen.height&&1024===window.screen.width||1024===window.screen.height&&768===window.screen.width||1366===window.screen.height&&1024===window.screen.width||1024===window.screen.height&&1366===window.screen.width}},{key:"getScrollbarWidth",get:function(){if(void 0!==E)return E;var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var i=document.createElement("div");i.style.width="100%",e.appendChild(i);var n=i.offsetWidth;return e.parentNode.removeChild(e),E=t-n}},{key:"hasScrollbar",get:function(){var e="BackCompat"===document.compatMode?document.body:document.documentElement;return e.scrollHeight>e.clientHeight}},{key:"miniScreen",get:function(){return window.screen.height<500||window.screen.width<500}},{key:"addParamsToURL",value:function(t,i,n){if(e.Device.browser.ie11)return"".concat(t+(t.indexOf("?")>=0?"&":"?")+encodeURIComponent(i),"=").concat(encodeURIComponent(n));var s=(t=new URL(t)).search,o=new URLSearchParams(s);return o.append(i,n),t.search=o.toString(),t.toString()}},{key:"youTubeCode",get:function(){return'<iframe src="https://www.youtube.com/embed/%id%?autoplay=1&rel=0&showinfo=0&wmode=transparent" allow="autoplay" frameborder="0" allowfullscreen></iframe>'}},{key:"vimeoCode",get:function(){return'<iframe data-id="sgb-video-player" src="https://player.vimeo.com/video/%id%?%hash%autoplay=1&byline=0&portrait=0&transparent=0" frameborder="0" allowfullscreen allow=autoplay></iframe>'}},{key:"videopressCode",get:function(){return'<iframe data-id="sgb-video-player" src="https://videopress.com/embed/%id%?autoplay=1%params%" frameborder="0" allow="autoplay; fullscreen"></iframe>'}},{key:"mediaEl",value:function(t){var i=document.createElement(t);return i.className="thumb-".concat(t,"-content"),i.setAttribute("preload","metadata"),i.setAttribute("controlsList","nodownload"),"video"===t&&(i.setAttribute("preload",e.Device.browser.safari||e.Device.browser.opera?"auto":"metadata"),i.setAttribute("webkit-playsinline",""),i.setAttribute("playsinline","")),i}},{key:"embedVideoEl",value:function(e,t,i){var n=document.createElement("iframe");if(n.setAttribute("allow","autoplay"),n.setAttribute("allowfullscreen",""),n.setAttribute("frameborder","0"),"youtube"===e)n.src="https://www.youtube.com/embed/".concat(t,"?autoplay=1&rel=0&showinfo=0&wmode=transparent");else if("vimeo"===e){var s=i?"h="+i+"&":"";n.src="https://player.vimeo.com/video/".concat(t,"?").concat(s,"autoplay=1&byline=0&portrait=0&transparent=0")}else"videopress"===e&&(n.src="https://videopress.com/embed/".concat(t,"?autoplay=1"));return n}},{key:"copyProperties",value:function(e,t){for(var i=[],n=Object.keys(e),s=0;s<n.length;s+=1){var o=n[s];void 0!==e[o]&&(Object.prototype.hasOwnProperty.call(t,o)?t[o]!==e[o]&&i.push(o):i.push(o),t[o]=e[o])}return i}},{key:"setStyleForElFomObj",value:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e.style[i]=t[i])}},{key:"shuffle",value:function(e){for(var t,i,n=e.length;0!==n;)i=Math.floor(Math.random()*n),t=e[n-=1],e[n]=e[i],e[i]=t;return e}},{key:"Rect",value:function(e,t,i,n){return{x:e,y:t,width:i,height:n}}},{key:"Size",value:function(e,t){return{width:e,height:t}}},{key:"Point",value:function(e,t){return{x:e,y:t}}},{key:"SvgWithImage",value:function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("viewBox","0 0 1 1"),t.setAttribute("version","1.1"),t.setAttribute("role","img");var i=document.createElementNS("http://www.w3.org/2000/svg","image");return i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("preserveAspectRatio","xMidYMid slice"),t.appendChild(i),t}},{key:"findHighestZIndex",value:function(e){for(var t,i=99999,n=0;n<e.childNodes.length;n+=1){var s=e.childNodes[n];1===s.nodeType&&"SCRIPT"!==s.nodeName&&(t=document.defaultView.getComputedStyle(s,null).getPropertyValue("z-index")),t>i&&"auto"!==t&&(i=parseInt(t,10))}return i}},{key:"escape",value:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return e.replace(/[&<>"']/g,(function(e){return t[e]}))}},{key:"trace",value:function(e){if(1!==arguments.length){for(var t="",i=0;i<arguments.length;i+=1)t+="".concat(arguments[i]," , ");t=t.slice(0,-2),console.log(t)}else console.log(e)}},{key:"preventDefaultForScrollKeys",value:function(e){return!{32:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1}[e.keyCode]||(e.preventDefault(),!1)}},{key:"preventDefault",value:function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},{key:"pageXOffset",get:function(){return void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft}},{key:"pageYOffset",get:function(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}},{key:"disableBodyScroll",value:function(){document.getElementsByTagName("html")[0].classList.add("".concat(e.ClassPref,"PopUpActive"))}},{key:"enableBodyScroll",value:function(){document.getElementsByTagName("html")[0].classList.remove("".concat(e.ClassPref,"PopUpActive"))}},{key:"disableBodyScrollSlider",value:function(){if(window.addEventListener){var t=e.passiveListener,i=e.preventDefault;window.addEventListener("wheel",i,t),window.addEventListener("mousewheel",i,t),window.addEventListener("touchmove",i,t)}document.addEventListener("keydown",e.preventDefaultForScrollKeys,!1)}},{key:"enableBodyScrollSlider",value:function(){if(window.removeEventListener){var t=e.passiveListener,i=e.preventDefault;window.removeEventListener("wheel",i,t),window.removeEventListener("mousewheel",i,t),window.removeEventListener("touchmove",i,t)}document.removeEventListener("keydown",e.preventDefaultForScrollKeys,!1)}},{key:"collapseElementsInElemt",value:function(e,t){for(var i=[],n=0;n<e.childNodes.length;n+=1){var s={},o=e.childNodes[n];1===o.nodeType&&"SCRIPT"!==o.nodeName&&o!==t&&(s.element=o,s.height=null,s.overflow=null,""!==o.style.height&&(s.height=o.style.height),""!==o.style.overflow&&(s.overflow=o.style.overflow),i.push(s),o.style.overflow="hidden",o.style.height="0")}return i}},{key:"recoverElements",value:function(e){if(0!==e.length)for(var t=0;t<e.length;t+=1){var i=e[t].element;i&&(e[t].overflow?i.style.overflow=e[t].overflow:i.style.removeProperty("overflow"),e[t].height?i.style.height=e[t].height:i.style.removeProperty("height"))}}},{key:"hexToRgbaStrin",value:function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,n){return t+t+i+i+n+n}));var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return i?"rgba(".concat(parseInt(i[1],16),",").concat(parseInt(i[2],16),",").concat(parseInt(i[3],16),",").concat(t,")"):null}},{key:"getFrameForBoxWithMode",value:function(t,i,n){var s=t.width,o=t.height,a=i.width,r=i.height,l=1,h=1,c=1;n?(l=a/s,h=r/o,c=Math.max(l,h)):(l=a/s,h=r/o,c=(c=Math.min(l,h))>1?1:c);var d=Math.round(s*c),u=Math.round(o*c),m=Math.round((a-d)/2),v=Math.round((r-u)/2);return e.Rect(m,v,d,u)}},{key:"getItemFrameByIndexForBox",value:function(t,i,n,s,o,a){var r=1;a&&(r=a);var l=o=Math.min(i,o),h=Math.floor(i/o),c=(l=h>1?(i-(h-1)*n)/h:i)*r,d=Math.ceil((t+1)/h)-1,u=d*(c+s),m=(t-d*h)*(l+n);return e.Rect(m,u,l,c)}},{key:"fadeOut",value:function(e,t,i){i||(i=500);var n=Math.sqrt,s=(new Date).getTime();!function o(){var a=(new Date).getTime()-s,r=a/i;if(r<1){var l=1-n(r);e.style.opacity=String(l),setTimeout(o,Math.min(25,i-a))}else e.style.opacity="0",t&&t()}()}},{key:"ellipsizeTextBoxToLine",value:function(e,t){e.innerHTML=e.textContent||e.innerText||"";var i=e.innerHTML,n=e.innerHTML.split(" ");e.innerHTML=n[0].substring(0,3);var s=e.clientHeight*t;for(e.innerHTML=i;e.clientHeight>s;)n.pop(),e.innerHTML="".concat(n.join(" ")," ...")}},{key:"ellipsizeTextBox",value:function(e){e.innerHTML=e.textContent||e.innerText||"";for(var t=e.innerHTML.split(" ");e.scrollHeight>e.offsetHeight;)t.pop(),e.innerHTML="".concat(t.join(" ")," ...")}},{key:"searchParentByClassName",value:function(t,i){if(t.parentElement){var n=t.parentElement;return n.classList.contains(i)?n:e.searchParentByClassName(n,i)}}},{key:"scrollYpositionForDiv",value:function(e){var t=(window.innerHeight-e.clientHeight)/2;return window.innerHeight-e.getBoundingClientRect().bottom<-e.clientHeight||e.getBoundingClientRect().bottom<0&&e.getBoundingClientRect().top<0?e.getBoundingClientRect().top+window.pageYOffset-t:void 0}},{key:"scrollInElementToY",value:function(e,t){var i,n=(t=Math.min(t,e.scrollHeight-e.clientHeight-1))-e.scrollTop;i=setInterval((function(){n=.05*n+.07*(t-e.scrollTop);var s=e.scrollTop+n;Math.abs(n)<1?(n=0,clearInterval(i)):e.scrollTop=s}),15),document.addEventListener("wheel",(function e(){clearInterval(i),document.removeEventListener("wheel",e,!1)}),!1)}},{key:"scrollWindowToY",value:function(e){var t,i;function n(){clearInterval(t),document.removeEventListener("wheel",n,!1)}var s=window.pageYOffset;e=Math.min(e,document.documentElement.scrollHeight-document.documentElement.clientHeight-1);var o=0,a=.05+.01*Math.abs(e-window.pageYOffset)/1e3;a=Math.min(.9,a),t=setInterval((function(){var r=(e-window.pageYOffset)*a;(r===o||Math.abs(r)<1)&&(window.scrollTo(0,e),clearInterval(t)),o=(e-window.pageYOffset)*a,s+=o,window.scrollTo(0,s),void 0===i&&((i=Math.abs(s-window.pageYOffset)>20)?(window.scrollTo(0,e),clearInterval(t)):document.addEventListener("wheel",n,!1))}),15)}},{key:"scrollToY",value:function(e,t){var i,n=window.pageYOffset,s=Math.PI/(t/15),o=n/2,a=0,r=setInterval((function(){window.pageYOffset>e?(a+=1,i=o-o*Math.cos(a*s),window.scrollTo(0,n-i)):clearInterval(r)}),15)}},{key:"isFullscreen",get:function(){return Boolean(e.fullscreenElement)}},{key:"fullscreenElement",get:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||null}},{key:"requestFullscreen",value:function(e){var t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;if(!t)return Promise.resolve(!1);var i=t.call(e);return i&&"function"==typeof i.then?i:Promise.resolve(i)}},{key:"exitFullscreen",value:function(){var e=document.exitFullscreen||document.webkitExitFullscreen||document.webkitCancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen;if(!e)return Promise.resolve(!1);var t=e.call(document);return t&&"function"==typeof t.then?t:Promise.resolve(t)}},{key:"toggleFullScreen",value:function(t){return e.isFullscreen?e.exitFullscreen():e.requestFullscreen(t)}},{key:"PageInteractionListener",value:function(){return{actionHandler:function(e){var t=this;return t.action=function(e){t.callback&&t.callback instanceof Function&&t.callback(e),t.remove()},t.action},init:function(e){this.callback=e,this.action=this.actionHandler(),document.addEventListener("mousedown",this.action,!0),document.addEventListener("touchstart",this.action,!0),document.addEventListener("keydown",this.action,!0)},remove:function(){document.removeEventListener("mousedown",this.action,!0),document.removeEventListener("touchstart",this.action,!0),document.removeEventListener("keydown",this.action,!0)}}}},{key:"CacheItemsList",value:function(){var e={};function t(n){!e.itemsList||e.cached===e.itemsList.length&&!e.amount||e.amount&&e.cached>=e.amount||(e.amount&&(e.amount=Math.min(e.amount,e.itemsList.length)),e.currentItem=e.itemsList[n].webView,e.lastIndex=n,void 0===e.currentItem||e.currentItem.complete?(e.cached+=1,t(e.lastIndex+1>=e.itemsList.length?0:e.lastIndex+1)):e.currentItem.addEventListener("load",i,!1))}function i(){e.cached+=1,t(e.lastIndex+1>=e.itemsList.length?0:e.lastIndex+1)}return e.cached=0,e.itemsList=void 0,e.currentItem=void 0,e.amount=void 0,e.lastIndex=void 0,e.init=function(n,s,o){if(e.itemsList&&e.itemsList.length)for(var a=0;a<e.itemsList.length;a+=1)e.itemsList[a].webView.removeEventListener("load",i,!1);e.amount=o,e.cached=0,e.currentItem=void 0,e.lastIndex=s,e.itemsList=n,void 0===s&&(s=0),t(s)},e.status=function(){return{list:e.itemsList,index:e.lastIndex}},e}},{key:"GMEventsManager",value:function(){return{listenerSet:{},addGMEventListener:function(t,i,n){if(!t)return e.trace("********************************* Event UNDEFINED!!! ***************************************"),e.trace(i),e.trace(n),void e.trace("********************************* Event UNDEFINED!!! ***************************************");this.listenerSet[t]||(this.listenerSet[t]=[]);var s={};s.listener=i,s.handler=n,this.listenerSet[t].push(s)},removeGMEventListener:function(e,t,i){if(this.listenerSet[e])for(var n=0;n<this.listenerSet[e].length;n+=1)this.listenerSet[e][n].listener===t&&this.listenerSet[e][n].handler===i&&(this.listenerSet[e].splice(n,1),n=this.listenerSet[e].length)},dispatchGMEvent:function(e){if(this.listenerSet[e.type])for(var t=this.listenerSet[e.type],i=0;i<t.length;i+=1){var n=t[i];n&&n.listener&&"function"==typeof n.listener[n.handler]&&n.listener[n.handler](e)}}}}},{key:"GMEvent",value:function(e,t,i){var n={};return n.type=e,n.params=i,n.target=t,n}}],null&&f(t.prototype,null),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}();const L=_;var I=i(7157),P=i.n(I),T={};function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function x(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B(n.key),n)}}function M(e,t,i){return t&&x(e.prototype,t),i&&x(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function B(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=k(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}T.styleTagTransform=u(),T.setAttributes=l(),T.insert=a().bind(null,"head"),T.domAPI=s(),T.insertStyleElement=c(),t()(P(),T),P()&&P().locals&&P().locals;var O=M((function e(t,i,n,s,o,a,r){function l(e){return e&&e[0].toUpperCase()+e.slice(1)}N(this,e);var h=document.createElement("div");return h.className=t,h.dataset.type=n,h.innerHTML=i,h.style.backgroundColor=s,h.style.order=r,h.style.fill=o,h.setAttribute("title",l(n)),h.setAttribute("aria-label",l(n)),h.addEventListener("touchend",a,!1),h.addEventListener("click",a,!1),h.addEventListener("mouseenter",a,!1),h.addEventListener("mouseleave",a,!1),h}));const z=function(){function e(t,i,n){N(this,e),this.appSet=t,this.appName=t.appName,this.type=i,this.buttonsList=[];var s=e.MENU_TYPE;this.config=e.CONFIG,L.copyProperties(n,this.config),this.item=void 0,this.lightbox=i===s.LIGHTBOX,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.classList.add(i),this.initButtons()}return M(e,[{key:"initButtons",value:function(){var t=this.type,i=e.MENU_TYPE,n=this;function s(e){"like"===e.dataset.type&&e.dataset.like||("bookmark"===e.dataset.type&&e.dataset.bookmark?e.style.backgroundColor=n.backgroundColor:(e.style.backgroundColor=n.backgroundColor,e.style.fill=n.iconColor,e.classList.remove("hover")))}function o(t){if(this.eventType=t.type,"click"===t.type){var i=n.item;if(!i)return;var o={};o.type=this.dataset.type,o.item=i,this.dataset.type,s(this),L.Device.desktop||s(this),n.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.ITEM_MENU_ACTION,n,o))}else"mouseenter"===t.type?"bookmark"===(a=this).dataset.type&&a.dataset.bookmark?a.style.backgroundColor=n.backgroundColorOver:(a.style.backgroundColor=n.backgroundColorOver,a.style.fill=n.iconColorOver,a.classList.add("hover")):"mouseleave"===t.type&&s(this);var a}this.backgroundColor=this.config.im_backgroundColor,this.backgroundColorOver=this.config.im_backgroundColorOver,this.iconColor=this.config.im_iconColor,this.iconColorOver=this.config.im_iconColorOver,this.config.im_link&&(this.linkButton=new O("".concat(e.classPref,"button"),t===i.ULTRABOX?L.ICONS.LINK_2_SVG:L.ICONS.LINK_SVG,"link",this.backgroundColor,this.iconColor,o,t===i.ULTRABOX?6:0),this.buttonsList.push(this.linkButton),this.view.appendChild(this.linkButton)),this.config.im_play&&(this.playButton=new O("".concat(e.classPref,"button"),L.ICONS.PLAY_SVG,"play",this.backgroundColor,this.iconColor,o,1),this.buttonsList.push(this.playButton),this.view.appendChild(this.playButton)),this.config.im_zoom&&(this.zoomButton=new O("".concat(e.classPref,"button"),L.ICONS.ZOOM_IN_SVG,"zoom",this.backgroundColor,this.iconColor,o,2),this.buttonsList.push(this.zoomButton),this.view.appendChild(this.zoomButton)),this.config.im_info&&(this.infoButton=new O("".concat(e.classPref,"button"),L.ICONS.INFO_SVG,"info",this.backgroundColor,this.iconColor,o,t===i.ULTRABOX?5:3),this.buttonsList.push(this.infoButton),this.view.appendChild(this.infoButton)),this.config.im_discuss&&(this.commentsButton=new O("".concat(e.classPref,"button"),t===i.ULTRABOX?L.ICONS.COMENTS_2_SVG:L.ICONS.COMENTS_SVG,"coments",this.backgroundColor,this.iconColor,o,(i.ULTRABOX,4)),this.buttonsList.push(this.commentsButton),this.view.appendChild(this.commentsButton)),this.config.im_download&&(this.downloadButton=new O("".concat(e.classPref,"button"),t===i.ULTRABOX?L.ICONS.DOWNLOAD_2_SVG:L.ICONS.DOWNLOAD_SVG,"download",this.backgroundColor,this.iconColor,o,t===i.ULTRABOX?3:5),this.buttonsList.push(this.downloadButton),this.view.appendChild(this.downloadButton)),this.config.im_share&&(this.shareButton=new O("".concat(e.classPref,"button"),t===i.ULTRABOX?L.ICONS.SHARE_2_SVG:L.ICONS.SHARE_SVG,"share",this.backgroundColor,this.iconColor,o,t===i.ULTRABOX?2:6),this.buttonsList.push(this.shareButton),this.view.appendChild(this.shareButton)),this.config.im_bookmark&&(this.bookMarkButton=new O("".concat(e.classPref,"button"),L.ICONS.BOOKMARK_SVG,"bookmark",this.backgroundColor,this.iconColor,o),this.buttonsList.push(this.bookMarkButton),this.view.appendChild(this.bookMarkButton)),this.config.im_like&&(this.likeButton=new O("".concat(e.classPref,"button"),t===i.ULTRABOX?L.ICONS.HEART_2_SVG:L.ICONS.HEART_SVG,"like",this.backgroundColor,this.iconColor,o,t===i.ULTRABOX?1:7),this.buttonsList.push(this.likeButton),this.view.appendChild(this.likeButton)),this.config.im_thumbnails&&(this.thumbs=new O("".concat(e.classPref,"button"),L.ICONS.GRID_SVG,"thumbnails",this.backgroundColor,this.iconColor,o,8),this.buttonsList.push(this.thumbs),this.view.appendChild(this.thumbs)),this.config.im_resize&&(this.resizeButton=new O("".concat(e.classPref,"button"),L.ICONS.EXPAND_SVG,"resize",this.backgroundColor,this.iconColor,o,t===i.ULTRABOX?6:9),this.buttonsList.push(this.resizeButton),this.view.appendChild(this.resizeButton)),this.config.im_fulscreen&&(this.fullscreenButton=new O("".concat(e.classPref,"button"),L.ICONS.FULL_SCREEN_SVG,"fullscreen",this.backgroundColor,this.iconColor,o,t===i.ULTRABOX?7:10),this.buttonsList.push(this.fullscreenButton),this.view.appendChild(this.fullscreenButton)),this.config.im_close&&(this.closeButton=new O("".concat(e.classPref,"button"),L.ICONS.CLOSE_SVG,"close",this.backgroundColor,this.iconColor,o,11),this.buttonsList.push(this.closeButton),this.view.appendChild(this.closeButton))}},{key:"updateConfig",value:function(e){if(0!==L.copyProperties(e,this.config).length){for(var t=0;t<this.buttonsList.length;t+=1){var i=this.buttonsList[t];i.parentNode&&i.parentNode.removeChild(i),delete this.buttonsList[t]}this.buttonsList=[],this.initButtons()}}},{key:"updateForItem",value:function(t){var i=e.MENU_TYPE;if(this.item=t,this.zoomButton&&("image"!==t.type?this.zoomButtonStatus("desable"):this.zoomButtonStatus("zoomOut")),this.downloadButton&&("image"===t.type||"audio"===t.type||"video"===t.type&&void 0===t.mime_type?(this.downloadButton.style.opacity="1",this.downloadButton.style.cursor="pointer",this.downloadButton.style.pointerEvents="auto"):(this.downloadButton.style.opacity="0.4",this.downloadButton.style.cursor="default",this.downloadButton.style.pointerEvents="none")),this.likeButton&&this.config.im_likesSet&&(this.config.im_likesSet()[t.ID]?(this.likeButton.style.fill="red",this.likeButton.style.cursor="default",this.likeButton.style.pointerEvents="none",this.likeButton.dataset.like=t.ID):(this.likeButton.style.fill=this.iconColor,this.likeButton.style.cursor="pointer",this.likeButton.style.pointerEvents="all",this.likeButton.removeAttribute("data-like"))),this.bookMarkButton&&(this.config.im_isContainIdInBookmarkSet(this.item.ID)||0===this.config.im_isContainIdInBookmarkSet(this.item.ID)?(this.bookMarkButton.dataset.bookmark=t.ID,this.bookMarkButton.style.fill="red"):(delete this.bookMarkButton.dataset.bookmark,this.bookMarkButton.style.fill=this.iconColor)),this.linkButton&&(t.meta&&t.meta.subType&&"product"===t.meta.subType?this.linkButton.innerHTML=L.ICONS.SHOP_SVG:this.linkButton.innerHTML=this.type===i.ULTRABOX?L.ICONS.LINK_2_SVG:L.ICONS.LINK_SVG,t.link?(this.linkButton.style.display="block",this.linkButton.style.opacity="1",this.linkButton.style.cursor="pointer",this.linkButton.style.pointerEvents="all",t.linkText&&""!==t.linkText?this.linkButton.setAttribute("title",t.linkText):this.linkButton.removeAttribute("title")):(this.linkButton.style.opacity="0",this.linkButton.style.display="none",this.linkButton.style.cursor="default",this.linkButton.style.pointerEvents="none")),this.commentsButton)switch(t.comment_status){case"open":this.commentsButton.style.display=null;break;case"closed":this.commentsButton.style.display="none"}}},{key:"zoomButtonStatus",value:function(e){if(this.zoomButton&&this.zoomStatus!==e){switch(e){case"desable":this.zoomButton.innerHTML=L.ICONS.ZOOM_IN_SVG,this.zoomButton.style.pointerEvents="none",this.zoomButton.style.opacity=.4;break;case"zoomOut":this.zoomButton.innerHTML=L.ICONS.ZOOM_IN_SVG,this.zoomButton.style.pointerEvents="auto",this.zoomButton.style.opacity=1;break;case"zoomIn":this.zoomButton.innerHTML=L.ICONS.ZOOM_OUT_SVG,this.zoomButton.style.pointerEvents="auto",this.zoomButton.style.opacity=1}this.zoomStatus=e}}},{key:"resizeButtonStatus",value:function(e){if(this.resizeButton)switch(e){case"mini":default:this.resizeButton.innerHTML=L.ICONS.EXPAND_SVG;break;case"maxi":this.resizeButton.innerHTML=L.ICONS.REDUCE_SVG;break;case"disable":this.resizeButton.style.display="none";break;case"enable":this.resizeButton.style.display="inline-block"}}},{key:"playButtonStatus",value:function(e){if(this.playButton&&this.playStatus!==e){switch(e){case"play":this.playButton.innerHTML=L.ICONS.PAUSE_SVG,this.playButton.style.pointerEvents="auto",this.playButton.style.opacity=1;break;case"stop":this.playButton.innerHTML=L.ICONS.PLAY_SVG,this.playButton.style.pointerEvents="auto",this.playButton.style.opacity=1;break;case"desable":this.playButton.innerHTML=L.ICONS.PLAY_SVG,this.playButton.style.pointerEvents="none",this.playButton.style.opacity=.4}this.playStatus=e}}},{key:"resizeHandler",value:function(){var e=this;setTimeout((function(){var t=document.webkitIsFullScreen||document.mozFullScreen||!1;e.fullscreenButton&&(e.fullscreenButton.innerHTML=t?L.ICONS.NORMAL_SCREEN_SVG:L.ICONS.FULL_SCREEN_SVG,e.fullscreenButton.style.fill=e.iconColor)}),200)}}],[{key:"classPref",get:function(){return"pgc-rev-item-menu-"}},{key:"EVENTS",get:function(){return{ITEM_MENU_ACTION:"ITEM_MENU_ACTION"}}},{key:"MENU_TYPE",get:function(){return{THUMB:"".concat(e.classPref,"type-thumb"),LIGHTBOX:"".concat(e.classPref,"type-lightbox"),ULTRABOX:"".concat(e.classPref,"type-ultrabox")}}},{key:"CONFIG",get:function(){return{im_linkTargetWindow:"_self",im_backgroundColor:"rgb(0,0,0)",im_backgroundColorOver:"rgb(255,255,255)",im_iconColor:"rgb(255,255,255)",im_iconColorOver:"rgb(0,0,0)",im_link:!1,im_play:!1,im_zoom:!1,im_info:!1,im_discuss:!1,im_download:!1,im_share:!1,im_like:!1,im_bookmark:!1,im_resize:!1,im_fulscreen:!1,im_thumbnails:!1,im_close:!1,im_likesSet:void 0,im_isContainIdInBookmarkSet:void 0}}}])}();var A=i(7412),V=i.n(A),H={};function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function G(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,F(n.key),n)}}function F(e){var t=function(e){if("object"!=R(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=R(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(t)?t:t+""}H.styleTagTransform=u(),H.setAttributes=l(),H.insert=a().bind(null,"head"),H.domAPI=s(),H.insertStyleElement=c(),t()(V(),H),V()&&V().locals&&V().locals,L.trace;const D=function(){function e(t,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.appSet=t,this.appName=t.appName,this.config=e.CONFIG,L.copyProperties(i,this.config),this.accelX=0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.config.scrh_block_pan_y&&this.view.classList.add("pgc-block-pan-y"),this.startDragHandler=void 0,this.draggingPr=!1,this.config.scrh_dragin?(this.startDragHandler=this.startDrag(),L.isTouchDevice&&(this.view.addEventListener("touchstart",this.startDragHandler,L.passiveListener),window.addEventListener("touchmove",(function(){}),L.passiveListener)),this.view.addEventListener("mousedown",this.startDragHandler,!1)):this.view.addEventListener("mousedown",this.mouseHandler(),!1),this.view.addEventListener("wheel",this.mouseHandler(),!1),this.view.addEventListener("mouseup",this.mouseHandler(),!1),this.view.addEventListener("touchstart",this.mouseHandler(),!1),this.view.addEventListener("touchend",this.mouseHandler(),!1),this.scrollView=void 0,this.pages=0,this.lastPageWidth=0,this.scrollDirection=0,this.nextPagePart=0,this.scrollScale=0,this.rPosX=0,this.currentPageIndex=0,this.currentPagePr=0,this.renderingX=!1,this.internalControll=!1,this.prevButtonSt=!1,this.nextButtonSt=!1,L.setStyleForElFomObj(this.view,n)}return t=e,n=[{key:"classPref",get:function(){return"pgc-rev-scroller-ho-"}},{key:"EVENTS",get:function(){return{SCR_ACTION:"SCR_ACTION",SCR_SCROLL:"SCR_SCROLL"}}},{key:"CONFIG",get:function(){return{scrh_dragin:!1,scrh_dragin_cursor:!0,scrh_smooth_dragin:!0,scrh_block_pan_y:!1}}}],(i=[{key:"dragging",set:function(e){var t=this;clearTimeout(this.draggingDelayTimer),e?(this.draggingPr=!0,this.view.classList.add("isDraging")):(this.draggingDelayTimer=setTimeout((function(){t.draggingPr=!1}),20),this.view.classList.remove("isDraging"))}},{key:"draging",get:function(){return this.draggingPr}},{key:"initByScrollView",value:function(e){this.scrollView=e,this.view.appendChild(this.scrollView),this.calculateScroll()}},{key:"mouseHandler",value:function(){var e=this;return this.msHandler=function(t){switch(t.type){case"mousedown":case"wheel":case"touchstart":e.internalControll=!0;break;case"mouseup":case"touchend":e.internalControll=!1}},this.msHandler}},{key:"scrollWidth",get:function(){if(this.scrollView)return this.scrollView.clientWidth}},{key:"width",get:function(){return this.view.clientWidth}},{key:"refresh",value:function(){clearInterval(this.scrollAnimInterval),this.scrHandler&&this.view.removeEventListener("scroll",this.scrHandler),this.currentPageIndex=0,this.view.scrollLeft=0,this.rPosX=0,this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.SCR_SCROLL,this,{scroll:0})),this.calculateScroll()}},{key:"calculateScroll",value:function(){this.scrollWidth&&(this.scrollScale=this.width/this.scrollWidth,this.scrollScale<1?(this.view.addEventListener("scroll",this.scrollHandler()),this.config.scrh_dragin&&this.config.scrh_dragin_cursor&&this.view.classList.add("".concat(e.classPref,"grabbable"))):(this.view.removeEventListener("scroll",this.scrHandler),this.config.scrh_dragin&&this.config.scrh_dragin_cursor&&this.view.classList.remove("".concat(e.classPref,"grabbable"))),this.pages=Math.ceil(this.scrollWidth/this.width),this.lastPageWidth=this.scrollWidth%this.width==0?this.width:this.scrollWidth%this.width,this.updateControls())}},{key:"updateControls",value:function(t){var i={},n=this.pages,s=this.view.scrollLeft;i.pages=n,i.scrollScale=this.scrollScale,i.renderingX=this.renderingX,i.internalControll=this.internalControll,i.currentPage=void 0!==t?t:this.currentPagePr,1===n?(i.hasPrevPage=!1,i.hasNextPage=!1):(i.hasPrevPage=s>0,i.hasNextPage=this.scrollWidth-s-this.width>.5),this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.SCR_ACTION,this,i))}},{key:"currentPage",value:function(){var t=this.pages,i=this.width,n=this.view.scrollLeft,s=this.scrollWidth-n-i,o=n%i,a=Math.ceil(n/i)===t-1?this.lastPageWidth:i;this.nextPagePart=o/a;var r=Math.round(Math.floor(n/i)+this.nextPagePart),l=-(this.rPosX-n)/Math.abs(this.rPosX-n);return l&&this.scrollDirection!==l&&(this.scrollDirection=l,this.updateControls()),this.currentPagePr===r&&0!==s&&0!==n||(this.currentPagePr=r,this.updateControls()),this.rPosX=n,this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.SCR_SCROLL,this,{scroll:n,scrollDirection:this.scrollDirection,internalControll:this.internalControll})),r}},{key:"gotoNext",value:function(){var e=this.currentPage(),t=this.nextPagePart>=.5&&!this.renderingX?e:e+1;this.gotoPageByIndex(t)}},{key:"gotoPrev",value:function(){var e=this.currentPage(),t=0!==this.nextPagePart&&this.nextPagePart<=.5&&!this.renderingX?e:e-1;this.gotoPageByIndex(t)}},{key:"gotoPageByIndex",value:function(e,t){var i=this.pages;this.internalControll=!1,e=Math.min(e,i-1);var n=(e=Math.max(e,0))*this.width;t?this.scrollLeft=n:this.scrollLeftAnime=n,this.currentPageIndex=e,this.updateControls(e)}},{key:"scrollLeftAnime",set:function(e){var t=this;this.accelX=Math.max(e,0),this.accelX=Math.min(e,this.scrollWidth-this.width);var i=this.view.scrollLeft,n=0,s=.05+.05*Math.abs(this.accelX-i)/1e3;s=Math.min(.9,s),this.renderingX=!0,this.internalControll=!1,this.scrollAnimInterval||(this.scrollAnimInterval=setInterval((function(){n=(t.accelX-i)*s,i+=n,t.view.scrollLeft=i,Math.abs(i-t.accelX)<=1&&(t.view.scrollLeft=t.accelX,t.renderingX=!1,t.updateControls(),clearInterval(t.scrollAnimInterval),t.scrollAnimInterval=void 0)}),17))}},{key:"scrollHandler",value:function(){var e=this;return this.scrHandler=function(){e.internalControll&&(clearInterval(e.scrollAnimInterval),e.scrollAnimInterval=void 0),e.currentPage()},this.scrHandler}},{key:"scrollLeft",get:function(){return this.view.scrollLeft},set:function(e){this.scrollAnimInterval&&(clearInterval(this.scrollAnimInterval),this.scrollAnimInterval=void 0),this.view.scrollLeft=e}},{key:"maxScrollLeft",get:function(){return this.scrollWidth-this.width}},{key:"startDrag",value:function(){var t,i,n,s,o,a,r=this,l=0,h=0,c=0;function d(e){var d;if(e.touches?(o=e.touches[0].pageX,a=e.touches[0].pageY):(o=e.pageX,a=e.pageY),void 0===s&&(a===i?s=!1:(d=180*Math.atan2(Math.abs(a-i),Math.abs(o-t))/Math.PI,s=d>45)),s)r.dragging=!0;else{e.preventDefault();var u=t-o;Math.abs(u)>4&&(r.dragging=!0),r.view.scrollLeft=n+u,c=r.view.scrollLeft,l=1*(c-h)}}function u(){L.isTouchDevice&&(document.removeEventListener("touchmove",d,L.passiveListener),document.removeEventListener("touchend",u,L.passiveListener)),document.removeEventListener("mousemove",d,!1),document.removeEventListener("mouseup",u,!1),r.dragging=!1,r.config.scrh_smooth_dragin&&0!==l?(r.scrollAnimInterval=setInterval((function(){l*=.75,r.view.scrollLeft+=l,r.accelX=r.view.scrollLeft,r.renderingX=!0,Math.abs(l)<.1&&(r.renderingX=!1,clearInterval(r.scrollAnimInterval),r.updateControls(),r.scrollAnimInterval=void 0)}),17),r.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.SCR_ACTION,r,{dragging:!1}))):(r.renderingX=!1,r.updateControls(),r.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.SCR_ACTION,r,{dragging:!1})))}return function(e){var o,a;clearInterval(r.scrollAnimInterval),r.scrollAnimInterval=void 0,l=0,s=void 0,e.touches?(o=e.touches[0].pageX,a=e.touches[0].pageY):(o=e.pageX,a=e.pageY),t=o,i=a,n=r.view.scrollLeft,h=r.view.scrollLeft,L.isTouchDevice&&(document.addEventListener("touchmove",d,L.passiveListener),document.addEventListener("touchend",u,L.passiveListener)),document.addEventListener("mousemove",d,!1),document.addEventListener("mouseup",u,!1)}}},{key:"resizeHandler",value:function(){if(this.viewWidth!==this.width){clearInterval(this.scrollAnimInterval),this.scrollAnimInterval=void 0;var e=this.pages;this.viewWidth=this.width;var t=(this.currentPageIndex+1)/e;this.calculateScroll();var i=Math.round(t*e)-1;this.gotoPageByIndex(0===this.currentPageIndex?0:i)}}},{key:"remove",value:function(){clearInterval(this.scrollAnimInterval),this.view.removeEventListener("wheel",this.scrHandler,!1),this.view.removeEventListener("scroll",this.scrHandler),this.view.removeEventListener("mouseup",this.msHandler,!1),this.view.removeEventListener("touchstart",this.msHandler,!1),this.view.removeEventListener("touchend",this.msHandler,!1)}}])&&G(t.prototype,i),n&&G(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,n}();var Y=i(6378),X=i.n(Y),q={};function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function Z(e,t,i){return t&&W(e.prototype,t),i&&W(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function K(e){var t=function(e){if("object"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=j(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(t)?t:t+""}q.styleTagTransform=u(),q.setAttributes=l(),q.insert=a().bind(null,"head"),q.domAPI=s(),q.insertStyleElement=c(),t()(X(),q),X()&&X().locals&&X().locals;var $=L.trace,J=function(){function e(t,i,n){U(this,e),this.config=e.CONFIG,Object.assign(this.config,t),this.context=n,this.appSet=i,this.view=document.createElement("div"),this.view.classList.add("".concat(e.classPref,"simple-border")),this.view.style.padding="".concat(this.config.thumb_spasing/2,"px"),this.wrap_main=document.createElement("div"),this.wrap_main.className="".concat(e.classPref,"main-wrap"),this.view.appendChild(this.wrap_main),this.wrap_item=document.createElement("div"),this.wrap_item.className="".concat(e.classPref,"item-wrap"),this.wrap_main.appendChild(this.wrap_item),this.hover=document.createElement("div"),this.hover.className="".concat(e.classPref,"item-hover"),this.inner=document.createElement("div"),this.inner.className="".concat(e.classPref,"item-inner"),this.imgCompleted=!1,this.isSelect=!1,this.opacityDelay=void 0,this.displayPr=void 0,this.opacityPr=0,this.inited=!1}return Z(e,[{key:"init",value:function(e){if(!this.inited){this.item=e;var t=this;this.type=e.type;var i=void 0;e.itemViewThumbSrc||e.itemViewSrc||e.poster||e.thumb?(this.img=new Image,this.config.thumb_loading_lazy&&this.img.setAttribute("loading","lazy"),this.img.onload=function(){e.title&&this.setAttribute("alt",e.title),t.imgCompleted=!0,t.view.style.opacity=t.opacityPr},this.img.onerror=function(){t.view.classList.add("pgc-rev-error"),e.errorStatus=!0},this.wrap_item.appendChild(this.img),e.itemViewThumbSrc?(this.img.style.width="".concat(e.itemViewThumbSize.width,"px"),this.img.style.height="".concat(e.itemViewThumbSize.height,"px"),i=e.itemViewThumbSrc):e.poster?(this.img.style.width="".concat(e.poster.thumbnail.width,"px"),this.img.style.height="".concat(e.poster.thumbnail.height,"px"),i=e.poster.thumbnail.url):e.thumb&&e.thumb.width>=150&&(this.img.style.width="".concat(e.thumb.width,"px"),this.img.style.height="".concat(e.thumb.height,"px"),i=e.thumb.src),i&&(this.img.src=i)):this.view.style.opacity=this.opacityPr,this.wrap_item.appendChild(this.hover),this.wrap_item.appendChild(this.inner),this.initSubContent(),this.initInteractive(),this.inited=!0}}},{key:"initSubContent",value:function(){this.type=this.item.type;var t=this.item;if("video"===this.type)if(t.mime_type);else if(!t.poster&&(!t.thumb||t.thumb&&t.thumb.width<150)){this.videoContent=L.mediaEl("video"),this.imgSubstitute=!0,this.videoContent.className="".concat(e.classPref,"video-content");var i=t.original;t.poster&&t.poster.medium?this.videoContent.setAttribute("poster",t.poster.medium.url):L.Device.browser.safari&&L.isTouchDevice&&(i+="#t=0.001"),this.videoContent.src=i,this.wrap_item.insertBefore(this.videoContent,this.wrap_item.firstChild)}this.hover.classList.add("".concat(e.classPref,"hover")),this.hover.style.backgroundColor=this.config.thumb_hover_color}},{key:"initInteractive",value:function(){var t=this;function i(e){switch(e.type){case"mouseenter":this.classList.add("hover"),t.hoverAnim(!0);break;case"mouseleave":!1===t.isSelect&&t.hoverAnim(!1),this.classList.remove("hover")}}this.view.addEventListener("click",(function(){t.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENT.THUMB_ACTION,t,{index:t.index}))})),this.view.addEventListener("mouseenter",i,!1),this.view.addEventListener("mouseleave",i,!1)}},{key:"updateSize",value:function(e){var t=Math.round(e*this.config.thumb_coverHieghtRation);this.thumbSize=L.Size(e,t),this.view.style.width="".concat(this.thumbSize.width,"px"),this.view.style.height="".concat(this.thumbSize.height,"px")}},{key:"x",set:function(e){this.view.style.left="".concat(e,"px")}},{key:"y",set:function(e){this.view.style.top="".concat(e,"px")}},{key:"hoverAnim",value:function(e){this.inner.style.border=e?"solid 2px ".concat(this.config.thumb_border_color):null}},{key:"select",set:function(e){e?(this.view.classList.add("pgc-select"),this.hoverAnim(!0)):(this.view.classList.remove("pgc-select"),this.hoverAnim(!1)),this.isSelect=e}},{key:"visibility",set:function(e){this.view.style.visibility=e}},{key:"display",get:function(){return this.displayPr},set:function(e){"none"===e&&clearTimeout(this.opacityDelay),this.view.style.display=e,this.displayPr=e}},{key:"opacity",set:function(e){var t=this;e.delay?this.opacityDelay=setTimeout((function(){(t.imgCompleted||t.imgSubstitute)&&(t.view.style.opacity=e.opacity),t.opacityPr=e.opacity}),e.delay):(clearTimeout(this.opacityDelay),(t.imgCompleted||t.imgSubstitute)&&(t.view.style.opacity=e.opacity),t.opacityPr=e.opacity)}}],[{key:"EVENT",get:function(){return{THUMB_ACTION:"THUMB_ACTION"}}},{key:"classPref",get:function(){return"pgc-rev-scroll-bar-thumb-"}},{key:"CONFIG",get:function(){return{thumb_spasing:10,thumb_coverHieghtRation:1,thumb_loading_lazy:!1,thumb_border_color:"white",thumb_hover_color:"rgba(0,0,0,0.5)"}}}])}();const Q=function(){function e(t,i,n){U(this,e),this.context="ItemsScrollBarPagination",this.config=e.CONFIG,L.copyProperties(i,this.config),this.appName=t.appName,this.appSet=t,this.thumbsList=[],this.presentedList=[],this.thumbSize=L.Size(Math.round(this.config.isb_height/this.config.isb_thum_ration),this.config.isb_height),this.activatedPages={},this.maxWidth=0,this.width=1,this.scrollLeft=0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.sliderContent=document.createElement("div"),this.sliderContent.className="".concat(e.classPref,"slider-content-view");var s=D.CONFIG;s.scrh_dragin=!0,s.scrh_block_pan_y=this.config.isb_block_pan_y,this.scroller=new D(this.appSet,s,{}),this.appSet.appEventManager.addGMEventListener(D.EVENTS.SCR_SCROLL,this,"scrollHandler"),this.view.appendChild(this.scroller.view),this.activIndex=void 0,this.activAudioIndex=void 0,n&&L.setStyleForElFomObj(this.view,n),this.appSet.appEventManager.addGMEventListener(J.EVENT.THUMB_ACTION,this,"thumbActionHandler")}return Z(e,[{key:"initByItemslist",value:function(e){this.itemsList=e;var t=J.CONFIG;t.thumb_coverHieghtRation=this.config.isb_thum_ration,t.thumb_loading_lazy=!0,t.thumb_spasing=4,t.thumb_border_color=this.config.isb_itemBgColor;for(var i=0;i<e.length;i+=1){var n=e[i],s=new J(t,this.appSet,this.context);s.index=i,s.init(n),this.thumbsList.push(s)}this.sliderContent.style.width="".concat(this.thumbsList.length*this.thumbSize.width,"px"),this.sliderContent.style.height="".concat(this.thumbSize.height,"px"),this.scroller.initByScrollView(this.sliderContent)}},{key:"scrollHandler",value:function(e){if(e.target===this.scroller){var t=e.params,i=t.scroll,n=t.scrollDirection;this.scrollLeft=i,this.addPage(Math.ceil(this.scrollLeft/this.width)-(n<0?1:0))}}},{key:"thumbActionHandler",value:function(t){if(t.target.context===this.context){var i=t.params.index;this.scroller.draging||void 0===i||this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.ITEMS_SCROLL_BAR_ITEM_ACTION,this,{action:"click",index:parseInt(i)}))}}},{key:"addPage",value:function(e){if(!this.activatedPages["".concat(e)]){for(var t=Math.min(e*this.itemsOnPage+this.itemsOnPage,this.thumbsList.length),i=Math.max(t-this.itemsOnPage,0);i<t;i+=1){var n=this.thumbsList[i];n.updateSize(this.thumbSize.width),n.x=i*this.thumbSize.width,n.y=0,n.display="block",n.opacity={opacity:1},this.presentedList[i]=n,this.sliderContent.appendChild(n.view)}this.activatedPages["".concat(e)]=!0}}},{key:"selectThumbsByIndexes",value:function(e){if(0!==this.thumbsList.length){if(void 0!==this.activIndexes)for(var t=0;t<this.activIndexes.length;t+=1)this.thumbsList[this.activIndexes[t]]&&(this.thumbsList[this.activIndexes[t]].select=!1);for(var i=0;i<e.length;i+=1)this.thumbsList[e[i]]&&(this.thumbsList[e[i]].select=!0);this.activIndexes=e;var n=this.pageByItemIndex(e[0]),s=this.pageByItemIndex(e[e.length-1]),o=e[0]*this.thumbSize.width+e.length*this.thumbSize.width/2-this.width/2;this.scroller.scrollLeftAnime=o,this.addPage(n),this.addPage(s)}}},{key:"selectThumbByIndex",value:function(e){if(0!==this.thumbsList.length){void 0!==this.activIndex&&(this.thumbsList[this.activIndex].select=!1),this.thumbsList[e].select=!0;var t=this.pageByItemIndex(e),i=e*this.thumbSize.width,n=Math.ceil(this.scrollLeft/this.thumbSize.width),s=Math.floor((this.scrollLeft+this.width-this.thumbSize.width)/this.thumbSize.width);if(e<n||e>s){var o;i<this.scrollLeft?o=i:i+this.thumbSize.width-this.width>0&&(o=i+this.thumbSize.width-this.width);var a=Math.ceil(o/this.thumbSize.width),r=Math.floor((o+this.width-this.thumbSize.width)/this.thumbSize.width),l=this.pageByItemIndex(a);l!==t&&this.addPage(l);var h=this.pageByItemIndex(r);h!==t&&this.addPage(h),Math.abs(this.scrollLeft-o)>this.width?this.scroller.scrollLeft=o:this.scroller.scrollLeftAnime=o}this.addPage(t),this.activIndex=e}}},{key:"size",set:function(e){var t=Math.floor(e.width/this.thumbSize.width);if(this.view.style.maxWidth="".concat(t*this.thumbSize.width,"px"),this.itemsOnPage!==t){if(this.itemsOnPage=t,this.width=Math.min(this.itemsOnPage,this.thumbsList.length)*this.thumbSize.width,this.view.style.width="".concat(this.width,"px"),this.view.style.maxWidth=null,this.activatedPages={},this.maxWidth=e.width,void 0!==this.activIndexes&&this.activIndexes.length){var i=this.activIndexes,n=this.pageByItemIndex(i[0]),s=this.pageByItemIndex(i[i.length-1]);this.addPage(n),this.addPage(s)}void 0!==this.activIndex&&this.addPage(this.pageByItemIndex(this.activIndex))}}},{key:"pageByItemIndex",value:function(e){return Math.floor(e/this.itemsOnPage)}},{key:"resizeHandler",value:function(){this.updateView()}},{key:"updateView",value:function(){$("Update View")}},{key:"prepareToRemove",value:function(){this.appSet.appEventManager.removeGMEventListener(D.EVENTS.SCR_ACTION,this,"scrollHandler"),this.scroller.remove(),this.appSet.appEventManager.removeGMEventListener(J.EVENT.THUMB_ACTION,this,"thumbActionHandler")}}],[{key:"classPref",get:function(){return"pgc-rev-scroll-bar-"}},{key:"CONFIG",get:function(){return{isb_itemBgColor:"rgba(255,255,255,0.6)",isb_height:50,isb_thum_ration:.85,isb_block_pan_y:!1}}},{key:"EVENTS",get:function(){return{ITEMS_SCROLL_BAR_ITEM_ACTION:"ITEMS_SCROLL_BAR_ITEM_ACTION"}}}])}();var ee=i(7625),te=i.n(ee),ie={};function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,re(n.key),n)}}function ae(e,t,i){return t&&oe(e.prototype,t),i&&oe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function re(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=ne(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}ie.styleTagTransform=u(),ie.setAttributes=l(),ie.insert=a().bind(null,"head"),ie.domAPI=s(),ie.insertStyleElement=c(),t()(te(),ie),te()&&te().locals&&te().locals;var le=L.trace,he=function(){return ae((function e(t){se(this,e);var i=document.createElement("div"),n=document.createElement("div");n.className="".concat(e.classPref,"view");var s=document.createElement("div");if(s.className="".concat(e.classPref,"button"),t.meta&&t.meta.subType&&"product"===t.meta.subType?s.innerHTML='<a href="'.concat(t.link,'">').concat(t.linkText,"</a>"):s.innerHTML=t.link_text?t.link_text:t.title,n.appendChild(s),t.price||t.meta&&t.meta.price){var o=document.createElement("div"),a=document.createElement("div");a.className="".concat(e.classPref,"price"),a.innerHTML=t.price||t.meta.price,o.appendChild(a),n.appendChild(o)}return i.appendChild(n),i}),null,[{key:"classPref",get:function(){return"pgc-rev-slider-post-informer-"}}])}(),ce=ae((function e(t){se(this,e);var i=document.createElement("div"),n=document.createElement("div");return n.className="icon-holder",n.innerHTML=t,i.appendChild(n),i})),de=function(){function e(t){se(this,e),this.delegate=t,this.item=void 0,this.id=void 0,this.appName=t.appName,this.itemIndex=void 0,this.iconSet=t.iconSet,this.positionIndex=0,this.view=document.createElement("div"),this.delegate.config.sl_canRemoved||(this.view.style.touchAction="auto"),this.view.className="".concat(e.classPref,"view"),this.itemInner=document.createElement("div"),this.itemInner.className="".concat(e.classPref,"inner"),this.delegate.config.sl_canRemoved||(this.itemInner.style.touchAction="auto"),this.view.appendChild(this.itemInner),this.preloader=L.createPreloaderView(this.delegate.config.sl_preloaderColor),this.preloader.style.display="none",this.view.appendChild(this.preloader),this.subContentHolder=document.createElement("div"),this.subContentHolder.className="".concat(e.classPref,"sub-content-holder"),this.view.appendChild(this.subContentHolder),this.videoContent=!1,this.videoContentReadyAction=!1,this.videoContentReady=!1,this.isEmbedContent=!1,this.videoAutoStarted=void 0,this.size=L.Size(0,0),this.imgSize=L.Size(0,0),this.imageFramePr=L.Rect(0,0,0,0),this.imageFrameFF=L.Rect(0,0,0,0),this.imageScaledFF=!1,this.width=0,this.height=0,this.maxXoffset=0,this.maxYoffset=0,this.MaxScale=4,this.imgScale=1,this.imgScaleFF=1,this.scale=1,this.newScale=1,this.newScaleMW=1,this.viewTranslatePr=L.Point(0,0),this.origin=L.Point(0,0),this.boundingBox=void 0,this.boundingBoxScale=void 0,this.animaSliderRender=void 0,this.speedX=0,this.speedY=0,this.oldX=0,this.newX=0,this.oldY=0,this.newY=0,this.draging=!1,this.isBlockDraging=!1,this.isBlockDragingMem=!1,this.startScale=void 0,this.startGlobalPoint=void 0,this.startDistForZoom=void 0,this.targetPoint=L.Point(0,0),this.stopRenderTransform=!1}return ae(e,[{key:"overLoadHandler",value:function(){var e=this;return this.overLoadH||(this.overLoadH=function(){e.preloader.style.display="none",e.subContentHolder.style.display=null,e.imgSize.width=this.naturalWidth,e.imgSize.height=this.naturalHeight,e.item.videoId&&e.imgSize.width<1e3&&(e.imgSize.width*=1.5,e.imgSize.height*=1.5),e.isInScale&&e.normalize(),e.fit(!1)}),this.overLoadH}},{key:"clearPage",value:function(){this.item=void 0,this.id=void 0,1!==this.scale&&(this.scale=1,this.viewTranslate=L.Point(0,0)),this.itemInner.innerHTML="",this.subContentHolder.innerHTML="",this.videoContentReadyAction=!1,this.videoContentReady=!1,this.videoContent&&this.delegate.videoPlayer&&this.delegate.videoPlayer===this.videoContent&&this.delegate.setVideoPlayer(void 0,void 0),delete this.videoContent,delete this.audioContent,this.itemImg&&this.itemImg.removeEventListener("load",this.overLoadHandler(),!1),this.itemImg=void 0}},{key:"initByItem",value:function(t){if(this.fadePrep(),this.stopRenderTransform=!1,void 0!==t){if(this.id!==t.ID){if(this.item=t,this.id=t.ID,1!==this.scale&&(this.scale=1,this.viewTranslate=L.Point(0,0)),this.itemInner.innerHTML="",this.subContentHolder.innerHTML="",this.videoContentReadyAction=!1,this.videoContentReady=!1,this.videoContent&&this.delegate.videoPlayer&&this.delegate.videoPlayer===this.videoContent&&this.delegate.setVideoPlayer(void 0,void 0),delete this.videoContent,delete this.audioContent,this.itemImg&&this.itemImg.removeEventListener("load",this.overLoadHandler(),!1),t.webView)if("video"!==t.type||t.mime_type)if("audio1"===t.type&&t.poster){this.item.webImgFrame=L.Rect(0,0,0,0),this.imgSize.width=300,this.imgSize.height=300,this.itemImg=document.createElement("div"),this.itemImg.className="".concat(e.classPref,"place-holder");var i=new Image;i.className="".concat(e.classPref,"item-poster"),i.src=t.poster.medium.url,i.onload=function(){this.classList.add("onLoad")},this.itemImg.appendChild(i),this.itemInner.appendChild(this.itemImg)}else"video"===t.type&&void 0!==t.mime_type&&(this.videoContentReady=!0),this.itemImg=t.webView,this.itemInner.appendChild(this.itemImg),this.itemImg.classList.add("pgc-img"),this.delegate.config.sl_copyR_Proptection&&this.itemImg.classList.add("iph-protect"),t.webView.complete?(this.preloader.style.display="none",this.imgSize.width=this.itemImg.naturalWidth,this.imgSize.height=this.itemImg.naturalHeight,t.videoId&&this.imgSize.width<1e3&&(this.imgSize.width*=1.5,this.imgSize.height*=1.5)):(this.imgSize=(this.delegate.config.sl_FullSizeViewMode,this.item.itemViewSize),t.videoId&&this.imgSize.width<1e3&&(this.imgSize.width*=1.5,this.imgSize.height*=1.5),this.subContentHolder.style.display="none",this.preloader.style.display="block",this.itemImg.addEventListener("load",this.overLoadHandler(),!1));else this.item.webImgFrame=L.Rect(0,0,0,0),this.imgSize.width=400,this.imgSize.height=400,this.itemImg=document.createElement("div"),this.itemImg.className="".concat(e.classPref,"place-holder"),this.itemInner.appendChild(this.itemImg);else this.item.webImgFrame=L.Rect(0,0,0,0),this.imgSize.width=400,this.imgSize.height=400,this.itemImg=document.createElement("div"),this.itemImg.className="".concat(e.classPref,"place-holder"),"video"===t.type||t.mime_type||this.itemImg.classList.add("bg-mode"),this.itemInner.appendChild(this.itemImg);switch("video"!==t.type||t.mime_type||this.addVideo(t.original),this.isInScale&&this.normalize(),this.fit(!1),t.type){case"audio":this.view.classList.add("info-icon"),this.audioContent=L.mediaEl("audio"),this.audioContent.setAttribute("controls",""),this.audioContent.className="lb-audio-content",this.subContentHolder.childNodes.length?this.subContentHolder.replaceChild(this.audioContent,this.subContentHolder.firstChild):this.subContentHolder.appendChild(this.audioContent),this.audioContent.src=t.original;break;case"video":this.view.classList.add("info-icon"),this.subContentHolder.innerHTML=new ce(this.iconSet.PLAY_SVG).innerHTML,this.subContentHolder.getElementsByTagName("svg")[0].style.marginLeft="7px";break;case"post":case"page":case"product":this.view.classList.add("info-icon"),this.subContentHolder.innerHTML=new he(this.item).innerHTML;break;default:this.view.classList.remove("info-icon")}t.meta&&t.meta.subType&&"product"===t.meta.subType&&(this.view.classList.add("info-icon"),this.subContentHolder.innerHTML=new he(this.item).innerHTML)}}else this.clearPage()}},{key:"addVideo",value:function(t){var i=this;this.preloader.style.display="block",this.item.webView?(this.imgSize.width=this.item.webImgFrame.width,this.imgSize.height=this.item.webImgFrame.height):(this.item.webImgFrame=L.Rect(0,0,0,0),this.imgSize.width=1e3,this.imgSize.height=this.imgSize.width/(16/9)),this.itemImg.parentNode&&this.itemImg.parentNode.removeChild(this.itemImg),this.itemImg=document.createElement("div"),this.itemImg.className="".concat(e.classPref,"place-holder"),this.videoContent=L.mediaEl("video"),this.videoContent.setAttribute("data-id","sgb-video-player"),this.videoContent.setAttribute("data-gallery",this.delegate.appName),this.videoContent.className="lb-video-content",i.delegate.config.sl_video_loop&&this.videoContent.setAttribute("loop",""),this.item.poster?(this.videoContent.setAttribute("poster",this.item.poster.large?this.item.poster.large.url:this.item.poster.full.url),this.videoContent.removeAttribute("preload")):this.item.featuredImage?(this.videoContent.setAttribute("poster",this.item.featuredImage.src),this.videoContent.removeAttribute("preload")):this.item.image&&this.item.image.width>=200&&this.videoContent.setAttribute("poster",this.item.image.src),this.itemImg.appendChild(this.videoContent),this.videoContent.addEventListener("canplay",(function(){i.item&&(i.videoContentReady=!0,i.delegate.tryAutoStartVideo(i.item.id),i.delegate.onYtStatusChange("onReady"))})),this.videoContent.addEventListener("ended",(function(){i.delegate.onYtStatusChange(0)})),this.videoContent.addEventListener("play",(function(){i.delegate.onYtStatusChange(1),i.delegate.setVideoPlayer(i.videoContent,"html",i)})),this.videoContent.addEventListener("loadedmetadata",(function(){i.preloader.style.display="none",this.videoWidth&&this.videoHeight&&(i.imgSize.width=this.videoWidth,i.imgSize.height=this.videoHeight,i.isInScale&&i.normalize(),i.fit(!1))})),this.videoContent.src=t+(void 0===this.item.poster&&void 0===this.item.featuredImage&&L.Device.browser.safari&&L.isTouchDevice?"#t=0.001":""),this.itemInner.appendChild(this.itemImg)}},{key:"posX",set:function(e){this.view.style.left="".concat(this.size.width*e,"px"),this.positionIndex=e}},{key:"resize",value:function(e){this.boundingBoxScale=void 0,this.size=e,this.posX=this.positionIndex,this.isInScale&&this.normalize(),this.fit(!0)}},{key:"fit",value:function(){if(this.itemImg){var e=this.delegate.config.sl_xOffset,t=0,i=L.getFrameForBoxWithMode(this.imgSize,L.Size(this.size.width-2*e,this.size.height-2*t),!1,!1);i.x+=e,i.y+=t,this.imageFrameFF=i,t=this.delegate.config.sl_yOffset,(i=L.getFrameForBoxWithMode(this.imgSize,L.Size(this.size.width-2*e,this.size.height-2*t),!1,!1)).x+=e,i.y+=t,this.imageFrameNF=i,this.imgScale=Math.min(this.imgSize.width/i.width,this.MaxScale),this.imgScaleFF=this.imageFrameFF.height/i.height,"image"!==this.item.type&&"video"!==this.item.type&&"audio"!==this.item.type||(this.delegate.FF_Mode?(this.imageFrame=this.imageFrameFF,i=this.imageFrameFF,this.imageScaledFF=!0):(this.imageFrame=this.imageFrameNF,i=this.imageFrameNF,this.imageScaledFF=!1)),this.item.webImgFrame.x!==i.x||this.item.webImgFrame.y!==i.y||this.item.webImgFrame.width!==i.width||this.item.webImgFrame.height!==i.height?(this.imageFrame=i,this.item.webImgFrame=i):this.imageFramePr=i,this.subContentFrame=i}}},{key:"imageFrame",get:function(){return this.imageFramePr},set:function(e){this.itemImg.style.left="".concat(e.x,"px"),this.itemImg.style.top="".concat(e.y,"px"),this.itemImg.style.width="".concat(e.width,"px"),this.itemImg.style.height="".concat(e.height,"px"),this.imageFramePr=e}},{key:"subContentFrame",set:function(e){this.subContentHolder.style.left="".concat(e.x,"px"),this.subContentHolder.style.top="".concat(e.y,"px"),this.subContentHolder.style.width="".concat(e.width,"px"),this.subContentHolder.style.height="".concat(e.height,"px")}},{key:"checkOffset",value:function(e,t){var i=this.imageScaledFF?this.imageFrameFF:this.imageFrame;if(t!==this.boundingBoxScale){var n=i.width*(t||1),s=i.height*(t||1),o=i.x*(t||1),a=i.y*(t||1);this.boundingBox={left:n>this.size.width?-o:(this.size.width-this.size.width*t)/2,top:s>this.size.height?-a:(this.size.height-this.size.height*t)/2,right:n>this.size.width?this.size.width-(o+n):(this.size.width-this.size.width*t)/2,bottom:s>this.size.height?this.size.height-(a+s):(this.size.height-this.size.height*t)/2},this.boundingBoxScale=t}var r=e.x>this.boundingBox.left?this.boundingBox.left:e.x;r=r<this.boundingBox.right?this.boundingBox.right:r;var l=e.y>this.boundingBox.top?this.boundingBox.top:e.y;return l=l<this.boundingBox.bottom?this.boundingBox.bottom:l,L.Point(r,l)}},{key:"isPointInItem",value:function(e){var t=this.viewTranslate.x+this.size.width/2*this.newScale-this.imageFrame.width/2*this.newScale,i=t+this.imageFrame.width*this.newScale,n=this.size.height/2*this.newScale+this.viewTranslate.y-this.imageFrame.height/2*this.newScale*this.newScale,s=n+this.imageFrame.height*this.scale*this.newScale;return e.x>t&&e.x<i&&e.y>n&&e.y<s}},{key:"normalize",value:function(e){L.cancelAnimationFrame(this.animaSliderRender),e?this.renderTransformTo(L.Point(0,0),1):(this.scale=1,this.newScale=1,this.newScaleMW=1,this.viewTranslate=L.Point(0,0),this.origin=L.Point(0,0),this.targetPoint=this.origin)}},{key:"isInScale",get:function(){return 1!==this.newScale||0!==this.origin.x||0!==this.origin.y}},{key:"zoomIn",value:function(e,t){if("image"===this.item.type){L.cancelAnimationFrame(this.animaSliderRender);var i=t.x-this.viewTranslate.x,n=t.y-this.viewTranslate.y,s=i/this.scale,o=n/this.scale,a=t.x-s*e,r=t.y-o*e,l=L.Point(a,r);this.stopRenderTransform=!0,this.renderTransformTo(this.checkOffset(l,e),e)}}},{key:"zoomByScaleIter",value:function(e,t){if("image"===this.item.type){var i=e<0?1.065:.935;L.cancelAnimationFrame(this.animaSliderRender),this.newScale*i>this.MaxScale&&(i=this.MaxScale/this.newScale),this.newScale*i<1&&(i=1/this.newScale),this.newScale*=i,this.origin=L.Point(t.x-i*(t.x-this.origin.x),t.y-i*(t.y-this.origin.y)),this.stopRenderTransform=!0,this.renderTransformTo(this.checkOffset(this.origin,this.newScale),this.newScale)}}},{key:"zoomByScaleDeltaToPoint",value:function(e,t){if(this.delegate.pinchToZoom&&"image"===this.item.type){var i;L.cancelAnimationFrame(this.animaSliderRender);var n=e/this.startDistForZoom,s=0;(i=this.startDistForZoom/this.startScale*n/(this.startDistForZoom/this.startScale)*this.startScale)>this.MaxScale&&(s=.8*-(i-this.MaxScale)),i+=s;var o=this.startGlobalPoint.x-this.startTranslate.x,a=this.startGlobalPoint.y-this.startTranslate.y,r=o/this.newScale,l=a/this.newScale,h=this.startGlobalPoint.x-r*i,c=this.startGlobalPoint.y-l*i,d=L.Point(h-t.x,c-t.y);this.scale=i,this.newScale=i,this.viewTranslate=d,this.startTranslate=L.Point(h,c)}}},{key:"viewTranslate",get:function(){return this.viewTranslatePr},set:function(e){this.viewTranslatePr=e,this.itemInner.style.transform="matrix(".concat(this.scale,", 0, 0, \n        ").concat(this.scale,", ").concat(e.x,", ").concat(e.y,")")}},{key:"renderTransformByDelta",value:function(e,t){if(!this.stopRenderTransform){var i=L.Point(this.targetPoint.x-e,this.targetPoint.y-t);i=this.checkOffset(i,this.scale),this.renderTransformTo(i,this.scale)}}},{key:"renderTransformTo",value:function(e,t){var i=this;L.cancelAnimationFrame(i.animaSliderRender),this.origin=e,this.targetPoint=e,this.newScale=t;var n=0,s=0,o=0,a=.05,r=.22;i.animaSliderRender=L.requestAnimationFrame((function l(){n=n*a+(e.x-i.viewTranslate.x)*r,s=s*a+(e.y-i.viewTranslate.y)*r,t&&(o=o*a+(t-i.scale)*r);var h=i.viewTranslate.x;h+=n;var c=i.viewTranslate.y;c+=s,t&&(i.scale+=o),i.viewTranslate=L.Point(h,c),Math.abs(n)<.02&&Math.abs(s)<.02&&Math.abs(o)<.02?(L.cancelAnimationFrame(i.animaSliderRender),t&&(i.scale=t),i.viewTranslate=L.Point(e.x,e.y),i.stopRenderTransform=!1):i.animaSliderRender=L.requestAnimationFrame(l)}))}},{key:"renderGlidingTransform",value:function(){var e=this;L.cancelAnimationFrame(e.animaSliderRender);var t=.95,i=.95;e.animaSliderRender=L.requestAnimationFrame((function n(){e.speedX*=t,e.speedY*=i;var s=e.viewTranslate.x;s+=e.speedX;var o=e.viewTranslate.y;if(o+=e.speedY,s>e.boundingBox.left||s<e.boundingBox.right){e.speedX*=-1;var a=s<e.boundingBox.right?e.boundingBox.right:s;s=s>e.boundingBox.left?e.boundingBox.left:a,s+=e.speedX,t=.75}if(o>e.boundingBox.top||o<e.boundingBox.bottom){e.speedY*=-1;var r=o<e.boundingBox.bottom?e.boundingBox.bottom:o;o=o>e.boundingBox.top?e.boundingBox.top:r,o+=e.speedY,i=.75}e.origin=L.Point(s,o),e.viewTranslate=L.Point(s,o),Math.abs(e.speedX)<.02&&Math.abs(e.speedY)<.02?(L.cancelAnimationFrame(e.animaSliderRender),e.speedX=0,e.speedY=0):e.animaSliderRender=L.requestAnimationFrame(n)}))}},{key:"renderStretchstretchTransform",value:function(){var e=this;L.cancelAnimationFrame(e.animaSliderRender);var t=this.checkOffset(L.Point(e.viewTranslate.x+e.speedX,e.viewTranslate.y+e.speedY),e.scale),i=0,n=0;e.animaSliderRender=L.requestAnimationFrame((function s(){i=.2*i+.15*(t.x-e.viewTranslate.x),n=.2*n+.15*(t.y-e.viewTranslate.y);var o=e.viewTranslate.x+i,a=e.viewTranslate.y+n;e.viewTranslate=L.Point(o,a),Math.abs(i)<.02&&Math.abs(n)<.02?(L.cancelAnimationFrame(e.animaSliderRender),e.viewTranslate=t):e.animaSliderRender=L.requestAnimationFrame(s)}))}},{key:"startDrag",value:function(e,t){L.cancelAnimationFrame(this.animaSliderRender),"image"===this.item.type&&(this.startDistForZoom=t,this.startGlobalPoint=e,this.startTranslate=this.viewTranslate,this.speedX=0,this.speedY=0,this.newX=this.viewTranslate.x,this.newY=this.viewTranslate.y,this.startScale=this.scale)}},{key:"stopDrag",value:function(){if("image"===this.item.type){if(this.isInScale)if(this.scale<1)this.normalize(!0);else if(this.scale>this.MaxScale)this.zoomIn(this.MaxScale,this.startGlobalPoint);else{var e=this.checkOffset(this.origin,this.newScale);this.isBlockDraging=e.x!==this.origin.x||e.y!==this.origin.y,this.isBlockDraging&&this.renderStretchstretchTransform()}this.draging&&(this.isBlockDraging?this.renderStretchstretchTransform():this.renderGlidingTransform(),this.stopRenderTransform=!1,this.draging=!1)}}},{key:"dragin",value:function(e){if("image"!==this.item.type)return!1;var t=this.startTranslate.x-e.x,i=this.startTranslate.y-e.y,n=this.checkOffset(L.Point(t,i),this.newScale);return this.isBlockDraging=n.x!==t||n.y!==i,t-=.7*(t-n.x),i-=.7*(i-n.y),this.oldX=this.newX,this.newX=t,this.speedX=.7*(this.newX-this.oldX),this.oldY=this.newY,this.newY=i,this.speedY=.7*(this.newY-this.oldY),this.origin=L.Point(t,i),this.viewTranslate=L.Point(t,i),this.draging=!0,!0}},{key:"action",value:function(e,t){if(this.item)switch(e){case"click":if(t&&"enter"===t)return"linkAction";if("video"===this.item.type){if(this.videoContent){if(!1===this.videoContent.controls&&(this.view.classList.add("video-play"),this.view.classList.remove("info-icon"),this.delegate.videoVolume&&(this.videoContent.volume=this.delegate.videoVolume),this.videoContent.controls=!0,t||this.videoContent.play()),t&&"space"===t){if(!this.videoContent.paused)return void this.videoContent.pause();this.videoContent.play()}return this.videoContent.paused?"videoStop":"videoPlay"}if(this.item.mime_type)return this.isEmbedContent?(this.removeEmbedVideoContent(),"videoStop"):(this.addEmbedVideoContent(),"videoPlay")}if("audio"===this.item.type&&this.audioContent)return this.audioContent.paused?(this.audioContent.setAttribute("controls",""),this.audioContent.play(),"audioPlay"):(this.audioContent.pause(),this.audioContent.removeAttribute("controls"),"audioStop");if("post"===this.item.type||"page"===this.item.type||"product"===this.item.type)return"linkAction";break;case"removeSubContent":if("video"===this.item.type)return this.videoContent?(this.view.classList.remove("video-play"),this.view.classList.add("info-icon"),this.videoContent.pause(),this.videoContent.currentTime=0,this.videoContent.controls=!1,0!==this.videoContent.played.length&&(this.delegate.videoVolume=this.videoContent.volume)):this.removeEmbedVideoContent(),"videoStop";this.audioContent&&(this.audioContent.pause(),this.audioContent.currentTime=0);break;default:return}}},{key:"addEmbedVideoContent",value:function(){if(this.item.mime_type){var e=this.item.mime_type.split("/")[1];if(!e)return;this.view.classList.add("video-play");var t,i,n=this.item.videoId,s=this.delegate,o=this;switch(s.onYtStatusChange(void 0),e){case"youtube":if(void 0===window.YT){var a=document.createElement("script");a.src="https://www.youtube.com/iframe_api";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(a,r)}if(this.subContentHolder.innerHTML='<div id="'+n+'" data-id="sgb-video-player" data-gallery="'+s.appName+'" ></div>',window.YT){var l=window.YT,h={autoplay:1,frameborder:0,playlist:n,loop:s.config.sl_video_loop?1:0,rel:0};s.config.sl_video_loop||(delete h.playlist,delete h.loop);var c=new l.Player(n,{videoId:n,playerVars:h,events:{onReady:function(){s.onYtStatusChange("onReady")},onStateChange:function(e){1===e.data&&s.setVideoPlayer(c,"yt",o),s.onYtStatusChange(e.data)}}});s.setVideoPlayer(c,"yt",o)}else window.onYouTubeIframeAPIReady=function(){var e=window.YT,t={autoplay:1,frameborder:0,playlist:n,loop:s.config.sl_video_loop?1:0,rel:0};s.config.sl_video_loop||(delete t.playlist,delete t.loop);var i=new e.Player(n,{videoId:n,playerVars:t,events:{onReady:function(){s.onYtStatusChange("onReady")},onStateChange:function(e){1===e.data&&s.setVideoPlayer(i,"yt",o),s.onYtStatusChange(e.data)}}})};break;case"vimeo":t=(t=L.vimeoCode.replace("%id%",this.item.videoId)).replace("%hash%",this.item.videoHash?"h="+this.item.videoHash+"&":""),this.subContentHolder.innerHTML=t;var d=this.subContentHolder.querySelector('[data-id="sgb-video-player"]');if(d)if(d.setAttribute("data-gallery",s.appName),void 0===window.Vimeo){var u=document.createElement("script");u.src="https://player.vimeo.com/api/player.js";var m=document.getElementsByTagName("script")[0];m.parentNode.insertBefore(u,m),u.onload=function(){if(window.Vimeo){var e=new Vimeo.Player(d);s.config.sl_video_loop&&e.setLoop(!0),e.on("play",(function(e){s.onYtStatusChange("onReady")})),e.on("ended",(function(e){s.onYtStatusChange(0)})),e.on("play",(function(t){s.onYtStatusChange(1),s.setVideoPlayer(e,"vimeo",o)}))}}}else if(window.Vimeo){var v=new Vimeo.Player(d);s.config.sl_video_loop&&v.setLoop(!0),v.on("play",(function(e){s.onYtStatusChange("onReady")})),v.on("ended",(function(e){s.onYtStatusChange(0)})),v.on("play",(function(e){s.onYtStatusChange(1),s.setVideoPlayer(v,"vimeo",o)}))}break;case"videopress":i=L.videopressCode.replace("%id%",this.item.videoId),i=s.config.sl_video_loop?i.replace("%params%","&loop=1&"):i.replace("%params%",""),this.subContentHolder.innerHTML=i;var g=this.subContentHolder.querySelector('[data-id="sgb-video-player"]');if(g)if(g.setAttribute("data-gallery",s.appName),void 0===window.VideoPressPlayer){var p=document.createElement("script");p.src="https://videopress.com/videopress-iframe.js";var f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(p,f),p.onload=function(){if(window.VideoPressPlayer){var e=new VideoPressPlayer(g);e.on("play",(function(e){s.onYtStatusChange("onReady")})),e.on("ended",(function(e){s.onYtStatusChange(0)})),e.on("play",(function(t){s.onYtStatusChange(1),s.setVideoPlayer(e,"videopress",o)}))}}}else if(window.VideoPressPlayer){var y=new VideoPressPlayer(g);y.on("play",(function(e){s.onYtStatusChange("onReady")})),y.on("ended",(function(e){s.onYtStatusChange(0)})),y.on("play",(function(e){s.onYtStatusChange(1),s.setVideoPlayer(y,"videopress",o)}))}}this.isEmbedContent=!0}}},{key:"removeEmbedVideoContent",value:function(){this.isEmbedContent&&(this.subContentHolder.innerHTML=new ce(this.iconSet.PLAY_SVG).innerHTML,this.subContentHolder.getElementsByTagName("svg")[0].style.marginLeft="7px",this.isEmbedContent=!1,this.view.classList.remove("video-play"),this.view.classList.add("info-icon"),this.delegate.onYtStatusChange(void 0),this.delegate.setVideoPlayer(void 0,void 0))}},{key:"fadePrep",value:function(){this.itemInner.style.animationName=null}},{key:"fadeIn",value:function(){var e=this;this.itemInner.style.animationName="pgc-rev-fade-in",this.fadeAnimClear=setTimeout((function(){e.fadePrep()}),600)}}],[{key:"classPref",get:function(){return"pgc-rev-slider-page-"}}])}(),ue=function(){function e(t,i){se(this,e),this.iconSet=e.ICONS,this.config=e.CONFIG,L.copyProperties(i,this.config),this.appSet=t,this.appName=t.appName,this.cacherItemsList=this.appSet.cacheItemsList,this.id="".concat(this.appName,"_vitSlider_"),this.itemsList=void 0,this.visibleBounds=L.Rect(0,0,0,0),this.isControllsShow=!1,this.isZooming=!1,this.needHideControlls=!1,this.naviButtonsStatus=void 0,this.canNext=!0,this.canPrev=!0,this.firsrTap=void 0,this.removing=!1,this.createlayoutDelay=void 0,this.intitByTermDelay=void 0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.id="".concat(this.id,"main"),this.resizeDelay=void 0,this.size=L.Size(0,0);var n=document.createElement("div");n.className="".concat(e.classPref,"bg"),this.config.sl_backgroundColor&&(this.background=n,this.background.style.backgroundColor=this.config.sl_backgroundColor,this.view.appendChild(n)),this.config.sl_audioPlayer&&this.config.sl_audioPlayer.pause(),this.sliderPages=[],this.draggingPr=!1,this.zoomingDrag=!1,this.speedX=0,this.speedY=0,this.scrollViewTranslateXPr=0,this.scrollViewTranslateYPr=0,this.startDragHandler=void 0,this.currentItemIndex=void 0,this.startItemIndex=0,this.items=[],this.itemsAmount=0,this.itemNumPr=void 0,this.pageInFocus=void 0,this.pageInFocusPrev=void 0,this.zoomingPage=void 0,this.videoVolume=void 0,this.pinchToZoom=!0,this.canRemovedLite=!1,this.FF_Mode=!1,this.mouseWheelMode=!1,this.animaSliderRender=void 0,this.slider=document.createElement("div"),this.slider.className="".concat(e.classPref,"wrap"),this.view.appendChild(this.slider),this.autoStartActionDelay=void 0,this._ytStatus=void 0}return ae(e,[{key:"setYOffset",value:function(e){this.config.sl_yOffset=e,this.resizeHandler(this.size)}},{key:"onYtStatusChange",value:function(t){this._ytStatus=t,this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.YT_ON_CHANGE_STATUS,this,{status:t,itemIndex:this.itemIndex,itemID:this.itemsList[this.itemIndex].id}))}},{key:"ytStatus",get:function(){return this._ytStatus}},{key:"dragging",get:function(){return this.draggingPr},set:function(e){e?this.view.classList.add("isDragging"):this.view.classList.remove("isDragging"),this.draggingPr=e}},{key:"viewOfsetY",get:function(){return this.view.getBoundingClientRect().top+L.pageYOffset}},{key:"viewOfsetX",get:function(){return this.view.getBoundingClientRect().left+L.pageXOffset}},{key:"copyRight",value:function(){var t,i=this;return function(n){if(!L.Device.ios||"mouseup"!==n.type){var s,o;n.changedTouches&&n.changedTouches[0]?(s=n.changedTouches[0].pageX,o=n.changedTouches[0].pageY):(s=n.pageX,o=n.pageY),s-=i.viewOfsetX,o-=i.viewOfsetY;var a=i.itemsList[i.itemIndex];if(a.webView&&a.webView===n.target||n.target.className&&"pgc-rev-slider-page-sub-content-holder"===n.target.className||n.target.className&&("lb-video-content"===n.target.className||"lb-audio-content"===n.target.className)){n.preventDefault();var r=document.getElementById("gm_copyr");r&&(clearTimeout(t),r.parentNode.removeChild(r),r=null),(r=document.createElement("div")).id="gm_copyr",r.className="".concat(e.classPref,"hints"),r.innerHTML=a.user&&a.user.displayname?"Hey, this photo is &#169;".concat(a.user.displayname):i.config.sl_copyR_Alert,a.copyright&&""!==a.copyright&&(r.innerHTML=a.copyright),r.style.top="".concat(o,"px"),r.style.left="".concat(s,"px"),i.view.appendChild(r),t=setTimeout((function(){r.parentNode.removeChild(r)}),1e3)}}}}},{key:"initByStage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.appendChild(this.view),t&&this.createControlls()}},{key:"addToStage",value:function(){var t=this,i=document.getElementsByTagName("body")[0];this.view.style.zIndex=L.findHighestZIndex(i)+1,L.disableBodyScrollSlider(),i.appendChild(this.view),setTimeout((function(){t.view.classList.add("".concat(e.classPref,"activate"))}),30)}},{key:"initByList",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&e.length>0){var n=this;if(this.currentItemIndex=t&&0!==t?0:void 0,this.startItemIndex=t||0,this.itemsList=e,!i)return void n.createLayout();this.createlayoutDelay=setTimeout((function(){n.createLayout()}),100)}}},{key:"prepareToRemove",value:function(){if(!this.removing){clearTimeout(this.createlayoutDelay),clearTimeout(this.intitByTermDelay),this.removing=!0,this.cacherItemsList.init(),this.appSet.appEventManager.removeGMEventListener(e.EVENTS.COLLECTION_DATA_REDY,this,"dataLoaded"),this.view.removeEventListener("wheel",this.handlerMWheel,!1),this.config.sl_copyR_Proptection&&document.removeEventListener("contextmenu",this.copyR,!1),this.config.sl_audioPlayer&&this.config.sl_audioPlayer.pause(),this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.REMOVE_LIGHTBOX,this,{}));for(var t=0;t<this.sliderPages.length;t+=1){this.sliderPages[t].clearPage();var i=this.sliderPages[t].view;i.parentNode&&i.parentNode.removeChild(i)}this.sliderPages=[],this.removing=!1}}},{key:"remoteControl",value:function(t){if(this.startDragHandler||"esc"===t)switch(t){case"prev":this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{draging:!0})),this.gotoPrev();break;case"next":this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{draging:!0})),this.gotoNext();break;case"enter":case"space":this.firstClick(L.Point(this.view.clientWidth/2,this.view.clientHeight/2),t);break;case"esc":this.prepareToRemove();break;case"zoom":this.zoomSwitch()}}},{key:"showPreloader",value:function(e){var t;if(e){if(document.getElementById("".concat(this.appName,"slider_preloader")))return;(t=L.createPreloaderView(this.config.sl_preloaderColor)).id="".concat(this.appName,"slider_preloader"),this.view.appendChild(t)}else(t=document.getElementById("".concat(this.appName,"slider_preloader")))&&L.fadeOut(t,(function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),500)}},{key:"createLayout",value:function(){var t=this;this.itemsAmount=this.itemsList.length,this.size=L.Size(this.view.clientWidth,this.view.clientHeight),L.miniScreen&&this.slider.classList.add("miniScreen"),this.prevButton&&this.size.width<500&&(this.prevButton.classList.add("next-prev-button-mini-screen"),this.nextButton.classList.add("next-prev-button-mini-screen")),this.initSlider(),this.size.height<700&&this.slider.classList.add("miniScreen"),this.initDownloadProtection(this.config.sl_copyR_Proptection,this.config.sl_copyR_Alert),this.view.addEventListener("wheel",this.mouseWheelHandler(),!1),setTimeout((function(){t.showControlls(!0),t.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{status:"ready"}))}),500)}},{key:"initDownloadProtection",value:function(e,t){t&&(this.config.sl_copyR_Alert=t),e?(this.copyR&&document.removeEventListener("contextmenu",this.copyR,!1),this.copyR=this.copyRight(),document.addEventListener("contextmenu",this.copyR,!1)):(document.removeEventListener("contextmenu",this.copyR,!1),this.copyR=void 0),this.config.sl_copyR_Proptection=e}},{key:"itemIndex",get:function(){return this.itemNumPr},set:function(e){this.itemNumPr=e,this.updateControlls()}},{key:"pageConstructor",get:function(){return new de(this)}},{key:"initSlider",value:function(){var e,t=0;if(0===this.sliderPages.length)for(t=0;t<3;t+=1)e=this.pageConstructor,this.slider.appendChild(e.view),this.sliderPages.push(e),e.resize(this.size);var i=this.itemsAmount>2?-1:0;for(t=0;t<3;t+=1)(e=this.sliderPages[t]).posX=i,e.itemIndex=void 0,i+=1;this.startDragHandler?this.gotoPageByNum(0):(this.startDragHandler=this.startDrag(),L.isTouchDevice&&(this.slider.addEventListener("touchstart",this.startDragHandler,L.passiveListener),window.addEventListener("touchmove",(function(){}),L.passiveListener)),this.slider.addEventListener("mousedown",this.startDragHandler,!1),this.gotoPageByNum(this.startItemIndex))}},{key:"scrollViewTranslateY",get:function(){return this.scrollViewTranslateYPr},set:function(e){this.scrollViewTranslateYPr=e,this.slider.style.transform="translate3d(".concat(this.scrollViewTranslateX,"px,").concat(e,"px, 0px)"),0===e||this.canRemovedLite||this.sliderVerticalRender()}},{key:"scrollViewTranslateX",get:function(){return this.scrollViewTranslateXPr},set:function(e){this.scrollViewTranslateXPr=e,this.slider.style.transform="translate3d(".concat(e,"px,").concat(this.scrollViewTranslateY,"px, 0px)"),!1===this.config.sl_carouselMode&&(e>0||e<-this.size.width*(this.itemsAmount-1))||this.pageRenderByIndex(-Math.round(e/this.size.width))}},{key:"sliderVerticalRender",value:function(){var t=1-Math.abs(this.scrollViewTranslateY)/(this.size.height/2);this.background&&(this.background.style.opacity=t),this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{backgroundOpacity:t})),this.needHideControlls||(t<.8?(this.showHideNaviButton("hide"),this.showControlls(!1)):(this.showHideNaviButton("show"),this.showControlls(!0)))}},{key:"tryOpenItemID",value:function(e){for(var t=0;t<this.itemsList.length;t+=1)if(this.itemsList[t].ID===e)return this.gotoPageByNum(t),!0;return!1}},{key:"gotoPageByNum",value:function(e){this.currentItemIndex!==e?this.gotoPageByIndex(e,!1):this.pausePlayVideo()}},{key:"gotoNext",value:function(){this.gotoPageByIndex(this.currentItemIndex+1,this.config.sl_next_prev_animation)}},{key:"gotoPrev",value:function(){this.gotoPageByIndex(this.currentItemIndex-1,this.config.sl_next_prev_animation)}},{key:"renderTransformTo",value:function(e){var t=this;L.cancelAnimationFrame(t.animaSliderRender);var i=5*t.speedX,n=5*t.speedY;t.animaSliderRender=L.requestAnimationFrame((function s(){i=.2*i+.15*(e.x-t.scrollViewTranslateX),n=.2*n+.15*(e.y-t.scrollViewTranslateY),t.scrollViewTranslateX+=i,t.scrollViewTranslateY+=n,Math.abs(i)<1&&Math.abs(n)<1&&(t.dragging=!1),Math.abs(i)<.1&&Math.abs(n)<.1?(L.cancelAnimationFrame(t.animaSliderRender),t.scrollViewTranslateX=e.x,t.scrollViewTranslateY=e.y,t.sliderTransitionComplete({target:t.slider})):t.animaSliderRender=L.requestAnimationFrame(s)}))}},{key:"gotoPageByIndex",value:function(e,t){if(void 0!==this.size.width&&0!==this.size.width){(this.itemsAmount<3||!1===this.config.sl_carouselMode)&&(e=Math.max(0,e),e=Math.min(this.itemsAmount-1,e));var i=-e*this.size.width;t?this.renderTransformTo(L.Point(i,this.scrollViewTranslateY)):(L.cancelAnimationFrame(this.animaSliderRender),this.scrollViewTranslateX=i,this.pageInFocus&&this.pageInFocus.fadeIn(),this.sliderTransitionComplete({target:this.slider}))}}},{key:"pageRenderByIndex",value:function(e){if(void 0===e||this.currentItemIndex!==e){void 0!==this.pageInFocus&&(this.pageInFocusPrev=this.pageInFocus,this.pageInFocusPrev.action("removeSubContent"),this.pageInFocus.isInScale&&(this.zoomingPage=this.pageInFocus));var t=0;if(this.itemsAmount<3){for(t=0;t<this.itemsAmount;t+=1)this.sliderPages[t].initByItem(this.itemsList[t]);return this.pageInFocus=this.sliderPages[e],this.currentItemIndex=e,void(this.itemIndex=e)}var i=(e+1)%3;i<0&&(i+=3);var n=i-1>=0?i-1:2,s=i+1<3?i+1:0,o=[n,i,s],a=[e-1,e,e+1];for(t=0;t<o.length;t+=1)this.sliderPages[o[t]].posX=a[t];this.currentItemIndex=e,this.pageInFocus=this.sliderPages[i],this.itemIndex=e<0?this.itemsAmount+(e%this.itemsAmount==0?-this.itemsAmount:e%this.itemsAmount):e%this.itemsAmount,this.sliderPages[i].initByItem(this.itemsList[this.itemIndex]),this.sliderPages[s].initByItem(this.itemIndex+1<this.itemsAmount?this.itemsList[this.itemIndex+1]:this.config.sl_carouselMode?this.itemsList[0]:void 0),this.sliderPages[n].initByItem(this.itemIndex-1<0?this.config.sl_carouselMode?this.itemsList[this.itemsAmount-1]:void 0:this.itemsList[this.itemIndex-1])}}},{key:"pausePlayVideo",value:function(){var e=this;if(void 0!==this.videoInPlayer&&void 0!==this.videoInPlayer&&void 0!==this.videoPlayerType&&this.videoPlayer&&this.videoPlayerType)try{"yt"===this.videoPlayerType?2===this.videoPlayer.getPlayerState()?this.videoPlayer.playVideo():1===this.videoPlayer.getPlayerState()&&this.videoPlayer.pauseVideo():"vimeo"===this.videoPlayerType?this.videoPlayer.getPaused().then((function(t){t?e.videoPlayer.play():e.videoPlayer.pause()})):"html"===this.videoPlayerType&&(this.videoPlayer.paused?this.videoPlayer.play():this.videoPlayer.pause())}catch(e){le(e)}}},{key:"tryPausedVideo",value:function(e){if(void 0!==this.videoInPlayer&&this.videoInPlayer!==e&&this.videoPlayer)try{"html"===this.videoPlayerType||"vimeo"===this.videoPlayerType?this.videoPlayer.pause():"yt"===this.videoPlayerType&&this.videoPlayer.pauseVideo(),this.externalPause=!0}catch(e){le(e)}}},{key:"tryPlayAgainVideo",value:function(){if(void 0!==this.videoInPlayer&&void 0!==this.videoPlayer&&void 0!==this.videoPlayerType)try{"html"===this.videoPlayerType||"vimeo"===this.videoPlayerType?this.videoPlayer.play():"yt"===this.videoPlayerType&&this.videoPlayer.playVideo()}catch(e){le(e)}}},{key:"setVideoPlayer",value:function(e,t,i){this.videoPlayerType=t,this.videoPlayer=e,this.externalPause=!1,i?(this.videoInPlayer=i.item.id,this.videoAutoStarted=i.item.id):this.videoInPlayer=void 0}},{key:"tryAutoStartVideo",value:function(e){this.config.sl_video_auto_start&&this.pageInFocus.item&&this.videoAutoStarted!==e&&"video"===this.pageInFocus.item.type&&this.pageInFocus.item.id===e&&window&&void 0===window.pgcVideoAutostartLock&&(this.videoAutoStarted=e,this.firstClick(L.Point(this.view.clientWidth/2,this.view.clientHeight/2),"space"))}},{key:"sliderTransitionComplete",value:function(e){var t=this;if(e.target===this.slider){var i=this.cacherItemsList.status();(i.list!==this.itemsList||i.list===this.itemsList&&this.itemIndex>=i.index)&&this.cacherItemsList.init(this.itemsList,this.itemIndex,5),clearTimeout(this.autoStartActionDelay),this.config.sl_video_auto_start&&this.pageInFocus.item&&("video"!==this.pageInFocus.item.type&&(this.videoAutoStarted=void 0),this.pageInFocus.videoContentReady&&(this.autoStartActionDelay=setTimeout((function(){t.tryAutoStartVideo(t.pageInFocus.item.id)}),600))),void 0!==this.zoomingPage&&this.zoomingPage!==this.pageInFocus&&(this.zoomingPage.normalize(),this.zoomControll())}}},{key:"mouseWheelHandler",value:function(){var t=this,i=Date.now(),n=[],s=[],o=400,a=0;return t.handlerMWheel=function(r){if(!1!==t.mouseWheelMode||!1!==t.config.sl_mouseWheelPagination||t.zoomingPage){r.stopPropagation(),r.preventDefault();var l=L.Point(0,0);if("deltaX"in r)1===r.deltaMode?(l.x=18*r.deltaX,l.y=18*r.deltaY):(l.x=r.deltaX,l.y=r.deltaY);else if("wheelDelta"in r)r.wheelDeltaX&&(l.x=-.16*r.wheelDeltaX),r.wheelDeltaY?l.y=-.16*r.wheelDeltaY:l.y=-.16*r.wheelDelta;else{if(!("detail"in r))return;l.y=r.detail}if(t.config.sl_mouseWheelPagination&&!t.isZoom){var h=Math.abs(l.y)>Math.abs(l.x)?l.y:-l.x,c=Date.now();0===n.length&&n.push(c),c-n[0]<o?(s.length>0&&s[s.length-1]!==h&&(a+=1),s.push(h),n.push(c)):(o=a>3?1100:500,s=[],n=[],a=0),c-i>o&&(h>0?t.gotoNext():t.gotoPrev(),t.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{draging:!0})),i=c)}else t.zoomingPage&&!t.dragging&&t.zoomingPage.renderTransformByDelta(l.x,l.y)}},t.handlerMWheel}},{key:"zoomSwitch",value:function(){var e=L.Point(this.view.clientWidth/2,this.view.clientHeight/2);this.secondClick(e)}},{key:"isZoom",get:function(){return!!this.pageInFocus&&this.pageInFocus.isInScale}},{key:"fitMode",value:function(e){this.config.sl_fit&&(this.FF_Mode=e);for(var t=0;t<this.sliderPages.length;t+=1)this.sliderPages[t].fit()}},{key:"firstClick",value:function(e,t){var i;if(this.pageInFocus?i=this.pageInFocus.action("click",t):this.prepareToRemove(),this.pageInFocus.isPointInItem(e)||L.miniScreen)if(this.pageInFocus.isInScale)this.pageInFocus.normalize(!0),this.zoomingPage=void 0,this.showControlls(!this.needHideControlls);else switch(i){case"audioPlay":this.fitMode(!0),this.showControlls(!1),this.needHideControlls=!this.isControllsShow;break;case"audioStop":this.fitMode(!1),this.showControlls(!0),this.needHideControlls=!this.isControllsShow;break;case"linkAction":void 0!==this.pageInFocus.item.link&&""!==this.pageInFocus.item.link&&window.open(this.pageInFocus.item.link,this.pageInFocus.item.link_target?this.pageInFocus.item.link_target:"_blank");break;case"videoPlay":this.pageInFocus.isPointInItem(e)?(this.fitMode(!0),this.showControlls(!1),this.needHideControlls=!this.isControllsShow):(this.switchShowControlls(),this.needHideControlls=!this.isControllsShow);break;case"videoStop":this.pageInFocus.isPointInItem(e)?(this.fitMode(!1),this.showControlls(!0),this.needHideControlls=!this.isControllsShow):(this.switchShowControlls(),this.needHideControlls=!this.isControllsShow);break;default:this.fitMode(this.isControllsShow),this.switchShowControlls(),this.needHideControlls=!this.isControllsShow}else this.config.sl_canRemoved?"videoStop"===i?(this.fitMode(!1),this.showControlls(!0),this.needHideControlls=!this.isControllsShow):this.prepareToRemove():this.config.sl_canRemoved||("videoStop"===i?(this.fitMode(!1),this.showControlls(!0),this.needHideControlls=!this.isControllsShow):this.blackMilkEvent&&this.blackMilkEvent())}},{key:"secondClick",value:function(e){this.config.sl_zoom&&this.pageInFocus.isPointInItem(e)&&(this.pageInFocus.isInScale?(this.pageInFocus.normalize(!0),this.zoomingPage=void 0,this.showControlls(!this.needHideControlls)):(this.zoomingPage&&this.zoomingPage.normalize(),this.zoomingPage=this.pageInFocus,this.zoomingPage.zoomIn(Math.abs(this.zoomingPage.imgScale-1)<.3?2:this.zoomingPage.imgScale,e),this.needHideControlls=!this.isControllsShow,this.showControlls(!1)))}},{key:"doubleClickController",value:function(e){var t=this;if(!L.Device.ios||"mouseup"!==e.type){var i,n;if(e.changedTouches&&e.changedTouches[0]?(i=e.changedTouches[0].pageX,n=e.changedTouches[0].pageY):(i=e.pageX,n=e.pageY),i-=this.viewOfsetX,n-=this.viewOfsetY,this.firsrTap)return clearTimeout(this.firsrTap),this.firsrTap=void 0,void this.secondClick(L.Point(i,n));this.firsrTap=setTimeout((function(){t.firsrTap=void 0,t.firstClick(L.Point(i,n))}),400)}}},{key:"startDrag",value:function(){var t,i,n,s,o,a,r,l,h,c=this,d=c.viewOfsetY,u=c.viewOfsetX,m=0,v=0,g=0;function p(e){var t,l,h,p,f;if(e.originalEvent&&(e=e.originalEvent),e.touches?!c.dragging&&e.touches.length>1?c.config.sl_zoom&&(r=!0,t=e.touches[0].pageX,l=e.touches[0].pageY,h=e.touches[1].pageX,p=e.touches[1].pageY,f=Math.hypot(t-h,l-p),t+=(h-t)/2,l+=(p-l)/2):(r=!1,t=e.touches[0].pageX,l=e.touches[0].pageY):(t=e.pageX,l=e.pageY),t-=u,l-=d,!(L.Device.ios&&i<=20)){var y,b;if(void 0===a&&(l===n?a=!1:(y=180*Math.atan2(Math.abs(l-n),Math.abs(t-i))/Math.PI,a=y>45)),!c.dragging&&c.zoomingPage){e.preventDefault();var w=Math.abs(i-t)>4?i-t:0,S=Math.abs(n-l)>4?n-l:0;return(w||S)&&(c.zoomingDrag=!0),void(r?c.pageInFocus.zoomByScaleDeltaToPoint(f,L.Point(w,S),L.Point(t,l)):c.zoomingPage&&c.zoomingPage.dragin(L.Point(w,S)))}a?(m=0,(b=Math.abs(n-l)>4?n-l:0)&&(c.dragging=!0),(c.config.sl_canRemoved||c.canRemovedLite)&&(c.scrollViewTranslateY=o-b)):(e.preventDefault(),c.transition=!0,(b=Math.abs(i-t)>4?i-t:0)&&(c.dragging=!0),c.scrollViewTranslateX=s-b,v=g,g=c.scrollViewTranslateX,m=g-v)}}function f(e){if(a=void 0,L.isTouchDevice&&(document.removeEventListener("touchmove",p,L.passiveListener),document.removeEventListener("touchend",f,L.passiveListener)),document.removeEventListener("mousemove",p,!1),document.removeEventListener("mouseup",f,!1),document.removeEventListener("contextmenu",f,!1),c.dragging||r||c.zoomingDrag){if(c.zoomingPage&&(c.zoomingPage.stopDrag(),r=!1),!c.zoomingPage)if(Math.abs(c.scrollViewTranslateY)<4){var i=c.currentItemIndex,n=L.isTouchDevice?7:1;Math.abs(m)>n&&t===c.currentItemIndex&&(i=m>0?i-1:i+1),c.speedX=m,c.scrollViewTranslateY=0,c.gotoPageByIndex(i,!0)}else{var s=c.scrollViewTranslateY/(c.size.height/2);Math.abs(s)>.2?c.canRemovedLite?c.blackMilkEvent&&(c.scrollViewTranslateY=0,c.blackMilkEvent()):c.prepareToRemove():c.renderTransformTo(L.Point(c.scrollViewTranslateX,0))}this.dragging=!1}else c.doubleClickController(e);c.zoomingDrag=!1,h=e.type}return function(a){var y,b,w,S;"mousedown"===a.type&&"touchend"===h||(c.zoomingPage=c.pageInFocus.isInScale?c.pageInFocus:void 0,L.cancelAnimationFrame(c.animaSliderRender),t=c.currentItemIndex,a.originalEvent&&(a=a.originalEvent),L.isTouchDevice||a.preventDefault(),a.button&&0!==a.button||(a.touches?!c.dragging&&a.touches.length>1?c.config.sl_zoom&&(r=!0,y=a.touches[0].pageX,b=a.touches[0].pageY,w=a.touches[1].pageX,S=a.touches[1].pageY,l=Math.hypot(y-w,b-S),y+=(w-y)/2,b+=(S-b)/2,c.zoomingPage=c.pageInFocus,c.needHideControlls=c.isControllsShow,c.showControlls(!1)):(y=a.touches[0].pageX,b=a.touches[0].pageY):(y=a.pageX,b=a.pageY),y-=u,b-=d,c.speedX=0,c.speedY=0,m=0,v=0,g=c.scrollViewTranslateX,i=y,n=b,s=c.scrollViewTranslateX,o=c.scrollViewTranslateY,c.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,c,{draging:!0})),c.zoomingPage&&c.zoomingPage.startDrag(L.Point(i,n),l),L.isTouchDevice&&(document.addEventListener("touchmove",p,L.passiveListener),document.addEventListener("touchend",f,L.passiveListener)),document.addEventListener("mousemove",p,!1),document.addEventListener("mouseup",f,!1),document.addEventListener("contextmenu",f,!1)))}}},{key:"createControlls",value:function(){var t=this;function i(e){e.style.backgroundColor=t.config.sl_navigationColorOver,e.childNodes[0].style.fill=t.config.sl_navigationIconColorOver,e.classList.add("hover")}function n(e){e.style.backgroundColor=t.config.sl_navigationColor,e.childNodes[0].style.fill=t.config.sl_navigationIconColor,e.classList.remove("hover")}this.prevButton=document.createElement("div"),this.prevButton.className="".concat(e.classPref,"next-prev-button"),this.prevButton.style.left="".concat(0,"px"),this.prevButton.style.transform="translate(-150%, -50%)",this.prevButton.style.backgroundColor=t.config.sl_navigationColor,this.prevButton.style.visibility="hidden",this.prevButton.innerHTML=L.ICONS.PREV_ARR,this.prevButton.childNodes[0].style.fill=t.config.sl_navigationIconColor,this.prevButton.onmouseenter=function(){i(this)},this.prevButton.onmouseleave=function(){n(this)},this.prevButton.onclick=function(){t.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{draging:!0})),t.gotoPrev(),L.Device.desktop||n(this)},this.view.appendChild(this.prevButton),this.nextButton=document.createElement("div"),this.nextButton.className="".concat(e.classPref,"next-prev-button"),this.nextButton.style.backgroundColor=t.config.sl_navigationColor,this.nextButton.style.right="0px",this.nextButton.style.transform="translate(150%, -50%)",this.nextButton.style.visibility="hidden",this.nextButton.innerHTML=L.ICONS.NEXT_ARR,this.nextButton.childNodes[0].style.fill=t.config.sl_navigationIconColor,this.nextButton.onmouseenter=function(){i(this)},this.nextButton.onmouseleave=function(){n(this)},this.nextButton.onclick=function(){t.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{draging:!0})),t.gotoNext(),L.Device.desktop||n(this)},this.view.appendChild(this.nextButton)}},{key:"switchShowControlls",value:function(){this.showControlls(!this.isControllsShow)}},{key:"showHideNaviButton",value:function(t){if(this.naviButtonsStatus!==t){switch(t){case"show":if(this.isZoom)return;this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{next:this.canNext?"show":"hide",prev:this.canPrev?"show":"hide"})),this.prevButton&&(this.prevButton.style.transform="translate(0%, -50%)",this.prevButton.style.transform="translate(0%, -50%)",this.canNext&&(this.prevButton.style.transform="translate(0%, -50%)"),this.canNext&&(this.nextButton.style.transform="translate(0%, -50%)"));break;case"hide":this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{next:"hide",prev:"hide"})),this.prevButton&&(this.prevButton.style.transform="translate(-150%, -50%)",this.nextButton.style.transform="translate(150%, -50%)")}this.naviButtonsStatus=t}}},{key:"zoomControll",value:function(){this.isZooming!==this.isZoom&&(this.isZooming=this.isZoom,this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{zoom:this.isZoom?"zoomIn":"zoomOut"})),this.isZoom?(this.view.classList.add("pgc-img-zoom-in"),this.showHideNaviButton("hide")):(this.view.classList.remove("pgc-img-zoom-in"),this.showHideNaviButton("show")))}},{key:"showControlls",value:function(t){this.zoomControll(),this.isControllsShow!==t&&(t?(this.slider.classList.add("pgc-show-controls"),this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{controls:"show"})),this.showHideNaviButton("show")):(this.slider.classList.remove("pgc-show-controls"),this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{controls:"hide"})),L.miniScreen&&this.showHideNaviButton("hide")),this.isControllsShow=t)}},{key:"updateControlls",value:function(){this.itemsAmount<3||!1===this.config.sl_carouselMode?(0===this.itemIndex?(this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{prev:"hide"})),this.canPrev=!1,this.prevButton&&(this.prevButton.style.visibility="hidden")):(this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{prev:"show"})),this.canPrev=!0,this.prevButton&&(this.prevButton.style.visibility="visible")),this.itemIndex===this.itemsAmount-1?(this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{next:"hide"})),this.canNext=!1,this.nextButton&&(this.nextButton.style.visibility="hidden")):(this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{next:"show"})),this.canNext=!0,this.nextButton&&(this.nextButton.style.visibility="visible")),1===this.itemsAmount&&(this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{next:"hide",prev:"hide"})),this.canNext=this.canPrev=!1,this.prevButton&&(this.prevButton.style.visibility="hidden"),this.nextButton&&(this.nextButton.style.visibility="hidden"))):(this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{next:"show",prev:"show"})),this.canNext=this.canPrev=!0,this.prevButton&&(this.prevButton.style.visibility="visible"),this.nextButton&&(this.nextButton.style.visibility="visible"));var t=this.itemsList[this.itemIndex];t&&this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{item:t,itemIndex:this.itemIndex}))}},{key:"resizeHandler",value:function(e){var t=this;this.resizeDelay&&clearTimeout(this.resizeDelay),L.cancelAnimationFrame(this.animaSliderRender),this.resizeDelay=setTimeout((function(){if(t.size=e,t.prevButton&&(t.size.width<500?(t.prevButton.classList.add("next-prev-button-mini-screen"),t.nextButton.classList.add("next-prev-button-mini-screen")):(t.prevButton.classList.remove("next-prev-button-mini-screen"),t.nextButton.classList.remove("next-prev-button-mini-screen"))),0!==t.sliderPages.length){for(var i=0;i<t.sliderPages.length;i+=1)t.sliderPages[i].resize(t.size);t.zoomControll(),t.gotoPageByIndex(t.currentItemIndex,!1),t.size.height<410&&t.config.sl_canRemoved&&(t.showControlls(!1,!0),t.needHideControlls=!0)}}),70)}}],[{key:"classPref",get:function(){return"pgc-rev-slider-"}},{key:"ICONS",get:function(){return{PLAY_SVG:'<svg version="1.1" viewBox="0 0 50 60" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M48.479,27.435L5.672,0.915C2.553-1.132,0,0.374,0,4.261v51.48c0,3.885,2.553,5.391,5.672,3.346l42.807-26.52   c0,0,1.521-1.07,1.521-2.566S48.479,27.435,48.479,27.435z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',NOTE_SVG:'<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736   c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451   c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>'}}},{key:"EVENTS",get:function(){return{COLLECTION_DATA_REDY:"COLLECTION_DATA_REDY",UPDATE_CONTROLS:"UPDATE_CONTROLS",YT_ON_CHANGE_STATUS:"YT_ON_CHANGE_STATUS",ZOOM:"ZOOM",REMOVE_LIGHTBOX:"REMOVE_LIGHTBOX"}}},{key:"CONFIG",get:function(){return{sl_preloaderColor:"#494949",sl_backgroundColor:"rgba(0,0,0,1)",sl_navigationIconColor:"rgba(255,255,255,1)",sl_navigationIconColorOver:"rgba(0,0,0,0.8)",sl_navigationColor:"rgba(0,0,0,0.8)",sl_navigationColorOver:"rgba(255,255,255,1)",sl_zoom:!1,sl_fit:!1,sl_xOffset:2,sl_yOffset:0,sl_canRemoved:!1,sl_copyR_Alert:"Hello, this photo is mine!",sl_copyR_Proptection:!0,sl_audioPlayer:void 0,sl_mouseWheelPagination:!1,sl_next_prev_animation:!1,sl_video_auto_start:!1,sl_video_loop:!1,sl_carouselMode:!0,sl_FullSizeViewMode:!1}}}])}(),me=i(9966),ve=i.n(me),ge={};function pe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function fe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(i),!0).forEach((function(t){ye(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):pe(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function ye(e,t,i){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(e)}function we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ce(n.key),n)}}function Ee(e,t,i){return t&&Se(e.prototype,t),i&&Se(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ce(e){var t=function(e){if("object"!=be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=be(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==be(t)?t:t+""}ge.styleTagTransform=u(),ge.setAttributes=l(),ge.insert=a().bind(null,"head"),ge.domAPI=s(),ge.insertStyleElement=c(),t()(ve(),ge),ve()&&ve().locals&&ve().locals;var _e=function(){function e(t,i){we(this,e),this.delegate=t,this.appSet=this.delegate.appSet,this.appName=t.appName,this.config=e.CONFIG,L.copyProperties(i,this.config);var n='<svg class="'.concat(e.classPref,'progress-radial" width="22px" height="22px" viewBox="0 0 100 100" shape-rendering="geometricPrecision">\n        <defs><mask id="circle_mask" x="0" y="0" width="100" height="100" maskUnits="userSpaceOnUse">\n        <circle cx="50" cy="50" r="51" stroke-width="0" fill="black" opacity="1"/>\n        <circle cx="50" cy="50" r="50" stroke-width="0" fill="white" opacity="1"/>\n        <circle class="').concat(e.classPref,'progress-radial-mask-inner" cx="50" cy="50" r="40" stroke-width="0" fill="black" opacity="1"/>\n        </mask></defs><g mask="url(#circle_mask)">\n        <circle class="').concat(e.classPref,'progress-radial-track" cx="50" cy="50" r="50" stroke-width="0" opacity="1"/>\n        <path class="').concat(e.classPref,'progress-radial-bar" transform="translate(50, 50)"d="M 0 0"></path></g></svg>');this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"wrap"),this.view.innerHTML=n,this.bar=this.view.getElementsByClassName("".concat(e.classPref,"progress-radial-bar"))[0],this.bar.style.fill=this.config.ap_autoPlayColor,this.view.getElementsByClassName("".concat(e.classPref,"progress-radial-track"))[0].style.fill=this.config.ap_autoPlayBgColor,this.animRatio=25,this.counter=0,this.durationCount=25*this.config.ap_slideshowDelay,this.interval=void 0,this.anPart=0,this.status=void 0}return Ee(e,[{key:"drawProgress",value:function(t){if(!isNaN(t)){t=e.clamp(parseFloat(t),0,1);var i=e.clamp(360*t,0,359.99999),n=i*Math.PI/180,s=51*Math.sin(n),o=-51*Math.cos(n),a=i>180?1:0,r="M 0 0 v -%@ A %@ %@ 1 ".replace(/%@/gi,51),l="".concat(r+a," 1 ").concat(s," ").concat(o," z");this.bar.setAttribute("d",l)}}},{key:"switch",value:function(){"play"===this.status?this.clear():this.start()}},{key:"start",value:function(){var t=this;L.Device.desktop||(this.view.style.display="block"),this.view.style.opacity=1;var i=1/this.durationCount;this.interval=setInterval((function(){t.counter+=1,t.counter>=t.durationCount&&(clearInterval(t.interval),t.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.NEXT_SLIDE,t,{})),t.counter=0,t.start()),t.drawProgress(i*t.counter)}),1e3/this.animRatio),"play"!==this.status&&(this.status="play",t.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.PLAY,t,{status:this.status})))}},{key:"pause",value:function(){clearInterval(this.interval),this.status="pause"}},{key:"clear",value:function(){clearInterval(this.interval),this.counter=0,this.drawProgress(0),L.Device.desktop||(this.view.style.display="none"),this.view.style.opacity=0,this.status="stop",this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.PLAY,this,{status:this.status}))}}],[{key:"classPref",get:function(){return"pgc-rev-lb-auto-play-"}},{key:"CONFIG",get:function(){return{ap_autoPlayBgColor:"rgba(255,255,255, 0.3)",ap_autoPlayColor:"rgba(255,255,255, 1)",ap_slideshowDelay:8}}},{key:"EVENTS",get:function(){return{NEXT_SLIDE:"NEXT_SLIDE",PLAY:"PLAY"}}},{key:"clamp",value:function(e,t,i){return Math.max(t,Math.min(i,e))}}])}();const Le=function(){function e(t,i){var n=this;we(this,e),this.appSet=t,this.config=e.CONFIG,L.copyProperties(i,this.config),this.appName=t.appName,this.headerFooterStatus=void 0,this.headerStatus=void 0,this.mouseMovingTimer=void 0,this.resizeDelay=void 0,this.size=L.Size(0,0),this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.id="".concat(this.appName,"_lightbox"),this.view.dataset.galleryId=this.appName,L.Device.desktop||(this.view.style.height="100%"),this.styleSheet=document.createElement("style"),this.styleSheet.id="style_lb_".concat(this.appName),this.view.appendChild(this.styleSheet),this.updateStyleSheet();var s=document.createElement("div");s.className="".concat(e.classPref,"bg"),this.background=s,this.backgroundOpacity=1,this.background.style.backgroundColor=this.config.lb_backgroundColor,this.view.appendChild(s),this.content=document.createElement("div"),this.content.className="".concat(e.classPref,"content");var o=ue.CONFIG;o.sl_backgroundColor=!1,o.sl_preloaderColor=this.config.lb_preloaderColor,o.sl_FullSizeViewMode=this.config.lb_FullSizeViewMode,o.sl_navigationColor=this.config.lb_sliderNavigationColor,o.sl_navigationIconColor=this.config.lb_sliderNavigationIconColor,o.sl_navigationColorOver=this.config.lb_sliderNavigationColorOver,o.sl_navigationIconColorOver=this.config.lb_sliderNavigationIconColorOver,o.sl_fit=!0;var a=this.config.lb_thumbBarEnable?60:this.config.lb_headerFooterHeight;o.sl_yOffset=L.miniScreen?0:a,o.sl_canRemoved=!0,o.sl_copyR_Alert=this.config.lb_copyR_Alert,o.sl_copyR_Proptection=this.config.lb_copyR_Proptection,o.sl_zoom=this.config.lb_zoom,o.sl_mouseWheel=this.config.lb_zoom,o.sl_audioPlayer=this.config.lb_audioPlayer,o.sl_mouseWheelPagination=this.config.lb_scrollNavi,o.sl_next_prev_animation=this.config.lb_sliderNextPrevAnimation,o.sl_video_auto_start=this.config.lb_videoAutoStart,o.sl_video_loop=this.config.lb_videoLoop,this.appSet.appEventManager.addGMEventListener(ue.EVENTS.UPDATE_CONTROLS,this,"updateViewControls"),this.appSet.appEventManager.addGMEventListener(ue.EVENTS.YT_ON_CHANGE_STATUS,this,"updateYTstatus"),this.appSet.appEventManager.addGMEventListener(ue.EVENTS.REMOVE_LIGHTBOX,this,"prepareToRemove"),this.appSet.appEventManager.addGMEventListener(_e.EVENTS.PLAY,this,"slideShowSwitchHandler"),this.appSet.appEventManager.addGMEventListener(_e.EVENTS.NEXT_SLIDE,this,"slideshowHandler"),this.appSet.appEventManager.addGMEventListener(Q.EVENTS.ITEMS_SCROLL_BAR_ITEM_ACTION,this,"scrollBarHandler"),this.slider=new ue(this.appSet,o),this.slider.initByStage(this.content,!1),this.slider.mouseWheelMode=this.config.lb_zoom,this.view.appendChild(this.content),this.prevButton=document.createElement("div"),this.prevButton.className="".concat(e.classPref,"next-prev-button"),this.prevButton.classList.add("prev"),this.prevButton.innerHTML=L.ICONS.PREV_ARR,this.prevButton.onclick=function(){n.updateViewControls({params:{draging:!0}}),n.slider.gotoPrev()},this.view.appendChild(this.prevButton),this.nextButton=document.createElement("div"),this.nextButton.className="".concat(e.classPref,"next-prev-button"),this.nextButton.classList.add("next"),this.nextButton.innerHTML=L.ICONS.NEXT_ARR,this.nextButton.onclick=function(){n.updateViewControls({params:{draging:!0}}),n.slider.gotoNext()},this.view.appendChild(this.nextButton),this.header=document.createElement("div"),this.header.className="".concat(e.classPref,"header"),this.header.style.backgroundImage="linear-gradient(0deg,rgba(0,0,0,0),".concat(this.config.lb_headerFooterColor,")"),e.isMobileMode&&this.header.classList.add("".concat(e.classPref,"touch-device")),this.view.appendChild(this.header),this.footer=document.createElement("div"),this.footer.className="".concat(e.classPref,"footer"),this.footer.style.minHeight="".concat(a,"px"),e.isMobileMode&&this.footer.classList.add("".concat(e.classPref,"touch-device")),L.miniScreen&&(this.footer.style.backgroundImage="linear-gradient(0deg,".concat(this.config.lb_headerFooterColor,",rgba(0,0,0,0))")),this.view.appendChild(this.footer),this.infoBar1=document.createElement("div"),this.infoBar1.className="".concat(e.classPref,"info-wrap"),this.header.appendChild(this.infoBar1),this.config.lb_itemTitleEnable&&(this.itemTitle=document.createElement("div"),this.itemTitle.className="".concat(e.classPref,"item-title"),this.itemTitle.style.fontSize=e.isMobileMode?"".concat(16,"px"):"".concat(this.config.lb_itemTitleFontSize,"px"),e.isMobileMode&&(this.itemTitle.style.lineHeight="".concat(16,"px"),this.itemTitle.style.transform="translateY(6px)"),this.itemTitle.style.color=this.config.lb_itemTitleTextColor,this.infoBar1.appendChild(this.itemTitle));var r=document.createElement("div");r.className=this.config.lb_itemTitleEnable?"".concat(e.classPref,"caption-wrap"):"".concat(e.classPref,"caption-wrap-nt"),r.classList.add("mini-screen"),r.style.color=this.config.lb_itemCounterColor,!this.config.lb_thumbBarEnable&&e.isMobileMode,this.item_current_info=document.createElement("div"),this.item_current_info.className="".concat(e.classPref,"caption-current"),r.appendChild(this.item_current_info);var l=document.createElement("div");l.className="".concat(e.classPref,"caption-delimiter"),l.style.opacity=.7,this.config.lb_itemTitleEnable?l.textContent="/":l.style.backgroundColor=this.config.lb_itemCounterColor,r.appendChild(l),this.items_amount_info=document.createElement("div"),this.items_amount_info.className="".concat(e.classPref,"caption-all"),r.appendChild(this.items_amount_info),!1===this.config.lb_itemCounterEnable&&(r.style.display="none"),this.counter=r;var h=document.createElement("div");if(h.className="".concat(e.classPref,"caption-play-wrap"),h.appendChild(r),this.infoBar1.appendChild(h),this.config.lb_thumbBarEnable){var c=Q.CONFIG;c.isb_itemBgColor=this.config.lb_thumbBarHoverColor,c.isb_block_pan_y=!0,this.thumbsBar=new Q(this.appSet,c),this.footer.appendChild(this.thumbsBar.view),e.isMobileMode&&this.footer.appendChild(h)}else this.footer.appendChild(h);if(this.config.lb_slideshowEneble){var d=_e.CONFIG;d.ap_autoPlayBgColor=this.config.lb_slideshowIndicatorColorBg,d.ap_autoPlayColor=this.config.lb_slideshowIndicatorColor,d.ap_slideshowDelay=this.config.lb_slideshowTimer,this.autoPlay=new _e(this,d),h.appendChild(this.autoPlay.view)}var u=document.createElement("div");e.isMobileMode&&(u.style.width="100%"),u.className="".concat(e.classPref,"free-space"),this.header.appendChild(u),this.itemMenuWrap=document.createElement("div"),this.itemMenuWrap.className="".concat(e.classPref,"item-menu-wrap"),this.header.appendChild(this.itemMenuWrap);var m=z.CONFIG;m.im_link=!0,m.im_play=this.config.lb_slideshowEneble,m.im_zoom=L.Device.desktop&&this.config.lb_zoom,m.im_discuss=this.config.lb_discuss,m.im_info=this.config.lb_itemInfoEnable,m.im_share=this.config.lb_itemShare,m.im_download=this.config.lb_itemDownload,m.im_bookmark=this.config.lb_bookmark,m.im_like=this.config.lb_itemLike,m.im_close=!0,m.im_fulscreen=!L.Device.ios&&this.config.lb_fullscreen,m.im_backgroundColor=this.config.lb_menuBackgroundColor,m.im_backgroundColorOver=this.config.lb_menuBackgroundColorOver,m.im_iconColor=this.config.lb_menuIconColor,m.im_iconColorOver=this.config.lb_menuIconColorOver,m.im_likesSet=this.config.lb_likesSet,m.im_isContainIdInBookmarkSet=this.config.lb_isContainIdInBookmarkSet,this.itemMenu=new z(this.appSet,z.MENU_TYPE.LIGHTBOX,m),this.itemMenuWrap.appendChild(this.itemMenu.view),this.appSet.appEventManager.addGMEventListener(z.EVENTS.ITEM_MENU_ACTION,this,"itemMenuActionHandler"),this.addToStage()}return Ee(e,[{key:"updateStyleSheet",value:function(){this.styleSheet.innerHTML='\n\t\tdiv[data-gallery-id="'.concat(this.appName,'"] .').concat(e.classPref,"next-prev-button{\n\t\t\tbackground-color:").concat(this.config.lb_sliderNavigationColor,";\n\t\t\tfill:").concat(this.config.lb_sliderNavigationIconColor,';\n\t\t}\n\t\tdiv[data-gallery-id="').concat(this.appName,'"] .').concat(e.classPref,"next-prev-button:hover{\n\t\t\tbackground-color:").concat(this.config.lb_sliderNavigationColorOver,";\n\t\t\tfill:").concat(this.config.lb_sliderNavigationIconColorOver,";\n\t\t}\n\t\t")}},{key:"itemMenuActionHandler",value:function(t){if(t.target===this.itemMenu){var i=t.params.item,n=t.params.type;if(i&&n){var s,o,a={};switch(a.item=i,n){case"info":a.type="info",this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.LB_NEED_MODAL,this,a)),this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(_e.EVENTS.PLAY,this,{action:"stop"}));break;case"link":i.link&&window.open(i.link,i.linkTarget?i.linkTarget:this.config.lb_linkTargetWindow);break;case"like":this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.LB_ITEM_ACTION,this,{type:"like",item:i})),this.itemMenu.updateForItem(i);break;case"bookmark":this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.LB_ITEM_ACTION,this,{type:"bookmark",item:i})),this.itemMenu.updateForItem(i);break;case"share":a.type="share",this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.LB_NEED_MODAL,this,a)),this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(_e.EVENTS.PLAY,this,{action:"stop"}));break;case"zoom":"function"==typeof this.sliderZoomSwitch&&this.sliderZoomSwitch();break;case"close":this.prepareToRemove();break;case"play":this.autoPlay&&this.itemsList.length>1&&(this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(_e.EVENTS.NEXT_SLIDE,this,{})),this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(_e.EVENTS.PLAY,this,{})));break;case"download":s=i.url,(o=document.createElement("A")).href=s,o.download=s.substr(s.lastIndexOf("/")+1),document.body.appendChild(o),o.click(),document.body.removeChild(o);break;case"coments":"open"===i.comment_status&&(s="".concat(i.sharelink,"/#comments"),window.open(s,"_self"));break;case"fullscreen":this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.LB_FULLSCREEN_SWITCH,this,{}))}}}}},{key:"sliderZoomSwitch",value:function(){this.slider&&this.slider.remoteControl("zoom")}},{key:"slideShowSwitchHandler",value:function(e){if(this.autoPlay)if(e.params.action)switch(e.params.action){case"play":this.autoPlay.start();break;case"stop":this.autoPlay.clear()}else e.params.status?this.itemMenu&&this.itemMenu.playButtonStatus(e.params.status):this.autoPlay.switch()}},{key:"slideshowHandler",value:function(){this.slider&&(void 0===this.slider.ytStatus||0===this.slider.ytStatus)&&this.slider.gotoNext()}},{key:"scrollBarHandler",value:function(e){e.target===this.thumbsBar&&this.slider&&e.params&&e.params.action&&(e.params.index||0===e.params.index)&&"click"===e.params.action&&this.slider.gotoPageByNum(e.params.index)}},{key:"keydownHandler",value:function(){var e=this;return e.handlerKB=function(t){switch(t.keyCode){case 37:e.slider.remoteControl("prev");break;case 39:case 9:t.stopPropagation(),t.preventDefault(),e.slider.remoteControl("next");break;case 32:L.preventDefault(t),e.slider.remoteControl("space");break;case 13:L.preventDefault(t),e.slider.remoteControl("enter")}},e.handlerKB}},{key:"addToStage",value:function(){var t=this,i=document.getElementsByTagName("body")[0];this.view.style.zIndex=L.findHighestZIndex(i)+1,L.disableBodyScrollSlider(),document.addEventListener("keydown",t.keydownHandler(),!0),i.appendChild(this.view),setTimeout((function(){t.view.classList.add("".concat(e.classPref,"activate"))}),30)}},{key:"initByList",value:function(e,t){e&&e.length>0&&(this.currentItemIndex=t&&0!==t?0:void 0,this.startItemIndex=t||0,this.itemsList=e,this.thumbsBar&&this.thumbsBar.initByItemslist(this.itemsList),this.slider.initByList(this.itemsList,this.startItemIndex),this.resizeHandler())}},{key:"prepareToRemove",value:function(){var t=this;this.removing||(this.removing=!0,this.autoPlay&&this.autoPlay.clear(),this.slider.prepareToRemove(),this.thumbsBar&&this.thumbsBar.prepareToRemove(),this.view.removeChild(this.header),this.view.removeChild(this.content),this.view.removeChild(this.footer),this.view.removeChild(this.nextButton),this.view.removeChild(this.prevButton),this.background.classList.add("".concat(e.classPref,"deactivate")),this.background.style.opacity="0",document.removeEventListener("keydown",this.handlerKB,!0),document.getElementById("gmediaAudioPlayer")&&document.getElementById("gmediaAudioPlayer").pause(),this.appSet.appEventManager.removeGMEventListener(z.EVENTS.ITEM_MENU_ACTION,this,"itemMenuActionHandler"),this.appSet.appEventManager.removeGMEventListener(ue.EVENTS.UPDATE_CONTROLS,this,"updateViewControls"),this.appSet.appEventManager.removeGMEventListener(ue.EVENTS.YT_ON_CHANGE_STATUS,this,"updateYTstatus"),this.appSet.appEventManager.removeGMEventListener(ue.EVENTS.REMOVE_LIGHTBOX,this,"prepareToRemove"),this.appSet.appEventManager.removeGMEventListener(_e.EVENTS.PLAY,this,"slideShowSwitchHandler"),this.appSet.appEventManager.removeGMEventListener(_e.EVENTS.NEXT_SLIDE,this,"slideshowHandler"),this.appSet.appEventManager.removeGMEventListener(Q.EVENTS.ITEMS_SCROLL_BAR_ITEM_ACTION,this,"scrollBarHandler"),setTimeout((function(){L.enableBodyScrollSlider(),t.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.LB_REMOVE_LIGHTBOX,t))}),300*this.backgroundOpacity))}},{key:"mouseMoveHandler",value:function(){var t=this;"hide"===this.headerFooterStatus?(clearTimeout(this.mouseMovingTimer),"show"!==this.headerStatus&&(this.header.classList.add("".concat(e.classPref,"show")),this.headerStatus="show",this.slider&&this.slider.showHideNaviButton("show")),this.mouseMovingTimer=setTimeout((function(){t.header.classList.remove("".concat(e.classPref,"show")),t.slider&&t.slider.showHideNaviButton("hide"),t.headerStatus="hide"}),3e3)):(clearTimeout(this.mouseMovingTimer),"show"!==this.headerStatus&&(this.header.classList.add("".concat(e.classPref,"show")),this.headerStatus="show",this.slider&&this.slider.showHideNaviButton("show")))}},{key:"updateYTstatus",value:function(t){this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.LB_ITEM_ACTION,this,fe(fe({},{type:"YTstatus"}),t.params))),this.slider&&this.config.lb_videoAutoStart&&this.config.lb_tryPlayNext&&t.params&&void 0!==t.params.status&&0===t.params.status&&this.slider.gotoNext()}},{key:"updateViewControls",value:function(t){var i=this;if(t.params.backgroundOpacity&&(this.background.style.opacity=t.params.backgroundOpacity,this.backgroundOpacity=t.params.backgroundOpacity),t.params.draging&&this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(_e.EVENTS.PLAY,this,{action:"stop"})),t.params.zoom&&(this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(_e.EVENTS.PLAY,this,{action:"stop"})),"zoomIn"===t.params.zoom?this.view.classList.add("pgc-zoom-in"):this.view.classList.remove("pgc-zoom-in"),this.itemMenu&&this.itemMenu.zoomButtonStatus(t.params.zoom)),t.params.next&&("show"===t.params.next?this.view.classList.add("pgc-next-show"):this.view.classList.remove("pgc-next-show")),t.params.prev&&("show"===t.params.prev?this.view.classList.add("pgc-prev-show"):this.view.classList.remove("pgc-prev-show")),t.params.controls)switch(this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(_e.EVENTS.PLAY,this,{action:"stop"})),this.headerFooterStatus=t.params.controls,this.mouseMoveHandler(),t.params.controls){case"show":(L.miniScreen||this.backgroundOpacity<.9)&&this.header.classList.add("".concat(e.classPref,"show")),this.footer.classList.add("".concat(e.classPref,"show"));break;case"hide":(L.miniScreen||this.backgroundOpacity<.9)&&this.header.classList.remove("".concat(e.classPref,"show")),this.footer.classList.remove("".concat(e.classPref,"show"))}(t.params.itemIndex||0===t.params.itemIndex)&&(this.item_current_info.innerHTML=t.params.itemIndex+1,this.items_amount_info.innerHTML=this.itemsList.length,this.thumbsBar&&this.thumbsBar.selectThumbByIndex(t.params.itemIndex)),t.params.item&&(this.currentItem=t.params.item,this.appSet.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.LB_ITEM_ACTION,this,{type:"view",item:this.currentItem,itemIndex:t.params.itemIndex})),this.itemTitle&&(this.itemTitle.innerHTML=t.params.item[this.config.lb_itemTitleSrc]?t.params.item[this.config.lb_itemTitleSrc]:""),this.itemMenu&&this.itemMenu.updateForItem(t.params.item)),t.params.status&&"ready"===t.params.status&&(this.autoPlay&&this.itemsList.length>1&&(this.config.lb_slideshowAutoPlay||this.config.lb_sliderSlideshowAutoStart)&&!this.startItem&&this.autoPlay.start(),this.view.addEventListener("mousemove",(function(e){i.mouseMoveHandler(e)}),!1))}},{key:"resizeHandler",value:function(){if(this.view.clientWidth<360?(this.autoPlay&&(this.autoPlay.view.style.display="none"),this.descriptionWrap||this.thumbsBar):this.autoPlay&&(this.autoPlay.view.style.display=null),this.view.clientWidth<500?this.view.classList.add("pgc-mini-screen"):this.view.classList.remove("pgc-mini-screen"),this.itemMenu&&this.itemMenu.resizeHandler(),this.thumbsBar){var e=this.footer.clientWidth-10;this.thumbsBar.size=L.Size(e,0)}this.slider&&this.slider.resizeHandler(L.Size(this.view.clientWidth,this.view.clientHeight))}}],[{key:"classPref",get:function(){return"pgc-rev-lb-b-"}},{key:"EVENTS",get:function(){return{LB_NEED_MODAL:"LB_NEED_MODAL",LB_REMOVE_LIGHTBOX:"LB_REMOVE_LIGHTBOX",LB_FULLSCREEN_SWITCH:"LB_FULLSCREEN_SWITCH",LB_ITEM_ACTION:"LB_ITEM_ACTION"}}},{key:"CONFIG",get:function(){return{lb_FullSizeViewMode:!1,lb_scrollNavi:!1,lb_backgroundColor:"rgba(0,0,0,0.8)",lb_preloaderColor:"#494949",lb_headerFooterHeight:40,lb_headerFooterColor:"rgba(0,0,0,1)",lb_sliderNavigationColor:"rgba(0,0,0,0.8)",lb_sliderNavigationIconColor:"rgba(255,255,255,1)",lb_sliderNavigationColorOver:"rgba(255,255,255,1)",lb_sliderNavigationIconColorOver:"rgba(0,0,0,0)",lb_itemCounterEnable:!0,lb_itemCounterColor:"rgba(255,255,255,1)",lb_itemTitleEnable:!0,lb_itemTitleSrc:"title",lb_itemTitleFontSize:18,lb_itemTitleTextColor:"rgba(255,255,255,1)",lb_sliderNextPrevAnimation:!0,lb_thumbBarEnable:!0,lb_thumbBarHoverColor:"rgba(255,255,255,1)",lb_itemInfoEnable:!1,lb_itemLike:!1,lb_itemShare:!1,lb_itemDownload:!0,lb_zoom:!0,lb_discuss:!1,lb_fullscreen:!0,lb_bookmark:!1,lb_menuBackgroundColor:"rgb(0,0,0)",lb_menuBackgroundColorOver:"rgb(255,255,255)",lb_menuIconColor:"rgb(255,255,255)",lb_menuIconColorOver:"rgb(0,0,0)",lb_slideshowEneble:!0,lb_sliderSlideshowAutoStart:!1,lb_slideshowTimer:8,lb_slideshowAutoPlay:!1,lb_slideshowIndicatorColorBg:"rgba(255,255,255,0.7)",lb_slideshowIndicatorColor:"rgba(255,255,255,1)",lb_copyR_Alert:"Hello, this photo is mine!",lb_copyR_Proptection:!0,lb_audioPlayer:void 0,lb_likesSet:void 0,lb_isContainIdInBookmarkSet:void 0,lb_videoAutoStart:!1,lb_videoLoop:!1,lb_tryPlayNext:!1}}},{key:"isMobileMode",get:function(){return!(!L.isTouchDevice||L.isiPpad)}}])}();var Ie=i(6550),Pe=i.n(Ie),Te={};function ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}function xe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Me(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(i),!0).forEach((function(t){Be(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):xe(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Be(e,t,i){return(t=Oe(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ne(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Oe(n.key),n)}}function Oe(e){var t=function(e){if("object"!=ke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=ke(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ke(t)?t:t+""}Te.styleTagTransform=u(),Te.setAttributes=l(),Te.insert=a().bind(null,"head"),Te.domAPI=s(),Te.insertStyleElement=c(),t()(Pe(),Te),Pe()&&Pe().locals&&Pe().locals,L.trace;var ze=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.appEventManager=t,this.config=Me(Me({},e.CONFIG),i),this.animDelay=void 0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.style.backgroundColor=this.config.ish_backgroundColor,this.view.style.fill=this.config.ish_iconColor;var n=document.createElement("div");n.className="".concat(e.classPref,"bg"),n.dataset.type="bg",this.view.appendChild(n);var s=".".concat(e.classPref,"button:hover{fill:").concat(this.config.ish_iconColorHover,"}"),o=document.createElement("style");if(o.styleSheet?o.styleSheet.cssText=s:o.appendChild(document.createTextNode(s)),this.view.appendChild(o),this.config.ish_facebook){var a=document.createElement("div");a.title="Facebook",a.className="".concat(e.classPref,"button"),a.dataset.type="facebook",a.innerHTML=L.ICONS.FB_SVG,this.view.appendChild(a)}if(this.config.ish_twitter){var r=document.createElement("div");r.title="X",r.className="".concat(e.classPref,"button"),r.dataset.type="x",r.innerHTML=L.ICONS.TW_SVG,this.view.appendChild(r)}if(this.config.ish_pinterest){var l=document.createElement("div");l.title="Pnterest",l.className="".concat(e.classPref,"button"),l.dataset.type="pinterest",l.innerHTML=L.ICONS.PIN_SVG,this.view.appendChild(l)}if(this.config.ish_download){var h=document.createElement("div");h.title="Download",h.className="".concat(e.classPref,"button"),h.dataset.type="download",h.innerHTML=L.ICONS.DOWNLOAD_SVG,this.download=h,this.view.appendChild(h)}if(this.config.ish_copy){var c=document.createElement("div");c.title="Copy URL",c.className="".concat(e.classPref,"button"),c.dataset.type="copy",c.innerHTML=L.ICONS.LINK_SVG,this.copy=c,this.view.appendChild(c)}}return t=e,n=[{key:"classPref",get:function(){return"pgc-rev-share-bar-light-"}},{key:"EVENTS",get:function(){return{REMOVE_SHARE_WINDOW:"REMOVE_SHARE_WINDOW"}}},{key:"CONFIG",get:function(){return{ish_parentDiv:void 0,ish_backgroundColor:"rgba(0,0,0,0.8)",ish_iconColor:"rgb(255,255,255)",ish_iconColorHover:"rgb(200,200,200)",ish_copy:!1,ish_download:!1,ish_facebook:!0,ish_twitter:!0,ish_pinterest:!0,ish_linkToPost:"sharelink"}}}],(i=[{key:"addToStage",value:function(){var t=this,i=document.getElementsByTagName("BODY")[0];this.config.ish_parentDiv&&(i=this.config.ish_parentDiv,this.view.classList.add("".concat(e.classPref,"fixed")),L.disableBodyScrollSlider()),this.view.style.zIndex=L.findHighestZIndex(i)+1,i.appendChild(this.view),this.animDelay=setTimeout((function(){t.view.classList.add("".concat(e.classPref,"activate"))}),40)}},{key:"initByItem",value:function(e){var t=this,i=e.sharelink;"postlink"===this.config.ish_linkToPost&&(i=e.linkOriginal?e.linkOriginal:e[this.config.ish_linkToPost]);var n=document.createElement("div");n.innerText=i,n.style.bottom="0",n.style.position="absolute",n.style.opacity=0,n.id="pgc_copy_link";var s,o,a=(window.screen.width-600)/2,r="menubar=no,toolbar=no,resizable=yes,scrollbars=yes, top=".concat(200,",\n       left=").concat(a,", height=450,width=600"),l=!1;this.view.onclick=function(a){var h=a.target;if(h.dataset.type)switch(h.dataset.type){case"facebook":window.open("https://www.facebook.com/share.php?u=".concat(i),"",r);break;case"x":window.open("https://x.com/intent/tweet?text=".concat(encodeURI(e.title?e.title:""),"&url=").concat(i),"",r);break;case"pinterest":window.open("https://www.pinterest.com/pin/create/button/?url=".concat(i,"&media=").concat(e.url,"\n              &description=").concat(encodeURI(e.title?e.title:"")),"",r);break;case"download":s=e.url,(o=document.createElement("A")).href=s,o.download=s.substr(s.lastIndexOf("/")+1),document.body.appendChild(o),o.click(),document.body.removeChild(o);break;case"copy":l&&window.open(i,"_blank"),t.view.appendChild(n),window.getSelection().selectAllChildren(document.getElementById("pgc_copy_link"));try{document.execCommand ("copy")&&(window.getSelection().removeAllRanges(),t.view.removeChild(n),h.style.fill="green",l=!0)}catch(e){window.open(i,"_blank")}break;case"bg":t.prepareToRemove()}},this.addToStage(),this.download&&(this.download.classList.remove("disable"),"post"!==e.type&&"page"!==e.type&&"pgc_simply_gallery"!==e.type||this.download.classList.add("disable"),"video"===e.type&&e.mime_type&&this.download.classList.add("disable"))}},{key:"prepareToRemove",value:function(t){var i=this;clearTimeout(this.animDelay),this.config.ish_parentDiv&&L.enableBodyScrollSlider(),this.view.classList.remove("".concat(e.classPref,"activate")),this.animDelay=setTimeout((function(){i.view.parentNode&&i.view.parentNode.removeChild(i.view),delete i.shareBar,i.appEventManager.dispatchGMEvent(L.GMEvent(e.EVENTS.REMOVE_SHARE_WINDOW,i,{}))}),t?0:300)}}])&&Ne(t.prototype,i),n&&Ne(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,n}();const Ae=ze;function Ve(e){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(e)}function He(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Re(n.key),n)}}function Re(e){var t=function(e){if("object"!=Ve(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=Ve(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ve(t)?t:t+""}function Ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ge=function(){return!!e})()}function Fe(e){return Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fe(e)}function De(e,t){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},De(e,t)}var Ye=window.PGC_SGB,Xe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,i){return t=Fe(t),function(e,t){if(t&&("object"==Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ge()?Reflect.construct(t,i||[],Fe(e).constructor):t.apply(e,i))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&De(e,t)}(t,e),i=t,n=[{key:"getDefSettungsFromAtt",value:function(e){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i].default);return t}},{key:"moduleSettings",value:function(e){return window.PGC_SGB&&window.PGC_SGB.galleries&&window.PGC_SGB.galleries[e].galleryData?window.PGC_SGB.galleries[e].galleryData:null}},{key:"getViewPortBySelector",value:function(e){var t=document.querySelector('div[data-block-id="'.concat(e,'"]'));return t&&t.dataset.gallery?t:null}},{key:"pausedAllVideoPlayers",value:function(e){if(window&&window.PGC_SGB&&window.PGC_SGB.galleries)for(var t=window.PGC_SGB.galleries,i=Object.keys(t),n=0;n<i.length;n+=1){var s=t[i[n]];s.deleteAllEmbedInItems&&s.deleteAllEmbedInItems instanceof Function&&s.deleteAllEmbedInItems(e)}}},{key:"deleteAllEmbetContent",value:function(){t.pausedAllVideoPlayers()}},{key:"pausedAllVideoContent",value:function(){var e=document.getElementsByClassName("thumb-video-content");if(e.length)for(var t=0;t<e.length;t+=1)e[t].parentNode.classList.remove("pgc-interectiv"),e[t].pause()}},{key:"pausedAllAudioContent",value:function(){var e=document.getElementById("simplyAudioPlayer");e&&e.pause();var t=document.getElementsByClassName("pgc-sgb-svg-rotate");if(t.length)for(var i=0;i<t.length;i+=1)t[i].classList.remove("pgc-sgb-svg-rotate")}},{key:"shuffleArray",value:function(e){for(var t=e.length-1;t>0;t-=1){var i=Math.floor(Math.random()*(t+1)),n=[e[i],e[t]];e[t]=n[0],e[i]=n[1]}return e}},{key:"timeConverter",value:function(e){var t=new Date(e),i=new Date,n=new Date(Date.now()-864e5),s=t.getFullYear(),o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],a=t.getDate(),r=t.getHours(),l=t.getMinutes();return t.setHours(0,0,0,0)===i.setHours(0,0,0,0)?"Today, ".concat(r,":").concat(l):t.setHours(0,0,0,0)===n.setHours(0,0,0,0)?"Yesterday, ".concat(r,":").concat(l):s===(new Date).getFullYear()?"".concat(a," ").concat(o,", ").concat(s):"".concat(a," ").concat(o," ").concat(s)}},{key:"request",value:function(e,i,n,s,o){var a=new URL(e);if(n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&a.searchParams.set(r,n[r]);var l=new XMLHttpRequest;l.open("GET",a,!0),i&&l.setRequestHeader("X-WP-Nonce",i),l.onreadystatechange=function(){if(4===l.readyState){var e={};200!==l.status?e.error=l.statusText:e.data=l.responseText,s&&(e.params=s),o&&"function"==typeof o&&o(e)}},l.onerror=function(){t.trace("An error occurred while transferring the file.")};try{l.send()}catch(e){t.trace(e)}}},{key:"ItemGallery",value:function(e,t){var i={get webView(){return this.webImg.src?i.webImg:(this.itemViewSrc&&(this.webImg.src=this.itemViewSrc),this.webImg)}},n=this;if(this.copyProperties(e,i),i.appName=t,i.sharelink=e.postLink,i.alt=""!==e.title?e.title:void 0,i.title){var s=document.createElement("div");s.innerHTML=i.title,i.title=1===s.childNodes.length?s.childNodes[0].nodeValue:i.title}return i.ratio=1,i.errorStatus=!1,i.itemViewSrc=function(){if(i.thumb){if(i.thumb.large)return i.thumb.large.url;if(i.thumb.full)return i.thumb.full.url}else if(i.thumbURL)return i.thumbURL;return null}(),i.itemViewThumbSrc=function(){if(i.thumb){if(i.thumb.medium)return i.thumb.medium.url;if(i.thumb.large)return i.thumb.large.url;if(i.thumb.full)return i.thumb.full.url}else if(i.thumbURL)return i.thumbURL;return null}(),i.itemViewSize=function(){if(i.thumb){if(i.thumb.large)return n.Size(i.thumb.large.width,i.thumb.large.height);if(i.thumb.full)return n.Size(i.thumb.full.width,i.thumb.full.height)}return n.Size(400,400)}(),i.itemViewThumbSize=function(){if(i.thumb){if(i.thumb.medium)return n.Size(i.thumb.medium.width,i.thumb.medium.height);if(i.thumb.large)return n.Size(i.thumb.large.width,i.thumb.large.height);if(i.thumb.full)return n.Size(i.thumb.full.width,i.thumb.full.height)}return n.Size(400,400)}(),i.ratio=i.itemViewSize.height/i.itemViewSize.width,i.webImg=new Image,i.webImg.setAttribute("draggable","false"),i.webImgFrame=this.Rect(0,0,0,0),i.webImg.addEventListener("load",(function(){this.classList.add("onLoad")}),!1),i.webImg.addEventListener("error",(function(){i.errorStatus=!0,this.classList.add("onError")}),!1),i}},{key:"Item",value:function(e,i,n){var s={get webView(){return this.webImg.src?s.webImg:(this.itemViewFullSizePr?this.itemViewFlSrc&&(this.webImg.src=this.itemViewFlSrc):this.itemViewSrc&&(this.webImg.src=this.itemViewSrc),this.webImg)},set itemViewFullSize(e){this.itemViewFullSizePr=e},getItemViewFlSrc:function(){if("video"===this.type)return null;if("audio"===this.type&&this.poster){if(this.poster.full)return this.poster.full.url;if(this.poster.large)return this.poster.large.url}return this.meta?this.meta.original?this.meta.original.url:this.meta.web?this.meta.web.url:null:null},getItemViewSrc:function(){if("video"===this.type)return null;if("audio"===this.type&&this.poster){if(this.poster.large)return this.poster.large.url;if(this.poster.full)return this.poster.full.url}return this.meta?this.meta.web?this.meta.web.url:this.meta.original?this.meta.original.url:null:null},getItemViewThumbSrc:function(){if("video"===this.type)return null;if("audio"===this.type&&this.poster){if(this.poster.medium)return this.poster.medium.url;if(this.poster.large)return this.poster.large.url;if(this.poster.full)return this.poster.full.url}return this.meta?this.meta.thumb?this.meta.thumb.url:this.meta.web?this.meta.web.url:this.meta.original?this.meta.original.url:null:null},getItemViewFlSize:function(){if("audio"===this.type&&this.poster){if(this.poster.full)return t.Size(this.poster.full.width,this.poster.full.height);if(this.poster.large)return t.Size(this.poster.large.width,this.poster.large.height)}return this.meta?this.meta.original?t.Size(this.meta.original.width,this.meta.original.height):this.meta.web?t.Size(this.meta.web.width,this.meta.web.height):t.Size(300,300):t.Size(300,300)},getItemViewSize:function(){if("audio"===this.type&&this.poster){if(this.poster.large)return t.Size(this.poster.large.width,this.poster.large.height);if(this.poster.full)return t.Size(this.poster.full.width,this.poster.full.height)}return this.meta?this.meta.web?t.Size(this.meta.web.width,this.meta.web.height):this.meta.original?t.Size(this.meta.original.width,this.meta.original.height):t.Size(300,300):t.Size(300,300)},getItemViewThumbSize:function(){if("audio"===this.type&&this.poster){if(this.poster.medium)return t.Size(this.poster.medium.width,this.poster.medium.height);if(this.poster.large)return t.Size(this.poster.large.width,this.poster.large.height);if(this.poster.full)return t.Size(this.poster.full.width,this.poster.full.height)}return this.meta?this.meta.thumb?t.Size(this.meta.thumb.width,this.meta.thumb.height):this.meta.web?t.Size(this.meta.web.width,this.meta.web.height):this.meta.original?t.Size(this.meta.original.width,this.meta.original.height):t.Size(300,300):t.Size(300,300)},getRatio:function(){return this.getItemViewSize().height/this.getItemViewSize().width},hasTag:function(e){return"pgc_0"===e||!(!this.tags||0===this.tags.length)&&-1!==this.tags.indexOf(e)},updateSrcAndSizes:function(){this.itemViewFlSrc=this.getItemViewFlSrc(),this.itemViewSrc=this.getItemViewSrc(),this.itemViewThumbSrc=this.getItemViewThumbSrc(),this.itemViewFlSize=this.getItemViewFlSize(),this.itemViewSize=this.getItemViewSize(),this.itemViewThumbSize=this.getItemViewThumbSize(),this.ratio=this.getRatio()},initMetaObj:function(e){var t=!1;if("audio"===this.type&&e.poster!==this.poster&&(t=!0),e.poster?(this.poster=e.poster,"audio"===this.type&&this.updateSrcAndSizes()):(delete this.poster,"audio"===this.type&&this.updateSrcAndSizes()),this.tags=e.tags,e.link&&""!==e.link){if(this.link=decodeURIComponent(e.link),this.linkOriginal=this.link,this.linkTarget=e.linkTarget,this.linkText=e.linkText,this.orignLinkText=e.orignLinkText,"image"===this.type||this.parentType&&"image"===this.parentType){var i,n,s,o=this.link;if(o.match(/youtu\.be/i)||o.match(/youtube\.com/i))i=void 0!==(o=/(youtu.*be.*)\/(watch\?v=|embed\/|v|shorts|)(.*?((?=[&#?])|$))/gm.exec(o))[3]?o[3].split(/[^0-9a-z_\-]/i)[0]:o[0],n="video/youtube";else if(o.match(/vimeo\.com/i)){var a=o.match(/(www\.)?vimeo.com\/(\d+)($|:|\?|\/)/);a&&(i=parseInt(a[2],10),n="video/vimeo");var r=o.match(/vimeo.com\/(\d+):(\w+)$/);if(r){i=parseInt(r[1],10);var l=r[2];l&&i&&(s=l)}var h=o.match(/vimeo.com\/(\d+)\/(\w+)($|\?|\/)/);if(h){var c=h[2];c&&i&&(s=c)}}else if(o.match(/videopress\.com/i)){var d=o.match(/^https?:\/\/(?:www\.)?videopress\.com\/v\/([a-zA-Z0-9_-]{6,12})(?:[/?#]|$)/i);(i=d?d[1]:null)&&(n="video/videopress")}void 0!==i?(this.parentType||(this.parentType=this.type),this.type="video",this.mime_type=n,this.videoId=i,this.videoHash=s,this.link=void 0):(this.parentType&&(this.type=this.parentType),delete this.parentType,delete this.videoId,delete this.mime_type)}}else this.link=void 0,this.linkTarget="_self",this.linkText="",this.orignLinkText="",this.parentType&&(this.type=this.parentType),delete this.parentType,delete this.videoId,delete this.mime_type;return t}};if(s.itemViewFullSizePr=!(!n||!n.itemViewFullSize),s.comment_status="closed",s.featuredImage=void 0,s.tags=[],this.copyProperties(e,s),s.appName=i,s.idPrefix=void 0,s.albums=[],s.categories=[],s.user=s.author,s.sharelink=s.url,s.orignLinkText="",s.id=parseInt(e.id),s.duration){var o=new Date(null);o.setSeconds(parseInt(s.duration));var a=o.toISOString().slice(11,19).split(":");if(a.length&&3===a.length){var r="00"===a[0]?"":"".concat(a[0],":"),l="".concat(a[1],":"),h=a[2];s.fileLength=r+l+h}}if(s.ID=s.id,e.url&&(s.original=e.url),s.alt=""!==s.alt?s.alt:void 0,s.title=""!==s.title?s.title:void 0,s.caption=""!==s.caption?s.caption:void 0,s.description){var c=s.description.replace(/\r?\n/g,"<br />");s.description=c}if(s.ratio=1,s.errorStatus=!1,"attachment"===e.type&&e.media_type&&(s.type=e.media_type),s.link=e.link&&void 0!==e.linkText?decodeURIComponent(e.link):void 0,s.linkTarget=e.linkTarget?e.linkTarget:void 0,s.linkText=e.linkText?e.linkText:void 0,s.meta=function(){var t={};if(s.meta&&Object.assign(t,s.meta),t.mime=s.mime,t.likes=0,t.views=0,s.sizes)return s.sizes.medium&&(t.thumb=s.sizes.medium),s.sizes.large&&(t.web=s.sizes.large),s.sizes.full&&(t.original=s.sizes.full),t;if(s.fullUrl&&s.url){t.original={},t.original.url=s.url;var i=s.url.toString().match(/.*\/(.+?)\./)[1].split("-").pop().split("x");i&&i.length>0&&(t.original.width=i[0]&&i[1]?Math.min(parseInt(i[0]),3e3):300,t.original.height=i[0]&&i[1]?Math.min(parseInt(i[1]),3e3):300,s.ratio=t.original.height/t.original.width),t.thumb=t.original,t.web=t.original}if(s.media_details&&s.media_details.sizes){var n=s.media_details.sizes;return n.medium&&(t.thumb=n.medium,t.thumb.url||(t.thumb.url=t.thumb.source_url)),n.large&&(t.web=n.large,t.web.url||(t.web.url=t.web.source_url)),n.full&&(t.original=n.full,t.original.url||(t.original.url=t.original.source_url)),t}if("audio"===s.type&&e.image&&e.image.width>=200&&!e.poster){var o={medium:{}};o.medium.url=e.image.src,o.medium.width=e.image.width,o.medium.height=e.image.height,o.medium.orientation=e.image.width/e.image.height>1?"landscape":"portrait",o.large=o.medium,o.full=o.medium,o.thumbnail=o.medium,s.poster=o}if(s.sizes)t.original=s.sizes.full?s.sizes.full:void 0,t.thumb=t.original,t.web=t.original,s.sizes.medium&&(t.thumb=s.sizes.medium),s.sizes.large&&(t.web=s.sizes.large);else{if("image"===s.type){t.original={},t.original.url=s.url;var a=s.url.toString().match(/.*\/(.+?)\./)[1].split("-").pop().split("x");return a&&a.length>0&&(t.original.width=a[0]&&a[1]?Math.min(parseInt(a[0]),3e3):300,t.original.height=a[0]&&a[1]?Math.min(parseInt(a[1]),3e3):300,s.ratio=t.original.height/t.original.width),t.thumb=t.original,t.web=t.original,t}if("video"===s.type&&(e.image&&e.image.width>=200&&(s.featuredImage=e.image),e.width&&e.height))return t.original={},t.original.url=s.url,t.original.width=e.width,t.original.height=e.height,s.ratio=t.original.height/t.original.width,t.thumb=t.original,t.web=t.original,t;if("audio"===s.type)return e.image&&e.image.width>=200?(t.original={},t.original.url=e.image.src,t.original.width=e.image.width,t.original.height=e.image.height,s.ratio=t.original.height/t.original.width,t.thumb=t.original,t.web=t.original,t):(t.original={},t.original.url="".concat(Ye.assets,"holder-mp3.png"),t.original.width=300,t.original.height=300,s.ratio=t.original.height/t.original.width,t.thumb=t.original,t.web=t.original,t);if(s.url&&void 0===s.width&&void 0===s.height){t.original={},t.original.url=s.url;var r=s.url.toString().match(/.*\/(.+?)\./)[1].split("-").pop().split("x");return r&&r.length>0&&(t.original.width=r[0]&&r[1]?Math.min(parseInt(r[0]),3e3):300,t.original.height=r[0]&&r[1]?Math.min(parseInt(r[1]),3e3):300,s.ratio=t.original.height/t.original.width),t.thumb=t.original,t.web=t.original,t}if(s.width&&s.height&&(s.src||s.url))return t.original={},t.original.url=s.src||s.url,t.original.width=s.width,t.original.height=s.height,s.ratio=t.original.height/t.original.width,t.thumb=t.original,t.web=t.original,t;if(s.imgUrl){t.original={},t.original.url=s.imgUrl;var l=s.imgUrl.toString().match(/.*\/(.+?)\./)[1].split("-").pop().split("x");return l&&l.length>0&&(t.original.width=l[0]&&l[1]?Math.min(parseInt(l[0]),3e3):300,t.original.height=l[0]&&l[1]?Math.min(parseInt(l[1]),3e3):300,s.ratio=t.original.height/t.original.width),t.thumb=t.original,t.web=t.original,t}}return t}(),s.updateSrcAndSizes(),s.sizes){var d="";for(var u in s.sizes)if(s.sizes.hasOwnProperty(u)){var m=s.sizes[u];d="".concat(d+m.url," ").concat(m.width,"w, ")}d=d.slice(0,-2),s.srcset=d}return s.webImg=new Image,s.webImg.setAttribute("draggable","false"),(s.title||s.alt)&&s.webImg.setAttribute("alt",s.alt?s.alt:s.title),s.webImgFrame=this.Rect(0,0,0,0),s.webImg.addEventListener("load",(function(){this.classList.add("onLoad")}),!1),s.webImg.addEventListener("error",(function(){s.errorStatus=!0,this.classList.add("onError")}),!1),s}},{key:"GalleryItem",value:function(e,i,n){var s,o,a="pgcSgb";if(!(o="A"===i.tagName?i:i.getElementsByTagName("A")[0]))return null;if(o.target&&"_self"!==o.target)return null;if(!1===o.hasAttribute("href"))return null;var r=o.getAttribute("href"),l=o.getElementsByTagName("IMG")[0];if(l){if(l.dataset.lightboxExclude)return null;var h,c;if((s={get webView(){return this.webImg.src?s.webImg:(this.webImg.src=this.itemViewSrc,this.webImg)}}).galId=n,s.index=e,l.dataset.id?(s.ID="".concat(e,"_").concat(l.dataset.id),s.attId=l.dataset.id):s.ID="".concat(e,"_").concat(s.galId),s.url=r,s.sharelink=r,0===r.indexOf("http://")||0===r.indexOf("https://")){if("/"===(h=new URL(r)).pathname)return null;c=h.pathname.split("/").pop().split("#")[0].split("?")[0].split(".")}else c=(h=r).split("/").pop().split("#")[0].split("?")[0].split(".");if(c.length<=1)return null;if(s.fileName=c[0].split("-")[0],""===s.fileName)return null;if(l.src.indexOf(s.fileName)<0){if(!l.dataset.fullUrl)return null;if(l.dataset.fullUrl.indexOf(s.fileName)<0)return null}s.fileExt=c[c.length-1],l.dataset["".concat(a,"Id")]="".concat(n,"_").concat(e),o&&(o.dataset["".concat(a,"Id")]="".concat(n,"_").concat(e)),s.itemViewSrc=s.url,s.itemViewSize=t.Size(100,100),s.type="image",s.subtype="image/".concat(s.fileExt),l.alt&&""!==l.alt&&(s.alt=l.alt);var d=i.getElementsByTagName("FIGCAPTION");if(d[0]&&(d[0].id&&(s.ID+="_".concat(d[0].id.split("-").pop()),s.attId=d[0].id.split("-").pop()),s.title=d[0].innerHTML),!s.attId&&l.classList&&l.classList.length>0)for(var u=0;u<l.classList.length;u+=1){var m=l.classList.item(u);m.indexOf("wp-image")+1&&(s.attId=m.split("-").pop(),s.ID+="_".concat(s.attId),u=l.classList.length)}s.itemViewThumbSrc=r,s.itemViewThumbSize=t.Size(l.width?parseInt(l.width):150,l.height?parseInt(l.height):150),l.naturalWidth?(s.itemViewThumbSize.width=l.naturalWidth,s.itemViewThumbSize.height=l.naturalHeight):l.addEventListener("load",(function(){s.itemViewThumbSize.width=l.naturalWidth,s.itemViewThumbSize.height=l.naturalHeight}))}return s?(s.webImg=new Image,s.webImg.setAttribute("draggable","false"),(s.title||s.alt)&&s.webImg.setAttribute("alt",s.alt?s.alt:s.title),s.webImgFrame=this.Rect(0,0,0,0),s.webImg.addEventListener("load",(function(){this.classList.add("onLoad")}),!1),s.webImg.addEventListener("error",(function(){s.errorStatus=!0,this.classList.add("onError")}),!1),s):null}},{key:"Term",value:function(e,t){var i=this,n={get count(){return this.itemsList.length},get description(){if(this.description)return this.description},get name(){if(this.title)return this.title},get term_id(){if(this.gid)return this.gid},get sharelink(){if(i.moduleSettings(t).post_url)return i.moduleSettings(t).post_url},get thumbnail(){if(this.itemsList.length>0)return this.itemsList[0].itemViewSrc}};return this.copyProperties(e,n),n}},{key:"Meta",value:function(){return{}}}],null&&He(i.prototype,null),n&&He(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(L);const qe=Xe;function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function Ue(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function We(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(i),!0).forEach((function(t){Ze(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ue(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Ze(e,t,i){return(t=$e(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ke(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$e(n.key),n)}}function $e(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=je(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}var Je=qe.trace,Qe="pgcSgb";const et=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.appEventManager=qe.GMEventsManager(),this.globalPreset=We({},this.attributesLightbox);var t,i=window.PGC_SGB_LIGHTBOX,n=i.lightboxSettigs,s=i.lightboxPreset;if(n&&""!==n?n.useGlobalPreset?s&&""!==s&&(t=s):t=n:s&&""!==s&&(t=s),this.globalPreset=We(We({},this.globalPreset),t),this.lightboxConfigByPreset=void 0,this.galleries={},this.globalPreset.nativGalleryEnable||this.globalPreset.nativeAttachment){var o=document.getElementsByClassName("gallery"),a=document.getElementsByClassName("wp-block-gallery");if(o.length>0)for(var r=0;r<o.length;r+=1){var l="cl".concat(r),h=o[r];h.dataset["".concat(Qe,"Id")]=l;var c=this.createGalleryByElement(l,h);c&&(this.galleries[l]={},this.galleries[l].appName=l,this.galleries[l].itemsList=c)}if(a.length>0)for(var d=0;d<a.length;d+=1){var u="bl".concat(d),m=a[d];m.dataset["".concat(Qe,"Id")]=u;var v=this.createGalleryByElement(u,m);v&&(this.galleries[u]={},this.galleries[u].appName=u,this.galleries[u].itemsList=v)}}if(!this.globalPreset.nativGalleryEnable)for(var g in this.galleries)Object.prototype.hasOwnProperty.call(this.galleries,g)&&(g.indexOf("cl")+1||g.indexOf("bl")+1)&&delete this.galleries[g];if(this.globalPreset.nativeAttachment){var p="sl",f=[],y=document.getElementsByTagName("A");if(y.length)for(var b=0;b<y.length;b+=1){var w=y[b];if(w.firstChild&&"IMG"===w.firstChild.tagName){var S=void 0;w.firstChild.dataset["".concat(Qe,"Id")]?this.globalPreset.nativGalleryEnable||delete w.firstChild.dataset["".concat(Qe,"Id")]:(S=w.parentNode&&"FIGURE"===w.parentNode.tagName?qe.GalleryItem(f.length,w.parentNode,p):qe.GalleryItem(f.length,w,p))&&f.push(S)}}f.length>0&&(this.galleries[p]={},this.galleries[p].appName=p,this.galleries[p].itemsList=f)}if(this.globalPreset.groupingAllImages){var E="gl",C=[],_=document.querySelectorAll("[data-pgc-sgb-id]");if(_.length)for(var L=0;L<_.length;L+=1){var I=_[L];if("IMG"===I.tagName){var P=I.dataset["".concat(Qe,"Id")].split("_"),T=P[0],k=parseInt(P.pop());this.galleries[T]&&this.galleries[T].itemsList[k]&&C.push(this.galleries[T].itemsList[k])}}C.length>0&&(this.galleries[E]={},this.galleries[E].appName=E,this.galleries[E].itemsList=C)}var x=this;if(this.popstateHandler=function(){x.modal&&x.modal.prepareToRemove(),x.lightbox?x.lightbox.prepareToRemove():x.itemIDFromHash&&x.openLightboxForItemHash(x.itemIDFromHash)},this.globalPreset.deepLinking&&window.addEventListener("popstate",this.popstateHandler,!1),this.globalPreset.deepLinking){var M=this.itemIDFromHash;void 0!==M&&(window.history.replaceState(null,null,window.location.pathname+window.location.search),this.openLightboxForItemHash(M))}},(t=[{key:"lightboxConstructor",value:function(){return Je("** Need override - itemViewConstructor **"),null}},{key:"lightboxConfig",get:function(){return Je("** Need override - lightboxConfig **"),null}},{key:"attributesLightbox",get:function(){return Je("** Need override - lightbox Attributes **"),null}},{key:"addLightboxEventListres",value:function(){Je("** Need override - addLightboxEventListres **")}},{key:"removeLightboxEventListres",value:function(){Je("** Need override - removeLightboxEventListres **")}},{key:"createGalleryByElement",value:function(e,t){var i="".concat(0===e.indexOf("bl")?"blocks-":"","gallery-item"),n=t.getElementsByClassName(i);0===n.length&&(n=t.getElementsByClassName("wp-block-image"));for(var s=[],o=0;o<n.length;o+=1){var a=qe.GalleryItem(s.length,n[o],e);a&&s.push(a)}return s.length>0?s:null}},{key:"keydownHandler",value:function(){var e=this;return e.handlerKB=function(t){e.modal?e.modal.prepareToRemove():27===t.keyCode&&e.lightbox&&e.lightbox.prepareToRemove()},e.handlerKB}},{key:"initAppForLightbox",value:function(){this.viewWidth=document.getElementsByTagName("BODY")[0].clientWidth,document.addEventListener("keydown",this.keydownHandler(),!0);var e=this;this.resizeWindow=function(){e.windowResizeHandler()},window.addEventListener("resize",this.resizeWindow),this.addLightboxEventListres()}},{key:"deactivateApp",value:function(){this.removeLightboxEventListres(),document.removeEventListener("keydown",this.handlerKB,!0),window.removeEventListener("resize",this.resizeWindow)}},{key:"checkGalleryYpositionForViewedItem",value:function(){if(this.viewedItem){var e=this.viewedItem,t=document.querySelectorAll('[data-pgc-sgb-id="'.concat(e.galId,"_").concat(e.index,'"]'))[0];if(t){var i=(window.innerHeight-t.clientHeight)/2,n=window.innerHeight-t.getBoundingClientRect().bottom<-t.clientHeight||t.getBoundingClientRect().bottom<0&&t.getBoundingClientRect().top<0?t.getBoundingClientRect().top+window.pageYOffset-i:void 0;n&&qe.scrollWindowToY(n)}}}},{key:"itemIDFromHash",get:function(){if(0!==Object.keys(this.galleries).length){var e,t=window.location.hash.indexOf(Qe);if(t+1){e=window.location.hash.substr(t).split("-").length>=2?window.location.hash.substr(t).split("-"):void 0;var i={};i.galleryName=this.galleries[e[1]]?e[1]:void 0,i.galleryName||(i.galleryName=Object.keys(this.galleries)[0]);var n=e[2];if(n){var s=n.split("_");s[0]&&(i.index=parseInt(s[0])),s[1]&&(i.id=s[1])}return void 0!==i.index&&i.id&&i.id.indexOf("cl")+1&&(i.id="".concat(i.index,"_").concat(i.id)),i}}}},{key:"itemHash",value:function(e){return"#".concat(Qe,"-").concat(this.lightbox.appName,"-").concat(e.ID)}},{key:"openLightboxForItemHash",value:function(e){var t,i,n=e.galleryName,s=e.index,o=e.id;if(n&&this.galleries[n]){var a=(t=this.galleries[n]).itemsList;if(a&&void 0!==s&&a[s]){if(i=a[s],!o)return this.createLightboxForGallery(t,s);if(i.attId&&i.attId===o)return this.createLightboxForGallery(t,s);for(var r in this.galleries)if(Object.prototype.hasOwnProperty.call(this.galleries,r)){var l=this.getIndexById(o,this.galleries[r]);if(null!==l)return this.createLightboxForGallery(this.galleries[r],l)}this.createLightboxForGallery(t,s)}else if(!a&&o)for(var h in this.galleries)if(Object.prototype.hasOwnProperty.call(this.galleries,h)){var c=this.getIndexById(o,this.galleries[h]);if(null!==c)return this.createLightboxForGallery(this.galleries[h],c)}}return Je("Hash is deprecated")}},{key:"getIndexById",value:function(e,t){var i=t.itemsList;if(!i||0===i.length)return null;for(var n=0;n<i.length;n+=1){var s=i[n];if(s.attId&&s.attId===e)return n}return null}},{key:"itemActionHandler",value:function(e){e&&e.params&&e.params.type&&e.params.item&&"view"===e.params.type&&(this.viewedItem=e.params.item,this.globalPreset.deepLinking&&this.updateItemLink(this.viewedItem))}},{key:"updateItemLink",value:function(e){window.history.replaceState(null,null,this.itemHash(e))}},{key:"createLightboxForGallery",value:function(e,t){if(this.initAppForLightbox(),this.lightbox&&this.lightbox.prepareToRemove(),this.globalPreset.groupingAllImages&&this.galleries.gl){for(var i=this.galleries.gl,n=0;n<i.itemsList.length;n+=1){var s=i.itemsList[n];s.galId===e.appName&&s.index===t&&(t=n,n=i.itemsList.length)}e=i}if(e.cacheItemsList||(e.cacheItemsList=qe.CacheItemsList()),e.appEventManager=this.appEventManager,1===e.itemsList.length||this.globalPreset.singletonAttachment&&e.appName.indexOf("sl")+1){var o=We({},this.lightboxConfig);o.lb_slideshowEneble=!1,o.lb_thumbBarEnable=!1,o.lb_scrollNavi=!1,o.lb_itemCounterEnable=!1,this.lightbox=this.lightboxConstructor(e,o),this.lightbox.initByList([e.itemsList[t]],0)}else this.lightbox=this.lightboxConstructor(e,this.lightboxConfig),this.lightbox.initByList(e.itemsList,t);if(this.globalPreset.deepLinking){var a=e.itemsList[t];if(a){var r=this.itemHash(a);window.location.hash!==r&&window.history.pushState(null,null,r)}}}},{key:"tryLightboxFor",value:function(e){var t=e.split("_");if(2===t.length){var i=t[0],n=parseInt(t[1]),s=this.galleries[i];if(s){var o=this.galleries[i].itemsList;if(!o||!o[n])return;this.createLightboxForGallery(s,n)}}else Je("SimpLy Lightbox - Something went wrong!")}},{key:"removeLightbox",value:function(e){if(e.target===this.lightbox){var t=this,i=e.target;setTimeout((function(){i.view&&i.view.parentNode&&i.view.parentNode.removeChild(i.view),t.lightbox&&(t.lightbox=void 0)}),100),this.globalPreset.deepLinking&&this.itemIDFromHash&&window.history.back(),this.globalPreset.galleryScrollPositionControll&&this.checkGalleryYpositionForViewedItem(),this.deactivateApp()}}},{key:"fullscreenSwitch",value:function(){var e=this.lightbox.view;e&&(qe.toggleFullScreen(e),this.windowResizeHandler())}},{key:"windowResizeHandler",value:function(){var e=this;clearTimeout(this.resizeTimeOut),qe.isTouchDevice?this.resizeTimeOut=setTimeout((function(){e.windowResize()}),200):this.windowResize()}},{key:"windowResize",value:function(){this.resizeHandler(),this.lightbox&&this.lightbox.resizeHandler()}},{key:"resizeHandler",value:function(){var e=document.getElementsByTagName("BODY")[0].clientWidth;this.viewWidth!==e&&(this.viewWidth=e)}}])&&Ke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),tt={deepLinking:!0,nativGalleryEnable:!0,nativeAttachment:!0,singletonAttachment:!0,groupingAllImages:!1,modaBgColor:"rgba(0,0,0,0.8)",modalIconColor:"rgba(255,255,255,1)",modalIconColorHover:"rgba(200,200,200,1)",shareFacebook:!0,shareTwitter:!0,sharePinterest:!0,shareCopyLink:!0,sliderItemDownload:!0,sliderScrollNavi:!1,sliderNextPrevAnimation:"animation",galleryScrollPositionControll:!1,useLightbox:!0,copyRAlert:"Hello, this photo is mine!",sliderItemCounterEnable:!0,itemCounterColor:"rgba(255,255,255,1)",sliderThumbBarEnable:!0,sliderThumbBarHoverColor:"rgba(240,240,240,1)",sliderBgColor:"rgba(0,0,0,0.8)",sliderPreloaderColor:"rgba(240,240,240,1)",sliderHeaderFooterBgColor:"rgba(0,0,0,04)",sliderNavigationColor:"rgba(0,0,0,1)",sliderNavigationIconColor:"rgba(255,255,255,1)",sliderNavigationColorOver:"rgba(255,255,255,1)",sliderNavigationIconColorOver:"rgba(0,0,0,1)",sliderDescriptionShow:!1,sliderItemTitleEnable:!0,sliderItemTitleFontSize:20,sliderItemTitleTextColor:"rgba(255,255,255,1)",sliderItemDescriptionEnable:!1,sliderItemDescriptionFontSize:16,sliderItemDescriptionTextColor:"rgba(255,255,255,1)",sliderSlideshow:!0,sliderSlideshowAutoStart:!1,sliderSlideshowDelay:8,slideshowIndicatorColor:"rgba(255,255,255,1)",slideshowIndicatorColorBg:"rgba(255,255,255,05)",sliderThumbSubMenuBackgroundColor:"rgba(255,255,255,0)",sliderThumbSubMenuBackgroundColorOver:"rgba(255,255,255,1)",sliderThumbSubMenuIconColor:"rgba(255,255,255,1)",sliderThumbSubMenuIconHoverColor:"rgba(0,0,0,1)",sliderInfoEnable:!1,sliderSocialShareEnabled:!0,sliderItemDiscuss:!1,sliderZoomEnable:!0,sliderLikesEnabled:!1,sliderFullscreenEnabled:!0};function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function nt(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,st(n.key),n)}}function st(e){var t=function(e){if("object"!=it(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=it(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==it(t)?t:t+""}function ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ot=function(){return!!e})()}function at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},at(e)}function rt(e,t){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rt(e,t)}if(window.PGC_SGB_LIGHTBOX){console.log("%c SimpLy Lightbox v.3.3.3.3","background: rgba(0,0,0,0.2); color: rgba(255,255,255,1)");var lt="pgcSgb";qe.trace,window.addEventListener("load",(function(){var e;window.PGC_SGB_LIGHTBOX.lightbox||(window.PGC_SGB_LIGHTBOX.lightbox=(e=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,i){return t=at(t),function(e,t){if(t&&("object"==it(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ot()?Reflect.construct(t,i||[],at(e).constructor):t.apply(e,i))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}(t,e),i=t,(n=[{key:"lightboxConstructor",value:function(e,t){return new Le(e,t)}},{key:"lightboxConfig",get:function(){if(this.lightboxConfigByPreset)return this.lightboxConfigByPreset;var e=Le.CONFIG;return e.lb_scrollNavi=this.globalPreset.sliderScrollNavi,e.lb_sliderNextPrevAnimation="animation"===this.globalPreset.sliderNextPrevAnimation,e.lb_copyR_Alert=this.globalPreset.copyRAlert,e.lb_copyR_Proptection=this.globalPreset.copyRProtection,e.lb_backgroundColor=this.globalPreset.sliderBgColor,e.lb_headerFooterColor=this.globalPreset.sliderHeaderFooterBgColor,e.lb_preloaderColor=this.globalPreset.sliderPreloaderColor,e.lb_sliderNavigationColor=this.globalPreset.sliderNavigationColor,e.lb_sliderNavigationIconColor=this.globalPreset.sliderNavigationIconColor,e.lb_sliderNavigationColorOver=this.globalPreset.sliderNavigationColorOver,e.lb_sliderNavigationIconColorOver=this.globalPreset.sliderNavigationIconColorOver,e.lb_itemCounterColor=this.globalPreset.itemCounterColor,e.lb_itemCounterEnable=this.globalPreset.sliderItemCounterEnable,e.lb_itemTitleEnable=this.globalPreset.sliderItemTitleEnable,e.lb_itemTitleFontSize=this.globalPreset.sliderItemTitleFontSize,e.lb_itemTitleTextColor=this.globalPreset.sliderItemTitleTextColor,e.lb_thumbBarEnable=this.globalPreset.sliderThumbBarEnable,e.lb_thumbBarHoverColor=this.globalPreset.sliderThumbBarHoverColor,e.lb_zoom=this.globalPreset.sliderZoomEnable,e.lb_itemInfoEnable=this.globalPreset.sliderInfoEnable,e.lb_itemShare=this.globalPreset.sliderSocialShareEnabled,e.lb_itemDownload=!1,e.lb_itemLike=this.globalPreset.sliderLikesEnabled,e.lb_discuss=this.globalPreset.sliderItemDiscuss,e.lb_menuBackgroundColor=this.globalPreset.sliderThumbSubMenuBackgroundColor,e.lb_menuBackgroundColorOver=this.globalPreset.sliderThumbSubMenuBackgroundColorOver,e.lb_menuIconColor=this.globalPreset.sliderThumbSubMenuIconColor,e.lb_menuIconColorOver=this.globalPreset.sliderThumbSubMenuIconHoverColor,e.lb_fullscreen=this.globalPreset.sliderFullscreenEnabled,e.lb_slideshowEneble=this.globalPreset.sliderSlideshow,e.lb_sliderSlideshowAutoStart=this.globalPreset.sliderSlideshowAutoStart,e.lb_slideshowIndicatorColor=this.globalPreset.slideshowIndicatorColor,e.lb_slideshowIndicatorColorBg=this.globalPreset.slideshowIndicatorColorBg,e.lb_slideshowTimer=this.globalPreset.sliderSlideshowDelay,e}},{key:"attributesLightbox",get:function(){return tt}},{key:"addLightboxEventListres",value:function(){this.appEventManager.addGMEventListener(Le.EVENTS.LB_NEED_MODAL,this,"createModalEventHendler"),this.appEventManager.addGMEventListener(Le.EVENTS.LB_REMOVE_LIGHTBOX,this,"removeLightbox"),this.appEventManager.addGMEventListener(Le.EVENTS.LB_FULLSCREEN_SWITCH,this,"fullscreenSwitch"),this.appEventManager.addGMEventListener(Le.EVENTS.LB_ITEM_ACTION,this,"itemActionHandler")}},{key:"removeLightboxEventListres",value:function(){this.appEventManager.removeGMEventListener(Le.EVENTS.LB_NEED_MODAL,this,"createModalEventHendler"),this.appEventManager.removeGMEventListener(Le.EVENTS.LB_REMOVE_LIGHTBOX,this,"removeLightbox"),this.appEventManager.removeGMEventListener(Le.EVENTS.LB_FULLSCREEN_SWITCH,this,"fullscreenSwitch"),this.appEventManager.removeGMEventListener(Le.EVENTS.LB_ITEM_ACTION,this,"itemActionHandler")}},{key:"createModalEventHendler",value:function(e){this.createModal(e.params)}},{key:"createModal",value:function(e){if(e.type&&e.item){var t=e.item,i=Ae.CONFIG;i.ish_backgroundColor=this.globalPreset.modaBgColor,i.ish_iconColor=this.globalPreset.modalIconColor,i.ish_iconColorHover=this.globalPreset.modalIconColorHover,i.ish_facebook=this.globalPreset.shareFacebook,i.ish_twitter=this.globalPreset.shareTwitter,i.ish_pinterest=this.globalPreset.sharePinterest,i.ish_download=this.globalPreset.sliderItemDownload,i.ish_copy=this.globalPreset.shareCopyLink;var n=document.getElementsByTagName("body")[0];i.ish_parentDiv=this.lightbox?this.lightbox.view:n,this.appEventManager.addGMEventListener(Ae.EVENTS.REMOVE_SHARE_WINDOW,this,"deleteModal"),this.modal=new Ae(this.appEventManager,i),this.modal.initByItem(t)}}},{key:"deleteModal",value:function(){this.modal&&delete this.modal,this.appEventManager.removeGMEventListener(Ae.EVENTS.REMOVE_SHARE_WINDOW,this,"deleteModal")}}])&&nt(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(et),new e)),document.addEventListener("click",(function(e){var t=e.target;"IMG"!==t.tagName&&"A"!==t.tagName||!t.dataset["".concat(lt,"Id")]||(e.stopPropagation(),e.preventDefault(),window.PGC_SGB_LIGHTBOX.lightbox&&window.PGC_SGB_LIGHTBOX.lightbox.tryLightboxFor(t.dataset["".concat(lt,"Id")]))}),!0)}))}})()})();
window.addEventListener("pageshow", function(){
if(document.getElementById("vscf-form")){
document.getElementById("vscf-form").reset();
}});
document.addEventListener("DOMContentLoaded", function(){
if(document.getElementById("vscf-anchor")){
document.getElementById("vscf-anchor").scrollIntoView({behavior:"smooth",block:"center"});
}});
function on_keydown_remove_from_cart(e){" "===e.key&&(e.preventDefault(),e.currentTarget.click())}function focus_populate_live_region(){var e=["woocommerce-message","woocommerce-error","wc-block-components-notice-banner"].map(function(e){return"."+e+'[role="alert"]'}).join(", "),o=document.querySelectorAll(e);if(0!==o.length){var t=o[0];t.setAttribute("tabindex","-1");var n=setTimeout(function(){t.focus(),clearTimeout(n)},500)}}function refresh_sorted_by_live_region(){var e=document.querySelector(".woocommerce-result-count"),o=document.querySelector('[data-wp-interactive="woocommerce/product-filters"]');if(e&&window.location.search&&!o){var t=e.innerHTML;e.setAttribute("role","alert"),e.setAttribute("aria-hidden","true");var n=setTimeout(function(){e.setAttribute("aria-hidden","false"),e.innerHTML="",e.innerHTML=t,clearTimeout(n)},2e3)}}function on_document_ready(){focus_populate_live_region(),refresh_sorted_by_live_region()}jQuery(function(e){e(".woocommerce-ordering").on("change","select.orderby",function(){e(this).closest("form").trigger("submit")}),e("input.qty:not(.product-quantity input.qty)").each(function(){var o=parseFloat(e(this).attr("min"));o>=0&&parseFloat(e(this).val())<o&&e(this).val(o)});var o="store_notice"+(e(".woocommerce-store-notice").data("noticeId")||"");if("hidden"===Cookies.get(o))e(".woocommerce-store-notice").hide();else{function t(o){["Enter"," "].includes(o.key)&&(o.preventDefault(),e(".woocommerce-store-notice__dismiss-link").click())}e(".woocommerce-store-notice").show(),e(".woocommerce-store-notice__dismiss-link").on("click",function n(r){Cookies.set(o,"hidden",{path:"/"}),e(".woocommerce-store-notice").hide(),r.preventDefault(),e(".woocommerce-store-notice__dismiss-link").off("click",n).off("keydown",t)}).on("keydown",t)}e(".woocommerce-input-wrapper span.description").length&&e(document.body).on("click",function(){e(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),e(".woocommerce-input-wrapper").on("click",function(e){e.stopPropagation()}),e(".woocommerce-input-wrapper :input").on("keydown",function(o){var t=e(this).parent().find("span.description");if(27===o.which&&t.length&&t.is(":visible"))return t.prop("aria-hidden",!0).slideUp(250),o.preventDefault(),!1}).on("click focus",function(){var o=e(this).parent(),t=o.find("span.description");o.addClass("currentTarget"),e(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),t.length&&t.is(":hidden")&&t.prop("aria-hidden",!1).slideDown(250),o.removeClass("currentTarget")}),e.scroll_to_notices=function(o){o.length&&e("html, body").animate({scrollTop:o.offset().top-100},1e3)},e('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").each(function(){const o=e(this).find("input").attr("id");e(this).append('<button type="button" class="show-password-input" aria-label="'+woocommerce_params.i18n_password_show+'" aria-describedBy="'+o+'"></button>')}),e(".show-password-input").on("click",function(o){o.preventDefault(),e(this).hasClass("display-password")?(e(this).removeClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_show)):(e(this).addClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_hide)),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password"),e(this).siblings("input").focus()}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})}),"undefined"==typeof wc_add_to_cart_params&&e(document.body).on("keydown",".remove_from_cart_button",on_keydown_remove_from_cart),e(document.body).on("item_removed_from_classic_cart updated_wc_div",focus_populate_live_region)}),document.addEventListener("DOMContentLoaded",on_document_ready);
((t,e)=>{"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.AOS=e():t.AOS=e()})(this,function(){return s=[function(t,e,i){function s(t){return t&&t.__esModule?t:{default:t}}function n(){m=(0,c.default)(),y()}var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i,s=arguments[e];for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(t[i]=s[i])}return t},r=(s(i(1)),i(6)),a=s(r),h=s(i(7)),l=s(i(8)),d=s(i(9)),p=s(i(10)),u=s(i(11)),c=s(i(14)),m=[],f=!1,g={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},y=function(){if(f=0<arguments.length&&void 0!==arguments[0]&&arguments[0]?!0:f)return m=(0,u.default)(m,g),(0,p.default)(m,g.once),m};t.exports={init:function(t){g=o(g,t),m=(0,c.default)();var e,t=document.all&&!window.atob;return!0===(e=g.disable)||"mobile"===e&&d.default.mobile()||"phone"===e&&d.default.phone()||"tablet"===e&&d.default.tablet()||"function"==typeof e&&!0===e()||t?void m.forEach(function(t,e){t.node.removeAttribute("data-aos"),t.node.removeAttribute("data-aos-easing"),t.node.removeAttribute("data-aos-duration"),t.node.removeAttribute("data-aos-delay")}):(g.disableMutationObserver||l.default.isSupported()||(console.info('\n      aos: MutationObserver is not supported on this browser,\n      code mutations observing has been disabled.\n      You may have to call "refreshHard()" by yourself.\n    '),g.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",g.easing),document.querySelector("body").setAttribute("data-aos-duration",g.duration),document.querySelector("body").setAttribute("data-aos-delay",g.delay),"DOMContentLoaded"===g.startEvent&&-1<["complete","interactive"].indexOf(document.readyState)?y(!0):("load"===g.startEvent?window:document).addEventListener(g.startEvent,function(){y(!0)}),window.addEventListener("resize",(0,h.default)(y,g.debounceDelay,!0)),window.addEventListener("orientationchange",(0,h.default)(y,g.debounceDelay,!0)),window.addEventListener("scroll",(0,a.default)(function(){(0,p.default)(m,g.once)},g.throttleDelay)),g.disableMutationObserver||l.default.ready("[data-aos]",n),m)},refresh:y,refreshHard:n}},function(t,e){},,,,,function(m,t){!function(t){function o(s,i,t){function n(t){var e=h,i=l;return h=l=void 0,m=t,p=s.apply(i,e)}function o(t){var e=t-c;return void 0===c||i<=e||e<0||g&&d<=t-m}function r(){var t,e=S();return o(e)?a(e):void(u=setTimeout(r,(t=i-((e=e)-c),g?z(t,d-(e-m)):t)))}function a(t){return u=void 0,y&&h?n(t):(h=l=void 0,p)}function e(){var t=S(),e=o(t);if(h=arguments,l=this,c=t,e){if(void 0===u)return m=t=c,u=setTimeout(r,i),f?n(t):p;if(g)return u=setTimeout(r,i),n(c)}return void 0===u&&(u=setTimeout(r,i)),p}var h,l,d,p,u,c,m=0,f=!1,g=!1,y=!0;if("function"!=typeof s)throw new TypeError(b);return i=w(i)||0,v(t)&&(f=!!t.leading,g="maxWait"in t,d=g?x(w(t.maxWait)||0,i):d,y="trailing"in t?!!t.trailing:y),e.cancel=function(){void 0!==u&&clearTimeout(u),h=c=l=u=void(m=0)},e.flush=function(){return void 0===u?p:a(S())},e}function v(t){var e=void 0===t?"undefined":s(t);return t&&("object"==e||"function"==e)}function i(t){return"symbol"==(void 0===t?"undefined":s(t))||!!(e=t)&&"object"==(void 0===e?"undefined":s(e))&&c.call(t)==r;var e}function w(t){if("number"==typeof t)return t;if(i(t))return n;if("string"!=typeof(t=v(t)?v(e="function"==typeof t.valueOf?t.valueOf():t)?e+"":e:t))return 0===t?t:+t;t=t.replace(a,"");var e=l.test(t);return e||d.test(t)?p(t.slice(2),e?2:8):h.test(t)?n:+t}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b="Expected a function",n=NaN,r="[object Symbol]",a=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,p=parseInt,t="object"==(void 0===t?"undefined":s(t))&&t&&t.Object===Object&&t,e="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,u=t||e||Function("return this")(),c=Object.prototype.toString,x=Math.max,z=Math.min,S=function(){return u.Date.now()};m.exports=function(t,e,i){var s=!0,n=!0;if("function"!=typeof t)throw new TypeError(b);return v(i)&&(s="leading"in i?!!i.leading:s,n="trailing"in i?!!i.trailing:n),o(t,e,{leading:s,maxWait:e,trailing:n})}}.call(t,function(){return this}())},function(c,t){!function(t){function v(t){var e=void 0===t?"undefined":s(t);return t&&("object"==e||"function"==e)}function i(t){return"symbol"==(void 0===t?"undefined":s(t))||!!(e=t)&&"object"==(void 0===e?"undefined":s(e))&&u.call(t)==o;var e}function w(t){if("number"==typeof t)return t;if(i(t))return n;if("string"!=typeof(t=v(t)?v(e="function"==typeof t.valueOf?t.valueOf():t)?e+"":e:t))return 0===t?t:+t;t=t.replace(r,"");var e=h.test(t);return e||l.test(t)?d(t.slice(2),e?2:8):a.test(t)?n:+t}function b(){return p.Date.now()}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=NaN,o="[object Symbol]",r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt,t="object"==(void 0===t?"undefined":s(t))&&t&&t.Object===Object&&t,e="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,p=t||e||Function("return this")(),u=Object.prototype.toString,x=Math.max,z=Math.min;c.exports=function(s,i,t){function n(t){var e=h,i=l;return h=l=void 0,m=t,p=s.apply(i,e)}function o(t){var e=t-c;return void 0===c||i<=e||e<0||g&&d<=t-m}function r(){var t,e=b();return o(e)?a(e):void(u=setTimeout(r,(t=i-((e=e)-c),g?z(t,d-(e-m)):t)))}function a(t){return u=void 0,y&&h?n(t):(h=l=void 0,p)}function e(){var t=b(),e=o(t);if(h=arguments,l=this,c=t,e){if(void 0===u)return m=t=c,u=setTimeout(r,i),f?n(t):p;if(g)return u=setTimeout(r,i),n(c)}return void 0===u&&(u=setTimeout(r,i)),p}var h,l,d,p,u,c,m=0,f=!1,g=!1,y=!0;if("function"!=typeof s)throw new TypeError("Expected a function");return i=w(i)||0,v(t)&&(f=!!t.leading,g="maxWait"in t,d=g?x(w(t.maxWait)||0,i):d,y="trailing"in t?!!t.trailing:y),e.cancel=function(){void 0!==u&&clearTimeout(u),h=c=l=u=void(m=0)},e.flush=function(){return void 0===u?p:a(b())},e}}.call(t,function(){return this}())},function(t,e){function n(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function o(t){t&&t.forEach(function(t){var e=Array.prototype.slice.call(t.addedNodes),t=Array.prototype.slice.call(t.removedNodes);if(function t(e){for(var i,s=void 0,s=0;s<e.length;s+=1){if((i=e[s]).dataset&&i.dataset.aos)return!0;if(i.children&&t(i.children))return!0}return!1}(e.concat(t)))return r()})}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){};e.default={isSupported:function(){return!!n()},ready:function(t,e){var i=window.document,s=new(n())(o);r=e,s.observe(i.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}}},function(t,e){function i(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(e,"__esModule",{value:!0});var s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,o=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,r=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,a=(function(t,e,i){return e&&l(t.prototype,e),i&&l(t,i),t}(h,[{key:"phone",value:function(){var t=i();return!(!s.test(t)&&!n.test(t.substr(0,4)))}},{key:"mobile",value:function(){var t=i();return!(!o.test(t)&&!r.test(t.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),h);function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}e.default=new a},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,o){var r=window.pageYOffset,a=window.innerHeight;t.forEach(function(t,e){var i,s,n;i=a+r,s=o,n=(t=t).node.getAttribute("data-aos-once"),i>t.position?t.node.classList.add("aos-animate"):void 0===n||"false"!==n&&(s||"true"===n)||t.node.classList.remove("aos-animate")})}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var i=i(12),s=(i=i)&&i.__esModule?i:{default:i};e.default=function(t,i){return t.forEach(function(t,e){t.node.classList.add("aos-init"),t.position=(0,s.default)(t.node,i.offset)}),t}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var i=i(13),r=(i=i)&&i.__esModule?i:{default:i};e.default=function(t,e){var i=0,s=0,n=window.innerHeight,o={offset:t.getAttribute("data-aos-offset"),anchor:t.getAttribute("data-aos-anchor"),anchorPlacement:t.getAttribute("data-aos-anchor-placement")};switch(o.offset&&!isNaN(o.offset)&&(s=parseInt(o.offset)),o.anchor&&document.querySelectorAll(o.anchor)&&(t=document.querySelectorAll(o.anchor)[0]),i=(0,r.default)(t).top,o.anchorPlacement){case"top-bottom":break;case"center-bottom":i+=t.offsetHeight/2;break;case"bottom-bottom":i+=t.offsetHeight;break;case"top-center":i+=n/2;break;case"bottom-center":i+=n/2+t.offsetHeight;break;case"center-center":i+=n/2+t.offsetHeight/2;break;case"top-top":i+=n;break;case"bottom-top":i+=t.offsetHeight+n;break;case"center-top":i+=t.offsetHeight/2+n}return i+(s=o.anchorPlacement||o.offset||isNaN(e)?s:e)}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=0,i=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)e+=t.offsetLeft-("BODY"!=t.tagName?t.scrollLeft:0),i+=t.offsetTop-("BODY"!=t.tagName?t.scrollTop:0),t=t.offsetParent;return{top:i,left:e}}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return t=t||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(t,function(t){return{node:t}})}}],n={},i.m=s,i.c=n,i.p="dist/",i(0);function i(t){var e;return(n[t]||(e=n[t]={exports:{},id:t,loaded:!1},s[t].call(e.exports,e,e.exports,i),e.loaded=!0,e)).exports}var s,n}),((e,i)=>{"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)})(window,function(t,e){function i(h,l,d){(d=d||e||t.jQuery)&&(l.prototype.option||(l.prototype.option=function(t){d.isPlainObject(t)&&(this.options=d.extend(!0,this.options,t))}),d.fn[h]=function(t){var e,s,n,o,r,a;return"string"==typeof t?(e=p.call(arguments,1),n=e,r="$()."+h+'("'+(s=t)+'")',(e=this).each(function(t,e){var i,e=d.data(e,h);e?(i=e[s])&&"_"!=s.charAt(0)?(i=i.apply(e,n),o=void 0===o?i:o):u(r+" is not a valid method"):u(h+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:e):(a=t,this.each(function(t,e){var i=d.data(e,h);i?(i.option(a),i._init()):(i=new l(e,a),d.data(e,h,i))}),this)},s(d))}function s(t){t&&!t.bridget&&(t.bridget=i)}var p=Array.prototype.slice,n=t.console,u=void 0===n?function(){}:function(t){n.error(t)};return s(e||t.jQuery),i}),((t,e)=>{"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()})("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return-1==(i=(i=this._events=this._events||{})[t]=i[t]||[]).indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var s=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var o=i[n];s&&s[o]&&(this.off(t,o),delete s[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),((t,e)=>{"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()})(window,function(){function g(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function y(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function v(t){if(z||(z=!0,(d=document.createElement("div")).style.width="200px",d.style.padding="1px 2px 3px 4px",d.style.borderStyle="solid",d.style.borderWidth="1px 2px 3px 4px",d.style.boxSizing="border-box",(l=document.body||document.documentElement).appendChild(d),o=y(d),w=200==Math.round(g(o.width)),v.isBoxSizeOuter=w,l.removeChild(d)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=y(t);if("none"==e.display){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},s=0;s<x;s++)i[b[s]]=0;return i}var n={};n.width=t.offsetWidth,n.height=t.offsetHeight;for(var o=n.isBorderBox="border-box"==e.boxSizing,r=0;r<x;r++){var a=b[r],h=e[a],h=parseFloat(h);n[a]=isNaN(h)?0:h}var l=n.paddingLeft+n.paddingRight,d=n.paddingTop+n.paddingBottom,t=n.marginLeft+n.marginRight,p=n.marginTop+n.marginBottom,u=n.borderLeftWidth+n.borderRightWidth,c=n.borderTopWidth+n.borderBottomWidth,m=o&&w,f=g(e.width),f=(!1!==f&&(n.width=f+(m?0:l+u)),g(e.height));return!1!==f&&(n.height=f+(m?0:d+c)),n.innerWidth=n.width-(l+u),n.innerHeight=n.height-(d+c),n.outerWidth=n.width+t,n.outerHeight=n.height+p,n}var d,l,o}var w,e="undefined"==typeof console?function(){}:function(t){console.error(t)},b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],x=b.length,z=!1;return v}),((t,e)=>{"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()})(window,function(){var i=(()=>{var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var s=e[i]+"MatchesSelector";if(t[s])return s}})();return function(t,e){return t[i](e)}}),((e,i)=>{"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)})(window,function(i,o){var h={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,l=(h.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},h.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},h.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(o(t=t.parentNode,e))return t},h.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.filterFindElements=function(t,s){t=h.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(s){o(t,s)&&n.push(t);for(var e=t.querySelectorAll(s),i=0;i<e.length;i++)n.push(e[i])}else n.push(t)}),n},h.debounceMethod=function(t,e,s){s=s||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o],e=(clearTimeout(t),arguments),i=this;this[o]=setTimeout(function(){n.apply(i,e),delete i[o]},s)}},h.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},h.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},i.console);return h.htmlInit=function(r,a){h.docReady(function(){var t=h.toDashed(a),s="data-"+t,e=document.querySelectorAll("["+s+"]"),t=document.querySelectorAll(".js-"+t),e=h.makeArray(e).concat(h.makeArray(t)),n=s+"-options",o=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(s)||e.getAttribute(n);try{t=i&&JSON.parse(i)}catch(t){return void(l&&l.error("Error parsing "+s+" on "+e.className+": "+t))}i=new r(e,t);o&&o.data(e,a,i)})})},h}),((t,e)=>{"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))})(window,function(t,e){function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var s=document.documentElement.style,n="string"==typeof s.transition?"transition":"WebkitTransition",s="string"==typeof s.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:s,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"},t=i.prototype=Object.create(t.prototype),a=(t.constructor=i,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[r[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),s=t[e?"left":"right"],t=t[i?"top":"bottom"],n=parseFloat(s),o=parseFloat(t),r=this.layout.size;-1!=s.indexOf("%")&&(n=n/100*r.width),-1!=t.indexOf("%")&&(o=o/100*r.height),n=isNaN(n)?0:n,o=isNaN(o)?0:o,n-=e?r.paddingLeft:r.paddingRight,o-=i?r.paddingTop:r.paddingBottom,this.position.x=n,this.position.y=o},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),s=this.layout._getOption("originTop"),n=i?"right":"left",o=this.position.x+t[i?"paddingLeft":"paddingRight"],i=(e[i?"left":"right"]=this.getXValue(o),e[n]="",s?"paddingTop":"paddingBottom"),o=s?"bottom":"top",n=this.position.y+t[i];e[s?"top":"bottom"]=this.getYValue(n),e[o]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,s=this.position.y,n=t==this.position.x&&e==this.position.y;this.setPosition(t,e),n&&!this.isTransitioning?this.layoutPosition():((n={}).transform=this.getTranslate(t-i,e-s),this.transition({to:n,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)},"opacity,"+s.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})),h=(t.enableTransition=function(){var t;this.isTransitioning||(t=this.layout.options.transitionDuration,this.css({transitionProperty:a,transitionDuration:t="number"==typeof t?t+"ms":t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform"}),l=(t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=h[t.propertyName]||t.propertyName,delete e.ingProperties[i],(t=>{for(var e in t)return;return 1})(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(l)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){return n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),((n,o)=>{"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,s){return o(n,t,e,i,s)}):"object"==typeof module&&module.exports?module.exports=o(n,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=o(n,n.EvEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)})(window,function(t,e,n,s,o){function r(t,e){var i=s.getQueryElement(t);i?(this.element=i,l&&(this.$element=l(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(e),e=++d,this.element.outlayerGUID=e,(p[e]=this)._create(),this._getOption("initLayout")&&this.layout()):h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function i(){}var h=t.console,l=t.jQuery,d=0,p={},u=(r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},r.prototype),c=(s.extend(u,e.prototype),u.option=function(t){s.extend(this.options,t)},u._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},u._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},u.reloadItems=function(){this.items=this._itemize(this.element.children)},u._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,s=[],n=0;n<e.length;n++){var o=new i(e[n],this);s.push(o)}return s},u._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},u.getItemElements=function(){return this.items.map(function(t){return t.element})},u.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},u._init=u.layout,u._resetLayout=function(){this.getSize()},u.getSize=function(){this.size=n(this.element)},u._getMeasurement=function(t,e){var i,s=this.options[t];s?("string"==typeof s?i=this.element.querySelector(s):s instanceof HTMLElement&&(i=s),this[t]=i?n(i)[e]:s):this[t]=0},u.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},u._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},u._layoutItems=function(t,i){var s;this._emitCompleteOnItems("layout",t),t&&t.length&&(s=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,s.push(e)},this),this._processLayoutQueue(s))},u._getItemLayoutPosition=function(){return{x:0,y:0}},u._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},u.updateStagger=function(){var t,e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger="number"==typeof(e=e)?e:(t=(e=e.match(/(^\d*\.?\d*)(\w*)/))&&e[1],e=e&&e[2],t.length?(t=parseFloat(t))*(c[e]||1):0),this.stagger)},u._positionItem=function(t,e,i,s,n){s?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},u._postLayout=function(){this.resizeContainer()},u.resizeContainer=function(){var t;this._getOption("resizeContainer")&&(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},u._getContainerSize=i,u._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},u._emitCompleteOnItems=function(e,t){function i(){o.dispatchEvent(e+"Complete",null,[t])}function s(){++n==r&&i()}var n,o=this,r=t.length;t&&r?(n=0,t.forEach(function(t){t.once(e,s)})):i()},u.dispatchEvent=function(t,e,i){var s=e?[e].concat(i):i;this.emitEvent(t,s),l&&(this.$element=this.$element||l(this.element),e?((s=l.Event(e)).type=t,this.$element.trigger(s,i)):this.$element.trigger(t,i))},u.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},u.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},u.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},u.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){s.removeFrom(this.stamps,t),this.unignore(t)},this)},u._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),s.makeArray(t)},u._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},u._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},u._manageStamp=i,u._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=n(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},u.handleEvent=s.handleEvent,u.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},u.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},u.onresize=function(){this.resize()},s.debounceMethod(r,"onresize",100),u.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},u.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},u.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},u.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},u.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},u.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},u.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},u.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},u.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},u.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},u.getItems=function(t){t=s.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},u.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),s.removeFrom(this.items,t)},this)},u.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete p[t],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=(t=s.getQueryElement(t))&&t.outlayerGUID;return t&&p[t]},r.create=function(t,e){var i=a(r);return i.defaults=s.extend({},r.defaults),s.extend(i.defaults,e),i.compatOptions=s.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=a(o),s.htmlInit(i,t),l&&l.bridget&&l.bridget(t,i),i},{ms:1,s:1e3});return r.Item=o,r}),((t,e)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))})(window,function(t){function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),s=i._create,n=(i._create=function(){this.id=this.layout.itemGUID++,s.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var s=i[t];this.sortData[t]=s(this.element,this)}}},i.destroy);return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),((t,e)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))})(window,function(e,i){function s(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=s.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){n[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i,t=t+e,s="outer"+e;this._getMeasurement(t,s),this[t]||(i=this.getFirstItemSize(),this[t]=i&&i[s]||this.isotope.size["inner"+e])},n.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},s.modes={},s.create=function(t,e){function i(){s.apply(this,arguments)}return(i.prototype=Object.create(n)).constructor=i,e&&(i.options=e),s.modes[i.prototype.namespace=t]=i},s}),((t,e)=>{"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)})(window,function(t,a){var t=t.create("masonry"),e=(t.compatOptions.fitWidth="isFitWidth",t.prototype);return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},e.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},e._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](e,t),s={x:this.columnWidth*i.col,y:i.y},n=i.y+t.size.outerHeight,o=e+i.col,r=i.col;r<o;r++)this.colYs[r]=n;return s},e._getTopColPosition=function(t){var t=this._getTopColGroup(t),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,s=0;s<i;s++)e[s]=this._getColGroupY(s,t);return e},e._getColGroupY=function(t,e){return e<2?this.colYs[t]:(t=this.colYs.slice(t,t+e),Math.max.apply(Math,t))},e._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},e._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),i=this._getOption("originLeft")?t.left:t.right,s=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),n=Math.floor(s/this.columnWidth);n-=s%this.columnWidth?0:1;for(var n=Math.min(this.cols-1,n),o=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,r=i;r<=n;r++)this.colYs[r]=Math.max(o,this.colYs[r])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t}),((t,e)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)})(window,function(t,e){var i,t=t.create("masonry"),s=t.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)n[i]||(s[i]=e.prototype[i]);var o=s.measureColumns,r=(s.measureColumns=function(){this.items=this.isotope.filteredItems,o.call(this)},s._getOption);return s._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:r.apply(this.isotope,arguments)},t}),((t,e)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)})(window,function(t){var t=t.create("fitRows"),e=t.prototype;return e._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},e._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,i=(0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},e._getContainerSize=function(){return{height:this.maxY}},t}),((t,e)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)})(window,function(t){var t=t.create("vertical",{horizontalAlignment:0}),e=t.prototype;return e._resetLayout=function(){this.y=0},e._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},e._getContainerSize=function(){return{height:this.y}},t}),((r,a)=>{"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(t,e,i,s,n,o){return a(r,t,0,i,s,n,o)}):"object"==typeof module&&module.exports?module.exports=a(r,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):r.Isotope=a(r,r.Outlayer,0,r.matchesSelector,r.fizzyUIUtils,r.Isotope.Item,r.Isotope.LayoutMode)})(window,function(t,i,e,s,o,n,r){var a=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},l=i.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),t=(l.Item=n,l.LayoutMode=r,l.prototype),d=(t._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],r.modes)this._initLayoutMode(t)},t.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},t._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},t._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?o.extend(e.options,i):i,this.modes[t]=new e(this)},t.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},t._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},t.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},t._init=t.arrange,t._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},t._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},t._bindArrangeComplete=function(){function t(){e&&i&&s&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,s,n=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){s=!0,t()})},t._filter=function(t){for(var e=this.options.filter,i=[],s=[],n=[],o=this._getFilterTest(e||"*"),r=0;r<t.length;r++){var a,h=t[r];h.isIgnored||((a=o(h))&&i.push(h),a&&h.isHidden?s.push(h):a||h.isHidden||n.push(h))}return{matches:i,needReveal:s,needHide:n}},t._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return s(t.element,e)}},t.updateSortData=function(t){t=t?(t=o.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},t._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=d(i)}},t._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()},function(t){var e,i,s,n,o,r;return"string"!=typeof t?t:(i=(i=(e=(t=h(t).split(" "))[0]).match(/^\[(.+)\]$/))&&i[1],r=e,s=(o=i)?function(t){return t.getAttribute(o)}:function(t){t=t.querySelector(r);return t&&t.textContent},(n=l.sortDataParsers[t[1]])?function(t){return t&&n(s(t))}:function(t){return t&&s(t)})}),p=(l.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},t._sort=function(){var t,r,a;this.options.sortBy&&(t=o.makeArray(this.options.sortBy),this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory)),r=this.sortHistory,a=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0;i<r.length;i++){var s=r[i],n=t.sortData[s],o=e.sortData[s];if(o<n||n<o)return(o<n?1:-1)*((void 0!==a[s]?a[s]:a)?1:-1)}return 0}))},t._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},t._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(e)return e.options=this.options[t],e;throw new Error("No layout mode: "+t)},t._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},t._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},t._manageStamp=function(t){this._mode()._manageStamp(t)},t._getContainerSize=function(){return this._mode()._getContainerSize()},t.needsResizeLayout=function(){return this._mode().needsResizeLayout()},t.appended=function(t){var t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},t.prepended=function(t){var e,t=this._itemize(t);t.length&&(this._resetLayout(),this._manageStamps(),e=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=e.concat(this.filteredItems),this.items=t.concat(this.items))},t._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},t.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,s=e.length,n=0;n<s;n++)i=e[n],this.element.appendChild(i.element);t=this._filter(e).matches;for(n=0;n<s;n++)e[n].isLayoutInstant=!0;for(this.arrange(),n=0;n<s;n++)delete e[n].isLayoutInstant;this.reveal(t)}},t.remove);return t.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);p.call(this,t);for(var i=e&&e.length,s=0;i&&s<i;s++){var n=e[s];o.removeFrom(this.filteredItems,n)}},t.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},t._noTransition=function(t,e){var i=this.options.transitionDuration,t=(this.options.transitionDuration=0,t.apply(this,e));return this.options.transitionDuration=i,t},t.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},l}),((t,e)=>{"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()})("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;return t&&e&&((i=(i=this._events=this._events||{})[t]=i[t]||[]).includes(e)||i.push(e)),this},e.once=function(t,e){var i;return t&&e&&(this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0),this},e.off=function(t,e){t=this._events&&this._events[t];return t&&t.length&&-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];var s,n=this._onceEvents&&this._onceEvents[t];for(s of i)n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t}),((t,e)=>{"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)})("undefined"!=typeof window?window:this,function(e,t){let o=e.jQuery,r=e.console;function a(t,e,i){if(!(this instanceof a))return new a(t,e,i);let s=t,n;(s="string"==typeof t?document.querySelectorAll(t):s)?(this.elements=(n=s,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?[...n]:[n]),this.options={},"function"==typeof e?i=e:Object.assign(this.options,e),i&&this.on("always",i),this.getImages(),o&&(this.jqDeferred=new o.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(s||t))}(a.prototype=Object.create(t.prototype)).getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};let n=[1,9,11],h=(a.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e,i,s=t.nodeType;if(s&&n.includes(s)){for(e of t.querySelectorAll("img"))this.addImage(e);if("string"==typeof this.options.background)for(i of t.querySelectorAll(this.options.background))this.addElementBackgroundImages(i)}},/url\((['"])?(.*?)\1\)/gi);function i(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}return a.prototype.addElementBackgroundImages=function(e){var i=getComputedStyle(e);if(i){let t=h.exec(i.backgroundImage);for(;null!==t;){var s=t&&t[2];s&&this.addBackground(s,e),t=h.exec(i.backgroundImage)}}},a.prototype.addImage=function(t){t=new i(t);this.images.push(t)},a.prototype.addBackground=function(t,e){t=new s(t,e);this.images.push(t)},a.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,this.images.length){let e=(t,e,i)=>{setTimeout(()=>{this.progress(t,e,i)})};this.images.forEach(function(t){t.once("progress",e),t.check()})}else this.complete()},a.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,t,e)},a.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t;t=this.img.parentNode,t="PICTURE"===t.nodeName?t:this.img;this.emitEvent("progress",[this,t,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(s.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(a.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((o=t).fn.imagesLoaded=function(t,e){return new a(this,t,e).jqDeferred.promise(o(this))})})(),a}),((e,i)=>{"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)})(window,function(t,e){function i(h,l,d){(d=d||e||t.jQuery)&&(l.prototype.option||(l.prototype.option=function(t){d.isPlainObject(t)&&(this.options=d.extend(!0,this.options,t))}),d.fn[h]=function(t){var e,s,n,o,r,a;return"string"==typeof t?(e=p.call(arguments,1),n=e,r="$()."+h+'("'+(s=t)+'")',(e=this).each(function(t,e){var i,e=d.data(e,h);e?(i=e[s])&&"_"!=s.charAt(0)?(i=i.apply(e,n),o=void 0===o?i:o):u(r+" is not a valid method"):u(h+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:e):(a=t,this.each(function(t,e){var i=d.data(e,h);i?(i.option(a),i._init()):(i=new l(e,a),d.data(e,h,i))}),this)},s(d))}function s(t){t&&!t.bridget&&(t.bridget=i)}var p=Array.prototype.slice,n=t.console,u=void 0===n?function(){}:function(t){n.error(t)};return s(e||t.jQuery),i}),((t,e)=>{"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()})("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return-1==(i=(i=this._events=this._events||{})[t]=i[t]||[]).indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var s=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var o=i[n];s&&s[o]&&(this.off(t,o),delete s[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),((t,e)=>{"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()})(window,function(){function g(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function y(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function v(t){if(z||(z=!0,(d=document.createElement("div")).style.width="200px",d.style.padding="1px 2px 3px 4px",d.style.borderStyle="solid",d.style.borderWidth="1px 2px 3px 4px",d.style.boxSizing="border-box",(l=document.body||document.documentElement).appendChild(d),o=y(d),w=200==Math.round(g(o.width)),v.isBoxSizeOuter=w,l.removeChild(d)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=y(t);if("none"==e.display){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},s=0;s<x;s++)i[b[s]]=0;return i}var n={};n.width=t.offsetWidth,n.height=t.offsetHeight;for(var o=n.isBorderBox="border-box"==e.boxSizing,r=0;r<x;r++){var a=b[r],h=e[a],h=parseFloat(h);n[a]=isNaN(h)?0:h}var l=n.paddingLeft+n.paddingRight,d=n.paddingTop+n.paddingBottom,t=n.marginLeft+n.marginRight,p=n.marginTop+n.marginBottom,u=n.borderLeftWidth+n.borderRightWidth,c=n.borderTopWidth+n.borderBottomWidth,m=o&&w,f=g(e.width),f=(!1!==f&&(n.width=f+(m?0:l+u)),g(e.height));return!1!==f&&(n.height=f+(m?0:d+c)),n.innerWidth=n.width-(l+u),n.innerHeight=n.height-(d+c),n.outerWidth=n.width+t,n.outerHeight=n.height+p,n}var d,l,o}var w,e="undefined"==typeof console?function(){}:function(t){console.error(t)},b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],x=b.length,z=!1;return v}),((t,e)=>{"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()})(window,function(){var i=(()=>{var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var s=e[i]+"MatchesSelector";if(t[s])return s}})();return function(t,e){return t[i](e)}}),((e,i)=>{"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)})(window,function(i,o){var h={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,l=(h.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},h.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},h.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(o(t=t.parentNode,e))return t},h.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.filterFindElements=function(t,s){t=h.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(s){o(t,s)&&n.push(t);for(var e=t.querySelectorAll(s),i=0;i<e.length;i++)n.push(e[i])}else n.push(t)}),n},h.debounceMethod=function(t,e,s){s=s||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o],e=(clearTimeout(t),arguments),i=this;this[o]=setTimeout(function(){n.apply(i,e),delete i[o]},s)}},h.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},h.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},i.console);return h.htmlInit=function(r,a){h.docReady(function(){var t=h.toDashed(a),s="data-"+t,e=document.querySelectorAll("["+s+"]"),t=document.querySelectorAll(".js-"+t),e=h.makeArray(e).concat(h.makeArray(t)),n=s+"-options",o=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(s)||e.getAttribute(n);try{t=i&&JSON.parse(i)}catch(t){return void(l&&l.error("Error parsing "+s+" on "+e.className+": "+t))}i=new r(e,t);o&&o.data(e,a,i)})})},h}),((t,e)=>{"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))})(window,function(t,e){function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var s=document.documentElement.style,n="string"==typeof s.transition?"transition":"WebkitTransition",s="string"==typeof s.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:s,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"},t=i.prototype=Object.create(t.prototype),a=(t.constructor=i,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[r[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),s=t[e?"left":"right"],t=t[i?"top":"bottom"],n=parseFloat(s),o=parseFloat(t),r=this.layout.size;-1!=s.indexOf("%")&&(n=n/100*r.width),-1!=t.indexOf("%")&&(o=o/100*r.height),n=isNaN(n)?0:n,o=isNaN(o)?0:o,n-=e?r.paddingLeft:r.paddingRight,o-=i?r.paddingTop:r.paddingBottom,this.position.x=n,this.position.y=o},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),s=this.layout._getOption("originTop"),n=i?"right":"left",o=this.position.x+t[i?"paddingLeft":"paddingRight"],i=(e[i?"left":"right"]=this.getXValue(o),e[n]="",s?"paddingTop":"paddingBottom"),o=s?"bottom":"top",n=this.position.y+t[i];e[s?"top":"bottom"]=this.getYValue(n),e[o]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,s=this.position.y,n=t==this.position.x&&e==this.position.y;this.setPosition(t,e),n&&!this.isTransitioning?this.layoutPosition():((n={}).transform=this.getTranslate(t-i,e-s),this.transition({to:n,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)},"opacity,"+s.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})),h=(t.enableTransition=function(){var t;this.isTransitioning||(t=this.layout.options.transitionDuration,this.css({transitionProperty:a,transitionDuration:t="number"==typeof t?t+"ms":t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform"}),l=(t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=h[t.propertyName]||t.propertyName,delete e.ingProperties[i],(t=>{for(var e in t)return;return 1})(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(l)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){return n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),((n,o)=>{"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,s){return o(n,t,e,i,s)}):"object"==typeof module&&module.exports?module.exports=o(n,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=o(n,n.EvEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)})(window,function(t,e,n,s,o){function r(t,e){var i=s.getQueryElement(t);i?(this.element=i,l&&(this.$element=l(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(e),e=++d,this.element.outlayerGUID=e,(p[e]=this)._create(),this._getOption("initLayout")&&this.layout()):h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function i(){}var h=t.console,l=t.jQuery,d=0,p={},u=(r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},r.prototype),c=(s.extend(u,e.prototype),u.option=function(t){s.extend(this.options,t)},u._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},u._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),s.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},u.reloadItems=function(){this.items=this._itemize(this.element.children)},u._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,s=[],n=0;n<e.length;n++){var o=new i(e[n],this);s.push(o)}return s},u._filterFindItemElements=function(t){return s.filterFindElements(t,this.options.itemSelector)},u.getItemElements=function(){return this.items.map(function(t){return t.element})},u.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},u._init=u.layout,u._resetLayout=function(){this.getSize()},u.getSize=function(){this.size=n(this.element)},u._getMeasurement=function(t,e){var i,s=this.options[t];s?("string"==typeof s?i=this.element.querySelector(s):s instanceof HTMLElement&&(i=s),this[t]=i?n(i)[e]:s):this[t]=0},u.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},u._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},u._layoutItems=function(t,i){var s;this._emitCompleteOnItems("layout",t),t&&t.length&&(s=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,s.push(e)},this),this._processLayoutQueue(s))},u._getItemLayoutPosition=function(){return{x:0,y:0}},u._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},u.updateStagger=function(){var t,e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger="number"==typeof(e=e)?e:(t=(e=e.match(/(^\d*\.?\d*)(\w*)/))&&e[1],e=e&&e[2],t.length?(t=parseFloat(t))*(c[e]||1):0),this.stagger)},u._positionItem=function(t,e,i,s,n){s?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},u._postLayout=function(){this.resizeContainer()},u.resizeContainer=function(){var t;this._getOption("resizeContainer")&&(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},u._getContainerSize=i,u._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},u._emitCompleteOnItems=function(e,t){function i(){o.dispatchEvent(e+"Complete",null,[t])}function s(){++n==r&&i()}var n,o=this,r=t.length;t&&r?(n=0,t.forEach(function(t){t.once(e,s)})):i()},u.dispatchEvent=function(t,e,i){var s=e?[e].concat(i):i;this.emitEvent(t,s),l&&(this.$element=this.$element||l(this.element),e?((s=l.Event(e)).type=t,this.$element.trigger(s,i)):this.$element.trigger(t,i))},u.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},u.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},u.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},u.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){s.removeFrom(this.stamps,t),this.unignore(t)},this)},u._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),s.makeArray(t)):void 0},u._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},u._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},u._manageStamp=i,u._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=n(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},u.handleEvent=s.handleEvent,u.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},u.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},u.onresize=function(){this.resize()},s.debounceMethod(r,"onresize",100),u.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},u.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},u.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},u.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},u.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},u.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},u.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},u.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},u.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},u.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},u.getItems=function(t){t=s.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},u.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),s.removeFrom(this.items,t)},this)},u.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete p[t],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=(t=s.getQueryElement(t))&&t.outlayerGUID;return t&&p[t]},r.create=function(t,e){var i=a(r);return i.defaults=s.extend({},r.defaults),s.extend(i.defaults,e),i.compatOptions=s.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=a(o),s.htmlInit(i,t),l&&l.bridget&&l.bridget(t,i),i},{ms:1,s:1e3});return r.Item=o,r}),((t,e)=>{"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)})(window,function(t,a){var t=t.create("masonry"),e=(t.compatOptions.fitWidth="isFitWidth",t.prototype);return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},e.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},e._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](e,t),s={x:this.columnWidth*i.col,y:i.y},n=i.y+t.size.outerHeight,o=e+i.col,r=i.col;r<o;r++)this.colYs[r]=n;return s},e._getTopColPosition=function(t){var t=this._getTopColGroup(t),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,s=0;s<i;s++)e[s]=this._getColGroupY(s,t);return e},e._getColGroupY=function(t,e){return e<2?this.colYs[t]:(t=this.colYs.slice(t,t+e),Math.max.apply(Math,t))},e._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},e._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),i=this._getOption("originLeft")?t.left:t.right,s=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),n=Math.floor(s/this.columnWidth);n-=s%this.columnWidth?0:1;for(var n=Math.min(this.cols-1,n),o=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,r=i;r<=n;r++)this.colYs[r]=Math.max(o,this.colYs[r])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t}),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).PhotoSwipe=e()})(this,function(){function l(t,e,i){e=document.createElement(e);return t&&(e.className=t),i&&i.appendChild(e),e}function u(t,e){return t.x=e.x,t.y=e.y,void 0!==e.id&&(t.id=e.id),t}function r(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function d(t,e){var i=Math.abs(t.x-e.x),t=Math.abs(t.y-e.y);return Math.sqrt(i*i+t*t)}function c(t,e){return t.x===e.x&&t.y===e.y}function m(t,e,i){return Math.min(Math.max(t,e),i)}function a(t,e,i){let s=`translate3d(${t}px,${e||0}px,0)`;return void 0!==i&&(s+=` scale3d(${i},${i},1)`),s}function h(t,e,i,s){t.style.transform=a(e,i,s)}function p(t,e,i,s){t.style.transition=e?e+` ${i}ms `+(s||"cubic-bezier(.4,0,.22,1)"):"none"}function s(t,e,i){t.style.width="number"==typeof e?e+"px":e,t.style.height="number"==typeof i?i+"px":i}let i="loading",t="loaded",e="error";function n(){return navigator.vendor&&navigator.vendor.match(/apple/i)}let f=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{f=!0}}))}catch(l){}class o{constructor(){this.t=[]}add(t,e,i,s){this.i(t,e,i,s)}remove(t,e,i,s){this.i(t,e,i,s,!0)}removeAll(){this.t.forEach(t=>{this.i(t.target,t.type,t.listener,t.passive,!0,!0)}),this.t=[]}i(s,t,n,o,r,a){if(s){let i=r?"removeEventListener":"addEventListener";t.split(" ").forEach(e=>{var t;e&&(a||(r?this.t=this.t.filter(t=>t.type!==e||t.listener!==n||t.target!==s):this.t.push({target:s,type:e,listener:n,passive:o})),t=!!f&&{passive:o||!1},s[i](e,n,t))})}}}function g(t,e){if(t.getViewportSizeFn){t=t.getViewportSizeFn(t,e);if(t)return t}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function y(e,i,t,s,n){let o=0;if(i.paddingFn)o=i.paddingFn(t,s,n)[e];else if(i.padding)o=i.padding[e];else{let t="padding"+e[0].toUpperCase()+e.slice(1);i[t]&&(o=i[t])}return Number(o)||0}function v(t,e,i,s){return{x:e.x-y("left",t,e,i,s)-y("right",t,e,i,s),y:e.y-y("top",t,e,i,s)-y("bottom",t,e,i,s)}}class w{constructor(t){this.slide=t,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(t){this.currZoomLevel=t,this.slide.width?(this.o("x"),this.o("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}o(t){var e=this.slide.pswp,i=this.slide["x"===t?"width":"height"]*this.currZoomLevel,e=y("x"===t?"left":"top",e.options,e.viewportSize,this.slide.data,this.slide.index),s=this.slide.panAreaSize[t];this.center[t]=Math.round((s-i)/2)+e,this.max[t]=s<i?Math.round(s-i)+e:this.center[t],this.min[t]=s<i?e:this.center[t]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(t,e){return m(e,this.max[t],this.min[t])}}class b{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){t={x:t,y:e},this.elementSize=t,e=(this.panAreaSize=i).x/t.x,i=i.y/t.y;this.fit=Math.min(1,e<i?e:i),this.fill=Math.min(1,i<e?e:i),this.vFill=Math.min(1,i),this.initial=this.l(),this.secondary=this.u(),this.max=Math.max(this.initial,this.secondary,this.p()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}m(t){t=this.options[t+"ZoomLevel"];if(t)return"function"==typeof t?t(this):"fill"===t?this.fill:"fit"===t?this.fit:Number(t)}u(){let t=this.m("secondary");return t||(t=Math.min(1,3*this.fit),t=this.elementSize&&4e3<t*this.elementSize.x?4e3/this.elementSize.x:t)}l(){return this.m("initial")||this.fit}p(){return this.m("max")||Math.max(1,4*this.fit)}}class x{constructor(t,e,i){this.data=t,this.index=e,this.pswp=i,this.isActive=e===i.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!i.opener.isOpen,this.zoomLevels=new b(i.options,t,e,i),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:e}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=l("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new w(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(t){t&&!this.isActive?this.activate():!t&&this.isActive&&this.deactivate()}append(t){this.holderElement=t,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive)&&this.activate()}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){var t=this.pswp;this.heavyAppended||!t.opener.isOpen||t.mainScroll.isShifted()||(this.isActive,0)||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(t){var e,i=this.currentResolution||this.zoomLevels.initial;i&&(e=Math.round(this.width*i)||this.pswp.viewportSize.x,i=Math.round(this.height*i)||this.pswp.viewportSize.y,this.sizeChanged(e,i)||t)&&this.content.setDisplayedSize(e,i)}sizeChanged(t,e){return(t!==this.prevDisplayedWidth||e!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=t,this.prevDisplayedHeight=e,!0)}getPlaceholderElement(){var t;return null==(t=this.content.placeholder)?void 0:t.element}zoomTo(t,e,i,s){var n,o=this.pswp;this.isZoomable()&&!o.mainScroll.isShifted()&&(o.dispatch("beforeZoomTo",{destZoomLevel:t,centerPoint:e,transitionDuration:i}),o.animations.stopAllPan(),n=this.currZoomLevel,s||(t=m(t,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(t),this.pan.x=this.calculateZoomToPanOffset("x",e,n),this.pan.y=this.calculateZoomToPanOffset("y",e,n),r(this.pan),s=()=>{this.v(t),this.applyCurrentZoomPan()},i?o.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:s,duration:i,easing:o.options.easing}):s())}toggleZoom(t){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,t,this.pswp.options.zoomAnimationDuration)}setZoomLevel(t){this.currZoomLevel=t,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(t,e,i){if(0==this.bounds.max[t]-this.bounds.min[t])return this.bounds.center[t];e=e||this.pswp.getViewportCenterPoint(),i=i||this.zoomLevels.initial;i=this.currZoomLevel/i;return this.bounds.correctPan(t,(this.pan[t]-e[t])*i+e[t])}panTo(t,e){this.pan.x=this.bounds.correctPan("x",t),this.pan.y=this.bounds.correctPan("y",e),this.applyCurrentZoomPan()}isPannable(){return Boolean(this.width)&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return Boolean(this.width)&&this.content.isZoomable()}applyCurrentZoomPan(){this.g(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),u(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}g(t,e,i){i/=this.currentResolution||this.zoomLevels.initial,h(this.container,t,e,i)}calculateSize(){var t=this.pswp;u(this.panAreaSize,v(t.options,t.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),t.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){var t=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return a(this.pan.x,this.pan.y,t)}v(t){t!==this.currentResolution&&(this.currentResolution=t,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}class z{constructor(t){this.gestures=t,this.pswp=t.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&u(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){let{p1:t,prevP1:i,dragAxis:e}=this.gestures,s=this.pswp.currSlide;if("y"===e&&this.pswp.options.closeOnVerticalDrag&&s&&s.currZoomLevel<=s.zoomLevels.fit&&!this.gestures.isMultitouch){let e=s.pan.y+(t.y-i.y);if(!this.pswp.dispatch("verticalDrag",{panY:e}).defaultPrevented){this._("y",e,.6);let t=1-Math.abs(this.S(s.pan.y));this.pswp.applyBgOpacity(t),s.applyCurrentZoomPan()}}else this.M("x")||(this.M("y"),s&&(r(s.pan),s.applyCurrentZoomPan()))}end(){let e=this.gestures.velocity,{mainScroll:i,currSlide:t}=this.pswp,s=0;if(this.pswp.animations.stopAll(),i.isShifted()){let t=(i.x-i.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-.5&&t<0||e.x<.1&&t<-.5?(s=1,e.x=Math.min(e.x,0)):(.5<e.x&&0<t||-.1<e.x&&.5<t)&&(s=-1,e.x=Math.max(e.x,0)),i.moveIndexBy(s,!0,e.x)}t&&t.currZoomLevel>t.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this.P("x"),this.P("y"))}P(l){let e=this.gestures.velocity,d=this.pswp.currSlide;if(d){let{pan:n,bounds:t}=d,o=n[l],r=this.pswp.bgOpacity<1&&"y"===l,a=o+.995*e[l]/(1-.995);if(r){let t=this.S(o),e=this.S(a);if(t<0&&e<-.4||0<t&&.4<e)return void this.pswp.close()}let h=t.correctPan(l,a);if(o!==h){let t=h===a?1:.82,i=this.pswp.bgOpacity,s=h-o;this.pswp.animations.startSpring({name:"panGesture"+l,isPan:!0,start:o,end:h,velocity:e[l],dampingRatio:t,onUpdate:e=>{if(r&&this.pswp.bgOpacity<1){let t=1-(h-e)/s;this.pswp.applyBgOpacity(m(i+(1-i)*t,0,1))}n[l]=Math.floor(e),d.applyCurrentZoomPan()}})}}}M(n){let{p1:t,dragAxis:e,prevP1:i,isMultitouch:s}=this.gestures,{currSlide:o,mainScroll:r}=this.pswp,a=t[n]-i[n],h=r.x+a;if(a&&o){if("x"===n&&!o.isPannable()&&!s)return r.moveTo(h,!0),!0;var l=o.bounds,d=o.pan[n]+a;if(this.pswp.options.allowPanToNext&&"x"===e&&"x"===n&&!s){let t=r.getCurrSlideX(),e=r.x-t,i=0<a,s=!i;if(d>l.min[n]&&i){if(l.min[n]<=this.startPan[n])return r.moveTo(h,!0),!0;this._(n,d)}else if(d<l.max[n]&&s){if(this.startPan[n]<=l.max[n])return r.moveTo(h,!0),!0;this._(n,d)}else if(0!=e){if(0<e)return r.moveTo(Math.max(h,t),!0),!0;if(e<0)return r.moveTo(Math.min(h,t),!0),!0}else this._(n,d)}else"y"===n&&(r.isShifted()||l.min.y===l.max.y)||this._(n,d)}return!1}S(t){return(t-(null!=(t=null==(t=this.pswp.currSlide)?void 0:t.bounds.center.y)?t:0))/(this.pswp.viewportSize.y/3)}_(e,i,s){let t=this.pswp.currSlide;if(t){var{pan:n,bounds:o}=t;if(o.correctPan(e,i)!==i||s){let t=Math.round(i-n[e]);n[e]+=t*(s||.35)}else n[e]=i}}}function S(t,e,i){t.x=(e.x+i.x)/2,t.y=(e.y+i.y)/2}class _{constructor(t){this.gestures=t,this.C={x:0,y:0},this.T={x:0,y:0},this.A={x:0,y:0},this.D=!1,this.I=1}start(){var t=this.gestures.pswp.currSlide;t&&(this.I=t.currZoomLevel,u(this.C,t.pan)),this.gestures.pswp.animations.stopAllPan(),this.D=!1}change(){let{p1:t,startP1:i,p2:s,startP2:n,pswp:o}=this.gestures,r=o.currSlide;if(r){var a=r.zoomLevels.min,h=r.zoomLevels.max;if(r.isZoomable()&&!o.mainScroll.isShifted()){S(this.T,i,n),S(this.A,t,s);let e=1/d(i,n)*d(t,s)*this.I;if(e>r.zoomLevels.initial+r.zoomLevels.initial/15&&(this.D=!0),e<a)if(o.options.pinchToClose&&!this.D&&this.I<=r.zoomLevels.initial){let t=1-(a-e)/(a/1.2);o.dispatch("pinchClose",{bgOpacity:t}).defaultPrevented||o.applyBgOpacity(t)}else e=a-.15*(a-e);else e>h&&(e=h+.05*(e-h));r.pan.x=this.L("x",e),r.pan.y=this.L("y",e),r.setZoomLevel(e),r.applyCurrentZoomPan()}}}end(){var t=this.gestures.pswp,e=t.currSlide;(!e||e.currZoomLevel<e.zoomLevels.initial)&&!this.D&&t.options.pinchToClose?t.close():this.correctZoomPan()}L(t,e){e/=this.I;return this.A[t]-(this.T[t]-this.C[t])*e}correctZoomPan(t){let d=this.gestures.pswp,p=d.currSlide;if(null!=p&&p.isZoomable()){0===this.A.x&&(t=!0);let i=p.currZoomLevel,s,n=!0,o=(s=i<p.zoomLevels.initial?p.zoomLevels.initial:i>p.zoomLevels.max?p.zoomLevels.max:(n=!1,i),d.bgOpacity),r=d.bgOpacity<1,a=u({x:0,y:0},p.pan),h=u({x:0,y:0},a),l=(t&&(this.A.x=0,this.A.y=0,this.T.x=0,this.T.y=0,this.I=i,u(this.C,a)),n&&(h={x:this.L("x",s),y:this.L("y",s)}),p.setZoomLevel(s),h={x:p.bounds.correctPan("x",h.x),y:p.bounds.correctPan("y",h.y)},p.setZoomLevel(i),!c(h,a));l||n||r?(d.animations.stopAllPan(),d.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:t=>{var e;t/=1e3,(l||n)&&(l&&(p.pan.x=a.x+(h.x-a.x)*t,p.pan.y=a.y+(h.y-a.y)*t),n&&(e=i+(s-i)*t,p.setZoomLevel(e)),p.applyCurrentZoomPan()),r&&d.bgOpacity<1&&d.applyBgOpacity(m(o+(1-o)*t,0,1))},onComplete:()=>{p.v(s),p.applyCurrentZoomPan()}})):(p.v(s),p.applyCurrentZoomPan())}}}function I(t){return t.target.closest(".pswp__container")}class E{constructor(t){this.gestures=t}click(t,e){var i=e.target.classList,s=i.contains("pswp__img"),i=i.contains("pswp__item")||i.contains("pswp__zoom-wrap");s?this.k("imageClick",t,e):i&&this.k("bgClick",t,e)}tap(t,e){I(e)&&this.k("tap",t,e)}doubleTap(t,e){I(e)&&this.k("doubleTap",t,e)}k(t,e,i){var s,n=this.gestures.pswp,o=n.currSlide,t=t+"Action",r=n.options[t];if(!n.dispatch(t,{point:e,originalEvent:i}).defaultPrevented)if("function"!=typeof r)switch(r){case"close":case"next":n[r]();break;case"zoom":null!=o&&o.toggleZoom(e);break;case"zoom-or-close":null!=o&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(e):n.options.clickToCloseNonZoomable&&n.close();break;case"toggle-controls":null!=(s=this.gestures.pswp.element)&&s.classList.toggle("pswp--ui-visible")}else r.call(n,e,i)}}class L{constructor(t){this.pswp=t,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this.Z={x:0,y:0},this.B={x:0,y:0},this.F=0,this.O=[],this.R="ontouchstart"in window,this.N=!!window.PointerEvent,this.supportsTouch=this.R||this.N&&1<navigator.maxTouchPoints,this.F=0,this.U=0,this.V=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this.G=null,this.supportsTouch||(t.options.allowPanToNext=!1),this.drag=new z(this),this.zoomLevels=new _(this),this.tapHandler=new E(this),t.on("bindEvents",()=>{t.events.add(t.scrollWrap,"click",this.$.bind(this)),this.N?this.q("pointer","down","up","cancel"):this.R?(this.q("touch","start","end","cancel"),t.scrollWrap&&(t.scrollWrap.ontouchmove=()=>{},t.scrollWrap.ontouchend=()=>{})):this.q("mouse","down","up")})}q(t,e,i,s){var n=this.pswp,o=n.events,s=s?t+s:"";o.add(n.scrollWrap,t+e,this.onPointerDown.bind(this)),o.add(window,t+"move",this.onPointerMove.bind(this)),o.add(window,t+i,this.onPointerUp.bind(this)),s&&o.add(n.scrollWrap,s,this.onPointerUp.bind(this))}onPointerDown(t){var e,i="mousedown"===t.type||"mouse"===t.pointerType;i&&0<t.button||(e=this.pswp,e.opener.isOpen?e.dispatch("pointerDown",{originalEvent:t}).defaultPrevented||(i&&(e.mouseDetected(),this.H(t,"down")),e.animations.stopAll(),this.K(t,"down"),1===this.F&&(this.dragAxis=null,u(this.startP1,this.p1)),1<this.F?(this.W(),this.isMultitouch=!0):this.isMultitouch=!1):t.preventDefault())}onPointerMove(t){this.H(t,"move"),this.F&&(this.K(t,"move"),this.pswp.dispatch("pointerMove",{originalEvent:t}).defaultPrevented||(1!==this.F||this.isDragging?1<this.F&&!this.isZooming&&(this.j(),this.isZooming=!0,this.X(),this.zoomLevels.start(),this.Y(),this.J()):(this.dragAxis||this.tt(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this.W(),this.X(),this.U=Date.now(),this.V=!1,u(this.B,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this.Y(),this.J()))))}j(){this.isDragging&&(this.isDragging=!1,this.V||this.it(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(t){this.F&&(this.K(t,"up"),this.pswp.dispatch("pointerUp",{originalEvent:t}).defaultPrevented||(0===this.F&&(this.Y(),this.isDragging?this.j():this.isZooming||this.isMultitouch||this.st(t)),this.F<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this.F)&&(this.dragAxis=null,this.X())))}J(){(this.isDragging||this.isZooming)&&(this.it(),this.isDragging?c(this.p1,this.prevP1)||this.drag.change():c(this.p1,this.prevP1)&&c(this.p2,this.prevP2)||this.zoomLevels.change(),this.ht(),this.raf=requestAnimationFrame(this.J.bind(this)))}it(t){var e=Date.now(),i=e-this.U;i<50&&!t||(this.velocity.x=this.et("x",i),this.velocity.y=this.et("y",i),this.U=e,u(this.B,this.p1),this.V=!0)}st(t){var e=this.pswp.mainScroll;e.isShifted()?e.moveIndexBy(0,!0):0<t.type.indexOf("cancel")||("mouseup"===t.type||"mouse"===t.pointerType?this.tapHandler.click(this.startP1,t):(e=this.pswp.options.doubleTapAction?300:0,this.G?(this.W(),d(this.Z,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,t)):(u(this.Z,this.startP1),this.G=setTimeout(()=>{this.tapHandler.tap(this.startP1,t),this.W()},e))))}W(){this.G&&(clearTimeout(this.G),this.G=null)}et(t,e){t=this.p1[t]-this.B[t];return 1<Math.abs(t)&&5<e?t/e:0}Y(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}H(t,e){this.pswp.applyFilters("preventPointerEvent",!0,t,e)&&t.preventDefault()}K(i,s){if(this.N){let e=i,t=this.O.findIndex(t=>t.id===e.pointerId);"up"===s&&-1<t?this.O.splice(t,1):"down"===s&&-1===t?this.O.push(this.nt(e,{x:0,y:0})):-1<t&&this.nt(e,this.O[t]),this.F=this.O.length,0<this.F&&u(this.p1,this.O[0]),1<this.F&&u(this.p2,this.O[1])}else{let t=i;this.F=0,-1<t.type.indexOf("touch")?t.touches&&0<t.touches.length&&(this.nt(t.touches[0],this.p1),this.F++,1<t.touches.length)&&(this.nt(t.touches[1],this.p2),this.F++):(this.nt(i,this.p1),"up"===s?this.F=0:this.F++)}}ht(){u(this.prevP1,this.p1),u(this.prevP2,this.p2)}X(){u(this.startP1,this.p1),u(this.startP2,this.p2),this.ht()}tt(){var t;this.pswp.mainScroll.isShifted()?this.dragAxis="x":0!=(t=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y))&&(t=0<t?"x":"y",10<=Math.abs(this.p1[t]-this.startP1[t]))&&(this.dragAxis=t)}nt(t,e){return e.x=t.pageX-this.pswp.offset.x,e.y=t.pageY-this.pswp.offset.y,"pointerId"in t?e.id=t.pointerId:void 0!==t.identifier&&(e.id=t.identifier),e}$(t){this.pswp.mainScroll.isShifted()&&(t.preventDefault(),t.stopPropagation())}}class C{constructor(t){this.pswp=t,this.x=0,this.slideWidth=0,this.ot=0,this.rt=0,this.lt=-1,this.itemHolders=[]}resize(i){let t=this.pswp,e=Math.round(t.viewportSize.x+t.viewportSize.x*t.options.spacing),s=e!==this.slideWidth;s&&(this.slideWidth=e,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((t,e)=>{s&&h(t.el,(e+this.lt)*this.slideWidth),i&&t.slide&&t.slide.resize()})}resetPosition(){this.ot=0,this.rt=0,this.slideWidth=0,this.lt=-1}appendHolders(){this.itemHolders=[];for(let t=0;t<3;t++){var e=l("pswp__item","div",this.pswp.container);e.setAttribute("role","group"),e.setAttribute("aria-roledescription","slide"),e.setAttribute("aria-hidden","true"),e.style.display=1===t?"block":"none",this.itemHolders.push({el:e})}}canBeSwiped(){return 1<this.pswp.getNumItems()}moveIndexBy(e,t,i){let s=this.pswp,n=s.potentialIndex+e;var o=s.getNumItems();if(s.canLoop()){n=s.getLoopedIndex(n);let t=(e+o)%o;e=t<=o/2?t:t-o}else n<0?n=0:n>=o&&(n=o-1),e=n-s.potentialIndex;s.potentialIndex=n,this.ot-=e,s.animations.stopMainScroll();var r=this.getCurrSlideX();if(t){s.animations.startSpring({isMainScroll:!0,start:this.x,end:r,velocity:i||0,naturalFrequency:30,dampingRatio:1,onUpdate:t=>{this.moveTo(t)},onComplete:()=>{this.updateCurrItem(),s.appendHeavy()}});let e=s.potentialIndex-s.currIndex;if(s.canLoop()){let t=(e+o)%o;e=t<=o/2?t:t-o}1<Math.abs(e)&&this.updateCurrItem()}else this.moveTo(r),this.updateCurrItem();return Boolean(e)}getCurrSlideX(){return this.slideWidth*this.ot}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var t,s=this.pswp,n=this.rt-this.ot;if(n){this.rt=this.ot,s.currIndex=s.potentialIndex;let e,i=Math.abs(n);3<=i&&(this.lt+=n+(0<n?-3:3),i=3,this.itemHolders.forEach(t=>{var e;null!=(e=t.slide)&&e.destroy(),t.slide=void 0}));for(let t=0;t<i;t++)0<n?(e=this.itemHolders.shift())&&(this.itemHolders[2]=e,this.lt++,h(e.el,(this.lt+2)*this.slideWidth),s.setContent(e,s.currIndex-i+t+2)):(e=this.itemHolders.pop())&&(this.itemHolders.unshift(e),this.lt--,h(e.el,this.lt*this.slideWidth),s.setContent(e,s.currIndex+i-t-2));50<Math.abs(this.lt)&&!this.isShifted()&&(this.resetPosition(),this.resize()),s.animations.stopAllPan(),this.itemHolders.forEach((t,e)=>{t.slide&&t.slide.setIsActive(1===e)}),s.currSlide=null==(t=this.itemHolders[1])?void 0:t.slide,s.contentLoader.updateLazy(n),s.currSlide&&s.currSlide.applyCurrentZoomPan(),s.dispatch("change")}}moveTo(t,e){var i,s;!this.pswp.canLoop()&&e&&(i=(this.slideWidth*this.ot-t)/this.slideWidth,i+=this.pswp.currIndex,s=Math.round(t-this.x),i<0&&0<s||i>=this.pswp.getNumItems()-1&&s<0)&&(t=this.x+.35*s),this.x=t,this.pswp.container&&h(this.pswp.container,t),this.pswp.dispatch("moveMainScroll",{x:t,dragging:null!=e&&e})}}let T={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},P=(t,e)=>e?t:T[t];class O{constructor(t){this.pswp=t,this.ct=!1,t.on("bindEvents",()=>{t.options.trapFocus&&(t.options.initialPointerPos||this.dt(),t.events.add(document,"focusin",this.ut.bind(this))),t.events.add(document,"keydown",this.vt.bind(this))});let e=document.activeElement;t.on("destroy",()=>{t.options.returnFocus&&e&&this.ct&&e.focus()})}dt(){!this.ct&&this.pswp.element&&(this.pswp.element.focus(),this.ct=!0)}vt(n){var t,o=this.pswp;if(!o.dispatch("keydown",{originalEvent:n}).defaultPrevented&&!("button"in(t=n)&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)){let e,i,s=!1,t="key"in n;switch(t?n.key:n.keyCode){case P("Escape",t):o.options.escKey&&(e="close");break;case P("z",t):e="toggleZoom";break;case P("ArrowLeft",t):i="x";break;case P("ArrowUp",t):i="y";break;case P("ArrowRight",t):i="x",s=!0;break;case P("ArrowDown",t):s=!0,i="y";break;case P("Tab",t):this.dt()}if(i){n.preventDefault();let t=o.currSlide;o.options.arrowKeys&&"x"===i&&1<o.getNumItems()?e=s?"next":"prev":t&&t.currZoomLevel>t.zoomLevels.fit&&(t.pan[i]+=s?-80:80,t.panTo(t.pan.x,t.pan.y))}e&&(n.preventDefault(),o[e]())}}ut(t){var e=this.pswp.template;e&&document!==t.target&&e!==t.target&&!e.contains(t.target)&&e.focus()}}class k{constructor(t){let e,{target:i,onComplete:s,transform:n,onFinish:o=()=>{},duration:r=333,easing:a="cubic-bezier(.4,0,.22,1)"}=this.props=t,h=(this.onFinish=o,n?"transform":"opacity"),l=null!=(e=t[h])?e:"";this.ft=i,this.wt=s,this.gt=!1,this.yt=this.yt.bind(this),this._t=setTimeout(()=>{p(i,h,r,a),this._t=setTimeout(()=>{i.addEventListener("transitionend",this.yt,!1),i.addEventListener("transitioncancel",this.yt,!1),this._t=setTimeout(()=>{this.xt()},r+500),i.style[h]=l},30)},0)}yt(t){t.target===this.ft&&this.xt()}xt(){this.gt||(this.gt=!0,this.onFinish(),this.wt&&this.wt())}destroy(){this._t&&clearTimeout(this._t),p(this.ft),this.ft.removeEventListener("transitionend",this.yt,!1),this.ft.removeEventListener("transitioncancel",this.yt,!1),this.gt||this.xt()}}class F{constructor(t,e,i){this.velocity=1e3*t,this.bt=e||.75,this.St=i||12,this.zt=this.St,this.bt<1&&(this.zt*=Math.sqrt(1-this.bt*this.bt))}easeFrame(t,e){let i,s=0;e/=1e3;var n,o=Math.E**(-this.bt*this.St*e);return 1===this.bt?(i=this.velocity+this.St*t,s=(t+i*e)*o,this.velocity=s*-this.St+i*o):this.bt<1&&(i=1/this.zt*(this.bt*this.St*t+this.velocity),n=Math.cos(this.zt*e),e=Math.sin(this.zt*e),s=o*(t*n+i*e),this.velocity=s*-this.St*this.bt+o*(-this.zt*t*e+this.zt*i*n)),s}}class j{constructor(t){this.props=t,this.Mt=0;let{start:e,end:i,velocity:s,onUpdate:n,onComplete:o,onFinish:r=()=>{},dampingRatio:a,naturalFrequency:h}=t,l=(this.onFinish=r,new F(s,a,h)),d=Date.now(),p=e-i,u=()=>{this.Mt&&(p=l.easeFrame(p,Date.now()-d),Math.abs(p)<1&&Math.abs(l.velocity)<50?(n(i),o&&o(),this.onFinish()):(d=Date.now(),n(p+i),this.Mt=requestAnimationFrame(u)))};this.Mt=requestAnimationFrame(u)}destroy(){0<=this.Mt&&cancelAnimationFrame(this.Mt),this.Mt=0}}class B{constructor(){this.activeAnimations=[]}startSpring(t){this.Pt(t,!0)}startTransition(t){this.Pt(t)}Pt(t,e){let i=new(e?j:k)(t);return this.activeAnimations.push(i),i.onFinish=()=>this.stop(i),i}stop(t){t.destroy();t=this.activeAnimations.indexOf(t);-1<t&&this.activeAnimations.splice(t,1)}stopAll(){this.activeAnimations.forEach(t=>{t.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(t=>!t.props.isPan||(t.destroy(),!1))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(t=>!t.props.isMainScroll||(t.destroy(),!1))}isPanRunning(){return this.activeAnimations.some(t=>t.props.isPan)}}class N{constructor(t){(this.pswp=t).events.add(t.element,"wheel",this.Ct.bind(this))}Ct(e){e.preventDefault();var i=this.pswp.currSlide;let{deltaX:t,deltaY:s}=e;if(i&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(i.isZoomable()){let t=-s;1===e.deltaMode?t*=.05:t*=e.deltaMode?1:.002,t=2**t;var n=i.currZoomLevel*t;i.zoomTo(n,{x:e.clientX,y:e.clientY})}}else i.isPannable()&&(1===e.deltaMode&&(t*=18,s*=18),i.panTo(i.pan.x-t,i.pan.y-s))}}class H{constructor(o,r){var i,a=r.name||r.className;let h=r.html;if(!1!==o.options[a]){"string"==typeof o.options[a+"SVG"]&&(h=o.options[a+"SVG"]),o.dispatch("uiElementCreate",{data:r});let t="",s=(r.isButton?t=(t+="pswp__button ")+(r.className||"pswp__button--"+r.name):t+=r.className||"pswp__"+r.name,r.isButton?r.tagName||"button":r.tagName||"div"),n=(s=s.toLowerCase(),l(t,s));if(r.isButton){"button"===s&&(n.type="button");let t=r.title,e=r.ariaLabel,i=((t="string"==typeof o.options[a+"Title"]?o.options[a+"Title"]:t)&&(n.title=t),e||t);i&&n.setAttribute("aria-label",i)}n.innerHTML=(t=>{if("string"==typeof t)return t;if(!t||!t.isCustomSVG)return"";let e='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return e=e.split("%d").join(t.size||32),t.outlineID&&(e+='<use class="pswp__icn-shadow" xlink:href="#'+t.outlineID+'"/>'),e=e+t.inner+"</svg>"})(h),r.onInit&&r.onInit(n,o),r.onClick&&(n.onclick=t=>{"string"==typeof r.onClick?o[r.onClick]():"function"==typeof r.onClick&&r.onClick(t,n,o)});a=r.appendTo||"bar";let e=o.element;"bar"===a?(o.topBar||(o.topBar=l("pswp__top-bar pswp__hide-on-close","div",o.scrollWrap)),e=o.topBar):(n.classList.add("pswp__hide-on-close"),"wrapper"===a&&(e=o.scrollWrap)),null!=(i=e)&&i.appendChild(o.applyFilters("uiElement",n,r))}}}function A(t,e,i){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(t.disabled=i?!(e.currIndex<e.getNumItems()-1):!(0<e.currIndex))})}let R={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:A},Z={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,e)=>{A(t,e,!0)}},q={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},Y={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},U={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(e,i)=>{let s,n=null,o=t=>{s!==t&&(s=t,e.classList.toggle("pswp__preloader--active",t))},r=()=>{var t;null!=(t=i.currSlide)&&t.content.isLoading()?n=n||setTimeout(()=>{var t;o(Boolean(null==(t=i.currSlide)?void 0:t.content.isLoading())),n=null},i.options.preloaderDelay):(o(!1),n&&(clearTimeout(n),n=null))};i.on("change",r),i.on("loadComplete",t=>{i.currSlide===t.slide&&r()}),i.ui&&(i.ui.updatePreloaderVisibility=r)}},G={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function D(t,e){t.classList.toggle("pswp--zoomed-in",e)}class ${constructor(t){this.pswp=t,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this.Tt=void 0}init(){let e=this.pswp;this.isRegistered=!1,this.uiElementsData=[q,R,Z,Y,U,G],e.dispatch("uiRegister"),this.uiElementsData.sort((t,e)=>(t.order||0)-(e.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(t=>{this.registerElement(t)}),e.on("change",()=>{var t;null!=(t=e.element)&&t.classList.toggle("pswp--one-slide",1===e.getNumItems())}),e.on("zoomPanUpdate",()=>this.At())}registerElement(t){this.isRegistered?this.items.push(new H(this.pswp,t)):this.uiElementsData.push(t)}At(){var e,{template:i,currSlide:s,options:n}=this.pswp;if(!this.pswp.opener.isClosing&&i&&s){let t=s.currZoomLevel;(t=this.pswp.opener.isOpen?t:s.zoomLevels.initial)!==this.Tt&&(this.Tt=t,e=s.zoomLevels.initial-s.zoomLevels.secondary,Math.abs(e)<.01||!s.isZoomable()?(D(i,!1),i.classList.remove("pswp--zoom-allowed")):(i.classList.add("pswp--zoom-allowed"),D(i,(t===s.zoomLevels.initial?s.zoomLevels.secondary:s.zoomLevels.initial)<=t),"zoom"!==n.imageClickAction&&"zoom-or-close"!==n.imageClickAction||i.classList.add("pswp--click-to-zoom")))}}}class V{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class Q{constructor(e,t){if(this.element=l("pswp__img pswp__img--placeholder",e?"img":"div",t),e){let t=this.element;t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?(s(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=a(0,0,t/250)):s(this.element,t,e))}destroy(){var t;null!=(t=this.element)&&t.parentNode&&this.element.remove(),this.element=null}}class X{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state="idle",this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){let t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{let t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new Q(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=l("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=l("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e;this.isImageContent()&&this.element&&!this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented&&(t=this.element,this.updateSrcsetSizes(),this.data.srcset&&(t.srcset=this.data.srcset),t.src=null!=(e=this.data.src)?e:"",t.alt=null!=(e=this.data.alt)?e:"",this.state=i,t.complete?this.onLoaded():(t.onload=()=>{this.onLoaded()},t.onerror=()=>{this.onError()}))}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=t,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==t&&this.state!==e||this.removePlaceholder())}onError(){this.state=e,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===i,this)}isError(){return this.state===e}isImageContent(){return"image"===this.type}setDisplayedSize(t,e){var i;this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented)&&(s(this.element,t,e),this.isImageContent())&&!this.isError()&&(i=!this.displayedImageWidth&&t,this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide)&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==e,this)}updateSrcsetSizes(){var t,e;this.isImageContent()&&this.element&&this.data.srcset&&(t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this),!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){let t,e,i=l("pswp__error-msg","div");i.innerText=null!=(t=null==(e=this.instance.options)?void 0:e.errorMsg)?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=l("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){var t;!this.isAttached&&this.element&&(this.isAttached=!0,this.state===e?this.displayError():this.instance.dispatch("contentAppend",{content:this}).defaultPrevented||(t="decode"in this.element,this.isImageContent()?t&&this.slide&&(!this.slide.isActive||n())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)))}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!n()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement)&&this.slide.holderElement.setAttribute("aria-hidden","false")}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){!this.isAttached||this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==t&&this.state!==e)||this.removePlaceholder()}}function M(t,e,i){var s=e.createContentFromData(t,i);let n;var o=e.options;return o&&(n=new b(o,t,-1),o=v(o,e.pswp?e.pswp.viewportSize:g(o,e),t,i),n.update(s.width,s.height,o)),s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}class K{constructor(t){this.pswp=t,this.limit=Math.max(t.options.preload[0]+t.options.preload[1]+1,5),this.Dt=[]}updateLazy(e){var i=this.pswp;if(!i.dispatch("lazyLoad").defaultPrevented){var s=i.options.preload,n=void 0===e||0<=e;let t;for(t=0;t<=s[1];t++)this.loadSlideByIndex(i.currIndex+(n?t:-t));for(t=1;t<=s[0];t++)this.loadSlideByIndex(i.currIndex+(n?-t:t))}}loadSlideByIndex(t){var t=this.pswp.getLoopedIndex(t);this.getContentByIndex(t)||(t=((t,e)=>{var i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return M(i,e,t)})(t,this.pswp))&&this.addToCache(t)}getContentBySlide(t){let e=this.getContentByIndex(t.index);return e||(e=this.pswp.createContentFromData(t.data,t.index),this.addToCache(e)),e.setSlide(t),e}addToCache(t){if(this.removeByIndex(t.index),this.Dt.push(t),this.Dt.length>this.limit){let t=this.Dt.findIndex(t=>!t.isAttached&&!t.hasSlide);-1!==t&&this.Dt.splice(t,1)[0].destroy()}}removeByIndex(e){var t=this.Dt.findIndex(t=>t.index===e);-1!==t&&this.Dt.splice(t,1)}getContentByIndex(e){return this.Dt.find(t=>t.index===e)}destroy(){this.Dt.forEach(t=>t.destroy()),this.Dt=[]}}let W=.003;class J{constructor(t){this.pswp=t,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this.It=void 0,this.Et=!1,this.Lt=!1,this.kt=!1,this.Zt=!1,this.Bt=void 0,this.Ft=void 0,this.Ot=void 0,this.Rt=void 0,this.Nt=void 0,this.Ut=this.Ut.bind(this),t.on("firstZoomPan",this.Ut)}open(){this.Ut(),this.Pt()}close(){var t;this.isClosed||this.isClosing||this.isOpening||(t=this.pswp.currSlide,this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this.It=this.pswp.options.hideAnimationDuration,t&&t.currZoomLevel*t.width>=this.pswp.options.maxWidthToAnimate&&(this.It=0),this.Vt(),setTimeout(()=>{this.Pt()},this.Lt?30:0))}Ut(){var t;this.pswp.off("firstZoomPan",this.Ut),this.isOpening||(t=this.pswp.currSlide,this.isOpening=!0,this.isClosing=!1,this.It=this.pswp.options.showAnimationDuration,t&&t.zoomLevels.initial*t.width>=this.pswp.options.maxWidthToAnimate&&(this.It=0),this.Vt())}Vt(){var t=this.pswp,e=this.pswp.currSlide,i=t.options;"fade"===i.showHideAnimationType?(i.showHideOpacity=!0,this.Nt=void 0):"none"===i.showHideAnimationType?(i.showHideOpacity=!1,this.It=0,this.Nt=void 0):this.isOpening&&t.Gt?this.Nt=t.Gt:this.Nt=this.pswp.getThumbBounds(),this.Bt=null==e?void 0:e.getPlaceholderElement(),t.animations.stopAll(),this.Et=Boolean(this.It&&50<this.It),this.$t=Boolean(this.Nt)&&(null==e?void 0:e.content.usePlaceholder())&&(!this.isClosing||!t.mainScroll.isShifted()),this.$t?this.kt=null!=(i=i.showHideOpacity)&&i:(this.kt=!0,this.isOpening&&e&&(e.zoomAndPanToInitial(),e.applyCurrentZoomPan())),this.Zt=!this.kt&&this.pswp.options.bgOpacity>W,this.Ft=this.kt?t.element:t.bg,this.Et?(this.$t&&this.Nt&&this.Nt.innerRect?(this.Lt=!0,this.Ot=this.pswp.container,this.Rt=null==(i=this.pswp.currSlide)?void 0:i.holderElement,t.container&&(t.container.style.overflow="hidden",t.container.style.width=t.viewportSize.x+"px")):this.Lt=!1,this.isOpening?(this.kt?(t.element&&(t.element.style.opacity=String(W)),t.applyBgOpacity(1)):(this.Zt&&t.bg&&(t.bg.style.opacity=String(W)),t.element&&(t.element.style.opacity="1")),this.$t&&(this.qt(),this.Bt)&&(this.Bt.style.willChange="transform",this.Bt.style.opacity=String(W))):this.isClosing&&(t.mainScroll.itemHolders[0]&&(t.mainScroll.itemHolders[0].el.style.display="none"),t.mainScroll.itemHolders[2]&&(t.mainScroll.itemHolders[2].el.style.display="none"),this.Lt)&&0!==t.mainScroll.x&&(t.mainScroll.resetPosition(),t.mainScroll.resize())):(this.It=0,this.$t=!1,this.Zt=!1,this.kt=!0,this.isOpening&&(t.element&&(t.element.style.opacity=String(W)),t.applyBgOpacity(1)))}Pt(){this.isOpening&&this.Et&&this.Bt&&"IMG"===this.Bt.tagName?new Promise(t=>{let e=!1,i=!0;var s=this.Bt;("decode"in s?s.decode().catch(()=>{}):s.complete?Promise.resolve(s):new Promise((t,e)=>{s.onload=()=>t(s),s.onerror=e})).finally(()=>{e=!0,i||t(!0)}),setTimeout(()=>{i=!1,e&&t(!0)},50),setTimeout(t,250)}).finally(()=>this.Ht()):this.Ht()}Ht(){var t;null!=(t=this.pswp.element)&&t.style.setProperty("--pswp-transition-duration",this.It+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),null!=(t=this.pswp.element)&&t.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this.Bt&&(this.Bt.style.opacity="1"),this.Kt()):this.isClosing&&this.Wt(),this.Et||this.jt()}jt(){var t=this.pswp;this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,t.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),t.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed?t.destroy():this.isOpen&&(this.$t&&t.container&&(t.container.style.overflow="visible",t.container.style.width="100%"),null!=(t=t.currSlide))&&t.applyCurrentZoomPan()}Kt(){var t=this.pswp;this.$t&&(this.Lt&&this.Ot&&this.Rt&&(this.Xt(this.Ot,"transform","translate3d(0,0,0)"),this.Xt(this.Rt,"transform","none")),t.currSlide)&&(t.currSlide.zoomAndPanToInitial(),this.Xt(t.currSlide.container,"transform",t.currSlide.getCurrentTransform())),this.Zt&&t.bg&&this.Xt(t.bg,"opacity",String(t.options.bgOpacity)),this.kt&&t.element&&this.Xt(t.element,"opacity","1")}Wt(){var t=this.pswp;this.$t&&this.qt(!0),this.Zt&&.01<t.bgOpacity&&t.bg&&this.Xt(t.bg,"opacity","0"),this.kt&&t.element&&this.Xt(t.element,"opacity","0")}qt(r){if(this.Nt){let t=this.pswp,n=this.Nt.innerRect,{currSlide:e,viewportSize:o}=t;if(this.Lt&&n&&this.Ot&&this.Rt){let t=-o.x+(this.Nt.x-n.x)+n.w,e=-o.y+(this.Nt.y-n.y)+n.h,i=o.x-n.w,s=o.y-n.h;r?(this.Xt(this.Ot,"transform",a(t,e)),this.Xt(this.Rt,"transform",a(i,s))):(h(this.Ot,t,e),h(this.Rt,i,s))}e&&(u(e.pan,n||this.Nt),e.currZoomLevel=this.Nt.w/e.width,r?this.Xt(e.container,"transform",e.getCurrentTransform()):e.applyCurrentZoomPan())}}Xt(i,s,n){if(this.It){let t=this.pswp.animations,e={duration:this.It,easing:this.pswp.options.easing,onComplete:()=>{t.activeAnimations.length||this.jt()},target:i};e[s]=n,t.startTransition(e)}else i.style[s]=n}}let tt={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};return class extends class extends class{constructor(){this.Yt={},this.Jt={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var s;this.Jt[t]||(this.Jt[t]=[]),null!=(s=this.Jt[t])&&s.push({fn:e,priority:i}),null!=(s=this.Jt[t])&&s.sort((t,e)=>t.priority-e.priority),null!=(s=this.pswp)&&s.addFilter(t,e,i)}removeFilter(t,e){this.Jt[t]&&(this.Jt[t]=this.Jt[t].filter(t=>t.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){return null!=(t=this.Jt[t])&&t.forEach(t=>{e[0]=t.fn.apply(this,e)}),e[0]}on(t,e){var i;this.Yt[t]||(this.Yt[t]=[]),null!=(i=this.Yt[t])&&i.push(e),null!=(i=this.pswp)&&i.on(t,e)}off(t,e){var i;this.Yt[t]&&(this.Yt[t]=this.Yt[t].filter(t=>e!==t)),null!=(i=this.pswp)&&i.off(t,e)}dispatch(t,e){if(this.pswp)return this.pswp.dispatch(t,e);let i=new V(t,e);return null!=(e=this.Yt[t])&&e.forEach(t=>{t.call(this,i)}),i}}{getNumItems(){let t,e=0;var i=null==(t=this.options)?void 0:t.dataSource,s=(i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this.Qt(i.gallery)),i.items)&&(e=i.items.length),this.dispatch("numItems",{dataSource:i,numItems:e}));return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,e){return new X(t,this,e)}getItemData(t){var e=null==(e=this.options)?void 0:e.dataSource;let i={},s=(Array.isArray(e)?i=e[t]:e&&"gallery"in e&&(e.items||(e.items=this.Qt(e.gallery)),i=e.items[t]),i);s instanceof Element&&(s=this.ti(s));e=this.dispatch("itemData",{itemData:s||{},index:t});return this.applyFilters("itemData",e.itemData,t)}Qt(t){var e;return null!=(e=this.options)&&e.children||null!=(e=this.options)&&e.childSelector?((t,e,i=document)=>{let s=[];return t instanceof Element?s=[t]:t instanceof NodeList||Array.isArray(t)?s=Array.from(t):(t="string"==typeof t?t:e)&&(s=Array.from(i.querySelectorAll(t))),s})(this.options.children,this.options.childSelector,t)||[]:[t]}ti(t){var e,i={element:t},s="A"===t.tagName?t:t.querySelector("a");return s&&(i.src=s.dataset.pswpSrc||s.href,s.dataset.pswpSrcset&&(i.srcset=s.dataset.pswpSrcset),i.width=s.dataset.pswpWidth?parseInt(s.dataset.pswpWidth,10):0,i.height=s.dataset.pswpHeight?parseInt(s.dataset.pswpHeight,10):0,i.w=i.width,i.h=i.height,s.dataset.pswpType&&(i.type=s.dataset.pswpType),(e=t.querySelector("img"))&&(i.msrc=e.currentSrc||e.src,i.alt=null!=(e=e.getAttribute("alt"))?e:""),s.dataset.pswpCropped||s.dataset.cropped)&&(i.thumbCropped=!0),this.applyFilters("domItemData",i,t,s)}lazyLoadData(t,e){return M(t,this,e)}}{constructor(t){super(),this.options=this.ii(t||{}),this.offset={x:0,y:0},this.si={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this.hi={},this.Gt=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new o,this.animations=new B,this.mainScroll=new C(this),this.gestures=new L(this),this.opener=new J(this),this.keyboard=new O(this),this.contentLoader=new K(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this.ei();let t="pswp--open";return this.gestures.supportsTouch&&(t+=" pswp--touch"),this.options.mainClass&&(t+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+t),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new N(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this.hi=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this.hi,slide:void 0}),this.Gt=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{var t=this.mainScroll.itemHolders;t[0]&&(t[0].el.style.display="block",this.setContent(t[0],this.currIndex-1)),t[2]&&(t[2].el.style.display="block",this.setContent(t[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this.ni.bind(this)),this.events.add(window,"scroll",this.oi.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(t){var e=this.getNumItems();return this.options.loop&&(e-1<t&&(t-=e),t<0)&&(t+=e),m(t,0,e-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(t=>{null!=(t=t.slide)&&t.appendHeavy()})}goTo(t){this.mainScroll.moveIndexBy(this.getLoopedIndex(t)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...t){var e;null!=(e=this.currSlide)&&e.zoomTo(...t)}toggleZoom(){var t;null!=(t=this.currSlide)&&t.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var t;this.isDestroying?(this.dispatch("destroy"),this.Yt={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),null!=(t=this.element)&&t.remove(),this.mainScroll.itemHolders.forEach(t=>{null!=(t=t.slide)&&t.destroy()}),this.contentLoader.destroy(),this.events.removeAll()):(this.options.showHideAnimationType="none",this.close())}refreshSlideContent(r){this.contentLoader.removeByIndex(r),this.mainScroll.itemHolders.forEach((t,e)=>{let i,s,n=(null!=(i=null==(s=this.currSlide)?void 0:s.index)?i:0)-1+e,o;(n=this.canLoop()?this.getLoopedIndex(n):n)===r&&(this.setContent(t,r,!0),1===e)&&(this.currSlide=t.slide,null!=(o=t.slide)&&o.setIsActive(!0))}),this.dispatch("change")}setContent(t,e,i){if(this.canLoop()&&(e=this.getLoopedIndex(e)),t.slide){if(t.slide.index===e&&!i)return;t.slide.destroy(),t.slide=void 0}!this.canLoop()&&(e<0||e>=this.getNumItems())||(i=this.getItemData(e),t.slide=new x(i,e,this),e===this.currIndex&&(this.currSlide=t.slide),t.slide.append(t.el))}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(t){var e;this.isDestroying||(e=g(this.options,this),!t&&c(e,this.si))||(u(this.si,e),this.dispatch("beforeResize"),u(this.viewportSize,this.si),this.oi(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(t){this.bgOpacity=Math.max(t,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){var t;this.hasMouse||(this.hasMouse=!0,null==(t=this.element))||t.classList.add("pswp--has_mouse")}ni(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}oi(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(t,e){this.offset.x=t,this.offset.y=e,this.dispatch("updateScrollOffset")}ei(){this.element=l("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=l("pswp__bg","div",this.element),this.scrollWrap=l("pswp__scroll-wrap","section",this.element),this.container=l("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new $(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){{var i=this.currIndex,s=this.currSlide?this.currSlide.data:this.hi,n=this;if((l=n.dispatch("thumbBounds",{index:i,itemData:s,instance:n})).thumbBounds)return l.thumbBounds;var o,r,a,h,l=s.element;let t,e;if(l&&!1!==n.options.thumbSelector){let t=n.options.thumbSelector||"img";e=l.matches(t)?l:l.querySelector(t)}return(e=n.applyFilters("thumbEl",e,s,i))&&(t=s.thumbCropped?(l=e,o=s.width||s.w||0,r=s.height||s.h||0,l=l.getBoundingClientRect(),a=l.width/o,h=(l.width-o*(a=(h=l.height/r)<a?a:h))/2,r=(l.height-r*a)/2,(o={x:l.left+h,y:l.top+r,w:o*a}).innerRect={w:l.width,h:l.height,x:h,y:r},o):{x:(a=e.getBoundingClientRect()).left,y:a.top,w:a.width}),n.applyFilters("thumbBounds",t,s,i)}}canLoop(){return this.options.loop&&2<this.getNumItems()}ii(t){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(t.showHideAnimationType="none",t.zoomAnimationDuration=0),{...tt,...t}}}}),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).PhotoSwipeLightbox=e()})(this,function(){function s(t,e,i){e=document.createElement(e);return t&&(e.className=t),i&&i.appendChild(e),e}function n(t,e,i){t.style.width="number"==typeof e?e+"px":e,t.style.height="number"==typeof i?i+"px":i}let i="loading",t="loaded",e="error";function o(t,e,i=document){let s=[];return t instanceof Element?s=[t]:t instanceof NodeList||Array.isArray(t)?s=Array.from(t):(t="string"==typeof t?t:e)&&(s=Array.from(i.querySelectorAll(t))),s}function r(){return navigator.vendor&&navigator.vendor.match(/apple/i)}class a{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class h{constructor(e,t){if(this.element=s("pswp__img pswp__img--placeholder",e?"img":"div",t),e){let t=this.element;t.decoding="async",t.alt="",t.src=e,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?(n(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=(t=>{let e="translate3d(0px,0px,0)";return e+=` scale3d(${t},${t},1)`})(t/250)):n(this.element,t,e))}destroy(){var t;null!=(t=this.element)&&t.parentNode&&this.element.remove(),this.element=null}}class l{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state="idle",this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){let t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{let t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new h(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=s("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=s("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e;this.isImageContent()&&this.element&&!this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented&&(t=this.element,this.updateSrcsetSizes(),this.data.srcset&&(t.srcset=this.data.srcset),t.src=null!=(e=this.data.src)?e:"",t.alt=null!=(e=this.data.alt)?e:"",this.state=i,t.complete?this.onLoaded():(t.onload=()=>{this.onLoaded()},t.onerror=()=>{this.onError()}))}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=t,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==t&&this.state!==e||this.removePlaceholder())}onError(){this.state=e,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===i,this)}isError(){return this.state===e}isImageContent(){return"image"===this.type}setDisplayedSize(e,i){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,i),!this.instance.dispatch("contentResize",{content:this,width:e,height:i}).defaultPrevented)&&(n(this.element,e,i),this.isImageContent())&&!this.isError()){let t=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=i,t?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:i,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==e,this)}updateSrcsetSizes(){var t,e;this.isImageContent()&&this.element&&this.data.srcset&&(t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this),!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){let t,e,i=s("pswp__error-msg","div");i.innerText=null!=(t=null==(e=this.instance.options)?void 0:e.errorMsg)?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=s("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){var t;!this.isAttached&&this.element&&(this.isAttached=!0,this.state===e?this.displayError():this.instance.dispatch("contentAppend",{content:this}).defaultPrevented||(t="decode"in this.element,this.isImageContent()?t&&this.slide&&(!this.slide.isActive||r())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)))}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!r()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement)&&this.slide.holderElement.setAttribute("aria-hidden","false")}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){!this.isAttached||this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==t&&this.state!==e)||this.removePlaceholder()}}function d(e,i,t,s,n){let o=0;if(i.paddingFn)o=i.paddingFn(t,s,n)[e];else if(i.padding)o=i.padding[e];else{let t="padding"+e[0].toUpperCase()+e.slice(1);i[t]&&(o=i[t])}return Number(o)||0}class p{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){t={x:t,y:e},this.elementSize=t,e=(this.panAreaSize=i).x/t.x,i=i.y/t.y;this.fit=Math.min(1,e<i?e:i),this.fill=Math.min(1,i<e?e:i),this.vFill=Math.min(1,i),this.initial=this.t(),this.secondary=this.i(),this.max=Math.max(this.initial,this.secondary,this.o()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}l(t){t=this.options[t+"ZoomLevel"];if(t)return"function"==typeof t?t(this):"fill"===t?this.fill:"fit"===t?this.fit:Number(t)}i(){let t=this.l("secondary");return t||(t=Math.min(1,3*this.fit),t=this.elementSize&&4e3<t*this.elementSize.x?4e3/this.elementSize.x:t)}t(){return this.l("initial")||this.fit}o(){return this.l("max")||Math.max(1,4*this.fit)}}function u(t,e,i){var s=e.createContentFromData(t,i);let n;var o,r=e.options;return r&&(n=new p(r,t,-1),o=e.pswp?e.pswp.viewportSize:(t=>{if(t.getViewportSizeFn){t=t.getViewportSizeFn(t,e);if(t)return t}return{x:document.documentElement.clientWidth,y:window.innerHeight}})(r),r=r,t=t,i=i,r={x:(o=o).x-d("left",r,o,t,i)-d("right",r,o,t,i),y:o.y-d("top",r,o,t,i)-d("bottom",r,o,t,i)},n.update(s.width,s.height,r)),s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}return class extends class extends class{constructor(){this.u={},this.p={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var s;this.p[t]||(this.p[t]=[]),null!=(s=this.p[t])&&s.push({fn:e,priority:i}),null!=(s=this.p[t])&&s.sort((t,e)=>t.priority-e.priority),null!=(s=this.pswp)&&s.addFilter(t,e,i)}removeFilter(t,e){this.p[t]&&(this.p[t]=this.p[t].filter(t=>t.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){return null!=(t=this.p[t])&&t.forEach(t=>{e[0]=t.fn.apply(this,e)}),e[0]}on(t,e){var i;this.u[t]||(this.u[t]=[]),null!=(i=this.u[t])&&i.push(e),null!=(i=this.pswp)&&i.on(t,e)}off(t,e){var i;this.u[t]&&(this.u[t]=this.u[t].filter(t=>e!==t)),null!=(i=this.pswp)&&i.off(t,e)}dispatch(t,e){if(this.pswp)return this.pswp.dispatch(t,e);let i=new a(t,e);return null!=(e=this.u[t])&&e.forEach(t=>{t.call(this,i)}),i}}{getNumItems(){let t,e=0;var i=null==(t=this.options)?void 0:t.dataSource,s=(i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this.v(i.gallery)),i.items)&&(e=i.items.length),this.dispatch("numItems",{dataSource:i,numItems:e}));return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,e){return new l(t,this,e)}getItemData(t){var e=null==(e=this.options)?void 0:e.dataSource;let i={},s=(Array.isArray(e)?i=e[t]:e&&"gallery"in e&&(e.items||(e.items=this.v(e.gallery)),i=e.items[t]),i);s instanceof Element&&(s=this.m(s));e=this.dispatch("itemData",{itemData:s||{},index:t});return this.applyFilters("itemData",e.itemData,t)}v(t){var e;return null!=(e=this.options)&&e.children||null!=(e=this.options)&&e.childSelector?o(this.options.children,this.options.childSelector,t)||[]:[t]}m(t){var e,i={element:t},s="A"===t.tagName?t:t.querySelector("a");return s&&(i.src=s.dataset.pswpSrc||s.href,s.dataset.pswpSrcset&&(i.srcset=s.dataset.pswpSrcset),i.width=s.dataset.pswpWidth?parseInt(s.dataset.pswpWidth,10):0,i.height=s.dataset.pswpHeight?parseInt(s.dataset.pswpHeight,10):0,i.w=i.width,i.h=i.height,s.dataset.pswpType&&(i.type=s.dataset.pswpType),(e=t.querySelector("img"))&&(i.msrc=e.currentSrc||e.src,i.alt=null!=(e=e.getAttribute("alt"))?e:""),s.dataset.pswpCropped||s.dataset.cropped)&&(i.thumbCropped=!0),this.applyFilters("domItemData",i,t,s)}lazyLoadData(t,e){return u(t,this,e)}}{constructor(t){super(),this.options=t||{},this.g=0,this.shouldOpen=!1,this._=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){o(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if(!("button"in(i=e)&&1===i.button||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey||window.pswp)){let t={x:e.clientX,y:e.clientY};t.x||t.y||(t=null);var i=this.getClickedIndex(e),i=this.applyFilters("clickedIndex",i,e,this),s={gallery:e.currentTarget};0<=i&&(e.preventDefault(),this.loadAndOpen(i,s,t))}}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);let e=t.target,i=o(this.options.children,this.options.childSelector,t.currentTarget).findIndex(t=>t===e||t.contains(e));return-1!==i?i:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){let t=o(this.options.gallery);t[0]&&(e={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){var i,s=this.options,e=(e&&(s.dataSource=e),[]),n=typeof s.pswpModule;if("function"==typeof(i=s.pswpModule)&&i.prototype&&i.prototype.goTo)e.push(Promise.resolve(s.pswpModule));else{if("string"==n)throw new Error("pswpModule as string is no longer supported");if("function"!=n)throw new Error("pswpModule is not valid");e.push(s.pswpModule())}"function"==typeof s.openPromise&&e.push(s.openPromise()),!1!==s.preloadFirstSlide&&0<=t&&(this._=((t,e)=>{var i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return u(i,e,t)})(t,this));let o=++this.g;Promise.all(e).then(t=>{this.shouldOpen&&(t=t[0],this.I(t,o))})}I(t,e){if(!(e!==this.g&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))){let i=new("object"==typeof t?t.default:t)(this.options);this.pswp=i,window.pswp=i,Object.keys(this.u).forEach(e=>{var t;null!=(t=this.u[e])&&t.forEach(t=>{i.on(e,t)})}),Object.keys(this.p).forEach(e=>{var t;null!=(t=this.p[e])&&t.forEach(t=>{i.addFilter(e,t.fn,t.priority)})}),this._&&(i.contentLoader.addToCache(this._),this._=void 0),i.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),i.init()}}destroy(){var t;null!=(t=this.pswp)&&t.destroy(),this.shouldOpen=!1,this.u={},o(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)})}}});
(()=>{var a={40:(t,e,a)=>{function o(){function a(t){var e=document.getElementsByClassName("grid")[0],a=parseInt(window.getComputedStyle(e).getPropertyValue("grid-row-gap")),e=parseInt(window.getComputedStyle(e).getPropertyValue("grid-auto-rows")),e=Math.ceil((t.querySelector(".post-card ").getBoundingClientRect().height+a)/(e+a));t.style.gridRowEnd="span "+e}function e(){for(var t=document.getElementsByClassName("grid-item"),e=0;e<t.length;e++)a(t[e])}["load","resize"].forEach(function(t){window.addEventListener(t,e)});for(var t=document.getElementsByClassName("grid-item"),o=0;o<t.length;o++)imagesLoaded(t[o],function(t){a(t.elements[0])})}a.d(e,{C:()=>o}),0<document.getElementsByClassName("grid").length&&o()},180:(t,e,a)=>{document.querySelector('.grid[data-grid="masonry"]')&&function(t,e,a){var i=0<arguments.length&&void 0!==t?t:"wp-block-image",r=1<arguments.length&&void 0!==e?e:"wp-block-minimalio-blocks-minimalio-gallery masonry",o=2<arguments.length&&void 0!==a?a:"column-gap";function s(t,e){var e=parseInt(window.getComputedStyle(e).getPropertyValue(o)),a=t.getBoundingClientRect().height,a=Math.ceil(+a)+e;t.style.gridRowEnd="span "+a}function n(){for(var t=document.querySelectorAll("."+r.split(" ").join(".")),e=0;e<t.length;e++)for(var a=t[e],o=a.getElementsByClassName(i),n=0;n<o.length;n++)s(o[n],a)}["load","resize"].forEach(function(t){window.addEventListener(t,n)});for(var l=document.querySelectorAll("."+r.split(" ").join(".")),c=0;c<l.length;c++)for(var d=l[c],u=d.getElementsByClassName(i),p=0;p<u.length;p++)(e=>{imagesLoaded(u[p],function(t){s(t.elements[0],e)})})(d)}()},375:()=>{var t;function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,o=Array(e);a<e;a++)o[a]=t[a];return o}jQuery(document).ready(function(a){a("[data-link]").on("click",function(t){t.preventDefault();t=a(this).data("link");a("div"+t).toggleClass("is-active"),a(this).toggleClass("is-active"),a(this).attr("aria-expanded",function(t,e){return"true"==e?"false":"true"})}),a(window).on("scroll",function(){1<a(this).scrollTop()?a(".header").addClass("active"):a(".header").removeClass("active")}),a("#wrapper-header").hasClass("header__fixed")&&!a("#page").hasClass("vertical")&&a("#wrapper-header").css("position","fixed");var o,n,t=a("#wrapper-header").outerHeight(),t=(!a("#wrapper-header").hasClass("header__fixed")||a("#wrapper-header").hasClass("transparent")||a("#page").hasClass("vertical")||a("#page-content").css("margin-top",t),a(".mobile-menu__link").click(function(t){var e=a(this).attr("href");e&&"#"!==e&&""!==e?(a("#mobilemenu").toggleClass("is-active"),a(".header__mobile-button").toggleClass("is-active")):(t.preventDefault(),t.stopPropagation(),a(this).closest(".menu-item-has-children").toggleClass("mobile-menu__item--active"))}),a(".mobile-menu__logo-wrap").css("min-height",t),n=document.querySelector('button[data-link="#mobilemenu"]'),t=document.querySelector("ul.mobile-menu__menu"),n&&t&&(o=t.querySelectorAll('a, button, input, [tabindex="0"]')).forEach(function(t,e){t.addEventListener("keydown",function(t){"Tab"!==t.key||t.shiftKey||e===o.length-1&&(t.preventDefault(),n.focus())})}),a("#wrapper-footer").innerHeight()),e=a("#wrapper-header").innerHeight(),e=window.innerHeight-e-t;function i(){var e=window.innerWidth-document.body.clientWidth,a=document.body.clientWidth/2;document.querySelectorAll(".entry-content > .alignfull").forEach(function(t){t.style.width="calc(100vw - ".concat(e,"px)"),t.style.marginLeft="calc(".concat(-a,"px + 50%)")})}a("#page-content").css("min-height",e),a(".menu-main-container ul li").mouseover(function(){a(this).find(".dropdown-menu").addClass("dropdown-menu--active")}),a(".menu-main-container ul li").mouseleave(function(){a(this).find(".dropdown-menu").removeClass("dropdown-menu--active")}),a("button#to-top").click(function(){return a("html, body").animate({scrollTop:0},"slow"),!1}),a(".mobile-menu__menu .menu-item-has-children").click(function(){a(this).toggleClass("mobile-menu__item--active")}),a(".mobile-menu__menu .menu-item-has-children .mobile-menu__link").on("focus",function(){a(this).parent().addClass("mobile-menu__item--active")}),document.getElementById("left-sidebar")||document.getElementById("right-sidebar")||(i(),a(window).on("resize",function(){i()}))});var s,n,l,o,c,i,d={default:{arrow:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',close:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>'},style_1:{arrow:'<svg class="custom-icon" viewBox="0 0 240.823 240.823"><path d="M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816C52.942,116.507,52.942,124.327,57.633,129.007z" id="pswp__icn-arrow"/></svg>',close:'<svg class="custom-icon" viewBox="0 0 32 32"><g stroke-width="2.5"><path d="m6.101 6.1 19.798 19.798"/><path d="m25.899 6.1-19.798 19.798"/></g></svg>'},style_2:{arrow:'<svg class="custom-icon" viewBox="0 0 512 512"><path d="M256,0C114.837,0,0,114.837,0,256s114.837,256,256,256s256-114.837,256-256S397.163,0,256,0z M313.749,347.584c8.341,8.341,8.341,21.824,0,30.165c-4.16,4.16-9.621,6.251-15.083,6.251c-5.461,0-10.923-2.091-15.083-6.251L176.917,271.083c-8.341-8.341-8.341-21.824,0-30.165l106.667-106.667c8.341-8.341,21.824-8.341,30.165,0s8.341,21.824,0,30.165L222.165,256L313.749,347.584z" id="pswp__icn-arrow"/></svg>',close:'<svg class="custom-icon" viewBox="0 0 24 24"><path d="m12 1a11 11 0 1 0 11 11 11.013 11.013 0 0 0 -11-11zm4.242 13.829a1 1 0 1 1 -1.414 1.414l-2.828-2.829-2.828 2.829a1 1 0 0 1 -1.414-1.414l2.828-2.829-2.828-2.829a1 1 0 1 1 1.414-1.414l2.828 2.829 2.828-2.829a1 1 0 1 1 1.414 1.414l-2.828 2.829z" id="pswp__icn-close"/></svg>'}};function e(){c.dataSource=[],l(".pswp__wrap").find("figure.post-card").each(function(){var t,e,a,o=l(this)[0].classList.contains("photoswipe-html"),n=l(this)[0].classList.contains("photoswipe-vimeo"),i=l("#content").attr("class"),r=l(this).find("a");!0===o?(o=l(this).find(".hidden_content"),t={html:'<div class="photoswipe-html '+i+'" style="height:100vh; height:100svh; overflow:hidden;display: flex; align-items:center;"><div class="photoswipe-html-inner" style="width:100%;"><div class="photoswipe-html-content"><p> '+(0<o.length?o[0].innerHTML:"")+" </div></p> </div></div>"},c.dataSource.push(t)):!0===n?(n=0<(o=l(this).find(".hidden_vimeo")).length?o[0].innerText.trim():"",t=""!==n?{html:'<div class="photoswipe-vimeo '+i+'" style="display: flex; justify-content: center; align-items: center; width: 1500px; max-width: 100%; height: 100vh; margin: 0 auto;"><div style="padding:56.25% 0 0 0;position:relative;width: 100%;"><iframe src="https://player.vimeo.com/video/'+n+'?badge=0&amp;autopause=0&amp;quality_selector=1&amp;player_id=0&amp;app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" style="position:absolute;top:0;left:0;width:100%;height:100%;" title=""></iframe></div><script src="https://player.vimeo.com/api/player.js"><\/script></div>'}:{html:'<div class="photoswipe-vimeo" style="display: flex; justify-content: center; align-items: center;"><p style="position: absolute; top: 0; top: 50%; margin-top: -50px;">Video is coming soon.</p></div>'},c.dataSource.push(t)):(e=l(this).find("figcaption").text().trim(),o=r.data("width"),i=r.data("height"),a=r.attr("href"),0<(n=l(this).find("img")).length&&((r=n.attr("data-src")||n.attr("data-lazy-src")||n.attr("data-original")||n.attr("data-srcset")||n.attr("data-lazy"))&&(-1<a.indexOf("placeholder")||-1<a.indexOf("data:image")||a===r)&&(a=r),o&&i||(o=o||n.attr("data-width")||n.data("width"),i=i||n.attr("data-height")||n.data("height"))),o&&i?(t={src:a,w:o,h:i,caption:e||""},c.dataSource.push(t)):((r=new Image).onload=function(){t={src:a,w:this.naturalWidth,h:this.naturalHeight,caption:e||""},c.dataSource.push(t)},r.onerror=function(){t={src:a,w:1200,h:800,caption:e||""},c.dataSource.push(t)},r.src=a))}),"undefined"!=typeof lbwpsInit&&lbwpsInit(),o=new PhotoSwipe(c),i&&o.on("uiRegister",function(){o.ui.registerElement({name:"custom-caption",order:9,isButton:!1,appendTo:"root",onInit:function(e,a){a.on("change",function(){var t;a.currSlide&&a.currSlide.data&&(t=a.currSlide.data,e.innerHTML=t.caption||"")})}})});var e,t="undefined"!=typeof minimalioLightboxSettings&&minimalioLightboxSettings.iconStyle?minimalioLightboxSettings.iconStyle:"default";"default"!==t&&(e=d[t],o.on("openingAnimationEnd",function(){var t=document.querySelector(".pswp__button--arrow--prev .pswp__icn"),t=(t&&(t.outerHTML=e.arrow),document.querySelector(".pswp__button--arrow--next .pswp__icn")),t=(t&&(t.outerHTML=e.arrow,t=document.querySelector(".pswp__button--arrow--next svg"))&&(t.style.transform="scaleX(-1)"),document.querySelector(".pswp__button--close .pswp__icn"));t&&(t.outerHTML=e.close)})),o.init()}l=jQuery,c={dataSource:[],showHideAnimationType:"none",bgOpacity:1,showHideOpacity:!0,closeOnScroll:!1,index:0},i="undefined"!=typeof minimalioLightboxSettings&&"yes"===minimalioLightboxSettings.showCaptions,c.paddingFn=function(t,e,a){e=i&&e.caption;return{top:t.x<768?50:20,bottom:e?t.x<768?120:80:t.x<768?60:20,left:t.x<768?0:70,right:t.x<768?0:70}},l(".photoswipe-image").click(function(t){t.preventDefault(),c.index=l(this).parent("figure").parent("div").parent("div").index(),e()}),l(document).ajaxStop(function(){l(".photoswipe-image").click(function(t){t.preventDefault(),c.index=l(this).parent("figure").parent("div").parent("div").index(),e()})}),s=jQuery,n="undefined"!=typeof minimalioLightboxSettings&&"yes"===minimalioLightboxSettings.showCaptions,s(".wp-block-gallery").each(function(){var r,t=s(this),o=(r={dataSource:[],showHideAnimationType:"none",bgOpacity:1,showHideOpacity:!0,closeOnScroll:!1,initialZoomLevel:"fit",secondaryZoomLevel:"fit",maxZoomLevel:"fit",zoom:!1,paddingFn:function(t,e,a){e=n&&e.caption;return{top:t.x<768?50:20,bottom:e?t.x<768?120:80:t.x<768?60:20,left:t.x<768?0:70,right:t.x<768?0:70}},index:0},t.find(".wp-block-image").each(function(){var t=s(this).find("img"),e=t.attr("src"),a=t.attr("width"),o=t.attr("height"),n=t.attr("data-src")||t.attr("data-lazy-src")||t.attr("data-original")||t.attr("data-srcset")||t.attr("data-lazy"),i=(n&&(-1<e.indexOf("placeholder")||-1<e.indexOf("data:image"))&&(e=n),a&&o||(a=a||t.attr("data-width")||t.data("width"),o=o||t.attr("data-height")||t.data("height")),s(this).find("figcaption").text().trim());a&&o?(n={src:e,w:a,h:o,caption:i||""},r.dataSource.push(n)):((t=new Image).onload=function(){var t={src:e,w:this.naturalWidth,h:this.naturalHeight,caption:i||""};r.dataSource.push(t)},t.onerror=function(){var t={src:e,w:1200,h:800,caption:i||""};r.dataSource.push(t)},t.src=e)}),r);t.on("click","figure",function(t){t.preventDefault(),o.index=s(this).index();var e,a=new PhotoSwipe(o),t=(n&&a.on("uiRegister",function(){a.ui.registerElement({name:"custom-caption",order:9,isButton:!1,appendTo:"root",onInit:function(e,a){a.on("change",function(){var t;a.currSlide&&a.currSlide.data&&(t=a.currSlide.data,e.innerHTML=t.caption||"")})}})}),"undefined"!=typeof minimalioLightboxSettings&&minimalioLightboxSettings.iconStyle?minimalioLightboxSettings.iconStyle:"default");"default"!==t&&(e=d[t],a.on("openingAnimationEnd",function(){var t=document.querySelector(".pswp__button--arrow--prev .pswp__icn"),t=(t&&(t.outerHTML=e.arrow),document.querySelector(".pswp__button--arrow--next .pswp__icn")),t=(t&&(t.outerHTML=e.arrow,t=document.querySelector(".pswp__button--arrow--next svg"))&&(t.style.transform="scaleX(-1)"),document.querySelector(".pswp__button--close .pswp__icn"));t&&(t.outerHTML=e.close)})),a.init()})}),window.onload=function(){var t;0==document.location.hash.substring(1).length&&(t=decodeURIComponent((new RegExp("[?|&]category=([^&;]+?)(&|#|;|$)").exec(location.search)||[null,""])[1].replace(/\+/g,"%20"))||null)&&(t=t.replace(/\\|\//g,""),jQuery(".posts-ajax__categories-wrapper").find('[data-label="'+t+'"]').trigger("click"))},window.onload=function(){var t;window.matchMedia("(hover: hover) and (pointer: fine)").matches?((t=>{if(Array.isArray(t))return a(t)})(t=document.querySelectorAll(".post-card"))||(()=>{if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)})()||(t=>{var e;if(t)return"string"==typeof t?a(t,void 0):"Map"===(e="Object"===(e={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(t,void 0):void 0})(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()).forEach(function(t){var e=t.getElementsByClassName("portfolio-hover-video");null!=e[0]&&(t.addEventListener("mouseenter",function(){e[0].play()}),t.addEventListener("mouseleave",function(){e[0].pause(),e[0].currentTime=0}))}):document.querySelectorAll(".portfolio-hover-video").forEach(function(t){t.remove()})},null!=(t=document.querySelectorAll('[role="button"]'))&&t.forEach(function(t){t.addEventListener("keydown",function(t){var e=void 0!==t.key?t.key:t.keyCode;("Enter"===e||13===e||0<=["Spacebar"," "].indexOf(e)||32===e)&&(t.preventDefault(),this.click())})}),null!=(t=document.querySelectorAll('[role="button"]'))&&t.forEach(function(t){t.addEventListener("keydown",function(t){var e=void 0!==t.key?t.key:t.keyCode;("Enter"===e||13===e||0<=["Spacebar"," "].indexOf(e)||32===e)&&(t.preventDefault(),this.click())})})},607:(t,e,a)=>{var d=a(40);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,o=Array(e);a<e;a++)o[a]=t[a];return o}jQuery(document).ready(function(o){var e,n=o(".posts-ajax__posts").data("card"),i=(o(".posts__posts-infinite").data("ajax"),o(".posts-ajax__posts").data("grid")),r=o(".posts-ajax__posts").data("author"),s=o(".posts-ajax__posts").data("columns"),l=o(".posts-ajax__posts").data("posts_number"),c=o(".my-posts").data("type");o("input[type=radio][name=category]").change(function(){e=o(this).val();var a=o(this).parent().data("number"),t=(o("[data-filter]").find(o("[data-label]")).not('[data-label="'+e+'"]').removeClass("checked"),o(this).toggleClass("checked"),o("[data-filter]").parent().find(o('[data-label="'+e+'"]')).addClass("checked"),{action:"filter",card:n,grid:i,author:r,nr_columns:s,nr_posts:l,category:e,load:0,post_type:c});o.ajax({url:wpAjaxLoad.ajax_loadUrl,data:t,type:"POST",success:function(t){var e;o(".my-posts").html(t).hide().fadeIn(),setTimeout(function(){(a<=l||-1===l)&&o("#load-more-ajax").remove(),(0,d.C)()},200),window.matchMedia("(hover: hover) and (pointer: fine)").matches?((t=>{if(Array.isArray(t))return u(t)})(e=document.querySelectorAll(".post-card"))||(()=>{if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)})()||(t=>{var e;if(t)return"string"==typeof t?u(t,void 0):"Map"===(e="Object"===(e={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,void 0):void 0})(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()).forEach(function(t){var e=t.getElementsByClassName("portfolio-hover-video");null!=e[0]&&(t.addEventListener("mouseenter",function(){e[0].play()}),t.addEventListener("mouseleave",function(){e[0].pause(),e[0].currentTime=0}))}):document.querySelectorAll(".portfolio-hover-video").forEach(function(t){t.remove()})}})})})},748:(t,e,a)=>{var v=a(40);function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,o=Array(e);a<e;a++)o[a]=t[a];return o}jQuery(document).ready(function(r){var s=r(".posts-ajax__posts").data("card"),t=r(".posts__posts-infinite").data("ajax"),l=r(".posts-ajax__posts").data("grid"),c=r(".posts-ajax__posts").data("author"),d=r(".posts-ajax__posts").data("columns"),u=r(".posts-ajax__posts").data("posts_number");function p(){var t;window.matchMedia("(hover: hover) and (pointer: fine)").matches?((t=>{if(Array.isArray(t))return y(t)})(t=document.querySelectorAll(".post-card"))||(()=>{if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)})()||(t=>{var e;if(t)return"string"==typeof t?y(t,void 0):"Map"===(e="Object"===(e={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?y(t,void 0):void 0})(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()).forEach(function(t){var e=t.getElementsByClassName("portfolio-hover-video");null!=e[0]&&(t.addEventListener("mouseenter",function(){e[0].play()}),t.addEventListener("mouseleave",function(){e[0].pause(),e[0].currentTime=0}))}):document.querySelectorAll(".portfolio-hover-video").forEach(function(t){t.remove()})}r(".my-posts").on("click","#load-more-ajax",function(t){t.preventDefault();var e=r(this).parent().parent(),a=e.find(".post-card"),e=e.data("type"),o="",n=(r(a).each(function(t){t=t<a.length-1?", ":"";o+=r(this).data("card-id")+t}),r(".posts-ajax__tab.checked").data("label")),i=r(".posts-ajax__tab.checked").data("number"),n=(void 0===n&&(n="all",i=r(".posts-ajax__posts").data("number")),{action:"load",card:s,grid:l,author:c,nr_columns:d,nr_posts:u,category:n,exclude:o,post_type:e});r.ajax({url:wpAjaxLoad.ajax_loadUrl,data:n,type:"POST",success:function(t){r(".posts__row").append(t).hide().fadeIn(),a.length+u>=i&&r("#load-more-ajax").remove(),(0,v.C)(),p()}}),t.stopPropagation()});var i=r(window),e=r(document),a=r(".lds-dual-ring"),h=r(".posts-ajax__posts").scrollTop(),o=r(".posts-ajax").nextAll(),n=r(".site-content").nextAll(),m=(0<o.length?o.height():0)+(0<n.length?n.height():0);function f(){i.unbind("scroll",g),t&&(r(document).ajaxStart(function(){a.show()}).ajaxStop(function(){a.hide()}),setTimeout(function(){var e,a,t,o,n;r(this).scrollTop()>h&&(t=r(".posts__row").parent(),n=r(".posts-ajax__tab.checked").data("label"),e=r(".posts-ajax__tab.checked").data("number"),void 0===n&&(n="all",e=r(".posts-ajax__posts").data("number")),t)&&(a=t.find(".post-card"),t=t.data("type"),o="",r(a).each(function(t){t=t<a.length-1?", ":"";o+=r(this).data("card-id")+t}),a.length+1<=e)&&(n={action:"load",card:s,grid:l,author:c,nr_columns:d,nr_posts:u,category:n,exclude:o,post_type:t},r.ajax({url:wpAjaxLoad.ajax_loadUrl,data:n,type:"POST",success:function(t){r(".posts__row").append(t),a.length+u>=e&&r("#load-more-ajax").remove(),(0,v.C)(),p()}})),i.scroll(g)},500))}function g(){(i.scrollTop()+i.height()>e.height()-m)-100&&(f(),h=r(this).scrollTop())}f(),r(document).ajaxStop(function(){var a=[];r(".posts__row").find("figure").each(function(){var t=r(this).find("a"),t={src:t.attr("href"),w:t.data("width"),h:t.data("height"),title:t.data("caption")};a.push(t)}),r(".photoswipe-image").click(function(t){t.preventDefault();var t=r(".pswp")[0],e={index:r(this).parent("figure").parent("div").index(),bgOpacity:.85,showHideOpacity:!0};new PhotoSwipe(t,PhotoSwipeUI_Default,a,e).init()})})})}},o={};function n(t){var e=o[t];return void 0!==e||(e=o[t]={exports:{}},a[t](e,e.exports,n)),e.exports}n.d=(t,e)=>{for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n(375),n(40),n(180),n(748),n(607)})();
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){document.querySelectorAll("wc-order-attribution-inputs").forEach((t,e)=>{e>0&&t.remove()});for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}function r(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function c(){return"undefined"!=typeof sbjs}function d(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),r(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&c()?n:i,o=c()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!c())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();a(i),r(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);