2 lines
881 KiB
Plaintext
Executable File
2 lines
881 KiB
Plaintext
Executable File
/*! For license information please see postpage-11249d2f.js.LICENSE.txt */
|
||
(()=>{var e={3748:(e,t,n)=>{"use strict";var i=n(1912),r=n.n(i),o=!1;function s(e){var t=e.getAttribute("data-sf-srcset")||e.getAttribute("sf-srcset"),n=e.getAttribute("data-sf-src")||e.getAttribute("sf-src"),i=e.getAttribute("data-sizes");t&&(e.setAttribute("srcset",t),o||r()({elements:[e],reevaluate:!0})),n&&e.setAttribute("src",n),i&&e.setAttribute("sizes",i),e.classList.remove("sf-lazy")}/Edge\/\d+/.test(navigator.userAgent)||(o="srcset"in document.createElement("img"));var a=document.getElementsByClassName("sf-lazy"),l=(window.innerHeight||document.documentElement.clientHeight)+100;function c(){if(a.length)for(var e=0;e<a.length;e++){var t=a[e],n=t.getBoundingClientRect();(0<=n.top&&0<=n.left&&n.top)<=l&&s(t)}else document.removeEventListener("scroll",c)}function u(){document.addEventListener("scroll",c),c()}"complete"===document.readyState?u():window.addEventListener("load",u)},1040:()=>{window.WSL2||(window.WSL2={}),WSL2.Auth||(WSL2.Auth={})},2763:(e,t,n)=>{var i=n(2856),r=n(5544);window.WSL2||(window.WSL2={}),WSL2.Events||i.extend(WSL2.Events={},r.Events)},7472:()=>{WSL2.Events.on("newsletterModuleClicked",(function(e){var t=e.email;return ga("send","event","Modulo_suscribir_site","Clic",t)}))},2547:()=>{window.AML||(window.AML={}),AML.Auth||(AML.Auth={}),AML.Auth.Model||(AML.Auth.Model={}),AML.Auth.View||(AML.Auth.View={}),AML.Auth.JST||(AML.Auth.JST={})},7344:()=>{var e=$(".js-branded-tabs");e.length&&function(){var t=500,n=e.find(".js-tabs-list"),i=e.find(".js-prev-btn"),r=e.find(".js-next-btn"),o=e.find(".js-prev-btn-container"),s=e.find(".js-next-btn-container"),a=!1,l=0,c=0,u=0,d=0;function h(){m(),n.css({transform:"translateX(-".concat(u,"px)")}),setTimeout(g,t)}function f(){o.show(),(u+=d)>=l&&(u=l,s.hide()),h()}function p(){s.show(),0>=(u-=d)&&(u=0,o.hide()),h()}function m(){a=!1,i.unbind("click"),r.unbind("click")}function g(){a||(a=!0,r.on("click",f),i.on("click",p))}function v(){m(),o.hide(),s.hide(),n.css({transform:"translateX(0px)"});var e=n.get(0).scrollWidth;c=n.width(),d=.8*c,l=e-c,u=0,e>c&&(s.show(),g())}v();var y,b,w=(y=v,b=null,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=this;clearTimeout(b),b=setTimeout((function(){y.apply(i,t)}),250)});$(window).resize(w),"undefined"!=typeof googletag&&googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRenderEnded",(function(e){-1!==e.slot.getAdUnitPath().indexOf("-INT")&&w()}))}))}()},7525:()=>{var e=$("#js-deeplinking-news-nav-btn"),t=$("#js-deeplinking-news-nav-links");t.length&&function(){e.on("click",(function(){e.toggleClass("btn-toggle"),t.toggleClass("is-expended")}));var n=function(){var n;(n=t[0]).scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth?e.show():e.hide()};n(),"undefined"!=typeof googletag&&googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRenderEnded",(function(e){-1!==e.slot.getAdUnitPath().indexOf("-INT")&&n()}))}))}()},648:()=>{if("1"===WSL2.config.enableTaboolaIntegration&&"1"===WSL2.config.enablePerformanceImprovements){var e=new IntersectionObserver((function(e,t){e.forEach((function(e){if(e.isIntersecting&&!document.getElementById("tb_loader_script")){var n=document.createElement("script");n.type="text/javascript",n.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({article:'auto'});\n !function (e, f, u, i) {\n if (!document.getElementById(i)){\n e.async = 1;\n e.src = u;\n e.id = i;\n f.parentNode.insertBefore(e, f);\n }\n }(document.createElement('script'),\n document.getElementsByTagName('script')[0],\n '//cdn.taboola.com/libtrc/webediaes-network/loader.js',\n 'tb_loader_script');\n if(window.performance && typeof window.performance.mark == 'function')\n {window.performance.mark('tbl_ic');}\n ",document.head.appendChild(n),t.disconnect()}}))}),{root:null,rootMargin:"0px",threshold:.1}),t=document.querySelector("#taboola-below-article-thumbnails");e.observe(t)}},3432:()=>{var e=$(".js-aggregate-rating");if(e.length){var t=e.find("form"),n=!1;e.each((function(i,r){var o=$(r),s=o.find(".msg-gracias"),a=o.find(".msg-error");o.find("input[type=radio][name=rating]").click((function(i){if(i.preventDefault(),!n){n=!0,s.hide(),a.hide();var r=$(i.currentTarget),o=new FormData;o.append("rating",r.val()),$.ajax({url:"/api/1.0/recipe-rating/".concat(WSL2.config.postId),type:"POST",cache:!1,processData:!1,contentType:!1,data:o,success:function(n){s.show(),t.removeClass().addClass("m-rating-".concat(n.user_rating)),e.find(".js-votes").html("".concat(n.votes," votos"))},error:function(e){var t=e.responseJSON,n=t.error,i=t.message,r=void 0===i?"Error!":i;n&&a.html(r).show()},complete:function(){n=!1}})}}))}))}},7056:()=>{var e=$("#js-evergreen-nav-links"),t=$("#js-post-link-list-container"),n=function(e,t){var n;(n=e[0]).scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth?t.on("click",(function(){t.toggleClass("btn-toggle"),e.toggleClass("is-expended")})):t.remove()};e.length&&n(e,$("#js-evergreen-nav-btn")),t.length&&n(t,$("#js-btn-post-tags"))},2724:()=>{var e;(e=Translator).fallback="es",e.defaultDomain="messages"},8072:()=>{var e;(e=Translator).add("see.the.chart","Ver el gráfico","messages","es"),e.add("view.gallery","Ver galería completa","messages","es"),e.add("elaboration","Elaboración","messages","es"),e.add("cooking","Cocción","messages","es"),e.add("serving.time","Reposo","messages","es"),e.add("ingredients","Ingredientes","messages","es"),e.add("how.to.do","Cómo hacer","messages","es"),e.add("difficulty","Dificultad","messages","es"),e.add("total.time","Tiempo total","messages","es"),e.add("gallery.foto","Galería de fotos","messages","es"),e.add("giphy.alt","GIF animado","messages","es"),e.add("view.more","Ver más resultados","messages","es"),e.add("no.results.found","¿No has encontrado lo que buscabas?","messages","es"),e.add("search.again","Puedes buscar de nuevo","messages","es"),e.add("look.archive","Mirar en nuestro archivo de temas","messages","es"),e.add("results","{0} Sin resultados|{1} %count% resultado|[2,Inf] %count% resultados","messages","es"),e.add("error.result","Sin resultados","messages","es"),e.add("comments.closed","Comentarios cerrados","messages","es"),e.add("disclaimer.default.heading","Publicidad Nativa","messages","es"),e.add("sort.by","Ordenar por","messages","es"),e.add("comment.verb","comentar","messages","es"),e.add("read.more.on","Leer más en","messages","es"),e.add("ask.question","Pregunta, pide ayuda o inicia una conversación","messages","es"),e.add("available.characters","Caracteres disponibles","messages","es"),e.add("new.user.report.foro","Por seguridad, tienes que esperar 24 horas para poder reportar en el foro.","messages","es"),e.add("who.are.we","¿Quienes somos?","messages","es"),e.add("terms.of.use","Condiciones de uso","messages","es"),e.add("legal.notice","Aviso legal","messages","es"),e.add("cookies.info","Política de cookies","messages","es"),e.add("go.to.home","Ir a la portada","messages","es"),e.add("do.no.miss","No te pierdas","messages","es"),e.add("highlights","Destacamos","messages","es"),e.add("view.previous.article","Ver artículo destacado anterior","messages","es"),e.add("see.next.article","Ver artículo destacado siguiente","messages","es"),e.add("the.last","Lo último","messages","es"),e.add("loultimo.link.title","Ver solo artículos con","messages","es"),e.add("view.photos","Ver fotos","messages","es"),e.add("news.archive","Archivo de noticias","messages","es"),e.add("in.our.clubs","En nuestros clubs","messages","es"),e.add("mobile.version","Versión para móviles","messages","es"),e.add("mobile.version1","Versión móvil","messages","es"),e.add("subscribe.by.rss","Suscríbete por RSS a las novedades en %siteName%","messages","es"),e.add("the.best","Lo mejor","messages","es"),e.add("the.best.of.month","Lo mejor del mes en %siteName%","messages","es"),e.add("go.to.the.category","Ir a la categoría %cat_name%","messages","es"),e.add("more1","Más","messages","es"),e.add("view.all.categories","Ver todas las categorías","messages","es"),e.add("all.about","Todo sobre %tagName%","messages","es"),e.add("follow.on.google.plus","Sigue a %siteName% en Google Plus","messages","es"),e.add("follow.news.on.twitter","Sigue las novedades de %siteName% en Twitter","messages","es"),e.add("follow.on.facebook","Conéctate a la página de %siteName% en Facebook","messages","es"),e.add("advertising.on.xataka","Publicidad en %siteName%","messages","es"),e.add("topics","Temas","messages","es"),e.add("more.on.site","en %siteName%","messages","es"),e.add("club.heading","Club %siteName%","messages","es"),e.add("earlier.club.post","Anteriormente en Club %siteName%","messages","es"),e.add("more.club.posts","Más en %siteName%","messages","es"),e.add("rss.news.title","RSS de noticias de esta etiqueta","messages","es"),e.add("go.to.the.category.questions","Ir a todas las preguntas de la categoría %cat_name%","messages","es"),e.add("more.characters.nextline","caracteres, podrás añadir más detalles en el siguiente paso","messages","es"),e.add("answered","respondida","messages","es"),e.add("jumplist.title","Mensajes Recientes","messages","es"),e.add("rear.view","Vista retro","messages","es"),e.add("standard.view","Vista estándar","messages","es"),e.add("article.heading","Artículos recomendados","messages","es"),e.add("contact.page.about.us","Sobre nosotros","messages","es"),e.add("contact.page.who.we.are","Quiénes somos","messages","es"),e.add("contact.page.post","Correos","messages","es"),e.add("contact.page.press.releases","Notas de prensa","messages","es"),e.add("contact.page.buisness.services","Servicios a empresas","messages","es"),e.add("contact.page.others","Otros","messages","es"),e.add("contact.page.phone","Teléfono","messages","es"),e.add("contact.page.address","Dirección","messages","es"),e.add("contact.page.form.title","Escríbenos desde aquí. Por favor, rellena todos los campos","messages","es"),e.add("contact.page.your.name","Tu nombre :","messages","es"),e.add("contact.page.your.email","Tu correo electrónico :","messages","es"),e.add("contact.page.message","Mensaje : ","messages","es"),e.add("contact.page.sent.from","Mensaje enviado desde","messages","es"),e.add("contact.page.name","Nombre","messages","es"),e.add("contact.page.thanks.message","Gracias por contactar con nosotros","messages","es"),e.add("contact.page.new.review.message","Tu mensaje será revisado por nuestro equipo","messages","es"),e.add("contact.page.new.greetings","Un saludo desde","messages","es"),e.add("contact.page.feedBack.title","Escríbenos desde aquí :","messages","es"),e.add("contact.page.form.title.new","Otro motivo :","messages","es"),e.add("contact.page.form.sub.title","Por favor, rellena todos los campos","messages","es"),e.add("contact.page.news.form.title","Enviar una noticia a los editores","messages","es"),e.add("contact.page.attach.file","Adjuntar archivo :","messages","es"),e.add("contact.page.request.form.title","Pedir información para anunciarme","messages","es"),e.add("contact.page.contact.editors","Contactar con los editores","messages","es"),e.add("contact.page.report.technical.problem","Avisar de un problema técnico","messages","es"),e.add("contact.page.send.request","Pedir información para anunciarme","messages","es"),e.add("post.page.brand.article.disclaimer","Este artículo y sus contenidos han sido contratados específicamente por la marca que se menciona.","messages","es"),e.add("post.page.brand.article.providedby","Contenido ofrecido por","messages","es"),e.add("post.page.duplicate.post.disclaimer","Publicado originalmente en %sourceBlog%","messages","es"),e.add("post.page.related.posts","También te pueden gustar estos artículos","messages","es"),e.add("post.page.slides.end","¡Has llegado al final!","messages","es"),e.add("post.page.comments","Ver %commentCount% comentarios","messages","es"),e.add("gallery.page.index.title","Foto de %gallery_name% (%selected%/%total%)","messages","es"),e.add("gallery.page.index.meta_desc","Galería de fotos de %post_title% Foto de %gallery_name%","messages","es"),e.add("gallery.page.related.title","Foto de %gallery_name% (fin)","messages","es"),e.add("gallery.page.related.meta_desc","Galería de fotos de %gallery_name%","messages","es"),e.add("gallery.page.thumbnail.alt","Foto %current% de %total% de la galería %gallery_slug% en %siteName%","messages","es"),e.add("post.related.articles","Articulos relacionados","messages","es"),e.add("club.recommendation.header","Partner","messages","es"),e.add("recommendation.header","También te recomendamos","messages","es"),e.add("go.to.blog","Ir a %familyBlogName%","messages","es"),e.add("buy.on","Comprar en","messages","es"),e.add("buy.for","Comprar por","messages","es"),e.add("the.news","La noticia","messages","es"),e.add("originally.published.in","fue publicada originalmente en","messages","es"),e.add("wrong.postid","Id del post erróneo: No se encontró el blog destino","messages","es"),e.add("wrong.blog","Seleccionado blog erróneo","messages","es"),e.add("already.reposted","El post ya ha sido reposteado","messages","es"),e.add("already.duplicated","El post ya se ha duplicado","messages","es"),e.add("post.repost.success","Post correctamente reposteado","messages","es"),e.add("post.duplicate.success","Post duplicado correctamente","messages","es"),e.add("open.new.topic","Abrir nuevo tema","messages","es"),e.add("hint.available.characters","Disponibles 80 caracteres, podrás añadir más detalles en el siguiente paso","messages","es"),e.add("find.answers.to.your.questions","Encuentra las respuestas a todas tus preguntas sobre","messages","es"),e.add("related.topics","Temas relacionados","messages","es"),e.add("feed.reposted.disclaimer","Publicado originalmente en %blogName%","messages","es"),e.add("feed.club.default.category","Contenido de nuestro espacio de marca","messages","es"),e.add("in.case.you.missed","Por si te lo perdiste","messages","es"),e.add("post.special","Un especial de","messages","es"),e.add("more.information.in.post","Más información en el post","messages","es"),e.add("special.provided.by","Un especial ofrecido por","messages","es"),e.add("form.invalid","Forma inválida","messages","es"),e.add("best.news.articles","Las mejores noticias y artículos","messages","es"),e.add("other.publications","Otras publicaciones","messages","es"),e.add("other.publications.webedia","Otras publicaciones de Webedia","messages","es"),e.add("privacy.preferences","Preferencias de Privacidad","messages","es"),e.add("comment.irrelevant","Comentario votado como irrelevante","frontend","es"),e.add("comment.disclaimer","Por seguridad, tendrás que esperar 24h para poder publicar comentarios en %blog%.","frontend","es"),e.add("available","Disponible","frontend","es"),e.add("email.not.correct","El correo electrónico introducido no es correcto","frontend","es"),e.add("email.to.short","El correo electrónico no puede contener menos de 3 caracteres","frontend","es"),e.add("email.domain.not.accepted","Lo sentimos. El dominio de su correo electrónico no esta admitido. Pruebe a registrar un correo no temporal","frontend","es"),e.add("username.incorrect","El nombre de usuario introducido no es correcto","frontend","es"),e.add("username.invalid","El username contiene caracteres no permitidos","frontend","es"),e.add("write.about","Escribe algo sobre","frontend","es"),e.add("comment.sufficient.negative","Este comentario ya tiene suficientes votos negativos","frontend","es"),e.add("profile.to.private","Hacer mi perfil privado","frontend","es"),e.add("profile.to.public","Hacer mi perfil público","frontend","es"),e.add("login.to.vote","Necesita estar identificado para votar","frontend","es"),e.add("not.available.old.code","No disponible","frontend","es"),e.add("not.sufficient.karma","No tienes suficiente karma para asignar votos negativos al comentario. Para hacerlo es necesario tener al menos 3 estrellas. Completa tu perfil y participa más en la comunidad. Verás como pronto subes de nivel","frontend","es"),e.add("accept.conditions","Para poder darte de alta tienes que aceptar las condiciones legales","frontend","es"),e.add("give.valid.email","Pon una dirección de correo electrónico válida, la necesitarás","frontend","es"),e.add("select.option","Por favor, seleccione cualquier opción","frontend","es"),e.add("error.raised","Se ha producido un error","frontend","es"),e.add("delete.comment","Se suprime el comentario \\n OK para borrar, Cancelar para detener el proceso","frontend","es"),e.add("delete.question","Se suprime la respuesta \\n OK para borrar, Cancelar para detener el proceso","frontend","es"),e.add("voted.response.irrelevant","Respuesta votada como irrelevante.","frontend","es"),e.add("already.voted.from.ip","Este comentario ya ha sido votado desde esta misma dirección IP","frontend","es"),e.add("max.negative.votes.reached","Has excedido el máximo de votos negativos permitido por día","frontend","es"),e.add("max.positive.votes.reached","Has excedido el máximo de votos positivos permitido por día","frontend","es"),e.add("not.sufficient.karma.question","No tienes suficiente karma para asignar votos negativos a la respuesta. Para hacerlo es necesario tener al menos 3 estrellas. Completa tu perfil y participa más en la comunidad. Verás como pronto subes de nivel","frontend","es"),e.add("login.to.vote.response",'Para votar una respuesta es necesario identificarse. Puedes hacerlo <strong><a class="standard-login" href="#">aquí</a></strong>',"frontend","es"),e.add("login.to.vote.comment",'Para votar un comentario es necesario identificarse. Puedes hacerlo <strong><a class="standard-login" href="#">aquí</a></strong>',"frontend","es"),e.add("close.conversation","Pulsa para cerrar la conversación","frontend","es"),e.add("click.to.read","Pulsa para leerla","frontend","es"),e.add("already.voted.question","Ya has votado esta respuesta","frontend","es"),e.add("already.votes.comment","Ya has votado este comentario","frontend","es"),e.add("already.voted","Ya has votado","frontend","es"),e.add("resend.activation.mail","Reenviar correo de activación","frontend","es"),e.add("available.to.you","Disponible, para tí","frontend","es"),e.add("not.available","No disponible, por favor elige otro","frontend","es"),e.add("goto.user.page","Ir a tu página de usuario","frontend","es"),e.add("avatar","Avatar de","frontend","es"),e.add("user","Usuario","frontend","es"),e.add("connected.with","con","frontend","es"),e.add("kiddo","chavalina","frontend","es"),e.add("register.associated","En este registro se van a asociar, y podrás identificarte como prefieras.","frontend","es"),e.add("leave","Salir","frontend","es"),e.add("connected","Has conectado","frontend","es"),e.add("sent.link.to.activate.account","Hemos enviado un enlace para activar tu cuenta a","frontend","es"),e.add("activate.email.address","Activa tu dirección de correo","frontend","es"),e.add("thanks.for.signup","Gracias por registrarte en","frontend","es"),e.add("sent.email.to","Te hemos enviado un correo a","frontend","es"),e.add("with.instructions.to.activate","con las instrucciones para activar tu cuenta.","frontend","es"),e.add("check.spam","Si no lo ves en tu buzón, comprueba tu carpeta de spam","frontend","es"),e.add("important.for.safety.message","Sabemos que es un poco latazo, pero para nosotros es importante tu seguridad y saber que eres realmente tú quien abrió la cuenta.","frontend","es"),e.add("thanks.for.patience","Gracias por tu paciencia.","frontend","es"),e.add("connect","Conecta","frontend","es"),e.add("email.not.valid.format","El correo electrónico no tiene el formato válido.","frontend","es"),e.add("email","Correo electrónico","frontend","es"),e.add("checking","Comprobando","frontend","es"),e.add("corresponds.to.email","Este correo electrónico corresponde a la cuenta","frontend","es"),e.add("password.length.message","La contraseña debe tener al menos 6 caracteres.","frontend","es"),e.add("passsword.donot.match","Las contraseñas no coinciden.","frontend","es"),e.add("repeat.password","Repite la contraseña","frontend","es"),e.add("already.a.username","Ya tienes nombre de usuario en","frontend","es"),e.add("username","Nombre de usuario","frontend","es"),e.add("think.again.message","Se usa para la dirección de tu página de usuario, piénsalo bien porque","frontend","es"),e.add("cannot.change","no podrás cambiarlo","frontend","es"),e.add("minimum.characters.message","Mínimo 3 caracteres, se pueden usar números (pero no como carácter inicial), pero no mayúsculas, espacios, tildes o caracteres especiales.","frontend","es"),e.add("accept.privacy.policy1","He leído y acepto la","frontend","es"),e.add("accept.privacy.policy2","politica de privacidad y de participación","frontend","es"),e.add("username.not.valid.format","El nombre de usuario no tiene el formato válido.","frontend","es"),e.add("accept.privacy.policy","Debes aceptar la política de privacidad y de participación.","frontend","es"),e.add("activate.link.message1","Para poder usar","frontend","es"),e.add("activate.link.message2","con tu cuenta de Twitter,","frontend","es"),e.add("activate.link.message3","actívala en el enlace que hemos enviado a tu correo","frontend","es"),e.add("already.have.account","¿Ya tienes cuenta?","frontend","es"),e.add("sign.in.here","identifícate aquí","frontend","es"),e.add("login.register","Entra o Regístrate","frontend","es"),e.add("login.with.account","O entra con tu cuenta de","frontend","es"),e.add("account.not.on","TU CUENTA NO ESTÁ ACTIVADA AÚN","frontend","es"),e.add("look.in.spam","Si no encuentras nuestro correo electrónico, por favor, mira en tu carpeta de spam, o podemos","frontend","es"),e.add("resend.activation.email","enviar de nuevo el correo de activación","frontend","es"),e.add("close","Cerrar","frontend","es"),e.add("username.already.chosen","El nombre de usuario ya ha sido elegido por otra persona. Si lo tienes tú,","frontend","es"),e.add("login.to.link.facebook","identifícate para asociar tu cuenta de Facebook","frontend","es"),e.add("identified.can.participate","Ya estás identificado con tu cuenta y puedes participar en","frontend","es"),e.add("already.submitted.comment","Ya ha enviado este comentario","frontend","es"),e.add("notify.via.email1","Notificarme por correo","frontend","es"),e.add("notify.via.email2","todos los comentarios","frontend","es"),e.add("notify.via.email2.response","todas las respuestas","frontend","es"),e.add("notify.via.email3","a este post","frontend","es"),e.add("this.question","a esta pregunta","frontend","es"),e.add("only.responses","sólo las respuestas","frontend","es"),e.add("to.my.comments","a mis comentarios","frontend","es"),e.add("dont.send.notifications1","No enviarme notificaciones","frontend","es"),e.add("dont.send.notifications2.comment","por correo de nuevos comentarios","frontend","es"),e.add("dont.send.notifications2.response","por correo de nuevas respuestas","frontend","es"),e.add("already.added.response.comment","Ya hemos agregado esta respuesta comentario","frontend","es"),e.add("answer","Responder","frontend","es"),e.add("cancel","Cancelar","frontend","es"),e.add("comment.further.message","¡No tan rápido vaquero! Acabas de registrarte, deja que nos conozcamos un poco más antes de escribir otro comentario. Si quieres comentar más necesitas crear una cuenta directa en el blog o esperar a mañana. Esta es una limitación temporal.","frontend","es"),e.add("leave.comment","Deja un comentario","frontend","es"),e.add("participation.rules","Reglas de participación","frontend","es"),e.add("sign.in","Regístrate en","frontend","es"),e.add("to.participate","para participar","frontend","es"),e.add("sign.up","Regístrate","frontend","es"),e.add("publish","Publicar","frontend","es"),e.add("responds.collaborates","Responde y colabora","frontend","es"),e.add("signin.with","Entra con","frontend","es"),e.add("signin.with.account","Entra con tu cuenta de","frontend","es"),e.add("email.password.incorrect","Tu correo electrónico o tu contraseña no son correctos.","frontend","es"),e.add("password","Contraseña","frontend","es"),e.add("enter","Entra","frontend","es"),e.add("enterforum","Regístrate","frontend","es"),e.add("forgot.password","¿Has olvidado tu contraseña?","frontend","es"),e.add("dont.have.account","Si no tienes cuenta, puedes","frontend","es"),e.add("register.here","registrarte aquí","frontend","es"),e.add("email.with.new.password","Introduce la dirección de correo que usaste para registrarte y te enviaremos un mensaje con la nueva contraseña.","frontend","es"),e.add("not.registered","No hay nadie registrado con este correo,","frontend","es"),e.add("tried.recover.password","Ya has intentado recuperar la contraseña en las últimas 24 horas, revisa tu correo.","frontend","es"),e.add("send","Enviar","frontend","es"),e.add("sent.retrieve.password.link","Hemos enviado un enlace para recuperar tu contraseña a","frontend","es"),e.add("accept","Aceptar","frontend","es"),e.add("sent.link.to.email","Hemos enviado un enlace a su correo electrónico.","frontend","es"),e.add("log.in","o conéctate con","frontend","es"),e.add("iwishihaveselection.login",'Para poder seleccionar este producto tienes que <a href="#" class="standard-login"><strong>identificarte o registrarte aqui</strong></a>',"frontend","es"),e.add("vote.login",'Para votar <a href="#" class="standard-login"><strong>identifícate o regístrate aquí</strong></a>',"frontend","es"),e.add("enter.wp.admin","Por favor ingrese en wp-admin","frontend","es"),e.add("all","Todos","frontend","es"),e.add("none","Nada","frontend","es"),e.add("comment.singular","%count% comentario","frontend","es"),e.add("comment.plural","%count% comentarios","frontend","es"),e.add("comment.count","{0} comentar|{1} %count% comentario|[2,Inf] %count% comentarios","frontend","es"),e.add("comment.abuse.title","Reportar (spam, insultos...)","frontend","es"),e.add("comment.abuse.message","Hemos recibido tu aviso de que este comentario es inapropiado. El equipo editorial lo revisará en breve para valorar su eliminación. Gracias por tu colaboración!","frontend","es"),e.add("comment.abused","Reportado","frontend","es"),e.add("comment.vote.positive","Vota positivo","frontend","es"),e.add("comment.vote.negative","Vota negativo","frontend","es"),e.add("comment.share.on.facebook","Compartir en Facebook","frontend","es"),e.add("comment.share.on.twitter","Compartir en X","frontend","es"),e.add("comment.share.by.email","Compartir por e-mail","frontend","es"),e.add("comment.reply","Responder a este comentario","frontend","es"),e.add("like","Me gusta","frontend","es"),e.add("enter.comment","introducir comentario","frontend","es"),e.add("we.have","Lo tienen","frontend","es"),e.add("i.want","Lo quieren","frontend","es"),e.add("comments","[0,1] comentario %count%|[2,Inf] comentarios %count%","frontend","es"),e.add("search","Buscar","frontend","es"),e.add("characters.limit","Por favor, respeta el límite de 80 caracteres para la pregunta. Podrás añadir más detalles en el siguiente paso.","frontend","es"),e.add("new.user.restriction","Por seguridad, tienes que esperar 24 horas para poder escribir en el foro.","frontend","es"),e.add("add.more.details","En el siguiente paso podrás añadir más detalles","frontend","es"),e.add("advertising","Publicidad","frontend","es"),e.add("help","Ayuda","frontend","es"),e.add("contact","Contacto","frontend","es"),e.add("replies","%siteName% Respuestas","frontend","es"),e.add("more","Más en","frontend","es"),e.add("read.more","Leer más","frontend","es"),e.add("see.more","Ver más","frontend","es"),e.add("photos","fotos","frontend","es"),e.add("most.recent","Más recientes","frontend","es"),e.add("front","Portada","frontend","es"),e.add("older","Más antiguas","frontend","es"),e.add("follow","Síguenos","frontend","es"),e.add("subscribe","Suscríbete","frontend","es"),e.add("send.your.question","Envía tu pregunta","frontend","es"),e.add("staff","Staff","frontend","es"),e.add("search.for","Buscando","frontend","es"),e.add("respuestas.copy.comment.link","Copiar enlace a este comentario","frontend","es"),e.add("categories","Categorías","frontend","es"),e.add("tags","Tags","frontend","es"),e.add("products","Productos","frontend","es"),e.add("post.page.duplicate.comment","Ya has publicado un comentario con el mismo texto exactamente.","frontend","es"),e.add("post.page.duplicate.reply","Ya has publicado un responder con el mismo texto exactamente.","frontend","es"),e.add("post.page.user.banned","La autorización para comentar de este usuario ha sido retirada definitivamente.","frontend","es"),e.add("post.page.user.frozen","La autorización para comentar de este usuario ha sido retirada temporalmente.","frontend","es"),e.add("post.page.comment.photo.hint","Puedes añadir una foto","frontend","es"),e.add("post.page.comment.new.user.vote.disclaimer","Por seguridad, tienes que esperar 24 horas para poder valorar un comentario.","frontend","es"),e.add("post.page.comment.new.user.report.disclaimer","Por seguridad, tienes que esperar 24 horas para poder reportar un comentario.","frontend","es"),e.add("post.page.comment.new.user.time.disclaimer","Por seguridad, tienes que esperar 24h para poder publicar comentarios en %blog%.","frontend","es"),e.add("post.page.comment.too.soon","Tu último comentario es muy reciente. Por favor, espera un poco para poder comentar de nuevo","frontend","es"),e.add("post.page.not_authorized","Has sido temporalmente bloqueado.","frontend","es"),e.add("save","Guardar","frontend","es"),e.add("tweet","Tweet","frontend","es"),e.add("video.gallery.more.info","Más información","frontend","es"),e.add("video.gallery.in.blog","En %blog%","frontend","es"),e.add("mobiles","Móviles","frontend","es"),e.add("posts","mensajes","frontend","es"),e.add("are","Quedan","frontend","es"),e.add("characters","caracteres","frontend","es"),e.add("post","mensaje","frontend","es"),e.add("max.size","Tamaño máximo","frontend","es"),e.add("view.profile","Ver tu perfil y artículos guardados","frontend","es"),e.add("edit.your.profile","Editar tu perfil","frontend","es"),e.add("responding.to","Respondiendo a","frontend","es"),e.add("moderate.comment","Comentario moderado","frontend","es"),e.add("edit","Editar","frontend","es"),e.add("email.does.not.exists","Este correo electrónico no corresponde a ninguna cuenta registrada en %siteName%","frontend","es"),e.add("email.sent","Comprueba tu correo y haz click en el enlace que te hemos enviado para elegir tu nueva contraseña. Si no encuentras nuestro mensaje, comprueba también en <em>spam</em>, por favor.","frontend","es"),e.add("email.already.sent","Ya has intentado recuperar la contraseña en las últimas 24 horas, revisa tu correo y también la carpeta de <em>spam</em>.","frontend","es"),e.add("email.help.msg","Te enviaremos un correo electrónico con un enlace para recuperar tu contraseña","frontend","es"),e.add("recover.password","Recuperar contraseña","frontend","es"),e.add("password.reset.success","Tu nueva contraseña se ha guardado correctamente. Si quieres volver a cambiarla, puedes hacerlo en la opción Configuración del menú.","frontend","es"),e.add("atleast.6.characters","Al menos 6 caracteres","frontend","es"),e.add("new.password","Nueva contraseña","frontend","es"),e.add("repeat.new.password","Repite la nueva contraseña","frontend","es"),e.add("save.password","Guardar contraseña","frontend","es"),e.add("invalid.password","Contraseña invalida","frontend","es"),e.add("new.password.for","Escribe tu nueva contraseña para","frontend","es"),e.add("token.invalid","Inválida contador","frontend","es"),e.add("configuration.text","Configuración","frontend","es"),e.add("change.password","Cambiar Contraseña","frontend","es"),e.add("change.password.hint","Te enviaremos un enlace por email para cambiarla","frontend","es"),e.add("your.email.text","Tu correo electrónico:","frontend","es"),e.add("email.related.hint","No se verá públicamente. Si lo cambias, te enviaremos un enlace por email para confirmarlo","frontend","es"),e.add("your.name.text","Tu nombre:","frontend","es"),e.add("name.related.hint","Se verá en tus comentarios","frontend","es"),e.add("avatar.text","Cambiar Avatar","frontend","es"),e.add("avatar.related.hint","Puedes usar JPG, GIF o PNG. Máximo 3MB","frontend","es"),e.add("description.text","Tu descripción personal:","frontend","es"),e.add("newsletter.text","Recibir la newsletter de","frontend","es"),e.add("newsletter.hint","Un email al dia con nuestros artículos","frontend","es"),e.add("newsletter.text.weekly","Recibir nuestra newsletter","frontend","es"),e.add("newsletter.hint.weekly","Con contenido único cada semana - Suscribiéndote aceptas nuestra","frontend","es"),e.add("user.update.success.message","Tu perfil ha sido actualizado","frontend","es"),e.add("user.email.send.message","Te hemos enviado un enlace por email para confirmar tu nueva dirección de correo","frontend","es"),e.add("failed.updating.user","Error al actualizar los datos del usuario","frontend","es"),e.add("user.image.size.error.message","error de tamaño de imagen","frontend","es"),e.add("user.image.extension.error.message","error de tipo de imagen","frontend","es"),e.add("discard.changes.button","Descartar cambios","frontend","es"),e.add("save.changes.button","Guardar Cambios","frontend","es"),e.add("add.upto.max.gifs","Añade hasta %maxCount% GIFs","frontend","es"),e.add("button.remove","Quitar","frontend","es"),e.add("user.email.error.message","email inválido","frontend","es"),e.add("user.email.used.message","correo electrónico ya en uso","frontend","es"),e.add("results.not.found","No se encontraron resultados para esa búsqueda","frontend","es"),e.add("change.password.email.sent","Te hemos enviado un email con un enlace para poder cambiar tu contrasena.","frontend","es"),e.add("change.password.email.already.sent","Ya ha intentado crear una nueva contraseña en las últimas 24 horas, verifique su correo electrónico y también la carpeta de correo no deseado.","frontend","es"),e.add("user.no.comment","No has comentado ningún post todavía","frontend","es"),e.add("user.comments","[0,1] %count% COMENTARIO|[2,Inf] %count% COMENTARIOS","frontend","es"),e.add("see.in.post","Ver en elpost","frontend","es"),e.add("user.deactivated.error.message","Esta dirección de correo ya estuvo registrada y fue dada de baja.<br>Por favor, usa una dirección de correo diferente para registrarte de nuevo.","frontend","es"),e.add("gif.search","Buscar GIFs...","frontend","es"),e.add("sticker.search","Buscar Sticker's...","frontend","es"),e.add("add.gif","Añadir GIF","frontend","es"),e.add("add.sticker","Añadir Sticker","frontend","es")},5e3:(e,t,n)=>{var i,r,o;function s(e){return 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},s(e)}!function(a){"use strict";r=[n(5932)],i=function(e){e.ui=e.ui||{},e.ui.version="1.13.2";var t,n,i,r,o,a,l,c,u,d,h,f=0,p=Array.prototype.hasOwnProperty,m=Array.prototype.slice;function g(e,t,n){return[parseFloat(e[0])*(u.test(e[0])?t/100:1),parseFloat(e[1])*(u.test(e[1])?n/100:1)]}function v(t,n){return parseInt(e.css(t,n),10)||0}function y(e){return null!=e&&e===e.window}e.cleanData=(t=e.cleanData,function(n){for(var i,r,o=0;null!=(r=n[o]);o++)(i=e._data(r,"events"))&&i.remove&&e(r).triggerHandler("remove");t(n)}),e.widget=function(t,n,i){var r,o,s,a={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),Array.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},r=e[l][t],o=e[l][t]=function(e,t){if(!this||!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,r,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(i,(function(e,t){function i(){return n.prototype[e].apply(this,arguments)}function r(t){return n.prototype[e].apply(this,t)}a[e]="function"==typeof t?function(){var e,n=this._super,o=this._superApply;return this._super=i,this._superApply=r,e=t.apply(this,arguments),this._super=n,this._superApply=o,e}:t})),o.prototype=e.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:c}),r?(e.each(r._childConstructors,(function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,o,n._proto)})),delete r._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,i,r=m.call(arguments,1),o=0,s=r.length;o<s;o++)for(n in r[o])i=r[o][n],p.call(r[o],n)&&void 0!==i&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(r){var o="string"==typeof r,s=m.call(arguments,1),a=this;return o?this.length||"instance"!==r?this.each((function(){var n,o=e.data(this,i);return"instance"===r?(a=o,!1):o?"function"!=typeof o[r]||"_"===r.charAt(0)?e.error("no such method '"+r+"' for "+t+" widget instance"):(n=o[r].apply(o,s))!==o&&void 0!==n?(a=n&&n.jquery?a.pushStack(n.get()):n,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")})):a=void 0:(s.length&&(r=e.widget.extend.apply(null,[r].concat(s))),this.each((function(){var t=e.data(this,i);t?(t.option(r||{}),t._init&&t._init()):e.data(this,i,new n(r,this))}))),a}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=f++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,r,o,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(r=s[t]=e.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(t=i.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=n}return this._setOptions(s),this},_setOptions:function(e){for(var t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,r;for(n in t)r=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&r&&r.length&&(i=e(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function r(r,o){for(var s,a=0;a<r.length;a++)s=i.classesElementLookup[r[a]]||e(),s=t.add?(function(){var n=[];t.element.each((function(t,r){e.map(i.classesElementLookup,(function(e){return e})).some((function(e){return e.is(r)}))||n.push(r)})),i._on(e(n),{remove:"_untrackClassesElement"})}(),e(e.uniqueSort(s.get().concat(t.element.get())))):e(s.not(t.element).get()),i.classesElementLookup[r[a]]=s,n.push(r[a]),o&&t.classes[r[a]]&&n.push(t.classes[r[a]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&r(t.keys.match(/\S+/g)||[],!0),t.extra&&r(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(i,r){-1!==e.inArray(t.target,r)&&(n.classesElementLookup[i]=e(r.not(t.target).get()))})),this._off(e(t.target))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){var r="string"==typeof e||null===e;return(n={extra:r?t:n,keys:r?e:t,element:r?this.element:e,add:i="boolean"==typeof i?i:n}).element.toggleClass(this._classes(n),i),this},_on:function(t,n,i){var r,o=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=r=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),e.each(i,(function(i,s){function a(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof s?o[s]:s).apply(o,arguments)}var l;"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||e.guid++),i=(l=i.match(/^([\w:-]*)\s*(.*)$/))[1]+o.eventNamespace,(l=l[2])?r.on(i,l,a):n.on(i,a)}))},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var r,o,s=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!("function"==typeof s&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(i,r,o){var s,a=(r="string"==typeof r?{effect:r}:r)?!0!==r&&"number"!=typeof r&&r.effect||n:t;"number"==typeof(r=r||{})?r={duration:r}:!0===r&&(r={}),s=!e.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),s&&e.effects&&e.effects.effect[a]?i[t](r):a!==t&&i[a]?i[a](r.duration,r.easing,o):i.queue((function(n){e(this)[t](),o&&o.call(i[0]),n()}))}})),e.widget,i=Math.max,r=Math.abs,o=/left|center|right/,a=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=e.fn.position,e.position={scrollbarWidth:function(){if(void 0!==n)return n;var t,i=e("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),r=i.children()[0];return e("body").append(i),t=r.offsetWidth,i.css("overflow","scroll"),t===(r=r.offsetWidth)&&(r=i[0].clientWidth),i.remove(),n=t-r},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y");return n="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth,{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:n?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),i=y(n[0]),r=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:r,offset:i||r?{left:0,top:0}:e(t).offset(),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return d.apply(this,arguments);var n,s,u,h,f,p,m="string"==typeof(t=e.extend({},t)).of?e(document).find(t.of):e(t.of),b=e.position.getWithinInfo(t.within),w=e.position.getScrollInfo(b),_=(t.collision||"flip").split(" "),k={},S=9===(p=(S=m)[0]).nodeType?{width:S.width(),height:S.height(),offset:{top:0,left:0}}:y(p)?{width:S.width(),height:S.height(),offset:{top:S.scrollTop(),left:S.scrollLeft()}}:p.preventDefault?{width:0,height:0,offset:{top:p.pageY,left:p.pageX}}:{width:S.outerWidth(),height:S.outerHeight(),offset:S.offset()};return m[0].preventDefault&&(t.at="left top"),s=S.width,u=S.height,f=e.extend({},h=S.offset),e.each(["my","at"],(function(){var e,n,i=(t[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",e=l.exec(i[0]),n=l.exec(i[1]),k[this]=[e?e[0]:0,n?n[0]:0],t[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]})),1===_.length&&(_[1]=_[0]),"right"===t.at[0]?f.left+=s:"center"===t.at[0]&&(f.left+=s/2),"bottom"===t.at[1]?f.top+=u:"center"===t.at[1]&&(f.top+=u/2),n=g(k.at,s,u),f.left+=n[0],f.top+=n[1],this.each((function(){var o,a,l=e(this),c=l.outerWidth(),d=l.outerHeight(),p=v(this,"marginLeft"),y=v(this,"marginTop"),S=c+p+v(this,"marginRight")+w.width,T=d+y+v(this,"marginBottom")+w.height,x=e.extend({},f),C=g(k.my,l.outerWidth(),l.outerHeight());"right"===t.my[0]?x.left-=c:"center"===t.my[0]&&(x.left-=c/2),"bottom"===t.my[1]?x.top-=d:"center"===t.my[1]&&(x.top-=d/2),x.left+=C[0],x.top+=C[1],o={marginLeft:p,marginTop:y},e.each(["left","top"],(function(i,r){e.ui.position[_[i]]&&e.ui.position[_[i]][r](x,{targetWidth:s,targetHeight:u,elemWidth:c,elemHeight:d,collisionPosition:o,collisionWidth:S,collisionHeight:T,offset:[n[0]+C[0],n[1]+C[1]],my:t.my,at:t.at,within:b,elem:l})})),t.using&&(a=function(e){var n=h.left-x.left,o=n+s-c,a=h.top-x.top,f=a+u-d,p={target:{element:m,left:h.left,top:h.top,width:s,height:u},element:{element:l,left:x.left,top:x.top,width:c,height:d},horizontal:o<0?"left":0<n?"right":"center",vertical:f<0?"top":0<a?"bottom":"middle"};s<c&&r(n+o)<s&&(p.horizontal="center"),u<d&&r(a+f)<u&&(p.vertical="middle"),i(r(n),r(o))>i(r(a),r(f))?p.important="horizontal":p.important="vertical",t.using.call(this,e,p)}),l.offset(e.extend(x,{using:a}))}))},e.ui.position={fit:{left:function(e,t){var n=t.within,r=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,s=e.left-t.collisionPosition.marginLeft,a=r-s,l=s+t.collisionWidth-o-r;t.collisionWidth>o?0<a&&l<=0?(n=e.left+a+t.collisionWidth-o-r,e.left+=a-n):e.left=!(0<l&&a<=0)&&l<a?r+o-t.collisionWidth:r:0<a?e.left+=a:0<l?e.left-=l:e.left=i(e.left-s,e.left)},top:function(e,t){var n=t.within,r=n.isWindow?n.scrollTop:n.offset.top,o=t.within.height,s=e.top-t.collisionPosition.marginTop,a=r-s,l=s+t.collisionHeight-o-r;t.collisionHeight>o?0<a&&l<=0?(n=e.top+a+t.collisionHeight-o-r,e.top+=a-n):e.top=!(0<l&&a<=0)&&l<a?r+o-t.collisionHeight:r:0<a?e.top+=a:0<l?e.top-=l:e.top=i(e.top-s,e.top)}},flip:{left:function(e,t){var n=(c=t.within).offset.left+c.scrollLeft,i=c.width,o=c.isWindow?c.scrollLeft:c.offset.left,s=(u=e.left-t.collisionPosition.marginLeft)-o,a=u+t.collisionWidth-i-o,l="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,c="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,u=-2*t.offset[0];s<0?((n=e.left+l+c+u+t.collisionWidth-i-n)<0||n<r(s))&&(e.left+=l+c+u):0<a&&(0<(o=e.left-t.collisionPosition.marginLeft+l+c+u-o)||r(o)<a)&&(e.left+=l+c+u)},top:function(e,t){var n=(c=t.within).offset.top+c.scrollTop,i=c.height,o=c.isWindow?c.scrollTop:c.offset.top,s=(u=e.top-t.collisionPosition.marginTop)-o,a=u+t.collisionHeight-i-o,l="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,c="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,u=-2*t.offset[1];s<0?((n=e.top+l+c+u+t.collisionHeight-i-n)<0||n<r(s))&&(e.top+=l+c+u):0<a&&(0<(o=e.top-t.collisionPosition.marginTop+l+c+u-o)||r(o)<a)&&(e.top+=l+c+u)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},e.ui.position,e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(n){return!!e.data(n,t)}})):function(t,n,i){return!!e.data(t,i[3])}}),e.fn.extend({disableSelection:(h="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(h+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}}),e.ui.focusable=function(t,n){var i,r,o,s,a=t.nodeName.toLowerCase();return"area"===a?(r=(i=t.parentNode).name,!(!t.href||!r||"map"!==i.nodeName.toLowerCase())&&0<(r=e("img[usemap='#"+r+"']")).length&&r.is(":visible")):(/^(input|select|textarea|button|object)$/.test(a)?(o=!t.disabled)&&(s=e(t).closest("fieldset")[0])&&(o=!s.disabled):o="a"===a&&t.href||n,o&&e(t).is(":visible")&&function(e){for(var t=e.css("visibility");"inherit"===t;)t=(e=e.parent()).css("visibility");return"visible"===t}(e(t)))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable,e.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):e(this[0].form)},e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout((function(){var n=t.data("ui-form-reset-instances");e.each(n,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){var e;this.form=this.element._form(),this.form.length&&((e=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.fn.labels=function(){var t,n,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+e.escapeSelector(t)+"']",n=n.add(i.find(t).addBack(t))),this.pushStack(n)):this.pushStack([])},e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,r=t?/(auto|scroll|hidden)/:/(auto|scroll)/;return t=this.parents().filter((function(){var t=e(this);return(!i||"static"!==t.css("position"))&&r.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0),"fixed"!==n&&t.length?t:e(this[0].ownerDocument||document)},e.extend(e.expr.pseudos,{tabbable:function(t){var n=e.attr(t,"tabindex"),i=null!=n;return(!i||0<=n)&&e.ui.focusable(t,i)}}),e.fn.extend({uniqueId:(b=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++b)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}}),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var b,w=!1;e(document).on("mouseup",(function(){w=!1})),e.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!w){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,r=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(i&&!r&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),w=!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,w=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,n,i){var r,o=e.ui[t].prototype;for(r in i)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([n,i[r]])},call:function(e,t,n,i){var r,o=e.plugins[t];if(o&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)e.options[o[r][0]]&&o[r][1].apply(e.element,n)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return(t=t||e.body).nodeName?t:e.body},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")},e.widget("ui.draggable",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||0<e(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle||(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),0)))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map((function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){if(n=this._uiHash(),!1===this._trigger("drag",t,n))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==n._trigger("stop",t)&&n._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i="function"==typeof n.helper;return(t=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element).parents("body").length||t.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),"left"in(e=Array.isArray(e)?{left:+e[0],top:+e[1]||0}:e)&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,r=this.options,o=this.document[0];this.relativeContainer=null,r.containment?"window"!==r.containment?"document"!==r.containment?r.containment.constructor!==Array?("parent"===r.containment&&(r.containment=this.helper[0].parentNode),(i=(n=e(r.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=r.containment:this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t=t||this.position;var n="absolute"===e?1:-1;return e=this._isRootNode(this.scrollParent[0]),{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:e?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:e?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i=this.options,r=this._isRootNode(this.scrollParent[0]),o=e.pageX,s=e.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(n=this.relativeContainer?(n=this.relativeContainer.offset(),[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):this.containment,e.pageX-this.offset.click.left<n[0]&&(o=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(s=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(o=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(s=n[3]+this.offset.click.top)),i.grid&&(e=i.grid[1]?this.originalPageY+Math.round((s-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY,s=!n||e-this.offset.click.top>=n[1]||e-this.offset.click.top>n[3]?e:e-this.offset.click.top>=n[1]?e-i.grid[1]:e+i.grid[1],e=i.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX,o=!n||e-this.offset.click.left>=n[0]||e-this.offset.click.left>n[2]?e:e-this.offset.click.left>=n[0]?e-i.grid[0]:e+i.grid[0]),"y"===i.axis&&(o=this.originalPageX),"x"===i.axis&&(s=this.originalPageY)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var r=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each((function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,r))}))},stop:function(t,n,i){var r=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,(function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,r))}))},drag:function(t,n,i){e.each(i.sortables,(function(){var r=!1,o=this;o.positionAbs=i.positionAbs,o.helperProportions=i.helperProportions,o.offset.click=i.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,e.each(i.sortables,(function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,r=(this===o||!this._intersectsWith(this.containerCache)||!e.contains(o.element[0],this.element[0]))&&r}))),r?(o.isOver||(o.isOver=1,i._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=i.offset.click.top,o.offset.click.left=i.offset.click.left,o.offset.parent.left-=i.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=i.offset.parent.top-o.offset.parent.top,i._trigger("toSortable",t),i.dropped=o.element,e.each(i.sortables,(function(){this.refreshPositions()})),i.currentItem=i.element,o.fromOutside=i),o.currentItem&&(o._mouseDrag(t),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var r=e("body");i=i.options,r.css("cursor")&&(i._cursor=r.css("cursor")),r.css("cursor",i.cursor)},stop:function(t,n,i){(i=i.options)._cursor&&e("body").css("cursor",i._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){n=e(n.helper),i=i.options,n.css("opacity")&&(i._opacity=n.css("opacity")),n.css("opacity",i.opacity)},stop:function(t,n,i){(i=i.options)._opacity&&e(n.helper).css("opacity",i._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var r=i.options,o=!1,s=i.scrollParentNotHidden[0],a=i.document[0];s!==a&&"HTML"!==s.tagName?(r.axis&&"x"===r.axis||(i.overflowOffset.top+s.offsetHeight-t.pageY<r.scrollSensitivity?s.scrollTop=o=s.scrollTop+r.scrollSpeed:t.pageY-i.overflowOffset.top<r.scrollSensitivity&&(s.scrollTop=o=s.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(i.overflowOffset.left+s.offsetWidth-t.pageX<r.scrollSensitivity?s.scrollLeft=o=s.scrollLeft+r.scrollSpeed:t.pageX-i.overflowOffset.left<r.scrollSensitivity&&(s.scrollLeft=o=s.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(t.pageY-e(a).scrollTop()<r.scrollSensitivity?o=e(a).scrollTop(e(a).scrollTop()-r.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<r.scrollSensitivity&&(o=e(a).scrollTop(e(a).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(t.pageX-e(a).scrollLeft()<r.scrollSensitivity?o=e(a).scrollLeft(e(a).scrollLeft()-r.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<r.scrollSensitivity&&(o=e(a).scrollLeft(e(a).scrollLeft()+r.scrollSpeed)))),!1!==o&&e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var r=i.options;i.snapElements=[],e(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each((function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})}))},drag:function(t,n,i){for(var r,o,s,a,l,c,u,d,h,f=i.options,p=f.snapTolerance,m=n.offset.left,g=m+i.helperProportions.width,v=n.offset.top,y=v+i.helperProportions.height,b=i.snapElements.length-1;0<=b;b--)c=(l=i.snapElements[b].left-i.margins.left)+i.snapElements[b].width,d=(u=i.snapElements[b].top-i.margins.top)+i.snapElements[b].height,g<l-p||c+p<m||y<u-p||d+p<v||!e.contains(i.snapElements[b].item.ownerDocument,i.snapElements[b].item)?(i.snapElements[b].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[b].item})),i.snapElements[b].snapping=!1):("inner"!==f.snapMode&&(r=Math.abs(u-y)<=p,o=Math.abs(d-v)<=p,s=Math.abs(l-g)<=p,a=Math.abs(c-m)<=p,r&&(n.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c}).left)),h=r||o||s||a,"outer"!==f.snapMode&&(r=Math.abs(u-v)<=p,o=Math.abs(d-y)<=p,s=Math.abs(l-m)<=p,a=Math.abs(c-g)<=p,r&&(n.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c-i.helperProportions.width}).left)),!i.snapElements[b].snapping&&(r||o||s||a||h)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[b].item})),i.snapElements[b].snapping=r||o||s||a||h)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var r;i=i.options,i=e.makeArray(e(i.stack)).sort((function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)})),i.length&&(r=parseInt(e(i[0]).css("zIndex"),10)||0,e(i).each((function(t){e(this).css("zIndex",r+t)})),this.css("zIndex",r+i.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){n=e(n.helper),i=i.options,n.css("zIndex")&&(i._zIndex=n.css("zIndex")),n.css("zIndex",i.zIndex)},stop:function(t,n,i){(i=i.options)._zIndex&&e(n.helper).css("zIndex",i._zIndex)}}),e.ui.draggable,e.widget("ui.resizable",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,n){if("hidden"===e(t).css("overflow"))return!1;var i=n&&"left"===n?"scrollLeft":"scrollTop";if(n=!1,0<t[i])return!0;try{t[i]=1,n=0<t[i],t[i]=0}catch(t){}return n},_create:function(){var t,n=this.options,i=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),n.autoHide&&e(this.element).on("mouseenter",(function(){n.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())})).on("mouseleave",(function(){n.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())})),this._mouseInit()},_destroy:function(){function t(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var n;return this._mouseDestroy(),this._addedHandles.remove(),this.elementIsWrapper&&(t(this.element),n=this.element,this.originalElement.css({position:n.css("position"),width:n.outerWidth(),height:n.outerHeight(),top:n.css("top"),left:n.css("left")}).insertAfter(n),n.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var t,n,i,r,o,s=this.options,a=this;if(this.handles=s.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this._addedHandles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},n=0;n<i.length;n++)r="ui-resizable-"+(t=String.prototype.trim.call(i[n])),o=e("<div>"),this._addClass(o,"ui-resizable-handle "+r),o.css({zIndex:s.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(t){var n,i,r;for(n in t=t||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=e(this.handles[n]),this._on(this.handles[n],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=e(this.handles[n],this.element),r=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),i=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(i,r),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")})),s.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var n,i,r=!1;for(n in this.handles)(i=e(this.handles[n])[0])!==t.target&&!e.contains(i,t.target)||(r=!0);return!this.options.disabled&&r},_mouseStart:function(t){var n,i,r=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),r.containment&&(n+=e(r.containment).scrollLeft()||0,i+=e(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n=this.originalMousePosition,i=this.axis,r=t.pageX-n.left||0;return n=t.pageY-n.top||0,i=this._change[i],this._updatePrevProperties(),i&&(n=i.apply(this,[t,r,n]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var n,i,r,o=this.options,s=this;return this._helper&&(r=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:s.sizeDiff.height,i=n?0:s.sizeDiff.width,n={width:s.helper.width()-i,height:s.helper.height()-r},i=parseFloat(s.element.css("left"))+(s.position.left-s.originalPosition.left)||null,r=parseFloat(s.element.css("top"))+(s.position.top-s.originalPosition.top)||null,o.animate||this.element.css(e.extend(n,{top:r,left:i})),s.helper.height(s.size.height),s.helper.width(s.size.width),this._helper&&!o.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,n,i=this.options,r={minWidth:this._isNumber(i.minWidth)?i.minWidth:0,maxWidth:this._isNumber(i.maxWidth)?i.maxWidth:1/0,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:1/0};(this._aspectRatio||e)&&(t=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,e=r.maxWidth/this.aspectRatio,t>r.minWidth&&(r.minWidth=t),n>r.minHeight&&(r.minHeight=n),i<r.maxWidth&&(r.maxWidth=i),e<r.maxHeight&&(r.maxHeight=e)),this._vBoundaries=r},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,n=this.size,i=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===i&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"===i&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,i=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,r=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,s=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(n);return n=/nw|ne|n/.test(n),o&&(e.width=t.minWidth),s&&(e.height=t.minHeight),i&&(e.width=t.maxWidth),r&&(e.height=t.maxHeight),o&&c&&(e.left=a-t.minWidth),i&&c&&(e.left=a-t.maxWidth),s&&n&&(e.top=l-t.minHeight),r&&n&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],i=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],r=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)n[t]=parseFloat(i[t])||0,n[t]+=parseFloat(r[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,n=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize;return{left:this.originalPosition.left+t,width:n.width-t}},n:function(e,t,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},sw:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,i]))},ne:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},nw:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,i]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),"resize"!==t&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).resizable("instance"),i=n.options,r=n._proportionallyResizeElements,o=(a=r.length&&/textarea/i.test(r[0].nodeName))&&n._hasScroll(r[0],"left")?0:n.sizeDiff.height,s=a?0:n.sizeDiff.width,a={width:n.size.width-s,height:n.size.height-o};s=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,o=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null,n.element.animate(e.extend(a,o&&s?{top:o,left:s}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};r&&r.length&&e(r[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,n,i=e(this).resizable("instance"),r=i.options,o=i.element,s=r.containment,a=s instanceof e?s.get(0):/parent/.test(s)?o.parent().get(0):s;a&&(i.containerElement=e(a),/document/.test(s)||s===document?(i.containerOffset={left:0,top:0},i.containerPosition={left:0,top:0},i.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(a),n=[],e(["Top","Right","Left","Bottom"]).each((function(e,r){n[e]=i._num(t.css("padding"+r))})),i.containerOffset=t.offset(),i.containerPosition=t.position(),i.containerSize={height:t.innerHeight()-n[3],width:t.innerWidth()-n[1]},r=i.containerOffset,o=i.containerSize.height,s=i.containerSize.width,s=i._hasScroll(a,"left")?a.scrollWidth:s,o=i._hasScroll(a)?a.scrollHeight:o,i.parentData={element:a,left:r.left,top:r.top,width:s,height:o}))},resize:function(t){var n=e(this).resizable("instance"),i=n.options,r=n.containerOffset,o=n.position,s=n._aspectRatio||t.shiftKey,a={top:0,left:0},l=n.containerElement;t=!0,l[0]!==document&&/static/.test(l.css("position"))&&(a=r),o.left<(n._helper?r.left:0)&&(n.size.width=n.size.width+(n._helper?n.position.left-r.left:n.position.left-a.left),s&&(n.size.height=n.size.width/n.aspectRatio,t=!1),n.position.left=i.helper?r.left:0),o.top<(n._helper?r.top:0)&&(n.size.height=n.size.height+(n._helper?n.position.top-r.top:n.position.top),s&&(n.size.width=n.size.height*n.aspectRatio,t=!1),n.position.top=n._helper?r.top:0),i=n.containerElement.get(0)===n.element.parent().get(0),o=/relative|absolute/.test(n.containerElement.css("position")),i&&o?(n.offset.left=n.parentData.left+n.position.left,n.offset.top=n.parentData.top+n.position.top):(n.offset.left=n.element.offset().left,n.offset.top=n.element.offset().top),o=Math.abs(n.sizeDiff.width+(n._helper?n.offset.left-a.left:n.offset.left-r.left)),r=Math.abs(n.sizeDiff.height+(n._helper?n.offset.top-a.top:n.offset.top-r.top)),o+n.size.width>=n.parentData.width&&(n.size.width=n.parentData.width-o,s&&(n.size.height=n.size.width/n.aspectRatio,t=!1)),r+n.size.height>=n.parentData.height&&(n.size.height=n.parentData.height-r,s&&(n.size.width=n.size.height*n.aspectRatio,t=!1)),t||(n.position.left=n.prevPosition.left,n.position.top=n.prevPosition.top,n.size.width=n.prevSize.width,n.size.height=n.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),n=t.options,i=t.containerOffset,r=t.containerPosition,o=t.containerElement,s=(l=e(t.helper)).offset(),a=l.outerWidth()-t.sizeDiff.width,l=l.outerHeight()-t.sizeDiff.height;t._helper&&!n.animate&&/relative/.test(o.css("position"))&&e(this).css({left:s.left-r.left-i.left,width:a,height:l}),t._helper&&!n.animate&&/static/.test(o.css("position"))&&e(this).css({left:s.left-r.left-i.left,width:a,height:l})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each((function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})}))},resize:function(t,n){var i=e(this).resizable("instance"),r=i.options,o=i.originalSize,s=i.originalPosition,a={height:i.size.height-o.height||0,width:i.size.width-o.width||0,top:i.position.top-s.top||0,left:i.position.left-s.left||0};e(r.alsoResize).each((function(){var t=e(this),i=e(this).data("ui-resizable-alsoresize"),r={},o=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,(function(e,t){var n=(i[t]||0)+(a[t]||0);n&&0<=n&&(r[t]=n||null)})),t.css(r)}))},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,n=e(this).resizable("instance"),i=n.options,r=n.size,o=n.originalSize,s=n.originalPosition,a=n.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,c=l[0]||1,u=l[1]||1,d=Math.round((r.width-o.width)/c)*c,h=Math.round((r.height-o.height)/u)*u,f=o.width+d,p=o.height+h,m=i.maxWidth&&i.maxWidth<f,g=i.maxHeight&&i.maxHeight<p,v=i.minWidth&&i.minWidth>f;r=i.minHeight&&i.minHeight>p,i.grid=l,v&&(f+=c),r&&(p+=u),m&&(f-=c),g&&(p-=u),/^(se|s|e)$/.test(a)?(n.size.width=f,n.size.height=p):/^(ne)$/.test(a)?(n.size.width=f,n.size.height=p,n.position.top=s.top-h):/^(sw)$/.test(a)?(n.size.width=f,n.size.height=p,n.position.left=s.left-d):((p-u<=0||f-c<=0)&&(t=n._getPaddingPlusBorderDimensions(this)),0<p-u?(n.size.height=p,n.position.top=s.top-h):(p=u-t.height,n.size.height=p,n.position.top=s.top+o.height-p),0<f-c?(n.size.width=f,n.position.left=s.left-d):(f=c-t.width,n.size.width=f,n.position.left=s.left+o.width-f))}}),e.ui.resizable;var _,k,S=/ui-corner-([a-z]){2,6}/g;function T(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=x(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function x(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,(function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",n,C)}function C(){e.datepicker._isDisabledDatepicker((k.inline?k.dpDiv.parent():k.input)[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function j(t,n){for(var i in e.extend(t,n),n)null==n[i]&&(t[i]=n[i]);return t}function O(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,n=[];e.each(this.options.items,(function(i,r){var o,s={};if(r)return"controlgroupLabel"===i?((o=t.element.find(r)).each((function(){var t=e(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),t._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(n=n.concat(o.get()))):void(e.fn[i]&&(s=t["_"+i+"Options"]?t["_"+i+"Options"]("middle"):{classes:{}},t.element.find(r).each((function(){var r=e(this),o=r[i]("instance"),a=e.widget.extend({},s);"button"===i&&r.parent(".ui-spinner").length||((o=o||r[i]()[i]("instance"))&&(a.classes=t._resolveClassesValues(a.classes,o)),r[i](a),a=r[i]("widget"),e.data(a[0],"ui-controlgroup-data",o||r[i]("instance")),n.push(a[0]))}))))})),this.childWidgets=e(e.uniqueSort(n)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each((function(){var n=e(this).data("ui-controlgroup-data");n&&n[t]&&n[t]()}))},_updateCornerClass:function(e,t){t=this._buildSimpleOptions(t,"label").classes.label,this._removeClass(e,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(e,null,t)},_buildSimpleOptions:function(e,t){var n="vertical"===this.options.direction,i={classes:{}};return i.classes[t]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[e],i},_spinnerOptions:function(e){return(e=this._buildSimpleOptions(e,"ui-spinner")).classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t="vertical"===this.options.direction;return{width:t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(t,n){var i={};return e.each(t,(function(e){var r=n.options.classes[e]||"";r=String.prototype.trim.call(r.replace(S,"")),i[e]=(r+" "+t[e]).replace(/\s+/g," ")})),i},_setOption:function(e,t){"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"!==e?this.refresh():this._callChildMethod(t?"disable":"enable")},refresh:function(){var t,n=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),t=this.childWidgets,(t=this.options.onlyVisible?t.filter(":visible"):t).length&&(e.each(["first","last"],(function(e,i){var r,o=t[i]().data("ui-controlgroup-data");o&&n["_"+o.widgetName+"Options"]?((r=n["_"+o.widgetName+"Options"](1===t.length?"only":i)).classes=n._resolveClassesValues(r.classes,o),o.element[o.widgetName](r)):n._updateCornerClass(t[i](),i)})),this._callChildMethod("refresh"))}}),e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=e(t[t.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",(t=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=t.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(n.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(n.disabled=t),n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,n="input[name='"+e.escapeSelector(t)+"']";return t?(this.form.length?e(this.form[0].elements).filter(n):e(n).filter((function(){return 0===e(this)._form().length}))).not(this.element):e([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each((function(){var t=e(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){if("label"!==e||t){if(this._super(e,t),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t);this.refresh()}},_updateIcon:function(t){var n="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(n+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):n+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",n),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),(e=this.iconSpace?e.not(this.iconSpace[0]):e).remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]),e.ui.checkboxradio,e.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,n){var i="iconPosition"!==t,r=i?this.options.iconPosition:n;t="top"===r||"bottom"===r,this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,n),this._attachIcon(r),t?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=(void 0===e.showLabel?this.options:e).showLabel,n=(void 0===e.icon?this.options:e).icon;t||n||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),(this.element[0].disabled=t)&&this.element.trigger("blur"))},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!1!==e.uiBackCompat&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){"text"!==e?("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",t)}}),e.fn.button=(_=e.fn.button,function(t){var n="string"==typeof t,i=Array.prototype.slice.call(arguments,1),r=this;return n?this.length||"instance"!==t?this.each((function(){var n=e(this).attr("type"),o=e.data(this,"ui-"+("checkbox"!==n&&"radio"!==n?"button":"checkboxradio"));return"instance"===t?(r=o,!1):o?"function"!=typeof o[t]||"_"===t.charAt(0)?e.error("no such method '"+t+"' for button widget instance"):(n=o[t].apply(o,i))!==o&&void 0!==n?(r=n&&n.jquery?r.pushStack(n.get()):n,!1):void 0:e.error("cannot call methods on button prior to initialization; attempted to call method '"+t+"'")})):r=void 0:(i.length&&(t=e.widget.extend.apply(null,[t].concat(i))),this.each((function(){var n,i="checkbox"!==(n=e(this).attr("type"))&&"radio"!==n?"button":"checkboxradio";(n=e.data(this,"ui-"+i))?(n.option(t||{}),n._init&&n._init()):"button"!=i?e(this).checkboxradio(e.extend({icon:!1},t)):_.call(e(this),t)}))),r}),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==s(arguments[0])&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),e.ui.button,e.extend(e.ui,{datepicker:{version:"1.13.2"}}),e.extend(T.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return j(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var i,r=t.nodeName.toLowerCase(),o="div"===r||"span"===r;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(e(t),o)).settings=e.extend({},n||{}),"input"===r?this._connectDatepicker(t,i):o&&this._inlineDatepicker(t,i)},_newInst:function(t,n){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?x(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var i=e(t);n.append=e([]),n.trigger=e([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var i,r=this._get(n,"appendText"),o=this._get(n,"isRTL");n.append&&n.append.remove(),r&&(n.append=e("<span>").addClass(this._appendClass).text(r),t[o?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(i=this._get(n,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(r=this._get(n,"buttonText"),i=this._get(n,"buttonImage"),this._get(n,"buttonImageOnly")?n.trigger=e("<img>").addClass(this._triggerClass).attr({src:i,alt:r,title:r}):(n.trigger=e("<button type='button'>").addClass(this._triggerClass),i?n.trigger.html(e("<img>").attr({src:i,alt:r,title:r})):n.trigger.text(r)),t[o?"before":"after"](n.trigger),n.trigger.on("click",(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():(e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]&&e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])),!1})))},_autoSize:function(e){var t,n,i,r,o,s;this._get(e,"autoSize")&&!e.inline&&(o=new Date(2009,11,20),(s=this._get(e,"dateFormat")).match(/[DM]/)&&(t=function(e){for(r=i=n=0;r<e.length;r++)e[r].length>n&&(n=e[r].length,i=r);return i},o.setMonth(t(this._get(e,s.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(t(this._get(e,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length))},_inlineDatepicker:function(t,n){var i=e(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,i,r,o){var s,a=this._dialogInst;return a||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",a)),j(a.settings,r||{}),n=n&&n.constructor===Date?this._formatDate(a,n):n,this._dialogInput.val(n),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(s=document.documentElement.clientWidth,r=document.documentElement.clientHeight,n=document.documentElement.scrollLeft||document.body.scrollLeft,o=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+n,r/2-150+o]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",a),this},_destroyDatepicker:function(t){var n,i=e(t),r=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===n?(r.append.remove(),r.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||i.removeClass(this.markerClassName).empty(),k===r&&(k=null,this._curInst=null))},_enableDatepicker:function(t){var n,i=e(t),r=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!1,r.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})))},_disableDatepicker:function(t){var n,i=e(t),r=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!0,r.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,i){var r,o,s=this._getInst(t);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?e.extend({},e.datepicker._defaults):s?"all"===n?e.extend({},s.settings):this._get(s,n):null;r=n||{},"string"==typeof n&&((r={})[n]=i),s&&(this._curInst===s&&this._hideDatepicker(),o=this._getDateDatepicker(t,!0),n=this._getMinMaxDate(s,"min"),i=this._getMinMaxDate(s,"max"),j(s.settings,r),null!==n&&void 0!==r.dateFormat&&void 0===r.minDate&&(s.settings.minDate=this._formatDate(s,n)),null!==i&&void 0!==r.dateFormat&&void 0===r.maxDate&&(s.settings.maxDate=this._formatDate(s,i)),"disabled"in r&&(r.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),s),this._autoSize(s),this._setDate(s,o),this._updateAlternate(s),this._updateDatepicker(s))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){(e=this._getInst(e))&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){(e=this._getInst(e))&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){return(e=this._getInst(e))&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(t){var n,i,r=e.datepicker._getInst(t.target),o=!0,s=r.dpDiv.is(".ui-datepicker-rtl");if(r._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),o=!1;break;case 13:return(i=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",r.dpDiv))[0]&&e.datepicker._selectDay(t.target,r.selectedMonth,r.selectedYear,i[0]),(n=e.datepicker._get(r,"onSelect"))?(i=e.datepicker._formatDate(r),n.apply(r.input?r.input[0]:null,[i,r])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(r,"stepBigMonths"):-e.datepicker._get(r,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(r,"stepBigMonths"):+e.datepicker._get(r,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?1:-1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(r,"stepBigMonths"):-e.datepicker._get(r,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(r,"stepBigMonths"):+e.datepicker._get(r,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,i=e.datepicker._getInst(t.target);if(e.datepicker._get(i,"constrainInput"))return n=e.datepicker._possibleChars(e.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!n||-1<n.indexOf(i)},_doKeyUp:function(t){if((t=e.datepicker._getInst(t.target)).input.val()!==t.lastVal)try{e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,e.datepicker._getFormatConfig(t))&&(e.datepicker._setDateFromField(t),e.datepicker._updateAlternate(t),e.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var n,i,r,o;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(o=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==o&&(e.datepicker._curInst.dpDiv.stop(!0,!0),o&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(i=(r=e.datepicker._get(o,"beforeShow"))?r.apply(t,[t,o]):{})&&(j(o.settings,i),o.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(o),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),n=!1,e(t).parents().each((function(){return!(n|="fixed"===e(this).css("position"))})),r={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,o.dpDiv.empty(),o.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(o),r=e.datepicker._checkOffset(o,r,n),o.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":n?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),o.inline||(i=e.datepicker._get(o,"showAnim"),r=e.datepicker._get(o,"duration"),o.dpDiv.css("z-index",function(e){for(var t,n;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[i]?o.dpDiv.show(i,e.datepicker._get(o,"showOptions"),r):o.dpDiv[i||"show"](i?r:null),e.datepicker._shouldFocusInput(o)&&o.input.trigger("focus"),e.datepicker._curInst=o)))},_updateDatepicker:function(t){this.maxRows=4,(k=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n,i=this._getNumberOfMonths(t),r=i[1],o=t.dpDiv.find("."+this._dayOverClass+" a"),s=e.datepicker._get(t,"onUpdateDatepicker");0<o.length&&C.apply(o.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<r&&t.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(n=t.yearshtml,setTimeout((function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),n=t.yearshtml=null}),0)),s&&s.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,i){var r=t.dpDiv.outerWidth(),o=t.dpDiv.outerHeight(),s=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(i?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?r-s:0,n.left-=i&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=i&&n.top===t.input.offset().top+a?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+r>l&&r<l?Math.abs(n.left+r-l):0),n.top-=Math.min(n.top,n.top+o>c&&o<c?Math.abs(o+a):0),n},_findPos:function(t){for(var n=this._getInst(t),i=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(n=e(t).offset()).left,n.top]},_hideDatepicker:function(t){var n,i,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(r,"showAnim"),i=this._get(r,"duration"),t=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[n]||e.effects[n])?r.dpDiv.hide(n,e.datepicker._get(r,"showOptions"),i,t):r.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,t),n||t(),this._datepickerShowing=!1,(t=this._get(r,"onClose"))&&t.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var n;e.datepicker._curInst&&(n=e(t.target),t=e.datepicker._getInst(n[0]),(n[0].id===e.datepicker._mainDivId||0!==n.parents("#"+e.datepicker._mainDivId).length||n.hasClass(e.datepicker.markerClassName)||n.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!n.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===t)||e.datepicker._hideDatepicker())},_adjustDate:function(t,n,i){var r=e(t);t=this._getInst(r[0]),this._isDisabledDatepicker(r[0])||(this._adjustInstDate(t,n,i),this._updateDatepicker(t))},_gotoToday:function(t){var n=e(t),i=this._getInst(n[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(n)},_selectMonthYear:function(t,n,i){var r=e(t);(t=this._getInst(r[0]))["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(r)},_selectDay:function(t,n,i,r){var o=e(t);e(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((o=this._getInst(o[0])).selectedDay=o.currentDay=parseInt(e("a",r).attr("data-date")),o.selectedMonth=o.currentMonth=n,o.selectedYear=o.currentYear=i,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(t){t=e(t),this._selectDate(t,"")},_selectDate:function(t,n){var i=e(t);t=this._getInst(i[0]),n=null!=n?n:this._formatDate(t),t.input&&t.input.val(n),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[n,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=s(t.input[0])&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,i,r=this._get(t,"altField");r&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(n,i,this._getFormatConfig(t)),e(document).find(r).val(t))},noWeekends:function(e){return[0<(e=e.getDay())&&e<6,""]},iso8601Week:function(e){var t=new Date(e.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),e=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1},parseDate:function(t,n,i){if(null==t||null==n)throw"Invalid arguments";if(""===(n="object"==s(n)?n.toString():n+""))return null;for(var r,o,a,l=0,c="string"!=typeof(c=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff)?c:(new Date).getFullYear()%100+parseInt(c,10),u=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,d=(i?i.dayNames:null)||this._defaults.dayNames,h=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,f=(i?i.monthNames:null)||this._defaults.monthNames,p=-1,m=-1,g=-1,v=-1,y=!1,b=function(e){return(e=S+1<t.length&&t.charAt(S+1)===e)&&S++,e},w=function(e){var t=b(e);if(t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,t=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),!(t=n.substring(l).match(t)))throw"Missing number at position "+l;return l+=t[0].length,parseInt(t[0],10)},_=function(t,i,r){var o=-1;if(i=e.map(b(t)?r:i,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)})),e.each(i,(function(e,t){var i=t[1];if(n.substr(l,i.length).toLowerCase()===i.toLowerCase())return o=t[0],l+=i.length,!1})),-1!==o)return o+1;throw"Unknown name at position "+l},k=function(){if(n.charAt(l)!==t.charAt(S))throw"Unexpected literal at position "+l;l++},S=0;S<t.length;S++)if(y)"'"!==t.charAt(S)||b("'")?k():y=!1;else switch(t.charAt(S)){case"d":g=w("d");break;case"D":_("D",u,d);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=_("M",h,f);break;case"y":p=w("y");break;case"@":p=(a=new Date(w("@"))).getFullYear(),m=a.getMonth()+1,g=a.getDate();break;case"!":p=(a=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),m=a.getMonth()+1,g=a.getDate();break;case"'":b("'")?k():y=!0;break;default:k()}if(l<n.length&&(o=n.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===p?p=(new Date).getFullYear():p<100&&(p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(p<=c?0:-100)),-1<v)for(m=1,g=v;!(g<=(r=this._getDaysInMonth(p,m-1)));)m++,g-=r;if((a=this._daylightSavingAdjust(new Date(p,m-1,g))).getFullYear()!==p||a.getMonth()+1!==m||a.getDate()!==g)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";function i(e,t,n){var i=""+t;if(u(e))for(;i.length<n;)i="0"+i;return i}function r(e,t,n,i){return(u(e)?i:n)[t]}var o,s=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,l=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,c=(n?n.monthNames:null)||this._defaults.monthNames,u=function(t){return(t=o+1<e.length&&e.charAt(o+1)===t)&&o++,t},d="",h=!1;if(t)for(o=0;o<e.length;o++)if(h)"'"!==e.charAt(o)||u("'")?d+=e.charAt(o):h=!1;else switch(e.charAt(o)){case"d":d+=i("d",t.getDate(),2);break;case"D":d+=r("D",t.getDay(),s,a);break;case"o":d+=i("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=i("m",t.getMonth()+1,2);break;case"M":d+=r("M",t.getMonth(),l,c);break;case"y":d+=u("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":u("'")?d+="'":h=!0;break;default:d+=e.charAt(o)}return d},_possibleChars:function(e){for(var t="",n=!1,i=function(t){return(t=r+1<e.length&&e.charAt(r+1)===t)&&r++,t},r=0;r<e.length;r++)if(n)"'"!==e.charAt(r)||i("'")?t+=e.charAt(r):n=!1;else switch(e.charAt(r)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":i("'")?t+="'":n=!0;break;default:t+=e.charAt(r)}return t},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,r=this._getDefaultDate(e),o=r,s=this._getFormatConfig(e);try{o=this.parseDate(n,i,s)||r}catch(e){i=t?"":i}e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),e.currentDay=i?o.getDate():0,e.currentMonth=i?o.getMonth():0,e.currentYear=i?o.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,i){var r,o;return n=null==n||""===n?i:"string"==typeof n?function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(n){}for(var i=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,r=i.getFullYear(),o=i.getMonth(),s=i.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=a.exec(n);l;){switch(l[2]||"d"){case"d":case"D":s+=parseInt(l[1],10);break;case"w":case"W":s+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),s=Math.min(s,e.datepicker._getDaysInMonth(r,o));break;case"y":case"Y":r+=parseInt(l[1],10),s=Math.min(s,e.datepicker._getDaysInMonth(r,o))}l=a.exec(n)}return new Date(r,o,s)}(n):"number"==typeof n?isNaN(n)?i:(r=n,(o=new Date).setDate(o.getDate()+r),o):new Date(n.getTime()),(n=n&&"Invalid Date"===n.toString()?i:n)&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var i=!t,r=e.selectedMonth,o=e.selectedYear;t=this._restrictMinMax(e,this._determineDate(e,t,new Date)),e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),r===e.selectedMonth&&o===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){var t={prev:function(){e.datepicker._adjustDate(i,-n,"M")},next:function(){e.datepicker._adjustDate(i,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(i)},selectDay:function(){return e.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var n,i,r,o,s,a,l,c,u,d,h,f,p,m,g,v,y,b,w,_,k,S,T,x,C,j,O,E,P,D,L,A,M=new Date,$=this._daylightSavingAdjust(new Date(M.getFullYear(),M.getMonth(),M.getDate())),I=this._get(t,"isRTL"),N=this._get(t,"showButtonPanel"),R=this._get(t,"hideIfNoPrevNext"),W=this._get(t,"navigationAsDateFormat"),z=this._getNumberOfMonths(t),B=this._get(t,"showCurrentAtPos"),H=(M=this._get(t,"stepMonths"),1!==z[0]||1!==z[1]),F=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),U=this._getMinMaxDate(t,"min"),q=this._getMinMaxDate(t,"max"),V=t.drawMonth-B,Y=t.drawYear;if(V<0&&(V+=12,Y--),q)for(n=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-z[0]*z[1]+1,q.getDate())),n=U&&n<U?U:n;this._daylightSavingAdjust(new Date(Y,V,1))>n;)--V<0&&(V=11,Y--);for(t.drawMonth=V,t.drawYear=Y,B=this._get(t,"prevText"),B=W?this.formatDate(B,this._daylightSavingAdjust(new Date(Y,V-M,1)),this._getFormatConfig(t)):B,i=this._canAdjustMonth(t,-1,Y,V)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:B}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(I?"e":"w")).text(B))[0].outerHTML:R?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:B}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(I?"e":"w")).text(B))[0].outerHTML,B=this._get(t,"nextText"),B=W?this.formatDate(B,this._daylightSavingAdjust(new Date(Y,V+M,1)),this._getFormatConfig(t)):B,r=this._canAdjustMonth(t,1,Y,V)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:B}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(I?"w":"e")).text(B))[0].outerHTML:R?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:B}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(I?"w":"e")).text(B))[0].outerHTML,M=this._get(t,"currentText"),R=this._get(t,"gotoCurrent")&&t.currentDay?F:$,M=W?this.formatDate(M,R,this._getFormatConfig(t)):M,B="",t.inline||(B=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),W="",N&&(W=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(I?B:"").append(this._isInRange(t,R)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(M):"").append(I?"":B)[0].outerHTML),o=parseInt(this._get(t,"firstDay"),10),o=isNaN(o)?0:o,s=this._get(t,"showWeek"),a=this._get(t,"dayNames"),l=this._get(t,"dayNamesMin"),c=this._get(t,"monthNames"),u=this._get(t,"monthNamesShort"),d=this._get(t,"beforeShowDay"),h=this._get(t,"showOtherMonths"),f=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),m="",v=0;v<z[0];v++){for(y="",this.maxRows=4,b=0;b<z[1];b++){if(w=this._daylightSavingAdjust(new Date(Y,V,t.selectedDay)),_=" ui-corner-all",k="",H){if(k+="<div class='ui-datepicker-group",1<z[1])switch(b){case 0:k+=" ui-datepicker-group-first",_=" ui-corner-"+(I?"right":"left");break;case z[1]-1:k+=" ui-datepicker-group-last",_=" ui-corner-"+(I?"left":"right");break;default:k+=" ui-datepicker-group-middle",_=""}k+="'>"}for(k+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===v?I?r:i:"")+(/all|right/.test(_)&&0===v?I?i:r:"")+this._generateMonthYearHeader(t,V,Y,U,q,0<v||0<b,c,u)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=s?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",g=0;g<7;g++)S+="<th scope='col'"+(5<=(g+o+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+a[T=(g+o)%7]+"'>"+l[T]+"</span></th>";for(k+=S+"</tr></thead><tbody>",C=this._getDaysInMonth(Y,V),Y===t.selectedYear&&V===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,C)),x=(this._getFirstDayOfMonth(Y,V)-o+7)%7,C=Math.ceil((x+C)/7),j=H&&this.maxRows>C?this.maxRows:C,this.maxRows=j,O=this._daylightSavingAdjust(new Date(Y,V,1-x)),E=0;E<j;E++){for(k+="<tr>",P=s?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(O)+"</td>":"",g=0;g<7;g++)D=d?d.apply(t.input?t.input[0]:null,[O]):[!0,""],A=(L=O.getMonth()!==V)&&!f||!D[0]||U&&O<U||q&&q<O,P+="<td class='"+(5<=(g+o+6)%7?" ui-datepicker-week-end":"")+(L?" ui-datepicker-other-month":"")+(O.getTime()===w.getTime()&&V===t.selectedMonth&&t._keyEvent||p.getTime()===O.getTime()&&p.getTime()===w.getTime()?" "+this._dayOverClass:"")+(A?" "+this._unselectableClass+" ui-state-disabled":"")+(L&&!h?"":" "+D[1]+(O.getTime()===F.getTime()?" "+this._currentClass:"")+(O.getTime()===$.getTime()?" ui-datepicker-today":""))+"'"+(L&&!h||!D[2]?"":" title='"+D[2].replace(/'/g,"'")+"'")+(A?"":" data-handler='selectDay' data-event='click' data-month='"+O.getMonth()+"' data-year='"+O.getFullYear()+"'")+">"+(L&&!h?" ":A?"<span class='ui-state-default'>"+O.getDate()+"</span>":"<a class='ui-state-default"+(O.getTime()===$.getTime()?" ui-state-highlight":"")+(O.getTime()===F.getTime()?" ui-state-active":"")+(L?" ui-priority-secondary":"")+"' href='#' aria-current='"+(O.getTime()===F.getTime()?"true":"false")+"' data-date='"+O.getDate()+"'>"+O.getDate()+"</a>")+"</td>",O.setDate(O.getDate()+1),O=this._daylightSavingAdjust(O);k+=P+"</tr>"}11<++V&&(V=0,Y++),y+=k+="</tbody></table>"+(H?"</div>"+(0<z[0]&&b===z[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}m+=y}return m+=W,t._keyEvent=!1,m},_generateMonthYearHeader:function(e,t,n,i,r,o,s,a){var l,c,u,d,h,f,p=this._get(e,"changeMonth"),m=this._get(e,"changeYear"),g=this._get(e,"showMonthAfterYear"),v=this._get(e,"selectMonthLabel"),y=this._get(e,"selectYearLabel"),b="<div class='ui-datepicker-title'>",w="";if(o||!p)w+="<span class='ui-datepicker-month'>"+s[t]+"</span>";else{for(l=i&&i.getFullYear()===n,c=r&&r.getFullYear()===n,w+="<select class='ui-datepicker-month' aria-label='"+v+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=i.getMonth())&&(!c||u<=r.getMonth())&&(w+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+a[u]+"</option>");w+="</select>"}if(g||(b+=w+(!o&&p&&m?"":" ")),!e.yearshtml)if(e.yearshtml="",o||!m)b+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(s=this._get(e,"yearRange").split(":"),d=(new Date).getFullYear(),h=(v=function(e){return e=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?d+parseInt(e,10):parseInt(e,10),isNaN(e)?d:e})(s[0]),f=Math.max(h,v(s[1]||"")),h=i?Math.max(h,i.getFullYear()):h,f=r?Math.min(f,r.getFullYear()):f,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+y+"' data-handler='selectYear' data-event='change'>";h<=f;h++)e.yearshtml+="<option value='"+h+"'"+(h===n?" selected='selected'":"")+">"+h+"</option>";e.yearshtml+="</select>",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),g&&(b+=(!o&&p&&m?"":" ")+w),b+"</div>"},_adjustInstDate:function(e,t,n){var i=e.selectedYear+("Y"===n?t:0),r=e.selectedMonth+("M"===n?t:0);t=Math.min(e.selectedDay,this._getDaysInMonth(i,r))+("D"===n?t:0),t=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,r,t))),e.selectedDay=t.getDate(),e.drawMonth=e.selectedMonth=t.getMonth(),e.drawYear=e.selectedYear=t.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min");return t=n&&t<n?n:t,(e=this._getMinMaxDate(e,"max"))&&e<t?e:t},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){return null==(e=this._get(e,"numberOfMonths"))?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,i){var r=this._getNumberOfMonths(e);return r=this._daylightSavingAdjust(new Date(n,i+(t<0?t:r[0]*r[1]),1)),t<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(e,r)},_isInRange:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),r=null,o=null,s=this._get(e,"yearRange");return s&&(e=s.split(":"),s=(new Date).getFullYear(),r=parseInt(e[0],10),o=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=s),e[1].match(/[+\-].*/)&&(o+=s)),(!n||t.getTime()>=n.getTime())&&(!i||t.getTime()<=i.getTime())&&(!r||t.getFullYear()>=r)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){return t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear),t=t?"object"==s(t)?t:this._daylightSavingAdjust(new Date(i,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay)),this.formatDate(this._get(e,"dateFormat"),t,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)}))},e.datepicker=new T,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.2",e.datepicker,e.widget("ui.dialog",{version:"1.13.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var n=e(this).css(t).offset().top;n<0&&e(this).css("top",t.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var n=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e.ui.safeBlur(e.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){n._trigger("close",t)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,n){var i=!1,r=this.uiDialog.siblings(".ui-front:visible").map((function(){return+e(this).css("z-index")})).get();return(r=Math.max.apply(null,r))>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",r+1),i=!0),i&&!n&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=e(e.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){t._focusTabbable(),t._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;(e=(e=(e=(e=(e=e||this.element.find("[autofocus]")).length?e:this.element.find(":tabbable")).length?e:this.uiDialogButtonPane.find(":tabbable")).length?e:this.uiDialogTitlebarClose.filter(":tabbable")).length?e:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=e.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||e.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(e){e.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=e("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);var n,i,r;t.keyCode!==e.ui.keyCode.TAB||t.isDefaultPrevented()||(n=this.uiDialog.find(":tabbable"),i=n.first(),r=n.last(),t.target!==r[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay((function(){r.trigger("focus")})),t.preventDefault()):(this._delay((function(){i.trigger("focus")})),t.preventDefault()))},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:e("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,n=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(n)||Array.isArray(n)&&!n.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(e.each(n,(function(n,i){var r;i=e.extend({type:"button"},i="function"==typeof i?{click:i,text:n}:i),r=i.click,n={icon:i.icon,iconPosition:i.iconPosition,showLabel:i.showLabel,icons:i.icons,text:i.text},delete i.click,delete i.icon,delete i.iconPosition,delete i.showLabel,delete i.icons,"boolean"==typeof i.text&&delete i.text,e("<button></button>",i).button(n).appendTo(t.uiButtonSet).on("click",(function(){r.apply(t.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,n=this.options;function i(e){return{position:e.position,offset:e.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,r){t._addClass(e(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",n,i(r))},drag:function(e,n){t._trigger("drag",e,i(n))},stop:function(r,o){var s=o.offset.left-t.document.scrollLeft(),a=o.offset.top-t.document.scrollTop();n.position={my:"left top",at:"left"+(0<=s?"+":"")+s+" top"+(0<=a?"+":"")+a,of:t.window},t._removeClass(e(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",r,i(o))}})},_makeResizable:function(){var t=this,n=this.options,i=n.resizable,r=this.uiDialog.css("position");function o(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}i="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw",this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:i,start:function(n,i){t._addClass(e(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",n,o(i))},resize:function(e,n){t._trigger("resize",e,o(n))},stop:function(i,r){var s=(a=t.uiDialog.offset()).left-t.document.scrollLeft(),a=a.top-t.document.scrollTop();n.height=t.uiDialog.height(),n.width=t.uiDialog.width(),n.position={my:"left top",at:"left"+(0<=s?"+":"")+s+" top"+(0<=a?"+":"")+a,of:t.window},t._removeClass(e(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",i,o(r))}}).css("position",r)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),n=e.inArray(this,t);-1!==n&&t.splice(n,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||this.document.data("ui-dialog-instances",e=[]),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var n=this,i=!1,r={};e.each(t,(function(e,t){n._setOption(e,t),e in n.sizeRelatedOptions&&(i=!0),e in n.resizableRelatedOptions&&(r[e]=t)})),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(t,n){var i,r=this.uiDialog;"disabled"!==t&&(this._super(t,n),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:e("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=r.is(":data(ui-draggable)"))&&!n&&r.draggable("destroy"),!i&&n&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((i=r.is(":data(ui-resizable)"))&&!n&&r.resizable("destroy"),i&&"string"==typeof n&&r.resizable("option","handles",n),i||!1===n||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),e=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),t=Math.max(0,i.minHeight-e),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-e):"none","auto"===i.height?this.element.css({minHeight:t,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!e(t.target).closest(".ui-dialog").length||!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var t,n;this.options.modal&&(t=e.fn.jquery.substring(0,4),n=!0,this._delay((function(){n=!1})),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(e){var i;n||(i=this._trackingInstances()[0])._allowInteraction(e)||(e.preventDefault(),i._focusTabbable(),"3.4."!==t&&"3.5."!==t||i._delay(i._restoreTabbableFocus))}.bind(this)),this.overlay=e("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var e;this.options.modal&&this.overlay&&((e=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",e):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==e.uiBackCompat&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),e.ui.dialog,e.widget("ui.slider",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n=this.options,i=this.element.find(".ui-slider-handle"),r=[],o=n.values&&n.values.length||1;for(i.length>o&&(i.slice(o).remove(),i=i.slice(0,o)),t=i.length;t<o;t++)r.push("<span tabindex='0'></span>");this.handles=i.add(e(r.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)}))},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,i,r,o,s,a,l=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),a={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(a),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var s=Math.abs(n-l.values(t));(s<i||i===s&&(t===l._lastChangedValue||l.values(t)===c.min))&&(i=s,r=e(this),o=t)})),!1!==this._start(t,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(r,null,"ui-state-active"),r.trigger("focus"),s=r.offset(),a=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:t.pageX-s.left-r.width()/2,top:t.pageY-s.top-r.height()/2-(parseInt(r.css("borderTopWidth"),10)||0)-(parseInt(r.css("borderBottomWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,n),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY};return t=this._normValueFromMouse(t),this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t;return(e=1<(e=(e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/t)?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),t=this._valueMin()+e*t,this._trimAlignValue(t)},_uiHash:function(e,t,n){var i={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==t?t:this.values(e),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var i,r=this.value(),o=this.values();this._hasMultipleValues()&&(i=this.values(t?0:1),r=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(i,n):Math.max(i,n)),o[t]=n),n!==r&&!1!==this._trigger("slide",e,this._uiHash(t,n,o))&&(this._hasMultipleValues()?this.values(t,n):this.value(n))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var n,i,r;if(1<arguments.length)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!Array.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(n=this.options.values,i=e,r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(i[r]),this._change(null,r);this._refreshValue()},_setOption:function(e,t){var n,i=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(i=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=i-1;0<=n;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,n;if(arguments.length)return e=this.options.values[e],this._trimAlignValue(e);if(this._hasMultipleValues()){for(t=this.options.values.slice(),n=0;n<t.length;n+=1)t[n]=this._trimAlignValue(t[n]);return t}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=0<this.options.step?this.options.step:1,n=(e-this._valueMin())%t;return e-=n,2*Math.abs(n)>=t&&(e+=0<n?t:-t),parseFloat(e.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;(e=Math.round((e-t)/n)*n+t)>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var t=e.toString();return-1===(e=t.indexOf("."))?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,n,i,r,o,s=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,u={};this._hasMultipleValues()?this.handles.each((function(i){n=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[c?"animate":"css"](u,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},a.animate),1===i&&l.range[c?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:a.animate})):(0===i&&l.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},a.animate),1===i&&l.range[c?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:a.animate}))),t=n})):(i=this.value(),r=this._valueMin(),o=this._valueMax(),n=o!==r?(i-r)/(o-r)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](u,a.animate),"min"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},a.animate),"max"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},a.animate),"min"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},a.animate),"max"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},a.animate))},_handleEvents:{keydown:function(t){var n,i,r,o=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,o)))return}switch(r=this.options.step,n=i=this._hasMultipleValues()?this.values(o):this.value(),t.keyCode){case e.ui.keyCode.HOME:i=this._valueMin();break;case e.ui.keyCode.END:i=this._valueMax();break;case e.ui.keyCode.PAGE_UP:i=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;i=this._trimAlignValue(n+r);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;i=this._trimAlignValue(n-r)}this._slide(t,o,i)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}}),e.widget("ui.spinner",{version:"1.13.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),n=this.element;return e.each(["min","max","step"],(function(e,i){var r=n.attr(i);null!=r&&r.length&&(t[i]=r)})),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e))},mousewheel:function(t,n){var i=e.ui.safeActiveElement(this.document[0]);if(this.element[0]===i&&n){if(!this.spinning&&!this._start(t))return!1;this._spin((0<n?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(t)}),100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var n;function i(){this.element[0]===e.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=n,this._delay((function(){this.previous=n})))}n=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,i.call(this)})),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var n=this.options,i=e.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,n.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-n.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(e,t,n){e=e||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,t,n)}),e),this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:n})||(this._value(n),this.counter++)},_increment:function(e){var t=this.options.incremental;return t?"function"==typeof t?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var t=e.toString();return-1===(e=t.indexOf("."))?0:t.length-e-1},_adjustValue:function(e){var t=this.options,n=null!==t.min?t.min:0,i=e-n;return e=n+Math.round(i/t.step)*t.step,e=parseFloat(e.toFixed(this._precision())),null!==t.max&&e>t.max?t.max:null!==t.min&&e<t.min?t.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var n;if("culture"===e||"numberFormat"===e)return n=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(n));"max"!==e&&"min"!==e&&"step"!==e||"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,t.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,t.down)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:O((function(e){this._super(e)})),_parse:function(e){return""===(e="string"==typeof e&&""!==e?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e:e)||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var n;""!==e&&null!==(n=this._parse(e))&&(t||(n=this._adjustValue(n)),e=this._format(n)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:O((function(e){this._stepUp(e)})),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:O((function(e){this._stepDown(e)})),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:O((function(e){this._stepUp((e||1)*this.options.page)})),pageDown:O((function(e){this._stepDown((e||1)*this.options.page)})),value:function(e){if(!arguments.length)return this._parse(this.element.val());O(this._value).call(this,e)},widget:function(){return this.uiSpinner}}),!1!==e.uiBackCompat&&e.widget("ui.spinner",e.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),e.ui.spinner,e.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title");return e("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,t){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(t),e.data("ui-tooltip-id",t).attr("aria-describedby",String.prototype.trim.call(n.join(" ")))},_removeDescribedBy:function(t){var n=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/);-1!==(n=e.inArray(n,i))&&i.splice(n,1),t.removeData("ui-tooltip-id"),(i=String.prototype.trim.call(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=e([])},_setOption:function(t,n){var i=this;this._super(t,n),"content"===t&&e.each(this.tooltips,(function(e,t){i._updateContent(t.element)}))},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,(function(n,i){var r=e.Event("blur");r.target=r.currentTarget=i.element[0],t.close(r,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var t=e(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})))},_enable:function(){this.disabledTitles.each((function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})),this.disabledTitles=e([])},open:function(t){var n=this,i=e(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each((function(){var t,i=e(this);i.data("ui-tooltip-open")&&((t=e.Event("blur")).target=t.currentTarget=this,n.close(t,!0)),i.attr("title")&&(i.uniqueId(),n.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))})),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(e,t){var n=this.options.content,i=this,r=t?t.type:null;if("string"==typeof n||n.nodeType||n.jquery)return this._open(t,e,n);(n=n.call(e[0],(function(n){i._delay((function(){e.data("ui-tooltip-open")&&(t&&(t.type=r),this._open(t,e,n))}))})))&&this._open(t,e,n)},_open:function(t,n,i){var r,o,s,a=e.extend({},this.options.position);function l(e){a.of=e,o.is(":hidden")||o.position(a)}i&&((r=this._find(n))?r.tooltip.find(".ui-tooltip-content").html(i):(n.is("[title]")&&(t&&"mouseover"===t.type?n.attr("title",""):n.removeAttr("title")),r=this._tooltip(n),o=r.tooltip,this._addDescribedBy(n,o.attr("id")),o.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(i=e("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),i.removeAttr("id").find("[id]").removeAttr("id"),i.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:l}),l(t)):o.position(e.extend({of:n},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(s=this.delayedShow=setInterval((function(){o.is(":visible")&&(l(a.of),clearInterval(s))}),13)),this._trigger("open",t,{tooltip:o})))},_registerCloseHandlers:function(t,n){var i={keyup:function(t){t.keyCode===e.ui.keyCode.ESCAPE&&((t=e.Event(t)).currentTarget=n[0],this.close(t,!0))}};n[0]!==this.element[0]&&(i.remove=function(){var e=this._find(n);e&&this._removeTooltip(e.tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,n,i)},close:function(t){var n,i=this,r=e(t?t.currentTarget:this.element),o=this._find(r);o?(n=o.tooltip,o.closing||(clearInterval(this.delayedShow),r.data("ui-tooltip-title")&&!r.attr("title")&&r.attr("title",r.data("ui-tooltip-title")),this._removeDescribedBy(r),o.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,(function(){i._removeTooltip(e(this))})),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&&this._off(r,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,(function(t,n){e(n.element).attr("title",n.title),delete i.parents[t]})),o.closing=!0,this._trigger("close",t,{tooltip:n}),o.hiding||(o.closing=!1))):r.removeData("ui-tooltip-open")},_tooltip:function(t){var n=e("<div>").attr("role","tooltip"),i=e("<div>").appendTo(n),r=n.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(t)),this.tooltips[r]={element:t,tooltip:n}},_find:function(e){return(e=e.data("ui-tooltip-id"))?this.tooltips[e]:null},_removeTooltip:function(e){clearInterval(this.delayedShow),e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){return(e=e.closest(".ui-front, dialog")).length?e:this.document[0].body},_destroy:function(){var t=this;e.each(this.tooltips,(function(n,i){var r=e.Event("blur");i=i.element,r.target=r.currentTarget=i[0],t.close(r,!0),e("#"+n).remove(),i.data("ui-tooltip-title")&&(i.attr("title")||i.attr("title",i.data("ui-tooltip-title")),i.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==e.uiBackCompat&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),e.ui.tooltip;var E=e,P={},D=P.toString,L=/^([\-+])=\s*(\d+\.?\d*)/,A=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),e[4]?(parseInt(e[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),e[4]?(parseInt(e[4]+e[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],M=E.Color=function(e,t,n,i){return new E.Color.fn.parse(e,t,n,i)},$={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},I={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},N=M.support={},R=E("<p>")[0],W=E.each;function z(e){return null==e?e+"":"object"==s(e)?P[D.call(e)]||"object":s(e)}function B(e,t,n){var i=I[t.type]||{};return null==e?n||!t.def?null:t.def:(e=i.floor?~~e:parseFloat(e),isNaN(e)?t.def:i.mod?(e+i.mod)%i.mod:Math.min(i.max,Math.max(0,e)))}function H(e){var t=M(),n=t._rgba=[];return e=e.toLowerCase(),W(A,(function(i,r){var o=(o=r.re.exec(e))&&r.parse(o);if(r=r.space||"rgba",o)return o=t[r](o),t[$[r].cache]=o[$[r].cache],n=t._rgba=o._rgba,!1})),n.length?("0,0,0,0"===n.join()&&E.extend(n,ee.transparent),t):ee[e]}function F(e,t,n){return 6*(n=(n+1)%1)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}R.style.cssText="background-color:rgba(1,1,1,.5)",N.rgba=-1<R.style.backgroundColor.indexOf("rgba"),W($,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){P["[object "+t+"]"]=t.toLowerCase()})),(M.fn=E.extend(M.prototype,{parse:function(e,t,n,i){if(void 0===e)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=E(e).css(t),t=void 0);var r=this,o=z(e),s=this._rgba=[];return void 0!==t&&(e=[e,t,n,i],o="array"),"string"===o?this.parse(H(e)||ee._default):"array"===o?(W($.rgba.props,(function(t,n){s[n.idx]=B(e[n.idx],n)})),this):"object"===o?(W($,e instanceof M?function(t,n){e[n.cache]&&(r[n.cache]=e[n.cache].slice())}:function(t,n){var i=n.cache;W(n.props,(function(t,o){if(!r[i]&&n.to){if("alpha"===t||null==e[t])return;r[i]=n.to(r._rgba)}r[i][o.idx]=B(e[t],o,!0)})),r[i]&&E.inArray(null,r[i].slice(0,3))<0&&(null==r[i][3]&&(r[i][3]=1),n.from&&(r._rgba=n.from(r[i])))}),this):void 0},is:function(e){var t=M(e),n=!0,i=this;return W($,(function(e,r){var o,s=t[r.cache];return s&&(o=i[r.cache]||r.to&&r.to(i._rgba)||[],W(r.props,(function(e,t){if(null!=s[t.idx])return n=s[t.idx]===o[t.idx]}))),n})),n},_space:function(){var e=[],t=this;return W($,(function(n,i){t[i.cache]&&e.push(n)})),e.pop()},transition:function(e,t){var n=(s=M(e))._space(),i=$[n],r=(e=0===this.alpha()?M("transparent"):this)[i.cache]||i.to(e._rgba),o=r.slice(),s=s[i.cache];return W(i.props,(function(e,n){var i=n.idx,a=r[i],l=s[i],c=I[n.type]||{};null!==l&&(null===a?o[i]=l:(c.mod&&(l-a>c.mod/2?a+=c.mod:a-l>c.mod/2&&(a-=c.mod)),o[i]=B((l-a)*t+a,n)))})),this[n](o)},blend:function(e){if(1===this._rgba[3])return this;var t=this._rgba.slice(),n=t.pop(),i=M(e)._rgba;return M(E.map(t,(function(e,t){return(1-n)*i[t]+n*e})))},toRgbaString:function(){var e="rgba(",t=E.map(this._rgba,(function(e,t){return null!=e?e:2<t?1:0}));return 1===t[3]&&(t.pop(),e="rgb("),e+t.join()+")"},toHslaString:function(){var e="hsla(",t=E.map(this.hsla(),(function(e,t){return null==e&&(e=2<t?1:0),t&&t<3?Math.round(100*e)+"%":e}));return 1===t[3]&&(t.pop(),e="hsl("),e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),n=t.pop();return e&&t.push(~~(255*n)),"#"+E.map(t,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=M.fn,$.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/255,n=e[1]/255,i=e[2]/255,r=e[3],o=Math.max(t,n,i),s=Math.min(t,n,i),a=o-s,l=(e=.5*(l=o+s),n=s===o?0:t===o?60*(n-i)/a+360:n===o?60*(i-t)/a+120:60*(t-n)/a+240,0==a?0:e<=.5?a/l:a/(2-l));return[Math.round(n)%360,l,e,null==r?1:r]},$.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],i=e[2];return e=e[3],i=2*i-(n=i<=.5?i*(1+n):i+n-i*n),[Math.round(255*F(i,n,t+1/3)),Math.round(255*F(i,n,t)),Math.round(255*F(i,n,t-1/3)),e]},W($,(function(e,t){var n=t.props,i=t.cache,r=t.to,o=t.from;M.fn[e]=function(e){if(r&&!this[i]&&(this[i]=r(this._rgba)),void 0===e)return this[i].slice();var t=z(e),s="array"===t||"object"===t?e:arguments,a=this[i].slice();return W(n,(function(e,n){null==(e=s["object"===t?e:n.idx])&&(e=a[n.idx]),a[n.idx]=B(e,n)})),o?((e=M(o(a)))[i]=a,e):M(a)},W(n,(function(t,n){M.fn[t]||(M.fn[t]=function(i){var r,o=z(i),s="alpha"===t?this._hsla?"hsla":"rgba":e,a=this[s](),l=a[n.idx];return"undefined"===o?l:("function"===o&&(o=z(i=i.call(this,l))),null==i&&n.empty?this:("string"===o&&(r=L.exec(i))&&(i=l+parseFloat(r[2])*("+"===r[1]?1:-1)),a[n.idx]=i,this[s](a)))})}))})),(M.hook=function(e){e=e.split(" "),W(e,(function(e,t){E.cssHooks[t]={set:function(e,n){var i,r,o="";if("transparent"!==n&&("string"!==z(n)||(i=H(n)))){if(n=M(i||n),!N.rgba&&1!==n._rgba[3]){for(r="backgroundColor"===t?e.parentNode:e;(""===o||"transparent"===o)&&r&&r.style;)try{o=E.css(r,"backgroundColor"),r=r.parentNode}catch(e){}n=n.blend(o&&"transparent"!==o?o:"_default")}n=n.toRgbaString()}try{e.style[t]=n}catch(e){}}},E.fx.step[t]=function(e){e.colorInit||(e.start=M(e.elem,t),e.end=M(e.end),e.colorInit=!0),E.cssHooks[t].set(e.elem,e.start.transition(e.end,e.pos))}}))})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),E.cssHooks.borderColor={expand:function(e){var t={};return W(["Top","Right","Bottom","Left"],(function(n,i){t["border"+i+"Color"]=e})),t}};var U,q,V,Y,G,K,J,X,Q,Z,ee=E.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},te="ui-effects-",ne="ui-effects-style",ie="ui-effects-animated";function re(e){var t,n,i=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,r={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[t=i[n]]&&(r[t.replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))]=i[t]);else for(t in i)"string"==typeof i[t]&&(r[t]=i[t]);return r}function oe(t,n,i,r){return t={effect:t=e.isPlainObject(t)?(n=t).effect:t},"function"==typeof(n=null==n?{}:n)&&(r=n,i=null,n={}),"number"!=typeof n&&!e.fx.speeds[n]||(r=i,i=n,n={}),"function"==typeof i&&(r=i,i=null),n&&e.extend(t,n),i=i||n.duration,t.duration=e.fx.off?0:"number"==typeof i?i:i in e.fx.speeds?e.fx.speeds[i]:e.fx.speeds._default,t.complete=r||n.complete,t}function se(t){return!t||"number"==typeof t||e.fx.speeds[t]||"string"==typeof t&&!e.effects.effect[t]||"function"==typeof t||"object"==s(t)&&!t.effect}function ae(e,t){var n=t.outerWidth();return t=t.outerHeight(),e=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,n,t,0],{top:parseFloat(e[1])||0,right:"auto"===e[2]?n:parseFloat(e[2]),bottom:"auto"===e[3]?t:parseFloat(e[3]),left:parseFloat(e[4])||0}}e.effects={effect:{}},Y=["add","remove","toggle"],G={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(E.style(e.elem,n,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,n,i,r){var o=e.speed(n,i,r);return this.queue((function(){var n=e(this),i=n.attr("class")||"",r=(r=o.children?n.find("*").addBack():n).map((function(){return{el:e(this),start:re(this)}})),s=function(){e.each(Y,(function(e,i){t[i]&&n[i+"Class"](t[i])}))};s(),r=r.map((function(){return this.end=re(this.el[0]),this.diff=function(t,n){var i,r,o={};for(i in n)r=n[i],t[i]!==r&&(G[i]||!e.fx.step[i]&&isNaN(parseFloat(r))||(o[i]=r));return o}(this.start,this.end),this})),n.attr("class",i),r=r.map((function(){var t=this,n=e.Deferred(),i=e.extend({},o,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,i),n.promise()})),e.when.apply(e,r.get()).done((function(){s(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),o.complete.call(n[0])}))}))},e.fn.extend({addClass:(V=e.fn.addClass,function(t,n,i,r){return n?e.effects.animateClass.call(this,{add:t},n,i,r):V.apply(this,arguments)}),removeClass:(q=e.fn.removeClass,function(t,n,i,r){return 1<arguments.length?e.effects.animateClass.call(this,{remove:t},n,i,r):q.apply(this,arguments)}),toggleClass:(U=e.fn.toggleClass,function(t,n,i,r,o){return"boolean"==typeof n||void 0===n?i?e.effects.animateClass.call(this,n?{add:t}:{remove:t},i,r,o):U.apply(this,arguments):e.effects.animateClass.call(this,{toggle:t},n,i,r)}),switchClass:function(t,n,i,r,o){return e.effects.animateClass.call(this,{add:n,remove:t},i,r,o)}}),e.expr&&e.expr.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=(K=e.expr.pseudos.animated,function(t){return!!e(t).data(ie)||K(t)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var n=0,i=t.length;n<i;n++)null!==t[n]&&e.data(te+t[n],e[0].style[t[n]])},restore:function(e,t){for(var n,i=0,r=t.length;i<r;i++)null!==t[i]&&(n=e.data(te+t[i]),e.css(t[i],n))},setMode:function(e,t){return"toggle"===t?e.is(":hidden")?"show":"hide":t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},i=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(i){o=document.body}return t.wrap(i),t[0]!==o&&!e.contains(t[0],o)||e(o).trigger("focus"),i=t.parent(),"static"===t.css("position")?(i.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,i){n[i]=t.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(r),i.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==n&&!e.contains(t[0],n)||e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.13.2",define:function(t,n,i){return i||(i=n,n="effect"),e.effects.effect[t]=i,e.effects.effect[t].mode=n,i},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var i="horizontal"!==n?(t||100)/100:1;return t="vertical"!==n?(t||100)/100:1,{height:e.height()*t,width:e.width()*i,outerHeight:e.outerHeight()*t,outerWidth:e.outerWidth()*i}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var i=e.queue();1<t&&i.splice.apply(i,[1,0].concat(i.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data(ne,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(ne)||"",e.removeData(ne)},mode:function(e,t){return e=e.is(":hidden"),"toggle"===t&&(t=e?"show":"hide"),(e?"hide"===t:"show"===t)?"none":t},getBaseline:function(e,t){var n,i;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=e[1]/t.width}return{x:i,y:n}},createPlaceholder:function(t){var n,i=t.css("position"),r=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",n=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(te+"placeholder",n)),t.css({position:i,left:r.left,top:r.top}),n},removePlaceholder:function(e){var t=te+"placeholder",n=e.data(t);n&&(n.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,i,r){return r=r||{},e.each(n,(function(e,n){var o=t.cssUnit(n);0<o[0]&&(r[n]=o[0]*i+o[1])})),r}}),e.fn.extend({effect:function(){function t(t){var n=e(this),i=e.effects.mode(n,l)||r;n.data(ie,!0),c.push(i),r&&("show"===i||i===r&&"hide"===i)&&n.show(),r&&"none"===i||e.effects.saveStyle(n),"function"==typeof t&&t()}var n=oe.apply(this,arguments),i=e.effects.effect[n.effect],r=i.mode,o=n.queue,s=o||"fx",a=n.complete,l=n.mode,c=[];return e.fx.off||!i?l?this[l](n.duration,a):this.each((function(){a&&a.call(this)})):!1===o?this.each(t).each(u):this.queue(s,t).queue(s,u);function u(t){var o=e(this);function s(){"function"==typeof a&&a.call(o[0]),"function"==typeof t&&t()}n.mode=c.shift(),!1===e.uiBackCompat||r?"none"===n.mode?(o[l](),s()):i.call(o[0],n,(function(){o.removeData(ie),e.effects.cleanUp(o),"hide"===n.mode&&o.hide(),s()})):(o.is(":hidden")?"hide"===l:"show"===l)?(o[l](),s()):i.call(o[0],n,s)}},show:(Q=e.fn.show,function(e){return se(e)?Q.apply(this,arguments):((e=oe.apply(this,arguments)).mode="show",this.effect.call(this,e))}),hide:(X=e.fn.hide,function(e){return se(e)?X.apply(this,arguments):((e=oe.apply(this,arguments)).mode="hide",this.effect.call(this,e))}),toggle:(J=e.fn.toggle,function(e){return se(e)||"boolean"==typeof e?J.apply(this,arguments):((e=oe.apply(this,arguments)).mode="toggle",this.effect.call(this,e))}),cssUnit:function(t){var n=this.css(t),i=[];return e.each(["em","px","%","pt"],(function(e,t){0<n.indexOf(t)&&(i=[parseFloat(n),t])})),i},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):ae(this.css("clip"),this)},transfer:function(t,n){var i=e(this),r="fixed"===(l=e(t.to)).css("position"),o=e("body"),s=r?o.scrollTop():0,a=r?o.scrollLeft():0,l=(o={top:(o=l.offset()).top-s,left:o.left-a,height:l.innerHeight(),width:l.innerWidth()},i.offset()),c=e("<div class='ui-effects-transfer'></div>");c.appendTo("body").addClass(t.className).css({top:l.top-s,left:l.left-a,height:i.innerHeight(),width:i.innerWidth(),position:r?"fixed":"absolute"}).animate(o,t.duration,t.easing,(function(){c.remove(),"function"==typeof n&&n()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=ae(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},Z={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,t){Z[t]=function(t){return Math.pow(t,e+2)}})),e.extend(Z,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(Z,(function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}})),e.effects,e.effects.define("fade","toggle",(function(t,n){var i="show"===t.mode;e(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:n})})),e.effects.define("size",(function(t,n){var i,r=e(this),o=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],a=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],l=t.mode,c="effect"!==l,u=t.scale||"both",d=t.origin||["middle","center"],h=r.css("position"),f=r.position(),p=e.effects.scaledDimensions(r),m=t.from||p,g=t.to||e.effects.scaledDimensions(r,0);e.effects.createPlaceholder(r),"show"===l&&(l=m,m=g,g=l),i={from:{y:m.height/p.height,x:m.width/p.width},to:{y:g.height/p.height,x:g.width/p.width}},"box"!==u&&"both"!==u||(i.from.y!==i.to.y&&(m=e.effects.setTransition(r,s,i.from.y,m),g=e.effects.setTransition(r,s,i.to.y,g)),i.from.x!==i.to.x&&(m=e.effects.setTransition(r,a,i.from.x,m),g=e.effects.setTransition(r,a,i.to.x,g))),"content"!==u&&"both"!==u||i.from.y!==i.to.y&&(m=e.effects.setTransition(r,o,i.from.y,m),g=e.effects.setTransition(r,o,i.to.y,g)),d&&(d=e.effects.getBaseline(d,p),m.top=(p.outerHeight-m.outerHeight)*d.y+f.top,m.left=(p.outerWidth-m.outerWidth)*d.x+f.left,g.top=(p.outerHeight-g.outerHeight)*d.y+f.top,g.left=(p.outerWidth-g.outerWidth)*d.x+f.left),delete m.outerHeight,delete m.outerWidth,r.css(m),"content"!==u&&"both"!==u||(s=s.concat(["marginTop","marginBottom"]).concat(o),a=a.concat(["marginLeft","marginRight"]),r.find("*[width]").each((function(){var n=e(this),r={height:(o=e.effects.scaledDimensions(n)).height*i.from.y,width:o.width*i.from.x,outerHeight:o.outerHeight*i.from.y,outerWidth:o.outerWidth*i.from.x},o={height:o.height*i.to.y,width:o.width*i.to.x,outerHeight:o.height*i.to.y,outerWidth:o.width*i.to.x};i.from.y!==i.to.y&&(r=e.effects.setTransition(n,s,i.from.y,r),o=e.effects.setTransition(n,s,i.to.y,o)),i.from.x!==i.to.x&&(r=e.effects.setTransition(n,a,i.from.x,r),o=e.effects.setTransition(n,a,i.to.x,o)),c&&e.effects.saveStyle(n),n.css(r),n.animate(o,t.duration,t.easing,(function(){c&&e.effects.restoreStyle(n)}))}))),r.animate(g,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=r.offset();0===g.opacity&&r.css("opacity",m.opacity),c||(r.css("position","static"===h?"relative":h).offset(t),e.effects.saveStyle(r)),n()}})})),e.effects.define("slide","show",(function(t,n){var i,r,o=e(this),s={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,d=t.distance||o["top"==c?"outerHeight":"outerWidth"](!0),h={};e.effects.createPlaceholder(o),i=o.cssClip(),r=o.position()[c],h[c]=(u?-1:1)*d+r,h.clip=o.cssClip(),h.clip[s[l][1]]=h.clip[s[l][0]],"show"===a&&(o.cssClip(h.clip),o.css(c,h[c]),h.clip=i,h[c]=r),o.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}))},void 0===(o=i.apply(t,r))||(e.exports=o)}()},1604:()=>{!function(e){"use strict";e.picturefill=function(){for(var t=e.document.getElementsByTagName("span"),n=0,i=t.length;n<i;n++)if(null!==t[n].getAttribute("data-picture")){for(var r=t[n].getElementsByTagName("span"),o=[],s=0,a=r.length;s<a;s++){var l=r[s].getAttribute("data-media");if(l&&l.indexOf("min-device-pixel-ratio")>-1){var c=l.replace("min-device-pixel-ratio","-webkit-min-device-pixel-ratio"),u=l.replace("min-device-pixel-ratio","-moz-min-device-pixel-ratio"),d=l.replace("min-device-pixel-ratio","-o-min-device-pixel-ratio");l=c+","+u+","+d+","+l}(!l||e.matchMedia&&e.matchMedia(l).matches)&&o.push(r[s])}var h=t[n].getElementsByTagName("img")[0];o.length?(h||((h=e.document.createElement("img")).alt=t[n].getAttribute("data-alt"),t[n].appendChild(h)),h.src=o.pop().getAttribute("data-src")):h&&t[n].removeChild(h)}},e.addEventListener?(e.addEventListener("resize",e.picturefill,!1),e.addEventListener("DOMContentLoaded",(function(){e.picturefill(),e.removeEventListener("load",e.picturefill,!1)}),!1),e.addEventListener("load",e.picturefill,!1)):e.attachEvent&&e.attachEvent("onload",e.picturefill)}(window)},6488:(e,t,n)=>{function i(e){return i="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},i(e)}Function&&Function.prototype&&Function.prototype.bind&&(/MSIE [678]/.test(navigator.userAgent)||function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,(function(e){return r(t[s][1][e]||e)}),c,c.exports,e,t,n,i)}return n[s].exports}for(var o=void 0,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t,r){(function(){"use strict";function e(e){return"function"==typeof e}function r(){for(var e=0;w>e;e+=2)(0,x[e])(x[e+1]),x[e]=void 0,x[e+1]=void 0;w=0}function o(){}function s(t,n){t===n?c(t,new TypeError("You cannot resolve a promise with itself")):function(e){return"function"==typeof e||"object"==i(e)&&null!==e}(n)?function(t,n){if(n.constructor===t.constructor)!function(e,t){t._state===j?l(e,t._result):e._state===O?c(e,t._result):u(t,void 0,(function(t){s(e,t)}),(function(t){c(e,t)}))}(t,n);else{var i=function(e){try{return e.then}catch(e){return E.error=e,E}}(n);i===E?c(t,E.error):void 0===i?l(t,n):e(i)?function(e,t,n){_((function(e){var i=!1,r=function(e,t,n,i){try{e.call(t,n,i)}catch(e){return e}}(n,t,(function(n){i||(i=!0,t!==n?s(e,n):l(e,n))}),(function(t){i||(i=!0,c(e,t))}),e._label);!i&&r&&(i=!0,c(e,r))}),e)}(t,n,i):l(t,n)}}(t,n):l(t,n)}function a(e){e._onerror&&e._onerror(e._result),d(e)}function l(e,t){e._state===C&&(e._result=t,e._state=j,0===e._subscribers.length||_(d,e))}function c(e,t){e._state===C&&(e._state=O,e._result=t,_(a,e))}function u(e,t,n,i){var r=e._subscribers,o=r.length;e._onerror=null,r[o]=t,r[o+j]=n,r[o+O]=i,0===o&&e._state&&_(d,e)}function d(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i,r,o=e._result,s=0;s<t.length;s+=3)i=t[s],r=t[s+n],i?f(n,i,r,o):r(o);e._subscribers.length=0}}function h(){this.error=null}function f(t,n,i,r){var o,a,u,d,h=e(i);if(h){if(o=function(e,t){try{return e(t)}catch(e){return P.error=e,P}}(i,r),o===P?(d=!0,a=o.error,o=null):u=!0,n===o)return void c(n,new TypeError("A promises callback cannot return that same promise."))}else o=r,u=!0;n._state!==C||(h&&u?s(n,o):d?c(n,a):t===j?l(n,o):t===O&&c(n,o))}function p(e,t,n,i){this._instanceConstructor=e,this.promise=new e(o,i),this._abortOnReject=n,this._validateInput(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._init(),0===this.length?l(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&l(this.promise,this._result))):c(this.promise,this._validationError())}function m(t){this._id=L++,this._state=void 0,this._result=void 0,this._subscribers=[],o!==t&&(e(t)||function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof m||function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}(),function(e,t){try{t((function(t){s(e,t)}),(function(t){c(e,t)}))}catch(t){c(e,t)}}(this,t))}var g;g=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var v,y,b=g,w=(Date.now,Object.create,0),_=function(e,t){x[w]=e,x[w+1]=t,2===(w+=2)&&v()},k="undefined"!=typeof window?window:{},S=k.MutationObserver||k.WebKitMutationObserver,T="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,x=new Array(1e3);v="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?function(){process.nextTick(r)}:S?function(){var e=0,t=new S(r),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():T?((y=new MessageChannel).port1.onmessage=r,function(){y.port2.postMessage(0)}):function(){setTimeout(r,1)};var C=void 0,j=1,O=2,E=new h,P=new h;p.prototype._validateInput=function(e){return b(e)},p.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},p.prototype._init=function(){this._result=new Array(this.length)};var D=p;p.prototype._enumerate=function(){for(var e=this.length,t=this.promise,n=this._input,i=0;t._state===C&&e>i;i++)this._eachEntry(n[i],i)},p.prototype._eachEntry=function(e,t){var n=this._instanceConstructor;!function(e){return"object"==i(e)&&null!==e}(e)?(this._remaining--,this._result[t]=this._makeResult(j,t,e)):e.constructor===n&&e._state!==C?(e._onerror=null,this._settledAt(e._state,t,e._result)):this._willSettleAt(n.resolve(e),t)},p.prototype._settledAt=function(e,t,n){var i=this.promise;i._state===C&&(this._remaining--,this._abortOnReject&&e===O?c(i,n):this._result[t]=this._makeResult(e,t,n)),0===this._remaining&&l(i,this._result)},p.prototype._makeResult=function(e,t,n){return n},p.prototype._willSettleAt=function(e,t){var n=this;u(e,void 0,(function(e){n._settledAt(j,t,e)}),(function(e){n._settledAt(O,t,e)}))};var L=0,A=m;m.all=function(e,t){return new D(this,e,!0,t).promise},m.race=function(e,t){function n(e){s(r,e)}function i(e){c(r,e)}var r=new this(o,t);if(!b(e))return c(r,new TypeError("You must pass an array to race.")),r;for(var a=e.length,l=0;r._state===C&&a>l;l++)u(this.resolve(e[l]),void 0,n,i);return r},m.resolve=function(e,t){if(e&&"object"==i(e)&&e.constructor===this)return e;var n=new this(o,t);return s(n,e),n},m.reject=function(e,t){var n=new this(o,t);return c(n,e),n},m.prototype={constructor:m,then:function(e,t){var n=this,i=n._state;if(i===j&&!e||i===O&&!t)return this;var r=new this.constructor(o),s=n._result;if(i){var a=arguments[i-1];_((function(){f(i,r,a,s)}))}else u(n,r,e,t);return r},catch:function(e){return this.then(null,e)}};var M={Promise:A,polyfill:function(){var t;"Promise"in(t=void 0!==n.g?n.g:"undefined"!=typeof window&&window.document?window:self)&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&function(){var n;return new t.Promise((function(e){n=e})),e(n)}()||(t.Promise=A)}};void 0!==t&&t.exports?t.exports=M:void 0!==this&&(this.ES6Promise=M)}).call(this)},{}],2:[function(e,t,n){function i(e,t){return((t=t||r).requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||t.oRequestAnimationFrame||function(){t.setTimeout((function(){e(+new Date)}),1e3/60)})(e)}var r=e(14);t.exports={animate:function(e,t,n,r,o){var s=+new Date;i((function a(){var l=+new Date-s,c=Math.min(l/n,1),u=r?r(t,c):t*c,d=1==c;e(u,d),d||i(a,o)}))},requestAnimationFrame:i,easeOut:function(e,t){return Math.sin(Math.PI/2*t)*e}}},{14:14}],3:[function(e,t,n){function i(){return l.builtUrl(u)}function r(e,t,n){var i,r;return n=function(e){return"dark"===e?"dark":"light"}(n),i=a.isRtlLang(t)?"rtl":"ltr",r=[e,c.css,n,i,"css"].join("."),l.base()+"/css/"+r}function o(e){return function(){return s.isEnabled()?e.apply(null,arguments):i()}}var s=e(4),a=e(20),l=e(38),c=e(74),u="embed/timeline.css";t.exports={tweet:o(r.bind(null,"tweet")),timeline:i,video:o(r.bind(null,"video")),tweetRefresh:r.bind(null,"tweet")}},{20:20,38:38,4:4,74:74}],4:[function(e,t,n){var i=e(14),r=e(17),o=e(68),s=e(71);t.exports={isEnabled:function(){return s.contains(i.location.hash,"__twREFRESH__")||o.asBoolean(r.val("widgets:new-embed-design"))}}},{14:14,17:17,68:68,71:71}],5:[function(e,t,n){function i(e){return new RegExp("\\b"+e+"\\b","g")}function r(e,t){return e.classList?void e.classList.add(t):void(i(t).test(e.className)||(e.className+=" "+t))}function o(e,t){return e.classList?void e.classList.remove(t):void(e.className=e.className.replace(i(t)," "))}function s(e,t){return e.classList?e.classList.contains(t):i(t).test(e.className)}t.exports={add:r,remove:o,replace:function(e,t,n){return e.classList&&s(e,t)?(o(e,t),void r(e,n)):void(e.className=e.className.replace(i(t),n))},toggle:function(e,t,n){return void 0===n&&e.classList&&e.classList.toggle?e.classList.toggle(t,n):(n?r(e,t):o(e,t),n)},present:s}},{}],6:[function(e,t,n){function i(e){return e.getAttribute("data-twitter-event-id")||(e.setAttribute("data-twitter-event-id",++u),u)}function r(e,t,n){var i=0,r=e&&e.length||0;for(i=0;r>i;i++)e[i].call(t,n)}function o(e,t,n){for(var i=n||e.target||e.srcElement,s=i.className.split(" "),a=0,l=s.length;l>a;a++)r(t["."+s[a]],i,e);r(t[i.tagName],i,e),e.cease||i!==this&&o.call(this,e,t,i.parentElement||i.parentNode)}function s(e,t,n,i){function r(i){o.call(e,i,n[t])}(function(e,t,n,i){e.id&&(d[e.id]=d[e.id]||[],d[e.id].push({el:e,listener:t,type:n,rootId:i}))})(e,r,t,i),e.addEventListener(t,r,!1)}function a(e){e&&e.preventDefault?e.preventDefault():e.returnValue=!1}function l(e){e&&(e.cease=!0)&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}var c={},u=-1,d={};t.exports={stop:function(e){return l(e),a(e),!1},stopPropagation:l,preventDefault:a,delegate:function(e,t,n,r){var o=i(e);c[o]=c[o]||{},c[o][t]||(c[o][t]={},s(e,t,c[o],o)),c[o][t][n]=c[o][t][n]||[],c[o][t][n].push(r)},simulate:function(e,t,n){var r=i(t),s=c[r]&&c[r];o.call(t,{target:n},s[e])},removeDelegatesForWidget:function(e){var t=d[e];t&&(t.forEach((function(e){e.el.removeEventListener(e.type,e.listener,!1),delete c[e.rootId]})),delete d[e])}}},{}],7:[function(e,t,n){var i=e(71);t.exports={closest:function e(t,n,r){var o;if(n)return r=r||n&&n.ownerDocument,o=i.isType("function",t)?t:function(e){var t=e.charAt(0);return"."===t?function(t){var n=t.className?t.className.split(/\s+/):[];return i.contains(n,e.slice(1))}:"#"===t?function(t){return t.id===e.slice(1)}:function(t){return t.tagName===e.toUpperCase()}}(t),n===r?o(n)?n:void 0:o(n)?n:e(o,n.parentNode,r)}}},{71:71}],8:[function(e,t,n){var i=e(14);t.exports={getSelection:function(e){return(e=e||i).getSelection&&e.getSelection().toString()}}},{14:14}],9:[function(e,t,n){t.exports={effectiveWidth:function e(t){return t&&1===t.nodeType?t.offsetWidth||e(t.parentNode):0}}},{}],10:[function(e,t,n){function i(e){return(e||"").replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}var r=e(11),o={};t.exports=function(e,t,n){var s,a,l=r.createElement("span"),c={},u=0,d=0,h=[];if(a=function(e,t,n){for(var i,r=[],o=0;i=n[o];o++)r.push(i[0]),r.push(i[1]);return e+t+r.join(":")}(e,t=t||"",n=n||[]),o[a])return o[a];l.className=t+" twitter-measurement";try{for(;s=n[u];u++)l.style[s[0]]=s[1]}catch(e){for(;s=n[d];d++)h.push(i(s[0])+":"+s[1]);l.setAttribute("style",h.join(";")+";")}return l.innerHTML=e,r.body.appendChild(l),c.width=l.clientWidth||l.offsetWidth,c.height=l.clientHeight||l.offsetHeight,r.body.removeChild(l),l=null,o[a]=c}},{11:11}],11:[function(e,t,n){t.exports=document},{}],12:[function(e,t,n){t.exports=location},{}],13:[function(e,t,n){t.exports=navigator},{}],14:[function(e,t,n){t.exports=window},{}],15:[function(e,t,n){t.exports={exposeReadyPromise:function(e,t,n){t.ready=e.then.bind(e),n&&Array.isArray(t[n])&&(t[n].forEach(e.then.bind(e)),delete t[n])}}},{}],16:[function(e,t,n){function i(e){return a.isType("string",e)?e.split("."):a.isType("array",e)?e:[]}function r(e,t){var n=i(t).slice(0,-1);return n.reduce((function(e,t,i){if(e[t]=e[t]||{},!a.isObject(e[t]))throw new Error(n.slice(0,i+1).join(".")+" is already defined with a value.");return e[t]}),e)}function o(e,t){(t=t||s)[e]=t[e]||{},Object.defineProperty(this,"base",{value:t[e]}),Object.defineProperty(this,"name",{value:e})}var s=e(14),a=e(71);a.aug(o.prototype,{get:function(e){return i(e).reduce((function(e,t){return a.isObject(e)?e[t]:void 0}),this.base)},set:function(e,t,n){var o=i(e),s=r(this.base,e),a=o.slice(-1);return n&&a in s?s[a]:s[a]=t},init:function(e,t){return this.set(e,t,!0)},unset:function(e){var t=i(e),n=this.get(t.slice(0,-1));n&&delete n[t.slice(-1)]},aug:function(e){var t=this.get(e),n=a.toRealArray(arguments).slice(1);if(t=void 0!==t?t:{},n.unshift(t),!n.every(a.isObject))throw new Error("Cannot augment non-object.");return this.set(e,a.aug.apply(null,n))},call:function(e){var t=this.get(e),n=a.toRealArray(arguments).slice(1);if(!a.isType("function",t))throw new Error("Function "+e+"does not exist.");return t.apply(null,n)},fullPath:function(e){var t=i(e);return t.unshift(this.name),t.join(".")}}),t.exports=o},{14:14,71:71}],17:[function(e,t,n){function i(e){var t,n,i,s=0;for(r={},t=(e=e||o).getElementsByTagName("meta");n=t[s];s++)/^twitter:/.test(n.name)&&(i=n.name.replace(/^twitter:/,""),r[i]=n.content)}var r,o=e(11);i(),t.exports={init:i,val:function(e){return r[e]}}},{11:11}],18:[function(e,t,n){var i=e(16);t.exports=new i("__twttr")},{16:16}],19:[function(e,t,n){var i=e(16);t.exports=new i("twttr")},{16:16}],20:[function(e,t,n){var i=e(71),r=["ar","fa","he","ur"];t.exports={isRtlLang:function(e){return e=String(e).toLowerCase(),i.contains(r,e)}}},{71:71}],21:[function(e,t,n){function i(e){var t,n;e.altKey||e.metaKey||e.shiftKey||(t=s.closest((function(e){return"A"===e.tagName||"AREA"===e.tagName}),e.target))&&l.isIntentURL(t.href)&&(n=function(e){return[e,"original_referer="+(~r.host.indexOf("poptip.com")?"https://poptip.com":r.href)].join(-1==e.indexOf("?")?"?":"&")}(t.href),n=(n=n.replace(/^http[:]/,"https:")).replace(/^\/\//,"https://"),a.open(n,t),o.preventDefault(e))}var r=e(12),o=e(6),s=e(7),a=e(46),l=e(67);t.exports={attachTo:function(e){e.addEventListener("click",i,!1)}}},{12:12,46:46,6:6,67:67,7:7}],22:[function(e,t,n){function i(e,t){function n(e){return Math.round(e/2)}return e>t?{coordinate:0,size:t}:{coordinate:n(t)-n(e),size:e}}function r(e,t,n){var r,s;n=n||{},r=i((t=o.parse(t)).width,n.width||d),t.left=r.coordinate,t.width=r.size,s=i(t.height,n.height||h),t.top=s.coordinate,t.height=s.size,this.win=e,this.features=function(e){var t=[];return u.forIn(e,(function(e,n){t.push(e+"="+n)})),t.join(",")}(t)}var o,s=e(14),a=e(62),l=e(67),c=e(69),u=e(71),d=s.screen.width,h=s.screen.height;o=(new a).defaults({width:550,height:520,personalbar:"0",toolbar:"0",location:"1",scrollbars:"1",resizable:"1"}),r.prototype.open=function(e){return l.isTwitterURL(e)?(this.name="intent_"+c.generate(),this.popup=this.win.open(e,this.name,this.features),this):void 0},r.open=function(e,t){return new r(s,t).open(e)},t.exports=r},{14:14,62:62,67:67,69:69,71:71}],23:[function(e,t,n){function i(e){return a[e]?+new Date-a[e]:null}function r(e,t,n,i,r){var a,c=void 0===r?l:r;100*Math.random()>c||(n=s.aug(n||{},{duration_ms:i}),a={page:t,component:"performance",action:e},o.clientEvent(a,n,!0))}var o=e(33),s=e(71),a={},l=1;t.exports={start:function(e){a[e]=+new Date},end:i,track:r,endAndTrack:function(e,t,n,o,s){var a=i(t);a&&r(e,n,o,a,s)}}},{33:33,71:71}],24:[function(e,t,n){function i(e){if(!e)throw new Error("JsonRpcClient requires a dispatcher");this.idIterator=0,this.dispatcher=e,this.idPrefix=String(+new Date)+a++}function r(e){var t={jsonrpc:s,method:e};return arguments.length>1&&(t.params=[].slice.call(arguments,1)),t}var o=e(64),s="2.0",a=0;i.prototype._generateId=function(){return this.idPrefix+this.idIterator++},i.prototype.notify=function(){this.dispatcher.send(r.apply(null,arguments))},i.prototype.request=function(){var e=r.apply(null,arguments);return e.id=this._generateId(),this.dispatcher.send(e).then((function(e){return"result"in e?e.result:o.reject(e.error)}))},t.exports=i},{64:64}],25:[function(e,t,n){t.exports={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INTERNAL_ERROR:{code:-32603,message:"Internal error"}}},{}],26:[function(e,t,n){function i(e){this.registry=e||{}}function r(e){var t,n;return t=a.isType("string",e),n=a.isType("number",e),t||n||null===e}function o(e,t){return{jsonrpc:c,id:r(e)?e:null,error:t}}var s=e(25),a=e(71),l=e(64),c="2.0";i.prototype._invoke=function(e,t){var n,i,r;n=this.registry[e.method],i=e.params||[],i=a.isType("array",i)?i:[i];try{r=n.apply(t.source||null,i)}catch(e){r=l.reject(e.message)}return l.isThenable(r)?r:l.fulfill(r)},i.prototype._processRequest=function(e,t){var n;return function(e){var t,n,i;return!!a.isObject(e)&&(t=e.jsonrpc===c,n=a.isType("string",e.method),i=!("id"in e)||r(e.id),t&&n&&i)}(e)?(n="params"in e&&!function(e){return a.isObject(e)&&!a.isType("function",e)}(e.params)?l.fulfill(o(e.id,s.INVALID_PARAMS)):this.registry[e.method]?this._invoke(e,{source:t}).then((function(t){return function(e,t){return{jsonrpc:c,id:e,result:t}}(e.id,t)}),(function(){return o(e.id,s.INTERNAL_ERROR)})):l.fulfill(o(e.id,s.METHOD_NOT_FOUND)),null!=e.id?n:l.fulfill()):l.fulfill(o(e.id,s.INVALID_REQUEST))},i.prototype.attachReceiver=function(e){return e.attachTo(this),this},i.prototype.bind=function(e,t){return this.registry[e]=t,this},i.prototype.receive=function(e,t){var n,i,r=this;try{e=function(e){return a.isType("string",e)?JSON.parse(e):e}(e)}catch(e){return l.fulfill(o(null,s.PARSE_ERROR))}return t=t||null,i=((n=a.isType("array",e))?e:[e]).map((function(e){return r._processRequest(e,t)})),n?function(e){return l.every.apply(l,e).then((function(e){return(e=e.filter((function(e){return void 0!==e}))).length?e:void 0}))}(i):i[0]},t.exports=i},{25:25,64:64,71:71}],27:[function(e,t,n){function i(e,t,n){var i;e&&e.postMessage&&(p?i=(n||"")+JSON.stringify(t):n?(i={})[n]=t:i=t,e.postMessage(i,"*"))}function r(e){return d.isType("string",e)?e:"JSONRPC"}function o(e,t){return t?d.isType("string",e)&&0===e.indexOf(t)?e.substring(t.length):e[t]?e[t]:void 0:e}function s(e,t){var n=e.document;this.filter=r(t),this.server=null,this.isTwitterFrame=f.isTwitterURL(n.location.href),e.addEventListener("message",this._onMessage.bind(this),!1)}function a(e,t){this.pending={},this.target=e,this.isTwitterHost=f.isTwitterURL(l.href),this.filter=r(t),c.addEventListener("message",this._onMessage.bind(this),!1)}var l=e(12),c=e(14),u=e(57),d=e(71),h=e(64),f=e(67),p=u.ie9();d.aug(s.prototype,{_onMessage:function(e){var t,n=this;this.server&&(!this.isTwitterFrame||f.isTwitterURL(e.origin))&&(t=o(e.data,this.filter))&&this.server.receive(t,e.source).then((function(t){t&&i(e.source,t,n.filter)}))},attachTo:function(e){this.server=e},detach:function(){this.server=null}}),d.aug(a.prototype,{_processResponse:function(e){var t=this.pending[e.id];t&&(t.fulfill(e),delete this.pending[e.id])},_onMessage:function(e){var t;if((!this.isTwitterHost||f.isTwitterURL(e.origin))&&(t=o(e.data,this.filter))){if(d.isType("string",t))try{t=JSON.parse(t)}catch(e){return}(t=d.isType("array",t)?t:[t]).forEach(this._processResponse.bind(this))}},send:function(e){var t,n=this.pending;return t=e.id?new h((function(t){n[e.id]=t})):h.fulfill(),i(this.target,e,this.filter),t}}),t.exports={Receiver:s,Dispatcher:a,_stringifyPayload:function(e){return arguments.length>0&&(p=!!e),p}}},{12:12,14:14,57:57,64:64,67:67,71:71}],28:[function(e,t,n){function i(e,t,n,i){var o,l=this;this.readyPromise=new a((function(e){l.resolver=e})),this.attrs=e||{},this.styles=t||{},this.appender=n||function(e){r.body.appendChild(e)},this.layout=i||function(e){return new a((function(t){return t.fulfill(e())}))},this.frame=o=s(this.attrs,this.styles),o.onreadystatechange=o.onload=this.getCallback(this.onLoad),this.layout((function(){l.appender(o)}))}var r=e(11),o=e(57),s=e(59),a=e(64),l=e(18),c=0;i.prototype.getCallback=function(e){var t=this,n=!1;return function(){n||(n=!0,e.call(t))}},i.prototype.registerCallback=function(e){var t="cb"+c++;return l.set(["sandbox",t],e),t},i.prototype.onLoad=function(){try{this.document=this.frame.contentWindow.document}catch(e){return void this.setDocDomain()}this.writeStandardsDoc(),this.resolver.fulfill(this)},i.prototype.ready=function(){return this.readyPromise},i.prototype.setDocDomain=function(){var e=this,t=s(this.attrs,this.styles),n=this.registerCallback(this.getCallback(this.onLoad));t.src=["javascript:",'document.write("");',"try { window.parent.document; }","catch (e) {",'document.domain="'+r.domain+'";',"}","window.parent."+l.fullPath(["sandbox",n])+"();"].join(""),this.layout((function(){e.frame.parentNode.removeChild(e.frame),e.frame=null,e.appender?e.appender(t):r.body.appendChild(t),e.frame=t}))},i.prototype.writeStandardsDoc=function(){if(o.anyIE()&&!o.cspEnabled()){var e=["<!DOCTYPE html>","<html>","<head>","<scr","ipt>","try { window.parent.document; }",'catch (e) {document.domain="'+r.domain+'";}',"</scr","ipt>","</head>","<body></body>","</html>"].join("");this.document.write(e),this.document.close()}},t.exports=i},{11:11,18:18,57:57,59:59,64:64}],29:[function(e,t,n){function i(e,t){var n=this;l.apply(this,[e,t]),this._resizeHandlers=[],m=m.filter((function(e){var t=e._frame.parentElement;return t||d.async((function(){h.removeDelegatesForWidget(e._frame.id)})),t})),m.push(this),this._win.addEventListener("resize",(function(){n.dispatchFrameResize()}),!1)}var r,o=e(11),s=e(14),a=e(28),l=e(30),c=e(57),u=e(64),d=e(71),h=e(6),f=e(5),p=0,m=[],g={},v=0,y=0;s.addEventListener("resize",(function(){var e,t;g={},r||(e=o.body.offsetHeight,t=o.body.offsetWidth,(e!=y||t!=v)&&(m.forEach((function(e){e.dispatchFrameResize(v,y)})),y=e,v=t))}),!1),i.prototype=new l,d.aug(i.prototype,{dispatchFrameResize:function(){var e=function(e){var t;return e.id?e.id:((t=e.getAttribute("data-twttr-id"))||(t="twttr-sandbox-"+p++,e.setAttribute("data-twttr-id",t)),t)}(this._frame.parentNode),t=g[e];r=!0,this._resizeHandlers.length&&(t||(t=g[e]={w:this._frame.offsetWidth,h:this._frame.offsetHeight}),(this._frameWidth!=t.w||this._frameHeight!=t.h)&&(this._frameWidth=t.w,this._frameHeight=t.h,this._resizeHandlers.forEach((function(e){e(t.w,t.h)})),s.setTimeout((function(){g={}}),50)))},addClass:function(e){var t=this._doc.documentElement;return this.layout((function(){f.add(t,e)}))},appendStyleSheet:function(e,t){var n=this,i=this._doc.createElement("link");return i.type="text/css",i.rel="stylesheet",i.href=e,t&&(i.onload=t),this.layout((function(){return n._head.appendChild(i)}))},removeStyleSheet:function(e){var t,n=this;return t='link[rel="stylesheet"][href="'+e+'"]',this.layout((function(){var e=n._doc.querySelector(t);return e&&n._head.removeChild(e)}))},appendCss:function(e){var t,n=this;return c.cspEnabled()?u.reject("CSP enabled; cannot embed inline styles."):((t=this._doc.createElement("style")).type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(this._doc.createTextNode(e)),this.layout((function(){return n._head.appendChild(t)})))},style:function(e,t){var n=this;return this.layout((function(){t&&(n._frame.style.cssText=""),d.forIn(e,(function(e,t){n._frame.style[e]=t}))}))},onresize:function(e){this._resizeHandlers.push(e)},width:function(e){return void 0!==e&&(this._frame.style.width=e+"px"),c.ios()?Math.min(this._frame.parentNode.offsetWidth,this._frame.offsetWidth):this._frame.offsetWidth},height:function(e){return void 0!==e&&(this._frame.height=e),this._frame.offsetHeight},contentHeight:function(){return this._doc.body.firstChild.offsetHeight},hasContent:function(){return!!this._doc.body.firstChild},resizeToContent:function(){var e=this;return this.layout((function(){return e.height(e.contentHeight())}))}}),i.createSandbox=function(e,t,n,r){return new a(e,t,n,r).ready().then((function(e){return new i(e.frame,e.layout)}))},t.exports=i},{11:11,14:14,28:28,30:30,5:5,57:57,6:6,64:64,71:71}],30:[function(e,t,n){function i(e,t){e&&(this._frame=e,this._win=e.contentWindow,this._doc=this._win.document,this._body=this._doc.body,this._head=this._body.parentNode.children[0],this.layout=t,this._doc.documentElement.className="SandboxRoot")}var r=e(28);e(71).aug(i.prototype,{createElement:function(e){return this._doc.createElement(e)},createDocumentFragment:function(){return this._doc.createDocumentFragment()},appendChild:function(e){var t=this;return this.layout((function(){return t._body.appendChild(e)}))},setBaseTarget:function(e){var t=this,n=this._doc.createElement("base");return n.target=e,this.layout((function(){return t._head.appendChild(n)}))},setTitle:function(e){e&&(this._frame.title=e)},element:function(){return this._frame},document:function(){return this._doc}}),i.createSandbox=function(e,t,n,o){return new r(e,t,n,o).ready().then((function(e){return new i(e.frame,e.layout)}))},t.exports=i},{28:28,71:71}],31:[function(e,t,n){function i(e){s.isHostPageSensitive()||a[e]||(a[e]=!0,r.scribe(o.formatClientEventNamespace({page:e,action:"impression"}),o.formatGenericEventData("syndicated_impression",{}),o.AUDIENCE_ENDPOINT))}var r=e(33),o=e(34),s=e(66),a={};t.exports={scribePartnerTweetAudienceImpression:function(){i("partnertweet")},scribeTweetAudienceImpression:function(){i("tweet")},scribeTimelineAudienceImpression:function(){i("timeline")},scribeVideoAudienceImpression:function(){i("video")}}},{33:33,34:34,66:66}],32:[function(e,t,n){function i(){var e=a.createElement("form"),t=a.createElement("input"),n=a.createElement("input");return b++,e.action=f.CLIENT_EVENT_ENDPOINT,e.method="POST",e.target=v+b,e.id=y+b,t.type="hidden",t.name="dnt",t.value=u.enabled(),n.type="hidden",n.name="tfw_redirect",n.value=f.RUFOUS_REDIRECT,e.appendChild(t),e.appendChild(n),e}function r(){var e=v+b;return c({id:e,name:e,width:0,height:0,border:0},{display:"none"},a.document())}var o,s,a,l,c=e(59),u=e(56),d=e(30),h=e(64),f=e(34),p=e(71),m=e(19),g=Math.floor(1e3*Math.random())+"_",v="rufous-frame-"+g+"-",y="rufous-form-"+g+"-",b=0,w=!1,_=new h((function(e){l=e}));t.exports={clientEvent:function(e,t,n){var i=!p.isObject(e),r=!!t&&!p.isObject(t);i||r||_.then((function(){!function(e,t){var n,i,r;p.isObject(e)&&p.isObject(t)&&(r=f.flattenClientEventPayload(e,t),(n=o.firstChild).value=+(+n.value||r.dnt||0),(i=a.createElement("input")).type="hidden",i.name="l",i.value=f.stringify(r),o.appendChild(i))}(f.formatClientEventNamespace(e),f.formatClientEventData(t,n))}))},flush:function(){return _.then((function(){if(o.children.length<=2)return h.reject();var e=h.every(a.appendChild(o),a.appendChild(s)).then((function(e){var t=e[0],n=e[1];return n.addEventListener("load",(function(){(function(e,t){return function(){var n=e.parentNode;n&&(n.removeChild(e),n.removeChild(t))}})(t,n)(),m.get("events").trigger("logFlushed")})),t.submit(),e}));return o=i(),s=r(),e}))},init:function(){return w||(d.createSandbox({id:"rufous-sandbox"},{display:"none"}).then((function(e){a=e,o=i(),s=r(),l.fulfill([o,s])})),w=!0),_}}},{19:19,30:30,34:34,56:56,59:59,64:64,71:71}],33:[function(e,t,n){function i(e,t,n,i){var o=!d.isObject(e),s=!!t&&!d.isObject(t);o||s||r(u.formatClientEventNamespace(e),u.formatClientEventData(t,n,i),u.CLIENT_EVENT_ENDPOINT)}function r(e,t,n){var i,r;n&&d.isObject(e)&&d.isObject(t)&&(i=u.flattenClientEventPayload(e,t),r={l:u.stringify(i)},i.dnt&&(r.dnt=1),a(c.url(n,r)))}function o(e,t,n,i){var r=!d.isObject(e),o=!!t&&!d.isObject(t);if(!r&&!o)return s(u.flattenClientEventPayload(u.formatClientEventNamespace(e),u.formatClientEventData(t,n,i)))}function s(e){return h.push(e),h}function a(e){return(new Image).src=e}var l=e(56),c=e(65),u=e(34),d=e(71),h=[];t.exports={_enqueueRawObject:s,scribe:r,clientEvent:i,clientEvent2:function(e,t,n){return i(e,t,n,2)},enqueueClientEvent:o,flushClientEvents:function(){var e,t,n=c.url(u.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),i=encodeURIComponent(n).length;return h.length>1&&o({page:"widgets_js",component:"scribe_pixel",action:"batch_log"},{}),e=h,h=[],t=e.reduce((function(t,n,r){var o,s,a=t.length,l=a&&t[a-1];return r+1==e.length&&n.event_namespace&&"batch_log"==n.event_namespace.action&&(n.message=["entries:"+r,"requests:"+a].join("/")),o=u.stringify(n),s=encodeURIComponent(o).length+3,i+s>2083||((!l||l.urlLength+s>2083)&&(l={urlLength:i,items:[]},t.push(l)),l.urlLength+=s,l.items.push(o)),t}),[]),t.map((function(e){var t={l:e.items};return l.enabled()&&(t.dnt=1),a(c.url(u.CLIENT_EVENT_ENDPOINT,t))}))},interaction:function(e,t,n,r){var o=u.extractTermsFromDOM(e.target||e.srcElement);o.action=r||"click",i(o,t,n)}}},{34:34,56:56,65:65,71:71}],34:[function(e,t,n){function i(e,t,n){return t=t||{},s.aug(t,{_category_:e,triggered_on:t.triggered_on||+new Date,dnt:o.enabled(n)})}var r=e(11),o=e(56),s=e(71),a=e(73),l=e(18),c=a.version,u=l.get("endpoints.rufous")||"https://syndication.twitter.com/i/jot",d=l.get("endpoints.rufousAudience")||"https://syndication.twitter.com/i/jot/syndication",h=l.get("endpoints.rufousRedirect")||"https://platform.twitter.com/jot.html";t.exports={extractTermsFromDOM:function e(t,n){var i;return n=n||{},t&&t.nodeType===Node.ELEMENT_NODE?((i=t.getAttribute("data-scribe"))&&i.split(" ").forEach((function(e){var t=e.trim().split(":"),i=t[0],r=t[1];i&&r&&!n[i]&&(n[i]=r)})),e(t.parentNode,n)):n},flattenClientEventPayload:function(e,t){return s.aug({},t,{event_namespace:e})},formatGenericEventData:i,formatClientEventData:function(e,t,n){var o=e&&e.widget_origin||r.referrer;return(e=i("tfw_client_event",e,o)).client_version=c,e.format_version=void 0!==n?n:1,t||(e.widget_origin=o),e},formatClientEventNamespace:function(e){return s.aug({client:"tfw"},e||{})},stringify:function(e){var t,n=Array.prototype.toJSON;return delete Array.prototype.toJSON,t=JSON.stringify(e),n&&(Array.prototype.toJSON=n),t},AUDIENCE_ENDPOINT:d,CLIENT_EVENT_ENDPOINT:u,RUFOUS_REDIRECT:h}},{11:11,18:18,56:56,71:71,73:73}],35:[function(e,t,n){function i(e,t,n,i){return e=e||[],n=n||{},function(){var r,a,c,u,d=Array.prototype.slice.apply(arguments,[0,e.length]),h=Array.prototype.slice.apply(arguments,[e.length]);return h.forEach((function(e){return e?1===e.nodeType?void(c=e):o.isType("function",e)?void(r=e):void(o.isType("object",e)&&(a=e)):void 0})),d.length!=e.length||0===h.length?(r&&o.async((function(){r(!1)})),s.reject("Not enough parameters")):c?((a=o.aug(a||{},n)).targetEl=c,e.forEach((function(e){a[e]=d.shift()})),u=new t(a),l.doLayout(),u.render(),i&&i(),r&&u.completed().then(r,(function(){r(!1)})),u.completed()):(r&&o.async((function(){r(!1)})),s.reject("No target specified"))}}var r=e(14),o=e(71),s=e(64),a=e(67),l=e(43),c=e(49),u=e(45),d=e(44),h=e(50),f=e(48),p=i(["url"],c,{type:"share"}),m=i(["hashtag"],c,{type:"hashtag"}),g=i(["screenName"],c,{type:"mention"}),v=i(["screenName"],u),y=i(["tweetId"],d,{},d.fetchAndRender),b=i(["tweetId"],h,{},h.fetchAndRender),w=i(["widgetId"],f),_=i(["previewParams"],(function(e){var t;e.linkColor=e.linkColor||e.previewParams.link_color,e.theme=e.theme||e.previewParams.theme,e.height=e.height||e.previewParams.height,t=new f(e),this.render=t.render.bind(t),this.completed=t.completed.bind(t)})),k={createShareButton:p,createMentionButton:g,createHashtagButton:m,createFollowButton:v,createTweet:y,createVideo:b,createTweetEmbed:y,createTimeline:w};a.isTwitterURL(r.location.href)&&(k.createTimelinePreview=_),t.exports=k},{14:14,43:43,44:44,45:45,48:48,49:49,50:50,64:64,67:67,71:71}],36:[function(e,t,n){var i=e(11),r=e(38),o=e(80),s=e(79),a=e(43),l=e(72),c=e(19);t.exports={init:function e(t){var n=r.base(t)+"/widgets/hub.f15fe2cd70788a40560e69fa17341d5e.html",u=function(e){return e?l.secureHubId:l.contextualHubId}(t);if(!i.getElementById(u))return function(t,n){var i=o.connect({src:t,iframe:{name:n,style:"position:absolute;top:-9999em;width:10px;height:10px"}});return s(i).expose({trigger:function(e,t,n){var i=(t=t||{}).region;delete t.region,c.get("events").trigger(e,{target:a.find(n),data:t,region:i,type:e})},initXPHub:function(){e(!0)}}),i}(n,u)},openIntent:function(e,t){var n=o.connect({window:{width:550,height:450},src:e});s(n).expose({trigger:function(e,n){c.get("events").trigger(e,{target:t,region:"intent",type:e,data:n})}})}}},{11:11,19:19,38:38,43:43,72:72,79:79,80:80}],37:[function(e,t,n){var i,r=e(14),o=e(54),s=e(56),a=e(26),l=e(24),c=e(27),u="twttr.private.requestArticleUrl";r===r.top?(new a).attachReceiver(new c.Receiver(r)).bind(u,(function(){return{url:o.rootDocumentLocation(),dnt:s.enabled()}})):i=new l(new c.Dispatcher(r.top)),t.exports={requestArticleUrl:function(){return r!==r.top?i.request(u).then((function(e){o.rootDocumentLocation(e.url),e.dnt&&s.setOn()})):void 0}}},{14:14,24:24,26:26,27:27,54:54,56:56}],38:[function(e,t,n){function i(e){var t=o.get("host");return c(e)+"://"+t}var r=e(12),o=e(18),s=e(57),a=e(71),l={"embed/timeline.css":{default:"embed/timeline.438399f9c19919ece063ecfc9ead5a7c.default.css","2x":"embed/timeline.438399f9c19919ece063ecfc9ead5a7c.2x.css",gif:"embed/timeline.438399f9c19919ece063ecfc9ead5a7c.gif.css","default.rtl":"embed/timeline.438399f9c19919ece063ecfc9ead5a7c.default.rtl.css","2x.rtl":"embed/timeline.438399f9c19919ece063ecfc9ead5a7c.2x.rtl.css","gif.rtl":"embed/timeline.438399f9c19919ece063ecfc9ead5a7c.gif.rtl.css"}},c=/^http\:$/.test(r.protocol)?function(e){return e?"https":"http"}:function(){return"https"};t.exports={builtUrl:function(e,t){var n,o=l[e];return"embed/timeline.css"===e&&a.contains(r.href,"localhost.twitter.com")?"/node_modules/syndication-templates/lib/css/index.css":(n=s.retina()?"2x":"default",t&&(n+=".rtl"),i()+"/"+o[n])},base:i}},{12:12,18:18,57:57,71:71}],39:[function(e,t,n){function i(e){return function(t){t.error?e.error&&e.error(t):t.headers&&200!=t.headers.status?(e.error&&e.error(t),c.warn(t.headers.message)):e.success&&e.success(t),e.complete&&e.complete(t),function(e){var t=e.script;t&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),e.script=void 0,t=void 0),e.callbackName&&l.unset(["callbacks",e.callbackName])}(e)}}function r(e){var t={};return e.success&&u.isType("function",e.success)&&(t.success=e.success),e.error&&u.isType("function",e.error)&&(t.error=e.error),e.complete&&u.isType("function",e.complete)&&(t.complete=e.complete),t}var o=e(11),s=e(12),a=e(4),l=e(18),c=e(61),u=e(71),d=e(65),h=0,f=!1,p={},m=u.aug({tweets:"https://syndication.twitter.com/tweets.json",timeline:"https://cdn.syndication.twimg.com/widgets/timelines/",timelinePoll:"https://syndication.twitter.com/widgets/timelines/paged/",timelinePreview:"https://syndication.twitter.com/widgets/timelines/preview/",videos:"https://syndication.twitter.com/widgets/video/"},l.get("endpoints")||{});p.jsonp=function(e,t,n){var r=n||"cb"+h,a=l.fullPath(["callbacks",r]),c=o.createElement("script"),u={callback:a,suppress_response_codes:!0};l.set(["callbacks",r],i(t)),(f||!/^https?\:$/.test(s.protocol))&&(e=e.replace(/^\/\//,"https://")),c.src=d.url(e,u),c.async="async",o.body.appendChild(c),t.script=c,t.callbackName=r,n||h++},p.config=function(e){(!0===e.forceSSL||!1===e.forceSSL)&&(f=e.forceSSL)},p.tweets=function(e){var t,n=r(e),i={ids:e.ids.join(","),lang:e.lang};a.isEnabled()&&(i.new_html=!0),t=d.url(m.tweets,i),this.jsonp(t,n)},p.videos=function(e){var t=r(e),n={ids:e.ids.join(","),lang:e.lang},i=d.url(m.videos,n);this.jsonp(i,t)},p.timeline=function(e){var t,n=r(e),i=Math.floor(+new Date/9e5),o={lang:e.lang,t:i,domain:s.host,dnt:e.dnt,override_type:e.overrideType,override_id:e.overrideId,override_name:e.overrideName,override_owner_id:e.overrideOwnerId,override_owner_name:e.overrideOwnerName,with_replies:e.withReplies};u.compact(o),t=d.url(m.timeline+e.id,o),this.jsonp(t,n,"tl_"+e.id+"_"+e.instanceId)},p.timelinePoll=function(e){var t,n=r(e),i={lang:e.lang,since_id:e.sinceId,max_id:e.maxId,min_position:e.minPosition,max_position:e.maxPosition,domain:s.host,dnt:e.dnt,override_type:e.overrideType,override_id:e.overrideId,override_name:e.overrideName,override_owner_id:e.overrideOwnerId,override_owner_name:e.overrideOwnerName,with_replies:e.withReplies};u.compact(i),t=d.url(m.timelinePoll+e.id,i),this.jsonp(t,n,"tlPoll_"+e.id+"_"+e.instanceId+"_"+(e.sinceId||e.maxId||e.maxPosition||e.minPosition))},p.timelinePreview=function(e){var t=r(e),n=e.params,i=d.url(m.timelinePreview,n);this.jsonp(i,t)},t.exports=p},{11:11,12:12,18:18,4:4,61:61,65:65,71:71}],40:[function(e,t,n){var i,r=e(12),o=e(63);t.exports={isDynamicWidget:function(){var e=o.combined(r)._;return void 0!==i||(i=!1,e&&/^\d+$/.test(e)&&(i=+new Date-parseInt(e)<36e5)),i}}},{12:12,63:63}],41:[function(e,t,n){function i(e){var t=e.split(" ");this.url=decodeURIComponent(t[0].trim()),this.width=+t[1].replace(/w$/,"").trim()}function r(e,t,n){var r,o,s,a;if(e=c.devicePixelRatio?e*c.devicePixelRatio:e,o=t.split(",").map((function(e){return new i(e.trim())})),n)for(a=0;a<o.length;a++)o[a].url===n&&(r=o[a]);return s=o.reduce((function(t,n){return n.width<t.width&&n.width>=e?n:t}),o[0]),r&&r.width>s.width?r:s}function o(e,t){var n,i=e.getAttribute("data-srcset"),o=e.src;i&&(n=r(t,i,o),e.src=n.url)}function s(e,t,n,i,r,o){return i=i||t,e>(n=n||e)&&(t*=n/e,e=n),t>i&&(e*=i/t,t=i),(r=r||0)>e&&(t*=r/e,e=r),(o=o||0)>t&&(e*=o/t,t=o),{width:Math.floor(e),height:Math.floor(t)}}function a(e,t){function n(){var e={name:"tfw:resize",dimensions:t};r.postMessage(e,"*")}var i,r,o,s,a;e&&(r=e.contentWindow,i=e.ownerDocument&&e.ownerDocument.defaultView,o=d.ios()||d.android(),s=h.isTwitterURL(e.src),a=r&&d.canPostMessage(r),o&&s&&a&&(n(),i&&i.addEventListener("message",(function(e){"tfw:requestsize"===e.data&&n()}),!1)))}function l(e,t,n,i){u.toRealArray(e.querySelectorAll(t)).forEach((function(e){var t=e.getAttribute("style")||e.getAttribute("data-style"),r=i.test(t)&&RegExp.$1;r&&(e.setAttribute("data-csp-fix",!0),e.style[n]=r)}))}var c=e(14),u=e(71),d=e(57),h=e(67),f=/max-width:\s*([\d\.]+px)/,p=/margin-top:\s*(\-?[\d\.]+%)/,m=/margin-left:\s*(\-?[\d\.]+%)/,g=/padding-bottom:\s*([\d\.]+%)/;t.exports={scaleDimensions:s,retinize:function(e,t){t=void 0!==t?!!t:d.retina(),u.toRealArray(e.getElementsByTagName("IMG")).forEach((function(e){var n=e.getAttribute("data-src-1x")||e.getAttribute("src"),i=e.getAttribute("data-src-2x");t&&i?e.src=i:n&&(e.src=n)}))},constrainMedia:function(e,t,n,i){var r=0,l=e.querySelector(".multi-photo"),c=l&&+l.getAttribute("data-photo-count");if(e)return u.toRealArray(e.querySelectorAll(".NaturalImage-image")).forEach((function(e){i((function(){o(e,t)}))})),u.toRealArray(e.querySelectorAll(".CroppedImage-image")).forEach((function(e){i((function(){o(e,t/2)}))})),(d.ios()||d.android())&&u.toRealArray(e.querySelectorAll(".FilledIframe")).forEach((function(e){i((function(){a(e,{width:e.offsetWidth,height:e.offsetHeight})}))})),u.toRealArray(e.querySelectorAll(".autosized-media")).forEach((function(e){var l=s(e.getAttribute("data-width"),e.getAttribute("data-height"),t,n);i((function(){o(e,t),e.width=l.width,e.height=l.height,a(e,l)})),r=l.height>r?l.height:r})),u.toRealArray(e.querySelectorAll("img.cropped-media")).forEach((function(e){var a,l,u,d=t-12,h=e.parentNode,f=e.getAttribute("data-crop-x")||0,p=e.getAttribute("data-crop-y")||0,m=function(e,t){return 2==e||3==e&&0==+t}(c,e.getAttribute("data-image-index")),g=Math.floor(d/2-6),v=Math.floor(g/(m?.8888888888888888:1.7777777777777777));m||(v-=3),a=(u=s(e.getAttribute("data-width"),e.getAttribute("data-height"),g,n,g,v)).width-g-f,l=u.height-v-p,0>a&&Math.max(0,f+=a),0>l&&Math.max(0,p+=l),i((function(){o(e,g),e.width=u.width,e.height=u.height,h.style.width=g-1+"px",h.style.height=v+"px",f&&(e.style.marginLeft="-"+Math.floor(u.width*f/100)+"px"),p&&(e.style.marginTop="-"+Math.floor(u.height*p/100)+"px")})),r=u.height*(m?2:1)>r?u.height:r})),r},fixMediaCardLayout:function(e){d.cspEnabled()&&(l(e,".MediaCard-widthConstraint","maxWidth",f),l(e,".MediaCard-mediaContainer","paddingBottom",g),l(e,".CroppedImage-image","marginTop",p),l(e,".CroppedImage-image","marginLeft",m))},__setSrcFromSet:o}},{14:14,57:57,67:67,71:71}],42:[function(e,t,n){var i=e(65),r=e(67);t.exports=function(e,t){return function(n){var o,s,a="data-tw-params";if(n&&r.isTwitterURL(n.href)&&!n.getAttribute(a)){if(n.setAttribute(a,!0),"function"==typeof t)for(s in o=t.call(this,n))o.hasOwnProperty(s)&&(e[s]=o[s]);n.href=i.url(n.href,e)}}}},{65:65,67:67}],43:[function(e,t,n){function r(e){var t,n=this;e&&(e.ownerDocument?(this.srcEl=e,this.classAttr=e.className.split(" ")):(this.srcOb=e,this.classAttr=[]),t=this.params(),this.id=this.generateId(),this.setLanguage(),this.related=t.related||this.dataAttr("related"),this.partner=t.partner||this.dataAttr("partner")||v.val("partner"),this.styleAttr=[],this.targetEl=e.targetEl,m.asBoolean(t.dnt||this.dataAttr("dnt"))&&y.setOn(),S[this.id]=this,this.completePromise=new f((function(e){n.completeResolver=e})),this.completed().then((function(e){e&&e!=a.body&&_.get("events").trigger("rendered",{target:e})})))}function o(e){return e?e.lang?e.lang:o(e.parentNode):void 0}var s,a=e(11),l=e(14),c=e(38),u=e(23),d=e(59),h=e(60),f=e(64),p=e(65),m=e(68),g=e(71),v=e(17),y=e(56),b=e(61),w=e(54),_=e(19),k=0,S={},T=[],x=new h,C="data-twttr-rendered",j={ar:{"%{followers_count} followers":"عدد المتابعين %{followers_count}","100K+":"+100 ألف","10k unit":"10 آلاف وحدة",Follow:"تابِع","Follow %{screen_name}":"تابِع %{screen_name}",K:"ألف",M:"م",Tweet:"غرِّد","Tweet %{hashtag}":"غرِّد %{hashtag}","Tweet to %{name}":"غرِّد لـ %{name}"},bn:{"Follow %{screen_name}":"%{screen_name}-কে অনুসরণ করুন"},cs:{"Follow %{screen_name}":"Sledovat uživatele %{screen_name}"},da:{"%{followers_count} followers":"%{followers_count} følgere","10k unit":"10k enhed",Follow:"Følg","Follow %{screen_name}":"Følg %{screen_name}","Tweet to %{name}":"Tweet til %{name}"},de:{"%{followers_count} followers":"%{followers_count} Follower","100K+":"100Tsd+","10k unit":"10tsd-Einheit",Follow:"Folgen","Follow %{screen_name}":"%{screen_name} folgen",K:"Tsd",Tweet:"Twittern","Tweet to %{name}":"Tweet an %{name}"},es:{"%{followers_count} followers":"%{followers_count} seguidores","10k unit":"unidad de 10 mil",Follow:"Seguir","Follow %{screen_name}":"Seguir a %{screen_name}",Tweet:"Twittear","Tweet %{hashtag}":"Twittear %{hashtag}","Tweet to %{name}":"Twittear a %{name}"},fa:{"%{followers_count} followers":"%{followers_count} دنبالکننده","100K+":">۱۰۰هزار","10k unit":"۱۰هزار واحد",Follow:"دنبال کردن","Follow %{screen_name}":"دنبال کردن %{screen_name}",K:"هزار",M:"میلیون",Tweet:"توییت","Tweet %{hashtag}":"توییت کردن %{hashtag}","Tweet to %{name}":"به %{name} توییت کنید"},fi:{"%{followers_count} followers":"%{followers_count} seuraajaa","100K+":"100 000+","10k unit":"10 000 yksikköä",Follow:"Seuraa","Follow %{screen_name}":"Seuraa käyttäjää %{screen_name}",K:"tuhatta",M:"milj.",Tweet:"Twiittaa","Tweet %{hashtag}":"Twiittaa %{hashtag}","Tweet to %{name}":"Twiittaa käyttäjälle %{name}"},fil:{"%{followers_count} followers":"%{followers_count} mga tagasunod","10k unit":"10k yunit",Follow:"Sundan","Follow %{screen_name}":"Sundan si %{screen_name}",Tweet:"I-tweet","Tweet %{hashtag}":"I-tweet ang %{hashtag}","Tweet to %{name}":"Mag-Tweet kay %{name}"},fr:{"%{followers_count} followers":"%{followers_count} abonnés","10k unit":"unité de 10k",Follow:"Suivre","Follow %{screen_name}":"Suivre %{screen_name}",Tweet:"Tweeter","Tweet %{hashtag}":"Tweeter %{hashtag}","Tweet to %{name}":"Tweeter à %{name}"},he:{"%{followers_count} followers":"%{followers_count} עוקבים","100K+":"מאות אלפים","10k unit":"עשרות אלפים",Follow:"מעקב","Follow %{screen_name}":"לעקוב אחר %{screen_name}",K:"אלף",M:"מיליון",Tweet:"ציוץ","Tweet %{hashtag}":"צייצו %{hashtag}","Tweet to %{name}":"ציוץ אל %{name}"},hi:{"%{followers_count} followers":"%{followers_count} फ़ॉलोअर्स","100K+":"1 लाख से अधिक","10k unit":"10 हजार इकाईयां",Follow:"फ़ॉलो","Follow %{screen_name}":"%{screen_name} को फ़ॉलो करें",K:"हजार",M:"मिलियन",Tweet:"ट्वीट","Tweet %{hashtag}":"ट्वीट %{hashtag}","Tweet to %{name}":"%{name} के प्रति ट्वीट करें"},hu:{"%{followers_count} followers":"%{followers_count} követő","100K+":"100E+","10k unit":"10E+",Follow:"Követés","Follow %{screen_name}":"%{screen_name} követése",K:"E","Tweet %{hashtag}":"%{hashtag} tweetelése","Tweet to %{name}":"Tweet küldése neki: %{name}"},id:{"%{followers_count} followers":"%{followers_count} pengikut","100K+":"100 ribu+","10k unit":"10 ribu unit",Follow:"Ikuti","Follow %{screen_name}":"Ikuti %{screen_name}",K:" ribu",M:" juta","Tweet to %{name}":"Tweet ke %{name}"},it:{"%{followers_count} followers":"%{followers_count} follower","10k unit":"10k unità",Follow:"Segui","Follow %{screen_name}":"Segui %{screen_name}","Tweet %{hashtag}":"Twitta %{hashtag}","Tweet to %{name}":"Twitta a %{name}"},ja:{"%{followers_count} followers":"%{followers_count}人のフォロワー","100K+":"100K以上","10k unit":"万",Follow:"フォローする","Follow %{screen_name}":"%{screen_name}さんをフォロー",Tweet:"ツイート","Tweet %{hashtag}":"%{hashtag} をツイートする","Tweet to %{name}":"%{name}さんへツイートする"},ko:{"%{followers_count} followers":"%{followers_count}명의 팔로워","100K+":"100만 이상","10k unit":"만 단위",Follow:"팔로우","Follow %{screen_name}":"%{screen_name} 님 팔로우하기",K:"천",M:"백만",Tweet:"트윗","Tweet %{hashtag}":"%{hashtag} 관련 트윗하기","Tweet to %{name}":"%{name} 님에게 트윗하기"},msa:{"%{followers_count} followers":"%{followers_count} pengikut","100K+":"100 ribu+","10k unit":"10 ribu unit",Follow:"Ikut","Follow %{screen_name}":"Ikut %{screen_name}",K:"ribu",M:"juta","Tweet to %{name}":"Tweet kepada %{name}"},nl:{"%{followers_count} followers":"%{followers_count} volgers","100K+":"100k+","10k unit":"10k-eenheid",Follow:"Volgen","Follow %{screen_name}":"%{screen_name} volgen",K:"k",M:" mln.",Tweet:"Tweeten","Tweet %{hashtag}":"%{hashtag} tweeten","Tweet to %{name}":"Tweeten naar %{name}"},no:{"%{followers_count} followers":"%{followers_count} følgere","100K+":"100 K+","10k unit":"10-K-enhet",Follow:"Følg","Follow %{screen_name}":"Følg %{screen_name}","Tweet to %{name}":"Send en tweet til %{name}"},pl:{"%{followers_count} followers":"%{followers_count} obserwujących","100K+":"100 tys.+","10k unit":"10 tys.",Follow:"Obserwuj","Follow %{screen_name}":"Obserwuj %{screen_name}",K:"tys.",M:"mln",Tweet:"Tweetnij","Tweet %{hashtag}":"Tweetnij %{hashtag}","Tweet to %{name}":"Tweetnij do %{name}"},pt:{"%{followers_count} followers":"%{followers_count} seguidores","100K+":"+100 mil","10k unit":"10 mil unidades",Follow:"Seguir","Follow %{screen_name}":"Seguir %{screen_name}",K:"Mil",Tweet:"Tweetar","Tweet %{hashtag}":"Tweetar %{hashtag}","Tweet to %{name}":"Tweetar para %{name}"},ro:{"Follow %{screen_name}":"Urmăreşte pe %{screen_name}"},ru:{"%{followers_count} followers":"Читатели: %{followers_count} ","100K+":"100 тыс.+","10k unit":"блок 10k",Follow:"Читать","Follow %{screen_name}":"Читать %{screen_name}",K:"тыс.",M:"млн.",Tweet:"Твитнуть","Tweet %{hashtag}":"Твитнуть %{hashtag}","Tweet to %{name}":"Твитнуть %{name}"},sv:{"%{followers_count} followers":"%{followers_count} följare","10k unit":"10k",Follow:"Följ","Follow %{screen_name}":"Följ %{screen_name}",Tweet:"Tweeta","Tweet %{hashtag}":"Tweeta %{hashtag}","Tweet to %{name}":"Tweeta till %{name}"},th:{"%{followers_count} followers":"%{followers_count} ผู้ติดตาม","100K+":"100พัน+","10k unit":"หน่วย 10พัน",Follow:"ติดตาม","Follow %{screen_name}":"ติดตาม %{screen_name}",M:"ล้าน",Tweet:"ทวีต","Tweet %{hashtag}":"ทวีต %{hashtag}","Tweet to %{name}":"ทวีตถึง %{name}"},tr:{"%{followers_count} followers":"%{followers_count} takipçi","100K+":"+100 bin","10k unit":"10 bin birim",Follow:"Takip et","Follow %{screen_name}":"Takip et: %{screen_name}",K:"bin",M:"milyon",Tweet:"Tweetle","Tweet %{hashtag}":"Tweetle: %{hashtag}","Tweet to %{name}":"Tweetle: %{name}"},uk:{"Follow %{screen_name}":"Читати %{screen_name}"},ur:{"%{followers_count} followers":"%{followers_count} فالورز","100K+":"ایک لاکھ سے زیادہ","10k unit":"دس ہزار یونٹ",Follow:"فالو کریں","Follow %{screen_name}":"%{screen_name} کو فالو کریں",K:"ہزار",M:"ملین",Tweet:"ٹویٹ کریں","Tweet %{hashtag}":"%{hashtag} ٹویٹ کریں","Tweet to %{name}":"%{name} کو ٹویٹ کریں"},vi:{"Follow %{screen_name}":"Theo dõi %{screen_name}"},"zh-cn":{"%{followers_count} followers":"%{followers_count} 关注者","100K+":"10万+","10k unit":"1万单元",Follow:"关注","Follow %{screen_name}":"关注 %{screen_name}",K:"千",M:"百万",Tweet:"发推","Tweet %{hashtag}":"以 %{hashtag} 发推","Tweet to %{name}":"发推给 %{name}"},"zh-tw":{"%{followers_count} followers":"%{followers_count} 位跟隨者","100K+":"超過十萬","10k unit":"1萬 單位",Follow:"跟隨","Follow %{screen_name}":"跟隨 %{screen_name}",K:"千",M:"百萬",Tweet:"推文","Tweet %{hashtag}":"推文%{hashtag}","Tweet to %{name}":"推文給%{name}"}};g.aug(r.prototype,{setLanguage:function(e){var t;return e||(e=this.params().lang||this.dataAttr("lang")||o(this.srcEl)),(e=e&&e.toLowerCase())?j[e]?this.lang=e:(t=e.replace(/[\-_].*/,""),j[t]?this.lang=t:void(this.lang="en")):this.lang="en"},_:function(e,t){var n=this.lang;return t=t||{},n&&j.hasOwnProperty(n)||(n=this.lang="en"),e=j[n]&&j[n][e]||e,this.ringo(e,t,/%\{([\w_]+)\}/g)},ringo:function(e,t,n){return n=n||/\{\{([\w_]+)\}\}/g,e.replace(n,(function(e,n){return void 0!==t[n]?t[n]:e}))},makeIframeSource:function(){if(this.iframeSource){var e=p.encode(this.widgetUrlParams());return[c.base(),"/",this.ringo(this.iframeSource,{lang:this.lang}),"#",e].join("")}},add:function(e){S[this.id]=e},create:function(e,t,n){var i,r=this;return n[C]=!0,i=d(g.aug({id:this.id,src:e,class:this.classAttr.join(" ")},n),t,this.targetEl&&this.targetEl.ownerDocument),this.srcEl?this.layout((function(){return r.srcEl.parentNode.replaceChild(i,r.srcEl),r.completeResolver.fulfill(i),i})):this.targetEl?this.layout((function(){return r.targetEl.appendChild(i),r.completeResolver.fulfill(i),i})):f.reject("Did not append widget")},params:function(){var e,t;return this.srcOb?t=this.srcOb:(e=this.srcEl&&this.srcEl.href&&this.srcEl.href.split("?")[1],t=e?p.decode(e):{}),this.params=function(){return t},t},widgetUrlParams:function(){return{}},dataAttr:function(e){return this.srcEl&&this.srcEl.getAttribute("data-"+e)},attr:function(e){return this.srcEl&&this.srcEl.getAttribute(e)},layout:function(e){return x.enqueue(e)},styles:{base:[["font","normal normal normal 11px/18px 'Helvetica Neue', Arial, sans-serif"],["margin","0"],["padding","0"],["whiteSpace","nowrap"]],button:[["fontWeight","bold"],["textShadow","0 1px 0 rgba(255,255,255,.5)"]],large:[["fontSize","13px"],["lineHeight","26px"]],vbubble:[["fontSize","16px"]]},width:function(){throw new Error("not implemented")},height:function(){return"m"==this.size?20:28},minWidth:function(){},maxWidth:function(){},minHeight:function(){},maxHeight:function(){},dimensions:function(){var e={width:this.width(),height:this.height()};return this.minWidth()&&(e["min-width"]=this.minWidth()),this.maxWidth()&&(e["max-width"]=this.maxWidth()),this.minHeight()&&(e["min-height"]=this.minHeight()),this.maxHeight()&&(e["max-height"]=this.maxHeight()),g.forIn(e,(function(t,n){e[t]=function(e){switch(i(e)){case"string":return e;case"undefined":return;default:return e+"px"}}(n)})),e},generateId:function(){return this.srcEl&&this.srcEl.id||"twitter-widget-"+k++},completed:function(){return this.completePromise}}),r.afterLoad=function(e){T.push(e)},r.doLayout=function(){x.exec()},r.doLayoutAsync=function(){x.delayedExec()},r.init=function(e){s=e},r.reset=function(){S={}},r.find=function(e){return e&&S[e]?S[e].element:null},r.embed=function(e){var t=[],n=[],i=[];m.isArray(e)||(e=[e||a]),b.time("sandboxes"),e.forEach((function(e){g.forIn(s,(function(n,r){var o=e.querySelectorAll(n);g.toRealArray(o).forEach((function(e){var n;e.getAttribute(C)||(e.setAttribute(C,"true"),n=new r(e),t.push(n),i.push(n.sandboxCreated))}))}))})),f.every.apply(null,i).then((function(){b.timeEnd("sandboxes")})),r.doLayout(),t.forEach((function(e){n.push(e.completed()),e.render()})),f.every.apply(null,n).then((function(e){(e=e.filter((function(e){return e}))).length&&(_.get("events").trigger("loaded",{widgets:e}),b.timeEnd("load"))})).then(r.trackRender),r.doLayoutAsync(),T.forEach((function(e){e()})),r.doLayout()},r.trackRender=function(){u.endAndTrack("render","widgets-js-load","page",{widget_origin:w.rootDocumentLocation(),widget_frame:w.isFramed()&&w.currentDocumentLocation()})},l.setInterval((function(){r.doLayout()}),500),t.exports=r},{11:11,14:14,17:17,19:19,23:23,38:38,54:54,56:56,59:59,60:60,61:61,64:64,65:65,68:68,71:71}],44:[function(e,t,n){function i(e){var t,n,i;e&&(c.apply(this,[e]),t=this.params(),i=(n=this.srcEl&&this.srcEl.getElementsByTagName("A"))&&n[n.length-1],this.hideThread="none"==(t.conversation||this.dataAttr("conversation"))||g.contains(this.classAttr,"tw-hide-thread"),this.hideCard="hidden"==(t.cards||this.dataAttr("cards"))||g.contains(this.classAttr,"tw-hide-media"),"left"==(t.align||this.attr("align"))||g.contains(this.classAttr,"tw-align-left")?this.align="left":"right"==(t.align||this.attr("align"))||g.contains(this.classAttr,"tw-align-right")?this.align="right":("center"==(t.align||this.attr("align"))||g.contains(this.classAttr,"tw-align-center"))&&(this.align="center",this.containerWidth>this.dimensions.MIN_WIDTH*(1/.7)&&this.width>.7*this.containerWidth&&(this.width=.7*this.containerWidth)),this.narrow=t.narrow||this.width<=this.dimensions.NARROW_WIDTH,this.narrow&&this.classAttr.push("var-narrow"),this.tweetId=t.tweetId||i&&v.status(i.href))}var r=e(3),o=e(4),s=e(14),a=e(8),l=e(43),c=e(47),u=e(53),d=e(42),h=e(5),f=e(7),p=e(23),m=e(64),g=e(71),v=e(67),y=e(39),b=e(31),w=e(32),_=e(41),k=e(54),S=e(19),T=e(6),x=e(33),C={},j=[];i.prototype=new c,g.aug(i.prototype,{renderedClassNames:"twitter-tweet twitter-tweet-rendered",dimensions:{DEFAULT_HEIGHT:"0",DEFAULT_WIDTH:"500",NARROW_WIDTH:"350",maxHeight:"375",FULL_BLEED_PHOTO_MAX_HEIGHT:"600",MIN_WIDTH:"220",MIN_HEIGHT:"0",MARGIN:"10px 0",WIDE_MEDIA_PADDING:32,NARROW_MEDIA_PADDING:32,BORDERS:0},styleSheetUrl:r.tweet,onStyleSheetLoad:function(){var e=this;this.sandbox.hasContent()&&(l.doLayoutAsync(),this.sandbox.resizeToContent().then((function(t){e.height=t})))},ensureStyleSheetConsistency:function(e){var t,n;return h.present(e,"EmbeddedTweet")&&!o.isEnabled()?(t=this.styleSheetUrl(),n=r.tweetRefresh(this.lang,this.theme),m.every(this.sandbox.removeStyleSheet(t),this.sandbox.appendStyleSheet(n))):m.fulfill()},create:function(e){var t,n,i=this,r=this.sandbox.createElement("div");return r.innerHTML=e,(t=r.children[0]||!1)?("dark"==this.theme&&this.classAttr.push("thm-dark"),this.linkColor&&this.addSiteStyles(),h.present(t,"media-forward")&&(this.fullBleedPhoto=!0,this.dimensions.maxHeight=this.dimensions.FULL_BLEED_PHOTO_MAX_HEIGHT),h.present(t,"with-border")||h.present(t,"EmbeddedTweet")||this.sandbox.style({border:"#ddd 1px solid",borderTopColor:"#eee",borderBottomColor:"#bbb",borderRadius:"5px",boxShadow:"0 1px 3px rgba(0,0,0,0.15)",maxWidth:"99%"}),h.present(t,"with-border")?(r.style.padding="2px 3px 3px 2px",n=r):n=t,_.retinize(t),_.fixMediaCardLayout(t),t.id=this.id,t.className+=" "+this.classAttr.join(" "),t.lang=this.lang,this.sandbox.setTitle(t.getAttribute("data-iframe-title")||"Tweet"),m.every(this.ensureStyleSheetConsistency(t),this.sandbox.appendChild(n)).then((function(){i.renderResolver.fulfill(i.sandbox)})),this.layout((function(){i.predefinedWidth=i.width,i.width=i.sandbox.width(i.width),i.collapseRegions()})).then((function(){i.constrainMedia(t,i.contentWidth(i.width)),i.setNarrow().then((function(){i.layout((function(){i.completeResolver.fulfill(i.sandbox.element())}))}))})),function(e,t){var n=e.querySelector("blockquote.subject"),i=e.querySelector("blockquote.reply"),r=n&&n.getAttribute("data-tweet-id"),o=i&&i.getAttribute("data-tweet-id"),s={},a={};r&&(s[r]={item_type:0},w.clientEvent({page:"tweet",section:"subject",component:"tweet",action:"results"},g.aug({},t,{item_ids:[r],item_details:s}),!0),b.scribeTweetAudienceImpression(),o&&(a[o]={item_type:0},w.clientEvent({page:"tweet",section:"conversation",component:"tweet",action:"results"},g.aug({},t,{item_ids:[o],item_details:a,associations:{4:{association_id:r,association_type:4}}}),!0)))}(t,this.baseScribeData(),this.partner),t):void 0},render:function(){var e=this,t="",n=this.tweetId;return n?(this.hideCard&&(t+="c"),this.hideThread&&(t+="t"),t&&(n+="-"+t),this.rendered().then((function(t){var n=e.srcEl;n&&n.parentNode&&e.layout((function(){n&&n.parentNode&&n.parentNode.removeChild(n)})),"center"==e.align?t.style({margin:"7px auto",cssFloat:"none"}):e.align&&(e.width==e.dimensions.DEFAULT_WIDTH&&(e.predefinedWidth=e.width=e.dimensions.NARROW_WIDTH),t.style({cssFloat:e.align})),e.sandbox.resizeToContent().then((function(t){return e.height=t,l.doLayoutAsync(),e.sandbox.resizeToContent().then((function(t){e.height=t}))})).then((function(){t.onresize(e.handleResize.bind(e))})),t.style({position:"static",visibility:"visible"}),l.doLayoutAsync()})),function(e,t,n,i){C[e]=C[e]||[],C[e].push({s:n,f:i,lang:t})}(n,this.lang,(function(t){e.ready().then((function(){e.element=e.create(t),e.readTimestampTranslations(),e.updateTimeStamps(),e.bindIntentHandlers(),e.bindUIHandlers(),e.bindPermalinkHandler(),l.doLayoutAsync()}))}),(function(){(function(e,t){var n={};e&&(n[e]={item_type:0},w.clientEvent({page:"tweet",section:"subject",component:"rawembedcode",action:"no_results"},{widget_origin:k.rootDocumentLocation(),widget_frame:k.isFramed()&&k.currentDocumentLocation(),message:t,item_ids:[e],item_details:n},!0),b.scribeTweetAudienceImpression())})(e.tweetId,e.partner),e.completeResolver.fulfill(e.srcEl)})),j.push(this.completed()),this.completed().then(this.scribePerformance.bind(this)),this.completed()):(this.completeResolver.fulfill(this.srcEl),this.completed())},bindPermalinkHandler:function(){var e=this;h.present(this.element,"decider-tapOpensPermalink")&&(T.delegate(this.element,"click","A",(function(e){T.stopPropagation(e)})),T.delegate(this.element,"click",".twitter-tweet",(function(t){var n,i;a.getSelection(e.sandbox._win)||(i=(n=e.element.querySelectorAll("blockquote.tweet"))[n.length-1],e.openPermalink(i),e.scribePermalinkClick(i,t),T.stopPropagation(t))})))},scribePermalinkClick:function(e,t){var n=this.createScribeData(e);x.interaction(t,n,!1)},openPermalink:function(e){var t=e.cite;v.isStatus(t)&&s.open(t)},scribePerformance:function(){p.endAndTrack("render","widgets-js-load","tweet",this.baseScribeData())},addUrlParams:function(e){var t=this,n={related:this.related,partner:this.partner,original_referer:k.rootDocumentLocation(),tw_p:"tweetembed"};return this.addUrlParams=d(n,(function(e){return{tw_i:f.closest(".tweet",e,t.element).getAttribute("data-tweet-id")}})),this.addUrlParams(e)},baseScribeData:function(){return{widget_origin:k.rootDocumentLocation(),widget_frame:k.isFramed()&&k.currentDocumentLocation(),message:this.partner}},handleResize:function(e){var t=this;e!=this.width&&(this.width=e,this.setNarrow(),this.constrainMedia(this.element,this.contentWidth(e)),this.collapseRegions(),this.sandbox.resizeToContent().then((function(e){t.height=e,S.get("events").trigger("resize",{target:t.sandbox.element()})})),l.doLayoutAsync())},readTimestampTranslations:function(){var e=this.element,t="data-dt-",n=e.getAttribute(t+"months")||"";this.datetime=new u(g.compact({phrases:{AM:e.getAttribute(t+"am"),PM:e.getAttribute(t+"pm")},months:n.split("|"),formats:{full:e.getAttribute(t+"full")}}))},updateTimeStamps:function(){var e=this.element.querySelector(".long-permalink"),t=e.getAttribute("data-datetime"),n=t&&this.datetime.localTimeStamp(t),i=e.getElementsByTagName("TIME")[0];n&&(this.layout((function(){return i&&i.innerHTML?void(i.innerHTML=n):void(e.innerHTML=n)}),"Update Timestamp"),l.doLayoutAsync())}}),i.fetchAndRender=function(){var e,t,n=C,i=[];if(C={},n.keys)i=n.keys();else for(e in n)n.hasOwnProperty(e)&&i.push(e);i.length&&(w.init(),t=n[i[0]][0].lang,y.tweets({ids:i.sort(),lang:t,complete:function(e){g.forIn(e,(function(e,t){n[e].forEach((function(e){e.s&&e.s.call(this,t)})),delete n[e]})),l.doLayout(),g.forIn(n,(function(e,t){t.forEach((function(t){t.f&&t.f.call(this,e)}))})),l.doLayout()}}),m.every.apply(null,j).then((function(){w.flush()})),j=[])},l.afterLoad(i.fetchAndRender),t.exports=i},{14:14,19:19,23:23,3:3,31:31,32:32,33:33,39:39,4:4,41:41,42:42,43:43,47:47,5:5,53:53,54:54,6:6,64:64,67:67,7:7,71:71,8:8}],45:[function(e,t,n){function i(e){var t,n,i,r;e&&(s.apply(this,[e]),n=(t=this.params()).size||this.dataAttr("size"),i=t.showScreenName||this.dataAttr("show-screen-name"),r=t.count||this.dataAttr("count"),this.classAttr.push("twitter-follow-button"),this.showScreenName="false"!=i,this.showCount=!(!1===t.showCount||"false"==this.dataAttr("show-count")),"none"==r&&(this.showCount=!1),this.explicitWidth=t.width||this.dataAttr("width")||"",this.screenName=t.screen_name||t.screenName||a.screenName(this.attr("href")),this.preview=t.preview||this.dataAttr("preview")||"",this.align=t.align||this.dataAttr("align")||"",this.size="large"==n?"l":"m")}var r=e(56),o=e(71),s=e(43),a=e(67),l=e(64),c=e(10);i.prototype=new s,o.aug(i.prototype,{iframeSource:"widgets/follow_button.7c0d5c8fc0456a01b74fed2e38018608.{{lang}}.html",widgetUrlParams:function(){return o.compact({screen_name:this.screenName,lang:this.lang,show_count:this.showCount,show_screen_name:this.showScreenName,align:this.align,id:this.id,preview:this.preview,size:this.size,partner:this.partner,dnt:r.enabled(),_:+new Date})},width:function(){if(this.calculatedWidth)return this.calculatedWidth;if(this.explicitWidth)return this.explicitWidth;var e,t,n,i=this.showScreenName?"Follow %{screen_name}":"Follow",r=this._(i,{screen_name:"@"+this.screenName}),s=this._(o.contains(["ja","ko"],this.lang)?"10k unit":"M"),a=this._("%{followers_count} followers",{followers_count:"88888"+s}),l=0,u=this.styles.base;return"l"==this.size?(u=u.concat(this.styles.large),e=38,t=22):(e=24,t=13),this.showCount&&(l=c(a,"",u).width+t),n=c(r,"",u.concat(this.styles.button)).width+e,this.calculatedWidth=n+l},render:function(){if(!this.screenName)return l.reject("Missing Screen Name");var e=this,t=this.makeIframeSource();return this.create(t,this.dimensions(),{title:this._("Twitter Follow Button")}).then((function(t){return e.element=t}))}}),t.exports=i},{10:10,43:43,56:56,64:64,67:67,71:71}],46:[function(e,t,n){function i(t,n){e(36).openIntent(t,n)}function r(e,t){this.id=e,this.element=this.srcEl=t}function o(e){this.srcEl=[],this.element=e}var s,a=e(11),l=e(43),c=e(71),u=e(64),d=e(67),h=e(22),f=e(19),p=e(18);o.prototype=new l,c.aug(o.prototype,{render:function(){return s=this,u.fulfill(a.body)}}),o.open=function(e,t){if(d.isTwitterURL(e))if(p.get("eventsHub")&&t){var n=new r(s.generateId(),t);s.add(n),i(e,t),f.get("events").trigger("click",{target:t,region:"intent",type:"click",data:{}})}else!function(e){h.open(e)}(e)},t.exports=o},{11:11,18:18,19:19,22:22,36:36,43:43,64:64,67:67,71:71}],47:[function(e,t,n){function i(e){if(e){var t,n=this;this.readyPromise=new k((function(e){n.readyResolver=e})),this.renderedPromise=new k((function(e){n.renderResolver=e})),c.apply(this,[e]),t=this.params(),this.targetEl=this.srcEl&&this.srcEl.parentNode||t.targetEl||l.body,this.predefinedWidth=i.VALID_UNIT.test(t.width||this.attr("width"))&&RegExp.$1,this.layout((function(){return n.containerWidth=y.effectiveWidth(n.targetEl)})).then((function(e){var r=n.predefinedWidth||e||n.dimensions.DEFAULT_WIDTH;n.height=i.VALID_UNIT.test(t.height||n.attr("height"))&&RegExp.$1,n.width=Math.max(n.dimensions.MIN_WIDTH,Math.min(r,n.dimensions.DEFAULT_WIDTH))})),this.linkColor=i.VALID_COLOR.test(t.linkColor||this.dataAttr("link-color"))?RegExp.$1:o,this.borderColor=i.VALID_COLOR.test(t.borderColor||this.dataAttr("border-color"))?RegExp.$1:a,this.theme=t.theme||this.attr("data-theme")||s,this.theme=/(dark|light)/.test(this.theme)?this.theme:"",this.classAttr.push(_.touch()?"is-touch":"not-touch"),_.ie9()&&this.classAttr.push("ie9"),this.sandboxCreated=b.createSandbox({class:this.renderedClassNames,id:this.id,allowfullscreen:""},{position:"absolute",visibility:"hidden"},(function(e){n.modifyFrame&&(e=n.modifyFrame(e)),n.srcEl?n.targetEl.insertBefore(e,n.srcEl):n.targetEl.appendChild(e)}),this.layout).then((function(e){n.setupSandbox(e),new p(e.element().contentWindow)})),this.rendered().then((function(e){n.applyVisibleSandboxStyles(e)}))}}function r(e,t){return e+t}var o,s,a,l=e(11),c=e(43),u=e(46),d=e(17),h=e(41),f=e(33),p=e(75),m=e(5),g=e(7),v=e(6),y=e(9),b=e(29),w=e(51),_=e(57),k=e(64),S=e(67),T=e(68),x=e(71),C=[".customisable",".customisable:link",".customisable:visited"],j=[".customisable:hover",".customisable:focus",".customisable:active",".customisable-highlight:hover",".customisable-highlight:focus","a:hover .customisable-highlight","a:focus .customisable-highlight"],O=["a:hover .ic-mask","a:focus .ic-mask"],E=[".customisable-border"],P=[".timeline-header h1.summary",".timeline-header h1.summary a:link",".timeline-header h1.summary a:visited"];i.prototype=new c,x.aug(i.prototype,{styleSheetUrl:function(){throw new Error("must set styleSheetUrl")},onStyleSheetLoad:function(){},setupSandbox:function(e){var t,n,i=this;this.sandbox=e,t=this.styleSheetUrl(this.lang,this.theme),n=this.onStyleSheetLoad.bind(this),k.some(i.applyInitialSandboxStyles(e),e.appendCss(".SandboxRoot { display:none }"),e.setBaseTarget("_blank"),e.appendStyleSheet(t,n)).then((function(){i.readyResolver.fulfill(e)}))},ready:function(){return this.readyPromise},rendered:function(){return this.renderedPromise},contentWidth:function(e){var t=this.dimensions,n=this.borderless?0:t.BORDERS,i=this.fullBleedPhoto?0:this.chromeless&&this.narrow?t.NARROW_MEDIA_PADDING_CL:this.chromeless?t.WIDE_MEDIA_PADDING_CL:this.narrow?t.NARROW_MEDIA_PADDING:t.WIDE_MEDIA_PADDING;return(e||this.width)-(i+n)},applyInitialSandboxStyles:function(e){return e.style({border:"none",maxWidth:"100%",minWidth:this.dimensions.MIN_WIDTH+"px",margin:this.dimensions.MARGIN,padding:"0",display:"block",position:"absolute",visibility:"hidden"},!0)},applyVisibleSandboxStyles:function(e){return e.style({position:"static",visibility:"visible"})},addSiteStyles:function(){function e(e){return("dark"==t.theme?".thm-dark ":"")+e}var t=this,n=[];return this.headingStyle&&n.push(P.map(e).join(",")+"{"+this.headingStyle+"}"),this.linkColor&&(n.push(C.map(e).join(",")+"{color:"+this.linkColor+"}"),n.push(O.map(e).join(",")+"{background-color:"+this.linkColor+"}"),n.push(j.map(e).join(",")+"{color:"+w.lighten(this.linkColor,.2)+"}")),this.borderColor&&n.push(E.map(e).concat("dark"==this.theme?[".thm-dark.customisable-border"]:[]).join(",")+"{border-color:"+this.borderColor+"}"),n.length?this.sandbox.appendCss(n.join("")):void 0},setNarrow:function(){var e=this,t=this.narrow;return this.narrow=this.width<this.dimensions.NARROW_WIDTH,t!=this.narrow?this.layout((function(){return m.toggle(e.element,"var-narrow",e.narrow)})):k.fulfill(this.narrow)},createScribeData:function(e){var t=x.aug({},this.baseScribeData(),{item_ids:[],item_details:this.extractTweetScribeDetails(e)});return x.forIn(t.item_details,(function(e){t.item_ids.push(e)})),t},bindUIHandlers:function(){var e=this.element;v.delegate(e,"click",".MediaCard-dismissNsfw",(function(){var t=g.closest(".MediaCard",this,e);m.remove(t,"MediaCard--nsfw")}))},bindIntentHandlers:function(){function e(e){var i=g.closest(".tweet",this,n),r=t.createScribeData(i);f.interaction(e,r,!0)}var t=this,n=this.element;v.delegate(n,"click","A",e),v.delegate(n,"click","BUTTON",e),v.delegate(n,"click",".profile",(function(){t.addUrlParams(this)})),v.delegate(n,"click",".follow-button",(function(e){var n;e.altKey||e.metaKey||e.shiftKey||_.ios()||_.android()||T.asBoolean(this.getAttribute("data-age-gate"))||(n=S.intentForFollowURL(this.href,!0))&&(u.open(n,t.sandbox.element()),v.preventDefault(e))})),v.delegate(n,"click",".web-intent",(function(e){t.addUrlParams(this),e.altKey||e.metaKey||e.shiftKey||(u.open(this.href,t.sandbox.element()),v.preventDefault(e))}))},baseScribeData:function(){return{}},extractTweetScribeDetails:function(e){var t,n,i={};return e?(t=e.getAttribute("data-tweet-id"),(n=e.getAttribute("data-rendered-tweet-id")||t)==t?i[n]={item_type:0}:t&&(i[n]={item_type:10,target_type:0,target_id:t}),i):i},constrainMedia:function(e,t){return h.constrainMedia(e||this.element,t||this.contentWidth(),this.dimensions.maxHeight,this.layout)},collapseRegions:function(){var e=this;x.toRealArray(this.element.querySelectorAll(".collapsible-container")).forEach((function(t){var n,i,o=x.toRealArray(t.children),s=o.length&&t.offsetWidth,a=o.length&&o.map((function(e){return e.offsetWidth})),l=o.length;if(o.length)for(;l>0;){if(l--,n=a.reduce(r,0),!s||!n)return;if(s>n)return;(i=o[l].getAttribute("data-collapsed-class"))&&(m.add(e.element,i),a[l]=o[l].offsetWidth)}}))}}),i.VALID_UNIT=/^([0-9]+)( ?px)?$/,i.VALID_COLOR=/^(#(?:[0-9a-f]{3}|[0-9a-f]{6}))$/i,o=i.VALID_COLOR.test(d.val("widgets:link-color"))&&RegExp.$1,a=i.VALID_COLOR.test(d.val("widgets:border-color"))&&RegExp.$1,s=d.val("widgets:theme"),t.exports=i},{11:11,17:17,29:29,33:33,41:41,43:43,46:46,5:5,51:51,57:57,6:6,64:64,67:67,68:68,7:7,71:71,75:75,9:9}],48:[function(e,t,n){function i(e){var t,n,i,r,o,s,l,c;e&&(a.apply(this,[e]),n=((t=this.params()).chrome||this.dataAttr("chrome")||"").split(" "),this.preview=t.previewParams,this.widgetId=t.widgetId||this.dataAttr("widget-id"),this.instanceId=++R,this.cursors={maxPosition:0,minPosition:0},this.override=(r=t.screenName||this.dataAttr("screen-name"))||(o=t.userId||this.dataAttr("user-id"))?{overrideType:"user",overrideId:o,overrideName:r,withReplies:y.asBoolean(t.showReplies||this.dataAttr("show-replies"))?"true":"false"}:(r=t.favoritesScreenName||this.dataAttr("favorites-screen-name"))||(o=t.favoritesUserId||this.dataAttr("favorites-user-id"))?{overrideType:"favorites",overrideId:o,overrideName:r}:((r=t.listOwnerScreenName||this.dataAttr("list-owner-screen-name"))||(o=t.listOwnerId||this.dataAttr("list-owner-id")))&&((s=t.listId||this.dataAttr("list-id"))||(l=t.listSlug||this.dataAttr("list-slug")))?{overrideType:"list",overrideOwnerId:o,overrideOwnerName:r,overrideId:s,overrideName:l}:(c=t.customTimelineId||this.dataAttr("custom-timeline-id"))?{overrideType:"custom",overrideId:c}:{},this.tweetLimit=y.asInt(t.tweetLimit||this.dataAttr("tweet-limit")),this.staticTimeline=this.tweetLimit>0,n.length&&(i=b.contains(n,"none"),this.chromeless=i||b.contains(n,"transparent"),this.headerless=i||b.contains(n,"noheader"),this.footerless=i||b.contains(n,"nofooter"),this.borderless=i||b.contains(n,"noborders"),this.noscrollbar=b.contains(n,"noscrollbar")),this.headingStyle=g.sanitize(t.headingStyle||this.dataAttr("heading-style"),void 0,!0),this.classAttr.push("twitter-timeline-rendered"),this.ariaPolite=t.ariaPolite||this.dataAttr("aria-polite"))}var r=e(14),o=e(3),s=e(43),a=e(47),l=e(53),c=e(2),u=e(23),d=e(39),h=e(41),f=e(31),p=e(32),m=e(42),g=e(52),v=e(57),y=e(68),b=e(71),w=e(6),_=e(5),k=e(7),S=e(56),T=e(54),x=e(19),C=e(18),j=".timeline",O=".new-tweets-bar",E=".stream",P=".h-feed",D=".tweet",L=".detail-expander",A=".expand",M="expanded",$="pending-scroll-in",I="pending-new-tweet-display",N="pending-new-tweet",R=0;i.prototype=new a,b.aug(i.prototype,{renderedClassNames:"twitter-timeline twitter-timeline-rendered",dimensions:{DEFAULT_HEIGHT:"600",DEFAULT_WIDTH:"520",NARROW_WIDTH:"320",maxHeight:"375",MIN_WIDTH:"180",MIN_HEIGHT:"200",MARGIN:"0",WIDE_MEDIA_PADDING:81,NARROW_MEDIA_PADDING:16,WIDE_MEDIA_PADDING_CL:60,NARROW_MEDIA_PADDING_CL:12,BORDERS:2},styleSheetUrl:o.timeline,create:function(e){var t,n,i,r=this,o=this.sandbox.createElement("div"),s=[];return o.innerHTML=e.body,(t=o.children[0]||!1)?(this.reconfigure(e.config),this.discardStaticOverflow(t),this.sandbox.setTitle(t.getAttribute("data-iframe-title")||"Timeline"),h.retinize(t),this.constrainMedia(t),this.searchQuery=t.getAttribute("data-search-query"),this.profileId=t.getAttribute("data-profile-id"),this.timelineType=t.getAttribute("data-timeline-type"),i=this.getTweetDetails(o.querySelector(P)),b.forIn(i,(function(e){s.push(e)})),(n=this.baseScribeData()).item_ids=s,n.item_details=i,this.timelineType&&p.clientEvent({page:this.timelineType+"_timeline",component:"timeline",element:"initial",action:s.length?"results":"no_results"},n,!0),p.clientEvent({page:"timeline",component:"timeline",element:"initial",action:s.length?"results":"no_results"},n,!0),f.scribeTimelineAudienceImpression(),p.flush(),"assertive"==this.ariaPolite&&t.querySelector(O).setAttribute("aria-polite","assertive"),t.id=this.id,t.className+=" "+this.classAttr.join(" "),t.lang=this.lang,this.ready().then((function(e){e.appendChild(t).then((function(){r.renderResolver.fulfill(r.sandbox)})),e.style({display:"inline-block"}),r.layout((function(){r.srcEl&&r.srcEl.parentNode&&r.srcEl.parentNode.removeChild(r.srcEl),r.predefinedWidth=r.width,r.predefinedHeight=r.height,r.width=e.width(r.width),r.height=e.height(r.height)})).then((function(){r.setNarrow(),r.sandbox.onresize(r.handleResize.bind(r)),r.completeResolver.fulfill(r.sandbox.element())}))})),t):void 0},render:function(){var e=this;return this.preview||this.widgetId?(this.rendered().then(this.staticTimeline?function(e){e.resizeToContent(),s.doLayoutAsync()}:function(){e.recalculateStreamHeight(),s.doLayoutAsync()}),this.preview?this.getPreviewTimeline():this.getTimeline(),this.completed().then(this.scribePerformance.bind(this)),this.completed()):(this.completeResolver.reject(400),this.completed())},scribePerformance:function(){u.endAndTrack("render","widgets-js-load","timeline",this.baseScribeData())},getPreviewTimeline:function(){var e=this;d.timelinePreview({success:function(t){e.ready().then((function(){e.element=e.create(t),e.readTranslations(),e.bindInteractions(),e.updateCursors(t.headers,{initial:!0}),s.doLayoutAsync()}))},error:function(t){return t&&t.headers?void e.completeResolver.reject(t.headers.status):void e.completeResolver.fulfill(e.srcEl)},params:this.preview})},getTimeline:function(){var e=this;p.init(),d.timeline(b.aug({id:this.widgetId,instanceId:this.instanceId,dnt:S.enabled(),lang:this.lang,success:function(t){e.ready().then((function(){e.element=e.create(t),e.readTranslations(),e.bindInteractions(),e.updateTimeStamps(),e.updateCursors(t.headers,{initial:!0}),t.headers.xPolling&&/\d/.test(t.headers.xPolling)&&(e.pollInterval=1e3*t.headers.xPolling),e.staticTimeline||e.schedulePolling(),s.doLayoutAsync()}))},error:function(t){return t&&t.headers?void e.completeResolver.reject(t.headers.status):void e.completeResolver.fulfill(e.srcEl)}},this.override))},reconfigure:function(e){this.lang=e.lang,this.theme||(this.theme=e.theme),"dark"==this.theme&&this.classAttr.push("thm-dark"),this.chromeless&&this.classAttr.push("var-chromeless"),this.borderless&&this.classAttr.push("var-borderless"),this.headerless&&this.classAttr.push("var-headerless"),this.footerless&&this.classAttr.push("var-footerless"),this.staticTimeline&&this.classAttr.push("var-static"),!this.linkColor&&e.linkColor&&a.VALID_COLOR.test(e.linkColor)&&(this.linkColor=RegExp.$1),!this.height&&a.VALID_UNIT.test(e.height)&&(this.height=RegExp.$1),this.height=Math.max(this.dimensions.MIN_HEIGHT,this.height?this.height:this.dimensions.DEFAULT_HEIGHT),this.preview&&this.classAttr.push("var-preview"),this.narrow=this.width<=this.dimensions.NARROW_WIDTH,this.narrow&&this.classAttr.push("var-narrow"),this.addSiteStyles()},getTweetDetails:function(e){var t,n=this,i={};return t=e&&e.children||[],b.toRealArray(t).forEach((function(e){b.aug(i,n.extractTweetScribeDetails(e))})),i},baseScribeData:function(){return{widget_id:this.widgetId,widget_origin:T.rootDocumentLocation(),widget_frame:T.isFramed()&&T.currentDocumentLocation(),message:this.partner,query:this.searchQuery,profile_id:this.profileId}},bindInteractions:function(){var e=this,t=this.element,n=!0;this.bindIntentHandlers(),this.bindUIHandlers(),w.delegate(t,"click",".load-tweets",(function(t){n&&(n=!1,e.forceLoad(),w.stop(t))})),w.delegate(t,"click",".display-sensitive-image",(function(n){e.showNSFW(k.closest(D,this,t)),w.stop(n)})),w.delegate(t,"mouseover",j,(function(){e.mouseOver=!0})),w.delegate(t,"mouseout",j,(function(){e.mouseOver=!1})),w.delegate(t,"mouseover",O,(function(){e.mouseOverNotifier=!0})),w.delegate(t,"mouseout",O,(function(){e.mouseOverNotifier=!1,r.setTimeout((function(){e.hideNewTweetNotifier()}),3e3)})),this.staticTimeline||(w.delegate(t,"click",A,(function(n){n.altKey||n.metaKey||n.shiftKey||(e.toggleExpando(k.closest(D,this,t)),w.stop(n))})),w.delegate(t,"click","A",(function(e){w.stopPropagation(e)})),w.delegate(t,"click",".with-expansion",(function(t){e.toggleExpando(this),w.stop(t)})),w.delegate(t,"click",".load-more",(function(){e.loadMore()})),w.delegate(t,"click",O,(function(){e.scrollToTop(),e.hideNewTweetNotifier(!0)})))},scrollToTop:function(){var e=this.element.querySelector(E);e.scrollTop=0,e.focus()},update:function(){var e=this,t=this.element.querySelector(P),n=t&&t.children[0],i=n&&n.getAttribute("data-tweet-id");this.updateTimeStamps(),this.requestTweets(i,!0,(function(t){t.childNodes.length>0&&e.insertNewTweets(t)}))},loadMore:function(){var e=this,t=b.toRealArray(this.element.querySelectorAll(D)).pop(),n=t&&t.getAttribute("data-tweet-id");this.requestTweets(n,!1,(function(t){var i=e.element.querySelector(".no-more-pane"),r=t.childNodes[0];return i.style.cssText="",r&&r.getAttribute("data-tweet-id")==n&&t.removeChild(r),t.childNodes.length>0?void e.appendTweets(t):(_.add(e.element,"no-more"),void i.focus())}))},forceLoad:function(){var e=this,t=!!this.element.querySelectorAll(P).length;this.requestTweets(1,!0,(function(n){n.childNodes.length&&(e[t?"insertNewTweets":"appendTweets"](n),_.add(e.element,"has-tweets"))}))},schedulePolling:function(e){var t=this;null!==this.pollInterval&&(e=C.get("timeline.pollInterval")||e||this.pollInterval||1e4)>-1&&r.setTimeout((function(){t.isUpdating||t.update(),t.schedulePolling()}),e)},updateCursors:function(e,t){(t||{}).initial?(this.cursors.maxPosition=e.maxPosition,this.cursors.minPosition=e.minPosition):(t||{}).newer?this.cursors.maxPosition=e.maxPosition||this.cursors.maxPosition:this.cursors.minPosition=e.minPosition||this.cursors.minPosition},requestTweets:function(e,t,n){var i=this,r={id:this.widgetId,instanceId:this.instanceId,screenName:this.widgetScreenName,userId:this.widgetUserId,withReplies:this.widgetShowReplies,dnt:S.enabled(),lang:this.lang};t&&this.cursors.maxPosition?r.minPosition=this.cursors.maxPosition:!t&&this.cursors.minPosition?r.maxPosition=this.cursors.minPosition:t?r.sinceId=e:r.maxId=e,r.complete=function(){i.isUpdating=!1},r.error=function(e){if(e&&e.headers){if("404"==e.headers.status)return void(i.pollInterval=null);if("503"==e.headers.status)return void(i.pollInterval*=1.5)}},r.success=function(e){var r,o,s=i.sandbox.createDocumentFragment(),a=i.sandbox.createElement("ol"),l=[];if(i.updateCursors(e.headers,{newer:t}),e&&e.headers&&e.headers.xPolling&&/\d+/.test(e.headers.xPolling)&&(i.pollInterval=1e3*e.headers.xPolling),e&&void 0!==e.body){if(a.innerHTML=e.body,a.children[0]&&"LI"!=a.children[0].tagName)return;for(o=i.getTweetDetails(a),b.forIn(o,(function(e){l.push(e)})),l.length&&((r=i.baseScribeData()).item_ids=l,r.item_details=o,r.event_initiator=t?2:0,i.timelineType&&p.clientEvent({page:i.timelineType+"_timeline",component:"timeline",element:"initial",action:l.length?"results":"no_results"},r,!0),p.clientEvent({page:"timeline",component:"timeline",element:t?"newer":"older",action:"results"},r,!0),p.flush()),h.retinize(a),i.constrainMedia(a);a.children[0];)s.appendChild(a.children[0]);n(s)}},d.timelinePoll(b.aug(r,this.override))},insertNewTweets:function(e){var t,n=this,i=this.element.querySelector(E),o=i.querySelector(P),s=o.offsetHeight;return o.insertBefore(e,o.firstChild),t=o.offsetHeight-s,x.get("events").trigger("timelineUpdated",{target:this.sandbox.element(),region:"newer"}),i.scrollTop>40||this.mouseIsOver()?(i.scrollTop=i.scrollTop+t,this.updateTimeStamps(),void this.showNewTweetNotifier()):(_.remove(this.element,$),o.style.cssText="margin-top: -"+t+"px",r.setTimeout((function(){i.scrollTop=0,_.add(n.element,$),v.cssTransitions()?o.style.cssText="":c.animate((function(e){o.style.cssText=t>e?"margin-top: -"+(t-e)+"px":""}),t,500,c.easeOut)}),500),this.updateTimeStamps(),void("custom"!=this.timelineType&&this.gcTweets(50)))},appendTweets:function(e){this.element.querySelector(P).appendChild(e),this.updateTimeStamps(),x.get("events").trigger("timelineUpdated",{target:this.sandbox.element(),region:"older"})},gcTweets:function(e){var t,n=this.element.querySelector(P),i=n.children.length;for(e=e||50;i>e&&(t=n.children[i-1]);i--)n.removeChild(t)},showNewTweetNotifier:function(){var e=this,t=this.element.querySelector(O),n=t.children[0];t.style.cssText="",t.removeChild(n),t.appendChild(n),_.add(this.element,I),r.setTimeout((function(){_.add(e.element,N)}),10),this.newNoticeDisplayTime=+new Date,r.setTimeout((function(){e.hideNewTweetNotifier()}),5e3)},hideNewTweetNotifier:function(e){var t=this;(e||!this.mouseOverNotifier)&&(_.remove(this.element,N),r.setTimeout((function(){_.remove(t.element,I)}),500))},discardStaticOverflow:function(e){var t,n=e.querySelector(P);if(this.staticTimeline)for(this.height=0;t=n.children[this.tweetLimit];)n.removeChild(t)},hideStreamScrollBar:function(){var e,t=this.element.querySelector(E),n=this.element.querySelector(P);t.style.width="",(e=this.element.offsetWidth-n.offsetWidth)>0&&(t.style.width=this.element.offsetWidth+e+"px")},readTranslations:function(){var e=this.element,t="data-dt-";this.datetime=new l(b.compact({phrases:{now:e.getAttribute(t+"now"),s:e.getAttribute(t+"s"),m:e.getAttribute(t+"m"),h:e.getAttribute(t+"h"),second:e.getAttribute(t+"second"),seconds:e.getAttribute(t+"seconds"),minute:e.getAttribute(t+"minute"),minutes:e.getAttribute(t+"minutes"),hour:e.getAttribute(t+"hour"),hours:e.getAttribute(t+"hours")},months:e.getAttribute(t+"months").split("|"),formats:{abbr:e.getAttribute(t+"abbr"),shortdate:e.getAttribute(t+"short"),longdate:e.getAttribute(t+"long")}}))},updateTimeStamps:function(){for(var e,t,n,i,r=this.element.querySelectorAll(".permalink"),o=0;e=r[o];o++)i=(n=e.getAttribute("data-datetime"))&&this.datetime.timeAgo(n,this.i18n),t=e.getElementsByTagName("TIME")[0],i&&(t&&t.innerHTML?t.innerHTML=i:e.innerHTML=i)},mouseIsOver:function(){return this.mouseOver},addUrlParams:function(e){var t=this,n={tw_w:this.widgetId,related:this.related,partner:this.partner,query:this.searchQuery,profile_id:this.profileId,original_referer:T.rootDocumentLocation(),tw_p:"embeddedtimeline"};return this.addUrlParams=m(n,(function(e){var n=k.closest(D,e,t.element);return n&&{tw_i:n.getAttribute("data-tweet-id")}})),this.addUrlParams(e)},showNSFW:function(e){var t,n,i,r,o,s,a=e.querySelector(".nsfw"),l=0;a&&(n=h.scaleDimensions(a.getAttribute("data-width"),a.getAttribute("data-height"),this.contentWidth(),a.getAttribute("data-height")),(t=!!(r=a.getAttribute("data-player")))?o=this.sandbox.createElement("iframe"):(o=this.sandbox.createElement("img"),r=a.getAttribute(v.retina()?"data-image-2x":"data-image"),o.alt=a.getAttribute("data-alt"),(s=this.sandbox.createElement("a")).href=a.getAttribute("data-href"),s.appendChild(o)),o.title=a.getAttribute("data-title"),o.src=r,o.width=n.width,o.height=n.height,i=k.closest(L,a,e),l=n.height-a.offsetHeight,a.parentNode.replaceChild(t?o:s,a),i.style.cssText="height:"+(i.offsetHeight+l)+"px")},toggleExpando:function(e){var t,n,i=e.querySelector(L),r=i&&i.children[0],o=r&&r.getAttribute("data-expanded-media"),a=0,l=e.querySelector(A),c=l&&l.getElementsByTagName("B")[0],u=c&&(c.innerText||c.textContent);if(c){if(this.layout((function(){c.innerHTML=l.getAttribute("data-toggled-text"),l.setAttribute("data-toggled-text",u)})),_.present(e,M))return this.layout((function(){_.remove(e,M)})),i?(this.layout((function(){i.style.cssText="",r.innerHTML=""})),void s.doLayout()):void s.doLayout();o&&((t=this.sandbox.createElement("DIV")).innerHTML=o,h.retinize(t),a=this.constrainMedia(t),this.layout((function(){r.appendChild(t)}))),i&&this.layout((function(){n=Math.max(r.offsetHeight,a),i.style.cssText="height:"+n+"px"})),this.layout((function(){_.add(e,M)})),s.doLayout()}},recalculateStreamHeight:function(e){var t=this,n=this.element.querySelector(".timeline-header"),i=this.element.querySelector(".timeline-footer"),r=this.element.querySelector(E);this.layout((function(){var o=n.offsetHeight+(i?i.offsetHeight:0),s=e||t.sandbox.height();r.style.cssText="height:"+(s-o-2)+"px",t.noscrollbar&&t.hideStreamScrollBar()}))},handleResize:function(e,t){var n=this,i=Math.min(this.dimensions.DEFAULT_WIDTH,Math.max(this.dimensions.MIN_WIDTH,Math.min(this.predefinedWidth||this.dimensions.DEFAULT_WIDTH,e)));(i!=this.width||t!=this.height)&&(this.width=i,this.height=t,this.setNarrow(),this.constrainMedia(this.element,this.contentWidth(i)),this.staticTimeline?this.layout((function(){n.height=n.element.offsetHeight,n.sandbox.height(n.height),x.get("events").trigger("resize",{target:n.sandbox.element()})})):(this.recalculateStreamHeight(t),x.get("events").trigger("resize",{target:this.sandbox.element()})),s.doLayoutAsync())}}),t.exports=i},{14:14,18:18,19:19,2:2,23:23,3:3,31:31,32:32,39:39,41:41,42:42,43:43,47:47,5:5,52:52,53:53,54:54,56:56,57:57,6:6,68:68,7:7,71:71}],49:[function(e,t,n){function i(e){s.apply(this,[e]);var t=this.params(),n=t.count||this.dataAttr("count"),i=t.size||this.dataAttr("size"),r=c.getScreenNameFromPage(),o=""+(t.shareWithRetweet||this.dataAttr("share-with-retweet")||a.val("share-with-retweet"));this.classAttr.push("twitter-tweet-button"),"hashtag"==t.type||l.contains(this.classAttr,"twitter-hashtag-button")?(this.type="hashtag",this.classAttr.push("twitter-hashtag-button")):"mention"==t.type||l.contains(this.classAttr,"twitter-mention-button")?(this.type="mention",this.classAttr.push("twitter-mention-button")):this.classAttr.push("twitter-share-button"),this.text=t.text||this.dataAttr("text"),this.text&&/\+/.test(this.text)&&!/ /.test(this.text)&&(this.text=this.text.replace(/\+/g," ")),this.counturl=t.counturl||this.dataAttr("counturl"),this.searchlink=t.searchlink||this.dataAttr("searchlink"),this.button_hashtag=u.hashTag(t.button_hashtag||t.hashtag||this.dataAttr("button-hashtag"),!1),this.size="large"==i?"l":"m",this.align=t.align||this.dataAttr("align")||"",this.via=t.via||this.dataAttr("via"),this.hashtags=t.hashtags||this.dataAttr("hashtags"),this.screen_name=u.screenName(t.screen_name||t.screenName||this.dataAttr("button-screen-name")),this.url=t.url||this.dataAttr("url"),this.type?(this.count="none",this.shareWithRetweet="never",r&&(this.related=this.related?r+","+this.related:r)):(this.text=this.text||f,this.url=this.url||c.getCanonicalURL()||p,this.count=l.contains(m,n)?n:"horizontal",this.count="vertical"==this.count&&"l"==this.size?"none":this.count,this.via=this.via||r,o&&l.contains(g,o)&&(this.shareWithRetweet=o.replace("-","_")))}var r=e(11),o=e(12),s=e(43),a=e(17),l=e(71),c=e(70),u=e(67),d=e(10),h=e(56),f=r.title,p=o.href,m=["vertical","horizontal","none"],g=["never","publisher-first","publisher-only","author-first","author-only"];i.prototype=new s,l.aug(i.prototype,{iframeSource:"widgets/tweet_button.20ed5cfd7315475c9d1d523194b1645f.{{lang}}.html",widgetUrlParams:function(){return l.compact({text:this.text,url:this.url,via:this.via,related:this.related,count:this.count,lang:this.lang,counturl:this.counturl,searchlink:this.searchlink,placeid:this.placeid,original_referer:o.href,id:this.id,size:this.size,type:this.type,screen_name:this.screen_name,share_with_retweet:this.shareWithRetweet,button_hashtag:this.button_hashtag,hashtags:this.hashtags,align:this.align,partner:this.partner,dnt:h.enabled(),_:+new Date})},height:function(){return"vertical"==this.count?62:"m"==this.size?20:28},width:function(){var e,t="vertical"==this.count,n="hashtag"==this.type&&this.button_hashtag?"Tweet %{hashtag}":"mention"==this.type&&this.screen_name?"Tweet to %{name}":"Tweet",i=this._(n,{name:"@"+this.screen_name,hashtag:"#"+this.button_hashtag}),r=this._("K"),o=this._("100K+"),s=(t?"8888":"88888")+r,a=0,c=0,u=0,h=this.styles.base,f=h;return l.contains(["ja","ko"],this.lang)?s+=this._("10k unit"):s=s.length>o.length?s:o,t?(f=h.concat(this.styles.vbubble),u=8,c=24):"l"==this.size?(h=f=h.concat(this.styles.large),c=38,u=18):(c=24,u=14),"none"!=this.count&&(a=d(s,"",f).width+u),e=d(i,"",h.concat(this.styles.button)).width+c,t?e>a?e:a:this.calculatedWidth=e+a},render:function(){var e=this,t=this.makeIframeSource();return this.count&&this.classAttr.push("twitter-count-"+this.count),this.create(t,this.dimensions(),{title:this._("Twitter Tweet Button")}).then((function(t){return e.element=t}))}}),t.exports=i},{10:10,11:11,12:12,17:17,43:43,56:56,67:67,70:70,71:71}],50:[function(e,t,n){function i(e){if(e){s.apply(this,[e]);var t=this.srcEl&&this.srcEl.getElementsByTagName("A"),n=t&&t[t.length-1],i=this.params();this.hideStatus="hidden"===(i.status||this.dataAttr("status")),this.tweetId=i.tweetId||n&&p.status(n.href)}}var r=e(3),o=e(43),s=e(47),a=e(53),l=e(64),c=e(71),u=e(54),d=e(39),h=e(31),f=e(32),p=e(67),m=e(11),g={},v=[];i.prototype=new s,c.aug(i.prototype,{renderedClassNames:"twitter-video twitter-video-rendered",videoPlayer:!0,dimensions:{DEFAULT_HEIGHT:"0",DEFAULT_WIDTH:"0",maxHeight:"500",MIN_WIDTH:"320",MIN_HEIGHT:"180",MARGIN:"10px 0",WIDE_MEDIA_PADDING:0,NARROW_MEDIA_PADDING:0,BORDERS:0},styleSheetUrl:r.video,applyVisibleSandboxStyles:function(e){return e.style({visibility:"visible"})},applyInitialSandboxStyles:function(e){return e.style({position:"absolute",top:0,left:0,width:"100%",height:"100%",visiblity:"hidden"})},modifyFrame:function(e){return this.constrainingWrapper=m.createElement("div"),this.constrainingWrapper.style.minWidth=this.dimensions.MIN_WIDTH+"px",this.constrainingWrapper.style.margin=this.dimensions.MARGIN,this.wrapper=m.createElement("div"),this.wrapper.style.position="relative",this.wrapper.style.height=0,this.constrainingWrapper.appendChild(this.wrapper),this.wrapper.appendChild(e),this.constrainingWrapper},create:function(e){var t,n,i=this,r=this.sandbox.createElement("div");if(r.innerHTML=e,t=r.children[0]){n=t.children[0],this.playerConfig=JSON.parse(t.getAttribute("data-player-config")),this.sandbox.setTitle(t.getAttribute("data-iframe-title")||"Video"),this.sandbox.appendChild(t).then((function(){i.renderResolver.fulfill(i.sandbox),i.completeResolver.fulfill(i.sandbox.element())}));var o=n.getAttribute("data-width")/n.getAttribute("data-height"),s=1/o*100+"%";return this.layout((function(){i.wrapper.style.paddingBottom=s,i.constrainingWrapper.style.maxWidth=parseInt(i.dimensions.maxHeight,10)*o+"px"})),function(e,t){var n={};n[e]={item_type:0},f.clientEvent({page:"video",component:"tweet",action:"results"},c.aug({},t,{item_ids:[e],item_details:n}),!0),h.scribeVideoAudienceImpression()}(this.tweetId,this.baseScribeData()),t}},render:function(){var e=this;return this.tweetId?(this.rendered().then((function(){var t=e.srcEl;t&&t.parentNode&&e.layout((function(){t.parentNode.removeChild(t)}))})),function(e,t,n,i){g[e]=g[e]||[],g[e].push({s:n,f:i,lang:t})}(this.tweetId,this.lang,(function(t){e.ready().then((function(){e.element=e.create(t),e.readTimestampTranslations(),e.writePlayerConfig()}))}),(function(){(function(e,t){var n={};n[e]={item_type:0},f.clientEvent({page:"video",component:"rawembedcode",action:"no_results"},{widget_origin:u.rootDocumentLocation(),widget_frame:u.isFramed()&&u.currentDocumentLocation(),message:t,item_ids:[e],item_details:n},!0),h.scribeVideoAudienceImpression()})(e.tweetId,e.partner),e.completeResolver.fulfill(e.srcEl)})),v.push(this.completed()),this.completed()):(this.completeResolver.fulfill(this.srcEl),this.completed())},baseScribeData:function(){return{widget_origin:u.rootDocumentLocation(),widget_frame:u.isFramed()&&u.currentDocumentLocation(),message:this.partner}},readTimestampTranslations:function(){var e=this.element,t="data-dt-",n=e.getAttribute(t+"months")||"";this.datetime=new a(c.compact({phrases:{AM:e.getAttribute(t+"am"),PM:e.getAttribute(t+"pm")},months:n.split("|"),formats:{full:e.getAttribute(t+"full")}}))},getTimestamp:function(){var e=this.element.getAttribute("data-datetime");return{local:e&&this.datetime.localTimeStamp(e)}},writePlayerConfig:function(){this.playerConfig.statusTimestamp=this.getTimestamp(),this.playerConfig.hideStatus=this.hideStatus,this.element.setAttribute("data-player-config",JSON.stringify(this.playerConfig))}}),i.fetchAndRender=function(){var e=g,t=[];for(var n in g={},e)e.hasOwnProperty(n)&&t.push(n);t.length&&(d.videos({ids:t.sort(),lang:e[t[0]][0].lang,complete:function(t){c.forIn(t,(function(t,n){e[t].forEach((function(e){e.s&&e.s.call(this,n)})),delete e[t]})),c.forIn(e,(function(e,t){t.forEach((function(t){t.f&&t.f.call(this,e)}))}))}}),l.every.apply(null,v),v=[])},o.afterLoad(i.fetchAndRender),t.exports=i},{11:11,3:3,31:31,32:32,39:39,43:43,47:47,53:53,54:54,64:64,67:67,71:71}],51:[function(e,t,n){function i(e){return o.parseInt(e,16)}function r(e,t){var n,r,o,l;return t=t||0,(e=function(e){return s.isType("string",e)?(e=e.replace(a,""),e+=3===e.length?e:""):null}(e))?(n=0>t?0:255,t=0>t?-Math.max(t,-1):Math.min(t,1),r=i(e.substring(0,2)),o=i(e.substring(2,4)),l=i(e.substring(4,6)),"#"+(16777216+65536*(Math.round((n-r)*t)+r)+256*(Math.round((n-o)*t)+o)+(Math.round((n-l)*t)+l)).toString(16).slice(1)):void 0}var o=e(14),s=e(71),a=/^#/;t.exports={darken:function(e,t){return r(e,-t)},lighten:function(e,t){return r(e,t)}}},{14:14,71:71}],52:[function(e,t,n){t.exports={sanitize:function(e,t,n){var i,r=/^[\w ,%\/"'\-_#]+$/,o=e&&e.split(";").map((function(e){return e.split(":").slice(0,2).map((function(e){return e.trim()}))})),s=0,a=[],l=n?"!important":"";for(t=t||/^(font|text\-|letter\-|color|line\-)[\w\-]*$/;o&&(i=o[s]);s++)i[0].match(t)&&i[1].match(r)&&a.push(i.join(":")+l);return a.join(";")}}},{}],53:[function(e,t,n){function i(e){return 10>e?"0"+e:e}function r(e){function t(e,t){return n&&n[e]&&(e=n[e]),e.replace(/%\{([\w_]+)\}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))}var n=e&&e.phrases,o=e&&e.months||l,s=e&&e.formats||c;this.timeAgo=function(e){var n,i=r.parseDate(e),a=+new Date-i;return i?isNaN(a)||2*u>a?t("now"):d>a?(n=Math.floor(a/u),t(s.abbr,{number:n,symbol:t(p,{abbr:t("s"),expanded:t(n>1?"seconds":"second")})})):h>a?(n=Math.floor(a/d),t(s.abbr,{number:n,symbol:t(p,{abbr:t("m"),expanded:t(n>1?"minutes":"minute")})})):f>a?(n=Math.floor(a/h),t(s.abbr,{number:n,symbol:t(p,{abbr:t("h"),expanded:t(n>1?"hours":"hour")})})):365*f>a?t(s.shortdate,{day:i.getDate(),month:t(o[i.getMonth()])}):t(s.longdate,{day:i.getDate(),month:t(o[i.getMonth()]),year:i.getFullYear().toString().slice(2)}):""},this.localTimeStamp=function(e){var n=r.parseDate(e),a=n&&n.getHours();return n?t(s.full,{day:n.getDate(),month:t(o[n.getMonth()]),year:n.getFullYear(),hours24:i(a),hours12:13>a?a||"12":a-12,minutes:i(n.getMinutes()),seconds:i(n.getSeconds()),amPm:t(12>a?"AM":"PM")}):""}}var o=/(\d{4})-?(\d{2})-?(\d{2})T(\d{2}):?(\d{2}):?(\d{2})(Z|[\+\-]\d{2}:?\d{2})/,s=/[a-z]{3,4} ([a-z]{3}) (\d{1,2}) (\d{1,2}):(\d{2}):(\d{2}) ([\+\-]\d{2}:?\d{2}) (\d{4})/i,a=/^\d+$/,l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c={abbr:"%{number}%{symbol}",shortdate:"%{day} %{month}",longdate:"%{day} %{month} %{year}",full:"%{hours12}:%{minutes} %{amPm} - %{day} %{month} %{year}"},u=1e3,d=60*u,h=60*d,f=24*h,p='<abbr title="%{expanded}">%{abbr}</abbr>';r.parseDate=function(e){var t,n,i=(e||"").toString();return!!(t=function(){var e;return a.test(i)?parseInt(i,10):(e=i.match(s))?Date.UTC(e[7],l.indexOf(e[1]),e[2],e[3],e[4],e[5]):(e=i.match(o))?Date.UTC(e[1],e[2]-1,e[3],e[4],e[5],e[6]):void 0}())&&(n=new Date(t),!isNaN(n.getTime())&&n)},t.exports=r},{}],54:[function(e,t,n){var i=e(12),r=e(70),o=e(71),s=r.getCanonicalURL()||i.href,a=s;t.exports={isFramed:function(){return s!==a},rootDocumentLocation:function(e){return e&&o.isType("string",e)&&(s=e),s},currentDocumentLocation:function(){return a}}},{12:12,70:70,71:71}],55:[function(e,t,n){function i(){c=1;for(var e=0,t=u.length;t>e;e++)u[e]()}var r,o,s,a=e(11),l=e(14),c=0,u=[],d=a.createElement("a");/^loade|c/.test(a.readyState)&&(c=1),a.addEventListener&&a.addEventListener("DOMContentLoaded",o=function(){a.removeEventListener("DOMContentLoaded",o,!1),i()},!1),d.doScroll&&a.attachEvent("onreadystatechange",r=function(){/^c/.test(a.readyState)&&(a.detachEvent("onreadystatechange",r),i())}),s=d.doScroll?function(e){l.self!=l.top?c?e():u.push(e):function(){try{d.doScroll("left")}catch(t){return setTimeout((function(){s(e)}),50)}e()}()}:function(e){c?e():u.push(e)},t.exports=s},{11:11,14:14}],56:[function(e,t,n){var i=e(11),r=e(12),o=e(13),s=e(54),a=e(66),l=e(68),c=e(17),u=!1,d=/https?:\/\/([^\/]+).*/i;t.exports={setOn:function(){u=!0},enabled:function(e,t){return!!(u||l.asBoolean(c.val("dnt"))||o&&(1==o.doNotTrack||1==o.msDoNotTrack)||a.isUrlSensitive(t||r.host)||s.isFramed()&&a.isUrlSensitive(s.rootDocumentLocation())||(e=d.test(e||i.referrer)&&RegExp.$1)&&a.isUrlSensitive(e))}}},{11:11,12:12,13:13,17:17,54:54,66:66,68:68}],57:[function(e,t,n){function i(e){return/(Trident|MSIE \d)/.test(e=e||f)}var r=e(11),o=e(13),s=e(14),a=e(55),l=e(61),c=e(68),u=e(71),d=e(17),h=e(18),f=o.userAgent,p=!1,m=!1,g="twitter-csp-test";h.set("verifyCSP",(function(e){var t=r.getElementById(g);m=!0,p=!!e,t&&t.parentNode.removeChild(t)})),a((function(){var e;return c.asBoolean(d.val("widgets:csp"))?p=!0:((e=r.createElement("script")).id=g,e.text=h.fullPath("verifyCSP")+"(false);",r.body.appendChild(e),void s.setTimeout((function(){m||(l.warn('TWITTER: Content Security Policy restrictions may be applied to your site. Add <meta name="twitter:widgets:csp" content="on"> to supress this warning.'),l.warn("TWITTER: Please note: Not all embedded timeline and embedded Tweet functionality is supported when CSP is applied."))}),5e3))})),t.exports={retina:function(e){return(e=e||s).devicePixelRatio?e.devicePixelRatio>=1.5:!!e.matchMedia&&e.matchMedia("only screen and (min-resolution: 144dpi)").matches},anyIE:i,ie9:function(e){return/MSIE 9/.test(e=e||f)},ios:function(e){return/(iPad|iPhone|iPod)/.test(e=e||f)},android:function(e){return/^Mozilla\/5\.0 \(Linux; (U; )?Android/.test(e=e||f)},cspEnabled:function(){return p},flashEnabled:function(e){e=e||o;try{return!!e.plugins["Shockwave Flash"]||!!new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){return!1}},canPostMessage:function(e,t){return t=t||f,(e=e||s).postMessage&&!(i(t)&&e.opener)},touch:function(e,t,n){return t=t||o,n=n||f,"ontouchstart"in(e=e||s)||/Opera Mini/.test(n)||t.msMaxTouchPoints>0},cssTransitions:function(){var e=r.body.style;return void 0!==e.transition||void 0!==e.webkitTransition||void 0!==e.mozTransition||void 0!==e.oTransition||void 0!==e.msTransition},hasPromiseSupport:function(){return!!(s.Promise&&s.Promise.resolve&&s.Promise.reject&&s.Promise.all&&s.Promise.race&&function(){var e;return new s.Promise((function(t){e=t})),u.isType("function",e)}())}}},{11:11,13:13,14:14,17:17,18:18,55:55,61:61,68:68,71:71}],58:[function(e,t,n){var i=e(71),r={bind:function(e,t){return this._handlers=this._handlers||{},this._handlers[e]=this._handlers[e]||[],this._handlers[e].push(t)},unbind:function(e,t){if(this._handlers[e])if(t){var n=this._handlers[e].indexOf(t);n>=0&&this._handlers[e].splice(n,1)}else this._handlers[e]=[]},trigger:function(e,t){var n=this._handlers&&this._handlers[e];(t=t||{}).type=e,n&&n.forEach((function(e){i.async(e.bind(this,t))}))}};t.exports={Emitter:r}},{71:71}],59:[function(e,t,n){var i=e(11),r=e(71);t.exports=function(e,t,n){var o;if(n=n||i,t=t||{},(e=e||{}).name){try{o=n.createElement('<iframe name="'+e.name+'"></iframe>')}catch(t){(o=n.createElement("iframe")).name=e.name}delete e.name}else o=n.createElement("iframe");return e.id&&(o.id=e.id,delete e.id),o.allowtransparency="true",o.scrolling="no",o.setAttribute("frameBorder",0),o.setAttribute("allowTransparency",!0),r.forIn(e,(function(e,t){o.setAttribute(e,t)})),r.forIn(t,(function(e,t){o.style[e]=t})),o}},{11:11,71:71}],60:[function(e,t,n){function i(){}var r,o=e(14),s=e(64),a=[];i.prototype.enqueue=function(e,t){return new s((function(n){a.push({action:e,resolver:n,note:t})}))},i.prototype.exec=function(){var e,t=a;if(t.length)for(a=[];t.length;)(e=t.shift())&&e.action?e.resolver.fulfill(e.action()):e.resolver.reject()},i.prototype.delayedExec=function(){r&&o.clearTimeout(r),r=o.setTimeout(this.exec,100)},t.exports=i},{14:14,64:64}],61:[function(e,t,n){function i(){s("info",c.toRealArray(arguments))}function r(){s("error",c.toRealArray(arguments))}function o(){return l.performance&&+l.performance.now()||+new Date}function s(e,t){if(l[u]&&l[u][e])switch(t.length){case 1:l[u][e](t[0]);break;case 2:l[u][e](t[0],t[1]);break;case 3:l[u][e](t[0],t[1],t[2]);break;case 4:l[u][e](t[0],t[1],t[2],t[3]);break;case 5:l[u][e](t[0],t[1],t[2],t[3],t[4]);break;default:0!==t.length&&l[u].warn&&l[u].warn("too many params passed to logger."+e)}}var a=e(12),l=e(14),c=e(71),u=["con","sole"].join(""),d={},h=c.contains(a.href,"tw_debug=true");t.exports={info:i,warn:function(){s("warn",c.toRealArray(arguments))},error:r,time:function(e){h&&(d[e]=o())},timeEnd:function(e){h&&(d[e]?i("_twitter",e,o()-d[e]):r("timeEnd() called before time() for id: ",e))}}},{12:12,14:14,71:71}],62:[function(e,t,n){function i(){this.assertions=[],this._defaults={}}var r=e(68),o=e(71);i.prototype.assert=function(e,t){return this.assertions.push({fn:e,msg:t||"assertion failed"}),this},i.prototype.defaults=function(e){return this._defaults=e||this._defaults,this},i.prototype.require=function(e){var t=this;return(e=Array.isArray(e)?e:o.toRealArray(arguments)).forEach((function(e){t.assert(function(e){return function(t){return r.hasValue(t[e])}}(e),"required: "+e)})),this},i.prototype.parse=function(e){var t,n;if(t=o.aug({},this._defaults,e||{}),n=this.assertions.reduce((function(e,n){return n.fn(t)||e.push(n.msg),e}),[]),n.length>0)throw new Error(n.join("\n"));return t},t.exports=i},{68:68,71:71}],63:[function(e,t,n){var i,r,o,s=e(65);i=function(e){var t=e.search.substr(1);return s.decode(t)},r=function(e){var t=e.href,n=t.indexOf("#"),i=0>n?"":t.substring(n+1);return s.decode(i)},o=function(e){var t,n={},o=i(e),s=r(e);for(t in o)o.hasOwnProperty(t)&&(n[t]=o[t]);for(t in s)s.hasOwnProperty(t)&&(n[t]=s[t]);return n},t.exports={combined:o,fromQuery:i,fromFragment:r}},{65:65}],64:[function(e,t,n){function i(e){var t,n,i;return t=new l((function(e,t){n=e,i=t})),e&&e({fulfill:n,reject:i}),t}var r=e(1).Promise,o=e(14),s=e(57),a=e(71),l=s.hasPromiseSupport()?o.Promise:r;i.fulfill=function(e){return l.resolve(e)},i.reject=function(e){return l.reject(e)},i.every=function(){var e=a.toRealArray(arguments);return l.all(e)},i.some=function(){var e=a.toRealArray(arguments),t=0;return e.length?new l((function(n,i){function r(){(t+=1)===e.length&&i()}e.forEach((function(e){e.then(n,r)}))})):l.reject("no promises passed to .some")},i.isThenable=function(e){try{if("function"==typeof e.then)return!0}catch(e){}return!1},t.exports=i},{1:1,14:14,57:57,71:71}],65:[function(e,t,n){function i(e){return encodeURIComponent(e).replace(/\+/g,"%2B").replace(/'/g,"%27")}function r(e){return decodeURIComponent(e)}function o(e){var t=[];return l.forIn(e,(function(e,n){var r=i(e);l.isType("array",n)||(n=[n]),n.forEach((function(e){a.hasValue(e)&&t.push(r+"="+i(e))}))})),t.sort().join("&")}function s(e){var t={};return e?(e.split("&").forEach((function(e){var n=e.split("="),i=r(n[0]),o=r(n[1]);return 2==n.length?l.isType("array",t[i])?void t[i].push(o):i in t?(t[i]=[t[i]],void t[i].push(o)):void(t[i]=o):void 0})),t):{}}var a=e(68),l=e(71);t.exports={url:function(e,t){return o(t).length>0?l.contains(e,"?")?e+"&"+o(t):e+"?"+o(t):e},decodeURL:function(e){var t=e&&e.split("?");return 2==t.length?s(t[1]):{}},decode:s,encode:o,encodePart:i,decodePart:r}},{68:68,71:71}],66:[function(e,t,n){function i(e){return e in s?s[e]:s[e]=o.test(e)}var r=e(12),o=/^[^#?]*\.(gov|mil)(:\d+)?([#?].*)?$/i,s={};t.exports={isUrlSensitive:i,isHostPageSensitive:function(){return i(r.host)}}},{12:12}],67:[function(e,t,n){function i(e){return"string"==typeof e&&c.test(e)&&RegExp.$1.length<=20}function r(e){return i(e)?RegExp.$1:void 0}function o(e,t){var n=l.decodeURL(e);return t=t||!1,n.screen_name=r(e),n.screen_name?l.url("https://twitter.com/intent/"+(t?"follow":"user"),n):void 0}function s(e){return"string"==typeof e&&f.test(e)}function a(e){return"string"==typeof e&&u.test(e)}var l=e(65),c=/(?:^|(?:https?\:)?\/\/(?:www\.)?twitter\.com(?:\:\d+)?(?:\/intent\/(?:follow|user)\/?\?screen_name=|(?:\/#!)?\/))@?([\w]+)(?:\?|&|$)/i,u=/(?:^|(?:https?\:)?\/\/(?:www\.)?twitter\.com(?:\:\d+)?\/(?:#!\/)?[\w_]+\/status(?:es)?\/)(\d+)/i,d=/^http(s?):\/\/(\w+\.)*twitter\.com([\:\/]|$)/i,h=/^http(s?):\/\/pbs\.twimg\.com\//,f=/^#?([^.,<>!\s\/#\-\(\)\'\"]+)$/,p=/twitter\.com(\:\d{2,4})?\/intent\/(\w+)/;t.exports={isHashTag:s,hashTag:function(e,t){return t=void 0===t||t,s(e)?(t?"#":"")+RegExp.$1:void 0},isScreenName:i,screenName:r,isStatus:a,status:function(e){return a(e)&&RegExp.$1},intentForProfileURL:o,intentForFollowURL:function(e){return o(e,!0)},isTwitterURL:function(e){return d.test(e)},isTwimgURL:function(e){return h.test(e)},isIntentURL:function(e){return p.test(e)},regexen:{profile:c}}},{65:65}],68:[function(e,t,n){function i(e){return null!=e&&""!==e}function r(e){return s(e)&&e%1==0}function o(e){return s(e)&&!r(e)}function s(e){return i(e)&&!isNaN(e)}var a=e(71);t.exports={hasValue:i,isInt:r,isFloat:o,isNumber:s,isArray:function(e){return i(e)&&"array"==a.toType(e)},asInt:function(e){return r(e)?e:void 0},asFloat:function(e){return o(e)?e:void 0},asNumber:function(e){return s(e)?e:void 0},asBoolean:function(e){if(!i(e))return!1;switch(e){case"1":case"on":case"ON":case"true":case"TRUE":case"yes":case"YES":return!0;case"0":case"off":case"OFF":case"false":case"FALSE":case"no":case"NO":return!1;default:return!!e}}}},{71:71}],69:[function(e,t,n){var i=0;t.exports={generate:function(){return String(+new Date)+Math.floor(1e5*Math.random())+i++}}},{}],70:[function(e,t,n){function i(e,t){var n,i;return t=t||o,/^https?:\/\//.test(e)?e:/^\/\//.test(e)?t.protocol+e:(n=t.host+(t.port.length?":"+t.port:""),0!==e.indexOf("/")&&((i=t.pathname.split("/")).pop(),i.push(e),e="/"+i.join("/")),[t.protocol,"//",n,e].join(""))}var r=e(11),o=e(12),s=e(67);t.exports={absolutize:i,getCanonicalURL:function(){for(var e,t=r.getElementsByTagName("link"),n=0;e=t[n];n++)if("canonical"==e.rel)return i(e.href)},getScreenNameFromPage:function(){for(var e,t,n,i=[r.getElementsByTagName("a"),r.getElementsByTagName("link")],o=0,a=0,l=/\bme\b/;e=i[o];o++)for(a=0;t=e[a];a++)if(l.test(t.rel)&&(n=s.screenName(t.href)))return n}}},{11:11,12:12,67:67}],71:[function(e,t,n){function i(e,t){for(var n in e)(!e.hasOwnProperty||e.hasOwnProperty(n))&&t(n,e[n]);return e}function r(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function o(e){return e===Object(e)}function s(e){if(!o(e))return!1;if(Object.keys)return!Object.keys(e).length;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function a(e){return Array.prototype.slice.call(e)}var l=e(14);t.exports={aug:function(e){return a(arguments).slice(1).forEach((function(t){i(t,(function(t,n){e[t]=n}))})),e},async:function(e,t){l.setTimeout((function(){e.call(t||null)}),0)},compact:function e(t){return i(t,(function(n,i){o(i)&&(e(i),s(i)&&delete t[n]),(null==i||""===i)&&delete t[n]})),t},contains:function(e,t){return!(!e||!e.indexOf)&&e.indexOf(t)>-1},forIn:i,isObject:o,isEmptyObject:s,toType:r,isType:function(e,t){return e==r(t)},toRealArray:a}},{14:14}],72:[function(e,t,n){function r(){if(o)return o;if(c.isDynamicWidget()){var e,t=0,n=l.parent.frames.length;try{if(o=l.parent.frames[h])return o}catch(e){}if(u.anyIE())for(;n>t;t++)try{if((e=l.parent.frames[t])&&"function"==typeof e.openIntent)return o=e}catch(e){}}}var o,s,a=e(12),l=e(14),c=e(40),u=e(57),d="twttrHubFrameSecure",h="http:"==a.protocol?"twttrHubFrame":d,f=+new Date;t.exports={withHub:function e(){var t,n,o,a,u,d,h={};if("function"===i(arguments[0]).toLowerCase()?h.success=arguments[0]:h=arguments[0],t=h.success||function(){},n=h.timeout||function(){},o=h.nohub||function(){},a=h.complete||function(){},u=void 0!==h.attempt?h.attempt:20,!c.isDynamicWidget()||s)return o(),a(),!1;d=r(),u--;try{if(d&&d.trigger)return t(d),void a()}catch(e){}return 0>=u?(s=!0,n(),void a()):+new Date-f>2e3?(s=!0,void o()):void l.setTimeout((function(){e({success:t,timeout:n,nohub:o,attempt:u,complete:a})}),100)},contextualHubId:h,secureHubId:d}},{12:12,14:14,40:40,57:57}],73:[function(e,t,n){t.exports={version:"43a3a1bd09f3b06042bd5cfbc1b9aded030c1032:1429120612890"}},{}],74:[function(e,t,n){t.exports={css:"ba226255ed1f71521d439fee78573484"}},{}],75:[function(e,t,n){function i(e,t){return e&&e.getAttribute?e.getAttribute("data-"+t):void 0}function r(e,t){return{element:e.element||m,action:e.action||g,page:o(t)?"video":void 0}}function o(e){return c.closest(".embedded-video",e)}function s(e,t){var n,r,s,a=o(t);return a?n=l.aug({item_type:f,card_type:p,id:i(a,"tweet-id"),card_name:i(a,"card-name"),publisher_id:i(a,"publisher-id"),content_id:i(a,"content-id")},e.itemData||{}):(r=c.closest(".cards-multimedia",t),s=c.closest(".tweet",t),n=l.aug({item_type:f,card_type:p,id:i(s,"tweet-id"),card_name:i(r,"card-name"),publisher_id:i(r,"publisher-id"),content_id:i(r,"video-content-id")},e.itemData||{})),{items:[n]}}function a(e){var t=this;this.global=e,this.server=(new u).attachReceiver(new h.Receiver(e,"")).bind("scribe",(function(e){t.scribe(e,this)})).bind("requestPlayerConfig",(function(){return t.requestPlayerConfig(this)}))}var l=e(71),c=e(7),u=e(26),d=e(33),h=e(27),f=0,p=6,m="amplify_player",g="undefined";a.prototype.findIframeByWindow=function(e){for(var t=this.global.document.getElementsByTagName("iframe"),n=t.length,i=0;n>i;i++)if(t[i].contentWindow==e)return t[i]},a.prototype.requestPlayerConfig=function(e){var t=this.findIframeByWindow(e);if(t)return function(e){return JSON.parse(i(o(e),"player-config"))}(t)},a.prototype.scribe=function(e,t){var n,i,o,a;n=e&&e.customScribe,i=this.findIframeByWindow(t),n&&i&&(o=r(n,i),a=s(n,i),d.clientEvent2(o,a,!0))},t.exports=a},{26:26,27:27,33:33,7:7,71:71}],76:[function(e,t,n){!function(){var t=e(11),n=e(37),i=e(55),r=e(61),o=e(23),s=e(43),a=e(45),l=e(49),c=e(44),u=e(48),d=e(50),h=e(46),f=e(35),p=e(58),m=e(36),g=e(21),v=e(19),y=e(18),b=e(15),w=e(64);if(y.init("host","platform.twitter.com"),o.start("widgets-js-load"),n.requestArticleUrl(),y.get("widgets.loaded"))return v.call("widgets.load"),!1;if(y.get("widgets.init"))return!1;y.set("widgets.init",!0),v.set("init",!0);var _,k=new w((function(e){_=e.fulfill.bind(e)}));b.exposeReadyPromise(k,v.base,"_e"),v.set("events",{bind:function(e,t){k.then((function(n){n.events.bind(e,t)}))}}),i((function(){var e,n={"a.twitter-share-button":l,"a.twitter-mention-button":l,"a.twitter-hashtag-button":l,"a.twitter-follow-button":a,"blockquote.twitter-tweet":c,"a.twitter-timeline":u,"div.twitter-timeline":u,"blockquote.twitter-video":d,body:h},i=y.get("eventsHub")?v.get("events"):{};v.aug("widgets",f,{load:function(e){r.time("load"),s.init(n),s.embed(e),y.set("widgets.loaded",!0)}}),v.aug("events",i,p.Emitter),e=v.get("events.bind"),v.set("events.bind",(function(t,n){y.set("eventsHub",m.init()),m.init(!0),this.bind=e,this.bind(t,n)})),_(v.base),g.attachTo(t),v.call("widgets.load")}))}()},{11:11,15:15,18:18,19:19,21:21,23:23,35:35,36:36,37:37,43:43,44:44,45:45,46:46,48:48,49:49,50:50,55:55,58:58,61:61,64:64}],77:[function(e,t,n){function i(){}var r=e(71),o=e(58);r.aug(i.prototype,o.Emitter,{transportMethod:"",init:function(){},send:function(e){var t;this._ready?this._performSend(e):t=this.bind("ready",(function(){this.unbind("ready",t),this._performSend(e)}))},ready:function(){this.trigger("ready",this),this._ready=!0},isReady:function(){return!!this._ready},receive:function(e){this.trigger("message",e)}}),t.exports={Connection:i}},{58:58,71:71}],78:[function(e,t,n){var i=e(14);t.exports={object:function(e,t){var n=t||Math.floor(100*Math.random());return['<object id="xdflashshim'+n+'" name="xdflashshim'+n+'"','type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"','width="1" height="1" style="position:absolute;left:-9999px;top:-9999px;">','<param name="movie" value="'+e+"&debug="+i.__XDDEBUG__+'">','<param name="wmode" value="window">','<param name="allowscriptaccess" value="always">',"</object>"].join(" ")}}},{14:14}],79:[function(e,t,n){function i(e){return(JSON.parse||JSON.decode)(e)}function r(e){this.con=e}function o(){this.id=o.id++}var s=e(71),a=e(58);s.aug(r.prototype,{expose:function(e){this.con.bind("message",this._handleRequest(e))},call:function(e){var t,n=this;return this._requests||(this._requests={},this.con.bind("message",(function(e){var t;try{e=i(e)}catch(e){return}e.callback&&"number"==typeof e.id&&(t=n._requests[e.id])&&(e.error?t.trigger("error",e):t.trigger("success",e),delete n._requests[e.id])}))),t=new o,this._requests[t.id]=t,t.send(this.con,e,Array.prototype.slice.call(arguments,1))},_handleRequest:function(e){var t=this;return function(n){var r,o;try{n=i(n)}catch(e){return}n.callback||"number"==typeof n.id&&"function"==typeof e[n.method]&&(o=t._responseCallbacks(n.id),void 0!==(r=e[n.method].apply(e,n.params.concat(o)))&&o[0](r))}},_responseCallbacks:function(e){var t=this.con;return[function(n){t.send(JSON.stringify({id:e,result:n,callback:!0}))},function n(i){t.send(JSON.stringify({id:e,error:n,callback:i}))}]}}),o.id=0,s.aug(o.prototype,a.Emitter,{send:function(e,t,n){return e.send(JSON.stringify({id:this.id,method:t,params:n})),this},success:function(e){return this.bind("success",e),this},error:function(e){return this.bind("error",e),this}}),t.exports=function(e){return new r(e)}},{58:58,71:71}],80:[function(e,t,n){function i(){}function r(e){this.transportMethod="PostMessage",this.options=e,this._createChild()}function o(e){this.transportMethod="Flash",this.options=e,this.token=Math.random().toString(16).substring(2),this._setup()}function s(e){this.transportMethod="Fallback",this.options=e,this._createChild()}var a,l=e(11),c=e(14),u=e(77),d=e(71),h=e(57),f=e(22),p="__ready__",m=0;i.prototype=new u.Connection,d.aug(i.prototype,{_createChild:function(){this.options.window?this._createWindow():this._createIframe()},_createIframe:function(){var e,t,n,i,r=this,o={allowTransparency:!0,frameBorder:"0",scrolling:"no",tabIndex:"0",name:this._name()},s=d.aug(d.aug({},o),this.options.iframe);c.postMessage?(a||(a=l.createElement("iframe")),e=a.cloneNode(!1)):e=l.createElement('<iframe name="'+s.name+'">'),e.id=s.name,d.forIn(s,(function(t,n){"style"!=t&&e.setAttribute(t,n)})),(i=e.getAttribute("style"))&&void 0!==i.cssText?i.cssText=s.style:e.style.cssText=s.style,e.addEventListener("load",(function(){r.child=e.contentWindow,r._ready||r.init()}),!1),e.src=this._source(),(t=this.options.appendTo)?t.appendChild(e):(n=this.options.replace)?(t=n.parentNode)&&t.replaceChild(e,n):l.body.insertBefore(e,l.body.firstChild)},_createWindow:function(){var e=f.open(this._source()).popup;e&&e.focus(),this.child=e,this.init()},_source:function(){return this.options.src},_name:function(){var e="_xd_"+m++;return c.parent&&c.parent!=c&&c.name&&(e=c.name+e),e}}),r.prototype=new i,d.aug(r.prototype,{init:function(){var e=this;c.addEventListener("message",(function(t){t.source===e.child&&(e._ready||t.data!==p?e.receive(t.data):e.ready())}),!1)},_performSend:function(e){this.child.postMessage(e,this.options.src)}}),o.prototype=new i,d.aug(o.prototype,{_setup:function(){var t=this,n=e(78);c["__xdcb"+t.token]={receive:function(e){t._ready||e!==p?t.receive(e):t.ready()},loaded:function(){}};var i=l.createElement("div");i.innerHTML=n.object("https://platform.twitter.com/xd/ft.swf?&token="+t.token+"&parent=true&callback=__xdcb"+t.token+"&xdomain="+t._host(),t.token),l.body.insertBefore(i,l.body.firstChild),t.proxy=i.firstChild,t._createChild()},init:function(){},_performSend:function(e){this.proxy.send(e)},_host:function(){return this.options.src.replace(/https?:\/\//,"").split(/(:|\/)/)[0]},_source:function(){return this.options.src+(this.options.src.match(/\?/)?"&":"?")+"xd_token="+c.escape(this.token)}}),s.prototype=new i,d.aug(s.prototype,{init:function(){},_performSend:function(){}}),t.exports={connect:function(e){return!h.canPostMessage()||h.anyIE()&&e.window?h.anyIE()&&h.flashEnabled()?new o(e):new s(e):new r(e)}}},{11:11,14:14,22:22,57:57,71:71,77:77,78:78}]},{},[76]))},6112:()=>{!function(){var e=$(window),t=!1;e.scroll((function(){t=!0}));var n=0,i=e.scrollTop(),r=i;setInterval((function(){if(t){var o=(r=e.scrollTop())-i;n+=o,5>=Math.abs(o)||(0<o?e.trigger("scrolldown",{distance:n}):e.trigger("scrollup",{distance:n}),i=r,t=!1)}else n=0}),250)}()},4888:(e,t,n)=>{var i,r,o;o="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g,i=[n(2856),n(5932),t],r=function(e,t,n){o.Backbone=function(e,t,n,i){var r=e.Backbone,o=Array.prototype.slice;t.VERSION="1.6.0",t.$=i,t.noConflict=function(){return e.Backbone=r,this},t.emulateHTTP=!1,t.emulateJSON=!1;var s,a=t.Events={},l=/\s+/,c=function(e,t,i,r,o){var s,a=0;if(i&&"object"==typeof i){void 0!==r&&"context"in o&&void 0===o.context&&(o.context=r);for(s=n.keys(i);a<s.length;a++)t=c(e,t,s[a],i[s[a]],o)}else if(i&&l.test(i))for(s=i.split(l);a<s.length;a++)t=e(t,s[a],r,o);else t=e(t,i,r,o);return t};a.on=function(e,t,n){return this._events=c(u,this._events||{},e,t,{context:n,ctx:this,listening:s}),s&&((this._listeners||(this._listeners={}))[s.id]=s,s.interop=!1),this},a.listenTo=function(e,t,i){if(!e)return this;var r=e._listenId||(e._listenId=n.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),a=s=o[r];a||(this._listenId||(this._listenId=n.uniqueId("l")),a=s=o[r]=new g(this,e));var l=d(e,t,i,this);if(s=void 0,l)throw l;return a.interop&&a.on(t,i),this};var u=function(e,t,n,i){if(n){var r=e[t]||(e[t]=[]),o=i.context,s=i.ctx,a=i.listening;a&&a.count++,r.push({callback:n,context:o,ctx:o||s,listening:a})}return e},d=function(e,t,n,i){try{e.on(t,n,i)}catch(e){return e}};a.off=function(e,t,n){return this._events?(this._events=c(h,this._events,e,t,{context:n,listeners:this._listeners}),this):this},a.stopListening=function(e,t,i){var r=this._listeningTo;if(!r)return this;for(var o=e?[e._listenId]:n.keys(r),s=0;s<o.length;s++){var a=r[o[s]];if(!a)break;a.obj.off(t,i,this),a.interop&&a.off(t,i)}return n.isEmpty(r)&&(this._listeningTo=void 0),this};var h=function(e,t,i,r){if(e){var o,s=r.context,a=r.listeners,l=0;if(t||s||i){for(o=t?[t]:n.keys(e);l<o.length;l++){var c=e[t=o[l]];if(!c)break;for(var u=[],d=0;d<c.length;d++){var h=c[d];if(i&&i!==h.callback&&i!==h.callback._callback||s&&s!==h.context)u.push(h);else{var f=h.listening;f&&f.off(t,i)}}u.length?e[t]=u:delete e[t]}return e}for(o=n.keys(a);l<o.length;l++)a[o[l]].cleanup()}};a.once=function(e,t,n){var i=c(f,{},e,t,this.off.bind(this));return"string"==typeof e&&null==n&&(t=void 0),this.on(i,t,n)},a.listenToOnce=function(e,t,n){var i=c(f,{},t,n,this.stopListening.bind(this,e));return this.listenTo(e,i)};var f=function(e,t,i,r){if(i){var o=e[t]=n.once((function(){r(t,o),i.apply(this,arguments)}));o._callback=i}return e};a.trigger=function(e){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),n=Array(t),i=0;i<t;i++)n[i]=arguments[i+1];return c(p,this._events,e,void 0,n),this};var p=function(e,t,n,i){if(e){var r=e[t],o=e.all;r&&o&&(o=o.slice()),r&&m(r,i),o&&m(o,[t].concat(i))}return e},m=function(e,t){var n,i=-1,r=e.length,o=t[0],s=t[1],a=t[2];switch(t.length){case 0:for(;++i<r;)(n=e[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=e[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=e[i]).callback.call(n.ctx,o,s);return;case 3:for(;++i<r;)(n=e[i]).callback.call(n.ctx,o,s,a);return;default:for(;++i<r;)(n=e[i]).callback.apply(n.ctx,t);return}},g=function(e,t){this.id=e._listenId,this.listener=e,this.obj=t,this.interop=!0,this.count=0,this._events=void 0};g.prototype.on=a.on,g.prototype.off=function(e,t){var n;this.interop?(this._events=c(h,this._events,e,t,{context:void 0,listeners:void 0}),n=!this._events):(this.count--,n=0===this.count),n&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},a.bind=a.on,a.unbind=a.off,n.extend(t,a);var v=t.Model=function(e,t){var i=e||{};t||(t={}),this.preinitialize.apply(this,arguments),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(i=this.parse(i,t)||{});var r=n.result(this,"defaults");i=n.defaults(n.extend({},r,i),r),this.set(i,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(v.prototype,a,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!n.iteratee(e,this)(this.attributes)},set:function(e,t,i){if(null==e)return this;var r;if("object"==typeof e?(r=e,i=t):(r={})[e]=t,i||(i={}),!this._validate(r,i))return!1;var o=i.unset,s=i.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,d=this._previousAttributes;for(var h in r)t=r[h],n.isEqual(c[h],t)||a.push(h),n.isEqual(d[h],t)?delete u[h]:u[h]=t,o?delete c[h]:c[h]=t;if(this.idAttribute in r){var f=this.id;this.id=this.get(this.idAttribute),this.trigger("changeId",this,f,i)}if(!s){a.length&&(this._pending=i);for(var p=0;p<a.length;p++)this.trigger("change:"+a[p],this,c[a[p]],i)}if(l)return this;if(!s)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var i in this.attributes)t[i]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,i=this._changing?this._previousAttributes:this.attributes,r={};for(var o in e){var s=e[o];n.isEqual(i[o],s)||(r[o]=s,t=!0)}return!!t&&r},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=n.extend({parse:!0},e);var t=this,i=e.success;return e.success=function(n){var r=e.parse?t.parse(n,e):n;if(!t.set(r,e))return!1;i&&i.call(e.context,t,n,e),t.trigger("sync",t,n,e)},U(this,e),this.sync("read",this,e)},save:function(e,t,i){var r;null==e||"object"==typeof e?(r=e,i=t):(r={})[e]=t;var o=(i=n.extend({validate:!0,parse:!0},i)).wait;if(r&&!o){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;var s=this,a=i.success,l=this.attributes;i.success=function(e){s.attributes=l;var t=i.parse?s.parse(e,i):e;if(o&&(t=n.extend({},r,t)),t&&!s.set(t,i))return!1;a&&a.call(i.context,s,e,i),s.trigger("sync",s,e,i)},U(this,i),r&&o&&(this.attributes=n.extend({},l,r));var c=this.isNew()?"create":i.patch?"patch":"update";"patch"!==c||i.attrs||(i.attrs=r);var u=this.sync(c,this,i);return this.attributes=l,u},destroy:function(e){e=e?n.clone(e):{};var t=this,i=e.success,r=e.wait,o=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(n){r&&o(),i&&i.call(e.context,t,n,e),t.isNew()||t.trigger("sync",t,n,e)};var s=!1;return this.isNew()?n.defer(e.success):(U(this,e),s=this.sync("delete",this,e)),r||o(),s},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||F();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var i=this.validationError=this.validate(e,t)||null;return!i||(this.trigger("invalid",this,i,n.extend(t,{validationError:i})),!1)}});var y=t.Collection=function(e,t){t||(t={}),this.preinitialize.apply(this,arguments),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},b={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},_=function(e,t,n){n=Math.min(Math.max(n,0),e.length);var i,r=Array(e.length-n),o=t.length;for(i=0;i<r.length;i++)r[i]=e[i+n];for(i=0;i<o;i++)e[i+n]=t[i];for(i=0;i<r.length;i++)e[i+o+n]=r[i]};n.extend(y.prototype,a,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map((function(t){return t.toJSON(e)}))},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,w))},remove:function(e,t){t=n.extend({},t);var i=!n.isArray(e);e=i?[e]:e.slice();var r=this._removeModels(e,t);return!t.silent&&r.length&&(t.changes={added:[],merged:[],removed:r},this.trigger("update",this,t)),i?r[0]:r},set:function(e,t){if(null!=e){(t=n.extend({},b,t)).parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var i=!n.isArray(e);e=i?[e]:e.slice();var r=t.at;null!=r&&(r=+r),r>this.length&&(r=this.length),r<0&&(r+=this.length+1);var o,s,a=[],l=[],c=[],u=[],d={},h=t.add,f=t.merge,p=t.remove,m=!1,g=this.comparator&&null==r&&!1!==t.sort,v=n.isString(this.comparator)?this.comparator:null;for(s=0;s<e.length;s++){o=e[s];var y=this.get(o);if(y){if(f&&o!==y){var w=this._isModel(o)?o.attributes:o;t.parse&&(w=y.parse(w,t)),y.set(w,t),c.push(y),g&&!m&&(m=y.hasChanged(v))}d[y.cid]||(d[y.cid]=!0,a.push(y)),e[s]=y}else h&&(o=e[s]=this._prepareModel(o,t))&&(l.push(o),this._addReference(o,t),d[o.cid]=!0,a.push(o))}if(p){for(s=0;s<this.length;s++)d[(o=this.models[s]).cid]||u.push(o);u.length&&this._removeModels(u,t)}var k=!1,S=!g&&h&&p;if(a.length&&S?(k=this.length!==a.length||n.some(this.models,(function(e,t){return e!==a[t]})),this.models.length=0,_(this.models,a,0),this.length=this.models.length):l.length&&(g&&(m=!0),_(this.models,l,null==r?this.length:r),this.length=this.models.length),m&&this.sort({silent:!0}),!t.silent){for(s=0;s<l.length;s++)null!=r&&(t.index=r+s),(o=l[s]).trigger("add",o,this,t);(m||k)&&this.trigger("sort",this,t),(l.length||u.length||c.length)&&(t.changes={added:l,removed:u,merged:c},this.trigger("update",this,t))}return i?e[0]:e}},reset:function(e,t){t=t?n.clone(t):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return o.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(this._isModel(e)?e.attributes:e,e.idAttribute)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw new Error("Cannot sort a set without a comparator");e||(e={});var i=t.length;return n.isFunction(t)&&(t=t.bind(this)),1===i||n.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){var t=(e=n.extend({parse:!0},e)).success,i=this;return e.success=function(n){var r=e.reset?"reset":"set";i[r](n,e),t&&t.call(e.context,i,n,e),i.trigger("sync",i,n,e)},U(this,e),this.sync("read",this,e)},create:function(e,t){var i=(t=t?n.clone(t):{}).wait;if(!(e=this._prepareModel(e,t)))return!1;i||this.add(e,t);var r=this,o=t.success;return t.success=function(e,t,n){i&&(e.off("error",r._forwardPristineError,r),r.add(e,n)),o&&o.call(n.context,e,t,n)},i&&e.once("error",this._forwardPristineError,this),e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e,t){return e[t||this.model.prototype.idAttribute||"id"]},values:function(){return new S(this,T)},keys:function(){return new S(this,x)},entries:function(){return new S(this,C)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){return this._isModel(e)?(e.collection||(e.collection=this),e):((t=t?n.clone(t):{}).collection=this,(i=this.model.prototype?new this.model(e,t):this.model(e,t)).validationError?(this.trigger("invalid",this,i.validationError,t),!1):i);var i},_removeModels:function(e,t){for(var n=[],i=0;i<e.length;i++){var r=this.get(e[i]);if(r){var o=this.indexOf(r);this.models.splice(o,1),this.length--,delete this._byId[r.cid];var s=this.modelId(r.attributes,r.idAttribute);null!=s&&delete this._byId[s],t.silent||(t.index=o,r.trigger("remove",r,this,t)),n.push(r),this._removeReference(r,t)}}return e.length>0&&!t.silent&&delete t.index,n},_isModel:function(e){return e instanceof v},_addReference:function(e,t){this._byId[e.cid]=e;var n=this.modelId(e.attributes,e.idAttribute);null!=n&&(this._byId[n]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var n=this.modelId(e.attributes,e.idAttribute);null!=n&&delete this._byId[n],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,i){if(t){if(("add"===e||"remove"===e)&&n!==this)return;if("destroy"===e&&this.remove(t,i),"changeId"===e){var r=this.modelId(t.previousAttributes(),t.idAttribute),o=this.modelId(t.attributes,t.idAttribute);null!=r&&delete this._byId[r],null!=o&&(this._byId[o]=t)}}this.trigger.apply(this,arguments)},_forwardPristineError:function(e,t,n){this.has(e)||this._onModelEvent("error",e,t,n)}});var k="function"==typeof Symbol&&Symbol.iterator;k&&(y.prototype[k]=y.prototype.values);var S=function(e,t){this._collection=e,this._kind=t,this._index=0},T=1,x=2,C=3;k&&(S.prototype[k]=function(){return this}),S.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var e,t=this._collection.at(this._index);if(this._index++,this._kind===T)e=t;else{var n=this._collection.modelId(t.attributes,t.idAttribute);e=this._kind===x?n:[n,t]}return{value:e,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var j=t.View=function(e){this.cid=n.uniqueId("view"),this.preinitialize.apply(this,arguments),n.extend(this,n.pick(e,E)),this._ensureElement(),this.initialize.apply(this,arguments)},O=/^(\S+)\s*(.*)$/,E=["model","collection","el","id","attributes","className","tagName","events"];n.extend(j.prototype,a,{tagName:"div",$:function(e){return this.$el.find(e)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=n.result(this,"events")),!e)return this;for(var t in this.undelegateEvents(),e){var i=e[t];if(n.isFunction(i)||(i=this[i]),i){var r=t.match(O);this.delegate(r[1],r[2],i.bind(this))}}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}});var P=function(e,t,i,r){n.each(i,(function(n,i){t[i]&&(e.prototype[i]=function(e,t,n,i){switch(t){case 1:return function(){return e[n](this[i])};case 2:return function(t){return e[n](this[i],t)};case 3:return function(t,r){return e[n](this[i],D(t,this),r)};case 4:return function(t,r,o){return e[n](this[i],D(t,this),r,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[i]),e[n].apply(e,t)}}}(t,n,i,r))}))},D=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?L(e):n.isString(e)?function(t){return t.get(e)}:e},L=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}};n.each([[y,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],(function(e){var t=e[0],i=e[1],r=e[2];t.mixin=function(e){var i=n.reduce(n.functions(e),(function(e,t){return e[t]=0,e}),{});P(t,e,i,r)},P(t,n,i,r)})),t.sync=function(e,i,r){var o=A[e];n.defaults(r||(r={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var s={type:o,dataType:"json"};if(r.url||(s.url=n.result(i,"url")||F()),null!=r.data||!i||"create"!==e&&"update"!==e&&"patch"!==e||(s.contentType="application/json",s.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),r.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",r.emulateJSON&&(s.data._method=o);var a=r.beforeSend;r.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||r.emulateJSON||(s.processData=!1);var l=r.error;r.error=function(e,t,n){r.textStatus=t,r.errorThrown=n,l&&l.call(r.context,e,t,n)};var c=r.xhr=t.ajax(n.extend(s,r));return i.trigger("request",i,c,r),c};var A={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var M=t.Router=function(e){e||(e={}),this.preinitialize.apply(this,arguments),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},$=/\((.*?)\)/g,I=/(\(\?)?:\w+/g,N=/\*\w+/g,R=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(M.prototype,a,{preinitialize:function(){},initialize:function(){},route:function(e,i,r){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var o=this;return t.history.route(e,(function(n){var s=o._extractParameters(e,n);!1!==o.execute(r,s,i)&&(o.trigger.apply(o,["route:"+i].concat(s)),o.trigger("route",i,s),t.history.trigger("route",o,i,s))})),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(R,"\\$&").replace($,"(?:$1)?").replace(I,(function(e,t){return t?e:"([^/?]+)"})).replace(N,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var i=e.exec(t).slice(1);return n.map(i,(function(e,t){return t===i.length-1?e||null:e?decodeURIComponent(e):null}))}});var W=t.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},z=/^[#\/]|\s+$/g,B=/^\/+|\/+$/g,H=/#.*$/;W.started=!1,n.extend(W.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(z,"")},start:function(e){if(W.started)throw new Error("Backbone.history has already been started");if(W.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._trailingSlash=this.options.trailingSlash,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(B,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,r=i.insertBefore(this.iframe,i.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash="#"+this.fragment}var o=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),W.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!this.matchRoot()&&this.notfound();this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return this.matchRoot()?(e=this.fragment=this.getFragment(e),n.some(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0}))||this.notfound()):this.notfound()},notfound:function(){return this.trigger("notfound"),!1},navigate:function(e,t){if(!W.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;this._trailingSlash||""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var i=n+e;e=e.replace(H,"");var r=this.decodeFragment(e);if(this.fragment!==r){if(this.fragment=r,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var o=this.iframe.contentWindow;t.replace||(o.document.open(),o.document.close()),this._updateHash(o.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var i=e.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+t)}else e.hash="#"+t}}),t.history=new W;v.extend=y.extend=M.extend=j.extend=W.extend=function(e,t){var i,r=this;return i=e&&n.has(e,"constructor")?e.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,t),i.prototype=n.create(r.prototype,e),i.prototype.constructor=i,i.__super__=r.prototype,i};var F=function(){throw new Error('A "url" property or function must be specified')},U=function(e,t){var n=t.error;t.error=function(i){n&&n.call(t.context,e,i,t),e.trigger("error",e,i,t)}};return t._debug=function(){return{root:e,_:n}},t}(o,n,e,t)}.apply(t,i),void 0===r||(e.exports=r)},5904:function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";var e={},t=[],n=new RegExp(/^\w+\: +(.+)$/),i=new RegExp(/^\s*((\{\s*(\-?\d+[\s*,\s*\-?\d+]*)\s*\})|([\[\]])\s*(-Inf|\-?\d+)\s*,\s*(\+?Inf|\-?\d+)\s*([\[\]]))\s?(.+?)$/),r=new RegExp(/^\s*(\{\s*(\-?\d+[\s*,\s*\-?\d+]*)\s*\})|([\[\]])\s*(-Inf|\-?\d+)\s*,\s*(\+?Inf|\-?\d+)\s*([\[\]])/),o={locale:u(),fallback:"en",placeHolderPrefix:"%",placeHolderSuffix:"%",defaultDomain:"messages",pluralSeparator:"|",add:function(n,i,r,o){var s=o||this.locale||this.fallback,a=r||this.defaultDomain;return e[s]||(e[s]={}),e[s][a]||(e[s][a]={}),e[s][a][n]=i,!1===function(e,t){for(var n=0;n<e.length;n++)if(t===e[n])return!0;return!1}(t,a)&&t.push(a),this},trans:function(e,t,n,i){return s(a(e,n,i,this.locale,this.fallback),t||{})},transChoice:function(e,t,l,u,d){var h=a(e,u,d,this.locale,this.fallback),f=parseInt(t,10);return void 0===(l=l||{}).count&&(l.count=t),void 0===h||isNaN(f)||(h=function(e,t,s){var a,l,u=[],d=[],h=e.split(o.pluralSeparator),f=[];for(a=0;a<h.length;a++){var p=h[a];i.test(p)?u[(f=p.match(i))[0]]=f[f.length-1]:n.test(p)?(f=p.match(n),d.push(f[1])):d.push(p)}for(l in u)if(r.test(l))if((f=l.match(r))[1]){var m,g=f[2].split(",");for(m in g)if(t==g[m])return u[l]}else{var v=c(f[4]),y=c(f[5]);if(("["===f[3]?t>=v:t>v)&&("]"===f[6]?t<=y:t<y))return u[l]}return d[function(e,t){var n=t;switch("pt_BR"===n&&(n="xbr"),n.length>3&&(n=n.split("_")[0]),n){case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":default:return 0;case"af":case"az":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return 1==e?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return 0===e||1==e?0:1;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return 1==e?0:e>=2&&e<=4?1:2;case"ga":return 1==e?0:2==e?1:2;case"lt":return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100==1?0:e%100==2?1:e%100==3||e%100==4?2:3;case"mk":return e%10==1?0:1;case"mt":return 1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return 0===e?0:e%10==1&&e%100!=11?1:2;case"pl":return 1==e?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return 1==e?0:2==e?1:8==e||11==e?2:3;case"ro":return 1==e?0:0===e||e%100>0&&e%100<20?1:2;case"ar":return 0===e?0:1==e?1:2==e?2:e>=3&&e<=10?3:e>=11&&e<=99?4:5}}(t,s)]||d[0]||void 0}(h,f,d||this.locale||this.fallback)),s(h,l)},fromJSON:function(e){if("string"==typeof e&&(e=JSON.parse(e)),e.locale&&(this.locale=e.locale),e.fallback&&(this.fallback=e.fallback),e.defaultDomain&&(this.defaultDomain=e.defaultDomain),e.translations)for(var t in e.translations)for(var n in e.translations[t])for(var i in e.translations[t][n])this.add(i,e.translations[t][n][i],n,t);return this},reset:function(){e={},t=[],this.locale=u()}};function s(e,t){var n,i=o.placeHolderPrefix,r=o.placeHolderSuffix;for(n in t){var s=new RegExp(i+n+r,"g");if(s.test(e)){var a=String(t[n]).replace(new RegExp("\\$","g"),"$$$$");e=e.replace(s,a)}}return e}function a(n,i,r,o,s){var a,c,u,d=r||o||s,h=i,f=d.split("_")[0];if(!(d in e))if(f in e)d=f;else{if(!(s in e))return n;d=s}if(null==h)for(var p=0;p<t.length;p++)if(l(d,t[p],n)||l(f,t[p],n)||l(s,t[p],n)){h=t[p];break}if(l(d,h,n))return e[d][h][n];for(;d.length>2&&(a=d.length,u=(c=d.split(/[\s_]+/))[c.length-1].length,1!==c.length);)if(l(d=d.substring(0,a-(u+1)),h,n))return e[d][h][n];return l(s,h,n)?e[s][h][n]:n}function l(t,n,i){return t in e&&n in e[t]&&i in e[t][n]}function c(e){return"-Inf"===e?Number.NEGATIVE_INFINITY:"+Inf"===e||"Inf"===e?Number.POSITIVE_INFINITY:parseInt(e,10)}function u(){return"undefined"!=typeof document?document.documentElement.lang.replace("-","_"):"en"}return o})?i.call(t,n,t,e):i)||(e.exports=r)},2264:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",i="second",r="minute",o="hour",s="day",a="week",l="month",c="quarter",u="year",d="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+g(i,2,"0")+":"+g(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,l),o=n-r<0,s=t.clone().add(i+(o?-1:1),l);return+(-(i+(n-r)/(o?r-s:s-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:a,d:s,D:d,h:o,m:r,s:i,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=m;var w="$isDayjsObject",_=function(e){return e instanceof x||!(!e||!e[w])},k=function e(t,n,i){var r;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(r=o),n&&(b[o]=n,r=o);var s=t.split("-");if(!r&&s.length>1)return e(s[0])}else{var a=t.name;b[a]=t,r=a}return!i&&r&&(y=r),r||!i&&y},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},T=v;T.l=k,T.i=_,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(f);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!T.u(t)||t,h=T.p(e),f=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?i:i.endOf(s)},p=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case u:return c?f(1,0):f(31,11);case l:return c?f(1,g):f(0,g+1);case a:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return f(c?v-w:v+(6-w),g);case s:case d:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var a,c=T.p(e),h="set"+(this.$u?"UTC":""),f=(a={},a[s]=h+"Date",a[d]=h+"Date",a[l]=h+"Month",a[u]=h+"FullYear",a[o]=h+"Hours",a[r]=h+"Minutes",a[i]=h+"Seconds",a[n]=h+"Milliseconds",a)[c],p=c===s?this.$D+(t-this.$W):t;if(c===l||c===u){var m=this.clone().set(d,1);m.$d[f](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[T.p(e)]()},g.add=function(n,c){var d,h=this;n=Number(n);var f=T.p(c),p=function(e){var t=S(h);return T.w(t.date(t.date()+Math.round(e*n)),h)};if(f===l)return this.set(l,this.$M+n);if(f===u)return this.set(u,this.$y+n);if(f===s)return p(1);if(f===a)return p(7);var m=(d={},d[r]=e,d[o]=t,d[i]=1e3,d)[f]||1,g=this.$d.getTime()+n*m;return T.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=T.z(this),o=this.$H,s=this.$m,a=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,r,o){return e&&(e[n]||e(t,i))||r[n].slice(0,o)},f=function(e){return T.s(o%12||12,e,"0")},m=u||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(p,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return a+1;case"MM":return T.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return T.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(o,s,!0);case"A":return m(o,s,!1);case"m":return String(s);case"mm":return T.s(s,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,h){var f,p=this,m=T.p(d),g=S(n),v=(g.utcOffset()-this.utcOffset())*e,y=this-g,b=function(){return T.m(p,g)};switch(m){case u:f=b()/12;break;case l:f=b();break;case c:f=b()/3;break;case a:f=(y-v)/6048e5;break;case s:f=(y-v)/864e5;break;case o:f=y/t;break;case r:f=y/e;break;case i:f=y/1e3;break;default:f=y}return h?f:T.a(f)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=k(e,t,!0);return i&&(n.$L=i),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),C=x.prototype;return S.prototype=C,[["$ms",n],["$s",i],["$m",r],["$H",o],["$W",s],["$M",l],["$y",u],["$D",d]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,x,S),e.$i=!0),S},S.locale=k,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=b[y],S.Ls=b,S.p={},S}()},3435:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},a=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,i=o.meridiem;if(i){for(var r=1;r<=24;r+=1)if(e.indexOf(i(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[r,function(e){this.afternoon=u(e,!1)}],a:[r,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,a("seconds")],ss:[i,a("seconds")],m:[i,a("minutes")],mm:[i,a("minutes")],H:[i,a("hours")],h:[i,a("hours")],HH:[i,a("hours")],hh:[i,a("hours")],D:[i,a("day")],DD:[n,a("day")],Do:[r,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],M:[i,a("month")],MM:[n,a("month")],MMM:[r,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,a("year")],Z:l,ZZ:l};function h(n){var i,r;i=n,r=o&&o.formats;for(var s=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,i){var o=i&&i.toUpperCase();return n||r[i]||e[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,l=0;l<a;l+=1){var c=s[l],u=d[c],h=u&&u[0],f=u&&u[1];s[l]=f?{regex:h,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,i=0;n<a;n+=1){var r=s[n];if("string"==typeof r)i+=r.length;else{var o=r.regex,l=r.parser,c=e.slice(i),u=o.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var i=t.prototype,r=i.parse;i.parse=function(e){var t=e.date,i=e.utc,s=e.args;this.$u=i;var a=s[1];if("string"==typeof a){var l=!0===s[2],c=!0===s[3],u=l||c,d=s[2];c&&(d=s[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=h(t)(e),r=i.year,o=i.month,s=i.day,a=i.hours,l=i.minutes,c=i.seconds,u=i.milliseconds,d=i.zone,f=new Date,p=s||(r||o?1:f.getDate()),m=r||f.getFullYear(),g=0;r&&!o||(g=o>0?o-1:f.getMonth());var v=a||0,y=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(m,g,p,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,p,v,y,b,w)):new Date(m,g,p,v,y,b,w)}catch(e){return new Date("")}}(t,a,i),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={}}else if(a instanceof Array)for(var f=a.length,p=1;p<=f;p+=1){s[1]=a[p-1];var m=n.apply(this,s);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===f&&(this.$d=new Date(""))}else r.call(this,e)}}}()},3332:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,i){var r=n.prototype,o=r.format;i.en.formats=e,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,i=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,i,r){var o=r&&r.toUpperCase();return i||n[r]||e[r]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return o.call(this,i)}}}()},7336:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var i=t.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,r){return i.fromToBase(e,t,n,r)}n.en.relativeTime=r,i.fromToBase=function(t,i,o,s,a){for(var l,c,u,d=o.$locale().relativeTime||r,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=h.length,p=0;p<f;p+=1){var m=h[p];m.d&&(l=s?n(t).diff(o,m.d,!0):o.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,g<=m.r||!m.r){g<=1&&p>0&&(m=h[p-1]);var v=d[m.l];a&&(g=a(""+g)),c="string"==typeof v?v.replace("%d",g):v(g,i,m.l,u);break}}if(i)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},i.to=function(e,t){return o(e,t,this,!0)},i.from=function(e,t){return o(e,t,this)};var s=function(e){return e.$u?n.utc():n()};i.toNow=function(e){return this.to(s(this),e)},i.fromNow=function(e){return this.from(s(this),e)}}}()},616:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,i,r){var o,s=function(e,n,i){void 0===i&&(i={});var r=new Date(e),o=function(e,n){void 0===n&&(n={});var i=n.timeZoneName||"short",r=e+"|"+i,o=t[r];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),t[r]=o),o}(n,i);return o.formatToParts(r)},a=function(t,n){for(var i=s(t,n),o=[],a=0;a<i.length;a+=1){var l=i[a],c=l.type,u=l.value,d=e[c];d>=0&&(o[d]=parseInt(u,10))}var h=o[3],f=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+f+":"+o[4]+":"+o[5]+":000",m=+t;return(r.utc(p).valueOf()-(m-=m%1e3))/6e4},l=i.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n=this.utcOffset(),i=this.toDate(),s=i.toLocaleString("en-US",{timeZone:e}),a=Math.round((i-new Date(s))/1e3/60),l=r(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-a,!0);if(t){var c=l.utcOffset();l=l.add(n-c,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),n=s(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,n){var i=n&&t,s=n||t||o,l=a(+r(),s);if("string"!=typeof e)return r(e).tz(s);var c=function(e,t,n){var i=e-60*t*1e3,r=a(i,n);if(t===r)return[i,t];var o=a(i-=60*(r-t)*1e3,n);return r===o?[i,r]:[e-60*Math.min(r,o)*1e3,Math.max(r,o)]}(r.utc(e,i).valueOf(),l,s),u=c[0],d=c[1],h=r(u).utcOffset(d);return h.$x.$timezone=s,h},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){o=e}}}()},5816:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var i=n.Ls[e];if(i)return(t?Object.keys(t):[]).forEach((function(e){i[e]=t[e]})),i}}}()},7943:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,r,o){var s=r.prototype;o.utc=function(e){return new r({date:e,utc:!0,args:arguments})},s.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=s.utcOffset;s.utcOffset=function(i,r){var o=this.$utils().u;if(o(i))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof i&&(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var r=(""+i[0]).match(n)||["-",0,0],o=r[0],s=60*+r[1]+ +r[2];return 0===s?0:"+"===o?s:-s}(i),null===i))return this;var s=Math.abs(i)<=16?60*i:i,a=this;if(r)return a.$offset=s,a.$u=0===i,a;if(0!==i){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+l,e)).$offset=s,a.$x.$localOffset=l}else a=this.utc();return a};var u=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var i=this.local(),r=o(e).local();return h.call(i,r,t,n)}}}()},5932:(e,t,n)=>{var i=n(7588),r=n(9128);void 0===r.$&&(r.$=i),void 0===r.jQuery&&(r.jQuery=i),e.exports=i},5544:(e,t,n)=>{var i=n(4888);n(9128).Backbone=i,e.exports=i},8368:(e,t,n)=>{var i=n(2264),r=n(9128);void 0===r.dayjs&&(r.dayjs=i),e.exports=i},1400:(e,t,n)=>{var i=n(5904),r=n(9128);void 0===r.Translator&&(r.Translator=i),e.exports=i},9128:(e,t,n)=>{"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return e}()},7668:()=>{!function(e){var t=function(t){this._options={checkOnLoad:!1,resetOnEnd:!1,loopCheckTime:50,loopMaxNumber:5,baitClass:"pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links",baitStyle:"width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;",debug:!1},this._var={version:"3.2.1",bait:null,checking:!1,loop:null,loopNumber:0,event:{detected:[],notDetected:[]}},void 0!==t&&this.setOption(t);var n=this,i=function(){setTimeout((function(){!0===n._options.checkOnLoad&&(!0===n._options.debug&&n._log("onload->eventCallback","A check loading is launched"),null===n._var.bait&&n._creatBait(),setTimeout((function(){n.check()}),1))}),1)};void 0!==e.addEventListener?e.addEventListener("load",i,!1):e.attachEvent("onload",i)};t.prototype._options=null,t.prototype._var=null,t.prototype._bait=null,t.prototype._log=function(e,t){console.log("[FuckAdBlock]["+e+"] "+t)},t.prototype.setOption=function(e,t){if(void 0!==t){var n=e;(e={})[n]=t}for(var i in e)this._options[i]=e[i],!0===this._options.debug&&this._log("setOption",'The option "'+i+'" he was assigned to "'+e[i]+'"');return this},t.prototype._creatBait=function(){var t=document.createElement("div");t.setAttribute("class",this._options.baitClass),t.setAttribute("style",this._options.baitStyle),this._var.bait=e.document.body.appendChild(t),this._var.bait.offsetParent,this._var.bait.offsetHeight,this._var.bait.offsetLeft,this._var.bait.offsetTop,this._var.bait.offsetWidth,this._var.bait.clientHeight,this._var.bait.clientWidth,!0===this._options.debug&&this._log("_creatBait","Bait has been created")},t.prototype._destroyBait=function(){e.document.body.removeChild(this._var.bait),this._var.bait=null,!0===this._options.debug&&this._log("_destroyBait","Bait has been removed")},t.prototype.check=function(e){if(void 0===e&&(e=!0),!0===this._options.debug&&this._log("check","An audit was requested "+(!0===e?"with a":"without")+" loop"),!0===this._var.checking)return!0===this._options.debug&&this._log("check","A check was canceled because there is already an ongoing"),!1;this._var.checking=!0,null===this._var.bait&&this._creatBait();var t=this;return this._var.loopNumber=0,!0===e&&(this._var.loop=setInterval((function(){t._checkBait(e)}),this._options.loopCheckTime)),setTimeout((function(){t._checkBait(e)}),1),!0===this._options.debug&&this._log("check","A check is in progress ..."),!0},t.prototype._checkBait=function(t){var n=!1;if(null===this._var.bait&&this._creatBait(),null===e.document.body.getAttribute("abp")&&null!==this._var.bait.offsetParent&&0!=this._var.bait.offsetHeight&&0!=this._var.bait.offsetLeft&&0!=this._var.bait.offsetTop&&0!=this._var.bait.offsetWidth&&0!=this._var.bait.clientHeight&&0!=this._var.bait.clientWidth||(n=!0),void 0!==e.getComputedStyle){var i=e.getComputedStyle(this._var.bait,null);!i||"none"!=i.getPropertyValue("display")&&"hidden"!=i.getPropertyValue("visibility")||(n=!0)}!0===this._options.debug&&this._log("_checkBait","A check ("+(this._var.loopNumber+1)+"/"+this._options.loopMaxNumber+" ~"+(1+this._var.loopNumber*this._options.loopCheckTime)+"ms) was conducted and detection is "+(!0===n?"positive":"negative")),!0===t&&(this._var.loopNumber++,this._var.loopNumber>=this._options.loopMaxNumber&&this._stopLoop()),!0===n?(this._stopLoop(),this._destroyBait(),this.emitEvent(!0),!0===t&&(this._var.checking=!1)):null!==this._var.loop&&!1!==t||(this._destroyBait(),this.emitEvent(!1),!0===t&&(this._var.checking=!1))},t.prototype._stopLoop=function(e){clearInterval(this._var.loop),this._var.loop=null,this._var.loopNumber=0,!0===this._options.debug&&this._log("_stopLoop","A loop has been stopped")},t.prototype.emitEvent=function(e){!0===this._options.debug&&this._log("emitEvent","An event with a "+(!0===e?"positive":"negative")+" detection was called");var t=this._var.event[!0===e?"detected":"notDetected"];for(var n in t)!0===this._options.debug&&this._log("emitEvent","Call function "+(parseInt(n)+1)+"/"+t.length),t.hasOwnProperty(n)&&t[n]();return!0===this._options.resetOnEnd&&this.clearEvent(),this},t.prototype.clearEvent=function(){this._var.event.detected=[],this._var.event.notDetected=[],!0===this._options.debug&&this._log("clearEvent","The event list has been cleared")},t.prototype.on=function(e,t){return this._var.event[!0===e?"detected":"notDetected"].push(t),!0===this._options.debug&&this._log("on",'A type of event "'+(!0===e?"detected":"notDetected")+'" was added'),this},t.prototype.onDetected=function(e){return this.on(!0,e)},t.prototype.onNotDetected=function(e){return this.on(!1,e)},e.FuckAdBlock=t,void 0===e.fuckAdBlock&&(e.fuckAdBlock=new t({checkOnLoad:!0,resetOnEnd:!0}))}(window)},452:(e,t,n)=>{n(2608),e.exports=self.fetch.bind(self)},7588:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var i,r,o=(n=n||b).createElement("script");if(o.text=e,t)for(i in w)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var S="3.7.1",T=/HTML$/i,x=function(e,t){return new x.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function j(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}x.fn=x.prototype={jquery:S,constructor:x,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},x.extend=x.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(c&&i&&(x.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[t],o=r&&!Array.isArray(n)?[]:r||x.isPlainObject(n)?n:{},r=!1,s[t]=x.extend(c,o,i)):void 0!==i&&(s[t]=i));return s},x.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e)||(t=s(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||p.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r)for(;t=e[i++];)n+=x.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?x.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!T.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,s=!n;r<o;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,s=[];if(C(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&s.push(r);return l(s)},guid:1,support:g}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=o[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var O=o.pop,E=o.sort,P=o.splice,D="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");x.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var A=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function M(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}x.escapeSelector=function(e){return(e+"").replace(A,M)};var $=b,I=c;!function(){var e,t,n,r,s,l,c,d,h,p,m=I,v=x.expando,y=0,b=0,w=ee(),_=ee(),k=ee(),S=ee(),T=function(e,t){return e===t&&(s=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",A="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+D+"*("+A+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+A+"))|)"+D+"*\\]",N=":("+A+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",R=new RegExp(D+"+","g"),W=new RegExp("^"+D+"*,"+D+"*"),z=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),B=new RegExp(D+"|>"),H=new RegExp(N),F=new RegExp("^"+A+"$"),U={ID:new RegExp("^#("+A+")"),CLASS:new RegExp("^\\.("+A+")"),TAG:new RegExp("^("+A+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,K=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),J=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},Q=he((function(e){return!0===e.disabled&&j(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(o=a.call($.childNodes),$.childNodes),o[$.childNodes.length].nodeType}catch(e){m={apply:function(e,t){I.apply(e,a.call(t))},call:function(e){I.apply(e,a.call(arguments,1))}}}function Z(e,t,n,i){var r,o,s,a,c,u,f,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,d)){if(11!==y&&(c=Y.exec(e)))if(r=c[1]){if(9===y){if(!(s=t.getElementById(r)))return n;if(s.id===r)return m.call(n,s),n}else if(p&&(s=p.getElementById(r))&&Z.contains(t,s)&&s.id===r)return m.call(n,s),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(r)),n}if(!(S[e+" "]||h&&h.test(e))){if(f=e,p=t,1===y&&(B.test(e)||z.test(e))){for((p=G.test(e)&&ae(t.parentNode)||t)==t&&g.scope||((a=t.getAttribute("id"))?a=x.escapeSelector(a):t.setAttribute("id",a=v)),o=(u=ue(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+de(u[o]);f=u.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(t){S(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return ye(e.replace(L,"$1"),t,n,i)}function ee(){var e=[];return function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return j(t,"input")&&t.type===e}}function re(e){return function(t){return(j(t,"input")||j(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Q(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te((function(t){return t=+t,te((function(n,i){for(var r,o=e([],n.length,t),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:$;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!x.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&$!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",X),g.getById=ne((function(e){return c.appendChild(e).id=x.expando,!l.getElementsByName||!l.getElementsByName(x.expando).length})),g.disconnectedMatch=ne((function(e){return p.call(e,"*")})),g.scope=ne((function(){return l.querySelectorAll(":scope")})),g.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(K,J);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(K,J);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+C+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),T=function(e,t){if(e===t)return s=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==$&&Z.contains($,e)?-1:t===l||t.ownerDocument==$&&Z.contains($,t)?1:r?u.call(r,e)-u.call(r,t):0:4&n?-1:1)},l):l}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),d&&!S[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){S(t,!0)}return Z(t,l,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),x.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],r=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==r?r:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,o=0;if(s=!g.sortStable,r=!g.sortStable&&a.call(e,0),E.call(e,T),s){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)P.call(e,n[i],1)}return r=null,e},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(a.apply(this)))},t=x.expr={cacheLength:50,createPseudo:te,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(K,J),e[3]=(e[3]||e[4]||e[5]||"").replace(K,J),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(K,J).toLowerCase();return"*"===e?function(){return!0}:function(e){return j(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=Z.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=o!==s?"nextSibling":"previousSibling",m=t.parentNode,g=a&&t.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(m){if(o){for(;p;){for(d=t;d=d[p];)if(a?j(d,g):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&b){for(w=(h=(c=(u=m[v]||(m[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(w=h=0)||f.pop();)if(1===d.nodeType&&++w&&d===t){u[e]=[y,h,w];break}}else if(b&&(w=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===w)for(;(d=++h&&d&&d[p]||(w=h=0)||f.pop())&&(!(a?j(d,g):1===d.nodeType)||!++w||(b&&((u=d[v]||(d[v]={}))[e]=[y,w]),d!==t)););return(w-=r)===i||w%i==0&&w/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return r[v]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,o=r(e,n),s=o.length;s--;)e[i=u.call(e,o[s])]=!(t[i]=o[s])})):function(e){return r(e,0,i)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(L,"$1"));return i[v]?te((function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(K,J),function(t){return(t.textContent||x.text(t)).indexOf(e)>-1}})),lang:te((function(e){return F.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(K,J).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return j(e,"input")&&!!e.checked||j(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){return j(e,"input")&&"button"===e.type||j(e,"button")},text:function(e){var t;return j(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se((function(){return[0]})),last:se((function(e,t){return[t-1]})),eq:se((function(e,t,n){return[n<0?n+t:n]})),even:se((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:se((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:se((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:se((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,n){var i,r,o,s,a,l,c,u=_[e+" "];if(u)return n?0:u.slice(0);for(a=e,l=[],c=t.preFilter;a;){for(s in i&&!(r=W.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=z.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(L," ")}),a=a.slice(i.length)),t.filter)!(r=U[s].exec(a))||c[s]&&!(r=c[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?Z.error(e):_(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function he(e,t,n){var i=t.dir,r=t.next,o=r||i,s=n&&"parentNode"===o,a=b++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,r);return!1}:function(t,n,l){var c,u,d=[y,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(u=t[v]||(t[v]={}),r&&j(t,r))t=t[i]||t;else{if((c=u[o])&&c[0]===y&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,r){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,i,r)||(s.push(o),c&&t.push(a)));return s}function me(e,t,n,i,r,o){return i&&!i[v]&&(i=me(i)),r&&!r[v]&&(r=me(r,o)),te((function(o,s,a,l){var c,d,h,f,p=[],g=[],v=s.length,y=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)Z(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),b=!e||!o&&t?y:pe(y,p,e,a,l);if(n?n(b,f=r||(o?e:v||i)?[]:s,a,l):f=b,i)for(c=pe(f,g),i(c,[],a,l),d=c.length;d--;)(h=c[d])&&(f[g[d]]=!(b[g[d]]=h));if(o){if(r||e){if(r){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(b[d]=h);r(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=r?u.call(o,h):p[d])>-1&&(o[c]=!(s[c]=h))}}else f=pe(f===s?f.splice(v,f.length):f),r?r(null,s,f,l):m.apply(s,f)}))}function ge(e){for(var i,r,o,s=e.length,a=t.relative[e[0].type],l=a||t.relative[" "],c=a?1:0,d=he((function(e){return e===i}),l,!0),h=he((function(e){return u.call(i,e)>-1}),l,!0),f=[function(e,t,r){var o=!a&&(r||t!=n)||((i=t).nodeType?d(e,t,r):h(e,t,r));return i=null,o}];c<s;c++)if(r=t.relative[e[c].type])f=[he(fe(f),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<s&&!t.relative[e[o].type];o++);return me(c>1&&fe(f),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(L,"$1"),r,c<o&&ge(e.slice(c,o)),o<s&&ge(e=e.slice(o)),o<s&&de(e))}f.push(r)}return fe(f)}function ve(e,i){var r,o=[],s=[],a=k[e+" "];if(!a){for(i||(i=ue(e)),r=i.length;r--;)(a=ge(i[r]))[v]?o.push(a):s.push(a);a=k(e,function(e,i){var r=i.length>0,o=e.length>0,s=function(s,a,c,u,h){var f,p,g,v=0,b="0",w=s&&[],_=[],k=n,S=s||o&&t.find.TAG("*",h),T=y+=null==k?1:Math.random()||.1,C=S.length;for(h&&(n=a==l||a||h);b!==C&&null!=(f=S[b]);b++){if(o&&f){for(p=0,a||f.ownerDocument==l||(le(f),c=!d);g=e[p++];)if(g(f,a||l,c)){m.call(u,f);break}h&&(y=T)}r&&((f=!g&&f)&&v--,s&&w.push(f))}if(v+=b,r&&b!==v){for(p=0;g=i[p++];)g(w,_,a,c);if(s){if(v>0)for(;b--;)w[b]||_[b]||(_[b]=O.call(u));_=pe(_)}m.apply(u,_),h&&!s&&_.length>0&&v+i.length>1&&x.uniqueSort(u)}return h&&(y=T,n=k),w};return r?te(s):s}(s,o)),a.selector=e}return a}function ye(e,n,i,r){var o,s,a,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(i=i||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&d&&t.relative[s[1].type]){if(!(n=(t.find.ID(a.matches[0].replace(K,J),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(s.shift().value.length)}for(o=U.needsContext.test(e)?0:s.length;o--&&(a=s[o],!t.relative[l=a.type]);)if((c=t.find[l])&&(r=c(a.matches[0].replace(K,J),G.test(s[0].type)&&ae(n.parentNode)||n))){if(s.splice(o,1),!(e=r.length&&de(s)))return m.apply(i,r),i;break}}return(u||ve(e,h))(r,n,!d,i,!n||G.test(e)&&ae(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=v.split("").sort(T).join("")===v,le(),g.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),x.find=Z,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Z.compile=ve,Z.select=ye,Z.setDocument=le,Z.tokenize=ue,Z.escape=x.escapeSelector,Z.getText=x.text,Z.isXML=x.isXMLDoc,Z.selectors=x.expr,Z.support=x.support,Z.uniqueSort=x.uniqueSort}();var N=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&x(e).is(n))break;i.push(e)}return i},R=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},W=x.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(e,t,n){return v(t)?x.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?x.grep(e,(function(e){return u.call(t,e)>-1!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?x.find.matchesSelector(i,e)?[i]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<i;t++)if(x.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)x.find(e,r[t],n);return i>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(B(this,e||[],!1))},not:function(e){return this.pushStack(B(this,e||[],!0))},is:function(e){return!!B(this,"string"==typeof e&&W.test(e)?x(e):e||[],!1).length}});var H,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||H,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:F.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),z.test(i[1])&&x.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,H=x(b);var U=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,o=[],s="string"!=typeof e&&x(e);if(!W.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(x(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return N(e,"parentNode")},parentsUntil:function(e,t,n){return N(e,"parentNode",n)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return N(e,"nextSibling")},prevAll:function(e){return N(e,"previousSibling")},nextUntil:function(e,t,n){return N(e,"nextSibling",n)},prevUntil:function(e,t,n){return N(e,"previousSibling",n)},siblings:function(e){return R((e.parentNode||{}).firstChild,e)},children:function(e){return R(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(j(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,i){var r=x.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=x.filter(i,r)),this.length>1&&(q[e]||x.uniqueSort(r),U.test(e)&&r.reverse()),this.pushStack(r)}}));var Y=/[^\x20\t\r\n\f]+/g;function G(e){return e}function K(e){throw e}function J(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(Y)||[],(function(e,n){t[n]=!0})),t}(e):x.extend({},e);var t,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||e.once,i=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){x.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==k(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return x.each(arguments,(function(e,t){for(var n;(n=x.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(e){return e?x.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(n){x.each(t,(function(t,i){var r=v(e[i[4]])&&e[i[4]];o[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var o=0;function s(e,t,n,r){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(e<o)){if((i=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,s(o,t,G,r),s(o,t,K,r)):(o++,c.call(i,s(o,t,G,r),s(o,t,K,r),s(o,t,G,t.notifyWith))):(n!==G&&(a=void 0,l=[i]),(r||t.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(i){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(i,u.error),e+1>=o&&(n!==K&&(a=void 0,l=[i]),t.rejectWith(a,l))}};e?u():(x.Deferred.getErrorHook?u.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(u.error=x.Deferred.getStackHook()),i.setTimeout(u))}}return x.Deferred((function(i){t[0][3].add(s(0,i,v(r)?r:G,i.notifyWith)),t[1][3].add(s(0,i,v(e)?e:G)),t[2][3].add(s(0,i,v(n)?n:K))})).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},o={};return x.each(t,(function(e,i){var s=i[2],a=i[5];r[i[1]]=s.add,a&&s.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=s.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=a.call(arguments),o=x.Deferred(),s=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?a.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(J(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)J(r[n],s(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&X.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){i.setTimeout((function(){throw e}))};var Q=x.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),i.removeEventListener("load",Z),x.ready()}x.fn.ready=function(e){return Q.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||Q.resolveWith(b,[x]))}}),x.ready.then=Q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(x.ready):(b.addEventListener("DOMContentLoaded",Z),i.addEventListener("load",Z));var ee=function(e,t,n,i,r,o,s){var a=0,l=e.length,c=null==n;if("object"===k(n))for(a in r=!0,n)ee(e,t,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,v(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(x(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return r?e:c?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ne,ie)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function se(){this.expando=x.expando+se.uid++}se.uid=1,se.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[re(t)]=n;else for(i in t)r[re(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(re):(t=re(t))in i?[t]:t.match(Y)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||x.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var ae=new se,le=new se,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return le.hasData(e)||ae.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return ae.access(e,t,n)},_removeData:function(e,t){ae.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=le.get(o),1===o.nodeType&&!ae.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=re(i.slice(5)),de(o,i,r[i]));ae.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),x.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=ae.get(e,t),n&&(!i||Array.isArray(n)?i=ae.access(e,t,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),i=n.length,r=n.shift(),o=x._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){x.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ae.get(e,n)||ae.access(e,n,{empty:x.Callbacks("once memory").add((function(){ae.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=x.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=ae.get(o[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],me=b.documentElement,ge=function(e){return x.contains(e.ownerDocument,e)},ve={composed:!0};me.getRootNode&&(ge=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===x.css(e,"display")};function be(e,t,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return x.css(e,t,"")},l=a(),c=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+l)&&fe.exec(x.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)x.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,x.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var we={};function _e(e){var t,n=e.ownerDocument,i=e.nodeName,r=we[i];return r||(t=n.body.appendChild(n.createElement(i)),r=x.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),we[i]=r,r)}function ke(e,t){for(var n,i,r=[],o=0,s=e.length;o<s;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=ae.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ye(i)&&(r[o]=_e(i))):"none"!==n&&(r[o]="none",ae.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}x.fn.extend({show:function(){return ke(this,!0)},hide:function(){return ke(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?x(this).show():x(this).hide()}))}});var Se,Te,xe=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,je=/^$|^module$|\/(?:java|ecma)script/i;Se=b.createDocumentFragment().appendChild(b.createElement("div")),(Te=b.createElement("input")).setAttribute("type","radio"),Te.setAttribute("checked","checked"),Te.setAttribute("name","t"),Se.appendChild(Te),g.checkClone=Se.cloneNode(!0).cloneNode(!0).lastChild.checked,Se.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Se.cloneNode(!0).lastChild.defaultValue,Se.innerHTML="<option></option>",g.option=!!Se.lastChild;var Oe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ee(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&j(e,t)?x.merge([e],n):n}function Pe(e,t){for(var n=0,i=e.length;n<i;n++)ae.set(e[n],"globalEval",!t||ae.get(t[n],"globalEval"))}Oe.tbody=Oe.tfoot=Oe.colgroup=Oe.caption=Oe.thead,Oe.th=Oe.td,g.option||(Oe.optgroup=Oe.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Le(e,t,n,i,r){for(var o,s,a,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===k(o))x.merge(h,o.nodeType?[o]:o);else if(De.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(Ce.exec(o)||["",""])[1].toLowerCase(),l=Oe[a]||Oe._default,s.innerHTML=l[1]+x.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;x.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&x.inArray(o,i)>-1)r&&r.push(o);else if(c=ge(o),s=Ee(d.appendChild(o),"script"),c&&Pe(s),n)for(u=0;o=s[u++];)je.test(o.type||"")&&n.push(o);return d}var Ae=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function $e(){return!1}function Ie(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Ie(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=$e;else if(!r)return e;return 1===o&&(s=r,r=function(e){return x().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=x.guid++)),e.each((function(){x.event.add(this,t,r,i,n)}))}function Ne(e,t,n){n?(ae.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var n,i=ae.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),ae.set(this,t,i),this[t](),n=ae.get(this,t),ae.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(ae.set(this,t,x.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===ae.get(e,t)&&x.event.add(e,t,Me)}x.event={global:{},add:function(e,t,n,i,r){var o,s,a,l,c,u,d,h,f,p,m,g=ae.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(me,r),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Y)||[""]).length;c--;)f=m=(a=Ae.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=x.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=x.event.special[f]||{},u=x.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(f,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),x.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,c,u,d,h,f,p,m,g=ae.hasData(e)&&ae.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(Y)||[""]).length;c--;)if(f=m=(a=Ae.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||x.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)x.event.remove(e,f+t[c],n,i,!0);x.isEmptyObject(l)&&ae.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=new Array(arguments.length),l=x.event.fix(e),c=(ae.get(this,"events")||Object.create(null))[l.type]||[],u=x.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=x.event.handlers.call(this,l,c),t=0;(r=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((x.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=t[n]).selector+" "]&&(s[r]=i.needsContext?x(r,this).index(c)>-1:x.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return xe.test(t.type)&&t.click&&j(t,"input")&&Ne(t,"click",!0),!1},trigger:function(e){var t=this||e;return xe.test(t.type)&&t.click&&j(t,"input")&&Ne(t,"click"),!0},_default:function(e){var t=e.target;return xe.test(t.type)&&t.click&&j(t,"input")&&ae.get(t,"click")||j(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:$e,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:$e,isPropagationStopped:$e,isImmediatePropagationStopped:$e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=ae.get(this,"handle"),i=x.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else x.event.simulate(t,e.target,x.event.fix(e))}x.event.special[e]={setup:function(){var i;if(Ne(this,e,!0),!b.documentMode)return!1;(i=ae.get(this,t))||this.addEventListener(t,n),ae.set(this,t,(i||0)+1)},trigger:function(){return Ne(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=ae.get(this,t)-1)?ae.set(this,t,e):(this.removeEventListener(t,n),ae.remove(this,t))},_default:function(t){return ae.get(t.target,e)},delegateType:t},x.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=ae.get(r,t);o||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),ae.set(r,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=ae.get(r,t)-1;o?ae.set(r,t,o):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),ae.remove(r,t))}}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||x.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,i){return Ie(this,e,t,n,i)},one:function(e,t,n,i){return Ie(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=$e),this.each((function(){x.event.remove(this,e,n,t)}))}});var Re=/<script|<style|<link/i,We=/checked\s*(?:[^=]|=\s*.checked.)/i,ze=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Be(e,t){return j(e,"table")&&j(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ue(e,t){var n,i,r,o,s,a;if(1===t.nodeType){if(ae.hasData(e)&&(a=ae.get(e).events))for(r in ae.remove(t,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)x.event.add(t,r,a[r][n]);le.hasData(e)&&(o=le.access(e),s=x.extend({},o),le.set(t,s))}}function qe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&xe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ve(e,t,n,i){t=l(t);var r,o,s,a,c,u,d=0,h=e.length,f=h-1,p=t[0],m=v(p);if(m||h>1&&"string"==typeof p&&!g.checkClone&&We.test(p))return e.each((function(r){var o=e.eq(r);m&&(t[0]=p.call(this,r,o.html())),Ve(o,t,n,i)}));if(h&&(o=(r=Le(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=x.map(Ee(r,"script"),He)).length;d<h;d++)c=r,d!==f&&(c=x.clone(c,!0,!0),a&&x.merge(s,Ee(c,"script"))),n.call(e[d],c,d);if(a)for(u=s[s.length-1].ownerDocument,x.map(s,Fe),d=0;d<a;d++)c=s[d],je.test(c.type||"")&&!ae.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):_(c.textContent.replace(ze,""),c,u))}return e}function Ye(e,t,n){for(var i,r=t?x.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||x.cleanData(Ee(i)),i.parentNode&&(n&&ge(i)&&Pe(Ee(i,"script")),i.parentNode.removeChild(i));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,s,a=e.cloneNode(!0),l=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=Ee(a),i=0,r=(o=Ee(e)).length;i<r;i++)qe(o[i],s[i]);if(t)if(n)for(o=o||Ee(e),s=s||Ee(a),i=0,r=o.length;i<r;i++)Ue(o[i],s[i]);else Ue(e,a);return(s=Ee(a,"script")).length>0&&Pe(s,!l&&Ee(e,"script")),a},cleanData:function(e){for(var t,n,i,r=x.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[ae.expando]){if(t.events)for(i in t.events)r[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);n[ae.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Ye(this,e,!0)},remove:function(e){return Ye(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Be(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Be(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Re.test(e)&&!Oe[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(Ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(Ee(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,i=[],r=x(e),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),x(r[s])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Ge=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Ke=/^--/,Je=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Xe=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},Qe=new RegExp(pe.join("|"),"i");function Ze(e,t,n){var i,r,o,s,a=Ke.test(t),l=e.style;return(n=n||Je(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(L,"$1")||void 0),""!==s||ge(e)||(s=x.style(e,t)),!g.pixelBoxStyles()&&Ge.test(s)&&Qe.test(t)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==s?s+"":s}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),r=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),me.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,o,s,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(g,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",me.appendChild(e).appendChild(t).appendChild(n),r=i.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),a}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,it={};function rt(e){return x.cssProps[e]||it[e]||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,st={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=fe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,r,o){var s="width"===t?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=x.css(e,n+pe[s],!0,r)),i?("content"===n&&(l-=x.css(e,"padding"+pe[s],!0,r)),"margin"!==n&&(l-=x.css(e,"border"+pe[s]+"Width",!0,r))):(l+=x.css(e,"padding"+pe[s],!0,r),"padding"!==n?l+=x.css(e,"border"+pe[s]+"Width",!0,r):a+=x.css(e,"border"+pe[s]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+c}function ut(e,t,n){var i=Je(e),r=(!g.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,i),o=r,s=Ze(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(s)){if(!n)return s;s="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&j(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===x.css(e,"boxSizing",!1,i),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+ct(e,t,n||(r?"border":"content"),o,i,s)+"px"}function dt(e,t,n,i,r){return new dt.prototype.init(e,t,n,i,r)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=re(t),l=Ke.test(t),c=e.style;if(l||(t=rt(a)),s=x.cssHooks[t]||x.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:c[t];"string"==(o=typeof n)&&(r=fe.exec(n))&&r[1]&&(n=be(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(x.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,s,a=re(t);return Ke.test(t)||(t=rt(a)),(s=x.cssHooks[t]||x.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=Ze(e,t,i)),"normal"===r&&t in at&&(r=at[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,i){if(n)return!ot.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,i):Xe(e,st,(function(){return ut(e,t,i)}))},set:function(e,n,i){var r,o=Je(e),s=!g.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===x.css(e,"boxSizing",!1,o),l=i?ct(e,t,i,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(r=fe.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),lt(0,n,l)}}})),x.cssHooks.marginLeft=et(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+pe[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(x.cssHooks[e+t].set=lt)})),x.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=Je(e),r=t.length;s<r;s++)o[t[s]]=x.css(e,t[s],!1,i);return o}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,arguments.length>1)}}),x.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=dt.prototype.init,x.fx.step={};var ht,ft,pt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){ft&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(gt):i.setTimeout(gt,x.fx.interval),x.fx.tick())}function vt(){return i.setTimeout((function(){ht=void 0})),ht=Date.now()}function yt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=pe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,n){for(var i,r=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,t,e))return i}function wt(e,t,n){var i,r,o=0,s=wt.prefilters.length,a=x.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=ht||vt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(i);return a.notifyWith(e,[c,i,n]),i<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:ht||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=x.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,r,o,s;for(n in e)if(r=t[i=re(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(s=x.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);o<s;o++)if(i=wt.prefilters[o].call(c,e,u,c.opts))return v(i.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return x.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(Y);for(var n,i=0,r=e.length;i<r;i++)n=e[i],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,s,a,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&ye(e),g=ae.get(e,"fxshow");for(i in n.queue||(null==(s=x._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()}))}))),t)if(r=t[i],pt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||x.style(e,i)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=ae.get(e,"display")),"none"===(u=x.css(e,"display"))&&(c?u=c:(ke([e],!0),c=e.style.display||c,u=x.css(e,"display"),ke([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=ae.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&ke([e],!0),h.done((function(){for(i in m||ke([e]),ae.remove(e,"fxshow"),f)x.style(e,i,f[i])}))),l=bt(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),x.speed=function(e,t,n){var i=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return x.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in x.fx.speeds?i.duration=x.fx.speeds[i.duration]:i.duration=x.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=x.isEmptyObject(e),o=x.speed(t,n,i),s=function(){var t=wt(this,x.extend({},e),o);(r||ae.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=x.timers,s=ae.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&mt.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||x.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=ae.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=x.timers,s=i?i.length:0;for(n.finish=!0,x.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,i,r)}})),x.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),ht=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){ft||(ft=!0,gt())},x.fx.stop=function(){ft=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var _t,kt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return ee(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?x.prop(e,t,n):(1===o&&x.isXMLDoc(e)||(r=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=x.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&j(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(Y);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=kt[t]||x.find.attr;kt[t]=function(e,t,i){var r,o,s=t.toLowerCase();return i||(o=kt[s],kt[s]=r,r=null!=n(e,t,i)?s:null,kt[s]=o),r}}));var St=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function xt(e){return(e.match(Y)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function jt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Y)||[]}x.fn.extend({prop:function(e,t){return ee(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(e)||(t=x.propFix[t]||t,r=x.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,i,r,o,s;return v(e)?this.each((function(t){x(this).addClass(e.call(this,t,Ct(this)))})):(t=jt(e)).length?this.each((function(){if(i=Ct(this),n=1===this.nodeType&&" "+xt(i)+" "){for(o=0;o<t.length;o++)r=t[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=xt(n),i!==s&&this.setAttribute("class",s)}})):this},removeClass:function(e){var t,n,i,r,o,s;return v(e)?this.each((function(t){x(this).removeClass(e.call(this,t,Ct(this)))})):arguments.length?(t=jt(e)).length?this.each((function(){if(i=Ct(this),n=1===this.nodeType&&" "+xt(i)+" "){for(o=0;o<t.length;o++)for(r=t[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=xt(n),i!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,o,s=typeof e,a="string"===s||Array.isArray(e);return v(e)?this.each((function(n){x(this).toggleClass(e.call(this,n,Ct(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=jt(e),this.each((function(){if(a)for(o=x(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==e&&"boolean"!==s||((i=Ct(this))&&ae.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":ae.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+xt(Ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ot=/\r/g;x.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,x(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ot,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:xt(x.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!j(n.parentNode,"optgroup"))){if(t=x(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=x.makeArray(t),s=r.length;s--;)((i=r[s]).selected=x.inArray(x.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},g.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Et=i.location,Pt={guid:Date.now()},Dt=/\?/;x.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Lt=/^(?:focusinfocus|focusoutblur)$/,At=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,n,r){var o,s,a,l,c,u,d,h,p=[n||b],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(s=h=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Lt.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),d=x.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||m,Lt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(n.ownerDocument||b)&&p.push(a.defaultView||a.parentWindow||i)}for(o=0;(s=p[o++])&&!e.isPropagationStopped();)h=s,e.type=o>1?l:d.bindType||m,(u=(ae.get(s,"events")||Object.create(null))[e.type]&&ae.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&oe(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!oe(n)||c&&v(n[m])&&!y(n)&&((a=n[c])&&(n[c]=null),x.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,At),n[m](),e.isPropagationStopped()&&h.removeEventListener(m,At),x.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(i,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}});var Mt=/\[\]$/,$t=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Rt(e,t,n,i){var r;if(Array.isArray(t))x.each(t,(function(t,r){n||Mt.test(e)?i(e,r):Rt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==k(t))i(e,t);else for(r in t)Rt(e+"["+r+"]",t[r],n,i)}x.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){r(this.name,this.value)}));else for(n in e)Rt(n,e[n],t,r);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Nt.test(this.nodeName)&&!It.test(e)&&(this.checked||!xe.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace($t,"\r\n")}})):{name:t.name,value:n.replace($t,"\r\n")}})).get()}});var Wt=/%20/g,zt=/#.*$/,Bt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,Ut=/^\/\//,qt={},Vt={},Yt="*/".concat("*"),Gt=b.createElement("a");function Kt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(Y)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Jt(e,t,n,i){var r={},o=e===Vt;function s(a){var l;return r[a]=!0,x.each(e[a]||[],(function(e,a){var c=a(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Xt(e,t){var n,i,r=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&x.extend(!0,e,i),e}Gt.href=Et.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,x.ajaxSettings),t):Xt(x.ajaxSettings,e)},ajaxPrefilter:Kt(qt),ajaxTransport:Kt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,s,a,l,c,u,d,h,f=x.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?x(p):x.event,g=x.Deferred(),v=x.Callbacks("once memory"),y=f.statusCode||{},w={},_={},k="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ht.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),T(0,t),this}};if(g.promise(S),f.url=((e||f.url||Et.href)+"").replace(Ut,Et.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Y)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Gt.protocol+"//"+Gt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),Jt(qt,f,t,S),c)return S;for(d in(u=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ft.test(f.type),r=f.url.replace(zt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Wt,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Dt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Bt,"$1"),h=(Dt.test(r)?"&":"?")+"_="+Pt.guid+++h),f.url=r+h),f.ifModified&&(x.lastModified[r]&&S.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&S.setRequestHeader("If-None-Match",x.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Yt+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,S,f)||c))return S.abort();if(k="abort",v.add(f.complete),S.done(f.success),S.fail(f.error),n=Jt(Vt,f,t,S)){if(S.readyState=1,u&&m.trigger("ajaxSend",[S,f]),c)return S;f.async&&f.timeout>0&&(a=i.setTimeout((function(){S.abort("timeout")}),f.timeout));try{c=!1,n.send(w,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,s,l){var d,h,b,w,_,k=t;c||(c=!0,a&&i.clearTimeout(a),n=void 0,o=l||"",S.readyState=e>0?4:0,d=e>=200&&e<300||304===e,s&&(w=function(e,t,n){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,S,s)),!d&&x.inArray("script",f.dataTypes)>-1&&x.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(e,t,n,i){var r,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,w,S,d),d?(f.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=_),(_=S.getResponseHeader("etag"))&&(x.etag[r]=_)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=w.state,h=w.data,d=!(b=w.error))):(b=k,!e&&k||(k="error",e<0&&(e=0))),S.status=e,S.statusText=(t||k)+"",d?g.resolveWith(p,[h,k,S]):g.rejectWith(p,[S,k,b]),S.statusCode(y),y=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[S,f,d?h:b]),v.fireWith(p,[S,k]),u&&(m.trigger("ajaxComplete",[S,f]),--x.active||x.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:r,data:n,success:i},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Qt={0:200,1223:204},Zt=x.ajaxSettings.xhr();g.cors=!!Zt&&"withCredentials"in Zt,g.ajax=Zt=!!Zt,x.ajaxTransport((function(e){var t,n;if(g.cors||Zt&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Qt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||x.expando+"_"+Pt.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,s,a=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||x.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){s=arguments},n.always((function(){void 0===o?x(i).removeProp(r):i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),s&&v(o)&&o(s[0]),s=o=void 0})),"script"})),g.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),o=!n&&[],(r=z.exec(e))?[t.createElement(r[1])]:(r=Le([e],t,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var i,r,o},x.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return a>-1&&(i=xt(e.slice(a)),e=e.slice(0,a)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&x.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,c=x.css(e,"position"),u=x(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=x.css(e,"top"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(i=u.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,n,x.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):u.css(d)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===x.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),r.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-x.css(i,"marginTop",!0),left:t.left-r.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||me}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.fn[e]=function(i){return ee(this,(function(e,i,r){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r}),e,i,arguments.length)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=et(g.pixelPosition,(function(e,n){if(n)return n=Ze(e,t),Ge.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){x.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return ee(this,(function(t,n,r){var o;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?x.css(t,n,a):x.style(t,n,r,a)}),t,s?r:void 0,s)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=a.call(arguments,2),r=function(){return e.apply(t||this,i.concat(a.call(arguments)))},r.guid=e.guid=e.guid||x.guid++,r},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=j,x.isFunction=v,x.isWindow=y,x.camelCase=re,x.type=k,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return x}.apply(t,[]))||(e.exports=n);var on=i.jQuery,sn=i.$;return x.noConflict=function(e){return i.$===x&&(i.$=sn),e&&i.jQuery===x&&(i.jQuery=on),x},void 0===r&&(i.jQuery=i.$=x),x}))},1912:(e,t,n)=>{var i;!function(e){var t,n,i,r,o,s,a,l=navigator.userAgent;e.HTMLPictureElement&&/ecko/.test(l)&&l.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",(n=document.createElement("source"),i=function(e){var t,i,r=e.parentNode;"PICTURE"===r.nodeName.toUpperCase()?(t=n.cloneNode(),r.insertBefore(t,r.firstElementChild),setTimeout((function(){r.removeChild(t)}))):(!e._pfLastSize||e.offsetWidth>e._pfLastSize)&&(e._pfLastSize=e.offsetWidth,i=e.sizes,e.sizes+=",100vw",setTimeout((function(){e.sizes=i})))},r=function(){var e,t=document.querySelectorAll("picture > img, img[srcset][sizes]");for(e=0;e<t.length;e++)i(t[e])},o=function(){clearTimeout(t),t=setTimeout(r,99)},s=e.matchMedia&&matchMedia("(orientation: landscape)"),a=function(){o(),s&&s.addListener&&s.addListener(o)},n.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?a():document.addEventListener("DOMContentLoaded",a),o))}(window),function(r,o,s){"use strict";var a,l,c;o.createElement("picture");var u={},d=!1,h=function(){},f=o.createElement("img"),p=f.getAttribute,m=f.setAttribute,g=f.removeAttribute,v=o.documentElement,y={},b={algorithm:""},w="data-pfsrc",_=w+"set",k=navigator.userAgent,S=/rident/.test(k)||/ecko/.test(k)&&k.match(/rv\:(\d+)/)&&RegExp.$1>35,T="currentSrc",x=/\s+\+?\d+(e\d+)?w/,C=/(\([^)]+\))?\s*(.+)/,j=r.picturefillCFG,O="font-size:100%!important;",E=!0,P={},D={},L=r.devicePixelRatio,A={px:1,in:96},M=o.createElement("a"),$=!1,I=/^[ \t\n\r\u000c]+/,N=/^[, \t\n\r\u000c]+/,R=/^[^ \t\n\r\u000c]+/,W=/[,]+$/,z=/^\d+$/,B=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,H=function(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i||!1):e.attachEvent&&e.attachEvent("on"+t,n)},F=function(e){var t={};return function(n){return n in t||(t[n]=e(n)),t[n]}};function U(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}var q,V,Y,G,K,J,X,Q,Z,ee,te,ne,ie,re,oe,se=(q=/^([\d\.]+)(em|vw|px)$/,V=F((function(e){return"return "+function(){for(var e=arguments,t=0,n=e[0];++t in e;)n=n.replace(e[t],e[++t]);return n}((e||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"})),function(e,t){var n;if(!(e in P))if(P[e]=!1,t&&(n=e.match(q)))P[e]=n[1]*A[n[2]];else try{P[e]=new Function("e",V(e))(A)}catch(e){}return P[e]}),ae=function(e,t){return e.w?(e.cWidth=u.calcListLength(t||"100vw"),e.res=e.w/e.cWidth):e.res=e.d,e},le=function(e){if(d){var t,n,i,r=e||{};if(r.elements&&1===r.elements.nodeType&&("IMG"===r.elements.nodeName.toUpperCase()?r.elements=[r.elements]:(r.context=r.elements,r.elements=null)),i=(t=r.elements||u.qsa(r.context||o,r.reevaluate||r.reselect?u.sel:u.selShort)).length){for(u.setupRun(r),$=!0,n=0;n<i;n++)u.fillImg(t[n],r);u.teardownRun(r)}}};function ce(e,t){return e.res-t.res}function ue(e,t){var n,i,r;if(e&&t)for(r=u.parseSet(t),e=u.makeUrl(e),n=0;n<r.length;n++)if(e===u.makeUrl(r[n].url)){i=r[n];break}return i}r.console&&console.warn,T in f||(T="src"),y["image/jpeg"]=!0,y["image/gif"]=!0,y["image/png"]=!0,y["image/svg+xml"]=o.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),u.ns=("pf"+(new Date).getTime()).substr(0,9),u.supSrcset="srcset"in f,u.supSizes="sizes"in f,u.supPicture=!!r.HTMLPictureElement,u.supSrcset&&u.supPicture&&!u.supSizes&&(Y=o.createElement("img"),f.srcset="data:,a",Y.src="data:,a",u.supSrcset=f.complete===Y.complete,u.supPicture=u.supSrcset&&u.supPicture),u.supSrcset&&!u.supSizes?(G="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",J=function(){2===K.width&&(u.supSizes=!0),l=u.supSrcset&&!u.supSizes,d=!0,setTimeout(le)},(K=o.createElement("img")).onload=J,K.onerror=J,K.setAttribute("sizes","9px"),K.srcset=G+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w",K.src=G):d=!0,u.selShort="picture>img,img[srcset]",u.sel=u.selShort,u.cfg=b,u.DPR=L||1,u.u=A,u.types=y,u.setSize=h,u.makeUrl=F((function(e){return M.href=e,M.href})),u.qsa=function(e,t){return"querySelector"in e?e.querySelectorAll(t):[]},u.matchesMedia=function(){return r.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?u.matchesMedia=function(e){return!e||matchMedia(e).matches}:u.matchesMedia=u.mMQ,u.matchesMedia.apply(this,arguments)},u.mMQ=function(e){return!e||se(e)},u.calcLength=function(e){var t=se(e,!0)||!1;return t<0&&(t=!1),t},u.supportsType=function(e){return!e||y[e]},u.parseSize=F((function(e){var t=(e||"").match(C);return{media:t&&t[1],length:t&&t[2]}})),u.parseSet=function(e){return e.cands||(e.cands=function(e,t){function n(t){var n,i=t.exec(e.substring(c));if(i)return n=i[0],c+=n.length,n}var i,r,o,s,a,l=e.length,c=0,u=[];function d(){var e,n,o,s,a,l,c,d,h,f=!1,p={};for(s=0;s<r.length;s++)l=(a=r[s])[a.length-1],c=a.substring(0,a.length-1),d=parseInt(c,10),h=parseFloat(c),z.test(c)&&"w"===l?((e||n)&&(f=!0),0===d?f=!0:e=d):B.test(c)&&"x"===l?((e||n||o)&&(f=!0),h<0?f=!0:n=h):z.test(c)&&"h"===l?((o||n)&&(f=!0),0===d?f=!0:o=d):f=!0;f||(p.url=i,e&&(p.w=e),n&&(p.d=n),o&&(p.h=o),o||n||e||(p.d=1),1===p.d&&(t.has1x=!0),p.set=t,u.push(p))}function h(){for(n(I),o="",s="in descriptor";;){if(a=e.charAt(c),"in descriptor"===s)if(U(a))o&&(r.push(o),o="",s="after descriptor");else{if(","===a)return c+=1,o&&r.push(o),void d();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&r.push(o),void d();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return r.push(o),void d();o+=a}else if("after descriptor"===s)if(U(a));else{if(""===a)return void d();s="in descriptor",c-=1}c+=1}}for(;;){if(n(N),c>=l)return u;i=n(R),r=[],","===i.slice(-1)?(i=i.replace(W,""),d()):h()}}(e.srcset,e)),e.cands},u.getEmValue=function(){var e;if(!a&&(e=o.body)){var t=o.createElement("div"),n=v.style.cssText,i=e.style.cssText;t.style.cssText="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",v.style.cssText=O,e.style.cssText=O,e.appendChild(t),a=t.offsetWidth,e.removeChild(t),a=parseFloat(a,10),v.style.cssText=n,e.style.cssText=i}return a||16},u.calcListLength=function(e){if(!(e in D)||b.uT){var t=u.calcLength(function(e){var t,n,i,r,o,s,a,l=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,c=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(i=(n=function(e){var t,n="",i=[],r=[],o=0,s=0,a=!1;function l(){n&&(i.push(n),n="")}function c(){i[0]&&(r.push(i),i=[])}for(;;){if(""===(t=e.charAt(s)))return l(),c(),r;if(a){if("*"===t&&"/"===e[s+1]){a=!1,s+=2,l();continue}s+=1}else{if(U(t)){if(e.charAt(s-1)&&U(e.charAt(s-1))||!n){s+=1;continue}if(0===o){l(),s+=1;continue}t=" "}else if("("===t)o+=1;else if(")"===t)o-=1;else{if(","===t){l(),c(),s+=1;continue}if("/"===t&&"*"===e.charAt(s+1)){a=!0,s+=2;continue}}n+=t,s+=1}}}(e)).length,t=0;t<i;t++)if(a=o=(r=n[t])[r.length-1],l.test(a)&&parseFloat(a)>=0||c.test(a)||"0"===a||"-0"===a||"+0"===a){if(s=o,r.pop(),0===r.length)return s;if(r=r.join(" "),u.matchesMedia(r))return s}return"100vw"}(e));D[e]=t||A.width}return D[e]},u.setRes=function(e){var t;if(e)for(var n=0,i=(t=u.parseSet(e)).length;n<i;n++)ae(t[n],e.sizes);return t},u.setRes.res=ae,u.applySetCandidate=function(e,t){if(e.length){var n,i,r,o,s,a,l,c,d,h,f,p,m,g,v,y,w=t[u.ns],_=u.DPR;if(a=w.curSrc||t[T],l=w.curCan||function(e,t,n){var i;return!n&&t&&(n=(n=e[u.ns].sets)&&n[n.length-1]),(i=ue(t,n))&&(t=u.makeUrl(t),e[u.ns].curSrc=t,e[u.ns].curCan=i,i.res||ae(i,i.set.sizes)),i}(t,a,e[0].set),l&&l.set===e[0].set&&((d=S&&!t.complete&&l.res-.1>_)||(l.cached=!0,l.res>=_&&(s=l))),!s)for(e.sort(ce),s=e[(o=e.length)-1],i=0;i<o;i++)if((n=e[i]).res>=_){s=e[r=i-1]&&(d||a!==u.makeUrl(n.url))&&(h=e[r].res,f=n.res,p=_,m=e[r].cached,g=void 0,v=void 0,y=void 0,"saveData"===b.algorithm?h>2.7?y=p+1:(v=(f-p)*(g=Math.pow(h-.6,1.5)),m&&(v+=.1*g),y=h+v):y=p>1?Math.sqrt(h*f):h,y>p)?e[r]:n;break}s&&(c=u.makeUrl(s.url),w.curSrc=c,w.curCan=s,c!==a&&u.setSrc(t,s),u.setSize(t))}},u.setSrc=function(e,t){var n;e.src=t.url,"image/svg+xml"===t.set.type&&(n=e.style.width,e.style.width=e.offsetWidth+1+"px",e.offsetWidth+1&&(e.style.width=n))},u.getSet=function(e){var t,n,i,r=!1,o=e[u.ns].sets;for(t=0;t<o.length&&!r;t++)if((n=o[t]).srcset&&u.matchesMedia(n.media)&&(i=u.supportsType(n.type))){"pending"===i&&(n=i),r=n;break}return r},u.parseSets=function(e,t,n){var i,r,o,a,c=t&&"PICTURE"===t.nodeName.toUpperCase(),d=e[u.ns];(d.src===s||n.src)&&(d.src=p.call(e,"src"),d.src?m.call(e,w,d.src):g.call(e,w)),(d.srcset===s||n.srcset||!u.supSrcset||e.srcset)&&(i=p.call(e,"srcset"),d.srcset=i,a=!0),d.sets=[],c&&(d.pic=!0,function(e,t){var n,i,r,o,s=e.getElementsByTagName("source");for(n=0,i=s.length;n<i;n++)(r=s[n])[u.ns]=!0,(o=r.getAttribute("srcset"))&&t.push({srcset:o,media:r.getAttribute("media"),type:r.getAttribute("type"),sizes:r.getAttribute("sizes")})}(t,d.sets)),d.srcset?(r={srcset:d.srcset,sizes:p.call(e,"sizes")},d.sets.push(r),(o=(l||d.src)&&x.test(d.srcset||""))||!d.src||ue(d.src,r)||r.has1x||(r.srcset+=", "+d.src,r.cands.push({url:d.src,d:1,set:r}))):d.src&&d.sets.push({srcset:d.src,sizes:null}),d.curCan=null,d.curSrc=s,d.supported=!(c||r&&!u.supSrcset||o&&!u.supSizes),a&&u.supSrcset&&!d.supported&&(i?(m.call(e,_,i),e.srcset=""):g.call(e,_)),d.supported&&!d.srcset&&(!d.src&&e.src||e.src!==u.makeUrl(d.src))&&(null===d.src?e.removeAttribute("src"):e.src=d.src),d.parsed=!0},u.fillImg=function(e,t){var n,i=t.reselect||t.reevaluate;e[u.ns]||(e[u.ns]={}),n=e[u.ns],(i||n.evaled!==c)&&(n.parsed&&!t.reevaluate||u.parseSets(e,e.parentNode,t),n.supported?n.evaled=c:function(e){var t,n=u.getSet(e),i=!1;"pending"!==n&&(i=c,n&&(t=u.setRes(n),u.applySetCandidate(t,e))),e[u.ns].evaled=i}(e))},u.setupRun=function(){$&&!E&&L===r.devicePixelRatio||(E=!1,L=r.devicePixelRatio,P={},D={},u.DPR=L||1,A.width=Math.max(r.innerWidth||0,v.clientWidth),A.height=Math.max(r.innerHeight||0,v.clientHeight),A.vw=A.width/100,A.vh=A.height/100,c=[A.height,A.width,L].join("-"),A.em=u.getEmValue(),A.rem=A.em)},u.supPicture?(le=h,u.fillImg=h):(ne=r.attachEvent?/d$|^c/:/d$|^c|^i/,ie=function(){var e=o.readyState||"";re=setTimeout(ie,"loading"===e?200:999),o.body&&(u.fillImgs(),(X=X||ne.test(e))&&clearTimeout(re))},re=setTimeout(ie,o.body?9:99),oe=v.clientHeight,H(r,"resize",(Q=function(){E=Math.max(r.innerWidth||0,v.clientWidth)!==A.width||v.clientHeight!==oe,oe=v.clientHeight,E&&u.fillImgs()},99,te=function(){var e=new Date-ee;e<99?Z=setTimeout(te,99-e):(Z=null,Q())},function(){ee=new Date,Z||(Z=setTimeout(te,99))})),H(o,"readystatechange",ie)),u.picturefill=le,u.fillImgs=le,u.teardownRun=h,le._=u,r.picturefillCFG={pf:u,push:function(e){var t=e.shift();"function"==typeof u[t]?u[t].apply(u,e):(b[t]=e[0],$&&u.fillImgs({reselect:!0}))}};for(;j&&j.length;)r.picturefillCFG.push(j.shift());r.picturefill=le,"object"==typeof e.exports?e.exports=le:(i=function(){return le}.call(t,n,t,e))===s||(e.exports=i),u.supPicture||(y["image/webp"]=function(e,t){var n=new r.Image;return n.onerror=function(){y[e]=!1,le()},n.onload=function(){y[e]=1===n.width,le()},n.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==","pending"}("image/webp"))}(window,document)},2608:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOMException:()=>_,Headers:()=>u,Request:()=>v,Response:()=>b,fetch:()=>k});var i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},r={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};if(r.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function f(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(r.blob)return this.blob().then(f);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,i,r,o=d(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),r=(i=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?i[1]:"utf-8",t.readAsText(e,r),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=a(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[a(e)]},u.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},u.prototype.set=function(e,t){this.map[a(e)]=l(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),c(e)},u.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),c(e)},u.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),c(e)},r.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new u(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in i)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},m.call(v.prototype),m.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var w=[301,302,303,307,308];b.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})};var _=i.DOMException;try{new _}catch(e){(_=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function k(e,t){return new Promise((function(n,o){var s=new v(e,t);if(s.signal&&s.signal.aborted)return o(new _("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}if(c.onload=function(){var e,t,i={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();try{t.append(i,r)}catch(e){console.warn("Response "+e.message)}}})),t)};0===s.url.indexOf("file://")&&(c.status<200||c.status>599)?i.status=200:i.status=c.status,i.url="responseURL"in c?c.responseURL:i.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout((function(){n(new b(r,i))}),0)},c.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){o(new _("Aborted","AbortError"))}),0)},c.open(s.method,function(e){try{return""===e&&i.location.href?i.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(r.blob?c.responseType="blob":r.arrayBuffer&&(c.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof u||i.Headers&&t.headers instanceof i.Headers)){var h=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){h.push(a(e)),c.setRequestHeader(e,l(t.headers[e]))})),s.headers.forEach((function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)}))}else s.headers.forEach((function(e,t){c.setRequestHeader(t,e)}));s.signal&&(s.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",d)}),c.send(void 0===s._bodyInit?null:s._bodyInit)}))}k.polyfill=!0,i.fetch||(i.fetch=k,i.Headers=u,i.Request=v,i.Response=b)},2856:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VERSION:()=>r,after:()=>Mt,all:()=>en,allKeys:()=>ge,any:()=>tn,assign:()=>Me,before:()=>$t,bind:()=>kt,bindAll:()=>xt,chain:()=>yt,chunk:()=>Rn,clone:()=>Re,collect:()=>Gt,compact:()=>jn,compose:()=>At,constant:()=>Q,contains:()=>nn,countBy:()=>vn,create:()=>Ne,debounce:()=>Pt,default:()=>Fn,defaults:()=>$e,defer:()=>Ot,delay:()=>jt,detect:()=>qt,difference:()=>En,drop:()=>xn,each:()=>Yt,escape:()=>st,every:()=>en,extend:()=>Ae,extendOwn:()=>Me,filter:()=>Qt,find:()=>qt,findIndex:()=>Wt,findKey:()=>Nt,findLastIndex:()=>zt,findWhere:()=>Vt,first:()=>Tn,flatten:()=>On,foldl:()=>Jt,foldr:()=>Xt,forEach:()=>Yt,functions:()=>De,get:()=>Fe,groupBy:()=>mn,has:()=>Ue,head:()=>Tn,identity:()=>qe,include:()=>nn,includes:()=>nn,indexBy:()=>gn,indexOf:()=>Ft,initial:()=>Sn,inject:()=>Jt,intersection:()=>An,invert:()=>Pe,invoke:()=>rn,isArguments:()=>K,isArray:()=>V,isArrayBuffer:()=>N,isBoolean:()=>O,isDataView:()=>q,isDate:()=>A,isElement:()=>E,isEmpty:()=>le,isEqual:()=>me,isError:()=>$,isFinite:()=>J,isFunction:()=>z,isMap:()=>Te,isMatch:()=>ce,isNaN:()=>X,isNull:()=>C,isNumber:()=>L,isObject:()=>x,isRegExp:()=>M,isSet:()=>Ce,isString:()=>D,isSymbol:()=>I,isTypedArray:()=>re,isUndefined:()=>j,isWeakMap:()=>xe,isWeakSet:()=>je,iteratee:()=>Je,keys:()=>ae,last:()=>Cn,lastIndexOf:()=>Ut,map:()=>Gt,mapObject:()=>Qe,matcher:()=>Ve,matches:()=>Ve,max:()=>an,memoize:()=>Ct,methods:()=>De,min:()=>ln,mixin:()=>zn,negate:()=>Lt,noop:()=>Ze,now:()=>it,object:()=>In,omit:()=>kn,once:()=>It,pairs:()=>Ee,partial:()=>_t,partition:()=>yn,pick:()=>_n,pluck:()=>on,property:()=>Ye,propertyOf:()=>et,random:()=>nt,range:()=>Nn,reduce:()=>Jt,reduceRight:()=>Xt,reject:()=>Zt,rest:()=>xn,restArguments:()=>T,result:()=>mt,sample:()=>dn,select:()=>Qt,shuffle:()=>hn,size:()=>bn,some:()=>tn,sortBy:()=>fn,sortedIndex:()=>Bt,tail:()=>xn,take:()=>Tn,tap:()=>We,template:()=>pt,templateSettings:()=>lt,throttle:()=>Et,times:()=>tt,toArray:()=>un,toPath:()=>ze,transpose:()=>Mn,unescape:()=>at,union:()=>Ln,uniq:()=>Dn,unique:()=>Dn,uniqueId:()=>vt,unzip:()=>Mn,values:()=>Oe,where:()=>sn,without:()=>Pn,wrap:()=>Dt,zip:()=>$n});var i={};n.r(i),n.d(i,{VERSION:()=>r,after:()=>Mt,all:()=>en,allKeys:()=>ge,any:()=>tn,assign:()=>Me,before:()=>$t,bind:()=>kt,bindAll:()=>xt,chain:()=>yt,chunk:()=>Rn,clone:()=>Re,collect:()=>Gt,compact:()=>jn,compose:()=>At,constant:()=>Q,contains:()=>nn,countBy:()=>vn,create:()=>Ne,debounce:()=>Pt,default:()=>Bn,defaults:()=>$e,defer:()=>Ot,delay:()=>jt,detect:()=>qt,difference:()=>En,drop:()=>xn,each:()=>Yt,escape:()=>st,every:()=>en,extend:()=>Ae,extendOwn:()=>Me,filter:()=>Qt,find:()=>qt,findIndex:()=>Wt,findKey:()=>Nt,findLastIndex:()=>zt,findWhere:()=>Vt,first:()=>Tn,flatten:()=>On,foldl:()=>Jt,foldr:()=>Xt,forEach:()=>Yt,functions:()=>De,get:()=>Fe,groupBy:()=>mn,has:()=>Ue,head:()=>Tn,identity:()=>qe,include:()=>nn,includes:()=>nn,indexBy:()=>gn,indexOf:()=>Ft,initial:()=>Sn,inject:()=>Jt,intersection:()=>An,invert:()=>Pe,invoke:()=>rn,isArguments:()=>K,isArray:()=>V,isArrayBuffer:()=>N,isBoolean:()=>O,isDataView:()=>q,isDate:()=>A,isElement:()=>E,isEmpty:()=>le,isEqual:()=>me,isError:()=>$,isFinite:()=>J,isFunction:()=>z,isMap:()=>Te,isMatch:()=>ce,isNaN:()=>X,isNull:()=>C,isNumber:()=>L,isObject:()=>x,isRegExp:()=>M,isSet:()=>Ce,isString:()=>D,isSymbol:()=>I,isTypedArray:()=>re,isUndefined:()=>j,isWeakMap:()=>xe,isWeakSet:()=>je,iteratee:()=>Je,keys:()=>ae,last:()=>Cn,lastIndexOf:()=>Ut,map:()=>Gt,mapObject:()=>Qe,matcher:()=>Ve,matches:()=>Ve,max:()=>an,memoize:()=>Ct,methods:()=>De,min:()=>ln,mixin:()=>zn,negate:()=>Lt,noop:()=>Ze,now:()=>it,object:()=>In,omit:()=>kn,once:()=>It,pairs:()=>Ee,partial:()=>_t,partition:()=>yn,pick:()=>_n,pluck:()=>on,property:()=>Ye,propertyOf:()=>et,random:()=>nt,range:()=>Nn,reduce:()=>Jt,reduceRight:()=>Xt,reject:()=>Zt,rest:()=>xn,restArguments:()=>T,result:()=>mt,sample:()=>dn,select:()=>Qt,shuffle:()=>hn,size:()=>bn,some:()=>tn,sortBy:()=>fn,sortedIndex:()=>Bt,tail:()=>xn,take:()=>Tn,tap:()=>We,template:()=>pt,templateSettings:()=>lt,throttle:()=>Et,times:()=>tt,toArray:()=>un,toPath:()=>ze,transpose:()=>Mn,unescape:()=>at,union:()=>Ln,uniq:()=>Dn,unique:()=>Dn,uniqueId:()=>vt,unzip:()=>Mn,values:()=>Oe,where:()=>sn,without:()=>Pn,wrap:()=>Dt,zip:()=>$n});var r="1.13.6",o="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},s=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=s.push,u=s.slice,d=a.toString,h=a.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,v=Object.create,y=f&&ArrayBuffer.isView,b=isNaN,w=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),k=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=Math.pow(2,53)-1;function T(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var o=Array(t+1);for(r=0;r<t;r++)o[r]=arguments[r];return o[t]=i,e.apply(this,o)}}function x(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function C(e){return null===e}function j(e){return void 0===e}function O(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)}function E(e){return!(!e||1!==e.nodeType)}function P(e){var t="[object "+e+"]";return function(e){return d.call(e)===t}}const D=P("String"),L=P("Number"),A=P("Date"),M=P("RegExp"),$=P("Error"),I=P("Symbol"),N=P("ArrayBuffer");var R=P("Function"),W=o.document&&o.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof W&&(R=function(e){return"function"==typeof e||!1});const z=R,B=P("Object");var H=p&&B(new DataView(new ArrayBuffer(8))),F="undefined"!=typeof Map&&B(new Map),U=P("DataView");const q=H?function(e){return null!=e&&z(e.getInt8)&&N(e.buffer)}:U,V=m||P("Array");function Y(e,t){return null!=e&&h.call(e,t)}var G=P("Arguments");!function(){G(arguments)||(G=function(e){return Y(e,"callee")})}();const K=G;function J(e){return!I(e)&&w(e)&&!isNaN(parseFloat(e))}function X(e){return L(e)&&b(e)}function Q(e){return function(){return e}}function Z(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=S}}function ee(e){return function(t){return null==t?void 0:t[e]}}const te=ee("byteLength"),ne=Z(te);var ie=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const re=f?function(e){return y?y(e)&&!q(e):ne(e)&&ie.test(d.call(e))}:Q(!1),oe=ee("length");function se(e,t){t=function(e){for(var t={},n=e.length,i=0;i<n;++i)t[e[i]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=k.length,i=e.constructor,r=z(i)&&i.prototype||a,o="constructor";for(Y(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=k[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function ae(e){if(!x(e))return[];if(g)return g(e);var t=[];for(var n in e)Y(e,n)&&t.push(n);return _&&se(e,t),t}function le(e){if(null==e)return!0;var t=oe(e);return"number"==typeof t&&(V(e)||D(e)||K(e))?0===t:0===oe(ae(e))}function ce(e,t){var n=ae(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var s=n[o];if(t[s]!==r[s]||!(s in r))return!1}return!0}function ue(e){return e instanceof ue?e:this instanceof ue?void(this._wrapped=e):new ue(e)}function de(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ue.VERSION=r,ue.prototype.value=function(){return this._wrapped},ue.prototype.valueOf=ue.prototype.toJSON=ue.prototype.value,ue.prototype.toString=function(){return String(this._wrapped)};var he="[object DataView]";function fe(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var r=typeof e;return("function"===r||"object"===r||"object"==typeof t)&&pe(e,t,n,i)}function pe(e,t,n,i){e instanceof ue&&(e=e._wrapped),t instanceof ue&&(t=t._wrapped);var r=d.call(e);if(r!==d.call(t))return!1;if(H&&"[object Object]"==r&&q(e)){if(!q(t))return!1;r=he}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t);case"[object ArrayBuffer]":case he:return pe(de(e),de(t),n,i)}var o="[object Array]"===r;if(!o&&re(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,a=t.constructor;if(s!==a&&!(z(s)&&s instanceof s&&z(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}i=i||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return i[c]===t;if(n.push(e),i.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!fe(e[c],t[c],n,i))return!1}else{var u,h=ae(e);if(c=h.length,ae(t).length!==c)return!1;for(;c--;)if(!Y(t,u=h[c])||!fe(e[u],t[u],n,i))return!1}return n.pop(),i.pop(),!0}function me(e,t){return fe(e,t)}function ge(e){if(!x(e))return[];var t=[];for(var n in e)t.push(n);return _&&se(e,t),t}function ve(e){var t=oe(e);return function(n){if(null==n)return!1;var i=ge(n);if(oe(i))return!1;for(var r=0;r<t;r++)if(!z(n[e[r]]))return!1;return e!==ke||!z(n[ye])}}var ye="forEach",be=["clear","delete"],we=["get","has","set"],_e=be.concat(ye,we),ke=be.concat(we),Se=["add"].concat(be,ye,"has");const Te=F?ve(_e):P("Map"),xe=F?ve(ke):P("WeakMap"),Ce=F?ve(Se):P("Set"),je=P("WeakSet");function Oe(e){for(var t=ae(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t=ae(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i}function Pe(e){for(var t={},n=ae(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function De(e){var t=[];for(var n in e)z(e[n])&&t.push(n);return t.sort()}function Le(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),i<2||null==n)return n;for(var r=1;r<i;r++)for(var o=arguments[r],s=e(o),a=s.length,l=0;l<a;l++){var c=s[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}}const Ae=Le(ge),Me=Le(ae),$e=Le(ge,!0);function Ie(e){if(!x(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Ne(e,t){var n=Ie(e);return t&&Me(n,t),n}function Re(e){return x(e)?V(e)?e.slice():Ae({},e):e}function We(e,t){return t(e),e}function ze(e){return V(e)?e:[e]}function Be(e){return ue.toPath(e)}function He(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Fe(e,t,n){var i=He(e,Be(t));return j(i)?n:i}function Ue(e,t){for(var n=(t=Be(t)).length,i=0;i<n;i++){var r=t[i];if(!Y(e,r))return!1;e=e[r]}return!!n}function qe(e){return e}function Ve(e){return e=Me({},e),function(t){return ce(t,e)}}function Ye(e){return e=Be(e),function(t){return He(t,e)}}function Ge(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,o){return e.call(t,n,i,r,o)}}return function(){return e.apply(t,arguments)}}function Ke(e,t,n){return null==e?qe:z(e)?Ge(e,t,n):x(e)&&!V(e)?Ve(e):Ye(e)}function Je(e,t){return Ke(e,t,1/0)}function Xe(e,t,n){return ue.iteratee!==Je?ue.iteratee(e,t):Ke(e,t,n)}function Qe(e,t,n){t=Xe(t,n);for(var i=ae(e),r=i.length,o={},s=0;s<r;s++){var a=i[s];o[a]=t(e[a],a,e)}return o}function Ze(){}function et(e){return null==e?Ze:function(t){return Fe(e,t)}}function tt(e,t,n){var i=Array(Math.max(0,e));t=Ge(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i}function nt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ue.toPath=ze,ue.iteratee=Je;const it=Date.now||function(){return(new Date).getTime()};function rt(e){var t=function(t){return e[t]},n="(?:"+ae(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(r,t):e}}const ot={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},st=rt(ot),at=rt(Pe(ot)),lt=ue.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ct=/(.)^/,ut={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},dt=/\\|'|\r|\n|\u2028|\u2029/g;function ht(e){return"\\"+ut[e]}var ft=/^\s*(\w|\$)+\s*$/;function pt(e,t,n){!t&&n&&(t=n),t=$e({},t,ue.templateSettings);var i=RegExp([(t.escape||ct).source,(t.interpolate||ct).source,(t.evaluate||ct).source].join("|")+"|$","g"),r=0,o="__p+='";e.replace(i,(function(t,n,i,s,a){return o+=e.slice(r,a).replace(dt,ht),r=a+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),t})),o+="';\n";var s,a=t.variable;if(a){if(!ft.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{s=new Function(a,"_",o)}catch(e){throw e.source=o,e}var l=function(e){return s.call(this,e,ue)};return l.source="function("+a+"){\n"+o+"}",l}function mt(e,t,n){var i=(t=Be(t)).length;if(!i)return z(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=z(o)?o.call(e):o}return e}var gt=0;function vt(e){var t=++gt+"";return e?e+t:t}function yt(e){var t=ue(e);return t._chain=!0,t}function bt(e,t,n,i,r){if(!(i instanceof t))return e.apply(n,r);var o=Ie(e.prototype),s=e.apply(o,r);return x(s)?s:o}var wt=T((function(e,t){var n=wt.placeholder,i=function(){for(var r=0,o=t.length,s=Array(o),a=0;a<o;a++)s[a]=t[a]===n?arguments[r++]:t[a];for(;r<arguments.length;)s.push(arguments[r++]);return bt(e,i,this,this,s)};return i}));wt.placeholder=ue;const _t=wt,kt=T((function(e,t,n){if(!z(e))throw new TypeError("Bind must be called on a function");var i=T((function(r){return bt(e,i,t,this,n.concat(r))}));return i})),St=Z(oe);function Tt(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var r=i.length,o=0,s=oe(e);o<s;o++){var a=e[o];if(St(a)&&(V(a)||K(a)))if(t>1)Tt(a,t-1,n,i),r=i.length;else for(var l=0,c=a.length;l<c;)i[r++]=a[l++];else n||(i[r++]=a)}return i}const xt=T((function(e,t){var n=(t=Tt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=kt(e[i],e)}return e}));function Ct(e,t){var n=function(i){var r=n.cache,o=""+(t?t.apply(this,arguments):i);return Y(r,o)||(r[o]=e.apply(this,arguments)),r[o]};return n.cache={},n}const jt=T((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Ot=_t(jt,ue,1);function Et(e,t,n){var i,r,o,s,a=0;n||(n={});var l=function(){a=!1===n.leading?0:it(),i=null,s=e.apply(r,o),i||(r=o=null)},c=function(){var c=it();a||!1!==n.leading||(a=c);var u=t-(c-a);return r=this,o=arguments,u<=0||u>t?(i&&(clearTimeout(i),i=null),a=c,s=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),s};return c.cancel=function(){clearTimeout(i),a=0,i=r=o=null},c}function Pt(e,t,n){var i,r,o,s,a,l=function(){var c=it()-r;t>c?i=setTimeout(l,t-c):(i=null,n||(s=e.apply(a,o)),i||(o=a=null))},c=T((function(c){return a=this,o=c,r=it(),i||(i=setTimeout(l,t),n&&(s=e.apply(a,o))),s}));return c.cancel=function(){clearTimeout(i),i=o=a=null},c}function Dt(e,t){return _t(t,e)}function Lt(e){return function(){return!e.apply(this,arguments)}}function At(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}}function Mt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function $t(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const It=_t($t,2);function Nt(e,t,n){t=Xe(t,n);for(var i,r=ae(e),o=0,s=r.length;o<s;o++)if(t(e[i=r[o]],i,e))return i}function Rt(e){return function(t,n,i){n=Xe(n,i);for(var r=oe(t),o=e>0?0:r-1;o>=0&&o<r;o+=e)if(n(t[o],o,t))return o;return-1}}const Wt=Rt(1),zt=Rt(-1);function Bt(e,t,n,i){for(var r=(n=Xe(n,i,1))(t),o=0,s=oe(e);o<s;){var a=Math.floor((o+s)/2);n(e[a])<r?o=a+1:s=a}return o}function Ht(e,t,n){return function(i,r,o){var s=0,a=oe(i);if("number"==typeof o)e>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return i[o=n(i,r)]===r?o:-1;if(r!=r)return(o=t(u.call(i,s,a),X))>=0?o+s:-1;for(o=e>0?s:a-1;o>=0&&o<a;o+=e)if(i[o]===r)return o;return-1}}const Ft=Ht(1,Wt,Bt),Ut=Ht(-1,zt);function qt(e,t,n){var i=(St(e)?Wt:Nt)(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function Vt(e,t){return qt(e,Ve(t))}function Yt(e,t,n){var i,r;if(t=Ge(t,n),St(e))for(i=0,r=e.length;i<r;i++)t(e[i],i,e);else{var o=ae(e);for(i=0,r=o.length;i<r;i++)t(e[o[i]],o[i],e)}return e}function Gt(e,t,n){t=Xe(t,n);for(var i=!St(e)&&ae(e),r=(i||e).length,o=Array(r),s=0;s<r;s++){var a=i?i[s]:s;o[s]=t(e[a],a,e)}return o}function Kt(e){return function(t,n,i,r){var o=arguments.length>=3;return function(t,n,i,r){var o=!St(t)&&ae(t),s=(o||t).length,a=e>0?0:s-1;for(r||(i=t[o?o[a]:a],a+=e);a>=0&&a<s;a+=e){var l=o?o[a]:a;i=n(i,t[l],l,t)}return i}(t,Ge(n,r,4),i,o)}}const Jt=Kt(1),Xt=Kt(-1);function Qt(e,t,n){var i=[];return t=Xe(t,n),Yt(e,(function(e,n,r){t(e,n,r)&&i.push(e)})),i}function Zt(e,t,n){return Qt(e,Lt(Xe(t)),n)}function en(e,t,n){t=Xe(t,n);for(var i=!St(e)&&ae(e),r=(i||e).length,o=0;o<r;o++){var s=i?i[o]:o;if(!t(e[s],s,e))return!1}return!0}function tn(e,t,n){t=Xe(t,n);for(var i=!St(e)&&ae(e),r=(i||e).length,o=0;o<r;o++){var s=i?i[o]:o;if(t(e[s],s,e))return!0}return!1}function nn(e,t,n,i){return St(e)||(e=Oe(e)),("number"!=typeof n||i)&&(n=0),Ft(e,t,n)>=0}const rn=T((function(e,t,n){var i,r;return z(t)?r=t:(t=Be(t),i=t.slice(0,-1),t=t[t.length-1]),Gt(e,(function(e){var o=r;if(!o){if(i&&i.length&&(e=He(e,i)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function on(e,t){return Gt(e,Ye(t))}function sn(e,t){return Qt(e,Ve(t))}function an(e,t,n){var i,r,o=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=St(e)?e:Oe(e)).length;a<l;a++)null!=(i=e[a])&&i>o&&(o=i);else t=Xe(t,n),Yt(e,(function(e,n,i){((r=t(e,n,i))>s||r===-1/0&&o===-1/0)&&(o=e,s=r)}));return o}function ln(e,t,n){var i,r,o=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=St(e)?e:Oe(e)).length;a<l;a++)null!=(i=e[a])&&i<o&&(o=i);else t=Xe(t,n),Yt(e,(function(e,n,i){((r=t(e,n,i))<s||r===1/0&&o===1/0)&&(o=e,s=r)}));return o}var cn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function un(e){return e?V(e)?u.call(e):D(e)?e.match(cn):St(e)?Gt(e,qe):Oe(e):[]}function dn(e,t,n){if(null==t||n)return St(e)||(e=Oe(e)),e[nt(e.length-1)];var i=un(e),r=oe(i);t=Math.max(Math.min(t,r),0);for(var o=r-1,s=0;s<t;s++){var a=nt(s,o),l=i[s];i[s]=i[a],i[a]=l}return i.slice(0,t)}function hn(e){return dn(e,1/0)}function fn(e,t,n){var i=0;return t=Xe(t,n),on(Gt(e,(function(e,n,r){return{value:e,index:i++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index})),"value")}function pn(e,t){return function(n,i,r){var o=t?[[],[]]:{};return i=Xe(i,r),Yt(n,(function(t,r){var s=i(t,r,n);e(o,t,s)})),o}}const mn=pn((function(e,t,n){Y(e,n)?e[n].push(t):e[n]=[t]})),gn=pn((function(e,t,n){e[n]=t})),vn=pn((function(e,t,n){Y(e,n)?e[n]++:e[n]=1})),yn=pn((function(e,t,n){e[n?0:1].push(t)}),!0);function bn(e){return null==e?0:St(e)?e.length:ae(e).length}function wn(e,t,n){return t in n}const _n=T((function(e,t){var n={},i=t[0];if(null==e)return n;z(i)?(t.length>1&&(i=Ge(i,t[1])),t=ge(e)):(i=wn,t=Tt(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var s=t[r],a=e[s];i(a,s,e)&&(n[s]=a)}return n})),kn=T((function(e,t){var n,i=t[0];return z(i)?(i=Lt(i),t.length>1&&(n=t[1])):(t=Gt(Tt(t,!1,!1),String),i=function(e,n){return!nn(t,n)}),_n(e,i,n)}));function Sn(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Tn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Sn(e,e.length-t)}function xn(e,t,n){return u.call(e,null==t||n?1:t)}function Cn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:xn(e,Math.max(0,e.length-t))}function jn(e){return Qt(e,Boolean)}function On(e,t){return Tt(e,t,!1)}const En=T((function(e,t){return t=Tt(t,!0,!0),Qt(e,(function(e){return!nn(t,e)}))})),Pn=T((function(e,t){return En(e,t)}));function Dn(e,t,n,i){O(t)||(i=n,n=t,t=!1),null!=n&&(n=Xe(n,i));for(var r=[],o=[],s=0,a=oe(e);s<a;s++){var l=e[s],c=n?n(l,s,e):l;t&&!n?(s&&o===c||r.push(l),o=c):n?nn(o,c)||(o.push(c),r.push(l)):nn(r,l)||r.push(l)}return r}const Ln=T((function(e){return Dn(Tt(e,!0,!0))}));function An(e){for(var t=[],n=arguments.length,i=0,r=oe(e);i<r;i++){var o=e[i];if(!nn(t,o)){var s;for(s=1;s<n&&nn(arguments[s],o);s++);s===n&&t.push(o)}}return t}function Mn(e){for(var t=e&&an(e,oe).length||0,n=Array(t),i=0;i<t;i++)n[i]=on(e,i);return n}const $n=T(Mn);function In(e,t){for(var n={},i=0,r=oe(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n}function Nn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r}function Rn(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(u.call(e,i,i+=t));return n}function Wn(e,t){return e._chain?ue(t).chain():t}function zn(e){return Yt(De(e),(function(t){var n=ue[t]=e[t];ue.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),Wn(this,n.apply(ue,e))}})),ue}Yt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=s[e];ue.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Wn(this,n)}})),Yt(["concat","join","slice"],(function(e){var t=s[e];ue.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Wn(this,e)}}));const Bn=ue;var Hn=zn(i);Hn._=Hn;const Fn=Hn}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";n(5932);const e=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach((function(t){Object.keys(t).forEach((function(n){Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))})),e};var t=["src"];function i(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.src,r=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(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)&&(r[n]=e[n])}return r}(n,t);if(!i)throw new Error("src is required!!");var o=document.createElement("script");o.src=i,e(o,r);var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(o,s)}function r(e){e&&i(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}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 s(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){a(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}function a(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return l="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},l(e)}function c(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,u(i.key),i)}}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:String(t)}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=t||{}}var t,n;return t=e,n=[{key:"set",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];switch(l(e)){case"string":this.cache[e]=t;break;case"object":this.cache=s(s({},this.cache),e)}}},{key:"get",value:function(e,t){return this.has(e)?this.cache[e]:t}},{key:"has",value:function(e){return this.cache.hasOwnProperty(e)}},{key:"clear",value:function(e){void 0===e&&(this.cache={}),delete this.cache[e]}}],n&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function h(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(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,v(i.key),i)}}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=p(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:String(t)}var y={bottom:0,left:0,right:0,top:0},b=document.body,w=document.documentElement,_=Array.prototype.slice,k=function(e){return e.match(/\S+/g)||[]},S=function(e){return e.replace(/-([a-z])/gi,(function(e,t){return t.toUpperCase()}))},T=function(e){return e.parentNode.removeChild(e)},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=document.createElement(t);return n.id=e,n},C=function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);return e===window?window["inner".concat(n)]:e===document?Math.max(b["scroll".concat(n)],b["offset".concat(n)],w["client".concat(n)],w["scroll".concat(n)],w["offset".concat(n)]):e["offset".concat(n)]},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.forEach((function(e){var n=t;null===t&&(n="none"===getComputedStyle(e).display?"block":"none"),e.style.display=n}))},O=function(e,t,n){var i=k(t);0!==i.length&&0!==e.length&&e.forEach((function(e){i.forEach((function(t){return e.classList[n](t)}))}))},E=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"elements",[]),t&&("string"==typeof t?this.elements=_.call(document.querySelectorAll(t)):"object"!==p(t)||!t.nodeName&&window!==t&&document!==t?this.elements=_.call(t):this.elements=[t])}var t,n;return t=e,n=[{key:"get",value:function(t){return new e(this.elements[t])}},{key:"indexOf",value:function(e){return this.elements.indexOf(e)}},{key:"before",value:function(e){return"string"==typeof e&&(e=x(e)),this.elements.forEach((function(t){t.parentNode.insertBefore(e,t)})),e}},{key:"after",value:function(e){return"string"==typeof e&&(e=x(e)),this.elements.forEach((function(t){t.parentNode.insertBefore(e,t.nextSibling)})),e}},{key:"on",value:function(e,t){var n=this;return 0!==e.trim().length&&this.isValid()?(k(e).forEach((function(e){n.elements.forEach((function(n){n.addEventListener(e,t)}))})),this):this}},{key:"delegate",value:function(e,t,n){var i=this;if(0===e.trim().length||!this.isValid())return this;var r=b.isEqualNode?"isEqualNode":"isSameNode";return k(e).forEach((function(e){i.elements.forEach((function(i){!function(e,i){e.addEventListener(i,(function(i){for(var o=i.target,s=!1,a=e.querySelectorAll(t);o&&!o[r](e)&&!s;)a.forEach((function(e){!s&&o[r](e)&&(n.call(o,i),s=!0)})),s||(o=o.parentNode)}))}(i,e)}))})),this}},{key:"off",value:function(e,t){var n=this;return 0!==e.trim().length&&this.isValid()?(k(e).forEach((function(e){n.elements.forEach((function(n){n.removeEventListener(e,t)}))})),this):this}},{key:"click",value:function(e){return this.on("click",e)}},{key:"scroll",value:function(e){return this.on("scroll",e)}},{key:"scrollRemove",value:function(e){return this.off("scroll",e)}},{key:"addClass",value:function(e){return O(this.elements,e,"add"),this}},{key:"removeClass",value:function(e){return O(this.elements,e,"remove"),this}},{key:"toggleClass",value:function(e){return O(this.elements,e,"toggle"),this}},{key:"hasClass",value:function(e){return!!this.isValid()&&this.element.classList.contains(e)}},{key:"focus",value:function(){return this.isValid()&&this.element.focus(),this}},{key:"blur",value:function(){return this.isValid()&&this.element.blur(),this}},{key:"toggle",value:function(){return this.isValid()&&j(this.elements),this}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"block";return this.isValid()&&j(this.elements,e),this}},{key:"hide",value:function(){return this.isValid()&&j(this.elements,"none"),this}},{key:"trigger",value:function(e,t){var n;return this.isValid()&&(window.CustomEvent?n=new CustomEvent(e,t):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,t),this.elements.forEach((function(e){return e.dispatchEvent(n)}))),this}},{key:"each",value:function(t){return this.elements.forEach((function(n,i){t.call(n,new e(n),i)})),this}},{key:"html",value:function(e){return void 0===e?this.isValid()?this.element.innerHTML:"":this.isValid()?(this.elements.forEach((function(t){t.innerHTML=e})),this):this}},{key:"empty",value:function(){return this.html(""),this}},{key:"remove",value:function(e){if(e)return this.elements.forEach((function(t){t.querySelectorAll(e).forEach((function(e){return T(e)}))})),this;this.elements.forEach((function(e){return T(e)})),this.elements=[]}},{key:"append",value:function(e){return this.isValid()&&e&&("string"==typeof e?this.elements.forEach((function(t){t.innerHTML+=e})):this.elements.forEach((function(t){t.appendChild(e)}))),this}},{key:"replace",value:function(e){if(!this.isValid())return this;var t=this.element;if("string"==typeof e)if(t.outerHTML)t.outerHTML=e;else{var n=document.createElement("div"),i="----REPLACE----",r=t.parentNode;n.innerHTML=i,r.replaceChild(n,t),r.innerHTML=r.innerHTML.replace("<div>".concat(i,"</div>"),e)}else t.parentNode.replaceChild(e,t);return this}},{key:"find",value:function(t){var n=[];return this.elements.forEach((function(e){n=n.concat(_.call(e.querySelectorAll(t)))})),new e(n)}},{key:"attr",value:function(e,t){return!(!e||!this.isValid())&&(t?(this.elements.forEach((function(n){n.setAttribute(e,t)})),this):!!this.element.hasAttribute(e)&&this.element.getAttribute(e))}},{key:"removeAttr",value:function(e){return!(!e||!this.isValid())&&(this.elements.forEach((function(t){t.removeAttribute(e)})),this)}},{key:"data",value:function(e,t){if(!this.isValid())return!1;if(t)return this.elements.forEach((function(n){n.setAttribute("data-".concat(e.replace(/(?!^)[A-Z]/g,(function(e){return"-".concat(e)})).toLowerCase()),escape(t))})),this;var n=this.element.dataset;return e?!!n.hasOwnProperty(e)&&unescape(n[e]):n}},{key:"val",value:function(e){if(void 0===e)return this.value;this.value=e}},{key:"css",value:function(e,t){if(!this.isValid())return this;var n;switch(p(e)){case"string":if(!t)return getComputedStyle(this.element)[S(e)];this.elements.forEach((function(n){n.style[S(e)]=t}));break;case"object":n=Object.keys(e),this.elements.forEach((function(t){n.forEach((function(n){t.style[S(n)]=e[n]}))}))}return this}},{key:"is",value:function(e){for(var t=document.querySelectorAll(e),n=t.length;0<=--n;)if(t[n]===this.element)return!0;return!1}},{key:"match",value:function(t){for(var n=this.elements.length,i=t instanceof e?t.element:t;0<=--n;)if(this.elements[n]===i)return!0;return!1}},{key:"scrollTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;if(this.isValid())var t,n=window.scrollY,i=e/15,r=Math.floor(i),o=Math.PI/i,s=(n-this.position.top)/2,a=0,l=setInterval((function(){r!==a?(t=s-s*Math.cos(++a*o),window.scrollTo(0,n-t)):clearInterval(l)}),15)}},{key:"next",value:function(){if(this.isValid()){for(var t=this.element.nextSibling;t&&1!==t.nodeType;)t=t.nextSibling;return new e(t)}return new e}},{key:"prev",value:function(){if(this.isValid()){for(var t=this.element.previousSibling;t&&1!==t.nodeType;)t=t.previousSibling;return new e(t)}return new e}},{key:"parent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isValid()?new e(""===t?this.element.parentNode:this.parents(t).element):new e}},{key:"parents",value:function(t){if(!this.isValid())return new e;for(var n=new e(t),i=this.element.parentNode,r=[];i&&i!==document;)n.length&&!n.match(i)||r.push(i),i=i.parentNode;return new e(r)}},{key:"element",get:function(){return this.elements[0]}},{key:"length",get:function(){return this.elements.length}},{key:"width",get:function(){return this.isValid()?C(this.element,"width"):0}},{key:"height",get:function(){return this.isValid()?C(this.element,"height"):0}},{key:"offset",get:function(){return this.isValid()?this.element.getBoundingClientRect():y}},{key:"position",get:function(){var e=this.element;if(!this.isDOMElement())return y;var t=b.getBoundingClientRect(),n=t.bottom,i=t.top,r=e.getBoundingClientRect();return f(f({},r),{},{bottom:Math.round(-1*(r.bottom+n)),top:r.top-i})}},{key:"value",get:function(){return this.isValid()?this.element.value:""},set:function(e){this.isValid()&&(this.element.value=e)}},{key:"outerHTML",get:function(){var e=this.element;if(!this.isValid()||!e.tagName)return"";if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}},{key:"clientHeight",get:function(){return this.isValid()?this.element.clientHeight:0}},{key:"clientWidth",get:function(){return this.isValid()?this.element.clientWidth:0}},{key:"scrollHeight",get:function(){return this.isValid()?this.element.scrollHeight:0}},{key:"scrollTop",get:function(){return this.isValid()?this.element.scrollTop:0},set:function(e){this.isValid()&&(this.element.scrollTop=e)}},{key:"offsetTop",get:function(){return this.isValid()?this.element.offsetTop:0}},{key:"isValid",value:function(){return 0<this.length}},{key:"isDOMElement",value:function(){return this.isValid()&&this.element!==window&&this.element!==document}}],n&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),P=new d;const D=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e)return new E(e);var n=P.get(e);return(void 0===n||t)&&(n=new E(e),P.set(e,n)),n};function L(e){return L="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},L(e)}function A(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 M(e,t,n){var i;return i=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=L(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==L(i)?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const I=function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};dataLayer.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({event:"analytics-event",category:e,action:t,label:n,value:i,nonInteraction:r},o))};var N=D(window),R=function(){return!0};const W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o="function"==typeof t?t:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return t?0<=n.bottom&&0<=n.right&&n.top<=i&&n.left<=r:0<=n.top&&0<=n.left&&n.bottom<=i&&n.right<=r}(D(t).element,!0)};n="function"==typeof n?n:function(){return n};var s=!1,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,r=!0;return function(){for(var o=this,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];var c=function(){e.apply(o,a),i=null};n&&r&&(r=!1,c()),i||(i=setTimeout(c,t))}}((function(){!s&&n()&&o()&&(I(e,"view",i,r,1),s=!0,N.scrollRemove(a))}),500);N.scroll(a)};n(5e3),n(3748),n(1400),n(2724),n(8072);var z=n(8368),B=n.n(z),H=n(3332),F=n.n(H),U=n(7336),q=n.n(U),V=n(7943),Y=n.n(V),G=n(616),K=n.n(G),J={name:"es",monthsShort:"Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.".split("_"),weekdays:"Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mié._Jue._Vie._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),months:"Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [-] H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"En %s",past:"Hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return"".concat(e,"º")}};function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"D MMM, LT",n=B()(),i=B().unix(e).local();return 1>n.diff(i,"day",!0)?i.from(n):1>n.diff(i,"year",!0)?i.format(t):i.format("D MMM YYYY, LT")}"undefined"!=typeof WSL2&&"1"===WSL2.config.useTimeAbbreviations&&(J.relativeTime.s="unos segs",J.relativeTime.m="un min",J.relativeTime.mm="%d mins"),B().locale(J,null,!0),B().locale("es"),B().extend(F()),B().extend(q()),B().extend(Y()),B().extend(K());const Q=J;var Z=n(452),ee=n.n(Z);function te(e){return te="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},te(e)}function ne(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 ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(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,se(i.key),i)}}function se(e){var t=function(e,t){if("object"!=te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=te(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==te(t)?t:String(t)}var ae="GET",le=function(e){return"string"==typeof e?e:Object.keys(e).reduce((function(t,n){return t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e[n]))),t}),[]).join("&")},ce=function(e,t){if(!t||0===Object.keys(t).length)return e;var n=-1===e.indexOf("?")?"?":"&";return e+n+le(t)},ue=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.contentType,r=n.cors,o=void 0!==r&&r,s=n.method,a=void 0===s?ae:s,l=n.data,c=void 0===l?{}:l,u=n.formData,d=void 0!==u&&u,h=n.urlEncode,f=void 0!==h&&h,p=n.json,m="text";void 0!==p&&p&&(m="json"),a&&a!==ae?f?(i="application/x-www-form-urlencoded",t=le(c)):d?t=function(e){var t=new FormData;return Object.keys(e).forEach((function(n){return t.append(n,e[n])})),t}(c):(i="application/json",t=JSON.stringify(c)):e=ce(e,c);var g={credentials:o?"include":"same-origin"};i&&(g.headers=g.headers||{},g.headers["Content-Type"]=i),a&&(g.method=a),t&&(g.body=t);var v=!1,y="";return ee()(e,g).then((function(e){if(200>e.status||300<e.status){m="text",v=!0;var t=e.statusText;y=t}return e[m]()})).then((function(e){if(v){var t=new Error(e);throw t.statusText=y,t}return e}))},de=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"getJSONP",value:function(e,t){var n=document.createElement("iframe");n.style.display="none",n.async=!0,n.onload=function(){try{var e=n.contentDocument.body.innerText;document.body.removeChild(n),t(JSON.parse(e))}catch(e){t()}},n.src=e,document.body.appendChild(n)}},{key:"get",value:function(e){return ue(e,ie({method:ae},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}},{key:"post",value:function(e){return ue(e,ie({method:"POST"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}},{key:"put",value:function(e){return ue(e,ie({method:"PUT"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}},{key:"delete",value:function(e){return ue(e,ie({method:"DELETE"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}},{key:"redirect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.location=ce(e,t)}}],null&&oe(t.prototype,null),n&&oe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function he(e){return he="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},he(e)}function fe(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,pe(i.key),i)}}function pe(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=he(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==he(t)?t:String(t)}function me(e){return me="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},me(e)}function ge(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}function ve(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,ye(i.key),i)}}function ye(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=me(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==me(t)?t:String(t)}function be(e,t,n){return t=_e(t),function(e,t){if(t&&("object"===me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,we()?Reflect.construct(t,n||[],_e(e).constructor):t.apply(e,n))}function we(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(we=function(){return!!e})()}function _e(e){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_e(e)}function ke(e,t){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ke(e,t)}var Se=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),be(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ke(e,t)}(t,e),n=t,i=[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(e)||(e=[e]),e.forEach(this.run)}},{key:"run",value:function(e){e.element&&t.bindDomEvent(e),t.bindGaEvent(e)}},{key:"bindGaEvent",value:function(e){var t=e.trigger,n=e.getData;this.on(t,(function(e){var t,i=n(e);i&&i.length&&ga.apply(void 0,["send","event"].concat(function(e){if(Array.isArray(e))return ge(e)}(t=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return ge(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(t)||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.")}()))}))}},{key:"bindDomEvent",value:function(e){var t=this,n=e.element,i=e.type,r=e.trigger,o=e.delegate;o?D(n).delegate(i,o,(function(e){t.trigger(r,e)})):D(n).on(i,(function(e){t.trigger(r,e)}))}}],null&&ve(n.prototype,null),i&&ve(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"on",value:function(e,t){return this.events||(this.events={}),this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t}),this}},{key:"once",value:function(e,t){var n=this,i=function i(){n.off(e,i),t.apply(void 0,arguments)};return i._original=t,this.on(e,i),this}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this.events||(this.events={}),(this.events[e]||[]).forEach((function(e){e.callback.apply(e,n)})),this}},{key:"off",value:function(e,t){this.events||(this.events={});var n=this.events[e]||[],i=[];return 0<n.length&&t&&n.forEach((function(e){e.callback!==t&&e.callback._original!==t&&i.push(e)})),0<i.length?this.events[e]=i:delete this.events[e],this}}],null&&fe(t.prototype,null),n&&fe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Te(e){return Te="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},Te(e)}function xe(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,Ce(i.key),i)}}function Ce(e){var t=function(e,t){if("object"!=Te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Te(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Te(t)?t:String(t)}var je,Oe,Ee,Pe=/^[a-z0-9\-._+]+@[a-z0-9\-.]+\.[a-z0-9]+$/i,De=function(e){return"Confirma tu suscripción en el enlace que recibirás en <strong>".concat(e,"</strong> y empieza a recibir nuestra newsletter.")},Le=WSL2.config.grecaptchaSiteKey,Ae=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"init",value:function(){var e=this;D("form.js-subscription").each((function(t){t.on("submit",(function(n){n.preventDefault();var i=t.find(".js-email"),o=t.find(".js-disclaimer"),s=t.find(".js-subscribe-btn"),a=t.find(".js-subscribe-msg"),l=t.find(".js-subscribe-success"),c=t.find(".js-subscribe-error"),u=i.val();Pe.test(u)?(s.html("Suscribir…").addClass("btn-disabled").attr("disabled",!0),c.hide(),"newsletterModule"===t.data("type")?Se.trigger("newsletterModuleClicked",{email:u}):t.hasClass("aside-newsletter-form")?Se.trigger("subscribeButtonClicked",{email:u}):Se.trigger("subscribeLinkClicked",{email:u}),r(0===document.querySelectorAll("#recaptchaScript").length&&0<Le.length,{src:"https://www.google.com/recaptcha/api.js?render=".concat(Le),async:!0,id:"recaptchaScript",onload:function(){return e.executeRecaptcha(o,a,l,s,i,c,u,t)}}),void 0!==window.grecaptcha&&e.executeRecaptcha(o,a,l,s,i,c,u,t)):(c.show(),i.addClass("input-error"))}))})),Se.init(this.gaEvents)}},{key:"showMessage",value:function(e,t,n){return n.alreadySubscribed?e.removeClass("alert-success").addClass("alert-info").html(function(e){return"El correo <strong>".concat(e,"</strong> ya está suscrito. Si no recibes la newsletter, comprueba si ha entrado a tu carpeta de spam y, si no, <a href=").concat(WSL2.config.desktopSiteUrl,"/contacto>contacta con nosotros</a>")}(t)).show():e.hasClass("alert-info")?e.removeClass("alert-info").addClass("alert-success").html(De(t)).show():e.html(De(t)).show()}},{key:"executeRecaptcha",value:function(e,t,n,i,r,o,s,a){var l=this;r.removeClass("input-error");var c=window.grecaptcha;c.ready((function(){c.execute(Le,{action:"submit"}).then((function(e){return{email:s,reCaptchaToken:e}})).then((function(e){return de.post(a.data("url"),{formData:!0,data:e})})).then((function(e){return JSON.parse(e)})).then((function(a){a.emailSent||a.alreadySubscribed?(r.hide(),i.hide(),t.hide(),e.hide(),o.hide(),l.showMessage(n,s,a)):(i.html("Suscribir").removeClass("btn-disabled").removeAttr("disabled"),o.show(),r.addClass("input-error"))}))}))}}],null&&xe(t.prototype,null),n&&xe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Me(e){return Me="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},Me(e)}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,Ne(i.key),i)}}function Ie(e,t,n){return(t=Ne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Me(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Me(t)?t:String(t)}je=Ae,Ee=[{trigger:"subscribeLinkClicked",getData:function(e){return["subscribe","icons",e.email]}},{trigger:"subscribeButtonClicked",getData:function(e){return["subscribe","mail",e.email]}}],(Oe=Ce(Oe="gaEvents"))in je?Object.defineProperty(je,Oe,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):je[Oe]=Ee;var Re=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"init",value:function(){var e=this;D(".js-search-form > input").on("keydown",(function(t){if(13===t.keyCode&&!e.searchInProgress){t.preventDefault();var n=D(t.target),i=D(n.data("container"));i.empty(),e.performSearch(n.val(),i)}})),D(".js-search-button").on("click",(function(t){t.preventDefault();var n=D(t.target.dataset.field),i=D(n.data("container"));i.empty(),e.performSearch(n.val(),i)})),D(".js-search-results").delegate("click",".view-more .btn-primary",(function(t){t.preventDefault();var n=t.target.dataset,i=n.query,r=n.container,o=n.startposition,s=D("#".concat(r));s.remove(".search-results-alternate"),e.performSearch(i,s,o)})),D(".js-search-results").delegate("click",".js-close",(function(e){e.preventDefault();var t=D(e.target);D(".".concat(t.data("text"))).val(""),t.parent().empty()})),Se.init(this.gaEvent)}},{key:"performSearch",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.trim();r&&!this.searchInProgress&&(this.searchInProgress=!0,0===i&&Se.trigger("search",r),de.get("/modules/cloudsearch",{data:{query:r,start:i,container:t.attr("id")}}).then((function(e){t.remove("a.btn-primary");var i=t.find(".search-results-list");0<i.length?i.append(e):t.append(e),n.searchInProgress=!1,n.updateTime("js-search-result-time")})).catch((function(){n.searchInProgress=!1})))}},{key:"updateTime",value:function(e){D("time.".concat(e),!0).each((function(e){var t,n=e.attr("datetime");e.html("string"!=typeof(t=B().unix(n).fromNow())?t:t.charAt(0).toUpperCase()+t.slice(1))}))}}],null&&$e(t.prototype,null),n&&$e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Ie(Re,"gaEvent",{trigger:"search",getData:function(e){return["searchButton","click",e]}}),Ie(Re,"searchInProgress",!1),n(6112),n(7344);var We=n(5816),ze=n.n(We),Be=n(3435);function He(e){return He="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},He(e)}function Fe(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,Ge(i.key),i)}}function Ue(e,t,n){return t&&Fe(e.prototype,t),n&&Fe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(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 Ye(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e){var t=function(e,t){if("object"!=He(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=He(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==He(t)?t:String(t)}var Ke=D("#realtime"),Je=(Ke.html()?"".concat(Ke.html()," GMT"):"")||B()(),Xe={relativeTime:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Q.relativeTime)},Qe={relativeTime:{future:"En %s",past:"hace %s",s:"%ds",m:"1m",mm:"%dm",h:"1h",hh:"%dh",d:"1d",dd:"%dd",M:"1mes",MM:"%d meses",y:"1año",yy:"%d años"}},Ze=Ue((function e(){var t,n=this;qe(this,e),Ye(this,"updateInterval",(function(e){var t=Math.floor(e/60),n=Math.floor(e/3600),i=Math.floor(e/2600640),r=Math.floor(e/31207680);return 60>e?1e3:60>t?6*Math.pow(10,4):24>n?3.6*Math.pow(10,6):0===i?8.64*Math.pow(10,7):0===r?2.628*Math.pow(10,9):3.154*Math.pow(10,10)})),Ye(this,"updateLocatFormat",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es";B().updateLocale(t,e)})),Ye(this,"changeInterval",null),Ye(this,"updateTime",(function(){var e=B()().diff(B()(Je),"second"),t=B()().utc().format();Ke.html(B()(Je,"YYYY-MM-DD HH:mm:ss").from(B()(t,"YYYY-MM-DD HH:mm:ss"))),clearInterval(n.changeInterval),n.changeInterval=setInterval(n.updateTime,n.updateInterval(e))})),B().extend(ze()),B().extend(Be),B().extend(Y()),this.updateLocatFormat(Qe),(null!==(t=Ke.html())&&void 0!==t?t:"").length&&this.updateTime(),this.updateLocatFormat(Xe)})),et=function(){function e(){qe(this,e)}return Ue(e,null,[{key:"init",value:function(){new Ze}}]),e}(),tt=n(2856);function nt(e){return nt="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},nt(e)}function it(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,rt(i.key),i)}}function rt(e){var t=function(e,t){if("object"!=nt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=nt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nt(t)?t:String(t)}var ot=0,st=21,at=3,lt=!1,ct=$(window),ut=$(document),dt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"init",value:function(){this.handleMenuToggle(),this.handleSubscriptionToggle(),this.viewMorePosts(),this.viewMoreVideos(),this.handleGroupsToggle(),this.handleExploreWeblogSLToggle(),this.handleBotCloseButton(),WSL2.config.enableLfeDriftNavigation?this.handleDriftNavScroll():this.handleScroll()}},{key:"handleMenuToggle",value:function(){$("a.js-toggle").bind("click touchstart",(function(e){e.preventDefault();var t=$(".gsc-results-close-btn-visible");0<t.length&&t.click();var n=$(e.currentTarget);n.toggleClass("is-visible"),$("html").toggleClass("noscroll"),$(n.attr("href")).toggleClass("is-visible"),"desktop"===WSL2.config.device&&$(n.data("searchbox")).focus(),null!=window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&($("#sections").hasClass("is-visible")?ot=window.scrollY:ot&&(window.scrollTo(0,ot),ot=0))}))}},{key:"handleSubscriptionToggle",value:function(){this.handleSubscriptionClose(),$("a.js-toggle-subscribe").click((function(e){e.preventDefault(),$($(e.currentTarget).attr("href")).toggle()}))}},{key:"handleSubscriptionClose",value:function(){$("a.js-close-corner").click((function(e){e.preventDefault(),$(".js-subscribe-success").hide(),$(".js-subscribe-error").hide(),$(".js-email").val("").show(),$(".js-disclaimer").show(),$(".js-subscribe-btn").removeClass("btn-disabled").attr("disabled",!1).html("Suscribir").show(),$($(e.currentTarget).attr("href")).toggle()}))}},{key:"handleScroll",value:function(){var e,t=$(".head"),n=$(".ad-center"),i=t.outerHeight()+(null===(e=t.offset())||void 0===e?void 0:e.top),r=$("#head-favicons"),o=WSL2.config.enableNanomediaHeader?this.handleNanomediaScrollUp:this.handleOnScrollUp,s=WSL2.config.enableNanomediaHeader?this.handleNanomediaScrollDown:this.handleOnScrollDown;ct.on("scrollup",(function(e,s){var a=ct.height(),l=ut.height(),c=ct.scrollTop();c+a<l&&(o({head:t,scrollTop:c,headerHeight:i,headFavicons:r,data:s}),n&&n.hide())})).on("scrolldown",(function(){s({headerHeight:i,head:t,headFavicons:r}),lt||n&&n.show()}))}},{key:"handleOnScrollUp",value:function(e){e.scrollTop<e.headerHeight?($("#favicons-toggle.is-opened").trigger("click"),e.head.removeClass("is-hidden is-visible").addClass("is-init"),e.headFavicons.removeClass("is-visible")):150<Math.abs(e.data.distance)&&(e.head.removeClass("is-hidden is-init").addClass("is-visible"),e.headFavicons.addClass("is-visible"))}},{key:"handleOnScrollDown",value:function(e){ct.scrollTop()<e.headerHeight?(e.head.removeClass("is-hidden is-visible").addClass("is-init"),e.headFavicons.removeClass("is-visible")):(e.head.removeClass("is-visible is-init").addClass("is-hidden"),e.headFavicons.removeClass("is-visible")),$("#favicons-toggle.is-opened").trigger("click")}},{key:"handleNanomediaScrollUp",value:function(e){e.scrollTop<e.headerHeight?($("#favicons-toggle.is-opened").trigger("click"),e.head.removeClass("is-hidden is-visible").addClass("is-init"),$(".js-nano-container").css("display","inherit"),$("section.head-favicons-container").css("display","inherit"),$(".masthead-site-lead").removeClass("is-visible m-toggle-scroll"),$(".toc-enabled").css("scroll-margin-top",""),$(".js-media-sponsor").addClass("m-sponsor-masthead")):150<Math.abs(e.data.distance)&&(e.head.removeClass("is-hidden is-init").addClass("is-visible"),$(".js-nano-container").css("display","none"),$("section.head-favicons-container").css("display","none"),$(".masthead-site-lead").addClass("is-visible m-toggle-scroll"),$(".toc-enabled").css("scroll-margin-top","".concat($(".masthead-site-lead").height(),"px")),$(".js-media-sponsor").removeClass("m-sponsor-masthead"))}},{key:"handleNanomediaScrollDown",value:function(e){var t=$(".masthead-site-lead");ct.scrollTop()<e.headerHeight?e.head.removeClass("is-hidden is-visible").addClass("is-init"):(e.head.removeClass("is-visible is-init").addClass("is-hidden"),t.removeClass("m-sponsor-masthead")),t.removeClass("is-visible m-toggle-scroll"),$("#favicons-toggle.is-opened").trigger("click")}},{key:"handleDriftNavScroll",value:function(){var e=this,t=$(".head"),n=t.outerHeight(),i=null,r=0;ut.on("lfeslidechange",(function(){r=0,t.removeClass("is-hidden is-visible").addClass("is-init")})),$(".js-slide-section").scroll(tt.debounce((function(o){clearTimeout(i);var s=$(o.currentTarget).scrollTop(),a=Math.abs(r-s);s>r?e.handleDriftNavScrollDown({scrollTop:s,headerHeight:n,head:t}):i=e.handleDriftNavScrollUp({head:t,scrollTop:s,headerHeight:n,scrollDistance:a}),r=s}),100))}},{key:"handleDriftNavScrollUp",value:function(e){e.scrollTop<e.headerHeight?e.head.removeClass("is-hidden is-visible").addClass("is-init"):setTimeout((function(){150<e.scrollDistance&&e.head.removeClass("is-hidden is-init").addClass("is-visible")}),200)}},{key:"handleDriftNavScrollDown",value:function(e){e.scrollTop>e.headerHeight&&e.head.removeClass("is-visible is-init").addClass("is-hidden")}},{key:"viewMorePosts",value:function(){var e=this,t=$("#view-more");t.click((function(n){n.preventDefault();var i={start:st,blog:t.data("blog"),region:"country"};$.ajax({url:"/modules/posts",data:i,success:function(n){""===n?t.hide():($("#recent-posts").append(n),e.updateTime("js-header-post"),st+=20)}})}))}},{key:"viewMoreVideos",value:function(){var e=$("#view-more-videos");e.click((function(t){t.preventDefault();var n={offset:at,blog:e.data("blog")};$.ajax({url:"/modules/videos",data:n,success:function(t){""===t?e.hide():($("#recent-videos").append(t),at+=3)}})}))}},{key:"updateTime",value:function(e){$("time.".concat(e)).each((function(e,t){var n=$(t),i=n.attr("datetime"),r=Number.isFinite(i)?B().unix(i).local():B()(i).local();n.html(r.local().fromNow())}))}},{key:"handleGroupsToggle",value:function(){$(".js-group-toggle").bind("click touchstart",(function(e){e.preventDefault();var t=$(e.currentTarget);t.toggleClass("is-opened");var n=t.data("target");"#head-network"===n?$(n).toggle().toggleClass("is-opened"):$(n).toggleClass("is-visible")}))}},{key:"handleExploreWeblogSLToggle",value:function(){$("a.explore-weblogs-sl-toggle").bind("click touchstart",(function(e){e.preventDefault();var t=$(e.currentTarget);t.toggleClass("is-visible"),$(t.attr("href")).toggleClass("is-visible"),null!=window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&($("#sections").hasClass("is-visible")?ot=window.scrollY:ot&&(window.scrollTo(0,ot),ot=0))}))}},{key:"handleBotCloseButton",value:function(){var e=$(".ad-center"),t=$(".btn-bot-close");t&&t.click((function(){e.hide(),lt=!0}))}}],null&&it(t.prototype,null),n&&it(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ht=n(2856);function ft(e){return ft="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},ft(e)}var pt=function(e){return function(t){ht.default.extend(t.prototype,e)}},mt=function(e){return function(t){return function(n){return pt(function(e,t,n){var i;return i=function(e,t){if("object"!=ft(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=ft(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==ft(i)?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))(n)}}},gt=mt("defaults"),vt=mt("tagName"),yt=mt("className"),bt=mt("url"),wt=mt("routes"),_t=mt("template"),kt=mt("el"),St=(mt("idAttribute"),function(e){return function(t,n){t.events||(t.events={}),t.events[e]=n}});const Tt=pt;var xt,Ct,jt,Ot,Et,Pt,Dt,Lt,At,Mt,$t='\n<div class="a-modal">\n <header class="a-modal__header a-modal__header--title">\n <button class="a-modal__close js-modal-close js-close-register">\n <span>Cerrar</span>\n </button>\n <div class="a-modal__title">\n <span class="a-user__avatar a-avatar"></span>\n <span>Regístrate en <%= WSL2.config.siteName %></span>\n </div>\n </header>\n <div class="a-modal__content">\n <form id="fos_user_registration_form" class="o-usernav-section__form" action="#">\n <p class="wsl_error" id="wsl_register_invalid">Error: <%= Translator.trans(\'email.not.valid.format\') %></p>\n <p class="wsl_error" id="wsl_email_invalid">Error: <%= Translator.trans(\'email.not.valid.format\') %></p>\n <div class="o-usernav-section__form-group">\n <label><%= Translator.trans(\'email\') %></label>\n <input type="email" id="wsl_email" class="a-input">\n </div>\n <p class="wsl_error" id="wsl_short_pwd">Error: <%= Translator.trans(\'password.length.message\') %></p>\n <div class="o-usernav-section__form-group">\n <label><%= Translator.trans(\'password\') %><span>(mínimo 6 caracteres)</span></label>\n <input type="password" id="wsl_password" class="a-input">\n </div>\n <p class="wsl_error" id="wsl_pwd_not_match">Error: <%= Translator.trans(\'passsword.donot.match\') %></p>\n <div class="o-usernav-section__form-group">\n <label><%= Translator.trans(\'repeat.password\') %></label>\n <input type="password" id="wsl_confirm_password" class="a-input">\n </div>\n <p class="wsl_error" id="wsl_invalid_username">Error: <%= Translator.trans(\'username.not.valid.format\') %></p>\n <div class="o-usernav-section__form-group">\n <label><%= Translator.trans(\'username\') %></label>\n <p id="wsl_res_username"></p>\n <input id="wsl_username" class="a-input">\n <p class="a-input__help">Se usa para la dirección de tu página de usuario. Piénsalo bien porque no podrás cambiarlo. Mínimo 3 caracteres, se pueden usar números (no como carácter inicial), pero no mayúsculas, espacios, tildes o caracteres especiales.</p>\n </div>\n <p class="wsl_error" id="wsl_check_policy">Error: <%= Translator.trans(\'accept.privacy.policy\') %></p>\n <div class="o-usernav-section__form-group">\n <input id="wsl_condition_agree" type="checkbox" class="a-input a-input--checkbox">\n <label><%= Translator.trans(\'accept.privacy.policy1\') %>\n <a target="_blank" href="https://weblogs.webedia.es/aviso-legal.html"><%= Translator.trans(\'accept.privacy.policy2\') %></a>\n </label>\n </div>\n <div class="o-usernav-section__form-group">\n <button class="a-button a-button--primary" id="wsl_register_button">Regístrarse en <%= WSL2.config.siteName %></button>\n </div>\n </form>\n <div class="o-usernav-section__social">\n <% if (WSL2.config.enableGoogleLogin) { %>\n <a href="#" class="a-button a-button--google js-google-login"><%= Translator.trans(\'signin.with\') %> Google</a>\n <% } %>\n <a href="#" class="a-button a-button--facebook js-facebook-login"><%= Translator.trans(\'signin.with\') %> Facebook</a>\n </div>\n <div class="o-usernav-section__cta">\n <p class="o-usernav-section__cta-text">¿Ya tienes cuenta?</p>\n <a href="#nav-login" class="a-button a-button--large js-open-login">Entra en <%= WSL2.config.siteName %></a>\n </div>\n </div>\n</div>\n',It='\n <div class="a-modal">\n <header class="a-modal__header a-modal__header--title">\n <button class="a-modal__close js-modal-close"><span>{{\'usernav.close\'|trans}}</span></button>\n <div class="a-modal__title">\n <img src="https://img.weblogssl.com/g/r/svg/default-user-avatar.svg" alt="Avatar" class="a-avatar">\n <span>Entra en '.concat(WSL2.config.siteName,'</span>\n </div>\n </header>\n <div class="a-modal__content">\n <p class="help-msg"><%= Translator.trans(\'new.password.for\') %> <em> <%= email %> </em>:</p>\n <div class="alert-error alert-block" id="password-missmatch"><%= Translator.trans(\'passsword.donot.match\') %></div>\n <div class="alert-error alert-block" id="small-password"><%= Translator.trans(\'password.length.message\') %></div>\n <div class="alert-error alert-block" id="password-invalid"><%= Translator.trans(\'invalid.password\') %></div>\n <div class="alert-error alert-block" id="token-invalid"></div>\n <form class="o-usernav-section__form" id="reset-form" method="post">\n <div class="o-usernav-section__form-group">\n <label for="new_wsl_password"><%= Translator.trans(\'new.password\') %></label>\n <span class="mhelp"><%= Translator.trans(\'atleast.6.characters\') %></span>\n <input type="password" id="new_wsl_password" class="a-input required" name="fos_user_resetting_form[new][first]">\n </div>\n <div class="o-usernav-section__form-group">\n <label for="new_wsl_confirm_password"><%= Translator.trans(\'repeat.new.password\') %></label>\n <input type="password" id="new_wsl_confirm_password" class="a-input required" name="fos_user_resetting_form[new][second]">\n </div>\n <div class="o-usernav-section__form-columns">\n <button class="a-button a-button--primary" id="reset_password_button"><%= Translator.trans(\'save.password\') %></button>\n </div>\n <div class="alert-success alert-block" id="password-updated"> <%= Translator.trans(\'password.reset.success\') %> </div>\n </form>\n </div>\n </div>\n'),Nt='\n <div class="section-modal-container <%= isOpen ? \'is-block\' : \'\' %>">\n <div class="section-modal m-modal-user-config">\n <header class="section-modal-header">\n <h3 class="section-modal-heading"><%= Translator.trans(\'configuration.text\') %></h3>\n <button class="btn-modal-close js-close-modal"></button>\n </header>\n <form class="form-box">\n <% if (\'standard\' === WSL2.User.get(\'login_type\')) { %>\n '.concat('\n <div class="section-modal-content">\n <fieldset class="form-fieldset">\n <legend></legend>\n <button class="btn" id="js-change-password" type="button"><%= Translator.trans(\'change.password\') %></button>\n <p class="form-hint"><%= Translator.trans(\'change.password.hint\') %></p>\n </fieldset>\n <p id="change-password-message" class="alert-success alert-compact" style="display: none"><%= Translator.trans(\'change.password.email.sent\') %></p>\n <p id="already-sent-message" class="alert-error alert-compact" style="display: none"><%= Translator.trans(\'change.password.email.already.sent\') %></p>\n </div>\n','\n <% } %>\n <div class="section-modal-content">\n <% if (\'standard\' === WSL2.User.get(\'login_type\')) { %>\n <label class="form-label"><span class="form-label-text"><%= Translator.trans(\'your.email.text\') %></span>\n <input class="form-input" id="js-user-email" type="email" value="<%= user.get(\'email\') %>">\n <p class="form-hint"><%= Translator.trans(\'email.related.hint\') %></p>\n </label>\n <% } %>\n <p class="alert-error" id="js-email-message" style="display: none"><%= Translator.trans(\'user.email.error.message\') %></p>\n <label class="form-label">\n <span class="form-label-text"><%= Translator.trans(\'your.name.text\') %></span>\n <input class="form-input" id="js-full-name" type="text" value="<%= user.get(\'fullName\') %>">\n <span class="form-hint"><%= Translator.trans(\'name.related.hint\') %></span>\n </label>\n <div class="form-user-image">\n <a class="form-user-image-link js-image-loader" href="#usuario/<%= WSL2.User.getUserName() %>">\n <img id="js-avatar-image-preview" alt="<%= user.get(\'fullName\') %>" class="form-user-image-avatar" src="<%= user.getUserImage() %>">\n </a>\n <div class="form-user-image-actions">\n <label class="btn"><%= Translator.trans(\'avatar.text\') %><input id="js-avatar-image" class="form-input-file" type="file"></label>\n <span class="form-hint"><%= Translator.trans(\'avatar.related.hint\') %></span>\n </div>\n </div>\n <p class="alert-error js-image-message" id="js-image-limit-error" style="display: none"><%= Translator.trans(\'user.image.size.error.message\') %></p>\n <p class="alert-error js-image-message" id="js-image-extension-error" style="display: none"><%= Translator.trans(\'user.image.extension.error.message\') %></p>\n <label class="form-label">\n <span class="form-label-text"><%= Translator.trans(\'description.text\') %></span>\n <span class="form-max-character" id="js-description-limit"><%= 150 - (user.get(\'userDescription\') || \'\').length %></span>\n <textarea class="form-textarea" id="js-user-description" cols="5" rows="5" maxlength="150"><%= user.get(\'userDescription\') %></textarea>\n </label>\n <div class="form-label-checkbox" style="display:none">\n <label>\n <input class="form-input-checkbox" id="js-notification" type="checkbox" <% if (user.get(\'notifications\')) { %>checked="checked"<% } %>>\n <span class="form-label-text"><%= Translator.trans(\'newsletter.text.weekly\') %> <%= WSL2.config.newsletterSiteName ? WSL2.config.newsletterSiteName : WSL2.config.siteName %></span>\n </label>\n <span class="form-hint"><%= Translator.trans(\'newsletter.hint.weekly\') %> <a href="https://weblogs.webedia.es/aviso-legal.html">política de privacidad</a></span>\n </div>\n <p class="alert-success js-message" id="js-success-msg" style="display: none"><%= Translator.trans(\'user.update.success.message\') %></p>\n <p class="alert-success js-message" id="js-email-sent" style="display: none"><%= Translator.trans(\'user.email.send.message\') %></p>\n <p class="alert-error js-message" id="js-failed-msg" style="display: none"><%= Translator.trans(\'failed.updating.user\') %></p>\n <p class="alert-error js-message" id="js-used-email" style="display: none"><%= Translator.trans(\'user.email.used.message\') %></p>\n </div>\n <div class="section-modal-actions">\n <a class="cancel-link js-close-modal" href="#"><%= Translator.trans(\'discard.changes.button\') %></a>\n <button class="btn-primary" id="js-save-user-profile"><%= Translator.trans(\'save.changes.button\') %></button>\n </div>\n </form>\n </div>\n </div>\n'),Rt='\n <div class="section-modal-container <%= isOpen ? \'is-block\' : \'\' %>">\n <div class="section-modal m-modal-user-deactivate">\n <header class="section-modal-header">\n <h3 class="section-modal-heading">Tu cuenta <%= userEmail %></h3>\n <button class="btn-modal-close js-exit-modal-3 js-close-modal"></button>\n </header>\n <form class="form-box">\n <% if (unsubscribeNewsLetterUrl) { %>\n <div class="section-modal-content m-faded">\n <div class="text-segment m-compact-mini">\n <p> ¿Sólo quieres dejar de recibir la newsletter? <a href="<%= unsubscribeNewsLetterUrl %>" target="_blank"> Date de baja de la newsletter de <%= WSL2.config.blogDomain %> </a></p>\n </div>\n </div>\n <% } %>\n <div class="section-modal-content">\n <div class="text-segment m-compact">\n <% if (1 < userData.length) { %>\n <p>Todas las publicaciones de Weblogs SL comparten sistema de autentificación de usuarios.</p>\n <p>Es por ello que al dar de baja tu usuario <strong><%= WSL2.User.getName() %></strong> en <strong><%= WSL2.config.siteName %></strong>, daremos de baja también los usuarios asociados a la misma cuenta de correo <strong><%= userEmail %></strong> en estos <%= userData.length %> sitios:</p>\n <ul>\n <% for (var i = 0; i < userData.length; i++) { %>\n <% var userName = userData[i][\'user_name\'] ? userData[i][\'user_name\'] : userData[i][\'user_id\'] %>\n <% var commentModalPath = userData[i][\'site_url\'] + \'#usuario/\' + userName %>\n <li><a href="<%= commentModalPath %>" target="_blank"><%= WSL2.User.getName() %></a> en <%= userData[i][\'site_fullName\'] %><% if (userData[i][\'currentBlog\']) { %> (este sitio) <% } %></li>\n <% } %>\n </ul>\n <p>Al pulsar el botón dar de baja te pediremos una autorización final y luego sucederá lo siguiente:</p>\n <% } else { %>\n <p>Al pulsar el botón dar de baja tu cuenta asociada a <strong><%= userEmail %></strong> te pediremos una autorización final y luego sucederá lo siguiente:</p>\n <% } %>\n <ol>\n <li>Procederemos a desactivar esta cuenta, de forma que ya <strong>no se podrá acceder</strong> a la publicación, <strong>ni dejar comentarios ni votos</strong> con dicho usuario.</li>\n <li>Los comentarios escritos hasta la fecha se mantendrán publicados, pero serán <strong>desligados de tu identidad</strong>, apareciendo como publicados por "Usuario desactivado".</li>\n <li>Los datos de esta cuenta se mantendrán en nuestra base de datos durante un periodo de <strong>tres años</strong> debido a las obligaciones que nos impone la legislación en materia de conservación de información. Durante dicho periodo no serán usados salvo requerimiento de autoridades judiciales. Pasado dicho periodo serán eliminados definitivamente.</li>\n <li>Daremos de baja tu suscripción a <%= userData.length > 1 ? \'nuestras newsletters\' : \'nuestra newsletter\' %> en caso de estar suscrito.</li>\n </ol>\n <p class="alert-text alert-text-danger">¡Ojo! Si das de baja tu cuenta, <strong>no podrás recuperarla, ni registrarte otra vez con el mismo email</strong> en ninguno de los <a href="https://www.weblogssl.com/medios/" target="_blank"> sitios de Weblogs SL.</a></p>\n <p>Si tienes <strong>dudas sobre el proceso</strong> o quieres preguntarnos algo antes de proceder a la baja, puedes <a href="/contacto" target="_blank">contactar con nosotros en nuestro formulario.</a></p>\n </div>\n </div>\n <div class="section-modal-actions">\n <a href="#" class="cancel-deactive-link js-exit-modal js-close-modal">Volver y no dar de baja</a>\n <% var deactivationMsg = userData.length > 1 ? \'Dar de baja \' + userData.length + \' cuentas\' : \'Dar de baja tu cuenta\' %>\n <button class="btn-action-delete js-initiate-deactivation"><%= deactivationMsg %></button>\n </div>\n </form>\n </div>\n </div>\n',Wt=n(2856),zt=n(5544);function Bt(e){return Bt="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},Bt(e)}function Ht(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,Kt(i.key),i)}}function Ft(e,t,n){return t=qt(t),function(e,t){if(t&&("object"===Bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vt(e)}(e,Ut()?Reflect.construct(t,n||[],qt(e).constructor):t.apply(e,n))}function Ut(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ut=function(){return!!e})()}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qt(e)}function Vt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yt(e,t){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yt(e,t)}function Gt(e,t,n){return(t=Kt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e){var t=function(e,t){if("object"!=Bt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Bt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bt(t)?t:String(t)}function Jt(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var Xt=["jpg","jpeg","gif","png"],Qt=null;const Zt=(xt=kt("#js-edit-user-profile-form"),Ct=St("click .js-close-modal"),jt=St("keyup #js-user-description"),Ot=St("blur #js-user-description"),Et=St("click #js-save-user-profile"),Pt=St("change #js-avatar-image"),Dt=St("focusout #js-user-email"),Lt=St("click #js-change-password"),xt((Jt((Mt=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return Gt(Vt(e=Ft(this,t,[].concat(i))),"validImage",!0),Gt(Vt(e),"emailValid",!0),Gt(Vt(e),"isOpen",!1),e}var n,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yt(e,t)}(t,e),n=t,r=[{key:"get",value:function(e){return!Qt&&e&&(Qt=new t(e)),Qt}}],(i=[{key:"initialize",value:function(){this.model.bind("change",this.render,this),this.render()}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this.render())}},{key:"close",value:function(e){e&&e.preventDefault(),this.isOpen&&(this.isOpen=!1,$(".js-overlay").removeClass("is-open"),$(".js-body").removeClass("is-modal-open"),this.render())}},{key:"handleDescriptionLimit",value:function(e){this.$el.find("#js-description-limit").html(150-$(e.target).val().length)}},{key:"saveUserprofileData",value:function(e){var t=this;e.preventDefault();var n=this.$el.find("a.js-image-loader");if(this.$el.find(".js-message").hide(),n.addClass("is-loading"),this.validImage&&this.emailValid){this.model.set({userDescription:this.$el.find("#js-user-description").val(),fullName:this.$el.find("#js-full-name").val(),notifications:this.$el.find("#js-notification").is(":checked"),email:this.$el.find("#js-user-email").val()});var i=this.isUserUpdated();this.model.save({},{success:function(e,r){"email-sent"===r&&t.$el.find("#js-email-sent").show(),i&&(n.removeClass("is-loading"),t.$el.find("#js-success-msg").show());var o=new WSL2.Cookie,s=o.getValue();s&&("facebook"===o.loginType()&&(s.user.Name=WSL2.User.get("user").Name),WSL2.User.set(s))},error:function(e,i){"used-email"===i.responseJSON?t.$el.find("#js-used-email").show():t.$el.find("#js-failed-msg").show(),n.removeClass("is-loading")}})}else this.$el.find("#js-failed-msg").show()}},{key:"setImage",value:function(e){var t=this;this.$el.find("p.js-image-message").hide(),this.validImage=!0;var n=e.currentTarget.files[0],i=new FileReader;i.onloadend=function(){return n.size>3194304?(t.$el.find("#js-image-limit-error").show(),void(t.validImage=!1)):n.name&&-1===Xt.indexOf(n.name.split(".").pop().toLowerCase())?(t.$el.find("#js-image-extension-error").show(),void(t.validImage=!1)):(t.model.set({userImage:{name:n.name,content:i.result}},{silent:!0}),void t.$el.find("#js-avatar-image-preview").attr("src",i.result))},i.readAsDataURL(n)}},{key:"validateUserEmail",value:function(){this.$el.find("#js-email-message").hide(),this.emailValid=!0;var e=this.$el.find("#js-user-email").val();/^[a-z0-9_.+-]+@[a-z0-9-]+\.[a-z0-9-.]+$/i.test(e)||(this.emailValid=!1,this.$el.find("#js-email-message").show())}},{key:"sendEmail",value:function(e){e.preventDefault(),$(e.target).addClass("btn-disabled").prop("disabled",!0),$.post("/auth/resetting/send-email",{username:this.model.get("email")},(function(e){"email_sent"===e?$("#change-password-message").show():"already"===e&&$("#already-sent-message").show()}))}},{key:"isUserUpdated",value:function(){return this.model.hasChanged("fullName")||this.model.hasChanged("userDescription")||this.model.hasChanged("notifications")||this.model.attributes.hasOwnProperty("userImage")}},{key:"render",value:function(){this.$el.html(Wt.template(Nt)({user:this.model,isOpen:this.isOpen}))}}])&&Ht(n.prototype,i),r&&Ht(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(zt.View)).prototype,"close",[Ct],Object.getOwnPropertyDescriptor(Mt.prototype,"close"),Mt.prototype),Jt(Mt.prototype,"handleDescriptionLimit",[jt,Ot],Object.getOwnPropertyDescriptor(Mt.prototype,"handleDescriptionLimit"),Mt.prototype),Jt(Mt.prototype,"saveUserprofileData",[Et],Object.getOwnPropertyDescriptor(Mt.prototype,"saveUserprofileData"),Mt.prototype),Jt(Mt.prototype,"setImage",[Pt],Object.getOwnPropertyDescriptor(Mt.prototype,"setImage"),Mt.prototype),Jt(Mt.prototype,"validateUserEmail",[Dt],Object.getOwnPropertyDescriptor(Mt.prototype,"validateUserEmail"),Mt.prototype),Jt(Mt.prototype,"sendEmail",[Lt],Object.getOwnPropertyDescriptor(Mt.prototype,"sendEmail"),Mt.prototype),At=Mt))||At);function en(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}function tn(e){return tn="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},tn(e)}function nn(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,on(i.key),i)}}function rn(e,t,n){return(t=on(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function on(e){var t=function(e,t){if("object"!=tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=tn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tn(t)?t:String(t)}var sn=function(){function e(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i||(i=new Date).setFullYear(i.getFullYear()+1),"object"===tn(n)&&(n=encodeURIComponent(JSON.stringify(n))),document.cookie="".concat(t,"=").concat(n,";expires=").concat(i.toUTCString(),";path=").concat(r),e.set(t,n)}var t,n;return t=e,n=[{key:"parse",value:function(){var e=this;document.cookie.split(";").forEach((function(t){try{var n=(o=e.regex.exec(t),s=3,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(o,s)||function(e,t){if(e){if("string"==typeof e)return en(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(o,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=n[1],r=n[2];e.set(i,function(e){if(null==e)return null;var t=decodeURIComponent(decodeURIComponent(e));try{return JSON.parse(t)}catch(e){return t}}(r))}catch(e){}var o,s}))}},{key:"set",value:function(t,n){e.cookies[t]=n}},{key:"get",value:function(t,n){return e.parse(),e.has(t)?e.cookies[t]:n}},{key:"has",value:function(t){return e.parse(),e.cookies.hasOwnProperty(t)}},{key:"remove",value:function(t){var n=new Date("2000-01-01"),i="=deleted; expires=".concat(n.toUTCString(),"; path=/");document.cookie="".concat(t).concat(i),delete e.cookies[t]}}],null&&nn(t.prototype,null),n&&nn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();rn(sn,"regex",/^\s*([^=]+)=(.+?)\s*$/),rn(sn,"cookies",{}),n(2763);const an=function(){return"v6"===WSL2.config.homepageVersion};var ln,cn,un,dn,hn,fn,pn,mn,gn,vn=n(2856),yn=n(5544);function bn(e){return bn="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},bn(e)}function wn(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,_n(i.key),i)}}function _n(e){var t=function(e,t){if("object"!=bn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=bn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bn(t)?t:String(t)}function kn(e,t,n){return t=Tn(t),function(e,t){if(t&&("object"===bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sn()?Reflect.construct(t,n||[],Tn(e).constructor):t.apply(e,n))}function Sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sn=function(){return!!e})()}function Tn(e){return Tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tn(e)}function xn(e,t){return xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xn(e,t)}function Cn(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var jn="deactivateUser",On=null,En=(ln=kt("#js-modal-user-deactivate"),cn=Tt({state:{open:!1,template:Rt,userData:[],unsubscribeNewsLetterUrl:""}}),un=St("click .js-close-modal"),dn=St("click .js-initiate-deactivation"),hn=St("click .js-confirm-logout"),fn=St("click .js-confirm-deactivation"),pn=St("click .js-quit-deactivation"),ln(mn=cn((gn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kn(this,t,arguments)}var n,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xn(e,t)}(t,e),n=t,r=[{key:"get",value:function(){return On||(On=new t),On}}],(i=[{key:"initialize",value:function(){this.render()}},{key:"setState",value:function(e){var t=vn.extend({},this.state,e);vn.isEqual(this.state,t)||(this.state=t,this.render())}},{key:"open",value:function(){this.setState({open:!0})}},{key:"close",value:function(e){e&&e.preventDefault(),this.setState({open:!1,template:Rt}),$(".js-overlay").removeClass("is-open"),$(".js-body").removeClass("is-modal-open")}},{key:"openInfoModal",value:function(){var e=this;$.ajax({url:"/auth/api/userAllNames",type:"GET",dataType:"json",async:!1,success:function(t){$.ajax({url:"/auth/api/newsLetterUnsubscribeUrl",type:"GET",dataType:"json",async:!1,success:function(n){WSL2.Events.trigger("onUnsubscribeModal"),e.setState({open:!0,template:Rt,userData:t,unsubscribeNewsLetterUrl:n})}})}})}},{key:"onDeactivationInitiated",value:function(e){e.preventDefault(),this.setState({template:'\n <div class="section-modal-container <%= isOpen ? \'is-block\' : \'\' %>">\n <div class="section-modal m-modal-user-deactivate">\n <header class="section-modal-header">\n <h3 class="section-modal-heading">Vuelve a identificarte para de baja tu cuenta</h3>\n <button class="btn-modal-close js-close-modal"></button>\n </header>\n <form class="form-box">\n <div class="section-modal-content">\n <div class="text-segment m-compact-mini">\n <p>Para asegurarnos de que realmente eres el dueño de esta cuenta que vas a dar de baja, necesitamos que cierres tu sesión y vuelvas a identificarte en <%= WSL2.config.siteName %>.</p>\n </div>\n </div>\n <div class="section-modal-actions">\n <a href="#" class="cancel-deactive-link js-close-modal">Volver y no dar de baja</a>\n <button class="btn-primary js-confirm-logout">cerrar sesión y volver a identificarte</button>\n </div>\n </form>\n </div>\n </div>\n'})}},{key:"onLogoutConfirmation",value:function(e){e.preventDefault(),$(e.target).prop("disabled",!0).addClass("is-working"),WSL2.Events.once("onLogOut",this.onUserLogout,this),WSL2.session.logout()}},{key:"onUserLogout",value:function(){this.setDeactivationCookie(),this.close(),$("#wsl_login_button").hasClass("btn-disabled")&&this.enableSubmitButton(),an()?($("#nav-login").addClass("is-open"),$(".js-overlay").addClass("is-open"),$(".js-body").addClass("is-modal-open")):($("#sections").toggleClass("is-visible"),$("#nav-login").addClass("is-visible"))}},{key:"onUserLogin",value:function(){this.checkUserDeactivation()&&this.setState({open:!0,template:'\n <div class="section-modal-container <%= isOpen ? \'is-block\' : \'\' %>">\n <div class="section-modal m-modal-user-deactivate">\n <header class="section-modal-header">\n <h3 class="section-modal-heading">Confirmar la baja de tu cuenta</h3>\n <button class="btn-modal-close js-quit-deactivation"></button>\n </header>\n <form class="form-box">\n <div class="section-modal-content">\n <div class="text-segment m-compact-mini">\n <p>¿Seguro de que quieres dar de baja tu cuenta de los sitios de Weblogs SL de forma definitiva?</p>\n </div>\n </div>\n <div class="section-modal-actions">\n <a href="#" class="cancel-deactive-link js-quit-deactivation">No dar de baja tu cuenta</a>\n <button class="btn-primary js-confirm-deactivation">dar tu cuenta de baja definitivamente</button>\n </div>\n </form>\n </div>\n </div>\n'})}},{key:"setDeactivationCookie",value:function(){var e={email:WSL2.User.get("user").AuthorEmail};"facebook"===WSL2.User.get("login_type")&&(e.fbUserId=WSL2.User.get("user").FacebookUid);var t=new Date;t.setTime(t.getTime()+864e5),new sn(jn,e,t)}},{key:"checkUserDeactivation",value:function(){var e=sn.get(jn);if(!e)return!1;var t=WSL2.User.get("user");return t.AuthorEmail?t.AuthorEmail===e.email:"facebook"===WSL2.User.get("login_type")&&t.FacebookUid===e.fbUserId}},{key:"onDeactivationConfirmation",value:function(e){var t=this;e.preventDefault(),this.checkUserDeactivation()&&($(e.target).prop("disabled",!0).addClass("is-working"),$.ajax({url:"/auth/api/user/deactivate",type:"POST",success:function(e){"success"===e.message&&(WSL2.session.logout(),t.deleteDeactivationCookie(),t.setState({template:'\n <div class="section-modal-container <%= isOpen ? \'is-block\' : \'\' %>">\n <div class="section-modal m-modal-user-deactivate-message">\n <header class="section-modal-header">\n <h3 class="section-modal-heading">Hemos dado de baja tu cuenta</h3>\n <button class="btn-modal-close js-close-modal"></button>\n </header>\n <form class="form-box">\n <div class="section-modal-content">\n <div class="text-segment m-compact-mini">\n <p>Según la ley, guardaremos una copia de tus datos durante 3 años, no los utilizaremos para nada, y pasado ese tiempo, lo borraremos todo.</p>\n <p>Si estabas identificado con esta cuenta también en otros dispositivos, puede tardar unos minutos en verse desactivado en todos.</p>\n </div>\n </div>\n <div class="section-modal-actions">\n <button class="btn-primary js-close-modal">cerrar</button>\n </div>\n </form>\n </div>\n </div>\n'}))}}))}},{key:"onDeactivationQuit",value:function(e){e.preventDefault(),this.close(),this.deleteDeactivationCookie()}},{key:"deleteDeactivationCookie",value:function(){sn.remove(jn)}},{key:"getUserEmail",value:function(){var e=WSL2.User.getUserEmail();return/^[a-z0-9_.+-]+@[a-z0-9-]+\.[a-z0-9-.]+$/i.test(e)?e:WSL2.User.getName()}},{key:"enableSubmitButton",value:function(){var e=an()?"Iniciar sesión":"Entrar";$("#wsl_login_button").removeClass("btn-disabled").removeAttr("disabled",!1).html(e)}},{key:"render",value:function(){this.$el.html(vn.template(this.state.template)({userData:this.state.userData,isOpen:this.state.open,unsubscribeNewsLetterUrl:this.state.unsubscribeNewsLetterUrl,userEmail:WSL2.User.isUserLoggedIn()?this.getUserEmail():""}))}}])&&wn(n.prototype,i),r&&wn(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(yn.View),Cn(gn.prototype,"close",[un],Object.getOwnPropertyDescriptor(gn.prototype,"close"),gn.prototype),Cn(gn.prototype,"onDeactivationInitiated",[dn],Object.getOwnPropertyDescriptor(gn.prototype,"onDeactivationInitiated"),gn.prototype),Cn(gn.prototype,"onLogoutConfirmation",[hn],Object.getOwnPropertyDescriptor(gn.prototype,"onLogoutConfirmation"),gn.prototype),Cn(gn.prototype,"onDeactivationConfirmation",[fn],Object.getOwnPropertyDescriptor(gn.prototype,"onDeactivationConfirmation"),gn.prototype),Cn(gn.prototype,"onDeactivationQuit",[pn],Object.getOwnPropertyDescriptor(gn.prototype,"onDeactivationQuit"),gn.prototype),mn=gn))||mn)||mn);WSL2.Events.on("loginSuccess facebookLoginSuccessful twitterLoginSuccessful googleLoginSuccessful",(function(){En.get().onUserLogin()}));const Pn=En;function Dn(e){return Dn="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},Dn(e)}function Ln(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,An(i.key),i)}}function An(e){var t=function(e,t){if("object"!=Dn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Dn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dn(t)?t:String(t)}var Mn=D(".js-header"),$n=D(".js-body"),In=D(".js-overlay"),Nn=D("html"),Rn=D(".o-siteheader-section__topbar, #head-favicons"),Wn=D("#search-form-3d"),zn=D(".js-search-toggle"),Bn=D(".ad-center"),Hn=D(".btn-bot-close"),Fn=!1,Un=Mn.height,qn=0,Vn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"init",value:function(){this.handleScroll(),this.handleSearch(),this.handleMenuToggle(),this.handleAccordionToggle(),this.modalClose(),this.handleBotCloseButton(),dt.handleGroupsToggle()}},{key:"handleScroll",value:function(){window.addEventListener("scroll",(function(){window.scrollY>Un?(Rn.hide(),$n.css("paddingTop","".concat(Un,"px")),Mn.addClass("is-hidden"),qn>window.scrollY?($n.addClass("is-scroll-back"),Mn.addClass("is-visible"),zn.show(),Wn.hide()):($n.removeClass("is-scroll-back"),Mn.removeClass("is-visible"))):(Mn.removeClass("is-hidden"),$n.removeClass("is-scroll-back"),Mn.removeClass("is-visible"),zn.hide(),Wn.show("flex"),Rn.show(),$n.css("paddingTop","0px")),qn>window.scrollY?Bn&&Bn.hide():Fn||Bn&&Bn.show(),qn=window.scrollY}))}},{key:"handleResize",value:function(){window.addEventListener("resize",(function(){Un=Mn.height}))}},{key:"handleSearch",value:function(){var e=function(){window.location.href="https://www.3djuegos.com/?q=&zona=resultados-buscador&ni=1"},t=document.getElementById("search-form-3d"),n=document.getElementsByClassName("js-search-toggle")[0];t&&t.addEventListener("click",e),n&&n.addEventListener("click",e)}},{key:"closeBackDetails",value:function(){$n.removeClass("is-modal-open"),Nn.removeClass("noscroll"),In.removeClass("is-open")}},{key:"closeModal",value:function(){this.closeBackDetails(),D(".is-open",!0).each((function(e){e.removeClass("is-open")}));var e=Zt.get();e&&e.close(),Pn.get().close(),window.location.hash.match(/usuario\/([^\/]+)$/)&&(window.history.pushState({},document.title,window.location.pathname+window.location.search),$("#js-modal-user-comments").toggleClass("is-block"))}},{key:"handleMenuToggle",value:function(){var e=this;D(".js-menu-toggle").click((function(e){e.preventDefault(),D(".a-modal,.js-menu").each((function(e){e.scrollTop=0})),D(".js-menu").addClass("is-open"),In.addClass("is-open"),$n.addClass("is-modal-open")})),D(".js-overlay").click((function(t){e.closeOverlayModals(t)})),D(document).on("keydown",(function(t){27===t.keyCode&&(D(".a-modal,.js-menu").each((function(e){e.scrollTop=0})),e.closeModal(),D(".js-menu-toggle").blur(),D(".js-user-toggle").blur())}))}},{key:"closeOverlayModals",value:function(e){var t=this;D(".is-open",!0).each((function(n){n.hasClass("js-overlay")||null===e.target.closest("#".concat(n.attr("id")))&&"a"!==e.target.tagName.toLowerCase()&&(n.removeClass("is-open"),t.closeBackDetails())}))}},{key:"handleAccordionToggle",value:function(){D(".js-drawer-nav-acordion-toggle").click((function(e){"desktop"!==WSL2.config.device&&(D(e.target).toggleClass("is-active"),D(e.target).next().toggleClass("is-active"))}))}},{key:"modalClose",value:function(){document.querySelectorAll(".js-modal-close").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),e.currentTarget.closest(".is-open").classList.remove("is-open"),In.removeClass("is-open"),$n.removeClass("is-modal-open"),Nn.removeClass("noscroll")}))}))}},{key:"handleBotCloseButton",value:function(){Hn&&Hn.click((function(){Bn.hide(),Fn=!0}))}}],null&&Ln(t.prototype,null),n&&Ln(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();"3DJuegos"===WSL2.config.siteName?(Vn.init(),et.init()):dt.init(),n(2547);var Yn=n(5544),Gn=n.n(Yn);function Kn(e){return Kn="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},Kn(e)}function Jn(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,Xn(i.key),i)}}function Xn(e){var t=function(e,t){if("object"!=Kn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Kn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kn(t)?t:String(t)}function Qn(e,t,n){return t=ei(t),function(e,t){if(t&&("object"===Kn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Zn()?Reflect.construct(t,n||[],ei(e).constructor):t.apply(e,n))}function Zn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zn=function(){return!!e})()}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ei(e)}function ti(e,t){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ti(e,t)}var ni,ii,ri,oi,si,ai,li,ci,ui=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Qn(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ti(e,t)}(t,e),n=t,i=[{key:"getUserName",value:function(){return null!=this.user.UserName?this.user.UserName:this.user.UserId}},{key:"getName",value:function(){return this.user.fullName||this.user.Name||this.getUserName()}},{key:"getAvatar",value:function(){var e=this.get("avatar");return"facebook"!==e||Number.isNaN(parseInt(this.user.FacebookUid,10))?e:"//graph.facebook.com/".concat(this.user.FacebookUid,"/picture/?type=square")}},{key:"getUserEmail",value:function(){return this.user.AuthorEmail}},{key:"getFacebookPublish",value:function(){return this.user.FacebookPublish}},{key:"setFacebookPublish",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.user.FacebookPublish=e,this.trigger("change")}},{key:"getTwitterPublish",value:function(){return this.user.TwitterPublish}},{key:"setTwitterPublish",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.user.TwitterPublish=e,this.trigger("change")}},{key:"isUserLoggedIn",value:function(){return 0<=["facebook","twitter","standard","google"].indexOf(this.getLoginType())}},{key:"isEditor",value:function(){return!(!this.isUserLoggedIn()||!this.user)&&0<this.user.iseditor}},{key:"isSuperEditor",value:function(){return!(!this.isUserLoggedIn()||!this.user)&&2===this.user.iseditor}},{key:"getLoginType",value:function(){return this.get("login_type")}},{key:"getGlobalId",value:function(){return this.user.GlobalId}},{key:"getUserId",value:function(){return this.user.UserId}},{key:"setLocation",value:function(e){this.location=e}},{key:"redirectLocation",value:function(){var e=this.location;e&&(this.setLocation(""),window.location.href=e)}},{key:"getKarmaLevel",value:function(){return this.user.karmaLevel}},{key:"getRegistrationDate",value:function(){return this.user.registrationDate}},{key:"isNewlyRegistered",value:function(){if(!this.isUserLoggedIn())return!1;var e=Date.parse(this.user.registrationDate);return 24>(Date.now()-e)/36e5}},{key:"user",get:function(){return this.get("user")}}],i&&Jn(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gn().Model),di=(n(1040),n(2856));function hi(e){return hi="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},hi(e)}function fi(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,wi(i.key),i)}}function pi(e,t,n){return t=gi(t),function(e,t){if(t&&("object"===hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vi(e)}(e,mi()?Reflect.construct(t,n||[],gi(e).constructor):t.apply(e,n))}function mi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mi=function(){return!!e})()}function gi(e){return gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gi(e)}function vi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yi(e,t){return yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yi(e,t)}function bi(e,t,n){return(t=wi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(e){var t=function(e,t){if("object"!=hi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=hi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hi(t)?t:String(t)}function _i(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var ki=$(".js-overlay"),Si=$(".js-body");const Ti=(ni=kt("#js-login"),ii=St("click #openLogin"),ri=St("click .js-open-login"),oi=St("click #openRegister"),si=St("click .js-user-toggle"),ai=St("click .js-modal-close"),ni((_i((ci=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return bi(vi(e=pi(this,t,[].concat(i))),"userProfileEditView",null),bi(vi(e),"user",null),e}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yi(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){WSL2.User.bind("change",this.render,this),this.render()}},{key:"isEnabledUserProfileV2",value:function(){this.setElement("#js-login"),$("#login").html("")}},{key:"openLoginForm",value:function(e){e.preventDefault(),an()?($(".wsl_error").hide(),$("#wsl_login_button").removeClass("btn-disabled").removeAttr("disabled",!1).html("Iniciar sesión"),$("#nav-login").toggleClass("is-open"),ki.addClass("is-open"),Si.addClass("is-modal-open")):($($(e.target).attr("href")).toggleClass("is-visible"),$("#sections").toggleClass("is-visible"))}},{key:"openRegistrationForm",value:function(e){e.preventDefault(),ki.addClass("is-open"),Si.addClass("is-modal-open");var t=$(e.target).attr("href");$(t).children().hasClass("js-register-success")&&$(t).html(di.template($t)()),$("#fos_user_registration_form")[0].reset(),$(".wsl_error").hide(),$($(t)).addClass("is-open")}},{key:"onUserToggle",value:function(e){e.preventDefault(),$(".js-user").addClass("is-open"),ki.addClass("is-open"),Si.addClass("is-modal-open")}},{key:"onClose",value:function(e){e.preventDefault(),Vn.closeModal()}},{key:"render",value:function(){if(!WSL2.User.isUserLoggedIn())return WSL2.session&&null!=WSL2.session.cookie.getValue()&&"facebook"===WSL2.session.cookie.login_type?(this.isEnabledUserProfileV2(),void this.$el.html(di.template('\n <li><a class="btn-login" href="#" data-target="disabled">Login</a></li>\n')())):void(an()?($(".js-overlay").removeClass("is-open"),this.$el.html(di.template('\n<div class="a-user">\n <p class="a-user__text">\n <a class="js-open-login" href="#nav-login"> Entra </a> o <a id="openRegister" href="#nav-register"> Regístrate </a>\n </p>\n<span src="" alt="Avatar" class="a-user__avatar a-avatar js-open-login"></span>\n')())):(this.setElement("#login"),$("#js-login").html(""),this.$el.html(di.template('\n <li>\n <a class="head-list-item section-login js-login-link" id="openLogin" href="#nav-login">\n <%= Translator.trans(\'login.register\') %>\n </a>\n </li>\n')())));an()?(this.$el.html(di.template('\n <button class="js-user-toggle a-user">\n <span class="a-user__name"><%= user.getName() %></span>\n <img src="<%= user.getAvatar() %>" alt="<%= user.getName() %>" class="a-user__avatar a-avatar">\n </button>\n')({user:WSL2.User})),$(".js-a-modal-wrapper").append(di.template('\n<% var karmaStars = Math.ceil(user.getKarmaLevel() / 20); %>\n<section class="o-usernav-section loggedin-modal js-user" id="js-user-profile">\n <div class="a-modal">\n <header class="a-modal__header a-modal__header--title">\n <button class="a-modal__close js-modal-close">\n <span>Cerrar</span>\n </button>\n <h2 class="a-modal__title">\n <img src="<%= user.getAvatar() %>" alt="<%= user.getName() %>" class="a-avatar">\n <span><%= user.getName() %></span>\n </h2>\n </header>\n <div class="a-modal__content">\n <% if (user.getKarmaLevel() > 0) { %>\n <div class="o-usernav-section__ranking">\n <div class="o-usernav-section__karma">\n <% if (user.getKarmaLevel()) { %>\n <strong>Karma:</strong> <%= user.getKarmaLevel() %>/ 100\n <% } %>\n </div>\n <div class="o-usernav-section__stars">\n <% for (var i = 1; i <= karmaStars; i++) { %>\n <span>★</span>\n <% } %>\n </div>\n </div>\n <% } %>\n <nav class="o-usernav-section__links">\n <ul class="o-usernav-section__links-list">\n <li class="o-usernav-section__links-item">\n <a id="js-open-user-comments" href="#usuario/<%= WSL2.User.getUserName() %>" class="o-usernav-section__links-link" data-icon="">Tus comentarios</a>\n </li>\n <li class="o-usernav-section__links-item">\n <a href="https://www.foro3djuegos.com/" target="_blank" class="o-usernav-section__links-link" data-icon=""><%= WSL2.config.siteName %> Foro</a>\n </li>\n <li class="o-usernav-section__links-item">\n <a href="#" id="js-open-edit-profile" class="o-usernav-section__links-link" data-icon="">Configuración</a>\n </li>\n <li class="o-usernav-section__links-item">\n <a href="#" id="js-logout" class="o-usernav-section__links-link" data-icon="">Cerrar sesión</a>\n </li>\n </ul>\n </nav>\n <footer class="o-usernav-section__footer">\n <a href="#" id="js-deactivate-account" class="o-usernav-section__footer-link">Darte de baja</a>\n <p class="o-usernav-section__footer-text"><%= user.isEditor() ? \'Editor desde \': \'Miembro desde \' %>\n <span><%= dayjs(user.getRegistrationDate()).fromNow() %></span></p>\n </footer>\n </div>\n </div>\n</section>\n')({user:WSL2.User}))):(this.isEnabledUserProfileV2(),this.$el.html(di.template('\n <% var karmaStars = Math.ceil(user.getKarmaLevel() / 20); %>\n <div class="user-card-info">\n <a class="user-card-link" href="#usuario/<%= user.getUserName() %>">\n <img class="user-card-avatar" src="<%= user.getAvatar() %>" alt="<%= user.getName() %>" data-target="#nav-user" />\n </a>\n <div class="user-card-summary">\n <p class="user-card-name"><%= user.getName() %></p>\n <div class="user-card-rating">\n <% for (var i = 1; i <= karmaStars; i++) { %>\n <span class="user-card-star">★</span>\n <% } %>\n <% if(user.getKarmaLevel()) { %>\n <span class="user-card-karma"><%= user.getKarmaLevel() %>/100</span>\n <% } %>\n </div>\n <p class="user-card-since">\n <%= user.isEditor() ? \'Editor de \': \'Miembro de \' %>\n <%= WSL2.config.siteName %> desde <%= dayjs(user.getRegistrationDate()).fromNow() %>\n </p>\n </div>\n </div>\n <ul class="user-card-actions">\n <li class="user-card-actions-item">\n <a href="#usuario/<%= WSL2.User.getUserName() %>" class="btn-action-comments js-enter-modal-2" id="js-open-user-comments">Ver Tus Comentarios</a>\n </li>\n <li class="user-card-actions-item">\n <a href="#" class="btn-action-settings" id="js-open-edit-profile">Configuración</a>\n </li>\n <li class="user-card-actions-item">\n <a href="#" class="btn-action-logout" id="js-logout">Salir</a>\n </li>\n </ul>\n <div class="user-deactivate">\n <a href="#" class="user-deactivate-link js-enter-modal-3" id="js-deactivate-account">Darte de baja</a>\n </div>\n')({user:WSL2.User})))}}])&&fi(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gn().View)).prototype,"openLoginForm",[ii,ri],Object.getOwnPropertyDescriptor(ci.prototype,"openLoginForm"),ci.prototype),_i(ci.prototype,"openRegistrationForm",[oi],Object.getOwnPropertyDescriptor(ci.prototype,"openRegistrationForm"),ci.prototype),_i(ci.prototype,"onUserToggle",[si],Object.getOwnPropertyDescriptor(ci.prototype,"onUserToggle"),ci.prototype),_i(ci.prototype,"onClose",[ai],Object.getOwnPropertyDescriptor(ci.prototype,"onClose"),ci.prototype),li=ci))||li);var xi,Ci,ji,Oi,Ei=n(2856);function Pi(e){return Pi="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},Pi(e)}function Di(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,Li(i.key),i)}}function Li(e){var t=function(e,t){if("object"!=Pi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Pi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pi(t)?t:String(t)}function Ai(e,t,n){return t=$i(t),function(e,t){if(t&&("object"===Pi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Mi()?Reflect.construct(t,n||[],$i(e).constructor):t.apply(e,n))}function Mi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mi=function(){return!!e})()}function $i(e){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$i(e)}function Ii(e,t){return Ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ii(e,t)}var Ni,Ri,Wi,zi,Bi,Hi,Fi=(xi=kt("#opt-in"),Ci=St("click .js-opt-in"),xi((Oi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ai(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ii(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.$el.length&&(WSL2.User.bind("change",this.render,this),this.render())}},{key:"openForm",value:function(e){e.preventDefault(),$("#sections").toggleClass("is-visible"),$($(e.currentTarget).attr("href")).toggleClass("is-visible")}},{key:"render",value:function(){WSL2.User.isUserLoggedIn()?this.$el.html(""):this.$el.html(Ei.template('\n <div class="section-user-login">\n <div class="section-avatar"></div>\n <div class="login-options">\n <p class="login-option-links">\n <a id="openLoginHighlighted" href="#nav-login" class="js-opt-in js-login-link user-option-link">Entra</a> o\n <a href="#nav-register" class="js-opt-in user-option-link">Regístrate</a>\n </p>\n <p class="hint">para participar en la comunidad de <%= WSL2.config.siteName %></p>\n </div>\n </div>\n')())}}])&&Di(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gn().View),Ni=Oi.prototype,Ri="openForm",Wi=[Ci],zi=Object.getOwnPropertyDescriptor(Oi.prototype,"openForm"),Bi=Oi.prototype,Hi={},Object.keys(zi).forEach((function(e){Hi[e]=zi[e]})),Hi.enumerable=!!Hi.enumerable,Hi.configurable=!!Hi.configurable,("value"in Hi||Hi.initializer)&&(Hi.writable=!0),Hi=Wi.slice().reverse().reduce((function(e,t){return t(Ni,Ri,e)||e}),Hi),Bi&&void 0!==Hi.initializer&&(Hi.value=Hi.initializer?Hi.initializer.call(Bi):void 0,Hi.initializer=void 0),void 0===Hi.initializer&&(Object.defineProperty(Ni,Ri,Hi),Hi=null),ji=Oi))||ji);const Ui=Fi;function qi(e){return qi="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},qi(e)}function Vi(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,Yi(i.key),i)}}function Yi(e){var t=function(e,t){if("object"!=qi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=qi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qi(t)?t:String(t)}function Gi(e,t,n){return t=Ji(t),function(e,t){if(t&&("object"===qi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ki()?Reflect.construct(t,n||[],Ji(e).constructor):t.apply(e,n))}function Ki(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ki=function(){return!!e})()}function Ji(e){return Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ji(e)}function Xi(e,t){return Xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xi(e,t)}var Qi,Zi,er,tr,nr,ir,rr,or,sr,ar,lr,cr,ur,dr,hr,fr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Gi(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xi(e,t)}(t,e),n=t,(i=[{key:"validate",value:function(e){var t=this,n=e.email,i=e.password;$.post("/auth/login_check",{_username:n,_password:i},(function(e){switch(e.result){case"failure":t.trigger("login-fail",e.msg),WSL2.Events.trigger("loginFailed",{userid:n,logintype:"standard_login",msg:e.msg});break;case"success":t.trigger("login-success"),window.WSL2.User.set(e.data),WSL2.Events.trigger("loginSuccess")}}))}}])&&Vi(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(n(5544).Model),pr=n(2856),mr=n(5544);function gr(e){return gr="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},gr(e)}function vr(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,yr(i.key),i)}}function yr(e){var t=function(e,t){if("object"!=gr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=gr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gr(t)?t:String(t)}function br(e,t,n){return t=_r(t),function(e,t){if(t&&("object"===gr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wr()?Reflect.construct(t,n||[],_r(e).constructor):t.apply(e,n))}function wr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wr=function(){return!!e})()}function _r(e){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_r(e)}function kr(e,t){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kr(e,t)}function Sr(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var Tr=$(".js-body"),xr=$(".js-overlay");const Cr=(Qi=kt("#nav-login"),Zi=St("click .facebook-login"),er=St("click .js-facebook-login"),tr=St("click #facebook_login"),nr=St("click #wsl_login_button"),ir=St("click .js-open-register"),rr=St("click .js-close-login"),or=St("click .twitter-login"),sr=St("click .js-twitter-login"),ar=St("click #twitter_login"),lr=St("click .js-google-login"),cr=St("click #google_login"),ur=St("click .js-open-recover"),Qi((hr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),br(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kr(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e,WSL2.Events.trigger("loginWindowOpened"),this.model=new fr,this.model.bind("login-success",this.renderLoginSuccess,this),this.model.bind("login-fail",this.renderLoginFailure,this),this.render()}},{key:"closeModal",value:function(){this.$el.removeClass("is-visible"),this.$el.removeClass("is-open"),xr.removeClass("is-open"),Tr.removeClass("is-modal-open")}},{key:"renderLoginSuccess",value:function(){$(".wsl_error").hide(),$("#wsl_ud_email").val(""),$("#wsl_ud_pass").val(""),an()||this.enableSubmitButton(),$("html").removeClass("noscroll"),this.closeModal()}},{key:"renderLoginFailure",value:function(e){$(".wsl_error").hide(),this.enableSubmitButton(),"user_deactivated"!==e?$("#wsl_invalid_login").show():$("#wsl_invalid_user_deactivated").show()}},{key:"onFacebookLogin",value:function(e){e.preventDefault(),this.disableFacebookButton(),document.cookie="fblo_".concat(WSL2.config.fbapikey,"=; expires=").concat(new Date(0).toGMTString(),"; path=/; domain=").concat(window.location.hostname.replace(/m?dev\./i,""));var t="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname).concat(window.location.search);void 0!==WSL2.User.location&&(t+=WSL2.User.location),window.location.href="/auth/facebook?__path=".concat(t)}},{key:"onStandardLogin",value:function(e){e.preventDefault(),this.disableSubmitButton(),this.model.set({email:$("#wsl_ud_email").val(),password:$("#wsl_ud_pass").val()},{validate:!0})}},{key:"openRegistrationForm",value:function(e){e.preventDefault(),this.$el.removeClass("is-visible"),this.$el.removeClass("is-open"),$($(e.target).attr("href")).children().hasClass("js-register-success")&&$($(e.target).attr("href")).html(pr.template($t)()),$("#fos_user_registration_form")[0].reset(),$(".wsl_error").hide(),$($(e.target).attr("href")).addClass("is-visible"),$($(e.target).attr("href")).addClass("is-open")}},{key:"closeLoginForm",value:function(e){e.preventDefault(),$(".wsl_error").hide(),$("html").removeClass("noscroll"),this.$el.removeClass("is-visible")}},{key:"loginTwitter",value:function(){this.closeModal(),$("html").removeClass("noscroll"),window.open("/auth/connectTwitter","TwitterLogin","width=600,height=500")}},{key:"loginGoogle",value:function(){$("html").removeClass("noscroll");var e="".concat(WSL2.config.desktopSiteUrl).concat(window.location.pathname).concat(window.location.search);void 0!==WSL2.User.location&&(e+=WSL2.User.location);var t="".concat(WSL2.config.desktopSiteUrl,"/auth/google?__path=").concat(e);this.closeModal(),window.location.href=t}},{key:"openRecoverPasswordForm",value:function(e){e.preventDefault();var t=$.trim($("#wsl_ud_email").val());$("#recover-email").val(t),an()?($("#nav-recover").addClass("is-open"),this.$el.removeClass("is-open")):($("#nav-recover").addClass("is-visible"),this.$el.removeClass("is-visible")),$(".alert-block").hide(),$("#request_password_button").removeClass("btn-disabled").attr("disabled",!1)}},{key:"enableSubmitButton",value:function(){var e=an()?"Iniciar sesión":"Entrar";$("#wsl_login_button").removeClass("btn-disabled").removeAttr("disabled",!1).html(e)}},{key:"disableSubmitButton",value:function(){var e=an()?"Entrando...":'Entrando... <img src="https://img.weblogssl.com/g/xataka4/common/ajax-loader-999.gif" alt="">';$("#wsl_login_button").addClass("btn-disabled").attr("disabled",!0).html(e)}},{key:"disableFacebookButton",value:function(){$(".js-facebook-login").addClass("btn-disabled").attr("disabled",!0).html("Entrando...")}},{key:"enableFacebookButton",value:function(){$(".js-facebook-login").removeClass("btn-disabled").removeAttr("disabled",!1).html("Entra con Facebook")}},{key:"render",value:function(){an()||this.$el.append(pr.template('\n <a href="#nav-login" class="head-menu-toggler js-close-login"></a>\n <div class="head-menu">\n <a href="#nav-login" class="close close-corner js-close-login"></a>\n <form id="wsl_login_form" class="login-form" onSubmit="return false">\n <p class="help-msg">Entra o <a href="#nav-register" class="js-open-register">regístrate</a> para poder guardar artículos, comentar o votar en la comunidad.</p>\n <p id="wsl_invalid_login" class="wsl_error hide"><%= Translator.trans(\'email.password.incorrect\') %></p>\n <p id="wsl_invalid_user_deactivated" class="wsl_error hide"><%= Translator.trans(\'user.deactivated.error.message\') %></p>\n <p>\n <label for="wsl_ud_email"><%= Translator.trans(\'email\') %>:<input type="text" class="text" name="ud_username" id="wsl_ud_email" value="" tabindex="1" size="15"></label>\n <label for="wsl_ud_pass"><%= Translator.trans(\'password\') %>: <input type="password" class="text" name="ud_pass" id="wsl_ud_pass" value="" tabindex="2" size="15"></label>\n </p>\n <button type="submit" id="wsl_login_button" class="btn btn-primary">Entrar</button>\n <span class="help-msg form-submit-alt">\n <a class="js-open-recover" href="#nav-recover"><%= Translator.trans(\'recover.password\') %></a>\n </span>\n </form>\n <div class="login-3rd-part">\n <p>\n <% if (WSL2.config.enableGoogleLogin) { %>\n <span class="google-login-container">\n <a href="#" class="google-login" id="google_login"><%= Translator.trans(\'signin.with\') %> GOOGLE</a>\n </span>\n <% } %>\n <a href="#" class="facebook-login" id="facebook_login"><%= Translator.trans(\'signin.with\') %> Facebook</a>\n <% if (WSL2.config.device == \'desktop\') { %>\n <a href="#" class="x-login" id="twitter_login"><%= Translator.trans(\'signin.with\') %> X</a>\n <% } %>\n </p>\n </div>\n <p id="dont_have_account_text"><a href="#nav-register" id="open_register" class="js-open-register"><%= Translator.trans(\'sign.in\') %> <%= WSL2.config.siteName %></a></p>\n </div>\n')()),this.$el.find(".js-facebook-login").hasClass("btn-disabled")&&this.enableFacebookButton();var e=window.location.hash.match(/^#_error=(.+)/);e&&("user_deactivated"===e[1]&&this.renderLoginFailure("user_deactivated"),mr.history.navigate(""))}}],i&&vr(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(mr.View),Sr(hr.prototype,"onFacebookLogin",[Zi,er,tr],Object.getOwnPropertyDescriptor(hr.prototype,"onFacebookLogin"),hr.prototype),Sr(hr.prototype,"onStandardLogin",[nr],Object.getOwnPropertyDescriptor(hr.prototype,"onStandardLogin"),hr.prototype),Sr(hr.prototype,"openRegistrationForm",[ir],Object.getOwnPropertyDescriptor(hr.prototype,"openRegistrationForm"),hr.prototype),Sr(hr.prototype,"closeLoginForm",[rr],Object.getOwnPropertyDescriptor(hr.prototype,"closeLoginForm"),hr.prototype),Sr(hr.prototype,"loginTwitter",[or,sr,ar],Object.getOwnPropertyDescriptor(hr.prototype,"loginTwitter"),hr.prototype),Sr(hr.prototype,"loginGoogle",[lr,cr],Object.getOwnPropertyDescriptor(hr.prototype,"loginGoogle"),hr.prototype),Sr(hr.prototype,"openRecoverPasswordForm",[ur],Object.getOwnPropertyDescriptor(hr.prototype,"openRecoverPasswordForm"),hr.prototype),dr=hr))||dr);var jr,Or,Er,Pr,Dr,Lr=n(2856);function Ar(e){return Ar="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},Ar(e)}function Mr(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,$r(i.key),i)}}function $r(e){var t=function(e,t){if("object"!=Ar(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Ar(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ar(t)?t:String(t)}function Ir(e,t,n){return t=Rr(t),function(e,t){if(t&&("object"===Ar(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Nr()?Reflect.construct(t,n||[],Rr(e).constructor):t.apply(e,n))}function Nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nr=function(){return!!e})()}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Wr(e,t){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wr(e,t)}function zr(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const Br=(jr=kt("#nav-twitter-register"),Or=St("click #confLink"),Er=St("click .js-close-twitter-register"),jr((zr((Dr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ir(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wr(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.render()}},{key:"sendLink",value:function(){var e=this;$.post("/auth/resendEmail",(function(t){"confirmation_mail_sent"!==t?"already_enabled"!==t?WSL2.session.loginTwitter():window.location.reload():e.$el.html(Lr.template('\n <a href="#nav-twitter-register" class="head-menu-toggler js-close-twitter-register"></a>\n <div class="head-menu">\n <a href="#nav-twitter-register" class="close close-corner js-close-twitter-register"></a>\n <form class="register-form" action="#" onSubmit="return false">\n <p class="help-msg"><%= Translator.trans(\'resend.activation.mail\') %> </p>\n <p class="alert alert-info"><%= Translator.trans(\'sent.link.to.email\') %></p>\n <div class="submit-area">\n <button class="btn btn-primary js-close-twitter-register"><span><strong><%= Translator.trans(\'accept\') %></strong></span></button>\n </div>\n </form>\n </div>\n')())}))}},{key:"closeTwitterRegistrationForm",value:function(e){e.preventDefault(),$("html").removeClass("noscroll"),this.$el.removeClass("is-visible")}},{key:"render",value:function(){$("html").addClass("noscroll"),this.$el.addClass("is-visible"),this.$el.html(Lr.template('\n <a href="#nav-twitter-register" class="head-menu-toggler js-close-twitter-register"></a>\n <div class="head-menu">\n <a href="#nav-twitter-register" class="close close-corner js-close-twitter-register"></a>\n <form class="register-form" action="#" onSubmit="return false">\n <p class="help-msg"><%= Translator.trans(\'account.not.on\') %> </p>\n <p class="alert alert-info"><%= Translator.trans(\'activate.link.message1\') %> <%= WSL2.config.siteName %> <%= Translator.trans(\'activate.link.message2\') %> <strong><%= Translator.trans(\'activate.link.message3\') %></strong>.</p>\n <p class="alert alert-info"><%= Translator.trans(\'look.in.spam\') %> <strong> <a href=# id="confLink"><%= Translator.trans(\'resend.activation.email\') %></a> </strong></p>\n <div class="submit-area">\n <button class="btn btn-primary js-close-twitter-register"><span><strong><%= Translator.trans(\'close\') %></strong></span></button>\n </div>\n </form>\n </div>\n')())}}])&&Mr(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gn().View)).prototype,"sendLink",[Or],Object.getOwnPropertyDescriptor(Dr.prototype,"sendLink"),Dr.prototype),zr(Dr.prototype,"closeTwitterRegistrationForm",[Er],Object.getOwnPropertyDescriptor(Dr.prototype,"closeTwitterRegistrationForm"),Dr.prototype),Pr=Dr))||Pr);var Hr,Fr,Ur,qr,Vr,Yr,Gr,Kr=n(2856);function Jr(e){return Jr="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},Jr(e)}function Xr(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,Qr(i.key),i)}}function Qr(e){var t=function(e,t){if("object"!=Jr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Jr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jr(t)?t:String(t)}function Zr(e,t,n){return t=to(t),function(e,t){if(t&&("object"===Jr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,eo()?Reflect.construct(t,n||[],to(e).constructor):t.apply(e,n))}function eo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eo=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},to(e)}function no(e,t){return no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},no(e,t)}function io(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const ro=(Hr=kt("#nav-recover"),Fr=St("click .js-close-menu"),Ur=St("click #request_password_button"),qr=St("click .js-modal-close"),Vr=St("click #back-to-login"),Hr((io((Gr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Zr(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.render()}},{key:"closeRecoveryBox",value:function(e){e.preventDefault(),this.$el.removeClass("is-visible"),$("html").removeClass("noscroll")}},{key:"sendEmail",value:function(e){e.preventDefault();var t=$("#request_password_button");t.addClass("btn-disabled").attr("disabled",!0),$(".alert-block").hide();var n=$.trim($("#recover-email").val());""!==n?$.post("/auth/resetting/send-email",{username:n},(function(e){switch(e){case"email_sent":$("#alert-success").show();break;case"already":$("#alert-already-sent").show();break;case"invalid_username":$("#alert-error").show();break;case"user_deactivated":$("#alert-user-deactivated").show()}t.removeClass("btn-disabled").attr("disabled",!1)})):$("#alert-error").show()}},{key:"onClose",value:function(e){e.preventDefault(),Vn.closeModal()}},{key:"backToLogin",value:function(e){e.preventDefault(),an()?($("#nav-recover").removeClass("is-open"),$("#nav-login").addClass("is-open")):($("#nav-recover").removeClass("is-visible"),$("#nav-login").addClass("is-visible"))}},{key:"render",value:function(){an()?this.$el.html(Kr.template('\n <div class="a-modal">\n <header class="a-modal__header a-modal__header--title">\n <button class="a-modal__close js-modal-close"><span>{{\'usernav.close\'|trans}}</span></button>\n <div class="a-modal__title">\n <span src="" alt="Avatar" class="a-user__avatar a-avatar"></span>\n <span>Recuperar contraseña</span>\n </div>\n </header>\n <div class="a-modal__content">\n <div class="wsl_error alert-block" id="alert-error">Error: <%= Translator.trans(\'email.does.not.exists\', { siteName: WSL2.config.siteName }) %></div>\n <div class="wsl_error alert-block" id="alert-already-sent">Error: <%= Translator.trans(\'email.already.sent\') %></div>\n <div class="wsl_error alert-block" id="alert-user-deactivated">Error: <%= Translator.trans(\'user.deactivated.error.message\') %></div>\n <form class="o-usernav-section__form">\n <div class="o-usernav-section__form-group">\n <label for="email">Correo electrónico</label>\n <input type="email" id="recover-email" name="ud_username" class="a-input">\n </div>\n <div class="o-usernav-section__form-columns">\n <button class="a-button a-button--primary" id="request_password_button"><%= Translator.trans(\'recover.password\') %></button>\n <a href="#" class="o-usernav-section__form-link" id="back-to-login"><%= Translator.trans(\'cancel\') %></a>\n </div>\n <div class="alert-success alert-block" id="alert-success"><%= Translator.trans(\'email.sent\') %></div>\n </form>\n </div>\n </div>\n')({userEmail:$("#wsl_ud_email").val()})):this.$el.html(Kr.template('\n <a href="#nav-recover" class="head-menu-toggler js-close-menu"></a>\n <div class="head-menu">\n <a href="#nav-recover" class="close close-corner js-close-menu"></a>\n <form class="login-form">\n <p class="help-msg"><%= Translator.trans(\'email.help.msg\') %>:</p>\n <div class="alert-error alert-block" id="alert-error"><%= Translator.trans(\'email.does.not.exists\', { siteName: WSL2.config.siteName }) %></div>\n <div class="alert-error alert-block" id="alert-already-sent"><%= Translator.trans(\'email.already.sent\') %></div>\n <div class="alert-error alert-block" id="alert-user-deactivated"><%= Translator.trans(\'user.deactivated.error.message\') %></div>\n <p>\n <label for="recover-email"><%= Translator.trans(\'email\') %>: <input type="email" class="text" name="ud_username" id="recover-email" size="15"></label>\n </p>\n <button type="button" id="request_password_button" class="btn btn-primary"><%= Translator.trans(\'recover.password\') %></button> \n <a href="#" class="cancel-link" id="back-to-login"><%= Translator.trans(\'cancel\') %></a>\n <div class="alert-success alert-block" id="alert-success"><%= Translator.trans(\'email.sent\') %></div>\n </form>\n </div>\n')({userEmail:$("#wsl_ud_email").val()})),$(".alert-block").hide()}}])&&Xr(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gn().View)).prototype,"closeRecoveryBox",[Fr],Object.getOwnPropertyDescriptor(Gr.prototype,"closeRecoveryBox"),Gr.prototype),io(Gr.prototype,"sendEmail",[Ur],Object.getOwnPropertyDescriptor(Gr.prototype,"sendEmail"),Gr.prototype),io(Gr.prototype,"onClose",[qr],Object.getOwnPropertyDescriptor(Gr.prototype,"onClose"),Gr.prototype),io(Gr.prototype,"backToLogin",[Vr],Object.getOwnPropertyDescriptor(Gr.prototype,"backToLogin"),Gr.prototype),Yr=Gr))||Yr);var oo,so,ao,lo,co,uo,ho=n(2856);function fo(e){return fo="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},fo(e)}function po(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,mo(i.key),i)}}function mo(e){var t=function(e,t){if("object"!=fo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=fo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fo(t)?t:String(t)}function go(e,t,n){return t=yo(t),function(e,t){if(t&&("object"===fo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vo()?Reflect.construct(t,n||[],yo(e).constructor):t.apply(e,n))}function vo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vo=function(){return!!e})()}function yo(e){return yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yo(e)}function bo(e,t){return bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bo(e,t)}function wo(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const _o=(oo=kt("#nav-pick"),so=St("click .js-close-menu"),ao=St("submit #reset-form"),lo=St("click .js-modal-close"),oo((wo((uo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),go(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bo(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){this.userData=e.userData,this.token=e.token,this.render()}},{key:"closeRecoveryBox",value:function(e){e.preventDefault(),this.$el.removeClass("is-visible")}},{key:"closeModal",value:function(){this.$el.removeClass("is-visible"),this.$el.removeClass("is-open"),$(".js-overlay").removeClass("is-open"),$(".js-body").removeClass("is-modal-open")}},{key:"activateOverlay",value:function(){$(".js-overlay").addClass("is-open"),$(".js-body").addClass("is-modal-open")}},{key:"submitNewPassword",value:function(e){e.preventDefault(),$(".alert-block").hide();var t=$("#new_wsl_password").val(),n=$("#new_wsl_confirm_password").val();return 0===$.trim(t).length?$("#password-invalid").show():6>t.length?$("#small-password").show():t!==n?$("#password-missmatch").show():$.ajax({url:"auth/api/resetting-password/".concat(this.token),type:"POST",data:new FormData($("#reset-form")[0]),processData:!1,contentType:!1,success:function(){$("#password-updated").show(),$("#reset_password_button").addClass("btn-disabled").attr("disabled",!0)},error:function(e){$("#token-invalid").html(Translator.trans(e.error))}})}},{key:"onClose",value:function(e){e.preventDefault(),Vn.closeModal(),this.closeModal()}},{key:"render",value:function(){an()?(this.$el.html(ho.template(It)(this.userData)),this.$el.addClass("is-open")):(this.$el.html(ho.template('\n <a href="#nav-pick" class="head-menu-toggler js-close-menu"></a>\n <div class="head-menu">\n <a href="#nav-pick" class="close close-corner js-close-menu"></a>\n <form class="login-form" id="reset-form" method="post">\n <p class="help-msg"><%= Translator.trans(\'new.password.for\') %> <em> <%= email %> </em>:</p>\n <div class="alert-error alert-block" id="password-missmatch"><%= Translator.trans(\'passsword.donot.match\') %></div>\n <div class="alert-error alert-block" id="small-password"><%= Translator.trans(\'password.length.message\') %></div>\n <div class="alert-error alert-block" id="password-invalid"><%= Translator.trans(\'invalid.password\') %></div>\n <div class="alert-error alert-block" id="token-invalid"></div>\n <p>\n <label for="new_wsl_password"><%= Translator.trans(\'new.password\') %>:\n <span class="mhelp"><%= Translator.trans(\'atleast.6.characters\') %></span>\n <input type="password" value="" id="new_wsl_password" name="fos_user_resetting_form[new][first]" class="required text" size="20">\n </label>\n <label for="new_wsl_confirm_password"><%= Translator.trans(\'repeat.new.password\') %>:\n <input type="password" value="" id="new_wsl_confirm_password" name="fos_user_resetting_form[new][second]" class="required text" size="20">\n </label>\n </p>\n <button type="submit" id="reset_password_button" class="btn btn-primary"><%= Translator.trans(\'save.password\') %></button>\n <div class="alert-success alert-block" id="password-updated"> <%= Translator.trans(\'password.reset.success\') %> </div>\n </form>\n </nav>\n </div>\n')(this.userData)),this.$el.addClass("is-visible")),$(".alert-block").hide(),this.activateOverlay()}}])&&po(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gn().View)).prototype,"closeRecoveryBox",[so],Object.getOwnPropertyDescriptor(uo.prototype,"closeRecoveryBox"),uo.prototype),wo(uo.prototype,"submitNewPassword",[ao],Object.getOwnPropertyDescriptor(uo.prototype,"submitNewPassword"),uo.prototype),wo(uo.prototype,"onClose",[lo],Object.getOwnPropertyDescriptor(uo.prototype,"onClose"),uo.prototype),co=uo))||co);function ko(e){return ko="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},ko(e)}var So;function To(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,xo(i.key),i)}}function xo(e){var t=function(e,t){if("object"!=ko(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=ko(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ko(t)?t:String(t)}function Co(e,t,n){return t=Oo(t),function(e,t){if(t&&("object"===ko(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jo()?Reflect.construct(t,n||[],Oo(e).constructor):t.apply(e,n))}function jo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jo=function(){return!!e})()}function Oo(e){return Oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oo(e)}function Eo(e,t){return Eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eo(e,t)}const Po=gt({userDescription:""})(So=bt("/auth/api/user")(So=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Co(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eo(e,t)}(t,e),n=t,(i=[{key:"getUserImage",value:function(){return this.get("userImage")?this.get("userImage").content:this.get("avatar")}},{key:"getUserName",value:function(){return this.get("username")?this.get("username"):this.get("userId")}}])&&To(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gn().Model))||So)||So;var Do=n(2856);function Lo(e){return Lo="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},Lo(e)}function Ao(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}function Mo(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,Io(i.key),i)}}function $o(e,t,n){return(t=Io(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Io(e){var t=function(e,t){if("object"!=Lo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Lo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lo(t)?t:String(t)}var No=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),$o(this,"el",$("#js-user-comments")),$o(this,"username",null),$o(this,"closeComments",(function(){WSL2.User.isUserLoggedIn()&&WSL2.User.getUserName()===t.username&&$.ajax({url:"/auth/api/user",type:"PUT",contentType:"application/json",data:JSON.stringify({updateLastVisit:!0})}),t.resetHash(),t.el.find("#js-modal-user-comments").toggleClass("is-block"),an()&&($(".js-overlay").removeClass("is-open"),$(".js-body").removeClass("is-modal-open"))})),$o(this,"navigateToComment",(function(){t.closeComments(),$("a.js-menu-close").click()})),$o(this,"openMoreComments",(function(e){e.preventDefault(),t.getComments($(e.target).data("page"))})),$o(this,"openUserModalIfCorrectHash",(function(e){e&&e.preventDefault();var n,i,r=window.location.hash.match(/usuario\/([^\/]+)$/);if(r){var o=(i=2,function(e){if(Array.isArray(e))return e}(n=r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(n,i)||function(e,t){if(e){if("string"==typeof e)return Ao(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ao(e,t):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());t.username=o[1],t.getComments()}})),$(window).on("hashchange",this.openUserModalIfCorrectHash),this.openUserModalIfCorrectHash(),this.el.on("click",".js-comments-expand",this.expandComments),this.el.on("click",".js-exit-modal-comments",this.closeComments),this.el.on("click",".js-to-comment",this.navigateToComment),this.el.on("click",".js-comments-navigate",this.openMoreComments)}var t,n;return t=e,n=[{key:"resetHash",value:function(){window.history.pushState({},document.title,window.location.pathname+window.location.search)}},{key:"expandComments",value:function(e){var t=$(e.target),n=t.parents("li.comment-item").find("div.comment-content");t.toggleClass("comment-action-collapse"),n.toggleClass("is-collapsed")}},{key:"getComments",value:function(e){var t=this,n=new Po;n.fetch({data:{username:this.username},success:function(){var i="/auth/api/user/".concat(n.get("userId"),"/comments");e&&(i="".concat(i,"/").concat(e)),$.ajax(i,{success:function(e){$(".js-user").removeClass("is-open"),$(".js-body").addClass("is-modal-open"),an()&&WSL2.Events.trigger("onCommentVisible"),t.el.html(Do.template('\n <% var showBrilliants = user.get(\'commentsInfo\').brilliants ? true : false %>\n <% var showInteresante = user.get(\'commentsInfo\').interesante ? true : false %>\n <div class="section-modal-container is-block" id="js-modal-user-comments">\n <div class="section-modal m-modal-user-comments">\n <header class="section-modal-header">\n <div class="user-card m-compact">\n <div class="user-card-info">\n <a class="user-card-link" href="#usuario/<%= user.get(\'username\') %>">\n <img class="user-card-avatar" src="<%= user.get(\'avatar\') %>" alt="<%= user.get(\'fullName\') != \'\' ? user.get(\'fullName\') : user.get(\'username\') %>">\n </a>\n <div class="user-card-summary">\n <p class="user-card-name"><%= user.get(\'fullName\') != \'\' ? user.get(\'fullName\') : user.get(\'username\') %></p>\n <div class="user-card-rating">\n <span class="tooltip"><%= user.get(\'karmaLevel\') %>/100</span>\n <% for (var i = 1; i <= user.get(\'karmaStars\'); i++) { %>\n <span class="user-card-star">★</span>\n <% } %>\n </div>\n <p class="user-card-since">\n <%= user.get(\'isEditor\') ? \'Editor de \': \'Miembro de \' %>\n <%= WSL2.config.siteName %> desde <%= dayjs(user.get(\'registrationDate\')).fromNow() %>\n </p>\n <p class="user-card-description"><%= user.get(\'userDescription\') %></p>\n </div>\n </div>\n </div>\n <button class="btn-modal-close js-exit-modal-comments"></button>\n </header>\n <div class="section-modal-content">\n <% if (comments.length === 0) { %>\n <p class="alert-info"> <%= Translator.trans(\'user.no.comment\') %> </p>\n <% } else { %>\n <p class="comment-list-title"> <%= user.get(\'commentsInfo\').totalComments %> comentarios </p>\n <ul class="comment-badge-list">\n <% if (showBrilliants) { %>\n <li class="comment-badge-brillantes"> <%= user.get(\'commentsInfo\').brilliants %> brillantes </li>\n <% } %>\n <% if (showInteresante) { %>\n <li class="comment-badge-interesante"> <%= user.get(\'commentsInfo\').interesante %> interesante </li>\n <% } %>\n </ul>\n <ul>\n <% for (var i = 0; i < comments.length; i++) { %>\n <% var commentDateTime = comments[i].comment_date_gmt %>\n <% var commentPostPath = (\'3DJuegos\' === WSL2.config.siteName) ? (\'/p/\' + comments[i].comment_post_ID) : (\'/\' + comments[i].category_nicename + \'/\' + comments[i].post_name) %>\n <% var commentPath = commentPostPath + \'#c\' + comments[i].id %>\n <% var displayExpandHandler = comments[i].content_filtered && comments[i].content_filtered.length > 210 %>\n <li class="comment-post-description">\n <a href="<%= commentPostPath %>"><%= comments[i].post_title %></a>\n </li>\n <%\n var commentLevel = \'\';\n var commentLevelClass = \'\';\n if (comments[i].comment_level === \'1\' || comments[i].comment_level === \'2\') {\n if (comments[i].comment_level === \'1\') {\n var commentLevel = \'brillante\';\n }\n if (comments[i].comment_level === \'2\') {\n var commentLevel = \'interesante\';\n }\n var commentLevelClass = \'comment-\' + commentLevel;\n }\n %>\n <li class="comment-item m-compact <%= commentLevelClass %>">\n <% if (commentLevel) { %>\n <div class="comment-badge">\n <em></em><span> <%= commentLevel %> </span>\n </div>\n <% } %>\n <div class="comment-item-post-numbers">\n <a href="<%= commentPath %>" class="comment-item-post-comments js-to-comment"> <%= Translator.transChoice(\'user.comments\', comments[i].comment_count, { count: comments[i].comment_count }) %> </a>\n </div>\n <div class="comment-item-new-comments"><%= comments[i].latest_comment_count > 0 ? comments[i].latest_comment_count + \' nuevos\': \'\' %></div>\n <div class="comment-date">\n <a href="<%= commentPath %>" class="js-to-comment">\n <% if (\'1\' === WSL2.config.disableDatetimeMention) { %>\n <span class="comment-time"><%= getCommentDateTime(commentDateTime) %></span>\n <% } else { %>\n <time class="comment-time" datetime="<%= dayjs.unix(commentDateTime).format(WSL2.config.uniformDateTimeFormat ? "YYYY-MM-DDTHH:mm:ss[Z]" : "YYYY-MM-DD") %>"><%= getCommentDateTime(commentDateTime) %></time>\n <% } %> \n </a>\n </div>\n <div class="comment-content blob <%= displayExpandHandler ? \'is-collapsed\' : \'\' %>">\n <p><%= comments[i].content_filtered %></p>\n <% if (displayExpandHandler) { %>\n <span class="more-text"></span>\n <% } %>\n </div>\n <ul class="comment-footer">\n <li><a class="comment-footer-anchor js-to-comment" href="<%= commentPath %>"> <%= Translator.trans(\'see.in.post\') %></a></li>\n <% if (displayExpandHandler) { %>\n <li>\n <button class="comment-action-expand js-comments-expand"></button>\n </li>\n <% } %>\n </ul>\n </li>\n <% } %>\n </ul>\n <% } %>\n </div>\n <div class="section-modal-actions">\n <a href="#" class="cancel-link modal-actions-secondary js-exit-modal-comments"> <%= Translator.trans(\'close\') %> </a>\n <ul class="home-nav modal-actions-primary">\n <% if (page > 1) { %>\n <li><button class="btn btn-prev js-comments-navigate" data-page="<%= page - 1 %>"><span class="arrow">«</span> <%= Translator.trans(\'most.recent\') %></button></li>\n <% } %>\n <% if (hasNextPage) { %>\n <li><button class="btn btn-next js-comments-navigate" data-page="<%= page + 1 %>"> <%= Translator.trans(\'older\') %> <span class="arrow">»</span></button></li>\n <% } %>\n </ul>\n </div>\n </div>\n </div>\n')({user:n,page:e.page,hasNextPage:e.hasNextPage,comments:e.comments,getCommentDateTime:X}))}})}})}}],n&&Mo(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Ro=No;function Wo(e){return Wo="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},Wo(e)}function zo(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,Bo(i.key),i)}}function Bo(e){var t=function(e,t){if("object"!=Wo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Wo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wo(t)?t:String(t)}function Ho(e,t,n){return t=Uo(t),function(e,t){if(t&&("object"===Wo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fo()?Reflect.construct(t,n||[],Uo(e).constructor):t.apply(e,n))}function Fo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fo=function(){return!!e})()}function Uo(e){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uo(e)}function qo(e,t){return qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qo(e,t)}var Vo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ho(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qo(e,t)}(t,e),n=t,(i=[{key:"getPostLink",value:function(){return"/auth/tform"}},{key:"getPostData",value:function(e){return{form:{email:e.email,nicename:e.username}}}},{key:"getEmailCheckLink",value:function(){return"/auth/checkTwitterEmail/"}},{key:"checkUserName",value:function(e){return $.ajax({url:"/register/check_username/".concat(e),async:!1})}},{key:"checkEmail",value:function(e){var t=this;this.trigger("check-email-img"),$.get(this.getEmailCheckLink()+e,(function(e){"show"===e.result?("deactivated"===e.data?t.trigger("register-fail",Translator.trans("user.deactivated.error.message")):"email exists"===e.data?t.trigger("register-fail","Ya existe una cuenta con esa misma dirección de correo"):"invalid email"===e.data?t.trigger("register-fail",Translator.trans("email.domain.not.accepted")):t.trigger("hide-register-fail"),t.trigger("username-required")):t.trigger("username-not-required",e.data)}))}},{key:"checkNiceName",value:function(e){var t=this;this.trigger("check-username-img"),$.get("/register/check_username/".concat(e),(function(e){1===parseInt(e,10)?t.trigger("username-used"):t.trigger("username-available")}))}},{key:"sync",value:function(e,t){var n=this,i=t.attributes,r=this.getPostData(i),o=this.getPostLink();$.post(o,r,(function(e){-1!==e.indexOf("register_success")?n.trigger("register-success"):-1!==e.indexOf("nicename_success")?n.trigger("nicename-success"):n.trigger("register-fail",e)}))}},{key:"validate",value:function(e){var t=!1;return this.attributes.username_required&&null!=e.username&&((3>e.username.length||!/^[a-z][a-z0-9_.]+$/.test(e.username))&&(this.trigger("invalid-username"),t=!0),this.checkUserName(e.username).responseJSON&&(this.trigger("username-used"),t=!0)),null!=e.condition&&!0!==e.condition.prop("checked")&&(this.trigger("check-policy"),t=!0),null!=e.email&&(/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i.test(e.email)||(this.trigger("email-invalid"),t=!0)),t}}])&&zo(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(n(5544).Model);function Yo(e){return Yo="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},Yo(e)}function Go(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,Ko(i.key),i)}}function Ko(e){var t=function(e,t){if("object"!=Yo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Yo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yo(t)?t:String(t)}function Jo(e,t,n){return t=Zo(t),function(e,t){if(t&&("object"===Yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xo()?Reflect.construct(t,n||[],Zo(e).constructor):t.apply(e,n))}function Xo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xo=function(){return!!e})()}function Qo(){return Qo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Zo(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},Qo.apply(this,arguments)}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zo(e)}function es(e,t){return es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},es(e,t)}var ts,ns,is,rs,os,ss,as,ls,cs,us,ds,hs,fs,ps,ms,gs,vs,ys,bs,ws=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Jo(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&es(e,t)}(t,e),n=t,(i=[{key:"getPostLink",value:function(){return"/auth/register/"}},{key:"getPostData",value:function(e){return{fos_user_registration_form:{email:e.email,nicename:e.username,plainPassword:{first:e.password,second:e.repeat_password}}}}},{key:"getEmailCheckLink",value:function(){return"/auth/checkRegistrationEmail/"}},{key:"validate",value:function(e){var n=Qo(Zo(t.prototype),"validate",this).call(this,e);return null!=e.password&&(0<e.password.length&&6>e.password.length?(this.trigger("short-pwd"),n=!0):null!=e.repeat_password&&e.password!==e.repeat_password&&(this.trigger("pwd-not-match"),n=!0)),n?this.trigger("validation-fail"):this.trigger("validation-success"),n}}])&&Go(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Vo),_s=n(2856),ks=n(5544);function Ss(e){return Ss="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},Ss(e)}function Ts(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,xs(i.key),i)}}function xs(e){var t=function(e,t){if("object"!=Ss(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Ss(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ss(t)?t:String(t)}function Cs(e,t,n){return t=Os(t),function(e,t){if(t&&("object"===Ss(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,js()?Reflect.construct(t,n||[],Os(e).constructor):t.apply(e,n))}function js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(js=function(){return!!e})()}function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Os(e)}function Es(e,t){return Es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Es(e,t)}function Ps(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const Ds=(ts=kt("#nav-register"),ns=St("change #wsl_email"),is=St("change #wsl_condition_agree"),rs=St("change #wsl_username"),os=St("blur #wsl_password"),ss=St("blur #wsl_confirm_password"),as=St("click #wsl_register_button"),ls=St("click .js-open-login"),cs=St("click .js-close-register"),us=St("click .js-google-login"),ds=St("click #google_login"),hs=St("click #registered"),fs=St("click .js-facebook-login"),ps=St("click #facebook_login"),ms=St("click .twitter-login"),gs=St("click .js-twitter-login"),vs=St("click #twitter_login"),ts((Ps((bs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Cs(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Es(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){WSL2.Events.trigger("openedRegistrationWindow"),this.model=new ws({username_required:!0}),this.model.bind("username-available",this.renderUsernameAvailable,this),this.model.bind("username-used",this.renderUsernameError,this),this.model.bind("email-invalid",this.renderInvalidEmail,this),this.model.bind("invalid-username",this.renderShortUsername,this),this.model.bind("short-pwd",this.renderShortPwd,this),this.model.bind("pwd-not-match",this.renderPwdNotMatch,this),this.model.bind("check-policy",this.renderCheckPolicy,this),this.model.bind("check-username-img",this.renderCheckUsernameImg,this),this.model.bind("check-email-img",this.renderCheckEmailImg,this),this.model.bind("register-success",this.renderRegisterSuccess,this),this.model.bind("register-fail",this.renderRegisterFailure,this),this.model.bind("hide-register-fail",this.renderHideRegisterFailure,this),this.model.bind("username-required",this.renderUsernameRequired,this),this.model.bind("username-not-required",this.renderUsernameNotRequired,this),this.model.bind("error",this.renderEnableSubmit,this),this.model.bind("validation-fail",this.renderDisableSubmit,this),this.model.bind("validation-success",this.renderEnableSubmit,this),this.render()}},{key:"renderEnableSubmit",value:function(){an()?$("#wsl_register_button").removeClass("btn-disabled").attr("disabled",!1):$("#wsl_register_button").removeClass("disabled").attr("disabled",!1)}},{key:"renderDisableSubmit",value:function(){an()?$("#wsl_register_button").attr("disabled",!0).addClass("btn-disabled"):$("#wsl_register_button").attr("disabled",!0).addClass("disabled")}},{key:"renderRegisterSuccess",value:function(){var e=this.model.get("email");an()?this.$el.html(_s.template('\n <div class="a-modal js-register-success">\n <div class="a-modal__content">\n <div class="o-usernav-section__form-group">\n <span class="message exito"><%= Translator.trans(\'thanks.for.signup\') %> <%= WSL2.config.siteName %>.</span>\n </div>\n <div class="o-usernav-section__form-group">\n <p><%= Translator.trans(\'sent.email.to\') %> <strong><%= email %> </strong> <%= Translator.trans(\'with.instructions.to.activate\') %> </p>\n </div>\n <p class="o-usernav-section__form-group"><strong><%= Translator.trans(\'check.spam\') %></strong>.</p>\n <p class="o-usernav-section__form-group"><%= Translator.trans(\'comment.disclaimer\', { blog: WSL2.config.siteName }) %> </p>\n <form class="o-usernav-section__form">\n <div class="o-usernav-section__form-columns">\n <button class="a-button a-button--primary js-close-register" id="registered"><%= Translator.trans(\'accept\') %></button>\n </div>\n </form>\n </div>\n </div>\n')({email:e})):this.$el.html(_s.template('\n <a href="#nav-register" class="head-menu-toggler js-close-register"></a>\n <div id="activation" class="head-menu">\n <p><span class="message exito"><%= Translator.trans(\'thanks.for.signup\') %> <%= WSL2.config.siteName %>.</span></p>\n <p><%= Translator.trans(\'sent.email.to\') %> <strong><%= email %> </strong> <%= Translator.trans(\'with.instructions.to.activate\') %> </p>\n <p><strong><%= Translator.trans(\'check.spam\') %></strong>.</p>\n <p><%= Translator.trans(\'comment.disclaimer\', { blog: WSL2.config.siteName }) %> </p>\n <div class="submit-area"><button id="registered" class="btn btn-primary"><%= Translator.trans(\'accept\') %></button></div>\n </div>\n')({email:e}))}},{key:"renderPwdNotMatch",value:function(){$("#wsl_password").addClass("mform-error"),$("#wsl_confirm_password").addClass("mform-error"),$("#wsl_pwd_not_match").show()}},{key:"renderCheckPolicy",value:function(){$("#wsl_check_policy").show()}},{key:"renderShortUsername",value:function(){$("#wsl_username").addClass("mform-error"),$("#wsl_invalid_username").show()}},{key:"renderUsernameAvailable",value:function(){this.renderEnableSubmit(),$("#wsl_check_username").hide(),$("#wsl_res_username").show().removeClass().html(Translator.trans("available.to.you")),an()?$("#wsl_res_username").addClass("message exito"):$("#wsl_res_username").addClass("username_success"),$("#wsl_username").removeClass("mform-error")}},{key:"renderShortPwd",value:function(){$("#wsl_password").addClass("mform-error"),$("#wsl_short_pwd").show()}},{key:"renderUsernameError",value:function(){this.renderDisableSubmit(),$("#wsl_check_username").hide(),$("#wsl_username").addClass("mform-error"),$("#wsl_res_username").show().removeClass().addClass("wsl_error username_error").html(Translator.trans("not.available"))}},{key:"renderInvalidEmail",value:function(){$("#wsl_email").addClass("mform-error"),$("#wsl_email_invalid").show()}},{key:"renderCheckUsernameImg",value:function(){$("#wsl_check_username").show()}},{key:"renderCheckEmailImg",value:function(){$("#username-box").hide(),$("#wsl_username").val(""),$("#nicename_not_reqd").hide()}},{key:"renderRegisterFailure",value:function(e){$("#wsl_register_invalid").html(e.replace(/\n/g,"<br>")).show()}},{key:"renderUsernameRequired",value:function(){$("#username-box").show(),$("#nicename_not_reqd").hide(),this.model.set({username_required:!0},{validate:!0})}},{key:"renderHideRegisterFailure",value:function(){this.renderEnableSubmit(),$("#wsl_register_invalid").html("").hide()}},{key:"renderUsernameNotRequired",value:function(e){$("#wsl_register_invalid").hide(),$("#wsl_username").val(""),$("#username-box").hide(),$("#nicename_not_reqd").show(),$("#nicename_not_reqd #username").html(e),this.model.set({username_required:!1},{validate:!0})}},{key:"setEmail",value:function(){$("#wsl_email_invalid").hide();var e=$("#wsl_email");e.removeClass("mform-error");var t=e.val();t&&this.model.set({email:t},{validate:!0}),this.model.get("email")===t&&this.model.checkEmail(t)}},{key:"setCondition",value:function(){$("#wsl_check_policy").hide(),this.renderEnableSubmit(),this.model.set({condition:$("#wsl_condition_agree")},{validate:!0})}},{key:"checkUsername",value:function(){$("#wsl_invalid_username").hide(),$("#wsl_res_username").hide(),this.renderEnableSubmit();var e=$("#wsl_username").val();this.model.set({username:e},{validate:!0}),this.model.get("username")===e&&this.model.checkNiceName(e)}},{key:"setPassword",value:function(){$("#wsl_short_pwd").hide(),$("#wsl_pwd_not_match").hide();var e=$("#wsl_password");e.removeClass("mform-error"),$("#wsl_confirm_password").removeClass("mform-error"),this.renderEnableSubmit(),this.model.set({password:e.val()},{validate:!0})}},{key:"setRepeatPassword",value:function(){$("#wsl_short_pwd").hide(),$("#wsl_pwd_not_match").hide();var e=$("#wsl_password"),t=$("#wsl_confirm_password");e.removeClass("mform-error"),t.removeClass("mform-error"),this.renderEnableSubmit(),this.model.set({password:e.val(),repeat_password:t.val()},{validate:!0})}},{key:"saveRegister",value:function(e){e.preventDefault(),e.stopPropagation(),this.renderDisableSubmit(),$(".wsl_error").hide(),this.model.save({email:$("#wsl_email").val(),password:$("#wsl_password").val(),repeat_password:$("#wsl_confirm_password").val(),username:$("#wsl_username").val(),condition:$("#wsl_condition_agree")})}},{key:"openLoginForm",value:function(e){e.preventDefault(),this.$el.removeClass("is-visible"),this.$el.removeClass("is-open"),$($(e.target).attr("href")).addClass("is-visible"),$($(e.target).attr("href")).addClass("is-open")}},{key:"closeRegistrationForm",value:function(e){e.preventDefault(),$("html").removeClass("noscroll"),an()?(this.$el.removeClass("is-open"),$(".js-overlay").removeClass("is-open"),$(".js-body").removeClass("is-modal-open"),this.$el.html(_s.template($t)())):this.$el.removeClass("is-visible")}},{key:"loginGoogle",value:function(){$("html").removeClass("noscroll");var e="".concat(WSL2.config.desktopSiteUrl).concat(window.location.pathname).concat(window.location.search);void 0!==WSL2.User.location&&(e+=WSL2.User.location);var t="".concat(WSL2.config.desktopSiteUrl,"/auth/google?__path=").concat(e);window.location.href=t}},{key:"closeRegistrationSuccessForm",value:function(e){this.closeRegistrationForm(e),this.render()}},{key:"loginFacebook",value:function(e){e.preventDefault(),this.disableFacebookButton(),document.cookie="fblo_".concat(WSL2.config.fbapikey,"=; expires=").concat(new Date(0).toGMTString(),"; path=/; domain=").concat(window.location.hostname.replace(/m?dev\./i,""));var t="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname).concat(window.location.search);void 0!==WSL2.User.location&&(t+=WSL2.User.location),window.location.href="/auth/facebook?__path=".concat(t)}},{key:"loginTwitter",value:function(){this.$el.removeClass("is-visible"),$("html").removeClass("noscroll"),window.open("/auth/connectTwitter","TwitterLogin","width=600,height=500")}},{key:"disableFacebookButton",value:function(){$(".js-facebook-login").addClass("btn-disabled").attr("disabled",!0).html("Entrando...")}},{key:"enableFacebookButton",value:function(){$(".js-facebook-login").removeClass("btn-disabled").removeAttr("disabled",!1).html("Entra con Facebook")}},{key:"render",value:function(){an()||this.$el.html(_s.template('\n <a href="#nav-register" class="head-menu-toggler js-close-register"></a>\n <div class="head-menu">\n <a href="#nav-register" class="close close-corner js-close-register"></a>\n <form id="fos_user_registration_form" class="register-form" action="#" onSubmit="return false">\n <p class="help-msg"><a href="#nav-login" class="js-open-login">Entra</a> o regístrate para poder guardar artículos, comentar o votar en la comunidad.</p>\n <p class="wsl_error" id="wsl_register_invalid"><%= Translator.trans(\'email.not.valid.format\') %></p>\n <p class="wsl_error" id="wsl_email_invalid"><%= Translator.trans(\'email.not.valid.format\') %></p>\n <p class="wsl_error" id="wsl_short_pwd"><%= Translator.trans(\'password.length.message\') %></p>\n <p class="wsl_error" id="wsl_pwd_not_match"><%= Translator.trans(\'passsword.donot.match\') %></p>\n <p class="mclear message status" id="nicename_not_reqd" style="display:none"><%= Translator.trans(\'already.a.username\') %> <%= WSL2.config.siteName %>: <strong id="username"><%= Translator.trans(\'kiddo\') %></strong></p>\n <p>\n <label for="email"><%= Translator.trans(\'email\') %>: <input type="text" class="required text" name="fos_user_registration_form[email]" id="wsl_email" value="" size="30"></label>\n <label for="password"><%= Translator.trans(\'password\') %>: <input type="password" size="20" class="required text" name="fos_user_registration_form[plainPassword][first]" id="wsl_password" value="">\n <span class="mhelp"><%= Translator.trans(\'password.length.message\') %></span></label>\n <label for="confirm_password"><%= Translator.trans(\'repeat.password\') %>: <input type="password" size="20" class="required text" name="fos_user_registration_form[plainPassword][second]" id="wsl_confirm_password" value=""></label>\n </p>\n <p class="wsl_error" id="wsl_invalid_username"><%= Translator.trans(\'username.not.valid.format\') %></p>\n <p id="wsl_res_username"></p>\n <p class="mclear" id="username-box">\n <label for="username">\n <%= Translator.trans(\'username\') %>: <%= document.domain %>#usuario/ <input type="text" size="25" value="" id="wsl_username" name="user_name" class="required text ">\n <span id="wsl_check_username" style="display: none;"><%= Translator.trans(\'checking\') %>...</span>\n <span class="mhelp"><%= Translator.trans(\'think.again.message\') %> <strong><%= Translator.trans(\'cannot.change\') %></strong>. <%= Translator.trans(\'minimum.characters.message\') %></span>\n </label>\n </p>\n <p class="wsl_error" id="wsl_check_policy"><%= Translator.trans(\'accept.privacy.policy\') %></p>\n <p><label for="condition_agree"><input type="checkbox" class="required" name="condition_agree" id="wsl_condition_agree" value="condition_agree"> <%= Translator.trans(\'accept.privacy.policy1\') %> <a target="_blank" id="politica" href="https://www.weblogssl.com/legal/"><strong><%= Translator.trans(\'accept.privacy.policy2\') %></strong></a>.</label></p>\n <div class="submit-area"><button id="wsl_register_button" type="submit" class="btn btn-primary button"><%= Translator.trans(\'sign.up\') %></button></div>\n </form>\n <div class="login-3rd-part">\n <p <% if (WSL2.config.device != \'desktop\') { %> class="m-no-twitter-login" <% } %>>\n <% if (WSL2.config.enableGoogleLogin) { %>\n <span class="google-login-container">\n <a href="#" class="google-login" id="google_login"><%= Translator.trans(\'signin.with\') %> GOOGLE</a>\n </span>\n <% } %>\n <a href="#" class="facebook-login" id="facebook_login"><%= Translator.trans(\'signin.with\') %> Facebook</a>\n <% if (WSL2.config.device == \'desktop\') { %>\n <a href="#" class="x-login" id="twitter_login"><%= Translator.trans(\'signin.with\') %> X</a>\n <% } %>\n </p>\n </div>\n <p id="already_acc"><%= Translator.trans(\'already.have.account\') %> <a href="#nav-login" class="js-open-login"><%= Translator.trans(\'sign.in.here\') %></a></p>\n </div>\n')()),this.$el.find(".js-facebook-login").hasClass("btn-disabled")&&this.enableFacebookButton(),this.$el.find(".wsl_error").hide()}}])&&Ts(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(ks.View)).prototype,"setEmail",[ns],Object.getOwnPropertyDescriptor(bs.prototype,"setEmail"),bs.prototype),Ps(bs.prototype,"setCondition",[is],Object.getOwnPropertyDescriptor(bs.prototype,"setCondition"),bs.prototype),Ps(bs.prototype,"checkUsername",[rs],Object.getOwnPropertyDescriptor(bs.prototype,"checkUsername"),bs.prototype),Ps(bs.prototype,"setPassword",[os],Object.getOwnPropertyDescriptor(bs.prototype,"setPassword"),bs.prototype),Ps(bs.prototype,"setRepeatPassword",[ss],Object.getOwnPropertyDescriptor(bs.prototype,"setRepeatPassword"),bs.prototype),Ps(bs.prototype,"saveRegister",[as],Object.getOwnPropertyDescriptor(bs.prototype,"saveRegister"),bs.prototype),Ps(bs.prototype,"openLoginForm",[ls],Object.getOwnPropertyDescriptor(bs.prototype,"openLoginForm"),bs.prototype),Ps(bs.prototype,"closeRegistrationForm",[cs],Object.getOwnPropertyDescriptor(bs.prototype,"closeRegistrationForm"),bs.prototype),Ps(bs.prototype,"loginGoogle",[us,ds],Object.getOwnPropertyDescriptor(bs.prototype,"loginGoogle"),bs.prototype),Ps(bs.prototype,"closeRegistrationSuccessForm",[hs],Object.getOwnPropertyDescriptor(bs.prototype,"closeRegistrationSuccessForm"),bs.prototype),Ps(bs.prototype,"loginFacebook",[fs,ps],Object.getOwnPropertyDescriptor(bs.prototype,"loginFacebook"),bs.prototype),Ps(bs.prototype,"loginTwitter",[ms,gs,vs],Object.getOwnPropertyDescriptor(bs.prototype,"loginTwitter"),bs.prototype),ys=bs))||ys);function Ls(e){return Ls="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},Ls(e)}var As,Ms,$s,Is,Ns,Rs,Ws,zs,Bs;function Hs(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,Ks(i.key),i)}}function Fs(e,t,n){return t=qs(t),function(e,t){if(t&&("object"===Ls(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vs(e)}(e,Us()?Reflect.construct(t,n||[],qs(e).constructor):t.apply(e,n))}function Us(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Us=function(){return!!e})()}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qs(e)}function Vs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ys(e,t)}function Gs(e,t,n){return(t=Ks(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ks(e){var t=function(e,t){if("object"!=Ls(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Ls(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ls(t)?t:String(t)}function Js(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var Xs=$(".js-body");const Qs=(As=kt(an()?"#js-loggedin":"#js-login"),Ms=St("click #js-open-user-comments"),$s=St("click .js-modal-close"),Is=St("click #logout"),Ns=St("click #js-logout"),Rs=St("click #js-open-edit-profile"),Ws=St("click #js-deactivate-account"),As((Js((Bs=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return Gs(Vs(e=Fs(this,t,[].concat(i))),"userProfileEditView",null),Gs(Vs(e),"user",null),e}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ys(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){WSL2.Events.bind("onLogOut",this.onUserLogout,this),WSL2.Events.bind("onCommentVisible",this.onCommentVisible,this),WSL2.Events.bind("onUnsubscribeModal",this.onOpenUnsubscribeModal,this)}},{key:"onCommentVisible",value:function(){this.$el.find("#js-open-user-comments").removeClass("o-usernav-section__links-logout").html("Tus comentarios")}},{key:"onOpenUnsubscribeModal",value:function(){an()&&($(".js-user").removeClass("is-open"),this.$el.find("#js-deactivate-account").removeClass("o-usernav-section__footer-disabled").html("Darte de baja"))}},{key:"openCommentModal",value:function(){an()&&this.$el.find("#js-open-user-comments").addClass("o-usernav-section__links-logout").html("Cargando...")}},{key:"onClose",value:function(e){e.preventDefault(),Vn.closeModal()}},{key:"onUserLogout",value:function(){$(".js-overlay").removeClass("is-open"),$(".js-user").removeClass("is-open"),Xs.removeClass("is-modal-open")}},{key:"onLogout",value:function(e){e.preventDefault(),WSL2.session.logout(),an()&&$("#js-logout").addClass("o-usernav-section__links-logout").text("Cerrando...")}},{key:"openEditProfileForm",value:function(e){e.preventDefault(),this.user=new Po,this.user.fetch(),this.userProfileEditView=Zt.get({model:this.user}),an()&&$(".js-user").removeClass("is-open"),this.userProfileEditView.open()}},{key:"openAccountDeactivateModal",value:function(e){e.preventDefault(),an()&&this.$el.find("#js-deactivate-account").addClass("o-usernav-section__footer-disabled").html("Cargando..."),Pn.get().openInfoModal()}}])&&Hs(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gn().View)).prototype,"openCommentModal",[Ms],Object.getOwnPropertyDescriptor(Bs.prototype,"openCommentModal"),Bs.prototype),Js(Bs.prototype,"onClose",[$s],Object.getOwnPropertyDescriptor(Bs.prototype,"onClose"),Bs.prototype),Js(Bs.prototype,"onLogout",[Is,Ns],Object.getOwnPropertyDescriptor(Bs.prototype,"onLogout"),Bs.prototype),Js(Bs.prototype,"openEditProfileForm",[Rs],Object.getOwnPropertyDescriptor(Bs.prototype,"openEditProfileForm"),Bs.prototype),Js(Bs.prototype,"openAccountDeactivateModal",[Ws],Object.getOwnPropertyDescriptor(Bs.prototype,"openAccountDeactivateModal"),Bs.prototype),zs=Bs))||zs);var Zs,ea=n(5544);function ta(e){return ta="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},ta(e)}function na(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,ia(i.key),i)}}function ia(e){var t=function(e,t){if("object"!=ta(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=ta(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ta(t)?t:String(t)}function ra(e,t,n){return t=sa(t),function(e,t){if(t&&("object"===ta(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oa()?Reflect.construct(t,n||[],sa(e).constructor):t.apply(e,n))}function oa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oa=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sa(e)}function aa(e,t){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aa(e,t)}var la=wt({"resetpassword/:token":"resetPassword"})(Zs=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ra(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aa(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){new Ti,new Qs,new Ui,new Cr,new Ds,new ro,new Ro}},{key:"resetPassword",value:function(e){$.getJSON("/auth/api/resetting-password/".concat(e),(function(t){"Token Expired"===t.error&&(window.location="/"),new _o({userData:t,token:e})}))}}])&&na(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(ea.Router))||Zs;function ca(e){return ca="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},ca(e)}function ua(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,ha(i.key),i)}}function da(e,t,n){return(t=ha(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ha(e){var t=function(e,t){if("object"!=ca(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=ca(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ca(t)?t:String(t)}WSL2.User=new ui,new la,ea.History.started&&ea.history.stop(),ea.history.start(),WSL2.Events.on("open-twitter-resend-mail",(function(){new Br})),n(6488);var fa=[],pa=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),da(this,"sessionLoaded",!1),da(this,"fbResponse",null),da(this,"fbAsyncInit",(function(){var e=t;FB.init({appId:WSL2.config.fbapikey,cookie:!0,version:WSL2.config.fbApiVersion}),FB.Event.subscribe("auth.authResponseChange",(function(t){e.fbResponse=t,"connected"===t.status&&WSL2.session.loginFacebook()})),FB.Event.subscribe("edge.create",(function(e){var t=e.substr(e.lastIndexOf("/")+1);WSL2.Events.trigger("facebookLikeEvent",{target:t}),$.ajax({url:"/api/usershares",data:{user:WSL2.session.cookie.value?WSL2.session.cookie.value.user.UserId:"",post_name:t,value:1}})})),FB.Event.subscribe("edge.remove",(function(e){var t=e.substr(e.lastIndexOf("/")+1);WSL2.Events.trigger("facebookUnlikeEvent",{target:t}),$.ajax({url:"/api/usershares",data:{user:WSL2.session.cookie.value?WSL2.session.cookie.value.user.UserId:"",post_name:t,value:-1}})})),FB.Event.subscribe("message.send",(function(e){var t=e.substr(e.lastIndexOf("/")+1);WSL2.Events.trigger("facebookMessageSendEvent",{target:t})})),FB.getLoginStatus((function(e){t.fbResponse=e,t.sessionLoaded=!0,fa.forEach((function(e){return e()}))}),!0)})),window.fbAsyncInit=this.fbAsyncInit,i({src:"https://connect.facebook.net/es_ES/sdk.js",async:!0,crossorigin:"anonymous"})}var t,n;return t=e,(n=[{key:"onLoad",value:function(e){this.sessionLoaded?e():fa.push(e)}},{key:"isLoaded",value:function(){return this.sessionLoaded}},{key:"isLoggedIn",value:function(){return this.fbResponse.authResponse}},{key:"logout",value:function(){FB.logout()}}])&&ua(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ma(e){return ma="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},ma(e)}function va(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,ya(i.key),i)}}function ya(e){var t=function(e,t){if("object"!=ma(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=ma(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ma(t)?t:String(t)}WSL2.fbLogin=new pa;var ba="weblogssl_user",wa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=ya(t))in e?Object.defineProperty(e,t,{value:null,enumerable:!0,configurable:!0,writable:!0}):e[t]=null}(this,"value"),this.refreshCookie()}var t,n;return t=e,(n=[{key:"refreshCookie",value:function(){var e=sn.get(ba);e&&(this.value=e)}},{key:"getValue",value:function(){return this.value}},{key:"clearCookie",value:function(){this.value=null,sn.remove(ba),sn.remove("login")}},{key:"loginType",value:function(){return this.value.login_type||"none"}},{key:"cookieOverlay",value:function(){return(null!=this.value?this.value.user.cookie_overlay:void 0)||0}},{key:"hasSession",value:function(){return null!==this.value}}])&&va(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();window.WSL2||(window.WSL2={}),window.WSL2.Cookie=wa;var _a,ka,Sa,Ta,xa=n(5544);function Ca(e){return Ca="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},Ca(e)}function ja(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,Ea(i.key),i)}}function Oa(e,t,n){return t&&ja(e.prototype,t),n&&ja(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ea(e){var t=function(e,t){if("object"!=Ca(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Ca(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ca(t)?t:String(t)}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Da(e,t,n){return t=Aa(t),function(e,t){if(t&&("object"===Ca(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,La()?Reflect.construct(t,n||[],Aa(e).constructor):t.apply(e,n))}function La(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(La=function(){return!!e})()}function Aa(e){return Aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Aa(e)}function Ma(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$a(e,t)}function $a(e,t){return $a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$a(e,t)}var Ia=function(e){function t(){return Pa(this,t),Da(this,t,arguments)}return Ma(t,e),Oa(t)}(xa.Model),Na=(_a=kt("#wsl_dialog"),ka=St("click #confLink"),_a((Ta=function(e){function t(){return Pa(this,t),Da(this,t,arguments)}return Ma(t,e),Oa(t,[{key:"initialize",value:function(){this.model=new Ia,this.render()}},{key:"render",value:function(){this.$el.html(WSL2.Auth.JST["register/twitterNotConfirmBox"]()),this.$el.dialog({height:300,width:540,modal:!0})}},{key:"send_link",value:function(){var e=this;$.post("/auth/resendEmail",(function(t){"confirmation_mail_sent"===t?(e.$el.dialog("close"),e.$el.html(WSL2.Auth.JST["login/mailSent"]()),e.$el.dialog({height:330,width:540,modal:!0})):"already_enabled"===t?window.location.reload():WSL2.session.loginTwitter()}))}}]),t}(xa.View),function(e,t,n,i,r){var o={};Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}(Ta.prototype,"send_link",[ka],Object.getOwnPropertyDescriptor(Ta.prototype,"send_link"),Ta.prototype),Sa=Ta))||Sa);window.WSL2.ResendConfirmView=Na,window.WSL2.ResendConfirmModel=Ia;var Ra,Wa,za,Ba,Ha,Fa,Ua,qa,Va,Ya=n(2856),Ga=n(5544);function Ka(e){return Ka="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},Ka(e)}function Ja(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,nl(i.key),i)}}function Xa(e,t,n){return t=Za(t),function(e,t){if(t&&("object"===Ka(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return el(e)}(e,Qa()?Reflect.construct(t,n||[],Za(e).constructor):t.apply(e,n))}function Qa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qa=function(){return!!e})()}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Za(e)}function el(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tl(e,t){return tl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tl(e,t)}function nl(e){var t=function(e,t){if("object"!=Ka(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Ka(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ka(t)?t:String(t)}function il(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var rl=(Ra=kt("#nav-twitter-register"),Wa=St("change #twitter_email"),za=St("change #twitter_condition_agree"),Ba=St("change #twitter_username"),Ha=St("click #twitter_register_button"),Fa=St("click .js-close-twitter-register"),Ua=St("click #cancel_twitter_register_button"),Ra((Va=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return function(e,t,n){(t=nl(t))in e?Object.defineProperty(e,t,{value:"",enumerable:!0,configurable:!0,writable:!0}):e[t]=""}(el(e=Xa(this,t,[].concat(i))),"screenName"),e}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tl(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){this.name=e,WSL2.Events.trigger("twitterRegistrationWindowOpened"),this.screenName=this.name.screenName,this.model=new Vo({username_required:!0}),this.model.bind("email-invalid",this.renderInvalidEmail,this),this.model.bind("invalid-username",this.renderInvalidUsername,this),this.model.bind("valid-username",this.renderValidUsername,this),this.model.bind("check-username-img",this.renderCheckUsernameImg,this),this.model.bind("check-email-img",this.renderCheckEmailImg,this),this.model.bind("username-available",this.renderUsernameAvailable,this),this.model.bind("check-policy",this.renderCheckPolicy,this),this.model.bind("username-used",this.renderUsernameError,this),this.model.bind("register-success",this.renderRegisterSuccess,this),this.model.bind("register-fail",this.renderRegisterFailure,this),this.model.bind("hide-register-fail",this.renderHideRegisterFailure,this),this.model.bind("username-required",this.renderUsernameRequired,this),this.model.bind("username-not-required",this.renderUsernameNotRequired,this),this.model.bind("error",this.renderEnableSubmit,this),this.render()}},{key:"renderEnableSubmit",value:function(){this.twitrButton.attr("disabled",!1),this.twitrButton.removeClass("disabled")}},{key:"renderInvalidEmail",value:function(){this.wslEmailInvalid.show(),this.wslEmail.addClass("mform-error")}},{key:"renderCheckPolicy",value:function(){this.wslCheckPolicy.show()}},{key:"renderCheckUsernameImg",value:function(){this.wslCheckUsername.show()}},{key:"renderCheckEmailImg",value:function(){this.usernameBox.hide(),this.wslUsername.val(""),this.nicenameNotReqd.hide(),this.wslCheckEmail.show()}},{key:"renderUsernameAvailable",value:function(){this.wslCheckUsername.hide(),this.wslResUsername.show(),this.wslUsername.removeClass("mform-error"),this.wslResUsername.removeClass().addClass("username_success"),this.wslResUsername.html(Translator.trans("available.to.you")),this.wslUsername.val(this.model.get("username"))}},{key:"renderUsernameError",value:function(){if(this.renderEnableSubmit(),this.wslCheckUsername.hide(),this.wslUsername.val())return this.wslResUsername.show(),this.wslResUsername.removeClass().addClass("username_error"),void this.wslResUsername.html(Translator.trans("not.available"));this.wslInvalidUsername.hide(),this.wslUsername.removeClass("mform-error"),this.wslResUsername.hide()}},{key:"renderInvalidUsername",value:function(){this.wslInvalidUsername.show(),this.wslUsername.addClass("mform-error")}},{key:"renderValidUsername",value:function(){this.wslInvalidUsername.hide(),this.wslUsername.removeClass("mform-error")}},{key:"renderRegisterFailure",value:function(e){WSL2.Events.trigger("twitterRegistrationFailed"),this.renderEnableSubmit(),this.wslTwitregInvalid.html(e),this.wslTwitregInvalid.show()}},{key:"renderHideRegisterFailure",value:function(){this.wslTwitregInvalid.html(""),this.wslTwitregInvalid.hide()}},{key:"renderUsernameRequired",value:function(){this.wslCheckEmail.hide(),this.usernameBox.show(),this.wslResUsername.html(""),this.model.set({username_required:!0},{validate:!0}),null!=this.screenName&&this.model.set({username:this.screenName.toLowerCase()},{validate:!0})}},{key:"renderUsernameNotRequired",value:function(e){this.wslCheckEmail.hide(),this.nicenameNotReqd.show(),this.nicenameNotReqd.find("#username").html(e),this.wslConditionAgree.focus(),this.wslCheckEmail.hide(),this.usernameBox.hide(),this.model.set({username_required:!1},{validate:!0})}},{key:"setEmail",value:function(){this.wslEmailInvalid.hide(),this.wslEmail.removeClass("mform-error");var e=this.wslEmail.val();this.model.set({email:e},{validate:!0}),this.model.get("email")===e&&this.model.checkEmail(e)}},{key:"set_condition",value:function(){this.wslCheckPolicy.hide(),this.renderEnableSubmit(),this.model.set({condition:this.wslConditionAgree},{validate:!0})}},{key:"check_username",value:function(){this.wslInvalidUsername.hide(),this.wslResUsername.hide();var e=this.wslUsername.val();this.model.set({username:e},{validate:!0}),this.model.get("username")===e&&this.model.checkNiceName(e)}},{key:"save_register",value:function(e){e.preventDefault(),e.stopPropagation(),this.twitrButton.attr("disabled",!0),this.twitrButton.addClass("disabled"),$(".wsl_error").hide(),this.model.save({email:this.wslEmail.val(),username:this.wslUsername.val(),condition:this.wslConditionAgree})}},{key:"close_dialog",value:function(){this.$el.dialog("close")}},{key:"closeTwitterRegistrationForm",value:function(e){e.preventDefault(),$("html").removeClass("noscroll"),this.$el.removeClass("is-visible")}},{key:"renderRegisterSuccess",value:function(){var e=this.model.get("email"),t=this.model.get("username");this.$el.html(Ya.template('\n <a href="#nav-twitter-register" class="head-menu-toggler js-close-twitter-register"></a>\n <div class="head-menu">\n <a href="#nav-twitter-register" class="close close-corner js-close-twitter-register"></a>\n <form class="register-form" action="#" onSubmit="return false">\n <p class="help-msg"><%= Translator.trans(\'connected\') %> <strong>twitter.com/<%= username %></strong> <%= Translator.trans(\'connected.with\') %> <%= WSL2.config.siteName %></p>\n <p class="alert alert-info"><%= Translator.trans(\'sent.link.to.activate.account\') %> <strong><%= email %></strong>.</p>\n <p class="help-msg"><%= Translator.trans(\'comment.disclaimer\', { blog: WSL2.config.siteName }) %> </p>\n <div class="submit-area">\n <button class="btn btn-primary js-close-twitter-register"><span><strong><%= Translator.trans(\'accept\') %></strong></span></button>\n </div>\n </form>\n </div>\n')({email:e,username:t}))}},{key:"cancel_register",value:function(e){e.preventDefault(),WSL2.session.logout(),this.closeTwitterRegistrationForm()}},{key:"render",value:function(){$("html").addClass("noscroll"),this.$el.addClass("is-visible"),this.$el.html(Ya.template('\n <a href="#nav-twitter-register" class="head-menu-toggler js-close-twitter-register"></a>\n <div class="head-menu">\n <a href="#nav-twitter-register" class="close close-corner js-close-twitter-register"></a>\n <form id="fos_user_registration_form" class="register-form" action="#" onSubmit="return false">\n <p class="help-msg"><%= Translator.trans(\'connect\') %> <strong>twitter.com/<%= screen_name %> </strong> <%= Translator.trans(\'connected.with\') %> <%= WSL2.config.siteName %>:</p>\n <p class="wsl_error" id="twitter_registration_invalid" style="display:none"></p>\n <p class="wsl_error" id="twitter_email_invalid" style="display:none"><%= Translator.trans(\'email.not.valid.format\') %></p>\n <p>\n <label class="mblock mleft" for="email">\n <%= Translator.trans(\'email\') %>:\n <input type="text" size="25" tabindex="1" id="twitter_email" name="twitter_email" class="text">\n </label>\n </p>\n <p id="twitter_check_email" class="mclear" style="display:none"><span id="check_username" ><%= Translator.trans(\'checking\') %>...</span></p>\n <p id="twitter_nicename_not_reqd" style="display:none" class="mclear message status"><%= Translator.trans(\'corresponds.to.email\') %> <strong id="username"><%= Translator.trans(\'kiddo\') %></strong>. <%= Translator.trans(\'register.associated\') %></p>\n <div id="twitter-username-box">\n <p class="mclear" >\n <label for="username">\n <%= Translator.trans(\'username\') %>: <span class="mhelp"><%= document.domain %>#usuario/</span>\n <input type="text" class="text" tabindex="2" name="user_name" id="twitter_username" size="25">\n <span id="twitter_check_username" style="display:none"><%= Translator.trans(\'checking\') %>...</span>\n <span id="twitter_res_username"></span>\n <p id="twitter_invalid_username" class="wsl_error" style="display:none"><%= Translator.trans(\'username.not.valid.format\') %></p>\n <span class="mhelp" id="info"><%= Translator.trans(\'think.again.message\') %> <strong><%= Translator.trans(\'cannot.change\') %></strong>. <%= Translator.trans(\'minimum.characters.message\') %></span>\n </label>\n </p>\n </div>\n <p class="mclear"><label for="condition_agree"><input type="checkbox" class="required" name="condition_agree" id="twitter_condition_agree" value="condition_agree"> <%= Translator.trans(\'accept.privacy.policy1\') %> <a target="_blank" id="politica" href="https://www.weblogssl.com/legal/"><strong><%= Translator.trans(\'accept.privacy.policy2\') %></strong></a>.</label></p>\n <p class="wsl_error" id="twitter_check_policy" style="display:none"><%= Translator.trans(\'accept.privacy.policy\') %></p>\n <div class="submit-area">\n <a id="cancel_twitter_register" class="cancel-link">Cancelar</a>\n <button id="twitter_register_button" type="submit" class="btn btn-primary button"><%= Translator.trans(\'sign.up\') %></button>\n </div>\n </form>\n </div>\n')({screen_name:this.screenName})),this.wslResUsername=$("#twitter_res_username"),this.twitrButton=$("#twitter_register_button"),this.wslUsername=$("#twitter_username"),this.wslCheckUsername=$("#twitter_check_username"),this.wslCheckEmail=$("#twitter_check_email"),this.wslInvalidUsername=$("#twitter_invalid_username"),this.wslEmailInvalid=$("#twitter_email_invalid"),this.wslTwitregInvalid=$("#twitter_registration_invalid"),this.wslEmail=$("#twitter_email"),this.wslCheckPolicy=$("#twitter_check_policy"),this.wslConditionAgree=$("#twitter_condition_agree"),this.nicenameNotReqd=$("#twitter_nicename_not_reqd"),this.usernameBox=$("#twitter-username-box")}}])&&Ja(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ga.View),il(Va.prototype,"setEmail",[Wa],Object.getOwnPropertyDescriptor(Va.prototype,"setEmail"),Va.prototype),il(Va.prototype,"set_condition",[za],Object.getOwnPropertyDescriptor(Va.prototype,"set_condition"),Va.prototype),il(Va.prototype,"check_username",[Ba],Object.getOwnPropertyDescriptor(Va.prototype,"check_username"),Va.prototype),il(Va.prototype,"save_register",[Ha],Object.getOwnPropertyDescriptor(Va.prototype,"save_register"),Va.prototype),il(Va.prototype,"closeTwitterRegistrationForm",[Fa],Object.getOwnPropertyDescriptor(Va.prototype,"closeTwitterRegistrationForm"),Va.prototype),il(Va.prototype,"cancel_register",[Ua],Object.getOwnPropertyDescriptor(Va.prototype,"cancel_register"),Va.prototype),qa=Va))||qa);const ol=rl;var sl=n(2856);function al(e){return al="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},al(e)}function ll(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,cl(i.key),i)}}function cl(e){var t=function(e,t){if("object"!=al(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=al(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==al(t)?t:String(t)}function ul(e,t,n){return t=hl(t),function(e,t){if(t&&("object"===al(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dl()?Reflect.construct(t,n||[],hl(e).constructor):t.apply(e,n))}function dl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dl=function(){return!!e})()}function hl(e){return hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hl(e)}function fl(e,t){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fl(e,t)}WSL2.Auth.JST={},WSL2.Auth.JST["register/userLoginAvailable"]=sl.template("<%= Translator.trans('available.to.you') %>"),WSL2.Auth.JST["register/userLoginError"]=sl.template("<%= Translator.trans('not.available') %>"),WSL2.Auth.JST["login/wslLogin"]=sl.template('\n <ul>\n <li class="dropdown" id="fat-menu">\n <a data-toggle="dropdown" class="dropdown-toggle" role="button" id="drop3" href="#"><%= user.getName() %> <b class="caret"></b></a>\n <ul aria-labelledby="drop3" role="menu" class="dropdown-menu">\n <li><a class="logout" href="#" id=\'logout\'><%= Translator.trans(\'leave\') %></a></li>\n </ul>\n </li>\n </ul>\n <a class="picture" title="<%= Translator.trans(\'goto.user.page\') %>" href="/usuario/<%= user.getUserName() %>">\n <img alt="<%= Translator.trans(\'avatar\') %> <%= user.getUserName() %>" src="<%= user.getAvatar() %>" style="width:24px; height:24px">\n </a>\n'),WSL2.Auth.JST["login/loginBox"]=sl.template('\n <div class="modal">\n <div id=\'already_confirmed_notice_text\'>\n <p class="message-big aviso"><strong>Ya has confirmado tu cuenta</strong>. Puedes identificarte ahora:</p>\n </div>\n <h2><%= Translator.trans(\'signin.with.account\') %> <%= WSL2.config.siteName %>:</h2>\n <form class="mform login-form" action="" onSubmit="return false" target="_top" id="wsl_login_form">\n <p id="wsl_invalid_login" class="wsl_error"><%= Translator.trans(\'email.password.incorrect\') %></p>\n <p id="wsl_user_deactivated" class="wsl_error"><%= Translator.trans(\'user.deactivated.error.message\') %></p>\n <p>\n <label class="mblock mleft" for="ud_email">\n <%= Translator.trans(\'email\') %>:\n <input type="text" size="15" tabindex="1" value="" id="wsl_ud_email" name="ud_username" class="text">\n </label>\n <label class="mblock mleft mleft-last" for="ud_email">\n <%= Translator.trans(\'password\') %>:\n <input type="password" size="15" tabindex="2" value="" id="wsl_ud_pass" name="ud_pass" class="text">\n </label>\n </p>\n <div class="submit-area">\n <button id="wsl_login_button" tabindex="3" type="submit" class="button"><span><strong><%= Translator.trans(\'enter\') %></strong></span></button>\n </div>\n <p class="remember-password"><a id="forgot_pass" href="#" tabindex="4"><%= Translator.trans(\'forgot.password\') %></a></p>\n </form>\n <p id=\'dont_have_account_text\' class="informacion call-to"><%= Translator.trans(\'dont.have.account\') %> <a id="open_register" href="#"><strong><%= Translator.trans(\'register.here\') %></strong></a></p>\n <div class="login-3rd-part">\n <h2><%= Translator.trans(\'signin.with.account\') %> <%= WSL2.config.siteName %>:</h2>\n <p>\n <a id=\'facebook_login\' class=\'facebook-login\' href="#"><img src="https://img.weblogssl.com/g/xataka2/common/login-buttons-fb.png" alt="Facebook" /></a>\n <a id=\'twitter_login\' class=\'x-login\' href="#"><img src="https://img.weblogssl.com/g/xataka2/common/login-buttons-twitter.png" alt="X" /></a>\n </p>\n </div>\n </div>\n'),WSL2.Auth.JST["forgotPassword/forgotPassBox"]=sl.template('\n <div id="modal-remember-password">\n <div class="modal">\n <h2><%= Translator.trans(\'forgot.password\') %></h2>\n <p class="message status"><%= Translator.trans(\'email.with.new.password\') %></p>\n <form id="forgot_pass_form" class="mform" action="#" method="post" onSubmit="return false">\n <p id="wsl_email_invalid" class="wsl_error"><%= Translator.trans(\'not.registered\') %><a id="open_register" href="#"><%= Translator.trans(\'sign.up\') %></a>.</p>\n <p id="wsl_email_already" class="wsl_error"><%= Translator.trans(\'tried.recover.password\') %></p>\n <p id="wsl_user_deactivated" class="wsl_error"><%= Translator.trans(\'user.deactivated.error.message\') %></p>\n <p>\n <label for="ud_email"><%= Translator.trans(\'email\') %>:<br />\n <input type="text" size="35" id="ud_email" name="ud_username" class="text"></label>\n <button type="submit" id="send_button" class="button"><span><strong><%= Translator.trans(\'send\') %></strong></span></button>\n </p>\n </form>\n </div>\n </div>\n'),WSL2.Auth.JST["forgotPassword/emailSent"]=sl.template('\n <div class="modal">\n <h2><%= Translator.trans(\'forgot.password\') %></h2>\n <div class="mform">\n <p class="exito"><%= Translator.trans(\'sent.retrieve.password.link\') %><strong><%= email %></strong>.</p>\n <div class="submit-area">\n <button type="submit" class="button" onclick="$(\'#wsl_dialog\').dialog(\'close\')"><span><strong><%= Translator.trans(\'accept\') %></strong></span></button>\n </div>\n </div>\n </div>\n'),WSL2.Auth.JST["login/mailSent"]=sl.template('\n <div class="modal">\n <h2><%= Translator.trans(\'resend.activation.mail\') %></h2>\n <div class="mform">\n <p class="exito"><%= Translator.trans(\'sent.link.to.email\') %></p>\n <div class="submit-area">\n <button type="submit" class="button" onclick="$(\'#wsl_dialog\').dialog(\'close\')"><span><strong><%= Translator.trans(\'accept\') %></strong></span></button>\n </div>\n </div>\n </div>\n'),WSL2.Auth.JST["register/twitterRegisterSuccess"]=sl.template("\n <div class=\"modal\">\n <h2><%= Translator.trans('connected') %> <strong>twitter.com/<%= username %></strong> <%= Translator.trans('connected.with') %> <%= WSL2.config.siteName %></h2>\n <div class=\"mform\">\n <p class=\"exito\"><%= Translator.trans('sent.link.to.activate.account') %> <strong><%= email %></strong>.</p>\n <div class=\"submit-area\">\n <button onclick=\"$('#wsl_dialog').dialog('close')\" class=\"button\"><span><strong><%= Translator.trans('accept') %></strong></span></button>\n </div>\n </div>\n </div>\n"),WSL2.Auth.JST["register/registerSuccess"]=sl.template("\n <div id=\"modal-activation\">\n <div class=\"modal\">\n <h2><%= Translator.trans('activate.email.address') %> </h2>\n <div id=\"activation\" class=\"mform\">\n <p><span class=\"message exito\"><%= Translator.trans('thanks.for.signup') %> <%= WSL2.config.siteName %>.</span></p>\n <p><%= Translator.trans('sent.email.to') %> <strong><%= email %> </strong> <%= Translator.trans('with.instructions.to.activate') %> <strong><%= Translator.trans('check.spam') %></strong>.</p>\n <p><%= Translator.trans('important.for.safety.message') %></p>\n <p><%= Translator.trans('thanks.for.patience') %></p>\n <div class=\"submit-area\">\n <button onclick=\"$('#wsl_dialog').dialog('close')\" class=\"button\"><span><strong><%= Translator.trans('accept') %></strong></span></button>\n </div>\n </div>\n </div>\n </div>\n"),WSL2.Auth.JST["register/TwitterRegForm"]=sl.template('\n <div class="modal">\n <h2><%= Translator.trans(\'connect\') %> <strong>twitter.com/<%= screen_name %> </strong> <%= Translator.trans(\'connected.with\') %> <%= WSL2.config.siteName %>:</h2>\n <form id="fos_user_registration_form" class="mform" action="#" onSubmit="return false">\n <p class="wsl_error" id="wsl_twitreg_invalid" ></p>\n <p class="wsl_error" id="wsl_email_invalid" ><%= Translator.trans(\'email.not.valid.format\') %></p>\n <p>\n <label class="mblock mleft" for="email"><%= Translator.trans(\'email\') %>:\n <input type="text" size="25" tabindex="1" value="" id="wsl_email" name="wsl_email" class="text">\n </label>\n </p>\n <p id="wsl_check_email" class="mclear" style="display:none"><span id="check_username" ><%= Translator.trans(\'checking\') %>...</span></p>\n <p id="nicename_not_reqd" style="display:none" class="mclear message status"><%= Translator.trans(\'corresponds.to.email\') %> <strong id="username"><%= Translator.trans(\'kiddo\') %></strong>. <%= Translator.trans(\'register.associated\') %></p>\n <div id="username-box">\n <p class="mclear" >\n <label for="username">\n <%= Translator.trans(\'username\') %>:<br>\n <%= document.domain %>/usuario/ <input type="text" class="text" tabindex="2" name="user_name" id="wsl_username" size="25">\n <span id="wsl_check_username" style="display:none"><%= Translator.trans(\'checking\') %>...</span>\n <span id="wsl_res_username"></span>\n <p id="wsl_invalid_username" class="wsl_error"><%= Translator.trans(\'username.not.valid.format\') %></p>\n <span class="mhelp" id="info"><%= Translator.trans(\'think.again.message\') %> <strong><%= Translator.trans(\'cannot.change\') %></strong>. <%= Translator.trans(\'minimum.characters.message\') %></span>\n </label>\n </p>\n </div>\n <p class="mclear">\n <label for="condition_agree">\n <input type="checkbox" value="condition_agree" tabindex="3" id="wsl_condition_agree" name="condition_agree"> <%= Translator.trans(\'accept.privacy.policy1\') %> <a href="https://www.weblogssl.com/legal/"><%= Translator.trans(\'accept.privacy.policy2\') %></a>.\n </label>\n </p>\n <p class="wsl_error" id="wsl_check_policy"><%= Translator.trans(\'accept.privacy.policy\') %></p>\n <div class="submit-area">\n <button type="submit" id="wsl_twit_reg_button" class="button"><span><strong><%= Translator.trans(\'sign.up\') %></strong></span></button>\n <button id="wsl_cancel_twit_reg_button" class="button"><span><strong>Cancel</strong></span></button>\n </div>\n </form>\n </div>\n'),WSL2.Auth.JST["register/registerBox"]=sl.template('\n <div class="modal">\n <h2><%= Translator.trans(\'sign.in\') %> <%= WSL2.config.siteName %>:</h2>\n <form id="fos_user_registration_form" class="mform" action="#" onSubmit="return false">\n <p id="wsl_register_invalid" class="wsl_error"><%= Translator.trans(\'email.not.valid.format\') %></p>\n <p id="wsl_email_invalid" class="wsl_error"><%= Translator.trans(\'email.not.valid.format\') %></p>\n <p id="wsl_short_pwd" class="wsl_error"><%= Translator.trans(\'password.length.message\') %></p>\n <p id="wsl_pwd_not_match" class="wsl_error"><%= Translator.trans(\'passsword.donot.match\') %></p>\n <p>\n <label class="mblock mleft" for="email">\n <strong><%= Translator.trans(\'email\') %>: </strong>\n <input type="text" size="30" value="" id="wsl_email" name="fos_user_registration_form[email]" class="required text"/>\n </label>\n <label class="mblock mleft" for="password">\n <strong><%= Translator.trans(\'password\') %>:</strong>\n <input type="password" value="" id="wsl_password" name="fos_user_registration_form[plainPassword][first]" class="required text" size="20" />\n <span class="mhelp"><%= Translator.trans(\'password.length.message\') %></span>\n </label>\n <label class="mblock mleft mleft-last" for="confirm_password">\n <strong><%= Translator.trans(\'repeat.password\') %>:</strong>\n <input type="password" value="" id="wsl_confirm_password" name="fos_user_registration_form[plainPassword][second]" class="required text" size="20" />\n </label>\n </p>\n <p id="wsl_check_email" class="mclear" style="display:none"><span id="check_username" ><%= Translator.trans(\'checking\') %>...</span></p>\n <p id="nicename_not_reqd" style="display:none" class="mclear message status"><%= Translator.trans(\'already.a.username\') %> <%= WSL2.config.siteName %>: <strong id="username"><%= Translator.trans(\'kiddo\') %></strong></p>\n <p class="mclear" id="username-box">\n <label for="username">\n <strong><%= Translator.trans(\'username\') %>:</strong><br />\n <%= document.domain %>/usuario/ <input class="required text " type="text" name="user_name" id="wsl_username" value="" size="25" />\n <span id="wsl_check_username" style="display:none"><%= Translator.trans(\'checking\') %>...</span>\n <span id="wsl_res_username"></span>\n <span class="mhelp"><%= Translator.trans(\'think.again.message\') %> <strong><%= Translator.trans(\'cannot.change\') %></strong>. <%= Translator.trans(\'minimum.characters.message\') %></span>\n </label>\n </p>\n <p id="wsl_invalid_username" class="wsl_error"><%= Translator.trans(\'username.not.valid.format\') %></p>\n <p id="wsl_check_policy" class="wsl_error"><%= Translator.trans(\'accept.privacy.policy\') %></p>\n <p>\n <label for="condition_agree">\n <input type="checkbox" value="condition_agree" id="wsl_condition_agree" name="condition_agree" class="required" /> <%= Translator.trans(\'accept.privacy.policy1\') %> <a href="https://www.weblogssl.com/legal/" id="politica" target="_blank"><strong><%= Translator.trans(\'accept.privacy.policy2\') %></strong></a>.\n </label>\n </p>\n \n <div class="submit-area">\n <button id="wsl_register_button" type="submit" class="button" ><span><strong><%= Translator.trans(\'sign.up\') %></strong></span></button>\n </div>\n </form>\n <p id="already_acc" class="informacion call-to"><%= Translator.trans(\'already.have.account\') %> <a href="#"><strong><%= Translator.trans(\'sign.in.here\') %></strong></a></p>\n <div class="login-3rd-part">\n <h2><%= Translator.trans(\'login.with.account\') %>:</h2>\n <p>\n <a id=\'facebook_login\' class=\'facebook-login\' href="#"><img src="https://img.weblogssl.com/g/xataka2/common/login-buttons-fb.png" alt="Facebook" /></a>\n <a id=\'twitter_login\' class=\'x-login\' href="#"><img src="https://img.weblogssl.com/g/xataka2/common/login-buttons-twitter.png" alt="X" /></a>\n </p>\n </div>\n </div>\n'),WSL2.Auth.JST["register/twitterNotConfirmBox"]=sl.template("\n <div class=\"modal\">\n <h2><%= Translator.trans('account.not.on') %></h2>\n <div class=\"mform\">\n <p><%= Translator.trans('activate.link.message1') %> <%= WSL2.config.siteName %> <%= Translator.trans('activate.link.message2') %> <strong><%= Translator.trans('activate.link.message3') %></strong>.</p>\n <p><%= Translator.trans('look.in.spam') %> <strong> <a href=# id=\"confLink\"><%= Translator.trans('resend.activation.email') %></a> </strong></p>\n <div class=\"submit-area\">\n <button class=\"button\" onclick=\"$('#wsl_dialog').dialog('close')\"><span><strong><%= Translator.trans('close') %></strong></span></button>\n </div>\n </div>\n </div>\n"),WSL2.Auth.JST["register/fbRegisterBox"]=sl.template('\n <div class="modal">\n <h2><%= Translator.trans(\'connect\') %> <strong>facebook.com</strong> <%= Translator.trans(\'connected.with\') %> <%= WSL2.config.siteName %>:</h2>\n <form id="fos_fb_registration_form" class="mform" action="#" onSubmit="return false" method="post">\n <p class="wsl_error"><%= Translator.trans(\'username.already.chosen\') %> <a href="#"><%= Translator.trans(\'login.to.link.facebook\') %></a>.</p>\n <p>\n <label class="mclear" for="username">\n <%= Translator.trans(\'username\') %>:<br>\n <%= document.domain %>/usuario/ <input class="required text " type="text" name="user_name" id="wsl_username" value="" size="25">\n <span id="wsl_check_username" style="display:none"><%= Translator.trans(\'checking\') %>...</span>\n <span id="wsl_res_username" class="wsl_error"></span>\n <span class="mhelp"><%= Translator.trans(\'think.again.message\') %> <strong><%= Translator.trans(\'cannot.change\') %></strong>. <%= Translator.trans(\'minimum.characters.message\') %></span>\n </label>\n </p>\n <p id="wsl_invalid_username" class="wsl_error"><%= Translator.trans(\'username.not.valid.format\') %></p>\n <p id="wsl_check_policy" class="wsl_error"><%= Translator.trans(\'accept.privacy.policy\') %></p>\n <p>\n <label for="condition_agree">\n <input type="checkbox" value="condition_agree" id="wsl_condition_agree" name="condition_agree" class="required" /> <%= Translator.trans(\'accept.privacy.policy1\') %> <a href="https://www.weblogssl.com/legal/" id="politica" target="_blank"><%= Translator.trans(\'accept.privacy.policy2\') %>.</a>\n </label>\n </p>\n <div class="submit-area">\n <button type="submit" id="wsl_register_button" class="button"><span><strong><%= Translator.trans(\'sign.up\') %></strong></span></button>\n <button id="wsl_cancel_registration_button" class="button" ><span><strong>Cancel</strong></span></button>\n </div>\n </form>\n </div>\n'),WSL2.Auth.JST["register/facebookRegSuccess"]=sl.template("\n <div class=\"modal\">\n <h2><%= Translator.trans('connected') %> <strong>facebook.com</strong> <%= Translator.trans('connected.with') %> <%= WSL2.config.siteName %></h2>\n <div class=\"mform\">\n <p class=\"exito\"><%= Translator.trans('identified.can.participate') %> <%= WSL2.config.siteName %>.</p>\n <div class=\"submit-area\">\n <button onclick=\"$('#wsl_dialog').dialog('close')\" class=\"button\"><span><strong><%= Translator.trans('accept') %></strong></span></button>\n </div>\n </div>\n </div>\n"),WSL2.Auth.JST["login/nonLoggedUserbar"]=sl.template('\n <a href="#" class="register"><%= Translator.trans(\'sign.up\') %></a>\n <span>|</span>\n <a href="#" class="standard-login"><%= Translator.trans(\'enter\') %></a>\n <span><%= Translator.trans(\'log.in\') %></span>\n <a href="#" class="facebook-login">\n <img alt="Facebook" src="https://img.weblogssl.com/g/xataka2/common/fb.png" style="width:16px; height:16px">\n </a>\n <a href="#" class="x-login">\n <img alt="Twitter" src="https://img.weblogssl.com/g/xataka2/common/tw.png" style="width:16px; height:16px">\n </a>\n');var pl,ml,gl,vl,yl,bl,wl,_l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ul(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fl(e,t)}(t,e),n=t,(i=[{key:"getPostLink",value:function(){return"/auth/fbregister/"}},{key:"checkNiceName",value:function(e){var t=this;this.trigger("check-username-img"),$.get("/register/check_username/".concat(e),(function(e){1===parseInt(e,10)?t.trigger("username-used"):t.trigger("username-available")}))}},{key:"getPostData",value:function(e){return{nicename:e.username}}},{key:"sync",value:function(e,t){var n=this,i=t.attributes,r=this.getPostData(i),o=this.getPostLink();$.post(o,r,(function(e){-1!==e.indexOf("register_success")?n.trigger("register-success"):-1!==e.indexOf("nicename_success")?n.trigger("nicename-success"):n.trigger("register-fail",e)}))}},{key:"validate",value:function(e){var t=null;return this.attributes.username_required&&null!=e.username&&(3>e.username.length||!/^[a-z][a-z0-9_.]+$/.test(e.username))&&(this.trigger("invalid-username"),t=!0),null!=e.condition&&!0!==e.condition.prop("checked")&&(this.trigger("check-policy"),t=!0),t}}])&&ll(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(n(5544).Model),kl=n(5544);function Sl(e){return Sl="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},Sl(e)}function Tl(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,xl(i.key),i)}}function xl(e){var t=function(e,t){if("object"!=Sl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Sl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sl(t)?t:String(t)}function Cl(e,t,n){return t=Ol(t),function(e,t){if(t&&("object"===Sl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jl()?Reflect.construct(t,n||[],Ol(e).constructor):t.apply(e,n))}function jl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jl=function(){return!!e})()}function Ol(e){return Ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ol(e)}function El(e,t){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},El(e,t)}function Pl(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const Dl=(pl=kt("#wsl_dialog"),ml=St("change #wsl_username"),gl=St("change #wsl_condition_agree"),vl=St("click #wsl_register_button"),yl=St("click #wsl_cancel_registration_button"),pl((Pl((wl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Cl(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&El(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){WSL2.Events.trigger("facebookRegistrationWindowOpened"),this.model=new _l({username_required:!0}),this.model.bind("username-available",this.render_username_available,this),this.model.bind("username-used",this.render_username_error,this),this.model.bind("check-username-img",this.render_check_username_img,this),this.model.bind("invalid-username",this.render_short_username,this),this.model.bind("register-success",this.render_register_success,this),this.model.bind("nicename-success",this.render_register_success,this),this.model.bind("register-fail",this.render_register_failure,this),this.model.bind("check-policy",this.render_check_policy,this),this.model.bind("check-username-img",this.render_check_username_img,this),this.model.bind("error",this.render_enable_submit,this),this.render()}},{key:"render",value:function(){this.$el.html(WSL2.Auth.JST["register/fbRegisterBox"]()),$(".wsl_error").hide(),this.$el.dialog({height:350,width:700,modal:!0}),$("#wsl_username").focus()}},{key:"render_enable_submit",value:function(){$("#wsl_register_button").attr("disabled",!1).removeClass("disabled")}},{key:"render_disable_submit",value:function(){$("#wsl_register_button").attr("disabled",!0).addClass("disabled")}},{key:"render_register_success",value:function(){WSL2.Events.trigger("facebookRegistrationSuccess"),this.$el.dialog("close"),this.$el.html(WSL2.Auth.JST["register/facebookRegSuccess"]()),this.$el.dialog({height:232,width:540,modal:!0}),WSL2.session.loginFacebookBackend()}},{key:"render_register_failure",value:function(e){WSL2.Events.trigger("facebookRegistrationFailed"),this.render_enable_submit(),$("#wsl_invalid_username").html(e).show()}},{key:"render_short_username",value:function(){$("#wsl_username").addClass("mform-error"),$("#wsl_invalid_username").show(),this.render_enable_submit()}},{key:"render_check_policy",value:function(){$("#wsl_check_policy").show()}},{key:"render_username_available",value:function(){$("#wsl_check_username").hide(),$("#wsl_res_username").removeClass().addClass("username_success").html(WSL2.Auth.JST["register/userLoginAvailable"]()).show(),this.render_enable_submit()}},{key:"render_username_error",value:function(){$("#wsl_check_username").hide(),$("#wsl_res_username").removeClass().addClass("username_error").html(WSL2.Auth.JST["register/userLoginError"]()).show(),this.render_enable_submit()}},{key:"render_check_username_img",value:function(){$("#wsl_check_username").show()}},{key:"check_username",value:function(){this.render_enable_submit(),$("#wsl_invalid_username").hide(),$("#wsl_res_username").hide();var e=$("#wsl_username").val();this.model.set({username:e},{validate:!0}),this.model.get("username")===e&&this.model.checkNiceName(e)}},{key:"set_condition",value:function(){$("#wsl_check_policy").hide(),this.model.set({condition:$("#wsl_condition_agree")},{validate:!0})}},{key:"save_register",value:function(e){e.preventDefault(),e.stopPropagation(),this.render_disable_submit(),$(".wsl_error").hide(),this.model.save({username:$("#wsl_username").val(),condition:$("#wsl_condition_agree")})}},{key:"cancel_registration",value:function(e){e.preventDefault(),e.stopPropagation(),FB.api({method:"Auth.revokeAuthorization"}),this.$el.dialog("close")}}])&&Tl(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(kl.View)).prototype,"check_username",[ml],Object.getOwnPropertyDescriptor(wl.prototype,"check_username"),wl.prototype),Pl(wl.prototype,"set_condition",[gl],Object.getOwnPropertyDescriptor(wl.prototype,"set_condition"),wl.prototype),Pl(wl.prototype,"save_register",[vl],Object.getOwnPropertyDescriptor(wl.prototype,"save_register"),wl.prototype),Pl(wl.prototype,"cancel_registration",[yl],Object.getOwnPropertyDescriptor(wl.prototype,"cancel_registration"),wl.prototype),bl=wl))||bl);function Ll(e){return Ll="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},Ll(e)}function Al(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,Ml(i.key),i)}}function Ml(e){var t=function(e,t){if("object"!=Ll(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Ll(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ll(t)?t:String(t)}function $l(e,t,n){return t=Rl(t),function(e,t){if(t&&("object"===Ll(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Il()?Reflect.construct(t,n||[],Rl(e).constructor):t.apply(e,n))}function Il(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Il=function(){return!!e})()}function Nl(){return Nl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Rl(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},Nl.apply(this,arguments)}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rl(e)}function Wl(e,t){return Wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wl(e,t)}var zl,Bl,Hl,Fl,Ul,ql,Vl,Yl,Gl,Kl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$l(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wl(e,t)}(t,e),n=t,(i=[{key:"getPostLink",value:function(){return"/auth/tform"}},{key:"getPostData",value:function(e){return{form:{email:e.email,nicename:e.username}}}},{key:"getEmailCheckLink",value:function(){return"/auth/checkTwitterEmail/"}},{key:"checkEmail",value:function(e){var t=this;this.trigger("check-email-img"),$.get(this.getEmailCheckLink()+e,(function(e){"show"===e.result?("deactivated"===e.data?t.trigger("register-fail",Translator.trans("user.deactivated.error.message")):"email exists"===e.data?t.trigger("register-fail","Ya existe una cuenta con esa misma dirección de correo"):"invalid email"===e.data?t.trigger("register-fail",Translator.trans("email.domain.not.accepted")):t.trigger("hide-register-fail"),t.trigger("username-required")):t.trigger("username-not-required",e.data)}))}},{key:"validate",value:function(e){var n=Nl(Rl(t.prototype),"validate",this).call(this,e);return null!=e.email&&(/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i.test(e.email)||(this.trigger("email-invalid"),n=!0)),n}}])&&Al(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(_l),Jl=n(5544);function Xl(e){return Xl="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},Xl(e)}function Ql(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,Zl(i.key),i)}}function Zl(e){var t=function(e,t){if("object"!=Xl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Xl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xl(t)?t:String(t)}function ec(e,t,n){return t=nc(t),function(e,t){if(t&&("object"===Xl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tc()?Reflect.construct(t,n||[],nc(e).constructor):t.apply(e,n))}function tc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tc=function(){return!!e})()}function nc(e){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nc(e)}function ic(e,t){return ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ic(e,t)}function rc(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const oc=(zl=kt("#wsl_dialog"),Bl=St("change #wsl_email"),Hl=St("change #wsl_condition_agree"),Fl=St("change #wsl_username"),Ul=St("click #wsl_twit_reg_button"),ql=St("click #wsl_cancel_twit_reg_button"),Vl=St("click #cloze"),zl((rc((Gl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ec(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ic(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){this.name=e,WSL2.Events.trigger("twitterRegistrationWindowOpened"),this.screenName=this.name.screenName,this.model=new Kl({username_required:!0}),this.model.bind("email-invalid",this.render_invalid_email,this),this.model.bind("invalid-username",this.render_invalid_username,this),this.model.bind("valid-username",this.render_valid_username,this),this.model.bind("check-username-img",this.render_check_username_img,this),this.model.bind("check-email-img",this.render_check_email_img,this),this.model.bind("username-available",this.render_username_available,this),this.model.bind("check-policy",this.render_check_policy,this),this.model.bind("username-used",this.render_username_error,this),this.model.bind("register-success",this.render_register_success,this),this.model.bind("register-fail",this.render_register_failure,this),this.model.bind("hide-register-fail",this.render_hide_register_failure,this),this.model.bind("username-required",this.render_username_required,this),this.model.bind("username-not-required",this.render_username_not_required,this),this.model.bind("error",this.render_enable_submit,this),this.render()}},{key:"render",value:function(){var e=this;this.$el.html(WSL2.Auth.JST["register/TwitterRegForm"]({screen_name:this.screenName})),$(".wsl_error").hide(),this.$el.dialog({height:400,width:700,modal:!0,close:function(){return e.$el.unbind()}}),this.wsl_res_username=$("#wsl_res_username"),this.twitrButton=$("#wsl_twit_reg_button"),this.wsl_username=$("#wsl_username"),this.wsl_check_username=$("#wsl_check_username"),this.wsl_check_email=$("#wsl_check_email"),this.wsl_invalid_username=$("#wsl_invalid_username"),this.wsl_email_invalid=$("#wsl_email_invalid"),this.wsl_twitreg_invalid=$("#wsl_twitreg_invalid"),this.wsl_email=$("#wsl_email"),this.wsl_check_policy=$("#wsl_check_policy"),this.wsl_condition_agree=$("#wsl_condition_agree"),this.nicename_not_reqd=$("#nicename_not_reqd"),this.username_box=$("#username-box")}},{key:"render_enable_submit",value:function(){this.twitrButton.attr("disabled",!1),this.twitrButton.removeClass("disabled")}},{key:"render_invalid_email",value:function(){this.wsl_email_invalid.show(),this.wsl_email.addClass("mform-error")}},{key:"render_check_policy",value:function(){this.wsl_check_policy.show()}},{key:"render_check_username_img",value:function(){this.wsl_check_username.show()}},{key:"render_check_email_img",value:function(){this.username_box.hide(),this.wsl_username.val(""),this.nicename_not_reqd.hide(),this.wsl_check_email.show()}},{key:"render_username_available",value:function(){this.wsl_check_username.hide(),this.wsl_res_username.show(),this.wsl_username.removeClass("mform-error"),this.wsl_res_username.removeClass().addClass("username_success"),this.wsl_res_username.html(WSL2.Auth.JST["register/userLoginAvailable"]()),this.wsl_username.val(this.model.get("username"))}},{key:"render_username_error",value:function(){this.render_enable_submit(),this.wsl_check_username.hide(),this.wsl_username.val()?this.wsl_res_username.html(WSL2.Auth.JST["register/userLoginError"]()).removeClass().addClass("username_error").show():(this.wsl_invalid_username.hide(),this.wsl_username.removeClass("mform-error"),this.wsl_res_username.hide())}},{key:"render_invalid_username",value:function(){this.wsl_invalid_username.show(),this.wsl_username.addClass("mform-error")}},{key:"render_valid_username",value:function(){this.wsl_invalid_username.hide(),this.wsl_username.removeClass("mform-error")}},{key:"render_register_success",value:function(){WSL2.Events.trigger("twitterRegistrationSuccess");var e=this.model.get("email"),t=this.model.get("username");this.$el.dialog("close"),this.$el.html(WSL2.Auth.JST["register/twitterRegisterSuccess"]({email:e,username:t})),this.$el.dialog({height:280,width:540,modal:!0})}},{key:"render_register_failure",value:function(e){WSL2.Events.trigger("twitterRegistrationFailed"),this.render_enable_submit(),this.wsl_twitreg_invalid.html(e).show()}},{key:"render_hide_register_failure",value:function(){this.wsl_twitreg_invalid.html("").hide()}},{key:"render_username_required",value:function(){this.wsl_check_email.hide(),this.username_box.show(),this.wsl_res_username.html(""),this.model.set({username_required:!0},{validate:!0}),null!=this.screenName&&this.model.set({username:this.screenName.toLowerCase()},{validate:!0})}},{key:"render_username_not_required",value:function(e){this.wsl_check_email.hide(),this.nicename_not_reqd.show(),this.nicename_not_reqd.find("#username").html(e),this.wsl_condition_agree.focus(),this.wsl_check_email.hide(),this.username_box.hide(),this.model.set({username_required:!1},{validate:!0})}},{key:"set_email",value:function(){this.wsl_email_invalid.hide(),this.wsl_email.removeClass("mform-error");var e=this.wsl_email.val();this.model.set({email:e},{validate:!0}),this.model.get("email")===e&&this.model.checkEmail(e)}},{key:"set_condition",value:function(){this.wsl_check_policy.hide(),this.render_enable_submit(),this.model.set({condition:this.wsl_condition_agree},{validate:!0})}},{key:"check_username",value:function(){this.wsl_invalid_username.hide(),this.wsl_res_username.hide();var e=this.wsl_username.val();this.model.set({username:e},{validate:!0}),this.model.get("username")===e&&this.model.checkNiceName(e)}},{key:"save_register",value:function(e){e.preventDefault(),e.stopPropagation(),this.twitrButton.attr("disabled",!0).addClass("disabled"),$(".wsl_error").hide(),this.model.save({email:this.wsl_email.val(),username:this.wsl_username.val(),condition:this.wsl_condition_agree})}},{key:"cancel_register",value:function(){WSL2.session.logout(),this.close_dialog()}},{key:"close_dialog",value:function(){this.$el.dialog("close")}}])&&Ql(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Jl.View)).prototype,"set_email",[Bl],Object.getOwnPropertyDescriptor(Gl.prototype,"set_email"),Gl.prototype),rc(Gl.prototype,"set_condition",[Hl],Object.getOwnPropertyDescriptor(Gl.prototype,"set_condition"),Gl.prototype),rc(Gl.prototype,"check_username",[Fl],Object.getOwnPropertyDescriptor(Gl.prototype,"check_username"),Gl.prototype),rc(Gl.prototype,"save_register",[Ul],Object.getOwnPropertyDescriptor(Gl.prototype,"save_register"),Gl.prototype),rc(Gl.prototype,"cancel_register",[ql],Object.getOwnPropertyDescriptor(Gl.prototype,"cancel_register"),Gl.prototype),rc(Gl.prototype,"close_dialog",[Vl],Object.getOwnPropertyDescriptor(Gl.prototype,"close_dialog"),Gl.prototype),Yl=Gl))||Yl);var sc=n(5544);function ac(e){return ac="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},ac(e)}function lc(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,uc(i.key),i)}}function cc(e,t,n){return(t=uc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uc(e){var t=function(e,t){if("object"!=ac(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=ac(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ac(t)?t:String(t)}var dc=["/auth/comment-terms"],hc="wsl_user_status",fc=function(){function e(){var t=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cc(this,"checkInProgress",!1),cc(this,"validateUserStatus",(function(e){var n=new Date;new Date(sn.get(hc))>n?e():$.getJSON("/auth/api/user/".concat(t.cookie.getValue().user.GlobalId,"/status"),(function(i){"active"===i?(n.setTime(n.getTime()+9e5),new sn(hc,+n,n),e()):t.logout()}))})),cc(this,"showUserDeactivatedError",(function(){$("#nav-login").addClass("is-visible"),$("#wsl_invalid_user_deactivated").show()})),this.cookie=new WSL2.Cookie,this.cookie.hasSession()){var n=this.cookie.loginType(),i=this.cookie.getValue();if(!this.getLoginCookie()||"openid"===n||null!=i.user.Avatar)return void this.logout();this.validateUserStatus((function(){"standard"===n||"facebook"===n||"google"===n?(t.setUser(i),"google"===n&&WSL2.Events.trigger("googleLoginSuccessful")):t.loginTwitter()}));var r=window.location.hash.match(/^#_error=(.+)/);r&&("user_deactivated"===r[1]&&this.showUserDeactivatedError(),sc.history.navigate(""))}}var t,n;return t=e,(n=[{key:"setUser",value:function(e){WSL2.User.set(e),WSL2.Events.trigger("autoLogedIn",{userid:this.getUser().getUserId(),type:this.getUser().getLoginType()})}},{key:"getUser",value:function(){return WSL2.User}},{key:"setFacebookUser",value:function(e){var t=this;FB.api("/".concat(WSL2.config.fbApiVersion,"/me"),(function(n){e.user.Name=n.name,t.setUser(e),WSL2.Events.trigger("facebookLoginSuccessful")}))}},{key:"clearUser",value:function(){WSL2.User.set({login_type:"none"})}},{key:"loginFacebook",value:function(){var e=this;if(WSL2.fbLogin.isLoaded()){if(WSL2.fbLogin.isLoggedIn()){if(this.cookie.hasSession()&&"facebook"===this.cookie.loginType())return void this.setFacebookUser(this.cookie.getValue());if(!this.cookie.hasSession())return void this.loginFacebookBackend()}else this.cookie.hasSession()&&"facebook"===this.cookie.loginType()&&this.logout();this.loginTwitter()}else setTimeout((function(){return e.loginFacebook()}),200)}},{key:"loginTwitter",value:function(){this.cookie.hasSession()&&"twitter"===this.cookie.loginType()&&(this.setUser(this.cookie.getValue()),WSL2.Events.trigger("twitterLoginSuccessful"))}},{key:"registerTwitter",value:function(e){new oc({screenName:e}),new ol({screenName:e})}},{key:"loginFacebookBackend",value:function(){var e=this;setTimeout((function(){return e.facebookBackend()}),200)}},{key:"facebookBackend",value:function(){var e=this;if(!this.checkInProgress){this.checkInProgress=!0;var t=document.createElement("iframe");t.src="/auth/facebook",t.style.display="none",t.onload=function(){try{var n=JSON.parse(t.contentDocument.body.innerText);if(document.body.removeChild(t),"failure"===n.result)switch(n.msg){case"nicename_required":new Dl;break;case"user_deactivated":WSL2.fbLogin.logout(),e.showUserDeactivatedError()}else"success"===n.result&&e.setFacebookUser(n.data)}catch(e){}},document.body.appendChild(t)}}},{key:"logout",value:function(){var e=this;this.cookie.clearCookie(),$.ajax({url:"/auth/logout",success:function(){WSL2.Events.trigger("onLogOut"),"facebook"===e.getUser().getLoginType()&&WSL2.fbLogin.logout(),e.clearUser();var t=window.location.pathname;0===t.indexOf("/auth/")&&0>dc.indexOf(t)&&(window.location="/")}})}},{key:"getLoginCookie",value:function(){return sn.get("weblogssl_session")}}])&&lc(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();window.WSL2.session=new fc,n(7668);function pc(e){"undefined"!=typeof dataLayer&&null!==dataLayer&&dataLayer.push({adblock:e})}var mc=!1;function gc(){mc||($(".ad-box").hide(),function(){var e=[];if(WSL2.config.enableAdblockEcommerce)try{e=JSON.parse($("#js-adblock-products").text())}catch(e){}e.length&&($("#div-gpt-lat").parent().before(ht.default.template('\n <div class="related-alts">\n <style type="text/css">\n .m-pivot-aside { margin-top: -1px; margin-bottom: -1px; }\n .desvio.m-desvio-ecommerce.m-pivot-aside .desvio-figure { max-width: 80px; }\n </style>\n <p class="aside-title">Los favoritos de los lectores</p>\n <% for (var i = 0; i < products.length; i++) { %>\n <% var productUrl = WSL2.config.desktopSiteUrl + \'/redirect?url=\' + encodeURIComponent(products[i].url) + \'&category=adblock\'; %>\n <div class="desvio m-desvio-ecommerce m-pivot-aside">\n <div class="desvio-figure">\n <a href="<%= productUrl %>" target="_blank" rel="nofollow">\n <img src="<%= products[i].image %>">\n </a>\n </div>\n <div class="desvio-summary">\n <a href="<%= productUrl %>" class="desvio-title" target="_blank" rel="nofollow"><%= products[i].title %></a>\n <div class="desvio-actions">\n <div class="desvio-actions-row">\n <a href="<%= productUrl %>" class="desvio-action-primary" target="_blank" rel="nofollow">\n <%= products[i].price %><%= \'EUR\' === products[i].currency ? \'€\' : \'\' %>\n </a>\n </div>\n </div>\n </div>\n </div>\n <% } %>\n <p></p>\n </div>\n')({products:e})),$("#div-gpt-lat").parents(".section-recent-aside").removeClass("sticky-banner"))}(),mc=!0,pc(!0))}try{var vc=new FuckAdBlock({checkOnLoad:!1});vc.setOption("baitClass","pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links adBanner"),vc.setOption("baitStyle","width: 4px !important; height: 4px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"),vc.onDetected(gc),vc.onNotDetected((function(){pc(!1)})),vc.check()}catch(e){gc()}var yc="".concat(WSL2.config.desktopSiteUrl,".mx"),bc='\n <div class="floating-box-container m-floating-box-'.concat(WSL2.config.blogMeta.siteName,'">\n <div class="floating-box">\n <img src="https://img.weblogssl.com/g/r/svg/').concat(WSL2.config.blogMeta.siteName,'.svg" alt="').concat(WSL2.config.siteName,'">\n <p>').concat({xataka:"¡La mayor comunidad de apasionados por la tecnología también está en México!",directoalpaladar:"¡Los espectaculares sabores de la cocina también están en México!"}[WSL2.config.blogMeta.siteName],'\n <a href="').concat(yc,'">').concat(yc.replace("https://",""),'</a>\n </p>\n <span class="close close-sticky js-floating-box-close"></span>\n </div>\n </div>\n');const wc=function(){var e=$("#cookies-overlay").addClass("js-floating-box-container").removeClass("cookies-overlay");e.html(bc),e.find("a").click((function(){ga("send","event","geo-box-mx","click",WSL2.config.desktopSiteUrl)})),e.find("span").click((function(){e.html(""),ga("send","event","geo-box-mx","click","close");var t=new Date;t.setDate(t.getDate()+4e3),new sn("wsl_cookieOverlay",{cookieOverlay:!0,latinSiteOverlay:!0},t)}))};var _c,kc,Sc,Tc,xc,Cc=n(2856);function jc(e){return jc="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},jc(e)}function Oc(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,Ec(i.key),i)}}function Ec(e){var t=function(e,t){if("object"!=jc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=jc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jc(t)?t:String(t)}function Pc(e,t,n){return t=Lc(t),function(e,t){if(t&&("object"===jc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Dc()?Reflect.construct(t,n||[],Lc(e).constructor):t.apply(e,n))}function Dc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dc=function(){return!!e})()}function Lc(e){return Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lc(e)}function Ac(e,t){return Ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ac(e,t)}var Mc="wsl_cookieOverlay",$c=(_c=kt("#cookies-overlay"),kc=_t('\n <div class="cookies-wrapper">\n <a href="#" class="close">×</a>\n <p>\n Utilizamos cookies de terceros para generar estadísticas de audiencia y mostrar publicidad personalizada analizando tu navegación. Si sigues navegando estarás aceptando su uso.\n <a target="_blank" href="<%= WSL2.config.cookieDisclaimerPage ? WSL2.config.cookieDisclaimerPage : \'https://www.weblogssl.com/cookies\' %>">Más información </a>\n </p>\n </div>\n'),Sc=St("click .close"),_c(Tc=kc((xc=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pc(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ac(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){if(this.model=new(Gn().Model.extend({url:"/api/1.0/karma/"})),sn.has(Mc)||1===WSL2.session.cookie.cookieOverlay())try{var e=sn.get(Mc);"string"==typeof e&&(this.setCookie(!0,!1),e=sn.get(Mc)),!1===e.cookieOverlay?this.$el.html(Cc.template(this.template)()):!1===e.latinSiteOverlay&&this.renderFloatingBox()}catch(e){this.setCookie(!0,!1),this.renderFloatingBox()}else this.setCookie(!1,!1),this.$el.html(Cc.template(this.template)())}},{key:"closeOverlay",value:function(e){e.preventDefault(),this.$el.html(""),this.setOverlayCookie(),this.renderFloatingBox()}},{key:"setOverlayCookie",value:function(){WSL2.User.get("user")&&this.model.save(),this.setCookie(!0,!1)}},{key:"setCookie",value:function(e,t){var n=new Date;n.setDate(n.getDate()+4e3),new sn(Mc,{cookieOverlay:e,latinSiteOverlay:t},n)}},{key:"renderFloatingBox",value:function(){1===WSL2.config.showMxSiteFloatingBox&&"MX"===window.country&&wc()}}])&&Oc(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gn().View),function(e,t,n,i,r){var o={};Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}(xc.prototype,"closeOverlay",[Sc],Object.getOwnPropertyDescriptor(xc.prototype,"closeOverlay"),xc.prototype),Tc=xc))||Tc)||Tc);window.WSL2&&1!==WSL2.config.enableDidomiOverlay&&$((function(){return new $c})),n(1604);var Ic=WSL2.config.timeZone;1===WSL2.config.enableAdblockMonetization&&($("body").append('<div class="adsbygoogle" style="width:5px;"></div>'),r(document.querySelector("div.adsbygoogle").offsetWidth,{src:"https://cdn.unblockia.com/h.js",async:!0})),""!==WSL2.config.insuradsLink&&i({src:WSL2.config.insuradsLink,async:!0});var Nc=$(".video-boost-container").length;if(void 0!==WSL2.session.cookie&&(window.ga&&(Nc&&ga("set","dimension6","videoTag"),WSL2.session.cookie.hasSession()?(ga("set","userId",WSL2.session.cookie.value.user.GlobalId),ga("set","dimension1","yes:".concat(WSL2.session.cookie.loginType())),ga("rollUp.set","userId",WSL2.session.cookie.value.user.GlobalId),ga("rollUp.set","dimension1","yes:".concat(WSL2.session.cookie.loginType()))):(ga("set","dimension1","no"),ga("rollUp.set","dimension1","no")),ga("rollUp.send","pageview"),ga("send","pageview")),"undefined"!=typeof dataLayer&&(WSL2.session.cookie.hasSession()?dataLayer.push({dimension1:"yes:".concat(WSL2.session.cookie.loginType()),userId:WSL2.session.cookie.value.user.GlobalId}):dataLayer.push({dimension1:"no"}),Nc&&dataLayer.push({dimension6:"videoTag"}),dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),""!==WSL2.config.gtmContainerId&&i({src:"https://www.googletagmanager.com/gtm.js?id=".concat(WSL2.config.gtmContainerId)}),""!==WSL2.config.gtmContainerIdGlobal&&i({src:"https://www.googletagmanager.com/gtm.js?id=".concat(WSL2.config.gtmContainerIdGlobal)}),window.WSLModules&&WSLModules.recommendation))){var Rc=$("#recommendedPosts");W("recommendation".concat(WSLModules.recommendation.moduleConf),Rc[0],(function(){return""!==Rc.html()}))}var Wc=B()();$("time:not(.comment-time)").each((function(e,t){var n=$(t),i=n.attr("datetime"),r=Number.isFinite(i)?B().unix(i).local():B()(i).local(),o=n.data("format"),s=o&&1<=Wc.diff(r,"day",!0)?r.format(o):r.from(Wc);n.html(s);var a=n.data("postModifiedTime"),l=n.data("postReindexedOriginalTime");if(a){var c=n.data("postModifiedFormat"),u=Number.isFinite(a)?B().unix(a).tz(Ic):B()(a).tz(Ic);60<u.diff(r,"second")&&n.after("<time>Actualizado ".concat(u.format(c),"</time>"))}if(l){var d=B()(l).local();n.after("<time>Una versión anterior de este artículo se publicó en ".concat(d.format("MMMM").toLowerCase()," de ").concat(d.format("YYYY"),"</time>"))}})),$(".js-counter").on("keyup",(function(e,t){var n=$(t),i=$(n.data("target")),r=$(n.data("button")),o=Number(n.data("limit"))-n.val().length;i.html(o),0>o?r.attr("disabled",!0).addClass("btn-disabled"):r.attr("disabled",!1).removeClass("btn-disabled")})),Ae.init(),Re.init();var zc={init:function(e){var t=$(window),n=$(".head"),i=$(".js-article-social-share"),r=n.outerHeight(),o=t.height(),s=$(document).height(),a=r+n.offset().top;t.on("scrollup",(function(t,n){if(150<Math.abs(n.distance)){var r=$(window).scrollTop();r<a?(e(!1),i.removeClass("is-visible is-hidden")):r+o<s&&(e(!0),i.removeClass("is-hidden").addClass("is-visible"))}})).on("scrolldown",(function(){t.scrollTop()>r&&(e(!1),i.removeClass("is-visible").addClass("is-hidden"))}))}};const Bc=zc;if("undefined"!=typeof WSLModules&&WSLModules.hasOwnProperty("Overlay")){var Hc=!1;switch(W("overlay".concat(WSLModules.Overlay.moduleConf),(function(){return Hc})),WSLModules.Overlay.moduleConf){case"c1":case"c2":case"c4":Bc.init((function(e){Hc=e}))}}function Fc(e){return Fc="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},Fc(e)}function Uc(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,qc(i.key),i)}}function qc(e){var t=function(e,t){if("object"!=Fc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Fc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fc(t)?t:String(t)}n(7472);var Vc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"init",value:function(){WSL2.Events.bind("videoStarted",this.videoStarted),WSL2.Events.bind("videoFinished",this.videoFinished),WSL2.Events.bind("postShareByFacebookButtonClicked",this.postShareByFacebookButtonClicked),WSL2.Events.bind("postShareByFlipboardButtonClicked",this.postShareByFlipboardButtonClicked),WSL2.Events.bind("postShareByTwitterButtonClicked",this.postShareByTwitterButtonClicked),WSL2.Events.bind("postShareByEmailButtonClicked",this.postShareByEmailButtonClicked),WSL2.Events.bind("postShareByWhatsappButtonClicked",this.postShareByWhatsappButtonClicked),WSL2.Events.bind("subscribeLinkClicked",this.subscribeLinkClicked),WSL2.Events.bind("subscribeButtonClicked",this.subscribeButtonClicked),WSL2.Events.bind("commentPublished",this.postCommentPublished),WSL2.Events.bind("commentButtonClicked",this.commentButtonClicked),WSL2.Events.bind("editorialRecommendedPostClicked",this.editorialRecommendedPostClicked),WSL2.Events.bind("postShareByOverlayButtonClicked",this.postShareByOverlayButtonClicked),WSL2.Events.bind("recommendationLinkClicked",this.recommendationLinkClicked),WSL2.Events.bind("adblockDetectionImageClicked",this.adblockDetectionImageClicked),WSL2.Events.bind("adblockNetflixImageClicked",this.adblockNetflixImageClicked),WSL2.Events.bind("instagramFollowButtonClicked",this.instagramFollowButtonClicked),WSL2.Events.bind("instagramHeaderClicked",this.instagramHeaderClicked),WSL2.Events.bind("instagramListClicked",this.instagramListClicked),WSL2.Events.bind("instagramPhotoClicked",this.instagramPhotoClicked),WSL2.Events.bind("sagaWidgetClicked",this.sagaWidgetClicked),WSL2.Events.bind("telefonicaRecommendationNormalClicked",this.telefonicaRecommendationNormalClicked),WSL2.Events.bind("telefonicaRecommendationAmazonClicked",this.telefonicaRecommendationAmazonClicked),WSL2.Events.bind("loginLinkClicked",this.loginLinkClicked),WSL2.Events.bind("pivotArticleImageLinkClicked",this.pivotArticleImageLinkClicked),WSL2.Events.bind("pivotArticleSiteNameLinkClicked",this.pivotArticleSiteNameLinkClicked),WSL2.Events.bind("pivotArticleTitleLinkClicked",this.pivotArticleTitleLinkClicked),WSL2.Events.bind("pivotNewsletterSubscribeClicked",this.pivotNewsletterSubscribeClicked),WSL2.Events.bind("ecommerceProductLinkClicked",this.ecommerceProductLinkClicked),WSL2.Events.bind("ecommerceProductLinkClickedFromContent",this.ecommerceProductLinkClickedFromContent),WSL2.Events.bind("pivotExternalArticleSiteNameClicked",this.pivotExternalArticleSiteNameClicked),WSL2.Events.bind("pivotExternalArticleTitleClicked",this.pivotExternalArticleTitleClicked),WSL2.Events.bind("hookLogoClicked",this.hookLogoClicked),WSL2.Events.bind("hookImageClicked",this.hookImageClicked),WSL2.Events.bind("hookButtonClicked",this.hookButtonClicked),WSL2.Events.bind("hookTextLinkClicked",this.hookTextLinkClicked),WSL2.Events.bind("pivotFlipboardClicked",this.pivotFlipboardClicked)}},{key:"postShareByFacebookButtonClicked",value:function(e){var t=e.postName;I("postshare","postsharebyfacebook",t)}},{key:"postShareByFlipboardButtonClicked",value:function(e){var t=e.postName;I("postshare","postsharebyflipboard",t)}},{key:"postShareByTwitterButtonClicked",value:function(e){var t=e.postName;I("postshare","postsharebytwitter",t)}},{key:"postShareByEmailButtonClicked",value:function(e){var t=e.postName;I("postshare","postsharebyemail",t)}},{key:"postShareByWhatsappButtonClicked",value:function(e){var t=e.postName;I("postshare","postsharebywhatsapp",t)}},{key:"videoStarted",value:function(e){var t=e.postURL;I("video","started",t)}},{key:"videoFinished",value:function(e){var t=e.postURL;I("video","finished",t)}},{key:"subscribeLinkClicked",value:function(e){var t=e.email;I("subscribe","icons",t)}},{key:"subscribeButtonClicked",value:function(e){var t=e.email;I("subscribe","mail",t)}},{key:"postCommentPublished",value:function(){I("postcomments","comment_published")}},{key:"editorialRecommendedPostClicked",value:function(e){var t=e.postUrl;I("editorialRecommendations","click",t)}},{key:"postShareByOverlayButtonClicked",value:function(){I("overlayclick".concat(WSLModules.Overlay.moduleConf),"click")}},{key:"commentButtonClicked",value:function(e){var t=e.commentCount;I("commentbuttonclicked".concat(WSLModules.Comments.moduleConf),"click",t.toString())}},{key:"recommendationLinkClicked",value:function(){I("recommendationclick".concat(WSLModules.recommendation.moduleConf),"click")}},{key:"adblockDetectionImageClicked",value:function(){I("adblockDetectionImageClicked","click",window.location.pathname)}},{key:"adblockNetflixImageClicked",value:function(){I("post","click","Adblocker_Netflix_BM")}},{key:"instagramFollowButtonClicked",value:function(){I("ModuloInstagram","click","Botón",0)}},{key:"instagramHeaderClicked",value:function(){I("ModuloInstagram","click","Texto",0)}},{key:"instagramListClicked",value:function(){I("ModuloInstagram","click","Galería")}},{key:"instagramPhotoClicked",value:function(e){var t=e.number;I("ModuloInstagram","click","Foto_".concat(t),0)}},{key:"sagaWidgetClicked",value:function(e){var t=e.id;I("saga","click",t)}},{key:"telefonicaRecommendationNormalClicked",value:function(e){var t=e.link;I("telefonicaRecommendationNormal","click",t)}},{key:"telefonicaRecommendationAmazonClicked",value:function(e){var t=e.link;I("telefonicaRecommendationAmazon","click",t)}},{key:"loginLinkClicked",value:function(e){var t=e.loginFrom;I("loginLink","click",t)}},{key:"pivotArticleImageLinkClicked",value:function(e){var t=e.link;I("Pivot_network_imagen","click",t)}},{key:"pivotArticleSiteNameLinkClicked",value:function(e){var t=e.link;I("Pivot_network_site","click",t)}},{key:"pivotArticleTitleLinkClicked",value:function(e){var t=e.link;I("Pivot_network_titular","click",t)}},{key:"pivotNewsletterSubscribeClicked",value:function(e){var t=e.link;I("Pivot_newsletter_site","click",t)}},{key:"ecommerceProductLinkClicked",value:function(e){I("affiliateclick-content_pivot","click",e)}},{key:"ecommerceProductLinkClickedFromContent",value:function(e){I("affiliateclick-content_text-link","click",e)}},{key:"pivotExternalArticleSiteNameClicked",value:function(e){var t=e.link;I("Pivot_external_site","click",t)}},{key:"pivotExternalArticleTitleClicked",value:function(e){var t=e.link;I("Pivot_external_titular","click",t)}},{key:"hookLogoClicked",value:function(e){var t=e.link;I("Hook_Logo","click",t)}},{key:"hookImageClicked",value:function(e){var t=e.link;I("Hook_imagen","click",t)}},{key:"hookButtonClicked",value:function(e){var t=e.link;I("Hook_Boton","click",t)}},{key:"hookTextLinkClicked",value:function(e){var t=e.link;I("Hook_Texto","click",t)}},{key:"pivotFlipboardClicked",value:function(e){var t=e.link;I("Pivot_flipboard","click",t)}}],null&&Uc(t.prototype,null),n&&Uc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yc(e){return Yc="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},Yc(e)}function Gc(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,Kc(i.key),i)}}function Kc(e){var t=function(e,t){if("object"!=Yc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Yc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yc(t)?t:String(t)}var Jc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"init",value:function(){$("div.js-article-social-share .js-btn-facebook").bind("click",(function(e){WSL2.Events.trigger("postShareByFacebookButtonClicked",{postName:$(e.target).data("postname")})})),$("div.js-article-social-share .js-btn-twitter").bind("click",(function(e){WSL2.Events.trigger("postShareByTwitterButtonClicked",{postName:$(e.target).data("postname")})})),$("div.js-article-social-share .js-btn-email").bind("click",(function(e){WSL2.Events.trigger("postShareByEmailButtonClicked",{postName:$(e.target).data("postname")})})),$("div.js-article-social-share .js-btn-whatsapp").bind("click",(function(e){WSL2.Events.trigger("postShareByWhatsappButtonClicked",{postName:$(e.target).data("postname")})})),$(".js-mobile #overlay").find(".js-overlay-button").bind("click",(function(){WSL2.Events.trigger("postShareByOverlayButtonClicked")})),$(".js-mobile #overlay-recommendation").bind("click",(function(){WSL2.Events.trigger("postShareByOverlayButtonClicked")})),$(".js-mobile #sections, .js-mobile #headlines").find(".js-track-header-event").bind("click",(function(){WSL2.Events.trigger("headerLinkClicked")})),$(".js-mobile #recent-posts, .js-mobile #recent-videos").on("click","a",(function(){WSL2.Events.trigger("headerLinkClicked")})),$("#editorialRecommendedPosts li").bind("click",(function(e){WSL2.Events.trigger("editorialRecommendedPostClicked",{postUrl:e.target.parentNode.getAttribute("href")})})),$("#recommendedPosts").on("click","a.js-recommendation",(function(){WSL2.Events.trigger("recommendationLinkClicked")})),$(".btn-instagram-follow").bind("click",(function(e){WSL2.Events.trigger("instagramFollowButtonClicked",{link:$(e.currentTarget).attr("href")})})),$(".section-header-instagram a").bind("click",(function(e){WSL2.Events.trigger("instagramHeaderClicked",{link:$(e.currentTarget).attr("href")})})),$(".section-instagram-list").bind("click",(function(){WSL2.Events.trigger("instagramListClicked")})),$(".section-instagram-item a").bind("click",(function(e){WSL2.Events.trigger("instagramPhotoClicked",$(e.currentTarget).data())})),$(".js-saga-widget").on("click","div.card",(function(e){WSL2.Events.trigger("sagaWidgetClicked",{id:$(e.delegateTarget).data("id")})})),$("#tailormade-item").on("click",".js-telefonica-recommendation-normal a",(function(e){WSL2.Events.trigger("telefonicaRecommendationNormalClicked",{link:$(e.currentTarget).attr("href")})})),$("#tailormade-item").on("click",".js-telefonica-recommendation-amazon a",(function(e){WSL2.Events.trigger("telefonicaRecommendationAmazonClicked",{link:$(e.currentTarget).attr("href")})})),$("#sections").on("click",".js-login-link",(function(e){WSL2.Events.trigger("loginLinkClicked",{loginFrom:$(e.currentTarget).attr("id")})})),$(".js-desvio-figure a").on("click",(function(e){WSL2.Events.trigger("pivotArticleImageLinkClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-desvio-taxonomy a").on("click",(function(e){WSL2.Events.trigger("pivotArticleSiteNameLinkClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-desvio-title").on("click",(function(e){WSL2.Events.trigger("pivotArticleTitleLinkClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-pivot-newsletter-form").on("submit",(function(e){var t=$(e.currentTarget).attr("data-url"),n=$(e.currentTarget).find(".js-email").val();t=t.replace("#email#",n),WSL2.Events.trigger("pivotNewsletterSubscribeClicked",{link:t})})),$(".pivot-action-btn").on("click",(function(e){WSL2.Events.trigger("ecommerceProductLinkClicked",$(e.currentTarget).attr("href"))})),$(".js-ecommerce").on("click",(function(e){WSL2.Events.trigger("ecommerceProductLinkClickedFromContent",$(e.currentTarget).attr("href"))})),$(".js-external-article-site").on("click",(function(e){WSL2.Events.trigger("pivotExternalArticleSiteNameClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-external-article-title").on("click",(function(e){WSL2.Events.trigger("pivotExternalArticleTitleClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-hook .js-hook-header a").on("click",(function(e){WSL2.Events.trigger("hookLogoClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-hook .js-hook-content-img-container a").on("click",(function(e){WSL2.Events.trigger("hookImageClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-hook .js-hook-footer-container a").on("click",(function(e){WSL2.Events.trigger("hookButtonClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-hook .js-hook-content > a").on("click",(function(e){WSL2.Events.trigger("hookTextLinkClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-pivot-site-flipboard a, .js-pivot-magazine-flipboard a").on("click",(function(e){WSL2.Events.trigger("pivotFlipboardClicked",{link:$(e.currentTarget).attr("href")})})),$(".js-flipboard-share-event").on("click",(function(e){WSL2.Events.trigger("postShareByFlipboardButtonClicked",{postName:$(e.target).data("postname")})}))}}],null&&Gc(t.prototype,null),n&&Gc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xc(e){return Xc="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},Xc(e)}function Qc(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,tu(i.key),i)}}function Zc(e,t,n){return t&&Qc(e.prototype,t),n&&Qc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eu(e,t,n){return(t=tu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tu(e){var t=function(e,t){if("object"!=Xc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Xc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xc(t)?t:String(t)}var nu=Zc((function e(t){var n,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),eu(this,"alreadyStarted",!1),eu(this,"alreadyFinished",!1),eu(this,"onPlayerStateChange",(function(e){i.alreadyFinished||(YT.PlayerState.PLAYING!==e.data||i.alreadyStarted||(WSL2.Events.trigger("videoStarted",{postURL:window.location.pathname}),i.alreadyStarted=!0),YT.PlayerState.ENDED===e.data&&(WSL2.Events.trigger("videoFinished",{postURL:window.location.pathname}),i.alreadyFinished=!0))})),n=-1===t.getAttribute("src").indexOf("?")?"?":"&",t.setAttribute("src","".concat(t.getAttribute("src")+n,"enablejsapi=1&origin=").concat(window.location.origin)),this.player=new YT.Player(t,{events:{onStateChange:this.onPlayerStateChange}})}));function iu(e){return iu="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},iu(e)}function ru(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ou(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,au(i.key),i)}}function su(e,t,n){return t&&ou(e.prototype,t),n&&ou(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function au(e){var t=function(e,t){if("object"!=iu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=iu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==iu(t)?t:String(t)}var lu={pause:"pause",crash:"crash"},cu={hero:"video-streaming-hero",destacados:"video-streaming-slot123",sidebar:"video-streaming-slot45"},uu={},du=!1,hu=function(){function e(t){var n=this;ru(this,e),uu[cu[t.data("position")]]=lu,new YT.Player(t.element,{height:"270",width:"480",videoId:t.data("streamid"),playerVars:{playsinline:1,autoplay:1},events:{onReady:function(e){return n.onPlayerReady(e)},onStateChange:function(e){return n.onPlayerStateChange(e)},onError:function(){return n.onAnalyticsTrigger("crash")}}})}return su(e,[{key:"onPlayerReady",value:function(e){e.target.mute(),e.target.playVideo()}},{key:"onAnalyticsTrigger",value:function(e){var t=D(".js-streamings-video-title").html();Object.keys(uu).forEach((function(n){var i=uu[n][e];i&&I(n,i,t)}))}},{key:"onPlayerStateChange",value:function(e){du||(YT.PlayerState.PAUSED===e.data&&this.onAnalyticsTrigger("pause"),YT.PlayerState.ENDED===e.data&&(du=!0))}}]),e}(),fu=function(){function e(){ru(this,e)}return su(e,null,[{key:"initPlayers",value:function(e){new hu(e)}}]),e}();const pu=function(){var e=D("#youtubePlayer"),t=D('iframe[src*="youtube.com/embed"]');if(0!==t.length||0!==e.length){var n=function(){WSL2.config.hasOwnProperty("isStreamVideoAvailable")&&WSL2.config.isStreamVideoAvailable&&fu.initPlayers(e),t.each((function(e){return new nu(e.element)}))};r(0===D("#youtube-iframe-api").length,{src:"//www.youtube.com/iframe_api",id:"youtube-iframe-api"}),"undefined"!=typeof YT&&void 0!==YT.Player&&n(),window.onYouTubeIframeAPIReady=n}};var mu={init:function(){var e=function(e,t){var n=document.createElement("img");return n.style.display="none",n.src="//ab.blogs.es/abtest.png?".concat(e,"=").concat(t,"&device=").concat(WSL2.config.device),n},t=function(t,n){t.append(e(n,"view")).find("a").on("click",(function(i){i.preventDefault();var r=i.currentTarget.href,o=e(n,"click");o.onload=function(){window.location=r},t.append(o)}))};0<$("#editorialRecommendedPosts li").length?t($("#editorialRecommendedPosts"),"editorialRecommendations"):$(document).on("editorialRecommendationsRendered",(function(){t($("#editorialRecommendedPosts"),"editorialRecommendations")}))}};const gu=mu;Jc.init(),Vc.init(),pu(),gu.init();var vu,yu=n(2856);WSL2.config.enableLfeDriftNavigation&&(vu={slideInRight:"slideOutLeft",slideInLeft:"slideOutRight",fadeIn:"fadeOut"},$(".js-drift-link").click((function(e){e.preventDefault();var t=$(e.currentTarget),n=t.data("animation"),i=$(t.attr("href")),r=$(".is-drift-current");r.is(i)||(i.addClass("is-drift-current"),i.scrollTop(0),i.animateCss(n),vu[n]&&(vu[n]=yu.invert(vu)[n]),r.addClass("animating"),r.animateCss(vu[n],(function(){return r.removeClass("animating is-drift-current")})),$.event.trigger({type:"lfeslidechange"}))}))),n(7056);var bu=n(2856);function wu(e){return wu="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},wu(e)}function _u(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,ku(i.key),i)}}function ku(e){var t=function(e,t){if("object"!=wu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=wu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wu(t)?t:String(t)}new(function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$videos=t,"mobile"!==WSL2.config.device&&this.$videos.length&&(this.setup(),this.bindEventListeners())}var t,n;return t=e,(n=[{key:"setup",value:function(){var e=this;$(".js-dialog").length||$("body").append('<div class="js-dialog"></div>\n<div class="ui-widget-overlay video-light-box-overlay js-widget-overlay" style="display:none;"></div>'),this.$dialog=$(".js-dialog"),this.$overlayWidget=$(".js-widget-overlay").children("iframe"),this.overrideWidgetTitleMethod(),this.$dialog.dialog({autoOpen:!1,width:"1000px",open:function(){return e.$overlayWidget.show()},close:function(){e.$overlayWidget.hide(),e.$dialog.empty()},dialogClass:"video-light-box",draggable:!1,closeText:Translator.trans("frontend:close")})}},{key:"bindEventListeners",value:function(){var e=this;this.$videos.each((function(t,n){$(n).click((function(n){n.preventDefault(),e.currentVideo=t,e.renderPlayer()}))}))}},{key:"overrideWidgetTitleMethod",value:function(){$.widget("ui.dialog",$.extend({},$.ui.dialog.prototype,{_title:function(e){this.options.title?e.html(this.options.title):e.html(" ")}}))}},{key:"renderPlayer",value:function(){var e=$(this.$videos[this.currentVideo]),t=e.attr("data-player")||"youtube",n=e.attr("data-video-id");"youtube"===t&&this.renderYoutubePlayer(n),this.$dialog.dialog("option","title",bu.template('\n<a href="<%= titleUrl %>"><%= title %></a>\n')({title:e.attr("data-title")||" ",titleUrl:e.attr("data-title-url")||"javascript.void(0);"})),this.$dialog.dialog("open")}},{key:"renderYoutubePlayer",value:function(e){var t=encodeURIComponent(window.location.origin),n="//www.youtube.com/embed/".concat(e,"?enablejsapi=1&origin=").concat(t);this.$dialog.html('<iframe id="video" width="1000" height="560" frameborder="0" src="'.concat(n,'" allowfullscreen></iframe>'))}}])&&_u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}())($(".js-ficha-video"));var Su=navigator.userAgent.toLowerCase();0>Su.indexOf("ipod")&&(0<=Su.indexOf("android")||0<=Su.indexOf("iphone"))&&$(".js-whatsapp-btn").show(),$(".js-deal-toggle-btn").click((function(e){var t=$(e.target).closest(".js-ficha-compra-container"),n=t.find(".js-deal-list"),i=t.find(".js-deal-toggle-btn"),r=i.attr("data-deal-count");n.is(":visible")?i.text("Ver ".concat(r," ofertas más")):i.text("Ocultar ".concat(r," ofertas más")),n.toggle()})),$(".js-ficha-compra-facebook").each((function(e,t){var n=$(t);n.attr("href",n.attr("href").replace("POST_URL",encodeURIComponent(document.location.href)))}));var Tu={v1:'\n <% if (posts.length > 0) { %>\n <% var utmString = sourceInfo.name == blogName ? \'\' : \'?utm_source=\' + blogName + \'&utm_medium=network&utm_campaign=editorial_recommendation_section\' %>\n <div class="post-related-posts articles-full-width">\n <p class="post-related-<%= sourceInfo.name %>-title post-related-title">Recomendado en <%= sourceInfo.title %></p>\n <div class="post-related-content">\n <ul>\n <% posts.forEach(function(post) { %>\n <% var postUrl = sourceInfo.url + \'/\' + post.category_nicename + \'/\' + post.name + utmString %>\n <li class="horizontal-related-posts">\n <a href="<%= postUrl %>">\n <div class="recommendation-figure">\n <picture>\n <% var image_500_333 = post.primary_image.replace(\'image_dimension\', \'500_333\') %>\n <% var image_200_133 = post.primary_image.replace(\'image_dimension\', \'200_133\') %>\n <% var image_150_150 = post.primary_image.replace(\'image_dimension\', \'150_150\') %>\n <source class="sf-lazy" media="(min-width: 1023px)" sf-srcset="<%= image_500_333 %>">\n <source class="sf-lazy" media="(min-width: 767px)" sf-srcset="<%= image_200_133 %>">\n <source class="sf-lazy" sf-srcset="<%= image_150_150 %>">\n <img\n class="sf-lazy"\n sf-src="<%= image_150_150 %>"\n alt="<%= post.title %>"\n sf-srcset="<%= image_150_150 %>, <%= image_200_133 %> 767w, <%= image_500_333 %> 1023w"\n sizes="(min-width: 768px) 50vw, 100vw"\n >\n </picture>\n </div>\n </a>\n <a href="<%= postUrl %>"><span><%= post.title %></span></a>\n </li>\n <% }); %>\n </ul>\n </div>\n </div>\n <% }; %>\n ',v2:'\n <% if (posts.length > 0) { %>\n <% var utmString = \'?utm_source=\' + blogName + \'&utm_medium=network&utm_campaign=editorial_recommendation_section\' %>\n <% var title = sourceInfo.title.split(" ") %>\n <% var moreInfo = sourceInfo.text ? sourceInfo.text : title[title.length - 1] %>\n <div class="section-pinned">\n <header>\n <h2 class="section-pinned-header">\n <a href="<%= sourceInfo.url %>"><%= sourceInfo.title %></a>\n </h2>\n </header>\n\n <% if (\'mobile\' == WSL2.config.device) { %>'.concat('\n <input type="radio" name="slider" id="slide1" class="slide1" checked="checked">\n <input type="radio" name="slider" id="slide2" class="slide2">\n <input type="radio" name="slider" id="slide3" class="slide3">\n <input type="radio" name="slider" id="slide4" class="slide4">\n <div class="section-sliding-nav">\n <label for="slide1"></label>\n <label for="slide2"></label>\n <label for="slide3"></label>\n <label for="slide4"></label>\n </div>\n <div class="section-sliding-nav-active">\n <label for="slide1"></label>\n <label for="slide2"></label>\n <label for="slide3"></label>\n <label for="slide4"></label>\n </div>\n','<% }; %>\n\n <div class="section-sliding-container">\n <div class="section-sliding">\n <ul class="section-pinned-list">\n <% posts.forEach(function(post) { %>\n <% var postUrl = sourceInfo.url + \'/\' + post.category_nicename + \'/\' + post.name + utmString %>\n <li class="shortcut-article">\n <a class="shortcut-figure" href="<%= postUrl %>">\n <img alt="<%= post.title %>" class="sf-lazy" sf-src="<%= post.primary_image.replace(\'image_dimension\', \'500_500\') %>">\n </a>\n <h3 class="shortcut-title">\n <a href="<%= postUrl %>"><%= post.title %></a>\n </h3>\n </li>\n <% }); %>\n </ul>\n </div>\n </div>\n\n <div class="section-pinned-nav-container">\n <nav class="section-pinned-nav">\n <a class="section-pinned-nav-more" href="<%= sourceInfo.url %>"> Más <%= moreInfo %> </a>\n </nav>\n </div>\n </div>\n <% }; %>\n ')},xu=n(2856),Cu=function(e,t){var n=document.createElement("img");return n.style.display="none",n.src="//ab.blogs.es/abtest.png?".concat(e,"=").concat(t,"&device=").concat(WSL2.config.device),n};window.WSLModules&&WSLModules.Recommendations&&WSLModules.Recommendations.Editorial&&function(){var e=$("#editorialRecommendedPosts");if(e.length){var t=WSLModules.Recommendations.Editorial.version.toLowerCase();$.getJSON(WSLModules.Recommendations.Editorial.endpoint,(function(n){e.html(xu.template(Tu[t])({posts:n.posts.slice(0,4),blogName:n.blog_name,sourceInfo:n.source_blog_variables})),0<$("#editorialRecommendedPosts li").length&&function(e,t){e.append(Cu(t,"view")).find("a").on("click",(function(n){n.preventDefault();var i=n.currentTarget.href,r=Cu(t,"click");r.onload=function(){window.location=i},e.append(r)}))}(e,"editorialRecommendations")}))}}();var ju=n(2856),Ou=null,Eu=null,Pu=null,Du=null,Lu=null,Au=null,Mu=WSL2.config.device,$u=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.createElement("img");switch(r.style.display="none",e){case"recommendations":n="//ab.blogs.es/abtest.png?recommendationsAction=".concat(t,"&device=").concat(Mu,"&recommendationVersion=").concat(Au),Ou[0]&&(n+="&campaign=recommended_club"),i.containers&&(n+="&containers=".concat(i.containers));break;case"sidebarRecommendations":n="//ab.blogs.es/abtest.png?sidebarRecommendations=".concat(t,"&device=").concat(Mu,"&recommendationVersion=").concat(Au),i.containers&&(n+="&containers=".concat(i.containers));break;case"campaigns":n="//ab.blogs.es/abtest.png?event=".concat(t,"&campaignId=").concat(i.campaignId,"&medium=recommended_posts&device=").concat(Mu);break;case"editorialCampaigns":n="//ab.blogs.es/abtest.png?event=".concat(t,"&editorialCampaignId=").concat(i.editorialCampaignId)}return r.src=n,r};window.WSLModules&&WSLModules.Recommendations&&WSLModules.Recommendations.PostRecommendation&&function(){var e=$("#recommendedPosts"),t=$(".related-alts");$.getJSON(WSLModules.Recommendations.PostRecommendation.endpoint,(function(n){Au=n.version,e.length&&e.html(ju.template('\n <% if (posts.length > 0) { %>\n <% var randomNo = Math.floor((Math.random() * 8)) %>\n <% do { %>\n <% randomNoTwo = Math.floor(Math.random() * 8) %>\n <% } while(randomNo === randomNoTwo); %>\n\n <section id="relatedHorizontalPosts" class="post-related-posts articles-full-width related-horizontal-posts">\n <p class="section-title">También te puede gustar</p>\n <div class="post-related-content">\n <ul>\n <% posts.forEach(function(post, index) { %>\n <% if (randomNo == index && campaign) { %>\n <% var postUrl = campaign.post_url + \'?utm_source=\' + campaign.blog_name + \'&utm_medium=referral&utm_campaign=recommended_post\' %>\n <li class="horizontal-related-posts article-brand" id="campaignPost" data-url="<%= postUrl %>" data-campaignid="<%= campaign.campaign_id %>">\n <div class="article-disclaimer">\n <a href="<%= postUrl %>">Partner</a>\n </div>\n <a href="<%= postUrl %>">\n <div class="recommendation-figure">\n <img title="<%= campaign.title %>" src="<%= campaign.image %>" alt="<%= campaign.title %>">\n </div>\n </a>\n <a href="<%= postUrl %>"><span><%= campaign.title %></span></a>\n </li>\n <% } else if (randomNoTwo == index && editorialCampaign) { %>\n <li class="horizontal-related-posts article-brand" id="editorialCampaignPost" data-url="<%= editorialCampaign.post_url %>" data-editorialcampaignid="<%= editorialCampaign.campaign_id %>">\n <a href="<%= editorialCampaign.post_url %>">\n <div class="recommendation-figure">\n <picture>\n <% var image_500_333 = editorialCampaign.primary_image.replace(\'image_dimension\', \'500_333\') %>\n <% var image_200_133 = editorialCampaign.primary_image.replace(\'image_dimension\', \'200_133\') %>\n <% var image_150_150 = editorialCampaign.primary_image.replace(\'image_dimension\', \'150_150\') %>\n <source class="sf-lazy" media="(min-width: 1023px)" sf-srcset="<%= image_500_333 %>">\n <source class="sf-lazy" media="(min-width: 767px)" sf-srcset="<%= image_200_133 %>">\n <source class="sf-lazy" sf-srcset="<%= image_150_150 %>">\n <img\n class="sf-lazy"\n sf-src="<%= image_150_150 %>"\n sf-srcset="<%= image_150_150 %>, <%= image_200_133 %> 767w, <%= image_500_333 %> 1023w"\n alt="<%= editorialCampaign.title %>"\n sizes="(min-width: 768px) 50vw, 100vw"\n >\n </picture>\n </div>\n </a>\n <a href="<%= editorialCampaign.post_url %>"><span><%= editorialCampaign.title %></span></a>\n </li>\n <% } else { %>\n <% if (undefined == post.url) { %>\n <% post.url = \'/\' + post.category_nicename + \'/\' + post.name %>\n <% } %>\n <li class="horizontal-related-posts" <% if (post.id) { %> data-id="<%= post.id %>" <% }; %> <% if (post.container) { %> data-container="<%= post.container %>" <% }; %> >\n <a href="<%= post.url %>" class="js-recommendation">\n <div class="recommendation-figure">\n <picture>\n <% var image_500_333 = post.primary_image.replace(\'image_dimension\', \'500_333\') %>\n <% var image_200_133 = post.primary_image.replace(\'image_dimension\', \'200_133\') %>\n <% var image_150_150 = post.primary_image.replace(\'image_dimension\', \'150_150\') %>\n <source class="sf-lazy" media="(min-width: 1023px)" sf-srcset="<%= image_500_333 %>">\n <source class="sf-lazy" media="(min-width: 767px)" sf-srcset="<%= image_200_133 %>">\n <source class="sf-lazy" sf-srcset="<%= image_150_150 %>">\n <img\n class="sf-lazy"\n sf-src="<%= image_150_150 %>"\n sf-srcset="<%= image_150_150 %>, <%= image_200_133 %> 767w, <%= image_500_333 %> 1023w"\n alt="<%= post.title %>"\n sizes="(min-width: 768px) 50vw, 100vw"\n >\n </picture>\n </div>\n </a>\n <a href="<%= post.url %>" class="js-recommendation"><span><%= post.title %></span></a>\n </li>\n <% }; %>\n <% }); %>\n </ul>\n </div>\n </section>\n <% }; %>\n')({posts:n.posts.slice(0,8),campaign:n.campaign,editorialCampaign:n.editorialCampaign})),t.length&&t.append(ju.template('\n <% if (posts.length > 0) { %>\n <p class="aside-title">TE RECOMENDAMOS</p>\n <ul>\n <% posts.forEach(function(post) { %>\n <% if (undefined == post.url) { %>\n <% post.url = \'/\' + post.category_nicename + \'/\' + post.name %>\n <% } %>\n <li class="related-item"<% if (post.container) { %> data-container="<%= post.container %>"<% } %> >\n <a href="<%= post.url %>">\n <img\n src="<% if (post.primary_image) { %><%= post.primary_image.replace(\'image_dimension\', \'150_150\').replace(\'http:\', \'\') %><% } %>"\n alt="<%= post.title %>"\n >\n <div class="related-item-info">\n <h3 class="related-item-title"><%= post.title %></h3>\n </div>\n </a>\n </li>\n <% }) %>\n </ul>\n <% }; %>\n')({posts:n.posts.slice(-3)})),Ou=$("#campaignPost"),Eu=$("#editorialCampaignPost"),Pu=$("#relatedHorizontalPosts"),Du=$(".js-recommendation"),Lu=$(".horizontal-related-posts"),null!==Ou&&function(e){if(e[0]){var t=e[0].dataset.campaignid;e.append($u("campaigns","view",{campaignId:t})).on("click",(function(n){n.preventDefault();var i=e[0].dataset.url,r=$u("campaigns","click",{campaignId:t});r.onload=function(){window.location=i},e.append(r)}))}}(Ou),null!==Eu&&function(e){if(e[0]){var t=e[0].dataset.editorialcampaignid;e.append($u("editorialCampaigns","view",{editorialCampaignId:t})).on("click",(function(n){n.preventDefault();var i=e[0].dataset.url,r=$u("editorialCampaigns","click",{editorialCampaignId:t});r.onload=function(){window.location=i},Ou.append(r)}))}}(Eu),function(){if(null!==Du){for(var e=[],t=0;t<Lu.length;){var n=Lu[t++].getAttribute("data-container");n&&e.push(n)}Pu.append($u("recommendations","view",{containers:e.join()})),Array.prototype.slice.apply(Du).forEach((function(e){var t=e.parentNode.getAttribute("data-container");$(e).on("click",(function(e){e.preventDefault();var n=e.currentTarget,i=$u("recommendations","click",{containers:t});i.onload=function(){window.location=n.href},n.append(i)}))}))}}();var i=$(".related-alts");0<i.length&&function(e){var t=[],n=e.getElementsByTagName("a");Array.prototype.slice.apply(n).forEach((function(e){var n=e.parentNode.getAttribute("data-container");n&&t.push(n),$(e).on("click",(function(e){e.preventDefault();var t=e.currentTarget,i=t.href,r=$u("sidebarRecommendations","click",{containers:n});r.onload=function(){window.location=i},t.append(r)}))})),e.append($u("sidebarRecommendations","view",{containers:t.join()}))}(i[0])}))}(),n(3432),n(7525);var Iu="".concat(D("#authorJob").clientWidth+1,"px");function Nu(e){return Nu="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},Nu(e)}function Ru(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,Wu(i.key),i)}}function Wu(e){var t=function(e,t){if("object"!=Nu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Nu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nu(t)?t:String(t)}D("#authorJob").css("width",Iu),D("#authorJobRole").click((function(e){e.preventDefault(),D("#authorJob").toggleClass("is-open"),D("#authorBioWrap").toggleClass("is-open")})),D("#authorSocialWrap").click((function(e){e.stopPropagation()})),D(".toc-container").click((function(e){e.preventDefault(),D(".toc-header, .toc-list-wrap").toggleClass("is-open"),D(".toc-container").element.hasAttribute("open")?D(".toc-container").removeAttr("open"):D(".toc-container").attr("open","true")})),D(".toc-item-link").click((function(e){e.preventDefault(),D(".toc-item-link").removeClass("toc-active"),D(".toc-item","toc-sub-item").removeClass("toc-li-active"),D(e.currentTarget).addClass("toc-active").parent().addClass("toc-li-active"),window.location.hash=e.currentTarget.hash,e.stopPropagation()})),D(".toc-shortcut-icon").click((function(e){e.preventDefault();var t=D(e.currentTarget).parent().attr("id"),n="toc-container-".concat(t),i=D(".toc-container").element.cloneNode(!0);i.id=n;var r=document.getElementById(n);r?r.remove():D(e.currentTarget).parent().after(i),D(i).find(".toc-item-link").removeClass("toc-active"),D(i).find(".toc-item","toc-sub-item").removeClass("toc-li-active"),D(D(i).find(".toc-item-link").elements.find((function(e){return"#".concat(t)===e.hash}))).addClass("toc-active").parent().addClass("toc-li-active"),D(i).find(".toc-header, .toc-list-wrap").addClass("is-open"),D(i).attr("open","true"),D(i).find(".icon-folded").click((function(e){e.preventDefault(),D(i).remove()}))}));const zu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"init",value:function(){var e=this;document.addEventListener("sidebarRecommendationsRendered",(function(){return e.disablePinterestBtn(".related-alts img")})),$(document).on("editorialRecommendationsRendered",(function(){return e.disablePinterestBtn("#editorialRecommendedPosts img")})),document.addEventListener("recommendationsRendered",(function(){return e.disablePinterestBtn("#recommendedPosts img")})),this.disablePinterestBtn("img:not(.js-post-images-container img), .ficha img"),this.disablePinterestBtnOnGiphy()}},{key:"disablePinterestBtn",value:function(e){$(e).attr("data-pin-no-hover",!0)}},{key:"disablePinterestBtnOnGiphy",value:function(){if(window._giphy){var e=$(".article-asset-embed-giphy"),t=function(){return e.find("img").attr("data-pin-no-hover",!0)};if(t(),0!==window._giphy.length){var n=window.MutationObserver||window.WebKitMutationObserver;if(n){var i=new n((function(){t(),0===window._giphy.length&&i.disconnect()})),r={childList:!0,subtree:!0};e.each((function(e,t){return i.observe(t,r)}))}}}}}],null&&Ru(t.prototype,null),n&&Ru(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();var Bu,Hu=n(2856),Fu=n(5544);function Uu(e){return Uu="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},Uu(e)}function qu(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,Vu(i.key),i)}}function Vu(e){var t=function(e,t){if("object"!=Uu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Uu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uu(t)?t:String(t)}function Yu(e,t,n){return t=Ku(t),function(e,t){if(t&&("object"===Uu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Gu()?Reflect.construct(t,n||[],Ku(e).constructor):t.apply(e,n))}function Gu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gu=function(){return!!e})()}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ku(e)}function Ju(e,t){return Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ju(e,t)}const Xu=kt("#is-editor")(Bu=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Yu(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ju(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){WSL2.User.bind("change",this.render,this),this.render()}},{key:"render",value:function(){this.$el.html(Hu.template('\n<% if (isEditor) { %>\n <a class="article-edit-link" href="<%= WSL2.config.adminUrl %>/newposts/<%= postId %>"><strong><%= Translator.trans(\'edit\') %></strong></a>\n<% } %>\n')({postId:WSL2.config.postId,isEditor:WSL2.User.isEditor()}))}}])&&qu(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Fu.View))||Bu;function Qu(e){return Qu="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},Qu(e)}function Zu(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,ed(i.key),i)}}function ed(e){var t=function(e,t){if("object"!=Qu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Qu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qu(t)?t:String(t)}var td=$("#lightbox"),nd=$("#lightbox-image"),id=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"init",value:function(){this.setupDialog(),$(".js-elastislide-element li > a").on("click",this.openDialog),$(".js-lighbox-navigation").on("click",this.openDialog),td.on("click",this.closeDialog)}},{key:"setupDialog",value:function(){var e=$("html"),t=$("#ui-widget-overlay");td.dialog({autoOpen:!1,open:function(){t.show(),e.addClass("noscroll")},close:function(){t.hide(),nd.attr("src",""),e.removeClass("noscroll")},dialogClass:"video-light-box",draggable:!1,closeText:Translator.trans("close")})}},{key:"openDialog",value:function(e){e.preventDefault();var t=$("#".concat($(e.currentTarget).data("target"))),n=t.data();nd.attr("src",n.url);var i=t.parent(),r=i.next("li"),o=i.prev("li"),s=$(".lightbox-button-next"),a=$(".lightbox-button-previous");1===r.length?s.show().data({target:r.find("a").attr("id")}):s.hide(),1===o.length?a.show().data({target:o.find("a").attr("id")}):a.hide(),td.dialog("open")}}],(n=[{key:"closeDialog",value:function(e){e.preventDefault(),e.currentTarget.id===e.target.id&&td.dialog("close")}}])&&Zu(t.prototype,n),i&&Zu(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();const rd=id;var od=function(){var e="";WSL2.User.isUserLoggedIn()&&(e=WSL2.User.get("user").AuthorEmail),$(".js-pivot-newsletter-form .js-email").val(e)};function sd(e){return sd="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},sd(e)}function ad(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,ld(i.key),i)}}function ld(e){var t=function(e,t){if("object"!=sd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=sd(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sd(t)?t:String(t)}function cd(e,t,n){return t=dd(t),function(e,t){if(t&&("object"===sd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ud()?Reflect.construct(t,n||[],dd(e).constructor):t.apply(e,n))}function ud(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ud=function(){return!!e})()}function dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dd(e)}function hd(e,t){return hd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hd(e,t)}const fd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cd(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hd(e,t)}(t,e),n=t,(i=[{key:"url",value:function(){return"/api/1.0/comment/".concat(this.get("comment_id"),"/vote")}}])&&ad(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(n(5544).Model);function pd(e){return pd="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},pd(e)}function md(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,gd(i.key),i)}}function gd(e){var t=function(e,t){if("object"!=pd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=pd(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pd(t)?t:String(t)}function vd(e,t,n){return t=bd(t),function(e,t){if(t&&("object"===pd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,yd()?Reflect.construct(t,n||[],bd(e).constructor):t.apply(e,n))}function yd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yd=function(){return!!e})()}function bd(e){return bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bd(e)}function wd(e,t){return wd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wd(e,t)}const _d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),vd(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wd(e,t)}(t,e),n=t,(i=[{key:"url",value:function(){return"/api/1.0/comment/".concat(this.get("comment_id"),"/abuse")}}])&&md(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(n(5544).Model);var kd,Sd=n(5544);function Td(e){return Td="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},Td(e)}function xd(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,Ld(i.key),i)}}function Cd(e,t,n){return t=Od(t),function(e,t){if(t&&("object"===Td(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ed(e)}(e,jd()?Reflect.construct(t,n||[],Od(e).constructor):t.apply(e,n))}function jd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jd=function(){return!!e})()}function Od(e){return Od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Od(e)}function Ed(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pd(e,t){return Pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pd(e,t)}function Dd(e,t,n){return(t=Ld(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ld(e){var t=function(e,t){if("object"!=Td(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Td(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Td(t)?t:String(t)}var Ad=gt({giphys:[]})(kd=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return Dd(Ed(e=Cd(this,t,[].concat(i))),"collapsed",!1),Dd(Ed(e),"showReply",!1),Dd(Ed(e),"reply",null),Dd(Ed(e),"canVote",!0),Dd(Ed(e),"reportAbuse",!1),Dd(Ed(e),"editComment",!1),Dd(Ed(e),"editMode",!1),Dd(Ed(e),"hiddenReplyCount",0),Dd(Ed(e),"replyCount",0),Dd(Ed(e),"showTree",void 0),Dd(Ed(e),"processStatus",0),Dd(Ed(e),"error",""),e}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pd(e,t)}(t,e),n=t,i=[{key:"urlRoot",value:function(){return"/api/1.0/post/".concat(this.getPostId(),"/comments")}},{key:"initialize",value:function(){this.isIrrelevant()&&this.collapse()}},{key:"isIrrelevant",value:function(){return 5===this.get("comment_level")&&"1"===this.get("comment_approved")}},{key:"getPostId",value:function(){return this.get("post_id")||this.collection.postId}},{key:"getParentUserName",value:function(){var e=this.get("parent");if(null!=this.parentModel)return this.parentModel.escape("author")||this.parentModel.escape("user_name")||this.parentModel.get("user_id");if(e&&void 0!==this.collection&&this.collection.get("parent")){var t=this.collection.get(e);return t.escape("author")||t.escape("user_name")||t.get("user_id")}return""}},{key:"getStars",value:function(){var e=this.get("karma_level");return Math.ceil(e/20)}},{key:"setAbuse",value:function(){var e=this;if(WSL2.User.isNewlyRegistered())this.setError("new.user.report");else if(!this.reportAbuse){var t=new _d({comment_id:this.id}),n=function(){e.reportAbuse=!0,e.trigger("change")};t.once("sync",n).once("error",(function(e,t){t.responseJSON&&"Already voted"===t.responseJSON.error&&n()})),t.save()}}},{key:"enableEdit",value:function(){this.editMode=!0,this.trigger("change")}},{key:"setNonEditable",value:function(){this.editComment=!1}},{key:"collapse",value:function(){if(this.collapsed=!0,this.hasParent()&&this.collection.get(this.get("parent"))){var e=this.get("parent");++this.collection.get(e).hiddenReplyCount}this.collection.trigger("reset")}},{key:"showIrrelevantBar",value:function(){this.collapsed=!0;var e=this.collection.get(this.get("parent"));this.hasParent()&&e&&--e.hiddenReplyCount,this.collection.trigger("reset")}},{key:"unCollapse",value:function(){if(this.collapsed=!1,this.hasParent()&&this.collection.get(this.get("parent"))){var e=this.get("parent");--this.collection.get(e).hiddenReplyCount}this.collection.trigger("reset")}},{key:"getParentReplyCount",value:function(){var e=this.collection.get(this.get("parent"));return this.hasParent()&&e?e.hiddenReplyCount:0}},{key:"unCollapseChildren",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;this.showTree=!0,this.collection.unCollapseChildren(this.id,e)}},{key:"hasParent",value:function(){return this.get("parent")&&"0"!==this.get("parent")}},{key:"isReply",value:function(){return!this.isParent()}},{key:"isParent",value:function(){return 0===this.get("parent")||null===this.get("parent")}},{key:"getProperties",value:function(){var e=WSL2.User.isUserLoggedIn()?WSL2.User.getUserId():0,t=-1<(this.get("abuse_users")||[]).indexOf(e),n=this.toJSON(),i=0;return this.collection&&this.collection.commentStatus&&(i=this.collection.commentStatus),n.parentUserName=this.getParentUserName(),n.stars=this.getStars(),n.avatar_link=this.escape("avatar_link"),n.webpage=this.getWebPage(),n.user_name=this.getEscapedUserName(),n.content=this.get("content")||"",n.content_filtered=this.get("content_filtered")||"",n.valid=this.isValid(),n.abuse=this.reportAbuse||t,n.canVote=this.canVote,n.editComment=this.editComment,n.editMode=this.editMode,n.hiddenReplyCount=this.hiddenReplyCount,n.replyCount=this.replyCount,n.showTree=this.showTree,n.processStatus=this.processStatus,n.commentStatus=i,n.showReply=this.showReply,n.error=this.error,n}},{key:"getVisibility",value:function(){var e=this.get("parent");return e&&this.collection&&this.collection.commentStatus&&"visible"===this.collection.get(e).getVisibility()?"invisible":this.collapsed?"collapsed":"visible"}},{key:"toggleCollapse",value:function(){this.collapsed?this.unCollapse():this.collapse()}},{key:"createReply",value:function(){return this.reply=new t({post_id:this.collection.postId,parent:Number(this.id)}),this.reply.parentModel=this,this.reply.on("sync",this.addToCollection,this),this.reply}},{key:"enableReply",value:function(){this.error="",this.reply=this.createReply(),this.collection.each((function(e){return e.disableReply()})),this.showReply=!0,this.collection.trigger("reset")}},{key:"disableReply",value:function(){this.showReply=!1}},{key:"closeReply",value:function(){this.parentModel.disableReply(),this.error="",this.parentModel.trigger("change")}},{key:"createVote",value:function(e){var t=new fd({comment_id:this.id,value:e});this.value=e,t.on("sync",this.afterVote,this),t.save(),this.canVote=!1,this.trigger("change")}},{key:"afterVote",value:function(){var e=Number(this.get("vote_count"));this.set({vote_count:e+1})}},{key:"handleVoteUp",value:function(){this.createVote(1)}},{key:"handleVoteDown",value:function(){this.createVote(-1)}},{key:"onEditComment",value:function(){this.on("sync",this.onEditTrigger)}},{key:"onEditTrigger",value:function(){this.editMode=!1,this.trigger("change")}},{key:"makeCommentEditable",value:function(){var e=this;this.editComment=!0,setTimeout((function(){return e.makeCommentNonEditable()}),9e5)}},{key:"makeCommentNonEditable",value:function(){this.editComment=!1,this.trigger("change")}},{key:"validate",value:function(e){if(1!==WSL2.config.enableGiphyInComments||!e.giphys||!e.giphys.length)return!e.content||""===e.content}},{key:"addToCollection",value:function(e){e.off("sync"),this.collection.addComment(e,{at:1+this.collection.indexOf(e.parentModel)})}},{key:"softDelete",value:function(){this.destroy(),this.set("comment_approved","justDeleted")}},{key:"getWebPage",value:function(){var e=this.get("webpage");return e&&!e.match(/^https?:\/\//)&&(e="http://".concat(e)),e}},{key:"setProcessingStatus",value:function(e){this.processStatus=e}},{key:"getEscapedUserName",value:function(){var e=null;return this.get("user_name")&&(e=this.escape("user_name")),e}},{key:"setError",value:function(e){$(".error").hide(),this.clearError(),this.showReply&&this.enableReply(),this.error=e,this.trigger("change")}},{key:"clearError",value:function(){this.error="",this.trigger("change")}}],i&&xd(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Sd.Model))||kd;const Md=Ad;var $d='\n <div class="section-modal-actions">\n <form class="form-search-basic">\n <input class="form-input form-input-search js-keyword" type="text" value="<%= keyword %>" data-type="<%= dataType %>" placeholder="<%= Translator.trans(dataType + \'.search\') %>">\n <button class="form-search-button js-search-giphy" type="submit"><%= Translator.trans(\'search\') %></button>\n </form>\n </div>\n',Id='\n <div class="section-modal-container js-close-modal" id="section-<%= dataType %>" data-container="#section-<%= dataType %>">\n <div class="section-modal m-modal-user-config">\n <header class="section-modal-header">\n <h3 class="section-modal-heading m-title-giphy"><%= Translator.trans(\'add.\' + dataType) %></h3>\n <button class="btn-ico-close js-close-modal" data-container="#section-<%= dataType %>"></button>\n </header>\n <div class="section-modal-content m-vertical-edges">\n <ul class="list-thumbnails js-categories-list">\n <% categories.forEach(function(category) { %>\n <li class="list-thumbnails-item">\n <a class="list-thumbnails-anchor" href="#" data-category="<%= category.category_name %>" data-type="<%= dataType %>">\n <img src="<%= category.src %>" alt="<%= category.alt %>">\n <span class="list-thumbnails-anchor-caption" data-category="<%= category.category_name %>" data-type="<%= dataType %>"><%= category.category_name %></span>\n </a>\n </li>\n <% }); %>\n </ul> \n </div>\n '.concat($d,"\n </div>\n </div>\n"),Nd='\n <div class="section-modal-container js-close-modal" id="section-<%= dataType %>-images" data-container="#section-<%= dataType %>-images">\n <div class="section-modal m-modal-user-config">\n <header class="section-modal-header">\n <h3 class="section-modal-heading m-title-giphy"><%= Translator.trans(\'search\') %> "<%= keyword %>"</h3>\n <button class="btn-ico-close js-close-modal" data-container="#section-<%= dataType %>-images"></button>\n </header>\n <div class="section-modal-content m-vertical-edges">\n <div class="section-modal-disclaimer-logo">\n <img src="https://img.weblogssl.com/g/r/vendors/giphy-powered.png"/>\n </div>\n <% if (images.length) { %>\n <ul class="list-thumbnails">\n <% images.forEach(function(image) { %>\n <li class="list-thumbnails-item">\n <a href="#" class="js-add-giphy">\n <img src="<%= image.preview_src %>" alt="<%= image.alt %>" data-desktop-src="<%= image.desktop_src %>" data-mobile-src="<%= image.mobile_src %>" data-alt="<%= image.alt %>" data-type="<%= dataType %>"/>\n </a>\n </li>\n <% }); %>\n </ul>\n <% } else { %>\n <%= Translator.trans(\'results.not.found\') %>\n <% } %>\n </div>\n '.concat($d,"\n </div>\n </div>\n"),Rd='\n <% if (giphys.length) { %>\n <div class="comment-write-attachments">\n <ul class="comment-attachments-list">\n <% for (var i = 0; i < giphys.length; i++) { %>\n <li class="comment-attachments-list-item">\n <img class="comment-attachments-list-image" src="<%= giphys[i].mobile_src %>" alt="<%= giphys[i].alt %>" data-pin-no-hover="true">\n <a href="#" class="btn-remove-attachment js-remove-giphy" data-index="<%= i %>">\n <%= Translator.trans(\'button.remove\') %>\n </a>\n </li>\n <% } %>\n <% if (giphys.length < MAX_GIPHYS) { %>\n <li class="comment-attachments-list-item">\n <div class="comment-add-attachment">\n <button class="btn-add-attachment js-action-btn" data-type="gif">Gif</Button>\n <%= Translator.trans(\'add.upto.max.gifs\', { maxCount: MAX_GIPHYS }) %>\n </div>\n </li>\n <% } %>\n </ul>\n </div>\n <% } %>\n',Wd='\n <div class="article-comments-write">\n <% if (AML.Comments.config.status === \'open\') { %>\n <a class="btn btn-comment js-toggle show-comment <% if (\'boolean\' == typeof isCommentBoxOpen && isCommentBoxOpen) { %>is-opened<% } %>" href="#comments-write-form">Escribir comentario</a>\n <% } %>\n </div>\n',zd='\n <h2>\n <% if (commentCount == 0) { %> Sin comentarios <% } else if (commentCount == 1) { %>1 comentario <% } else { %> <%= commentCount %> comentarios <% } %>\n </h2>\n <div class="comments-common-actions ">\n <div class="context-menu comments-settings <% if (AML.Comments.config.status === \'closed\') { %>comments-settings-closed<% } %>">\n <a id="comments-sort-button" class="btn btn-context btn-settings js-toggle" href="#comments-options-menu">Opciones</a>\n <ul id="comments-options-menu" class="context-menu-list" style="display: none;">\n <li class="comment-actions-sort" data-orderby="valued" ><a href="#">Ver primero mejor valorados</a></li>\n <li class="comment-actions-sort" data-orderby="cronolog" ><a href="#">Primero más antiguos</a></li>\n <li class="comment-actions-sort" data-orderby="recent" ><a href="#">Primero más recientes</a></li>\n </ul>\n </div>\n '.concat(Wd,"\n </div>\n"),Bd='\n <p><a class="btn-primary btn-comment js-toggle-comments-list" href="#" id="login-comment">Entrar y enviar un comentario</a></p>\n',Hd="\n <% if(author) { %><%= _.escape(author) %><% } else if(user_name) { %><%= _.escape(user_name) %><% } else { %><%= user_id %><% } %>\n",Fd='\n <% if (status === "frozen" || status === "banned") { %>\n <p id="error-message" class="error"><%= Translator.trans(\'post.page.user.\' + status) %></p>\n <% } else if (error === "user.1star.no.link") { %>\n <p id="error-message" class="error">\n Lo sentimos, tu comentario contiene enlaces y no tienes suficiente karma para ponerlos. Por favor, edita tu comentario para publicarlo.\n </p>\n <% } else { %>\n <p id="error-message" class="error"><%= Translator.trans(\'post.page.\' + error, { blog: WSL2.config.siteName }) %></p>\n <% } %>\n',Ud='\n <div class="comment-author">\n <a class="comment-author-avatar" href="#usuario/<% if (user_name) { %><%= user_name %><% } else { %><%= user_id %><% } %>" title="Ir a la página de usuario de '.concat(Hd,'" rel="nofollow">\n <img\n class="user-avatar"\n src="<% if("gravatar" == avatar_type) { %><%= avatar_link %>?default=<%= WSL2.config.imagePath %>/images/avatar.jpg<% } else { %><%= avatar_link %><% } %>"\n alt="<%= Translator.trans(\'avatar\') %> <% if (user_name) { %><%= user_name %><% } else { %><%= user_id %><% } %>"\n >\n <% if (iseditor > 0) { %>\n <span class="comment-author-staff">Staff</span>\n <% } %>\n </a>\n <p class="comment-author-name">\n <a href="#usuario/<% if (user_name) { %><%= user_name %><% } else { %><%= user_id %><% } %>" rel="nofollow">\n ').concat(Hd,'\n </a>\n </p>\n <% if(stars > 0) { %>\n <div class="comment-author-stars">\n <% for (var i = 1; i <= stars; i++) { %>\n <span>*</span>\n <% } %>\n </div>\n <% } %>\n </div>\n'),qd='\n <div class="comment-author m-author-disabled">\n <span class="comment-author-avatar">\n <img class="user-avatar" src="<%= avatar_link %>" alt="<%= author %>">\n </span>\n <p class="comment-author-name">\n '.concat(Hd,"\n </p>\n </div>\n"),Vd='\n <div class="comment-write comment-write-edit">\n <form action="#" id="commentform">\n <div class="comment-input">\n <textarea name="text" rows="6" cols="60" required="true" id="editBox"><%= content %></textarea>\n </div>\n <div class="comment-submit">\n <button class="button" id="comment-edit-submit"><%= Translator.trans(\'save\') %></button>\n <a href="#" id="comment-edit-cancel"><%= Translator.trans(\'cancel\') %></a>\n </div>\n <% if (error) { %>\n '.concat(Fd,"\n <% } %>\n </form>\n </div>\n"),Yd='\n <fieldset class="comment-write-notify">\n <legend>Recibir por e-mail:</legend>\n <p><label><input type="radio" name="notify" value="1"> Todos</label></p>\n <p><label><input type="radio" name="notify" value="2"> Sólo respuestas a los míos</label></p>\n <p><label><input type="radio" name="notify" checked="checked" value="0"> Nada</label> </p>\n </fieldset>\n',Gd='\n <form action="#" method="post" class="commentform" onSubmit="return false">\n <div class="comment-write-terms"><a href="/auth/comment-terms" target="_blank">Normas <span>de participación</span></a></div>\n <div class="comment-write-author">\n <a href="#"><img class="user-avatar" src="<%= WSL2.config.imagePath %>/images/avatar.png" alt="Usuario"></a>\n <a class="loginModalBox js-open-login" href="#"> Entra para comentar </a>\n </div>\n <div class="comment-write-input">\n <textarea name="text" cols="60" rows="10" class="commentBox" required="true"><%= content %></textarea>\n </div>\n '.concat(Yd,'\n <div class="comment-submit">\n <% if (1 == WSL2.config.enableGiphyInComments) { %>\n <button class="btn-attach-gif js-open-login">Gif</button>\n <button class="btn-attach-sticker js-open-login">Smiley</button>\n <% } %>\n <button class="btn-primary btn-disabled comment-publish" disabled="disabled">Publicar</button>\n </div>\n </form>\n'),Kd='\n <form action="#" method="post" class="commentform" onSubmit="return false">\n <div class="comment-write-terms"><a href="/auth/comment-terms" target="_blank">Normas <span>de participación</span></a></div>\n <div class="comment-write-author">\n <a href="#usuario/<%= WSL2.User.getUserName() %>" rel="nofollow"><img src="<%= WSL2.User.getAvatar() %>"></a>\n <a href="#usuario/<%= WSL2.User.getUserName() %>" rel="nofollow"><strong><%= WSL2.User.getName() %></strong></a>\n </div>\n <div class="comment-write-input">\n <textarea cols="60" rows="10" class="commentBox jsCommentBox" required="true"><%= content %></textarea>\n </div>\n '.concat(Yd,'\n <% if (1 == WSL2.config.enableGiphyInComments) { %>\n <div class="js-giphys-preview">\n ').concat(Rd,"\n </div>\n <% } %>\n ").concat('\n <% if (1 == WSL2.config.enableGiphyInComments) { %>\n <% if (giphys.length >= MAX_GIPHYS) { %>\n <% var giphyBtnClass = \'btn-disabled\' %>\n <% var giphyBtnAttr = \'disabled="disabled"\' %>\n <% } %>\n <div class="comment-write-actions">\n <button class="btn-attach-gif js-action-btn <%= giphyBtnClass %>" data-type="gif" <%= giphyBtnAttr %>>Gif</button>\n <button class="btn-attach-sticker js-action-btn <%= giphyBtnClass %>" data-type="sticker" <%= giphyBtnAttr %>>Smiley</button>\n <button class="btn-primary btn-disabled comment-publish" disabled="disabled">Publicar</button>\n </div>\n <% } else { %>\n <button class="btn-primary btn-disabled comment-publish" disabled="disabled">Publicar</button>\n <% } %>\n',"\n <% if (error) { %>\n ").concat(Fd,'\n <% } %>\n </form>\n <div id="gif-category-container"></div>\n <div id="gif-images-container"></div>\n <div id="sticker-category-container"></div>\n <div id="sticker-images-container"></div>\n'),Jd='\n <form action="#" method="post" id="commentform" onSubmit="return false" class="comment-reply-form js-reply-form" style="display: block;">\n <div class="comment-write-terms"><a href="/auth/comment-terms" target="_blank">Normas <span>de participación</span></a></div>\n <div class="comment-write-author">\n <a href="#usuario/<%= WSL2.User.getUserName() %>" rel="nofollow"><img src="<%= WSL2.User.getAvatar() %>"></a>\n <a href="#usuario/<%= WSL2.User.getUserName() %>" rel="nofollow"><%= WSL2.User.getName() %></a>\n </div>\n <div class="comment-write-input">\n <textarea name="text" cols="60" rows="10" id="replyBox" class="jsCommentBox" required="true"><%= content %></textarea>\n </div>\n '.concat(Yd,'\n <button class="btn-primary btn-disabled" id="reply-publish" disabled="disabled">Responder</button>\n <span id="reply-cancel"><a href="#">Cancelar</a></span>\n <% if (error) { %>\n ').concat(Fd,"\n <% } %>\n </form>\n \x3c!-- #comment-reply-write --\x3e\n");function Xd(e){return Xd="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},Xd(e)}function Qd(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,eh(i.key),i)}}function Zd(e,t,n){return(t=eh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eh(e){var t=function(e,t){if("object"!=Xd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Xd(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xd(t)?t:String(t)}var th="weblogssl_comment_loc",nh="weblogssl_comment_text",ih="weblogssl_reply_text",rh="weblogssl_reply_parent_id",oh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"init",value:function(){var e=sn.get(th,"");e&&(this.commentLocation=e),(e=sn.get(nh,""))&&(this.commentText=e),(e=sn.get(ih,""))&&(this.commentReplyText=e),(e=sn.get(rh,""))&&(this.parentCommentId=e)}},{key:"setCookie",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=new Date;i.setDate(i.getDate()+1),new sn(th,window.location.pathname,i),new sn(e,t,i),e===ih&&new sn(rh,n,i)}},{key:"clearCookies",value:function(){sn.remove(th),sn.remove(nh),sn.remove(ih),sn.remove(rh),this.commentLocation=""}}],null&&Qd(t.prototype,null),n&&Qd(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Zd(oh,"commentLocation",""),Zd(oh,"commentText",""),Zd(oh,"commentReplyText",""),Zd(oh,"parentCommentId",0),oh.init();const sh=oh;var ah,lh,ch,uh,dh,hh,fh,ph,mh,gh,vh=n(2856),yh=n(5544);function bh(e){return bh="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},bh(e)}function wh(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 _h(e,t,n){return(t=Sh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kh(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,Sh(i.key),i)}}function Sh(e){var t=function(e,t){if("object"!=bh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=bh(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bh(t)?t:String(t)}function Th(e,t,n){return t=Ch(t),function(e,t){if(t&&("object"===bh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xh()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function xh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xh=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ch(e)}function jh(e,t){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jh(e,t)}function Oh(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var Eh=(ah=St("keyup .commentBox"),lh=St("click .js-action-btn"),ch=St("click .js-categories-list a"),uh=St("click .js-search-giphy"),dh=St("click .js-close-modal"),hh=St("click .comment-publish"),fh=St("click .js-open-login"),ph=St("click .js-add-giphy"),mh=St("click .js-remove-giphy"),gh=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Th(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jh(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){WSL2.User.on("change",this.render,this),this.model.on("change:giphys",this.onGiphyChange,this),this.render()}},{key:"render",value:function(){var e=this.model.getProperties(),t=sh.commentLocation,n=sh.commentText;t===window.location.pathname&&""!==n&&(this.model.set({content:n}),sh.clearCookies()),WSL2.User.isUserLoggedIn()?this.$el.html(vh.template(Kd)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wh(Object(n),!0).forEach((function(t){_h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({MAX_GIPHYS:3},e))):this.$el.html(vh.template(Gd)(e)),this.commentPublishButton=this.$el.find(".comment-publish"),this.toggleButton()}},{key:"onGiphyChange",value:function(){var e=this.model.get("giphys"),t=vh.template(Rd)({giphys:e,MAX_GIPHYS:3});this.$el.find(".js-giphys-preview").html(t),e.length>=3?this.$el.find(".js-action-btn").attr("disabled","disabled").addClass("btn-disabled"):this.$el.find(".js-action-btn").removeAttr("disabled").removeClass("btn-disabled"),this.toggleButton()}},{key:"toggleButton",value:function(){this.$el.find("textarea.commentBox").val().trim()||this.model.get("giphys").length?this.enableButton():this.disableButton()}},{key:"getCategories",value:function(e){var t=this;e.preventDefault();var n=$(e.target),i=n.data("type"),r=this.$el.find("#".concat(i,"-category-container"));if(r.is(":empty")){n.addClass("is-working").attr("disabled","disabled");var o="/api/1.0/giphy/".concat(i,"_categories");$.getJSON(o,(function(e){r.html(vh.template(Id)({categories:e,dataType:i})),t.openModal("#section-".concat(i)),n.removeClass("is-working").removeAttr("disabled")}))}else this.openModal("#section-".concat(i))}},{key:"getByCategory",value:function(e){e.preventDefault();var t=$(e.target).data();this.getGiphyImages(t.type,t.category)}},{key:"getByKeyword",value:function(e){e.preventDefault();var t=$(e.target).prev(),n=t.val(),i=t.data("type");this.getGiphyImages(i,n)}},{key:"getGiphyImages",value:function(e,t){var n=this,i="/api/1.0/giphy/".concat(e,"_search/").concat(t);$.getJSON(i,(function(i){n.$el.find("#".concat(e,"-images-container")).html(vh.template(Nd)({images:i,keyword:t,dataType:e})),n.$el.find(".is-block").removeClass("is-block"),n.openModal("#section-".concat(e,"-images"))}))}},{key:"openModal",value:function(e){this.$el.find(e).addClass("is-block"),this.disableScroll()}},{key:"closeModal",value:function(e){e.preventDefault(),e.target===e.currentTarget&&($($(e.target).data("container")).removeClass("is-block"),this.$el.find(".js-keyword").val(""),this.enableScroll())}},{key:"commentSubmitted",value:function(){WSL2.Events.trigger("commentPublished"),this.enableButton()}},{key:"enableScroll",value:function(){$("html").removeClass("noscroll")}},{key:"disableScroll",value:function(){$("html").addClass("noscroll")}},{key:"enableButton",value:function(){this.commentPublishButton.removeAttr("disabled").removeClass("btn-disabled")}},{key:"disableButton",value:function(){this.commentPublishButton.attr("disabled",!0).addClass("btn-disabled")}},{key:"onSubmit",value:function(e){var t=this;if(e.preventDefault(),WSL2.User.isNewlyRegistered())return this.model.setError("comment.new.user.time.disclaimer"),void this.render();this.disableButton(),null==e.isTrigger&&(this.updateModelProperties(),WSL2.User.isUserLoggedIn()?this.model.save({},{success:function(){t.commentSubmitted()},error:function(e,n){t.model.setError($.parseJSON(n.responseText).error),t.render()}}):(this.setCommentCookie(),this.navigateToLoginBox(e)))}},{key:"updateModelProperties",value:function(){this.model.set({content:this.$el.find("textarea.commentBox").val(),comment_subscribed:this.$el.find("input[type=radio][name=notify]:checked").val()},{silent:!0,validate:!0})}},{key:"navigateToLoginBox",value:function(e){e.preventDefault(),WSL2.User.setLocation("#comments"),an()?($("#nav-login, .js-overlay").addClass("is-open"),$(".js-body").addClass("is-modal-open")):$("#nav-login").addClass("is-visible"),$("html").addClass("noscroll ")}},{key:"setCommentCookie",value:function(){sh.setCookie(nh,$(".commentBox").val().trim())}},{key:"onGiphyAdd",value:function(e){e.preventDefault();var t=$(e.target).data(),n=vh.clone(this.model.get("giphys"));n.push({desktop_src:t.desktopSrc,mobile_src:t.mobileSrc,alt:t.alt}),this.model.set("giphys",n),this.$el.find("#section-".concat(t.type,"-images")).removeClass("is-block"),this.$el.find(".js-keyword").val(""),this.enableScroll()}},{key:"onGiphyRemove",value:function(e){e.preventDefault();var t=vh.clone(this.model.get("giphys"));t.splice($(e.target).data("index"),1),this.model.set("giphys",t)}}],i&&kh(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(yh.View),Oh(gh.prototype,"toggleButton",[ah],Object.getOwnPropertyDescriptor(gh.prototype,"toggleButton"),gh.prototype),Oh(gh.prototype,"getCategories",[lh],Object.getOwnPropertyDescriptor(gh.prototype,"getCategories"),gh.prototype),Oh(gh.prototype,"getByCategory",[ch],Object.getOwnPropertyDescriptor(gh.prototype,"getByCategory"),gh.prototype),Oh(gh.prototype,"getByKeyword",[uh],Object.getOwnPropertyDescriptor(gh.prototype,"getByKeyword"),gh.prototype),Oh(gh.prototype,"closeModal",[dh],Object.getOwnPropertyDescriptor(gh.prototype,"closeModal"),gh.prototype),Oh(gh.prototype,"onSubmit",[hh],Object.getOwnPropertyDescriptor(gh.prototype,"onSubmit"),gh.prototype),Oh(gh.prototype,"navigateToLoginBox",[fh],Object.getOwnPropertyDescriptor(gh.prototype,"navigateToLoginBox"),gh.prototype),Oh(gh.prototype,"onGiphyAdd",[ph],Object.getOwnPropertyDescriptor(gh.prototype,"onGiphyAdd"),gh.prototype),Oh(gh.prototype,"onGiphyRemove",[mh],Object.getOwnPropertyDescriptor(gh.prototype,"onGiphyRemove"),gh.prototype),gh);const Ph=Eh;var Dh,Lh,Ah,Mh,$h=n(2856),Ih=n(5544);function Nh(e){return Nh="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},Nh(e)}function Rh(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,Wh(i.key),i)}}function Wh(e){var t=function(e,t){if("object"!=Nh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Nh(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nh(t)?t:String(t)}function zh(e,t,n){return t=Hh(t),function(e,t){if(t&&("object"===Nh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bh()?Reflect.construct(t,n||[],Hh(e).constructor):t.apply(e,n))}function Bh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bh=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hh(e)}function Fh(e,t){return Fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fh(e,t)}var Uh=(Dh=kt("#bottom-create-comment-widget"),Lh=St("click .show-comment"),Dh((Mh=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zh(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fh(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){0<this.collection.length&&this.$el.html($h.template(Wd)())}},{key:"showCommentBox",value:function(e){e.preventDefault(),"open"===AML.Comments.config.status&&($("#bottom-comments-write-form").toggle(),$(e.currentTarget).toggleClass("is-opened"))}}])&&Rh(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ih.View),function(e,t,n,i,r){var o={};Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}(Mh.prototype,"showCommentBox",[Lh],Object.getOwnPropertyDescriptor(Mh.prototype,"showCommentBox"),Mh.prototype),Ah=Mh))||Ah);const qh=Uh;var Vh,Yh,Gh=n(2856),Kh=n(5544);function Jh(e){return Jh="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},Jh(e)}function Xh(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,Qh(i.key),i)}}function Qh(e){var t=function(e,t){if("object"!=Jh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Jh(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jh(t)?t:String(t)}function Zh(e,t,n){return t=tf(t),function(e,t){if(t&&("object"===Jh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ef()?Reflect.construct(t,n||[],tf(e).constructor):t.apply(e,n))}function ef(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ef=function(){return!!e})()}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tf(e)}function nf(e,t){return nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nf(e,t)}var rf=(Vh=St("click"),Yh=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Zh(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nf(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){this.options=e||{},this.collection.bind("add reset",this.render,this),this.render()}},{key:"render",value:function(){this.collection.hasMore()?(this.$el.show(),this.$el.html(Gh.template('\n <div class="view-even-more">\n <a class="btn-primary btn-comment js-toggle-comments-list" href="#">Ver <%= remaining %> más</a>\n </div>\n')({remaining:this.collection.getRemaining()}))):(this.$el.html(""),this.$el.hide())}},{key:"onClick",value:function(e){e.preventDefault(),this.collection.fetchMoreWithLimit(this.options.commentsLimit,!this.options.openAllReplies)}}])&&Xh(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Kh.View),function(e,t,n,i,r){var o={};Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}(Yh.prototype,"onClick",[Vh],Object.getOwnPropertyDescriptor(Yh.prototype,"onClick"),Yh.prototype),Yh);const of=rf;var sf,af=n(2856),lf=n(5544);function cf(e){return cf="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},cf(e)}function uf(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,df(i.key),i)}}function df(e){var t=function(e,t){if("object"!=cf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=cf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cf(t)?t:String(t)}function hf(e,t,n){return t=pf(t),function(e,t){if(t&&("object"===cf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ff()?Reflect.construct(t,n||[],pf(e).constructor):t.apply(e,n))}function ff(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ff=function(){return!!e})()}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pf(e)}function mf(e,t){return mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mf(e,t)}const gf=kt("div.view-more")(sf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hf(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mf(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){this.options=e||{},this.options.show?(this.collection.bind("all",this.render,this),this.render()):this.$el.remove()}},{key:"render",value:function(){this.$el.find("span#comment-count").html(af.template("\n <% if (commentCount == 0) { %> comentario <% } else if (commentCount == 1) { %>1 comentario <% } else { %> <%= commentCount %> comentarios <% } %>\n")({commentCount:this.collection.getTotalCommentCount()}))}}])&&uf(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(lf.View))||sf;var vf,yf,bf,wf,_f=n(2856),kf=n(5544);function Sf(e){return Sf="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},Sf(e)}function Tf(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,xf(i.key),i)}}function xf(e){var t=function(e,t){if("object"!=Sf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Sf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sf(t)?t:String(t)}function Cf(e,t,n){return t=Of(t),function(e,t){if(t&&("object"===Sf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jf()?Reflect.construct(t,n||[],Of(e).constructor):t.apply(e,n))}function jf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jf=function(){return!!e})()}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Of(e)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ef(e,t)}var Pf=(vf=yt("view-more"),yf=St("click #login-comment"),vf((wf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Cf(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ef(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){"open"===AML.Comments.config.status&&(this.options=e||{},WSL2.User.on("change",this.render,this),this.render())}},{key:"render",value:function(){if(WSL2.User.isUserLoggedIn())return this.$el.html(""),void $("#comments-area, #comments-write-form").show();0<this.options.comments.length?$("#comments-area, #comments-write-form").show():($("#comments-area, #comments-write-form").hide(),this.$el.html(_f.template(Bd)()))}},{key:"showLoginMenu",value:function(e){e.preventDefault(),an()?($("#nav-login, .js-overlay").addClass("is-open"),$(".js-body").addClass("is-modal-open")):$("#nav-login").addClass("is-visible"),$("html").addClass("noscroll "),sh.setCookie(nh,"")}}])&&Tf(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(kf.View),function(e,t,n,i,r){var o={};Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}(wf.prototype,"showLoginMenu",[yf],Object.getOwnPropertyDescriptor(wf.prototype,"showLoginMenu"),wf.prototype),bf=wf))||bf);const Df=Pf;var Lf,Af,Mf,$f,If,Nf=n(2856);function Rf(e){return Rf="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},Rf(e)}function Wf(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,zf(i.key),i)}}function zf(e){var t=function(e,t){if("object"!=Rf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Rf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rf(t)?t:String(t)}function Bf(e,t,n){return t=Ff(t),function(e,t){if(t&&("object"===Rf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Hf()?Reflect.construct(t,n||[],Ff(e).constructor):t.apply(e,n))}function Hf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hf=function(){return!!e})()}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ff(e)}function Uf(e,t){return Uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uf(e,t)}function qf(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const Vf=(Lf=St("keyup #replyBox"),Af=St("click #reply-publish"),Mf=St("click #reply-cancel"),$f=St("click #replyLoginModalBox"),qf((If=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Bf(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uf(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.model.get("parent"),t=sh.commentLocation,n=sh.commentReplyText,i=sh.parentCommentId;t===window.location.pathname&&""!==n&&i===e.toString()&&(this.model.set({content:n}),sh.clearCookies());var r=this.model.getProperties();WSL2.User.isUserLoggedIn()?this.$el.html(Nf.template(Jd)(r)):this.$el.html(Nf.template(Bd)(r)),this.commentPublishButton=this.$el.find("#reply-publish"),this.toggleButton()}},{key:"toggleButton",value:function(){var e;null!==(e=this.$el.find("textarea#replyBox").val())&&void 0!==e&&e.length?this.enableButton():this.disableButton()}},{key:"onSubmit",value:function(e){var t=this;if(e.preventDefault(),WSL2.User.isNewlyRegistered())return this.model.setError("comment.new.user.time.disclaimer"),void this.render();this.disableButton(),null==e.isTrigger&&(this.updateModelProperties(),WSL2.User.isUserLoggedIn()?this.model.save({},{success:function(e){WSL2.Events.trigger("commentPublished"),e.closeReply(),t.model.trigger("sync",t.model)},error:function(e,n){t.model.setError($.parseJSON(n.responseText).error),t.render()}}):(this.setCommentCookie(),this.navigateToLoginBox(e)))}},{key:"updateModelProperties",value:function(){this.model.set({content:this.$el.find("textarea#replyBox").val(),comment_subscribed:this.$el.find("input[name=notify]:checked").val()},{silent:!0,validate:!0})}},{key:"onCancel",value:function(e){e.preventDefault(),this.model.closeReply()}},{key:"setCommentCookie",value:function(){sh.setCookie(ih,$("#replyBox").val().trim(),this.model.get("parent"))}},{key:"navigateToLoginBox",value:function(e){e.preventDefault(),WSL2.User.setLocation("#c".concat(this.model.get("parent"))),$("html").addClass("noscroll"),$("#nav-login").addClass("is-visible"),$("#nav-login").addClass("is-open")}}])&&Wf(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Ph)).prototype,"toggleButton",[Lf],Object.getOwnPropertyDescriptor(If.prototype,"toggleButton"),If.prototype),qf(If.prototype,"onSubmit",[Af],Object.getOwnPropertyDescriptor(If.prototype,"onSubmit"),If.prototype),qf(If.prototype,"onCancel",[Mf],Object.getOwnPropertyDescriptor(If.prototype,"onCancel"),If.prototype),qf(If.prototype,"navigateToLoginBox",[$f],Object.getOwnPropertyDescriptor(If.prototype,"navigateToLoginBox"),If.prototype),If);var Yf,Gf,Kf,Jf,Xf,Qf,Zf,ep,tp,np,ip,rp,op,sp,ap=n(2856),lp=n(5544);function cp(e){return cp="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},cp(e)}function up(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,dp(i.key),i)}}function dp(e){var t=function(e,t){if("object"!=cp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=cp(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cp(t)?t:String(t)}function hp(e,t,n){return t=pp(t),function(e,t){if(t&&("object"===cp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fp()?Reflect.construct(t,n||[],pp(e).constructor):t.apply(e,n))}function fp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fp=function(){return!!e})()}function pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pp(e)}function mp(e,t){return mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mp(e,t)}function gp(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const vp=(Yf=vt("li"),Gf=St("click .js-toggle-comment-irrelevant"),Kf=St("click .btn-comment-reply"),Jf=St("click .btn-comment-show-replies"),Xf=St("click .btn-comment-vote-up"),Qf=St("click .btn-comment-vote-down"),Zf=St("click .abuse"),ep=St("click .js-toggle-menu"),tp=St("click .js-edit-comment"),np=St("click #comment-edit-submit"),ip=St("click #comment-edit-cancel"),rp=St("click #comment-delete"),Yf((gp((sp=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hp(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mp(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){this.options=e||{},this.model.bind("change",this.render,this),WSL2.User.on("change",this.render,this),this.render()}},{key:"render",value:function(){var e,t=this.model.getProperties();switch(t.parent=this.options.parent,this.$el.attr(this.getAttributes(t.iseditor)),this.model.getVisibility()){case"visible":this.$el.html(ap.template((e=t.date,"\n<% if (1 == comment_approved) { %>\n <% if (parent) { %>\n <div class=\"comment-reply-relation\">\n <img\n class=\"user-avatar\"\n src=\"<% if(\"gravatar\" == parent.get('avatar_type')) { %><%= parent.get('avatar_link') %>?default=<%= WSL2.config.imagePath %>/images/avatar.jpg<% } else { %><%= parent.get('avatar_link') %><% } %>\"\n alt=\"<%= Translator.trans('avatar') %> <% if (parent.get('user_name')) { %><%= parent.get('user_name') %><% } else { %><%= parent.get('user_id') %><% } %>\"\n >\n <%= Translator.trans('responding.to') %>\n <a href=\"#c<%= parent.get('id') %>\">\n ".concat("\n <% if(parent.get('author')) { %><%= _.escape(parent.get('author')) %><% } else if(parent.get('user_name')) { %><%= _.escape(parent.get('user_name')) %><% } else { %><%= parent.get('user_id') %><% } %>\n",'\n </a>\n </div>\n <% } %>\n\n <% if (comment_level < 3) { %>\n <div class="comment-badge"><em></em><span><%= ["brillante", "interesante"][comment_level - 1] %></span></div>\n <% } %>\n\n <% if (\'deactivated\' === user_status) { %>\n ').concat(qd,"\n <% } else { %>\n ").concat(Ud,'\n <% } %>\n\n <div class="comment-date">\n <a class="permanlink" href="#c<%= id %>" title="<%= Translator.trans(\'respuestas.copy.comment.link\') %>">\n <% if (\'1\' === WSL2.config.disableDatetimeMention) {%>\n <span class="comment-time">').concat(X(e),'</span>\n <% } else { %>\n <time class="comment-time" datetime="<%= dayjs.unix(date).format(WSL2.config.uniformDateTimeFormat ? "YYYY-MM-DDTHH:mm:ss[Z]" : "YYYY-MM-DD") %>">').concat(X(e),'</time>\n <% } %>\n </a>\n </div>\n <div class="comment-order"><a href="javascript:void(0);"><%= index %></a></div>\n\n <% if (editMode) { %>\n ').concat(Vd,'\n <% } else { %>\n <div class="comment-content blob">\n <p><%= content_filtered %></p>\n </div>\n <% } %>\n\n <div class="comment-reply-actions">\n <% if (editComment) { %>\n <a href="#" class="js-edit-comment"><%= Translator.trans(\'edit\') %></a>\n <% } %>\n <% if (\'open\' === AML.Comments.config.status && !showReply) { %>\n <a class="btn-comment-reply js-toggle-reply-form" href="#" title="<%= Translator.trans(\'comment.reply\') %>">\n <%= Translator.trans(\'answer\') %>\n </a>\n <% } %>\n <% if (!showTree && replyCount > 0) { %>\n <a href="#" class="btn-comment-show-replies js-toggle-replies"><%= replyCount %> <%if (1 === replyCount) { %>respuesta<% } else { %>respuestas<% } %></a>\n <% } %>\n </div>\n\n <div class="comment-actions">\n <a class="btn-comment-menu js-toggle-menu" id="ca<%= id %>" href="#">Menú</a>\n <ul class="context-menu-list comment-actions-menu js-comment-actions-menu" id="c<%= id %>-comment-actions">\n <% if (WSL2.User.isEditor()) { %>\n <li class="comment-actions-delete">\n <a href="#" class="btn-delete" id="comment-delete">Borrar</a>\n </li>\n <% } %>\n\n <li class="comment-actions-abuse <% if (abuse) { %>comment-actions-abuse-reported<% } %>" title="<%= Translator.trans(\'comment.abuse.title\') %>">\n <a href="#" class="abuse"><% if (abuse) { %><%= Translator.trans(\'comment.abused\') %><% } else { %><%= Translator.trans(\'comment.abuse.title\') %><% }%></a>\n </li>\n <li class="comment-actions-permanlink">\n <a class="permanlink" href="#c<%= id %>"><%= Translator.trans(\'respuestas.copy.comment.link\') %></a>\n </li>\n <% if (\'1\' == AML.Comments.config.enableSocialShare) { %>\n <li class="comment-actions-share">\n <span>Compartir <em>este comentario</em>:</span>\n <a class="btn-facebook" title="<%= Translator.trans(\'comment.share.on.facebook\') %>" href="https://www.facebook.com/dialog/feed?app_id=<%= WSL2.config.fbapikey %>&redirect_uri=<%= encodeURIComponent(window.location.href) %>&link=<%= WSL2.config.desktopSiteUrl + window.location.pathname + "%23c" + id %>">Facebook</a>\n <a class="btn-x" title="<%= Translator.trans(\'comment.share.on.twitter\') %>" href="https://twitter.com/intent/tweet?url=<%= WSL2.config.desktopSiteUrl + "/p/" + AML.Comments.config.postId + "%23c" + id %>&text=<%= WSL2.config.tweetText %>&via=<%= WSL2.config.twitterName %>">Twitter</a>\n <a class="btn-email" title="<%= Translator.trans(\'comment.share.by.email\') %>" href="mailto:?subject=<%= WSL2.config.postTitle %>&body=<%= encodeURIComponent(WSL2.config.desktopSiteUrl + window.location.pathname + \'?utm_source=sharebutton&utm_medium=email&utm_content=POST&utm_campaign=\' + AML.Comments.config.campaignDate + \'&utm_term=CLICK+ON+COMMENT#c\' + id) %>">Email</a>\n <% if (/^(?:(?!ipad).)+(?:android|iphone)(?:(?!ipad).)+$/i.test(navigator.userAgent)) { %>\n <a class="btn-whatsapp" href="whatsapp://send?text=<%= encodeURIComponent(WSL2.config.postTitle + " " + WSL2.config.desktopSiteUrl + window.location.pathname + "#c" + id) %>">Whatsapp</a>\n <% } %>\n </li>\n <% } %>\n <li class="comment-actions-vote">\n <span class="karma"><%= vote_count %><% if(1 == Math.abs(vote_count)) { %> voto<% } else { %> votos<% } %><% if (\'deactivated\' != user_status) { %>, karma: <strong><%= karma %></strong><% } %></span>\n <span class="votes">\n <a href="#" class="btn-comment-vote-up <% if (!canVote) { %>comment-vote-disabled<% } %>" title="<%= Translator.trans(\'comment.vote.positive\') %>" ><%= Translator.trans(\'comment.vote.positive\') %></a>\n <a href="#" class="btn-comment-vote-down <% if (!canVote) { %>comment-vote-disabled<% } %>" title="<%= Translator.trans(\'comment.vote.negative\') %>" ><%= Translator.trans(\'comment.vote.negative\') %></a>\n </span>\n </li>\n </ul>\n </div>\n <% if (abuse) { %>\n <div class="report-abuse-message"><%= Translator.trans(\'comment.abuse.message\') %></div>\n <% } %>\n <% if (error === \'new.user.vote\') { %>\n <p class="error js-error" style="margin-bottom: 0;"><%= Translator.trans(\'post.page.comment.new.user.vote.disclaimer\') %></p>\n <% } %>\n <% if (error === \'new.user.report\') { %>\n <p class="error js-error" style="margin-bottom: 0;"><%= Translator.trans(\'post.page.comment.new.user.report.disclaimer\') %></p>\n <% } %>\n <div id="replyFormPlaceHolder"></div>\n <% } else { %>\n <div class="comment-order"><a href="javascript:void(0);"><%= index %></a></div>\n <div class="comment-status-moderated">\n <%= Translator.trans(\'moderate.comment\') %>\n </div>\n <% } %>\n')))(t)),this.model.showReply&&"open"===AML.Comments.config.status&&new Vf({model:this.model.reply,el:this.$el.find("#replyFormPlaceHolder")});break;case"collapsed":this.model.isIrrelevant()&&(0!==this.model.getParentReplyCount()&&this.model.isReply()||this.$el.html(ap.template('\n <% if (tree_level > 0) { %>\n <li class="comment-item comment-reply<% if(comment_level == 5) { %> comment-irrelevante<% } %>">\n <% } else { %>\n <li class="comment-item comment-irrelevante">\n <% } %>\n <div class="comment-irrelevant-status">\n <div class="comment-order"><a href="javascript:void(0);"><%= index %></a></div>\n <a href="#c<%= index %>" class="js-toggle-comment-irrelevant">Ver comentario irrelevante de <em><% if(user_name) { %><%= user_name %><% } else { %><%= user_id %><% } %></em></a>\n </div>\n </li>\n')(t)))}}},{key:"openIrrelevantComment",value:function(e){e.preventDefault(),this.model.unCollapse()}},{key:"enableReply",value:function(e){e.preventDefault(),this.model.enableReply()}},{key:"toggleCollapse",value:function(e){e.preventDefault(),this.model.unCollapseChildren()}},{key:"onVoteUp",value:function(e){if(e.preventDefault(),this.model.canVote)if(WSL2.User.isUserLoggedIn()){if(WSL2.User.isNewlyRegistered())return void this.model.setError("new.user.vote");this.model.handleVoteUp()}else this.navigateToLoginBox()}},{key:"onVoteDown",value:function(e){if(e.preventDefault(),this.model.canVote)if(WSL2.User.isUserLoggedIn()){if(WSL2.User.isNewlyRegistered())return void this.model.setError("new.user.vote");this.model.handleVoteDown()}else this.navigateToLoginBox()}},{key:"onAbuse",value:function(e){e.preventDefault(),this.model.abuse||(WSL2.User.isUserLoggedIn()?this.model.setAbuse():this.navigateToLoginBox())}},{key:"toggleActionMenu",value:function(e){e.preventDefault();var t=this.model.get("id");$("#c".concat(t,"-comment-actions")).toggle(),$("#ca".concat(t)).toggleClass("is-opened")}},{key:"navigateToLoginBox",value:function(){$("html").addClass("noscroll"),$("#nav-login").addClass("is-visible"),$("#nav-login").addClass("is-open")}},{key:"getAttributes",value:function(e){var t=3<this.model.get("tree_level")?3:this.model.get("tree_level"),n="comment-item",i=["brillante","interesante","","flojo","irrelevant"][this.model.get("comment_level")-1]||"";return""!==i&&(n+=" comment-".concat(i)),this.model.isReply()&&(n+=" comment-reply comment-reply-".concat(t)),"1"!==this.model.get("comment_approved")&&(n+=" comment-moderated"),0<e&&(n+=" comment-staff"),{id:"c".concat(this.model.get("id")),class:n}}},{key:"onEdit",value:function(e){e.preventDefault(),this.model.enableEdit()}},{key:"onSubmit",value:function(e){var t=this;e.preventDefault(),this.model.save({content:this.$el.find("textarea#editBox").val()},{error:function(e,n){t.model.setError($.parseJSON(n.responseText).error)}}),this.model.onEditComment()}},{key:"onCancel",value:function(e){e.preventDefault(),this.model.onEditTrigger()}},{key:"onDelete",value:function(e){e.preventDefault(),confirm("¿Seguro que deseas borrar este comentario?")&&this.model.softDelete()}}])&&up(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(lp.View)).prototype,"openIrrelevantComment",[Gf],Object.getOwnPropertyDescriptor(sp.prototype,"openIrrelevantComment"),sp.prototype),gp(sp.prototype,"enableReply",[Kf],Object.getOwnPropertyDescriptor(sp.prototype,"enableReply"),sp.prototype),gp(sp.prototype,"toggleCollapse",[Jf],Object.getOwnPropertyDescriptor(sp.prototype,"toggleCollapse"),sp.prototype),gp(sp.prototype,"onVoteUp",[Xf],Object.getOwnPropertyDescriptor(sp.prototype,"onVoteUp"),sp.prototype),gp(sp.prototype,"onVoteDown",[Qf],Object.getOwnPropertyDescriptor(sp.prototype,"onVoteDown"),sp.prototype),gp(sp.prototype,"onAbuse",[Zf],Object.getOwnPropertyDescriptor(sp.prototype,"onAbuse"),sp.prototype),gp(sp.prototype,"toggleActionMenu",[ep],Object.getOwnPropertyDescriptor(sp.prototype,"toggleActionMenu"),sp.prototype),gp(sp.prototype,"onEdit",[tp],Object.getOwnPropertyDescriptor(sp.prototype,"onEdit"),sp.prototype),gp(sp.prototype,"onSubmit",[np],Object.getOwnPropertyDescriptor(sp.prototype,"onSubmit"),sp.prototype),gp(sp.prototype,"onCancel",[ip],Object.getOwnPropertyDescriptor(sp.prototype,"onCancel"),sp.prototype),gp(sp.prototype,"onDelete",[rp],Object.getOwnPropertyDescriptor(sp.prototype,"onDelete"),sp.prototype),op=sp))||op);var yp,bp,wp=n(2856),_p=n(5544);function kp(e){return kp="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},kp(e)}function Sp(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,Tp(i.key),i)}}function Tp(e){var t=function(e,t){if("object"!=kp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=kp(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kp(t)?t:String(t)}function xp(e,t,n){return t=jp(t),function(e,t){if(t&&("object"===kp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Cp()?Reflect.construct(t,n||[],jp(e).constructor):t.apply(e,n))}function Cp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cp=function(){return!!e})()}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jp(e)}function Op(e,t){return Op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Op(e,t)}var Ep=(yp=St("click .comment-thread-close.js-toggle-replies-caption"),bp=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),xp(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Op(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){this.options=e||{},this.collection.bind("add reset",this.render,this),this.render()}},{key:"render",value:function(){var e=this;this.$el.empty();var t=this.options.offset||0,n=t+(this.options.limit||Infinity),i=0;this.collection.each((function(r){if(r.isParent()&&"1"===r.get("comment_approved")&&i++,!(i<t+1||i>n)){void 0===r.showTree&&(e.options.openAllReplies?r.showTree=!0:r.showTree=!1);var o=new vp({model:r,parent:e.collection.get(r.get("parent"))});""!==o.$el.html()&&e.$el.append(o.el),0<r.showTree&&r.replyCount&&e.$el.append(wp.template('\n <a class="comment-thread-close js-toggle-replies-caption" data-id="<%= id %>" href="#">Cerrar respuestas</a>\n')({id:r.get("id")}))}}))}},{key:"hideReplies",value:function(e){e.preventDefault(),this.collection.collapseChildren($(e.currentTarget).data("id"))}}])&&Sp(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(_p.View),function(e,t,n,i,r){var o={};Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}(bp.prototype,"hideReplies",[yp],Object.getOwnPropertyDescriptor(bp.prototype,"hideReplies"),bp.prototype),bp);const Pp=Ep;var Dp,Lp,Ap,Mp,$p,Ip,Np=n(2856),Rp=n(5544);function Wp(e){return Wp="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},Wp(e)}function zp(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,Bp(i.key),i)}}function Bp(e){var t=function(e,t){if("object"!=Wp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Wp(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wp(t)?t:String(t)}function Hp(e,t,n){return t=Up(t),function(e,t){if(t&&("object"===Wp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fp()?Reflect.construct(t,n||[],Up(e).constructor):t.apply(e,n))}function Fp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fp=function(){return!!e})()}function Up(e){return Up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Up(e)}function qp(e,t){return qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qp(e,t)}function Vp(e,t,n,i,r){var o={};return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const Yp=(Dp=kt("#comment-header"),Lp=St("click .show-comment"),Ap=St("click #comments-sort-button"),Mp=St("click #comments-options-menu li"),Dp((Vp((Ip=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Hp(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qp(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){this.options=e||{},this.collection.on("all",this.render,this),this.render()}},{key:"render",value:function(){this.$el.html(Np.template(zd)({commentCount:this.collection.getTotalCommentCount(),isCommentBoxOpen:!0}))}},{key:"showCommentBox",value:function(e){void 0!==e&&e.preventDefault(),"open"===AML.Comments.config.status&&($("#comments-write-form").toggle(),void 0!==e&&$(e.currentTarget).toggleClass("is-opened"))}},{key:"toggleOrderMenu",value:function(e){e.preventDefault(),$(e.currentTarget).toggleClass("is-opened"),$($(e.currentTarget).attr("href")).toggle("slow")}},{key:"orderBy",value:function(e){var t=this;e.preventDefault();var n=$(e.currentTarget);n.parent().toggle();var i=n.data("orderby");this.collection.fetch({data:{order:i,commentType:this.collection.getCommentType(),limit:"valued"===i?50:30,limitOnThreadCount:"valued"===i?0:1},silent:!0,reset:!0,success:function(){t.options.openAllReplies||t.collection.closeAllReplies(),t.collection.separated=0,t.collection.trigger("reset"),t.collection.trigger("reload")}})}}])&&zp(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Rp.View)).prototype,"showCommentBox",[Lp],Object.getOwnPropertyDescriptor(Ip.prototype,"showCommentBox"),Ip.prototype),Vp(Ip.prototype,"toggleOrderMenu",[Ap],Object.getOwnPropertyDescriptor(Ip.prototype,"toggleOrderMenu"),Ip.prototype),Vp(Ip.prototype,"orderBy",[Mp],Object.getOwnPropertyDescriptor(Ip.prototype,"orderBy"),Ip.prototype),$p=Ip))||$p);var Gp,Kp,Jp,Xp,Qp=n(5544);function Zp(e){return Zp="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},Zp(e)}function em(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,tm(i.key),i)}}function tm(e){var t=function(e,t){if("object"!=Zp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Zp(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zp(t)?t:String(t)}function nm(e,t,n){return t=rm(t),function(e,t){if(t&&("object"===Zp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,im()?Reflect.construct(t,n||[],rm(e).constructor):t.apply(e,n))}function im(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(im=function(){return!!e})()}function rm(e){return rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rm(e)}function om(e,t){return om=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},om(e,t)}var sm=(Gp=kt("#main-container"),Kp=St("click #toggle-comments"),Gp((Xp=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nm(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&om(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(e){if(this.options=e||{},this.comments=this.options.comments,this.postId=this.options.postId,this.comments.on("add reset",this.updateTopCommentsButton,this),this.comments.closeAllReplies(),0<this.comments.length)new Yp({collection:this.comments,navigateToCommentBox:this.navigateToCommentBox()}),new gf({collection:this.comments,show:!0}),this.navigateToCommentBox()&&this.toggleComments();else{var t=new Df({comments:this.comments});this.$el.find(".view-more").replaceWith(t.el)}this.commonViews()}},{key:"commonViews",value:function(){"open"===AML.Comments.config.status&&this.createCommentBox(),WSL2.config.enableCen2AdInComments?(new Pp({el:"ul#comments-before-ad",collection:this.comments,offset:0,limit:5}),new Pp({el:"ul#comments-list",collection:this.comments,offset:5})):new Pp({el:"ul#comments-list",collection:this.comments});var e=new of({collection:this.comments});this.$el.find(".view-even-more").replaceWith(e.$el)}},{key:"addToCollection",value:function(e){e.off("sync"),this.comments.addComment(e,{at:0}),this.createCommentBox()}},{key:"toggleComments",value:function(e){void 0!==e&&e.preventDefault();var t=$("#toggle-comments");t.hasClass("is-opened")?(Em.navigate("comments-close"),t.removeClass("is-opened").addClass("is-closed")):(WSL2.Events.trigger("commentButtonClicked",{commentCount:this.comments.getTotalCommentCount()}),t.removeClass("is-closed").addClass("is-opened")),$("#comments-area").toggle()}},{key:"navigateToCommentBox",value:function(){return sh.commentLocation===window.location.pathname}},{key:"createCommentBox",value:function(){void 0!==this.commentBoxView&&this.commentBoxView.remove(),void 0!==this.bottomCommentBoxView&&this.bottomCommentBoxView.remove();var e=new Md({post_id:this.postId});e.once("sync",this.addToCollection,this),this.commentBoxView=new Ph({model:e}),this.bottomCommentBoxView=new Ph({model:e}),this.bottomCommentButton||(this.bottomCommentButton=new qh({collection:this.comments})),this.$el.find("#comments-write-form").append(this.commentBoxView.el),this.$el.find("#bottom-comments-write-form").append(this.bottomCommentBoxView.el)}},{key:"updateTopCommentsButton",value:function(){$(".btn-comments").text(this.comments.meta.totalCount)}}])&&em(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Qp.View),function(e,t,n,i,r){var o={};Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null)}(Xp.prototype,"toggleComments",[Kp],Object.getOwnPropertyDescriptor(Xp.prototype,"toggleComments"),Xp.prototype),Jp=Xp))||Jp);const am=sm;var lm=n(2856);function cm(e){return cm="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},cm(e)}function um(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,vm(i.key),i)}}function dm(e,t,n){return t=fm(t),function(e,t){if(t&&("object"===cm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pm(e)}(e,hm()?Reflect.construct(t,n||[],fm(e).constructor):t.apply(e,n))}function hm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hm=function(){return!!e})()}function fm(e){return fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fm(e)}function pm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mm(e,t){return mm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mm(e,t)}function gm(e,t,n){return(t=vm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vm(e){var t=function(e,t){if("object"!=cm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=cm(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cm(t)?t:String(t)}const ym=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return gm(pm(e=dm(this,t,[].concat(i))),"meta",{}),gm(pm(e),"commentType","post_comment"),gm(pm(e),"model",Md),gm(pm(e),"offsetDiff",0),gm(pm(e),"separated",0),gm(pm(e),"setCommentType",(function(t){e.commentType=t})),gm(pm(e),"getCommentType",(function(){return e.commentType})),e}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mm(e,t)}(t,e),n=t,i=[{key:"url",value:function(){return"/api/1.0/post/".concat(this.postId,"/comments")}},{key:"initialize",value:function(e,t){this.postId=t?t.postId:0,this.bind("add reset",this.refreshChildCount,this)}},{key:"refreshChildCount",value:function(){var e=this;return this.each((function(t){var n=e.where({parent:"".concat(t.id)});t.replyCount=n.length}))}},{key:"parse",value:function(e){return this.meta=e.meta,e.comments}},{key:"hasMore",value:function(){return 0<this.getRemaining()}},{key:"resetParsed",value:function(e,t){this.commentStatus=e.commentStatus,e=this.parse(e),this.reset(e,t)}},{key:"fetchMore",value:function(){var e=this;this.fetch({data:{offset:this.length-this.offsetDiff,order:this.meta.order,commentType:this.commentType},add:!0,merge:!0,remove:!1,silent:!0,success:function(){e.trigger("reset")}})}},{key:"fetchMoreWithLimit",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.fetch({data:{offset:this.length-this.offsetDiff+this.separated,order:this.meta.order,commentType:this.commentType,limit:t},add:!0,merge:!0,remove:!1,silent:!0,success:function(){e.trigger("reset"),n&&e.closeAllReplies()}})}},{key:"fetchComment",value:function(e){this.url="".concat(this.url(),"/").concat(e),this.fetch({add:!0,remove:!1}),delete this.url}},{key:"getTotalCommentCount",value:function(){return this.meta.totalCount-this.separated}},{key:"addComment",value:function(e,t){this.meta.totalCount=1+Number(this.meta.totalCount),e.makeCommentEditable(),this.add(e,{at:t.at})}},{key:"getRemaining",value:function(){return this.meta.totalCount-(this.length+this.separated)}},{key:"closeAll",value:function(){this.each((function(e){"0"===e.get("parent")&&e.collapse()}))}},{key:"openAll",value:function(){this.each((function(e){return e.unCollapse()}))}},{key:"closeAllReplies",value:function(){var e=this;this.each((function(t){t.isReply()||t.isIrrelevant()||e.collapseChildren(t.id)}))}},{key:"unCollapseChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Infinity,n=1;this.each((function(i){if(i.get("parent")===e){if(n>t)return;n++,i.isIrrelevant()?i.showIrrelevantBar():i.unCollapse()}}))}},{key:"collapseChildren",value:function(e){var t=this,n=this.get(e);if(n){n.showTree=!1;var i=this.where({parent:"".concat(e)});lm.each(i,(function(e){e.collapse(),t.collapseChildren(e.id)}))}}},{key:"fetchMoreMobile",value:function(e){var t=this;this.fetch({data:{offset:e,order:this.meta.order,limit:10,limitOnThreadCount:0},add:!0,merge:!0,remove:!1,silent:!0,success:function(){t.each((function(e){e.hiddenReplyCount=0})),t.trigger("reset"),t.closeAllReplies()}})}}],i&&um(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(n(5544).Collection);var bm,wm=n(5544);function _m(e){return _m="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},_m(e)}function km(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,Sm(i.key),i)}}function Sm(e){var t=function(e,t){if("object"!=_m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=_m(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_m(t)?t:String(t)}function Tm(e,t,n){return t=Cm(t),function(e,t){if(t&&("object"===_m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xm()?Reflect.construct(t,n||[],Cm(e).constructor):t.apply(e,n))}function xm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xm=function(){return!!e})()}function Cm(e){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cm(e)}function jm(e,t){return jm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jm(e,t)}const Om=wt({comments:"navigateToComment","c:commentId":"moveToComment","to-comments":"navigateToComment"})(bm=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Tm(this,t,arguments)}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jm(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.comments=new ym({},{postId:AML.Comments.config.postId}),this.comments.resetParsed(AML.Comments.config.data),new am({postId:AML.Comments.config.postId,comments:this.comments})}},{key:"navigateToComment",value:function(){var e=$(".js-toggle-comments-list");e.hasClass("is-closed")&&(e.toggleClass("is-opened is-closed"),$("#comments-area").toggle())}},{key:"moveToComment",value:function(e){if(!Number.isNaN(e)){this.navigateToComment();var t=this.comments.get(e);if(void 0===t)this.getComment(e);else{if(t.isReply()){for(;t.isReply();)t.collapsed=!1,(t=this.comments.get(t.get("parent"))).showTree=!0;this.comments.trigger("reset")}window.location="#c".concat(e)}}}},{key:"getComment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.comments,n=t.length,i=t.meta.order;t.fetchComment(e),t.on("add",(function(){t.offsetDiff=t.length-n,t.meta.order=i,window.location="#c".concat(e)}))}}],i&&km(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(wm.Router))||bm;var Em,Pm=n(5544),Dm=(void 0===WSL2.config.showLongformComments||WSL2.config.showLongformComments)&&0!==WSL2.config.postSubType.indexOf("especial_advertising")&&"landing"!==WSL2.config.postSubType;Dm&&(Em=new Om,Pm.History.started&&Pm.history.stop(),Pm.history.start());var Lm,Am=n(5544);function Mm(e){return Mm="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},Mm(e)}function $m(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,Hm(i.key),i)}}function Im(e,t,n){return t=Rm(t),function(e,t){if(t&&("object"===Mm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wm(e)}(e,Nm()?Reflect.construct(t,n||[],Rm(e).constructor):t.apply(e,n))}function Nm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nm=function(){return!!e})()}function Rm(e){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rm(e)}function Wm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zm(e,t){return zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zm(e,t)}function Bm(e,t,n){return(t=Hm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hm(e){var t=function(e,t){if("object"!=Mm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Mm(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mm(t)?t:String(t)}var Fm=wt({"":"showSlide","to-comments":"navigateToComments",":slide":"showSlide"})(Lm=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return Bm(Wm(e=Im(this,t,[].concat(i))),"slideshow",null),Bm(Wm(e),"showSlide",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"slide-1";e.slideshow.showSlide("#".concat(t))})),e}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zm(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(e){this.slideshow=e.slideshow}},{key:"navigateToComments",value:function(){$(".slideshow").hide()}}],i&&$m(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(Am.Router))||Lm;const Um=Fm;function qm(e){return qm="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},qm(e)}function Vm(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,Gm(i.key),i)}}function Ym(e,t,n){return(t=Gm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gm(e){var t=function(e,t){if("object"!=qm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=qm(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qm(t)?t:String(t)}function Km(e){return Km="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},Km(e)}function Jm(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,Xm(i.key),i)}}function Xm(e){var t=function(e,t){if("object"!=Km(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=Km(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Km(t)?t:String(t)}function Qm(e,t,n){return t=eg(t),function(e,t){if(t&&("object"===Km(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Zm()?Reflect.construct(t,n||[],eg(e).constructor):t.apply(e,n))}function Zm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zm=function(){return!!e})()}function eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eg(e)}function tg(e,t){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tg(e,t)}const ng=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Qm(this,t)).bindEvents(),e.imageAdjust(),e.showSlide("#slide-1"),$("html, body").animate({scrollTop:$(".slideshow").offset().top},"slow"),e}var n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tg(e,t)}(t,e),n=t,(i=[{key:"renderSlide",value:function(e){$(".gallery-item-image img",e).width()<$(".gallery-item-image img",e).height()?$(".slideshow").removeClass("slide-item-horizontal").addClass("slide-item-vertical"):$(".slideshow").removeClass("slide-item-vertical").addClass("slide-item-horizontal")}},{key:"imageAdjust",value:function(){var e=this;$(".slideshow").css("height",$("footer, .foot").offset().top),$(".gallery-item").each((function(){if($(".gallery-item-image img",e).width()<$(".gallery-item-image img",e).height()){var t=$(window).height();$(".gallery-item-image img",e).css("max-height","".concat(t,"px"))}else{var n=$(window).height();$(".gallery-item-image img",e).css("max-height","".concat(n,"px"));var i=$(window).width();$(".gallery-item-image",e).css("max-width","".concat(i,"px"))}}))}}])&&Jm(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ym(this,"currentSlide",""),Ym(this,"bindEvents",(function(){$(".slide-next").bind("click",t.click),$(".slide-prev").bind("click",t.click),$(".slide-item-close").bind("click",t.close),$(".slide-comments-link").bind("click",t.showComments),$(".gallery-thumbs").delegate(".slide-thumb","click",t.startSlideShow),$(document).on("keyup",t.keyboardSlide),$("#slideshow-container").swipe&&$("#slideshow-container").swipe({swipeLeft:t.nextSlide,swipeRight:t.prevSlide,excludedElements:"button, input, select, textarea",threshold:200}),$(window).resize(t.imageAdjust),t.removeEmptyAd(),$(".slideshow").bind("click",(function(e){e.target.classList.contains("slideshow")&&t.close(e)}))})),Ym(this,"showSlide",(function(e){t.currentSlide=e;var n=$(t.currentSlide).attr("data-prev"),i=$(t.currentSlide).attr("data-next");$(".slide-prev").attr("href",n),$(".slide-next").attr("href",i),$(".gallery-item").css("display","none"),$(t.currentSlide).css("display","block"),t.renderSlide(t.currentSlide)})),Ym(this,"click",(function(e){e.preventDefault(),t.showSlide($(e.target).attr("href"))})),Ym(this,"close",(function(e){e.preventDefault(),t.stopPlayingVideo(),$(".slideshow").css("display","none")})),Ym(this,"startSlideShow",(function(e){e.preventDefault(),$(".slideshow").css("display","block"),t.showSlide($(e.currentTarget).attr("href")),$("html, body").animate({scrollTop:0},"slow")})),Ym(this,"prevSlide",(function(){t.stopPlayingVideo(),t.showSlide($(t.currentSlide).attr("data-prev"))})),Ym(this,"nextSlide",(function(){t.stopPlayingVideo(),t.showSlide($(t.currentSlide).attr("data-next"))})),Ym(this,"keyboardSlide",(function(e){37===e.keyCode?t.prevSlide():39===e.keyCode?t.nextSlide():27===e.keyCode&&t.close(e)}))}var t,n;return t=e,(n=[{key:"showComments",value:function(e){this.close(e);var t=$(e.currentTarget).attr("href");return $("html, body").animate({scrollTop:$(t).offset().top},{duration:"slow",complete:function(){window.location="#comments"}})}},{key:"removeEmptyAd",value:function(){var e=$("#slide-ad");1>e.find("#div-gpt-int_ad_container").length&&(e.prev().attr("data-next",e.attr("data-next")),e.next().attr("data-prev",e.attr("data-prev")))}},{key:"stopPlayingVideo",value:function(){var e=$(".gallery-item:visible .gallery-item-image");0>e.find("iframe").length&&e.html(e.html())}}])&&Vm(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}());var ig,rg=n(5544);try{AML.SlideShow.status&&(new Um({slideshow:new ng}),rg.History.started&&rg.history.stop(),rg.history.start(),$((function(){$("#recommended-posts").html($("#relatedHorizontalPosts .post-related-content").html())})))}catch(e){}function og(e){return og="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},og(e)}function sg(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,cg(i.key),i)}}function ag(e,t,n){return t&&sg(e.prototype,t),n&&sg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lg(e,t,n){return(t=cg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cg(e){var t=function(e,t){if("object"!=og(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=og(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==og(t)?t:String(t)}var ug=ag((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));ig=ug,lg(ug,"init",(function(){ig.postContainer=$(".article-content > .blob"),ig.sidebar=$(".sticky-sidebar-container"),ig.articleContentInner=$(".article-content-inner"),ig.articleMetaData=$(".article-metadata-container"),ig.article=$("article"),ig.window=$(window),"undefined"!=typeof googletag&&googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRenderEnded",(function(e){"div-gpt-int"!==e.slot.getSlotElementId()||e.isEmpty||ig.article.removeClass("m-sticky-enabled"),"div-gpt-lat"!==e.slot.getSlotElementId()||e.isEmpty||ig.checkSticky()}))}));try{var e=new FuckAdBlock({checkOnLoad:!1});e.setOption("baitClass","pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links adBanner"),e.setOption("baitStyle","width: 4px !important; height: 4px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"),e.onDetected(ig.checkSticky),e.check()}catch(e){ig.checkSticky()}})),lg(ug,"checkSticky",(function(){var e=ig.postContainer.position().top+ig.postContainer.height(),t=ig.sidebar.height();999<("special"===WSL2.config.postSubType&&"Directo al Paladar"!==WSL2.config.siteName?e-ig.articleMetaData.position().top-ig.articleMetaData.height()-ig.sidebar.siblings().height():e-ig.articleContentInner.position().top-ig.sidebar.siblings().height())-t&&(ig.article.addClass("m-sticky-enabled"),ig.window.scroll(ig.stick),ig.stick())})),lg(ug,"stick",(function(){ig.setEdgeLimits();var e=ig.window.scrollTop();e<ig.topLimit?ig.sidebar.removeClass("m-is-sticky m-is-absolute").css({top:""}):e>ig.bottomLimit?ig.sidebar.removeClass("m-is-sticky").addClass("m-is-absolute").css({top:ig.bottomLimit+76}):ig.sidebar.removeClass("m-is-absolute").addClass("m-is-sticky").css({top:""})})),lg(ug,"setEdgeLimits",(function(){ig.topLimit="special"===WSL2.config.postSubType&&"Directo al Paladar"!==WSL2.config.siteName?ig.articleMetaData.position().top+ig.articleMetaData.height()+ig.sidebar.siblings().height()-76:ig.articleContentInner.position().top+ig.sidebar.siblings().height()-76;var e=ig.postContainer.position().top+ig.postContainer.height();ig.bottomLimit=e-ig.sidebar.height();var t=ig.topLimit+2e3,n=t+ig.sidebar.height();ig.bottomLimit=n>e?ig.bottomLimit:t}));var dg=0<document.querySelectorAll(".js-ficha-compra-container").length,hg=0<document.querySelectorAll(".pivot-ecommerce-container").length,fg=window.hasOwnProperty("country")&&"ES"!==window.country,pg=function(e){return(null==e?void 0:e.querySelectorAll("[data-store='".concat("Amazon","']")).length)||0},mg=function(e,t){return e.insertBefore(((n=document.createElement("div")).innerHTML="".concat("<span>*</span>En caso de disponibilidad en tu Amazon local, serás redirigido y la oferta puede variar."),n.classList.add("amazon-one-link-msg"),n),t);var n};WSL2.config.enableOneLinkMessage&&fg&&(hg&&document.querySelectorAll(".js-pivot-actions").forEach((function(e){pg(e)&&mg(e.parentNode,e.nextSibling)})),dg&&document.querySelectorAll(".js-ficha-compra-container").forEach((function(e){var t=e.querySelector(".js-deal-component"),n=e.querySelector(".js-deal-list");pg(t)&&mg(t.parentNode,t.nextSibling),!pg(t)&&pg(n)&&mg(n,n.firstElementChild.nextSibling)}))),document.querySelectorAll(".cta-button-container").forEach((function(e){var t=e.querySelector(".cta-button"),n=e.querySelector(".cta-button a").href,i="editorial-content_CTA-button";e.querySelector(".cta-branded")?i="branded-content_CTA-button":n.includes("redirect?url")&&(i="affiliateclick-content_CTA-button"),t.addEventListener("click",(function(){I(i,"click",n)}))}));function gg(e){return gg="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},gg(e)}n(648),WSL2.config.enablePinterestSharing&&zu.init(),$(".sticky-sidebar-container").length&&ug.init(),$("a.js-flipboard-share-button").length&&$("a.js-flipboard-share-button").click((function(e){e.preventDefault();var t=(window.screenTop||window.screenY)+50,n=(window.screenX||window.screenLeft)+(window.innerWidth||document.documentElement.offsetWidth||0)/2-267.5;window.open(e.target.href,"flipboardmagazine","width=".concat(535,",height=").concat(565,",top=").concat(t,",left=").concat(n,",location=no,resizable=yes,status=no,scrollbars=no,personalbar=no,toolbar=no,menubar=no"))}));var vg=$(".js-elastislide-element, .gallery-elastislide, .js-elastislide, #carousel");if(r(vg.length,{src:"".concat(WSL2.config.jsPath,"/elastislide-").concat("11249d2f",".js"),onload:function(){vg.each((function(e,t){var n=$(t);n.elastislide({minItems:1,autoSlide:!!n.attr("autoplay")})}))}}),Dm){var yg=Em.comments.getTotalCommentCount();0<yg&&"mobile"===WSL2.config.device&&W("comment".concat(WSLModules.Comments.moduleConf),"#comments",!0,yg.toString(),0)}new Xu,od(),WSL2.User.bind("change",od),rd.init(),WSL2.fbLogin.onLoad((function(){FB.api("/?id=".concat(WSL2.config.postUrl,"&fields=engagement"),(function(e){void 0!==e&&"object"===gg(e.engagement)&&10<e.engagement.share_count&&$("div.article-social-share .js-btn-facebook").addClass("btn-facebook-count").removeClass("btn-facebook").text(e.engagement.share_count)}))})),window.disabledAdSlots&&$(".ad-box").hide();var bg=function(){"1"===WSL2.config.sendInternalPromotionAnalytics&&function(){var e=document.querySelectorAll(".card-content");if(0<(e=Array.prototype.slice.call(e)).length){var t=[];e.forEach((function(e,n){var i=e.parentElement.querySelector(".card-disclaimer").innerText.split(" ").slice(2).join(" "),r=e.querySelector(".card-title a"),o=[r,e.previousElementSibling],s=function(e){return e.includes("/n/")?"/n/".concat(e.split("/").slice(-1)):e}(r.href),a={id:"destacado_lateral",name:"".concat(i),creative:"".concat(s),position:"".concat(++n)};t.push(a),o.forEach((function(e){e.addEventListener("click",(function(){var e;e=a,dataLayer.push({event:"promoClick",promotions:[e]})}))}))})),dataLayer.push({event:"promoView",promotions:t})}}()};"loading"!==document.readyState?bg():document.addEventListener("DOMContentLoaded",bg)})()})(); |