import{c as e,g as t,n,$ as i,A as s,a as o,f as r,M as a,Y as l,h as c,d,V as u,p,e as f,B as h,m,F as v,L as g,D as _}from"./YoutubePlayer-Ddr2TDtk.js";let y=document.createElement("script");
/*!
 * Vue-Lazyload.js v1.3.5
 * (c) 2023 Awe <hilongjw@gmail.com>
 * Released under the MIT License.
 */
function b(e,t){return e(t={exports:{}},t.exports),t.exports}y.src="https://open.spotify.com/embed/iframe-api/v1",y.async=!0,y.onload=()=>{console.log("[Sapphire CMS] Spotify script loaded"),window.onSpotifyIframeApiReady=e=>{console.log("[Sapphire CMS] Spotify API Ready"),console.log("[Sapphire CMS] Spotify players found",document.querySelectorAll(".spotify-content").length),document.querySelectorAll(".spotify-content").forEach(((t,n)=>{console.log("[Sapphire CMS] Setup Spotify player #"+n);let i=t.querySelector(".episode"),s=t.querySelector(".embed-iframe");t.querySelector(".button-content").classList.remove("d-none"),t.querySelector(".loading-spinner").classList.add("d-none");const o={uri:"",width:"100%",height:"232",frameborder:"0",allowtransparency:"true",allow:"encrypted-media",loading:"lazy",display:"none"};e.createController(s,o,(e=>{t.querySelector(".button-content").addEventListener("click",(async()=>{t.querySelector(".button-content").classList.add("d-none"),t.querySelector(".loading-spinner").classList.remove("d-none");let n=`${window.location.protocol}//${window.location.hostname}/api/spotify/get-episode-data/${i.dataset.spotifyId}`;const s=await fetch(n,o);t.querySelector(".button-content").classList.remove("d-none"),t.querySelector(".loading-spinner").classList.add("d-none"),200===s.status?(t.classList.add("active"),t.querySelector(".iframe-content").classList.remove("d-none"),t.querySelector(".button-content").classList.add("d-none"),e.loadUri(`spotify:episode:${i.dataset.spotifyId}`),e.play()):(t.querySelector(".button-content").classList.add("d-none"),t.querySelector(".button-no-content").classList.remove("d-none"))}))}))}))}},document.querySelectorAll(".spotify-content").length>0&&document.body.appendChild(y);var w=b((function(e){var t=Object.prototype.toString,n=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;e.exports=function(e){for(var s=arguments.length,o=Array(s>1?s-1:0),r=1;r<s;r++)o[r-1]=arguments[r];if("function"!=typeof(a=e)&&"[object Object]"!==t.call(a)&&!Array.isArray(a))throw new TypeError("expected the first argument to be an object");var a;if(0===o.length||"function"!=typeof Symbol||"function"!=typeof i)return e;var l=!0,c=!1,d=void 0;try{for(var u,p=o[Symbol.iterator]();!(l=(u=p.next()).done);l=!0){var f=u.value,h=i(f),m=!0,v=!1,g=void 0;try{for(var _,y=h[Symbol.iterator]();!(m=(_=y.next()).done);m=!0){var b=_.value;n.call(f,b)&&(e[b]=f[b])}}catch(w){v=!0,g=w}finally{try{!m&&y.return&&y.return()}finally{if(v)throw g}}}}catch(w){c=!0,d=w}finally{try{!l&&p.return&&p.return()}finally{if(c)throw d}}return e}})),x=Object.freeze({__proto__:null,default:w,__moduleExports:w}),C=x&&w||x,S="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=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},T=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),P=b((function(e){var t=Object.prototype.toString,n=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e},i=e.exports=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];var a,l=0;for(("object"===(void 0===(a=e)?"undefined":S(a))?null===a:"function"!=typeof a)&&(e=o[l++]),e||(e={});l<o.length;l++)if(s(o[l])){var c=!0,d=!1,u=void 0;try{for(var p,f=Object.keys(o[l])[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var h=p.value;n(h)&&(s(e[h])&&s(o[l][h])?i(e[h],o[l][h]):e[h]=o[l][h])}}catch(m){d=!0,u=m}finally{try{!c&&f.return&&f.return()}finally{if(d)throw u}}C(e,o[l])}return e};function s(e){return"function"==typeof e||"[object Object]"===t.call(e)}})),A="undefined"!=typeof window&&null!==window,L=function(){if(A&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0;return!1}();var E="event",O="observer",M=function(){if(A)return"function"==typeof window.CustomEvent?window.CustomEvent:(e.prototype=window.Event.prototype,e);function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}();function I(e,t){if(e.length){var n=e.indexOf(t);return n>-1?e.splice(n,1):void 0}}function j(e,t){if("IMG"===e.tagName&&e.getAttribute("data-srcset")){var n=e.getAttribute("data-srcset"),i=[],s=e.parentNode.offsetWidth*t,o=void 0,r=void 0,a=void 0;(n=n.trim().split(",")).map((function(e){e=e.trim(),-1===(o=e.lastIndexOf(" "))?(r=e,a=999998):(r=e.substr(0,o),a=parseInt(e.substr(o+1,e.length-o-2),10)),i.push([a,r])})),i.sort((function(e,t){if(e[0]<t[0])return 1;if(e[0]>t[0])return-1;if(e[0]===t[0]){if(-1!==t[1].indexOf(".webp",t[1].length-5))return 1;if(-1!==e[1].indexOf(".webp",e[1].length-5))return-1}return 0}));for(var l="",c=void 0,d=0;d<i.length;d++){l=(c=i[d])[1];var u=i[d+1];if(u&&u[0]<s){l=c[1];break}if(!u){l=c[1];break}}return l}}function q(e,t){for(var n=void 0,i=0,s=e.length;i<s;i++)if(t(e[i])){n=e[i];break}return n}var N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return A&&window.devicePixelRatio||e};function R(){if(!A)return!1;var e=!0;try{var t=document.createElement("canvas");t.getContext&&t.getContext("2d")&&(e=0===t.toDataURL("image/webp").indexOf("data:image/webp"))}catch(n){e=!1}return e}var $=function(){if(A){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(n){}return e}}(),D={on:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];$?e.addEventListener(t,n,{capture:i,passive:!0}):e.addEventListener(t,n,i)},off:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,i)}},B=function(e,t,n){var i=new Image;if(!e||!e.src){var s=new Error("image src is required");return n(s)}i.src=e.src,e.cors&&(i.crossOrigin=e.cors),i.onload=function(){t({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(e){n(e)}},H=function(e,t){return"undefined"!=typeof getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t]},z=function(e){return H(e,"overflow")+H(e,"overflow-y")+H(e,"overflow-x")};function F(){}var V=function(){function e(t){var n=t.max;k(this,e),this.options={max:n||100},this._caches=[]}return T(e,[{key:"has",value:function(e){return this._caches.indexOf(e)>-1}},{key:"add",value:function(e){this.has(e)||(this._caches.push(e),this._caches.length>this.options.max&&this.free())}},{key:"free",value:function(){this._caches.shift()}}]),e}(),W=function(){function e(t){var n=t.el,i=t.src,s=t.error,o=t.loading,r=t.bindType,a=t.$parent,l=t.options,c=t.cors,d=t.elRenderer,u=t.imageCache;k(this,e),this.el=n,this.src=i,this.error=s,this.loading=o,this.bindType=r,this.attempt=0,this.cors=c,this.naturalHeight=0,this.naturalWidth=0,this.options=l,this.rect=null,this.$parent=a,this.elRenderer=d,this._imageCache=u,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return T(e,[{key:"initState",value:function(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(e){this.performanceData[e]=Date.now()}},{key:"update",value:function(e){var t=e.src,n=e.loading,i=e.error,s=this.src;this.src=t,this.loading=n,this.error=i,this.filter(),s!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var e=this;(function(e){if(!(e instanceof Object))return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t})(this.options.filter).map((function(t){e.options.filter[t](e,e.options)}))}},{key:"renderLoading",value:function(e){var t=this;this.state.loading=!0,B({src:this.loading,cors:this.cors},(function(n){t.render("loading",!1),t.state.loading=!1,e()}),(function(){e(),t.state.loading=!1,t.options.silent||console.warn("VueLazyload log: load failed with loading image("+t.loading+")")}))}},{key:"load",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void t()):this.state.rendered&&this.state.loaded?void 0:this._imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,t()):void this.renderLoading((function(){e.attempt++,e.options.adapter.beforeLoad&&e.options.adapter.beforeLoad(e,e.options),e.record("loadStart"),B({src:e.src,cors:e.cors},(function(n){e.naturalHeight=n.naturalHeight,e.naturalWidth=n.naturalWidth,e.state.loaded=!0,e.state.error=!1,e.record("loadEnd"),e.render("loaded",!1),e.state.rendered=!0,e._imageCache.add(e.src),t()}),(function(t){!e.options.silent&&console.error(t),e.state.error=!0,e.state.loaded=!1,e.render("error",!1)}))}))}},{key:"render",value:function(e,t){this.elRenderer(this,e,t)}},{key:"performance",value:function(){var e="loading",t=0;return this.state.loaded&&(e="loaded",t=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(e="error"),{src:this.src,state:e,time:t}}},{key:"$destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),e}(),U="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Q=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],G={rootMargin:"0px",threshold:0};function Y(e){return function(){function t(e){var n=e.preLoad,i=e.error,s=e.throttleWait,o=e.preLoadTop,r=e.dispatchEvent,a=e.loading,l=e.attempt,c=e.silent,d=void 0===c||c,u=e.scale,p=e.listenEvents;e.hasbind;var f,h,m,v,g,_,y=e.filter,b=e.adapter,w=e.observer,x=e.observerOptions;k(this,t),this.version='"1.3.5"',this.mode=E,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!r,throttleWait:s||200,preLoad:n||1.3,preLoadTop:o||0,error:i||U,loading:a||U,attempt:l||3,scale:u||N(u),ListenEvents:p||Q,hasbind:!1,supportWebp:R(),filter:y||{},adapter:b||{},observer:!!w,observerOptions:x||G},this._initEvent(),this._imageCache=new V({max:200}),this.lazyLoadHandler=(f=this._lazyLoadHandler.bind(this),h=this.options.throttleWait,m=null,v=null,g=0,_=!1,function(){if(_=!0,!m){var e=Date.now()-g,t=this,n=arguments,i=function(){g=Date.now(),m=!1,f.apply(t,n)};e>=h?i():m=setTimeout(i,h),_&&(clearTimeout(v),v=setTimeout(i,2*h))}}),this.setMode(this.options.observer?O:E)}return T(t,[{key:"config",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this.options,e)}},{key:"performance",value:function(){var e=[];return this.ListenerQueue.map((function(t){e.push(t.performance())})),e}},{key:"addLazyBox",value:function(e){this.ListenerQueue.push(e),A&&(this._addListenerTarget(window),this._observer&&this._observer.observe(e.el),e.$el&&e.$el.parentNode&&this._addListenerTarget(e.$el.parentNode))}},{key:"add",value:function(t,n,i){var s=this;if(function(e,t){for(var n=!1,i=0,s=e.length;i<s;i++)if(t(e[i])){n=!0;break}return n}(this.ListenerQueue,(function(e){return e.el===t})))return this.update(t,n),e.nextTick(this.lazyLoadHandler);var o=this._valueFormatter(n.value),r=o.src,a=o.loading,l=o.error,c=o.cors;e.nextTick((function(){r=j(t,s.options.scale)||r,s._observer&&s._observer.observe(t);var o=Object.keys(n.modifiers)[0],d=void 0;o&&(d=(d=i.context.$refs[o])?d.$el||d:document.getElementById(o)),d||(d=function(e){if(A){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(z(t)))return t;t=t.parentNode}return window}}(t));var u=new W({bindType:n.arg,$parent:d,el:t,loading:a,error:l,src:r,cors:c,elRenderer:s._elRenderer.bind(s),options:s.options,imageCache:s._imageCache});s.ListenerQueue.push(u),A&&(s._addListenerTarget(window),s._addListenerTarget(d)),s.lazyLoadHandler(),e.nextTick((function(){return s.lazyLoadHandler()}))}))}},{key:"update",value:function(t,n,i){var s=this,o=this._valueFormatter(n.value),r=o.src,a=o.loading,l=o.error;r=j(t,this.options.scale)||r;var c=q(this.ListenerQueue,(function(e){return e.el===t}));c?c.update({src:r,loading:a,error:l}):this.add(t,n,i),this._observer&&(this._observer.unobserve(t),this._observer.observe(t)),this.lazyLoadHandler(),e.nextTick((function(){return s.lazyLoadHandler()}))}},{key:"remove",value:function(e){if(e){this._observer&&this._observer.unobserve(e);var t=q(this.ListenerQueue,(function(t){return t.el===e}));t&&(this._removeListenerTarget(t.$parent),this._removeListenerTarget(window),I(this.ListenerQueue,t),t.$destroy())}}},{key:"removeComponent",value:function(e){e&&(I(this.ListenerQueue,e),this._observer&&this._observer.unobserve(e.el),e.$parent&&e.$el.parentNode&&this._removeListenerTarget(e.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(e){var t=this;L||e!==O||(e=E),this.mode=e,e===E?(this._observer&&(this.ListenerQueue.forEach((function(e){t._observer.unobserve(e.el)})),this._observer=null),this.TargetQueue.forEach((function(e){t._initListen(e.el,!0)}))):(this.TargetQueue.forEach((function(e){t._initListen(e.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(e){if(e){var t=q(this.TargetQueue,(function(t){return t.el===e}));return t?t.childrenCount++:(t={el:e,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===E&&this._initListen(t.el,!0),this.TargetQueue.push(t)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(e){var t=this;this.TargetQueue.forEach((function(n,i){n.el===e&&(n.childrenCount--,n.childrenCount||(t._initListen(n.el,!1),t.TargetQueue.splice(i,1),n=null))}))}},{key:"_initListen",value:function(e,t){var n=this;this.options.ListenEvents.forEach((function(i){return D[t?"on":"off"](e,i,n.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var e=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(t,n){e.Event.listeners[t]||(e.Event.listeners[t]=[]),e.Event.listeners[t].push(n)},this.$once=function(t,n){var i=e;e.$on(t,(function e(){i.$off(t,e),n.apply(i,arguments)}))},this.$off=function(t,n){if(n)I(e.Event.listeners[t],n);else{if(!e.Event.listeners[t])return;e.Event.listeners[t].length=0}},this.$emit=function(t,n,i){e.Event.listeners[t]&&e.Event.listeners[t].forEach((function(e){return e(n,i)}))}}},{key:"_lazyLoadHandler",value:function(){var e=this,t=[];this.ListenerQueue.forEach((function(e,n){e.el&&e.el.parentNode||t.push(e),e.checkInView()&&e.load()})),t.forEach((function(t){I(e.ListenerQueue,t),t.$destroy()}))}},{key:"_initIntersectionObserver",value:function(){var e=this;L&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(t){e._observer.observe(t.el)})))}},{key:"_observerHandler",value:function(e,t){var n=this;e.forEach((function(e){e.isIntersecting&&n.ListenerQueue.forEach((function(t){if(t.el===e.target){if(t.state.loaded)return n._observer.unobserve(t.el);t.load()}}))}))}},{key:"_elRenderer",value:function(e,t,n){if(e.el){var i=e.el,s=e.bindType,o=void 0;switch(t){case"loading":o=e.loading;break;case"error":o=e.error;break;default:o=e.src}if(s?i.style[s]='url("'+o+'")':i.getAttribute("src")!==o&&i.setAttribute("src",o),i.setAttribute("lazy",t),this.$emit(t,e,n),this.options.adapter[t]&&this.options.adapter[t](e,this.options),this.options.dispatchEvent){var r=new M(t,{detail:e});i.dispatchEvent(r)}}}},{key:"_valueFormatter",value:function(e){var t,n=e,i=this.options.loading,s=this.options.error;return null!==(t=e)&&"object"===(void 0===t?"undefined":S(t))&&(e.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+e),n=e.src,i=e.loading||this.options.loading,s=e.error||this.options.error),{src:n,loading:i,error:s}}}]),t}()}Y.install=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(Y(e))(t);"2"===e.version.split(".")[0]?e.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}):e.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(e,t){P(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){n.remove(this.el)}})};var X=function(e){return{props:{tag:{type:String,default:"div"}},render:function(e){return e(this.tag,null,this.show?this.$slots.default:null)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeDestroy:function(){e.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),A&&this.rect.top<window.innerHeight*e.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*e.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy:function(){return this.$destroy}}}};X.install=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(Y(e))(t);e.component("lazy-component",X(n))};var J=function(){function e(t){var n=t.lazy;k(this,e),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return T(e,[{key:"bind",value:function(e,t,n){var i=new K({el:e,binding:t,vnode:n,lazy:this.lazy});this._queue.push(i)}},{key:"update",value:function(e,t,n){var i=q(this._queue,(function(t){return t.el===e}));i&&i.update({el:e,binding:t,vnode:n})}},{key:"unbind",value:function(e,t,n){var i=q(this._queue,(function(t){return t.el===e}));i&&(i.clear(),I(this._queue,i))}}]),e}(),Z={selector:"img"},K=function(){function e(t){var n=t.el,i=t.binding,s=t.vnode,o=t.lazy;k(this,e),this.el=null,this.vnode=s,this.binding=i,this.options={},this.lazy=o,this._queue=[],this.update({el:n,binding:i})}return T(e,[{key:"update",value:function(e){var t=this,n=e.el,i=e.binding;this.el=n,this.options=P({},Z,i.value),this.getImgs().forEach((function(e){t.lazy.add(e,P({},t.binding,{value:{src:"dataset"in e?e.dataset.src:e.getAttribute("data-src"),error:("dataset"in e?e.dataset.error:e.getAttribute("data-error"))||t.options.error,loading:("dataset"in e?e.dataset.loading:e.getAttribute("data-loading"))||t.options.loading}}),t.vnode)}))}},{key:"getImgs",value:function(){return function(e){for(var t=e.length,n=[],i=0;i<t;i++)n.push(e[i]);return n}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var e=this;this.getImgs().forEach((function(t){return e.lazy.remove(t)})),this.vnode=null,this.binding=null,this.lazy=null}}]),e}();K.install=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(Y(e))(t),i=new K({lazy:n});"2"===e.version.split(".")[0]?e.directive("lazy-container",{bind:i.bind.bind(i),componentUpdated:i.update.bind(i),unbind:i.unbind.bind(i)}):e.directive("lazy-container",{update:function(e,t){i.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){i.unbind(this.el)}})};var ee=function(e){return{props:{src:[String,Object],tag:{type:String,default:"img"}},render:function(e){return e(this.tag,{attrs:{src:this.renderSrc}},this.$slots.default)},data:function(){return{el:null,options:{src:"",error:"",loading:"",attempt:e.options.attempt},state:{loaded:!1,error:!1,attempt:0},rect:{},renderSrc:""}},watch:{src:function(){this.init(),e.addLazyBox(this),e.lazyLoadHandler()}},created:function(){this.init(),this.renderSrc=this.options.loading},mounted:function(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeDestroy:function(){e.removeComponent(this)},methods:{init:function(){var t=e._valueFormatter(this.src),n=t.src,i=t.loading,s=t.error;this.state.loaded=!1,this.options.src=n,this.options.error=s,this.options.loading=i,this.renderSrc=this.options.loading},getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),A&&this.rect.top<window.innerHeight*e.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*e.options.preLoad&&this.rect.right>0},load:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;if(this.state.attempt>this.options.attempt-1&&this.state.error)return e.options.silent||console.log("VueLazyload log: "+this.options.src+" tried too more than "+this.options.attempt+" times"),void n();var i=this.options.src;B({src:i},(function(e){var n=e.src;t.renderSrc=n,t.state.loaded=!0}),(function(e){t.state.attempt++,t.renderSrc=t.options.error,t.state.error=!0}))}}}};ee.install=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(Y(e))(t);e.component("lazy-image",ee(n))};var te={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(Y(e))(t),i=new J({lazy:n}),s="2"===e.version.split(".")[0];e.prototype.$Lazyload=n,t.lazyComponent&&e.component("lazy-component",X(n)),t.lazyImage&&e.component("lazy-image",ee(n)),s?(e.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),e.directive("lazy-container",{bind:i.bind.bind(i),componentUpdated:i.update.bind(i),unbind:i.unbind.bind(i)})):(e.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(e,t){P(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){n.remove(this.el)}}),e.directive("lazy-container",{update:function(e,t){i.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){i.unbind(this.el)}}))}},ne={exports:{}};"undefined"!=typeof self&&self;const ie=t(ne.exports=function(e){function t(i){if(n[i])return n[i].exports;var s=n[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="dist/",t(t.s=8)}([function(e,t){function n(e,t){var n=e[1]||"",s=e[3];if(!s)return n;if(t&&"function"==typeof btoa){var o=i(s);return[n].concat(s.sources.map((function(e){return"/*# sourceURL="+s.sourceRoot+e+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function i(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=n(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},s=0;s<this.length;s++){var o=this[s][0];"number"==typeof o&&(i[o]=!0)}for(s=0;s<e.length;s++){var r=e[s];"number"==typeof r[0]&&i[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),t.push(r))}},t}},function(e,t,n){function i(e){for(var t=0;t<e.length;t++){var n=e[t],i=d[n.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](n.parts[s]);for(;s<n.parts.length;s++)i.parts.push(o(n.parts[s]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var r=[];for(s=0;s<n.parts.length;s++)r.push(o(n.parts[s]));d[n.id]={id:n.id,refs:1,parts:r}}}}function s(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function o(e){var t,n,i=document.querySelector("style["+g+'~="'+e.id+'"]');if(i){if(h)return m;i.parentNode.removeChild(i)}if(_){var o=f++;i=p||(p=s()),t=r.bind(null,i,o,!1),n=r.bind(null,i,o,!0)}else i=s(),t=a.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}function r(e,t,n,i){var s=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=y(t,s);else{var o=document.createTextNode(s),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(o,r[t]):e.appendChild(o)}}function a(e,t){var n=t.css,i=t.media,s=t.sourceMap;if(i&&e.setAttribute("media",i),v.ssrId&&e.setAttribute(g,t.id),s&&(n+="\n/*# sourceURL="+s.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(12),d={},u=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,h=!1,m=function(){},v=null,g="data-vue-ssr-id",_="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,s){h=n,v=s||{};var o=c(e,t);return i(o),function(t){for(var n=[],s=0;s<o.length;s++){var r=o[s];(a=d[r.id]).refs--,n.push(a)}for(t?i(o=c(e,t)):o=[],s=0;s<n.length;s++){var a;if(0===(a=n[s]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete d[a.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t,n,i,s,o){var r,a=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(r=e,a=e.default);var c,d="function"==typeof a?a.options:a;if(t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),n&&(d.functional=!0),s&&(d._scopeId=s),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=c):i&&(c=i),c){var u=d.functional,p=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(e,t){return c.call(t),p(e,t)}):d.beforeCreate=p?[].concat(p,c):[c]}return{esModule:r,exports:a,options:d}}},function(e,t,n){var i=n(4),s=n(5);n.n(s),t.a={name:"VueAudio",mixins:[i.a],props:["width"],data:function(){return{min:0,max:100,slider:null,thunk:null,per:0,rate:1,isMute:!0,curVolume:.5,totalWidth:500}},watch:{curProgress:function(e){document.onmouseup||(this.per=e)}},computed:{curProgress:function(){return(Math.round(1e4*this.progress)/100).toFixed(2)},scale:function(){return(this.per-this.min)/(this.max-this.min)},pWidth:function(){return this.slider?this.slider.offsetWidth*this.scale+"px":"0px"},left:function(){return this.slider?this.slider.offsetWidth*this.scale-this.thunk.offsetWidth/2+"px":"0px"}},methods:{handleModifyProgress:function(e){if("slider"===e.target.className||"process"===e.target.className){var t=e.offsetX/this.slider.offsetWidth;this.setProgress(t)}},handleSetRate:function(){1===this.rate?(this.rate=.9,this.setRate(this.rate)):.9===this.rate?(this.rate=1.2,this.setRate(this.rate)):(this.rate=1,this.setRate(this.rate))},handleToggleMute:function(){this.isMute?this.isMute=!1:this.isMute=!0,this.toggleMute()},handleSetVolume:function(e){e?this.curVolume+=.1:this.curVolume-=.1,this.curVolume>1?this.curVolume=1:this.curVolume<0&&(this.curVolume=0),this.setVolume(this.curVolume)},_sToMs:function(e){if("number"!=typeof e)return"00:00";e=parseInt(e);var t=void 0;return t=Math.floor(e/60),e%=60,(t=1==(t+="").length?"0"+t:t)+":"+(e=1==(e+="").length?"0"+e:e)}},mounted:function(){var e=this;this.width&&"number"==typeof this.width&&(this.totalWidth=this.width+"px"),this.setVolume(this.curVolume),this.slider=this.$refs.slider,this.thunk=this.$refs.trunk,this.thunk.onmousedown=function(t){var n=parseInt(e.pWidth),i=t.clientX;return document.onmousemove=function(t){var s=(t.clientX-i+n)/e.slider.offsetWidth;e.per=Math.ceil((e.max-e.min)*s+e.min),e.per=Math.max(e.per,e.min),e.per=Math.min(e.per,e.max)},document.onmouseup=function(){document.onmousemove=document.onmouseup=null,e.setProgress(e.scale)},!1}}}},function(e,t,n){var i=n(13),s=(n.n(i),n(15)),o=n.n(s),r=n(16),a=n.n(r),l=n(17),c=n.n(l),d="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};t.a={props:{audioSource:{type:String,required:!0,validator:function(e){return"string"==typeof e&&e.length>0}},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:Boolean,default:!0},html5:{type:Boolean,default:!1},formats:{type:Array,default:function(){return[]}},xhrWithCredentials:{type:Boolean,default:!1}},data:function(){var e=this;return{_howl:null,playing:!1,muted:!1,volume:1,rate:1,seek:0,duration:0,_polls:{seek:{id:null,interval:250,hook:function(){e.seek=e.$data._howl.seek()}}},_howlEvents:[{name:"load",hook:function(){e.duration=e.$data._howl.duration()}},"loaderror","playerror",{name:"play",hook:function(){e.playing=!0}},{name:"end",hook:function(){e.playing=!1}},{name:"pause",hook:function(){e.playing=!1}},{name:"stop",hook:function(){e.playing=!1,null!=e.$data._howl&&(e.seek=e.$data._howl.seek())}},"mute",{name:"volume",hook:function(){e.volume=e.$data._howl.volume()}},{name:"rate",hook:function(){e.rate=e.$data._howl.rate()}},{name:"seek",hook:function(){e.playing||(e.seek=e.$data._howl.seek())}},"fade"]}},computed:{progress:function(){return 0===this.duration?0:this.seek/this.duration}},created:function(){this._initialize()},beforeDestroy:function(){this._cleanup()},watch:{playing:function(e){this.seek=this.$data._howl.seek(),e?this.$data._polls.seek.id=setInterval(this.$data._polls.seek.hook,this.$data._polls.seek.interval):clearInterval(this.$data._polls.seek.id)},audioSource:function(e){this._reinitialize()}},methods:{_reinitialize:function(){this._cleanup(!1),this._initialize()},_initialize:function(){var e=this;this.$data._howl=new i.Howl({src:this.audioSource,volume:this.volume,html5:this.html5,loop:this.loop,preload:this.preload,autoplay:this.autoplay,mute:this.muted,rate:this.rate,format:this.formats,xhrWithCredentials:this.xhrWithCredentials});var t=this.$data._howl.duration();this.duration=t,t>0&&this.$emit("load"),this.$data._howlEvents=this.$data._howlEvents.map((function(t){"string"==typeof t&&(t={name:t});var n=function(n,i){"function"==typeof t.hook&&t.hook(n,i),e.$emit(t.name,n,i)};return e.$data._howl.on(t.name,n),c()({},t,{handler:n})}))},_cleanup:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$data._howl&&this.stop(),a()(this.$data._polls).forEach((function(e){null!=e.id&&clearInterval(e.id)})),this.$data._howlEvents.map((function(t){if(t.handler){e.$data._howl&&e.$data._howl.off(t.name,t.handler);var n=c()({},t);return delete n.handler,n}return t})),this.$data._howl=null,this.duration=0,t&&(this.muted=!1,this.volume=1,this.rate=1)},play:function(){this.playing||this.$data._howl.play()},pause:function(){this.playing&&this.$data._howl.pause()},togglePlayback:function(){this.playing?this.$data._howl.pause():this.$data._howl.play()},stop:function(){this.$data._howl.stop()},mute:function(){this.$data._howl.mute(!0),this.muted=!0},unmute:function(){this.$data._howl.mute(!1),this.muted=!1},toggleMute:function(){this.$data._howl.mute(!this.muted),this.muted=!this.muted},setVolume:function(e){if("number"!=typeof e)throw new Error("volume must be a number, got a "+(void 0===e?"undefined":d(e))+" instead");this.$data._howl.volume(o()(e,0,1))},setRate:function(e){if("number"!=typeof e)throw new Error("rate must be a number, got a "+(void 0===e?"undefined":d(e))+" instead");this.$data._howl.rate(o()(e,.5,4))},setSeek:function(e){if("number"!=typeof e)throw new Error("seek must be a number, got a "+(void 0===e?"undefined":d(e))+" instead");this.$data._howl.seek(o()(e,0,this.duration))},setProgress:function(e){if("number"!=typeof e)throw new Error("progress must be a number, got a "+(void 0===e?"undefined":d(e))+" instead");this.setSeek(o()(e,0,1)*this.duration)}}}},function(e,t,n){var i=n(18);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("53c61571",i,!0,{})},function(e,t,n){e.exports=n.p+"fonts_/iconfont.c27c4ff.eot"},function(e,t,n){var i=n(4),s=n(5);n.n(s),t.a={name:"MiniAudio",mixins:[i.a],props:["width"],data:function(){return{min:0,max:100,slider:null,thunk:null,per:0,rate:1,isMute:!0,curVolume:.5,totalWidth:500}},watch:{curProgress:function(e){document.onmouseup||(this.per=e)}},computed:{curProgress:function(){return(Math.round(1e4*this.progress)/100).toFixed(2)},scale:function(){return(this.per-this.min)/(this.max-this.min)},pWidth:function(){return this.slider?this.slider.offsetWidth*this.scale+"px":"0px"},left:function(){return this.slider?this.slider.offsetWidth*this.scale-this.thunk.offsetWidth/2+"px":"0px"}},methods:{handleModifyProgress:function(e){if("slider"===e.target.className||"process"===e.target.className){var t=e.offsetX/this.slider.offsetWidth;this.setProgress(t)}},handleToggleMute:function(){this.isMute?this.isMute=!1:this.isMute=!0,this.toggleMute()},_sToMs:function(e){if("number"!=typeof e)return"00:00";e=parseInt(e);var t=void 0;return t=Math.floor(e/60),e%=60,(t=1==(t+="").length?"0"+t:t)+":"+(e=1==(e+="").length?"0"+e:e)}},mounted:function(){var e=this;this.width&&"number"==typeof this.width&&(this.totalWidth=this.width+"px"),this.setVolume(this.curVolume),this.slider=this.$refs.slider,this.thunk=this.$refs.trunk,this.thunk.onmousedown=function(t){var n=parseInt(e.pWidth),i=t.clientX;return document.onmousemove=function(t){var s=(t.clientX-i+n)/e.slider.offsetWidth;e.per=Math.ceil((e.max-e.min)*s+e.min),e.per=Math.max(e.per,e.min),e.per=Math.min(e.per,e.max)},document.onmouseup=function(){document.onmousemove=document.onmouseup=null,e.setProgress(e.scale)},!1}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"VueAudioPlugin",(function(){return r}));var i=n(9),s=n(24);n.d(t,"VueAudio",(function(){return i.a}));var o={VueAudio:i.a,MiniAudio:s.a},r={install:function(e,t){Object.keys(o).forEach((function(t){e.component(o[t].name,o[t])}))}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(r),t.default=r},function(e,t,n){function i(e){n(10)}var s=n(3),o=n(23),r=i,a=n(2)(s.a,o.a,!1,r,"data-v-14400722",null);t.a=a.exports},function(e,t,n){var i=n(11);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("26d24087",i,!0,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,".vueAudioBetter[data-v-14400722]{overflow:hidden;width:500px;margin:0 auto;background-color:#f3f2bd;border-radius:8px;box-shadow:5px 5px 10px -4px #63645e;background-image:linear-gradient(90deg,#9ca5f5,#7ff5ae)}.vueAudioBetter .total[data-v-14400722]{margin:20px auto;display:flex;align-items:center;justify-content:space-around;width:80%}.vueAudioBetter .operatorButton[data-v-14400722]{margin:0 auto;display:flex;align-items:center;justify-content:space-around;width:80%;height:38px}.operatorButton .rate[data-v-14400722]{font-size:32px}.operatorButton span[data-v-14400722]{font-size:24px;color:#0c0c0cb8;cursor:pointer}.operatorButton span[data-v-14400722]:first-child{color:#4a3535;font-size:28px}.operatorButton span[data-v-14400722]:hover{font-size:30px}.operatorButton span[data-v-14400722]:last-child:hover{font-size:36px}.vueAudioBetter .slider[data-v-14400722]{position:relative;margin:26px auto;width:80%;height:10px;background:#f8f7f7;border-radius:5px;cursor:pointer}.slider .process[data-v-14400722]{position:absolute;left:0;top:0;width:112px;height:10px;border-radius:5px;background:#409eff}.slider .thunk[data-v-14400722]{position:absolute;left:100px;top:-7px;width:20px;height:20px}.slider .block[data-v-14400722]{width:20px;height:20px;border-radius:50%;border:2px solid #409eff;background:#fff;transition:all .2s}.slider .block[data-v-14400722]:hover{transform:scale(1.1);opacity:.6}.slider .progressInfo[data-v-14400722]{position:absolute;top:-28px;color:#117eeb;font-weight:600}.operatorButton .iconfont[data-v-14400722]:active{position:relative;top:2px;left:2px}",""])},function(e,t){e.exports=function(e,t){for(var n=[],i={},s=0;s<t.length;s++){var o=t[s],r=o[0],a={id:e+":"+s,css:o[1],media:o[2],sourceMap:o[3]};i[r]?i[r].parts.push(a):n.push(i[r]={id:r,parts:[a]})}return n}},function(e,t,n){(function(n){var i;
/*!
        *  howler.js v2.1.2
        *  howlerjs.com
        *
        *  (c) 2013-2019, James Simpson of GoldFire Studios
        *  goldfirestudios.com
        *
        *  MIT License
        */!function(){var s=function(){this.init()};s.prototype={init:function(){var e=this||o;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||o;if(e=parseFloat(e),t.ctx||f(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,o.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var i=t._howls[n]._getSoundIds(),s=0;s<i.length;s++){var r=t._howls[n]._soundById(i[s]);r&&r._node&&(r._node.volume=r._volume*e)}return t}return t._volume},mute:function(e){var t=this||o;t.ctx||f(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,o.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var i=t._howls[n]._getSoundIds(),s=0;s<i.length;s++){var r=t._howls[n]._soundById(i[s]);r&&r._node&&(r._node.muted=!!e||r._muted)}return t},unload:function(){for(var e=this||o,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,f()),e},codecs:function(e){return(this||o)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||o;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(n){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||o,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(r){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i=e._navigator&&e._navigator.userAgent.match(/OPR\/([0-6].)/g),s=i&&parseInt(i[0].split("/")[1],10)<33;return e._codecs={mp3:!(s||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||o;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(var i=0;i<e.html5PoolSize;i++)try{var s=new Audio;s._unlocked=!0,e._releaseHtml5Audio(s)}catch(c){e.noAudio=!0}for(i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var o=e._howls[i]._getSoundIds(),r=0;r<o.length;r++){var a=e._howls[i]._soundById(o[r]);a&&a._node&&!a._node._unlocked&&(a._node._unlocked=!0,a._node.load())}e._autoResume();var l=e.ctx.createBufferSource();l.buffer=e._scratchBuffer,l.connect(e.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),l.onended=function(){l.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),e}},_obtainHtml5Audio:function(){var e=this||o;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch((function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")})),new Audio},_releaseHtml5Audio:function(e){var t=this||o;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&o.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout((function(){e.autoSuspend&&(e._suspendTimer=null,e.state="suspending",e.ctx.suspend().then((function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())})))}),3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&o.usingWebAudio)return"running"===e.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state?(e.ctx.resume().then((function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")})),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var o=new s,r=function(e){var t=this;e.src&&0!==e.src.length?t.init(e):console.error("An array of source files must be passed with any new Howl.")};r.prototype={init:function(e){var t=this;return o.ctx||f(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhrWithCredentials=e.xhrWithCredentials||!1,t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=o.usingWebAudio&&!t._html5,void 0!==o.ctx&&o.ctx&&o.autoUnlock&&o._unlockAudio(),o._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&t.load(),t},load:function(){var e=this,t=null;if(!o.noAudio){"string"==typeof e._src&&(e._src=[e._src]);for(var n=0;n<e._src.length;n++){var i,s;if(e._format&&e._format[n])i=e._format[n];else{if("string"!=typeof(s=e._src[n])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(i=/^data:audio\/([^;,]+);/i.exec(s))||(i=/\.([^.]+)$/.exec(s.split("?",1)[0])),i&&(i=i[1].toLowerCase())}if(i||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),i&&o.codecs(i)){t=e._src[n];break}}return t?(e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new a(e),e._webAudio&&c(e),e):void e._emit("loaderror",null,"No codec support for selected audio sources.")}e._emit("loaderror",null,"No audio support.")},play:function(e,t){var n=this,i=null;if("number"==typeof e)i=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var s=0,r=0;r<n._sounds.length;r++)n._sounds[r]._paused&&!n._sounds[r]._ended&&(s++,i=n._sounds[r]._id);1===s?e=null:i=null}}var a=i?n._soundById(i):n._inactiveSound();if(!a)return null;if(i&&!e&&(e=a._sprite||"__default"),"loaded"!==n._state){a._sprite=e,a._ended=!1;var l=a._id;return n._queue.push({event:"play",action:function(){n.play(l)}}),l}if(i&&!a._paused)return t||n._loadQueue("play"),a._id;n._webAudio&&o._autoResume();var c=Math.max(0,a._seek>0?a._seek:n._sprite[e][0]/1e3),d=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-c),u=1e3*d/Math.abs(a._rate),p=n._sprite[e][0]/1e3,f=(n._sprite[e][0]+n._sprite[e][1])/1e3,h=!(!a._loop&&!n._sprite[e][2]);a._sprite=e,a._ended=!1;var m=function(){a._paused=!1,a._seek=c,a._start=p,a._stop=f,a._loop=h};if(!(c>=f)){var v=a._node;if(n._webAudio){var g=function(){n._playLock=!1,m(),n._refreshBuffer(a);var e=a._muted||n._muted?0:a._volume;v.gain.setValueAtTime(e,o.ctx.currentTime),a._playStart=o.ctx.currentTime,void 0===v.bufferSource.start?a._loop?v.bufferSource.noteGrainOn(0,c,86400):v.bufferSource.noteGrainOn(0,c,d):a._loop?v.bufferSource.start(0,c,86400):v.bufferSource.start(0,c,d),u!==1/0&&(n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),u)),t||setTimeout((function(){n._emit("play",a._id),n._loadQueue()}),0)};"running"===o.state?g():(n._playLock=!0,n.once("resume",g),n._clearTimer(a._id))}else{var _=function(){v.currentTime=c,v.muted=a._muted||n._muted||o._muted||v.muted,v.volume=a._volume*o.volume(),v.playbackRate=a._rate;try{var i=v.play();if(i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(n._playLock=!0,m(),i.then((function(){n._playLock=!1,v._unlocked=!0,t||(n._emit("play",a._id),n._loadQueue())})).catch((function(){n._playLock=!1,n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),a._ended=!0,a._paused=!0}))):t||(n._playLock=!1,m(),n._emit("play",a._id),n._loadQueue()),v.playbackRate=a._rate,v.paused)return void n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||a._loop?n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),u):(n._endTimers[a._id]=function(){n._ended(a),v.removeEventListener("ended",n._endTimers[a._id],!1)},v.addEventListener("ended",n._endTimers[a._id],!1))}catch(s){n._emit("playerror",a._id,s)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===v.src&&(v.src=n._src,v.load());var y=window&&window.ejecta||!v.readyState&&o._navigator.isCocoonJS;if(v.readyState>=3||y)_();else{n._playLock=!0;var b=function(){_(),v.removeEventListener(o._canPlayEvent,b,!1)};v.addEventListener(o._canPlayEvent,b,!1),n._clearTimer(a._id)}}return a._id}n._ended(a)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),i=0;i<n.length;i++){t._clearTimer(n[i]);var s=t._soundById(n[i]);if(s&&!s._paused&&(s._seek=t.seek(n[i]),s._rateSeek=0,s._paused=!0,t._stopFade(n[i]),s._node))if(t._webAudio){if(!s._node.bufferSource)continue;void 0===s._node.bufferSource.stop?s._node.bufferSource.noteOff(0):s._node.bufferSource.stop(0),t._cleanBuffer(s._node)}else isNaN(s._node.duration)&&s._node.duration!==1/0||s._node.pause();arguments[1]||t._emit("pause",s?s._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var i=n._getSoundIds(e),s=0;s<i.length;s++){n._clearTimer(i[s]);var o=n._soundById(i[s]);o&&(o._seek=o._start||0,o._rateSeek=0,o._paused=!0,o._ended=!0,n._stopFade(i[s]),o._node&&(n._webAudio?o._node.bufferSource&&(void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),n._cleanBuffer(o._node)):isNaN(o._node.duration)&&o._node.duration!==1/0||(o._node.currentTime=o._start||0,o._node.pause(),o._node.duration===1/0&&n._clearSound(o._node))),t||n._emit("stop",o._id))}return n},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var i=n._getSoundIds(t),s=0;s<i.length;s++){var r=n._soundById(i[s]);r&&(r._muted=e,r._interval&&n._stopFade(r._id),n._webAudio&&r._node?r._node.gain.setValueAtTime(e?0:r._volume,o.ctx.currentTime):r._node&&(r._node.muted=!!o._muted||e),n._emit("mute",r._id))}return n},volume:function(){var e,t,n,i=this,s=arguments;if(0===s.length)return i._volume;if(1===s.length||2===s.length&&void 0===s[1]?i._getSoundIds().indexOf(s[0])>=0?t=parseInt(s[0],10):e=parseFloat(s[0]):s.length>=2&&(e=parseFloat(s[0]),t=parseInt(s[1],10)),!(void 0!==e&&e>=0&&e<=1))return(n=t?i._soundById(t):i._sounds[0])?n._volume:0;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"volume",action:function(){i.volume.apply(i,s)}}),i;void 0===t&&(i._volume=e),t=i._getSoundIds(t);for(var r=0;r<t.length;r++)(n=i._soundById(t[r]))&&(n._volume=e,s[2]||i._stopFade(t[r]),i._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,o.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*o.volume()),i._emit("volume",n._id));return i},fade:function(e,t,n,i){var s=this;if("loaded"!==s._state||s._playLock)return s._queue.push({event:"fade",action:function(){s.fade(e,t,n,i)}}),s;e=parseFloat(e),t=parseFloat(t),n=parseFloat(n),s.volume(e,i);for(var r=s._getSoundIds(i),a=0;a<r.length;a++){var l=s._soundById(r[a]);if(l){if(i||s._stopFade(r[a]),s._webAudio&&!l._muted){var c=o.ctx.currentTime,d=c+n/1e3;l._volume=e,l._node.gain.setValueAtTime(e,c),l._node.gain.linearRampToValueAtTime(t,d)}s._startFadeInterval(l,e,t,n,r[a],void 0===i)}}return s},_startFadeInterval:function(e,t,n,i,s,o){var r=this,a=t,l=n-t,c=Math.abs(l/.01),d=Math.max(4,c>0?i/c:i),u=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var s=(Date.now()-u)/i;u=Date.now(),a+=l*s,a=Math.max(0,a),a=Math.min(1,a),a=Math.round(100*a)/100,r._webAudio?e._volume=a:r.volume(a,e._id,!0),o&&(r._volume=a),(n<t&&a<=n||n>t&&a>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,r.volume(n,e._id),r._emit("fade",e._id))}),d)},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(o.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,i=this,s=arguments;if(0===s.length)return i._loop;if(1===s.length){if("boolean"!=typeof s[0])return!!(n=i._soundById(parseInt(s[0],10)))&&n._loop;e=s[0],i._loop=e}else 2===s.length&&(e=s[0],t=parseInt(s[1],10));for(var o=i._getSoundIds(t),r=0;r<o.length;r++)(n=i._soundById(o[r]))&&(n._loop=e,i._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop)));return i},rate:function(){var e,t,n,i=this,s=arguments;if(0===s.length?t=i._sounds[0]._id:1===s.length?i._getSoundIds().indexOf(s[0])>=0?t=parseInt(s[0],10):e=parseFloat(s[0]):2===s.length&&(e=parseFloat(s[0]),t=parseInt(s[1],10)),"number"!=typeof e)return(n=i._soundById(t))?n._rate:i._rate;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"rate",action:function(){i.rate.apply(i,s)}}),i;void 0===t&&(i._rate=e),t=i._getSoundIds(t);for(var r=0;r<t.length;r++)if(n=i._soundById(t[r])){i.playing(t[r])&&(n._rateSeek=i.seek(t[r]),n._playStart=i._webAudio?o.ctx.currentTime:n._playStart),n._rate=e,i._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,o.ctx.currentTime):n._node&&(n._node.playbackRate=e);var a=i.seek(t[r]),l=1e3*((i._sprite[n._sprite][0]+i._sprite[n._sprite][1])/1e3-a)/Math.abs(n._rate);!i._endTimers[t[r]]&&n._paused||(i._clearTimer(t[r]),i._endTimers[t[r]]=setTimeout(i._ended.bind(i,n),l)),i._emit("rate",n._id)}return i},seek:function(){var e,t,n=this,i=arguments;if(0===i.length?t=n._sounds[0]._id:1===i.length?n._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(i[0])):2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),void 0===t)return n;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"seek",action:function(){n.seek.apply(n,i)}}),n;var s=n._soundById(t);if(s){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var r=n.playing(t)?o.ctx.currentTime-s._playStart:0,a=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(a+r*Math.abs(s._rate))}return s._node.currentTime}var l=n.playing(t);l&&n.pause(t,!0),s._seek=e,s._ended=!1,n._clearTimer(t),n._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=e);var c=function(){n._emit("seek",t),l&&n.play(t,!0)};if(l&&!n._webAudio){var d=function(){n._playLock?setTimeout(d,0):c()};setTimeout(d,0)}else c()}return n},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var i=0;i<t._sounds.length;i++)if(!t._sounds[i]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,i=t._soundById(e);return i&&(n=t._sprite[i._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(o._canPlayEvent,t[n]._loadFn,!1),o._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var i=o._howls.indexOf(e);i>=0&&o._howls.splice(i,1);var s=!0;for(n=0;n<o._howls.length;n++)if(o._howls[n]._src===e._src||e._src.indexOf(o._howls[n]._src)>=0){s=!1;break}return l&&s&&delete l[e._src],o.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,i){var s=this,o=s["_on"+e];return"function"==typeof t&&o.push(i?{id:n,fn:t,once:i}:{id:n,fn:t}),s},off:function(e,t,n){var i=this,s=i["_on"+e],o=0;if("number"==typeof t&&(n=t,t=null),t||n)for(o=0;o<s.length;o++){var r=n===s[o].id;if(t===s[o].fn&&r||!t&&r){s.splice(o,1);break}}else if(e)i["_on"+e]=[];else{var a=Object.keys(i);for(o=0;o<a.length;o++)0===a[o].indexOf("_on")&&Array.isArray(i[a[o]])&&(i[a[o]]=[])}return i},once:function(e,t,n){var i=this;return i.on(e,t,n,1),i},_emit:function(e,t,n){for(var i=this,s=i["_on"+e],o=s.length-1;o>=0;o--)s[o].id&&s[o].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(i,s[o].fn),0),s[o].once&&i.off(e,s[o].fn,s[o].id));return i._loadQueue(e),i},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var i=!(!e._loop&&!t._sprite[n][2]);if(t._emit("end",e._id),!t._webAudio&&i&&t.stop(e._id,!0).play(e._id),t._webAudio&&i){t._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=o.ctx.currentTime;var s=1e3*(e._stop-e._start)/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),s)}return t._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),o._autoSuspend()),t._webAudio||i||t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if("function"!=typeof t._endTimers[e])clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener("ended",t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new a(e)},_drain:function(){var e=this,t=e._pool,n=0,i=0;if(!(e._sounds.length<t)){for(i=0;i<e._sounds.length;i++)e._sounds[i]._ended&&n++;for(i=e._sounds.length-1;i>=0;i--){if(n<=t)return;e._sounds[i]._ended&&(e._webAudio&&e._sounds[i]._node&&e._sounds[i]._node.disconnect(0),e._sounds.splice(i,1),n--)}}},_getSoundIds:function(e){var t=this;if(void 0===e){for(var n=[],i=0;i<t._sounds.length;i++)n.push(t._sounds[i]._id);return n}return[e]},_refreshBuffer:function(e){var t=this;return e._node.bufferSource=o.ctx.createBufferSource(),e._node.bufferSource.buffer=l[t._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,o.ctx.currentTime),t},_cleanBuffer:function(e){var t=this,n=o._navigator&&o._navigator.vendor.indexOf("Apple")>=0;if(o._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),n))try{e.bufferSource.buffer=o._scratchBuffer}catch(i){}return e.bufferSource=null,t},_clearSound:function(e){/MSIE |Trident\//.test(o._navigator&&o._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var a=function(e){this._parent=e,this.init()};a.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++o._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=o._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),e._node.gain.setValueAtTime(n,o.ctx.currentTime),e._node.paused=!0,e._node.connect(o.masterGain)):(e._node=o._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(o._canPlayEvent,e._loadFn,!1),e._node.src=t._src,e._node.preload="auto",e._node.volume=n*o.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++o._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(o._canPlayEvent,e._loadFn,!1)}};var l={},c=function(e){var t=e._src;if(l[t])return e._duration=l[t].duration,void p(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),i=new Uint8Array(n.length),s=0;s<n.length;++s)i[s]=n.charCodeAt(s);u(i.buffer,e)}else{var o=new XMLHttpRequest;o.open("GET",t,!0),o.withCredentials=e._xhrWithCredentials,o.responseType="arraybuffer",o.onload=function(){var t=(o.status+"")[0];"0"===t||"2"===t||"3"===t?u(o.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+o.status+".")},o.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete l[t],e.load())},d(o)}},d=function(e){try{e.send()}catch(t){e.onerror()}},u=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},i=function(e){e&&t._sounds.length>0?(l[t._src]=e,p(t,e)):n()};"undefined"!=typeof Promise&&1===o.ctx.decodeAudioData.length?o.ctx.decodeAudioData(e).then(i).catch(n):o.ctx.decodeAudioData(e,i,n)},p=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},f=function(){if(o.usingWebAudio){try{"undefined"!=typeof AudioContext?o.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?o.ctx=new webkitAudioContext:o.usingWebAudio=!1}catch(s){o.usingWebAudio=!1}o.ctx||(o.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(o._navigator&&o._navigator.platform),t=o._navigator&&o._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var i=/safari/.test(o._navigator&&o._navigator.userAgent.toLowerCase());(o._navigator&&o._navigator.standalone&&!i||o._navigator&&!o._navigator.standalone&&!i)&&(o.usingWebAudio=!1)}o.usingWebAudio&&(o.masterGain=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),o.masterGain.gain.setValueAtTime(o._muted?0:1,o.ctx.currentTime),o.masterGain.connect(o.ctx.destination)),o._setup()}};void 0!==(i=function(){return{Howler:o,Howl:r}}.apply(t,[]))&&(e.exports=i),t.Howler=o,t.Howl=r,"undefined"!=typeof window?(window.HowlerGlobal=s,window.Howler=o,window.Howl=r,window.Sound=a):void 0!==n&&(n.HowlerGlobal=s,n.Howler=o,n.Howl=r,n.Sound=a)}(),
/*!
        *  Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
        *  
        *  howler.js v2.1.2
        *  howlerjs.com
        *
        *  (c) 2013-2019, James Simpson of GoldFire Studios
        *  goldfirestudios.com
        *
        *  MIT License
        */
function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var i=this;return i.ctx&&i.ctx.listener?(t="number"!=typeof t?i._pos[1]:t,n="number"!=typeof n?i._pos[2]:n,"number"!=typeof e?i._pos:(i._pos=[e,t,n],void 0!==i.ctx.listener.positionX?(i.ctx.listener.positionX.setTargetAtTime(i._pos[0],Howler.ctx.currentTime,.1),i.ctx.listener.positionY.setTargetAtTime(i._pos[1],Howler.ctx.currentTime,.1),i.ctx.listener.positionZ.setTargetAtTime(i._pos[2],Howler.ctx.currentTime,.1)):i.ctx.listener.setPosition(i._pos[0],i._pos[1],i._pos[2]),i)):i},HowlerGlobal.prototype.orientation=function(e,t,n,i,s,o){var r=this;if(!r.ctx||!r.ctx.listener)return r;var a=r._orientation;return t="number"!=typeof t?a[1]:t,n="number"!=typeof n?a[2]:n,i="number"!=typeof i?a[3]:i,s="number"!=typeof s?a[4]:s,o="number"!=typeof o?a[5]:o,"number"!=typeof e?a:(r._orientation=[e,t,n,i,s,o],void 0!==r.ctx.listener.forwardX?(r.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),r.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),r.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),r.ctx.listener.upX.setTargetAtTime(e,Howler.ctx.currentTime,.1),r.ctx.listener.upY.setTargetAtTime(t,Howler.ctx.currentTime,.1),r.ctx.listener.upZ.setTargetAtTime(n,Howler.ctx.currentTime,.1)):r.ctx.listener.setOrientation(e,t,n,i,s,o),r)},Howl.prototype.init=function(e){return function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}}(Howl.prototype.init),Howl.prototype.stereo=function(t,n){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"stereo",action:function(){i.stereo(t,n)}}),i;var s=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof t)return i._stereo;i._stereo=t,i._pos=[t,0,0]}for(var o=i._getSoundIds(n),r=0;r<o.length;r++){var a=i._soundById(o[r]);if(a){if("number"!=typeof t)return a._stereo;a._stereo=t,a._pos=[t,0,0],a._node&&(a._pannerAttr.panningModel="equalpower",a._panner&&a._panner.pan||e(a,s),"spatial"===s?void 0!==a._panner.positionX?(a._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),a._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),a._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):a._panner.setPosition(t,0,0):a._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),i._emit("stereo",a._id)}}return i},Howl.prototype.pos=function(t,n,i,s){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"pos",action:function(){o.pos(t,n,i,s)}}),o;if(n="number"!=typeof n?0:n,i="number"!=typeof i?-.5:i,void 0===s){if("number"!=typeof t)return o._pos;o._pos=[t,n,i]}for(var r=o._getSoundIds(s),a=0;a<r.length;a++){var l=o._soundById(r[a]);if(l){if("number"!=typeof t)return l._pos;l._pos=[t,n,i],l._node&&(l._panner&&!l._panner.pan||e(l,"spatial"),void 0!==l._panner.positionX?(l._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(i,Howler.ctx.currentTime)):l._panner.setPosition(t,n,i)),o._emit("pos",l._id)}}return o},Howl.prototype.orientation=function(t,n,i,s){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"orientation",action:function(){o.orientation(t,n,i,s)}}),o;if(n="number"!=typeof n?o._orientation[1]:n,i="number"!=typeof i?o._orientation[2]:i,void 0===s){if("number"!=typeof t)return o._orientation;o._orientation=[t,n,i]}for(var r=o._getSoundIds(s),a=0;a<r.length;a++){var l=o._soundById(r[a]);if(l){if("number"!=typeof t)return l._orientation;l._orientation=[t,n,i],l._node&&(l._panner||(l._pos||(l._pos=o._pos||[0,0,-.5]),e(l,"spatial")),void 0!==l._panner.orientationX?(l._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),l._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),l._panner.orientationZ.setValueAtTime(i,Howler.ctx.currentTime)):l._panner.setOrientation(t,n,i)),o._emit("orientation",l._id)}}return o},Howl.prototype.pannerAttr=function(){var t,n,i,s=this,o=arguments;if(!s._webAudio)return s;if(0===o.length)return s._pannerAttr;if(1===o.length){if("object"!=typeof o[0])return(i=s._soundById(parseInt(o[0],10)))?i._pannerAttr:s._pannerAttr;t=o[0],void 0===n&&(t.pannerAttr||(t.pannerAttr={coneInnerAngle:t.coneInnerAngle,coneOuterAngle:t.coneOuterAngle,coneOuterGain:t.coneOuterGain,distanceModel:t.distanceModel,maxDistance:t.maxDistance,refDistance:t.refDistance,rolloffFactor:t.rolloffFactor,panningModel:t.panningModel}),s._pannerAttr={coneInnerAngle:void 0!==t.pannerAttr.coneInnerAngle?t.pannerAttr.coneInnerAngle:s._coneInnerAngle,coneOuterAngle:void 0!==t.pannerAttr.coneOuterAngle?t.pannerAttr.coneOuterAngle:s._coneOuterAngle,coneOuterGain:void 0!==t.pannerAttr.coneOuterGain?t.pannerAttr.coneOuterGain:s._coneOuterGain,distanceModel:void 0!==t.pannerAttr.distanceModel?t.pannerAttr.distanceModel:s._distanceModel,maxDistance:void 0!==t.pannerAttr.maxDistance?t.pannerAttr.maxDistance:s._maxDistance,refDistance:void 0!==t.pannerAttr.refDistance?t.pannerAttr.refDistance:s._refDistance,rolloffFactor:void 0!==t.pannerAttr.rolloffFactor?t.pannerAttr.rolloffFactor:s._rolloffFactor,panningModel:void 0!==t.pannerAttr.panningModel?t.pannerAttr.panningModel:s._panningModel})}else 2===o.length&&(t=o[0],n=parseInt(o[1],10));for(var r=s._getSoundIds(n),a=0;a<r.length;a++)if(i=s._soundById(r[a])){var l=i._pannerAttr;l={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:l.coneInnerAngle,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:l.coneOuterAngle,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:l.coneOuterGain,distanceModel:void 0!==t.distanceModel?t.distanceModel:l.distanceModel,maxDistance:void 0!==t.maxDistance?t.maxDistance:l.maxDistance,refDistance:void 0!==t.refDistance?t.refDistance:l.refDistance,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:l.rolloffFactor,panningModel:void 0!==t.panningModel?t.panningModel:l.panningModel};var c=i._panner;c?(c.coneInnerAngle=l.coneInnerAngle,c.coneOuterAngle=l.coneOuterAngle,c.coneOuterGain=l.coneOuterGain,c.distanceModel=l.distanceModel,c.maxDistance=l.maxDistance,c.refDistance=l.refDistance,c.rolloffFactor=l.rolloffFactor,c.panningModel=l.panningModel):(i._pos||(i._pos=s._pos||[0,0,-.5]),e(i,"spatial"))}return s},Sound.prototype.init=function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}}(Sound.prototype.reset);var e=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()}).call(t,n(14))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(i){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=function(e,t,n){if(t>n)throw new RangeError("`min` should be lower than `max`");return e<t?t:e>n?n:e}},function(e,t,n){e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},function(e,t,n){function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}
/*
      object-assign
      (c) Sindre Sorhus
      @license MIT
      */var s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(s){return!1}}()?Object.assign:function(e,t){for(var n,a,l=i(e),c=1;c<arguments.length;c++){for(var d in n=Object(arguments[c]))o.call(n,d)&&(l[d]=n[d]);if(s){a=s(n);for(var u=0;u<a.length;u++)r.call(n,a[u])&&(l[a[u]]=n[a[u]])}}return l}},function(e,t,n){var i=n(19);(e.exports=n(0)(!1)).push([e.i,"@font-face{font-family:iconfont;src:url("+i(n(6))+");src:url("+i(n(6))+'#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAhwAAsAAAAAFIAAAAgjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEbAqYbJNwATYCJANACyIABCAFhG0HgX0bFxFRlFBSF9lPTZ4Etp2Ms+EMcC7A4UYBAA8AAJgAFEgRD//t9799ZuaKP1n/N1SSRrx5IpFJLCKZKhYyidI8UrKX8O6dezMgjh2V5FcjUmiXtL30p5S8y316fk5PqfmxcBvCTbsQNtIEKPwaqJpEaiLh34HNgdY3r0yUidGpIi/uJPq5+f+/n6sTq1saTR/e1gqnU8L/82cc7jbkYWrNkniiUsU8QiMTadITkRSJnE4oCYO1lQNeNLRRhL0Vv/N2Ar2DDvTdvrh7ZKMKRgL1nupMstGaVwkYQxtbO04t4oNKm16mn4D39vPjP7gQCEmVsUMfPjlP2dGv3C7M7BiPtYJ9PoHXs8g4jynEJ2fKRznH5y3tXU2L55iNWXq39Ku1j8/f+fzvH36JMOVh3NE2/vl9E497dywtbLhx2TrdJv/mJVlRqbU6vcZgNJktRI3QEdofZDnPdhlF8OtNkAh7ByCD/QlQwP4CqMD+RhQ1v++D1rIHAB3YQ0TR8wcBDRgPYADjA4xgpiBCzB0EmAcw5GClTzmMuYmVNVZNGL9rRZZ4yaCzuSesNVzoZbMQhyiyEgutN4WFboxgs51MuVyBIGEu34TNfI4bvqoKuJhAYM7tkISXC1v5JY4Ly1fQIY2lUPUzW2jpeRhGX8VkKzbs+WVaKlLOiq3WDBK9p6dy7tAB3OKIjtRqvc13kdLVWfFzA63XFyrn1g7gT12V83eNPdNLtczA6Awyw6YSfTEKmGXpKgShyl+yhmGQv2wFAOytMMtVp59Yg4WnIRh5OUQhVq1BUGNP4SkDJNFTyoPL0/i6DjBab2qfk0QfqzxotuxxRAemzSlYsio6eNqdoJTSZQYfUMjWJE06UjG9X6SndmvDdymVKvFFgxMqnZ3DMNWqJqVEZVLJFHZswexCKcAADKoJeSHorfte8h9De9tyD7MrzqvJnh4e091tkgAGVUecD+lXRRoZuey+y5cvPhYlnkp+x1R0sQo/H4HvoRCt1riEDCfjU6Si0YUoa1pWuqh3t/1wsWRHj6iiwI/Y4IrGu0SixTIUYDTAIOo4BLP/4PE59stp5TW/cMcxVWlCARYH1pVpAA2hgNyKwGQzZmbnws+nKI6mRKTPvEMsl3s76kLkhD88ecgNPVB3NTpfgc5Xp0aZUnUAd7gUnJ6FgiUmUkL+9cZjej2llxJarTAzpE5nltEGQ4qE4D4FhHf3H12j/5wyfEHrPiO1n7ayMBiT3bSH49WH1KUeyvDwYWr6qjpdJcZCy2TvQlPisbjuratqqsuEkGAMZXEBb/lL8CAuz8qOOKMuYkhEg5BMUfEyyfYvfA003n63jr5yKHz0xJJjcp1d/MTG0fCql6S/7vYoAokg3qd4z/HD5e2Yv8kInvYyRHFJb4aPmCRIZjKKZqFGSNgkYxUEPbto3HvztPCfnEzac1oyXWornbPSaPhCayEffwW4GrctiXPdJHlbkfoSJGB2fmEi/JDMuP/Vq587jSbQ0XvCk2Ykge4zf4VszgqxrB0tL/6UHebQxBt76fxL7jutSG9e2kivhxn6qesjuqXljVdmzIPMZz64OmK9yRxUdYSXFiYPBocOFqZElv58tfBB7bNxH2I1Mn9PGrpnD5qDonQsMiOYQWITReUVkElTzopghTO5lUax7PbmqbQ2rpYpldadEd5OWypsO5GffKTTujJEJ9PDqk+3FH0ksyWaExTZ0dlRomY09tx4ZZvm+zRNyMMH6vKUj87Zhmw3ESpWxPnpzYsna7Mrb9RsiyZecQkdrP8SfpDCX+UTeXkmJaig4pPu1k/pF48sC6QI32ndVf1JG+ehXS07NEevdQUnY9zaP70lytkN/vtOPi53GhtPUo455Q6A3MUVWqyjFhaoqXyxlboo5++P3PndD+48wsqgY7e3o3eAII72kVNqoVwoc5bj8iPnn/CGVYkcx1+tetp9b1UnC777Tu5Qfcu3vcfqV0cOOvWvPhRVmk1l32g/holC8/+/OCP82y/dDbMsvgvxMNblx7fEcZs5s8hxZJbTjVhAfp8Z/yh5KtkcRDzzdcgfG8t3KHRUC8lIhVRNcixU0x4d8R+MPla2tJFx6i22vT37LQ729spVps5cYFgfgr0LxKz0bc3U+5X19HH4669h5T7+IsNVgrByvnEbpybt/bD+HZHlPTn14T564uIGznGG4xnmB6ZgUMX4CayBbazymjJW+QE4ACwCP2f1AYyakDo+QwNp6vZtzG5A3fbnnSrT6N8Q7P/OnLf+rM3Z7Y2MbkV+gVbCUoMtir3noPLjpL5V+RoYaZstaBWQTVFCzzPY0YyNvzX5Xm/7ZozvlShpHEBZ67iyaM+jyuASqrWuod45l2cPttCAKB3Oek1QWHlDyewzylbelUX7iyr7/lFtFTDqPYqFSw5ORsv4KYIkSHnc4zoxtRIJNJ7Vv4esVUqsOq3/M6DT+Tz0gmb5JdSAcxzh2llEpLhCU/GL5G5QloZbNDkk5DWJbMP3letILzEVG3cLAhLp8Cku1rPUEkZNTUzGWx9/D2RaShIGuv22fAaQo5fPhTxBD+UlrXt1uy9NnbZMhIhQuGyLjAp3QQQoeYnBWfdOOZAgnuaIIqvBJ8OpvtRbn1e3PHXz9ciedxWsyFGiijqaaKOLPoYYY4o5lliF0OwzQ1rpRJK+LtvqspxE06pTmaaVocuBHIOx7mo17CxAejhiePiyXTTV14oJZUIvEdvPWtlykGhMSjhsLJlxZGwa3ZayN3gietB4v0HjMY2HKl233KAtlYcx") format("woff2"),url('+i(n(20))+') format("woff"),url('+i(n(21))+') format("truetype"),url('+i(n(22))+'#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-notificationfill:before{content:"\\E66A"}.icon-roundaddfill:before{content:"\\E6D8"}.icon-notificationforbidfill:before{content:"\\E6DB"}.icon-speed-:before{content:"\\E6F8"}.icon-speed-1:before{content:"\\E6F9"}.icon-speed-2:before{content:"\\E6FA"}.icon-subtract_fill:before{content:"\\E808"}.icon-pausecircle-fill:before{content:"\\E7CB"}.icon-stopcircle-fill:before{content:"\\E7CC"}.icon-playcircle-fill:before{content:"\\E7CD"}.icon-pausecircle:before{content:"\\E80D"}.icon-stopcircle:before{content:"\\E80E"}.icon-playcircle:before{content:"\\E80F"}.icon-minus:before{content:"\\E828"}.icon-plus:before{content:"\\E829"}',""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){e.exports=n.p+"fonts_/iconfont.4175e88.woff"},function(e,t,n){e.exports=n.p+"fonts_/iconfont.169d273.ttf"},function(e,t,n){e.exports=n.p+"iconfont.svg?9df776fc48542e6eefa4869722fb14a3"},function(e,t,n){var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vueAudioBetter",style:{width:e.totalWidth}},[n("div",{staticClass:"total"},[n("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(e._sToMs(e.seek))+" / "+e._s(e._sToMs(e.duration)))]),e._v(" "),n("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(e.curProgress)+"%")])]),e._v(" "),n("div",{staticClass:"operatorButton"},[e.playing?n("span",{staticClass:"iconfont icon-pausecircle-fill",on:{click:e.togglePlayback}}):n("span",{staticClass:"iconfont icon-playcircle-fill",on:{click:e.togglePlayback}}),e._v(" "),n("span",{staticClass:"iconfont icon-stopcircle-fill",on:{click:e.stop}}),e._v(" "),e.isMute?n("span",{staticClass:"iconfont icon-notificationfill",on:{click:e.handleToggleMute}}):n("span",{staticClass:"iconfont icon-notificationforbidfill",on:{click:e.handleToggleMute}}),e._v(" "),n("span",{staticClass:"iconfont icon-roundaddfill",on:{click:function(t){return e.handleSetVolume(!0)}}}),e._v(" "),n("span",{staticClass:"iconfont icon-subtract_fill",on:{click:function(t){return e.handleSetVolume(!1)}}}),e._v(" "),.9===e.rate?n("span",{staticClass:"iconfont icon-speed-2 rate",on:{click:e.handleSetRate}}):e._e(),e._v(" "),1===e.rate?n("span",{staticClass:"iconfont icon-speed-1 rate",on:{click:e.handleSetRate}}):e._e(),e._v(" "),1.2===e.rate?n("span",{staticClass:"iconfont icon-speed- rate",on:{click:e.handleSetRate}}):e._e()]),e._v(" "),n("div",{ref:"slider",staticClass:"slider",on:{click:e.handleModifyProgress}},[n("div",{staticClass:"progressInfo"}),e._v(" "),n("div",{staticClass:"process",style:{width:e.pWidth}}),e._v(" "),n("div",{ref:"trunk",staticClass:"thunk",style:{left:e.left}},[n("div",{staticClass:"block"})])])])},staticRenderFns:[]};t.a=i},function(e,t,n){function i(e){n(25)}var s=n(7),o=n(27),r=i,a=n(2)(s.a,o.a,!1,r,"data-v-3a8dc9f9",null);t.a=a.exports},function(e,t,n){var i=n(26);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("5920a118",i,!0,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,".vueAudioBetter[data-v-3a8dc9f9]{display:flex;align-items:center;justify-content:space-between;overflow:hidden;width:300px;height:40px;line-height:40px;margin:14px;padding:0 14px;border-radius:20px;box-shadow:5px 5px 10px -4px #63645e;background-image:linear-gradient(90deg,#9ca5f5,#7ff5ae)}.vueAudioBetter span[data-v-3a8dc9f9]{font-size:16px;color:#1f0719c7;cursor:pointer}.operate span[data-v-3a8dc9f9]:last-child{position:relative;top:-1px;font-size:14px;color:#1f0719c7;cursor:default}.vueAudioBetter .iconfont[data-v-3a8dc9f9]:active{position:relative;top:2px;left:2px}.vueAudioBetter .slider[data-v-3a8dc9f9]{position:relative;width:40%;height:4px;background:#f8f7f7;border-radius:2px;cursor:pointer}.slider .process[data-v-3a8dc9f9]{position:absolute;left:0;top:0;width:112px;height:4px;border-radius:2px;background:#409eff}.slider .thunk[data-v-3a8dc9f9]{position:absolute;left:100px;top:-3px;width:8px;height:8px}.slider .block[data-v-3a8dc9f9]{width:8px;height:8px;border-radius:50%;border:1px solid #409eff;background:#fff;transition:all .2s}.slider .block[data-v-3a8dc9f9]:hover{transform:scale(1.1);opacity:.6}.slider .progressInfo[data-v-3a8dc9f9]{position:absolute;top:-28px;color:#117eeb;font-weight:600}",""])},function(e,t,n){var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vueAudioBetter",style:{width:e.totalWidth}},[n("div",{staticClass:"operate"},[e.playing?n("span",{staticClass:"iconfont icon-pausecircle-fill",on:{click:e.togglePlayback}}):n("span",{staticClass:"iconfont icon-playcircle-fill",on:{click:e.togglePlayback}}),e._v(" "),n("span",{staticClass:"iconfont icon-stopcircle-fill",on:{click:e.stop}}),e._v(" "),n("span",{staticStyle:{color:"white","padding-left":"6px"}},[e._v(e._s(e._sToMs(e.seek))+" / "+e._s(e._sToMs(e.duration)))])]),e._v(" "),n("div",{ref:"slider",staticClass:"slider",on:{click:e.handleModifyProgress}},[n("div",{staticClass:"progressInfo"}),e._v(" "),n("div",{staticClass:"process",style:{width:e.pWidth}}),e._v(" "),n("div",{ref:"trunk",staticClass:"thunk",style:{left:e.left}},[n("div",{staticClass:"block"})])]),e._v(" "),e.isMute?n("span",{staticClass:"iconfont icon-notificationfill",on:{click:e.handleToggleMute}}):n("span",{staticClass:"iconfont icon-notificationforbidfill",on:{click:e.handleToggleMute}})])},staticRenderFns:[]};t.a=i}])),se={props:[""],data:()=>({activeForms:null}),mounted:function(){let e=this.$el.querySelector("button[type=submit]");null!==e&&e.addEventListener("click",function(e){this.formIsValid()?console.log("form sent!"):e.preventDefault()}.bind(this))},methods:{formIsValid:function(e,t){let n=[];n.empty="Não pode ficar em branco",n.email="Email inválido",n.missmatch="Campos não estão iguais",n.invalid="Campo inválido ou incompleto",void 0!==t&&n.push.apply(n,t);let i=0;if(void 0===e)return void console.warn("Error: form not found");this.$el=e;let s=this.$el,o=this.$el.querySelectorAll("input:not(.vs__search)"),r=this.$el.querySelectorAll(".v-select"),a=this.$el.querySelectorAll(".mx-datepicker"),l=this.$el.querySelectorAll("textarea"),c=this.$el.querySelectorAll("select"),d=this.$el.querySelectorAll(".b-form-datepicker"),u=[];return u.push.apply(u,o),u.push.apply(u,r),u.push.apply(u,a),u.push.apply(u,l),u.push.apply(u,c),u.push.apply(u,d),Object.values(u).forEach((e=>{let t=e.parentNode,s=!0;if(null!==t){if(null===t.querySelector(".invalid-feedback")){let e=document.createElement("div");e.className="invalid-feedback",t.appendChild(e)}}if(!0===e.required&&(""===e.value&&"radio"!==e.type&&"checkbox"!==e.type&&(i++,s=!1,e.classList.remove("is-valid"),e.classList.add("is-invalid"),null!==t&&""==t.querySelector(".invalid-feedback").innerHTML&&(t.querySelector(".invalid-feedback").innerHTML=n.empty)),""!==e.value&&"radio"!==e.type&&"checkbox"!==e.type&&(e.classList.remove("is-invalid"),e.classList.add("is-valid")),"radio"===e.type||"checkbox"===e.type)){let t=this.$el.querySelectorAll('input[name="'+e.name+'"]'),n=0;t.forEach((e=>{e.checked&&n++})),0===n&&(i++,s=!1,t.forEach((e=>{e.classList.remove("is-valid"),e.classList.add("is-invalid")})))}if(null!==e.getAttribute("data-confirm")){let o=document.getElementById(e.getAttribute("data-confirm"));null!==o&&o.value!==e.value&&(i++,s=!1,null!==t&&null!==t.querySelector(".invalid-feedback")&&(t.querySelector(".invalid-feedback").innerHTML=n.missmatch))}if(""!==e.pattern&&void 0!==e.pattern&&""!==e.value){new RegExp(e.pattern,"g").test(e.value)||(i++,s=!1,null!==t&&null!==t.querySelector(".invalid-feedback")&&(t.querySelector(".invalid-feedback").innerHTML=n.invalid))}"email"===e.type&&(-1!==e.value.indexOf("@")&&-1!==e.value.indexOf(".")||""===e.value||(i++,s=!1,null!==t&&null!==t.querySelector(".invalid-feedback")&&(t.querySelector(".invalid-feedback").innerHTML=n.email))),-1!==Object.values(e.classList).indexOf("v-select")&&null===e.querySelector(".vs__selected")&&(i++,s=!1,e.classList.add("is-invalid"),null!==t&&null!==t.querySelector(".invalid-feedback")&&(t.querySelector(".invalid-feedback").innerHTML=n.empty)),-1!==Object.values(e.classList).indexOf("mx-datepicker")&&""===e.querySelector(".mx-input").value&&(i++,s=!1,e.classList.add("is-invalid"),null!==t&&null!==t.querySelector(".invalid-feedback")&&(t.querySelector(".invalid-feedback").innerHTML=n.empty)),-1!==Object.values(e.classList).indexOf("b-form-datepicker")&&"No date selected"===e.querySelector("label").innerHTML&&(i++,s=!1,e.classList.add("is-invalid"),null!==t&&null!==t.querySelector(".invalid-feedback")&&(t.querySelector(".invalid-feedback").innerHTML=n.empty)),s?(e.classList.remove("is-invalid"),e.classList.add("is-valid")):(e.classList.remove("is-valid"),e.classList.add("is-invalid"))})),0===i?(console.info("Form Validated, all fields are correct"),s.classList.add("was-validated")):console.warn("Error found, total count: "+i),0===i}}};const oe=n({props:["items","defaultIndex","id"],data:()=>({selectedIndex:null}),methods:{select:function(e){this.selectedIndex=e}},mounted(){this.defaultIndex&&(this.select(this.defaultIndex),i("#collapse"+this.defaultIndex).collapse("show"))}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"accordeon-area"},[t("div",{attrs:{id:"accordeon_"+e.id}},e._l(e.items,(function(n,i){return t("div",{key:i,staticClass:"card mb-2",class:{"selected-accordeon":i===e.selectedIndex}},[t("div",{staticClass:"card-header",attrs:{id:"heading"+i}},[t("h5",{staticClass:"mb-0"},[t("button",{staticClass:"btn btn-link",attrs:{"data-toggle":"collapse","data-target":"#collapse_"+e.id+"_"+i,"aria-expanded":i===e.selectedIndex,"aria-controls":"heading"+i},on:{click:function(t){return e.select(i)}}},[e._v(" "+e._s(n.title)+" ")])])]),t("div",{staticClass:"collapse pl-4 pr-4",attrs:{id:"collapse_"+e.id+"_"+i,"aria-labelledby":"heading"+i,"data-parent":"#accordeon_"+e.id}},[t("div",{staticClass:"card-body pt-0",domProps:{innerHTML:e._s(n.content)}})])])})),0)])}),[],!1,null,null,null,null).exports;var re={exports:{}};"undefined"!=typeof self&&self;const ae=t(re.exports=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var i={};i[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,s){return e.call(t,n,i,s)}}return function(){return e.apply(t,arguments)}}},"0497":function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},"057f":function(e,t,n){var i=n("fc6a"),s=n("241c").f,o={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return r&&"[object Window]"==o.call(e)?function(e){try{return s(e)}catch(t){return r.slice()}}(e):s(i(e))}},"06cf":function(e,t,n){var i=n("83ab"),s=n("d1e7"),o=n("5c6c"),r=n("fc6a"),a=n("c04e"),l=n("5135"),c=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=r(e),t=a(t,!0),c)try{return d(e,t)}catch(n){}if(l(e,t))return o(!s.f.call(e,t),e[t])}},"07ac":function(e,t,n){var i=n("23e7"),s=n("6f53").values;i({target:"Object",stat:!0},{values:function(e){return s(e)}})},"0cfb":function(e,t,n){var i=n("83ab"),s=n("d039"),o=n("cc12");e.exports=!i&&!s((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1276:function(e,t,n){var i=n("d784"),s=n("44e7"),o=n("825a"),r=n("1d80"),a=n("4840"),l=n("8aa5"),c=n("50c4"),d=n("14c3"),u=n("9263"),p=n("d039"),f=[].push,h=Math.min,m=4294967295,v=!p((function(){return!RegExp(m,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(r(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!s(e))return t.call(i,e,o);for(var a,l,c,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,v=new RegExp(e.source,p+"g");(a=u.call(v,i))&&!((l=v.lastIndex)>h&&(d.push(i.slice(h,a.index)),a.length>1&&a.index<i.length&&f.apply(d,a.slice(1)),c=a[0].length,h=l,d.length>=o));)v.lastIndex===a.index&&v.lastIndex++;return h===i.length?!c&&v.test("")||d.push(""):d.push(i.slice(h)),d.length>o?d.slice(0,o):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var s=r(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,s,n):i.call(String(s),t,n)},function(e,s){var r=n(i,e,this,s,i!==t);if(r.done)return r.value;var u=o(e),p=String(this),f=a(u,RegExp),g=u.unicode,_=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),y=new f(v?u:"^(?:"+u.source+")",_),b=void 0===s?m:s>>>0;if(0===b)return[];if(0===p.length)return null===d(y,p)?[p]:[];for(var w=0,x=0,C=[];x<p.length;){y.lastIndex=v?x:0;var S,k=d(y,v?p:p.slice(x));if(null===k||(S=h(c(y.lastIndex+(v?0:x)),p.length))===w)x=l(p,x,g);else{if(C.push(p.slice(w,x)),C.length===b)return C;for(var T=1;T<=k.length-1;T++)if(C.push(k[T]),C.length===b)return C;x=w=S}}return C.push(p.slice(w)),C}]}),!v)},"13d5":function(e,t,n){var i=n("23e7"),s=n("d58f").left,o=n("a640"),r=n("ae40"),a=o("reduce"),l=r("reduce",{1:0});i({target:"Array",proto:!0,forced:!a||!l},{reduce:function(e){return s(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var i=n("c6b6"),s=n("9263");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return s.call(e,t)}},"159b":function(e,t,n){var i=n("da84"),s=n("fdbc"),o=n("17c2"),r=n("9112");for(var a in s){var l=i[a],c=l&&l.prototype;if(c&&c.forEach!==o)try{r(c,"forEach",o)}catch(d){c.forEach=o}}},"17c2":function(e,t,n){var i=n("b727").forEach,s=n("a640"),o=n("ae40"),r=s("forEach"),a=o("forEach");e.exports=r&&a?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var i=n("b622")("iterator"),s=!1;try{var o=0,r={next:function(){return{done:!!o++}},return:function(){s=!0}};r[i]=function(){return this},Array.from(r,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!s)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(a){}return n}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var i=n("d039"),s=n("b622"),o=n("2d00"),r=s("species");e.exports=function(e){return o>=51||!i((function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"217d":function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,i=e.length;n<i&&!1!==t(e[n],n);n++);}}},"23cb":function(e,t,n){var i=n("a691"),s=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?s(n+t,0):o(n,t)}},"23e7":function(e,t,n){var i=n("da84"),s=n("06cf").f,o=n("9112"),r=n("6eeb"),a=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,d,u,p,f,h=e.target,m=e.global,v=e.stat;if(n=m?i:v?i[h]||a(h,{}):(i[h]||{}).prototype)for(d in t){if(p=t[d],u=e.noTargetGet?(f=s(n,d))&&f.value:n[d],!c(m?d:h+(v?".":"#")+d,e.forced)&&void 0!==u){if(typeof p==typeof u)continue;l(p,u)}(e.sham||u&&u.sham)&&o(p,"sham",!0),r(n,d,p,e)}}},"241c":function(e,t,n){var i=n("ca84"),s=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,s)}},"25f0":function(e,t,n){var i=n("6eeb"),s=n("825a"),o=n("d039"),r=n("ad6d"),a="toString",l=RegExp.prototype,c=l[a],d=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),u=c.name!=a;(d||u)&&i(RegExp.prototype,a,(function(){var e=s(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in l)?r.call(e):n)}),{unsafe:!0})},"2d00":function(e,t,n){var i,s,o=n("da84"),r=n("342f"),a=o.process,l=a&&a.versions,c=l&&l.v8;c?s=(i=c.split("."))[0]+i[1]:r&&(!(i=r.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/))&&(s=i[1]),e.exports=s&&+s},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,t,n){var i=n("f5df"),s=n("3f8c"),o=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||s[i(e)]}},"37e8":function(e,t,n){var i=n("83ab"),s=n("9bf2"),o=n("825a"),r=n("df75");e.exports=i?Object.defineProperties:function(e,t){o(e);for(var n,i=r(t),a=i.length,l=0;a>l;)s.f(e,n=i[l++],t[n]);return e}},"3b81":function(e,t,n){},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){var i=n("6547").charAt,s=n("69f3"),o=n("7dd0"),r="String Iterator",a=s.set,l=s.getterFor(r);o(String,"String",(function(e){a(this,{type:r,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?{value:void 0,done:!0}:(e=i(n,s),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){var i=n("23e7"),s=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=s},{forEach:s})},"428f":function(e,t,n){var i=n("da84");e.exports=i},"42a0":function(e,t){var n,i,s=9007199254740991,o="[object Arguments]",r="[object Function]",a="[object GeneratorFunction]",l=/^(?:0|[1-9]\d*)$/,c=Object.prototype,d=c.hasOwnProperty,u=c.toString,p=c.propertyIsEnumerable,f=(n=Object.keys,i=Object,function(e){return n(i(e))}),h=Math.max,m=!p.call({valueOf:1},"valueOf");function v(e,t){var n=w(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&x(e)}(e)&&d.call(e,"callee")&&(!p.call(e,"callee")||u.call(e)==o)}(e)?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],i=n.length,s=!!i;for(var r in e)!t&&!d.call(e,r)||s&&("length"==r||_(r,i))||n.push(r);return n}function g(e,t,n){var i=e[t];d.call(e,t)&&b(i,n)&&(void 0!==n||t in e)||(e[t]=n)}function _(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||l.test(e))&&e>-1&&e%1==0&&e<t}function y(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||c)}function b(e,t){return e===t||e!=e&&t!=t}var w=Array.isArray;function x(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}(e.length)&&!function(e){var t=C(e)?u.call(e):"";return t==r||t==a}(e)}function C(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var S,k=(S=function(e,t){if(m||y(t)||x(t))!function(e,t,n,i){n||(n={});for(var s=-1,o=t.length;++s<o;){var r=t[s],a=i?i(n[r],e[r],r,n,e):void 0;g(n,r,void 0===a?e[r]:a)}}(t,function(e){return x(e)?v(e):function(e){if(!y(e))return f(e);var t=[];for(var n in Object(e))d.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}(t),e);else for(var n in t)d.call(t,n)&&g(e,n,t[n])},function(e,t){return t=h(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=h(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var r=Array(t+1);++i<t;)r[i]=n[i];return r[t]=o,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,r)}}((function(e,t){var n=-1,i=t.length,s=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(s=S.length>3&&"function"==typeof s?(i--,s):void 0,o&&function(e,t,n){if(!C(n))return!1;var i=typeof t;return!!("number"==i?x(n)&&_(t,n.length):"string"==i&&t in n)&&b(n[t],e)}(t[0],t[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var r=t[n];r&&S(e,r,n,s)}return e})));e.exports=k},"44ad":function(e,t,n){var i=n("d039"),s=n("c6b6"),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var i=n("b622"),s=n("7c73"),o=n("9bf2"),r=i("unscopables"),a=Array.prototype;null==a[r]&&o.f(a,r,{configurable:!0,value:s(null)}),e.exports=function(e){a[r][e]=!0}},"44e7":function(e,t,n){var i=n("861d"),s=n("c6b6"),o=n("b622")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==s(e))}},"466d":function(e,t,n){var i=n("d784"),s=n("825a"),o=n("50c4"),r=n("1d80"),a=n("8aa5"),l=n("14c3");i("match",1,(function(e,t,n){return[function(t){var n=r(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=s(e),c=String(this);if(!r.global)return l(r,c);var d=r.unicode;r.lastIndex=0;for(var u,p=[],f=0;null!==(u=l(r,c));){var h=String(u[0]);p[f]=h,""===h&&(r.lastIndex=a(c,o(r.lastIndex),d)),f++}return 0===f?null:p}]}))},4840:function(e,t,n){var i=n("825a"),s=n("1c0b"),o=n("b622")("species");e.exports=function(e,t){var n,r=i(e).constructor;return void 0===r||null==(n=i(r)[o])?t:s(n)}},4930:function(e,t,n){var i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var i=n("fc6a"),s=n("50c4"),o=n("23cb"),r=function(e){return function(t,n,r){var a,l=i(t),c=s(l.length),d=o(r,c);if(e&&n!=n){for(;c>d;)if((a=l[d++])!=a)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:r(!0),indexOf:r(!1)}},"4de4":function(e,t,n){var i=n("23e7"),s=n("b727").filter,o=n("1dde"),r=n("ae40"),a=o("filter"),l=r("filter");i({target:"Array",proto:!0,forced:!a||!l},{filter:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){var i=n("0366"),s=n("7b0b"),o=n("9bdd"),r=n("e95a"),a=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,d,u,p,f,h=s(e),m="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,_=void 0!==g,y=c(h),b=0;if(_&&(g=i(g,v>2?arguments[2]:void 0,2)),null==y||m==Array&&r(y))for(n=new m(t=a(h.length));t>b;b++)f=_?g(h[b],b):h[b],l(n,b,f);else for(p=(u=y.call(h)).next,n=new m;!(d=p.call(u)).done;b++)f=_?o(u,g,[d.value,b],!0):d.value,l(n,b,f);return n.length=b,n}},"50c4":function(e,t,n){var i=n("a691"),s=Math.min;e.exports=function(e){return e>0?s(i(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5692:function(e,t,n){var i=n("c430"),s=n("c6cd");(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var i=n("d066"),s=n("241c"),o=n("7418"),r=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(r(e)),n=o.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("1d80"),s="["+n("5899")+"]",o=RegExp("^"+s+s+"*"),r=RegExp(s+s+"*$"),a=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(r,"")),n}};e.exports={start:a(1),end:a(2),trim:a(3)}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"60da":function(e,t,n){var i=n("83ab"),s=n("d039"),o=n("df75"),r=n("7418"),a=n("d1e7"),l=n("7b0b"),c=n("44ad"),d=Object.assign,u=Object.defineProperty;e.exports=!d||s((function(){if(i&&1!==d({b:1},d(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),s="abcdefghijklmnopqrst";return e[n]=7,s.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||o(d({},t)).join("")!=s}))?function(e,t){for(var n=l(e),s=arguments.length,d=1,u=r.f,p=a.f;s>d;)for(var f,h=c(arguments[d++]),m=u?o(h).concat(u(h)):o(h),v=m.length,g=0;v>g;)f=m[g++],i&&!p.call(h,f)||(n[f]=h[f]);return n}:d},6547:function(e,t,n){var i=n("a691"),s=n("1d80"),o=function(e){return function(t,n){var o,r,a=String(s(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(o=a.charCodeAt(l))<55296||o>56319||l+1===c||(r=a.charCodeAt(l+1))<56320||r>57343?e?a.charAt(l):o:e?a.slice(l,l+2):r-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(e,t,n){var i=n("861d"),s=n("e8b5"),o=n("b622")("species");e.exports=function(e,t){var n;return s(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!s(n.prototype)?i(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var i,s,o,r=n("7f9a"),a=n("da84"),l=n("861d"),c=n("9112"),d=n("5135"),u=n("f772"),p=n("d012"),f=a.WeakMap;if(r){var h=new f,m=h.get,v=h.has,g=h.set;i=function(e,t){return g.call(h,e,t),t},s=function(e){return m.call(h,e)||{}},o=function(e){return v.call(h,e)}}else{var _=u("state");p[_]=!0,i=function(e,t){return c(e,_,t),t},s=function(e){return d(e,_)?e[_]:{}},o=function(e){return d(e,_)}}e.exports={set:i,get:s,has:o,enforce:function(e){return o(e)?s(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=s(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6dd8":function(e,t,n){(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var s=i[n];e.call(t,s[1],s[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},r=["top","right","bottom","left","width","height","size","weight"],a="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,s=0;function r(){n&&(n=!1,e()),i&&l()}function a(){o(r)}function l(){var e=Date.now();if(n){if(e-s<2)return;i=!0}else n=!0,i=!1,setTimeout(a,t);s=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;r.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},u=g(0,0,0,0);function p(e){return parseFloat(e)||0}function f(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return u;var i=d(e).getComputedStyle(e),s=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var s=i[n],o=e["padding-"+s];t[s]=p(o)}return t}(i),o=s.left+s.right,r=s.top+s.bottom,a=p(i.width),l=p(i.height);if("border-box"===i.boxSizing&&(Math.round(a+o)!==t&&(a-=f(i,"left","right")+o),Math.round(l+r)!==n&&(l-=f(i,"top","bottom")+r)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(a+o)-t,h=Math.round(l+r)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(h)&&(l-=h)}return g(s.left,s.top,a,l)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return i?m(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):h(e):u}function g(e,t,n,i){return{x:e,y:t,width:n,height:i}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),y=function(){return function(e,t){var n,i,s,o,r,a,l,d=(i=(n=t).x,s=n.y,o=n.width,r=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),c(l,{x:i,y:s,width:o,height:r,top:s,right:i+o,bottom:r+s,left:i}),l);c(this,{target:e,contentRect:d})}}(),b=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new y(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,x=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),i=new b(t,n,this);w.set(this,i)}}();["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var C=void 0!==s.ResizeObserver?s.ResizeObserver:x;t.a=C}).call(this,n("c8ba"))},"6ea2":function(e,t,n){var i=n("890c");n.n(i).a},"6eeb":function(e,t,n){var i=n("da84"),s=n("9112"),o=n("5135"),r=n("ce4e"),a=n("8925"),l=n("69f3"),c=l.get,d=l.enforce,u=String(String).split("String");(e.exports=function(e,t,n,a){var l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||s(n,"name",t),d(n).source=u.join("string"==typeof t?t:"")),e!==i?(l?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=n:s(e,t,n)):c?e[t]=n:r(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},"6f53":function(e,t,n){var i=n("83ab"),s=n("df75"),o=n("fc6a"),r=n("d1e7").f,a=function(e){return function(t){for(var n,a=o(t),l=s(a),c=l.length,d=0,u=[];c>d;)n=l[d++],i&&!r.call(a,n)||u.push(e?[n,a[n]]:a[n]);return u}};e.exports={entries:a(!0),values:a(!1)}},7156:function(e,t,n){var i=n("861d"),s=n("d2bb");e.exports=function(e,t,n){var o,r;return s&&"function"==typeof(o=t.constructor)&&o!==n&&i(r=o.prototype)&&r!==n.prototype&&s(e,r),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var i=n("428f"),s=n("5135"),o=n("e538"),r=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});s(t,e)||r(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,n){var i,s=n("825a"),o=n("37e8"),r=n("7839"),a=n("d012"),l=n("1be4"),c=n("cc12"),d=n("f772"),u="prototype",p="script",f=d("IE_PROTO"),h=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},v=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t,n;v=i?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(i):(t=c("iframe"),n="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var s=r.length;s--;)delete v[u][r[s]];return v()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[u]=s(e),n=new h,h[u]=null,n[f]=e):n=v(),void 0===t?n:o(n,t)}},"7dd0":function(e,t,n){var i=n("23e7"),s=n("9ed3"),o=n("e163"),r=n("d2bb"),a=n("d44e"),l=n("9112"),c=n("6eeb"),d=n("b622"),u=n("c430"),p=n("3f8c"),f=n("ae93"),h=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,v=d("iterator"),g="keys",_="values",y="entries",b=function(){return this};e.exports=function(e,t,n,d,f,w,x){s(n,t,d);var C,S,k,T=function(e){if(e===f&&O)return O;if(!m&&e in L)return L[e];switch(e){case g:case _:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",A=!1,L=e.prototype,E=L[v]||L["@@iterator"]||f&&L[f],O=!m&&E||T(f),M="Array"==t&&L.entries||E;if(M&&(C=o(M.call(new e)),h!==Object.prototype&&C.next&&(u||o(C)===h||(r?r(C,h):"function"!=typeof C[v]&&l(C,v,b)),a(C,P,!0,!0),u&&(p[P]=b))),f==_&&E&&E.name!==_&&(A=!0,O=function(){return E.call(this)}),u&&!x||L[v]===O||l(L,v,O),p[t]=O,f)if(S={values:T(_),keys:w?O:T(g),entries:T(y)},x)for(k in S)(m||A||!(k in L))&&c(L,k,S[k]);else i({target:t,proto:!0,forced:m||A},S);return S}},"7f9a":function(e,t,n){var i=n("da84"),s=n("8925"),o=i.WeakMap;e.exports="function"==typeof o&&/native code/.test(s(o))},"825a":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){var i=n("c04e"),s=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var r=i(t);r in e?s.f(e,r,o(0,n)):e[r]=n}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"88bc":function(e,t,n){(function(t){var n=9007199254740991,i="[object Arguments]",s="[object Function]",o="[object GeneratorFunction]",r="[object Symbol]",a="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=a||l||Function("return this")();function d(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e}var u=Object.prototype,p=u.hasOwnProperty,f=u.toString,h=c.Symbol,m=u.propertyIsEnumerable,v=h?h.isConcatSpreadable:void 0,g=Math.max;function _(e,t,n,i,s){var o=-1,r=e.length;for(n||(n=y),s||(s=[]);++o<r;){var a=e[o];t>0&&n(a)?t>1?_(a,t-1,n,i,s):d(s,a):i||(s[s.length]=a)}return s}function y(e){return w(e)||function(e){return function(e){return x(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?f.call(e):"";return t==s||t==o}(e)}(e)}(e)&&p.call(e,"callee")&&(!m.call(e,"callee")||f.call(e)==i)}(e)||!!(v&&e&&e[v])}function b(e){if("string"==typeof e||function(e){return"symbol"==typeof e||x(e)&&f.call(e)==r}(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var w=Array.isArray;function x(e){return!!e&&"object"==typeof e}var C,S,k=(C=function(e,t){return null==e?{}:function(e,t){return function(e,t,n){for(var i=-1,s=t.length,o={};++i<s;){var r=t[i],a=e[r];n(a,r)&&(o[r]=a)}return o}(e=Object(e),t,(function(t,n){return n in e}))}(e,function(e,t){for(var n=-1,i=e?e.length:0,s=Array(i);++n<i;)s[n]=t(e[n],n,e);return s}(_(t,1),b))},S=g(void 0===S?C.length-1:S,0),function(){for(var e=arguments,t=-1,n=g(e.length-S,0),i=Array(n);++t<n;)i[t]=e[S+t];t=-1;for(var s=Array(S+1);++t<S;)s[t]=e[t];return s[S]=i,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(C,this,s)});e.exports=k}).call(this,n("c8ba"))},"890c":function(e,t,n){},8925:function(e,t,n){var i=n("c6cd"),s=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return s.call(e)}),e.exports=i.inspectSource},"8aa5":function(e,t,n){var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8e95":function(e,t,n){var i=n("c195");e.exports=new i},9020:function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},"90e3":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},9112:function(e,t,n){var i=n("83ab"),s=n("9bf2"),o=n("5c6c");e.exports=i?function(e,t,n){return s.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){var i,s,o=n("ad6d"),r=n("9f7f"),a=RegExp.prototype.exec,l=String.prototype.replace,c=a,d=(i=/a/,s=/b*/g,a.call(i,"a"),a.call(s,"a"),0!==i.lastIndex||0!==s.lastIndex),u=r.UNSUPPORTED_Y||r.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(d||p||u)&&(c=function(e){var t,n,i,s,r=this,c=u&&r.sticky,f=o.call(r),h=r.source,m=0,v=e;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),v=String(e).slice(r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&"\n"!==e[r.lastIndex-1])&&(h="(?: "+h+")",v=" "+v,m++),n=new RegExp("^(?:"+h+")",f)),p&&(n=new RegExp("^"+h+"$(?!\\s)",f)),d&&(t=r.lastIndex),i=a.call(c?n:r,v),c?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=r.lastIndex,r.lastIndex+=i[0].length):r.lastIndex=0:d&&i&&(r.lastIndex=r.global?i.index+i[0].length:t),p&&i&&i.length>1&&l.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i}),e.exports=c},"94ca":function(e,t,n){var i=n("d039"),s=/#|\.prototype\./,o=function(e,t){var n=a[r(e)];return n==c||n!=l&&("function"==typeof t?i(t):!!t)},r=o.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},"99af":function(e,t,n){var i=n("23e7"),s=n("d039"),o=n("e8b5"),r=n("861d"),a=n("7b0b"),l=n("50c4"),c=n("8418"),d=n("65f0"),u=n("1dde"),p=n("b622"),f=n("2d00"),h=p("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",g=f>=51||!s((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),_=u("concat"),y=function(e){if(!r(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};i({target:"Array",proto:!0,forced:!g||!_},{concat:function(e){var t,n,i,s,o,r=a(this),u=d(r,0),p=0;for(t=-1,i=arguments.length;t<i;t++)if(y(o=-1===t?r:arguments[t])){if(p+(s=l(o.length))>m)throw TypeError(v);for(n=0;n<s;n++,p++)n in o&&c(u,p,o[n])}else{if(p>=m)throw TypeError(v);c(u,p++,o)}return u.length=p,u}})},"9bdd":function(e,t,n){var i=n("825a");e.exports=function(e,t,n,s){try{return s?t(i(n)[0],n[1]):t(n)}catch(r){var o=e.return;throw void 0!==o&&i(o.call(e)),r}}},"9bf2":function(e,t,n){var i=n("83ab"),s=n("0cfb"),o=n("825a"),r=n("c04e"),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(o(e),t=r(t,!0),o(n),s)try{return a(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){var i=n("ae93").IteratorPrototype,s=n("7c73"),o=n("5c6c"),r=n("d44e"),a=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=s(i,{next:o(1,n)}),r(e,c,!1,!0),a[c]=l,e}},"9f7f":function(e,t,n){var i=n("d039");function s(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=s("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=s("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a15b:function(e,t,n){var i=n("23e7"),s=n("44ad"),o=n("fc6a"),r=n("a640"),a=[].join,l=s!=Object,c=r("join",",");i({target:"Array",proto:!0,forced:l||!c},{join:function(e){return a.call(o(this),void 0===e?",":e)}})},a48b:function(e,t,n){var i=n("0497"),s=function(e){var t="",n=Object.keys(e);return n.forEach((function(s,o){var r=e[s];(function(e){return/[height|width]$/.test(e)})(s=i(s))&&"number"==typeof r&&(r+="px"),t+=!0===r?s:!1===r?"not "+s:"("+s+": "+r+")",o<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,i){t+=s(n),i<e.length-1&&(t+=", ")})),t):s(e)}},a4d3:function(e,t,n){var i=n("23e7"),s=n("da84"),o=n("d066"),r=n("c430"),a=n("83ab"),l=n("4930"),c=n("fdbf"),d=n("d039"),u=n("5135"),p=n("e8b5"),f=n("861d"),h=n("825a"),m=n("7b0b"),v=n("fc6a"),g=n("c04e"),_=n("5c6c"),y=n("7c73"),b=n("df75"),w=n("241c"),x=n("057f"),C=n("7418"),S=n("06cf"),k=n("9bf2"),T=n("d1e7"),P=n("9112"),A=n("6eeb"),L=n("5692"),E=n("f772"),O=n("d012"),M=n("90e3"),I=n("b622"),j=n("e538"),q=n("746f"),N=n("d44e"),R=n("69f3"),$=n("b727").forEach,D=E("hidden"),B="Symbol",H="prototype",z=I("toPrimitive"),F=R.set,V=R.getterFor(B),W=Object[H],U=s.Symbol,Q=o("JSON","stringify"),G=S.f,Y=k.f,X=x.f,J=T.f,Z=L("symbols"),K=L("op-symbols"),ee=L("string-to-symbol-registry"),te=L("symbol-to-string-registry"),ne=L("wks"),ie=s.QObject,se=!ie||!ie[H]||!ie[H].findChild,oe=a&&d((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=G(W,t);i&&delete W[t],Y(e,t,n),i&&e!==W&&Y(W,t,i)}:Y,re=function(e,t){var n=Z[e]=y(U[H]);return F(n,{type:B,tag:e,description:t}),a||(n.description=t),n},ae=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof U},le=function(e,t,n){e===W&&le(K,t,n),h(e);var i=g(t,!0);return h(n),u(Z,i)?(n.enumerable?(u(e,D)&&e[D][i]&&(e[D][i]=!1),n=y(n,{enumerable:_(0,!1)})):(u(e,D)||Y(e,D,_(1,{})),e[D][i]=!0),oe(e,i,n)):Y(e,i,n)},ce=function(e,t){h(e);var n=v(t),i=b(n).concat(fe(n));return $(i,(function(t){a&&!de.call(n,t)||le(e,t,n[t])})),e},de=function(e){var t=g(e,!0),n=J.call(this,t);return!(this===W&&u(Z,t)&&!u(K,t))&&(!(n||!u(this,t)||!u(Z,t)||u(this,D)&&this[D][t])||n)},ue=function(e,t){var n=v(e),i=g(t,!0);if(n!==W||!u(Z,i)||u(K,i)){var s=G(n,i);return!s||!u(Z,i)||u(n,D)&&n[D][i]||(s.enumerable=!0),s}},pe=function(e){var t=X(v(e)),n=[];return $(t,(function(e){u(Z,e)||u(O,e)||n.push(e)})),n},fe=function(e){var t=e===W,n=X(t?K:v(e)),i=[];return $(n,(function(e){!u(Z,e)||t&&!u(W,e)||i.push(Z[e])})),i};l||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=M(e),n=function(e){this===W&&n.call(K,e),u(this,D)&&u(this[D],t)&&(this[D][t]=!1),oe(this,t,_(1,e))};return a&&se&&oe(W,t,{configurable:!0,set:n}),re(t,e)},A(U[H],"toString",(function(){return V(this).tag})),A(U,"withoutSetter",(function(e){return re(M(e),e)})),T.f=de,k.f=le,S.f=ue,w.f=x.f=pe,C.f=fe,j.f=function(e){return re(I(e),e)},a&&(Y(U[H],"description",{configurable:!0,get:function(){return V(this).description}}),r||A(W,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:U}),$(b(ne),(function(e){q(e)})),i({target:B,stat:!0,forced:!l},{for:function(e){var t=String(e);if(u(ee,t))return ee[t];var n=U(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(u(te,e))return te[e]},useSetter:function(){se=!0},useSimple:function(){se=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!a},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:ue}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe,getOwnPropertySymbols:fe}),i({target:"Object",stat:!0,forced:d((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(m(e))}}),Q&&i({target:"JSON",stat:!0,forced:!l||d((function(){var e=U();return"[null]"!=Q([e])||"{}"!=Q({a:e})||"{}"!=Q(Object(e))}))},{stringify:function(e,t,n){for(var i,s=[e],o=1;arguments.length>o;)s.push(arguments[o++]);if(i=t,(f(t)||void 0!==e)&&!ae(e))return p(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!ae(t))return t}),s[1]=t,Q.apply(null,s)}}),U[H][z]||P(U[H],z,U[H].valueOf),N(U,B),O[D]=!0},a623:function(e,t,n){var i=n("23e7"),s=n("b727").every,o=n("a640"),r=n("ae40"),a=o("every"),l=r("every");i({target:"Array",proto:!0,forced:!a||!l},{every:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,n){var i=n("23e7"),s=n("4df4");i({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:s})},a640:function(e,t,n){var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},a9e3:function(e,t,n){var i=n("83ab"),s=n("da84"),o=n("94ca"),r=n("6eeb"),a=n("5135"),l=n("c6b6"),c=n("7156"),d=n("c04e"),u=n("d039"),p=n("7c73"),f=n("241c").f,h=n("06cf").f,m=n("9bf2").f,v=n("58a8").trim,g="Number",_=s[g],y=_.prototype,b=l(p(y))==g,w=function(e){var t,n,i,s,o,r,a,l,c=d(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=v(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:i=2,s=49;break;case 79:case 111:i=8,s=55;break;default:return+c}for(r=(o=c.slice(2)).length,a=0;a<r;a++)if((l=o.charCodeAt(a))<48||l>s)return NaN;return parseInt(o,i)}return+c};if(o(g,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var x,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(b?u((function(){y.valueOf.call(n)})):l(n)!=g)?c(new _(w(t)),n,C):w(t)},S=i?f(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;S.length>k;k++)a(_,x=S[k])&&!a(C,x)&&m(C,x,h(_,x));C.prototype=y,y.constructor=C,r(s,g,C)}},ac1f:function(e,t,n){var i=n("23e7"),s=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},ad6d:function(e,t,n){var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var i=n("83ab"),s=n("d039"),o=n("5135"),r=Object.defineProperty,a={},l=function(e){throw e};e.exports=function(e,t){if(o(a,e))return a[e];t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,d=o(t,0)?t[0]:l,u=o(t,1)?t[1]:void 0;return a[e]=!!n&&!s((function(){if(c&&!i)return!0;var e={length:-1};c?r(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,d,u)}))}},ae93:function(e,t,n){var i,s,o,r=n("e163"),a=n("9112"),l=n("5135"),c=n("b622"),d=n("c430"),u=c("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(s=r(r(o)))!==Object.prototype&&(i=s):p=!0),null==i&&(i={}),d||l(i,u)||a(i,u,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},b041:function(e,t,n){var i=n("00ee"),s=n("f5df");e.exports=i?{}.toString:function(){return"[object "+s(this)+"]"}},b0c0:function(e,t,n){var i=n("83ab"),s=n("9bf2").f,o=Function.prototype,r=o.toString,a=/^\s*function ([^ (]*)/,l="name";i&&!(l in o)&&s(o,l,{configurable:!0,get:function(){try{return r.call(this).match(a)[1]}catch(e){return""}}})},b622:function(e,t,n){var i=n("da84"),s=n("5692"),o=n("5135"),r=n("90e3"),a=n("4930"),l=n("fdbf"),c=s("wks"),d=i.Symbol,u=l?d:d&&d.withoutSetter||r;e.exports=function(e){return o(c,e)||(a&&o(d,e)?c[e]=d[e]:c[e]=u("Symbol."+e)),c[e]}},b64b:function(e,t,n){var i=n("23e7"),s=n("7b0b"),o=n("df75");i({target:"Object",stat:!0,forced:n("d039")((function(){o(1)}))},{keys:function(e){return o(s(e))}})},b727:function(e,t,n){var i=n("0366"),s=n("44ad"),o=n("7b0b"),r=n("50c4"),a=n("65f0"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,d=4==e,u=6==e,p=5==e||u;return function(f,h,m,v){for(var g,_,y=o(f),b=s(y),w=i(h,m,3),x=r(b.length),C=0,S=v||a,k=t?S(f,x):n?S(f,0):void 0;x>C;C++)if((p||C in b)&&(_=w(g=b[C],C,y),e))if(t)k[C]=_;else if(_)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:l.call(k,g)}else if(d)return!1;return u?-1:c||d?d:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},bcf7:function(e,t,n){var i=n("9020"),s=n("217d").each;function o(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(e){var t=new i(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;s(t,(function(n,i){if(n.equals(e))return n.destroy(),!t.splice(i,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){s(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";s(this.handlers,(function(t){t[e]()}))}},e.exports=o},c04e:function(e,t,n){var i=n("861d");e.exports=function(e,t){if(!i(e))return e;var n,s;if(t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!i(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},c195:function(e,t,n){var i=n("bcf7"),s=n("217d"),o=s.each,r=s.isFunction,a=s.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var s=this.queries,l=n&&this.browserIsIncapable;return s[e]||(s[e]=new i(e,l)),r(t)&&(t={match:t}),a(t)||(t=[t]),o(t,(function(t){r(t)&&(t={match:t}),s[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var i=n("da84"),s=n("ce4e"),o="__core-js_shared__",r=i[o]||s(o,{});e.exports=r},c832:function(e,t,n){(function(t){var n,i="__lodash_hash_undefined__",s=1/0,o="[object Function]",r="[object GeneratorFunction]",a="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,d=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,h="object"==typeof t&&t&&t.Object===Object&&t,m="object"==typeof self&&self&&self.Object===Object&&self,v=h||m||Function("return this")(),g=Array.prototype,_=Function.prototype,y=Object.prototype,b=v["__core-js_shared__"],w=(n=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",x=_.toString,C=y.hasOwnProperty,S=y.toString,k=RegExp("^"+x.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=v.Symbol,P=g.splice,A=D(v,"Map"),L=D(Object,"create"),E=T?T.prototype:void 0,O=E?E.toString:void 0;function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function j(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function q(e,t){for(var n,i,s=e.length;s--;)if((n=e[s][0])===(i=t)||n!=n&&i!=i)return s;return-1}function N(e,t){var n;t=function(e,t){if(F(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!W(e))||c.test(e)||!l.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:F(n=t)?n:B(n);for(var i=0,s=t.length;null!=e&&i<s;)e=e[H(t[i++])];return i&&i==s?e:void 0}function R(e){if(!V(e)||(t=e,w&&w in t))return!1;var t,n=function(e){var t=V(e)?S.call(e):"";return t==o||t==r}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?k:f;return n.test(function(e){if(null!=e){try{return x.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function $(e,t){var n,i,s=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?s["string"==typeof t?"string":"hash"]:s.map}function D(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return R(n)?n:void 0}M.prototype.clear=function(){this.__data__=L?L(null):{}},M.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},M.prototype.get=function(e){var t=this.__data__;if(L){var n=t[e];return n===i?void 0:n}return C.call(t,e)?t[e]:void 0},M.prototype.has=function(e){var t=this.__data__;return L?void 0!==t[e]:C.call(t,e)},M.prototype.set=function(e,t){return this.__data__[e]=L&&void 0===t?i:t,this},I.prototype.clear=function(){this.__data__=[]},I.prototype.delete=function(e){var t=this.__data__,n=q(t,e);return!(n<0||(n==t.length-1?t.pop():P.call(t,n,1),0))},I.prototype.get=function(e){var t=this.__data__,n=q(t,e);return n<0?void 0:t[n][1]},I.prototype.has=function(e){return q(this.__data__,e)>-1},I.prototype.set=function(e,t){var n=this.__data__,i=q(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},j.prototype.clear=function(){this.__data__={hash:new M,map:new(A||I),string:new M}},j.prototype.delete=function(e){return $(this,e).delete(e)},j.prototype.get=function(e){return $(this,e).get(e)},j.prototype.has=function(e){return $(this,e).has(e)},j.prototype.set=function(e,t){return $(this,e).set(e,t),this};var B=z((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(W(e))return O?O.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}(t);var n=[];return d.test(e)&&n.push(""),e.replace(u,(function(e,t,i,s){n.push(i?s.replace(p,"$1"):t||e)})),n}));function H(e){if("string"==typeof e||W(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}function z(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,s=t?t.apply(this,i):i[0],o=n.cache;if(o.has(s))return o.get(s);var r=e.apply(this,i);return n.cache=o.set(s,r),r};return n.cache=new(z.Cache||j),n}z.Cache=j;var F=Array.isArray;function V(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function W(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&S.call(e)==a}e.exports=function(e,t,n){var i=null==e?void 0:N(e,t);return void 0===i?n:i}}).call(this,n("c8ba"))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"==typeof window&&(n=window)}e.exports=n},c975:function(e,t,n){var i=n("23e7"),s=n("4d64").indexOf,o=n("a640"),r=n("ae40"),a=[].indexOf,l=!!a&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),d=r("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:l||!c||!d},{indexOf:function(e){return l?a.apply(this,arguments)||0:s(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var i=n("5135"),s=n("fc6a"),o=n("4d64").indexOf,r=n("d012");e.exports=function(e,t){var n,a=s(e),l=0,c=[];for(n in a)!i(r,n)&&i(a,n)&&c.push(n);for(;t.length>l;)i(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},cc12:function(e,t,n){var i=n("da84"),s=n("861d"),o=i.document,r=s(o)&&s(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},cca6:function(e,t,n){var i=n("23e7"),s=n("60da");i({target:"Object",stat:!0,forced:Object.assign!==s},{assign:s})},ce4e:function(e,t,n){var i=n("da84"),s=n("9112");e.exports=function(e,t){try{s(i,e,t)}catch(n){i[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("428f"),s=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e])||o(s[e]):i[e]&&i[e][t]||s[e]&&s[e][t]}},d1e7:function(e,t,n){var i={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,o=s&&!i.call({1:2},1);t.f=o?function(e){var t=s(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,n){n("746f")("iterator")},d2bb:function(e,t,n){var i=n("825a"),s=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return i(n),s(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(e,t,n){var i=n("00ee"),s=n("6eeb"),o=n("b041");i||s(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,n){var i=n("9bf2").f,s=n("5135"),o=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!s(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},d58f:function(e,t,n){var i=n("1c0b"),s=n("7b0b"),o=n("44ad"),r=n("50c4"),a=function(e){return function(t,n,a,l){i(n);var c=s(t),d=o(c),u=r(c.length),p=e?u-1:0,f=e?-1:1;if(a<2)for(;;){if(p in d){l=d[p],p+=f;break}if(p+=f,e?p<0:u<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:u>p;p+=f)p in d&&(l=n(l,d[p],p,c));return l}};e.exports={left:a(!1),right:a(!0)}},d784:function(e,t,n){n("ac1f");var i=n("6eeb"),s=n("d039"),o=n("b622"),r=n("9263"),a=n("9112"),l=o("species"),c=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d="$0"==="a".replace(/./,"$0"),u=o("replace"),p=!!/./[u]&&""===/./[u]("a","$0"),f=!s((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,u){var h=o(e),m=!s((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=m&&!s((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!m||!v||"replace"===e&&(!c||!d||p)||"split"===e&&!f){var g=/./[h],_=n(h,""[e],(function(e,t,n,i,s){return t.exec===r?m&&!s?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),y=_[0],b=_[1];i(String.prototype,e,y),i(RegExp.prototype,h,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}u&&a(RegExp.prototype[h],"sham",!0)}},d81d:function(e,t,n){var i=n("23e7"),s=n("b727").map,o=n("1dde"),r=n("ae40"),a=o("map"),l=r("map");i({target:"Array",proto:!0,forced:!a||!l},{map:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var i=n("23e7"),s=n("83ab"),o=n("56ef"),r=n("fc6a"),a=n("06cf"),l=n("8418");i({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(e){for(var t,n,i=r(e),s=a.f,c=o(i),d={},u=0;c.length>u;)void 0!==(n=s(i,t=c[u++]))&&l(d,t,n);return d}})},ddb0:function(e,t,n){var i=n("da84"),s=n("fdbc"),o=n("e260"),r=n("9112"),a=n("b622"),l=a("iterator"),c=a("toStringTag"),d=o.values;for(var u in s){var p=i[u],f=p&&p.prototype;if(f){if(f[l]!==d)try{r(f,l,d)}catch(m){f[l]=d}if(f[c]||r(f,c,u),s[u])for(var h in o)if(f[h]!==o[h])try{r(f,h,o[h])}catch(m){f[h]=o[h]}}}},df75:function(e,t,n){var i=n("ca84"),s=n("7839");e.exports=Object.keys||function(e){return i(e,s)}},e01a:function(e,t,n){var i=n("23e7"),s=n("83ab"),o=n("da84"),r=n("5135"),a=n("861d"),l=n("9bf2").f,c=n("e893"),d=o.Symbol;if(s&&"function"==typeof d&&(!("description"in d.prototype)||void 0!==d().description)){var u={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new d(e):void 0===e?d():d(e);return""===e&&(u[t]=!0),t};c(p,d);var f=p.prototype=d.prototype;f.constructor=p;var h=f.toString,m="Symbol(test)"==String(d("test")),v=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=a(this)?this.valueOf():this,t=h.call(e);if(r(u,e))return"";var n=m?t.slice(7,-1):t.replace(v,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:p})}},e163:function(e,t,n){var i=n("5135"),s=n("7b0b"),o=n("f772"),r=n("e177"),a=o("IE_PROTO"),l=Object.prototype;e.exports=r?Object.getPrototypeOf:function(e){return e=s(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){var i=n("fc6a"),s=n("44d2"),o=n("3f8c"),r=n("69f3"),a=n("7dd0"),l="Array Iterator",c=r.set,d=r.getterFor(l);e.exports=a(Array,"Array",(function(e,t){c(this,{type:l,target:i(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),o.Arguments=o.Array,s("keys"),s("values"),s("entries")},e439:function(e,t,n){var i=n("23e7"),s=n("d039"),o=n("fc6a"),r=n("06cf").f,a=n("83ab"),l=s((function(){r(1)}));i({target:"Object",stat:!0,forced:!a||l,sham:!a},{getOwnPropertyDescriptor:function(e,t){return r(o(e),t)}})},e538:function(e,t,n){var i=n("b622");t.f=i},e893:function(e,t,n){var i=n("5135"),s=n("56ef"),o=n("06cf"),r=n("9bf2");e.exports=function(e,t){for(var n=s(t),a=r.f,l=o.f,c=0;c<n.length;c++){var d=n[c];i(e,d)||a(e,d,l(t,d))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e95a:function(e,t,n){var i=n("b622"),s=n("3f8c"),o=i("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||r[o]===e)}},eaf9:function(e,t,n){var i=n("3b81");n.n(i).a},f013:function(e,t,n){var i=n("fdb2");n.n(i).a},f5df:function(e,t,n){var i=n("00ee"),s=n("c6b6"),o=n("b622")("toStringTag"),r="Arguments"==s(function(){return arguments}());e.exports=i?s:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),o))?n:r?s(t):"Object"==(i=s(t))&&"function"==typeof t.callee?"Arguments":i}},f6fd:function(e,t){var n,i,s;n=document,i="currentScript",s=n.getElementsByTagName("script"),i in n||Object.defineProperty(n,i,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in s)if(s[e].src==t||"interactive"==s[e].readyState)return s[e];return null}}})},f772:function(e,t,n){var i=n("5692"),s=n("90e3"),o=i("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},f7fe:function(e,t,n){(function(t){var n=NaN,i="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,u=c||d||Function("return this")(),p=Object.prototype.toString,f=Math.max,h=Math.min,m=function(){return u.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==i}(e))return n;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var c=r.test(e);return c||a.test(e)?l(e.slice(2),c?2:8):o.test(e)?n:+e}e.exports=function(e,t,n){var i,s,o,r,a,l,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var n=i,o=s;return i=s=void 0,c=t,r=e.apply(o,n)}function y(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-c>=o}function b(){var e=m();if(y(e))return w(e);a=setTimeout(b,function(e){var n=t-(e-l);return u?h(n,o-(e-c)):n}(e))}function w(e){return a=void 0,p&&i?_(e):(i=s=void 0,r)}function x(){var e=m(),n=y(e);if(i=arguments,s=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(b,t),d?_(e):r}(l);if(u)return a=setTimeout(b,t),_(l)}return void 0===a&&(a=setTimeout(b,t)),r}return t=g(t)||0,v(n)&&(d=!!n.leading,o=(u="maxWait"in n)?f(g(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),x.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=s=a=void 0},x.flush=function(){return void 0===a?r:w(m())},x}}).call(this,n("c8ba"))},fb15:function(e,t,n){var i;function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.r(t),"undefined"!=typeof window&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1])),n("4de4"),n("4160"),n("a15b"),n("d81d"),n("fb6a"),n("07ac"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b");var a=n("a48b"),l=n.n(a);function c(e,t,n,i,s,o,r,a){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=l):s&&(l=a?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(e,t){return l.call(t),d(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:c}}var d=c({computed:{isPropsUpdated:function(){var e=this;return Object.keys(this.$props).forEach((function(t){return e[t]})),this.updateSwitch=!this.updateSwitch}},watch:{isPropsUpdated:function(){"function"==typeof this.onPropsUpdated&&this.onPropsUpdated()}}},void 0,void 0,!1,null,null,null).exports,u=n("88bc"),p=n.n(u),f=n("42a0"),h=n.n(f),m=n("c832"),v=n.n(m),g=function(e,t,n){e&&(e.data=e.data||{},e.data[t]=r({},e.data[t],{},n))},_=function(e,t,n){e&&(e.data=e.data||{},e.data[t]=n)},y=["class","staticClass","style","attrs","props","domProps","on","nativeOn","directives","scopesSlots","slot","ref","key"],b=function e(t){var n=t.context&&t.context.$createElement,i=!!t.componentOptions,s=!t.tag,o=i?t.componentOptions.children:t.children;if(s)return t.text;var r=function(e,t){var n=p()(e.data,y);if(t){var i=e.componentOptions;h()(n,{props:i.propsData,on:i.listeners})}return n.key&&(n.key=n.key+"-cloned-cid"),n}(t,i);return n(i?t.componentOptions.Ctor:t.tag,r,o?o.map((function(t){return e(t)})):void 0)},w=function(e,t,n){if(e){var i=e.data||{};return void 0===t?i:v()(i,t,n)}},x=function(e){return r({},w(e,"staticStyle",{}),{},w(e,"style",{}))};n("99af"),n("a623"),n("a630"),n("c975"),n("13d5"),n("a9e3"),n("ac1f"),n("3ca3"),n("466d");var C=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},S=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},k=function(e){return e.unslick||!e.infinite?0:e.slideCount},T=function(e){var t=e.slidesToShow,n=e.centerMode,i=e.rtl,s=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(s)>0&&(o+=1),i&&t%2==0&&(o+=1),o}return i?0:t-1},P=function(e){var t=e.slidesToShow,n=e.centerMode,i=e.rtl,s=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(s)>0&&(o+=1),i||t%2!=0||(o+=1),o}return i?t-1:0},A=function(e){return e.currentSlide-E(e)},L=function(e){return e.currentSlide+O(e)},E=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},O=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},M=function(e){for(var t=[],n=A(e),i=L(e),s=n;s<i;s++)e.lazyLoadedList.indexOf(s)<0&&t.push(s);return t},I=function(e,t){var n,i,s,o,a=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,d=e.currentSlide,u=e.lazyLoad,p=e.infinite;if(n=c%a!=0?0:(c-d)%a,"previous"===t.message)o=d-(s=0===n?a:l-n),u&&!p&&(o=-1==(i=d-s)?c-1:i);else if("next"===t.message)o=d+(s=0===n?a:n),u&&!p&&(o=(d+a)%c+n);else if("dots"===t.message){if((o=t.index*t.slidesToScroll)===t.currentSlide)return null}else if("children"===t.message){if((o=t.index)===t.currentSlide)return null;if(p){var f=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+T(e)?"left":"right":e.targetSlide<e.currentSlide-P(e)?"right":"left"}(r({},e,{targetSlide:o}));o>t.currentSlide&&"left"===f?o-=c:o<t.currentSlide&&"right"===f&&(o+=c)}}else if("index"===t.message&&(o=Number(t.index))===t.currentSlide)return null;return o},j=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).reduce((function(t,n){return t[n]=e[n],t}),{})},q=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,i=e.infinite?-1*e.slidesToShow:0,s=[];n<t;)s.push(n),n=i+e.slidesToScroll,i+=Math.min(e.slidesToScroll,e.slidesToShow);return s}(e),i=0;if(t>n[n.length-1])t=n[n.length-1];else for(var s in n){if(t<n[s]){t=i;break}i=n[s]}return t},N=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,i=e.listRef.querySelectorAll(".slick-slide");if(Array.from(i).every((function(i){if(e.vertical){if(i.offsetTop+H(i)/2>-1*e.swipeLeft)return n=i,!1}else if(i.offsetLeft-t+B(i)/2>-1*e.swipeLeft)return n=i,!1;return!0})),!n)return 0;var s=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-s)||1}return e.slidesToScroll},R=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},$={TRACK:["fade","cssEase","speed","infinite","centerMode","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"],DOT:["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","children","customPaging","infinite"],ARROW:["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]},D=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},B=function(e){return e&&e.offsetWidth||0},H=function(e){return e&&e.offsetHeight||0},z=function(e){var t,n,i,s,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,i=Math.atan2(n,t),(s=Math.round(180*i/Math.PI))<0&&(s=360-Math.abs(s)),s<=45&&s>=0||s<=360&&s>=315?"left":s>=135&&s<=225?"right":!0===o?s>=35&&s<=135?"up":"down":"vertical"},F=function(e){if(e.unslick)return 0;V(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,i=e.slideIndex,s=e.trackRef,o=e.infinite,r=e.centerMode,a=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,d=e.slideWidth,u=e.listWidth,p=e.variableWidth,f=e.slideHeight,h=e.fade,m=e.vertical;if(h||1===e.slideCount)return 0;var v=0;if(o?(v=-S(e),a%c!=0&&i+c>a&&(v=-(i>a?l-(i-a):a%c)),r&&(v+=parseInt(l/2))):(a%c!=0&&i+c>a&&(v=l-a%c),r&&(v=parseInt(l/2))),t=m?i*f*-1+v*f:i*d*-1+v*d,!0===p){var g,_=s.$el;if(g=i+S(e),t=(n=_&&_.childNodes[g])?-1*n.offsetLeft:0,!0===r){g=o?i+S(e):i,n=_&&_.children[g],t=0;for(var y=0;y<g;y++)t-=_&&_.children[y]&&_.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(u-n.offsetWidth)/2}}return t},V=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},W=function(e){var t,n;V(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var i=e.slideCount+2*e.slidesToShow;e.vertical?n=i*e.slideHeight:t=function(e){return 1===e.slideCount?1:S(e)+e.slideCount+k(e)}(e)*e.slideWidth;var s={opacity:1,transition:"",WebkitTransition:""};return e.useTransform?s=r({},s,{WebkitTransform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",transform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",msTransform:e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)"}):e.vertical?s.top=e.left:s.left=e.left,e.fade&&(s={opacity:1}),t&&(s.width=t+"px"),n&&(s.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?s.marginTop=e.left+"px":s.marginLeft=e.left+"px"),s},U=function(e){V(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=W(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Q={accessibility:{type:Boolean,default:!0},adaptiveHeight:{type:Boolean,default:!1},arrows:{type:Boolean,default:!0},asNavFor:{type:Object,default:null},autoplay:{type:Boolean,default:!1},autoplaySpeed:{type:Number,default:3e3},centerMode:{type:Boolean,default:!1},centerPadding:{type:String,default:"50px"},cssEase:{type:String,default:"ease"},dots:{type:Boolean,default:!1},dotsClass:{type:String,default:"slick-dots"},draggable:{type:Boolean,default:!0},edgeFriction:{type:Number,default:.35},fade:{type:Boolean,default:!1},focusOnSelect:{type:Boolean,default:!1},infinite:{type:Boolean,default:!0},initialSlide:{type:Number,default:0},lazyLoad:{type:String,default:null},pauseOnDotsHover:{type:Boolean,default:!1},pauseOnFocus:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!0},responsive:{type:Array,default:null},rows:{type:Number,default:1},rtl:{type:Boolean,default:!1},slidesPerRow:{type:Number,default:1},slidesToScroll:{type:Number,default:1},slidesToShow:{type:Number,default:1},speed:{type:Number,default:500},swipe:{type:Boolean,default:!0},swipeToSlide:{type:Boolean,default:!1},touchMove:{type:Boolean,default:!0},touchThreshold:{type:Number,default:5},useCSS:{type:Boolean,default:!0},useTransform:{type:Boolean,default:!0},variableWidth:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},waitForAnimate:{type:Boolean,default:!0}},G=Object.keys(Q).reduce((function(e,t){return e[t]=Q[t].default,e}),{});function Y(e,t){if(null==e)return{};var n,i,s=function(e,t){if(null==e)return{};var n,i,s={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function X(e){return(X="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})(e)}Object.keys(Q).reduce((function(e,t){return e[t]=Q[t].type,e}),{}),n("cca6"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("ddb0");var J=n("6dd8"),Z=n("f7fe"),K=n.n(Z),ee=function(e){var t,n,i,s,o;return i=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(s=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-s-1&&o<=e.currentSlide+s&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":o===e.currentSlide}},te=function(e,t){return null!=e.key&&String(e.key)||t},ne={name:"SliderTrack",props:$.TRACK,methods:{cloneSlide:function(e,t){var n=this,i=b(e);return i.key=t.key,g(i,"class",t.class),g(i,"attrs",t.attrs),g(i,"style",t.style),g(i,"on",{click:function(i){w(e,"on.click",(function(){}))(i),n.$emit("childClicked",t.childOnClickOptions)}}),i},renderSlides:function(e,t){var n,i=this,s=this.$createElement,o=[],a=[],l=[],c=t.length,d=A(e),u=L(e);return t.forEach((function(t,p){var f,h={message:"children",index:p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?t:s("div");var m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width="number"==typeof e.slideWidth?"".concat(e.slideWidth,"px"):e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top="".concat(-e.index*parseInt(e.slideHeight),"px"):t.left="".concat(-e.index*parseInt(e.slideWidth),"px"),t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),t}(r({},e,{index:p})),v=ee(r({},e,{index:p}));if(o.push(i.cloneSlide(f,{key:"original"+te(f,p),class:v,style:r({outline:"none"},m),attrs:{tabIndex:"-1","data-index":p,"aria-hidden":"".concat(!v["slick-active"])},childOnClickOptions:h})),e.infinite&&!1===e.fade&&c>e.slidesToShow){var g=c-p;g<=S(e)&&c!==e.slidesToShow&&((n=-g)>=d&&(f=t),v=ee(r({},e,{index:n})),a.push(i.cloneSlide(f,{key:"precloned"+te(f,n),class:v,style:m,attrs:{tabIndex:"-1","data-index":n,"aria-hidden":"".concat(!v["slick-active"])},childOnClickOptions:h}))),c!==e.slidesToShow&&((n=c+p)<u&&(f=t),v=ee(r({},e,{index:n})),l.push(i.cloneSlide(f,{key:"postcloned"+te(f,n),class:v,style:m,attrs:{tabIndex:"-1","data-index":n,"aria-hidden":"".concat(!v["slick-active"])},childOnClickOptions:h})))}}),this),e.rtl?a.concat(o,l).reverse():a.concat(o,l)}},render:function(){var e=arguments[0],t=this.renderSlides(this.$props,this.$slots.default);return e("div",{class:{"slick-track":!0,"slick-center":this.$props.centerMode},style:this.trackStyle},[t])}},ie=ne;n("6ea2");var se=c(ie,void 0,void 0,!1,null,"e4caeaf8",null).exports;function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n("b0c0"),n("25f0");var re,ae={name:"SliderArrow",props:[].concat((re=$.ARROW,function(e){if(Array.isArray(e))return oe(e)}(re)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(re)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}(re)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["type"]),render:function(){var e,t=this,n=arguments[0],i={"slick-arrow":!0},s=!0,o={currentSlide:this.currentSlide,slideCount:this.slideCount};return"previous"===this.type?(i["slick-prev"]=!0,!this.infinite&&(0===this.currentSlide||this.slideCount<=this.slidesToShow)&&(i["slick-disabled"]=!0,s=!1),o.key="0",e=this.prevArrow?this.prevArrow(o)[0]:n("button",{attrs:{type:"button","data-role":"none"},style:"display: block;"},["Previous"])):(i["slick-next"]=!0,D(this.$props)||(i["slick-disabled"]=!0,s=!1),o.key="1",e=this.nextArrow?this.nextArrow(o)[0]:n("button",{attrs:{type:"button","data-role":"none"},style:"display: block;"},["Next"])),_(e,"key",o.key),g(e,"class",i),g(e,"on",{click:function(){s&&t.$emit("arrowClicked",{message:t.type})}}),e}},le=ae;n("f013");var ce=c(le,void 0,void 0,!1,null,"21137603",null).exports;n("1276");var de={name:"SliderDots",props:$.DOT,render:function(){var e,t=this,n=arguments[0],i=(e={slideCount:this.slideCount,slidesToScroll:this.slidesToScroll,slidesToShow:this.slidesToShow,infinite:this.infinite}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,o=Array.apply(null,Array(i+1).join("0").split("")).map((function(e,i){var s=i*t.slidesToScroll,o=i*t.slidesToScroll+(t.slidesToScroll-1),r={"slick-active":t.currentSlide>=s&&t.currentSlide<=o},a={message:"dots",index:i,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide},l=t.customPaging?t.customPaging(i)[0]:n("button",[i+1]);return n("li",{key:i,class:r,on:{click:function(){return t.$emit("dotClicked",a)}}},[l])})),r=s({},this.dotsClass,!0);return n("ul",{style:{display:"block"},class:r},[o])}},ue=c(de,void 0,void 0,!1,null,null,null).exports,pe={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0},fe={name:"InnerSlider",components:{SliderTrack:se,SliderArrow:ce,SliderDots:ue},mixins:[d],inheritAttrs:!1,props:r({},Q,{unslick:{type:Boolean,default:!1},prevArrow:Function,nextArrow:Function,customPaging:Function}),data:function(){return r({},pe,{currentSlide:this.initialSlide})},computed:{slideCount:function(){return this.$slots.default.length},spec:function(){return r({},this.$props,{},this.$data,{slideCount:this.slideCount})}},created:function(){if(this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null,this.ssrInit(),this.$parent.$emit("init"),this.lazyLoad){var e=M(this.spec);e.length>0&&(this.lazyLoadedList=this.lazyLoadedList.concat(e),this.$parent.$emit("lazyLoad",e))}},mounted:function(){var e=this,t=r({listRef:this.$refs.list,trackRef:this.$refs.track,children:this.$slots.default},this.$props);this.updateState(t,!0),this.adaptHeight(),this.autoPlay&&this.autoPlay("update"),"progressive"===this.lazyLoad&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new J.a((function(){e.animating?(e.onWindowResized(!1),e.callbackTimers.push(setTimeout((function(){return e.onWindowResized()}),e.speed))):e.onWindowResized()})),this.ro.observe(this.$refs.list),Array.prototype.forEach.call(this.$refs.list.querySelectorAll(".slick-slide"),(function(t){t.onfocus=e.pauseOnFocus?e.onSlideFocus:null,t.onblur=e.pauseOnFocus?e.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)},updated:function(){if(this.checkImagesLoad(),this.$parent.$emit("reInit"),this.lazyLoad){var e=M(r({},this.$props,{},this.$data));e.length>0&&(this.lazyLoadedList=this.lazyLoadedList.concat(e),this.$parent.$emit("lazyLoad",e))}this.adaptHeight()},beforeDestroy:function(){this.ro.unobserve(this.$refs.list),this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach((function(e){return clearTimeout(e)})),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer)},methods:{onPropsUpdated:function(){for(var e=this.$props,t=r({listRef:this.$refs.list,trackRef:this.$refs.track,children:this.$slots.default},e,{},this.$data),n=!1,i=0,s=Object.keys(this.$props);i<s.length;i++){var o=s[i];if(!e.hasOwnProperty(o)){n=!0;break}if("object"!==X(e[o])&&"function"!=typeof e[o]&&e[o]!==this.$props[o]){n=!0;break}}this.updateState(t,n),this.currentSlide>=this.slideCount&&this.changeSlide({message:"index",index:this.slideCount-e.slidesToShow,currentSlide:this.currentSlide}),e.autoplay?this.autoPlay("update"):this.pause("paused")},updateState:function(e,t){var n=function(e){var t,n=e.children.length,i=Math.ceil(B(e.listRef)),s=Math.ceil(B(e.trackRef));if(e.vertical)t=i;else{var o=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(o*=i/100),t=Math.ceil((i-o)/e.slidesToShow)}var r=e.listRef&&H(e.listRef.querySelector('[data-index="0"]')),a=r*e.slidesToShow,l=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(l=n-1-e.initialSlide);var c=e.lazyLoadedList||[],d=M({currentSlide:l,lazyLoadedList:c});c.concat(d);var u={slideCount:n,slideWidth:t,listWidth:i,trackWidth:s,currentSlide:l,slideHeight:r,listHeight:a,lazyLoadedList:c};return null===e.autoplaying&&e.autoplay&&(u.autoplaying="playing"),u}(e);e=r({},e,{},n,{slideIndex:n.currentSlide}),e=r({},e,{left:F(e)});var i=W(e);(t||this.slideCount!==e.children.length)&&(n.trackStyle=i),Object.assign(this.$data,n)},adaptHeight:function(){if(this.adaptiveHeight&&this.$refs.list){var e=this.$refs.list.querySelector('[data-index="'.concat(this.currentSlide,'"]'));this.$refs.list.style.height=H(e)+"px"}},ssrInit:function(){var e=S(this.spec),t=k(this.spec);if(this.variableWidth){var n=[],i=[],s=[];this.$slots.default.forEach((function(e){var t=x(e).width;s.push(t),n.push(t)}));for(var o=0;o<e;o++)i.push(s[s.length-1-o]),n.push(s[s.length-1-o]);for(var r=0;r<t;r++)n.push(s[r]);for(var a=0;a<this.currentSlide;a++)i.push(s[a]);n=n.filter((function(e){return e})),i=i.filter((function(e){return e}));var l={width:"calc(".concat(n.join(" + "),")"),left:"calc(".concat(i.map((function(e){return"-".concat(e)})).join(" + "),")")};if(this.centerMode){var c=s[this.currentSlide];l.left="calc(".concat(i.map((function(e){return"-".concat(e)})).join(" + ")," + (100% - ").concat(c,") / 2 )")}this.trackStyle=l}else{var d=e+t+this.slideCount,u=100/this.slidesToShow*d,p=100/d,f=-p*(e+this.currentSlide)*u/100;this.centerMode&&(f+=(100-p*u/100)/2),this.slideWidth=p+"%",this.trackStyle={width:u+"%",left:f+"%"}}},slideHandler:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.asNavFor,s=this.speed,o=this.currentSlide,a=function(e){var t=e.waitForAnimate,n=e.animating,i=e.fade,s=e.infinite,o=e.index,a=e.slideCount,l=e.lazyLoadedList,c=e.lazyLoad,d=e.currentSlide,u=e.centerMode,p=e.slidesToScroll,f=e.slidesToShow,h=e.useCSS;if(t&&n)return{};var m,v,g,_=o,y={},b={};if(i){if(!s&&(o<0||o>=a))return{};o<0?_=o+a:o>=a&&(_=o-a),c&&l.indexOf(_)<0&&l.push(_),y={animating:!0,currentSlide:_,lazyLoadedList:l},b={animating:!1}}else m=_,_<0?(m=_+a,s?a%p!=0&&(m=a-a%p):m=0):!D(e)&&_>d?_=m=d:u&&_>=a?(_=s?a:a-1,m=s?0:a-1):_>=a&&(m=_-a,s?a%p!=0&&(m=0):m=a-f),v=F(r({},e,{slideIndex:_})),g=F(r({},e,{slideIndex:m})),s||(v===g&&(_=m),v=g),c&&l.concat(M(r({},e,{currentSlide:_}))),h?(y={animating:!0,currentSlide:m,trackStyle:U(r({},e,{left:v})),lazyLoadedList:l},b={animating:!1,currentSlide:m,trackStyle:W(r({},e,{left:g})),swipeLeft:null}):y={currentSlide:m,trackStyle:W(r({},e,{left:g})),lazyLoadedList:l};return{state:y,nextState:b}}(r({index:e},this.$props,{},this.$data,{trackRef:this.$refs.track,useCSS:this.useCSS&&!n})),l=a.state,c=a.nextState;if(l){this.$parent.$emit("beforeChange",o,l.currentSlide);var d=l.lazyLoadedList.filter((function(e){return t.lazyLoadedList.indexOf(e)<0}));d.length&&this.$parent.$emit("lazyLoad",d),Object.assign(this.$data,l),i&&i.goTo(e),c&&(this.animationEndCallback=setTimeout((function(){var e=c.animating,n=Y(c,["animating"]);Object.assign(t.$data,n),t.callbackTimers.push(setTimeout((function(){t.animating=e}),10)),t.$parent.$emit("afterChange",l.currentSlide),t.animationEndCallback=void 0}),s))}},onWindowResized:function(e){var t=this;this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=K()((function(){return t.resizeWindow(e)}),50),this.debouncedResize()},resizeWindow:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.$refs.track&&this.$refs.track.$el){var t=r({listRef:this.$refs.list,trackRef:this.$refs.track,children:this.$slots.default},this.$props,{},this.$data);this.updateState(t,e),this.autoplay?this.autoPlay("update"):this.pause("paused"),this.animating=!1,clearTimeout(this.animationEndCallback),this.animationEndCallback=void 0}},checkImagesLoad:function(){var e=this,t=this.$refs.list.querySelectorAll(".slick-slide img"),n=t.length,i=0;Array.prototype.forEach.call(t,(function(t){var s=function(){return++i&&i>=n&&e.onWindowResized()};if(t.onclick){var o=t.onclick;t.onclick=function(){o(),t.parentNode.focus()}}else t.onclick=function(){return t.parentNode.focus()};t.onload||(e.lazyLoad?t.onload=function(){e.adaptHeight(),e.callbackTimers.push(setTimeout(e.onWindowResized,e.speed))}:(t.onload=s,t.onerror=function(){s(),e.$parent.$emit("lazyLoadError")}))}))},progressiveLazyLoad:function(){for(var e=[],t=r({},this.$props,{},this.$data),n=this.currentSlide;n<this.slideCount+k(t);n++)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var i=this.currentSlide-1;i>=-S(t);i--)if(this.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(this.lazyLoadedList=this.lazyLoadedList.concat(e),this.$parent.$emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),this.lazyLoadTimer=void 0)},clickHandler:function(e){!1===this.clickable&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler:function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,this.accessibility,this.rtl);""!==t&&this.changeSlide({message:t})},changeSlide:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r({},this.$props,{},this.$data),i=I(n,e);(0===i||i)&&(!0===t?this.slideHandler(i,t):this.slideHandler(i))},swipeStart:function(e){this.verticalSwiping&&this.disableBodyScroll();var t=function(e,t,n){return!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,this.swipe,this.draggable);""!==t&&Object.assign(this.$data,t)},swipeMove:function(e){var t=this,n=function(e,t){var n=t.scrolling,i=t.animating,s=t.vertical,o=t.swipeToSlide,a=t.verticalSwiping,l=t.rtl,c=t.currentSlide,d=t.edgeFriction,u=t.edgeDragged,p=t.onEdge,f=t.swiped,h=t.swiping,m=t.slideCount,v=t.slidesToScroll,g=t.infinite,_=t.touchObject,y=t.swipeEvent,b=t.listHeight,w=t.listWidth;if(!n){if(i)return e.preventDefault();s&&o&&a&&e.preventDefault();var x,C={},S=F(t);_.curX=e.touches?e.touches[0].pageX:e.clientX,_.curY=e.touches?e.touches[0].pageY:e.clientY,_.swipeLength=Math.round(Math.sqrt(Math.pow(_.curX-_.startX,2)));var k=Math.round(Math.sqrt(Math.pow(_.curY-_.startY,2)));if(!a&&!h&&k>10)return{scrolling:!0};a&&(_.swipeLength=k);var T=(l?-1:1)*(_.curX>_.startX?1:-1);a&&(T=_.curY>_.startY?1:-1);var P=Math.ceil(m/v),A=z(t.touchObject,a),L=_.swipeLength;return g||(0===c&&"right"===A||c+1>=P&&"left"===A||!D(t)&&"left"===A)&&(L=_.swipeLength*d,!1===u&&p&&(p(A),C.edgeDragged=!0)),!f&&y&&(y(A),C.swiped=!0),x=s?S+L*(b/w)*T:l?S-L*T:S+L*T,a&&(x=S+L*T),C=r({},C,{touchObject:_,swipeLeft:x,trackStyle:W(r({},t,{left:x}))}),Math.abs(_.curX-_.startX)<.8*Math.abs(_.curY-_.startY)||_.swipeLength>10&&(C.swiping=!0,e.preventDefault()),C}}(e,r({},this.$props,{},this.$data,{trackRef:this.$refs.track,listRef:this.$refs.list,slideIndex:this.currentSlide,onEdge:function(e){return t.$parent.$emit("edge",e)},swipeEvent:function(e){return t.$parent.$emit("swipe",e)}}));n&&(n.swiping&&(this.clickable=!1),Object.assign(this.$data,n))},swipeEnd:function(e){var t=function(e,t){var n=t.dragging,i=t.swipe,s=t.touchObject,o=t.listWidth,a=t.touchThreshold,l=t.verticalSwiping,c=t.listHeight,d=t.currentSlide,u=t.swipeToSlide,p=t.scrolling,f=t.onSwipe;if(!n)return i&&e.preventDefault(),{};var h=l?c/a:o/a,m=z(s,l),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(p)return v;if(!s.swipeLength)return v;if(s.swipeLength>h){var g,_;switch(e.preventDefault(),f&&f(m),m){case"left":case"up":_=d+N(t),g=u?q(t,_):_,v.currentDirection=0;break;case"right":case"down":_=d-N(t),g=u?q(t,_):_,v.currentDirection=1;break;default:g=d}v.triggerSlideHandler=g}else{var y=F(t);v.trackStyle=U(r({},t,{left:y}))}return v}(e,r({},this.$props,{},this.$data,{trackRef:this.$refs.track,listRef:this.$refs.list,slideIndex:this.currentSlide}));if(t){var n=t.triggerSlideHandler;this.triggerSlideHandler=void 0,Object.assign(this.$data,t),void 0!==n&&(this.slideHandler(n),this.verticalSwiping&&this.enableBodyScroll())}},prev:function(){var e=this;this.callbackTimers.push(setTimeout((function(){return e.changeSlide({message:"previous"})}),0))},next:function(){var e=this;this.callbackTimers.push(setTimeout((function(){return e.changeSlide({message:"next"})}),0))},goTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.currentSlide},n)}),0))},play:function(){var e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else{if(!D(r({},this.$props,{},this.$data)))return!1;e=this.currentSlide+this.slidesToScroll}this.slideHandler(e)},autoPlay:function(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);var t=this.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.autoplaying="playing"},pause:function(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);var t=this.autoplaying;"paused"===e?this.autoplaying="paused":"focused"===e?"hovered"!==t&&"playing"!==t||(this.autoplaying="focused"):"playing"===t&&(this.autoplaying="hovered")},onDotsOver:function(){this.autoplay&&this.pause("hovered")},onDotsLeave:function(){this.autoplay&&"hovered"===this.autoplaying&&this.autoPlay("leave")},onTrackOver:function(){this.autoplay&&this.pause("hovered")},onTrackLeave:function(){this.autoplay&&"hovered"===this.autoplaying&&this.autoPlay("leave")},onSlideFocus:function(){this.autoplay&&this.pause("focused")},onSlideBlur:function(){this.autoplay&&"focused"===this.autoplaying&&this.autoPlay("blur")},selectHandler:function(e){this.focusOnSelect&&this.changeSlide(e)}},render:function(){var e=arguments[0],t={"slick-slider":!0,"slick-initialized":!0,"slick-vertical":this.vertical},n=R(this.spec,$.TRACK);n=j(r({},n));var i,s,o,a=this.pauseOnHover,l=j({mouseenter:a?this.onTrackOver:void 0,mouseover:a?this.onTrackOver:void 0,mouseleave:a?this.onTrackLeave:void 0});if(!0===this.dots&&this.slideCount>=this.slidesToShow){var c=R(this.spec,$.DOT),d=this.pauseOnDotsHover,u=j({mouseenter:d?this.onDotsLeave:void 0,mouseover:d?this.onDotsOver:void 0,mouseleave:d?this.onDotsLeave:void 0});i=e(ue,{props:r({},c),nativeOn:r({},u),on:{dotClicked:this.changeSlide}})}var p=R(this.spec,$.ARROW);this.arrows&&(s=e(ce,{props:r({},r({},p,{type:"previous"})),on:{arrowClicked:this.changeSlide}}),o=e(ce,{props:r({},r({},p,{type:"next"})),on:{arrowClicked:this.changeSlide}}));var f={};this.vertical&&(f={height:"".concat(this.listHeight,"px")});var h={};!1===this.vertical?!0===this.centerMode&&(h={padding:"0px "+this.centerPadding}):!0===this.centerMode&&(h={padding:this.centerPadding+" 0px"});var m,v=r({},this.$parent.$vnode.data.style);this.unslick||(v=r({},v,{},(m=f,Object.keys(m).filter((function(e){return void 0!==m[e]&&null!==m[e]})).reduce((function(e,t){return e[t]=m[t],e}),{})),{},h));var g=this.accessibility,_=this.dragging,y=this.touchMove,b=j({click:this.clickHandler,mousedown:y?this.swipeStart:void 0,mousemove:_&&y?this.swipeMove:void 0,mouseup:y?this.swipeEnd:void 0,mouseleave:_&&y?this.swipeEnd:void 0,touchstart:y?this.swipeStart:void 0,touchmove:_&&y?this.swipeMove:void 0,touchend:y?this.swipeEnd:void 0,touchcancel:_&&y?this.swipeEnd:void 0,keydown:g?this.keyHandler:void 0});return e("div",{class:t,attrs:{dir:!this.unslick&&"ltr"}},[this.unslick?"":s,e("div",{ref:"list",class:"slick-list",on:r({},b),style:v},[e(se,{ref:"track",props:r({},n),nativeOn:r({},l),on:{childClicked:this.selectHandler}},[this.$slots.default])]),this.unslick?"":o,this.unslick?"":i])}},he=fe;n("eaf9");var me=c(he,void 0,void 0,!1,null,"3d1a4f76",null).exports,ve=C()&&n("8e95"),ge={name:"VueSlickCarousel",components:{InnerSlider:me},mixins:[d],inheritAttrs:!1,props:Q,data:function(){return{breakpoint:null}},computed:{settings:function(){var e,t,n=this,i=j(this.$props);return(e=this.breakpoint?"unslick"===(t=this.responsive.filter((function(e){return e.breakpoint===n.breakpoint})))[0].settings?"unslick":r({},G,{},i,{},t[0].settings):r({},G,{},i)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1),e}},created:function(){this.makeBreakpoints()},beforeDestroy:function(){this.clearBreakpoints()},methods:{prev:function(){this.$refs.innerSlider.prev()},next:function(){this.$refs.innerSlider.next()},goTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$refs.innerSlider.goTo(e,t)},pause:function(){this.$refs.innerSlider.pause("paused")},play:function(){this.$refs.innerSlider.autoPlay("play")},onPropsUpdated:function(){this.clearBreakpoints(),this.makeBreakpoints()},clearBreakpoints:function(){this.responsiveMediaHandlers.forEach((function(e){return ve.unregister(e.query,e.handler)})),this.responsiveMediaHandlers=[]},media:function(e,t){C()&&(ve.register(e,t),this.responsiveMediaHandlers.push({query:e,handler:t}))},makeBreakpoints:function(){var e=this;if(this.breakpoint=null,this.responsiveMediaHandlers=[],this.responsive){var t=this.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,i){var s=l()({minWidth:0===i?0:t[i-1]+1,maxWidth:n});e.media(s,(function(){e.breakpoint=n}))}));var n=l()({minWidth:t.slice(-1)[0]});this.media(n,(function(){e.breakpoint=null}))}}},render:function(){var e=arguments[0],t=this.settings,n=this.$slots.default||[];if("unslick"===t)return e("div",{class:"regular slider"},[n]);t.prevArrow=this.$scopedSlots.prevArrow,t.nextArrow=this.$scopedSlots.nextArrow,t.customPaging=this.$scopedSlots.customPaging,n=n.filter((function(e){return!!e.tag}));for(var i=[],s=null,o=0;o<n.length;o+=t.rows*t.slidesPerRow){for(var a=[],l=o;l<o+t.rows*t.slidesPerRow;l+=t.slidesPerRow){for(var c=[],d=l;d<l+t.slidesPerRow&&(t.variableWidth&&x(n[d])&&(s=x(n[d]).width),!(d>=n.length));d+=1){var u=b(n[d]);_(u,"key",100*o+10*l+d),g(u,"attrs",{tabIndex:-1}),g(u,"style",{width:"".concat(100/t.slidesPerRow,"%"),display:"inline-block"}),c.push(u)}a.push(e("div",{key:10*o+l},[c]))}t.variableWidth?i.push(e("div",{key:o,style:{width:s}},[a])):i.push(e("div",{key:o},[a]))}return i.length<=t.slidesToShow&&(t.unslick=!0),e(me,{ref:"innerSlider",props:r({},t),key:Object.values(t).join("")},[i])}},_e=c(ge,void 0,void 0,!1,null,null,null).exports;t.default=_e},fb6a:function(e,t,n){var i=n("23e7"),s=n("861d"),o=n("e8b5"),r=n("23cb"),a=n("50c4"),l=n("fc6a"),c=n("8418"),d=n("b622"),u=n("1dde"),p=n("ae40"),f=u("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),m=d("species"),v=[].slice,g=Math.max;i({target:"Array",proto:!0,forced:!f||!h},{slice:function(e,t){var n,i,d,u=l(this),p=a(u.length),f=r(e,p),h=r(void 0===t?p:t,p);if(o(u)&&("function"!=typeof(n=u.constructor)||n!==Array&&!o(n.prototype)?s(n)&&null===(n=n[m])&&(n=void 0):n=void 0,n===Array||void 0===n))return v.call(u,f,h);for(i=new(void 0===n?Array:n)(g(h-f,0)),d=0;f<h;f++,d++)f in u&&c(i,d,u[f]);return i.length=d,i}})},fc6a:function(e,t,n){var i=n("44ad"),s=n("1d80");e.exports=function(e){return i(s(e))}},fdb2:function(e,t,n){},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default}());const le=n({components:{VueSlickCarousel:ae},props:["id","items","className","labelReadMore","displayTags","perPage"],watch:{items:function(){this.$nextTick((()=>{this.$refs.slick&&this.$refs.slick.$emit("reInit")}))}},data:()=>({currentFilter:"",setup:!1,slickSettings:{arrows:!0,adaptiveHeight:!1,draggable:!0,dots:!1,infinite:!0,speed:300,variableWidth:!1,slidesToShow:0,responsive:[{breakpoint:768,settings:{slidesToShow:1}}]}}),mounted(){this.setupSliderCount(),window.addEventListener("resize",(()=>this.setupSliderCount())),this.$forceUpdate()},methods:{setupSliderCount(){let e=document.getElementById(this.id+"-slider");if(console.log("setup"),e.clientWidth<=500)return void(this.slickSettings.slidesToShow=1);let t=5;t=void 0===this.perPage||""===this.perPage?Math.round(e.clientWidth/284):parseInt(this.perPage),this.slickSettings.slidesToShow=t}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"row article-slider",class:e.className},[t("div",{staticClass:"col-12",class:e.id+"-content",attrs:{id:e.id+"-slider"}},[e.items&&e.items.length>0&&e.slickSettings.slidesToShow>0?t("div",[t("VueSlickCarousel",e._b({ref:"slick",staticClass:"article-slider-content"},"VueSlickCarousel",e.slickSettings,!1),e._l(e.items,(function(n){return t("a",{staticClass:"featured-el news",attrs:{href:n.href}},[t("div",{staticClass:"hover-effect"}),t("div",{staticClass:"image",class:{"no-image":!n.image_url||0===n.image_url}},[n.image_url&&n.image_url.length>0?t("picture",[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.image_url,expression:"item.image_url"}],attrs:{alt:n.title,loading:"lazy"}}),t("div",{staticClass:"spinner-border",attrs:{role:"status"}},[t("span",{staticClass:"visually-hidden"})])]):e._e(),e.displayTags?t("div",{staticClass:"tag",class:"tag-with-color "+n.type,domProps:{textContent:e._s(n.typename)}}):e._e()]),t("div",{staticClass:"title",domProps:{textContent:e._s(n.title)}}),t("div",{staticClass:"desc",domProps:{textContent:e._s(n.lead)}}),t("div",{staticClass:"btn readmore"},[e._v(e._s(e.labelReadMore))])])})),0)],1):e._e()])])}),[],!1,null,"244e85a7",null,null).exports;const ce=n({components:{VueSlickCarousel:ae},props:["id","items","className","labelReadMore","featured","showButton","disableLink"],watch:{items:function(){this.$nextTick((()=>{this.$refs.slick&&this.$refs.slick.$emit("reInit")}))}},data:()=>({currentFilter:"",shoppingIcon:"",slickSettings:{arrows:!0,adaptiveHeight:!1,draggable:!0,slidesToShow:Math.round(i(".main-container").width()/232),dots:!1,infinite:!0,speed:300,variableWidth:!1,responsive:[{breakpoint:800,settings:{centerMode:!0,centerPadding:"40px",slidesToShow:1}}]}}),beforeMount:function(){void 0!==document.getElementById("shopping-icon")&&(this.shoppingIcon=document.getElementById("shopping-icon").innerHTML),"featured"===this.id&&(this.slickSettings.slidesToShow=5,this.slickSettings.responsive=[{breakpoint:1920,settings:{slidesToShow:Math.round(i(".main-container").width()/232)}},{breakpoint:1900,settings:{slidesToShow:5}},{breakpoint:1200,settings:{slidesToShow:3}},{breakpoint:950,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1}}])}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"row featured-product-slider",class:e.className},[t("div",{staticClass:"col-12",class:e.id+"-content",attrs:{id:e.id+"-slider"}},[e.items&&e.items.length>0?t("div",[t("VueSlickCarousel",e._b({ref:"slick",staticClass:"featured-product-content"},"VueSlickCarousel",e.slickSettings,!1),e._l(e.items,(function(n){return t("div",{staticClass:"featured-el news"},[t("div",{staticClass:"hover-effect"}),t("a",{staticClass:"image",attrs:{href:"no"===e.disableLink?n.href:"javascript:void(0)","v-if":!n.image_url||0===n.image_url}},[n.image_url&&n.image_url.length>0?t("picture",[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.image_url,expression:"item.image_url"}],attrs:{alt:n.title,loading:"lazy"}}),t("div",{staticClass:"spinner-border",attrs:{role:"status"}},[t("span",{staticClass:"visually-hidden"})])]):e._e()]),t("a",{staticClass:"title",attrs:{href:"no"===e.disableLink?n.href:"javascript:void(0);"},domProps:{textContent:e._s(n.title)}}),t("div",{staticClass:"priceRange"},[e._v("de R$ 104,30 por "),t("div",{staticClass:"final"},[e._v("R$ 92,50")])]),"yes"===e.showButton?t("a",{staticClass:"btn-green buynow-btn",attrs:{href:"no"===e.disableLink?n.href+"?buynow=true":"javascript:void(0);"}},[t("div",{staticClass:"icon",domProps:{innerHTML:e._s(e.shoppingIcon)}}),t("label",[e._v(" "+e._s(e.$lang.get("page.sellers.buynow")))])]):e._e()])})),0)],1):e._e()])])}),[],!1,null,null,null,null).exports;const de=n({props:{table_title:String,table_data:Object,rows:Number},data:()=>({tableItems:Object,filteredItems:Object,selectedCategory:"",filterTerm:"",currentPage:1,totalPages:0,orderDates:0}),computed:{selectedLanguage:function(){return this.$root.sharedState.language},rowsCount:function(){return void 0===this.rows?10:+this.rows},categoryCount:function(){return Object.keys(this.table_data).length},paginatedItems:function(){return this.paginate()},paginationPages:function(){let e=[];if(e[0]=[],e[1]=[],e[2]=[],e[0].push(0,1,2),this.totalPages<=3){e[1]=void 0,e[2]=void 0,e[0]=[];for(let t=0;t<=this.totalPages;t++)t<=this.totalPages&&e[0].push(t)}else if(this.totalPages<=6){e[1]=void 0;for(let t=3;t<=this.totalPages;t++)t>2&&e[2].push(t)}else if(e[2].push(this.totalPages-2,this.totalPages-1,this.totalPages),this.currentPage-1>1&&this.currentPage-1<this.totalPages-2)for(let t=this.currentPage-2;t<=this.currentPage;t++)t>2&&t<this.totalPages-2&&e[1].push(t);return e}},methods:{paginate(){let e=this.rowsCount*(this.currentPage-1),t=[];this.filterItems();for(let n=0;n<Object.keys(this.filteredItems).length;n++)void 0!==this.filteredItems[n]&&t.push(this.filteredItems[n]);return this.orderByDate(t),t.slice(e,e+this.rowsCount)},selectCategory(e){this.selectedCategory=e,this.tableItems=this.table_data[e].items,this.filteredItems=Object.assign({},this.tableItems)},filterItems(){this.filteredItems=Object.assign({},this.tableItems),""!==this.filterTerm&&(this.filteredItems=Object.keys(this.filteredItems).reduce(((e,t)=>(this.filteredItems[t].title[this.selectedLanguage].toLowerCase().includes(this.filterTerm.toLowerCase())&&(e[t]=this.filteredItems[t]),e)),{}))},changeDateOrder(){this.orderDates=0===this.orderDates?1:0},orderByDate(e){return e=e.sort(((e,t)=>0===this.orderDates?e.date<t.date?-1:e.date>t.date?1:0:e.date>t.date?-1:e.date<t.date?1:0))},formatDate(e){return new Intl.DateTimeFormat(this.selectedLanguage).format(new Date(e))},nextPage(){this.changePage(this.currentPage+1)},previousPage(){this.changePage(this.currentPage-1)},changePage(e){this.currentPage=e<1?1:e>this.totalPages+1?this.totalPages+1:e}},beforeMount(){this.selectCategory(Object.keys(this.table_data)[0]),this.totalPages=Math.floor(Object.keys(this.filteredItems).length/+this.rowsCount),window.tabela=this}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"table-filter pt-4 pb-4"},[void 0!==e.table_title?t("header",{staticClass:"large-title text-center"},[e._v(e._s(e.table_title))]):e._e(),e.categoryCount>1?t("div",{staticClass:"category-area tab-selector"},e._l(e.table_data,(function(n,i){return t("span",{staticClass:"category",class:{selected:e.selectedCategory===i},on:{click:function(t){return e.selectCategory(i)}}},[e._v(" "+e._s(n.title)+" ")])})),0):e._e(),t("div",{staticClass:"filter-input pt-4 pb-4"},[t("span",{staticClass:"filter"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.filterTerm,expression:"filterTerm"}],attrs:{type:"text",size:"45",placeholder:"Busca por itens da lista"},domProps:{value:e.filterTerm},on:{input:function(t){t.target.composing||(e.filterTerm=t.target.value)}}}),t("div",{staticClass:"search-icon"},[t("svg",{attrs:{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{id:"ico-buscar"}},[t("g",{attrs:{id:"ico-search"}},[t("path",{attrs:{d:"M13.8592 13.0189L14.7942 13.0189L20.7 18.9365L18.9365 20.7L13.0189 14.7942L13.0189 13.8592L12.6993 13.5278C11.3501 14.6877 9.59846 15.3859 7.69297 15.3859C3.44408 15.3859 0 11.9419 0 7.69297C0 3.44408 3.44408 0 7.69297 0C11.9419 0 15.3859 3.44408 15.3859 7.69297C15.3859 9.59846 14.6877 11.3501 13.5278 12.6993L13.8592 13.0189ZM2.36707 7.69297C2.36707 10.64 4.74597 13.0189 7.69297 13.0189C10.64 13.0189 13.0189 10.64 13.0189 7.69297C13.0189 4.74597 10.64 2.36707 7.69297 2.36707C4.74597 2.36707 2.36707 4.74597 2.36707 7.69297Z",transform:"translate(3.610547 3.6000001)",id:"Shape",fill:"#00358E","fill-rule":"evenodd",stroke:"none"}}),t("path",{attrs:{d:"M0 0L27.9 0L27.9 27.9L0 27.9L0 0Z",transform:"translate(0.010546875 0)",id:"Path",fill:"none",stroke:"none"}})])])])])])]),t("table",[t("thead",[t("tr",[t("th",[e._v(e._s(e.table_data[e.selectedCategory].title))]),t("th",{staticClass:"date-order",on:{click:e.changeDateOrder}},[e._v("Data "),t("span",{class:{asc:0===e.orderDates,desc:1===e.orderDates}},[e._v("←")])])])]),t("tbody",e._l(e.paginatedItems,(function(n,i){return void 0!==n?t("tr",{class:{"odd-row":i%2==0}},[t("td",[t("a",{attrs:{href:n.target}},[e._v(e._s(n.title))])]),t("td",[e._v(" "+e._s(e.formatDate(n.date))+" ")])]):e._e()})),0)]),t("div",{staticClass:"pagination-pages pt-4 pb-4"},[e.currentPage>1?t("span",{staticClass:"pagination-arrow previousPage",on:{click:e.goToPrev}}):e._e(),e._l(e.paginationPages[0],(function(n){return t("span",{staticClass:"selectPage",class:{selected:e.currentPage===n+1},domProps:{textContent:e._s(n<e.totalPages-1&&n+1!==e.currentPage?n+1+",":n+1)},on:{click:function(t){return e.goToPage(n+1)}}})})),void 0!==e.paginationPages[1]&&e.currentPage>5?t("span",[e._v("...")]):e._e(),e._l(e.paginationPages[1],(function(n){return void 0!==e.paginationPages[1]?t("span",{staticClass:"selectPage",class:{selected:e.currentPage===n+1},domProps:{textContent:e._s(n<e.totalPages-1&&n+1!==e.currentPage?n+1+",":n+1)},on:{click:function(t){return e.goToPage(n+1)}}}):e._e()})),void 0!==e.paginationPages[1]&&e.currentPage<e.totalPages-4?t("span",[e._v("...")]):e._e(),e._l(e.paginationPages[2],(function(n){return void 0!==e.paginationPages[2]?t("span",{staticClass:"selectPage",class:{selected:e.currentPage===n+1},domProps:{textContent:e._s(n<e.totalPages-1&&n+1!==e.currentPage?n+1+",":n+1)},on:{click:function(t){return e.goToPage(n+1)}}}):e._e()})),e.currentPage<e.totalPages?t("span",{staticClass:"pagination-arrow nextPage",on:{click:e.goToNext}}):e._e()],2)])}),[],!1,null,null,null,null).exports;const ue=n({components:{VueSlickCarousel:ae},props:["items","settings","readmore","numberofpositions","textafterbanner"],data:()=>({currentFilter:"",totalOfPositions:4,total:0,hover:!1,activeSlideIndex:0,isMobile:!1,slickSettings:{dots:!0,arrows:!0,infinite:!1,autoplay:!1,speed:0,autoplaySpeed:0,variableWidth:!1,adaptiveHeight:!1,draggable:!0,slidesToShow:1,pauseOnFocus:!0,responsive:[{breakpoint:768,settings:{dots:!0,arrows:!1}}]}}),beforeMount(){let e=this;this.totalOfPositions=parseInt(this.numberofpositions),Object.keys(this.settings).forEach((t=>{e.slickSettings[t]=e.settings[t]})),Object.keys(this.items).forEach((t=>{e.items[t].contentPosition=void 0===e.items[t].contentPosition?0:e.items[t].contentPosition,e.total+=e.items[t].enabled?1:0})),this.identifyViewerType(),window.addEventListener("resize",(e=>{this.identifyViewerType()}),!0)},mounted(){this.recalculateDotHeight()},watch:{hover:function(e){void 0!==this.items[this.activeSlideIndex]&&(this.items[this.activeSlideIndex].showPlayer=!0,this.$forceUpdate())}},methods:{identifyViewerType:function(){this.isMobile=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<=768},recalculateDotHeight:function(){i(this.$el).find(".slick-dots").css("height",13*this.total+18*(this.total-1))},openClosePlayer:function(e,t){void 0!==this.items[e]&&void 0!==this.items[t]&&(this.items[e].showPlayer=!1,this.items[t].showPlayer=!0,this.$forceUpdate())}}},(function(){var e=this,t=e._self._c;return e.total>0?t("VueSlickCarousel",e._b({ref:"header-carousel",staticClass:"header-slider",class:e.textafterbanner?"text-after-banner":"",on:{beforeChange:e.openClosePlayer}},"VueSlickCarousel",e.slickSettings,!1),e._l(e.items,(function(n,i){return n.enabled?t("div",{staticClass:"header",on:{mouseover:function(t){e.hover=!0},mouseleave:function(t){e.hover=!1}}},[null!==n.href?t("a",{staticClass:"full-size-link",attrs:{href:n.href,target:n.target||"_blank"}}):e._e(),""!==n.youtube&&void 0!==n.youtube&&null!==n.youtube&&n.showPlayer?t("youtube-player",{attrs:{"video-content":n.youtube,"show-player":!(e.total>1)||n.showPlayer,"is-iframe":!0}}):e._e(),""===n.youtube||void 0===n.youtube||null===n.youtube?t("div",{staticClass:"slide-content-image"},[n.label||null!==n.href&&!n.hide_button?t("div",{staticClass:"content-area",class:"position-"+n.contentPosition+" "+n.size,style:{width:100/e.totalOfPositions*("double"===n.size?2:1)+"%",left:100/e.totalOfPositions*n.contentPosition+"%"}},[t("div",{staticClass:"caption",domProps:{innerHTML:e._s(n.label)}}),null===n.href||n.hide_button?e._e():t("a",{staticClass:"btn btn-yellow",attrs:{href:n.href,target:n.target||"_blank"},domProps:{textContent:e._s(n.readMore||e.readmore)}})]):e._e(),n.image_url||n.image_mobile_url?e._e():t("div",{staticClass:"image-area-placeholder"}),n.image_url&&!e.isMobile||e.isMobile&&!n.image_mobile_url&&n.image_url?t("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:n.image_url,expression:"item.image_url",arg:"background-image"}],staticClass:"image-area desk"}):e._e(),n.image_mobile_url&&e.isMobile?t("div",{staticClass:"image-area mobile",style:{backgroundImage:"url("+n.image_mobile_url+")"}}):e._e()]):e._e()],1):e._e()})),0):e._e()}),[],!1,null,null,null,null).exports;const pe=n({components:{VueSlickCarousel:ae},props:["items","settings","readmore"],data:()=>({currentFilter:"",lazyLoadEnabled:!0,setupIsDone:!1,slickSettings:{dots:!0,dotsClass:"slick-dots custom-dot-class",arrows:!0,autoplay:!0,infinite:!0,speed:200,variableWidth:!0,adaptiveHeight:!0,draggable:!0,slidesToShow:1,responsive:[{breakpoint:768,settings:{centerMode:!0,slidesToShow:1,slidesPerRow:1}}]}}),beforeMount(){void 0!==this.settings.lazy_load&&(this.lazyLoadEnabled=this.settings.lazy_load),Object.keys(this.settings).forEach(function(e){this.slickSettings[e]=this.settings[e]}.bind(this))},mounted(){-1===this.slickSettings.slidesToShow&&this.setupSliderCount(),this.setupIsDone=!0},methods:{imageMaxWidth:function(e,t){return!0===t&&null!==e.image_width?80-parseInt(e.image_width)+"%":null!==e.image_width?e.image_width+"%":void 0},setupSliderCount(){let e=document.getElementById(this._uid+"-caroussel-slider");if(!e)return;if(console.info("[Sapphire] Setup Content carousel - max-width: "+e.clientWidth),e.clientWidth<=500)return void(this.slickSettings.slidesToShow=1);let t=Math.round(e.clientWidth/284);void 0!==this.perPage&&""!==this.perPage&&(t=parseInt(this.perPage)),this.slickSettings.slidesToShow=t,this.$forceUpdate()},onLoadImage:function(){console.log("loaded")}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"content-carrousel-component",attrs:{id:e._uid+"-caroussel-slider"}},[e.setupIsDone?t("VueSlickCarousel",e._b({staticClass:"content-carrousel"},"VueSlickCarousel",e.slickSettings,!1),e._l(e.items,(function(n,i){return t("div",{staticClass:"content-carrousel-slide"},[t("div",{staticClass:"inside-area"},[n.image_url?t("picture",[e.lazyLoadEnabled?e._e():t("img",{staticClass:"image-area",attrs:{width:e.imageMaxWidth(n),src:n.image_url,loading:"lazy"}}),e.lazyLoadEnabled?t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.image_url,expression:"item.image_url"}],staticClass:"image-area",attrs:{width:e.imageMaxWidth(n),loading:"lazy"},on:{load:function(t){return e.onLoadImage()}}}):e._e(),e.lazyLoadEnabled?t("div",{staticClass:"spinner-border",attrs:{role:"status"}},[t("span",{staticClass:"visually-hidden"})]):e._e()]):e._e(),t("div",{staticClass:"content-area",style:{"max-width":e.imageMaxWidth(n,!0)}},[t("div",{staticClass:"caption",domProps:{innerHTML:e._s(n.label)}}),null!==n.href&&"modal"!==n.target?t("a",{attrs:{href:n.href}},[e._v(e._s(e.readmore))]):e._e(),"modal"===n.target?t("b-button",{directives:[{name:"b-modal",rawName:"v-b-modal",value:"carrosel-modal-"+e._uid+"-"+i,expression:"'carrosel-modal-' + _uid + '-' + index"}],staticClass:"btn btn-yellow"},[e._v(e._s(n.readMore))]):e._e()],1)])])})),0):e._e(),t("div",{staticClass:"modals"},e._l(e.items,(function(n,i){return t("div",["modal"===n.target?t("b-modal",{attrs:{id:"carrosel-modal-"+e._uid+"-"+i,size:"lg","hide-footer":"",centered:"","content-class":"content-carrosel-modal"}},[t("div",{staticClass:"modal-body",domProps:{innerHTML:e._s(n.modal)}})]):e._e()],1)})),0)],1)}),[],!1,null,"227148ec",null,null).exports;const fe=n({components:{VueSlickCarousel:ae},props:{slider_data:Object,slider_settings:Object},data:()=>({currentFilter:"",settings:{dots:!1,arrows:!0,infinite:!1,speed:0,variableWidth:!1,adaptiveHeight:!1,draggable:!0,slidesToShow:1}}),methods:{},beforeMount(){Object.keys(this.slider_settings).forEach((e=>{this.settings[e]=this.slider_settings[e]}))}},(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"histories-slide"}},[t("VueSlickCarousel",e._b({staticClass:"slider"},"VueSlickCarousel",e.settings,!1),e._l(e.slider_data.histories,(function(n){return t("div",{staticClass:"slide"},[t("div",{staticClass:"subtitle-photo",domProps:{textContent:e._s(n.image.title)}}),t("div",{staticClass:"photo"},[t("picture",[t("source",{attrs:{srcset:n.image.png,type:"image/png"}}),t("img",{attrs:{src:n.image.png,alt:n.image.title,loading:"lazy"}})])]),t("div",{staticClass:"content"},[t("div",{staticClass:"title",domProps:{innerHTML:e._s(n.title)}}),t("div",{staticClass:"desc",domProps:{innerHTML:e._s(n.description)}}),t("a",{staticClass:"btn btn-yellow",attrs:{href:n.target},domProps:{textContent:e._s(n.cta)}})])])})),0)],1)}),[],!1,null,"fc725288",null,null).exports;const he=n({components:{VueSlickCarousel:ae},props:["items"],data:()=>({slickSettings:{dots:!0,arrows:!0,infinite:!0,speed:300,variableWidth:!1,adaptiveHeight:!1,draggable:!0,slidesToShow:1,slidesToScroll:1},secondSlickSettings:{dots:!1,arrows:!0,infinite:!0,speed:300,draggable:!0,slidesToShow:1,slidesToScroll:1},isLoading:!1,currentItem:0}),computed:{modalItem:function(){return this.items[this.currentItem]}},methods:{showImage(e){screen.width<768||(i(this.$el).find(".modal").modal("show"),this.$refs["gallerySecondSlick"+this._uid].goTo(e))},nextImage(){this.currentItem<this.items.length?this.currentItem++:this.currentItem=0},previousImage(){this.currentItem>=0?this.currentItem--:this.currentItem=this.items.length-1}},beforeMount(){this.slickSettings.slidesToShow=parseInt(i(".main-container")/244),this.slickSettings.slidesToScroll=parseInt(i(".main-container")/244)},mounted(){this.slickSettings.slidesToShow=parseInt(i(this.$el).find(".gallery-slider").width()/244),this.slickSettings.slidesToScroll=parseInt(i(this.$el).find(".gallery-slider").width()/244),this.slickSettings.asNavFor="#"+this._uid+"-slider-nav",this.secondSlickSettings.asNavFor="#"+this._uid+"-slider-for",i(this.$el).find(".modal").on("shown.bs.modal",(()=>{this.slickSettings.arrows=!1,this.$forceUpdate()})),i(this.$el).find(".modal").on("shown.bs.hidden",(()=>{this.slickSettings.arrows=!0,this.$forceUpdate()}))}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"image-gallery"},[t("div",{staticClass:"gallery"},[t("VueSlickCarousel",e._b({ref:"gallerySlick"+e._uid,staticClass:"gallery-slider",attrs:{asNavFor:e.$refs["gallerySecondSlick"+e._uid]}},"VueSlickCarousel",e.slickSettings,!1),e._l(e.items,(function(n,i){return t("picture",{key:i,on:{click:function(t){return e.showImage(i)}}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.image.thumbnail,expression:"item.image.thumbnail"}],attrs:{alt:n.title,loading:"lazy"}}),t("div",{staticClass:"spinner-border",attrs:{role:"status"}},[t("span",{staticClass:"visually-hidden"})])])})),0)],1),t("div",{staticClass:"modal fade modal-gallery",attrs:{tabindex:"-1",role:"dialog","aria-hidden":"true"}},[t("div",{staticClass:"modal-dialog modal-xl",attrs:{role:"document"}},[t("div",{staticClass:"modal-content"},[e.isLoading?t("div",{staticClass:"modal-body loading"},[t("loading-feedback",{attrs:{active:e.isLoading}})],1):e._e(),e.modalItem&&!e.isLoading?t("div",{staticClass:"modal-body"},[e._m(0),t("VueSlickCarousel",e._b({ref:"gallerySecondSlick"+e._uid,staticClass:"gallery-slider gallery-slider-second",attrs:{asNavFor:e.$refs["gallerySlick"+e._uid]}},"VueSlickCarousel",e.secondSlickSettings,!1),e._l(e.items,(function(e,n){return t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image.full,expression:"item.image.full"}],key:n,attrs:{loading:"lazy",alt:e.title}})})),0)],1):e._e()])])])])}),[function(){var e=this._self._c;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}],!1,null,null,null,null).exports;const me=n({components:{VueSlickCarousel:ae},props:{quiz_id:Number,quiz_data:Object,result_titles:Object,result_messages:Object,result_percentage:Object,result_texts:Object,bg_image:String,check_label:String,correct_label:String,wrong_label:String,next_label:String,component_type:String,quiz_name:String,page_related:String},data:()=>({questions:[],current:0,currentSlide:0,isFinished:!1,selectedAnswer:[],resultCorrect:0,resultPercent:0,facebookUrl:"",tweetUrl:"",mailToLink:"",icons:{refresh:"",facebook:"",twitter:"",mail:""},slickSettings:{arrows:!1,adaptiveHeight:!0,draggable:!1,slidesToShow:1,slidesToScroll:1,dots:!0,swipe:!1,infinite:!1,speed:300,variableWidth:!1}}),computed:{currentQuestion:function(){return this.questions[this.current]},totalQuestions:function(){return this.questions.length}},beforeMount(){this.icons.refresh=document.getElementById("refresh-quiz-icon").innerHTML,this.icons.facebook=document.getElementById("facebook-quiz-icon").innerHTML,this.icons.twitter=document.getElementById("twitter-quiz-icon").innerHTML,this.icons.mail=document.getElementById("mail-quiz-icon").innerHTML,this.resetQuestions()},mounted(){},methods:{generateRandomOrder(e){let t=Object.keys(e.choices);for(e.randomOrder=[],e.correctAnswer=[];t.length>0;){let n=Math.floor(Math.random()*t.length);e.randomOrder.push(t[n]),e.choices[t[n]].correct&&e.correctAnswer.push(t[n]),t.splice(n,1)}},selectAnswer(e){this.answered||(this.currentQuestion.answers+=1,"simple"===this.currentQuestion.type&&(this.selectedAnswer=[]),this.selectedAnswer.indexOf(e)<0?this.selectedAnswer.push(e):this.selectedAnswer.splice(this.selectedAnswer.indexOf(e),1),this.checkAnswer())},checkAnswer(){if("multiple"===this.currentQuestion.type&&this.questions[this.current].answers!==this.questions[this.current].correctAnswer.length)return!1;let e=this.questions[this.current],t=[];this.selectedAnswer.slice().forEach((function(n,i){-1!==n.indexOf(e.id)&&t.push(n)})),this.questions[this.current].correct=t.slice().sort().join(",")===this.questions[this.current].correctAnswer.slice().sort().join(","),this.questions[this.current].answered=!0,this.questions[this.current].correct&&(this.resultCorrect=this.resultCorrect+1),this.resultPercent=Math.ceil(this.resultCorrect/this.questions.length*100),this.generateShareUrls(),this.$forceUpdate()},nextAnswer(){"component"!==this.component_type?this.current>=this.questions.length||(this.answered=!1,this.selectedAnswer=[],this.current++):this.$refs.slick.next()},restart(){this.current=0,this.resultCorrect=0,this.selectedAnswer=[],this.answered=!1,this.isFinished=!1,this.$refs.slick.goTo(0),this.resetQuestions(),this.$forceUpdate()},resetQuestions(){Object.keys(this.quiz_data).forEach(((e,t)=>{this.questions[t]=this.quiz_data[e],this.questions[t].id=e,this.questions[t].answered=!1,this.questions[t].correct=!1,this.questions[t].answers=0,this.generateRandomOrder(this.questions[t])}))},slideChangeBefore(e,t){this.current=t,t===this.questions.length?this.isFinished=!0:this.isFinished=!1},getPercentageIndex(){return this.resultPercent<=16?1:this.resultPercent<=34?2:this.resultPercent<=52?3:this.resultPercent<=59?4:this.resultPercent<=85?5:6},renderResultTitle(){return this.result_titles[this.getPercentageIndex()]},renderResultMessage(){return this.result_messages[this.getPercentageIndex()]},renderResultPercentage(){return this.result_percentage[this.getPercentageIndex()]},generateShareUrls(){let e="";e+=this.result_titles[this.getPercentageIndex()]+" ",e+=this.result_messages[this.getPercentageIndex()]+" ",e+="\nEu acertei de ",e+=this.result_percentage[this.getPercentageIndex()]+" ",e+=", e você? \n",e=encodeURI(e),this.facebookUrl="https://www.facebook.com/dialog/feed?app_id=2404781719741671&display=popup&link=https://eurofarma.com.br/quiz/"+this.quiz_id+"&quote="+e,this.tweetUrl="https://twitter.com/intent/tweet?hashtags=quiz%2Ceurofarma&original_referer=https%3A%2F%2Feurofarma.com.br/quiz/"+this.quiz_id+"&ref_src=twsrc%5Etfw&related=twitterapi%2Ctwitter&text="+e+"&tw_p=tweetbutton&url=https%3A%2F%2Feurofarma.com.br/quiz/"+this.quiz_id+"&via=eurofarma",this.mailToLink="mailto:?subject=Quiz Eurofarma "+this.result_texts.result+"&body="+e}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"quiz"},["widget"===e.component_type?t("div",{staticClass:"widget"},[t("h5",[e._v(e._s(e.quiz_name))]),t("span",{staticClass:"question mb-3"},[e._v(e._s(e.currentQuestion.question))]),e._l(e.currentQuestion.randomOrder,(function(n){return t("label",{staticClass:"quizAnswer",attrs:{for:"quiz_"+n},on:{mousedown:function(t){return e.selectAnswer(n)}}},[e._v(" "+e._s(e.currentQuestion.choices[n].title)+" "),"simple"===e.currentQuestion.type?t("input",{attrs:{type:"radio",name:e.currentQuestion.title,value:"choiceId",id:"quiz_"+n}}):e._e(),"multiple"===e.currentQuestion.type?t("input",{attrs:{type:"checkbox",name:e.currentQuestion.title,value:"choiceId",id:"quiz_"+n}}):e._e(),t("span",{class:{"custom-radio":"simple"===e.currentQuestion.type,"custom-check":"multiple"===e.currentQuestion.type,selected:e.selectedAnswer.indexOf(n)>=0,correct:e.currentQuestion.answered&&e.selectedAnswer.indexOf(n)>=0&&e.currentQuestion.correctAnswer.indexOf(n)>=0,wrong:e.currentQuestion.answered&&e.selectedAnswer.indexOf(n)>=0&&e.currentQuestion.correctAnswer.indexOf(n)<0,correctChoice:e.currentQuestion.answered&&e.selectedAnswer.indexOf(n)<0&&e.currentQuestion.correctAnswer.indexOf(n)>=0}})])})),e.currentQuestion.answered?t("span",{staticClass:"answer",class:{corrrect:e.currentQuestion.correct},domProps:{textContent:e._s(e.currentQuestion.correct?e.correct_label:e.wrong_label)}}):e._e(),this.questions[this.current].answered?e._e():t("span",{staticClass:"next btn btn-disabled",domProps:{textContent:e._s(e.check_label)},on:{click:e.checkAnswer}}),this.questions[this.current].answered&&this.current<this.questions.length-1?t("span",{staticClass:"next btn btn-primary",domProps:{textContent:e._s(e.next_label)},on:{click:e.nextAnswer}}):e._e()],2):e._e(),"component"===e.component_type?t("div",{staticClass:"quiz-component p-5",class:{"hide-controlls":this.isFinished}},[t("header",{staticClass:"mb-4"},[e._v(e._s(e.quiz_name))]),e.questions.length>0?t("VueSlickCarousel",e._b({ref:"slick",staticClass:"article-slider-content",on:{beforeChange:e.slideChangeBefore}},"VueSlickCarousel",e.slickSettings,!1),[e._l(e.questions,(function(n){return t("article",{staticClass:"component-item pl-5 pr-5"},[t("h5",{staticClass:"mb-4"},[e._v(e._s(n.question))]),t("div",{staticClass:"row"},[n.image?t("div",{staticClass:"col-12 col-md-4 text-right p-0"},[t("img",{attrs:{src:n.image,loading:"lazy"}})]):e._e(),e.questions[e.current]?t("div",{staticClass:"col-12 col-md-8 text-left pt-2 pl-4",class:{"offset-md-6":!n.image}},[e._l(n.randomOrder,(function(i){return t("label",{staticClass:"quizAnswer",attrs:{for:"quiz_"+i},on:{mousedown:function(t){return e.selectAnswer(i)}}},[e._v(" "+e._s(n.choices[i].title)+" "),"simple"===n.type?t("input",{attrs:{type:"radio",name:n.title,value:"choiceId",id:"quiz_"+i}}):e._e(),"multiple"===n.type?t("input",{attrs:{type:"checkbox",name:n.title,value:"choiceId",id:"quiz_"+i}}):e._e(),t("span",{class:{"custom-radio":"simple"===e.questions[e.current].type,"custom-check":"multiple"===e.questions[e.current].type,selected:e.selectedAnswer.indexOf(i)>=0}})])})),e.questions[e.current].answered?e._e():t("span",{staticClass:"next btn btn-disabled",domProps:{textContent:e._s(e.check_label)},on:{click:e.checkAnswer}}),e.questions[e.current].answered&&e.current<=e.questions.length?t("span",{staticClass:"next btn btn-primary",domProps:{textContent:e._s(e.next_label)},on:{click:e.nextAnswer}}):e._e()],2):e._e()])])})),t("article",{staticClass:"component-item result-slide pl-5 pr-5",style:{"background-image":"url(https://eurofarma.com.br/"+e.bg_image+")"}},[t("div",{staticClass:"content"},[t("h5",{staticClass:"title",domProps:{innerHTML:e._s(e.result_texts.result)}}),t("div",{staticClass:"percentage",domProps:{textContent:e._s(e.renderResultPercentage())}}),t("div",{staticClass:"big-text",domProps:{textContent:e._s(e.renderResultTitle())}}),t("div",{staticClass:"message",domProps:{textContent:e._s(e.renderResultMessage())}}),t("div",{staticClass:"share-buttons"},[t("span",{staticClass:"label",domProps:{innerHTML:e._s(e.result_texts.share)}}),t("a",{staticClass:"btn btn-primary facebook-button",attrs:{target:"_blank",href:e.facebookUrl},domProps:{innerHTML:e._s(e.icons.facebook)}}),t("a",{staticClass:"btn btn-primary twitter-button",attrs:{target:"_blank",href:e.tweetUrl},domProps:{innerHTML:e._s(e.icons.twitter)}}),t("a",{staticClass:"btn btn-primary mail-button",attrs:{target:"_blank",href:e.mailToLink},domProps:{innerHTML:e._s(e.icons.mail)}})]),t("a",{staticClass:"btn btn-primary refresh-button",domProps:{innerHTML:e._s(e.icons.refresh)},on:{click:function(t){return e.restart()}}})]),e.page_related?t("a",{staticClass:"btn btn-yellow right-positon",attrs:{href:e.page_related}},[e._v("Saiba Mais")]):e._e(),t("div",{staticClass:"disclaimer"},[t("span",{staticClass:"title",domProps:{innerHTML:e._s(e.result_texts.disclaimer_title)}}),t("span",{staticClass:"text",domProps:{innerHTML:e._s(e.result_texts.disclaimer)}})])])],2):e._e()],1):e._e()])}),[],!1,null,null,null,null).exports;const ve=n({components:{VueSlickCarousel:ae},props:{component_data:Object,component_type:String,truth_label:String,myth_label:String,next_label:String,component_title:String},data:()=>({questions:[],current:0,slickSettings:{arrows:!0,adaptiveHeight:!0,draggable:!1,slidesToShow:1,slidesToScroll:1,dots:!0,infinite:!1,speed:300,variableWidth:!1}}),computed:{currentQuestion:function(){return this.questions[this.current]}},methods:{checkAnswer(e){this.questions[this.current].answered=!0,this.questions[this.current].correct=this.questions[this.current].answer==e,this.$forceUpdate()},testEvent(){this.current=this.$refs.slick.$refs.innerSlider.currentSlide},nextAnswer(){this.$refs.slick.next()},slideChange(){this.current=this.$refs.slick.$refs.innerSlider.currentSlide,this.$forceUpdate()}},beforeMount(){Object.keys(this.component_data).forEach(((e,t)=>{this.questions[t]=this.component_data[e],this.questions[t].id=e,this.questions[t].answered=!1,this.questions[t].correct=!1}))},updated(){}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"truth-myth",class:e.component_type,attrs:{id:e.component_type+"_truth_myth_"+e.currentQuestion.id}},["widget"===e.component_type?t("div",{staticClass:"widget pt-3 pb-3"},[t("h5",{domProps:{textContent:e._s(e.component_title)}}),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.currentQuestion.answered,expression:"!currentQuestion.answered"}],staticClass:"question pb-3"},[e._v(e._s(e.currentQuestion.question))]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.currentQuestion.answered,expression:"!currentQuestion.answered"}],staticClass:"answer-buttons row no-gutters justify-content-around"},[t("span",{staticClass:"btn truth-btn",on:{click:function(t){return e.checkAnswer("truth")}}},[e._v("Verdade")]),t("span",{staticClass:"btn myth-btn",on:{click:function(t){return e.checkAnswer("myth")}}},[e._v("Mito")])]),t("h6",{directives:[{name:"show",rawName:"v-show",value:e.currentQuestion.answered,expression:"currentQuestion.answered"}],staticClass:"answer",class:e.currentQuestion.correct?"correct":"wrong",domProps:{textContent:e._s("truth"===e.currentQuestion.answer?"Verdade":"Mito")}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.currentQuestion.answered,expression:"currentQuestion.answered"}],staticClass:"question"},[e._v(e._s(e.currentQuestion.answerDescription))]),t("span",{directives:[{name:"show",rawName:"v-show",value:e.currentQuestion.answered&&e.current<e.questions.length-1,expression:"currentQuestion.answered && current < questions.length-1"}],staticClass:"next",on:{click:e.nextAnswer}},[e._v("Próxima")])]):e._e(),"component"===e.component_type?t("div",{staticClass:"myth-component p-5",class:{"hide-controlls":!this.questions[this.current].answered}},[e.questions.length>0?t("VueSlickCarousel",e._b({ref:"slick",staticClass:"article-slider-content",on:{afterChange:e.slideChange,reInit:e.testEvent}},"VueSlickCarousel",e.slickSettings,!1),e._l(e.questions,(function(n){return t("article",{key:n.id,staticClass:"component-item pl-5 pr-5"},[t("header",{staticClass:"mb-4",domProps:{textContent:e._s(n.theme)}}),t("h5",{directives:[{name:"show",rawName:"v-show",value:!n.answered,expression:"!question.answered"}]},[e._v(e._s(n.question))]),t("div",{directives:[{name:"show",rawName:"v-show",value:!n.answered,expression:"!question.answered"}],staticClass:"answer-buttons row justify-content-center pt-4 pb-5"},[t("span",{staticClass:"btn truth-btn ml-4 mr-4",domProps:{textContent:e._s(e.truth_label)},on:{click:function(t){return e.checkAnswer("truth")}}}),t("span",{staticClass:"btn myth-btn ml-4 mr-4",domProps:{textContent:e._s(e.myth_label)},on:{click:function(t){return e.checkAnswer("myth")}}})]),t("div",{directives:[{name:"show",rawName:"v-show",value:n.answered,expression:"question.answered"}],staticClass:"row"},[t("div",{staticClass:"col-12 col-md-4 text-right pr-3"},[t("img",{attrs:{src:n.image,loading:"lazy"}})]),t("div",{staticClass:"col-12 col-md-7 text-left pr-3"},[t("h6",{class:n.correct?"correct":"wrong",domProps:{textContent:e._s("myth"===n.answer?e.myth_label:e.truth_label)}}),t("span",{staticClass:"answer-description"},[e._v(e._s(n.answerDescription))])]),t("div",{staticClass:"col-12 pt-4 pb-4"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.current<e.questions.length-1,expression:"current < (questions.length - 1)"}],staticClass:"next",domProps:{textContent:e._s(e.next_label)},on:{click:e.nextAnswer}})])])])})),0):e._e()],1):e._e()])}),[],!1,null,null,null,null).exports;const ge=n({props:["items","opened"],data:()=>({partial:!0,minHeight:0,maxHeight:1e3}),computed:{orderedItems:function(){return Object.values(this.items).sort(((e,t)=>t.year-e.year))},buttonText:function(){return this.partial?"Ver anos anteriores":"Ocultar anos anteriores"}},methods:{toggleTimeline(){this.partial=!this.partial},calculateHeight(){this.minHeight=0,this.maxHeight=0,i(this.$el).find(".year").each(((e,t)=>{e<3&&(this.minHeight+=i(t).outerHeight()),this.maxHeight+=i(t).outerHeight()}))}},mounted(){this.partial=!this.opened,this.calculateHeight()}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"timeline-area pt-4 pb-4"},[t("div",{staticClass:"years-container",class:{partial:e.partial},style:"--partialHeight : "+e.minHeight+"px; --fullHeight : "+e.maxHeight+"px;"},e._l(e.orderedItems,(function(n,i){return t("div",{staticClass:"year row no-gutters",class:{"left-year":i%2!=0,"right-year":i%2==0}},[t("article",{staticClass:"col-6 pr-5 text-right"},[t("h5",{domProps:{textContent:e._s(i%2!=0?n.year:"")}}),t("span",{domProps:{innerHTML:e._s(i%2!=0?n.description:"")}})]),t("article",{staticClass:"col-6 pl-5 text-left"},[t("h5",{domProps:{textContent:e._s(i%2==0?n.year:"")}}),t("span",{domProps:{innerHTML:e._s(i%2==0?n.description:"")}})])])})),0),e.partial?t("span",{staticClass:"show-years mt-5",domProps:{textContent:e._s(e.buttonText)},on:{click:function(t){return e.toggleTimeline()}}}):e._e()])}),[],!1,null,null,null,null).exports,_e={GetAll:"/api/states-and-cities/"},ye={GetLatest:"/api/posts/latest?lang=@lang@&profile=@profile@&lang=@lang@",GetTaxonomyPosts:"/api/posts/byTaxonomy?lang=@lang@&profile=@profile@&lang=@lang@&tags=@taxonomy@&types=@types@",GetFeatured:"/api/posts/featured?lang=@lang@&profile=@profile@&tags=@tags@"},be={GetFeaturedProducts:"/api/products/featured?lang=@lang@&tags=@tags@&products=@products@",GetProductsBySearchPage:"/api/products/search/@tagslug@/@page@?profile=@profile@"},we={GetRelatedContent:"/api/related/@page_id@?type=@type@&max=@max@&lang=@lang@&profile=@profile@"},xe={AutocompleteByName:"/api/content/autocomplete?q=@query@&lang=@lang@",FetchAllWithType:"/api/content/@page_type@?page=@page@&q=@search_terms@&max=@max@&sort=@sort@&lang=@lang@",FetchAllWithTypeAndTaxonomy:"/api/content/taxonomy/@page_type@?taxonomy=@taxonomy@&page=@page@&max=@max@&lang=@lang@&profile=@profile@&q=@query@&sort=@sort@&excluded_tags=@excluded_tags@",FetchAllPodcasts:"/api/content/podcasts/?page=@page@&max=@max@&lang=@lang@&profile=@profile@&q=@query@&sort=@sort@"},Ce={SubmitEnrollment:"/instituto-eurofarma/cursos-de-formacao/inscricoes"},Se={Submit:"/api/forms/@form_id@/submit"},ke={Submit:"/api/waitlist/submit"},Te={Register:"/userful-content/register"},Pe={Submit:"/api/save-healthcare-override/@pageType@"},Ae={Submit:"/api/validate-crm/@crm@/@uf@"},Le=function(e,t,n,i,r){let a=s.url(we.GetRelatedContent,{page_id:e,max:t,type:n||"all",lang:i,profile:r});return o.get(a).then((e=>e.data.data))},Ee=function(e,t){let n=s.url(xe.AutocompleteByName,{query:e,lang:t});return o.get(n).then((e=>e.data.data))},Oe=function(e,t,n,i,r,a){let l=s.url(xe.FetchAllWithType,{page_type:e,page:t,search_terms:n,max:i,sort:r,lang:a});return o.get(l).then((e=>e.data))},Me=function(e,t,n,i,r,a,l,c,d){let u=s.url(xe.FetchAllWithTypeAndTaxonomy,{page_type:e,page:t,taxonomy:n,max:i,lang:r,profile:a,query:l,sort:"desc",letter:c,excluded_tags:d});return o.get(u).then((e=>e.data))},Ie=function(e,t,n,i,r){let a=s.url(xe.FetchAllPodcasts,{page:e,max:t,lang:n,profile:i,query:r,sort:"desc"});return o.get(a).then((e=>e.data))},je=function(e,t){let n=s.url(ye.GetLatest,{lang:e,profile:t});return o.get(n).then((e=>e.data.data))},qe=function(e,t,n,i){let r=s.url(ye.GetTaxonomyPosts,{lang:e,profile:t,taxonomy:n,types:i});return o.get(r).then((e=>e.data.data))},Ne=function(e,t,n){let i=s.url(ye.GetFeatured,{lang:e,profile:t,tags:n});return o.get(i).then((e=>e.data.data))},Re=function(e,t,n){let i=s.url(be.GetFeaturedProducts,{lang:e,tags:t.toString(),products:n.toString()});return o.get(i).then((e=>e.data.data))},$e=function(e,t,n){let i=s.url(be.GetProductsBySearchPage,{tagslug:e,page:t,profile:n});return o.get(i).then((e=>e.data))},De=function(){let e=s.url(_e.GetAll);return o.get(e).then((e=>e.data.response))};const Be=n({props:["pageTypes","max","sortDirection","labelSearchTerms","labelDate","locale"],data:()=>({pages:[],selectedPageType:null,currentPage:1,totalPages:1,searchFilter:"",isLoading:!1,firstLoading:!0,isChanging:!1,hash:""}),mounted:function(){if(void 0!==location.hash){this.hash=this.normalizeString(location.hash);let e=this.pageTypes[0];Object.values(this.pageTypes).forEach(function(t){this.normalizeString(t.label)===this.hash&&(e=t)}.bind(this)),this.selectPageType(e)}else this.selectPageType(this.pageTypes[0])},computed:{paginationPages:function(){let e=[];if(e[0]=[],e[1]=[],e[2]=[],e[0].push(0,1,2),this.totalPages<=3){e[1]=void 0,e[2]=void 0,e[0]=[];for(let t=0;t<=this.totalPages-1;t++)t<this.totalPages-1&&e[0].push(t)}else if(this.totalPages<=5){e[1]=void 0;for(let t=3;t<=this.totalPages-1;t++)e[2].push(t)}else if(e[2].push(this.totalPages-3,this.totalPages-2,this.totalPages-1),this.currentPage-1>1&&this.currentPage-1<this.totalPages-3)for(let t=this.currentPage-2;t<=this.currentPage;t++)t>2&&t<this.totalPages-3&&e[1].push(t);return e}},methods:{normalizeString:function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/([^\w]+|\s+)/g,"-").replace(/\-\-+/g,"-").replace(/\s+/g,"-").replace(/(^-+|-+$)/,"")},selectPageType:function(e){this.selectedPageType=e,this.currentPage=1,this.searchFilter="",this.isChanging=!0,this.fetchPages()},fetchPages:function(e=!1){this.isLoading=!0,Oe(this.selectedPageType.type,this.currentPage,this.searchFilter,this.max,this.sortDirection,this.locale).then((t=>{this.firstLoading=!1,this.isLoading=!1,this.isChanging=!1,this.totalPages=t.meta.pagination.total,this.pages=e?this.pages.concat(t.data):t.data})).catch((e=>{this.isLoading=!1}))},goToPrev:function(){--this.currentPage<1&&(this.currentPage=1),this.fetchPages()},goToNext:function(){++this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.fetchPages()},goToPage:function(e){this.currentPage=e,this.fetchPages()},renderDate:e=>e?r.fromFormat(e,"yyyy-MM-dd HH:mm:ss").toFormat("dd/MM/yyyy"):"",getNewPage:function(){this.currentPage+=1,this.firstLoading=!0,this.fetchPages(!0)},clearSearch:function(){this.searchFilter="",this.fetchPages()}}},(function(){var e=this,t=e._self._c;return e.pageTypes?t("div",{staticClass:"table-filter pt-4 pb-4"},[e.pageTypes.length>1?t("div",{staticClass:"category-area tab-selector"},e._l(e.pageTypes,(function(n){return t("span",{staticClass:"category",class:{selected:e.selectedPageType&&e.selectedPageType.type===n.type},on:{click:function(t){return e.selectPageType(n)}}},[e._v(" "+e._s(n.label)+" ")])})),0):e._e(),t("form",{staticClass:"filter-input pt-4 pb-4",attrs:{method:"POST",action:"#"},on:{submit:function(t){return t.preventDefault(),e.fetchPages()}}},[t("span",{staticClass:"filter"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.searchFilter,expression:"searchFilter"}],attrs:{type:"text",size:"45",placeholder:e.labelSearchTerms},domProps:{value:e.searchFilter},on:{input:function(t){t.target.composing||(e.searchFilter=t.target.value)}}}),t("button",{staticClass:"search-icon",attrs:{type:"submit"},on:{click:function(t){e.currentPage=1}}},[t("svg",{attrs:{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M13.8592 13.0189L14.7942 13.0189L20.7 18.9365L18.9365 20.7L13.0189 14.7942L13.0189 13.8592L12.6993 13.5278C11.3501 14.6877 9.59846 15.3859 7.69297 15.3859C3.44408 15.3859 0 11.9419 0 7.69297C0 3.44408 3.44408 0 7.69297 0C11.9419 0 15.3859 3.44408 15.3859 7.69297C15.3859 9.59846 14.6877 11.3501 13.5278 12.6993L13.8592 13.0189ZM2.36707 7.69297C2.36707 10.64 4.74597 13.0189 7.69297 13.0189C10.64 13.0189 13.0189 10.64 13.0189 7.69297C13.0189 4.74597 10.64 2.36707 7.69297 2.36707C4.74597 2.36707 2.36707 4.74597 2.36707 7.69297Z",transform:"translate(3.610547 3.6000001)",id:"Shape",fill:"#00358E","fill-rule":"evenodd",stroke:"none"}}),t("path",{attrs:{d:"M0 0L27.9 0L27.9 27.9L0 27.9L0 0Z",transform:"translate(0.010546875 0)",id:"Path",fill:"none",stroke:"none"}})])]),""!==e.searchFilter?t("button",{staticClass:"search-icon clear-search",on:{click:function(t){return e.clearSearch()}}},[t("i",{staticClass:"fa fa-eraser"})]):e._e()])]),e.selectedPageType&&e.pages.length>0&&!e.isChanging&&(!e.isLoading||e.firstLoading)?t("table",[t("thead",[t("tr",[t("th",[e._v(e._s(e.selectedPageType.label))]),t("th",{staticClass:"date-order"},[e._v(e._s(e.labelDate))])])]),t("tbody",e._l(e.pages,(function(n,i){return n?t("tr",{class:{"odd-row":i%2==0}},[t("td",[t("a",{attrs:{href:n.href}},[e._v(e._s(n.title))])]),t("td",[e._v(" "+e._s(e.renderDate(n.published_at))+" ")])]):e._e()})),0)]):e._e(),e.selectedPageType&&0===e.pages.length&&!e.isChanging?t("div",{staticClass:"row pt-5 pb-4"},[t("strong",{staticClass:"d-block w-100 text-center"},[e._v("Sem resultados")])]):e._e(),e.isLoading||e.isChanging?t("div",{staticClass:"text-center py-3"},[t("loading-feedback",{attrs:{active:e.isLoading}})],1):e._e(),e.selectedPageType&&e.currentPage<e.totalPages/e.max&&!e.isChanging&&!e.isLoading?t("div",{staticClass:"row pt-5 pb-4"},[t("a",{staticClass:"btn btn-primary d-inline-block m-auto",on:{click:e.getNewPage}},[e._v(e._s(e.$lang.get("pagination.loadmore")))])]):e._e()]):e._e()}),[],!1,null,null,null,null).exports;const He=n({props:["pageTypes","taxonomy","max","locale","noResults","profileSlug","query","letter","filterTaxonomy","excludeWithTags"],data:()=>({pages:[],selectedPageType:null,currentPage:1,totalPages:1,searchFilter:"",isLoading:!1,showLoadMore:!1,taxonomyTags:[]}),computed:{paginationPages:function(){let e=[];if(e[0]=[],e[1]=[],e[2]=[],e[0].push(0,1,2),this.totalPages<=3){e[1]=void 0,e[2]=void 0,e[0]=[];for(let t=0;t<=this.totalPages;t++)t<this.totalPages&&e[0].push(t)}else if(this.totalPages<=5){e[1]=void 0;for(let t=3;t<=this.totalPages-1;t++)e[2].push(t)}else if(e[2].push(this.totalPages-3,this.totalPages-2,this.totalPages-1),this.currentPage-1>2&&this.currentPage-1<this.totalPages-3)for(let t=this.currentPage-2;t<=this.currentPage;t++)t>2&&t<this.totalPages-3&&e[1].push(t);return e}},beforeMount(){this.taxonomyTags=this.taxonomy},mounted:function(){this.selectPageType(this.pageTypes[0])},methods:{selectPageType:function(e){this.selectedPageType=e,this.currentPage=1,this.searchFilter="",this.fetchPages()},fetchPages:function(e=!1){this.isLoading=!0,this.taxonomyTags=this.filterTaxonomy?this.filterTaxonomy:this.taxonomyTags;let t=void 0!==this.excludeWithTags?this.excludeWithTags:[],n=this.taxonomyTags.length>0?[]:t;Me(this.selectedPageType.type,this.currentPage,JSON.stringify(this.taxonomyTags),this.max,this.locale,this.profileSlug,this.query,this.letter,JSON.stringify(n)).then((t=>{this.isLoading=!1,this.showLoadMore=t.meta.pagination.total_pages!=this.currentPage,e?(this.pages=this.pages.concat(t.data),console.log(this.pages),this.totalPages+=t.meta.pagination.total_pages):(this.pages=t.data,this.totalPages=t.meta.pagination.total_pages),this.$forceUpdate()})).catch((e=>{this.isLoading=!1}))},goToPrev:function(){--this.currentPage<1&&(this.currentPage=1),this.fetchPages()},goToNext:function(){++this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.fetchPages()},goToPage:function(e){this.currentPage=e,this.fetchPages()},renderDate:e=>e?r.fromFormat(e,"yyyy-MM-dd HH:mm:ss").toFormat("dd/MM/yyyy"):"",getNewPage:function(){this.currentPage+=1,this.fetchPages(!0)}}},(function(){var e=this,t=e._self._c;return e.pageTypes?t("div",{staticClass:"table-filter pt-4 pb-4"},[e.pageTypes.length>1?t("div",{staticClass:"category-area tab-selector mt-4"},e._l(e.pageTypes,(function(n){return t("span",{staticClass:"category",class:{selected:e.selectedPageType&&e.selectedPageType.type===n.type},on:{click:function(t){return e.selectPageType(n)}}},[e._v(" "+e._s(n.label)+" ")])})),0):e._e(),e.selectedPageType?t("div",{staticClass:"row pt-5 pb-4"},[e.pages.length<1&&!e.isLoading?t("span",{staticClass:"col-12 text-center",domProps:{innerHTML:e._s(e.noResults)}}):e._e(),e._l(e.pages,(function(n,i){return e.pages.length>0?t("div",{staticClass:"col-md-4 mb-4"},[t("a",{staticClass:"card",attrs:{href:n.href,id:"page-"+n.id}},[t("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:n.image_url,expression:"page.image_url",arg:"background-image"}],staticClass:"card-img-top"}),e._m(0,!0),t("div",{staticClass:"card-body"},[t("h5",{staticClass:"card-title"},[e._v(e._s(n.title))]),t("div",{staticClass:"card-text"},[e._v(e._s(n.lead))])])])]):e._e()}))],2):e._e(),e.isLoading?t("div",{staticClass:"text-center pt-5 pb-4 py-3"},[t("loading-feedback",{attrs:{active:e.isLoading}})],1):e._e(),!e.isLoading&&e.showLoadMore?t("div",{staticClass:"row pt-5 pb-4"},[t("a",{staticClass:"btn btn-primary d-inline-block m-auto",on:{click:e.getNewPage}},[e._v(e._s(e.$lang.get("pagination.loadmore")))])]):e._e()]):e._e()}),[function(){var e=this._self._c;return e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"visually-hidden"})])}],!1,null,null,null,null).exports;const ze=n({props:["max","locale","noResults","profileSlug","query"],data:()=>({podcasts:[],selectedPageType:null,currentPage:1,totalPages:1,searchFilter:"",isLoading:!1}),mounted:function(){this.fetchPodcasts()},methods:{fetchPodcasts:function(){this.isLoading=!0,Ie(this.currentPage,this.max,this.locale,this.profileSlug,this.query).then((e=>{this.isLoading=!1,this.podcasts=this.podcasts.concat(e.data),this.totalPages=e.meta.pagination.total_pages,this.$forceUpdate()})).catch((e=>{this.isLoading=!1}))},getNewPage:function(){this.currentPage+=1,this.fetchPodcasts()}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[e.podcasts.length<1&&!e.isLoading?t("span",{staticClass:"col-12 text-center",domProps:{innerHTML:e._s(e.noResults)}}):e._e(),e._l(e.podcasts,(function(n,i){return e.podcasts.length>0?t("div",{staticClass:"col-md-4 mb-4"},[t("a",{staticClass:"card",attrs:{href:n.href,id:"podcast-"+n.id}},[t("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:n.cover_url,expression:"podcast.cover_url",arg:"background-image"}],staticClass:"card-img-top"}),e._m(0,!0),t("div",{staticClass:"card-body"},[t("h5",{staticClass:"card-title"},[e._v(e._s(n.title))]),t("div",{staticClass:"card-text"},[e._v(e._s(n.lead))])])])]):e._e()}))],2),t("div",{staticClass:"row"},[t("div",{staticClass:"mx-auto"},[e.isLoading?t("div",{staticClass:"text-center pt-5 pb-4 py-3"},[t("loading-feedback",{attrs:{active:e.isLoading}})],1):e._e(),!e.isLoading&&e.currentPage<e.totalPages?t("div",{staticClass:"row pt-5 pb-4"},[t("a",{staticClass:"btn btn-primary d-inline-block m-auto",on:{click:e.getNewPage}},[e._v(e._s(e.$lang.get("pagination.loadmore")))])]):e._e()])])])}),[function(){var e=this._self._c;return e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"visually-hidden"})])}],!1,null,null,null,null).exports;const Fe=n({props:["settings","content"],data:()=>({initialstate:!1,size:300,speed:300,originalSize:0,currentState:!1}),computed:{label:function(){return this.currentState?this.content.labelOpened:this.content.labelClosed}},methods:{toggleCollapse(e){let t;t=void 0!==e?i(e):i(this.$el).parent();let n=t.find(".inner-content");n.toggleClass("open");let s=t.find(".measure").height();-1!==n.attr("class").indexOf("open")?this.size=s:this.size=this.originalSize,this.currentState=this.size!==this.originalSize}},mounted(){this.speed=this.settings.speed,this.label=this.settings.label,this.size=this.settings.size,this.originalSize=this.size,this.settings.initialstate&&this.toggleCollapse(this.$el),this.currentState=this.settings.initialstate}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"content_collapse_block"},[t("div",{staticClass:"inner-content",class:e.initialstate?"open":"",style:{height:e.size+"px",transitionDuration:e.speed+"ms"}},[t("div",{staticClass:"measure",domProps:{innerHTML:e._s(e.content.text)}})]),t("button",{staticClass:"toogle-button btn",on:{click:function(t){return e.toggleCollapse()}}},[t("span",{domProps:{innerHTML:e._s(e.label)}}),t("div",{staticClass:"arrow-icon"})])])}),[],!1,null,null,null,null).exports,Ve={components:{},props:["tableSource"],data:()=>({tableContents:[],fields:[]}),beforeMount(){if(this.tableContents=this.tableSource,0===this.tableContents.length)return;let e=Object.keys(this.tableContents[0]);this.fields=e.map((e=>({key:e,sortable:!0})))},mounted(){},methods:{}},We={props:["locale","profile"],data:()=>({posts:[]}),mounted:function(){this.refreshPosts()},methods:{refreshPosts:function(){je(this.locale,this.profile).then((e=>{this.posts=e}))}}},Ue={props:["locale","profile","taxonomy","types"],data:()=>({posts:[]}),mounted:function(){this.refreshPosts()},methods:{refreshPosts:function(){qe(this.locale,this.profile,this.taxonomy,this.types).then((e=>{this.posts=e}))}}},Qe={props:["locale","profile","tags"],data:()=>({posts:[]}),mounted:function(){this.refreshPosts()},methods:{refreshPosts:function(){let e=!1;this.tags&&(e=Object.values(this.tags)),Ne(this.locale,this.profile,e).then((e=>{this.posts=e}))}}},Ge={props:["locale","featured"],data:()=>({products:[],exclusiveTags:[],productsIds:[]}),mounted:function(){this.setupFeatured(),this.refreshProducts()},methods:{setupFeatured:function(){if(null===this.featured)return!1;null!==this.featured.categories&&void 0!==this.featured.categories&&this.featured.categories.forEach((e=>{this.exclusiveTags.push(e)})),null!==this.featured.products&&void 0!==this.featured.products&&this.featured.products.forEach((e=>{this.productsIds.push(e.id)}))},refreshProducts:function(){Re(this.locale,this.exclusiveTags,this.productsIds).then((e=>{this.products=e}))}}},Ye={props:["pageId","max","type","locale","profile"],data:()=>({pages:[]}),mounted:function(){this.refreshContent()},methods:{refreshContent:function(){Le(this.pageId,this.max,this.type,this.locale,this.profile).then((e=>{this.pages=e}))}}},Xe=function(e,t){let n=s.url(Se.Submit,{form_id:e}),i=document.head.querySelector('meta[name="csrf-token"]').content;return o.post(n,t,{headers:{"X-CSRF-TOKEN":i,"X-Requested-With":"XMLHttpRequest"}}).then((e=>e.data.data))},Je={props:["formId","siteId","modalMessage","locale","questions","captcha"],data:()=>({messageStyle:"none",isLoading:!1,isSubmitted:!1,error:null,response:{},answers:{},value:null,formQuestionsOptions:{},toggleAnswers:!0,validateFormFields:!1,captchaHasLoaded:!1,grecaptcha:null,captchaToken:null}),beforeMount(){Object.values(this.questions).forEach((e=>{var t;"multiple_answers"===e.field_type&&this.addMoreAnswers(e.id),this.formQuestionsOptions[e.id]={},"choice"!==e.field_type&&"multiple_choice"!==e.field_type||!(null==(t=e.metadata)?void 0:t.choices)||(this.formQuestionsOptions[e.id]=e.metadata.choices.map((e=>({value:e.value,text:e.text[this.locale]}))))}));let e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render="+this.captcha,e.onload=this.captchaLoaded,document.body.appendChild(e)},methods:{captchaLoaded:function(e){this.captchaHasLoaded=!0,this.grecaptcha=grecaptcha},startFormValidation:function(){this.validateFormFields=!0,setTimeout((()=>{let e=document.querySelector("select:invalid");null===e&&(e=document.querySelector("input:invalid")),null!==e&&e.scrollIntoView({block:"end",behavior:"smooth"})}),100)},onSubmit:function(e){this.error=null,this.scrollToMessage(),this.response.siteid=this.siteId,this.response.captchaToken=e,Xe(this.formId,{response:this.response}).then((e=>{this.isLoading=!1,this.modalMessage?i("#modalMessageAfterSent"+this.formId).modal():(this.isSubmitted=!0,this.scrollToMessage())})).catch((e=>{var t,n,i;let s=null==(n=null==(t=null==e?void 0:e.response)?void 0:t.data)?void 0:n.message;429===(null==(i=null==e?void 0:e.response)?void 0:i.status)&&(s=Lang.get("messages.rate_limit_reached")),this.isLoading=!1,this.isSubmitted=!1,this.error=s??e.message,this.scrollToMessage()}))},scrollToMessage:function(){this.messageStyle="block",document.querySelector("#messages-"+this.formId).scrollIntoView({behavior:"smooth"})},finQuestion:function(e){return Object.values(this.questions).find((t=>{if(t.id===e)return t}))},addMoreAnswers(e){let t=this.finQuestion(e);void 0!==this.answers[t.id]&&null===t.metadata||console.warn("Question not found");let n=t.metadata.answers;void 0===this.response[e]&&(this.response[e]=[]);let i={};Object.values(n).forEach((e=>{i[e.value]=""})),this.response[e].push(i),this.$forceUpdate()},removeAnswers(e,t){this.response[e].splice(t,1),this.$forceUpdate()},verifyDependentQuestion(e){let t=Object.values(this.questions).find((t=>t.id===e));if(void 0===t)return console.warn("[SapphireCMS] Question not found"),!0;if(null===t.depends_on)return!0;if(void 0===this.response[t.depends_on])return!1;let n=Object.values(this.questions).find((e=>e.id===t.depends_on));if(void 0===n)return console.warn("[SapphireCMS] Question Father not found"),!0;let i=this.response[t.depends_on];return"boolean"===n.field_type&&"object"==typeof this.response[t.depends_on]&&(i=this.response[t.depends_on].join()),"boolean"===n.field_type&&"boolean"==typeof this.response[t.depends_on]&&(i=this.response[t.depends_on]+""),t.depends_on_status===i},getCaptchaToken:async function(){this.grecaptcha.ready((()=>{this.isLoading=!0,this.grecaptcha.execute(this.captcha,{action:"submit"}).then((e=>{this.onSubmit(e)}))}))},verifySelectTypeQuestions(e){var t;const n=Object.values(this.questions).find((t=>{if(t.id===e)return t}));return!!("choice"!==n.field_type&&"multiple_choice"!==n.field_type||(null==(t=n.metadata)?void 0:t.choices))}}},Ze=function(e,t){let n=s.url(ke.Submit);return o.post(n,t).then((e=>e.data.response))},Ke={props:["siteId","intialValue"],data:()=>({isLoading:!1,isSubmitted:!1,statesList:[],citiesList:[],citiesActiveList:[],error:null,response:{},masks:a,minDate:null,maxDate:null,today:null,validList:[],fields:["nome","email","ddd-whatsapp","whatsapp","ddd-telefone","telefone","birthdate","uf","city"]}),mounted:function(){void 0!==this.intialValue&&(Object.keys(this.intialValue).forEach(function(e){this.response[e]=this.intialValue[e]}.bind(this)),this.$forceUpdate()),De().then((e=>{this.statesList=e.states,this.citiesList=e.cities})).catch((e=>{}));const e=new Date;this.today=new Date(e.getFullYear(),e.getMonth(),e.getDate()),this.minDate=new Date(this.today),this.minDate.setFullYear(this.today.getFullYear()-91),this.maxDate=new Date(this.today),this.maxDate.setFullYear(this.today.getFullYear()-13),this.validList=this.fields},methods:{onSubmit:function(){this.validateFields()&&(this.isLoading=!0,this.response.siteid=this.siteId,Ze(this.formId,{response:this.response}).then((e=>{this.isLoading=!1,this.isSubmitted=!0})).catch((e=>{this.isLoading=!1,this.error=e})))},onChangeUF:function(){let e=1;for(let t=0;t<this.statesList.length;t++)this.statesList[t].letter===this.response.uf&&(e=this.statesList[t].id);this.citiesActiveList=[];for(let t=0;t<this.citiesList.length;t++)this.citiesList[t].state_id===e&&this.citiesActiveList.push(this.citiesList[t])},validateFields:function(){this.validList=Object.values(this.fields),this.$forceUpdate();let e=0;if(Object.values(this.fields).forEach(function(t){void 0!==this.response[t]&&""!==this.response[t]||(this.validList.splice(this.validList.indexOf(t),1),e++)}.bind(this)),void 0!==this.response.birthdate){let t=this.response.birthdate.split("/"),n=new Date(t[2],t[1],t[0]);(n.getFullYear()>this.today.getFullYear()-13||n.getFullYear()<this.today.getFullYear()-91)&&(this.validList.splice(this.validList.indexOf("birthdate"),1),e++)}if(void 0!==this.response.email){-1===this.response.email.indexOf(".")&&(this.validList.splice(this.validList.indexOf("email"),1),e++)}return 0===e}}},et={components:{"slick-carousel":ae},props:["activetab"],data:()=>({currentTab:"",slickSettings:{arrows:!0,adaptiveHeight:!1,draggable:!0,slidesToScroll:1,dots:!0,infinite:!1,speed:300,variableWidth:!1}}),mounted(){this.currentTab=this.activetab,this.slickSettings.slidesToShow=Math.round(i(".search-result-column").width()/284)}},tt={props:["activetab","ean","token","url"],data:()=>({eans:[],results:[],selectedEan:""}),mounted(){window.clearTabs=this.clearTabs,i(document).on("hidden.bs.modal",(function(e){"sellers-overlay"===e.target.id&&(i("#intellyholder-controls").css("display","block"),i("#sellers-overlay").removeClass("opened"),window.clearTabs())})),this.loaderContent()},methods:{selectTab(){this.selectedEan=document.getElementById("select-intelly").value;let e=document.getElementById("select-intelly");""!==this.selectedEan?(i("#intellyholder-controls").css("display","none"),i("#sellers-overlay").addClass("opened"),e.classList.remove("invalid")):(e.classList.add("invalid"),e.focus())},splitEANs:function(){let e=this.ean;if(""===e||void 0===e)return!1;let t=e.split(","),n=0;for(let i of t)""===i&&t.splice(n,1),n++;return t},loaderContent(){this.eans=this.splitEANs();let e={token:this.token,api:this.url,auth:"auth",products:"product"};const t=[];for(let n of this.eans){let s=new Promise(((t,s)=>{let o=[],r={};i.ajax({headers:{Authorization:e.token},type:"GET",url:e.api+"/"+e.products+"/"+n,timeout:2e4,dataType:"json"}).done((e=>{r.ean=e.data.ean,r.name=e.data.name;for(const t of e.data.offers)""!==t.url&&o.push(t);t({infos:r,sellers:o})})).fail(((e,t)=>{s("Error: "+t)}))}));t.push(s)}t.length>0&&(window.pushResult=this.pushResult,Promise.all(t).then((function(e){window.pushResult(e)})).catch((e=>{this.eans=[]})))},pushResult(e){this.results=e,i("#sellers-link").removeClass("loading"),1===this.results.length&&(this.selectedEan=this.results[0].infos.ean,i("#intellyholder-controls").css("display","none"),i("#sellers-overlay").addClass("opened"))},clearTabs(){this.selectedEan="",document.getElementById("select-intelly").value="",console.log("close Tab")}}};const nt=n({data:()=>({}),mounted(){document.addEventListener("DOMContentLoaded",(()=>{document.querySelector(".cookie-bar").style.display="block",document.querySelector(".cookie-bar .btn").addEventListener("click",(()=>this.confirmCookies()))}))},methods:{confirmCookies(){let e=new Date;e.setFullYear(e.getFullYear()+1),document.cookie="accept_save_cookies=1; expires="+e.toGMTString()+";",document.querySelector(".cookie-bar").style.display="none"}}},(function(){return(0,this._self._c)("div",[this._t("default")],2)}),[],!1,null,"0da77a72",null,null).exports,it=function(e,t){let n=s.url(Ae.Submit,{crm:e,uf:t},!0);return o.post(n).then((e=>e.data.status))},st={props:["lang","initialProfile","initialProfession","initialSpecialty","initialInterests","profiles","professions","specialties","interests","locale","currentSiteName","ufs","old"],data:()=>({agreedToTerms:!1,profile:null,profession:null,specialty:null,selectedInterests:[],masks:a,crmLoading:!1,formValidated:!1,crmIsInvalid:null,crmResponseMessage:"",fields:{crm:null,gender:null,name:null,lastname:null,document_identity:null,document_professional:null,document_uf:null,email:null,email_confirmation:null,phone:{value:"",mask:""}}}),beforeMount(){if(void 0!==this.initialProfile&&(this.profile=this.initialProfile),void 0!==this.initialProfession&&(this.profession=this.professions[this.profile].find((e=>e.id===parseInt(this.initialProfession,10)))),void 0!==this.initialSpecialty&&(this.specialty=this.specialties[this.profession.id].find((e=>e.id===parseInt(this.initialSpecialty,10)))),void 0!==this.initialInterests&&(this.selectedInterests=this.initialInterests),void 0!==this.old.profile_slug&&(this.profile=this.old.profile_slug),void 0!==this.old.profession_id&&void 0!==this.old.profile_slug){let e=null;Object.values(this.professions[this.old.profile_slug]).forEach(((t,n)=>{t.id===parseInt(this.old.profession_id)&&(e=t)})),this.profession=e}if(void 0!==this.old.specialty_id&&void 0!==this.old.profession_id){let e=null;Object.values(this.specialties[this.old.profession_id]).forEach(((t,n)=>{t.id===parseInt(this.old.specialty_id)&&(e=t)})),this.specialty=e}void 0!==this.old.name&&(this.fields.name=this.old.name),void 0!==this.old.lastname&&(this.fields.lastname=this.old.lastname),void 0!==this.old.document_identity&&(this.fields.document_identity=this.old.document_identity),void 0!==this.old.email&&(this.fields.email=this.old.email),void 0!==this.old.email_confirmation&&(this.fields.email_confirmation=this.old.email_confirmation),void 0!==this.old.document_professional&&(this.fields.document_professional=this.old.document_professional),void 0!==this.old.document_uf&&(this.fields.document_uf=this.old.document_uf),void 0!==this.old.crm_validated&&(this.crmIsInvalid=!1),void 0!==this.old.phone&&(this.fields.phone.value=this.old.phone),void 0!==this.old.gender&&(this.fields.gender=this.old.gender),void 0!==this.old.agreed_to_terms&&(this.agreedToTerms=!0),void 0!==this.old.interests&&(this.selectedInterests=this.old.interests),this.$forceUpdate()},mounted:function(){this.fields.phone.mask=this.masks.CellphoneWithDDD,window.errorMessages=JSON.parse(this.lang),this.customErrorMessages()},methods:{showHidePassword:function(e){let t=document.getElementById("fld-register-password"),n=document.getElementById("fld-register-password-icon");"password"===t.getAttribute("type")?(t.setAttribute("type","text"),n.setAttribute("class","fa fa-eye")):(t.setAttribute("type","password"),n.setAttribute("class","fa fa-eye-slash"))},customErrorMessages:function(e){document.getElementById("fld-register-password"),document.getElementById("fld-register-confirm_password");let t=document.getElementById("fld-register-email"),n=document.getElementById("fld-register-confirm_email");n?n.addEventListener("input",(function(e){t.value!==n.value?n.setCustomValidity(window.errorMessages.repeatEmail):n.setCustomValidity("")})):console.warn("Missing email confirm field")},whenSubmit:function(e){this.formValidated=!0,this.fields.phone.mask="";let t=document.getElementById("fld-register-phone").value;""!==t&&(this.fields.phone.value=parseInt(t.replace(/[^0-9]/g,""),10))},validateCRM:function(){this.crmLoading=!0,it(this.fields.document_professional,this.fields.document_uf).then((e=>{this.crmLoading=!1,this.crmIsInvalid=!e,e||(this.crmResponseMessage="CRM Inválido ou inativo")})).catch((e=>{this.crmLoading=!1,this.crmIsInvalid=!0,this.crmResponseMessage="Algo deu errado na requisição"}))},readyToContinue:function(){return"Brasil"!==this.currentSiteName&&void 0!==this.profile&&null!==this.profile||"Brasil"===this.currentSiteName&&"profissional-da-saude"!==this.profile&&null!==this.profile||"Brasil"===this.currentSiteName&&"profissional-da-saude"===this.profile&&null!==this.profession&&"medico"!==this.profession.slug||"Brasil"===this.currentSiteName&&"profissional-da-saude"===this.profile&&null!==this.profession&&"medico"===this.profession.slug&&!1===this.crmIsInvalid}}},ot=()=>o.create({headers:{common:{Authorization:rt.token()}}}),rt={fetchOffer(e){return ot().get(this.url()+"/product/"+e).then((e=>e.data.data?e.data.data:[]))},fetchOffers(e){return ot().get(this.url()+"/products",{headers:{products:e.join(",")}}).then((e=>e.data.data?e.data.data:[]))},token(){if(window.INTELLIBRAND_TOKEN)return window.INTELLIBRAND_TOKEN;let e=document.head.querySelector('meta[name="intellibrand-token"]');return e?window.INTELLIBRAND_TOKEN=e.content:(console.error("Could not find Intellibrand Token element in page!"),"")},url(){if(window.INTELLIBRAND_URL)return window.INTELLIBRAND_URL;let e=document.head.querySelector('meta[name="intellibrand-url"]');return e?window.INTELLIBRAND_URL=e.content:(console.error("Could not find Intellibrand Token element in page!"),"")},currency(){if(window.INTELLIBRAND_CURRENCY)return window.INTELLIBRAND_CURRENCY;let e=document.head.querySelector('meta[name="intellibrand-currency"]');return e?(console.log("Intellibrand currency: ",e.content),window.INTELLIBRAND_CURRENCY=e.content):(console.error("Could not find Intellibrand Currency element in page!"),"R$")},hasDecimals(){if(window.INTELLIBRAND_DECIMALS)return window.INTELLIBRAND_DECIMALS;let e=document.head.querySelector('meta[name="intellibrand-decimals"]');return e?(console.log("Intellibrand decimals: ",e.content),window.INTELLIBRAND_DECIMALS="true"===e.content):(console.error("Could not find Intellibrand Decimals element in page!"),!0)}},at=(e,t)=>t<=e?t:e,lt={props:["eansToLoad","eansPerId","leafletReaderUrlPatient","leafletReaderUrlHealthcare"],data:()=>({minPricePerEan:{},skus:{},selectedEan:null,selectedProduct:null,openProduct:null,isLoadingOffers:0,isOffersModalOpen:!1,enableLeafletReader:!0,isOffersLoadedStyle:"none",productsWithOffers:0,currency:rt.currency(),hasDecimals:rt.hasDecimals(),listening:{patient:!1,healthcare:!1},videoModalIsOpen:!1,announcementModalIsOpen:!1,leafletModalIsOpen:!1,leafletListenModalIsOpen:!1,serviceStarted:!0,leafletText:[],voice:void 0,language:void 0}),watch:{announcementModalIsOpen:e=>{},leafletListenModalIsOpen(e){!e&&window.speechSynthesis&&window.speechSynthesis.speaking&&(window.speechSynthesis.cancel(),this.listening.patient=!1,this.listening.healthcare=!1,this.$forceUpdate())}},mounted(){this.loadOffers(),this.announcementModalIsOpen=!0,window.openOffers=e=>{e?this.eansPerId[e]?this.selectProduct(this.eansPerId[e]):console.warn("Product ID has no EANs mapped: ",e):console.warn("Invalid product ID: ",e)},this.setSpeechVoice(),this.loadLeafletHTML()},computed:{isOffersModalLoading(){return null!==this.selectedProduct&&null===this.openProduct}},methods:{setSpeechVoice(){this.language="pt"===Lang._locale?"pt-BR":Lang._locale;const e=window.speechSynthesis.getVoices();this.voice=e.filter((e=>e.lang===this.language))[0]},checkLeafletFileToRead(e){let t="patient"===e?this.leafletReaderUrlPatient:this.leafletReaderUrlHealthcare;o.get(t).then((e=>{this.enableLeafletReader=!0})).catch((e=>{this.enableLeafletReader=!1}))},async loadLeafletHTML(){["patient","healthcare"].map((async e=>{try{let t="patient"===e?this.leafletReaderUrlPatient:this.leafletReaderUrlHealthcare;const{data:n}=await o.get(t);this.leafletText[e]=n,this.$forceUpdate()}catch(t){console.log("erro ao buscar bula: "+e)}}))},async listenLeaflet(e){if(this.listening[e])return this.listening[e]=!1,window.speechSynthesis.cancel(),!0;if(this.listening[e]=!0,!this.leafletText[e])return;let t=this.leafletText[e].replace(/<\/?[^>]+(>|$)/g,"").split(/\. |\n|, |:|!/);for(let n in t){if(!t[n].trim())continue;let i=new SpeechSynthesisUtterance;i.lang=this.language,i.text=t[n].trim(),i.voice=this.voice,i.volume=1,window.speechSynthesis.speak(i),n===t.length-1&&(alert("acabou"),this.listening[e]=!1)}},hasPriceAvailable:e=>!1,renderPrice(e){return this.currency+(""+e.map((e=>this.minPricePerEan[e])).reduce(at,1/0).toFixed(this.hasDecimals?2:0)).replace(".",",")},selectProduct(e){this.selectedProduct=e,this.openProduct=null,this.isOffersModalOpen=!0,console.log("Loading offers for product w/ EANs: ",e),Promise.all(e.map((e=>rt.fetchOffer(e)))).then((e=>{let t=Object.values(e).filter((e=>e.ean));console.log("Loaded all offers for EANs: "),console.table(t),0!==t.length?(this.isOffersLoadedStyle="block",this.openProduct=t,1===t.length&&(this.selectedEan=this.openProduct[0].ean),this.$forceUpdate()):this.productsWithOffers=0}))},onModalSkuChange(e){console.log("SELECTED EAN",e.target.value),this.selectedEan=e.target.value},closeOffersModal(){this.selectedProduct=null,this.openProduct=null,this.isOffersModalOpen=!1},loadOffers(){let e=this.eansToLoad.split(",");console.log("Loading EANs: ",e),this.productsWithOffers=0,e.forEach((e=>{this.isLoadingOffers++,rt.fetchOffer(e).then((t=>{this.isLoadingOffers--,t&&0!==t.length&&(t.offers?(this.skus[e]=t,this.minPricePerEan[e]=t.offers.map((e=>e.price)).reduce(at,1/0),this.$forceUpdate(),this.isLoadingOffers--,this.productsWithOffers++):console.warn("SKU has no offers: ",t))}))}))},checkEans(e,t){let n=!0;return e.forEach((e=>{rt.fetchOffer(e).then((e=>{e.offers||(n=!1)}))})),n&&i(".btn-sale-"+t).removeClass("loading"),n}}},ct={components:{"slick-carousel":ae},props:["eansToLoad"],data:()=>({eans:[],offers:{},productsInModal:[],defaultProduct:"",isLoading:!0,showSellerProductsModal:!1,slickSettings:{arrows:!0,adaptiveHeight:!1,draggable:!0,dots:!1,infinite:!0,speed:300,variableWidth:!1,responsive:[{breakpoint:9e3,settings:{slidesToShow:Math.round(i(".main-container").width()/350)}},{breakpoint:900,settings:{slidesToShow:3}},{breakpoint:768,settings:{slidesToShow:1}}]}}),mounted(){this.loadOffers()},methods:{showProductSelection(e){this.eans.length<2||(this.productsInModal=this.offers[e].products,this.showSellerProductsModal=!0)},loadOffers(){this.eans=this.eansToLoad.split(","),this.isLoading=!0,rt.fetchOffers(this.eans).then((e=>{this.isLoading=!1,1===this.eans.length&&(this.defaultProduct=e[0].name),e.forEach((e=>{e.offers?Object.values(e.offers).forEach((t=>{t.available&&(void 0===this.offers[t.retailer]&&(this.offers[t.retailer]={image:t.retailerLogo,products:{}}),this.offers[t.retailer].products[e.name]=t.url)})):console.warn("SKU has no offers: ",e.ean)})),this.$forceUpdate()})).catch((e=>{this.isLoading=!1}))}}};var dt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ut="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,ft=ut||pt||Function("return this")(),ht=ft,mt=function(){return ht.Date.now()},vt=/\s/;var gt=function(e){for(var t=e.length;t--&&vt.test(e.charAt(t)););return t},_t=/^\s+/;var yt=function(e){return e?e.slice(0,gt(e)+1).replace(_t,""):e},bt=ft.Symbol,wt=bt,xt=Object.prototype,Ct=xt.hasOwnProperty,St=xt.toString,kt=wt?wt.toStringTag:void 0;var Tt=function(e){var t=Ct.call(e,kt),n=e[kt];try{e[kt]=void 0;var i=!0}catch(o){}var s=St.call(e);return i&&(t?e[kt]=n:delete e[kt]),s},Pt=Object.prototype.toString;var At=Tt,Lt=function(e){return Pt.call(e)},Et=bt?bt.toStringTag:void 0;var Ot=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Et&&Et in Object(e)?At(e):Lt(e)},Mt=function(e){return null!=e&&"object"==typeof e};var It=yt,jt=dt,qt=function(e){return"symbol"==typeof e||Mt(e)&&"[object Symbol]"==Ot(e)},Nt=/^[-+]0x[0-9a-f]+$/i,Rt=/^0b[01]+$/i,$t=/^0o[0-7]+$/i,Dt=parseInt;var Bt=dt,Ht=mt,zt=function(e){if("number"==typeof e)return e;if(qt(e))return NaN;if(jt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=jt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=It(e);var n=Rt.test(e);return n||$t.test(e)?Dt(e.slice(2),n?2:8):Nt.test(e)?NaN:+e},Ft=Math.max,Vt=Math.min;const Wt={props:["autocompleteUrl","initialSearchQuery","lang"],data:()=>({searchQuery:null,results:null,isLoading:!1,selectedIndex:-1}),mounted:function(){this.initialSearchQuery&&(this.searchQuery=this.initialSearchQuery)},methods:{onKeyPress:function(e){if(!this.isLoading&&this.results)switch(e.key){case"ArrowUp":if(this.selectedIndex--,this.selectedIndex<-1&&(this.selectedIndex=-1),-1===this.selectedIndex)return void this.$refs.input.setSelectionRange(-1,-1);e.preventDefault();break;case"ArrowDown":this.selectedIndex++,this.selectedIndex>this.results.length-1&&(this.selectedIndex=this.results.length-1);break;case"Enter":if(this.isLoading=!0,this.selectedIndex>=0){let t=this.results[this.selectedIndex].href;return this.results=null,window.location=t,void e.preventDefault()}}},onQueryChange:t((function(e,t,n){var i,s,o,r,a,l,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,o=s;return i=s=void 0,c=t,r=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-c>=o}function m(){var e=Ht();if(h(e))return v(e);a=setTimeout(m,function(e){var n=t-(e-l);return u?Vt(n,o-(e-c)):n}(e))}function v(e){return a=void 0,p&&i?f(e):(i=s=void 0,r)}function g(){var e=Ht(),n=h(e);if(i=arguments,s=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(m,t),d?f(e):r}(l);if(u)return clearTimeout(a),a=setTimeout(m,t),f(l)}return void 0===a&&(a=setTimeout(m,t)),r}return t=zt(t)||0,Bt(n)&&(d=!!n.leading,o=(u="maxWait"in n)?Ft(zt(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=s=a=void 0},g.flush=function(){return void 0===a?r:v(Ht())},g}))((function(e){return this.isLoading=!0,Ee(this.searchQuery,this.lang).then((e=>{this.results=e.map((e=>(e.lead&&e.lead.length>200&&(e.lead=e.lead.substring(0,200)+"..."),e))),this.isLoading=!1})).catch((e=>{this.results=null,this.isLoading=!1}))}),250)}},Ut={props:["query","filter","letter","filterTaxonomy","checkboxOptions","defaultOption","defaultOptionSelected","tagsOverride"],data:()=>({string:"",selectedFilter:"",letterFilter:"",keyTaxonomyComponent:0,stringProfile:"",valueFilterTaxonomy:null,componentId:null,filterOnFocus:!1,checkboxOptionsList:{},checkboxOptionsListSelected:{},defaultCheckboxOptionsIndex:null}),beforeMount(){this.componentId=this._uid,void 0!==this.checkboxOptions&&(this.checkboxOptionsList=this.checkboxOptions),void 0!==this.defaultOption&&this.checkboxOptionsList.unshift(this.defaultOption),!0===this.defaultOptionSelected&&void 0!==this.defaultOption&&(this.checkboxOptionsListSelected[0]=!0)},mounted(){this.string=this.query,this.letterFilter=this.letter,this.selectedFilter=this.filter,this.valueFilterTaxonomy=this.filterTaxonomy,document.getElementById("query-input-search").addEventListener("keyup",(({key:e})=>{"Enter"===e&&this.submitSearch()}))},watch:{checkboxOptionsListSelected:function(e){}},methods:{showOptions:function(){this.filterOnFocus=!0},hideOptions:function(e){this.filterOnFocus=!1},applyFilterTaxonomy:function(e){let t=this.checkboxOptionsList[e],n=t!==this.defaultOption?[t]:[];this.checkboxOptionsListSelected={index:!0},this.valueFilterTaxonomy=n,this.keyTaxonomyComponent++,this.hideOptions()},clearFilterTaxonomy:function(){this.checkboxOptionsListSelected={0:!0},this.valueFilterTaxonomy=[],this.keyTaxonomyComponent=0,this.hideOptions()},submitSearch:function(){this.letterFilter="",this.keyTaxonomyComponent++},filterCheckBoxProfile:function(){document.getElementById("search-input-block-"+this.componentId).querySelectorAll(".form-check").forEach(((e,t)=>{let n=e.getAttribute("data-filter");""===this.stringProfile||n.toLowerCase().indexOf(this.stringProfile.toLowerCase())>-1?e.classList.remove("d-none"):e.classList.add("d-none")}))},applyFilterLetter:function(e){this.string="",this.letterFilter=e,this.keyTaxonomyComponent++},clearFilter:function(){this.string="",this.clearFilterTaxonomy(),this.submitSearch()},defaultOptionIsSelected:function(){return-1!==Object.keys(this.checkboxOptionsListSelected).indexOf(0)}}},Qt={props:["initialProducts","tagSlug","total","profileSlug"],data:()=>({products:{},tag:"",currentPage:1,isLoading:!1,profile:""}),mounted:function(){this.products=this.initialProducts,""===this.tagSlug?this.tag="all":this.tag=this.tagSlug,this.profile=this.profileSlug?this.profileSlug:"consumidor"},methods:{getNextProductPage:function(){this.isLoading=!0,this.currentPage+=1,$e(this.tag,this.currentPage,this.profile).then((e=>{this.isLoading=!1,this.products=this.products.concat(e.data),this.$forceUpdate()})).catch((e=>{this.isLoading=!1}))},tagClassValue:function(e){return"tag-"+e}}},Gt={methods:{sendYes(e){o.post(Te.Register,{pageId:e,yes:!0}),i(".toggle-when-send-form").toggle()},sendNo(e){o.post(Te.Register,{pageId:e,no:!0}),i(".toggle-when-send-form").toggle()}}},Yt={data:()=>({playing:!1}),methods:{start(){let e=this;this.playing=!0,window.speechSynthesis.cancel();let t=i(".component-wrapper-html_block").text().split(/\.|,|:|!/);for(let n in t){this.playing=!0;let i=new SpeechSynthesisUtterance;if(t[n]===t[t.length-1]&&(i.onend=function(){e.cancel()}),""==t[n])break;i.lang=Lang._locale,i.text=t[n],i.volume=1,i.addEventListener("start",(function(e){console.log(e.utterance.text)})),window.speechSynthesis.speak(i)}},cancel(){window.speechSynthesis.cancel(),this.playing=!1}}},Xt="https://eurofarma.nexfar.com.br/",Jt={login(e){let t="";return Object.keys(e).forEach((function(n){""!==t&&(t+="&"),t+=n+"="+e[n]})),o.post(Xt+"api/login",t,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>e.data)).catch((e=>404===e.response.status?null:e.response.data))},doRegistrationActivation:e=>o.post(Xt+"api/activation/activate/"+e,{headers:{"Content-Type":"application/json"}}).then((e=>e.data)).catch((e=>404===e.response.status?null:e.response.data)),registration:e=>o.post(Xt+"api/activation/pre-activate",e,{headers:{"Content-Type":"application/json"}}),validateCPNJ:e=>o.get(Xt+"api/activation/"+e+"/status",{headers:{"Content-Type":"application/json"}}).then((e=>e.data)).catch((e=>404===e.response.status?null:e.response.data)),getLoginRedirectURL:e=>Xt+"#/?authToken="+e},Zt={props:[],data:()=>({showDistribuidorModal:!1,showLoginModal:!1,showRegisterModal:!1,startValidation:!1,cnpjValidated:!1,registrationValidated:!1,tokenValidated:!1,loadingStateBtn:"",dateOfBirthFormated:"",registerIndex:0,masks:a,registrationToken:"",invalidPassword:!1,genders:{FEMALE:"Feminino",MALE:"Masculino",OTHER:"Outro",UNDEFINED:"Prefiro não informar"},recommendationSource:{SELLER:"vendedor(a)",WHATSAPP:"Whatsapp",EMAIL:"Email",SMS:"SMS",FLYER:"Flyer",OTHER:"Outro"},loginValues:{email:"",password:""},registerValues:{cnpj:"",cpf:"",name:"",email:"",phone:"",gender:"",recommendationSource:"",dateOfBirth:"",password:"",passwordConfirmation:""}}),mounted:function(){let e=document.querySelector('a[href="#verdistribuidoras"]');null!==e&&e.addEventListener("click",function(){this.showDistribuidorModal=!0}.bind(this)),document.querySelectorAll('a[href="#entrar"]').forEach(function(e){e.addEventListener("click",function(){this.showLoginModal=!0}.bind(this))}.bind(this)),document.querySelectorAll('a[href="#cadastro"]').forEach(function(e){e.addEventListener("click",function(){this.showRegisterModal=!0}.bind(this))}.bind(this))},watch:{loginValues:{deep:!0,handler:function(e,t){this.startValidation&&this.formIsValid("login")}},registerValues:{deep:!0,handler:function(e,t){this.startValidation&&this.formIsValid("register")}}},methods:{loginSubmitForm:function(e){return e.preventDefault(),this.startValidation=!0,this.formIsValid("login")&&(console.log("Do the login"),this.loadingStateBtn="loading",Jt.login(this.formatInput(this.loginValues)).then((e=>{this.loadingStateBtn="";let t=document.getElementById("login-validation-error"),n=[document.getElementById("login-fld-email"),document.getElementById("login-fld-senha")];if(null!==e&&void 0!==e.fieldErrors)t.innerHTML=e.fieldErrors[0].message,n[0].classList.add("is-invalid"),n[1].classList.add("is-invalid");else if(null===e)t.innerHTML="Erro ao fazer a busca";else{n[0].classList.add("is-valid"),n[1].classList.add("is-valid"),this.loadingStateBtn="valid",this.registerValues=this.formatInput(this.registerValues,!0);let t=Jt.getLoginRedirectURL(e.token);this.showLoginModal=!1,window.open(t)}}))),!1},reSubmitRegistrationForm:function(){document.getElementById("registration-btn").click()},registrationSubmitForm:function(e){if(e.preventDefault(),this.startValidation=!0,this.formIsValid("register")){let e=this;this.loadingStateBtn="loading",Jt.registration(this.formatInput(this.registerValues)).then((()=>{e.loadingStateBtn="",e.registrationValidated=!0;let t=document.getElementById("registration-message");t.innerHTML="",t.classList.add("d-none"),e.registerIndex=2})).catch((t=>{e.loadingStateBtn="",void 0!==t.response.data&&void 0!==t.response.data.fieldErrors&&Object.values(t.response.data.fieldErrors).forEach((function(t){if(void 0!==t.field){let n=document.getElementById("registration-fld-"+t.field);void 0!==n.innerHTML&&(null===n.parentNode.querySelector(".invalid-feedback")&&n.insertAdjacentHTML("afterend",'<div class="invalid-feedback">'+e.translateMessageOutput(t.message)+"</div>"),n.classList.remove("is-valid"),n.classList.add("is-invalid"))}else{let e=document.getElementById("registration-message");e.classList.add("d-block"),void 0!==t.message?e.innerHTML=t.message:e.innerHTML="Usuário ja cadastrado"}}))}))}return!1},cnpjSubmitForm:function(e){e.preventDefault();let t=document.getElementById("validate-fld-cnpj");if(""===t.value)return void t.classList.add("is-invalid");this.loadingStateBtn="loading";let n=this.formatInput(this.registerValues);Jt.validateCPNJ(n.cnpj).then((e=>{this.loadingStateBtn="";let n=document.getElementById("cnpj-validation-error");n.innerHTML="",null!==e&&void 0!==e.fieldErrors?(n.innerHTML=e.fieldErrors[0].message,t.classList.add("is-invalid")):null===e?(n.innerHTML="Erro ao fazer a busca",t.classList.add("is-invalid")):(t.classList.remove("is-invalid"),t.classList.add("is-valid"),this.loadingStateBtn="valid",this.endAnimationCNPJ())}))},tokenSubmitForm:function(e){e.preventDefault();let t=document.getElementById("registration-fld-token"),n=document.getElementById("token-validation-error");""!==t.value?(this.loadingStateBtn="loading",Jt.doRegistrationActivation(this.registrationToken).then((e=>{if(this.loadingStateBtn="",void 0!==e.fieldErrors)return n.innerHTML="Token não encontrado",void t.classList.add("is-invalid");t.classList.remove("is-invalid"),t.classList.add("is-valid"),this.tokenValidated=!0,this.registerValues=this.formatInput(this.registerValues,!0)}))):t.classList.add("is-invalid")},endAnimationCNPJ:function(){setTimeout(function(){this.cnpjValidated=!0,this.registerIndex=1,this.loadingStateBtn=""}.bind(this),500)},formatInput:function(e,t){let n={};return Object.keys(e).forEach(function(i){if(void 0!==t)n[i]="";else if(""!==e[i]&&(n[i]=e[i]),"cnpj"!==i&&"cpf"!==i&&"phone"!==i||(n[i]=e[i].replaceAll("/","").replaceAll(".","").replaceAll("-","").replaceAll("(","").replaceAll(")","").replaceAll(" ","")),"dateOfBirth"===i){let t=e[i].split("-");n[i]=t[2]+t[1]+t[0]+"000000"}}.bind(this)),n},translateMessageOutput:function(e){return"CPF.transientUserActivate.cpf"===e?"CPF Inválido":"Size.transientUserActivate.phone"===e?"Faltam dígitos no campo telefone":""},formIsValid:function(e){let t=0,n=null,i={};return"register"===e&&(n=document.getElementById("registration-form"),i=this.registerValues),"login"===e&&(n=document.getElementById("login-form"),i=this.loginValues),null===n?(console.log("Cant find form!"),!1):(Object.keys(i).forEach(function(e){let s=n.querySelector('input[name="'+e+'"]');if(null!==s){if(s.classList="form-control","not-required"!==s.getAttribute("rel")&&(""===i[e]?(t++,s.classList.add("is-invalid")):s.classList.add("is-valid")),-1!==e.indexOf("Confirmation")&&i[e]!==i[e.replace("Confirmation","")]){if(t++,s.classList.remove("is-valid"),s.classList.add("is-invalid"),void 0!==document.getElementById(e+"confirm-password-validation-error")){let t=document.getElementById(e+"confirm-password-validation-error");void 0!==t.innerHTML&&(t.innerHTML="Precisam ser iguais!")}}"registration-fld-password"===s.getAttribute("id")&&this.invalidPassword&&(s.classList.remove("is-valid"),s.classList.add("is-invalid"),t++)}else{let s=n.querySelector("button#registration-fld-"+e);if(""===i[e])if(t++,null!==s)s.parentNode.classList.add("is-invalid");else{n.querySelector('label[for="registration-fld-'+e+'"]').parentNode.querySelectorAll(".custom-control-input").forEach((function(e){e.classList.add("is-invalid")}))}else if(null!==s)s.parentNode.classList.add("is-valid");else{n.querySelector('label[for="registration-fld-'+e+'"]').parentNode.querySelectorAll(".custom-control-input").forEach((function(e){e.classList.add("is-valid")}))}}}.bind(this)),0===t&&n.classList.add("was-validated"),0===t)},formatDateBirthSelect:function(e){if(null!==e.selectedDate){let t=e.selectedYMD.split("-");this.dateOfBirthFormated=t[2]+"/"+t[1]+"/"+t[0]}},formatDateBirthOnType:function(e){if(""!==e){let t=e.target.value.split("/");void 0!==window.typeTime&&clearTimeout(window.typeTime),window.typeTime=setTimeout(function(e){this.registerValues.dateOfBirth=t[2]+"-"+t[1]+"-"+t[0]}.bind(this),500)}},toggleLoginModal:function(){this.showRegisterModal=!1,this.showLoginModal=!0},validatePassword(){const e=/[A-Z]/.test(this.registerValues.password),t=/[a-z]/.test(this.registerValues.password),n=/[0-9]/.test(this.registerValues.password),i=this.registerValues.password.length>=8;return this.invalidPassword=!(e&&t&&n&&i),!(e&&t&&n&&i)}}},Kt=function(e,t){let n=s.url(Pe.Submit,{pageType:t});return o.post(n,{option:e}).then((e=>(console.log(e.data.data),e.data.data)))},en={components:{},props:["homeUrl","pageType","productsUrl"],data:()=>({modalShowState:!0,showStaticAnim:!1,loadingState:!1}),mounted(){console.log(this.pageType)},methods:{close:function(){this.modalShowState=!1,document.body.classList.remove("modal-open")},cancel:function(){this.loadingState=!0,Kt("consumer",this.pageType).then((e=>this.finishSaved(e)))},confirm:function(){this.loadingState=!0,Kt("healthcare_professional",this.pageType).then((e=>this.finishSaved(e)))},finishSaved:function(e){this.loadingState="saved","healthcare_professional"!==e?location.href=this.productsUrl:setTimeout((()=>{this.close()}),500)},esc:function(){this.showStaticAnim=!0,setTimeout((()=>{this.showStaticAnim=!1}),200)}}},tn={getToken:()=>o.get("api/salesfarma-token").then((e=>e.data.token)),login:e=>o.post("api/salesfarma-login",e).then((e=>e.data)).catch((e=>e.response)),validateCPNJ:e=>o.post("api/salesfarma-cnpj",{cnpj:e}).then((e=>e.data)).catch((e=>e.response)),getLoginRedirectURL:e=>apiHost+"#/?authToken="+e};const nn=n({props:["assets","showWelcome"],data:()=>({showDistribuidorModal:!1,showProdutosModal:!1,showLoginModal:!1,showRegisterModal:!1,startValidation:!1,cnpjValidated:!1,registrationValidated:!1,tokenValidated:!1,invalidPassword:!1,showWelcomeModal:!0,loadingStateBtn:"",dateOfBirthFormated:"",salesFarmaToken:"",registerIndex:0,welcomeSliderPos:0,masks:a,registrationToken:"",redirectUrl:"https://eurofarmaportalpdv.salesfarma.com.br/SignIn/ExternalSignInToken?token=@token@",genders:{FEMALE:"Feminino",MALE:"Masculino",OTHER:"Outro",UNDEFINED:"Prefiro não informar"},recommendationSource:{SELLER:"vendedor(a)",WHATSAPP:"Whatsapp",EMAIL:"Email",SMS:"SMS",FLYER:"Flyer",OTHER:"Outro"},loginValues:{cnpj:"",password:""},registerValues:{cnpj:"",cpf:"",name:"",email:"",phone:"",gender:"",recommendationSource:"",dateOfBirth:"",password:"",passwordConfirmation:""}}),mounted:function(){document.addEventListener("hashchange",(e=>{console.log(e)})),document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll('a[href="#entrar"]').forEach(function(e){e.addEventListener("click",function(){this.showLoginModal=!0}.bind(this))}.bind(this)),document.querySelectorAll('a[href="#cadastro"]').forEach(function(e){e.addEventListener("click",function(){this.showRegisterModal=!0}.bind(this))}.bind(this));let e=document.getElementById("burger-menu");e&&e.addEventListener("click",(e=>{document.getElementsByTagName("body")[0].classList.toggle("burger-menu-opened")}));let t=document.querySelectorAll(".top-menu a");t.length>0&&t.forEach((e=>{e.addEventListener("click",(()=>{document.getElementsByTagName("body")[0].classList.remove("burger-menu-opened")}))})),document.querySelectorAll('a[href="#distribuidores"]').forEach((e=>{e.addEventListener("click",function(){this.showDistribuidorModal=!0}.bind(this))})),i("#distribuidoresModal").on("hidden.bs.modal",(()=>{this.showDistribuidorModal=!1})),document.querySelectorAll('a[href="#produtos"]').forEach((e=>{e.addEventListener("click",function(){this.showProdutosModal=!0}.bind(this))})),i("#produtosModal").on("hidden.bs.modal",(()=>{this.showProdutosModal=!1}))})),this.$root.$on("bv::modal::hidden",((e,t)=>{"welcome-modal"===t&&this.saveWelcomeCookies()}))},watch:{showDistribuidorModal(e){e||i("#distribuidoresModal").modal("hide"),e&&i("#distribuidoresModal").modal("show")},showProdutosModal(e){e||i("#produtosModal").modal("hide"),e&&i("#produtosModal").modal("show")},loginValues:{deep:!0,handler:function(e,t){this.startValidation&&this.formIsValid("login")}},registerValues:{deep:!0,handler:function(e,t){this.startValidation&&this.formIsValid("register")}}},methods:{saveWelcomeCookies(){let e=new Date;e.setFullYear(e.getFullYear()+1),document.cookie="genericos_pdv_welcome_view=1; expires="+e.toGMTString()+";"},loginSubmitForm:function(e){return this.startValidation=!0,this.formIsValid("login")&&(console.log("Do the login"),this.loadingStateBtn="loading",tn.login(this.formatInput(this.loginValues)).then((e=>{this.loadingStateBtn="";let t=document.getElementById("login-validation-error"),n={cnpj:document.getElementById("login-fld-cnpj"),password:document.getElementById("login-fld-senha")};if(200===e.status)return t.innerHTML="",this.registrationToken=e.token,void(this.redirectUrl=this.redirectUrl.replace("@token@",e.token));if(200!==e.status){switch(e.data.message){case"CNPJ inválido":t.innerHTML="O CNPJ informado é inválido. Por favor, verifique o número digitado e tente novamente. Caso o problema persista, entre em contato através das informações disponíveis ao final da página ou pelo ",t.innerHTML+='<a href="https://api.whatsapp.com/send?phone=5511976113606&text=Oi" target="_blank">WhatsApp +55 (11) 97611-3606</a>.';break;case"Cliente não encontrado":t.innerHTML="Não encontramos um cliente com o CNPJ informado. Por favor, verifique o número digitado e tente novamente. Caso o problema persista, entre em contato através das informações disponíveis ao final da página ou pelo",t.innerHTML+='<a href="https://api.whatsapp.com/send?phone=5511976113606&text=Oi" target="_blank">WhatsApp +55 (11) 97611-3606</a>.';break;case"Cliente inativo":t.innerHTML="O cliente associado a este CNPJ está inativo. Por favor, verifique o número digitado e tente novamente. Caso o problema persista, entre em contato através das informações disponíveis ao final da página ou pelo",t.innerHTML+='<a href="https://api.whatsapp.com/send?phone=5511976113606&text=Oi" target="_blank">WhatsApp +55 (11) 97611-3606</a>.';break;case"Senha inválida":t.innerHTML="Senha inválida";break;default:t.innerHTML="Ocorreu um problema ao processar sua solicitação. Por favor, verifique o número digitado e tente novamente. Caso o problema persista, entre em contato através das informações disponíveis ao final da página ou pelo",t.innerHTML+='<a href="https://api.whatsapp.com/send?phone=5511976113606&text=Oi" target="_blank">WhatsApp +55 (11) 97611-3606</a>.'}n.cnpj.classList.add("is-invalid"),n.password.classList.add("is-invalid")}}))),!1},cnpjSubmitForm:function(e){e.preventDefault();let t=document.getElementById("validate-fld-cnpj");if(""===t.value)return void t.classList.add("is-invalid");this.loadingStateBtn="loading";let n=this.formatInput(this.registerValues);tn.validateCPNJ(n.cnpj).then((e=>{this.loadingStateBtn="";let i=document.getElementById("cnpj-validation-error");if(200===e.status)return i.innerHTML="",t.classList.remove("is-invalid"),t.classList.add("is-valid"),this.loginValues.cnpj=n.cnpj,void setTimeout((()=>{this.toggleLoginModal()}),500);if(200!==e.status){switch(e.data.message){case"CNPJ inválido":i.innerHTML="O CNPJ informado é inválido. Por favor, verifique o número digitado e tente novamente. Caso o problema persista, entre em contato através das informações disponíveis ao final da página ou pelo ",i.innerHTML+='<a href="https://api.whatsapp.com/send?phone=5511976113606&text=Oi" target="_blank">WhatsApp +55 (11) 97611-3606</a>.';break;case"Cliente não encontrado":i.innerHTML="Não encontramos um cliente com o CNPJ informado. Por favor, verifique o número digitado e tente novamente. Caso o problema persista, entre em contato através das informações disponíveis ao final da página ou pelo",i.innerHTML+='<a href="https://api.whatsapp.com/send?phone=5511976113606&text=Oi" target="_blank">WhatsApp +55 (11) 97611-3606</a>.';break;case"Cliente inativo":i.innerHTML="O cliente associado a este CNPJ está inativo. Por favor, verifique o número digitado e tente novamente. Caso o problema persista, entre em contato através das informações disponíveis ao final da página ou pelo",i.innerHTML+='<a href="https://api.whatsapp.com/send?phone=5511976113606&text=Oi" target="_blank">WhatsApp +55 (11) 97611-3606</a>.';break;case"Cliente ativo, mas ainda não fez o primeiro login na plataforma.":i.innerHTML="O cliente associado a este CNPJ está ativo, mas ainda não realizou o primeiro login. Para continuar com o login, acesse ",i.innerHTML+='<a href="https://eurofarmaportalpdv.salesfarma.com.br" target="_blank">https://eurofarmaportalpdv.salesfarma.com.br</a> ';break;default:i.innerHTML="Ocorreu um problema ao processar sua solicitação. Por favor, verifique o número digitado e tente novamente. Caso o problema persista, entre em contato através das informações disponíveis ao final da página ou pelo",i.innerHTML+='<a href="https://api.whatsapp.com/send?phone=5511976113606&text=Oi" target="_blank">WhatsApp +55 (11) 97611-3606</a>.'}t.classList.add("is-invalid")}}))},formatInput:function(e,t){let n={};return Object.keys(e).forEach(function(i){if(void 0!==t)n[i]="";else if(""!==e[i]&&(n[i]=e[i]),"cnpj"!==i&&"cpf"!==i&&"phone"!==i||(n[i]=e[i].replaceAll("/","").replaceAll(".","").replaceAll("-","").replaceAll("(","").replaceAll(")","").replaceAll(" ","")),"dateOfBirth"===i){let t=e[i].split("-");n[i]=t[2]+t[1]+t[0]+"000000"}}.bind(this)),n},translateMessageOutput:function(e){return"CPF.transientUserActivate.cpf"===e?"CPF Inválido":"Size.transientUserActivate.phone"===e?"Faltam dígitos no campo telefone":""},formIsValid:function(e){let t=0,n=null,i={};return"register"===e&&(n=document.getElementById("registration-form"),i=this.registerValues),"login"===e&&(n=document.getElementById("login-form"),i=this.loginValues),null===n?(console.log("Cant find form!"),!1):(Object.keys(i).forEach(function(e){let s=n.querySelector('input[name="'+e+'"]');if(null!==s){if(s.classList="form-control","not-required"!==s.getAttribute("rel")&&(""===i[e]?(t++,s.classList.add("is-invalid")):s.classList.add("is-valid")),-1!==e.indexOf("Confirmation")&&i[e]!==i[e.replace("Confirmation","")]){if(t++,s.classList.remove("is-valid"),s.classList.add("is-invalid"),void 0!==document.getElementById(e+"confirm-password-validation-error")){let t=document.getElementById(e+"confirm-password-validation-error");void 0!==t.innerHTML&&(t.innerHTML="Precisam ser iguais!")}}"registration-fld-password"===s.getAttribute("id")&&this.invalidPassword&&(s.classList.remove("is-valid"),s.classList.add("is-invalid"),t++)}else{let s=n.querySelector("button#registration-fld-"+e);if(""===i[e])if(t++,null!==s)s.parentNode.classList.add("is-invalid");else{n.querySelector('label[for="registration-fld-'+e+'"]').parentNode.querySelectorAll(".custom-control-input").forEach((function(e){e.classList.add("is-invalid")}))}else if(null!==s)s.parentNode.classList.add("is-valid");else{n.querySelector('label[for="registration-fld-'+e+'"]').parentNode.querySelectorAll(".custom-control-input").forEach((function(e){e.classList.add("is-valid")}))}}}.bind(this)),0===t&&n.classList.add("was-validated"),0===t)},toggleLoginModal:function(){this.showRegisterModal=!1,this.showLoginModal=!0}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"genericos-lp-content"},[e._t("default"),t("b-modal",{attrs:{id:"register-modal",size:"lg",centered:"","hide-footer":""},scopedSlots:e._u([{key:"modal-title",fn:function(){return[t("h2",[e._v("Validar CNPJ")])]},proxy:!0}]),model:{value:e.showRegisterModal,callback:function(t){e.showRegisterModal=t},expression:"showRegisterModal"}},[t("div",[t("form",{staticClass:"needs-validation container pt-3",attrs:{action:"",id:"cpnj-form"},on:{submit:e.cnpjSubmitForm}},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-8"},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"validate-fld-cnpj"}},[e._v("CNPJ")]),t("input",{directives:[{name:"mask",rawName:"v-mask",value:e.masks.CNPJ,expression:"masks.CNPJ"},{name:"model",rawName:"v-model",value:e.registerValues.cnpj,expression:"registerValues.cnpj"}],staticClass:"form-control",attrs:{id:"validate-fld-cnpj",type:"text",rel:"not-required",name:"cnpj"},domProps:{value:e.registerValues.cnpj},on:{input:function(t){t.target.composing||e.$set(e.registerValues,"cnpj",t.target.value)}}}),t("div",{staticClass:"invalid-feedback",attrs:{id:"cnpj-validation-error"}})])]),t("div",{staticClass:"col-md-4 mt-md-4"},[t("button",{staticClass:"btn btn-primary m-auto d-flex loading-btn",class:e.loadingStateBtn,attrs:{type:"submit"}},[e._v("Verificar "),t("i",{staticClass:"fa fa-check ml-2 mt-1"}),t("div",{staticClass:"spinner-border spinner-border-sm loading-spinner ml-2",attrs:{role:"status"}})])])])])])]),t("b-modal",{attrs:{id:"login-modal",centered:"","hide-footer":""},scopedSlots:e._u([{key:"modal-title",fn:function(){return[t("h2",[e._v("Entrar")])]},proxy:!0}]),model:{value:e.showLoginModal,callback:function(t){e.showLoginModal=t},expression:"showLoginModal"}},[""===e.registrationToken?t("form",{staticClass:"needs-validation",attrs:{action:"",id:"login-form"}},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"login-fld-cnpj"}},[e._v("CNPJ")]),t("input",{directives:[{name:"mask",rawName:"v-mask",value:e.masks.CNPJ,expression:"masks.CNPJ"},{name:"model",rawName:"v-model",value:e.loginValues.cnpj,expression:"loginValues.cnpj"}],staticClass:"form-control",attrs:{id:"login-fld-cnpj",type:"text",name:"cnpj"},domProps:{value:e.loginValues.cnpj},on:{input:function(t){t.target.composing||e.$set(e.loginValues,"cnpj",t.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"login-fld-senha"}},[e._v("Senha")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.loginValues.password,expression:"loginValues.password"}],staticClass:"form-control",attrs:{id:"login-fld-senha",type:"password",name:"password"},domProps:{value:e.loginValues.password},on:{input:function(t){t.target.composing||e.$set(e.loginValues,"password",t.target.value)}}})]),t("div",{staticClass:"invalid-feedback d-block pb-4 text-center",attrs:{id:"login-validation-error"}}),t("a",{staticClass:"btn btn-primary m-auto d-flex loading-btn",class:e.loadingStateBtn,staticStyle:{width:"fit-content"},on:{click:function(t){return e.loginSubmitForm()}}},[e._v(" Entrar "),t("i",{staticClass:"fa fa-check ml-2 mt-1"}),t("div",{staticClass:"spinner-border spinner-border-sm loading-spinner ml-2",attrs:{role:"status"}})])]):t("div",[t("a",{staticClass:"btn btn-primary m-auto d-flex loading-btn",staticStyle:{width:"fit-content"},attrs:{href:e.redirectUrl,target:"_blank"}},[e._v(" Clique aqui para acessar ")])])]),e.showWelcome?t("b-modal",{attrs:{id:"welcome-modal","content-class":"welcome-modal","hide-header":"",centered:"","hide-footer":""},model:{value:e.showWelcomeModal,callback:function(t){e.showWelcomeModal=t},expression:"showWelcomeModal"}},[t("div",{staticClass:"welcome-modal-content"},[t("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333"},attrs:{id:"carousel-welcome",interval:0,controls:"",indicators:"",background:"#FFF","img-width":"408","img-height":"619"},model:{value:e.welcomeSliderPos,callback:function(t){e.welcomeSliderPos=t},expression:"welcomeSliderPos"}},[t("b-carousel-slide",{attrs:{"img-src":e.assets["genericos-welcome-01.png"]}},[t("div",{staticClass:"inner"},[e._v(" Você está no "),t("strong",[e._v("Genéricos no PDV")]),e._v(", "),t("br"),e._v(" um e-commerce para clientes não "),t("br"),e._v(" atendidos pela força de vendas "),t("br"),e._v(" Genéricos & OTC. "),t("br"),t("a",{staticClass:"btn btn-primary",on:{click:function(t){e.welcomeSliderPos=1}}},[e._v("Próximo")])])]),t("b-carousel-slide",{attrs:{"img-src":e.assets["genericos-welcome-02.png"]}},[t("div",{staticClass:"inner second-slide-inner"},[e._v(" Para aproveitar os benefícios, "),t("br"),e._v(" é preciso "),t("strong",[e._v(" ativar o cadastro "),t("br"),e._v(" da sua farmácia. "),t("br")]),t("a",{staticClass:"btn btn-primary",on:{click:function(t){e.welcomeSliderPos=2}}},[e._v("Próximo")])])]),t("b-carousel-slide",{attrs:{"img-src":e.assets["genericos-welcome-03.png"]}},[t("div",{staticClass:"inner third-slide-inner"},[e._v(" O melhor de tudo: não "),t("br"),e._v(" tem "),t("strong",[e._v("custo nenhum")]),e._v(" para "),t("br"),e._v(" usar o "),t("strong",[e._v("Genéricos no PDV")]),e._v("! "),t("br"),t("a",{staticClass:"btn btn-primary",on:{click:function(t){e.showWelcomeModal=!1}}},[e._v("Quero ver")])])])],1)],1)]):e._e()],2)}),[],!1,null,"b53f575b",null,null).exports,sn={props:[],data:()=>({}),mounted:function(){let e=this;window.onscroll=function(){e.scrollFunction()}},methods:{scrollFunction(){document.body.scrollTop>20||document.documentElement.scrollTop>20?document.getElementById("btnGoTo").style.display="block":document.getElementById("btnGoTo").style.display="none"},goScrollTop(){window.scrollTo({top:0,left:0,behavior:"smooth"})}}},on={data:()=>({showFilterButton:!1}),methods:{onUpdateTagFilter(e,t){t.length!==e&&(this.showFilterButton=!0)}}};const rn=n({components:{VueSlickCarousel:ae,YoutubePlayer:l},data:()=>({swipeDirections:{},slidersContent:{},slidersContentDone:{},totalOfVideoSliders:0,slickSettings:{infinite:!1,slidesToShow:1,centerMode:!0}}),watch:{slidersContent:{deep:!0,handler:function(e){console.log(e),Object.values(e).length<this.totalOfVideoSliders||console.log("setup",e)}}},beforeMount(){this.totalOfVideoSliders=document.querySelectorAll(".container-with-youtube_video").length},mounted(){document.addEventListener("DOMContentLoaded",(()=>{this.setupVideosSliders(),document.getElementById("burger-menu").addEventListener("click",(()=>this.toggleMobileMenu())),document.querySelectorAll(".top-menu a").forEach((e=>e.addEventListener("click",(()=>this.toggleMobileMenu()))))})),window.outerWidth<768&&document.querySelectorAll(".top-options-nav .nav-link").forEach((e=>{e.addEventListener("click",(()=>this.toggleMobileMenu()))}));let e=document.querySelectorAll(".container-with-card .card .card-link");e&&e.forEach((e=>{e.innerHTML="Clique aqui"}))},methods:{setupVideosSliders(){document.getElementsByTagName("body")[0].clientWidth>768||document.querySelectorAll(".container-with-youtube_video").forEach(((e,t)=>{this.slidersContent[t]=[],e.querySelectorAll(".youtube-component").forEach((e=>{this.slidersContent[t].push(e.getAttribute("data-youtube-id"))})),this.$forceUpdate(),setTimeout((()=>{e.innerHTML="";let n=document.createDocumentFragment();n.appendChild(document.getElementById(`vue-slider-${t}`)),e.appendChild(n),this.slidersContentDone[t]=!0,this.$forceUpdate()}),100)}))},toggleMobileMenu(){document.getElementsByTagName("body")[0].classList.toggle("open")}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"media-central-components"},[e._t("default"),e._l(Object.values(e.slidersContent),(function(n,i){return Object.values(e.slidersContent).length>0?t("div",{attrs:{id:`vue-slider-${i}`}},[t("VueSlickCarousel",e._b({directives:[{name:"show",rawName:"v-show",value:!0===e.slidersContentDone[i],expression:"slidersContentDone[index] === true"}]},"VueSlickCarousel",e.slickSettings,!1),e._l(Object.values(n),(function(e){return t("div",{staticClass:"inner"},[t("YoutubePlayer",{attrs:{"is-preview-format":!0,"video-content":e}})],1)})),0)],1):e._e()}))],2)}),[],!1,null,"9fa2d96e",null,null).exports,an=function(e,t){let n=s.url(Ce.SubmitEnrollment,{},!0);return o.post(n,{course_id:e,...t}).then((e=>e.data))};const ln=n({components:{Money:c.Money,FormValidationCtrl:se},props:["course","options"],data:()=>({step:1,doneSteps:[],masks:a,isLoading:!1,birthdateValidation:null,message:null,errors:[],enrollmentCode:null,sendError:null,enrollment:{completed_courses:[],date_conclusions:{}}}),mounted(){},computed:{isStudentEligible(){if(0===this.enrollment.is_public_school)return!1;if(null==this.enrollment.is_public_school)return null;if(null==this.enrollment.period_enrolled)return null;if(null==this.enrollment.dob)return null;if(this.enrollment.dob.length<10)return null;try{let e=0-r.fromFormat(this.enrollment.dob,"yyyy-MM-dd").diffNow("years").get("years");if(e<this.course.age_min||e>this.course.age_max+.9999)return!1}catch(e){return console.warn("Date error: ",e),null}return!0}},methods:{nextStep(e){e.preventDefault();let t=document.getElementById("step-"+this.step+"-enrollment-form");this.birthdateValidation=!0,1===this.step&&null===this.enrollment.dob&&(this.birthdateValidation=!1),se.default.methods.formIsValid(t)&&(4!==this.step?(-1===this.doneSteps.indexOf(this.step)&&this.doneSteps.push(this.step),this.step++,this.$nextTick((()=>this.$forceUpdate()))):this.submitEnrollment())},submitEnrollment(){this.isLoading=!0,this.message=null,this.errors=[];let e=Object.assign({},this.enrollment);e.cpf=e.cpf.replace(/\D/g,""),e.address_cep=e.address_cep.replace(/\D/g,""),e.phone=e.phone.replace(/\D/g,""),e.country="Brasil",an(this.course.id,e).then((e=>{console.log("Enrollment completed: ",e),this.isLoading=!1,this.step=5,"failed"!==e.status?this.enrollmentCode=e.enrollment_code:this.sendError=e.message})).catch((e=>{console.error("Failed to enroll: ",e,e.response),this.isLoading=!1,this.message=e.response.data.message,this.errors=e.response.data.errors}))},goToStep(e){-1!==this.doneSteps.indexOf(e)&&(this.step=e)}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"card course-enrollment-form"},[t("div",{staticClass:"card-header"},[t("div",{staticClass:"d-flex justify-content-between"},[t("h5",{staticStyle:{"line-height":"40px"}},[e._v("Formulário de inscrição")]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.step<5,expression:"step < 5"}],staticClass:"card-header-pills"},[t("ul",{staticClass:"nav nav-pills"},[t("li",{staticClass:"nav-item step"},[t("a",{staticClass:"nav-link",class:{active:1===e.step},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.goToStep(1)}}},[e._v("1")])]),t("li",{staticClass:"nav-item step"},[t("a",{staticClass:"nav-link",class:{active:2===e.step},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.goToStep(2)}}},[e._v("2")])]),t("li",{staticClass:"nav-item step"},[t("a",{staticClass:"nav-link",class:{active:3===e.step},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.goToStep(3)}}},[e._v("3")])]),t("li",{staticClass:"nav-item step"},[t("a",{staticClass:"nav-link",class:{active:4===e.step},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.goToStep(4)}}},[e._v("4")])])])])])]),t("div",{staticClass:"card-body"},[t("loading-feedback",{attrs:{active:e.isLoading,text:"Enviando dados...",overlay:!0}}),t("div",{directives:[{name:"show",rawName:"v-show",value:1===e.step,expression:"step === 1"}],staticClass:"step step-1"},[t("form",{attrs:{id:"step-1-enrollment-form"}},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"chk-is_public_school-yes"}},[e._v("O aluno é estudante de Escola Pública?")]),t("div",[t("div",{staticClass:"form-check form-check-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.is_public_school,expression:"enrollment.is_public_school"}],staticClass:"form-check-input",attrs:{type:"radio",id:"chk-is_public_school-yes"},domProps:{value:1,checked:e._q(e.enrollment.is_public_school,1)},on:{change:function(t){return e.$set(e.enrollment,"is_public_school",1)}}}),t("label",{staticClass:"form-check-label",attrs:{for:"chk-is_public_school-yes"}},[e._v("Sim")])]),t("div",{staticClass:"form-check form-check-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.is_public_school,expression:"enrollment.is_public_school"}],staticClass:"form-check-input",attrs:{type:"radio",id:"chk-is_public_school-no"},domProps:{value:0,checked:e._q(e.enrollment.is_public_school,0)},on:{change:function(t){return e.$set(e.enrollment,"is_public_school",0)}}}),t("label",{staticClass:"form-check-label",attrs:{for:"chk-is_public_school-no"}},[e._v("Não")])])])]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"fld-period_enrolled"}},[e._v("Período desejado")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.period_enrolled,expression:"enrollment.period_enrolled"}],staticClass:"form-control",attrs:{id:"fld-period_enrolled",required:""},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.enrollment,"period_enrolled",t.target.multiple?n:n[0])}}},e._l(e.course.periods,(function(n){return t("option",{domProps:{value:n,textContent:e._s(e.$lang.get("course.periods."+n))}})})),0)]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"fld-dob"}},[e._v("Data de nascimento do aluno")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.dob,expression:"enrollment.dob"}],staticClass:"form-control",attrs:{id:"fld-dob",required:"",type:"date"},domProps:{value:e.enrollment.dob},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"dob",t.target.value)}}})]),!1===e.isStudentEligible?t("div",[e._m(0)]):e._e()])]),t("div",{directives:[{name:"show",rawName:"v-show",value:2===e.step,expression:"step === 2"}],staticClass:"step step-2"},[t("form",{attrs:{id:"step-2-enrollment-form"}},[t("div",{staticClass:"row"},[t("div",{staticClass:"form-group col-md-9"},[t("label",{attrs:{for:"fld-name"}},[e._v("Nome completo do aluno")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.name,expression:"enrollment.name"}],staticClass:"form-control",attrs:{id:"fld-name",required:"",type:"text"},domProps:{value:e.enrollment.name},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"name",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-3"},[t("label",{attrs:{for:"fld-gender"}},[e._v("Sexo")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.gender,expression:"enrollment.gender"}],staticClass:"form-control",attrs:{id:"fld-gender",required:""},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.enrollment,"gender",t.target.multiple?n:n[0])}}},e._l(e.options.genders,(function(n){return t("option",{domProps:{value:n,textContent:e._s(n)}})})),0)]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-cpf"}},[e._v("CPF do aluno")]),t("input",{directives:[{name:"mask",rawName:"v-mask",value:e.masks.CPF,expression:"masks.CPF"},{name:"model",rawName:"v-model",value:e.enrollment.cpf,expression:"enrollment.cpf"}],staticClass:"form-control",attrs:{id:"fld-cpf",pattern:".{14,}",required:"",type:"text",title:"Preencha um CPF válido, ex: 222.333.444-55"},domProps:{value:e.enrollment.cpf},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"cpf",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-email"}},[e._v("E-mail do aluno")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.email,expression:"enrollment.email"}],staticClass:"form-control",attrs:{id:"fld-email",required:"",type:"email"},domProps:{value:e.enrollment.email},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"email",t.target.value)}}})]),t("hr"),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-rg"}},[e._v("RG do aluno")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.rg,expression:"enrollment.rg"}],staticClass:"form-control",attrs:{id:"fld-rg",required:"",type:"tel"},domProps:{value:e.enrollment.rg},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"rg",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-rg_expedicao"}},[e._v("Data de Expedição")]),t("b-form-datepicker",{attrs:{required:!0,"date-format-options":{year:"numeric",month:"numeric",day:"numeric"}},model:{value:e.enrollment.rg_expedicao,callback:function(t){e.$set(e.enrollment,"rg_expedicao",t)},expression:"enrollment.rg_expedicao"}})],1),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-rg_orgao"}},[e._v("Órgão Expeditor")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.rg_orgao,expression:"enrollment.rg_orgao"}],staticClass:"form-control",attrs:{id:"fld-rg_orgao",required:"",type:"text"},domProps:{value:e.enrollment.rg_orgao},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"rg_orgao",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-rg_uf"}},[e._v("UF de Expedição")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.rg_uf,expression:"enrollment.rg_uf"}],staticClass:"form-control",attrs:{id:"fld-rg_uf",required:""},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.enrollment,"rg_uf",t.target.multiple?n:n[0])}}},e._l(e.options.ufs,(function(n){return t("option",{domProps:{value:n,textContent:e._s(n)}})})),0)]),t("hr"),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-phone"}},[e._v("Celular do Aluno com WhatsApp")]),t("input",{directives:[{name:"mask",rawName:"v-mask",value:e.masks.CellphoneWithDDD,expression:"masks.CellphoneWithDDD"},{name:"model",rawName:"v-model",value:e.enrollment.phone,expression:"enrollment.phone"}],staticClass:"form-control",attrs:{id:"fld-phone",pattern:".{15,}",required:"",type:"tel",title:"Preencha um número de celular válido, com DDD; ex: (11) 93333-4444"},domProps:{value:e.enrollment.phone},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"phone",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-civil_status"}},[e._v("Estado Civil")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.civil_status,expression:"enrollment.civil_status"}],staticClass:"form-control",attrs:{id:"fld-civil_status",required:""},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.enrollment,"civil_status",t.target.multiple?n:n[0])}}},e._l(e.options.civil_statuses,(function(n){return t("option",{domProps:{value:n,textContent:e._s(n)}})})),0)]),t("hr"),t("div",{staticClass:"form-group col-md-9"},[t("label",{attrs:{for:"fld-address_address"}},[e._v("Endereço")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.address_address,expression:"enrollment.address_address"}],staticClass:"form-control",attrs:{id:"fld-address_address",required:"",type:"text"},domProps:{value:e.enrollment.address_address},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"address_address",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-3"},[t("label",{attrs:{for:"fld-address_number"}},[e._v("Número")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.address_number,expression:"enrollment.address_number"}],staticClass:"form-control",attrs:{id:"fld-address_number",required:"",type:"text"},domProps:{value:e.enrollment.address_number},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"address_number",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-address_complement"}},[e._v("Complemento")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.address_complement,expression:"enrollment.address_complement"}],staticClass:"form-control",attrs:{id:"fld-address_complement",type:"text"},domProps:{value:e.enrollment.address_complement},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"address_complement",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-address_neighborhood"}},[e._v("Bairro")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.address_neighborhood,expression:"enrollment.address_neighborhood"}],staticClass:"form-control",attrs:{id:"fld-address_neighborhood",required:"",type:"text"},domProps:{value:e.enrollment.address_neighborhood},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"address_neighborhood",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-3"},[t("label",{attrs:{for:"fld-address_cep"}},[e._v("CEP")]),t("input",{directives:[{name:"mask",rawName:"v-mask",value:e.masks.CEP,expression:"masks.CEP"},{name:"model",rawName:"v-model",value:e.enrollment.address_cep,expression:"enrollment.address_cep"}],staticClass:"form-control",attrs:{id:"fld-address_cep",pattern:".{9,}",required:"",name:"address_cep",type:"tel",title:"Preencha um CEP válido, ex: 01234-560"},domProps:{value:e.enrollment.address_cep},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"address_cep",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-address_city"}},[e._v("Cidade")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.address_city,expression:"enrollment.address_city"}],staticClass:"form-control",attrs:{id:"fld-address_city",required:"",type:"text"},domProps:{value:e.enrollment.address_city},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"address_city",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-3"},[t("label",{attrs:{for:"fld-address_uf"}},[e._v("UF")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.address_uf,expression:"enrollment.address_uf"}],staticClass:"form-control",attrs:{id:"fld-address_uf",required:""},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.enrollment,"address_uf",t.target.multiple?n:n[0])}}},e._l(e.options.ufs,(function(n){return t("option",{domProps:{value:n,textContent:e._s(n)}})})),0)])])])]),t("div",{directives:[{name:"show",rawName:"v-show",value:3===e.step,expression:"step === 3"}],staticClass:"step step-3"},[t("form",{attrs:{id:"step-3-enrollment-form"}},[t("div",{staticClass:"row"},[t("div",{staticClass:"form-group col-md-7"},[t("label",{attrs:{for:"fld-education_level"}},[e._v("Escolaridade")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.education_level,expression:"enrollment.education_level"}],staticClass:"form-control",attrs:{id:"fld-education_level",required:""},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.enrollment,"education_level",t.target.multiple?n:n[0])}}},e._l(e.options.education_levels,(function(n){return t("option",{domProps:{value:n,textContent:e._s(n)}})})),0)]),t("div",{staticClass:"form-group col-md-5"},[t("label",{attrs:{for:"fld-education_status"}},[e._v("Situação atual")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.education_status,expression:"enrollment.education_status"}],staticClass:"form-control",attrs:{id:"fld-education_status",required:""},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.enrollment,"education_status",t.target.multiple?n:n[0])}}},e._l(e.options.education_statuses,(function(n){return t("option",{domProps:{value:n,textContent:e._s(n)}})})),0)]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-education_serie"}},[e._v("Série")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.education_serie,expression:"enrollment.education_serie"}],staticClass:"form-control",attrs:{id:"fld-education_serie",required:""},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.enrollment,"education_serie",t.target.multiple?n:n[0])}}},e._l(e.options.education_series,(function(n){return t("option",{domProps:{value:n,textContent:e._s(n)}})})),0)]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-school_name"}},[e._v("Escola / Instituição")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.school_name,expression:"enrollment.school_name"}],staticClass:"form-control",attrs:{id:"fld-school_name",required:"",type:"text"},domProps:{value:e.enrollment.school_name},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"school_name",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"chk-has_handicap-yes"}},[e._v("Portador de deficiência?")]),t("div",[t("div",{staticClass:"form-check form-check-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.has_handicap,expression:"enrollment.has_handicap"}],staticClass:"form-check-input",attrs:{required:"",name:"has_handicap",type:"radio",id:"chk-has_handicap-yes"},domProps:{value:1,checked:e._q(e.enrollment.has_handicap,1)},on:{change:function(t){return e.$set(e.enrollment,"has_handicap",1)}}}),t("label",{staticClass:"form-check-label",attrs:{for:"chk-has_handicap-yes"}},[e._v("Sim")])]),t("div",{staticClass:"form-check form-check-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.has_handicap,expression:"enrollment.has_handicap"}],staticClass:"form-check-input",attrs:{required:"",name:"has_handicap",type:"radio",id:"chk-has_handicap-no"},domProps:{value:0,checked:e._q(e.enrollment.has_handicap,0)},on:{change:function(t){return e.$set(e.enrollment,"has_handicap",0)}}}),t("label",{staticClass:"form-check-label",attrs:{for:"chk-has_handicap-no"}},[e._v("Não")])])])]),t("div",{staticClass:"form-group col-md-6"},[e.enrollment.has_handicap?t("div",[t("label",{attrs:{for:"fld-handicap_name"}},[e._v("Qual deficiência?")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.handicap_name,expression:"enrollment.handicap_name"}],staticClass:"form-control",attrs:{id:"fld-handicap_name",required:"",type:"text"},domProps:{value:e.enrollment.handicap_name},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"handicap_name",t.target.value)}}})]):e._e()]),t("hr"),t("input",{staticStyle:{visibility:"hidden"},attrs:{type:"text"}}),t("div",{staticClass:"form-group col-md-12"},[t("label",{attrs:{for:"fld-guardian_name"}},[e._v("Nome do responsável")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.guardian_name,expression:"enrollment.guardian_name"}],staticClass:"form-control",attrs:{id:"fld-guardian_name",type:"text"},domProps:{value:e.enrollment.guardian_name},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"guardian_name",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-guardian_email"}},[e._v("E-mail do responsável")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.guardian_email,expression:"enrollment.guardian_email"}],staticClass:"form-control",attrs:{id:"fld-guardian_email",type:"email"},domProps:{value:e.enrollment.guardian_email},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"guardian_email",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-guardian_phone"}},[e._v("Telefone do responsável")]),t("input",{directives:[{name:"mask",rawName:"v-mask",value:e.masks.CellphoneWithDDD,expression:"masks.CellphoneWithDDD"},{name:"model",rawName:"v-model",value:e.enrollment.guardian_phone,expression:"enrollment.guardian_phone"}],staticClass:"form-control",attrs:{id:"fld-guardian_phone",pattern:".{14,}",type:"tel",title:"Preencha um número de telefone válido, com DDD; ex: (11) 93333-4444"},domProps:{value:e.enrollment.guardian_phone},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"guardian_phone",t.target.value)}}})])])])]),t("div",{directives:[{name:"show",rawName:"v-show",value:4===e.step,expression:"step === 4"}],staticClass:"step step-4"},[t("form",{attrs:{id:"step-4-enrollment-form"}},[t("div",{staticClass:"row"},[t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"fld-source"}},[e._v("Como conheceu o curso?")]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.source,expression:"enrollment.source"}],staticClass:"form-control",attrs:{id:"fld-source",required:""},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.enrollment,"source",t.target.multiple?n:n[0])}}},e._l(e.options.sources,(function(n){return t("option",{domProps:{value:n,textContent:e._s(n)}})})),0)]),t("div",{staticClass:"form-group col-md-6"},[t("label",{attrs:{for:"chk-has_relative_at_eurofarma-yes"}},[e._v("Possui parentes na Eurofarma?")]),t("div",[t("div",{staticClass:"form-check form-check-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.has_relative_at_eurofarma,expression:"enrollment.has_relative_at_eurofarma"}],staticClass:"form-check-input",attrs:{type:"radio",required:"",name:"has_relative_at_eurofarma",id:"chk-has_relative_at_eurofarma-yes"},domProps:{value:1,checked:e._q(e.enrollment.has_relative_at_eurofarma,1)},on:{change:function(t){return e.$set(e.enrollment,"has_relative_at_eurofarma",1)}}}),t("label",{staticClass:"form-check-label",attrs:{for:"chk-has_relative_at_eurofarma-yes"}},[e._v("Sim")])]),t("div",{staticClass:"form-check form-check-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.has_relative_at_eurofarma,expression:"enrollment.has_relative_at_eurofarma"}],staticClass:"form-check-input",attrs:{type:"radio",required:"",name:"has_relative_at_eurofarma",id:"chk-has_relative_at_eurofarma-no"},domProps:{value:0,checked:e._q(e.enrollment.has_relative_at_eurofarma,0)},on:{change:function(t){return e.$set(e.enrollment,"has_relative_at_eurofarma",0)}}}),t("label",{staticClass:"form-check-label",attrs:{for:"chk-has_relative_at_eurofarma-no"}},[e._v("Não")])])])])]),e.enrollment.has_relative_at_eurofarma?t("div",{staticClass:"row"},[t("div",{staticClass:"form-group col-md-12"},[t("label",{attrs:{for:"fld-relative_name"}},[e._v("Nome do parente colaborador")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.relative_name,expression:"enrollment.relative_name"}],staticClass:"form-control",attrs:{id:"fld-relative_name",required:"",type:"text"},domProps:{value:e.enrollment.relative_name},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"relative_name",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-4"},[t("label",{attrs:{for:"fld-relative_re"}},[e._v("R.E. do colaborador (ex: 12.345)")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.relative_re,expression:"enrollment.relative_re"}],staticClass:"form-control",attrs:{id:"fld-relative_re",required:"",type:"tel"},domProps:{value:e.enrollment.relative_re},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"relative_re",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-4"},[t("label",{attrs:{for:"fld-relative_area"}},[e._v("Área do colaborador")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.relative_area,expression:"enrollment.relative_area"}],staticClass:"form-control",attrs:{id:"fld-relative_area",required:"",type:"text"},domProps:{value:e.enrollment.relative_area},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"relative_area",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-4"},[t("label",{attrs:{for:"fld-relative_relationship"}},[e._v("Grau de parentesco")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.relative_relationship,expression:"enrollment.relative_relationship"}],staticClass:"form-control",attrs:{id:"fld-relative_relationship",required:"",type:"text"},domProps:{value:e.enrollment.relative_relationship},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"relative_relationship",t.target.value)}}})]),e.message?t("div",{staticClass:"alert alert-warning"},[e._v(e._s(e.message))]):e._e()]):e._e(),t("div",{staticClass:"row"},[t("div",{staticClass:"form-group col-md-12"},[t("label",{attrs:{for:"fld-monthly_revenue"}},[e._v("Qual é a soma de todos os salários das pessoas que moram com você (incluindo você)?")]),t("money",e._b({staticClass:"form-control",attrs:{id:"fld-monthly_revenue",maxlength:"14"},model:{value:e.enrollment.monthly_revenue,callback:function(t){e.$set(e.enrollment,"monthly_revenue",t)},expression:"enrollment.monthly_revenue"}},"money",e.masks.currency,!1))],1),t("div",{staticClass:"form-group col-md-12"},[t("label",{attrs:{for:"fld-people_in_house"}},[e._v("Quantas pessoas vivem em sua casa, incluindo você?")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.people_in_house,expression:"enrollment.people_in_house"}],staticClass:"form-control",attrs:{id:"fld-people_in_house",required:"",max:"30",type:"number"},domProps:{value:e.enrollment.people_in_house},on:{input:function(t){t.target.composing||e.$set(e.enrollment,"people_in_house",t.target.value)}}})]),t("div",{staticClass:"form-group col-md-12"},[t("label",{attrs:{for:"fld-completed_courses"}},[e._v("De quais cursos ou eventos você já participou no Instituto Eurofarma ou na sua escola?")]),t("b-form-checkbox-group",{staticClass:"completed_courses-block",attrs:{required:!0,name:"check-button"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.enrollment.completed_courses,callback:function(t){e.$set(e.enrollment,"completed_courses",t)},expression:"enrollment.completed_courses"}},e._l(e.options.courses,(function(n){return t("b-form-checkbox",{key:n,attrs:{value:n}},[e._v(e._s(n))])})),1)],1),t("div",{staticClass:"form-group col-md-12 course-completed-selector"},[t("label",{attrs:{for:"fld-date_conclusions"}},[e._v("Em que mês e ano você concluiu cada um dos cursos dos quais participou?")]),e._l(e.enrollment.completed_courses,(function(n){return n!==e.options.courses[0]?t("b-input-group",{key:n,staticClass:"mb-3",attrs:{required:!0,prepend:n},scopedSlots:e._u([{key:"append",fn:function(){return[t("b-form-checkbox",{attrs:{name:"enrollment_courses",value:"Não terminei o curso"},model:{value:e.enrollment.date_conclusions[n],callback:function(t){e.$set(e.enrollment.date_conclusions,n,t)},expression:"enrollment.date_conclusions[course]"}},[e._v("Não terminei o curso")])]},proxy:!0}],null,!0)},["Não terminei o curso"!==e.enrollment.date_conclusions[n]?t("input",{directives:[{name:"model",rawName:"v-model",value:e.enrollment.date_conclusions[n],expression:"enrollment.date_conclusions[course]"}],staticClass:"form-control",attrs:{required:"",type:"date"},domProps:{value:e.enrollment.date_conclusions[n]},on:{input:function(t){t.target.composing||e.$set(e.enrollment.date_conclusions,n,t.target.value)}}}):e._e()]):e._e()}))],2)])])]),t("div",{directives:[{name:"show",rawName:"v-show",value:5===e.step,expression:"step === 5"}],staticClass:"step step-5 completed"},[null===e.sendError?t("div",{staticClass:"alert alert-success"},[t("strong",[e._v("Sua inscrição foi enviada com sucesso!")]),t("br"),e._v(" Código da inscrição: "+e._s(e.enrollmentCode)+" ")]):e._e(),null!==e.sendError?t("div",{staticClass:"alert alert-warning"},[t("span",{domProps:{textContent:e._s(e.sendError)}})]):e._e()])],1),!0===e.isStudentEligible&&5!==e.step?t("div",{staticClass:"card-footer"},[t("div",{staticClass:"d-flex justify-content-end"},[1!==e.step?t("button",{staticClass:"btn btn-secondary",attrs:{type:"button"},on:{click:function(t){e.step=e.step-1}}},[e._v("« Voltar")]):e._e(),t("button",{staticClass:"btn btn-primary ml-2",attrs:{type:"button"},on:{click:e.nextStep}},[t("span",{domProps:{innerHTML:e._s(4!==e.step?"Próximo &raquo;":"Submeter inscrição")}})])])]):e._e()])}),[function(){var e=this,t=e._self._c;return t("div",{staticClass:"alert alert-danger"},[t("p",[e._v("Agradecemos ao seu interesse em participar dos cursos oferecidos pelo Instituto Eurofarma, mas a sua inscrição não pode ser efetivada.")]),t("p",[e._v("O primeiro requisito para a inscrição é ser, ou ter sido, estudante de escola pública, além de atender aos critérios de faixa etária por curso.")])])}],!1,null,null,null,null).exports;const cn=n({props:{strings:Object},data:()=>({peso:"",altura:"",showResults:!1}),computed:{imc:function(){return this.peso/(this.altura/100*(this.altura/100))},faixa:function(){return this.imc<17?"very_low":this.imc>=17&&this.imc<18.5?"low":this.imc>=18.5&&this.imc<25?"normal":this.imc>=25&&this.imc<=29.9?"high":(this.imc,"obesity")}},methods:{calculate:function(){this.showResults=!0}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"calculadora calculadora-imc"},[t("div",{staticClass:"row justify-content-center"},[t("div",{staticClass:"col-md-4 mb-4"},[t("span",[t("span",{domProps:{innerHTML:e._s(e.strings.description)}})])]),t("form",{staticClass:"col-md-4",on:{submit:function(t){return t.preventDefault(),e.calculate()}}},[t("div",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.peso,expression:"peso"}],staticClass:"form-control",attrs:{id:"fld-imc-peso",type:"number",min:"1",max:"500",step:"1",placeholder:"Peso, em kilogramas ..."},domProps:{value:e.peso},on:{input:[function(t){t.target.composing||(e.peso=t.target.value)},function(t){e.showResults=!1}]}}),t("label",{attrs:{for:"fld-imc-peso"}},[e._v("Seu peso em kg (ex: 80)")])]),t("div",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.altura,expression:"altura"}],staticClass:"form-control",attrs:{id:"fld-imc-altura",type:"number",min:"1",max:"250",step:"1",placeholder:"Altura, em centímetros ..."},domProps:{value:e.altura},on:{input:[function(t){t.target.composing||(e.altura=t.target.value)},function(t){e.showResults=!1}]}}),t("label",{attrs:{for:"fld-imc-altura"}},[e._v("Altura, em cm (ex: 170)")])]),e._m(0)]),t("div",{staticClass:"col-md-4"},[e.showResults?t("div",{staticClass:"row justify-content-between"},[t("div",{staticClass:"col-12 mb-2"},[e._v(" "+e._s(e.strings.result_title)+": "),t("strong",[e._v(e._s(e.imc.toFixed(1))+" Kg/m²")])]),t("div",{staticClass:"col-12"},["very_low"===e.faixa?t("div",{class:{current:"very_low"===e.faixa}},[t("span",{staticClass:"imc-tipo"},[e._v(" "+e._s(e.strings[e.faixa].title)+" "),t("span",{staticClass:"imc-faixa"},[e._v(e._s(e.strings[e.faixa].range))])]),t("span",{staticClass:"description imc-explicacao"},[e._v(e._s(e.strings[e.faixa].description))])]):e._e(),"low"===e.faixa?t("div",{class:{current:"low"===e.faixa}},[t("span",{staticClass:"imc-tipo"},[e._v(" "+e._s(e.strings[e.faixa].title)+" "),t("span",{staticClass:"imc-faixa"},[e._v(e._s(e.strings[e.faixa].range))])]),t("span",{staticClass:"description imc-explicacao"},[e._v(e._s(e.strings[e.faixa].description))])]):e._e(),"normal"===e.faixa?t("div",{class:{current:"normal"===e.faixa}},[t("span",{staticClass:"imc-tipo"},[e._v(" "+e._s(e.strings[e.faixa].title)+" "),t("span",{staticClass:"imc-faixa"},[e._v(e._s(e.strings[e.faixa].range))])]),t("span",{staticClass:"description imc-explicacao"},[e._v(e._s(e.strings[e.faixa].description))])]):e._e(),"high"===e.faixa?t("div",{class:{current:"high"===e.faixa}},[t("span",{staticClass:"imc-tipo"},[e._v(" "+e._s(e.strings[e.faixa].title)+" "),t("span",{staticClass:"imc-faixa"},[e._v(e._s(e.strings[e.faixa].range))])]),t("span",{staticClass:"description imc-explicacao"},[e._v(e._s(e.strings[e.faixa].description))])]):e._e(),"obesity"===e.faixa?t("div",{class:{current:"obesity"===e.faixa}},[t("span",{staticClass:"imc-tipo"},[e._v(" "+e._s(e.strings[e.faixa].title)+" "),t("span",{staticClass:"imc-faixa"},[e._v(e._s(e.strings[e.faixa].range))])]),t("span",{staticClass:"description imc-explicacao"},[e._v(e._s(e.strings[e.faixa].description))])]):e._e()])]):e._e()])])])}),[function(){var e=this._self._c;return e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"submit"}},[this._v("Calcular")])])}],!1,null,null,null,null).exports;const dn=n({props:{strings:Object},data:()=>({peso:"",altura:"",sexo:"M",showResults:!1,infoInvalid:!1}),computed:{pesoIdeal:function(){let e=0;return e="F"===this.sexo?52+.75*(this.altura-152.4):49+.67*(this.altura-152.4),e<0&&(this.showResults=!1,this.infoInvalid=!0),e},pesoIdealAjustado:function(){return.25*(this.peso-this.pesoIdeal)+this.pesoIdeal}},methods:{calculate:function(){this.showResults=!0}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"calculadora calculadora-pesoideal"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-4"},[t("h3",{staticClass:"pi-titulo"},[e._v(e._s(e.strings.instructions.title))]),t("div",{staticClass:"pi-instrucoes"},[e._v(" "+e._s(e.strings.instructions.description)+" "),t("span",{staticClass:"pi-titulo mt-3"},[e._v(e._s(e.strings.instructions.subtitle))]),t("strong",[e._v(e._s(e.strings.instructions.masc.title)+" ")]),e._v(" "+e._s(e.strings.instructions.masc.instruction)+" "),t("br"),t("br"),t("strong",[e._v(e._s(e.strings.instructions.fem.title)+" ")]),e._v(" "+e._s(e.strings.instructions.fem.instruction)+" "),t("br"),t("br"),t("strong",[e._v(e._s(e.strings.instructions.adjusted.title)+" ")]),e._v(" "+e._s(e.strings.instructions.adjusted.instruction)+" ")])]),t("form",{staticClass:"col-md-4",attrs:{onload:"this.reset()"},on:{submit:function(t){return t.preventDefault(),e.calculate()}}},[t("span",{staticClass:"pi-titulo"},[e._v(e._s(e.strings.form.title))]),t("div",{staticClass:"form-group"},[t("div",{staticClass:"placeholder"},[e._v(e._s(e.strings.form.fields.weight.title))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.peso,expression:"peso"}],staticClass:"form-control",attrs:{id:"fld-pi-peso",type:"number",min:"1",max:"500",step:"1",placeholder:e.strings.form.fields.weight.placeholder},domProps:{value:e.peso},on:{input:[function(t){t.target.composing||(e.peso=t.target.value)},function(t){e.showResults=!1}]}}),t("label",{attrs:{for:"fld-pi-peso"}},[e._v(e._s(e.strings.form.fields.weight.desc))])]),t("div",{staticClass:"form-group"},[t("div",{staticClass:"placeholder"},[e._v(e._s(e.strings.form.fields.height.title))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.altura,expression:"altura"}],staticClass:"form-control",attrs:{id:"fld-pi-altura",type:"number",min:"1",max:"250",step:"1",placeholder:e.strings.form.fields.height.placeholder},domProps:{value:e.altura},on:{input:[function(t){t.target.composing||(e.altura=t.target.value)},function(t){e.showResults=!1}]}}),t("label",{attrs:{for:"fld-pi-altura"}},[e._v(e._s(e.strings.form.fields.height.desc))])]),t("div",{staticClass:"form-group"},[t("label",[e._v(e._s(e.strings.form.fields.gender.title))]),t("div",{staticClass:"horizontal-inputs"},[t("label",{staticClass:"eurofarma-radio-input",class:{selected:"M"===e.sexo},attrs:{for:"fld-pi-sexo-m"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.sexo,expression:"sexo"}],attrs:{id:"fld-pi-sexo-m",name:"pi_sexo",value:"M",type:"radio"},domProps:{checked:e._q(e.sexo,"M")},on:{input:function(t){e.showResults=!1},change:function(t){e.sexo="M"}}}),e._v(" "+e._s(e.strings.instructions.masc.title)+" ")]),t("label",{staticClass:"eurofarma-radio-input",class:{selected:"F"===e.sexo},attrs:{for:"fld-pi-sexo-f"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.sexo,expression:"sexo"}],attrs:{id:"fld-pi-sexo-f",name:"pi_sexo",value:"F",type:"radio"},domProps:{checked:e._q(e.sexo,"F")},on:{input:function(t){e.showResults=!1},change:function(t){e.sexo="F"}}}),e._v(" "+e._s(e.strings.instructions.fem.title)+" ")])])]),t("div",{staticClass:"form-group"},[t("button",{staticClass:"btn btn-primary",attrs:{type:"submit"}},[e._v(e._s(e.strings.form.calculate))])])]),t("div",{staticClass:"col-md-4"},[e.showResults?t("div",[t("div",{staticClass:"results-row"},[t("div",{staticClass:"pi-resultado"},[t("span",[e._v(e._s(e.strings.result.ideal))]),t("strong",[e._v(e._s(e.pesoIdeal.toFixed(1))+" kg")])]),t("div",{staticClass:"pi-resultado"},[t("span",[e._v(e._s(e.strings.result.adjusted))]),t("strong",[e._v(e._s(e.pesoIdealAjustado.toFixed(1))+" kg")])])])]):e._e()])])])}),[],!1,null,null,null,null).exports;const un=n({props:{strings:Object},data:()=>({peso:"",altura:"",showResults:!1}),computed:{superficie:function(){return Math.sqrt(this.altura*this.peso/3600)}},methods:{calculate:function(){this.showResults=!0}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"calculadora calculadora-superficie"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-4 mb-4"},[t("div",{staticClass:"mb-4"},[t("h3",{domProps:{innerHTML:e._s(e.strings.instructions.maintitle)}}),t("div",{staticClass:"sc-instrucoes",domProps:{innerHTML:e._s(e.strings.instructions.desc)}})]),t("div",{staticClass:"mb-4"},[t("div",{staticClass:"sc-titulo"},[e._v(e._s(e.strings.instructions.title))]),t("div",{staticClass:"sc-instrucoes",domProps:{innerHTML:e._s(e.strings.instructions.content)}})])]),t("form",{staticClass:"col-md-4",on:{submit:function(t){return t.preventDefault(),e.calculate()}}},[t("h3",{staticClass:"sc-titulo"},[e._v(e._s(e.strings.form.title))]),t("div",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.peso,expression:"peso"}],staticClass:"form-control",attrs:{id:"fld-sc-peso",type:"number",min:"1",max:"500",step:"1",placeholder:e.strings.form.fields.weight.placeholder},domProps:{value:e.peso},on:{input:[function(t){t.target.composing||(e.peso=t.target.value)},function(t){e.showResults=!1}]}}),t("label",{attrs:{for:"fld-sc-peso"}},[e._v(e._s(e.strings.form.fields.weight.title))])]),t("div",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.altura,expression:"altura"}],staticClass:"form-control",attrs:{id:"fld-sc-altura",type:"number",min:"1",max:"250",step:"1",placeholder:e.strings.form.fields.height.placeholder},domProps:{value:e.altura},on:{input:[function(t){t.target.composing||(e.altura=t.target.value)},function(t){e.showResults=!1}]}}),t("label",{attrs:{for:"fld-sc-altura"}},[e._v(e._s(e.strings.form.fields.height.title))])]),t("div",{staticClass:"form-group"},[t("button",{staticClass:"btn btn-primary",attrs:{type:"submit"}},[e._v(e._s(e.strings.form.calculate))])])]),t("div",{staticClass:"col-md-4"},[e.showResults?t("div",[t("div",[t("div",{staticClass:"sc-titulo"},[e._v(e._s(e.strings.result.title))]),t("div",{staticClass:"sc-resultado"},[t("strong",[e._v(e._s(e.superficie.toFixed(2)))]),e._v(" "),t("span",[e._v(e._s(e.strings.result.description))])])])]):e._e()])])])}),[],!1,null,null,null,null).exports;const pn=n({props:{strings:Object},data:()=>({dataMenstruacao:null,showResults:!1}),computed:{gravidezDuracao:function(){if(!this.dataMenstruacao)return null;let e=r.fromISO(this.dataMenstruacao);return r.local().diff(e)},gravidezSemanas:function(){return this.gravidezDuracao?Math.floor(this.gravidezDuracao.as("weeks")):0},gravidezDias:function(){if(!this.gravidezDuracao)return 0;let e=7*this.gravidezSemanas;return Math.ceil(this.gravidezDuracao.as("days"))-e}},methods:{calculate:function(){this.showResults=!0}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"calculadora calculadora-gravidez"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-4 mb-4"},[t("div",{staticClass:"gra-instrucoes"},[e._v(" "+e._s(e.strings.instructions.desc)+" ")])]),t("form",{staticClass:"col-md-4",on:{submit:function(t){return t.preventDefault(),e.calculate()}}},[t("h3",{staticClass:"gra-titulo"},[e._v(e._s(e.strings.fields.title))]),t("div",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.dataMenstruacao,expression:"dataMenstruacao"}],staticClass:"form-control",attrs:{id:"fld-gra-dataMenstruacao",type:"date",placeholder:"Digite aqui a data"},domProps:{value:e.dataMenstruacao},on:{input:function(t){t.target.composing||(e.dataMenstruacao=t.target.value)}}}),t("label",{attrs:{for:"fld-gra-dataMenstruacao"}},[e._v(e._s(e.strings.fields.select_label))])]),t("div",{staticClass:"form-group"},[t("button",{staticClass:"btn btn-primary",attrs:{type:"submit"}},[e._v(e._s(e.strings.calulate))])])]),t("div",{staticClass:"col-md-4"},[e.showResults?t("div",[t("div",[t("div",{staticClass:"gra-titulo"},[e._v(e._s(e.strings.results.title))]),t("div",{staticClass:"gra-resultado"},[t("strong",[e._v(e._s(e.gravidezSemanas))]),t("span",[e._v(" "+e._s(e.strings.results.gap01)+" ")]),t("strong",[e._v(e._s(e.gravidezDias))]),t("span",[e._v(" "+e._s(e.strings.results.gap02))]),t("div",{staticClass:"gra-detail"},[t("span",[e._v(e._s(e.strings.results.info))])])]),t("div",{staticClass:"gra-explicacao"},[t("small",[e._v(e._s(e.strings.results.disclaimer))])])])]):e._e()])])])}),[],!1,null,null,null,null).exports;const fn=n({props:{strings:Object},data:()=>({primeiroPasso:!0,ultimoPasso:!1,calculado:!1,passo_atual:0,passo_max:8,chance:null,score:0,steps:["/images/cardiovascular/sprite.svg#sexos","/images/cardiovascular/sprite.svg#relogio","/images/cardiovascular/sprite.svg#pilulas","/images/cardiovascular/sprite.svg#coracao","/images/cardiovascular/sprite.svg#batimento","/images/cardiovascular/sprite.svg#bala","/images/cardiovascular/sprite.svg#pizza","/images/cardiovascular/sprite.svg#cigarro","/images/cardiovascular/sprite.svg#homem"],inputs:{genero:null,idade:null,ldl:null,hdl:null,sistolica:null,diastolica:null,atividade:null,obesidade:null,diabetes:null,cigarro:null,historico:null,eventoPrevio:null,avc:null,ait:null,iam:null,hve:null,renal:null,periferica:null},fatoresDeRisco:{baixoIntermediario:[],alto:[]}}),mounted:function(){},methods:{reset:function(){this.passo_atual=0,this.primeiroPasso=!0,this.ultimoPasso=!1;for(let[e,t]of Object.entries(this.inputs))this.inputs[e]=null;this.calculado=!1},estaNoPasso:function(e){return e===this.passo_atual},passoPosterior:function(){this.validarPasso()&&(this.passo_atual++,this.primeiroPasso=!1,this.ultimoPasso=this.passo_atual===this.passo_max)},passoAnterior:function(){this.passo_atual--,this.ultimoPasso=!1,this.primeiroPasso=0===this.passo_atual},vaParaPasso:function(e){e>=this.passo_atual||this.calculado||(this.passo_atual=e,this.primeiroPasso=0===this.passo_atual)},calc:function(){if(!this.validarPasso())return;console.log("validando campos...");let e=null;if(null===this.inputs.genero&&(e="o campo genero não foi preenchido"),null===this.inputs.idade&&(e="o campo idade não foi preenchido"),null===this.inputs.ldl&&(e="o campo ldl não foi preenchido"),null===this.inputs.hdl&&(e="o campo hdl não foi preenchido"),null===this.inputs.sistolica&&(e="o campo sistolica não foi preenchido"),null===this.inputs.diastolica&&(e="o campo diastolica não foi preenchido"),null===this.inputs.diabetes&&(e="o campo diabetes não foi preenchido"),null===this.inputs.atividade&&(e="o campo atividade não foi preenchido"),null===this.inputs.cigarro&&(e="o campo cigarro não foi preenchido"),e)return console.log("foi encontrado um erro:",e),alert(e);console.log("Iniciando calculos..."),console.log("calculando idade..."),this.CalcRiscoIdade(),console.log("calculando risco IDL..."),this.CalcRiscoIdl(),console.log("calculando risco HDL..."),this.CalcRiscoHdl(),console.log("calculando risco Pressao..."),this.CalcRiscoPressao(),console.log("calculando risco diabetes..."),this.CalcRiscoDiabetes(),console.log("calculando risco cigarro"),this.CalcRiscoCigarro(),this.showResult(),console.log("exibindo score:",this.score),console.log("verificando fatores de risco..."),this.CalcFatoresDeRisco()||(this.textoChance=this.chance<10?"BAIXO":this.chance<=20?"MÉDIO":"ALTO",("masculino"===this.inputs.genero&&this.chance>=56||"feminino"===this.inputs.genero&&this.chance>=32)&&(this.chance=">="+this.chance),this.calculado=!0)},validarPasso:function(){switch(this.passo_atual){case 0:return!!this.inputs.genero||alert("Selecione uma opção.");case 1:return!!this.inputs.idade||alert("Informe uma idade válida.");case 2:return this.inputs.ldl?!!this.inputs.hdl||alert("Valor hdl inválido."):alert("Valor ldl inválido.");case 3:return this.inputs.sistolica?!!this.inputs.diastolica||alert("Valor de pressão diastólica inválido."):alert("Valor de pressão sistólica inválido.");case 4:return null!==this.inputs.atividade||alert("Selecione uma opção.");case 5:return null!==this.inputs.diabetes||alert("Selecione uma opção.");case 6:return null!==this.inputs.obesidade||alert("Selecione uma opção.");case 7:return null!==this.inputs.cigarro||alert("Selecione uma opção.")}return!0},CalcFatoresDeRisco:function(){return this.inputs.cigarro&&this.fatoresDeRisco.baixoIntermediario.push("Tabagismo"),this.inputs.sistolica>140&&this.inputs.diastolica>90&&this.fatoresDeRisco.baixoIntermediario.push("Hipertensão"),!this.inputs.atividade&&this.fatoresDeRisco.baixoIntermediario.push("Sedentarismo"),"masculino"===this.inputs.genero&&this.fatoresDeRisco.baixoIntermediario.push("Sexo Masculino"),this.inputs.idade>65&&this.fatoresDeRisco.baixoIntermediario.push("idade > 65"),("masculino"===this.inputs.genero&&this.inputs.idade<55||"feminino"===this.inputs.genero&&this.inputs.idade<65)&&this.inputs.eventoPrevio&&this.fatoresDeRisco.baixoIntermediario.push("Evento prévio"),this.inputs.avc&&this.fatoresDeRisco.alto.push("AVC (acidente vascular cerebral) previamente"),this.inputs.iam&&this.fatoresDeRisco.alto.push("IAM (infarto agudo do miocárdio) previamente"),this.inputs.ait&&this.fatoresDeRisco.alto.push("AIT (ataque isquêmico transitório)"),this.inputs.hve&&this.fatoresDeRisco.alto.push("HVE (hipertrofia de ventrículo esquerdo)"),this.inputs.renal&&this.fatoresDeRisco.alto.push("Doença renal crônica"),this.inputs.periferica&&this.fatoresDeRisco.alto.push("Doença vascular periférica"),this.inputs.diabetes&&this.fatoresDeRisco.alto.push("Diabetes"),console.log(this.fatoresDeRisco),this.fatoresDeRisco.baixoIntermediario.length<=1&&this.fatoresDeRisco.alto<=0?(this.chance="<=10",this.textoChance="BAIXO",!0):this.fatoresDeRisco.alto>1?(this.textoChance="ALTO",this.chance<20?this.chance="<=20":this.chance="<="+this.chance,!0):void 0},CalcRiscoIdade:function(){const e=this.inputs.idade;"masculino"===this.inputs.genero?e<35?this.score+=-1:e>=35&&e<40?this.score+=0:e>=40&&e<45?this.score+=1:e>=45&&e<50?this.score+=2:e>=50&&e<55?this.score+=3:e>=55&&e<60?this.score+=4:e>=60&&e<65?this.score+=5:e>=65&&e<70?this.score+=6:e>=70&&(this.score+=7):"feminino"===this.inputs.genero&&(e<35?this.score+=-9:e>=35&&e<40?this.score+=-4:e>=40&&e<45?this.score+=0:e>=45&&e<50?this.score+=3:e>=50&&e<55?this.score+=6:e>=55&&e<60?this.score+=7:(e>=60&&e<65||e>=65&&e<70||e>=70)&&(this.score+=8))},CalcRiscoIdl:function(){const e=this.ldl;"masculino"===this.inputs.genero?e<100?this.score+=-3:e>=100&&e<130||e>=130&&e<160?this.score+=0:e>=160&&e<190?this.score+=1:e>=190&&(this.score+=2):"feminino"===this.inputs.genero&&(e<100?this.score+=-2:e>=100&&e<130||e>=130&&e<160?this.score+=0:(e>=160&&e<190||e>=190)&&(this.score+=2))},CalcRiscoHdl:function(){const e=this.inputs.hdl;"masculino"===this.inputs.genero?e<35?this.score+=2:e>=35&&e<45?this.score+=1:e>=45&&e<50||e>=50&&e<60?this.score+=0:e>=60&&(this.score+=-1):"feminino"===this.inputs.genero&&(e<35?this.score+=5:e>=35&&e<45?this.score+=2:e>=45&&e<50?this.score+=1:e>=50&&e<60?this.score+=0:e>=60&&(this.score+=-2))},CalcRiscoPressao:function(){const e=[[0,0,1,2,3],[0,0,1,2,3],[1,1,1,2,3],[2,2,2,2,3],[3,3,3,3,3]],t=[[-3,0,0,2,3],[0,0,0,2,3],[0,0,0,2,3],[2,2,2,2,3],[3,3,3,3,3]],n=this.inputs.sistolica,i=this.inputs.diastolica;let s=0,o=0;n<120?s=0:n>=120&&n<130?s=1:n>=130&&n<140?s=2:n>=140&&n<160?s=3:n>=160&&(s=4),i<80?o=0:i>=80&&i<85?o=1:i>=85&&i<90?o=2:i>=90&&i<100?o=3:i>=100&&(o=4),"masculino"===this.inputs.genero?this.score+=e[s][o]:"feminino"===this.inputs.genero&&(this.score+=t[s][o])},CalcRiscoDiabetes:function(){this.score+=this.inputs.diabetes?4:0},CalcRiscoAtividade:function(){},CalcRiscoCigarro:function(){this.score+=this.inputs.cigarro?2:0},showResult:function(){function e(e,t,n){return e<=t?t:+e>=n?n:+e}if("masculino"===this.inputs.genero){let t={"'-3'":1,"'-2'":2,"'-1'":2,"'0'":3,"'1'":4,"'2'":4,"'3'":6,"'4'":7,"'5'":9,"'6'":11,"'7'":14,"'8'":18,"'9'":22,"'10'":27,"'11'":33,"'12'":40,"'13'":47,"'14'":56};this.chance=t["'"+e(this.score,-3,14)+"'"]}else if("feminino"===this.inputs.genero){let t={"'-2'":1,"'-1'":2,"'0'":2,"'1'":2,"'2'":3,"'3'":3,"'4'":4,"'5'":5,"'6'":6,"'7'":7,"'8'":8,"'9'":9,"'10'":11,"'11'":13,"'12'":15,"'13'":17,"'14'":20,"'15'":24,"'16'":27,"'17'":32};this.chance=t["'"+e(this.score,-2,17)+"'"]}}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"calculadora calculadora-cardiovascular"},[t("div",{staticClass:"steps-list"},e._l(e.steps,(function(n,i){return t("div",{class:{step:!0,active:i===e.passo_atual,done:i<+e.passo_atual},on:{click:function(t){return e.vaParaPasso(i)}}},[t("span",{staticClass:"step-ico",class:["step-ico-"+n]},[t("svg",{staticClass:"icon"},[t("use",{attrs:{"xlink:href":n}})])]),t("span",{staticClass:"step-title"},[e._v(e._s(e.strings.step)+" "+e._s(i+1)+" "),t("div",{staticClass:"total"},[e._v("/"+e._s(e.passo_max+1))])])])})),0),e.estaNoPasso(0)?t("div",{staticClass:"step-content"},[t("div",[t("label",{staticClass:"step-title"},[e._v(e._s(e.strings.fields.gender.label)+":")]),t("div",{staticClass:"horizontal-inputs"},[t("label",{staticClass:"eurofarma-radio-input",class:{selected:"masculino"===e.inputs.genero},attrs:{for:"rdb-genero-man"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.genero,expression:"inputs.genero"}],attrs:{type:"radio",value:"masculino",id:"rdb-genero-man",name:"genero",required:e.estaNoPasso(0)},domProps:{checked:e._q(e.inputs.genero,"masculino")},on:{change:function(t){return e.$set(e.inputs,"genero","masculino")}}}),t("span",[e._v(e._s(e.strings.fields.gender.option1))])]),t("label",{staticClass:"eurofarma-radio-input",class:{selected:"feminino"===e.inputs.genero},attrs:{for:"rdb-genero-fem"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.genero,expression:"inputs.genero"}],attrs:{type:"radio",value:"feminino",id:"rdb-genero-fem",name:"genero",required:e.estaNoPasso(0)},domProps:{checked:e._q(e.inputs.genero,"feminino")},on:{change:function(t){return e.$set(e.inputs,"genero","feminino")}}}),t("span",[e._v(e._s(e.strings.fields.gender.option2))])])])])]):e._e(),e.estaNoPasso(1)?t("div",{staticClass:"step-content col-sm-12"},[t("div",{staticClass:"row"},[t("div",{staticClass:"form-group"},[t("label",{staticClass:"step-title",attrs:{for:"num-idade"}},[e._v(e._s(e.strings.fields.age.label)+":")]),t("div",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.idade,expression:"inputs.idade"}],staticClass:"form-control",attrs:{placeholder:e.strings.fields.age.placeholder,type:"number",name:"idade",id:"num-idade",required:e.estaNoPasso(1)},domProps:{value:e.inputs.idade},on:{input:function(t){t.target.composing||e.$set(e.inputs,"idade",t.target.value)}}})])])])]):e._e(),e.estaNoPasso(2)?t("div",{staticClass:"step-content col-sm-12"},[t("div",[t("label",{staticClass:"step-title"},[e._v(e._s(e.strings.fields.cholesterol.label)+":")]),t("div",{staticClass:"row"},[t("div",{staticClass:"col-sm-12 col-md-6 form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.ldl,expression:"inputs.ldl"}],staticClass:"form-control",attrs:{placeholder:e.strings.fields.cholesterol.placeholder1,type:"text",id:"txt-ldl",name:"ldl",required:e.estaNoPasso(2)},domProps:{value:e.inputs.ldl},on:{input:function(t){t.target.composing||e.$set(e.inputs,"ldl",t.target.value)}}}),t("label",{attrs:{for:"txt-ldl"}},[e._v("LDL (mg/dl)")])]),t("div",{staticClass:"col-sm-12 col-md-6 form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.hdl,expression:"inputs.hdl"}],staticClass:"form-control",attrs:{placeholder:e.strings.fields.cholesterol.placeholder2,type:"text",id:"txt-hdl",name:"hdl",required:e.estaNoPasso(2)},domProps:{value:e.inputs.hdl},on:{input:function(t){t.target.composing||e.$set(e.inputs,"hdl",t.target.value)}}}),t("label",{attrs:{for:"txt-hdl"}},[e._v("HDL (mg/dl)")])])])])]):e._e(),e.estaNoPasso(3)?t("div",{staticClass:"step-content col-sm-12"},[t("div",[t("label",{staticClass:"step-title"},[e._v(e._s(e.strings.fields.arterial_pressure.label)+":")]),t("div",{staticClass:"row"},[t("div",{staticClass:"col-sm-12 col-md-6 form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.sistolica,expression:"inputs.sistolica"}],staticClass:"form-control",attrs:{placeholder:e.strings.fields.arterial_pressure.placeholder1,type:"text",id:"txt-sistolica",name:"sistolica",required:e.estaNoPasso(3)},domProps:{value:e.inputs.sistolica},on:{input:function(t){t.target.composing||e.$set(e.inputs,"sistolica",t.target.value)}}}),t("label",[e._v(e._s(e.strings.fields.arterial_pressure.desc1)+" (mm/Hg)")])]),t("div",{staticClass:"col-sm-12 col-md-6 form-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.diastolica,expression:"inputs.diastolica"}],staticClass:"form-control",attrs:{placeholder:e.strings.fields.arterial_pressure.placeholder2,type:"text",id:"txt-diastolica",name:"diastolica",required:e.estaNoPasso(3)},domProps:{value:e.inputs.diastolica},on:{input:function(t){t.target.composing||e.$set(e.inputs,"diastolica",t.target.value)}}}),t("label",[e._v(e._s(e.strings.fields.arterial_pressure.desc2)+" (mm/Hg)")])])]),t("div",[t("small",[e._v(e._s(e.strings.fields.arterial_pressure.specs))])])])]):e._e(),e.estaNoPasso(4)?t("div",{staticClass:"step-content col-sm-12"},[t("div",[t("label",{staticClass:"step-title"},[e._v(e._s(e.strings.fields.physical_activity.title))]),t("div",{staticClass:"row horizontal-inputs"},[t("label",{staticClass:"col-sm-12",class:{selected:!0===e.inputs.atividade}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.atividade,expression:"inputs.atividade"}],attrs:{type:"radio",id:"rdb-atividade-sim",name:"atividade",required:e.estaNoPasso(4)},domProps:{value:!0,checked:e._q(e.inputs.atividade,!0)},on:{change:function(t){return e.$set(e.inputs,"atividade",!0)}}}),t("span",[e._v(e._s(e.strings.yes))])]),t("label",{staticClass:"col-sm-12",class:{selected:!1===e.inputs.atividade}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.atividade,expression:"inputs.atividade"}],attrs:{type:"radio",id:"rdb-atividade-nao",name:"atividade",required:e.estaNoPasso(4)},domProps:{value:!1,checked:e._q(e.inputs.atividade,!1)},on:{change:function(t){return e.$set(e.inputs,"atividade",!1)}}}),t("span",[e._v(e._s(e.strings.no))])])])])]):e._e(),e.estaNoPasso(5)?t("div",{staticClass:"step-content col-sm-12"},[t("div",[t("label",{staticClass:"step-title"},[e._v(e._s(e.strings.fields.diabetes.title))]),t("div",{staticClass:"row horizontal-inputs"},[t("label",{staticClass:"col-sm-12",class:{selected:!0===e.inputs.diabetes}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.diabetes,expression:"inputs.diabetes"}],attrs:{type:"radio",id:"rdb-diabetes-sim",name:"diabetes",required:e.estaNoPasso(5)},domProps:{value:!0,checked:e._q(e.inputs.diabetes,!0)},on:{change:function(t){return e.$set(e.inputs,"diabetes",!0)}}}),t("span",[e._v(e._s(e.strings.yes))])]),t("label",{staticClass:"col-sm-12",class:{selected:!1===e.inputs.diabetes}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.diabetes,expression:"inputs.diabetes"}],attrs:{type:"radio",id:"rdb-diabetes-nao",name:"diabetes",required:e.estaNoPasso(5)},domProps:{value:!1,checked:e._q(e.inputs.diabetes,!1)},on:{change:function(t){return e.$set(e.inputs,"diabetes",!1)}}}),t("span",[e._v(e._s(e.strings.no))])])])])]):e._e(),e.estaNoPasso(6)?t("div",{staticClass:"step-content col-sm-12"},[t("div",[t("label",{staticClass:"step-title"},[e._v(e._s(e.strings.fields.obese.title))]),t("div",{staticClass:"row horizontal-inputs"},[t("label",{staticClass:"col-sm-12",class:{selected:!0===e.inputs.obesidade}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.obesidade,expression:"inputs.obesidade"}],attrs:{type:"radio",id:"rdb-obesidade-sim",name:"obesidade",required:e.estaNoPasso(6)},domProps:{value:!0,checked:e._q(e.inputs.obesidade,!0)},on:{change:function(t){return e.$set(e.inputs,"obesidade",!0)}}}),t("span",[e._v(e._s(e.strings.yes))])]),t("label",{staticClass:"col-sm-12",class:{selected:!1===e.inputs.obesidade}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.obesidade,expression:"inputs.obesidade"}],attrs:{type:"radio",id:"rdb-obesidade-nao",name:"obesidade",required:e.estaNoPasso(6)},domProps:{value:!1,checked:e._q(e.inputs.obesidade,!1)},on:{change:function(t){return e.$set(e.inputs,"obesidade",!1)}}}),t("span",[e._v(e._s(e.strings.no))])])]),t("small",[e._v("IMC > 30 kg/m²")])])]):e._e(),e.estaNoPasso(7)?t("div",{staticClass:"step-content col-sm-12"},[t("div",[t("label",{staticClass:"step-title"},[e._v(e._s(e.strings.fields.smoker.title))]),t("div",{staticClass:"row horizontal-inputs"},[t("label",{staticClass:"col-sm-12",class:{selected:!0===e.inputs.cigarro}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.cigarro,expression:"inputs.cigarro"}],attrs:{type:"radio",id:"rdb-cigarro-sim",name:"cigarro",required:e.estaNoPasso(7)},domProps:{value:!0,checked:e._q(e.inputs.cigarro,!0)},on:{change:function(t){return e.$set(e.inputs,"cigarro",!0)}}}),t("span",[e._v(e._s(e.strings.yes))])]),t("label",{staticClass:"col-sm-12",class:{selected:!1===e.inputs.cigarro}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs.cigarro,expression:"inputs.cigarro"}],attrs:{type:"radio",id:"rdb-cigarro-nao",name:"cigarro",required:e.estaNoPasso(7)},domProps:{value:!1,checked:e._q(e.inputs.cigarro,!1)},on:{change:function(t){return e.$set(e.inputs,"cigarro",!1)}}}),t("span",[e._v(e._s(e.strings.no))])])])])]):e._e(),e.estaNoPasso(8)&&!e.calculado?t("div",{staticClass:"step-content col-sm-12"},[t("div",[t("label",{staticClass:"step-title"},[e._v(e._s(e.strings.fields.history.title))]),t("label",{staticClass:"step-title"}),t("div",{staticClass:"row align-items-center"},e._l(e.strings.fields.history.list,(function(n,i){return t("div",{staticClass:"col-sm-12 col-md-4"},[t("div",{staticClass:"history-items"},[t("label",{staticClass:"custom-eurofarma-checkbox",class:{selected:!0===e.inputs[i]},attrs:{for:"ckb-factor-"+i}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs[i],expression:"inputs[label]"}],attrs:{type:"checkbox",id:"ckb-factor-"+i,name:"historico"},domProps:{value:!0,checked:Array.isArray(e.inputs[i])?e._i(e.inputs[i],!0)>-1:e.inputs[i]},on:{change:function(t){var n=e.inputs[i],s=t.target,o=!!s.checked;if(Array.isArray(n)){var r=!0,a=e._i(n,r);s.checked?a<0&&e.$set(e.inputs,i,n.concat([r])):a>-1&&e.$set(e.inputs,i,n.slice(0,a).concat(n.slice(a+1)))}else e.$set(e.inputs,i,o)}}}),e._v(" "),t("span",[e._v(e._s(n))])])])])})),0),t("small",[e._v(e._s(e.strings.results.label))])])]):e._e(),t("div",{staticClass:"row"},[e.calculado?t("div",{staticClass:"step-content result-content col-sm-12"},[t("div",[t("h3",{domProps:{innerHTML:e._s(e.strings.results.info+" "+e.textoChance+" "+e.strings.results.info_pt2)}})]),t("p",{staticClass:"d-block",domProps:{innerHTML:e._s(e.strings.results.desc+" "+e.chance+e.strings.results.desc_pt2)}})]):e._e(),t("div",{staticClass:"col-sm-12 buttons-area"},[t("div",{staticClass:"cta-area"},[e.primeiroPasso||e.calculado?e._e():t("a",{staticClass:"btn btn-primary",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.passoAnterior()}}},[e._v(" "+e._s(e.strings.buttons.prev)+" ")]),e.ultimoPasso&&!e.calculado?t("a",{staticClass:"btn btn-primary btn-calc",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.calc()}}},[e._v(" "+e._s(e.strings.buttons.calc)+" ")]):e._e(),e.calculado?t("a",{staticClass:"btn btn-primary",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.reset()}}},[e._v(" "+e._s(e.strings.buttons.new_calc)+" ")]):e._e(),e.ultimoPasso?e._e():t("a",{staticClass:"btn btn-primary",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.passoPosterior()}}},[e._v(" "+e._s(e.strings.buttons.next)+" ")])])])])])}),[],!1,null,"90b1fe57",null,null).exports,hn={components:{"slick-carousel":ae},props:[],data:()=>({navigation:"",parceirosModalContent:"",certificacoesModalContent:"",certificacoesSlidersContent:[],certificacoesModalElement:null,showParceirosModal:!1,showCertificacoesModal:!1,leftMenuIsOpen:!1,slickSettings:{arrows:!0,dots:!0,draggable:!0,slidesToShow:1,infinite:!0,speed:300}}),watch:{leftMenuIsOpen:function(e){let t=document.getElementsByTagName("body")[0];!0===e?t.classList.add("modal-open"):t.classList.remove("modal-open")},navigation:function(e){""!==e&&setTimeout((()=>{document.getElementById("left-menu-holder").querySelectorAll("a.nav-link").forEach((e=>{e.addEventListener("click",(()=>{this.leftMenuIsOpen=!1}))}))}))}},beforeMount(){},mounted(){let e=document.getElementsByClassName("container-with-component-class-top-menu")[0],t=document.getElementsByClassName("container-with-component-class-parceiros-modal")[0],n=document.getElementsByClassName("container-with-component-class-certificacoes-modal")[0];if(void 0!==e&&(this.navigation=e.outerHTML,e.remove()),void 0!==t&&(this.parceirosModalContent=t.innerHTML,t.remove()),document.querySelector('a[href="#parceiros"]').addEventListener("click",(()=>{this.showParceirosModal=!0})),void 0!==n){let e=n.querySelectorAll(".slick-slide:not(.slick-cloned)");e.length>0&&e.forEach((e=>{this.certificacoesSlidersContent.push(e.querySelector(".inside-area").innerHTML)})),n.remove()}document.querySelector('a[href="#certificacoes"]').addEventListener("click",(()=>{this.showCertificacoesModal=!0}))},methods:{toggleLeftMenu:function(){this.leftMenuIsOpen=!this.leftMenuIsOpen}}},mn={components:{},props:["site"],data:()=>({footerBackground:"container-with-component-class-pink-bg",waitRouletteTiming:!1,showAudioModalToggle:!1,modalContent:"",activeAudioPlayer:null,activeAudio:null}),beforeMount(){},watch:{waitRouletteTiming:function(e){let t=document.querySelector(".component-class-roulette .page-component__html-block");null!==t&&(e?t.classList.add("waiting"):t.classList.remove("waiting"))}},mounted(){this.setupBackgroundStyles(),this.setupIconsCheckAndTimes(),this.setupAudioGameLinks(),this.setupRouletteGame(),this.setupFooterBackground()},methods:{setupFooterBackground:function(){let e=document.getElementsByClassName("component-class-references")[0],t=-1!==Object.values(e.classList).indexOf("component-class-blue-bg"),n=-1!==Object.values(e.classList).indexOf("component-class-blue-light-bg"),i=-1!==Object.values(e.classList).indexOf("component-class-pink-bg");t?this.footerBackground="container-with-component-class-blue-bg":n?this.footerBackground="container-with-component-class-blue-light-bg":i&&(this.footerBackground="container-with-component-class-pink-bg")},setupIconsCheckAndTimes:function(){let e=document.getElementById("icon-check-rounded").innerHTML,t=document.getElementsByClassName("component-class-import-icon-check-rounded");Object.values(t).forEach(((t,n)=>{t.querySelectorAll("svg").forEach((t=>{t.parentNode.insertAdjacentHTML("beforeend",e)}))}));let n=document.getElementById("icon-x-rounded").innerHTML,i=document.getElementsByClassName("component-class-import-icon-x-rounded");Object.values(i).forEach(((e,t)=>{e.querySelectorAll("svg").forEach((e=>{e.parentNode.insertAdjacentHTML("beforeend",n)}))}))},setupBackgroundStyles:function(){let e=document.getElementById("header").getAttribute("style"),t=document.querySelectorAll(".container-with-component-class-pattern");Object.values(t).forEach(((t,n)=>{t.setAttribute("style",e)}))},startRollRoulette:function(e){this.waitRouletteTiming=!0;let t=e.querySelector("svg g#disc"),n=Math.ceil(1010*Math.random())+360;t.style.transform="rotate("+n+"deg)",setTimeout((()=>{this.waitRouletteTiming=!1,this.getRouletteResult(e,n)}),1e3)},getRouletteResult:function(e,t){let n=t%360,i="roulette-";n>21&&n<=110?i+="pink":n>110&&n<=202?i+="blue":n>202&&n<=290?i+="green":(n>290&&n<=360||n>0&&n<=21)&&(i+="yellow"),console.log(i);let s=document.querySelector(`.component-class-${i}-audio .audio-player`);null!==s?this.playAudio(s.getAttribute("rel")):console.warn("Winner audio not found")},setupRouletteGame:function(){let e=document.getElementById("roulette-svg-icon"),t=document.createElement("div");t.id="roulette-game",t.innerHTML=e.innerHTML;let n=document.querySelector(".component-class-roulette .page-component__html-block");null!==n&&(n.appendChild(t),n.querySelector(".btn-holder").addEventListener("click",(()=>{this.startRollRoulette(n)})))},toggleMenu:function(){document.getElementById("header").classList.toggle("open"),document.getElementsByTagName("body")[0].classList.toggle("modal-open")},setupAudioGameLinks:function(){document.querySelectorAll(".container-with-component-class-sound-game .nav-link").forEach((e=>{e.setAttribute("rel","disabled"),e.addEventListener("click",(e=>{let t=e.target.getAttribute("href"),n=document.querySelector(`${t} .audio-player`);return this.showAudioModal(e,n,null!==n),e.preventDefault(),!1}))})),this.$root.$on("bv::modal::shown",((e,t)=>{"sound-game-modal"===t&&document.getElementById("modal-audio-button").addEventListener("click",(e=>{this.playAudio(this.activeAudioPlayer.getAttribute("rel"),e.target)}))}))},showAudioModal:function(e,t,n){let i=e.target.querySelector(".description").innerHTML;if(n){i+=`<a id="modal-audio-button">${document.getElementById("audio-svg-icon").innerHTML}</a>`}this.modalContent=i,this.showAudioModalToggle=!0,this.activeAudioPlayer=t},playAudio:function(e,t){if(null!==this.activeAudio&&void 0!==t&&-1!==Object.values(t.classList).indexOf("playing"))return this.stopAudio(),void t.classList.remove("playing");null!==this.activeAudio&&this.stopAudio(),this.activeAudio=new Audio(e),this.activeAudio.loop=!1,this.activeAudio.play(),void 0!==t&&(this.activeAudio.addEventListener("playing",(e=>{t.classList.add("playing")})),this.activeAudio.addEventListener("ended",(e=>{t.classList.remove("playing")})))},stopAudio:function(){this.activeAudio.pause(),this.activeAudio=null}}},vn={components:{},props:["eans"],data:()=>({isOffersModalOpen:!1,isOffersModalLoading:!1,isOffersLoadedStyle:!1,openProduct:null,selectedEan:null,currency:rt.currency(),hasDecimals:rt.hasDecimals()}),beforeMount(){},mounted(){this.loadOffers(this.eans||[],(()=>{this.setupOffersButtons()}))},methods:{toggleMenu:function(){document.getElementById("header").classList.toggle("open"),document.getElementsByTagName("body")[0].classList.toggle("modal-open")},onModalSkuChange(e){console.log("SELECTED EAN",e.target.value),this.selectedEan=e.target.value},setupOffersButtons(){let e=document.querySelector(".component-class-green-pills .page-component"),t=document.querySelector(".component-class-orange-pills .page-component"),n=document.querySelector("#svg-assets .icon-cart"),i=document.createElement("a");i.className="btn btn-rainbow",i.innerHTML=n.outerHTML+"<span>Comprar</span>",e.appendChild(i),i.addEventListener("click",(()=>{this.selectedEan=this.eans[0]||null,this.isOffersModalOpen=!0}));let s=document.createElement("a");s.className="btn btn-rainbow",s.innerHTML=n.outerHTML+"<span>Comprar</span>",t.appendChild(s),s.addEventListener("click",(()=>{this.selectedEan=this.eans[1]||null,this.isOffersModalOpen=!0}))},loadOffers(e,t){0!==e.length&&(console.log("Loading offers for product w/ EANs: ",e.join(", ")),this.isOffersModalLoading=!0,this.isOffersLoadedStyle=!1,Promise.all(Object.values(e).map((e=>rt.fetchOffer(e)))).then((n=>{this.isOffersModalLoading=!1,this.isOffersLoadedStyle=!0,console.log("Loaded all offers for EANs: ",e,n),this.openProduct=n,1===n.length&&(this.selectedEan=this.openProduct[0].ean),this.$forceUpdate(),t()})))}}},gn={components:{},props:[],data:()=>({showPortifolioModal:!1,modalImg:"",modalContent:""}),beforeMount(){},mounted(){document.querySelectorAll('a[class="nav-link"]').forEach(function(e){e.addEventListener("click",function(){document.getElementById("header").classList.contains("open")&&(document.getElementById("header").classList.toggle("open"),document.getElementsByTagName("body")[0].classList.toggle("modal-open"))}.bind(this))}.bind(this));document.querySelectorAll(".container-with-component-class-portifolio .nav-link").forEach(function(e){e.addEventListener("click",function(){this.openPortifolioModal();const t=e.querySelector("img"),n=e.querySelector(".portifolio-description");this.modalImg=t.src,this.modalContent=n.innerHTML}.bind(this))}.bind(this)),this.$root.$on("bv::modal::show",((e,t)=>{this.setModalContent()}))},methods:{toggleMenu:function(){document.getElementById("header").classList.toggle("open"),document.getElementsByTagName("body")[0].classList.toggle("modal-open")},openPortifolioModal:function(){this.showPortifolioModal=!0},setModalContent:function(){this.$nextTick((()=>{document.querySelector(".portifolio-modal > .content").innerHTML=this.modalContent}))}}};console.log("----------------"),console.log("Portal Eurofarma"),console.log("Powered by LQDI SapphireCMS"),console.log("Copyright (c) Technology by LQDI.net - 2020"),console.log("----------------"),window.$=i,window.Lang=d,window.FormValidationCtrl=se,u.use(p),u.use(f),u.use(h),u.use(se),u.use(te,{preLoad:1.3,attempt:1}),u.use(ie),u.use(d.plugin),u.use(m,{precision:2}),window.createNumberMask=f,window.axios=o,u.prototype.$eventHub=new u,u.component("accordeon",oe),u.component("article-slider",le),u.component("featured-products-slider",ce),u.component("filterable-table",de),u.component("header-slider",ue),u.component("content-carousel",pe),u.component("histories-slider",fe),u.component("image-gallery",he),u.component("widget-quiz",me),u.component("truth-or-myth",ve),u.component("timeline",ge),u.component("youtube-player",l),u.component("pages-table",Be),u.component("taxonomy-pages-table",He),u.component("podcasts-pages-table",ze),u.component("form-builder-input",v),u.component("content-collapse",Fe),u.component("sort-table-component-ctrl",Ve),u.component("loading-feedback",g),u.component("datetime-picker",_),u.component("latest-posts",We),u.component("carousel-posts",Ue),u.component("featured-posts",Qe),u.component("featured-products",Ge),u.component("recommended-content",Ye),u.component("form-submission-ctrl",Je),u.component("waitlist-submission-ctrl",Ke),u.component("tabs",{props:["initialTab"],mounted:function(){this.initialTab&&(this.currentTab=this.initialTab)},data:()=>({currentTab:0})}),u.component("search-results-ctrl",et),u.component("sellers-results-ctrl",tt),u.component("cookie-bar-ctrl",nt),u.component("login-registration-ctrl",st),u.component("product-storefront-ctrl",lt),u.component("product-sellers-ctrl",ct),u.component("search-autocomplete-ctrl",Wt),u.component("search-inline-filter-ctrl",Ut),u.component("product-search-results-ctrl",Qt),u.component("useful-content-ctrl",Gt),u.component("speech-element-ctrl",Yt),u.component("genericos-lp-ctrl",Zt),u.component("confirm-healthcare-ctrl",en),u.component("genericos-lp-ctrl-v2",nn),u.component("suganon-lp-ctrl",sn),u.component("product-form-filter-ctrl",on),u.component("media-central-ctrl",rn),u.component("course-enrollment-form",ln),u.component("calculadora-imc",cn),u.component("calculadora-peso-ideal",dn),u.component("calculadora-superficie-corporea",un),u.component("calculadora-gravidez",pn),u.component("calculadora-risco-cardiovascular",fn),u.component("cmo-page-ctrl",hn),u.component("nenedent-page-ctrl",mn),u.component("genova-page-ctrl",vn),u.component("ventures-page-ctrl",gn),d.discoverLocale(),window.app=new u({el:"#app",data:{sharedState:{language:"pt-BR"}},mounted(){i("div.modal").on("shown.bs.modal",(function(e){i(".modal-backdrop.show").on("click",(function(){i("div.modal").modal("hide")})),i(this).find("input:first").focus()})),i("div.modal").on("show.bs.modal",(function(e){i("div.modal").modal("hide")})),i("#mainmenu-overlay").on("show.bs.modal",(function(e){i(".menu-bt").addClass("opened"),i(".left-bar").addClass("opened"),i(".institucional-row").addClass("show")})),i("#mainmenu-overlay").on("hide.bs.modal",(function(e){i(".menu-bt").removeClass("opened"),i(".left-bar").removeClass("opened"),i(".institucional-row").removeClass("show")})),i("#search-overlay").on("show.bs.modal",(function(e){document.getElementById("search-query-input").focus(),i(".top-container-logo").addClass("elevate")})),i("#search-overlay").on("hide.bs.modal",(function(e){i(".top-container-logo").removeClass("elevate")})),i("#consumidores-overlay").on("show.bs.modal",(function(e){i(".institucional-row").addClass("show")})),i("#consumidores-overlay").on("hide.bs.modal",(function(e){i(".institucional-row").removeClass("show")})),i("#countries-overlay").on("show.bs.modal",(function(e){i(".updown-menu").addClass("active")})),i("#countries-overlay").on("hide.bs.modal",(function(e){i(".updown-menu").removeClass("active")})),i("span.image-caption").each((function(){let e=i(this).find("img");i(this).css("--caption",'"'+e.attr("alt")+'"'),i(this).css("float",e.css("float"))})),i(".language-selector").keydown((function(e){var t=e.key||e.which||e.keyCode||0;13!=t&&"Enter"!==t||i("#lang-overlay-top").modal("show")})),i(".user-menu").keydown((function(e){var t=e.key||e.which||e.keyCode||0;13!=t&&"Enter"!==t||i("#consumidores-overlay").modal("show")})),i(".search-button").keydown((function(e){var t=e.key||e.which||e.keyCode||0;13!=t&&"Enter"!==t||i("#search-overlay").modal("show")}));let e=document.getElementById("app");e&&e.querySelectorAll('a[href^="#"]').forEach((e=>e.onclick=function(e,t=null){if("disabled"===e.target.getAttribute("rel"))return e.preventDefault(),!1;const n=e=>Math.floor(e.getBoundingClientRect().top);e.preventDefault();var i=t?t.getAttribute("href"):this.getAttribute("href");const s=document.querySelector(i);if(!s||"#"===s)return;const o=n(s);window.scrollBy({top:o,left:0,behavior:"smooth"});const r=setInterval((function(){const e=window.innerHeight+window.pageYOffset>=document.body.offsetHeight-2;(0===n(s)||e)&&(s.tabIndex="-1",s.focus(),window.history.pushState("","",i),clearInterval(r))}),100)}))}});
