1/* 2Turbolinks 5.1.0 3Copyright © 2018 Basecamp, LLC 4 */ 5function openMenuClicked(){document.getElementById("navigation").className="navigation text-center"}function closeMenuClicked(){document.getElementById("navigation").className="navigation text-center navigation-close"} 6/* 7 Copyright (C) Federico Zivolo 2019 8 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). 9 */function moveProfile(e){var t=$(e);if(!t.is(":visible"))return!0;var n=$(document).scrollTop();if(t.offset()){var i=n+$(window).height()>t.outerHeight()+t.parent().offset().top,o=(t.parent().offset().top,$(window).height()-t.outerHeight());if(n>=0&&i){t.parent().offset().top;t.siblings(".movable").css("height",t.outerHeight()+"px"),t.css("position","fixed"),t.css("top",o+"px"),t.css("width",t.parent().outerWidth()+"px")}else t.css("position",""),t.css("top",""),t.css("width",""),t.siblings(".movable").css("height","")}}function loadFallbackRaven(){let e=document.createElement("script");e.src="https://cdnjs.cloudflare.com/ajax/libs/raven.js/3.24.2/raven.min.js",e.crossOrigin="anonymous",e.defer=!0,e.onload=function(){initializeRaven()},document.head.appendChild(e)}function initializeRaven(){"undefined"!=typeof Raven?Raven.config("https://[email protected]/1193623").install():console.error("Raven.js failed to load from all sources")}function ResCarouselOnInit(){ResCarouselSize(),$(document).on("click",".leftRs, .rightRs",function(){ResCarousel(this)}),$(document).on("mouseenter",".ResHover",function(){$(this).addClass("ResHovered")}),$(document).on("mouseleave",".ResHover",function(){$(this).removeClass("ResHovered")})}function ResCarouselSlide(e){var t=$(e).find(".rightRs"),n=$(e).attr("data-interval");!isNaN(n)&&$(e).addClass("ResHover")&&setInterval(function(){!t.parent().hasClass("ResHovered")&&ResCarousel(t)},+n)}function ResCarouselResize(){function e(){console.log("resize Works"),$(".resCarousel").each(function(){var e=$
9(this).attr("data-value"),t=$(this).find(".item").width();$(this).find(".resCarousel-inner").scrollLeft(e*t)})}e()}function ResCarouselSize(){var e=performance.now();$(".resCarousel").each(function(e){var t=$(this).attr("data-items").split("-");$(this).addClass("ResSlid"+e);for(var n=0;n<4;n++)if(0==n)var i=".ResSlid"+e+" .item {width: "+100/t[n]+"%}";else if(1==n)var o=".ResSlid"+e+" .item {width: "+100/t[n]+"%}";else if(2==n)var r=".ResSlid"+e+" .item {width: "+100/t[n]+"%}";else if(3==n)var a=".ResSlid"+e+" .item {width: "+100/t[n]+"%}";$(this).attr("data-value","0");var s="@media (max-width:767px){"+i+"}@media (min-width:768px){"+o+"}@media (min-width:992px){"+r+"}@media (min-width:1200px){"+a+"}";$(this).find("style").remove(),$(this).append("<style>"+s+"</style>"),ResCarouselSlide(this)});var t=performance.now();console.log("Took",(t-e).toFixed(4),"milliseconds to Size")}function ResCarousel(e){var t=$(e).parent(),n=+t.attr("data-slide"),i=t.find(".resCarousel-inner"),o=+t.attr("data-speed"),r=+t.attr("data-load"),a="",s="",l=i.find(".item").length,d=i.find(".item").outerWidth(),c=+Math.round(i.outerWidth()/d),u=$(e).hasClass("leftRs"),h=Math.round(i.scrollLeft()/d);if(o=isNaN(o)?400:o,n=n<c?n:c,u){a=(s=h-n)*d;var f=s+n;0==h?(a=(s=l-n)*d,s=l-c,o=400):n>=f&&(s=a=0)}else{a=(s=h+n)*d;f=s+n;h+c==l?(s=a=0,o=400):l<=f-n+c&&(a=(s=l-n)*d,s=l-c)}"lazy"==t.attr("data-animator")&&resCarouselAnimator(i,u?0:1,s+1,s+c,o,n*d),isNaN(r)||l-(r=r>=n?r:n)<=s+c&&ResCarouselLoad1(i),i.animate({scrollLeft:a},o),t.attr("data-value",s)}function ResCarouselLoad1(e){$("#"+e.attr("id")).trigger("ResCarouselLoad")}function resCarouselAnimator(e,t,n,i,o){var r=5;if(0==t){for(var a=n-1;a<i+1;a++)r*=2;r=-r}for(a=n-1;a<i;a++)r=0==t?r/2:2*r,e.find(".item").eq(a).css("transform","translateX("+r+"px)");setTimeout(function(){e.find(".item").attr("style","")},o-70)}function onInstall(e){console.log("[Serviceworker]","Installing!",e),e.waitUntil(caches.open(CACHE_NAME).then(function(e){return e.addAll(["/offline.html"])}))}function onActivate(e){console.log("[Serviceworker]","Activating!",e),e.waitUntil(caches.keys().then(function(e){return Promise.all(e.filter(function(e){return 0!==e.indexOf(CACHE_VERSION)}).map(function(e){return caches["delete"](e)}))}))}function onFetch(e){e.respondWith(fetch(e.request)["catch"](function(){return caches.match(e.request).then(function(t){return t||("navigate"===e.request.mode||"GET"===e.request.method&&e.request.headers.get("accept").includes("text/html")?(console.log("[Serviceworker]","Fetching offline content",e),caches.match("/offline.html")):void 0)})}))}function onPush(e){const{body:t,icon:n,title:i,tag:o}=JSON.parse(e.data.text());e.waitUntil(registration.showNotification(i,{body:t,icon:n,tag:o}))}function onNotificationClick(e){e.notification.close();const t=e.notification.tag;if(t.includes("demo_class")){const t="http://www.planetspark.in/m_demos";e.waitUntil(clients.matchAll({type:"window"}).then(e=>{for(var n=0;n<e.length;n++){var i=e[n];if(i.url===t&&"focus"in i)return i.focus()}if(clients.openWindow)return clients.openWindow(t)}))}else{if(!t.includes("combat_lead"))return void console.log("Another type of notification, ignoring click action....");{const t="https://www.planetspark.in/employees/combat_leads";e.waitUntil(clients.matchAll({type:"window"}).then(e=>{for(var n=0;n<e.length;n++){var i=e[n];if(i.url===t&&"focus"in i)return i.focus()}if(clients.openWindow)return clients.openWindow(t)}))}}}function viewCart(){localStorage.currentlyRendering="cart_page",window.location.pathname.split("/").length>2?window.location="/shop":(hideAddToCartModal(),renderPage(localStorage.currentlyRendering))}function closeModal(){$("#detailsFillModalShop").modal("hide"),document.getElementById("detailsFillModalShop").style.zIndex=1e3}function prodShow(){localStorage.currentlyRendering="prod_list",window.location.pathname.split("/").length>2?window.location="/shop":(hideAddToCartModal(),renderPage(localStorage.currentlyRendering))}function addToCart(e,t){let n={};try{n=JSON.parse(getCookie("MYCART"))}catch(err){n={}}n[e]||(n[e]={}
9,n[e].price=parseInt(t)),setCookie("MYCART",JSON.stringify(n),100),updateTotalItems(),updateTotalValue()}function updateTotalItems(){totalElmntDiv=document.getElementById("total_items_shop"),totalItemCart=document.getElementById("total_item_cart"),totalItemAddPopup=document.getElementById("total_items_add_cart");let e={};try{e=JSON.parse(getCookie("MYCART"))}catch(err){e={}}e&&"object"==typeof e||(e={}),totalProducts=Object.keys(e).length,totalElmntDiv&&(totalElmntDiv.innerText=totalProducts),totalItemCart&&(totalItemCart.innerText=totalProducts),totalItemAddPopup&&(totalItemAddPopup.innerText=`${1==totalProducts?"is ":"are "}`+totalProducts+" item"+`${1==totalProducts?"":"s"}`)}function deleteFromCart(e,t){document.getElementsByClassName(`product-item-${e}`)[0].remove(),deleteItemFromCookie(e,t),document.getElementById(`add_btn_${e}`)&&(document.getElementById(`add_btn_${e}`).style.display=""),document.getElementById(`remove_btn_${e}`)&&(document.getElementById(`remove_btn_${e}`).style.display="none"),document.getElementById(`add_btn_cart_${e}`)&&(document.getElementById(`add_btn_cart_${e}`).style.display=""),document.getElementById(`remove_btn_cart_${e}`)&&(document.getElementById(`remove_btn_cart_${e}`).style.display="none"),document.getElementById("before_remove_btn_group").style.display="none",document.getElementById("remove_modal_text").innerText="Item remove from cart."}function clearCart(){let e={};try{e=JSON.parse(getCookie("MYCART"))}catch(err){e={}}for(let t of Object.keys(e)){let e=document.getElementsByClassName(`product-item-${t}`)[0];e&&e.remove(),document.getElementById(`add_btn_${t}`).style.display="",document.getElementById(`remove_btn_${t}`).style.display="none"}e={};let t=document.createElement("div");t.classList.add("alert"),t.classList.add("alert-warning"),t.classList.add("fixed-top"),t.style.marginTop=document.getElementById("header").offsetHeight+"px",t.style.zIndex="100 !important",t.classList.add("text-center"),t.style.fontSize="18px",t.innerText="Cart is cleared. Please add more product",$("#partial_div").prepend(t),setTimeout(()=>{t.remove()},2e3),setCookie("MYCART",JSON.stringify(e),100),updateTotalItems(),updateTotalValue(),prodShow()}function buyProduct(e,t,n){checkAdded(t.id)||cartViewUpdate(e,t,n,!0),n?viewCart():(localStorage.currentlyRendering="cart_page",redirectToHome())}function checkAdded(e){let t={};try{t=JSON.parse(getCookie("MYCART"))}catch(err){t={}}return t[e]!=undefined}function deleteItemFromCookie(e){let t={};try{t=JSON.parse(getCookie("MYCART"))}catch(err){t={}}delete t[e],setCookie("MYCART",JSON.stringify(t),100),updateTotalItems(),updateTotalValue()}function updateTotalValue(){let e={};try{e=JSON.parse(getCookie("MYCART"))}catch(err){e={}}e&&"object"==typeof e||(e={});let t=0;for(let n of Object.keys(e))t+=e[n].price;document.getElementById("total_cart_value")&&(document.getElementById("total_cart_value").innerText=t),document.getElementById("total_value_add_cart")&&(document.getElementById("total_value_add_cart").innerText=t)}function updateCartFooter(){totalElmntDiv=document.getElementById("total_items"),totalItemCart=document.getElementById("total_item_cart");let e={};try{e=JSON.parse(getCookie("MYCART"))}catch(err){e={}}totalProducts=Object.keys(e).length,totalElmntDiv.innerText=`${totalProducts}- Total Items`,totalItemCart.innerText=totalProducts}function showProduct(e){window.location="/shop/"+e}function setCookie(e,t,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o="expires="+i.toUTCString();document.cookie=e+"="+encodeURIComponent(t)+";"+o+";path=/"}function getCookie(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}}function redirectToHome(){window.location="/shop"}function redirectToSignIn(){window.location="/account/sign_in?type=Student"}function redirectToLandingPage(){window.location="shop/landing_page"}function fillCart(e){$.ajax({url:"/shop/"+e,type:"GET",dataType:"json",error:()=>{}}).done(e=>{let t=document.createElement("div");document.getElementById("cart_list").appendChild(t),t.classList.add(`product-item-${e.id}`),t.classList.add("added_item"),t.classList.add("mb-3"),t.classList.add("d-flex"),t.classList.add("pt-2"),t.classList.add("pb-3"),t.classList.add("px-3"),t.style.borderBottom="solid 1px black",t.classList.add("justify-content-between"),t.style.width="100%";let n=`\n <div class="d-flex justify-content-start prod_title_image" style="width:60em;">\n <img src="${e.image_url}" alt="Product Image" style="height:max(100px,10vh);object-fit:cover;" >\n \n <div class="pl-3 productCardTitle d-flex align-items-center" style="font-size:16px; font-weight:bold;" onClick="showProduct(${e.id})"> <span> ${e.title} </span> </div>\n </div>\n <div class="product_price d-flex justify-content-between bd-highlight" style="width:35em;">\n <div style="height:100%; font-size:16px; font-weight:bold;" class="d-flex align-items-center justify-content-start">\n Rs. ${e.price}\n </div>\n <div style="height:100%;" class=" d-flex align-items-center justify-content-end ">\n <div class='d-flex justify-content-center'>\n <div onClick='showRemoveAndDeleteModal(${e.id},true)' class='show-btn' style="padding:3px 5px 1px 5px; background-color: #e7e5e5; border-radius:5px;margin-right:3px;"><i class="material-icons" style="font-size: 1.5rem;">remove</i></div>\n <div class='text-center' style="padding:2px 15px; ; border-radius:5px;font-size:16px;">1</div>\n <div class='disabled-btn' style="padding:3px 5px 1px 5px; background-color: #e7e5e5; border-radius:5px;margin-left:3px;" ><i class="material-icons" style="font-size: 1.5rem;">add</i></div>\n </div>\n </div>\n </div>`;t.innerHTML=n,document.getElementById(`add_btn_${e.id}`)&&(document.getElementById(`add_btn_${e.id}
9`).style.display="none"),document.getElementById(`remove_btn_${e.id}`)&&(document.getElementById(`remove_btn_${e.id}`).style.display=""),handleResponsivenes()})}function contentLoad(){let e=window.location.pathname.substring(1).split("/");if("shop"==e[0])if(1==e.length){let e={};try{e=JSON.parse(getCookie("MYCART"))}catch(err){e={}}e&&"object"==typeof e||(e={});for(let t of Object.keys(e))fillCart(t);updateTotalValue(),updateTotalItems(),renderPage(localStorage.currentlyRendering)}else"my_orders"==e[1]?updateTotalItems():"checkout"!=e[1]&&"my_orders"!=e[1]&&(checkShowAdded(),updateTotalItems())}function modalShow(){$("#lead_create_form").appendTo("body").modal("show")}function modalHide(){$("#lead_create_form").modal("hide")}function viewErrMsgModal(e){let t=document.createElement("div");t.classList.add("alert"),t.classList.add("alert-danger"),t.style.zIndex="100 !important",t.classList.add("text-center"),t.style.fontSize="20px",t.style.fontWeight="bold",t.innerText=e+" is required!",$("#errMsgsForm").prepend(t),document.getElementById("new_lead_create_btn").innerText="Save and Proceed",document.getElementById("top_close_btn").style.display="",document.getElementById("close_btn").style.display="",document.getElementById("already_user").style.display="",setTimeout(()=>{t.remove()},3e3)}function createNewUser(){let e=document.getElementById("new_lead_create_btn");e.innerHTML='<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>\n Please Wait...',document.getElementById("top_close_btn").style.display="none",document.getElementById("close_btn").style.display="none",document.getElementById("already_user").style.display="none";let t=["kg","first","second","third","fourth","fifth","sixth","seventh","eighth","ninth","tenth","eleventh","twelfth","adult"],n=document.getElementById("userNameForm").value,i=document.getElementById("userEmailForm").value,o=document.getElementById("userNumberForm").value,r=document.getElementById("userPasswordForm").value,a=document.getElementById("gradeSelectForm").value,s=document.getElementById("userCountryCodeForm").value,l=[],d={};try{d=JSON.parse(getCookie("MYCART"))}catch(err){d={}}for(let e of Object.keys(d))l.push(e);return n?i?s?o?r?a?void $.ajax({url:"/shop/create_new_combat_lead",type:"POST",data:{name:n,email:i,phone:o,grade:t[a],countryCode:s,password:r,cart_items:l},dataType:"json",success:t=>{if(t)if(t.success)modalHide(),e.innerText="Save and Proceed",document.getElementById("top_close_btn").style.display="",document.getElementById("close_btn").style.display="",document.getElementById("already_user").style.display="","processOrderBtn"===shopPageNavbarButtonName?processOrder(!0):"myOrdersBtn"===shopPageNavbarButtonName&&(window.location="/shop?account_created=true");else{let t=document.createElement("div");t.classList.add("alert"),t.classList.add("alert-danger"),t.style.zIndex="100 !important",t.classList.add("text-center"),t.style.fontSize="18px",t.innerText="Some error occured. Please try again",$("#errMsgsForm").prepend(t),e.innerText="Save and Proceed",document.getElementById("top_close_btn").style.display="",document.getElementById("close_btn").style.display="",document.getElementById("already_user").style.display="",setTimeout(()=>{t.remove()},3e3)}else{let t=document.createElement("div");if(t.classList.add("alert"),t.classList.add("alert-danger"),t.style.zIndex="100 !important",t.classList.add("text-center"),t.style.fontSize="20px",t.style.fontWeight="bold",t.innerText="Some error occured. Please try again",""!=err.responseText){let e=JSON.parse(err.responseText);0==e.success&&(t.innerText=e.message)}e.innerText="Save and Proceed",document.getElementById("top_close_btn").style.display="",document.getElementById("close_btn").style.display="",document.getElementById("already_user").style.display="",$("#errMsgsForm").prepend(t),setTimeout(()=>{t.remove()},3e3)}},error:t=>{let n=document.createElement("div");if(n.classList.add("alert"),n.classList.add("alert-danger"),n.style.zIndex="100 !important",n.classList.add("text-center"),n.style.fontSize="20px",n.style.fontWeight="bold",n.innerText="Some error occured. Please try again",""!=t.responseText){let e=JSON.parse(t.responseText);0==e.success&&(e.is_obj?e.message.lead?(e.message.lead.phone&&(n.innerText="PHONE "+e.message.lead.phone[0].toUpperCase()),e.message.lead.email&&(n.innerText="EMAIL "+e.message.lead.email[0].toUpperCase())):e.message.user&&(e.message.user.phone&&(n.innerText="PHONE "+e.message.lead.phone[0].toUpperCase()),e.message.user.email&&(n.innerText="EMAIL "+e.message.lead.email[0].toUpperCase())):n.innerText=e.message)}e.innerText="Save and Proceed",document.getElementById("top_close_btn").style.display="",document.getElementById("close_btn").style.display="",document.getElementById("already_user").style.display="",$("#errMsgsForm").prepend(n),setTimeout(()=>{n.remove()},3e3)}}
9):(viewErrMsgModal("Grade"),void document.getElementById("gradeSelectForm").focus()):(viewErrMsgModal("Password"),void document.getElementById("userPasswordForm").focus()):(viewErrMsgModal("Phone Number"),void document.getElementById("userNumberForm").focus()):(viewErrMsgModal("Country Code"),void document.getElementById("userCountryCodeForm").focus()):(viewErrMsgModal("Email address"),void document.getElementById("userEmailForm").focus()):(viewErrMsgModal("Name"),void document.getElementById("userNameForm").focus())}function initSlick(){$(".newClass:not(.slick-initialized)").slick({centerMode:!0,centerPadding:"60px",slidesToShow:5,autoplay:!0,autoplaySpeed:1e3,arrows:!1,pauseOnFocus:!1,responsive:[{breakpoint:1300,settings:{centerMode:!0,centerPadding:"60px",slidesToShow:4,arrows:!1}},{breakpoint:1120,settings:{arrows:!1,centerMode:!0,centerPadding:"60px",slidesToShow:3}},{breakpoint:769,settings:{arrows:!1,centerMode:!0,centerPadding:"70px",slidesToShow:2}},{breakpoint:480,settings:{arrows:!1,centerMode:!0,centerPadding:"10%",slidesToShow:1}},{breakpoint:400,settings:{arrows:!1,centerMode:!0,centerPadding:"10%",slidesToShow:1}}]}),$(".productClass:not(.slick-initialized)").slick({centerMode:!0,centerPadding:"100px",slidesToShow:4,autoplay:!0,autoplaySpeed:1e3,arrows:!1,pauseOnFocus:!1,infinite:!1,responsive:[{breakpoint:769,settings:{centerMode:!0,slidesToShow:2,arrows:!1}},{breakpoint:500,settings:{arrows:!1,centerMode:!0,centerPadding:"60px",slidesToShow:1}}]}),$(".productClass2:not(.slick-initialized)").slick({centerMode:!0,centerPadding:"100px",slidesToShow:3,autoplay:!0,autoplaySpeed:1e3,arrows:!1,pauseOnFocus:!1,responsive:[{breakpoint:769,settings:{centerMode:!0,slidesToShow:2,arrows:!1}},{breakpoint:500,settings:{arrows:!1,centerMode:!0,centerPadding:"60px",slidesToShow:1}}]}),$(".courseClass:not(.slick-initialized)").slick({centerMode:!0,centerPadding:"0px",slidesToShow:3,slidesToScroll:3,autoplay:!0,autoplaySpeed:1500,adaptiveHeight:!0,arrows:!1,pauseOnFocus:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2,infinite:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2,infinite:!0}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0}}]}),$(".batch_slider:not(.slick-initialized)").slick({centerMode:!0,centerPadding:"10px",slidesToShow:2,autoplay:!0,autoplaySpeed:1500,adaptiveHeight:!0,arrows:!1,pauseOnFocus:!0,responsive:[{breakpoint:769,settings:{centerMode:!0,slidesToShow:1,centerPadding:"70px",arrows:!1}},{breakpoint:500,settings:{arrows:!1,centerMode:!0,centerPadding:"70px",slidesToShow:1}}]}),$(".featuredOn:not(.slick-initialized)").slick({slidesToShow:3,autoplay:!0,autoplaySpeed:1e3,prevArrow:!1,nextArrow:!1,pauseOnFocus:!1,responsive:[{breakpoint:769,settings:{centerMode:!1,slidesToShow:2,arrows:!1}},{breakpoint:500,settings:{centerMode:!1,slidesToShow:2,arrows:!1}}]}),$(".subs_slider:not(.slick-initialized)").slick({centerMode:!0,centerPadding:"100px",slidesToShow:3,autoplay:!0,autoplaySpeed:2e3,arrows:!1,pauseOnFocus:!1,infinite:!0,dots:!0,responsive:[{breakpoint:1400,settings:{centerMode:!0,centerPadding:"100px",slidesToShow:1,arrows:!1,pauseOnFocus:!1,infinite:!0,dots:!0}},{breakpoint:500,settings:{centerMode:!0,centerPadding:"100px",slidesToShow:1,arrows:!1,pauseOnFocus:!1,infinite:!0,dots:!0}}]}),$(".studentAlumniClass:not(.slick-initialized)").slick({centerMode:!0,centerPadding:"0px",slidesToShow:4,slidesToScroll:4,autoplay:!0,autoplaySpeed:1500,speed:1500,adaptiveHeight:!0,arrows:!1,pauseOnFocus:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2,infinite:!0}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0}}]}),$(".studentInspiringStoryClass:not(.slick-initialized)").slick({centerMode:!0,centerPadding:"0px",slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:6e3,speed:1e3,arrows:!1,dots:!0,infinite:!0,adaptiveHeight:!0,pauseOnFocus:!0,cssEase:"linear",responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0}}]}),AOS.init({duration:1e3})}function oyoBookForm(e,t,n,i,o,r){document.getElementById("oyo_center_title").innerHTML=e,document.getElementById("oyo_center_address").innerHTML=t,document.getElementById("learning_center_id").value=r,$("#oyo_center").modal("show")}function initMap(e,t){var n={lat:e,lng:t},i=new google.maps.Map(document.getElementById("oyo_center_image"),{zoom:12,center:n});new google.maps.Marker({position:n,map:i})}function goToLogin(){window.location.href="sessions/new"}function showToast(e,t,n){window.toastr[e](t,n,{showMethod:"slideDown",hideMethod:"slideUp",progressBar:!0,closeButton:!0})}function showErrorMannual(e,t,n){window.toastr[e](t,n,{showMethod:"slideDown",hideMethod:"slideUp",progressBar:!0,closeButton:!0,timeOut:0})}function punchNotificationFn(e,t,n){let i=new Date(t.created_at).toLocaleDateString(),o=new Date(t.created_at).toLocaleTimeString(),r="";t.image_url&&t.image_url.length>0&&(r=t.image_url);let a="";t.read||(a=`<span class="ml-auto unread-indicator bg-accent" id="notification_nav_unread_indicator_${t.id}"></span>`);let s="";r.length>0&&(s=`<img src='${r}' style='max-width: 250px; max-height: 250px;' />`);let l=`\n <a href="javascript:void(0);" class="list-group-item list-group-item-action dn_notifs ${t.read?"":"unread"}" data-notification-purpose="${t.purpose}" data-popup-id="${t.data.action_params&&t.data.action_params.popup_id?t.data.action_params.popup_id:""}" data-notification-id="${t.id}" data-notification-read="${t.read}" data-notification-clicked="${t.clicked}" id="notification_nav_list_a_${t.id}" data-turbolinks="false">
9\n <span class="d-flex align-items-center mb-1">\n <small class="text-black-50">${i} - ${o}</small>\n ${a}\n </span>\n <span class="d-flex">\n <span class="avatar avatar-xs mr-2">\n <span class="avatar-title rounded-circle bg-light">\n <i class="material-icons font-size-16pt text-accent">add_to_photos</i>\n </span>\n </span>\n <span class="flex d-flex flex-column">\n <strong class="text-black-100">${t.title}</strong>\n <span class="text-black-70" style="word-break: break-word;">${t.body}</span>\n ${s}\n </span>\n </span>\n </a>\n `;"append"==n?$(`#notification_nav_content_${e}`).append(l):"prepend"==n&&$(`#notification_nav_content_${e}`).prepend(l);let d=parseInt($(`#notification_nav_badge_${e}`).text());unreadNotificationBadgeUpdateFn(e,d+1),$(`#notification_nav_list_a_${t.id}`).on("click",function(){notificationMarkAsClickFn(e,t.id,t.action_type,t.action,t.purpose,t.data.action_params)})}function processNotificationClickFn(e,t,n,i){let o="";"external"!=n&&"webview"!=n||(o=i),o.length>0&&$(`#notification_nav_list_a_${t}`).length>0&&(window.location.href=i)}function notificationMarkAsClickFn(e,t,n,i,o,r){let a=document.getElementById(`notification_nav_list_a_${t}`);if(a){let o=a.dataset.notificationClicked;if("false"==o||0==o){a.setAttribute("data-notification-clicked",!0);let o=document.querySelector("meta[name='csrf-token']").content;fetch(`/users/notifications/mark_notification_click?notification_id=${t}`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":o}}).then(e=>e.json()).then(()=>{processNotificationClickFn(e,t,n,i)})["catch"](e=>console.log(e))}else processNotificationClickFn(e,t,n,i)}"user_popup"==o&&r&&r.popup_id&¬ifiContent(r.popup_id)}function unreadNotificationBadgeUpdateFn(e,t){$(`#notification_nav_badge_${e}`).html(t),t>0?$(`#notification_nav_badge_${e}`).removeClass("d-none"):$(`#notification_nav_badge_${e}`).addClass("d-none")}function notificationDisplayMarkAsReadFn(e,t){t.forEach(function(e){$(`#notification_nav_unread_indicator_${e}`).remove(),document.getElementById(`notification_nav_list_a_${e}`)&&document.getElementById(`notification_nav_list_a_${e}`).setAttribute("data-notification-read",!0)}),unreadNotificationBadgeUpdateFn(e,parseInt($(`#notification_nav_badge_${e}`).text())-t.length)}function notificationMarkAllAsReadFn(e){let t=document.getElementById(`notification_nav_content_${e}`).querySelectorAll(".dn_notifs");if(all_notification_ids=[],t.forEach(function(e){"false"!=e.dataset.notificationRead&&0!=e.dataset.notificationRead||all_notification_ids.push(e.dataset.notificationId)}),all_notification_ids.length>0){let t=document.querySelector("meta[name='csrf-token']").content;fetch(`/users/notifications/mark_notifications_read?notification_ids=${all_notification_ids}`,{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":t}}).then(e=>e.json()).then(()=>{notificationDisplayMarkAsReadFn(e,all_notification_ids)})["catch"](e=>console.log(e))}}function notificationNoNewFn(e){let t='\n <div class="text-center mt-1 mb-3">\n <i class="material-icons text-success border-success" style="font-size: 40px;border-radius: 50%;border: 2px solid;opacity: 0.6;">done</i>\n <p class="text-muted mb-0 fs-0-9rem">No Notifications to Display. <br /> You\'re All Caught Up.</p>\n </div>\n ';$(`#notification_nav_content_${e}`).append(t)}function notificationScrollEveFn(e){if(e.target.scrollHeight-e.target.scrollTop<=e.target.clientHeight+100){let t=parseInt(document.getElementById(`notification_nav_content_${e.target.dataset.userId}`).dataset.pageNumber)+1;document.getElementById(`notification_nav_content_${e.target.dataset.userId}`).setAttribute("data-page-number",t),notificationFetchFn(e.target.dataset.userId,t,!0),e.target.removeEventListener("scroll",notificationScrollEveFn)}}function notificationLoadMoreScrollableFn(e){document.getElementById(`notification_nav_scrollable_${e}`).addEventListener("scroll",notificationScrollEveFn,{passive:!0})}function notificationFetchFn(e,t,n){fetch(`/users/notifications/fetch_notifications?page=${t}&mark_read=${n}`,{method:"GET"}).then(e=>e.json()).then(t=>{if(!t.success)return!1;$(`#notification_nav_content_${e}`).length>0&&(notifications_array=[],t.notifications.forEach(function(t){punchNotificationFn(e,t,"append")}),unreadNotificationBadgeUpdateFn(e,t.unread_notifications_count),current_page_number=parseInt(document.getElementById(`notification_nav_content_${e}`).dataset.pageNumber),1==current_page_number&&$(`#notification_nav_bell_btn_${e}`).on("click",function(){notificationMarkAllAsReadFn(e)}),"true"==t.is_last_page||1==t.is_last_page?notificationNoNewFn(e):notificationLoadMoreScrollableFn(e))})["catch"](e=>console.log(e))}function notifiContent(e){e&&$.ajax({url:"/lms_v2/get_userpopup_detail",type:"GET",data:{popup_id:e},dataType:"json",success:function(e){if(console.log("Data received:",e),e.success){var t=e.detail;showUserPopup(t.accept_btn_text,t.title,t.close_btn_show,t.id,t.user_type,t.description,t.icon,t.link,t.link_type,t.file?t.file.url:null,t.declaration_description,t.meta)}},error:function(e){console.error("Error:",e.responseText)}})}function showUserPopup(e,t,n,i,o,r,a,s,l,d,c,u){Swal.fire({title:t,icon:"info",html:`\n <div style="display: flex; flex-direction: column;">\n <div class="d-flex flex-column justify-content-center">
9\n <div class="text-justify" style="margin-block:5px;">${r}</div>\n </div>\n ${d&&"https://cdn.planetspark.in/missing.png"!==d?`\n <img style="width:400px; height:400px; align-self: center; border-radius:10px" src="${d}" alt="img">\n `:""}\n ${s?`<a ${"internal"!==l?'target="_blank"':""} href="${s}">\n <button type="button" class="btn btn-primary" style="margin-block:5px; align-self: center;">View ></button>\n </a>`:""}\n ${u&&"enabled"===u.checkbox_status?`\n <div class="d-flex flex-row justify-content-center">\n <label class="text-justify">\n <input style="margin-right:5px" type="checkbox" id="acknowledgeCheckbox"/> ${c}\n </label> \n </div>`:""}\n </div>\n `,confirmButtonText:e,showCancelButton:!1,showCloseButton:n,allowOutsideClick:n,didOpen:function(){var e=Swal.getConfirmButton(),t=$("#acknowledgeCheckbox");console.log("Checkbox element:",t),t.length&&(e.disabled=!0,t.on("change",function(){e.disabled=!this.checked}))}}).then(function(e){if(e.isConfirmed){var t=$("#acknowledgeCheckbox");u&&"enabled"===u.checkbox_status?t.is(":checked")?$.ajax({url:"/users/user_acknowledgements/set_user_acknowledge_data",type:"POST",dataType:"json",data:{id:i,user_type:o},success:function(e){console.log("Success:",e)},error:function(e){console.error("Error:",e.responseText)}}):Swal.fire({title:"Error!",text:"Please select the checkbox to acknowledge.",icon:"error"}):$.ajax({url:"/users/user_acknowledgements/set_user_acknowledge_data",type:"POST",dataType:"json",data:{id:i,user_type:o},success:function(e){console.log("Success:",e)},error:function(e){console.error("Error:",e.responseText)}})}else e.isDenied&&Swal.fire("Changes are not saved","","info")})}function createElementWithAttributes(e,t,n){const i=document.createElement(e);Object.keys(t).forEach(e=>{i.setAttribute(e,t[e])}),n&&"function"==typeof n&&(i.onload=function(){n(this)}),document.head.appendChild(i)}(function(){this.Turbolinks={supported:null!=window.history.pushState&&null!=window.requestAnimationFrame&&null!=window.addEventListener,visit:function(e,t){return Turbolinks.controller.visit(e,t)},clearCache:function(){return Turbolinks.controller.clearCache()},setProgressBarDelay:function(e){return Turbolinks.controller.setProgressBarDelay(e)}}}).call(this),function(){var e,t,n,i=[].slice;Turbolinks.copyObject=function(e){var t,n,i;for(t in n={},e)i=e[t],n[t]=i;return n},Turbolinks.closest=function(t,n){return e.call(t,n)},e=function(){var e;return null!=(e=document.documentElement.closest)?e:function(e){var n;for(n=this;n;){if(n.nodeType===Node.ELEMENT_NODE&&t.call(n,e))return n;n=n.parentNode}}}(),Turbolinks.defer=function(e){return setTimeout(e,1)},Turbolinks.throttle=function(e){var t;return t=null,function(){var n;return n=1<=arguments.length?i.call(arguments,0):[],null!=t?t:t=requestAnimationFrame(function(i){return function(){return t=null,e.apply(i,n)}}(this))}},Turbolinks.dispatch=function(e,t){var i,o,r,a,s,l;return l=(s=null!=t?t:{}).target,i=s.cancelable,o=s.data,(r=document.createEvent("Events")).initEvent(e,!0,!0===i),r.data=null!=o?o:{},r.cancelable&&!n&&(a=r.preventDefault,r.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),a.call(this)}),(null!=l?l:document).dispatchEvent(r),r},n=function(){var e;return(e=document.createEvent("Events")).initEvent("test",!0,!0),e.preventDefault(),e.defaultPrevented}(),Turbolinks.match=function(e,n){return t.call(e,n)},t=function(){var e,t,n,i;return null!=(t=null!=(n=null!=(i=(e=document.documentElement).matchesSelector)?i:e.webkitMatchesSelector)?n:e.msMatchesSelector)?t:e.mozMatchesSelector}(),Turbolinks.uuid=function(){var e,t,n;for(n="",e=t=1;36>=t;e=++t)n+=9===e||14===e||19===e||24===e?"-":15===e?"4":20===e?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return n}}.call(this),function(){Turbolinks.Location=function(){function e(e){var t,n;null==e&&(e=""),(n=document.createElement("a")).href=e.toString(),this.absoluteURL=n.href,2>(t=n.hash.length)?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-t),this.anchor=n.hash.slice(1))}var t,n,i,o;return e.wrap=function(e){return e instanceof this?e:new this(e)},e.prototype.getOrigin=function(){return this.absoluteURL.split("/",3).join("/")},e.prototype.getPath=function(){var e,t;return null!=(e=null!=(t=this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/))?t[1]:void 0)?e:"/"},e.prototype.getPathComponents=function(){return this.getPath().split("/").slice(1)},e.prototype.getLastPathComponent=function(){ 10return this.getPathComponents().slice(-1)[0]},e.prototype.getExtension=function(){var e,t;return null!=(e=null!=(t=this.getLastPathComponent().match(/\.[^.]*$/))?t[0]:void 0)?e:""},e.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},e.prototype.isPrefixedBy=function(e){var t;return t=n(e),this.isEqualTo(e)||o(this.absoluteURL,t)},e.prototype.isEqualTo=function(e){return this.absoluteURL===(null!=e?e.absoluteURL:void 0)},e.prototype.toCacheKey=function(){return this.requestURL},e.prototype.toJSON=function(){return this.absoluteURL},e.prototype.toString=function(){return this.absoluteURL},e.prototype.valueOf=function(){return this.absoluteURL},n=function(e){return t(e.getOrigin()+e.getPath())},t=function(e){return i(e,"/")?e:e+"/"},o=function(e,t){return e.slice(0,t.length)===t},i=function(e,t){return e.slice(-t.length)===t},e}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.HttpRequest=function(){function t(t,n,i){this.delegate=t,this.requestCanceled=e(this.requestCanceled,this),this.requestTimedOut=e(this.requestTimedOut,this),this.requestFailed=e(this.requestFailed,this),this.requestLoaded=e(this.requestLoaded,this),this.requestProgressed=e(this.requestProgressed,this),this.url=Turbolinks.Location.wrap(n).requestURL,this.referrer=Turbolinks.Location.wrap(i).absoluteURL,this.createXHR()}return t.NETWORK_FAILURE=0,t.TIMEOUT_FAILURE=-1,t.timeout=60,t.prototype.send=function(){var e;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,"function"==typeof(e=this.delegate).requestStarted?e.requestStarted():void 0):void 0},t.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},t.prototype.requestProgressed=function(e){return e.lengthComputable?this.setProgress(e.loaded/e.total):void 0}
10,t.prototype.requestLoaded=function(){return this.endRequest((e=this,function(){var t;return 200<=(t=e.xhr.status)&&300>t?e.delegate.requestCompletedWithResponse(e.xhr.responseText,e.xhr.getResponseHeader("Turbolinks-Location")):(e.failed=!0,e.delegate.requestFailedWithStatusCode(e.xhr.status,e.xhr.responseText))}));var e},t.prototype.requestFailed=function(){return this.endRequest((e=this,function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.NETWORK_FAILURE)}));var e},t.prototype.requestTimedOut=function(){return this.endRequest((e=this,function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.TIMEOUT_FAILURE)}));var e},t.prototype.requestCanceled=function(){return this.endRequest()},t.prototype.notifyApplicationBeforeRequestStart=function(){return Turbolinks.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},t.prototype.notifyApplicationAfterRequestEnd=function(){return Turbolinks.dispatch("turbolinks:request-end",{data:{url:this.url,xhr:this.xhr}})},t.prototype.createXHR=function(){return this.xhr=new XMLHttpRequest,this.xhr.open("GET",this.url,!0),this.xhr.timeout=1e3*this.constructor.timeout,this.xhr.setRequestHeader("Accept","text/html, application/xhtml+xml"),this.xhr.setRequestHeader("Turbolinks-Referrer",this.referrer),this.xhr.onprogress=this.requestProgressed,this.xhr.onload=this.requestLoaded,this.xhr.onerror=this.requestFailed,this.xhr.ontimeout=this.requestTimedOut,this.xhr.onabort=this.requestCanceled},t.prototype.endRequest=function(e){return this.xhr?(this.notifyApplicationAfterRequestEnd(),null!=e&&e.call(this),this.destroy()):void 0},t.prototype.setProgress=function(e){var t;return this.progress=e,"function"==typeof(t=this.delegate).requestProgressed?t.requestProgressed(this.progress):void 0},t.prototype.destroy=function(){var e;return this.setProgress(1),"function"==typeof(e=this.delegate).requestFinished&&e.requestFinished(),this.delegate=null,this.xhr=null},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.ProgressBar=function(){function t(){this.trickle=e(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var n;return n=300,t.defaultCSS=".turbolinks-progress-bar {\n position: fixed;\n display: block;\n top: 0;\n left: 0;\n height: 3px;\n background: #0076ff;\n z-index: 9999;\n transition: width "+n+"ms ease-out, opacity "+n/2+"ms "+n/2+"ms ease-in;\n transform: translate3d(0, 0, 0);\n}",t.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},t.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement((e=this,function(){return e.uninstallProgressElement(),e.stopTrickling(),e.visible=!1,e.hiding=!1}))):void 0;var e},t.prototype.setValue=function(e){return this.value=e,this.refresh()},t.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},t.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},t.prototype.fadeProgressElement=function(e){return this.progressElement.style.opacity=0,setTimeout(e,1.5*n)},t.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement):void 0},t.prototype.startTrickling=function(){return null!=this.trickleInterval?this.trickleInterval:this.trickleInterval=setInterval(this.trickle,n)},t.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},t.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},t.prototype.refresh=function(){return requestAnimationFrame((e=this,function(){return e.progressElement.style.width=10+90*e.value+"%"}));var e},t.prototype.createStylesheetElement=function(){var e;return(e=document.createElement("style")).type="text/css",e.textContent=this.constructor.defaultCSS,e},t.prototype.createProgressElement=function(){var e;return(e=document.createElement("div")).className="turbolinks-progress-bar",e},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.BrowserAdapter=function(){function t(t){this.controller=t,this.showProgressBar=e(this.showProgressBar,this),this.progressBar=new Turbolinks.ProgressBar}var n,i,o;return o=Turbolinks.HttpRequest,n=o.NETWORK_FAILURE,i=o.TIMEOUT_FAILURE,t.prototype.visitProposedToLocationWithAction=function(e,t){return this.controller.startVisitToLocationWithAction(e,t)},t.prototype.visitStarted=function(e){return e.issueRequest(),e.changeHistory(),e.loadCachedSnapshot()},t.prototype.visitRequestStarted=function(e){return this.progressBar.setValue(0),e.hasCachedSnapshot()||"restore"!==e.action?this.showProgressBarAfterDelay():this.showProgressBar()},t.prototype.visitRequestProgressed=function(e){return this.progressBar.setValue(e.progress)},t.prototype.visitRequestCompleted=function(e){return e.loadResponse()},t.prototype.visitRequestFailedWithStatusCode=function(e,t){switch(t){case n:case i:return this.reload();default:return e.loadResponse()}},t.prototype.visitRequestFinished=function(){return this.hideProgressBar()},t.prototype.visitCompleted=function(e){return e.followRedirect()},t.prototype.pageInvalidated=function(){return this.reload()},t.prototype.showProgressBarAfterDelay=function(){return this.progressBarTimeout=setTimeout(this.showProgressBar,this.controller.progressBarDelay)},t.prototype.showProgressBar=function(){return this.progressBar.show()},t.prototype.hideProgressBar=function(){return this.progressBar.hide(),clearTimeout(this.progressBarTimeout)},t.prototype.reload=function(){return window.location.reload()},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.History=function(){function t(t){this.delegate=t,this.onPageLoad=e(this.onPageLoad,this),this.onPopState=e(this.onPopState,this)}return t.prototype.start=function(){return this.started?void 0:(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0)},t.prototype.stop=function(){return this.started?(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},t.prototype.push=function(e,t){return e=Turbolinks.Location.wrap(e),this.update("push",e,t)},t.prototype.replace=function(e,t){return e=Turbolinks.Location.wrap(e),this.update("replace",e,t)},t.prototype.onPopState=function(e){var t,n,i,o;return this.shouldHandlePopState()&&(o=null!=(n=e.state)?n.turbolinks:void 0)?(t=Turbolinks.Location.wrap(window.location),i=o.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(t,i)):void 0},t.prototype.onPageLoad=function(){return Turbolinks.defer(function(e){return function(){return e.pageLoaded=!0}}(this))},t.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},t.prototype.pageIsLoaded=function(){return this.pageLoaded||"complete"===document.readyState},t.prototype.update=function(e,t,n){var i;return i={turbolinks:{restorationIdentifier:n}},history[e+"State"](i,null,t)},t}()}.call(this),function(){Turbolinks.Snapshot=function(){function e(e){var t,n;n=e.head,t=e.body,this.head=null!=n?n:document.createElement("head"),this.body=null!=t?t:document.createElement("body")}return e.wrap=function(e){return e instanceof this?e:this.fromHTML(e)},e.fromHTML=function(e){var t;return(t=document.createElement("html")).innerHTML=e,this.fromElement(t)},e.fromElement=function(e){return new this({head:e.querySelector("head"),body:e.querySelector("body")})},e.prototype.clone=function(){return new e({head:this.head.cloneNode(!0),body:this.body.cloneNode(!0)})},e.prototype.getRootLocation=function(){var e,t;return t=null!=(e=this.getSetting("root"))?e:"/",new Turbolinks.Location(t)}
10,e.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},e.prototype.getElementForAnchor=function(e){try{return this.body.querySelector("[id='"+e+"'], a[name='"+e+"']")}catch(t){}},e.prototype.hasAnchor=function(e){return null!=this.getElementForAnchor(e)},e.prototype.isPreviewable=function(){return"no-preview"!==this.getCacheControlValue()},e.prototype.isCacheable=function(){return"no-cache"!==this.getCacheControlValue()},e.prototype.isVisitable=function(){return"reload"!==this.getSetting("visit-control")},e.prototype.getSetting=function(e){var t,n;return null!=(t=(n=this.head.querySelectorAll("meta[name='turbolinks-"+e+"']"))[n.length-1])?t.getAttribute("content"):void 0},e}()}.call(this),function(){var e=[].slice;Turbolinks.Renderer=function(){function t(){}var n;return t.render=function(){var t,n,i;return n=arguments[0],t=arguments[1],(i=function(e,t,n){n.prototype=e.prototype;var i=new n,o=e.apply(i,t);return Object(o)===o?o:i}(this,3<=arguments.length?e.call(arguments,2):[],function(){})).delegate=n,i.render(t),i},t.prototype.renderView=function(e){return this.delegate.viewWillRender(this.newBody),e(),this.delegate.viewRendered(this.newBody)},t.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},t.prototype.createScriptElement=function(e){var t;return"false"===e.getAttribute("data-turbolinks-eval")?e:((t=document.createElement("script")).textContent=e.textContent,t.async=!1,n(t,e),t)},n=function(e,t){var n,i,o,r,a,s,l;for(s=[],n=0,i=(r=t.attributes).length;i>n;n++)o=(a=r[n]).name,l=a.value,s.push(e.setAttribute(o,l));return s},t}()}.call(this),function(){Turbolinks.HeadDetails=function(){function e(e){var t,n,r,a,s,l;for(this.element=e,this.elements={},r=0,s=(l=this.element.childNodes).length;s>r;r++)(n=l[r]).nodeType===Node.ELEMENT_NODE&&(a=n.outerHTML,(null!=(t=this.elements)[a]?t[a]:t[a]={type:o(n),tracked:i(n),elements:[]}).elements.push(n))}var t,n,i,o;return e.prototype.hasElementWithKey=function(e){return e in this.elements},e.prototype.getTrackedElementSignature=function(){var e;return function(){var t,n;for(e in n=[],t=this.elements)t[e].tracked&&n.push(e);return n}.call(this).join("")},e.prototype.getScriptElementsNotInDetails=function(e){return this.getElementsMatchingTypeNotInDetails("script",e)},e.prototype.getStylesheetElementsNotInDetails=function(e){return this.getElementsMatchingTypeNotInDetails("stylesheet",e)},e.prototype.getElementsMatchingTypeNotInDetails=function(e,t){var n,i,o,r,a,s;for(i in a=[],o=this.elements)s=(r=o[i]).type,n=r.elements,s!==e||t.hasElementWithKey(i)||a.push(n[0]);return a},e.prototype.getProvisionalElements=function(){var e,t,n,i,o,r,a;for(t in n=[],i=this.elements)a=(o=i[t]).type,r=o.tracked,e=o.elements,null!=a||r?e.length>1&&n.push.apply(n,e.slice(1)):n.push.apply(n,e);return n},o=function(e){return t(e)?"script":n(e)?"stylesheet":void 0},i=function(e){return"reload"===e.getAttribute("data-turbolinks-track")},t=function(e){return"script"===e.tagName.toLowerCase()},n=function(e){var t;return"style"===(t=e.tagName.toLowerCase())||"link"===t&&"stylesheet"===e.getAttribute("rel")},e}()}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Turbolinks.SnapshotRenderer=function(t){function n(e,t,n){this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=n,this.currentHeadDetails=new Turbolinks.HeadDetails(this.currentSnapshot.head),this.newHeadDetails=new Turbolinks.HeadDetails(this.newSnapshot.head),this.newBody=this.newSnapshot.body}return e(n,t),n.prototype.render=function(e){return this.shouldRender()?(this.mergeHead(),this.renderView((t=this,function(){return t.replaceBody(),t.isPreview||t.focusFirstAutofocusableElement(),e()}))):this.invalidateView();var t},n.prototype.mergeHead=function(){return this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()},n.prototype.replaceBody=function(){return this.activateBodyScriptElements(),this.importBodyPermanentElements(),this.assignNewBody()}
10,n.prototype.shouldRender=function(){return this.newSnapshot.isVisitable()&&this.trackedElementsAreIdentical()},n.prototype.trackedElementsAreIdentical=function(){return this.currentHeadDetails.getTrackedElementSignature()===this.newHeadDetails.getTrackedElementSignature()},n.prototype.copyNewHeadStylesheetElements=function(){var e,t,n,i,o;for(o=[],t=0,n=(i=this.getNewHeadStylesheetElements()).length;n>t;t++)e=i[t],o.push(document.head.appendChild(e));return o},n.prototype.copyNewHeadScriptElements=function(){var e,t,n,i,o;for(o=[],t=0,n=(i=this.getNewHeadScriptElements()).length;n>t;t++)e=i[t],o.push(document.head.appendChild(this.createScriptElement(e)));return o},n.prototype.removeCurrentHeadProvisionalElements=function(){var e,t,n,i,o;for(o=[],t=0,n=(i=this.getCurrentHeadProvisionalElements()).length;n>t;t++)e=i[t],o.push(document.head.removeChild(e));return o},n.prototype.copyNewHeadProvisionalElements=function(){var e,t,n,i,o;for(o=[],t=0,n=(i=this.getNewHeadProvisionalElements()).length;n>t;t++)e=i[t],o.push(document.head.appendChild(e));return o},n.prototype.importBodyPermanentElements=function(){var e,t,n,i,o,r;for(r=[],t=0,n=(i=this.getNewBodyPermanentElements()).length;n>t;t++)o=i[t],(e=this.findCurrentBodyPermanentElement(o))?r.push(o.parentNode.replaceChild(e,o)):r.push(void 0);return r},n.prototype.activateBodyScriptElements=function(){var e,t,n,i,o,r;for(r=[],t=0,n=(i=this.getNewBodyScriptElements()).length;n>t;t++)o=i[t],e=this.createScriptElement(o),r.push(o.parentNode.replaceChild(e,o));return r},n.prototype.assignNewBody=function(){return document.body=this.newBody},n.prototype.focusFirstAutofocusableElement=function(){var e;return null!=(e=this.findFirstAutofocusableElement())?e.focus():void 0},n.prototype.getNewHeadStylesheetElements=function(){return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails)},n.prototype.getNewHeadScriptElements=function(){return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails)},n.prototype.getCurrentHeadProvisionalElements=function(){return this.currentHeadDetails.getProvisionalElements()},n.prototype.getNewHeadProvisionalElements=function(){return this.newHeadDetails.getProvisionalElements()},n.prototype.getNewBodyPermanentElements=function(){return this.newBody.querySelectorAll("[id][data-turbolinks-permanent]")},n.prototype.findCurrentBodyPermanentElement=function(e){return document.body.querySelector("#"+e.id+"[data-turbolinks-permanent]")},n.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll("script")},n.prototype.findFirstAutofocusableElement=function(){return document.body.querySelector("[autofocus]")},n}(Turbolinks.Renderer)}.call(this),function(){var e=function(e,n){function i(){this.constructor=e}for(var o in n)t.call(n,o)&&(e[o]=n[o]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},t={}.hasOwnProperty;Turbolinks.ErrorRenderer=function(t){function n(e){this.html=e}return e(n,t),n.prototype.render=function(e){return this.renderView((t=this,function(){return t.replaceDocumentHTML(),t.activateBodyScriptElements(),e()}));var t},n.prototype.replaceDocumentHTML=function(){return document.documentElement.innerHTML=this.html},n.prototype.activateBodyScriptElements=function(){var e,t,n,i,o,r;for(r=[],t=0,n=(i=this.getScriptElements()).length;n>t;t++)o=i[t],e=this.createScriptElement(o),r.push(o.parentNode.replaceChild(e,o));return r},n.prototype.getScriptElements=function(){return document.documentElement.querySelectorAll("script")},n}(Turbolinks.Renderer)}.call(this),function(){Turbolinks.View=function(){function e(e){this.delegate=e,this.element=document.documentElement}return e.prototype.getRootLocation=function(){return this.getSnapshot().getRootLocation()},e.prototype.getElementForAnchor=function(e){return this.getSnapshot().getElementForAnchor(e)},e.prototype.getSnapshot=function(){return Turbolinks.Snapshot.fromElement(this.element)},e.prototype.render=function(e,t){var n,i,o;return o=e.snapshot,n=e.error,i=e.isPreview,this.markAsPreview(i),null!=o?this.renderSnapshot(o,i,t):this.renderError(n,t)},e.prototype.markAsPreview=function(e){return e?this.element.setAttribute("data-turbolinks-preview",""):this.element.removeAttribute("data-turbolinks-preview")},e.prototype.renderSnapshot=function(e,t,n){return Turbolinks.SnapshotRenderer.render(this.delegate,n,this.get
10Snapshot(),Turbolinks.Snapshot.wrap(e),t)},e.prototype.renderError=function(e,t){return Turbolinks.ErrorRenderer.render(this.delegate,t,e)},e}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.ScrollManager=function(){function t(t){this.delegate=t,this.onScroll=e(this.onScroll,this),this.onScroll=Turbolinks.throttle(this.onScroll)}return t.prototype.start=function(){return this.started?void 0:(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)},t.prototype.stop=function(){return this.started?(removeEventListener("scroll",this.onScroll,!1),this.started=!1):void 0},t.prototype.scrollToElement=function(e){return e.scrollIntoView()},t.prototype.scrollToPosition=function(e){var t,n;return t=e.x,n=e.y,window.scrollTo(t,n)},t.prototype.onScroll=function(){return this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},t.prototype.updatePosition=function(e){var t;return this.position=e,null!=(t=this.delegate)?t.scrollPositionChanged(this.position):void 0},t}()}.call(this),function(){Turbolinks.SnapshotCache=function(){function e(e){this.size=e,this.keys=[],this.snapshots={}}var t;return e.prototype.has=function(e){return t(e)in this.snapshots},e.prototype.get=function(e){var t;if(this.has(e))return t=this.read(e),this.touch(e),t},e.prototype.put=function(e,t){return this.write(e,t),this.touch(e),t},e.prototype.read=function(e){var n;return n=t(e),this.snapshots[n]},e.prototype.write=function(e,n){var i;return i=t(e),this.snapshots[i]=n},e.prototype.touch=function(e){var n,i;return i=t(e),(n=this.keys.indexOf(i))>-1&&this.keys.splice(n,1),this.keys.unshift(i),this.trim()},e.prototype.trim=function(){var e,t,n,i,o;for(o=[],e=0,n=(i=this.keys.splice(this.size)).length;n>e;e++)t=i[e],o.push(delete this.snapshots[t]);return o},t=function(e){return Turbolinks.Location.wrap(e).toCacheKey()},e}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.Visit=function(){function t(t,n,i){this.controller=t,this.action=i,this.performScroll=e(this.performScroll,this),this.identifier=Turbolinks.uuid(),this.location=Turbolinks.Location.wrap(n),this.adapter=this.controller.adapter,this.state="initialized",this.timingMetrics={}}var n;return t.prototype.start=function(){return"initialized"===this.state?(this.recordTimingMetric("visitStart"),this.state="started",this.adapter.visitStarted(this)):void 0},t.prototype.cancel=function(){var e;return"started"===this.state?(null!=(e=this.request)&&e.cancel(),this.cancelRender(),this.state="canceled"):void 0},t.prototype.complete=function(){var e;return"started"===this.state?(this.recordTimingMetric("visitEnd"),this.state="completed","function"==typeof(e=this.adapter).visitCompleted&&e.visitCompleted(this),this.controller.visitCompleted(this)):void 0},t.prototype.fail=function(){var e;return"started"===this.state?(this.state="failed","function"==typeof(e=this.adapter).visitFailed?e.visitFailed(this):void 0):void 0},t.prototype.changeHistory=function(){var e,t;return this.historyChanged?void 0:(e=this.location.isEqualTo(this.referrer)?"replace":this.action,t=n(e),this.controller[t](this.location,this.restorationIdentifier),this.historyChanged=!0)},t.prototype.issueRequest=function(){return this.shouldIssueRequest()&&null==this.request?(this.progress=0,this.request=new Turbolinks.HttpRequest(this,this.location,this.referrer),this.request.send()):void 0},t.prototype.getCachedSnapshot=function(){var e;return!(e=this.controller.getCachedSnapshotForLocation(this.location))||null!=this.location.anchor&&!e.hasAnchor(this.location.anchor)||"restore"!==this.action&&!e.isPreviewable()?void 0:e},t.prototype.hasCachedSnapshot=function(){return null!=this.getCachedSnapshot()},t.prototype.loadCachedSnapshot=function(){var e,t;return(t=this.getCachedSnapshot())?(e=this.shouldIssueRequest(),this.render(function(){var n;return this.cacheSnapshot(),this.controller.render({snapshot:t,isPreview:e},this.performScroll),"function"==typeof(n=this.adapter).visitRendered&&n.visitRendered(this),e?void 0:this.complete()}
10)):void 0},t.prototype.loadResponse=function(){return null!=this.response?this.render(function(){var e,t;return this.cacheSnapshot(),this.request.failed?(this.controller.render({error:this.response},this.performScroll),"function"==typeof(e=this.adapter).visitRendered&&e.visitRendered(this),this.fail()):(this.controller.render({snapshot:this.response},this.performScroll),"function"==typeof(t=this.adapter).visitRendered&&t.visitRendered(this),this.complete())}):void 0},t.prototype.followRedirect=function(){return this.redirectedToLocation&&!this.followedRedirect?(this.location=this.redirectedToLocation,this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation,this.restorationIdentifier),this.followedRedirect=!0):void 0},t.prototype.requestStarted=function(){var e;return this.recordTimingMetric("requestStart"),"function"==typeof(e=this.adapter).visitRequestStarted?e.visitRequestStarted(this):void 0},t.prototype.requestProgressed=function(e){var t;return this.progress=e,"function"==typeof(t=this.adapter).visitRequestProgressed?t.visitRequestProgressed(this):void 0},t.prototype.requestCompletedWithResponse=function(e,t){return this.response=e,null!=t&&(this.redirectedToLocation=Turbolinks.Location.wrap(t)),this.adapter.visitRequestCompleted(this)},t.prototype.requestFailedWithStatusCode=function(e,t){return this.response=t,this.adapter.visitRequestFailedWithStatusCode(this,e)},t.prototype.requestFinished=function(){var e;return this.recordTimingMetric("requestEnd"),"function"==typeof(e=this.adapter).visitRequestFinished?e.visitRequestFinished(this):void 0},t.prototype.performScroll=function(){return this.scrolled?void 0:("restore"===this.action?this.scrollToRestoredPosition()||this.scrollToTop():this.scrollToAnchor()||this.scrollToTop(),this.scrolled=!0)},t.prototype.scrollToRestoredPosition=function(){var e,t;return null!=(e=null!=(t=this.restorationData)?t.scrollPosition:void 0)?(this.controller.scrollToPosition(e),!0):void 0},t.prototype.scrollToAnchor=function(){return null!=this.location.anchor?(this.controller.scrollToAnchor(this.location.anchor),!0):void 0},t.prototype.scrollToTop=function(){return this.controller.scrollToPosition({x:0,y:0})},t.prototype.recordTimingMetric=function(e){var t;return null!=(t=this.timingMetrics)[e]?t[e]:t[e]=(new Date).getTime()},t.prototype.getTimingMetrics=function(){return Turbolinks.copyObject(this.timingMetrics)},n=function(e){switch(e){case"replace":return"replaceHistoryWithLocationAndRestorationIdentifier";case"advance":case"restore":return"pushHistoryWithLocationAndRestorationIdentifier"}},t.prototype.shouldIssueRequest=function(){return"restore"!==this.action||!this.hasCachedSnapshot()},t.prototype.cacheSnapshot=function(){return this.snapshotCached?void 0:(this.controller.cacheSnapshot(),this.snapshotCached=!0)},t.prototype.render=function(e){return this.cancelRender(),this.frame=requestAnimationFrame((t=this,function(){return t.frame=null,e.call(t)}));var t},t.prototype.cancelRender=function(){return this.frame?cancelAnimationFrame(this.frame):void 0},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};Turbolinks.Controller=function(){function t(){this.clickBubbled=e(this.clickBubbled,this),this.clickCaptured=e(this.clickCaptured,this),this.pageLoaded=e(this.pageLoaded,this),this.history=new Turbolinks.History(this),this.view=new Turbolinks.View(this),this.scrollManager=new Turbolinks.ScrollManager(this),this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}return t.prototype.start=function(){return Turbolinks.supported&&!this.started?(addEventListener("click",this.clickCaptured,!0),addEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.start(),this.startHistory(),this.started=!0,this.enabled=!0):void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.stop=function(){return this.started?(removeEventListener("click",this.clickCaptured,!0),removeEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.stop(),this.stopHistory(),this.started=!1):void 0},t.prototype.clearCache=function(){return this.cache=new Turbolinks.SnapshotCache(10)},t.prototype.visit=function(e,t){var n,i;return null==t&&(t={}),e=Turbolinks.Location.wrap(e),this.applicationAllowsVisitingLocation(e)?this.locationIsVisitable(e)?(n=null!=(i=t.action)?i:"advance",this.adapter.visitProposedToLocationWithAction(e,n)):window.location=e:void 0},t.prototype.startVisitToLocationWithAction=function(e,t,n){var i;return Turbolinks.supported?(i=this.getRestorationDataForIdentifier(n),this.startVisit(e,t,{restorationData:i})):window.location=e},t.prototype.setProgressBarDelay=function(e){return this.progressBarDelay=e},t.prototype.startHistory=function(){return this.location=Turbolinks.Location.wrap(window.location),this.restorationIdentifier=Turbolinks.uuid(),this.history.start(),this.history.replace(this.location,this.restorationIdentifier)},t.prototype.stopHistory=function(){return this.history.stop()},t.prototype.pushHistoryWithLocationAndRestorationIdentifier=function(e,t){return this.restorationIdentifier=t,this.location=Turbolinks.Location.wrap(e),this.history.push(this.location,this.restorationIdentifier)},t.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(e,t){return this.restorationIdentifier=t,this.location=Turbolinks.Location.wrap(e),this.history.replace(this.location,this.restorationIdentifier)},t.prototype.historyPoppedToLocationWithRestorationIdentifier=function(e,t){var n;return this.restorationIdentifier=t,this.enabled?(n=this.getRestorationDataForIdentifier(this.restorationIdentifier),this.startVisit(e,"restore",{restorationIdentifier:this.restorationIdentifier,restorationData:n,historyChanged:!0}),this.location=Turbolinks.Location.wrap(e)):this.adapter.pageInvalidated()},t.prototype.getCachedSnapshotForLocation=function(e){var t;return(t=this.cache.get(e))?t.clone():void 0},t.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable()},t.prototype.cacheSnapshot=function(){var e;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),e=this.view.getSnapshot(),this.cache.put(this.lastRenderedLocation,e.clone())):void 0},t.prototype.scrollToAnchor=function(e){var t;return(t=this.view.getElementForAnchor(e))?this.scrollToElement(t):this.scrollToPosition({x:0,y:0})},t.prototype.scrollToElement=function(e){return this.scrollManager.scrollToElement(e)},t.prototype.scrollToPosition=function(e){return this.scrollManager.scrollToPosition(e)},t.prototype.scrollPositionChanged=function(e){return this.getCurrentRestorationData().scrollPosition=e},t.prototype.render=function(e,t){return this.view.render(e,t)},t.prototype.viewInvalidated=function(){return this.adapter.pageInvalidated()},t.prototype.viewWillRender=function(e){return this.notifyApplicationBeforeRender(e)},t.prototype.viewRendered=function(){return this.lastRenderedLocation=this.currentVisit.location,this.notifyApplicationAfterRender()},t.prototype.pageLoaded=function(){return this.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()},t.prototype.clickCaptured=function(){return removeEventListener("click",this.clickBubbled,!1),addEventListener("click",this.clickBubbled,!1)},t.prototype.clickBubbled=function(e){var t,n,i;return this.enabled&&this.clickEventIsSignificant(e)&&(n=this.getVisitableLinkForNode(e.target))&&(i=this.getVisitableLocationForLink(n))&&this.applicationAllowsFollowingLinkToLocation(n,i)?(e.preventDefault(),t=this.getActionForLink(n),this.visit(i,{action:t})):void 0},t.prototype.applicationAllowsFollowingLinkToLocation=function(e,t){return!this.notifyApplicationAfterClickingLinkToLocation(e,t).defaultPrevented},t.prototype.applicationAllowsVisitingLocation=function(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented},t.prototype.notifyApplicationAfterClickingLinkToLocation=function(e,t){return Turbolinks.dispatch("turbolinks:click",{target:e,data:{url:t.absoluteURL},cancelable:!0})},t.prototype.notifyApplicationBeforeVisitingLocation=function(e){return Turbolinks.dispatch("turbolinks:before-visit",{data:{url:e.absoluteURL},cancelable:!0})},t.prototype.notifyApplicationAfterVisitingLocation=function(e){return Turbolinks.dispatch("turbolinks:visit",{data:{url:e.absoluteURL}})},t.prototype.notifyApplicationBeforeCachingSnapshot=function(){return Turbolinks.dispatch("turbolinks:before-cache")},t.prototype.notifyApplicationBeforeRender=function(e){return Turbolinks.dispatch("turbolinks:before-render",{data:{newBody:e}})},t.prototype.notifyApplicationAfterRender=function(){return Turbolinks.dispatch("turbolinks:render")},t.prototype.notifyApplicationAfterPageLoad=function(e){return null==e&&(e={}),Turbolinks.dispatch("turbolinks:load",{data:{url:this.location.absoluteURL,timing:e}})},t.prototype.startVisit=function(e,t,n){var i;return null!=(i=this.currentVisit)&&i.cancel(),this.currentVisit=this.createVisit(e,t,n),this.currentVisit.start(),this.notifyApplicationAfterVisitingLocation(e)},t.prototype.createVisit=function(e,t,n){var i,o,r,a,s;return a=(o=null!=n?n:{}).restorationIdentifier,r=o.restorationData,i=o.historyChanged,(s=new Turbolinks.Visit(this,e,t)).restorationIdentifier=null!=a?a:Turbolinks.uuid(),s.restorationData=Turbolinks.copyObject(r),s.historyChanged=i,s.referrer=this.location,s},t.prototype.visitCompleted=function(e){return this.notifyApplicationAfterPageLoad(e.getTimingMetrics())},t.prototype.clickEventIsSignificant=function(e){return!(e.defaultPrevented||e.target.isContentEditable||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)},t.prototype.getVisitableLinkForNode=function(e){return this.nodeIsVisitable(e)?Turbolinks.closest(e,"a[href]:not([target]):not([download])"):void 0},t.prototype.getVisitableLocationForLink=function(e){var t;return t=new Turbolinks.Location(e.getAttribute("href")), 11this.locationIsVisitable(t)?t:void 0},t.prototype.getActionForLink=function(e){var t;return null!=(t=e.getAttribute("data-turbolinks-action"))?t:"advance"},t.prototype.nodeIsVisitable=function(e){var t;return!(t=Turbolinks.closest(e,"[data-turbolinks]"))||"false"!==t.getAttribute("data-turbolinks")},t.prototype.locationIsVisitable=function(e){return e.isPrefixedBy(this.view.getRootLocation())&&e.isHTML()},t.prototype.getCurrentRestorationData=function(){return this.getRestorationDataForIdentifier(this.restorationIdentifier)},t.prototype.getRestorationDataForIdentifier=function(e){var t;return null!=(t=this.restorationData)[e]?t[e]:t[e]={}},t}()}.call(this),function(){!function(){var e,t;if((e=t=document.currentScript)&&!t.hasAttribute("data-turbolinks-suppress-warning"))for(;e=e.parentNode;)if(e===document.body)return console.warn("You are loading Turbolinks from a <script> element inside the <body> element. This is probably not what you meant to do!\n\nLoad your application\u2019s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.\n\nFor more information, see: https://github.com/turbolinks/turbolinks#working-with-script-elements\n\n\u2014\u2014\nSuppress this warning by adding a `data-turbolinks-suppress-warning` attribute to: %s",t.outerHTML)}()}.call(this),function(){var e,t,n;Turbolinks.start=function(){return t()?(null==Turbolinks.controller&&(Turbolinks.controller=e()),Turbolinks.controller.start()):void 0},t=function(){return null==window.Turbolinks&&(window.Turbolinks=Turbolinks),n()},e=function(){var e;return(e=new Turbolinks.Controller).adapter=new Turbolinks.BrowserAdapter(e),e},(n=function(){return window.Turbolinks===Turbolinks})()&&Turbolinks.start()}.call(this),function(e){"use strict";var t={i18n:{ar:{months:["\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a","\u0634\u0628\u0627\u0637","\u0622\u0630\u0627\u0631","\u0646\u064a\u0633\u0627\u0646","\u0645\u0627\u064a\u0648","\u062d\u0632\u064a\u0631\u0627\u0646","\u062a\u0645\u0648\u0632","\u0622\u0628","\u0623\u064a\u0644\u0648\u0644","\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u0623\u0648\u0644","\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a","\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0644"],dayOfWeek:["\u0646","\u062b","\u0639","\u062e","\u062c","\u0633","\u062d"]}
11,ro:{months:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"],dayOfWeek:["l","ma","mi","j","v","s","d"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeek:["Sen","Sel","Rab","Kam","Jum","Sab","Min"]},bg:{months:["\u042f\u043d\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0438\u043b","\u041c\u0430\u0439","\u042e\u043d\u0438","\u042e\u043b\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438","\u041e\u043a\u0442\u043e\u043c\u0432\u0440\u0438","\u041d\u043e\u0435\u043c\u0432\u0440\u0438","\u0414\u0435\u043a\u0435\u043c\u0432\u0440\u0438"],dayOfWeek:["\u041d\u0434","\u041f\u043d","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041f\u0442","\u0421\u0431"]},fa:{months:["\u0641\u0631\u0648\u0631\u062f\u06cc\u0646","\u0627\u0631\u062f\u06cc\u0628\u0647\u0634\u062a","\u062e\u0631\u062f\u0627\u062f","\u062a\u06cc\u0631","\u0645\u0631\u062f\u0627\u062f","\u0634\u0647\u0631\u06cc\u0648\u0631","\u0645\u0647\u0631","\u0622\u0628\u0627\u0646","\u0622\u0630\u0631","\u062f\u06cc","\u0628\u0647\u0645\u0646","\u0627\u0633\u0641\u0646\u062f"],dayOfWeek:["\u06cc\u06a9\u0634\u0646\u0628\u0647","\u062f\u0648\u0634\u0646\u0628\u0647","\u0633\u0647 \u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067e\u0646\u062c\u0634\u0646\u0628\u0647","\u062c\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"]},ru:{months:["\u042f\u043d\u0432\u0430\u0440\u044c","\u0424\u0435\u0432\u0440\u0430\u043b\u044c","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0435\u043b\u044c","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u041e\u043a\u0442\u044f\u0431\u0440\u044c","\u041d\u043e\u044f\u0431\u0440\u044c","\u0414\u0435\u043a\u0430\u0431\u0440\u044c"],dayOfWeek:["\u0412\u0441\u043a","\u041f\u043d","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041f\u0442","\u0421\u0431"]},uk:{months:["\u0421\u0456\u0447\u0435\u043d\u044c","\u041b\u044e\u0442\u0438\u0439","\u0411\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u041a\u0432\u0456\u0442\u0435\u043d\u044c","\u0422\u0440\u0430\u0432\u0435\u043d\u044c","\u0427\u0435\u0440\u0432\u0435\u043d\u044c","\u041b\u0438\u043f\u0435\u043d\u044c","\u0421\u0435\u0440\u043f\u0435\u043d\u044c","\u0412\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0416\u043e\u0432\u0442\u0435\u043d\u044c","\u041b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0413\u0440\u0443\u0434\u0435\u043d\u044c"],dayOfWeek:["\u041d\u0434\u043b","\u041f\u043d\u0434","\u0412\u0442\u0440","\u0421\u0440\u0434","\u0427\u0442\u0432","\u041f\u0442\u043d","\u0421\u0431\u0442"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeek:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},el:{months:["\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2","\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2","\u039c\u03ac\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2","\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2","\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2","\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2"],dayOfWeek:["\u039a\u03c5\u03c1","\u0394\u03b5\u03c5","\u03a4\u03c1\u03b9","\u03a4\u03b5\u03c4","\u03a0\u03b5\u03bc","\u03a0\u03b1\u03c1","\u03a3\u03b1\u03b2"]},de:{months:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeek:["So","Mo","Di","Mi","Do","Fr","Sa"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeek:["zo","ma","di","wo","do","vr","za"]},tr:{months:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\xfcl","Ekim","Kas\u0131m","Aral\u0131k"],dayOfWeek:["Paz","Pts","Sal","\xc7ar","Per","Cum","Cts"]},fr:{months:["Janvier","F\xe9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\xfbt","Septembre","Octobre","Novembre","D\xe9cembre"],dayOfWeek:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeek:["Dom","Lun","Mar","Mi\xe9","Jue","Vie","S\xe1b"]},th:{months:["\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21","\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c","\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21","\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19","\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21","\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19","\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21","\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21","\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19","\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21","\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19","\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21"],dayOfWeek:["\u0e2d\u0e32.","\u0e08.","\u0e2d.","\u0e1e.","\u0e1e\u0e24.","\u0e28.","\u0e2a."]},pl:{months:["stycze\u0144","luty","marzec","kwiecie\u0144","maj","czerwiec","lipiec","sierpie\u0144","wrzesie\u0144","pa\u017adziernik","listopad","grudzie\u0144"],dayOfWeek:["nd","pn","wt","\u015br","cz","pt","sb"]},pt:{months:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeek:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"]},ch:{months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],dayOfWeek:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeek:["S\xf6n","M\xe5n","Tis","Ons","Tor","Fre","L\xf6r"]},kr:{months:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],dayOfWeek:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeek:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]},da:{months:["January","Februar","Marts","April","Maj","Juni","July","August","September","Oktober","November","December"],dayOfWeek:["S\xf8n","Man","Tir","Ons","Tor","Fre","L\xf8r"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeek:["S\xf8n","Man","Tir","Ons","Tor","Fre","L\xf8r"]},ja:{months:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"]},vi:{months:["Th\xe1ng 1","Th\xe1ng 2","Th\xe1ng 3","Th\xe1ng 4","Th\xe1ng 5","Th\xe1ng 6","Th\xe1ng 7","Th\xe1ng 8","Th\xe1ng 9","Th\xe1ng 10","Th\xe1ng 11","Th\xe1ng 12"],dayOfWeek:["CN","T2","T3","T4","T5","T6","T7"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeek:["Ned","Pon","Tor","Sre","\u010cet","Pet","Sob"]},cs:{months:["Leden","\xdanor","B\u0159ezen","Duben","Kv\u011bten","\u010cerven","\u010cervenec","Srpen","Z\xe1\u0159\xed","\u0158\xedjen","Listopad","Prosinec"],dayOfWeek:["Ne","Po","\xdat","St","\u010ct","P\xe1","So"]},hu:{months:["Janu\xe1r","Febru\xe1r","M\xe1rcius","\xc1prilis","M\xe1jus","J\xfanius","J\xfal
11ius","Augusztus","Szeptember","Okt\xf3ber","November","December"],dayOfWeek:["Va","H\xe9","Ke","Sze","Cs","P\xe9","Szo"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeek:["B","Be","\xc7a","\xc7","Ca","C","\u015e"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeek:["Ned","Pon","Uto","Sri","\u010cet","Pet","Sub"]},ca:{months:["Gener","Febrer","Mar\xe7","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeek:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeek:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},et:{months:["Jaanuar","Veebruar","M\xe4rts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeek:["P","E","T","K","N","R","L"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeek:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kes\xe4kuu","Hein\xe4kuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeek:["Su","Ma","Ti","Ke","To","Pe","La"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeek:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"]},hr:{months:["Sije\u010danj","Velja\u010da","O\u017eujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeek:["Ned","Pon","Uto","Sri","\u010cet","Pet","Sub"]},ko:{months:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],dayOfWeek:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"]},lt:{months:["Sausio","Vasario","Kovo","Baland\u017eio","Gegu\u017e\u0117s","Bir\u017eelio","Liepos","Rugpj\u016b\u010dio","Rugs\u0117jo","Spalio","Lapkri\u010dio","Gruod\u017eio"],dayOfWeek:["Sek","Pir","Ant","Tre","Ket","Pen","\u0160e\u0161"]},lv:{months:["Janv\u0101ris","Febru\u0101ris","Marts","Apr\u012blis ","Maijs","J\u016bnijs","J\u016blijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeek:["Sv","Pr","Ot","Tr","Ct","Pk","St"]},mk:{months:["\u0458\u0430\u043d\u0443\u0430\u0440\u0438","\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0438\u043b","\u043c\u0430\u0458","\u0458\u0443\u043d\u0438","\u0458\u0443\u043b\u0438","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438","\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438","\u043d\u043e\u0435\u043c\u0432\u0440\u0438","\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438"],dayOfWeek:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0432\u0442\u043e","\u0441\u0440\u0435","\u0447\u0435\u0442","\u043f\u0435\u0442","\u0441\u0430\u0431"]},mn:{months:["1-\u0440 \u0441\u0430\u0440","2-\u0440 \u0441\u0430\u0440","3-\u0440 \u0441\u0430\u0440","4-\u0440 \u0441\u0430\u0440","5-\u0440 \u0441\u0430\u0440","6-\u0440 \u0441\u0430\u0440","7-\u0440 \u0441\u0430\u0440","8-\u0440 \u0441\u0430\u0440","9-\u0440 \u0441\u0430\u0440","10-\u0440 \u0441\u0430\u0440","11-\u0440 \u0441\u0430\u0440","12-\u0440 \u0441\u0430\u0440"],dayOfWeek:["\u0414\u0430\u0432","\u041c\u044f\u0433","\u041b\u0445\u0430","\u041f\u04af\u0440","\u0411\u0441\u043d","\u0411\u044f\u043c","\u041d\u044f\u043c"]},"pt-BR":{months:["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeek:["Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b"]},sk:{months:["Janu\xe1r","Febru\xe1r","Marec","Apr\xedl","M\xe1j","J\xfan","J\xfal","August","September","Okt\xf3ber","November","December"],dayOfWeek:["Ne","Po","Ut","St","\u0160t","Pi","So"]},sq:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeek:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeek:["Ned","Pon","Uto","Sre","\u010det","Pet","Sub"]},sr:{months:["\u0458\u0430\u043d\u0443\u0430\u0440","\u0444\u0435\u0431\u0440\u0443\u0430\u0440","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0438\u043b","\u043c\u0430\u0458","\u0458\u0443\u043d","\u0458\u0443\u043b","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440","\u043e\u043a\u0442\u043e\u0431\u0430\u0440","\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440","\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440"],dayOfWeek:["\u043d\u0435\u0434","\u043f\u043e\u043d","\u0443\u0442\u043e","\u0441\u0440\u0435","\u0447\u0435\u0442","\u043f\u0435\u0442","\u0441\u0443\u0431"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeek:["S\xf6n","M\xe5n","Tis","Ons","Tor","Fre","L\xf6r"]},"zh-TW":{months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],dayOfWeek:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},zh:{months:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],dayOfWeek:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},he:{months:["\u05d9\u05e0\u05d5\u05d0\u05e8","\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8","\u05de\u05e8\u
1105e5","\u05d0\u05e4\u05e8\u05d9\u05dc","\u05de\u05d0\u05d9","\u05d9\u05d5\u05e0\u05d9","\u05d9\u05d5\u05dc\u05d9","\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8","\u05e1\u05e4\u05d8\u05de\u05d1\u05e8","\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8","\u05e0\u05d5\u05d1\u05de\u05d1\u05e8","\u05d3\u05e6\u05de\u05d1\u05e8"],dayOfWeek:["\u05d0'","\u05d1'","\u05d2'","\u05d3'","\u05d4'","\u05d5'","\u05e9\u05d1\u05ea"]}},value:"",lang:"en",format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnWithoutClick:!0,closeOnInputClick:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],disabledDates:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0};Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n,i;for(n=t||0,i=this.length;n<i;n+=1)if(this[n]===e)return n;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},e.fn.xdsoftScroller=function(t){return this.each(function(){var n,i,o,r,a,s=e(this),l=function(e){var t,n={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],n.x=t.clientX,n.y=t.clientY):"mousedown"!==e.type&&"mouseup"!==e.type&&"mousemove"!==e.type&&"mouseover"!==e.type&&"mouseout"!==e.type&&"mouseenter"!==e.type&&"mouseleave"!==e.type||(n.x=e.clientX,n.y=e.clientY),n},d=100,c=!1,u=0,h=0,f=0,p=!1,m=0,g=function(){};"hide"!==t?(e(this).hasClass("xdsoft_scroller_box")||(n=s.children().eq(0),i=s[0].clientHeight,o=n[0].offsetHeight,r=e('<div class="xdsoft_scrollbar"></div>'),a=e('<div class="xdsoft_scroller"></div>'),r.append(a),s.addClass("xdsoft_scroller_box").append(r),g=function(e){var t=l(e).y-u+m;t<0&&(t=0),t+a[0].offsetHeight>f&&(t=f-a[0].offsetHeight),s.trigger("scroll_element.xdsoft_scroller",[d?t/d:0])},a.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(n){i||s.trigger("resize_scroll.xdsoft_scroller",[t]),u=l(n).y,m=parseInt(a.css("margin-top"),10),f=r[0].offsetHeight,"mousedown"===n.type?(document&&e(document.body).addClass("xdsoft_noselect"),e([document.body,window]).on("mouseup.xdsoft_scroller",function o(){e([document.body,window]).off("mouseup.xdsoft_scroller",o).off("mousemove.xdsoft_scroller",g).removeClass("xdsoft_noselect")}),e(document.body).on("mousemove.xdsoft_scroller",g)):(p=!0,n.stopPropagation(),n.preventDefault())}).on("touchmove",function(e){p&&(e.preventDefault(),g(e))}).on("touchend touchcancel",function(){p=!1,m=0}),s.on("scroll_element.xdsoft_scroller",function(e,t){i||s.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:t<0||isNaN(t)?0:t,a.css("margin-top",d*t),setTimeout(function(){n.css("marginTop",-parseInt((n[0].offsetHeight-i)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(e,t,l){var c,u;i=s[0].clientHeight,o=n[0].offsetHeight,u=(c=i/o)*r[0].offsetHeight,c>1?a.hide():(a.show(),a.css("height",parseInt(u>10?u:10,10)),d=r[0].offsetHeight-a[0].offsetHeight,!0!==l&&s.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(n.css("marginTop"),10))/(o-i)]))}),s.on("mousewheel",function(e){var t=Math.abs(parseInt(n.css("marginTop"),10));return(t-=20*e.deltaY)<0&&(t=0),s.trigger("scroll_element.xdsoft_scroller",[t/(o-i)]),e.stopPropagation(),!1}),s.on("touchstart",function(e){c=l(e),h=Math.abs(parseInt(n.css("marginTop"),10))}),s.on("touchmove",function(e){if(c){e.preventDefault();var t=l(e);s.trigger("scroll_element.xdsoft_scroller",[(h-(t.y-c.y))/(o-i)])}}),s.on("touchend touchcancel",function(){c=!1,h=0})),s.trigger("resize_scroll.xdsoft_scroller",[t])):s.find(".xdsoft_scrollbar").hide()})},e.fn.datetimepicker=function(n){var i,o,r,a=48,s=57,l=96,d=105,c=17,u=46,h=13,f=27,p=8,m=37,g=38,v=39,y=40,_=9,b=116,T=65,C=67,E=86,w=90,I=89,D=!1,x=e.isPlainObject(n)||!n?e.extend(!0,{},t,n):e.extend(!0,{},t),O=0,k=function(e){e.on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function t(){e.is(":disabled")||e.is(":hidden")||!e.is(":visible")||e.data("xdsoft_datetimepicker")||(clearTimeout(O),O=setTimeout(function(){e.data("xdsoft_datetimepicker")||i(e),e.off("open.xdsoft focusin.xdsoft mousedown.xdsoft",t).trigger("open.xdsoft")},100))})};return i=function(t){function i(){var e,n=!1;return x.startDate?n=r.strToDate(x.startDate):(n=x.value||(t&&t.val&&t.val()?t.val():""))?n=r.strToDateTime(n):x.defaultDate&&(n=r.strToDate(x.defaultDate),x.defaultTime&&(e=r.strtotime(x.defaultTime),n.setHours(e.getHours()),n.setMinutes(e.getMinutes()))),n&&r.isValidDate(n)?R.data("changed",!0):n="",n||0}var o,O,k,S,R=e("<div "+(x.id?'id="'+x.id+'"':"")+" "+(x.style?'style="'+x.style+'"':"")+' class="xdsoft_datetimepicker xdsoft_'+x.theme+" xdsoft_noselect "+(x.weeks?" xdsoft_showweeks":"")+x.className+'"></div>'),$=e('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),A=e('<div class="xdsoft_datepicker active"></div>'),K=e('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),N=e('<div class="xdsoft_calendar"></div>'),L=e('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),M=L.find(".xdsoft_time_box").eq(0),P=e('<div class="xdsoft_time_variant"></div>'),F=e('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),B=e('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),j=!1,H=0;
11K.find(".xdsoft_month span").after(F),K.find(".xdsoft_year span").after(B),K.find(".xdsoft_month,.xdsoft_year").on("mousedown.xdsoft",function(t){var n,i,o=e(this).find(".xdsoft_select").eq(0),a=0,s=0,l=o.is(":visible");for(K.find(".xdsoft_select").hide(),r.currentTime&&(a=r.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),o[l?"hide":"show"](),n=o.find("div.xdsoft_option"),i=0;i<n.length&&n.eq(i).data("value")!==a;i+=1)s+=n[0].offsetHeight;return o.xdsoftScroller(s/(o.children()[0].offsetHeight-o[0].clientHeight)),t.stopPropagation(),!1}),K.find(".xdsoft_select").xdsoftScroller().on("mousedown.xdsoft",function(e){e.stopPropagation(),e.preventDefault()}).on("mousedown.xdsoft",".xdsoft_option",function(){var t=r.currentTime.getFullYear();r&&r.currentTime&&r.currentTime[e(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](e(this).data("value")),e(this).parent().parent().hide(),R.trigger("xchange.xdsoft"),x.onChangeMonth&&e.isFunction(x.onChangeMonth)&&x.onChangeMonth.call(R,r.currentTime,R.data("input")),t!==r.currentTime.getFullYear()&&e.isFunction(x.onChangeYear)&&x.onChangeYear.call(R,r.currentTime,R.data("input"))}),R.setOptions=function(n){if(x=e.extend(!0,{},x,n),n.allowTimes&&e.isArray(n.allowTimes)&&n.allowTimes.length&&(x.allowTimes=e.extend(!0,[],n.allowTimes)),n.weekends&&e.isArray(n.weekends)&&n.weekends.length&&(x.weekends=e.extend(!0,[],n.weekends)),n.disabledDates&&e.isArray(n.disabledDates)&&n.disabledDates.length&&(x.disabledDates=e.extend(!0,[],n.disabledDates)),!x.open&&!x.opened||x.inline||t.trigger("open.xdsoft"),x.inline&&(j=!0,R.addClass("xdsoft_inline"),t.after(R).hide()),x.inverseButton&&(x.next="xdsoft_prev",x.prev="xdsoft_next"),x.datepicker?A.addClass("active"):A.removeClass("active"),x.timepicker?L.addClass("active"):L.removeClass("active"),x.value&&(t&&t.val&&t.val(x.value),r.setCurrentTime(x.value)),isNaN(x.dayOfWeekStart)?x.dayOfWeekStart=0:x.dayOfWeekStart=parseInt(x.dayOfWeekStart,10)%7,x.timepickerScrollbar||M.xdsoftScroller("hide"),x.minDate&&/^-(.*)$/.test(x.minDate)&&(x.minDate=r.strToDateTime(x.minDate).dateFormat(x.formatDate)),x.maxDate&&/^\+(.*)$/.test(x.maxDate)&&(x.maxDate=r.strToDateTime(x.maxDate).dateFormat(x.formatDate)),K.find(".xdsoft_today_button").css("visibility",x.todayButton?"visible":"hidden"),x.mask){var i=function(e){try{if(document.selection&&document.selection.createRange)return document.selection.createRange().getBookmark().charCodeAt(2)-2;if(e.setSelectionRange)return e.selectionStart}catch(t){return 0}},o=function(e,t){if(!(e="string"==typeof e||e instanceof String?document.getElementById(e):e))return!1;if(e.createTextRange){var n=e.createTextRange();return n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select(),!0}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)},O=function(e,t){var n=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(n).test(t)};t.off("keydown.xdsoft"),!0===x.mask&&(x.mask=x.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===e.type(x.mask)&&(O(x.mask,t.val())||t.val(x.mask.replace(/[0-9]/g,"_")),t.on("keydown.xdsoft",function(n){var r,k,S=this.value,R=n.which;if(R>=a&&R<=s||R>=l&&R<=d||R===p||R===u){for(r=i(this),k=R!==p&&R!==u?String.fromCharCode(l<=R&&R<=d?R-a:R):"_",R!==p&&R!==u||!r||(r-=1,k="_");/[^0-9_]/.test(x.mask.substr(r,1))&&r<x.mask.length&&r>0;)r+=R===p||R===u?-1:1;if(S=S.substr(0,r)+k+S.substr(r+1),""===e.trim(S))S=x.mask.replace(/[0-9]/g,"_");else if(r===x.mask.length)return n.preventDefault(),!1;for(r+=R===p||R===u?0:1;/[^0-9_]/.test(x.mask.substr(r,1))&&r<x.mask.length&&r>0;)r+=R===p||R===u?-1:1;O(x.mask,S)?(this.value=S,o(this,r)):""===e.trim(S)?this.value=x.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft")}else if(-1!==[T,C,E,w,I].indexOf(R)&&D||-1!==[f,g,y,m,v,b,c,_,h].indexOf(R))return!0;return n.preventDefault(),!1}))}x.validateOnBlur&&t.off("blur.xdsoft").on("blur.xdsoft",function(){x.allowBlank&&!e.trim(e(this).val()).length?(e(this).val(null),R.data("xdsoft_datetime").empty()):Date.parseDate(e(this).val(),x.format)?R.data("xdsoft_datetime").setCurrentTime(e(this).val()):(e(this).val(r.now().dateFormat(x.format)),R.data("xdsoft_datetime").setCurrentTime(e(this).val())),R.trigger("changedatetime.xdsoft")}),x.dayOfWeekStartPrev=0===x.dayOfWeekStart?6:x.dayOfWeekStart-1,R.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},R.data("options",x).on("mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),B.hide(),F.hide(),!1}),M.append(P),M.xdsoftScroller(),R.on("afterOpen.xdsoft",function(){M.xdsoftScroller()}),R.append(A).append(L),!0!==x.withoutCopyright&&R.append($),A.append(K).append(N),e(x.parentID).append(R),r=new function(){var t=this;t.now=function(e){var n,i,o=new Date;return!e&&x.defaultDate&&(n=t.strToDate(x.defaultDate),o.setFullYear(n.getFullYear()),o.setMonth(n.getMonth()),o.setDate(n.getDate())),x.yearOffset&&o.setFullYear(o.getFullYear()+x.yearOffset),!e&&x.defaultTime&&(i=t.strtotime(x.defaultTime),o.setHours(i.getHours()),o.setMinutes(i.getMinutes())),o},t.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},t.setCurrentTime=function(e){t.currentTime="string"==typeof e?t.strToDateTime(e):t.isValidDate(e)?e:t.now(),R.trigger("xchange.xdsoft")},t.empty=function(){t.currentTime=null},t.getCurrentTime=function(){return t.currentTime},t.nextMonth=function(){var n,i=t.currentTime.getMonth()+1;return 12===i&&(t.currentTime.setFullYear(t.currentTime.getFullYear()+1),i=0),n=t.currentTime.getFullYear(),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),i+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(i),x.onChangeMonth&&e.isFunction(x.onChangeMonth)&&x.onChangeMonth.call(R,r.currentTime,R.data("input")),n!==t.currentTime.getFullYear()&&e.isFunction(x.onChangeYear)&&x.onChangeYear.call(R,r.currentTime,R.data("input")),R.trigger("xchange.xdsoft"),i},t.prevMonth=function(){var n=t.currentTime.getMonth()-1;return-1===n&&(t.currentTime.setFullYear(t.currentTime.getFullYear()-1),n=11),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),n+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(n),x.onChangeMonth&&e.isFunction(x.onChangeMonth)&&x.onChangeMonth.call(R,r.currentTime,R.data("input")),R.trigger("xchange.xdsoft"),n},t.getWeekOfYear=function(e){var t=new Date(e.getFullYear(),0,1);return Math.ceil(((e-t)/864e5+t.getDay()+1)/7)},t.strToDateTime=function(e){var n,i,o=[];return e&&e instanceof Date&&t.isValidDate(e)?e:((o=/^(\+|\-)(.*)$/.exec(e))&&(o[2]=Date.parseDate(o[2],x.formatDate)),o&&o[2]?(n=o[2].getTime()-6e4*o[2].getTimezoneOffset(),i=new Date(r.now().getTime()+parseInt(o[1]+"1",10)*n)):i=e?Date.parseDate(e,x.format):t.now(),t.isValidDate(i)||(i=t.now()),i)},t.strToDate=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?Date.parseDate(e,x.formatDate):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.strtotime=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?Date.parseDate(e,x.formatTime):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.str=function(){return t.currentTime.dateFormat(x.format)},t.currentTime=this.now()},K.find(".xdsoft_today_button").on("mousedown.xdsoft",function(){R.data("changed",!0),r.setCurrentTime(0),R.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){t.val(r.str()),R.trigger("close.xdsoft")}),K.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var t=e(this),n=0,i=!1;!function o(e){r.currentTime.getMonth();t.hasClass(x.next)?r.nextMonth():t.hasClass(x.prev)&&r.prevMonth(),x.monthChangeSpinner&&(i||(n=setTimeout(o,e||100)))}(500),e([document.body,window]).on("mouseup.xdsoft",function a(){clearTimeout(n),i=!0,e([document.body,window]).off("mouseup.xdsoft",a)})}),L.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var t=e(this),n=0,i=!1,o=110;!function r(e){var a=M[0].clientHeight,s=P[0].offsetHeight,l=Math.abs(parseInt(P.css("marginTop"),10));t.hasClass(x.next)&&s-a-x.timeHeightInTimePicker>=l?P.css("marginTop","-"+(l+x.timeHeightInTimePicker)+"px"):t.hasClass(x.prev)&&l-x.timeHeightInTimePicker>=0&&P.css("marginTop","-"+(l-x.timeHeightInTimePicker)+"px"),M.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(P.css("marginTop"),10)/(s-a)
11)]),o=o>10?10:o-10,i||(n=setTimeout(r,e||o))}(500),e([document.body,window]).on("mouseup.xdsoft",function a(){clearTimeout(n),i=!0,e([document.body,window]).off("mouseup.xdsoft",a)})}),o=0,R.on("xchange.xdsoft",function(t){clearTimeout(o),o=setTimeout(function(){for(var t,i,o,a,s,l,d,c="",u=new Date(r.currentTime.getFullYear(),r.currentTime.getMonth(),1,12,0,0),h=0,f=r.now(),p=!1,m=!1,g=[],v=!0,y="";u.getDay()!==x.dayOfWeekStart;)u.setDate(u.getDate()-1);for(c+="<table><thead><tr>",x.weeks&&(c+="<th></th>"),t=0;t<7;t+=1)c+="<th>"+x.i18n[x.lang].dayOfWeek[(t+x.dayOfWeekStart)%7]+"</th>";for(c+="</tr></thead>",c+="<tbody>",!1!==x.maxDate&&(p=r.strToDate(x.maxDate),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),23,59,59,999)),!1!==x.minDate&&(m=r.strToDate(x.minDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate()));h<r.currentTime.countDaysInMonth()||u.getDay()!==x.dayOfWeekStart||r.currentTime.getMonth()===u.getMonth();)g=[],h+=1,i=u.getDate(),o=u.getFullYear(),a=u.getMonth(),s=r.getWeekOfYear(u),g.push("xdsoft_date"),l=x.beforeShowDay&&e.isFunction(x.beforeShowDay.call)?x.beforeShowDay.call(R,u):null,!1!==p&&u>p||!1!==m&&u<m||l&&!1===l[0]?g.push("xdsoft_disabled"):-1!==x.disabledDates.indexOf(u.dateFormat(x.formatDate))&&g.push("xdsoft_disabled"),l&&""!==l[1]&&g.push(l[1]),r.currentTime.getMonth()!==a&&g.push("xdsoft_other_month"), 12(x.defaultSelect||R.data("changed"))&&r.currentTime.dateFormat(x.formatDate)===u.dateFormat(x.formatDate)&&g.push("xdsoft_current"),f.dateFormat(x.formatDate)===u.dateFormat(x.formatDate)&&g.push("xdsoft_today"),0!==u.getDay()&&6!==u.getDay()&&-1!==x.weekends.indexOf(u.dateFormat(x.formatDate))||g.push("xdsoft_weekend"),x.beforeShowDay&&e.isFunction(x.beforeShowDay)&&g.push(x.beforeShowDay(u)),v&&(c+="<tr>",v=!1,x.weeks&&(c+="<th>"+s+"</th>")),c+='<td data-date="'+i+'" data-month="'+a+'" data-year="'+o+'" class="xdsoft_date xdsoft_day_of_week'+u.getDay()+" "+g.join(" ")+'"><div>'+i+"</div></td>",u.getDay()===x.dayOfWeekStartPrev&&(c+="</tr>",v=!0),u.setDate(i+1);if(c+="</tbody></table>",N.html(c),K.find(".xdsoft_label span").eq(0).text(x.i18n[x.lang].months[r.currentTime.getMonth()]),K.find(".xdsoft_label span").eq(1).text(r.currentTime.getFullYear()),y="","",a="",d=function(e,t){var n=r.now();n.setHours(e),e=parseInt(n.getHours(),10),n.setMinutes(t),t=parseInt(n.getMinutes(),10),g=[],(!1!==x.maxTime&&r.strtotime(x.maxTime).getTime()<n.getTime()||!1!==x.minTime&&r.strtotime(x.minTime).getTime()>n.getTime())&&g.push("xdsoft_disabled"),(x.initTime||x.defaultSelect||R.data("changed"))&&parseInt(r.currentTime.getHours(),10)===parseInt(e,10)&&(x.step>59||Math[x.roundTime](r.currentTime.getMinutes()/x.step)*x.step===parseInt(t,10))&&(x.defaultSelect||R.data("changed")?g.push("xdsoft_current"):x.initTime&&g.push("xdsoft_init_time")),parseInt(f.getHours(),10)===parseInt(e,10)&&parseInt(f.getMinutes(),10)===parseInt(t,10)&&g.push("xdsoft_today"),y+='<div class="xdsoft_time '+g.join(" ")+'" data-hour="'+e+'" data-minute="'+t+'">'+n.dateFormat(x.formatTime)+"</div>"},x.allowTimes&&e.isArray(x.allowTimes)&&x.allowTimes.length)for(h=0;h<x.allowTimes.length;h+=1)d(r.strtotime(x.allowTimes[h]).getHours(),a=r.strtotime(x.allowTimes[h]).getMinutes());else for(h=0,t=0;h<(x.hours12?12:24);h+=1)for(t=0;t<60;t+=x.step)d((h<10?"0":"")+h,a=(t<10?"0":"")+t);for(P.html(y),n="",h=0,h=parseInt(x.yearStart,10)+x.yearOffset;h<=parseInt(x.yearEnd,10)+x.yearOffset;h+=1)n+='<div class="xdsoft_option '+(r.currentTime.getFullYear()===h?"xdsoft_current":"")+'" data-value="'+h+'">'+h+"</div>";for(B.children().eq(0).html(n),h=0,n="";h<=11;h+=1)n+='<div class="xdsoft_option '+(r.currentTime.getMonth()===h?"xdsoft_current":"")+'" data-value="'+h+'">'+x.i18n[x.lang].months[h]+"</div>";F.children().eq(0).html(n),e(R).trigger("generate.xdsoft")},10),t.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,n,i;x.timepicker&&(P.find(".xdsoft_current").length?e=".xdsoft_current":P.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=M[0].clientHeight,(n=P[0].offsetHeight)-t<(i=P.find(e).index()*x.timeHeightInTimePicker+1)&&(i=n-t),M.trigger("scroll_element.xdsoft_scroller",[parseInt(i,10)/(n-t)])):M.trigger("scroll_element.xdsoft_scroller",[0]))}),O=0,N.on("click.xdsoft","td",function(n){n.stopPropagation(),O+=1;var i=e(this),o=r.currentTime;if(o!==undefined&&null!==o||(r.currentTime=r.now(),o=r.currentTime),i.hasClass("xdsoft_disabled"))return!1;o.setDate(1),o.setFullYear(i.data("year")),o.setMonth(i.data("month")),o.setDate(i.data("date")),R.trigger("select.xdsoft",[o]),t.val(r.str()),(O>1||!0===x.closeOnDateSelect||0===x.closeOnDateSelect&&!x.timepicker)&&!x.inline&&R.trigger("close.xdsoft"),x.onSelectDate&&e.isFunction(x.onSelectDate)&&x.onSelectDate.call(R,r.currentTime,R.data("input"),n),R.data("changed",!0),R.trigger("xchange.xdsoft"),R.trigger("changedatetime.xdsoft"),setTimeout(function(){O=0},200)}),P.on("click.xdsoft","div",function(t){t.stopPropagation();var n=e(this),i=r.currentTime;
12if(i!==undefined&&null!==i||(r.currentTime=r.now(),i=r.currentTime),n.hasClass("xdsoft_disabled"))return!1;i.setHours(n.data("hour")),i.setMinutes(n.data("minute")),R.trigger("select.xdsoft",[i]),R.data("input").val(r.str()),x.inline||R.trigger("close.xdsoft"),x.onSelectTime&&e.isFunction(x.onSelectTime)&&x.onSelectTime.call(R,r.currentTime,R.data("input"),t),R.data("changed",!0),R.trigger("xchange.xdsoft"),R.trigger("changedatetime.xdsoft")}),A.on("mousewheel.xdsoft",function(e){return!x.scrollMonth||(e.deltaY<0?r.nextMonth():r.prevMonth(),!1)}),t.on("mousewheel.xdsoft",function(e){return!x.scrollInput||(!x.datepicker&&x.timepicker?((k=P.find(".xdsoft_current").length?P.find(".xdsoft_current").eq(0).index():0)+e.deltaY>=0&&k+e.deltaY<P.children().length&&(k+=e.deltaY),P.children().eq(k).length&&P.children().eq(k).trigger("mousedown"),!1):x.datepicker&&!x.timepicker?(A.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),t.val&&t.val(r.str()),R.trigger("changedatetime.xdsoft"),!1):void 0)}),R.on("changedatetime.xdsoft",function(t){if(x.onChangeDateTime&&e.isFunction(x.onChangeDateTime)){var n=R.data("input");x.onChangeDateTime.call(R,r.currentTime,n,t),delete x.value,n.trigger("change")}}).on("generate.xdsoft",function(){x.onGenerate&&e.isFunction(x.onGenerate)&&x.onGenerate.call(R,r.currentTime,R.data("input")),j&&(R.trigger("afterOpen.xdsoft"),j=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),k=0,S=function(){var t=R.data("input").offset(),n=t.top+R.data("input")[0].offsetHeight-1,i=t.left,o="absolute";x.fixed?(n-=e(window).scrollTop(),i-=e(window).scrollLeft(),o="fixed"):(n+R[0].offsetHeight>e(window).height()+e(window).scrollTop()&&(n=t.top-R[0].offsetHeight+1),n<0&&(n=0),i+R[0].offsetWidth>e(window).width()&&(i=e(window).width()-R[0].offsetWidth)),R.css({left:i,top:n,position:o})},R.on("open.xdsoft",function(t){var n=!0;x.onShow&&e.isFunction(x.onShow)&&(n=x.onShow.call(R,r.currentTime,R.data("input"),t)),!1!==n&&(R.show(),S(),e(window).off("resize.xdsoft",S).on("resize.xdsoft",S),x.closeOnWithoutClick&&e([document.body,window]).on("mousedown.xdsoft",function i(){R.trigger("close.xdsoft"),e([document.body,window]).off("mousedown.xdsoft",i)}))}).on("close.xdsoft",function(t){var n=!0;K.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),x.onClose&&e.isFunction(x.onClose)&&(n=x.onClose.call(R,r.currentTime,R.data("input"),t)),!1===n||x.opened||x.inline||R.hide(),t.stopPropagation()}).on("toggle.xdsoft",function(){R.is(":visible")?R.trigger("close.xdsoft"):R.trigger("open.xdsoft")}).data("input",t),H=0,R.data("xdsoft_datetime",r),R.setOptions(x),r.setCurrentTime(i()),t.data("xdsoft_datetimepicker",R).on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function(){t.is(":disabled")||t.is(":hidden")||!t.is(":visible")||t.data("xdsoft_datetimepicker").is(":visible")&&x.closeOnInputClick||(clearTimeout(H),H=setTimeout(function(){t.is(":disabled")||t.is(":hidden")||!t.is(":visible")||(j=!0,r.setCurrentTime(i()),R.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){this.value;var n,i=t.which;return-1!==[h].indexOf(i)&&x.enterLikeTab?(n=e("input:visible,textarea:visible"),R.trigger("close.xdsoft"),n.eq(n.index(this)+1).focus(),!1):-1!==[_].indexOf(i)?(R.trigger("close.xdsoft"),!0):void 0})},o=function(t){var n=t.data("xdsoft_datetimepicker");n&&(n.data("xdsoft_datetime",null),n.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),e(window).off("resize.xdsoft"),e([window,document.body]).off("mousedown.xdsoft"),t.unmousewheel&&t.unmousewheel())},e(document).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){e.keyCode===c&&(D=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===c&&(D=!1)}),this.each(function(){var t=e(this).data("xdsoft_datetimepicker");if(t){if("string"===e.type(n))switch(n){case"show":e(this).select().focus(),t.trigger("open.xdsoft");break;case"hide":t.trigger("close.xdsoft");break;case"toggle":t.trigger("toggle.xdsoft");break;case"destroy":o(e(this));break;case"reset":this.value=this.defaultValue,this.value&&t.data("xdsoft_datetime").isValidDate(Date.parseDate(this.value,x.format))||t.data("changed",!1),t.data("xdsoft_datetime").setCurrentTime(this.value)}else t.setOptions(n);return 0}"string"!==e.type(n)&&(!x.lazyInit||x.open||x.inline?i(e(this)):k(e(this)))})},e.fn.datetimepicker.defaults=t}(jQuery),function(){var a;a=function(e){function t(t){var a=t||window.event,s=l.call(arguments,1
vendor: 2,749 bytes, lines 12-17
12),d=0,u=0,h=0,f=0,p=0,m=0;if((t=e.event.fix(a)).type="mousewheel","detail"in a&&(h=-1*a.detail),"wheelDelta"in a&&(h=a.wheelDelta),"wheelDeltaY"in a&&(h=a.wheelDeltaY),"wheelDeltaX"in a&&(u=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(u=-1*h,h=0),d=0===h?u:h,"deltaY"in a&&(d=h=-1*a.deltaY),"deltaX"in a&&(u=a.deltaX,0===h&&(d=-1*u)),0!==h||0!==u){if(1===a.deltaMode){var g=e.data(this,"mousewheel-line-height");d*=g,h*=g,u*=g}else if(2===a.deltaMode){var v=e.data(this,"mousewheel-page-height");d*=v,h*=v,u*=v}if(f=Math.max(Math.abs(h),Math.abs(u)),(!r||r>f)&&(r=f,i(a,f)&&(r/=40)),i(a,f)&&(d/=40,u/=40,h/=40),d=Math[d>=1?"floor":"ceil"](d/r),u=Math[u>=1?"floor":"ceil"](u/r),h=Math[h>=1?"floor":"ceil"](h/r),c.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=t.clientX-y.left,m=t.clientY-y.top}return t.deltaX=u,t.deltaY=h,t.deltaFactor=r,t.offsetX=p,t.offsetY=m,t.deltaMode=0,s.unshift(t,d,u,h),o&&clearTimeout(o),o=setTimeout(n,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function n(){r=null}function i(e,t){return c.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,r,a=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var d=a.length;d;)e.event.fixHooks[a[--d]]=e.event.mouseHooks;var c=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=s.length;n;)this.addEventListener(s[--n],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",c.getLineHeight(this)),e.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=s.length;n;)this.removeEventListener(s[--n],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery), 13/* 14 * Copyright (C) 2004 Baron Schwartz <baron at sequent dot org> 15 * 16 * This program is free software; you can redistribute it and/or modify it 17 * under the terms of the GNU Lesser General Public License as published by the
18 * Free Software Foundation, version 2.1. 19 * 20 * This program is distributed in the hope that it will be useful, but WITHOUT 21 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 22 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 23 * details. 24 */ 25Date.parseFunctions={count:0},Date.parseRegexes=[],Date.formatFunctions={count:0},Date.prototype.dateFormat=function(e){return"unixtime"==e?parseInt(this.getTime()/1e3):(null==Date.formatFunctions[e]&&Date.createNewFormat(e),this[Date.formatFunctions[e]]())},Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++;Date.formatFunctions[format]=funcName;for(var code="Date.prototype."+funcName+" = function() {return ",special=!1,ch="",i=0;i<format.length;++i)ch=format.charAt(i),special||"\\"!=ch?special?(special=!1,code+="'"+String.escape(ch)+"' + "):code+=Date.getFormatCode(ch):special=!0;eval(code.substring(0,code.length-3)+";}")},Date.getFormatCode=function(e){switch(e){case"d":return"String.leftPad(this.getDate(), 2, '0') + ";case"D":return"Date.dayNames[this.getDay()].substring(0, 3) + ";case"j":return"this.getDate() + ";case"l":return"Date.dayNames[this.getDay()] + ";case"S":return"this.getSuffix() + ";case"w":return"this.getDay() + ";case"z":return"this.getDayOfYear() + ";case"W":return"this.getWeekOfYear() + ";case"F":return"Date.monthNames[this.getMonth()] + ";case"m":return"String.leftPad(this.getMonth() + 1, 2, '0') + ";case"M":return"Date.monthNames[this.getMonth()].substring(0, 3) + ";case"n":return"(this.getMonth() + 1) + ";case"t":return"this.getDaysInMonth() + ";case"L":return"(this.isLeapYear() ? 1 : 0) + ";case"Y":return"this.getFullYear() + ";case"y":return"('' + this.getFullYear()).substring(2, 4) + ";case"a":return"(this.getHours() < 12 ? 'am' : 'pm') + ";case"A":return"(this.getHours() < 12 ? 'AM' : 'PM') + ";case"g":return"((this.getHours() %12) ? this.getHours() % 12 : 12) + ";case"G":return"this.getHours() + ";case"h":return"String.leftPad((this.getHours() %12) ? this.getHours() % 12 : 12, 2, '0') + ";case"H":return"String.leftPad(this.getHours(), 2, '0') + ";case"i":return"String.leftPad(this.getMinutes(), 2, '0') + ";case"s":return"String.leftPad(this.getSeconds(), 2, '0') + ";case"O":return"this.getGMTOffset() + ";case"T":return"this.getTimezone() + ";case"Z":return"(this.getTimezoneOffset() * -60) + ";default:return"'"+String.escape(e)+"' + "}},Date.parseDate=function(e,t){if("unixtime"==t)return new Date(isNaN(parseInt(e))?0:1e3*parseInt(e));null==Date.parseFunctions[t]&&Date.createParser(t);var n=Date.parseFunctions[t];return Date[n](e)},Date.createParser=function(format){var funcName="parse"+Date.parseFunctions.count++,regexNum=Date.parseRegexes.length,currentGroup=1;Date.parseFunctions[format]=funcName;for(var code="Date."+funcName+" = function(input) {\nvar y = -1, m = -1, d = -1, h = -1, i = -1, s = -1, z = -1;\nvar d = new Date();\ny = d.getFullYear();\nm = d.getMonth();\nd = d.getDate();\nvar results = input.match(Date.parseRegexes["+regexNum+"]);\nif (results && results.length > 0) {",regex="",special=!1,ch="",i=0;i<format.length;++i)ch=format.charAt(i),special||"\\"!=ch?special?(special=!1,regex+=String.escape(ch)):(obj=Date.formatCodeToRegex(ch,currentGroup),currentGroup+=obj.g,regex+=obj.s,obj.g&&obj.c&&(code+=obj.c)):special=!0;code+="if (y > 0 && z > 0){\nvar doyDate = new Date(y,0);\ndoyDate.setDate(z);\nm = doyDate.getMonth();\nd = doyDate.getDate();\n}",code+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}",Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$"),eval(code)},Date.formatCodeToRegex=function(e,t){switch(e){case"D":return{g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};
25case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:1,c:"z = parseInt(results["+t+"], 10);\n",s:"(\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+t+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+t+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+t+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+t+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+t+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(e)}}},Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3")},Date.prototype.getGMTOffset=function(){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+String.leftPad(Math.abs(this.getTimezoneOffset())%60,2,"0")},Date.prototype.getDayOfYear=function(){var e=0;Date.daysInMonth[1]=this.isLeapYear()?29:28;for(var t=0;t<this.getMonth();++t)e+=Date.daysInMonth[t];return e+this.getDate()},Date.prototype.getWeekOfYear=function(){var e=this.getDayOfYear()+(4-this.getDay()),t=7-new Date(this.getFullYear(),0,1).getDay()+4;return String.leftPad(Math.ceil((e-t)/7)+1,2,"0")},Date.prototype.isLeapYear=function(){var e=this.getFullYear();return 0==(3&e)&&(e%100||e%400==0&&e)},Date.prototype.getFirstDayOfMonth=function(){var e=(this.getDay()-(this.getDate()-1))%7;return e<0?e+7:e},Date.prototype.getLastDayOfMonth=function(){var e=(this.getDay()+(Date.daysInMonth[this.getMonth()]-this.getDate()))%7;return e<0?e+7:e},Date.prototype.getDaysInMonth=function(){return Date.daysInMonth[1]=this.isLeapYear()?29:28,Date.daysInMonth[this.getMonth()]},Date.prototype.getSuffix=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},String.escape=function(e){return e.replace(/('|\\)/g,"\\$1")},String.leftPad=function(e,t,n){var i=new String(e);for(null==n&&(n=" ");i.length<t;)i=n+i;return i},Date.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31],Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Date.y2kYear=50,Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},Date.patterns={ISO8601LongPattern:"Y-m-d H:i:s",ISO8601ShortPattern:"Y-m-d",ShortDatePattern:"n/j/Y",LongDatePattern:"l, F d, Y",FullDateTimePattern:"l, F d, Y g:i:s A",MonthDayPattern:"F d",ShortTimePattern:"g:i A",LongTimePattern:"g:i:s A",SortableDateTimePattern:"Y-m-d\\TH:i:s",UniversalSortableDateTimePattern:"Y-m-d H:i:sO",YearMonthPattern:"F, Y"}}(),function(){var e,t=function(e,t){return function(){return e.apply(t,arguments)}};e=function(){function e(n,i){this.form_field=n,this.options=null!=i?i:{},this.label_click_handler=t(this.label_click_handler,this),e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return e.prototype.set_default_values=function(){var e;return this.click_test_action=(e=this,function(t){return e.test_active_click(t)}),this.activate_action=function(e){return function(t){return e.activate_field(t)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||Infinity,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+e.group_label+"</b>"+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(){if(this.is_multiple){if(!this.active_field)return setTimeout((e=this,function(){return e.container_mousedown()}),50)}else if(!this.active_field)return this.activate_field();var e},e.prototype.input_blur=function(){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((e=this,function(){return e.blur_test()}),100);var e},e.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},e.prototype.results_option_build=function(e){var t,n,i,o,r,a,s;for(t="",s=0,o=0,r=(a=this.results_data).length;o<r&&(i="",""!==(i=(n=a[o]).group?this.result_add_group(n):this.result_add_option(n))&&(s++,t+=i),(null!=e?e.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(n))),!(s>=this.max_shown_results));o++);return t},e.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.pu
vendor: 12,574 bytes, line 25
25sh(e.classes),(n=document.createElement("li")).className=t.join(" "),n.style.cssText=e.style,n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.highlighted_html||e.html,e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&e.active_options>0?((t=[]).push("group-result"),e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),n.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,n,i,o;for(o=[],e=0,t=(n=this.results_data).length;e<t;e++)(i=n[e]).selected?o.push(i.selected=!1):o.push(void 0);return o},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.winnow_results=function(){var e,t,n,i,o,r,a,s,l,d,c,u,h,f,p;for(this.no_results_clear(),d=0,e=(a=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),l=this.get_search_regex(e),n=0,i=(s=this.results_data).length;n<i;n++)(o=s[n]).search_match=!1,c=null,u=null,o.highlighted_html="",this.include_option_in_results(o)&&(o.group&&(o.group_match=!1,o.active_options=0),null!=o.group_array_index&&this.results_data[o.group_array_index]&&(0===(c=this.results_data[o.group_array_index]).active_options&&c.search_match&&(d+=1),c.active_options+=1),p=o.group?o.label:o.text,o.group&&!this.group_search||(u=this.search_string_match(p,l),o.search_match=null!=u,o.search_match&&!o.group&&(d+=1),o.search_match?(a.length&&(h=u.index,r=p.slice(0,h),t=p.slice(h,h+a.length),f=p.slice(h+a.length),o.highlighted_html=this.escape_html(r)+"<em>"+this.escape_html(t)+"</em>"+this.escape_html(f)),null!=c&&(c.group_match=!0)):null!=o.group_array_index&&this.results_data[o.group_array_index].search_match&&(o.search_match=!0)));return this.result_clear_highlight(),d<1&&a.length?(this.update_results_content(""),this.no_results(a)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,n;return n=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(n="^"+n),t=this.case_sensitive_search?"":"i",new RegExp(n,t)},e.prototype.search_string_match=function(e,t){var n;return n=t.exec(e),!this.search_contains&&(null!=n?n[1]:void 0)&&(n.index+=1),n},e.prototype.choices_count=function(){var e,t,n;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,e=0,t=(n=this.form_field.options).length;e<t;e++)n[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keydown_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),8!==n&&this.pending_backstroke&&this.clear_backstroke(),n){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},e.prototype.keyup_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),n){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},e.prototype.clipboard_event_checker=function(){var e;if(!this.is_disabled)return setTimeout((e=this,function(){return e.results_search()}),50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},e.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n </div>\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_no_results_html=function(e){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),window.AbstractChosen=e}.call(this),function(){var e;(e=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,i,o,r,a;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),a=[],n=0,i=(r=e.childNodes).length;n<i;n++)o=r[n],a.push(this.add_option(o,t,e.disabled));return a},e.prototype.add_option=function(e,t,n){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===n?n:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(t){var n,i,o,r,a;for(r=new e,i=0,o=(a=t.childNodes).length;i<o;i++)n=a[i],r.add_node(n);return r.parsed},window.SelectParser=e}.call(this),function(){var e,t,n=function(e,t){function n(){this.constructor=e}for(var o in t)i.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;(e=jQuery).fn.extend({chosen:function(n){return AbstractChosen.browser_is_supported()?this.each(function(){var i,o;o=(i=e(this)).data("chosen"),"destroy"!==n?o instanceof t||i.data("chosen",new t(this,n)):o instanceof t&&o.destroy()}):this}}),t=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},i.prototype.set_up_html=function(){var t,n;return(t=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),n={"class":t.join(" "),title:this.form_field.title},this.form_field.id.length&&(n.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("<div />",n),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},i.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},i.prototype.register_observers=function(){var e;return this.container.on("touchstart.chosen",(e=this,function(t){e.container_mousedown(t)})),this.container.on("touchend.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mousedown.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("mouseup.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mouseenter.chosen",function(e){return function(t){e.mouse_enter(t)}}(this)),this.container.on("mouseleave.chosen",function(e){return function(t){e.mouse_leave(t)}}(this)),this.search_results.on("mouseup.chosen",function(e){return function(t){e.search_results_mouseup(t)}}(this)),this.search_results.on("mouseover.chosen",function(e){return function(t){e.search_results_mouseover(t)}}(this)),this.search_results.on("mouseout.chosen",function(e){return function(t){e.search_results_mouseout(t)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(e){return function(t){e.search_results_mousewheel(t)}}(this)),this.search_results.on("touchstart.chosen",function(e){return function(t){e.search_results_touchstart(t)}}(this)),this.search_results.on("touchmove.chosen",function(e){return function(t){e.search_results_touchmove(t)}}(this)),this.search_results.on("touchend.chosen",function(e){return function(t){e.search_results_touchend(t)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(e){return function(t){e.results_update_field(t)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(e){return function(t){e.activate_field(t)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(e){return function(t){e.close_field(t)}}(this)),this.search_field.on("blur.chosen",function(e){return function(t){e.input_blur(t)}}(this)),this.search_field.on("keyup.chosen",function(e){return function(t){e.keyup_checker(t)}}(this)),this.search_field.on("keydown.chosen",function(e){return function(t){e.keydown_checker(t)}}(this)),this.search_field.on("focus.chosen",function(e){return function(t){e.input_focus(t)}}(this)),this.search_field.on("cut.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.search_field.on("paste.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(e){return function(t){e.choices_click(t)}}(this)):this.container.on("click.chosen",function(e){e.preventDefault()})},i.prototype.destroy=function(){return e(this.container[0].ownerDocument).off("
25click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},i.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},i.prototype.container_mousedown=function(t){var n;if(!this.is_disabled)return!t||"mousedown"!==(n=t.type)&&"touchstart"!==n||this.results_showing||t.preventDefault(),null!=t&&e(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},i.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},i.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},i.prototype.blur_test=function(){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},i.prototype.close_field=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},i.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},i.prototype.test_active_click=function(t){var n;return(n=e(t.target).closest(".chosen-container")).length&&this.container[0]===n[0]?this.active_field=!0:this.close_field()},i.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},i.prototype.result_do_highlight=function(e){var t,n,i,o,r;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),o=(i=parseInt(this.search_results.css("maxHeight"),10))+(r=this.search_results.scrollTop()),(t=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=o)return this.search_results.scrollTop(t-i>0?t-i:0);if(n<r)return this.search_results.scrollTop(n)}},i.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},i.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple||this.search_container.append(this.search_field),this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},i.prototype.update_results_content=function(e){return this.search_results.html(e)},i.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.is_multiple||(this.selected_item.prepend(this.search_field),this.search_field.focus()),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},i.prototype.set_tab_index=function(){var e;if(this.form_field.tabIndex)return e=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=e},i.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},i.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},i.prototype.search_results_mouseup=function(t){var n;if((n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first()).length)return this.result_highlight=n,this.result_select(t),this.search_field.focus()},i.prototype.search_results_mouseover=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(n)},i.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result")||e(t.target).parents(".active-result").first())return this.result_clear_highlight()},i.prototype.choice_build=function(t){var n,i,o;return n=e("<li />",{"class":"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?n.addClass("search-choice-disabled"):((i=e("<a />",{"class":"search-choice-close","data-option-array-index":t.array_index})).on("click.chosen",(o=this,function(e){return o.choice_destroy_link_click(e)})),n.append(i)),this.search_container.before(n)},i.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},i.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},i.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},i.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},i.prototype.result_select=function(e){var t,n;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),(n=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.search_field.val(""), 26this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?this.winnow_results():(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},i.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},i.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},i.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},i.prototype.get_search_field_value=function(){return this.search_field.val()},i.prototype.get_search_text=function(){return e.trim(this.get_search_field_value())},i.prototype.escape_html=function(t){return e("<div/>").text(t).html()},i.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},i.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},i.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},i.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},i.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},i.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},i.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},i.prototype.search_field_scale=function(){var t,n,i,o,r,a,s;if(this.is_multiple){for(r={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},n=0,i=(a=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;n<i;n++)r[o=a[n]]=this.search_field.css(o);return(t=e("<div />").css(r)).text(this.get_search_field_value()),e("body").append(t),s=t.width()+25,t.remove(),this.container.is(":visible")&&(s=Math.min(this.container.outerWidth()-10,s)),this.search_field.width(s)}},i.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},i}(AbstractChosen)}.call(this),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exp
26orts.AOS=t():e.AOS=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=i((i(n(1)),n(6))),a=i(n(7)),s=i(n(8)),l=i(n(9)),d=i(n(10)),c=i(n(11)),u=i(n(14)),h=[],f=!1,p=document.all&&!window.atob,m={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},g=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(f=!0),f)return h=(0,c["default"])(h,m),(0,d["default"])(h,m.once),h},v=function(){h=(0,u["default"])(),g()},y=function(){h.forEach(function(e){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")})},_=function(e){return!0===e||"mobile"===e&&l["default"].mobile()||"phone"===e&&l["default"].phone()||"tablet"===e&&l["default"].tablet()||"function"==typeof e&&!0===e()},b=function(e){return m=o(m,e),h=(0,u["default"])(),_(m.disable)||p?y():(document.querySelector("body").setAttribute("data-aos-easing",m.easing),document.querySelector("body").setAttribute("data-aos-duration",m.duration),document.querySelector("body").setAttribute("data-aos-delay",m.delay),"DOMContentLoaded"===m.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?g(!0):"load"===m.startEvent?window.addEventListener(m.startEvent,function(){g(!0)}):document.addEventListener(m.startEvent,function(){g(!0)}),window.addEventListener("resize",(0,a["default"])(g,m.debounceDelay,!0)),window.addEventListener("orientationchange",(0,a["default"])(g,m.debounceDelay,!0)),window.addEventListener("scroll",(0,r["default"])(function(){(0,d["default"])(h,m.once)},m.throttleDelay)),m.disableMutationObserver||(0,s["default"])("[data-aos]",v),h)};e.exports={init:b,refresh:g,refreshHard:v}},function(){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function i(t){var n=m,i=g;return m=g=void 0,w=t,y=e.apply(i,n)}function r(e){return w=e,_=setTimeout(c,t),I?i(e):y}function a(e){var n=t-(e-b);return D?C(n,v-(e-w)):n}function l(e){var n=e-b;return void 0===b||n>=t||n<0||D&&e-w>=v}function c(){var e=E();return l(e)?u(e):void(_=setTimeout(c,a(e)))}function u(e){return _=void 0,x&&m?i(e):(m=g=void 0,y)}function h(){void 0!==_&&clearTimeout(_),w=0,m=b=g=_=void 0}function f(){return void 0===_?y:u(E())}function p(){var e=E(),n=l(e);if(m=arguments,g=this,b=e,n){if(void 0===_)return r(b);if(D)return _=setTimeout(c,t),i(b)}return void 0===_&&(_=setTimeout(c,t)),y}var m,g,v,y,_,b,w=0,I=!1,D=!1,x=!0;if("function"!=typeof e)throw new TypeError(d);return t=s(t)||0,o(n)&&(I=!!n.leading,v=(D="maxWait"in n)?T(s(n.maxWait)||0,t):v,x="trailing"in n?!!n.trailing:x),p.cancel=h,p.flush=f,p}function i(e,t,i){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError(d);return o(i)&&(r="leading"in i?!!i.leading:r,a="trailing"in i?!!i.trailing:a),n(e,t,{leading:r,maxWait:t,trailing:a})}function o(e){var t=void 0===e?"undefined":l(e);return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==(void 0===e?"undefined":l(e))}function a(e){return"symbol"==(void 0===e?"undefined":l(e))||r(e)&&b.call(e)==u}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||m.test(e)?g(e.slice(2),n?2:8):f.test(e)?c:+e}var 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},d="Expected a function",c=NaN,u="[object Symbol]",h=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,m=/^0o[0-7]+$/i,g=parseInt,v="object"==(void 0===t?"undefined":l(t))&&t&&t.Object===Object&&t,y="object"==("undefined"==typeof self?"undefined":l(self))&&self&&self.Object===Object&&self,_=v||y||Function("return this")(),b=Object.prototype.toString,T=Math.max,C=Math.min,E=function(){return _.Date.now()};e.exports=i}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e,t,n){function o(t){var n=m,i=g;return m=g=void 0,w=t,y=e.apply(i,n)}function r(e){return w=e,_=setTimeout(c,t),I?o(e):y}function s(e){var n=t-(e-E);return D?T(n,v-(e-w)):n}function d(e){var n=e-E;return void 0===E||n>=t||n<0||D&&e-w>=v}function c(){var e=C();return d(e)?u(e):void(_=setTimeout(c,s(e)))}function u(e){return _=void 0,x&&m?o(e):(m=g=void 0,y)}function h(){void 0!==_&&clearTimeout(_),w=0,m=E=g=_=void 0}function f(){return void 0===_?y:u(C())}function p(){var e=C(),n=d(e);if(m=arguments,g=this,E=e,n){if(void 0===_)return r(E);if(D)return _=setTimeout(c,t),o(E)}return void 0===_&&(_=setTimeout(c,t)),y}var m,g,v,y,_,E,w=0,I=!1,D=!1,x=!0;if("function"!=typeof e)throw new TypeError(l);return t=a(t)||0,i(n)&&(I=!!n.leading,v=(D="maxWait"in n)?b(a(n.maxWait)||0,t):v,x="trailing"in n?!!n.trailing:x),p.cancel=h,p.flush=f,p}function i(e){var t=void 0===e?"undefined":s(e);return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==(void 0===e?"undefined":s(e))}function r(e){return"symbol"==(void 0===e?"undefined":s(e))||o(e)&&_.call(e)==c}function a(e){if("number"==typeof e)return e;if(r(e))return d;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=f.test(e);return n||p.test(e)?m(e.slice(2),n?2:8):h.test(e)?d:+e}var 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},l="Expected a function",d=NaN,c="[object Symbol]",u=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,p=/^0o[0-7]+$/i,m=parseInt,g="object"==(void 0===t?"undefined":s(t))&&t&&t.Object===Object&&t,v="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),_=Object.prototype.toString,b=Math.max,T=Math.min,C=function(){return y.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";function n(e,t){var n=new r(i);a=t,n.observe(o.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function i(e){e&&e.forEach(function(e){var t=Array.prototype.slice.call(e.addedNodes),n=Array.prototype.slice.call(e.removedNodes
26);t.concat(n).filter(function(e){return e.hasAttribute&&e.hasAttribute("data-aos")}).length&&a()})}Object.defineProperty(t,"__esModule",{value:!0});var o=window.document,r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,a=function(){};t["default"]=n},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,a=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
26sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,d=function(){function e(){n(this,e)}return o(e,[{key:"phone",value:function(){var e=i();return!(!r.test(e)&&!a.test(e.substr(0,4)))}},{key:"mobile",value:function(){var e=i();return!(!s.test(e)&&!l.test(e.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),e}();t["default"]=new d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t,n){var i=e.node.getAttribute("data-aos-once");t>e.position?e.node.classList.add("aos-animate"):void 0!==i&&("false"===i||!n&&"true"!==i)&&e.node.classList.remove("aos-animate")},i=function(e,t){var i=window.pageYOffset,o=window.innerHeight;e.forEach(function(e){n(e,o+i,t)})};t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(12)),r=function(e,t){return e.forEach(function(e){e.node.classList.add("aos-init"),e.position=(0,o["default"])(e.node,t.offset)}),e};t["default"]=r},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(13)),r=function(e,t){var n=0,i=0,r=window.innerHeight,a={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(a.offset&&!isNaN(a.offset)&&(i=parseInt(a.offset)),a.anchor&&document.querySelectorAll(a.anchor)&&(e=document.querySelectorAll(a.anchor)[0]),n=(0,o["default"])(e).top,a.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=r/2;break;case"bottom-center":n+=r/2+e.offsetHeight;break;case"center-center":n+=r/2+e.offsetHeight/2;break;case"top-top":n+=r;break;case"bottom-top":n+=e.offsetHeight+r;break;case"center-top":n+=e.offsetHeight/2+r}return a.anchorPlacement||a.offset||isNaN(t)||(i=t),n+i};t["default"]=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}};t["default"]=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,function(e){return{node:e}})};t["default"]=n}])}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t(e.bootstrap={},e.jQuery,e.Popper)}(this,function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i,o,r;i=e,r=n[o=t],o in i?Object.defineProperty(i,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[o]=r})}return e}t=t&&t.hasOwnProperty("default")?t["default"]:t,n=n&&n.hasOwnProperty("default")?n["default"]:n;var a,s,l,d,c,u,h,f,p,m,g,v,y,_,b,T,C,E,w,I,D,x,O,k,S,R,$,A,K,N,L,M,P,F,B,j,H,z,q,W,U,V,Y,G,X,Q,Z,J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,fe,pe,me,ge,ve,ye,_e,be,Te,Ce,Ee,we,Ie,De,xe,Oe,ke,Se,Re,$e,Ae,Ke,Ne,Le,Me,Pe,Fe,Be,je,He,ze,qe,We,Ue,Ve,Ye,Ge,Xe,Qe,Ze,Je,et,tt,nt,it,ot,rt,at,st,lt,dt,ct,ut,ht,ft,pt,mt,gt,vt,yt,_t,bt,Tt,Ct,Et,wt,It,Dt,xt,Ot,kt,St,Rt,$t,At,Kt,Nt,Lt,Mt,Pt,Ft,Bt,jt,Ht,zt,qt,Wt,Ut,Vt,Yt,Gt,Xt,Qt,Zt,Jt,en,tn,nn,on,rn,an,sn,ln,dn,cn,un,hn,fn,pn,mn,gn,vn,yn,_n,bn,Tn,Cn,En,wn,In,Dn,xn,On,kn,Sn,Rn,$n,An,Kn,Nn,Ln,Mn,Pn,Fn,Bn,jn=function(e){function t(t){var n=this,o=!1;return e(this).one(i.TRANSITION_END,function(){o=!0}),setTimeout(function(){o||i.triggerTransitionEnd(n)},t),this}var n="transitionend",i={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var n=e(t).css("transition-duration");return parseFloat(n)?(n=n.split(",")[0],1e3*parseFloat(n)):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(n)},supportsTransitionEnd:function(){return Boolean(n)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var r=n[o],a=t[o],s=a&&i.isElement(a)?"element":(l=a,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(e.toUpperCase()+': Option "'+o+'" provided type "'+s+'" but expected type "'+r+'".')}var l}};return e.fn.emulateTransitionEnd=t,e.event.special[i.TRANSITION_END]={bindType:n,delegateType:n,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},i}(t),Hn=(s="alert",d="."+(l="bs.alert"),c=(a=t).fn[s],u={CLOSE:"close"+d,CLOSED:"closed"+d,CLICK_DATA_API:"click"+
26d+".data-api"},h="alert",f="fade",p="show",m=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){a.removeData(this._element,l),this._element=null},t._getRootElement=function(e){var t=jn.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=a(e).closest("."+h)[0]),n},t._triggerCloseEvent=function(e){var t=a.Event(u.CLOSE);return a(e).trigger(t),t},t._removeElement=function(e){var t=this;if(a(e).removeClass(p),a(e).hasClass(f)){var n=jn.getTransitionDurationFromElement(e);a(e).one(jn.TRANSITION_END,function(n){return t._destroyElement(e,n)}).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){a(e).detach().trigger(u.CLOSED).remove()},e._jQueryInterface=function(t){return this.each(function(){var n=a(this),i=n.data(l);i||(i=new e(this),n.data(l,i)),"close"===t&&i[t](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}(),a(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',m._handleDismiss(new m)),a.fn[s]=m._jQueryInterface,a.fn[s].Constructor=m,a.fn[s].noConflict=function(){return a.fn[s]=c,m._jQueryInterface},m),zn=(v="button",_="."+(y="bs.button"),b=".data-api",T=(g=t).fn[v],C="active",E="btn",I='[data-toggle^="button"]',D='[data-toggle="buttons"]',x="input",O=".active",k=".btn",S={CLICK_DATA_API:"click"+_+b,FOCUS_BLUR_DATA_API:(w="focus")+_+b+" blur"+_+b},R=function(){function e(e){this._element=e}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=g(this._element).closest(D)[0];if(n){var i=this._element.querySelector(x);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(C))e=!1;else{var o=n.querySelector(O);o&&g(o).removeClass(C)}if(e){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(C),g(i).trigger("change")}i.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(C)),e&&g(this._element).toggleClass(C)},t.dispose=function(){g.removeData(this._element,y),this._element=null},e._jQueryInterface=function(t){return this.each(function(){var n=g(this).data(y);n||(n=new e(this),g(this).data(y,n)),"toggle"===t&&n[t]()})},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}(),g(document).on(S.CLICK_DATA_API,I,function(e){e.preventDefault();var t=e.target;g(t).hasClass(E)||(t=g(t).closest(k)),R._jQueryInterface.call(g(t),"toggle")}).on(S.FOCUS_BLUR_DATA_API,I,function(e){var t=g(e.target).closest(k)[0];g(t).toggleClass(w,/^focus(in)?$/.test(e.type))}),g.fn[v]=R._jQueryInterface,g.fn[v].Constructor=R,g.fn[v].noConflict=function(){return g.fn[v]=T,R._jQueryInterface},R),qn=(A="carousel",N="."+(K="bs.carousel"),L=".data-api",M=($=t).fn[A],P={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},F={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},B="next",j="prev",H="left",z="right",q={SLIDE:"slide"+N,SLID:"slid"+N,KEYDOWN:"keydown"+N,MOUSEENTER:"mouseenter"+N,MOUSELEAVE:"mouseleave"+N,TOUCHEND:"touchend"+N,LOAD_DATA_API:"load"+N+L,CLICK_DATA_API:"click"+N+L},W="carousel",U="active",V="slide",Y="carousel-item-right",G="carousel-item-left",X="carousel-item-next",Q="carousel-item-prev",Z=".active",J=".active.carousel-item",ee=".carousel-item",te=".carousel-item-next, .carousel-item-prev",ne=".carousel-indicators",ie="[data-slide], [data-slide-to]",oe='[data-ride="carousel"]',re=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(t),this._element=$(e)[0],this._indicatorsElement=this._element.querySelector(ne),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(B)},t.nextWhenVisible=function(){!document.hidden&&$(this._element).is(":visible")&&"hidden"
26!==$(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(j)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(te)&&(jn.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(J);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)$(this._element).one(q.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=n<e?B:j;this._slide(i,this._items[e])}},t.dispose=function(){$(this._element).off(N),$.removeData(this._element,K),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=r({},P,e),jn.typeCheckConfig(A,e,F),e},t._addEventListeners=function(){var e=this;this._config.keyboard&&$(this._element).on(q.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&($(this._element).on(q.MOUSEENTER,function(t){return e.pause(t)}).on(q.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&$(this._element).on(q.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(ee)):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n=e===B,i=e===j,o=this._getItemIndex(t),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return t;var a=(o+(e===j?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(J)),o=$.Event(q.SLIDE,{relatedTarget:e,direction:t,from:i,to:n});return $(this._element).trigger(o),o},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(Z));$(t).removeClass(U);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&$(n).addClass(U)}},t._slide=function(e,t){var n,i,o,r=this,a=this._element.querySelector(J),s=this._getItemIndex(a),l=t||a&&this._getItemByDirection(e,a),d=this._getItemIndex(l),c=Boolean(this._interval);if(e===B?(n=G,i=X,o=H):(n=Y,i=Q,o=z),l&&$(l).hasClass(U))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&a&&l){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l);var u=$.Event(q.SLID,{relatedTarget:l,direction:o,from:s,to:d});if($(this._element).hasClass(V)){$(l).addClass(i),jn.reflow(l),$(a).addClass(n),$(l).addClass(n);var h=jn.getTransitionDurationFromElement(a);$(a).one(jn.TRANSITION_END,function(){$(l).removeClass(n+" "+i).addClass(U),$(a).removeClass(U+" "+i+" "+n),r._isSliding=!1,setTimeout(function(){return $(r._element).trigger(u)},0)}).emulateTransitionEnd(h)}else $(a).removeClass(U),$(l).addClass(U),this._isSliding=!1,$(this._element).trigger(u);c&&this.cycle()}},e._jQueryInterface=function(t){return this.each(function(){var n=$(this).data(K),i=r({},P,$(this).data());"object"==typeof t&&(i=r({},i,t));var o="string"==typeof t?t:i.slide;if(n||(n=new e(this,i),$(this).data(K,n)),"number"==typeof t)n.to(t);else if("string"==typeof o){if("undefined"==typeof n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else i.interval&&(n.pause(),n.cycle())})},e._dataApiClickHandler=function(t){var n=jn.getSelectorFromElement(this);if(n){var i=$(n)[0];if(i&&$(i).hasClass(W)){var o=r({}
26,$(i).data(),$(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),e._jQueryInterface.call($(i),o),a&&$(i).data(K).to(a),t.preventDefault()}}},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return P}}]),e}(),$(document).on(q.CLICK_DATA_API,ie,re._dataApiClickHandler),$(window).on(q.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(oe)),t=0,n=e.length;t<n;t++){var i=$(e[t]);re._jQueryInterface.call(i,i.data())}}),$.fn[A]=re._jQueryInterface,$.fn[A].Constructor=re,$.fn[A].noConflict=function(){return $.fn[A]=M,re._jQueryInterface},re),Wn=(se="collapse",de="."+(le="bs.collapse"),ce=(ae=t).fn[se],ue={toggle:!0,parent:""},he={toggle:"boolean",parent:"(string|element)"},fe={SHOW:"show"+de,SHOWN:"shown"+de,HIDE:"hide"+de,HIDDEN:"hidden"+de,CLICK_DATA_API:"click"+de+".data-api"},pe="show",me="collapse",ge="collapsing",ve="collapsed",ye="width",_e="height",be=".show, .collapsing",Te='[data-toggle="collapse"]',Ce=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=ae.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(Te)),i=0,o=n.length;i<o;i++){var r=n[i],a=jn.getSelectorFromElement(r),s=[].slice.call(document.querySelectorAll(a)).filter(function(t){return t===e});null!==a&&0<s.length&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){ae(this._element).hasClass(pe)?this.hide():this.show()},t.show=function(){var t,n,i=this;if(!(this._isTransitioning||ae(this._element).hasClass(pe)||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(be)).filter(function(e){return e.getAttribute("data-parent")===i._config.parent})).length&&(t=null),t&&(n=ae(t).not(this._selector).data(le))&&n._isTransitioning))){var o=ae.Event(fe.SHOW);if(ae(this._element).trigger(o),!o.isDefaultPrevented()){t&&(e._jQueryInterface.call(ae(t).not(this._selector),"hide"),n||ae(t).data(le,null));var r=this._getDimension();ae(this._element).removeClass(me).addClass(ge),this._element.style[r]=0,this._triggerArray.length&&ae(this._triggerArray).removeClass(ve).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(r[0].toUpperCase()+r.slice(1)),s=jn.getTransitionDurationFromElement(this._element);ae(this._element).one(jn.TRANSITION_END,function(){ae(i._element).removeClass(ge).addClass(me).addClass(pe),i._element.style[r]="",i.setTransitioning(!1),ae(i._element).trigger(fe.SHOWN)}).emulateTransitionEnd(s),this._element.style[r]=this._element[a]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&ae(this._element).hasClass(pe)){var t=ae.Event(fe.HIDE);if(ae(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",jn.reflow(this._element), 27ae(this._element).addClass(ge).removeClass(me).removeClass(pe);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],a=jn.getSelectorFromElement(r);null!==a&&(ae([].slice.call(document.querySelectorAll(a))).hasClass(pe)||ae(r).addClass(ve).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var s=jn.getTransitionDurationFromElement(this._element);ae(this._element).one(jn.TRANSITION_END,function(){e.setTransitioning(!1),ae(e._element).removeClass(ge).addClass(me).trigger(fe.HIDDEN)}).emulateTransitionEnd(s)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){ae.removeData(this._element,le),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=r({},ue,e)).toggle=Boolean(e.toggle),jn.typeCheckConfig(se,e,he),e},t._getDimension=function(){return ae(this._element).hasClass(ye)?ye:_e},t._getParent=function(){var t=this,n=null;jn.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(n.querySelectorAll(i));return ae(o).each(function(n,i){t._addAriaAndCollapsedClass(e._getTargetFromElement(i),[i])}),n},t._addAriaAndCollapsedClass=function(e,t){if(e){var n=ae(e).hasClass(pe);t.length&&ae(t).toggleClass(ve,!n).attr("aria-expanded",n)}},e._getTargetFromElement=function(e){var t=jn.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(t){return this.each(function(){var n=ae(this),i=n.data(le),o=r({},ue,n.data(),"object"==typeof t&&t?t:{});if(!i&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),i||(i=new e(this,o),n.data(le,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method n
27amed "'+t+'"');i[t]()}})},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return ue}}]),e}(),ae(document).on(fe.CLICK_DATA_API,Te,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=ae(this),n=jn.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));ae(i).each(function(){var e=ae(this),n=e.data(le)?"toggle":t.data();Ce._jQueryInterface.call(e,n)})}),ae.fn[se]=Ce._jQueryInterface,ae.fn[se].Constructor=Ce,ae.fn[se].noConflict=function(){return ae.fn[se]=ce,Ce._jQueryInterface},Ce),Un=(we="dropdown",De="."+(Ie="bs.dropdown"),xe=".data-api",Oe=(Ee=t).fn[we],ke=new RegExp("38|40|27"),Se={HIDE:"hide"+De,HIDDEN:"hidden"+De,SHOW:"show"+De,SHOWN:"shown"+De,CLICK:"click"+De,CLICK_DATA_API:"click"+De+xe,KEYDOWN_DATA_API:"keydown"+De+xe,KEYUP_DATA_API:"keyup"+De+xe},Re="disabled",$e="show",Ae="dropup",Ke="dropright",Ne="dropleft",Le="dropdown-menu-right",Me="position-static",Pe='[data-toggle="dropdown"]',Fe=".dropdown form",Be=".dropdown-menu",je=".navbar-nav",He=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",ze="top-start",qe="top-end",We="bottom-start",Ue="bottom-end",Ve="right-start",Ye="left-start",Ge={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Xe={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Qe=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!Ee(this._element).hasClass(Re)){var t=e._getParentFromElement(this._element),i=Ee(this._menu).hasClass($e);if(e._clearMenus(),!i){var o={relatedTarget:this._element},r=Ee.Event(Se.SHOW,o);if(Ee(t).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if(void 0===n)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=t:jn.isElement(this._config.reference)&&(a=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&Ee(t).addClass(Me),this._popper=new n(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===Ee(t).closest(je).length&&Ee(document.body).children().on("mouseover",null,Ee.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),Ee(this._menu).toggleClass($e),Ee(t).toggleClass($e).trigger(Ee.Event(Se.SHOWN,o))}}}},t.dispose=function(){Ee.removeData(this._element,Ie),Ee(this._element).off(De),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;Ee(this._element).on(Se.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(e){return e=r({},this.constructor.Default,Ee(this._element).data(),e),jn.typeCheckConfig(we,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Be))}return this._menu},t._getPlacement=function(){var e=Ee(this._element.parentNode),t=We;return e.hasClass(Ae)?(t=ze,Ee(this._menu).hasClass(Le)&&(t=qe)):e.hasClass(Ke)?t=Ve:e.hasClass(Ne)?t=Ye:Ee(this._menu).hasClass(Le)&&(t=Ue),t},t._detectNavbar=function(){return 0<Ee(this._element).closest(".navbar").length},t._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=r({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},e._jQueryInterface=function(t){return this.each(function(){var n=Ee(this).data(Ie);if(n||(n=new e(this,"object"==typeof t?t:null),Ee(this).data(Ie,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError('No method n
27amed "'+t+'"');n[t]()}})},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var n=[].slice.call(document.querySelectorAll(Pe)),i=0,o=n.length;i<o;i++){var r=e._getParentFromElement(n[i]),a=Ee(n[i]).data(Ie),s={relatedTarget:n[i]};if(t&&"click"===t.type&&(s.clickEvent=t),a){var l=a._menu;if(Ee(r).hasClass($e)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&Ee.contains(r,t.target))){var d=Ee.Event(Se.HIDE,s);Ee(r).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&Ee(document.body).children().off("mouseover",null,Ee.noop),n[i].setAttribute("aria-expanded","false"),Ee(l).removeClass($e),Ee(r).removeClass($e).trigger(Ee.Event(Se.HIDDEN,s)))}}}},e._getParentFromElement=function(e){var t,n=jn.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||Ee(t.target).closest(Be).length)):ke.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!Ee(this).hasClass(Re))){var n=e._getParentFromElement(this),i=Ee(n).hasClass($e);if((i||27===t.which&&32===t.which)&&(!i||27!==t.which&&32!==t.which)){var o=[].slice.call(n.querySelectorAll(He));if(0!==o.length){var r=o.indexOf(t.target);38===t.which&&0<r&&r--,40===t.which&&r<o.length-1&&r++,r<0&&(r=0),o[r].focus()}}else{if(27===t.which){var a=n.querySelector(Pe);Ee(a).trigger("focus")}Ee(this).trigger("click")}}},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Ge}},{key:"DefaultType",get:function(){return Xe}}]),e}(),Ee(document).on(Se.KEYDOWN_DATA_API,Pe,Qe._dataApiKeydownHandler).on(Se.KEYDOWN_DATA_API,Be,Qe._dataApiKeydownHandler).on(Se.CLICK_DATA_API+" "+Se.KEYUP_DATA_API,Qe._clearMenus).on(Se.CLICK_DATA_API,Pe,function(e){e.preventDefault(),e.stopPropagation(),Qe._jQueryInterface.call(Ee(this),"toggle")}).on(Se.CLICK_DATA_API,Fe,function(e){e.stopPropagation()}),Ee.fn[we]=Qe._jQueryInterface,Ee.fn[we].Constructor=Qe,Ee.fn[we].noConflict=function(){return Ee.fn[we]=Oe,Qe._jQueryInterface},Qe),Vn=(Je="modal",tt="."+(et="bs.modal"),nt=(Ze=t).fn[Je],it={backdrop:!0,keyboard:!0,focus:!0,show:!0},ot={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},rt={HIDE:"hide"+tt,HIDDEN:"hidden"+tt,SHOW:"show"+tt,SHOWN:"shown"+tt,FOCUSIN:"focusin"+tt,RESIZE:"resize"+tt,CLICK_DISMISS:"click.dismiss"+tt,KEYDOWN_DISMISS:"keydown.dismiss"+tt,MOUSEUP_DISMISS:"mouseup.dismiss"+tt,MOUSEDOWN_DISMISS:"mousedown.dismiss"+tt,CLICK_DATA_API:"click"+tt+".data-api"},at="modal-scrollbar-measure",st="modal-backdrop",lt="modal-open",dt="fade",ct="show",ut=".modal-dialog",ht='[data-toggle="modal"]',ft='[data-dismiss="modal"]',pt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",mt=".sticky-top",gt=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(ut),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){Ze(this._element).hasClass(dt)&&(this._isTransitioning=!0);var n=Ze.Event(rt.SHOW,{relatedTarget:e});Ze(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),Ze(document.body).addClass(lt),this._setEscapeEvent(),this._setResizeEvent(),Ze(this._element).on(rt.CLICK_DISMISS,ft,function(e){return t.hide(e)}),Ze(this._dialog).on(rt.MOUSEDOWN_DISMISS,function(){Ze(t._element).one(rt.MOUSEUP_DISMISS,function(e){Ze(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=Ze.Event(rt.HIDE);if(Ze(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=Ze(this._element).hasClass(dt);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),Ze(document).off(rt.FOCUSIN),Ze(this._element).removeClass(ct),Ze(this._element).off(rt.CLICK_DISMISS),Ze(this._dialog).off(rt.MOUSEDOWN_DISMISS),i){var o=jn.getTransitionDurationFromElement(this._element);Ze(this._element).one(jn.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(o)}else this._hideModal()}}},t.dispose=function(){Ze.removeData(this._element,et),Ze(window,document,this._element,this._backdrop).off(tt),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=r({},it,e),jn.typeCheckConfig(Je,e,ot),e},t._showElement=function(e){var t=this,n=Ze(this._element).hasClass(dt);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&jn.reflow(this._element),Ze(this._element).addClass(ct),this._config.focus&&this._enforceFocus();var i=Ze.Event(rt.SHOWN,{relatedTarget:e}),o=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,Ze(t._element).trigger(i)};if(n){var r=jn.getTransitionDurationFromElement(this._element);Ze(this._dialog).one(jn.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},t._enforceFocus=function(){var e=this;Ze(document).off(rt.FOCUSIN).on(rt.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===Ze(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?Ze(this._element).on(rt.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||Ze(this._element).off(rt.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?Ze(window).on(rt.RESIZE,function(t){return e.handleUpdate(t)}):Ze(window).off(rt.RESIZE)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){Ze(document.body).removeClass(lt),e._resetAdjustments(),e._resetScrollbar(),Ze(e._element).trigger(rt.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(Ze(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=Ze(this._element).hasClass(dt)?dt:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=st,n&&this._backdrop.classList.add(n),Ze(this._backdrop).appendTo(document.body),Ze(this._element).on(rt.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide())}),n&&jn.reflow(this._backdrop),Ze(this._backdrop).addClass(ct),!e)return;if(!n)return void e();var i=jn.getTransitionDurationFromElement(this._backdrop);Ze(this._backdrop).one(jn.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){Ze(this._backdrop).removeClass(ct);var o=function(){t._removeBackdrop(),e&&e()};if(Ze(this._element).hasClass(dt)){var r=jn.getTransitionDurationFromElement(this._backdrop);Ze(this._backdrop).one(jn.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(pt)),n=[].slice.call(document.querySelectorAll(mt));Ze(t).each(function(t,n){var i=n.style.paddingRight,o=Ze(n).css("padding-right");Ze(n).data("padding-right",i).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")}),Ze(n).each(function(t,n){var i=n.style.marginRight,o=Ze(n).css("margin-right");Ze(n).data("margin-right",i).css("margin-right",parseFloat(o)-e._scrollbarWidth+"px")});var i=document.body.style.paddingRight,o=Ze(document.body).css("padding-right");Ze(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}},t._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(pt));Ze(e).each(function(e,t){var n=Ze(t).data("padding-right");Ze(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(""+mt));Ze(t).each(function(e,t){var n=Ze(t).data("margin-right");void 0!==n&&Ze(t).css("margin-right",n).removeData("margin-right")});var n=Ze(document.body).data("padding-right");Ze(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className=at,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,n){return this.each(function(){var i=Ze(this).data(et),o=r({},it,Ze(this).data(),"object"==typeof t&&t?t:{});if(i||(i=new e(this,o),Ze(this).data(et,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method n
27amed "'+t+'"');i[t](n)}else o.show&&i.show(n)})},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return it}}]),e}(),Ze(document).on(rt.CLICK_DATA_API,ht,function(e){var t,n=this,i=jn.getSelectorFromElement(this);i&&(t=document.querySelector(i));var o=Ze(t).data(et)?"toggle":r({},Ze(t).data(),Ze(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=Ze(t).one(rt.SHOW,function(e){e.isDefaultPrevented()||a.one(rt.HIDDEN,function(){Ze(n).is(":visible")&&n.focus()})});gt._jQueryInterface.call(Ze(t),o,this)}),Ze.fn[Je]=gt._jQueryInterface,Ze.fn[Je].Constructor=gt,Ze.fn[Je].noConflict=function(){return Ze.fn[Je]=nt,gt._jQueryInterface},gt),Yn=(yt="tooltip",bt="."+(_t="bs.tooltip"),Tt=(vt=t).fn[yt],Ct="bs-tooltip",Et=new RegExp("(^|\\s)"+Ct+"\\S+","g"),Dt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(It={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(wt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},Ot="out",kt={HIDE:"hide"+bt,HIDDEN:"hidden"+bt,SHOW:(xt="show")+bt,SHOWN:"shown"+bt,INSERTED:"inserted"+bt,CLICK:"click"+bt,FOCUSIN:"focusin"+bt,FOCUSOUT:"focusout"+bt,MOUSEENTER:"mouseenter"+bt,MOUSELEAVE:"mouseleave"+bt},St="fade",Rt="show",$t=".tooltip-inner",At=".arrow",Kt="hover",Nt="focus",Lt="click",Mt="manual",Pt=function(){function e(e,t){if(void 0===n)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=vt(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),vt(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(vt(this.getTipElement()).hasClass(Rt))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),vt.removeData(this.element,this.constructor.DATA_KEY),vt(this.element).off(this.constructor.EVENT_KEY),vt(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&vt(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===vt(this.element).css("display"))throw new Error("Please use show on visible elements");var t=vt.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){vt(this.element).trigger(t);var i=vt.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=jn.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&vt(o).addClass(St);var a="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,s=this._getAttachment(a);this.addAttachmentClass(s);var l=!1===this.config.container?document.body:vt(document).find(this.config.container);vt(o).data(this.constructor.DATA_KEY,this),vt.contains(this.element.ownerDocument.documentElement,this.tip)||vt(o).appendTo(l),vt(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,o,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:At}
27,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),vt(o).addClass(Rt),"ontouchstart"in document.documentElement&&vt(document.body).children().on("mouseover",null,vt.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,vt(e.element).trigger(e.constructor.Event.SHOWN),t===Ot&&e._leave(null,e)};if(vt(this.tip).hasClass(St)){var c=jn.getTransitionDurationFromElement(this.tip);vt(this.tip).one(jn.TRANSITION_END,d).emulateTransitionEnd(c)}else d()}},t.hide=function(e){var t=this,n=this.getTipElement(),i=vt.Event(this.constructor.Event.HIDE),o=function(){t._hoverState!==xt&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),vt(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(vt(this.element).trigger(i),!i.isDefaultPrevented()){if(vt(n).removeClass(Rt),"ontouchstart"in document.documentElement&&vt(document.body).children().off("mouseover",null,vt.noop),this._activeTrigger[Lt]=!1,this._activeTrigger[Nt]=!1,this._activeTrigger[Kt]=!1,vt(this.tip).hasClass(St)){var r=jn.getTransitionDurationFromElement(n);vt(n).one(jn.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){vt(this.getTipElement()).addClass(Ct+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||vt(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(vt(e.querySelectorAll($t)),this.getTitle()),vt(e).removeClass(St+" "+Rt)},t.setElementContent=function(e,t){var n=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?n?vt(t).parent().is(e)||e.empty().append(t):e.text(vt(t).text()):e[n?"html":"text"](t)},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getAttachment=function(e){return It[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)vt(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(t!==Mt){var n=t===Kt?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=t===Kt?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;vt(e.element).on(n,e.config.selector,function(t){return e._enter(t)}).on(i,e.config.selector,function(t){return e._leave(t)})}vt(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||vt(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),vt(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Nt:Kt]=!0),vt(t.getTipElement()).hasClass(Rt)||t._hoverState===xt?t._hoverState=xt:(clearTimeout(t._timeout),t._hoverState=xt,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===xt&&t.show()},t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||vt(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),vt(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Nt:Kt]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Ot,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===Ot&&t.hide()},t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){return"number"==typeof(e=r({},this.constructor.Default,vt(this.element).data(),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),jn.typeCheckConfig(yt,e,this.constructor.DefaultType),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e}
27,t._cleanTipClass=function(){var e=vt(this.getTipElement()),t=e.attr("class").match(Et);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(vt(e).removeClass(St),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each(function(){var n=vt(this).data(_t),i="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,i),vt(this).data(_t,n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Dt}},{key:"NAME",get:function(){return yt}},{key:"DATA_KEY",get:function(){return _t}},{key:"Event",get:function(){return kt}},{key:"EVENT_KEY",get:function(){return bt}},{key:"DefaultType",get:function(){return wt}}]),e}(),vt.fn[yt]=Pt._jQueryInterface,vt.fn[yt].Constructor=Pt,vt.fn[yt].noConflict=function(){return vt.fn[yt]=Tt,Pt._jQueryInterface},Pt),Gn=(Bt="popover",Ht="."+(jt="bs.popover"),zt=(Ft=t).fn[Bt],qt="bs-popover",Wt=new RegExp("(^|\\s)"+qt+"\\S+","g"),Ut=r({},Yn.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Vt=r({},Yn.DefaultType,{content:"(string|element|function)"}),Yt="fade",Xt=".popover-header",Qt=".popover-body",Zt={HIDE:"hide"+Ht,HIDDEN:"hidden"+Ht,SHOW:(Gt="show")+Ht,SHOWN:"shown"+Ht,INSERTED:"inserted"+Ht,CLICK:"click"+Ht,FOCUSIN:"focusin"+Ht,FOCUSOUT:"focusout"+Ht,MOUSEENTER:"mouseenter"+Ht,MOUSELEAVE:"mouseleave"+Ht},Jt=function(e){function t(){return e.apply(this,arguments)||this}var n,i;i=e,(n=t).prototype=Object.create(i.prototype),(n.prototype.constructor=n).__proto__=i;var r=t.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(e){Ft(this.getTipElement()).addClass(qt+"-"+e)},r.getTipElement=function(){return this.tip=this.tip||Ft(this.config.template)[0],this.tip},r.setContent=function(){var e=Ft(this.getTipElement());this.setElementContent(e.find(Xt),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(Qt),t),e.removeClass(Yt+" "+Gt)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var e=Ft(this.getTipElement()),t=e.attr("class").match(Wt);null!==t&&0<t.length&&e.removeClass(t.join(""))},t._jQueryInterface=function(e){return this.each(function(){var n=Ft(this).data(jt),i="object"==typeof e?e:null;if((n||!/destroy|hide/.test(e))&&(n||(n=new t(this,i),Ft(this).data(jt,n)),"string"==typeof e)){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Ut}},{key:"NAME",get:function(){return Bt}},{key:"DATA_KEY",get:function(){return jt}},{key:"Event",get:function(){return Zt}},{key:"EVENT_KEY",get:function(){return Ht}},{key:"DefaultType",get:function(){return Vt}}]),t}(Yn),Ft.fn[Bt]=Jt._jQueryInterface,Ft.fn[Bt].Constructor=Jt,Ft.fn[Bt].noConflict=function(){return Ft.fn[Bt]=zt,Jt._jQueryInterface},Jt),Xn=(tn="scrollspy",on="."+(nn="bs.scrollspy"),rn=(en=t).fn[tn],an={offset:10,method:"auto",target:""},sn={offset:"number",method:"string",target:"(string|element)"},ln={ACTIVATE:"activate"+on,SCROLL:"scroll"+on,LOAD_DATA_API:"load"+on+".data-api"},dn="dropdown-item",cn="active",un='[data-spy="scroll"]',hn=".active",fn=".nav, .list-group",pn=".nav-link",mn=".nav-item",gn=".list-group-item",vn=".dropdown",yn=".dropdown-item",_n=".dropdown-toggle",bn="offset",Tn="position",Cn=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+pn+","+this._config.target+" "+gn+","+this._config.target+" "+yn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,en(this._scrollElement).on(ln.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?bn:Tn,n="auto"===this._config.method?t:this._config.method,i=n===Tn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,o=jn.getSelectorFromElement(e);
27if(o&&(t=document.querySelector(o)),t){var r=t.getBoundingClientRect();if(r.width||r.height)return[en(t)[n]().top+i,o]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){en.removeData(this._element,nn),en(this._scrollElement).off(on),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=r({},an,"object"==typeof e&&e?e:{})).target){var t=en(e.target).attr("id");t||(t=jn.getUID(tn),en(e.target).attr("id",t)),e.target="#"+t}return jn.typeCheckConfig(tn,e,sn),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||e<this._offsets[o+1])&&this._activate(this._targets[o])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",");t=t.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var n=en([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(dn)?(n.closest(vn).find(_n).addClass(cn),n.addClass(cn)):(n.addClass(cn),n.parents(fn).prev(pn+", "+gn).addClass(cn),n.parents(fn).prev(mn).children(pn).addClass(cn)),en(this._scrollElement).trigger(ln.ACTIVATE,{relatedTarget:e})},t._clear=function(){var e=[].slice.call(document.querySelectorAll(this._selector));en(e).filter(hn).removeClass(cn)},e._jQueryInterface=function(t){return this.each(function(){var n=en(this).data(nn);if(n||(n=new e(this,"object"==typeof t&&t),en(this).data(nn,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return an}}]),e}(),en(window).on(ln.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(un)),t=e.length;t--;){var n=en(e[t]) 28;Cn._jQueryInterface.call(n,n.data())}}),en.fn[tn]=Cn._jQueryInterface,en.fn[tn].Constructor=Cn,en.fn[tn].noConflict=function(){return en.fn[tn]=rn,Cn._jQueryInterface},Cn),Qn=(In="."+(wn="bs.tab"),Dn=(En=t).fn.tab,xn={HIDE:"hide"+In,HIDDEN:"hidden"+In,SHOW:"show"+In,SHOWN:"shown"+In,CLICK_DATA_API:"click"+In+".data-api"},On="dropdown-menu",kn="active",Sn="disabled",Rn="fade",$n="show",An=".dropdown",Kn=".nav, .list-group",Nn=".active",Ln="> li > .active",Mn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Pn=".dropdown-toggle",Fn="> .dropdown-menu .active",Bn=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&En(this._element).hasClass(kn)||En(this._element).hasClass(Sn))){var t,n,i=En(this._element).closest(Kn)[0],o=jn.getSelectorFromElement(this._element);if(i){var r="UL"===i.nodeName?Ln:Nn;n=(n=En.makeArray(En(i).find(r)))[n.length-1]}var a=En.Event(xn.HIDE,{relatedTarget:this._element}),s=En.Event(xn.SHOW,{relatedTarget:n});if(n&&En(n).trigger(a),En(this._element).trigger(s),!s.isDefaultPrevented()&&!a.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,i);var l=function(){var t=En.Event(xn.HIDDEN,{relatedTarget:e._element}),i=En.Event(xn.SHOWN,{relatedTarget:n});En(n).trigger(t),En(e._element).trigger(i)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){En.removeData(this._element,wn),this._element=null},t._activate=function(e,t,n){var i=this,o=("UL"===t.nodeName?En(t).find(Ln):En(t).children(Nn))[0],r=n&&o&&En(o).hasClass(Rn),a=function(){return i._transitionComplete(e,o,n)};if(o&&r){var s=jn.getTransitionDurationFromElement(o);En(o).one(jn.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},t._transitionComplete=function(e,t,n){if(t){En(t).removeClass($n+" "+kn);var i=En(t.parentNode).find(Fn)[0];i&&En(i).removeClass(kn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(En(e).addClass(kn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),jn.reflow(e),En(e).addClass($n),e.parentNode&&En(e.parentNode).hasClass(On)){var o=En(e).closest(An)[0];if(o){var r=[].slice.call(o.querySelectorAll(Pn));En(r).addClass(kn)}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each(function(){var n=En(this),i=n.data(wn);if(i||(i=new e(this),n.data(wn,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method n
28amed "'+t+'"');i[t]()}})},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}(),En(document).on(xn.CLICK_DATA_API,Mn,function(e){e.preventDefault(),Bn._jQueryInterface.call(En(this),"show")}),En.fn.tab=Bn._jQueryInterface,En.fn.tab.Constructor=Bn,En.fn.tab.noConflict=function(){return En.fn.tab=Dn,Bn._jQueryInterface},Bn);!function(e){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),e.Util=jn,e.Alert=Hn,e.Button=zn,e.Carousel=qn,e.Collapse=Wn,e.Dropdown=Un,e.Modal=Vn,e.Popover=Gn,e.Scrollspy=Xn,e.Tab=Qn,e.Tooltip=Yn,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(function(){try{return require("moment")}catch(e){}}()):"function"==typeof define&&define.amd?define(["require"],function(e){return t(function(){try{return e("moment")}catch(e){}}())}):(e=e||self).Chart=t(e.moment)}(this,function(e){"use strict";function t(e){var t=function(){for(var e={},t=Object.keys(je),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(je[i]),r=o.length,a=0;a<r;a++){var s=o[a],l=t[s];-1===l.distance&&(l.distance=t[i].distance+1,l.parent=i,n.unshift(s))}return t}function n(e,t){return function(n){return t(e(n))}}function i(e,t){for(var i=[t[e].parent,e],o=je[t[e].parent][e],r=t[e].parent;t[r].parent;)i.unshift(t[r].parent),o=n(je[t[r].parent][r],o),r=t[r].parent;return o.conversion=i,o}function o(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3,4})$/i),o="";if(i){o=(i=i[1])[3];for(var r=0;r<t.length;r++)t[r]=parseInt(i[r]+i[r],16);o&&(n=Math.round(parseInt(o+o,16)/255*100)/100)}else if(i=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(o=i[2],i=i[1],r=0;r<t.length;r++)t[r]=parseInt(i.slice(2*r,2*r+2),16);o&&(n=Math.round(parseInt(o,16)/255*100)/100)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(r=0;r<t.length;r++)t[r]=parseInt(i[r+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(r=0;r<t.length;r++)t[r]=Math.round(2.55*parseFloat(i[r+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=qe[i[1]]))return}for(r=0;r<t.length;r++)t[r]=c(t[r],0,255);return n=n||0==n?c(n,0,1):1,t[3]=n,t}}function r(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[c(parseInt(t[1]),0,360),c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function a(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[c(parseInt(t[1]),0,360),c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function l(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function d(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}function h(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function f(e,t){var n=e._chartjs;if(n){var i=n.listeners,o=i.indexOf(t);-1!==o&&i.splice(o,1),i.length>0||(xt.forEach(function(t){delete e[t]}),delete e._chartjs)}}function p(e,t){var n=t.startAngle,i=t.endAngle,o=t.pixelMargin,r=o/t.outerRadius,a=t.x,s=t.y;e.beginPath(),e.arc(a,s,t.outerRadius,n-r,i+r),t.innerRadius>o?(r=o/t.innerRadius,e.arc(a,s,t.innerRadius-o,i+r,n-r,!0)):e.arc(a,s,o,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function m(e,t,n){var i="inner"===t.borderAlign;i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,i){var o,r=n.endAngle;
vendor: 18,632 bytes, line 28
28for(i&&(n.endAngle=n.startAngle+St,p(e,n),n.endAngle=r,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=St,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+St,n.startAngle,!0),o=0;o<n.fullCircles;++o)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+St),o=0;o<n.fullCircles;++o)e.stroke()}(e,t,n,i),i&&p(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}function g(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}function v(e){return e&&void 0!==e.width}function y(e){var t,n,i,o,r;return v(e)?(r=e.width/2,t=e.x-r,n=e.x+r,i=Math.min(e.y,e.base),o=Math.max(e.y,e.base)):(r=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),i=e.y-r,o=e.y+r),{left:t,top:i,right:n,bottom:o}}function _(e,t,n){return e===t?n:e===n?t:e}function b(e,t,n){var i,o,r,a,s=e.borderWidth,l=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=_(t,"left","right")):e.base<e.y&&(t=_(t,"bottom","top")),n[t]=!0,n):n}(e);return mt.isObject(s)?(i=+s.top||0,o=+s.right||0,r=+s.bottom||0,a=+s.left||0):i=o=r=a=+s||0,{t:l.top||i<0?0:i>n?n:i,r:l.right||o<0?0:o>t?t:o,b:l.bottom||r<0?0:r>n?n:r,l:l.left||a<0?0:a>t?t:a}}function T(e,t,n){var i=null===t,o=null===n,r=!(!e||i&&o)&&y(e);return r&&(i||t>=r.left&&t<=r.right)&&(o||n>=r.top&&n<=r.bottom)}function C(e,t,n){var i,o,r=n.barThickness,a=t.stackCount,s=t.pixels[e],l=mt.isNullOrUndef(r)?function(e,t){var n,i,o,r,a=e._length;for(o=1,r=t.length;o<r;++o)a=Math.min(a,Math.abs(t[o]-t[o-1]));for(o=0,r=e.getTicks().length;o<r;++o)i=e.getPixelForTick(o),a=o>0?Math.min(a,Math.abs(i-n)):a,n=i;return a}(t.scale,t.pixels):-1;return mt.isNullOrUndef(r)?(i=l*n.categoryPercentage,o=n.barPercentage):(i=r*a,o=1),{chunk:i/a,ratio:o,start:s-i/2}}function E(e,t){var n=e&&e.options.ticks||{},i=n.reverse,o=void 0===n.min?t:0,r=void 0===n.max?t:0;return{start:i?r:o,end:i?o:r}}function w(e,t,n){var i=n/2,o=E(e,i),r=E(t,i);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}function I(e){var t,n,i,o;return mt.isObject(e)?(t=e.top,n=e.right,i=e.bottom,o=e.left):t=n=i=o=e,{top:t,right:n,bottom:i,left:o}}function D(e,t){return e.native?{x:e.x,y:e.y}:mt.getRelativePosition(e,t)}function x(e,t){var n,i,o,r,a,s,l=e._getSortedVisibleDatasetMetas();for(i=0,r=l.length;i<r;++i)for(o=0,a=(n=l[i].data).length;o<a;++o)(s=n[o])._view.skip||t(s)}function O(e,t){var n=[];return x(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function k(e,t,n,i){var o=Number.POSITIVE_INFINITY,r=[];return x(e,function(e){if(!n||e.inRange(t.x,t.y)){var a=e.getCenterPoint(),s=i(t,a);s<o?(r=[e],o=s):s===o&&r.push(e)}}),r}function S(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){var o=t?Math.abs(e.x-i.x):0,r=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function R(e,t,n){var i=D(t,e);n.axis=n.axis||"x";var o=S(n.axis),r=n.intersect?O(e,i):k(e,i,!1,o),a=[];return r.length?(e._getSortedVisibleDatasetMetas().forEach(function(e){var t=e.data[r[0]._index];t&&!t._view.skip&&a.push(t)}),a):[]}function $(e,t){return mt.where(e,function(e){return e.pos===t})}function A(e,t){return e.sort(function(e,n){var i=t?n:e,o=t?e:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function K(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function N(e,t,n){var i,o,r=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?r.height:r.width,e[n.pos]+=n.size,r.getPadding){var s=r.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(i=t.outerWidth-K(a,e,"left","right"),o=t.outerHeight-K(a,e,"top","bottom"),i!==e.w||o!==e.h){e.w=i,e.h=o;var l=n.horizontal?[i,e.w]:[o,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function L(e,t){function n(e){var n={left:0,top:0,right:0,bottom:0};return e.forEach(function(e){n[e]=Math.max(t[e],i[e])}),n}var i=t.maxPadding;return n(e?["left","right"]:["top","bottom"])}function M(e,t,n){var i,o,r,a,s,l,d=[];for(i=0,o=e.length;i<o;++i)(a=(r=e[i]).box).update(r.width||t.w,r.height||t.h,L(r.horizontal,t)),N(t,n,r)&&(l=!0,d.length&&(s=!0)),a.fullWidth||d.push(r);return s&&M(d,t,n)||l}function P(e,t,n){var i,o,r,a,s=n.padding,l=t.x,d=t.y;for(i=0,o=e.length;i<o;++i)a=(r=e[i]).box,r.horizontal?(a.left=a.fullWidth?s.left:t.left,a.right=a.fullWidth?n.outerWidth-s.right:t.left+t.w,a.top=d,a.bottom=d+a.height,a.width=a.right-a.left,d=a.bottom):(a.left=l,a.right=l+a.width,a.top=t.top,a.bottom=t.top+t.h,a.height=a.bottom-a.top,l=a.right);t.x=l,t.y=d}function F(e,t){var n=mt.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}function B(e,t,n){e.addEventListener(t,n,In)}function j(e,t,n){e.removeEventListener(t,n,In)}function H(e,t,n,i,o){return{type:e,chart:t,native:o||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function z(e){var t=document.createElement("div");return t.className=e||"",t}function q(e,t,n){var i,o,r,a,s=e[_n]||(e[_n]={}),l=s.resizer=function(e){var t=z(bn),n=z(bn+"-expand"),i=z(bn+"-shrink");n.appendChild(z()),i.appendChild(z()),t.appendChild(n),t.appendChild(i),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var o=function(){t._reset(),e()};return B(n,"scroll",o.bind(n,"expand")),B(i,"scroll",o.bind(i,"shrink")),t}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,o=i?i.clientWidth:0;t(H("resize",n)),i&&i.clientWidth<o&&n.canvas&&t(H("resize",n))}},r=!1,a=[],function(){a=Array.prototype.slice.call(arguments),o=o||this,r||(r=!0,mt.requestAnimFrame.call(window,function(){r=!1,i.apply(o,a)}))}));!function(e,t){var n=e[_n]||(e[_n]={}),i=n.renderProxy=function(e){e.animationName===Cn&&t()};mt.each(En,function(t){B(e,t,i)}),n.reflow=!!e.offsetParent,e.classList.add(Tn)}(e,function(){if(s.resizer){var t=e.parentNode;t&&t!==l.parentNode&&t.insertBefore(l,t.firstChild),l._reset()}})}function W(e){var t=e[_n]||{},n=t.resizer;delete t.resizer,function(e){var t=e[_n]||{},n=t.renderProxy;n&&(mt.each(En,function(t){j(e,t,n)}),delete t.renderProxy),e.classList.remove(Tn)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}function U(e,t){return t&&(mt.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function V(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Y(e){var t=ct.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Rn(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Rn(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Rn(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Rn(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Rn(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Rn(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Rn(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Rn(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Rn(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function G(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function X(e){return U([],V(e))}function Q(){return mt.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var o,r,a,s=n[e].length;for(t[e]||(t[e]=[]),o=0;o<s;++o)a=n[e][o],r=Mn(a.type,"xAxes"===e?"category":"linear"),o>=t[e].length&&t[e].push({}),!t[e][o].type||a.type&&a.type!==t[e][o].type?mt.merge(t[e][o],[Sn.getScaleDefaults(r),a]):mt.merge(t[e][o],a)}else mt._merger(e,t,n,i)}})}function Z(){return mt.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var o=t[e]||Object.create(null),r=n[e];"scales"===e?t[e]=Q(o,r):"scale"===e?t[e]=mt.merge(o,[Sn.getScaleDefaults(r.type),r]):mt._merger(e,t,n,i)}})}function J(e){var t=e.options;mt.each(e.scales,function(t){vn.removeBox(e,t)}),t=Z(ct.global,ct[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function ee(e,t,n){var i,o=function(e){return e.id===i};do{i=t+n++}while(mt.findIndex(e,o)>=0);return i}function te(e){return"top"===e||"bottom"===e}function ne(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function ie(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function oe(e){this.options=e||{}}function re(e,t,n){var i,o=e.getTicks().length,r=Math.min(t,o-1),a=e.getPixelForTick(r),s=e._startPixel,l=e._endPixel;if(!(n&&(i=1===o?Math.max(a-s,l-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(r-1))/2,(a+=r<t?i:-i)<s-1e-6||a>l+1e-6)))return a}function ae(e,t,n,i){function o(e){return{width:_[e]||0,height:b[e]||0,offset:T[e]||0}}var r,a,s,l,d,c,u,h,f,p,m,g,v,y=n.length,_=[],b=[],T=[],C=0,E=0;for(r=0;r<y;++r){if(l=n[r].label,d=n[r].major?t.major:t.minor,e.font=c=d.string,u=i[c]=i[c]||{data:{},gc:[]},h=d.lineHeight,f=p=0,zn(l)||Hn(l)){if(Hn(l))for(a=0,s=l.length;a<s;++a)m=l[a],zn(m)||Hn(m)||(f=mt.measureText(e,u.data,u.gc,f,m),p+=h)}else f=mt.measureText(e,u.data,u.gc,f,l),p=h;_.push(f),b.push(p),T.push(h/2),C=Math.max(f,C),E=Math.max(p,E)}return function(e,t){mt.each(e,function(e){var n,i=e.gc,o=i.length/2;if(o>t){for(n=0;n<o;++n)delete e.data[i[n]];i.splice(0,o)}})}(i,y),g=_.indexOf(C),v=b.indexOf(E),{first:o(0),last:o(y-1),widest:o(g),highest:o(v)}}function se(e){return e.drawTicks?e.tickMarkLength:0}function le(e){var t,n;return e.display?(t=mt.options._parseFont(e),n=mt.options.toPadding(e.padding),t.lineHeight+n.height):0}function de(e,t){return mt.extend(mt.options._parseFont({fontFamily:qn(t.fontFamily,e.fontFamily),fontSize:qn(t.fontSize,e.fontSize),fontStyle:qn(t.fontStyle,e.fontStyle),lineHeight:qn(t.lineHeight,e.lineHeight)}),{color:mt.options.resolve([t.fontColor,e.fontColor,ct.global.defaultFontColor])})}function ce(e){var t=de(e,e.minor);return{minor:t,major:e.major.enabled?de(e,e.major):t}}function ue(e){var t,n,i,o=[];for(n=0,i=e.length;n<i;++n)void 0!==(t=e[n])._index&&o.push(t);return o}function he(e,t,n,i){var o,r,a,s,l=qn(n,0),d=Math.min(qn(i,e.length),e.length),c=0;for(t=Math.ceil(t),i&&(t=(o=i-n)/Math.floor(o/t)),s=l;s<0;)c++,s=Math.round(l+c*t);for(r=Math.max(l,0);r<d;r++)a=e[r],r===s?(a._index=r,c++,s=Math.round(l+c*t)):delete a.label}function fe(e,t,n,i){var o,r,a=e.options,s=function(e,t,n){var i=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[i]&&(e[i]={pos:[],neg:[]}),e[i]}(t,a.stacked,n),l=s.pos,d=s.neg,c=i.length;for(o=0;o<c;++o)r=e._parseValue(i[o]),isNaN(r.min)||isNaN(r.max)||n.data[o].hidden||(l[o]=l[o]||0,d[o]=d[o]||0,a.relativePoints?l[o]=100:r.min<0||r.max<0?d[o]+=r.min:l[o]+=r.max)}function pe(e,t,n){var i,o,r=n.length;for(i=0;i<r;++i)o=e._parseValue(n[i]),isNaN(o.min)||isNaN(o.max)||t.data[i].hidden||(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}function me(e,t){return mt.isFinite(e)&&e>=0?e:t}function ge(e){var t=e.ticks;return t.display&&e.display?li(t.fontSize,ct.global.defaultFontSize)+2*t.backdropPaddingY:0}function ve(e,t,n,i,o){return e===i||e===o?{start:t-n/2,end:t+n/2}:e<i||e>o?{start:t-n,end:t}:{start:t,end:t+n}}function ye(e){return 0===e||180===e?"center":e<180?"left":"right"}function _e(e,t,n,i){var o,r,a=n.y+i/2;if(mt.isArray(t))for(o=0,r=t.length;o<r;++o)e.fillText(t[o],n.x,a),a+=i;else e.fillText(t,n.x,a)}function be(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Te(e){return mt.isNumber(e)?e:0}function Ce(e,t){return e-t}function Ee(e){return mt.valueOrDefault(e.time.min,e.ticks.min)}function we(e){return mt.valueOrDefault(e.time.max,e.ticks.max)}function Ie(e,t,n,i){var o=function(e,t,n){for(var i,o,r,a=0,s=e.length-1;a>=0&&a<=s;){if(o=e[(i=a+s>>1)-1]||null,r=e[i],!o)return{lo:null,hi:r};if(r[t]<n)a=i+1;else{if(!(o[t]>n))return{lo:o,hi:r};s=i-1}}return{lo:r,hi:null}}(e,t,n),r=o.lo?o.hi?o.lo:e[e.length-2]:e[0],a=o.lo?o.hi?o.hi:e[e.length-1]:e[1],s=a[t]-r[t],l=s?(n-r[t])/s:0,d=(a[i]-r[i])*l;return r[i]+d}function De(e,t){var n=e._adapter,i=e.options.time,o=i.parser,r=o||i.format,a=t;return"function"==typeof o&&(a=o(a)),mt.isFinite(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null!==a?+a:(o||"function"!=typeof r||(a=r(t),mt.isFinite(a)||(a=n.parse(a))),a)}function xe(e,t){if(mt.isNullOrUndef(t))return null;var n=e.options.time,i=De(e,e.getRightValue(t));return null===i?i:(n.round&&(i=+e._adapter.startOf(i,n.round)),i)}function Oe(e,t,n,i){var o,r,a,s=bi.length;for(o=bi.indexOf(e);o<s-1;++o)if(a=(r=_i[bi[o]]).steps?r.steps:yi,r.common&&Math.ceil((n-t)/(a*r.size))<=i)return bi[o];return bi[s-1]}function ke(e,t,n){var i,o,r=[],a={},s=t.length;for(i=0;i<s;++i)a[o=t[i]]=i,r.push({value:o,major:!1});return 0!==s&&n?function(e,t,n,i){var o,r,a=e._adapter,s=+a.startOf(t[0].value,i),l=t[t.length-1].value;for(o=s;o<=l;o=+a.add(o,1,i))(r=n[o])>=0&&(t[r].major=!0);return t}(e,r,a,n):r}function Se(e,t,n){var i,o=e._model||{},r=o.fill;if(void 0===r&&(r=!!o.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(i=parseFloat(r,10),isFinite(i)&&Math.floor(i)===i)return"-"!==r[0]&&"+"!==r[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function Re(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,i,o,r,a=e.el._scale,s=a.options,l=a.chart.data.labels.length,d=e.fill,c=[];if(!l)return null;for(t=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,i=a.getPointPositionForValue(0,t),o=0;o<l;++o)r="start"===d||"end"===d?a.getPointPositionForValue(o,"start"===d?t:n):a.getBasePosition(o),s.gridLines.circular&&(r.cx=i.x,r.cy=i.y,r.angle=a.getIndexAngle(o)-Math.PI/2),c.push(r);return c}(e):function(e){var t,n=e.el._model||{},i=e.el._scale||{},o=e.fill,r=null;if(isFinite(o))return null;if("start"===o?r=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===o?r=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:i.getBasePixel&&(r=i.getBasePixel()),null!=r){if(void 0!==r.x&&void 0!==r.y)return r;if(mt.isFinite(r))return{x:(t=i.isHorizontal())?r:null,y:t?null:r}}return null}(e)}function $e(e,t,n){var i,o=e[t].fill,r=[t];if(!n)return o;for(;!1!==o&&-1===r.indexOf(o);){if(!isFinite(o))return o;if(!(i=e[o]))return!1;if(i.visible)return o;r.push(o),o=i.fill}return!1}function Ae(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Ii[n](e))}function Ke(e){return e&&!e.skip}function Ne(e,t,n,i,o){var r,a,s,l;if(i&&o){for(e.moveTo(t[0].x,t[0].y),r=1;r<i;++r)mt.canvas.lineTo(e,t[r-1],t[r]);if(void 0===n[0].angle)for(e.lineTo(n[o-1].x,n[o-1].y),r=o-1;r>0;--r)mt.canvas.lineTo(e,n[r],n[r-1],!0);else for(a=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),r=o-1;r>0;--r)e.arc(a,s,l,n[r].angle,n[r-1].angle,!0)}}function Le(e,t,n,i,o,r){var a,s,l,d,c,u,h,f,p=t.length,m=i.spanGaps,g=[],v=[],y=0,_=0;for(e.beginPath(),a=0,s=p;a<s;++a)c=n(d=t[l=a%p]._view,l,i),u=Ke(d),h=Ke(c),r&&void 0===f&&u&&(s=p+(f=a+1)),u&&h?(y=g.push(d),_=v.push(c)):y&&_&&(m?(u&&g.push(d),h&&v.push(c)):(Ne(e,g,v,y,_),y=_=0,g=[],v=[]));Ne(e,g,v,y,_),e.closePath(),e.fillStyle=o,e.fill()}function Me(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}function Pe(e,t){var n=new Si({ctx:e.ctx,options:t,chart:e});vn.configure(e,n,t),vn.addBox(e,n),e.legend=n}function Fe(e,t){var n=new Ai({ctx:e.ctx,options:t,chart:e});vn.configure(e,n,t),vn.addBox(e,n),e.titleBlock=n}e=e&&e.hasOwnProperty("default")?e["default"]:e;var Be={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
vendor: 6,277 bytes, line 28
28ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},je=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){var t={};for(var n in Be)Be.hasOwnProperty(n)&&(t[Be[n]]=n);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in i)if(i.hasOwnProperty(o)){if(!("channels"in i[o]))throw new Error("missing channels property: "+o);if(!("labels"in i[o]))throw new Error("missing channel labels property: "+o);if(i[o].labels.length!==i[o].channels)throw new Error("channel and label counts mismatch: "+o);var r=i[o].channels,a=i[o].labels;delete i[o].channels,delete i[o].labels,Object.defineProperty(i[o],"channels",{value:r}),Object.defineProperty(i[o],"labels",{value:a})}i.rgb.hsl=function(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a;return s===a?t=0:i===s?t=(o-r)/l:o===s?t=2+(r-i)/l:r===s&&(t=4+(i-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},i.rgb.hsv=function(e){var t,n,i,o,r,a=e[0]/255,s=e[1]/255,l=e[2]/255,d=Math.max(a,s,l),c=d-Math.min(a,s,l),u=function(e){return(d-e)/6/c+.5};return 0===c?o=r=0:(r=c/d,t=u(a),n=u(s),i=u(l),a===d?o=i-n:s===d?o=1/3+t-i:l===d&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*r,100*d]},i.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[i.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-o)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var n=t[e];if(n)return n;var i,o,r,a=1/0;for(var s in Be)if(Be.hasOwnProperty(s)){var l=(o=e,r=Be[s],Math.pow(o[0]-r[0],2)+Math.pow(o[1]-r[1],2)+Math.pow(o[2]-r[2],2));l<a&&(a=l,i=s)}return i},i.keyword.rgb=function(e){return Be[e]},i.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],o=t[1],r=t[2];return o/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.hsl.rgb=function(e){var t,n,i,o,r,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[r=255*l,r,r];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var d=0;d<3;d++)(i=a+1/3*-(d-1))<0&&i++,i>1&&i--,r=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,o[d]=255*r;return o},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,o=n,r=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,o*=r<=1?r:2-r,[t,100*(0===i?2*o/(r+o):2*n/(i+n)),(i+n)/2*100]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,o=Math.floor(t)%6,r=t-Math.floor(t),a=255*i*(1-n),s=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,o){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}},i.hsv.hsl=function(e){var t,n,i,o=e[0],r=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return i=(2-r)*a,n=r*s,[o,100*(n=(n/=(t=(2-r)*s)<=1?t:2-t)||0),100*(i/=2)]},i.hwb.rgb=function(e){var t,n,i,o,r,a,s,l=e[0]/360,d=e[1]/100,c=e[2]/100,u=d+c;switch(u>1&&(d/=u,c/=u),i=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(i=1-i),o=d+i*((n=1-c)-d),t){default:case 6:case 0:r=n,a=o,s=d;break;case 1:r=o,a=n,s=d;break;case 2:r=d,a=n,s=o;break;case 3:r=d,a=o,s=n;break;case 4:r=o,a=d,s=n;break;case 5:r=n,a=d,s=o}return[255*r,255*a,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,i*(1-o)+o))]},i.xyz.rgb=function(e){var t,n,i,o=e[0]/100,r=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*r+.0415*a,i=.0557*o+-.204*r+1.057*a,t=(t=3.2406*o+-1.5372*r+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},i.lab.xyz=function(e){var t,n,i,o=e[0];t=e[1]/500+(n=(o+16)/116),i=n-e[2]/200;var r=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(i,3);return n=r>.008856?r:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},i.lab.lch=function(e){var t,n=e[0],i=e[1],o=e[2];return(t=360*Math.atan2(o,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+o*o),t]},i.lch.lab=function(e){var t,n=e[0],i=e[1];
vendor: 10,988 bytes, lines 28-29
28return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],r=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(r=Math.round(r/50)))return 30;var a=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===r&&(a+=60),a},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){ 29var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},i.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,o=e[2]/255,r=Math.max(Math.max(n,i),o),a=Math.min(Math.min(n,i),o),s=r-a;return t=s<=0?0:r===n?(i-o)/s%6:r===i?2+(o-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=1,o=0;return(i=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*i)/(1-i)),[e[0],100*i,100*o]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],100*i,100*o]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];var o,r=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return o=(1-n)*i,[255*(n*r[0]+o),255*(n*r[1]+o),255*(n*r[2]+o)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],100*i,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});je.rgb,je.hsl,je.hsv,je.hwb,je.cmyk,je.xyz,je.lab,je.lch,je.hex,je.keyword,je.ansi16,je.ansi256,je.hcg,je.apple,je.gray;var He={};Object.keys(je).forEach(function(e){He[e]={},Object.defineProperty(He[e],"channels",{value:je[e].channels}),Object.defineProperty(He[e],"labels",{value:je[e].labels});var n=function(e){for(var n=t(e),o={},r=Object.keys(n),a=r.length,s=0;s<a;s++){var l=r[s];null!==n[l].parent&&(o[l]=i(l,n))}return o}(e);Object.keys(n).forEach(function(t){var i=n[t];He[e][t]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),He[e][t].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)})});var ze=He,qe={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},We={getRgba:o,getHsla:r,getRgb:function(e){var t=o(e);return t&&t.slice(0,3)},getHsl:function(e){var t=r(e);return t&&t.slice(0,3)},getHwb:a,getAlpha:function(e){var t=o(e);return t?t[3]:(t=r(e))?t[3]:(t=a(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+u(e[0])+u(e[1])+u(e[2])+(t>=0&&t<1?u(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?s(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){return t<1||e[3]&&e[3]<1?l(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:l,hslString:function(e,t){return t<1||e[3]&&e[3]<1?d(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:d,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return Ue[e.slice(0,3)]}},Ue={};for(var Ve in qe)Ue[qe[Ve]]=Ve;var Ye=function(e){return e instanceof Ye?e:this instanceof Ye?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=We.getRgba(e))?this.setValues("rgb",t):(t=We.getHsla(e))?this.setValues("hsl",t):(t=We.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new Ye(e);var t};Ye.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return We.hexString(this.values.rgb)},rgbString:function(){return We.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return We.rgbaString(this.values.rgb,this.values.alpha)}
vendor: 4,605 bytes, line 29
29,percentString:function(){return We.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return We.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return We.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return We.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return We.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,i=void 0===t?.5:t,o=2*i-1,r=this.alpha()-n.alpha(),a=((o*r==-1?o:(o+r)/(1+o*r))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new Ye,i=this.values,o=n.values;for(var r in i)i.hasOwnProperty(r)&&(e=i[r],"[object Array]"===(t={}.toString.call(e))?o[r]=e.slice(0):"[object Number]"===t?o[r]=e:console.error("unexpected color value:",e));return n}},Ye.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},Ye.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},Ye.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},Ye.prototype.setValues=function(e,t){var n,i,o=this.values,r=this.spaces,a=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)o[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)o[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[r[e][0]]){var l=r[e];for(n=0;n<e.length;n++)o[e][n]=t[l[n]];s=t.alpha}if(o.alpha=Math.max(0,Math.min(1,void 0===s?o.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(a[e][n],o[e][n])),o[e][n]=Math.round(i);for(var d in r)d!==e&&(o[d]=ze[e][d](o[e]));return!0},Ye.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},Ye.prototype.setChannel=function(e,t,n){var i=this.values[e];return void 0===n?i[t]:n===i[t]?this:(i[t]=n,this.setValues(e,i),this)},"undefined"!=typeof window&&(window.Color=Ye);var Ge,Xe=Ye,Qe={noop:function(){},uid:(Ge=0,function(){return Ge++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return Qe.valueOrDefault(Qe.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var o,r,a;
vendor: 9,027 bytes, line 29
29if(Qe.isArray(e))if(r=e.length,i)for(o=r-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<r;o++)t.call(n,e[o],o);else if(Qe.isObject(e))for(r=(a=Object.keys(e)).length,o=0;o<r;o++)t.call(n,e[a[o]],a[o])},arrayEquals:function(e,t){var n,i,o,r;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(o=e[n],r=t[n],o instanceof Array&&r instanceof Array){if(!Qe.arrayEquals(o,r))return!1}else if(o!==r)return!1;return!0},clone:function(e){if(Qe.isArray(e))return e.map(Qe.clone);if(Qe.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,o=0;o<i;++o)t[n[o]]=Qe.clone(e[n[o]]);return t}return e},_merger:function(e,t,n,i){if(h(e)){var o=t[e],r=n[e];Qe.isObject(o)&&Qe.isObject(r)?Qe.merge(o,r,i):t[e]=Qe.clone(r)}},_mergerIf:function(e,t,n){if(h(e)){var i=t[e],o=n[e];Qe.isObject(i)&&Qe.isObject(o)?Qe.mergeIf(i,o):t.hasOwnProperty(e)||(t[e]=Qe.clone(o))}},merge:function(e,t,n){var i,o,r,a,s,l=Qe.isArray(t)?t:[t],d=l.length;if(!Qe.isObject(e))return e;for(i=(n=n||{}).merger||Qe._merger,o=0;o<d;++o)if(t=l[o],Qe.isObject(t))for(s=0,a=(r=Object.keys(t)).length;s<a;++s)i(r[s],e,t,n);return e},mergeIf:function(e,t){return Qe.merge(e,t,{merger:Qe._mergerIf})},extend:Object.assign||function(e){return Qe.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=t.prototype,n.prototype=new i,n.extend=Qe.inherits,e&&Qe.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,i){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},Ze=Qe;Qe.callCallback=Qe.callback,Qe.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},Qe.getValueOrDefault=Qe.valueOrDefault,Qe.getValueAtIndexOrDefault=Qe.valueAtIndexOrDefault;var Je={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-Je.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*Je.easeInBounce(2*e):.5*Je.easeOutBounce(2*e-1)+.5}},et={effects:Je};Ze.easingEffects=Je;var tt=Math.PI,nt=tt/180,it=2*tt,ot=tt/2,rt=tt/4,at=2*tt/3,st={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,o,r){if(r){var a=Math.min(r,o/2,i/2),s=t+a,l=n+a,d=t+i-a,c=n+o-a;e.moveTo(t,l),s<d&&l<c?(e.arc(s,l,a,-tt,-ot),e.arc(d,l,a,-ot,0),e.arc(d,c,a,0,ot),e.arc(s,c,a,ot,tt)):s<d?(e.moveTo(s,n),e.arc(d,l,a,-ot,ot),e.arc(s,l,a,ot,tt+ot)):l<c?(e.arc(s,l,a,-tt,0),e.arc(s,c,a,0,tt)):e.arc(s,l,a,-tt,tt),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,o)},drawPoint:function(e,t,n,i,o,r){var a,s,l,d,c,u=(r||0)*nt;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(a=t.toString())||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(i,o),e.rotate(u),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,o,n,0,it),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(u)*n,o-Math.cos(u)*n),u+=at,e.lineTo(i+Math.sin(u)*n,o-Math.cos(u)*n),u+=at,e.lineTo(i+Math.sin(u)*n,o-Math.cos(u)*n),e.closePath();break;case"rectRounded":d=n-(c=.516*n),s=Math.cos(u+rt)*d,l=Math.sin(u+rt)*d,e.arc(i-s,o-l,c,u-tt,u-ot),e.arc(i+l,o-s,c,u-ot,u),e.arc(i+s,o+l,c,u,u+ot),e.arc(i-l,o+s,c,u+ot,u+tt),e.closePath();break;case"rect":if(!r){d=Math.SQRT1_2*n,e.rect(i-d,o-d,2*d,2*d);break}u+=rt;case"rectRot":s=Math.cos(u)*n,l=Math.sin(u)*n,e.moveTo(i-s,o-l),e.lineTo(i+l,o-s),e.lineTo(i+s,o+l),e.lineTo(i-l,o+s),e.closePath();break;case"crossRot":u+=rt;case"cross":s=Math.cos(u)*n,l=Math.sin(u)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l),e.moveTo(i+l,o-s),e.lineTo(i-l,o+s);break;case"star":s=Math.cos(u)*n,l=Math.sin(u)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l),e.moveTo(i+l,o-s),e.lineTo(i-l,o+s),u+=rt,s=Math.cos(u)*n,l=Math.sin(u)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l),e.moveTo(i+l,o-s),e.lineTo(i-l,o+s);break;case"line":s=Math.cos(u)*n,l=Math.sin(u)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l);break;case"dash":e.moveTo(i,o),e.lineTo(i+Math.cos(u)*n,o+Math.sin(u)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){return e.x>t.left-1e-6&&e.x<t.right+1e-6&&e.y>t.top-1e-6&&e.y<t.bottom+1e-6},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){var o=n.steppedLine;if(o){if("middle"===o){var r=(t.x+n.x)/2;e.lineTo(r,i?n.y:t.y),e.lineTo(r,i?t.y:n.y)}else"after"===o&&!i||"after"!==o&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},lt=st;Ze.clear=st.clear,Ze.drawRoundedRectangle=function(e){e.beginPath(),st.roundedRect.apply(st,arguments)};var dt={_set:function(e,t){return Ze.merge(this[e]||(this[e]={}),t)}};dt._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var ct=dt,ut=Ze.valueOrDefault,ht={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,o;return Ze.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,o=+e.left||0):t=n=i=o=+e||0,{top:t,right:n,bottom:i,left:o,height:t+i,width:o+n}},_parseFont:function(e){var t=ct.global,n=ut(e.fontSize,t.defaultFontSize),i={family:ut(e.fontFamily,t.defaultFontFamily),lineHeight:Ze.options.toLineHeight(ut(e.lineHeight,t.defaultLineHeight),n),size:n,style:ut(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=function(e){return!e||Ze.isNullOrUndef(e.size)||Ze.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i},resolve:function(e,t,n,i){var o,r,a,s=!0;for(o=0,r=e.length;o<r;++o)if(void 0!==(a=e[o])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&Ze.isArray(a)&&(a=a[n],s=!1),void 0!==a))return i&&!s&&(i.cacheable=!1),a}},ft={_factorize:function(e){var t,n=[],i=Math.sqrt(e);for(t=1;t<i;t++)e%t==0&&(n.push(t),n.push(e/t));return i===(0|i)&&n.push(i),n.sort(function(e,t){return e-t}).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},pt=ft;Ze.log10=ft.log10;var mt=Ze,gt=et,vt=lt,yt=ht,_t=pt,bt={getRtlAdapter:function(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n}
29,setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e){return e}}},overrideTextDirection:function(e,t){var n,i;"ltr"!==t&&"rtl"!==t||(i=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};mt.easing=gt,mt.canvas=vt,mt.options=yt,mt.math=_t,mt.rtl=bt;var Tt=function(e){mt.extend(this,e),this.initialize.apply(this,arguments)};mt.extend(Tt.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=mt.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,o=t._view;return n&&1!==e?(o||(o=t._view={}),i||(i=t._start={}),function(e,t,n,i){var o,r,a,s,l,d,c,u,h,f=Object.keys(n);for(o=0,r=f.length;o<r;++o)if(d=n[a=f[o]],t.hasOwnProperty(a)||(t[a]=d),(s=t[a])!==d&&"_"!==a[0]){if
vendor: 24,489 bytes, lines 29-30
29(e.hasOwnProperty(a)||(e[a]=s),(c=typeof d)==typeof(l=e[a]))if("string"===c){if((u=Xe(l)).valid&&(h=Xe(d)).valid){t[a]=h.mix(u,i).rgbString();continue}}else if(mt.isFinite(l)&&mt.isFinite(d)){t[a]=l+(d-l)*i;continue}t[a]=d}}(i,o,n,e),t):(t._view=mt.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return mt.isNumber(this._model.x)&&mt.isNumber(this._model.y)}}),Tt.extend=mt.inherits;var Ct=Tt,Et=Ct.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),wt=Et;Object.defineProperty(Et.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(Et.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),ct._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:mt.noop,onComplete:mt.noop}});var It={animations:[],request:null,addAnimation:function(e,t,n,i){var o,r,a=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),o=0,r=a.length;o<r;++o)if(a[o].chart===e)return void(a[o]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=mt.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=mt.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,i,o=this.animations,r=0;r<o.length;)t=(e=o[r]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),mt.callback(e.render,[t,e],t),mt.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(mt.callback(e.onAnimationComplete,[e],t),t.animating=!1,o.splice(r,1)):++r}},Dt=mt.options.resolve,xt=["push","pop","shift","splice","unshift"],Ot=function(e,t){this.initialize(e,t)};mt.extend(Ot.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,n=t.scales,i=this.getDataset(),o=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!i.xAxisID||(e.xAxisID=i.xAxisID||o.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!i.yAxisID||(e.yAxisID=i.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&f(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),i=this.getDataset().data||[],o=n.data;for(e=0,t=i.length;e<t;++e)o[e]=o[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,n=this,i=n.getDataset(),o=i.data||(i.data=[]);n._data!==o&&(n._data&&f(n._data,n),o&&Object.isExtensible(o)&&(t=n,(e=o)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),xt.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),o=i.apply(this,t);return mt.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),o}})}))),n._data=o),n.resyncElements()},_configure:function(){this._config=mt.merge(Object.create(null),[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&mt._merger(e,t,n)}})},_update:function(e){this._configure(),this._cachedDataOpts=null,this.update(e)},update:mt.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,o=0;o<i;++o)n[o].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},getStyle:function(e){var t,n=this.getMeta(),i=n.dataset;return this._configure(),i&&void 0===e?t=this._resolveDatasetElementOptions(i||{}):(e=e||0,t=this._resolveDataElementOptions(n.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,i,o,r,a=this,s=a.chart,l=a._config,d=e.custom||{},c=s.options.elements[a.datasetElementType.prototype._type]||{},u=a._datasetElementOptions,h={},f={chart:s,dataset:a.getDataset(),datasetIndex:a.index,hover:t};for(n=0,i=u.length;n<i;++n)o=u[n],r=t?"hover"+o.charAt(0).toUpperCase()+o.slice(1):o,h[o]=Dt([d[r],l[r],c[r]],f);return h},_resolveDataElementOptions:function(e,t){var n=this,i=e&&e.custom,o=n._cachedDataOpts;if(o&&!i)return o;var r,a,s,l,d=n.chart,c=n._config,u=d.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},p={chart:d,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},m={cacheable:!i};if(i=i||{},mt.isArray(h))for(a=0,s=h.length;a<s;++a)f[l=h[a]]=Dt([i[l],c[l],u[l]],p,t,m);else for(a=0,s=(r=Object.keys(h)).length;a<s;++a)f[l=r[a]]=Dt([i[l],c[h[l]],c[l],u[l]],p,t,m);return m.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){mt.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},o=e._model,r=mt.getHoverColor;e.$previousStyle={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderWidth:o.borderWidth},o.backgroundColor=Dt([i.hoverBackgroundColor,t.hoverBackgroundColor,r(o.backgroundColor)],void 0,n),o.borderColor=Dt([i.hoverBorderColor,t.hoverBorderColor,r(o.borderColor)],void 0,n),o.borderWidth=Dt([i.hoverBorderWidth,t.hoverBorderWidth,o.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,o,r,a=this.getMeta().dataset,s={};if(a){for(r=a._model,o=this._resolveDatasetElementOptions(a,!0),e=0,t=(i=Object.keys(o)).length;e<t;++e)s[n=i[e]]=r[n],r[n]=o[n];a.$previousStyle=s}},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,i=t.length;i<n?e.data.splice(i,n-i):i>n&&this.insertElements(n,i-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)} 30}),Ot.extend=mt.inherits;var kt=Ot,St=2*Math.PI;ct._set("global",{elements:{arc:{backgroundColor:ct.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Rt=Ct.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=mt.getAngleFromPoint(n,{x:e,y:t}),o=i.angle,r=i.distance,a=n.startAngle,s=n.endAngle;s<a;)s+=St;for(;o>s;)o-=St;for(;o<a;)o+=St;var l=o>=a&&o<=s,d=r>=n.innerRadius&&r<=n.outerRadius;return l&&d}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,o={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/St)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,o.fullCircles){for(o.endAngle=o.startAngle+St,t.beginPath(),t.arc(o.x,o.y,o.outerRadius,o.startAngle,o.endAngle),t.arc(o.x,o.y,o.innerRadius,o.endAngle,o.startAngle,!0),t.closePath(),e=0;e<o.fullCircles;++e)t.fill();o.endAngle=o.startAngle+n.circumference%St}t.beginPath(),t.arc(o.x,o.y,o.outerRadius,o.startAngle,o.endAngle),t.arc(o.x,o.y,o.innerRadius,o.endAngle,o.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&m(t,n,o),t.restore()}}),$t=mt.valueOrDefault,At=ct.global.defaultColor;ct._set("global",{elements:{line:{tension:.4,backgroundColor:At,borderWidth:3,borderColor:At,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Kt=Ct.extend({_type:"line",draw:function(){var e,t,n,i=this,o=i._view,r=i._chart.ctx,a=o.spanGaps,s=i._children.slice(),l=ct.global,d=l.elements.line,c=-1,u=i._loop;if(s.length){if(i._loop){for(e=0;e<s.length;++e)if(t=mt.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),u=a;break}u&&s.push(s[0])}for(r.save(),r.lineCap=o.borderCapStyle||d.borderCapStyle,r.setLineDash&&r.setLineDash(o.borderDash||d.borderDash),r.lineDashOffset=$t(o.borderDashOffset,d.borderDashOffset),r.lineJoin=o.borderJoinStyle||d.borderJoinStyle,r.lineWidth=$t(o.borderWidth,d.borderWidth),r.strokeStyle=o.borderColor||l.defaultColor,r.beginPath(),(n=s[0]._view).skip||(r.moveTo(n.x,n.y),c=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===c?mt.previousItem(s,e):s[c],n.skip||(c!==e-1&&!a||-1===c?r.moveTo(n.x,n.y):mt.canvas.lineTo(r,t._view,n),c=e);u&&r.closePath(),r.stroke(),r.restore()}}}),Nt=mt.valueOrDefault,Lt=ct.global.defaultColor;ct._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Lt,borderColor:Lt,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Mt=Ct.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:g,inXRange:g,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,i=t.pointStyle,o=t.rotation,r=t.radius,a=t.x,s=t.y,l=ct.global,d=l.defaultColor;t.skip||(void 0===e||mt.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||d,n.lineWidth=Nt(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||d,mt.canvas.drawPoint(n,i,r,a,s,o))}}),Pt=ct.global.defaultColor;ct._set("global",{elements:{rectangle:{backgroundColor:Pt,borderColor:Pt,borderSkipped:"bottom",borderWidth:0}}});var Ft=Ct.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=y(e),n=t.right-t.left,i=t.bottom-t.top,o=b(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b}}}(t),i=n.outer,o=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.w,i.h),i.w===o.w&&i.h===o.h||(e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.fillStyle=t.borderColor,e.rect(o.x,o.y,o.w,o.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return T(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return v(n)?T(n,e,null):T(n,null,t)},inXRange:function(e){return T(this._view,e,null)},inYRange:function(e){return T(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return v(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return v(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Bt={},jt=Rt,Ht=Kt,zt=Mt,qt=Ft;Bt.Arc=jt,Bt.Line=Ht,Bt.Point=zt,Bt.Rectangle=qt;var Wt=mt._deprecated,Ut=mt.valueOrDefault;ct._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),ct._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Vt=kt.extend({dataElementType:Bt.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;kt.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Wt("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Wt("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Wt("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Wt("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Wt("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=i.length;t<n;++t)this.updateElement(i[t],t,e)},updateElement:function(e,t,n){var i=this,o=i.getMeta(),r=i.getDataset(),a=i._resolveDataElementOptions(e,t);e._xScale=i.getScaleForId(o.xAxisID),e._yScale=i.getScaleForId(o.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:r.label,label:i.chart.data.labels[t]},mt.isArray(r.data[t])&&(e._model.borderSkipped=null),i._updateElementGeometry(e,t,n,a),e.pivot()},_updateElementGeometry:function(e,t,n,i){var o=this,r=e._model,a=o._getValueScale(),s=a.getBasePixel(),l=a.isHorizontal(),d=o._ruler||o.getRuler(),c=o.calculateBarValuePixels(o.index,t,i),u=o.calculateBarIndexPixels(o.index,t,d,i);r.horizontal=l,r.base=n?s:c.base,r.x=l?n?s:c.head:u.center,r.y=l?u.center:n?s:c.head,r.height=l?u.size:void 0,r.width=l?void 0:u.size},_getStacks:function(e){var t,n,i=this._getIndexScale(),o=i._getMatchingVisibleMetas(this._type),r=i.options.stacked,a=o.length,s=[];for(t=0;t<a&&(n=o[t],(!1===r||-1===s.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&s.push(n.stack),n.index!==e);++t);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this._getIndexScale(),i=[];for(e=0,t=this.getMeta().data.length;e<t;++e)i.push(n.getPixelForValue(null,e,this.index));return{pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this.getStackCount(),scale:n}},calculateBarValuePixels:function(e,t,n){var i,o,r,a,s,l,d,c=this.chart,u=this._getValueScale(),h=u.isHorizontal(),f=c.data.datasets,p=u._getMatchingVisibleMetas(this._type),m=u._parseValue(f[e].data[t]),g=n.minBarLength,v=u.options.stacked,y=this.getMeta().stack,_=void 0===m.start?0:m.max>=0&&m.min>=0?m.min:m.max,b=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,T=p.length;if(v||void 0===v&&void 0!==y)for(i=0;i<T&&(o=p[i]).index!==e;++i)o.stack===y&&(r=void 0===(d=u._parseValue(f[o.index].data[t])).start?d.end:d.min>=0&&d.max>=0?d.max:d.min,(m.min<0&&r<0||m.max>=0&&r>0)&&(_+=r));return a=u.getPixelForValue(_),l=(s=u.getPixelForValue(_+b))-a,void 0!==g&&Math.abs(l)<g&&(l=g,s=b>=0&&!h||b<0&&h?a-g:a+g),{size:l,base:a,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,i){var o="flex"===i.barThickness?function(e,t,n){var i,o=t.pixels,r=o[e],a=e>0?o[e-1]:null,s=e<o.length-1?o[e+1]:null,l=n.categoryPercentage;return null===a&&(a=r-(null===s?t.end-t.start:s-r)),null===s&&(s=r+r-a),i=r-(r-Math.min(a,s))/2*l,{chunk:Math.abs(s-a)/2*l/t.stackCount,ratio:n.barPercentage,start:i}}(t,n,i):C(t,n,i),r=this.getStackIndex(e,this.getMeta().stack),a=o.start+o.chunk*r+o.chunk/2,s=Math.min(Ut(i.maxBarThickness,1/0),o.chunk*o.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}},draw:function(){var e=this.chart,t=this._getValueScale(),n=this.getMeta().data,i=this.getDataset(),o=n.length,r=0;for(mt.canvas.clipArea(e.ctx,e.chartArea);r<o;++r){var a=t._parseValue(i.data[r]);isNaN(a.min)||isNaN(a.max)||n[r].draw()}mt.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var e=this,t=mt.extend({},kt.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,i=e._getValueScale().options;return t.barPercentage=Ut(n.barPercentage,t.barPercentage),t.barThickness=Ut(n.barThickness,t.barThickness),t.categoryPercentage=Ut(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Ut(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Ut(i.minBarLength,t.minBarLength),t}}),Yt=mt.valueOrDefault,Gt=mt.options.resolve;ct._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",i=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+i.r+")"}}}});var Xt=kt.extend({dataElementType:Bt.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;mt.each(n,function(n,i){t.updateElement(n,i,e)})},updateElement:function(e,t,n){var i=this,o=i.getMeta(),r=e.custom||{},a=i.getScaleForId(o.xAxisID),s=i.getScaleForId(o.yAxisID),l=i._resolveDataElementOptions(e,t),d=i.getDataset().data[t],c=i.index,u=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof d?d:NaN,t,c),h=n?s.getBasePixel():s.getPixelForValue(d,t,c);e._xScale=a,e._yScale=s,e._options=l,e._datasetIndex=c,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:r.skip||isNaN(u)||isNaN(h),x:u,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,i=mt.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Yt(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Yt(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Yt(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,i=n.chart,o=n.getDataset(),r=e.custom||{},a=o.data[t]||{},s=kt.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:i,dataIndex:t,dataset:o,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=mt.extend({},s)),s.radius=Gt([r.radius,a.r,n._config.radius,i.options.elements.point.radius],l,t),s}}),Qt=mt.valueOrDefault,Zt=Math.PI,Jt=2*Zt,en=Zt/2;ct._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,o=document.createElement("ul"),r=e.data,a=r.datasets,s=r.labels;if(o.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(i=o.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return o.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var o=e.getDatasetMeta(0),r=o.controller.getStyle(i);return{text:n,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,hidden:isNaN(t.datasets[0].data[i])||o.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,o,r=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(o=a.getDatasetMeta(n)).data[r]&&(o.data[r].hidden=!o.data[r].hidden);a.update()}},cutoutPercentage:50,rotation:-en,circumference:Jt,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return mt.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var tn=kt.extend({dataElementType:Bt.Arc,linkScales:mt.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,i,o,r=this,a=r.chart,s=a.chartArea,l=a.options,d=1,c=1,u=0,h=0,f=r.getMeta(),p=f.data,m=l.cutoutPercentage/100||0,g=l.circumference,v=r._getRingWeight(r.index);if(g<Jt){var y=l.rotation%Jt,_=(y+=y>=Zt?-Jt:y<-Zt?Jt:0)+g,b=Math.cos(y),T=Math.sin(y),C=Math.cos(_),E=Math.sin(_),w=y<=0&&_>=0||_>=Jt,I=y<=en&&_>=en||_>=Jt+en,D=y<=-en&&_>=-en||_>=Zt+en,x=y===-Zt||_>=Zt?-1:Math.min(b,b*m,C,C*m),O=D?-1:Math.min(T,T*m,E,E*m),k=w?1:Math.max(b,b*m,C,C*m),S=I?1:Math.max(T,T*m,E,E*m);d=(k-x)/2,c=(S-O)/2,u=-(k+x)/2,h=-(S+O)/2}for(i=0,o=p.length;i<o;++i)p[i]._options=r._resolveDataElementOptions(p[i],i);for(a.borderWidth=r.getMaxBorderWidth(),t=(s.right-s.left-a.borderWidth)/d,n=(s.bottom-s.top-a.borderWidth)/c,a.outerRadius=Math.max(Math.min(t,n)/2,0),a.innerRadius=Math.max(a.outerRadius*m,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(r._getVisibleDatasetWeightTotal()||1),a.offsetX=u*a.outerRadius,a.offsetY=h*a.outerRadius,f.total=r.calculateTotal(),r.outerRadius=a.outerRadius-a.radiusLength*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-a.radiusLength*v,0),i=0,o=p.length;i<o;++i)r.updateElement(p[i],i,e)},updateElement:function(e,t,n){var i=this,o=i.chart,r=o.chartArea,a=o.options,s=a.animation,l=(r.left+r.right)/2,d=(r.top+r.bottom)/2,c=a.rotation,u=a.rotation,h=i.getDataset(),f=n&&s.animateRotate?0:e.hidden?0:i.calculateCircumference(h.data[t])*(a.circumference/Jt),p=n&&s.animateScale?0:i.innerRadius,m=n&&s.animateScale?0:i.outerRadius,g=e._options||{};mt.extend(e,{_datasetIndex:i.index,_index:t,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:l+o.offsetX,y:d+o.offsetY,startAngle:c,endAngle:u,circumference:f,outerRadius:m,innerRadius:p,label:mt.valueAtIndexOrDefault(h.label,t,o.data.labels[t])}});var v=e._model;n&&s.animateRotate||(v.startAngle=0===t?a.rotation:i.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return mt.each(n.data,function(n,o){e=t.data[o],isNaN(e)||n.hidden||(i+=Math.abs(e))}),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Jt*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,o,r,a,s,l,d=0,c=this.chart;if(!e)for(t=0,n=c.data.datasets.length;t<n;++t)if(c.isDatasetVisible(t)){e=(i=c.getDatasetMeta(t)).data,t!==this.index&&(r=i.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)o=e[t],r?(r._configure(),a=r._resolveDataElementOptions(o,t)):a=o._options,"inner"!==a.borderAlign&&(s=a.borderWidth,d=(l=a.hoverBorderWidth)>(d=s>d?s:d)?l:d);return d},setHoverStyle:function(e){var t=e._model,n=e._options,i=mt.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth}
vendor: 1,504 bytes, line 30
30,t.backgroundColor=Qt(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Qt(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Qt(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(Qt(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});ct._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),ct._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var nn=Vt.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),on=mt.valueOrDefault,rn=mt.options.resolve,an=mt.canvas._isPointInArea;ct._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var sn=kt.extend({datasetElementType:Bt.Line,dataElementType:Bt.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
30dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,i=this,o=i.getMeta(),r=o.dataset,a=o.data||[],s=i.chart.options,l=i._config,d=i._showLine=on(l.showLine,s.showLines);for(i._xScale=i.getScaleForId(o.xAxisID),i._yScale=i.getScaleForId(o.yAxisID),d&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),r._scale=i._yScale,r._datasetIndex=i.index,r._children=a,r._model=i._resolveDatasetElementOptions(r),r.pivot()),t=0,n=a.length;t<n;++t)i.updateElement(a[t],t,e);for(d&&0!==r._model.tension&&i.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var i,o,r=this,a=r.getMeta(),s=e.custom||{},l=r.getDataset(),d=r.index,c=l.data[t],u=r._xScale,h=r._yScale,f=a.dataset._model,p=r._resolveDataElementOptions(e,t);i=u.getPixelForValue("object"==typeof c?c:NaN,t,d),o=n?h.getBasePixel():r.calculatePointY(c,t,d),e._xScale=u,e._yScale=h,e._options=p,e._datasetIndex=d,e._index=t,e._model={x:i,y:o,skip:s.skip||isNaN(i)||isNaN(o),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:on(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,i=e.custom||{},o=t.chart.options,r=o.elements.line,a=kt.prototype._resolveDatasetElementOptions.apply(t,arguments);return a.spanGaps=on(n.spanGaps,o.spanGaps),a.tension=on(n.lineTension,r.tension),a.steppedLine=rn([i.steppedLine,n.steppedLine,r.stepped]),a.clip=I(on(n.clip,w(t._xScale,t._yScale,a.borderWidth))),a},calculatePointY:function(e,t,n){var i,o,r,a,s,l,d,c=this.chart,u=this._yScale,h=0,f=0;if(u.options.stacked){for(s=+u.getRightValue(e),d=(l=c._getSortedVisibleDatasetMetas()).length,i=0;i<d&&(r=l[i]).index!==n;++i)o=c.data.datasets[r.index],"line"===r.type&&r.yAxisID===u.id&&((a=+u.getRightValue(o.data[t]))<0?f+=a||0:h+=a||0);return s<0?u.getPixelForValue(f+s):u.getPixelForValue(h+s)}return u.getPixelForValue(e)},updateBezierControlPoints:function(){function e(e,t,n){return Math.max(Math.min(e,n),t)}var t,n,i,o,r=this.chart,a=this.getMeta(),s=a.dataset._model,l=r.chartArea,d=a.data||[];if(s.spanGaps&&(d=d.filter(function(e){return!e._model.skip})),"monotone"===s.cubicInterpolationMode)mt.splineCurveMonotone(d);else for(t=0,n=d.length;t<n;++t)i=d[t]._model,o=mt.splineCurve(mt.previousItem(d,t)._model,i,mt.nextItem(d,t)._model,s.tension),i.controlPointPreviousX=o.previous.x,i.controlPointPreviousY=o.previous.y,i.controlPointNextX=o.next.x,i.controlPointNextY=o.next.y;if(r.options.elements.line.capBezierPoints)for(t=0,n=d.length;t<n;++t)i=d[t]._model,an(i,l)&&(t>0&&an(d[t-1]._model,l)&&(i.controlPointPreviousX=e(i.controlPointPreviousX,l.left,l.right),i.controlPointPreviousY=e(i.controlPointPreviousY,l.top,l.bottom)),t<d.length-1&&an(d[t+1]._model,l)&&(i.controlPointNextX=e(i.controlPointNextX,l.left,l.right),i.controlPointNextY=e(i.controlPointNextY,l.top,l.bottom)))},draw:function(){var e,t=this.chart,n=this.getMeta(),i=n.data||[],o=t.chartArea,r=t.canvas,a=0,s=i.length;for(this._showLine&&(e=n.dataset._model.clip,mt.canvas.clipArea(t.ctx,{left:!1===e.left?0:o.left-e.left,right:!1===e.right?r.width:o.right+e.right,top:!1===e.top?0:o.top-e.top,bottom:!1===e.bottom?r.height:o.bottom+e.bottom}),n.dataset.draw(),mt.canvas.unclipArea(t.ctx));a<s;++a)i[a].draw(o)},setHoverStyle:function(e){var t=e._model,n=e._options,i=mt.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=on(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=on(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=on(n.hoverBorderWidth,n.borderWidth),t.radius=on(n.hoverRadius,n.radius)}}),ln=mt.options.resolve;ct._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,i,o=document.createElement("ul"),r=e.data,a=r.datasets,s=r.labels;if(o.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(i=o.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return o.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var o=e.getDatasetMeta(0),r=o.controller.getStyle(i);return{text:n,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,hidden:isNaN(t.datasets[0].data[i])||o.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,o,r=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(o=a.getDatasetMeta(n)).data[r].hidden=!o.data[r].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var dn=kt.extend({dataElementType:Bt.Arc,linkScales:mt.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
30dColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i,o=this,r=o.getDataset(),a=o.getMeta(),s=o.chart.options.startAngle||0,l=o._starts=[],d=o._angles=[],c=a.data;for(o._updateRadius(),a.count=o.countVisibleElements(),t=0,n=r.data.length;t<n;t++)l[t]=s,i=o._computeAngle(t),d[t]=i,s+=i;for(t=0,n=c.length;t<n;++t)c[t]._options=o._resolveDataElementOptions(c[t],t),o.updateElement(c[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,i=t.options,o=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(o/2,0),t.innerRadius=Math.max(i.cutoutPercentage?t.outerRadius/100*i.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var i=this,o=i.chart,r=i.getDataset(),a=o.options,s=a.animation,l=o.scale,d=o.data.labels,c=l.xCenter,u=l.yCenter,h=a.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(r.data[t]),p=i._starts[t],m=p+(e.hidden?0:i._angles[t]),g=s.animateScale?0:l.getDistanceFromCenterForValue(r.data[t]),v=e._options||{};mt.extend(e,{_datasetIndex:i.index,_index:t,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:c,y:u,innerRadius:0,outerRadius:n?g:f,startAngle:n&&s.animateRotate?h:p,endAngle:n&&s.animateRotate?h:m,label:mt.valueAtIndexOrDefault(d,t,d[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return mt.each(t.data,function(t,i){isNaN(e.data[i])||t.hidden||n++}),n},setHoverStyle:function(e){var t=e._model,n=e._options,i=mt.getHoverColor,o=mt.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=o(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=o(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=o(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,i=t.getDataset(),o=t.getMeta();if(isNaN(i.data[e])||o.data[e].hidden)return 0;var r={chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index};return ln([t.chart.options.elements.arc.angle,2*Math.PI/n],r,e)}});ct._set("pie",mt.clone(ct.doughnut)),ct._set("pie",{cutoutPercentage:0});var cn=tn,un=mt.valueOrDefault;ct._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var hn=kt.extend({datasetElementType:Bt.Line,dataElementType:Bt.Point,linkScales:mt.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
30dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i=this,o=i.getMeta(),r=o.dataset,a=o.data||[],s=i.chart.scale,l=i._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),r._scale=s,r._datasetIndex=i.index,r._children=a,r._loop=!0,r._model=i._resolveDatasetElementOptions(r),r.pivot(),t=0,n=a.length;t<n;++t)i.updateElement(a[t],t,e);for(i.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var i=this,o=e.custom||{},r=i.getDataset(),a=i.chart.scale,s=a.getPointPositionForValue(t,r.data[t]),l=i._resolveDataElementOptions(e,t),d=i.getMeta().dataset._model,c=n?a.xCenter:s.x,u=n?a.yCenter:s.y;e._scale=a,e._options=l,e._datasetIndex=i.index,e._index=t,e._model={x:c,y:u,skip:o.skip||isNaN(c)||isNaN(u),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:un(o.tension,d?d.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,i=kt.prototype._resolveDatasetElementOptions.apply(e,arguments);return i.spanGaps=un(t.spanGaps,n.spanGaps),i.tension=un(t.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){function e(e,t,n){return Math.max(Math.min(e,n),t)}var t,n,i,o,r=this.getMeta(),a=this.chart.chartArea,s=r.data||[];for(r.dataset._model.spanGaps&&(s=s.filter(function(e){return!e._model.skip})),t=0,n=s.length;t<n;++t)i=s[t]._model,o=mt.splineCurve(mt.previousItem(s,t,!0)._model,i,mt.nextItem(s,t,!0)._model,i.tension),i.controlPointPreviousX=e(o.previous.x,a.left,a.right),i.controlPointPreviousY=e(o.previous.y,a.top,a.bottom),i.controlPointNextX=e(o.next.x,a.left,a.right),i.controlPointNextY=e(o.next.y,a.top,a.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,i=mt.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=un(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=un(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=un(n.hoverBorderWidth,n.borderWidth),t.radius=un(n.hoverRadius,n.radius)}});ct._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),ct._set("global",{datasets:{scatter:{showLine:!1}}});var fn={bar:Vt,bubble:Xt,doughnut:tn,horizontalBar:nn,line:sn,polarArea:dn,pie:cn,radar:hn,scatter:sn},pn={modes:{single:function(e,t){var n=D(t,e),i=[];return x(e,function(e){if(e.inRange(n.x,n.y))return i.push(e),i}),i.slice(0,1)},label:R,index:R,dataset:function(e,t,n){var i=D(t,e);n.axis=n.axis||"xy";var o=S(n.axis),r=n.intersect?O(e,i):k(e,i,!1,o);return r.length>0&&(r=e.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(e,t){return R(e,t,{intersect:!1})},point:function(e,t){return O(e,D(t,e))},nearest:function(e,t,n){var i=D(t,e);n.axis=n.axis||"xy";var o=S(n.axis);return k(e,i,n.intersect,o)},x:function(e,t,n){var i=D(t,e),o=[],r=!1;return x(e,function(e){e.inXRange(i.x)&&o.push(e),e.inRange(i.x,i.y)&&(r=!0)}),n.intersect&&!r&&(o=[]),o},y:function(e,t,n){var i=D(t,e),o=[],r=!1;return x(e,function(e){e.inYRange(i.y)&&o.push(e),e.inRange(i.x,i.y)&&(r=!0)}),n.intersect&&!r&&(o=[]),o}}},mn=mt.extend;ct._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var gn,vn={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,o=["fullWidth","position","weight"],r=o.length,a=0;a<r;++a)i=o[a],n.hasOwnProperty(i)&&(t[i]=n[i])},update:function(e,t,n){if(e){var i=e.options.layout||{},o=mt.options.toPadding(i.padding),r=t-o.width,a=n-o.height,s=function(e){var t=function(e){var t,n,i,o=[];for(t=0,n=(e||[]).length;t<n;++t)i=e[t],o.push({index:t,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return o}(e),n=A($(t,"left"),!0),i=A($(t,"right")),o=A($(t,"top"),!0),r=A($(t,"bottom"));return{leftAndTop:n.concat(o),rightAndBottom:i.concat(r),chartArea:$(t,"chartArea"),vertical:n.concat(i),horizontal:o.concat(r)}}(e.boxes),l=s.vertical,d=s.horizontal,c=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:r,vBoxMaxWidth:r/2/l.length,hBoxMaxHeight:a/2}),u=mn({maxPadding:mn({},o),w:r,h:a,x:o.left,y:o.top},o);!function(e,t){var n,i,o;for(n=0,i=e.length;n<i;++n)(o=e[n]).width=o.horizontal?o.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,o.height=o.horizontal&&t.hBoxMaxHeight}(l.concat(d),c),M(l,u,c),M(d,u,c)&&M(l,u,c),function(e){function t(t){var i=Math.max(n[t]-e[t],0);return e[t]+=i,i}var n=e.maxPadding;e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}(u),P(s.leftAndTop,u,c),u.x+=u.w,u.y+=u.h,P(s.rightAndBottom,u,c),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h},mt.each(s.chartArea,function(t){var n=t.box;mn(n,e.chartArea),n.update(u.w,u.h)})}}},yn=(gn=Object.freeze({__proto__:null, 31"default":"@keyframes chartjs-render-animation{from{opacity:.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 1ms}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}"}))&&gn["default"]||gn,_n="$chartjs",bn="chartjs-size-monitor",Tn="chartjs-render-monitor",Cn="chartjs-render-animation",En=["animationstart","webkitAnimationStart"],wn={touchstart:"mousedown",touchmove:"mou
31semove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},In=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0},Dn={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var n=e[_n]||(e[_n]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),e.appendChild(i)}}(t.host?t:document.head,yn)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),function(e,t){var n=e.style,i=e.getAttribute("height"),o=e.getAttribute("width");if(e[_n]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===o||""===o){var r=F(e,"width");void 0!==r&&(e.width=r)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var a=F(e,"height");void 0!==r&&(e.height=a)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[_n]){var n=t[_n].initial;["height","width"].forEach(function(e){var i=n[e];mt.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)}),mt.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[_n]}},addEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var o=n[_n]||(n[_n]={});B(i,t,(o.proxies||(o.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=wn[e.type]||e.type,i=mt.getRelativePosition(e,t);return H(n,t,i.x,i.y,e)}(t,e))})}else q(i,n,e)},removeEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var o=((n[_n]||{}).proxies||{})[e.id+"_"+t];o&&j(i,t,o)}else W(i)}};mt.addEvent=B,mt.removeEvent=j;var xn=Dn._enabled?Dn:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},On=mt.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},xn);ct._set("global",{plugins:{}});var kn={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,o,r,a,s,l=this.descriptors(e),d=l.length;for(i=0;i<d;++i)if("function"==typeof(s=(r=(o=l[i]).plugin)[t])&&((a=[e].concat(n||[])).push(o.options),!1===s.apply(r,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],o=e&&e.config||{},r=o.options&&o.options.plugins||{};return this._plugins.concat(o.plugins||[]).forEach(function(e){if(-1===n.indexOf(e)){var t=e.id,o=r[t];!1!==o&&(!0===o&&(o=mt.clone(ct.global.plugins[t])),n.push(e),i.push({plugin:e,options:o||{}}))}}),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}},Sn={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=mt.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?mt.merge(Object.create(null),[ct.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=mt.extend(this.defaults[e],t))},addScalesToLayout:function(e){mt.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,vn.addB
vendor: 70,284 bytes, lines 31-33
31ox(e,t)})}},Rn=mt.valueOrDefault,$n=mt.rtl.getRtlAdapter;ct._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:mt.noop,title:function(e,t){var n="",i=t.labels,o=i?i.length:0;if(e.length>0){var r=e[0];r.label?n=r.label:r.xLabel?n=r.xLabel:o>0&&r.index<o&&(n=i[r.index])}return n},afterTitle:mt.noop,beforeBody:mt.noop,beforeLabel:mt.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),mt.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:mt.noop,afterBody:mt.noop,beforeFooter:mt.noop,footer:mt.noop,afterFooter:mt.noop}}});var An={average:function(e){if(!e.length)return!1;var t,n,i=0,o=0,r=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();i+=s.x,o+=s.y,++r}}return{x:i/r,y:o/r}},nearest:function(e,t){var n,i,o,r=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var l=e[n];if(l&&l.hasValue()){var d=l.getCenterPoint(),c=mt.distanceBetweenPoints(t,d);c<s&&(s=c,o=l)}}if(o){var u=o.tooltipPosition();r=u.x,a=u.y}return{x:r,y:a}}},Kn=Ct.extend({initialize:function(){this._model=Y(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),i=t.title.apply(e,arguments),o=t.afterTitle.apply(e,arguments),r=[];return U(r=U(r=U(r,V(n)),V(i)),V(o))},getBeforeBody:function(){return X(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,o=[];return mt.each(e,function(e){var r={before:[],lines:[],after:[]};U(r.before,V(i.beforeLabel.call(n,e,t))),U(r.lines,i.label.call(n,e,t)),U(r.after,V(i.afterLabel.call(n,e,t))),o.push(r)}),o},getAfterBody:function(){return X(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),o=t.afterFooter.apply(e,arguments),r=[];return U(r=U(r=U(r,V(n)),V(i)),V(o))},update:function(e){var t,n,i,o,r,a,s,l,d,c,u=this,h=u._options,f=u._model,p=u._model=Y(h),m=u._active,g=u._data,v={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},_={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(m.length){p.opacity=1;var T=[],C=[];b=An[h.position].call(u,m,u._eventPosition);var E=[];for(t=0,n=m.length;t<n;++t)E.push((o=void 0,r=void 0,a=void 0,s=void 0,l=void 0,d=void 0,c=void 0,o=(i=m[t])._xScale,r=i._yScale||i._scale,a=i._index,s=i._datasetIndex,d=(l=i._chart.getDatasetMeta(s).controller)._getIndexScale(),c=l._getValueScale(),{xLabel:o?o.getLabelForIndex(a,s):"",yLabel:r?r.getLabelForIndex(a,s):"",label:d?""+d.getLabelForIndex(a,s):"",value:c?""+c.getLabelForIndex(a,s):"",index:a,datasetIndex:s,x:i._model.x,y:i._model.y}));h.filter&&(E=E.filter(function(e){return h.filter(e,g)})),h.itemSort&&(E=E.sort(function(e,t){return h.itemSort(e,t,g)})),mt.each(E,function(e){T.push(h.callbacks.labelColor.call(u,e,u._chart)),C.push(h.callbacks.labelTextColor.call(u,e,u._chart))}),p.title=u.getTitle(E,g),p.beforeBody=u.getBeforeBody(E,g),p.body=u.getBody(E,g),p.afterBody=u.getAfterBody(E,g),p.footer=u.getFooter(E,g),p.x=b.x,p.y=b.y,p.caretPadding=h.caretPadding,p.labelColors=T,p.labelTextColors=C,p.dataPoints=E,y=function(e,t,n,i){var o=e.x,r=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,d=n.xAlign,c=n.yAlign,u=a+s,h=l+s;return"right"===d?o-=t.width:"center"===d&&((o-=t.width/2)+t.width>i.width&&(o=i.width-t.width),o<0&&(o=0)),"top"===c?r+=u:r-="bottom"===c?t.height+u:t.height/2,"center"===c?"left"===d?o+=u:"right"===d&&(o-=u):"left"===d?o-=h:"right"===d&&(o+=h),{x:o,y:r}}(p,_=function(e,t){var n=e._chart.ctx,i=2*t.yPadding,o=0,r=t.body,a=r.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,d=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i+=s*d,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=a*c,i+=a?(a-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*u,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){o=Math.max(o,n.measureText(e).width+h)};return n.font=mt.fontString(d,t._titleFontStyle,t._titleFontFamily),mt.each(t.title,f),n.font=mt.fontString(c,t._bodyFontStyle,t._bodyFontFamily),mt.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?c+2:0,mt.each(r,function(e){mt.each(e.before,f),mt.each(e.lines,f),mt.each(e.after,f)}),h=0,n.font=mt.fontString(u,t._footerFontStyle,t._footerFontFamily),mt.each(t.footer,f),{width:o+=2*t.xPadding,height:i}}(this,p),v=function(e,t){var n,i,o,r,a,s=e._model,l=e._chart,d=e._chart.chartArea,c="center",u="center";s.y<t.height?u="top":s.y>l.height-t.height&&(u="bottom");var h=(d.left+d.right)/2,f=(d.top+d.bottom)/2;"center"===u?(n=function(e){return e<=h},i=function(e){return e>h}):(n=function(e){return e<=t.width/2},i=function(e){return e>=l.width-t.width/2}),o=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},r=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=f?"top":"bottom"},n(s.x)?(c="left",o(s.x)&&(c="center",u=a(s.y))):i(s.x)&&(c="right",r(s.x)&&(c="center",u=a(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:u}}(this,_),u._chart)}else p.opacity=0;return p.xAlign=v.xAlign,p.yAlign=v.yAlign,p.x=y.x,p.y=y.y,p.width=_.width,p.height=_.height,p.caretX=b.x,p.caretY=b.y,u._model=p,e&&h.custom&&h.custom.call(u,p),u},drawCaret:function(e,t){var n=this._chart.ctx,i=this._view,o=this.getCaretPosition(e,t,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)},getCaretPosition:function(e,t,n){var i,o,r,a,s,l,d=n.caretSize,c=n.cornerRadius,u=n.xAlign,h=n.yAlign,f=e.x,p=e.y,m=t.width,g=t.height;if("center"===h)s=p+g/2,"left"===u?(o=(i=f)-d,r=i,a=s+d,l=s-d):(o=(i=f+m)+d,r=i,a=s-d,l=s+d);else if("left"===u?(i=(o=f+c+d)-d,r=o+d):"right"===u?(i=(o=f+m-c-d)-d,r=o+d):(i=(o=n.caretX)-d,r=o+d),"top"===h)s=(a=p)-d,l=a;else{s=(a=p+g)+d,l=a;var v=r;r=i,i=v}return{x1:i,x2:o,x3:r,y1:a,y2:s,y3:l}},drawTitle:function(e,t,n){var i,o,r,a=t.title,s=a.length;if(s){var l=$n(t.rtl,t.x,t.width);for(e.x=G(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,o=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=mt.fontString(i,t._titleFontStyle,t._titleFontFamily),r=0;r<s;++r)n.fillText(a[r],l.x(e.x),e.y+i/2),e.y+=i+o,r+1===s&&(e.y+=t.titleMarginBottom-o)}},drawBody:function(e,t,n){var i,o,r,a,s,l,d,c,u=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,p=t.body,m=t.displayColors,g=0,v=m?G(t,"left"):0,y=$n(t.rtl,t.x,t.width),_=function(t){n.fillText(t,y.x(e.x+g),e.y+u/2),e.y+=u+h},b=y.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=mt.fontString(u,t._bodyFontStyle,t._bodyFontFamily),e.x=G(t,b),n.fillStyle=t.bodyFontColor,mt.each(t.beforeBody,_),g=m&&"right"!==b?"center"===f?u/2+1:u+2:0,s=0,d=p.length;s<d;++s){for(i=p[s],o=t.labelTextColors[s],r=t.labelColors[s],n.fillStyle=o,mt.each(i.before,_),l=0,c=(a=i.lines).length;l<c;++l){if(m){var T=y.x(v);n.fillStyle=t.legendColorBackground,n.fillRect(y.leftForLtr(T,u),e.y,u,u),n.lineWidth=1,n.strokeStyle=r.borderColor,n.strokeRect(y.leftForLtr(T,u),e.y,u,u),n.fillStyle=r.backgroundColor,n.fillRect(y.leftForLtr(y.xPlus(T,1),u-2),e.y+1,u-2,u-2),n.fillStyle=o}_(a[l])}mt.each(i.after,_)}g=0,mt.each(t.afterBody,_),e.y-=h},drawFooter:function(e,t,n){var i,o,r=t.footer,a=r.length;if(a){var s=$n(t.rtl,t.x,t.width);for(e.x=G(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",i=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=mt.fontString(i,t._footerFontStyle,t._footerFontFamily),o=0;o<a;++o)n.fillText(r[o],s.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,n,i){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var o=t.xAlign,r=t.yAlign,a=e.x,s=e.y,l=i.width,d=i.height,c=t.cornerRadius;n.beginPath(),n.moveTo(a+c,s),"top"===r&&this.drawCaret(e,i),n.lineTo(a+l-c,s),n.quadraticCurveTo(a+l,s,a+l,s+c),"center"===r&&"right"===o&&this.drawCaret(e,i),n.lineTo(a+l,s+d-c),n.quadraticCurveTo(a+l,s+d,a+l-c,s+d),"bottom"===r&&this.drawCaret(e,i),n.lineTo(a+c,s+d),n.quadraticCurveTo(a,s+d,a,s+d-c),"center"===r&&"left"===o&&this.drawCaret(e,i),n.lineTo(a,s+c),n.quadraticCurveTo(a,s,a+c,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},o=Math.abs(t.opacity<.001)?0:t.opacity,r=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&r&&(e.save(),e.globalAlpha=o,this.drawBackground(i,t,e,n),i.y+=t.yPadding,mt.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),mt.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,i.mode,i),i.reverse&&n._active.reverse()),(t=!mt.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Nn=An,Ln=Kn;Ln.positioners=Nn;var Mn=mt.valueOrDefault;ct._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Pn=function(e,t){return this.construct(e,t),this};mt.extend(Pn.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Z(ct.global,ct[e.type],e.options||{}),e}(t);var i=On.acquireContext(e,t),o=i&&i.canvas,r=o&&o.height,a=o&&o.width;n.id=mt.uid(),n.ctx=i,n.canvas=o,n.config=t,n.width=a,n.height=r,n.aspectRatio=r?a/r:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Pn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),i&&o?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return kn.notify(e,"beforeInit"),mt.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),kn.notify(e,"afterInit"),e},clear:function(){return mt.canvas.clear(this),this},stop:function(){return It.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,o=n.maintainAspectRatio&&t.aspectRatio||null,r=Math.max(0,Math.floor(mt.getMaximumWidth(i))),a=Math.max(0,Math.floor(o?r/o:mt.getMaximumHeight(i)));if((t.width!==r||t.height!==a)&&(i.width=t.width=r,i.height=t.height=a,i.style.width=r+"px",i.style.height=a+"px",mt.retinaScale(t,n.devicePixelRatio),!e)){var s={width:r,height:a};kn.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;mt.each(t.xAxes,function(e,n){e.id||(e.id=ee(t.xAxes,"x-axis-",n))}),mt.each(t.yAxes,function(e,n){e.id||(e.id=ee(t.yAxes,"y-axis-",n))}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},i=[],o=Object.keys(n).reduce(function(e,t){return e[t]=!1,e},{});t.scales&&(i=i.concat((t.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),t.scale&&i.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),mt.each(i,function(t){var i=t.options,r=i.id,a=Mn(i.type,t.dtype);te(i.position)!==te(t.dposition)&&(i.position=t.dposition),o[r]=!0;var s=null;if(r in n&&n[r].type===a)(s=n[r]).options=i,s.ctx=e.ctx,s.chart=e;else{var l=Sn.getScaleConstructor(a);if(!l)return;s=new l({id:r,type:a,options:i,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)}),mt.each(o,function(e,t){e||delete n[t]}),e.scales=n,Sn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,i=[],o=n.data.datasets;for(e=0,t=o.length;e<t;e++){var r=o[e],a=n.getDatasetMeta(e),s=r.type||n.config.type;if(a.type&&a.type!==s&&(n.destroyDatasetMeta(e),a=n.getDatasetMeta(e)),a.type=s,a.order=r.order||0,a.index=e,a.controller)a.controller.updateIndex(e),a.controller.linkScales();else{var l=fn[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(n,e),i.push(a.controller)}}return i},resetElements:function(){var e=this;mt.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,i=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),J(i),kn._invalidate(i),!1!==kn.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var o=i.buildOrUpdateControllers();for(t=0,n=i.data.datasets.length;t<n;t++)i.getDatasetMeta(t).controller.buildOrUpdateElements();i.updateLayout(),i.options.animation&&i.options.animation.duration&&mt.each(o,function(e){e.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],kn.notify(i,"afterUpdate"),i._layers.sort(ne("z","_idx")),i._bufferedRender?i._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:i.render(e)}},updateLayout:function(){var e=this;!1!==kn.notify(e,"beforeLayout")&&(vn.update(this,this.width,this.height),e._layers=[],mt.each(e.boxes,function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())},e),e._layers.forEach(function(e,t){e._idx=t}),kn.notify(e,"afterScaleUpdate"),kn.notify(e,"afterLayout"))},updateDatasets:function(){if(!1!==kn.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);kn.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==kn.notify(this,"beforeDatasetUpdate",[n])&&(t.controller._update(),kn.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,i=Mn(e.duration,n&&n.duration),o=e.lazy;if(!1!==kn.notify(t,"beforeRender")){var r=function(e){kn.notify(t,"afterRender"),mt.callback(n&&n.onComplete,[e],t)};if(n&&i){var a=new wt({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=mt.easing.effects[t.easing],i=t.currentStep,o=i/t.numSteps;e.draw(n(o),o,i)},onAnimationProgress:n.onProgress,onAnimationComplete:r});It.addAnimation(t,a,i,o)}else t.draw(),r(new wt({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,i=this;if(i.clear(),mt.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==kn.notify(i,"beforeDraw",[e])){for(n=i._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(i.chartArea);for(i.drawDatasets(e);t<n.length;++t)n[t].draw(i.chartArea);i._drawTooltip(e),kn.notify(i,"afterDraw",[e])}},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,i=[];for(t=0,n=(this.data.datasets||[]).length;t<n;++t)e&&!this.isDatasetVisible(t)||i.push(this.getDatasetMeta(t));return i.sort(ne("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n;if(!1!==kn.notify(this,"beforeDatasetsDraw",[e])){for(n=(t=this._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)this.drawDataset(t[n],e);kn.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==kn.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),kn.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==kn.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),kn.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return pn.modes.single(this,e)},getElementsAtEvent:function(e){return pn.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return pn.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=pn.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return pn.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,i=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);i&&(n.unbindEvents(),mt.canvas.clear(n),On.releaseContext(n.ctx),n.canvas=null,n.ctx=null),kn.notify(n,"destroy"),delete Pn.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Ln({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};mt.each(e.options.events,function(i){On.addEventListener(e,i,n),t[i]=n}),e.options.responsive&&(n=function(){e.resize()},On.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,mt.each(t,function(t,n){On.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var i,o,r,a=n?"set":"remove";for(o=0,r=e.length;o<r;++o)(i=e[o])&&this.getDatasetMeta(i._datasetIndex).controller[a+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==kn.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),kn.notify(t,"afterEvent",[e]);var o=t._bufferedRequest;return o?t.render(o):i&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,i=n.options||{},o=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,o.mode,o),mt.callback(i.onHover||i.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||i.onClick&&i.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,o.mode,!1),n.active.length&&o.mode&&n.updateHoverStyle(n.active,o.mode,!0),t=!mt.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Pn.instances={};var Fn=Pn;Pn.Controller=Pn,Pn.types={},mt.configMerge=Z,mt.scaleMerge=Q,mt.extend(oe.prototype,{formats:ie,parse:ie,format:ie,add:ie,diff:ie,startOf:ie,endOf:ie,_create:function(e){return e}}),oe.override=function(e){mt.extend(oe.prototype,e)};var Bn={_date:oe},jn={formatters:{values:function(e){return mt.isArray(e)?e:""+e},linear:function(e,t,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var o=mt.log10(Math.abs(i)),r="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=mt.log10(Math.abs(e)),s=Math.floor(a)-Math.floor(o);s=Math.max(Math.min(s,20),0),r=e.toExponential(s)}else{var l=-1*Math.floor(o);l=Math.max(Math.min(l,20),0),r=e.toFixed(l)}else r="0";return r},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(mt.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},Hn=mt.isArray,zn=mt.isNullOrUndef,qn=mt.valueOrDefault,Wn=mt.valueAtIndexOrDefault;ct._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:jn.formatters.values,minor:{},major:{}}});var Un=Ct.extend({zeroLineIndex:0,getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){mt.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,o,r,a,s,l=this,d=l.options.ticks,c=d.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=mt.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),a=l.buildTicks()||[],(!(a=l.afterBuildTicks(a)||a)||!a.length)&&l.ticks)for(a=[],i=0,o=l.ticks.length;i<o;++i)a.push({value:l.ticks[i],major:!1});return l._ticks=a,s=c<a.length,r=l._convertTicksToLabels(s?function(e,t){for(var n=[],i=e.length/t,o=0,r=e.length;o<r;o+=i)n.push(e[Math.floor(o)]);return n}(a,c):a),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=d.display&&(d.autoSkip||"auto"===d.source)?l._autoSkip(a):a,s&&(r=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=r,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,i=!i),n._startPixel=e,n._endPixel=t,n._reversePixels=i,n._length=t-e},afterUpdate:function(){mt.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){mt.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){mt.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){mt.callback(this.options.beforeDataLimits,[this])},determineDataLimits:mt.noop,afterDataLimits:function(){mt.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){mt.callback(this.options.beforeBuildTicks,[this])},buildTicks:mt.noop,afterBuildTicks:function(e){var t=this;return Hn(e)&&e.length?mt.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=mt.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){mt.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){mt.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){mt.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,o,r,a,s=this,l=s.options,d=l.ticks,c=s.getTicks().length,u=d.minRotation||0,h=d.maxRotation,f=u;!s._isVisible()||!d.display||u>=h||c<=1||!s.isHorizontal()?s.labelRotation=u:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,i=Math.min(s.maxWidth,s.chart.width-t),t+6>(o=l.offset?s.maxWidth/c:i/(c-1))&&(o=i/(c-(l.offset?.5:1)),r=s.maxHeight-se(l.gridLines)-d.padding-le(l.scaleLabel),a=Math.sqrt(t*t+n*n),f=mt.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/o,1)),Math.asin(Math.min(r/a,1))-Math.asin(n/a))),f=Math.max(u,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){mt.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){mt.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,o=i.ticks,r=i.scaleLabel,a=i.gridLines,s=e._isVisible(),l="bottom"===i.position,d=e.isHorizontal();if(d?t.width=e.maxWidth:s&&(t.width=se(a)+le(r)),d?s&&(t.height=se(a)+le(r)):t.height=e.maxHeight,o.display&&s){var c=ce(o),u=e._getLabelSizes(),h=u.first,f=u.last,p=u.widest,m=u.highest,g=.4*c.minor.lineHeight,v=o.padding;if(d){var y=0!==e.labelRotation,_=mt.toRadians(e.labelRotation),b=Math.cos(_),T=Math.sin(_),C=T*p.width+b*(m.height-(y?m.offset:0))+(y?0:g);t.height=Math.min(e.maxHeight,t.height+C+v);var E,w,I=e.getPixelForTick(0)-e.left,D=e.right-e.getPixelForTick(e.getTicks().length-1);y?(E=l?b*h.width+T*h.offset:T*(h.height-h.offset),w=l?T*(f.height-f.offset):b*f.width+T*f.offset):(E=h.width/2,w=f.width/2),e.paddingLeft=Math.max((E-I)*e.width/(e.width-I),0)+3,e.paddingRight=Math.max((w-D)*e.width/(e.width-D),0)+3}else{var x=o.mirror?0:p.width+v+g;t.width=Math.min(e.maxWidth,t.width+x),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),d?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){mt.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(zn(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,i,o=this;for(o.ticks=e.map(function(e){return e.value}),o.beforeTickToLabelConversion(),t=o.convertTicksToLabels(e)||o.ticks,o.afterTickToLabelConversion(),n=0,i=e.length;n<i;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=ae(e.ctx,ce(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){ 32var t,n,i,o;return Hn(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),o=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),i=e,o=e),{min:i,max:o,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:mt.noop,getPixelForValue:mt.noop,getValueForPixel:mt.noop,getPixelForTick:function(e){var t=this.options.offset,n=this._ticks.length,i=1/Math.max(n-(t?0:1),1);return e<0||e>n-1?null:this.getPixelForDecimal(e*i+(t?i/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,i,o,r=this.options.ticks,a=this._length,s=r.maxTicksLimit||a/this._tickSize()+1,l=r.major.enabled?function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}(e):[],d=l.length,c=l[0],u=l[d-1];if(d>s)return function(e,t,n){var i,o,r=0,a=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)o=e[i],i===a?(o._index=i,a=t[++r*n]):delete o.label}(e,l,d/s),ue(e);if(i=function(e,t,n,i){var o,r,a,s,l=function(e){var t,n,i=e.length;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),d=(t.length-1)/i;if(!l)return Math.max(d,1);for(a=0,s=(o=mt.math._factorize(l)).length-1;a<s;a++)if((r=o[a])>d)return r;return Math.max(d,1)}(l,e,0,s),d>0){for(t=0,n=d-1;t<n;t++)he(e,i,l[t],l[t+1]);return o=d>1?(u-c)/(d-1):null,he(e,i,mt.isNullOrUndef(o)?0:c-o,c),he(e,i,u,mt.isNullOrUndef(o)?e.length:u+o),ue(e)}return he(e,i),ue(e)},_tickSize:function(){var e=this.options.ticks,t=mt.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),o=this._getLabelSizes(),r=e.autoSkipPadding||0,a=o?o.widest.width+r:0,s=o?o.highest.height+r:0;return this.isHorizontal()?s*n>a*i?a/n:s/i:s*i<a*n?s/n:a/i},_isVisible:function(){var e,t,n,i=this.chart,o=this.options.display;if("auto"!==o)return!!o;for(e=0,t=i.data.datasets.length;e<t;++e)if(i.isDatasetVisible(e)&&((n=i.getDatasetMeta(e)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,f,p,m,g,v,y=this,_=y.chart,b=y.options,T=b.gridLines,C=b.position,E=T.offsetGridLines,w=y.isHorizontal(),I=y._ticksToDraw,D=I.length+(E?1:0),x=se(T),O=[],k=T.drawBorder?Wn(T.lineWidth,0,0):0,S=k/2,R=mt._alignPixel,$=function(e){return R(_,e,k)};for("top"===C?(t=$(y.bottom),s=y.bottom-x,d=t-S,u=$(e.top)+S,f=e.bottom):"bottom"===C?(t=$(y.top),u=e.top,f=$(e.bottom)-S,s=t+S,d=y.top+x):"left"===C?(t=$(y.right),a=y.right-x,l=t-S,c=$(e.left)+S,h=e.right):(t=$(y.left),c=e.left,h=$(e.right)-S,a=t+S,l=y.left+x),n=0;n<D;++n)i=I[n]||{},zn(i.label)&&n<I.length||(n===y.zeroLineIndex&&b.offset===E?(p=T.zeroLineWidth,m=T.zeroLineColor,g=T.zeroLineBorderDash||[],v=T.zeroLineBorderDashOffset||0):(p=Wn(T.lineWidth,n,1),m=Wn(T.color,n,"rgba(0,0,0,0.1)"),g=T.borderDash||[],v=T.borderDashOffset||0),void 0!==(o=re(y,i._index||n,E))&&(r=R(_,o,p),w?a=l=c=h=r:s=d=u=f=r,O.push({tx1:a,ty1:s,tx2:l,ty2:d,x1:c,y1:u,x2:h,y2:f,width:p,color:m,borderDash:g,borderDashOffset:v})));return O.ticksLength=D,O.borderValue=t,O},_computeLabelItems:function(){var e,t,n,i,o,r,a,s,l,d,c,u,h=this,f=h.options,p=f.ticks,m=f.position,g=p.mirror,v=h.isHorizontal(),y=h._ticksToDraw,_=ce(p),b=p.padding,T=se(f.gridLines),C=-mt.toRadians(h.labelRotation),E=[];for("top"===m?(r=h.bottom-T-b,a=C?"left":"center"):"bottom"===m?(r=h.top+T+b,a=C?"right":"center"):"left"===m?(o=h.right-(g?0:T)-b,a=g?"left":"right"):(o=h.left+(g?0:T)+b,a=g?"right":"left"),e=0,t=y.length;e<t;++e)i=(n=y[e]).label,zn(i)||(s=h.getPixelForTick(n._index||e)+p.labelOffset,d=(l=n.major?_.major:_.minor).lineHeight,c=Hn(i)?i.length:1,v?(o=s,u="top"===m?((C?1:.5)-c)*d:(C?0:.5)*d):(r=s,u=(1-c)*d/2),E.push({x:o,y:r,rotation:C,label:i,font:l,textOffset:u,textAlign:a}));return E},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,o,r,a,s,l=t.ctx,d=t.chart,c=mt._alignPixel,u=n.drawBorder?Wn(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(r=0,a=h.length;r<a;++r)i=(s=h[r]).width,o=s.color,i&&o&&(l.save(),l.lineWidth=i,l.strokeStyle=o,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(u){var f,p,m,g,v=u,y=Wn(n.lineWidth,h.ticksLength-1,1),_=h.borderValue;t.isHorizontal()?(f=c(d,t.left,v)-v/2,p=c(d,t.right,y)+y/2,m=g=_):(m=c(d,t.top,v)-v/2,g=c(d,t.bottom,y)+y/2,f=p=_),l.lineWidth=u,l.strokeStyle=Wn(n.color,0),l.beginPath(),l.moveTo(f,m),l.lineTo(p,g),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,i,o,r,a,s,l,d=e.ctx,c=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,i=c.length;t<i;++t){if(a=(r=c[t]).font,d.save(),d.translate(r.x,r.y),d.rotate(r.rotation),d.font=a.string,d.fillStyle=a.color,d.textBaseline="middle",d.textAlign=r.textAlign,s=r.label,l=r.textOffset,Hn(s))for(n=0,o=s.length;n<o;++n)d.fillText(""+s[n],0,l),l+=a.lineHeight;else d.fillText(s,0,l);d.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,i=n.scaleLabel;if(i.display){var o,r,a=qn(i.fontColor,ct.global.defaultFontColor),s=mt.options._parseFont(i),l=mt.options.toPadding(i.padding),d=s.lineHeight/2,c=n.position,u=0;if(e.isHorizontal())o=e.left+e.width/2,r="bottom"===c?e.bottom-d-l.bottom:e.top+d+l.top;else{var h="left"===c;o=h?e.left+d+l.top:e.right-d-l.top,r=e.top+e.height/2,u=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(o,r),t.rotate(u),t.textAlign="center",t.textBaseline="middle",t.fillStyle=a,t.font=s.string,t.fillText(i.labelString,0,0),t.restore()}},draw:function(e){this._isVisible()&&(this._drawGrid(e),this._drawTitle(),this._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,i=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==i&&e.draw===e._draw?[{z:i,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter(function(i){return(!e||i.type===e)&&(n?i.xAxisID===t.id:i.yAxisID===t.id)})}});Un.prototype._draw=Un.prototype.draw;var Vn=Un,Yn=mt.isNullOrUndef,Gn=Vn.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),i=t.options.ticks,o=i.min,r=i.max,a=0,s=n.length-1;void 0!==o&&(e=n.indexOf(o))>=0&&(a=e),void 0!==r&&(e=n.indexOf(r))>=0&&(s=e),t.minIndex=a,t.maxIndex=s,t.min=n[a],t.max=n[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,n=this.maxIndex;this.ticks=0===t&&n===e.length-1?e:e.slice(t,n+1)},getLabelForIndex:function(e,t){var n=this.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;Vn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var i,o,r,a=this;return Yn(t)||Yn(n)||(e=a.chart.data.datasets[n].data[t]),Yn(e)||(i=a.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(o=a._getLabels(),e=mt.valueOrDefault(i,e),t=-1!==(r=o.indexOf(e))?r:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),Xn={position:"bottom"};Gn._defaults=Xn;var Qn=mt.noop,Zn=mt.isNullOrUndef,Jn=Vn.extend({getRightValue:function(e){return"string"==typeof e?+e:Vn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=mt.sign(e.min),i=mt.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var o=void 0!==t.min||void 0!==t.suggestedMin,r=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),o!==r&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,i=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Qn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:mt.valueOrDefault(t.fixedStepSize,t.stepSize)},o=e.ticks=function(e,t){var n,i,o,r,a=[],s=e.stepSize,l=s||1,d=e.maxTicks-1,c=e.min,u=e.max,h=e.precision,f=t.min,p=t.max,m=mt.niceNum((p-f)/d/l)*l;if(m<1e-14&&Zn(c)&&Zn(u))return[f,p];(r=Math.ceil(p/m)-Math.floor(f/m))>d&&(m=mt.niceNum(r*m/d/l)*l),s||Zn(h)?n=Math.pow(10,mt._decimalPlaces(m)):(n=Math.pow(10,h),m=Math.ceil(m*n)/n),i=Math.floor(f/m)*m,o=Math.ceil(p/m)*m,s&&(!Zn(c)&&mt.almostWhole(c/m,m/1e3)&&(i=c),!Zn(u)&&mt.almostWhole(u/m,m/1e3)&&(o=u)),r=(o-i)/m,r=mt.almostEquals(r,Math.round(r),m/1e3)?Math.round(r):Math.ceil(r),i=Math.round(i*n)/n,o=Math.round(o*n)/n,a.push(Zn(c)?i:c);for(var g=1;g<r;++g)a.push(Math.round((i+g*m)*n)/n);return a.push(Zn(u)?o:u),a}(i,e);e.handleDirectionalChanges(),e.max=mt.max(o),e.min=mt.min(o),t.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),Vn.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),i=t.min,o=t.max;Vn.prototype._configure.call(t),t.options.offset&&n.length&&(i-=e=(o-i)/Math.max(n.length-1,1)/2,o+=e),t._startValue=i,t._endValue=o,t._valueRange=o-i}}),ei={position:"left",ticks:{callback:jn.formatters.linear}},ti=Jn.extend({determineDataLimits:function(){var e,t,n,i,o=this,r=o.options,a=o.chart.data.datasets,s=o._getMatchingVisibleMetas(),l=r.stacked,d={},c=s.length;if(o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<c;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<c;++e)n=a[(t=s[e]).index].data,l?fe(o,d,t,n):pe(o,t,n);mt.each(d,function(e){i=e.pos.concat(e.neg),o.min=Math.min(o.min,mt.min(i)),o.max=Math.max(o.max,mt.max(i))}),o.min=mt.isFinite(o.min)&&!isNaN(o.min)?o.min:0,o.max=mt.isFinite(o.max)&&!isNaN(o.max)?o.max:1,o.handleTickRangeOptions()},_computeTickLimit:function(){var e;return this.isHorizontal()?Math.ceil(this.width/40):(e=mt.options._parseFont(this.options.ticks),Math.ceil(this.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){return this.getPixelForDecimal((+this.getRightValue(e)-this._startValue)/this._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),ni=ei;ti._defaults=ni;var ii=mt.valueOrDefault,oi=mt.math.log10,ri={position:"left",ticks:{callback:jn.formatters.logarithmic}},ai=Vn.extend({determineDataLimits:function(){function e(e){return u?e.xAxisID===s.id:e.yAxisID===s.id}var t,n,i,o,r,a,s=this,l=s.options,d=s.chart,c=d.data.datasets,u=s.isHorizontal();s.min=Number.POSITIVE_INFINITY,s.max=Number.NEGATIVE_INFINITY,s.minNotZero=Number.POSITIVE_INFINITY;var h=l.stacked;if(void 0===h)for(t=0;t<c.length;t++)if(n=d.getDatasetMeta(t),d.isDatasetVisible(t)&&e(n)&&void 0!==n.stack){h=!0;break}if(l.stacked||h){var f={};for(t=0;t<c.length;t++){var p=[(n=d.getDatasetMeta(t)).type,void 0===l.stacked&&void 0===n.stack?t:"",n.stack].join(".");if(d.isDatasetVisible(t)&&e(n))for(void 0===f[p]&&(f[p]=[]),r=0,a=(o=c[t].data).length;r<a;r++){var m=f[p];i=s._parseValue(o[r]),isNaN(i.min)||isNaN(i.max)||n.data[r].hidden||i.min<0||i.max<0||(m[r]=m[r]||0,m[r]+=i.max)}}mt.each(f,function(e){if(e.length>0){var t=mt.min(e),n=mt.max(e);s.min=Math.min(s.min,t),s.max=Math.max(s.max,n)}})}else for(t=0;t<c.length;t++)if(n=d.getDatasetMeta(t),d.isDatasetVisible(t)&&e(n))for(r=0,a=(o=c[t].data).length;r<a;r++)i=s._parseValue(o[r]),isNaN(i.min)||isNaN(i.max)||n.data[r].hidden||i.min<0||i.max<0||(s.min=Math.min(i.min,s.min),s.max=Math.max(i.max,s.max),0!==i.min&&(s.minNotZero=Math.min(i.min,s.minNotZero)));s.min=mt.isFinite(s.min)?s.min:null,s.max=mt.isFinite(s.max)?s.max:null,s.minNotZero=mt.isFinite(s.minNotZero)?s.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=me(t.min,e.min),e.max=me(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(oi(e.min))-1),e.max=Math.pow(10,Math.floor(oi(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(oi(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(oi(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(oi(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:me(t.min),max:me(t.max)},o=e.ticks=function(e,t){var n,i,o=[],r=ii(e.min,Math.pow(10,Math.floor(oi(t.min)))),a=Math.floor(oi(t.max)),s=Math.ceil(t.max/Math.pow(10,a));0===r?(n=Math.floor(oi(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(r),r=i*Math.pow(10,n)):(n=Math.floor(oi(r)),i=Math.floor(r/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(r),10==++i&&(i=1,l=++n>=0?1:l),r=Math.round(i*Math.pow(10,n)*l)/l}while(n<a||n===a&&i<s);var d=ii(e.max,r);return o.push(d),o}(i,e);e.max=mt.max(o),e.min=mt.min(o),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&o.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),Vn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(oi(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;Vn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=ii(e.options.ticks.fontSize,ct.global.defaultFontSize)/e._length),e._startValue=oi(t),e._valueOffset=n,e._valueRange=(oi(e.max)-oi(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(oi(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),si=ri;ai._defaults=si;var li=mt.valueOrDefault,di=mt.valueAtIndexOrDefault,ci=mt.options.resolve,ui={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:jn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}},hi=Jn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=ge(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;mt.each(t.data.datasets,function(o,r){if(t.isDatasetVisible(r)){var a=t.getDatasetMeta(r);mt.each(o.data,function(t,o){var r=+e.getRightValue(t);isNaN(r)||a.data[o].hidden||(n=Math.min(r,n),i=Math.max(r,i))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=i===Number.NEGATIVE_INFINITY?0:i,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/ge(this.options))},convertTicksToLabels:function(){var e=this;Jn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(function(){var t=mt.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,i,o=mt.options._parseFont(e.options.pointLabels),r={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=o.string,e._pointLabelSizes=[];var s,l,d,c=e.chart.data.labels.length;for(t=0;t<c;t++){i=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=o.lineHeight,d=e.pointLabels[t],n=mt.isArray(d)?{w:mt.longestText(s,s.font,d),h:d.length*l}:{w:s.measureText(d).width,h:l},e._pointLabelSizes[t]=n;var u=e.getIndexAngle(t),h=mt.toDegrees(u)%360,f=ve(h,i.x,n.w,0,180),p=ve(h,i.y,n.h,90,270);f.start<r.l&&(r.l=f.start,a.l=u),f.end>r.r&&(r.r=f.end,a.r=u),p.start<r.t&&(r.t=p.start,a.t=u),p.end>r.b&&(r.b=p.end,a.b=u)}e.setReductions(e.drawingArea,r,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=this,o=t.l/Math.sin(n.l),r=Math.max(t.r-i.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(n.b);o=Te(o),r=Te(r),a=Te(a),s=Te(s),i.drawingArea=Math.min(Math.floor(e-(o+r)/2),Math.floor(e-(a+s)/2)),i.setCenterPoint(o,r,a,s)},setCenterPoint:function(e,t,n,i){var o=this,r=o.width-t-o.drawingArea,a=e+o.drawingArea,s=n+o.drawingArea,l=o.height-o.paddingTop-i-o.drawingArea;o.xCenter=Math.floor((a+r)/2+o.left),o.yCenter=Math.floor((s+l)/2+o.top+o.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(mt.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,n=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},_drawGrid:function(){var e,t,n,i=this,o=i.ctx,r=i.options,a=r.gridLines,s=r.angleLines,l=li(s.lineWidth,a.lineWidth),d=li(s.color,a.color);if(r.pointLabels.display&&function(e){var t=e.ctx,n=e.options,i=n.pointLabels,o=ge(n),r=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),a=mt.options._parseFont(i);t.save(),t.font=a.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?o/2:0,d=e.getPointPosition(s,r+l+5),c=di(i.fontColor,s,ct.global.defaultFontColor);t.fillStyle=c;var u=e.getIndexAngle(s),h=mt.toDegrees(u);t.textAlign=ye(h),be(h,e._pointLabelSizes[s],d),_e(t,e.pointLabels[s],d,a.lineHeight)}t.restore()}(i),a.display&&mt.each(i.ticks,function(e,n){0!==n&&(t=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(e,t,n,i){var o,r=e.ctx,a=t.circular,s=e.chart.data.labels.length,l=di(t.color,i-1),d=di(t.lineWidth,i-1);if((a||s)&&l&&d){if(r.save(),r.strokeStyle=l,r.lineWidth=d,r.setLineDash&&(r.setLineDash(t.borderDash||[]),r.lineDashOffset=t.borderDashOffset||0),r.beginPath(),a)r.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{o=e.getPointPosition(0,n),r.moveTo(o.x,o.y);for(var c=1;c<s;c++)o=e.getPointPosition(c,n),r.lineTo(o.x,o.y)}r.closePath(),r.stroke(),r.restore()}}(i,a,t,n))}),s.display&&l&&d){for(o.save(),o.lineWidth=l,o.strokeStyle=d,o.setLineDash&&(o.setLineDash(ci([s.borderDash,a.borderDash,[]])),o.lineDashOffset=ci([s.borderDashOffset,a.borderDashOffset,0])),e=i.chart.data.labels.length-1;e>=0;e--)t=i.getDistanceFromCenterForValue(r.ticks.reverse?i.min:i.max),n=i.getPointPosition(e,t),o.beginPath(),o.moveTo(i.xCenter,i.yCenter),o.lineTo(n.x,n.y),o.stroke();o.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var i,o,r=e.getIndexAngle(0),a=mt.options._parseFont(n),s=li(n.fontColor,ct.global.defaultFontColor);t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",mt.each(e.ticks,function(r,l){(0!==l||n.reverse)&&(i=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(o=t.measureText(r).width,t.fillStyle=n.backdropColor,t.fillRect(-o/2-n.backdropPaddingX,-i-a.size/2-n.backdropPaddingY,o+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(r,0,-i))}),t.restore()}},_drawTitle:mt.noop}),fi=ui;hi._defaults=fi;var pi=mt._deprecated,mi=mt.options.resolve,gi=mt.valueOrDefault,vi=Number.MIN_SAFE_INTEGER||-9007199254740991,yi=Number.MAX_SAFE_INTEGER||9007199254740991,_i={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bi=Object.keys(_i),Ti=Vn.extend({initialize:function(){this.mergeTicksOptions(),Vn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),i=e._adapter=new Bn._date(t.adapters.date);return pi("time scale",n.format,"time.format","time.parser"),pi("time scale",n.min,"time.min","ticks.min"),pi("time scale",n.max,"time.max","ticks.max"),mt.mergeIf(n.displayFormats,i.formats()),Vn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),Vn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,o,r,a,s=this,l=s.chart,d=s._adapter,c=s.options,u=c.time.unit||"day",h=yi,f=vi,p=[],m=[],g=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)g.push(xe(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(o=l.data.datasets[e].data,mt.isObject(o[0]))for(m[e]=[],t=0,i=o.length;t<i;++t)r=xe(s,o[t]),p.push(r),m[e][t]=r;else m[e]=g.slice(0),a||(p=p.concat(g),a=!0);else m[e]=[];g.length&&(h=Math.min(h,g[0]),f=Math.max(f,g[g.length-1])),p.length&&(p=n>1?function(e){var t,n,i,o={},r=[];for(t=0,n=e.length;t<n;++t)o[i=e[t]]||(o[i]=!0,r.push(i));return r}(p).sort(Ce):p.sort(Ce),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=xe(s,Ee(c))||h,f=xe(s,we(c))||f,h=h===yi?+d.startOf(Date.now(),u):h,f=f===vi?+d.endOf(Date.now(),u)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:m,labels:g}},buildTicks:function(){var e,t,n,i=this,o=i.min,r=i.max,a=i.options,s=a.ticks,l=a.time,d=i._timestamps,c=[],u=i.getLabelCapacity(o),h=s.source,f=a.distribution;for(d="data"===h||"auto"===h&&"series"===f?d.data:"labels"===h?d.labels:function(e,t,n,i){var o,r=e._adapter,a=e.options,s=a.time,l=s.unit||Oe(s.minUnit,t,n,i),d=mi([s.stepSize,s.unitStepSize,1]),c="week"===l&&s.isoWeekday,u=t,h=[];if(c&&(u=+r.startOf(u,"isoWeek",c)),u=+r.startOf(u,c?"day":l),r.diff(n,t,l)>1e5*d)throw t+" and "+n+" are too far apart with stepSize of "+d+" "+l;for(o=u;o<n;o=+r.add(o,d,l))h.push(o);return o!==n&&"ticks"!==a.bounds||h.push(o),h}(i,o,r,u),"ticks"===a.bounds&&d.length&&(o=d[0],r=d[d.length-1]),o=xe(i,Ee(a))||o,r=xe(i,we(a))||r,e=0,t=d.length;e<t;++e)(n=d[e])>=o&&n<=r&&c.push(n);return i.min=o,i.max=r,i._unit=l.unit||(s.autoSkip?Oe(l.minUnit,i.min,i.max,u):function(e,t,n,i,o){var r,a;for(r=bi.length-1;r>=bi.indexOf(n);r--)if(a=bi[r],_i[a].common&&e._adapter.diff(o,i,a)>=t-1)return a;return bi[n?bi.indexOf(n):0]}(i,c.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?function(e){for(var t=bi.indexOf(e)+1,n=bi.length;t<n;++t)if(_i[bi[t]].common)return bi[t]}(i._unit):void 0,i._table=function(e,t,n){if("linear"===f||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var i,o,r,a,s,l=[],d=[t];for(i=0,o=e.length;i<o;++i)(a=e[i])>t&&a<n&&d.push(a);for(d.push(n),i=0,o=d.length;i<o;++i)s=d[i+1],r=d[i-1],a=d[i],void 0!==r&&void 0!==s&&Math.round((s+r)/2)===a||l.push({time:a,pos:i/(o-1)});return l}(i._timestamps.data,o,r),i._offsets=function(e,t,n,i,o){var r,a,s=0,l=0;return o.offset&&t.length&&(r=Ie(e,"time",t[0],"pos"),s=1===t.length?1-r:(Ie(e,"time",t[1],"pos")-r)/2,a=Ie(e,"time",t[t.length-1],"pos"),l=1===t.length?a:(a-Ie(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(i._table,c,0,0,a),s.reverse&&c.reverse(),ke(i,c,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n._adapter,o=n.chart.data,r=n.options.time,a=o.labels&&e<o.labels.length?o.labels[e]:"",s=o.datasets[t].data[e];return mt.isObject(s)&&(a=n.getRightValue(s)),r.tooltipFormat?i.format(De(n,a),r.tooltipFormat):"string"==typeof a?a:i.format(De(n,a),r.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var o=this._adapter,r=this.options,a=r.time.displayFormats,s=a[this._unit],l=this._majorUnit,d=a[l],c=n[t],u=r.ticks,h=l&&d&&c&&c.major,f=o.format(e,i||(h?d:s)),p=h?u.major:u.minor,m=mi([p.callback,p.userCallback,u.callback,u.userCallback]);return m?m(f,t,n):f},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(e[t].value,t,e));return i},getPixelForOffset:function(e){var t=this._offsets,n=Ie(this._table,"time",e,"pos");return this.getPixelForDecimal((t.start+n)*t.factor)},getPixelForValue:function(e,t,n){var i=null;if(void 0!==t&&void 0!==n&&(i=this._timestamps.datasets[n][t]),null===i&&(i=xe(this,e)),null!==i)return this.getPixelForOffset(i)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end,i=Ie(this._table,"pos",n,"time");return this._adapter._create(i)},_getLabelSize:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,i=mt.toRadians(this.isHorizontal()?t.maxRotation:t.minRotation),o=Math.cos(i),r=Math.sin(i),a=gi(t.fontSize,ct.global.defaultFontSize);return{w:n*o+a*r,h:n*r+a*o}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,i=n.displayFormats,o=i[n.unit]||i.millisecond,r=t.tickFormatFunction(e,0,ke(t,[e],t._majorUnit),o),a=t._getLabelSize(r),s=Math.floor(t.isHorizontal()?t.width/a.w:t.height/a.h);return t.options.offset&&s--,s>0?s:1}}),Ci={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};Ti._defaults=Ci;var Ei={category:Gn,linear:ti,logarithmic:ai,radialLinear:hi,time:Ti},wi={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Bn._date.override("function"==typeof e?{_id:"moment",formats:function(){return wi},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,i){return e(t).add(n,i).valueOf()},diff:function(t,n,i){return e(t).diff(e(n),i)},startOf:function(t,n,i){return t=e(t),"isoWeek"===n?t.isoWeekday(i).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),ct._set("global",{plugins:{filler:{propagate:!0}}});var Ii={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),o=i&&n.isDatasetVisible(t)&&i.dataset._children||[],r=o.length||0;return r?function(e,t){return t<r&&o[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,i=t?t.y:null;return mt.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}},Di={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,o,r,a=(e.data.datasets||[]).length,s=t.propagate,l=[];for(i=0;i<a;++i)r=null,(o=(n=e.getDatasetMeta(i)).dataset)&&o._model&&o instanceof Bt.Line&&(r={visible:e.isDatasetVisible(i),fill:Se(o,i,a),chart:e,el:o}),n.$filler=r,l.push(r);for(i=0;i<a;++i)(r=l[i])&&(r.fill=$e(l,i,s),r.boundary=Re(r),r.mapper=Ae(r))},beforeDatasetsDraw:function(e){var t,n,i,o,r,a,s,l=e._getSortedVisibleDatasetMetas(),d=e.ctx;for(n=l.length-1;n>=0;--n)(t=l[n].$filler)&&t.visible&&(o=(i=t.el)._view,r=i._children||[],a=t.mapper,s=o.backgroundColor||ct.global.defaultColor,a&&s&&r.length&&(mt.canvas.clipArea(d,e.chartArea),Le(d,r,a,o,s,i._loop),mt.canvas.unclipArea(d)))}},xi=mt.rtl.getRtlAdapter,Oi=mt.noop,ki=mt.valueOrDefault;ct._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,o=i.getDatasetMeta(n);o.hidden=null===o.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},i=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map(function(n){var o=n.controller.getStyle(i?0:void 0);return{text:t[n.index].label,fillStyle:o.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:o.borderWidth,strokeStyle:o.borderColor,pointStyle:o.pointStyle,rotation:o.rotation,datasetIndex:n.index}},this)}}},legendCallback:function(e){var t,n,i,o=document.createElement("ul"),r=e.data.datasets;for(o.setAttribute("class",e.id+"-legend"),t=0,n=r.length;t<n;t++)(i=o.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=r[t].backgroundColor,r[t].label&&i.appendChild(document.createTextNode(r[t].label));return o.outerHTML}});var Si=Ct.extend({initialize:function(e){mt.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:Oi,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Oi,beforeSetDimensions:Oi,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Oi,beforeBuildLabels:Oi,buildLabels:function(){var e=this,t=e.options.labels||{},n=mt.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:Oi,beforeFit:Oi,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,o=e.ctx,r=mt.options._parseFont(n),a=r.size,s=e.legendHitBoxes=[],l=e.minSize,d=e.isHorizontal();if(d?(l.width=e.maxWidth,l.height=i?10:0):(l.width=i?10:0,l.height=e.maxHeight),i){if(o.font=r.string,d){var c=e.lineWidths=[0],u=0;o.textAlign="left",o.textBaseline="middle",mt.each(e.legendItems,function(e,t){var i=Me(n,a)+a/2+o.measureText(e.text).width;(0===t||c[c.length-1]+i+2*n.padding>l.width)&&(u+=a+n.padding,c[c.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:i,height:a},c[c.length-1]+=i+n.padding}),l.height+=u}else{var h=n.padding,f=e.columnWidths=[],p=e.columnHeights=[],m=n.padding,g=0,v=0;mt.each(e.legendItems,function(e,t){var i=Me(n,a)+a/2+o.measureText(e.text).width;t>0&&v+a+2*h>l.height&&(m+=g+n.padding,f.push(g),p.push(v),g=0,v=0),g=Math.max(g,i),v+=a+h,s[t]={left:0,top:0,width:i,height:a}}),m+=g,f.push(g),p.push(v),l.width+=m}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:Oi, 33isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=ct.global,o=i.defaultColor,r=i.elements.line,a=e.height,s=e.columnHeights,l=e.width,d=e.lineWidths;if(t.display){var c,u=xi(t.rtl,e.left,e.minSize.width),h=e.ctx,f=ki(n.fontColor,i.defaultFontColor),p=mt.options._parseFont(n),m=p.size;h.textAlign=u.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var g=Me(n,m),v=e.legendHitBoxes,y=function(e,i){switch(t.align){case"start":return n.padding;case"end":return e-i;default:return(e-i+n.padding)/2}},_=e.isHorizontal();c=_?{x:e.left+y(l,d[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(a,s[0]),line:0},mt.rtl.overrideTextDirection(e.ctx,t.textDirection);var b=m+n.padding;mt.each(e.legendItems,function(t,i){var f=h.measureText(t.text).width,p=g+m/2+f,T=c.x,C=c.y;u.setWidth(e.minSize.width),_?i>0&&T+p+n.padding>e.left+e.minSize.width&&(C=c.y+=b,c.line++,T=c.x=e.left+y(l,d[c.line])):i>0&&C+b>e.top+e.minSize.height&&(T=c.x=T+e.columnWidths[c.line]+n.padding,c.line++,C=c.y=e.top+y(a,s[c.line]));var E=u.x(T);!function(e,t,i){if(!(isNaN(g)||g<=0)){h.save();var a=ki(i.lineWidth,r.borderWidth);if(h.fillStyle=ki(i.fillStyle,o),h.lineCap=ki(i.lineCap,r.borderCapStyle),h.lineDashOffset=ki(i.lineDashOffset,r.borderDashOffset),h.lineJoin=ki(i.lineJoin,r.borderJoinStyle),h.lineWidth=a,h.strokeStyle=ki(i.strokeStyle,o),h.setLineDash&&h.setLineDash(ki(i.lineDash,r.borderDash)),n&&n.usePointStyle){var s=g*Math.SQRT2/2,l=u.xPlus(e,g/2),d=t+m/2;mt.canvas.drawPoint(h,i.pointStyle,s,l,d,i.rotation)}else h.fillRect(u.leftForLtr(e,g),t,g,m),0!==a&&h.strokeRect(u.leftForLtr(e,g),t,g,m);h.restore()}}(E,C,t),v[i].left=u.leftForLtr(E,v[i].width),v[i].top=C,function(e,t,n,i){var o=m/2,r=u.xPlus(e,g+o),a=t+o;h.fillText(n.text,r,a),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(r,a),h.lineTo(u.xPlus(r,i),a),h.stroke())}(E,C,t,f),_?c.x+=p+n.padding:c.y+=b}),mt.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,i,o,r=this;if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)for(o=r.legendHitBoxes,n=0;n<o.length;++n)if(e>=(i=o[n]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return r.legendItems[n];return null},handleEvent:function(e){var t,n=this,i=n.options,o="mouseup"===e.type?"click":e.type;if("mousemove"===o){if(!i.onHover&&!i.onLeave)return}else{if("click"!==o)return;if(!i.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===o?t&&i.onClick&&i.onClick.call(n,e.native,t):(i.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),i.onHover&&t&&i.onHover.call(n,e.native,t))}}),Ri={id:"legend",_element:Si,beforeInit:function(e){var t=e.options.legend;t&&Pe(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(mt.mergeIf(t,ct.global.legend),n?(vn.configure(e,n,t),n.options=t):Pe(e,t)):n&&(vn.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},$i=mt.noop;ct._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ai=Ct.extend({initialize:function(e){mt.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:$i,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:$i,beforeSetDimensions:$i,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:$i,beforeBuildLabels:$i,buildLabels:$i,afterBuildLabels:$i,beforeFit:$i,fit:function(){var e,t=this,n=t.options,i=t.minSize={},o=t.isHorizontal();n.display?(e=(mt.isArray(n.text)?n.text.length:1)*mt.options._parseFont(n).lineHeight+2*n.padding,t.width=i.width=o?t.maxWidth:e,t.height=i.height=o?e:t.maxHeight):t.width=i.width=t.height=i.height=0},afterFit:$i,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var i,o,r,a=mt.options._parseFont(n),s=a.lineHeight,l=s/2+n.padding,d=0,c=e.top,u=e.left,h=e.bottom,f=e.right;t.fillStyle=mt.valueOrDefault(n.fontColor,ct.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(o=u+(f-u)/2,r=c+l,i=f-u):(o="left"===n.position?u+l:f-l,r=c+(h-c)/2,i=h-c,d=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(o,r),t.rotate(d),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(mt.isArray(p))for(var m=0,g=0;g<p.length;++g)t.fillText(p[g],0,m,i),m+=s;else t.fillText(p,0,0,i);t.restore()}}}),Ki={},Ni=Di,Li=Ri,Mi={id:"title",_element:Ai,beforeInit:function(e){var t=e.options.title;t&&Fe(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(mt.mergeIf(t,ct.global.title),n?(vn.configure(e,n,t),n.options=t):Fe(e,t)):n&&(vn.removeBox(e,n),delete e.titleBlock)}};for(var Pi in Ki.filler=Ni,Ki.legend=Li,Ki.title=Mi,Fn.helpers=mt,function(){function e(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function t(e){return null!=e&&"none"!==e}function n(n,i,o){var r=document.defaultView,a=mt._getParentNode(n),s=r.getComputedStyle(n)[i],l=r.getComputedStyle(a)[i],d=t(s),c=t(l),u=Number.POSITIVE_INFINITY;return d||c?Math.min(d?e(s,n,o):u,c?e(l,a,o):u):"none"}mt.where=function(e,t){if(mt.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return mt.each(e,function(e){t(e)&&n.push(e)}),n},mt.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,o=e.length;i<o;++i)if(t.call(n,e[i],i,e))return i;return-1},mt.findNextWhere=function(e,t,n){mt.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var o=e[i];if(t(o))return o}},mt.findPreviousWhere=function(e,t,n){mt.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var o=e[i];if(t(o))return o}},mt.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},mt.almostEquals=function(e,t,n){return Math.abs(e-t)<n},mt.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},mt.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},mt.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},mt.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},mt.toRadians=function(e){return e*(Math.PI/180)},mt.toDegrees=function(e){return e*(180/Math.PI)},mt._decimalPlaces=function(e){if(mt.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},mt.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,o=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:o}},mt.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},mt.aliasPixel=function(e){return e%2==0?0:.5},mt._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,o=n/2;return Math.round((t-o)*i)/i+o},mt.splineCurve=function(e,t,n,i){var o=e.skip?t:e,r=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),l=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),d=s/(s+l),c=l/(s+l),u=i*(d=isNaN(d)?0:d),h=i*(c=isNaN(c)?0:c);return{previous:{x:r.x-u*(a.x-o.x),y:r.y-u*(a.y-o.y)},next:{x:r.x+h*(a.x-o.x),y:r.y+h*(a.y-o.y)}}},mt.EPSILON=Number.EPSILON||1e-14,mt.splineCurveMonotone=function(e){var t,n,i,o,r,a,s,l,d,c=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),u=c.length;for(t=0;t<u;++t)if(!(i=c[t]).model.skip){if(n=t>0?c[t-1]:null,(o=t<u-1?c[t+1]:null)&&!o.model.skip){var h=o.model.x-i.model.x;i.deltaK=0!==h?(o.model.y-i.model.y)/h:0}!n||n.model.skip?i.mK=i.deltaK:!o||o.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(t=0;t<u-1;++t)i=c[t],o=c[t+1],i.model.skip||o.model.skip||(mt.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=o.mK=0:(r=i.mK/i.deltaK,a=o.mK/i.deltaK,(l=Math.pow(r,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(l),i.mK=r*s*i.deltaK,o.mK=a*s*i.deltaK)));for(t=0;t<u;++t)(i=c[t]).model.skip||(n=t>0?c[t-1]:null,o=t<u-1?c[t+1]:null,n&&!n.model.skip&&(d=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-d,i.model.controlPointPreviousY=i.model.y-d*i.mK),o&&!o.model.skip&&(d=(o.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+d,i.model.controlPointNextY=i.model.y+d*i.mK))},mt.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},mt.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},mt.niceNum=function(e,t){var n=Math.floor(mt.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},mt.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},mt.getRelativePosition=function(e,t){var n,i,o=e.originalEvent||e,r=e.target||e.srcElement,a=r.getBoundingClientRect(),s=o.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=o.clientX,i=o.clientY);var l=parseFloat(mt.getStyle(r,"padding-left")),d=parseFloat(mt.getStyle(r,"padding-top")),c=p
33arseFloat(mt.getStyle(r,"padding-right")),u=parseFloat(mt.getStyle(r,"padding-bottom")),h=a.right-a.left-l-c,f=a.bottom-a.top-d-u;return{x:n=Math.round((n-a.left-l)/h*r.width/t.currentDevicePixelRatio),y:i=Math.round((i-a.top-d)/f*r.height/t.currentDevicePixelRatio)}},mt.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},mt.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},mt._calculatePadding=function(e,t,n){return(t=mt.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},mt._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},mt.getMaximumWidth=function(e){var t=mt._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-mt._calculatePadding(t,"padding-left",n)-mt._calculatePadding(t,"padding-right",n),o=mt.getConstraintWidth(e);return isNaN(o)?i:Math.min(i,o)},mt.getMaximumHeight=function(e){var t=mt._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-mt._calculatePadding(t,"padding-top",n)-mt._calculatePadding(t,"padding-bottom",n),o=mt.getConstraintHeight(e);return isNaN(o)?i:Math.min(i,o)},mt.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},mt.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,o=e.height,r=e.width;i.height=o*n,i.width=r*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=o+"px",i.style.width=r+"px")}},mt.fontString=function(e,t,n){return t+" "+e+"px "+n},mt.longestText=function(e,t,n,i){var o=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(o=i.data={},r=i.garbageCollect=[],i.font=t),e.font=t;var a,s,l,d,c,u=0,h=n.length;for(a=0;a<h;a++)if(null!=(d=n[a])&&!0!==mt.isArray(d))u=mt.measureText(e,o,r,u,d);else if(mt.isArray(d))for(s=0,l=d.length;s<l;s++)null==(c=d[s])||mt.isArray(c)||(u=mt.measureText(e,o,r,u,c));var f=r.length/2;if(f>n.length){for(a=0;a<f;a++)delete o[r[a]];r.splice(0,f)}return u},mt.measureText=function(e,t,n,i,o){var r=t[o];return r||(r=t[o]=e.measureText(o).width,n.push(o)),r>i&&(i=r),i},mt.numberOfLabelLines=function(e){var t=1;return mt.each(e,function(e){mt.isArray(e)&&e.length>t&&(t=e.length)}),t},mt.color=Xe?function(e){return e instanceof CanvasGradient&&(e=ct.global.defaultColor),Xe(e)}:function(e){return console.error("Color.js not found!"),e},mt.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:mt.color(e).saturate(.5).darken(.1).rgbString()}}(),Fn._adapters=Bn,Fn.Animation=wt,Fn.animationService=It,Fn.controllers=fn,Fn.DatasetController=kt,Fn.defaults=ct,Fn.Element=Ct,Fn.elements=Bt,Fn.Interaction=pn,Fn.layouts=vn,Fn.platform=On,Fn.plugins=kn,Fn.Scale=Vn,Fn.scaleService=Sn,Fn.Ticks=jn,Fn.Tooltip=Ln,Fn.helpers.each(Ei,function(e,t){Fn.scaleService.registerScaleType(t,e,e._defaults)}),Ki)Ki.hasOwnProperty(Pi)&&Fn.plugins.register(Ki[Pi]);Fn.platform.initialize();var Fi=Fn;return"undefined"!=typeof window&&(window.Chart=Fn),Fn.Chart=Fn,Fn.Legend=Ki.legend._element,Fn.Title=Ki.title._element,Fn.pluginService=Fn.plugins,Fn.PluginBase=Fn.Element.extend({}),Fn.canvasHelpers=Fn.helpers.canvas,Fn.layoutService=Fn.layouts,Fn.LinearScaleBase=Jn,Fn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){Fn[e]=function(t,n){return new Fn(t,Fn.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),Fi}), 34/*! 35 * The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/) 36 * Copyright (c) 2016 Edson Hilios 37 * 38 * Permission is hereby granted, free of charge, to any person obtaining a copy of 39 * this software and associated documentation files (the "Software"), to deal in 40 * the Software without restriction, including without limitation the rights to 41 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 42 * the Software, and to permit persons to whom the Software is furnished to do so, 43 * subject to the following conditions: 44 * 45 * The above copyright notice and this permission notice shall be included in all 46 * copies or substantial portions of the Software. 47 * 48 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 49 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 50 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 51 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 52 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 53 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 54 */ 55function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";function t(e){if(e instanceof Date)return e;if(String(e).match(a))return String(e).match(/^[0-9]*$/)&&(e=Number(e)),String(e).match(/\-/)&&(e=String(e).replace(/\-/g,"/")),new Date(e);throw new Error("Couldn't cast `"+e+"` to a date object.")}function n(e){var t=e.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(t)}function i(e){return function(t){var i=t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(i)for(var r=0,a=i.length;r<a;++r){var s=i[r].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),d=n(s[0]),c=s[1]||"",u=s[3]||"",h=null;s=s[2],l.hasOwnProperty(s)&&(h=l[s],h=Number(e[h])),null!==h&&("!"===c&&(h=o(u,h)),""===c&&h<10&&(h="0"+h.toString()),t=t.replace(d,h.toString()))}return t=t.replace(/%%/,"%")}}function o(e,t){var n="s",i="";return e&&(1===(e=e.replace(/(:|;|\s)/gi,"").split(/\,/)).length?n=e[0]:(i=e[0],n=e[1])),Math.abs(t)>1?n:i}var r=[],a=[],s={precision:100,elapse:!1,defer:!1};a.push(/^[0-9]*$/.source),a.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),a.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),a=new RegExp(a.join("|"));var l={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"},d=function(t,n,i){this.el=t,this.$el=e(t),this.interval=null,this.offset={},this.options=e.extend({},s),this.instanceNumber=r.length,r.push(this),this.$el.data("countdown-instance",this.instanceNumber),i&&("function"==typeof i?(this.$el.on("update.countdown",i),this.$el.on("stoped.
55countdown",i),this.$el.on("finish.countdown",i)):this.options=e.extend({},s,i)),this.setFinalDate(n),!1===this.options.defer&&this.start()};e.extend(d.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var e=this;this.update(),this.interval=setInterval(function(){e.update.call(e)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),r[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(e){this.finalDate=t(e)},update:function(){if(0!==this.$el.closest("html").length){var t,n=e._data(this.el,"events")!==undefined,i=new Date;t=this.finalDate.getTime()-i.getTime(),t=Math.ceil(t/1e3),t=!this.options.elapse&&t<0?0:Math.abs(t),this.totalSecsLeft!==t&&n&&(this.totalSecsLeft=t,this.elapsed=i>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-i.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))}else this.remove()},dispatchEvent:function(t){var n=e.Event(t+".countdown");n.finalDate=this.finalDate,n.elapsed=this.elapsed,n.offset=e.extend({},this.offset),n.strftime=i(this.offset),this.$el.trigger(n)}}),e.fn.countdown=function(){var t=Array.prototype.slice.call(arguments,0);return this.each(function(){var n=e(this).data("countdown-instance");if(n!==undefined){var i=r[n],o=t[0];d.prototype.hasOwnProperty(o)?i[o].apply(i,t.slice(1)):null===String(o).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(i.setFinalDate.call(i,o),i.start()):e.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,o))}else new d(this,t[0],t[1])})}}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(e){var t=function(e,t){var n,i=document.createElement("canvas");e.appendChild(i),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(i);var o=i.getContext("2d");i.width=i.height=t.size;var r=1;window.devicePixelRatio>1&&(r=window.devicePixelRatio,i.style.width=i.style.height=[t.size,"px"].join(""),i.width=i.height=t.size*r,o.scale(r,r)),o.translate(t.size/2,t.size/2),o.rotate((t.rotate/180-.5)*Math.PI);var a=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(a-=t.scaleLength+2),Date.now=Date.now||function(){return+new Date};var s=function(e,t,n){var i=0>=(n=Math.min(Math.max(-1,n||0),1));o.beginPath(),o.arc(0,0,a,0,2*Math.PI*n,i),o.strokeStyle=e,o.lineWidth=t,o.stroke()},l=function(){var e,n;o.lineWidth=1,o.fillStyle=t.scaleColor,o.save();for(var i=24;i>0;--i)i%6==0?(n=t.scaleLength,e=0):(n=.6*t.scaleLength,e=t.scaleLength-n),o.fillRect(-t.size/2+e,0,n,1),o.rotate(Math.PI/12);o.restore()},d=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},c=function(){t.scaleColor&&l(),t.trackColor&&s(t.trackColor,t.trackWidth||t.lineWidth,1)};this.getCanvas=function(){return i},this.getCtx=function(){return o},this.clear=function(){o.clearRect(t.size/-2,t.size/-2,t.size,t.size)},this.draw=function(e){var i;t.scaleColor||t.trackColor?o.getImageData&&o.putImageData?n?o.putImageData(n,0,0):(c(),n=o.getImageData(0,0,t.size*r,t.size*r)):(this.clear(),c()):this.clear(),o.lineCap=t.lineCap,i="function"==typeof t.barColor?t.barColor(e):t.barColor,s(i,t.lineWidth,e/100)}.bind(this),this.animate=function(e,n){var i=Date.now();t.onStart(e,n);var o=function(){var r=Math.min(Date.now()-i,t.animate.duration),a=t.easing(this,r,e,n-e,t.animate.duration);this.draw(a),t.onStep(e,n,a),r>=t.animate.duration?t.onStop(e,n):d(o)}.bind(this);d(o)}.bind(this)}
55,n=function(e,n){var i={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(e,t,n,i,o){return 1>(t/=o/2)?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},onStart:function(){},onStep:function(){},onStop:function(){}};if(void 0!==t)i.renderer=t;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");i.renderer=SVGRenderer}var o={},r=0,a=function(){for(var t in this.el=e,this.options=o,i)i.hasOwnProperty(t)&&(o[t]=n&&"undefined"!=typeof n[t]?n[t]:i[t],"function"==typeof o[t]&&(o[t]=o[t].bind(this)));"string"==typeof o.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[o.easing])?o.easing=jQuery.easing[o.easing]:o.easing=i.easing,"number"==typeof o.animate&&(o.animate={duration:o.animate,enabled:!0}),"boolean"!=typeof o.animate||o.animate||(o.animate={duration:1e3,enabled:o.animate}),this.renderer=new o.renderer(e,o),this.renderer.draw(r),e.dataset&&e.dataset.percent?this.update(parseFloat(e.dataset.percent)):e.getAttribute&&e.getAttribute("data-percent")&&this.update(parseFloat(e.getAttribute("data-percent")))}.bind(this);this.update=function(e){return e=parseFloat(e),o.animate.enabled?this.renderer.animate(r,e):this.renderer.draw(e),r=e,this}.bind(this),this.disableAnimation=function(){return o.animate.enabled=!1,this},this.enableAnimation=function(){return o.animate.enabled=!0,this},a()};e.fn.easyPieChart=function(t){return this.each(function(){var i;e.data(this,"easyPieChart")||(i=e.extend({},t,e(this).data()),e.data(this,"easyPieChart",new n(this,i)))})}}), 56/*! 57 * Flickity PACKAGED v2.0.2 58 * Touch, responsive, flickable carousels 59 * 60 * Licensed GPLv3 for open source use 61 * or Flickity Commercial License for commercial use 62 * 63 * http://flickity.metafizzy.co 64 * Copyright 2016 Metafizzy 65 */ 66function(e,t){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(n){t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,function(e,t){"use strict";function n(n,r,s){function l(e,t,i){var o,r="$()."+n+'("'+t+'")';return e.each(function(e,l){var d=s.data(l,n);if(d){var c=d[t];if(c&&"_"!=t.charAt(0)){var u=c.apply(d,i);o=o===undefined?u:o}else a(r+" is not a valid method")}else a(n+" not initialized. Cannot call methods, i.e. "+r)}),o!==undefined?o:e}function d(e,t){e.each(function(e,i){var o=s.data(i,n);o?(o.option(t),o._init()):(o=new r(i,t),s.data(i,n,o))})}(s=s||t||e.jQuery)&&(r.prototype.option||(r.prototype.option=function(e){s.isPlainObject(e)&&(this.options=s.extend(!0,this.options,e))}),s.fn[n]=function(e){return"string"==typeof e?l(this,e,o.call(arguments,1)):(d(this,e),this)},i(s))}function i(e){!e||e&&e.bridget||(e.bridget=n)}var o=Array.prototype.slice,r=e.console,a=void 0===r?function(){}:function(e){r.error(e)};return i(t||e.jQuery),n}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},i=n[e]=n[e]||[];return-1==i.indexOf(t)&&i.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=n.indexOf(t);return-1!=i&&n.splice(i,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=0,o=n[i];t=t||[];for(var r=this._onceEvents&&this._onceEvents[e];o;){var a=r&&r[o];a&&(this.off(e,o),delete r[o]),o.apply(this,t),o=n[i+=a?0:1]}return this}},e}), 67/*! 68 * getSize v2.0.2 69 * measure size of elements 70 * MIT license 71 */ 72function(e,t){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return t()}):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}function n(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<d;t++){e[l[t]]=0}return e}function i(e){var t=getComputedStyle(e);return t||s("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}function o(){if(!c){c=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var o=i(t);r.isBoxSizeOuter=a=200==e(o.width),n.removeChild(t)}}function r(t){if(o(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var r=i(t);
vendor: 1,480 bytes, line 72
72if("none"==r.display)return n();var s={};s.width=t.offsetWidth,s.height=t.offsetHeight;for(var c=s.isBorderBox="border-box"==r.boxSizing,u=0;u<d;u++){var h=l[u],f=r[h],p=parseFloat(f);s[h]=isNaN(p)?0:p}var m=s.paddingLeft+s.paddingRight,g=s.paddingTop+s.paddingBottom,v=s.marginLeft+s.marginRight,y=s.marginTop+s.marginBottom,_=s.borderLeftWidth+s.borderRightWidth,b=s.borderTopWidth+s.borderBottomWidth,T=c&&a,C=e(r.width);!1!==C&&(s.width=C+(T?0:m+_));var E=e(r.height);return!1!==E&&(s.height=E+(T?0:g+b)),s.innerWidth=s.width-(m+_),s.innerHeight=s.height-(g+b),s.outerWidth=s.width+v,s.outerHeight=s.height+y,s}}var a,s="undefined"==typeof console?t:function(e){console.error(e)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],d=l.length,c=!1;return r}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var e=function(){var e=Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var i=t[n]+"MatchesSelector";if(e[i])return i}}();return function(t,n){return t[e](n)}}),function(e,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
72sandro-matches-selector/matches-selector"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,function(e,t){var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t},makeArray:function(e){var t=[];if(Array.isArray(e))t=e;else if(e&&"number"==typeof e.length)for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e);return t},removeFrom:function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},getParent:function(e,n){for(;e!=document.body;)if(e=e.parentNode,t(e,n))return e},getQueryElement:function(e){return"string"==typeof e?document.querySelector(e):e},handleEvent:function(e){var t="on"+e.type;this[t]&&this[t](e)},filterFindElements:function(e,i){e=n.makeArray(e);var o=[];return e.forEach(function(e){if(e instanceof HTMLElement)if(i){t(e,i)&&o.push(e);for(var n=e.querySelectorAll(i),r=0;r<n.length;r++)o.push(n[r])}else o.push(e)}),o},debounceMethod:function(e,t,n){var i=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];e&&clearTimeout(e);var t=arguments,r=this;this[o]=setTimeout(function(){i.apply(r,t),delete r[o]},n||100)}},docReady:function(e){var t=document.readyState;"complete"==t||"interactive"==t?e():document.addEventListener("DOMContentLoaded",e)},toDashed:function(e){return e.replace(/(.)([A-Z])/g,function(e,t,n){return t+"-"+n}).toLowerCase()}},i=e.console;return n.htmlInit=function(t,o){n.docReady(function(){var r=n.toDashed(o),a="data-"+r,s=document.querySelectorAll("["+a+"]"),l=document.querySelectorAll(".js-"+r),d=n.makeArray(s).concat(n.makeArray(l)),c=a+"-options",u=e.jQuery;d.forEach(function(e){var n,r=e.getAttribute(a)||e.getAttribute(c);try{n=r&&JSON.parse(r)}catch(l){return void(i&&i.error("Error parsing "+a+" on "+e.className+": "+l))}var s=new t(e,n);u&&u.data(e,o,s)})})},n}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("get-size")):(e.Flickity=e.Flickity||{},e.Flickity.Cell=t(e,e.getSize))}(window,function(e,t){function n(e,t){this.element=e,this.parent=t,this.create()}var i=n.prototype;return i.create=function(){this.element.style.position="absolute",this.x=0,this.shift=0},i.destroy=function(){this.element.style.position="";var e=this.parent.originSide;this.element.style[e]=""},i.getSize=function(){this.size=t(this.element)},i.setPosition=function(e){this.x=e,this.updateTarget(),this.renderPosition(e)},i.updateTarget=i.setDefaultTarget=function(){var e="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[e]+this.size.width*this.parent.cellAlign},i.renderPosition=function(e){var t=this.parent.originSide;this.element.style[t]=this.parent.getPositionValue(e)},i.wrapShift=function(e){this.shift=e,this.renderPosition(this.x+this.parent.slideableWidth*e)},i.remove=function(){this.element.parentNode.removeChild(this.element)},n}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/slide",t):"object"==typeof module&&module.exports?module.exports=t():(e.Flickity=e.Flickity||{},e.Flickity.Slide=t())}(window,function(){"use strict";function e(e){this.parent=e,this.isOriginLeft="left"==e.originSide,this.cells=[],this.outerWidth=0,this.height=0}var t=e.prototype;return t.addCell=function(e){if(this.cells.push(e),this.outerWidth+=e.size.outerWidth,this.height=Math.max(e.size.outerHeight,this.height),1==this.cells.length){this.x=e.x;var t=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=e.size[t]}},t.updateTarget=function(){var e=this.isOriginLeft?"marginRight":"marginLeft",t=this.getLastCell(),n=t?t.size[e]:0,i=this.outerWidth-(this.firstMargin+n);this.target=this.x+this.firstMargin+i*this.parent.cellAlign},t.getLastCell=function(){return this.cells[this.cells.length-1]},t.select=function(){this.changeSelectedClass("add")},t.unselect=function(){this.changeSelectedClass("remove")}
72,t.changeSelectedClass=function(e){this.cells.forEach(function(t){t.element.classList[e]("is-selected")})},t.getCellElements=function(){return this.cells.map(function(e){return e.element})},e}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("fizzy-ui-utils")):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=t(e,e.fizzyUIUtils))}(window,function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,i=0;n||(n=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i)),o=setTimeout(e,n);return i=t+n,o});var o={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var e=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating){var t=this;n(function(){t.animate()})}}},r="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform";return o.positionSlider=function(){var e=this.x;this.options.wrapAround&&this.cells.length>1&&(e=t.modulo(e,this.slideableWidth),e-=this.slideableWidth,this.shiftWrapCells(e)),e+=this.cursorPosition,e=this.options.rightToLeft&&r?-e:e;var n=this.getPositionValue(e);this.slider.style[r]=this.isAnimating?"translate3d("+n+",0,0)":"translateX("+n+")";var i=this.slides[0];if(i){var o=-this.x-i.target,a=o/this.slidesWidth;this.dispatchEvent("scroll",null,[a,o])}},o.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.positionSlider())},o.getPositionValue=function(e){return this.options.percentPosition?.01*Math.round(e/this.size.innerWidth*1e4)+"%":Math.round(e)+"px"},o.settle=function(e){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*e)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle"))},o.shiftWrapCells=function(e){var t=this.cursorPosition+e;this._shiftCells(this.beforeShiftCells,t,-1);var n=this.size.innerWidth-(e+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,n,1)},o._shiftCells=function(e,t,n){for(var i=0;i<e.length;i++){var o=e[i],r=t>0?n:0;o.wrapShift(r),t-=o.size.outerWidth}},o._unshiftCells=function(e){if(e&&e.length)for(var t=0;t<e.length;t++)e[t].wrapShift(0)},o.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},o.applyForce=function(e){this.velocity+=e},o.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},o.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},o.applyDragForce=function(){if(this.isPointerDown){var e=this.dragX-this.x-this.velocity;this.applyForce(e)}},o.applySelectedAttraction=function(){if(!this.isPointerDown&&!this.isFreeScrolling&&this.cells.length){var e=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(e)}},o}),function(e,t){if("function"==typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(n,i,o,r,a,s){return t(e,n,i,o,r,a,s)});else if("object"==typeof module&&module.exports)module.exports=t(e,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
vendor: 5,344 bytes, line 72
72de"),require("./animate"));else{var n=e.Flickity;e.Flickity=t(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,n.Cell,n.Slide,n.animatePrototype)}}(window,function(e,t,n,i,o,r,a){function s(e,t){for(e=i.makeArray(e);e.length;)t.appendChild(e.shift())}function l(e,t){var n=i.getQueryElement(e);n?(this.element=n,d&&(this.$element=d(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(t),this._create()):u&&u.error("Bad element for Flickity: "+(n||e))}var d=e.jQuery,c=e.getComputedStyle,u=e.console,h=0,f={};l.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},l.createMethods=[];var p=l.prototype;i.extend(p,t.prototype),p._create=function(){var t=this.guid=++h;this.element.flickityGUID=t,f[t]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&e.addEventListener("resize",this),l.createMethods.forEach(function(e){this[e]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(e){i.extend(this.options,e)},p.activate=function(){if(!this.isActive){var e;this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),s(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var t=this.options.initialIndex;e=this.isInitActivated?this.selectedIndex:t!==undefined&&this.cells[t]?t:0,this.select(e,!1,!0),this.isInitActivated=!0}},p._createSlider=function(){var e=document.createElement("div");e.className="flickity-slider",e.style[this.originSide]=0,this.slider=e},p._filterFindCellElements=function(e){return i.filterFindElements(e,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(e){return this._filterFindCellElements(e).map(function(e){return new o(e,this)},this)},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(e){e=e||0,this.maxCellHeight=e&&this.maxCellHeight||0;var t=0;if(e>0){var n=this.cells[e-1];t=n.x+n.size.outerWidth}for(var i=this.cells.length,o=e;o<i;o++){var r=this.cells[o];r.setPosition(t),t+=r.size.outerWidth,this.maxCellHeight=Math.max(r.size.outerHeight,this.maxCellHeight)}this.slideableWidth=t,this.updateSlides(),this._containSlides(),this.slidesWidth=i?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(e){e.forEach(function(e){e.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var e=new r(this);this.slides.push(e);var t="left"==this.originSide?"marginRight":"marginLeft",n=this._getCanCellFit();this.cells.forEach(function(i,o){if(e.cells.length){var a=e.outerWidth-e.firstMargin+(i.size.outerWidth-i.size[t]);n.call(this,o,a)?e.addCell(i):(e.updateTarget(),e=new r(this),this.slides.push(e),e.addCell(i))}else e.addCell(i)},this),e.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var e=this.options.groupCells;if(!e)return function(){return!1};if("number"==typeof e){var t=parseInt(e,10);return function(e){return e%t!=0}}var n="string"==typeof e&&e.match(/^(\d+)%$/),i=n?parseInt(n[1],10)/100:1;return function(e,t){return t<=(this.size.innerWidth+1)*i}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=n(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var m={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var e=m[this.options.cellAlign];this.cellAlign=e?e[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var e=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=e+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var e=this.cursorPosition,t=this.cells.length-1;this.beforeShiftCells=this._getGapCells(e,t,-1),e=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(e,0,1)}},p._getGapCells=function(e,t,n){for(var i=[];e>0;){var o=this.cells[t];if(!o)break;i.push(o),t+=n,e-=o.size.outerWidth}return i},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var e=this.options.rightToLeft,t=e?"marginRight":"marginLeft",n=e?"marginLeft":"marginRight",i=this.slideableWidth-this.getLastCell().size[n],o=i<this.size.innerWidth,r=this.cursorPosition+this.cells[0].size[t],a=i-this.size.innerWidth*(1-this.cellAlign);
72this.slides.forEach(function(e){o?e.target=i*this.cellAlign:(e.target=Math.max(e.target,r),e.target=Math.min(e.target,a))},this)}},p.dispatchEvent=function(e,t,n){var i=t?[t].concat(n):n;if(this.emitEvent(e,i),d&&this.$element){var o=e+=this.options.namespaceJQueryEvents?".flickity":"";if(t){var r=d.Event(t);r.type=e,o=r}this.$element.trigger(o,n)}},p.select=function(e,t,n){this.isActive&&(e=parseInt(e,10),this._wrapSelect(e),(this.options.wrapAround||t)&&(e=i.modulo(e,this.slides.length)),this.slides[e]&&(this.selectedIndex=e,this.updateSelectedSlide(),n?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select"),this.dispatchEvent("cellSelect")))},p._wrapSelect=function(e){var t=this.slides.length;if(!(this.options.wrapAround&&t>1))return e;var n=i.modulo(e,t),o=Math.abs(n-this.selectedIndex),r=Math.abs(n+t-this.selectedIndex),a=Math.abs(n-t-this.selectedIndex);!this.isDragSelect&&r<o?e+=t:!this.isDragSelect&&a<o&&(e-=t),e<0?this.x-=this.slideableWidth:e>=t&&(this.x+=this.slideableWidth)},p.previous=function(e){this.select(this.selectedIndex-1,e)},p.next=function(e){this.select(this.selectedIndex+1,e)},p.updateSelectedSlide=function(){var e=this.slides[this.selectedIndex];e&&(this.unselectSelectedSlide(),this.selectedSlide=e,e.select(),this.selectedCells=e.cells,this.selectedElements=e.getCellElements(),this.selectedCell=e.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectCell=function(e,t,n){var i;"number"==typeof e?i=this.cells[e]:("string"==typeof e&&(e=this.element.querySelector(e)),i=this.getCell(e));for(var o=0;i&&o<this.slides.length;o++){if(-1!=this.slides[o].cells.indexOf(i))return void this.select(o,t,n)}},p.getCell=function(e){for(var t=0;t<this.cells.length;t++){var n=this.cells[t];if(n.element==e)return n}},p.getCells=function(e){e=i.makeArray(e);var t=[];return e.forEach(function(e){var n=this.getCell(e);n&&t.push(n)},this),t},p.getCellElements=function(){return this.cells.map(function(e){return e.element})},p.getParentCell=function(e){var t=this.getCell(e);return t||(e=i.getParent(e,".flickity-slider > *"),this.getCell(e))},p.getAdjacentCellElements=function(e,t){if(!e)return this.selectedSlide.getCellElements();t=t===undefined?this.selectedIndex:t;var n=this.slides.length;if(1+2*e>=n)return this.getCellElements();for(var o=[],r=t-e;r<=t+e;r++){var a=this.options.wrapAround?i.modulo(r,n):r,s=this.slides[a];s&&(o=o.concat(s.getCellElements()))}return o},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(e){this.emitEvent("childUIPointerDown",[e])},p.onresize=function(){this.watchCSS(),this.resize()},i.debounceMethod(l,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=i.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var e=this.selectedElements&&this.selectedElements[0];this.selectCell(e,!1,!0)}},p.watchCSS=function(){this.options.watchCSS&&(-1!=c(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(e){if(this.options.accessibility&&(!document.activeElement||document.activeElement==this.element))if(37==e.keyCode){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()}else if(39==e.keyCode){var n=this.options.rightToLeft?"previous":"next";this.uiChange(),this[n]()}},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.cells.forEach(function(e){e.destroy()}),this.unselectSelectedSlide(),this.element.removeChild(this.viewport),s(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),e.removeEventListener("resize",this),this.emitEvent("destroy"),d&&this.$element&&d.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete f[this.guid]},i.extend(p,a),l.data=function(e){var t=(e=i.getQueryElement(e))&&e.flickityGUID;return t&&f[t]},i.htmlInit(l,"flickity"),d&&d.bridget&&d.bridget("flickity",l),l.Cell=o,l}), 73/*! 74 * Unipointer v2.1.0 75 * base class for doing one thing with pointer event 76 * MIT license 77 */ 78function(e,t){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.Unipointer=t(e,e.EvEmitter)}(window,function(e,t){function n(){}function i(){}var o=i.prototype=Object.create(t.prototype);o.bindStartEvent=function(e){this._bindStartEvent(e,!0)},o.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},o._bindStartEvent=function(t,n){var i=(n=n===undefined||!!n)?"addEventListener":"removeEventListener";e.navigator.pointerEnabled?t[i]("pointerdown",this):e.navigator.msPointerEnabled?t[i]("MSPointerDown",this):(t[i]("mousedown",this),t[i]("touchstart",this))},o.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},o.getTouch=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.identifier==this.pointerIdentifier)return n}},o.onmousedown=function(e){var t=e.button;t&&0!==t&&1!==t||this._pointerDown(e,e)},o.ontouchstart=function(e){this._pointerDown(e,e.changedTouches[0])},o.onMSPointerDown=o.onpointerdown=function(e){this._pointerDown(e,e)},o._pointerDown=function(e,t){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=t.pointerId!==undefined?t.pointerId:t.identifier,this.pointerDown(e,t))},o.pointerDown=function(e,t){this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t])};var r={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"],MSPointerDown:["MSPointerMove","MSPointerUp","MSPointerCancel"]};return o._bindPostStartEvents=function(t){if(t){var n=r[t.type];
78n.forEach(function(t){e.addEventListener(t,this)},this),this._boundPointerEvents=n}},o._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){e.removeEventListener(t,this)},this),delete this._boundPointerEvents)},o.onmousemove=function(e){this._pointerMove(e,e)},o.onMSPointerMove=o.onpointermove=function(e){e.pointerId==this.pointerIdentifier&&this._pointerMove(e,e)},o.ontouchmove=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerMove(e,t)},o._pointerMove=function(e,t){this.pointerMove(e,t)},o.pointerMove=function(e,t){this.emitEvent("pointerMove",[e,t])},o.onmouseup=function(e){this._pointerUp(e,e)},o.onMSPointerUp=o.onpointerup=function(e){e.pointerId==this.pointerIdentifier&&this._pointerUp(e,e)},o.ontouchend=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerUp(e,t)},o._pointerUp=function(e,t){this._pointerDone(),this.pointerUp(e,t)},o.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t])},o._pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},o.pointerDone=n,o.onMSPointerCancel=o.onpointercancel=function(e){e.pointerId==this.pointerIdentifier&&this._pointerCancel(e,e)},o.ontouchcancel=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerCancel(e,t)},o._pointerCancel=function(e,t){this._pointerDone(),this.pointerCancel(e,t)},o.pointerCancel=function(e,t){this.emitEvent("pointerCancel",[e,t])},i.getPointerPoint=function(e){return{x:e.pageX,y:e.pageY}},i}), 79/*! 80 * Unidragger v2.1.0 81 * Draggable base class 82 * MIT license 83 */ 84function(e,t){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("unipointer")):e.Unidragger=t(e,e.Unipointer)}(window,function(e,t){function n(){}function i(){}var o=i.prototype=Object.create(t.prototype);o.bindHandles=function(){this._bindHandles(!0)},o.unbindHandles=function(){this._bindHandles(!1)};var r=e.navigator;return o._bindHandles=function(e){var t;e=e===undefined||!!e,t=r.pointerEnabled?function(t){t.style.touchAction=e?"none":""}:r.msPointerEnabled?function(t){t.style.msTouchAction=e?"none":""}:n;for(var i=e?"addEventListener":"removeEventListener",o=0;o<this.handles.length;o++){var a=this.handles[o];this._bindStartEvent(a,e),t(a),a[i]("click",this)}},o.pointerDown=function(e,t){if("INPUT"==e.target.nodeName&&"range"==e.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(e,t);var n=document.activeElement;n&&n.blur&&n.blur(),this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t])},o._dragPointerDown=function(e,n){this.pointerDownPoint=t.getPointerPoint(n),this.canPreventDefaultOnPointerDown(e,n)&&e.preventDefault()},o.canPreventDefaultOnPointerDown=function(e){return"SELECT"!=e.target.nodeName},o.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.emitEvent("pointerMove",[e,t,n]),this._dragMove(e,t,n)},o._dragPointerMove=function(e,n){var i=t.getPointerPoint(n),o={x:i.x-this.pointerDownPoint.x,y:i.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(o)&&this._dragStart(e,n),o},o.hasDragStarted=function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3},o.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t]),this._dragPointerUp(e,t)},o._dragPointerUp=function(e,t){this.isDragging?this._dragEnd(e,t):this._staticClick(e,t)},o._dragStart=function(e,n){this.isDragging=!0,this.dragStartPoint=t.getPointerPoint(n),this.isPreventing
84Clicks=!0,this.dragStart(e,n)},o.dragStart=function(e,t){this.emitEvent("dragStart",[e,t])},o._dragMove=function(e,t,n){this.isDragging&&this.dragMove(e,t,n)},o.dragMove=function(e,t,n){e.preventDefault(),this.emitEvent("dragMove",[e,t,n])},o._dragEnd=function(e,t){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(e,t)},o.dragEnd=function(e,t){this.emitEvent("dragEnd",[e,t])},o.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},o._staticClick=function(e,t){if(!this.isIgnoringMouseUp||"mouseup"!=e.type){var n=e.target.nodeName;"INPUT"!=n&&"TEXTAREA"!=n||e.target.focus(),this.staticClick(e,t),"mouseup"!=e.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400))}},o.staticClick=function(e,t){this.emitEvent("staticClick",[e,t])},i.getPointerPoint=t.getPointerPoint,i}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(n,i,o){return t(e,n,i,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):e.Flickity=t(e,e.Flickity,e.Unidragger,e.fizzyUIUtils)}(window,function(e,t,n,i){function o(){return{x:e.pageXOffset,y:e.pageYOffset}}i.extend(t.defaults,{draggable:!0,dragThreshold:3}),t.createMethods.push("_createDrag");var r=t.prototype;i.extend(r,n.prototype),r._createDrag=function(){this.on("activate",this.bindDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.unbindDrag)},r.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(this.element.classList.add("is-draggable"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},r.unbindDrag=function(){this.isDragBound&&(this.element.classList.remove("is-draggable"),this.unbindHandles(),delete this.isDragBound)},r._uiChangeDrag=function(){delete this.isFreeScrolling},r._childUIPointerDownDrag=function(e){e.preventDefault(),this.pointerDownFocus(e)};var a={TEXTAREA:!0,INPUT:!0},s={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};r.pointerDown=function(t,n){if(a[t.target.nodeName]&&!s[t.target.type])return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(t,n);var i=document.activeElement;i&&i.blur&&i!=this.element&&i!=document.body&&i.blur(),this.pointerDownFocus(t),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this._bindPostStartEvents(t),this.pointerDownScroll=o(),e.addEventListener("scroll",this),this.dispatchEvent("pointerDown",t,[n])};var l={touchstart:!0,MSPointerDown:!0},d={INPUT:!0,SELECT:!0};return r.pointerDownFocus=function(t){if(this.options.accessibility&&!l[t.type]&&!d[t.target.nodeName]){var n=e.pageYOffset;this.element.focus(),e.pageYOffset!=n&&e.scrollTo(e.pageXOffset,n)}},r.canPreventDefaultOnPointerDown=function(e){var t="touchstart"==e.type,n=e.target.nodeName;return!t&&"SELECT"!=n},r.hasDragStarted=function(e){return Math.abs(e.x)>this.options.dragThreshold},r.pointerUp=function(e,t){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",e,[t]),this._dragPointerUp(e,t)},r.pointerDone=function(){e.removeEventListener("scroll",this),delete this.pointerDownScroll},r.dragStart=function(e,t){this.dragStartPosition=this.x,this.startAnimation(),this.dispatchEvent("dragStart",e,[t])},r.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.dispatchEvent("pointerMove",e,[t,n]),this._dragMove(e,t,n)},r.dragMove=function(e,t,n){e.preventDefault(),this.previousDragX=this.dragX;var i=this.options.rightToLeft?-1:1,o=this.dragStartPosition+n.x*i;if(!this.options.wrapAround&&this.slides.length){var r=Math.max(-this.slides[0].target,this.dragStartPosition);o=o>r?.5*(o+r):o;var a=Math.min(-this.getLastSlide().target,this.dragStartPosition);o=o<a?.5*(o+a):o}this.dragX=o,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",e,[t,n])},r.dragEnd=function(e,t){this.options.freeScroll&&(this.isFreeScrolling=!0);var n=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var i=this.getRestingPosition();this.isFreeScrolling=-i>this.slides[0].target&&-i<this.getLastSlide().target}else this.options.freeScroll||n!=this.selectedIndex||(n+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(n),delete this.isDragSelect,this.dispatchEvent("dragEnd",e,[t])},r.dragEndRestingSelect=function(){var e=this.getRestingPosition(),t=Math.abs(this.getSlideDistance(-e,this.selectedIndex)),n=this._getClosestResting(e,t,1),i=this._getClosestResting(e,t,-1);return n.distance<i.distance?n.index:i.index},r._getClosestResting=function(e,t,n){for(var i=this.selectedIndex,o=Infinity,r=this.options.contain&&!this.options.wrapAround?function(e,t){return e<=t}:function(e,t){return e<t};r(t,o)&&(i+=n,o=t,null!==(t=this.getSlideDistance(-e,i)));)t=Math.abs(t);return{distance:o,index:i-n}},r.getSlideDistance=function(e,t){var n=this.slides.length,o=this.options.wrapAround&&n>1,r=o?i.modulo(t,n):t,a=this.slides[r];if(!a)return null;var s=o?this.slideableWidth*Math.floor(t/n):0;return e-(a.target+s)},r.dragEndBoostSelect=function(){if(this.previousDragX===undefined||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var e=this.getSlideDistance(-this.dragX,this.selectedIndex),t=this.previousDragX-this.dragX;return e>0&&t>0?1:e<0&&t<0?-1:0},r.staticClick=function(e,t){var n=this.getParentCell(e.target),i=n&&n.element,o=n&&this.cells.indexOf(n);this.dispatchEvent("staticClick",e,[t,i,o])},r.onscroll=function(){var e=o(),t=this.pointerDownScroll.x-e.x,n=this.pointerDownScroll.y-e.y;(Math.abs(t)>3||Math.abs(n)>3)&&this._pointerDone()},t}), 85/*! 86 * Tap listener v2.0.0 87 * listens to taps 88 * MIT license 89 */ 90function(e,t){"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("unipointer")):e.TapListener=t(e,e.Unipointer)}(window,function(e,t){function n(e){this.bindTap(e)}var i=n.prototype=Object.create(t.prototype);return i.bindTap=function(e){e&&(this.unbindTap(),this.tapElement=e,this._bindStartEvent(e,!0))},i.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)}
90,i.pointerUp=function(n,i){if(!this.isIgnoringMouseUp||"mouseup"!=n.type){var o=t.getPointerPoint(i),r=this.tapElement.getBoundingClientRect(),a=e.pageXOffset,s=e.pageYOffset;if(o.x>=r.left+a&&o.x<=r.right+a&&o.y>=r.top+s&&o.y<=r.bottom+s&&this.emitEvent("tap",[n,i]),"mouseup"!=n.type){this.isIgnoringMouseUp=!0;var l=this;setTimeout(function(){delete l.isIgnoringMouseUp},400)}}},i.destroy=function(){this.pointerDone(),this.unbindTap()},n}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(n,i,o){return t(e,n,i,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):t(e,e.Flickity,e.TapListener,e.fizzyUIUtils)}(window,function(e,t,n,i){"use strict";function o(e,t){this.direction=e,this.parent=t,this._create()}function r(e){return"string"==typeof e?e:"M "+e.x0+",50 L "+e.x1+","+(e.y1+50)+" L "+e.x2+","+(e.y2+50)+" L "+e.x3+",50 L "+e.x2+","+(50-e.y2)+" L "+e.x1+","+(50-e.y1)+" Z"}var a="http://www.w3.org/2000/svg";o.prototype=new n,o.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var e=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==e;var t=this.element=document.createElement("button");t.className="flickity-prev-next-button",t.className+=this.isPrevious?" previous":" next",t.setAttribute("type","button"),this.disable(),t.setAttribute("aria-label",this.isPrevious?"previous":"next");var n=this.createSVG();t.appendChild(n),this.parent.on("select",function(){this.update()}.bind(this)),this.on("tap",this.onTap),this.on("pointerDown",function(e,t){this.parent.childUIPointerDown(t)}.bind(this))},o.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),n.prototype.destroy.call(this),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var e=document.createElementNS(a,"svg");e.setAttribute("viewBox","0 0 100 100");var t=document.createElementNS(a,"path"),n=r(this.parent.options.arrowShape);return t.setAttribute("d",n),t.setAttribute("class","arrow"),this.isLeft||t.setAttribute("transform","translate(100, 100) rotate(180) "),e.appendChild(t),e},o.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var e=this.isPrevious?"previous":"next";this.parent[e]()}},o.prototype.handleEvent=i.handleEvent,o.prototype.onclick=function(){var e=document.activeElement;e&&e==this.element&&this.onTap()},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var e=this.parent.slides;if(this.parent.options.wrapAround&&e.length>1)this.enable();else{var t=e.length?e.length-1:0,n=this.isPrevious?0:t;this[this.parent.selectedIndex==n?"disable":"enable"]()}},o.prototype.destroy=function(){this.deactivate()},i.extend(t.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),t.createMethods.push("_createPrevNextButtons");var s=t.prototype;return s._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},s.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},s.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},t.PrevNextButton=o,t}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(n,i,o){return t(e,n,i,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):t(e,e.Flickity,e.TapListener,e.fizzyUIUtils)}(window,function(e,t,n,i){function o(e){this.parent=e,this._create()}o.prototype=new n,o.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap)},o.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),n.prototype.destroy.call(this)},o.prototype.setDots=function(){var e=this.parent.slides.length-this.dots.length;e>0?this.addDots(e):e<0&&this.removeDots(-e)},o.prototype.addDots=function(e){for(var t=document.createDocumentFragment(),n=[];e;){var i=document.createElement("li");i.className="dot",t.appendChild(i),n.push(i),e--}this.holder.appendChild(t),this.dots=this.dots.concat(n)},o.prototype.removeDots=function(e){this.dots.splice(this.dots.length-e,e).forEach(function(e){this.holder.removeChild(e)},this)},o.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected")},o.prototype.onTap=function(e){var t=e.target;if("LI"==t.nodeName){this.parent.uiChange();var n=this.dots.indexOf(t);this.parent.select(n)}},o.prototype.destroy=function(){this.deactivate()},t.PageDots=o,i.extend(t.defaults,{pageDots:!0}),t.createMethods.push("_createPageDots");var r=t.prototype;return r._createPageDots=function(){this.options.pageDots&&(this.pageDots=new o(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots),this.pageDots.on("pointerDown",function(e,t){this.childUIPointerDown(t)}.bind(this)))},r.activatePageDots=function(){this.pageDots.activate()},r.updateSelectedPageDots=function(){this.pageDots.updateSelected()},r.updatePageDots=function(){this.pageDots.setDots()},r.deactivatePageDots=function(){this.pageDots.deactivate()},t.PageDots=o,t}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(e,n,i){return t(e,n,i)}):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):t(e.EvEmitter,e.fizzyUIUtils,e.Flickity)}(window,function(e,t,n){function i(e){this.parent=e,this.state="stopped",r&&(this.onVisibilityChange=function(){this.visibilityChange()}.bind(this),this.onVisibilityPlay=function(){this.visibilityPlay()}.bind(this))}var o,r;"hidden"in document?(o="hidden",r="visibilitychange"):"webkitHidden"in document&&(o="webkitHidden",r="webkitvisibilitychange"),i.prototype=Object.create(e.prototype),i.prototype.play=function(){if("playing"!=this.state){var e=document[o];r&&e?document.addEventListener(r,this.onVisibilityPlay):(this.state="playing",r&&document.addEventListener(r,this.onVisibilityChange),this.tick())}},i.prototype.tick=function(){if("playing"==this.state){var e=this.parent.options.autoPlay;e="number"==typeof e?e:3e3;var t=this;this.clear(),this.timeout=setTimeout(function(){t.parent.next(!0),t.tick()},e)}},i.prototype.stop=function(){this.state="stopped",this.clear(),r&&document.removeEventListener(r,this.onVisibilityChange)},i.prototype.clear=function(){clearTimeout(this.timeout)},i.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},i.prototype.unpause=function(){"paused"==this.state&&this.play()},i.prototype.visibilityChange=function(){this[document[o]?"pause":"unpause"]()},i.prototype.visibilityPlay=function(){this.play(),document.removeEventListener(r,this.onVisibilityPlay)},t.extend(n.defaults,{pauseAutoPlayOnHover:!0}),n.createMethods.push("_createPlayer");var a=n.prototype;return a._createPlayer=function(){this.player=new i(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},a.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},a.playPlayer=function(){this.player.play()},a.stopPlayer=function(){this.player.stop()},a.pausePlayer=function(){this.player.pause()},a.unpausePlayer=function(){this.player.unpause()},a.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},a.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},a.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},n.Player=i,n}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(n,i){return t(e,n,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("fizzy-ui-utils")):t(e,e.Flickity,e.fizzyUIUtils)}(window,function(e,t,n){function i(e){var t=document.createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element)}),t}var o=t.prototype;return o.insert=function(e,t){var n=this._makeCells(e);if(n&&n.length){var o=this.cells.length;t=t===undefined?o:t;var r=i(n),a=t==o;if(a)this.slider.appendChild(r);else{var s=this.cells[t].element;
90this.slider.insertBefore(r,s)}if(0===t)this.cells=n.concat(this.cells);else if(a)this.cells=this.cells.concat(n);else{var l=this.cells.splice(t,o-t);this.cells=this.cells.concat(n).concat(l)}this._sizeCells(n);var d=t>this.selectedIndex?0:n.length;this._cellAddedRemoved(t,d)}},o.append=function(e){this.insert(e,this.cells.length)},o.prepend=function(e){this.insert(e,0)},o.remove=function(e){var t,i,o=this.getCells(e),r=0,a=o.length;for(t=0;t<a;t++){i=o[t],r-=this.cells.indexOf(i)<this.selectedIndex?1:0}for(t=0;t<a;t++)(i=o[t]).remove(),n.removeFrom(this.cells,i);o.length&&this._cellAddedRemoved(0,r)},o._cellAddedRemoved=function(e,t){t=t||0,this.selectedIndex+=t,this.selectedIndex=Math.max(0,Math.min(this.slides.length-1,this.selectedIndex)),this.cellChange(e,!0),this.emitEvent("cellAddedRemoved",[e,t])},o.cellSizeChange=function(e){var t=this.getCell(e);if(t){t.getSize();var n=this.cells.indexOf(t);this.cellChange(n)}},o.cellChange=function(e,t){var n=this.slideableWidth;if(this._positionCells(e),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("cellChange",[e]),this.options.freeScroll){var i=n-this.slideableWidth;this.x+=i*this.cellAlign,this.positionSlider()}else t&&this.positionSliderAtSelected(),this.select(this.selectedIndex)},t}),function(e,t){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(n,i){return t(e,n,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("fizzy-ui-utils")):t(e,e.Flickity,e.fizzyUIUtils)}(window,function(e,t,n){"use strict";function i(e){if("IMG"==e.nodeName&&e.getAttribute("data-flickity-lazyload"))return[e];var t=e.querySelectorAll("img[data-flickity-lazyload]");return n.makeArray(t)}function o(e,t){this.img=e,this.flickity=t,this.load()}t.createMethods.push("_createLazyload");var r=t.prototype;return r._createLazyload=function(){this.on("select",this.lazyLoad)},r.lazyLoad=function(){var e=this.options.lazyLoad;if(e){var t="number"==typeof e?e:0,n=this.getAdjacentCellElements(t),r=[];n.forEach(function(e){var t=i(e);r=r.concat(t)}),r.forEach(function(e){new o(e,this)},this)}},o.prototype.handleEvent=n.handleEvent,o.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.img.getAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload")},o.prototype.onload=function(e){this.complete(e,"flickity-lazyloaded")},o.prototype.onerror=function(e){this.complete(e,"flickity-lazyerror")},o.prototype.complete=function(e,t){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var n=this.flickity.getParentCell(this.img),i=n&&n.element;this.flickity.cellSizeChange(i),this.img.classList.add(t),this.flickity.dispatchEvent("lazyLoad",e,i)},t.LazyLoader=o,t}), 91/*! 92 * Flickity v2.0.2 93 * Touch, responsive, flickable carousels 94 * 95 * Licensed GPLv3 for open source use 96 * or Flickity Commercial License for commercial use 97 * 98 * http://flickity.metafizzy.co 99 * Copyright 2016 Metafizzy 100 */ 101function(e,t){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],t):"object"==typeof module&&module.exports&&(module.exports=t(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(e){return e}), 102/*! 103 * Flickity asNavFor v2.0.0 104 * enable asNavFor for Flickity 105 */ 106function(e,t){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],function(n,i,o){return t(e,n,i,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("flickity"),require("fizzy-ui-utils")):e.Flickity=t(e,e.Flickity,e.fizzyUIUtils)}(window,function(e,t,n){t.createMethods.push("_createAsNavFor");var i=t.prototype;return i._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var e=this.options.asNavFor;if(e){var t=this;setTimeout(function(){t.setNavCompanion(e)})}},i.setNavCompanion=function(e){e=n.getQueryElement(e);var i=t.data(e);if(i&&i!=this){this.navCompanion=i;var o=this;this.onNavCompanionSelect=function(){o.navCompanionSelect()},i.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect()}},i.navCompanionSelect=function(){if(this.navCompanion){var e=this.navCompanion.selectedCells[0],t=this.navCompanion.cells.indexOf(e);this.selectCell(t),this.removeNavSelectedElements(),t>=this.cells.length||(this.navSelectedElements=this.slides[this.selectedIndex].getCellElements(),this.changeNavSelectedClass("add"))}},i.changeNavSelectedClass=function(e){this.navSelectedElements.forEac
106h(function(t){t.classList[e]("is-nav-selected")})},i.activateAsNavFor=function(){this.navCompanionSelect()},i.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},i.onNavStaticClick=function(e,t,n,i){"number"==typeof i&&this.navCompanion.selectCell(i)},i.deactivateAsNavFor=function(){this.removeNavSelectedElements()},i.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t}), 107/*! 108 * imagesLoaded v4.1.0 109 * JavaScript is all like "You images are done yet or what?" 110 * MIT License 111 */ 112function(e,t){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}(window,function(e,t){function n(e,t){for(var n in t)e[n]=t[n];return e}function i(e){var t=[];if(Array.isArray(e))t=e;else if("number"==typeof e.length)for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e);return t}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=i(e),this.options=n({},this.options),"function"==typeof t?r=t:n(this.options,t),r&&this.on("always",r),this.getImages(),s&&(this.jqDeferred=new s.Deferred),setTimeout(function(){this.check()}.bind(this))}function r(e){this.img=e}function a(e,t){this.url=e,this.element=t,this.img=new Image}var s=e.jQuery,l=e.console;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&d[t]){for(var n=e.querySelectorAll("img"),i=0;i<n.length;i++){var o=n[i];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(i=0;i<r.length;i++){var a=r[i];this.addElementBackgroundImages(a)}}}};var d={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(t.backgroundImage);null!==i;){var o=i&&i[2];o&&this.addBackground(o,e),i=n.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var n=new a(e,t);this.images.push(n)},o.prototype.check=function(){function e(e,n,i){setTimeout(function(){t.progress(e,n,i)})}var t=this;this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},o.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+n,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth!==undefined},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype=Object.create(r.prototype),a.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWi
112dth,"naturalWidth"),this.unbindEvents())},a.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((s=t).fn.imagesLoaded=function(e,t){return new o(this,e,t).jqDeferred.promise(s(this))})},o.makeJQueryPlugin(),o}), 113/*! 114 * Flickity imagesLoaded v2.0.0 115 * enables imagesLoaded option for Flickity 116 */ 117function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(n,i){return t(e,n,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("flickity"),require("imagesloaded")):e.Flickity=t(e,e.Flickity,e.imagesLoaded)}(window,function(e,t,n){"use strict";t.createMethods.push("_createImagesLoaded");var i=t.prototype;return i._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},i.imagesLoaded=function(){function e(e,n){var i=t.getParentCell(n.img);t.cellSizeChange(i&&i.element),t.options.freeScroll||t.positionSliderAtSelected()}if(this.options.imagesLoaded){var t=this;n(this.slider).on("progress",e)}},t}),function e(t,n,i){function o(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n||e)},c,c.exports,e,t,n,i)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(e,t){"use strict";function n(e){this.canvas=document.querySelector(e.element),this.x1=0,this.y1=0,this.name=e.name||!1,this.elToSetClassOn=e.elToSetClassOn||"body",this.direction=e.direction||"diagonal",this.isPausedWhenNotInView=e.isPausedWhenNotInView||!1,this.opacity=e.opacity,this.states=e.states,this.stateTransitionSpeed=e.stateTransitionSpeed||1e3,this.previousTimeStamp=null,this.progress=0,this.isPaused=!1,this.isPausedBecauseNotInView=!1,this.iscurrentColorsSet=!1,this.context=this.canvas.getContext("2d"),this.channels={},this.channelsIndex=0,this.activeState=e.defaultStateName||"default-state",this.isChangingState=!1,this.activeColors=[],this.activeColorDiff=[],this.activetransitionSpeed=null,this.currentColors=[],this.eventPolyfill(),this.events={start:new CustomEvent("granim:start"),end:new CustomEvent("granim:end"),gradientChange:function(e){return new CustomEvent("granim:gradientChange",{detail:{isLooping:e.isLooping,colorsFrom:e.colorsFrom,colorsTo:e.colorsTo,activeState:e.activeState},bubbles:!1,cancelable:!1})}},this.callbacks={onStart:"function"==typeof e.onStart&&e.onStart,onGradientChange:"function"==typeof e.onGradientChange&&e.onGradientChange,onEnd:"function"==typeof e.onEnd&&e.onEnd},this.getDimensions(),this.canvas.setAttribute("width",this.x1),this.canvas.setAttribute("height",this.y1),this.setColors(),this.refreshColors(),window.addEventListener("resize",this.onResize.bind(this)),this.isPausedWhenNotInView?this.pauseWhenNotInView():this.animation=requestAnimationFrame(this.animateColors.bind(this)),this.callbacks.onStart&&this.callbacks.onStart(),this.canvas.dispatchEvent(this.events.start)}n.prototype.setColors=e("./setColors.js"),n.prototype.eventPolyfill=e("./eventPolyfill.js"),n.prototype.colorDiff=e("./colorDiff.js"),n.prototype.hexToRgb=e("./hexToRgb.js"),n.prototype.setDirection=e("./setDirection.js"),n.prototype.makeGradient=e("./makeGradient.js"),n.prototype.getDimensions=e("./getDimensions.js"),n.prototype.animateColors=e("./animateColors.js"),n.prototype.getLightness=e("./getLightness.js"),n.prototype.refreshColors=e("./refreshColors.js"),n.prototype.changeState=e("./changeState.js"),n.prototype.pause=e("./pause.js"),n.prototype.play=e("./play.js"),n.prototype.clear=e("./clear.js"),n.prototype.getCurrentColors=e("./getCurrentColors.js"),n.prototype.pauseWhenNotInView=e("./pauseWhenNotInView.js"),n.prototype.onResize=e("./onResize.js"),t.exports=n},{"./animateColors.js":2,"./changeState.js":3,"./clear.js":4,"./colorDiff.js":5,"./eventPolyfill.js":6,"./getCurrentColors.js":7,"./getDimensions.js":8,"./getLightness.js":9,"./hexToRgb.js":10,"./makeGradient.js":11,"./onResize.js":12,"./pause.js":13,"./pauseWhenNotInView.js":14,"./play.js":15,"./refreshColors.js":16,"./setColors.js":17,"./setDirection.js":18}],2:[function(e,t){"use strict";
117t.exports=function(e){var t,n,i,o=e-this.previousTimeStamp>100,r=void 0===this.states[this.activeState].loop||this.states[this.activeState].loop;(null===this.previousTimeStamp||o)&&(this.previousTimeStamp=e),this.progress=this.progress+(e-this.previousTimeStamp),t=(this.progress/this.activetransitionSpeed*100).toFixed(2),this.previousTimeStamp=e,this.refreshColors(t),t<100?this.animation=requestAnimationFrame(this.animateColors.bind(this)):this.channelsIndex<this.states[this.activeState].gradients.length-2||r?(this.isChangingState&&(this.activetransitionSpeed=this.states[this.activeState].transitionSpeed||5e3),this.previousTimeStamp=null,this.progress=0,this.channelsIndex++,n=!1,this.channelsIndex===this.states[this.activeState].gradients.length-1?n=!0:this.channelsIndex===this.states[this.activeState].gradients.length&&(this.channelsIndex=0),i=void 0===this.states[this.activeState].gradients[this.channelsIndex+1]?this.states[this.activeState].gradients[0]:this.states[this.activeState].gradients[this.channelsIndex+1],this.setColors(),this.animation=requestAnimationFrame(this.animateColors.bind(this)),this.callbacks.onGradientChange&&this.callbacks.onGradientChange({isLooping:n,colorsFrom:this.states[this.activeState].gradients[this.channelsIndex],colorsTo:i,activeState:this.activeState}),this.canvas.dispatchEvent(this.events.gradientChange({isLooping:n,colorsFrom:this.states[this.activeState].gradients[this.channelsIndex],colorsTo:i,activeState:this.activeState}))):(cancelAnimationFrame(this.animation),this.callbacks.onEnd&&this.callbacks.onEnd(),this.canvas.dispatchEvent(new CustomEvent("granim:end")))}},{}],3:[function(e,t){"use strict";t.exports=function(e){var t,n,i=this;this.activeState!==e&&(this.isPaused||(this.isPaused=!0,this.pause()),this.channelsIndex=-1,this.activetransitionSpeed=this.stateTransitionSpeed,this.activeColorDiff=[],this.activeColors=this.getCurrentColors(),this.progress=0,this.previousTimeStamp=null,this.isChangingState=!0,this.states[e].gradients[0].forEach(function(o,r){t=i.hexToRgb(i.states[e].gradients[0][r]),n=i.colorDiff(i.activeColors[r],t),i.activeColorDiff.push(n)}),this.activeState=e,this.play())}},{}],4:[function(e,t){"use strict";t.exports=function(){cancelAnimationFrame(this.animation),this.context.clearRect(0,0,this.x1,this.y1)}},{}],5:[function(e,t){"use strict";t.exports=function(e,t){var n,i=[];for(n=0;n<3;n++)i.push(t[n]-e[n]);return i}},{}],6:[function(e,t){"use strict";t.exports=function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}},{}],7:[function(e,t){"use strict";t.exports=function(){var e,t=[];return this.currentColors.forEach(function(n,i){for(t.push([]),e=0;e<3;e++)t[i].push(n[e])}),t}},{}],8:[function(e,t){"use strict";t.exports=function(){this.x1=this.canvas.offsetWidth,this.y1=this.canvas.offsetHeight}},{}],9:[function(e,t){"use strict";t.exports=function(){var e,t=this.getCurrentColors(),n=[],i=null;return t.forEach(function(e){n.push(Math.max(e[0],e[1],e[2]))}),n.forEach(function(t,o){i=null===i?t:i+t,o===n.length-1&&(e=Math.round(i/(o+1)))}),e>=128?"light":"dark"}},{}],10:[function(e,t){"use strict";t.exports=function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,n,i){return t+t+n+n+i+i});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null}},{}],11:[function(e,t){"use strict";t.exports=function(){var e,t,n=this.setDirection(),i=document.querySelector(this.elToSetClassOn).classList;for(this.context.clearRect(0,0,this.x1,this.y1),e=0;e<this.currentColors.length;e++)t=e?(1/(this.currentColors.length-1)*e).toFixed(2):0,n.addColorStop(t,"rgba("+this.currentColors[e][0]+", "+this.currentColors[e][1]+", "+this.currentColors[e][2]+", "+this.opacity[e]+")");this.name&&("light"===this.getLightness()?(i.remove(this.name+"-dark"),i.add(this.name+"-light")):(i.remove(this.name+"-light"),i.add(this.name+"-dark"))),this.context.fillStyle=n,this.context.fillRect(0,0,this.x1,this.y1)}},{}],12:[function(e,t){"use strict";
117t.exports=function(){this.getDimensions(),this.canvas.setAttribute("width",this.x1),this.canvas.setAttribute("height",this.y1),this.refreshColors()}},{}],13:[function(e,t){"use strict";t.exports=function(e){"isPausedBecauseNotInView"===e||(this.isPaused=!0),cancelAnimationFrame(this.animation)}},{}],14:[function(e,t){"use strict";t.exports=function(){function e(e){t&&clearTimeout(t),t=setTimeout(function(){var t=n.canvas.getBoundingClientRect();t.bottom<0||t.right<0||t.left>window.innerWidth||t.top>window.innerHeight?n.isPaused||n.isPausedBecauseNotInView||(n.isPausedBecauseNotInView=!0,n.pause("isPausedBecauseNotInView")):n.isPaused&&!0!==e||(n.isPausedBecauseNotInView=!1,n.play("isPausedBecauseNotInView"))},300)}var t,n=this;window.addEventListener("scroll",e),e(!0)}},{}],15:[function(e,t){"use strict";t.exports=function(e){"isPausedBecauseNotInView"===e||(this.isPaused=!1),this.animation=requestAnimationFrame(this.animateColors.bind(this))}},{}],16:[function(e,t){"use strict";t.exports=function(e){var t,n,i=this;this.activeColors.forEach(function(o,r){for(n=0;n<3;n++)(t=i.activeColors[r][n]+Math.ceil(i.activeColorDiff[r][n]/100*e))<=255&&t>=0&&(i.currentColors[r][n]=t)}),this.makeGradient()}},{}],17:[function(e,t){"use strict";t.exports=function(){var e,t,n=this;return this.channels[this.activeState]||(this.channels[this.activeState]=[]),void 0!==this.channels[this.activeState][this.channelsIndex]?(this.activeColors=this.channels[this.activeState][this.channelsIndex].colors,void(this.activeColorDiff=this.channels[this.activeState][this.channelsIndex].colorsDiff)):(this.channels[this.activeState].push([{}]),this.channels[this.activeState][this.channelsIndex].colors=[],this.channels[this.activeState][this.channelsIndex].colorsDiff=[],this.activeColors=[],this.activeColorDiff=[],this.states[this.activeState].gradients[this.channelsIndex].forEach(function(i,o){var r=n.hexToRgb(i),a=n.channels[n.activeState];a[n.channelsIndex].colors.push(r),n.activeColors.push(r),n.iscurrentColorsSet||n.currentColors.push(n.hexToRgb(i)),n.channelsIndex===n.states[n.activeState].gradients.length-1?e=n.colorDiff(a[n.channelsIndex].colors[o],a[0].colors[o]):(t=n.hexToRgb(n.states[n.activeState].gradients[n.channelsIndex+1][o]),e=n.colorDiff(a[n.channelsIndex].colors[o],t)),a[n.channelsIndex].colorsDiff.push(e),n.activeColorDiff.push(e)}),this.activetransitionSpeed=this.states[this.activeState].transitionSpeed||5e3,void(this.iscurrentColorsSet=!0))}},{}],18:[function(e,t){"use strict";t.exports=function(){var e=this.context;switch(this.direction){default:case"diagonal":return e.createLinearGradient(0,0,this.x1,this.y1);case"left-right":return e.createLinearGradient(0,0,this.x1,0);case"top-bottom":return e.createLinearGradient(this.x1/2,0,this.x1/2,this.y1);case"radial":return e.createRadialGradient(this.x1/2,this.y1/2,this.x1/2,this.x1/2,this.y1/2,0)}}},{}],19:[function(e){window.Granim=e("./lib/Granim.js")},{"./lib/Granim.js":1}]},{},[19]),function(e,t){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(n){t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,function(e,t){"use strict";function n(n,r,s){function l(e,t,i){var o,r="$()."+n+'("'+t+'")';return e.each(function(e,l){var d=s.data(l,n);if(d){var c=d[t];if(c&&"_"!=t.charAt(0)){var u=c.apply(d,i);o=void 0===o?u:o}else a(r+" is not a valid method")}else a(n+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:e}function d(e,t){e.each(function(e,i){var o=s.data(i,n);o?(o.option(t),o._init()):(o=new r(i,t),s.data(i,n,o))})}(s=s||t||e.jQuery)&&(r.prototype.option||(r.prototype.option=function(e){s.isPlainObject(e)&&(this.options=s.extend(!0,this.options,e))}),s.fn[n]=function(e){return"string"==typeof e?l(this,e,o.call(arguments,1)):(d(this,e),this)},i(s))}function i(e){!e||e&&e.bridget||(e.bridget=n)}var o=Array.prototype.slice,r=e.console,a=void 0===r?function(){}:function(e){r.error(e)};return i(t||e.jQuery),n}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},i=n[e]=n[e]||[];return-1==i.indexOf(t)&&i.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=n.indexOf(t);return-1!=i&&n.splice(i,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=0,o=n[i];t=t||[];for(var r=this._onceEvents&&this._onceEvents[e];o;){var a=r&&r[o];a&&(this.off(e,o),delete r[o]),o.apply(this,t),o=n[i+=a?0:1]}return this}},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return t()}):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}function n(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;d>
vendor: 2,130 bytes, line 117
117t;t++){e[l[t]]=0}return e}function i(e){var t=getComputedStyle(e);return t||s("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}function o(){if(!c){c=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var o=i(t);r.isBoxSizeOuter=a=200==e(o.width),n.removeChild(t)}}function r(t){if(o(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var r=i(t);if("none"==r.display)return n();var s={};s.width=t.offsetWidth,s.height=t.offsetHeight;for(var c=s.isBorderBox="border-box"==r.boxSizing,u=0;d>u;u++){var h=l[u],f=r[h],p=parseFloat(f);s[h]=isNaN(p)?0:p}var m=s.paddingLeft+s.paddingRight,g=s.paddingTop+s.paddingBottom,v=s.marginLeft+s.marginRight,y=s.marginTop+s.marginBottom,_=s.borderLeftWidth+s.borderRightWidth,b=s.borderTopWidth+s.borderBottomWidth,T=c&&a,C=e(r.width);!1!==C&&(s.width=C+(T?0:m+_));var E=e(r.height);return!1!==E&&(s.height=E+(T?0:g+b)),s.innerWidth=s.width-(m+_),s.innerHeight=s.height-(g+b),s.outerWidth=s.width+v,s.outerHeight=s.height+y,s}}var a,s="undefined"==typeof console?t:function(e){console.error(e)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],d=l.length,c=!1;return r}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var e=function(){var e=Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var i=t[n]+"MatchesSelector";if(e[i])return i}}();return function(t,n){return t[e](n)}}),function(e,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
117sandro-matches-selector/matches-selector"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,function(e,t){var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t},makeArray:function(e){var t=[];if(Array.isArray(e))t=e;else if(e&&"number"==typeof e.length)for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e);return t},removeFrom:function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},getParent:function(e,n){for(;e!=document.body;)if(e=e.parentNode,t(e,n))return e},getQueryElement:function(e){return"string"==typeof e?document.querySelector(e):e},handleEvent:function(e){var t="on"+e.type;this[t]&&this[t](e)},filterFindElements:function(e,i){e=n.makeArray(e);var o=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!i)return void o.push(e);t(e,i)&&o.push(e);for(var n=e.querySelectorAll(i),r=0;r<n.length;r++)o.push(n[r])}}),o},debounceMethod:function(e,t,n){var i=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];e&&clearTimeout(e);var t=arguments,r=this;this[o]=setTimeout(function(){i.apply(r,t),delete r[o]},n||100)}},docReady:function(e){var t=document.readyState;"complete"==t||"interactive"==t?e():document.addEventListener("DOMContentLoaded",e)},toDashed:function(e){return e.replace(/(.)([A-Z])/g,function(e,t,n){return t+"-"+n}).toLowerCase()}},i=e.console;return n.htmlInit=function(t,o){n.docReady(function(){var r=n.toDashed(o),a="data-"+r,s=document.querySelectorAll("["+a+"]"),l=document.querySelectorAll(".js-"+r),d=n.makeArray(s).concat(n.makeArray(l)),c=a+"-options",u=e.jQuery;d.forEach(function(e){var n,r=e.getAttribute(a)||e.getAttribute(c);try{n=r&&JSON.parse(r)}catch(s){return void(i&&i.error("Error parsing "+a+" on "+e.className+": "+s))}var l=new t(e,n);u&&u.data(e,o,l)})})},n}),function(e,t){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("get-size")):(e.Outlayer={},e.Outlayer.Item=t(e.EvEmitter,e.getSize))}(window,function(e,t){"use strict";function n(e){for(var t in e)return!1;return null,!0}function i(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}function o(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}var r=document.documentElement.style,a="string"==typeof r.transition?"transition":"WebkitTransition",s="string"==typeof r.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[a],d={transform:s,transition:a,transitionDuration:a+"Duration",transitionProperty:a+"Property",transitionDelay:a+"Delay"},c=i.prototype=Object.create(e.prototype);c.constructor=i,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.getSize=function(){this.size=t(this.element)},c.css=function(e){var t=this.element.style;for(var n in e){t[d[n]||n]=e[n]}},c.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=e[t?"left":"right"],o=e[n?"top":"bottom"],r=this.layout.size,a=-1!=i.indexOf("%")?parseFloat(i)/100*r.width:parseInt(i,10),s=-1!=o.indexOf("%")?parseFloat(o)/100*r.height:parseInt(o,10);a=isNaN(a)?0:a,s=isNaN(s)?0:s,a-=t?r.paddingLeft:r.paddingRight,s-=n?r.paddingTop:r.paddingBottom,this.position.x=a,this.position.y=s},c.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=n?"paddingLeft":"paddingRight",r=n?"left":"right",a=n?"right":"left",s=this.position.x+e[o];t[r]=this.getXValue(s),t[a]="";var l=i?"paddingTop":"paddingBottom",d=i?"top":"bottom",c=i?"bottom":"top",u=this.position.y+e[l];t[d]=this.getYValue(u),t[c]="",this.css(t),this.emitEvent("layout",[this])},c.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},c.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},c._transitionTo=function(e,t){this.getPosition();var n=this.position.x,i=this.position.y,o=parseInt(e,10),r=parseInt(t,10),a=o===this.position.x&&r===this.position.y;if(this.setPosition(e,t),!a||this.isTransitioning){var s=e-n,l=t-i,d={};d.transform=this.getTranslate(s,l),this.transition({to:d,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},c.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},c.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(e,t){this.position.x=parseInt(e,10),this.position.y=parseInt(t,10)},c._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},c.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);if(e.from){this.css(e.from);this.element.offsetHeight;null}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var u="opacity,"+o(s);c.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:u,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},c.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},c.onotransitionend=function(e){this.ontransitionend(e)};var h={"-webkit-transform":"transform"};c.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,i=h[e.propertyName]||e.propertyName;if(delete t.ingProperties[i],n(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[i]),i in t.onEnd)t.onEnd[i].call(this),delete t.onEnd[i];this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},c._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return c.removeTransitionStyles=function(){this.css(f)},c.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){return a&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},c.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(n,i,o,r){return t(e,n,i,o,r)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):e.Outlayer=t(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,e.Outlayer.Item)}(window,function(e,t,n,i,o){"use strict";function r(e,t){var n=i.getQueryElement(e);
vendor: 4,391 bytes, line 117
117if(n){this.element=n,d&&(this.$element=d(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(t);var o=++u;this.element.outlayerGUID=o,h[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}else l&&l.error("Bad element for "+this.constructor.namespace+": "+(n||e))}function a(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}function s(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],i=t&&t[2];return n.length?(n=parseFloat(n))*(p[i]||1):0}var l=e.console,d=e.jQuery,c=function(){},u=0,h={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;i.extend(f,t.prototype),f.option=function(e){i.extend(this.options,e)},f._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,i=[],o=0;o<t.length;o++){var r=new n(t[o],this);i.push(r)}return i},f._filterFindItemElements=function(e){return i.filterFindElements(e,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(e){return e.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(e,t){var i,o=this.options[e];o?("string"==typeof o?i=this.element.querySelector(o):o instanceof HTMLElement&&(i=o),this[e]=i?n(i)[t]:o):this[e]=0},f.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},f._getItemsForLayout=function(e){return e.filter(function(e){return!e.isIgnored})},f._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach(function(e){var i=this._getItemLayoutPosition(e);i.item=e,i.isInstant=t||e.isLayoutInstant,n.push(i)},this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(e){this.updateStagger(),e.forEach(function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)},this)},f.updateStagger=function(){var e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger=s(e),this.stagger)},f._positionItem=function(e,t,n,i,o){i?e.goTo(t,n):(e.stagger(o*this.stagger),e.moveTo(t,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=c,f._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},f._emitCompleteOnItems=function(e,t){function n(){o.dispatchEvent(e+"Complete",null,[t])}function i(){++a==r&&n()}var o=this,r=t.length;if(t&&r){var a=0;t.forEach(function(t){t.once(e,i)})}else n()},f.dispatchEvent=function(e,t,n){var i=t?[t].concat(n):n;if(this.emitEvent(e,i),d)if(this.$element=this.$element||d(this.element),t){var o=d.Event(t);o.type=e,this.$element.trigger(o,n)}else this.$element.trigger(e,n)},f.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},f.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},f.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.
vendor: 13,180 bytes, lines 117-118
117concat(e),e.forEach(this.ignore,this))},f.unstamp=function(e){(e=this._find(e))&&e.forEach(function(e){i.removeFrom(this.stamps,e),this.unignore(e)},this)},f._find=function(e){return e?("string"==typeof e&&(e=this.element.querySelectorAll(e)),e=i.makeArray(e)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},f._manageStamp=c,f._getElementOffset=function(e){var t=e.getBoundingClientRect(),i=this._boundingRect,o=n(e);return{left:t.left-i.left-o.marginLeft,top:t.top-i.top-o.marginTop,right:i.right-t.right-o.marginRight,bottom:i.bottom-t.bottom-o.marginBottom}},f.handleEvent=i.handleEvent,f.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},i.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},f.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},f.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,n){e.stagger(n*t),e.reveal()})}},f.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,n){e.stagger(n*t),e.hide()})}},f.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},f.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},f.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},f.getItems=function(e){e=i.makeArray(e);var t=[];return e.forEach(function(e){var n=this.getItem(e);n&&t.push(n)},this),t},f.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(e){e.remove(),i.removeFrom(this.items,e)},this)},f.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach(function(e){e.destroy()}),this.unbindResize();var t=this.element.outlayerGUID;delete h[t],delete this.element.outlayerGUID,d&&d.removeData(this.element,this.constructor.namespace)},r.data=function(e){var t=(e=i.getQueryElement(e))&&e.outlayerGUID;return t&&h[t]},r.create=function(e,t){var n=a(r);return n.defaults=i.extend({},r.defaults),i.extend(n.defaults,t),n.compatOptions=i.extend({},r.compatOptions),n.namespace=e,n.data=r.data,n.Item=a(o),i.htmlInit(n,e),d&&d.bridget&&d.bridget(e,n),n};var p={ms:1,s:1e3};return r.Item=o,r}),function(e,t){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.Item=t(e.Outlayer))}(window,function(e){"use strict";function t(){e.Item.apply(this,arguments)}var n=t.prototype=Object.create(e.Item.prototype),i=n._create;n._create=function(){this.id=this.layout.itemGUID++,i.call(this),this.sortData={}},n.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var e=this.layout.options.getSortData,t=this.layout._sorters;for(var n in e){var i=t[n];this.sortData[n]=i(this.element,this)}}};var o=n.destroy;return n.destroy=function(){o.apply(this,arguments),this.css({ 118display:""})},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("get-size"),require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.LayoutMode=t(e.getSize,e.Outlayer))}(window,function(e,t){"use strict";function n(e){this.isotope=e,e&&(this.options=e.options[this.namespace],this.element=e.element,this.items=e.filteredItems,this.size=e.size)}var i=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(e){i[e]=function(){return t.prototype[e].apply(this.isotope,arguments)}}),i.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},i._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.getRowHeight=function(){this.getSegmentSize("row","Height")},i.getSegmentSize=function(e,t){var n=e+t,i="outer"+t;if(this._getMeasurement(n,i),!this[n]){var o=this.getFirstItemSize();this[n]=o&&o[i]||this.isotope.size["inner"+t]}},i.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},i.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(e,t){function o(){n.apply(this,arguments)}return o.prototype=Object.create(i),o.prototype.constructor=o,t&&(o.options=t),o.prototype.namespace=e,n.modes[e]=o,o},n}),function(e,t){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer"),require("get-size")):e.Masonry=t(e.Outlayer,e.getSize)}(window,function(e,t){var n=e.create("masonry");return n.compatOptions.fitWidth="isFitWidth",n.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/i,a=i-o%i;r=Math[a&&1>a?"round":"floor"](r),this.cols=Math.max(r,1)},n.prototype.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},n.prototype._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&1>t?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var i=this._getColGroup(n),o=Math.min.apply(Math,i),r=i.indexOf(o),a={x:this.columnWidth*r,y:o},s=o+e.size.outerHeight,l=this.cols+1-i.length,d=0;l>d;d++)this.colYs[r+d]=s;return a},n.prototype._getColGroup=function(e){if(2>e)return this.colYs;for(var t=[],n=this.cols+1-e,i=0;n>i;i++){var o=this.colYs.slice(i,i+e);t[i]=Math.max.apply(Math,o)}return t},n.prototype._manageStamp=function(e){var n=t(e),i=this._getElementOffset(e),o=this._getOption("originLeft")?i.left:i.right,r=o+n.outerWidth,a=Math.floor(o/this.columnWidth);a=Math.max(0,a);var s=Math.floor(r/this.columnWidth);s-=r%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var l=(this._getOption("originTop")?i.top:i.bottom)+n.outerHeight,d=a;s>=d;d++)this.colYs[d]=Math.max(l,this.colYs[d])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},n.prototype._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n}),function(e,t){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(e.Isotope.LayoutMode,e.Masonry)}(window,function(e,t){"use strict";var n=e.create("masonry"),i=n.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var r in t.prototype)o[r]||(i[r]=t.prototype[r]);var a=i.measureColumns;i.measureColumns=function(){this.items=this.isotope.filteredItems,a.call(this)};var s=i._getOption;return i._getOption=function(e){return"fitWidth"==e?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},n}),function(e,t){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("fitRows"),n=t.prototype;return n._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},n._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth+this.gutter,n=this.isotope.size.innerWidth+this.gutter;0!==this.x&&t+this.x>n&&(this.x=0,this.y=this.maxY);var i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight),this.x+=t,i},n._getContainerSize=function(){return{height:this.maxY}},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("vertical",{horizontalAlignment:0}),n=t.prototype;return n._resetLayout=function(){this.y=0},n._getItemLayoutPosition=function(e){e.getSize();var t=(this.isotope.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment,n=this.y;return this.y+=e.size.outerHeight,{x:t,y:n}},n._getContainerSize=function(){return{height:this.y}},t}),function(e,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(n,i,o,r,a,s){return t(e,n,i,o,r,a,s)}):"object"==typeof module&&module.exports?module.exports=t(e,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):e.Isotope=t(e,e.Outlayer,e.getSize,e.matchesSelector,e.fizzyUIUtils,e.Isotope.Item,e.Isotope.LayoutMode)}(window,function(e,t,n,i,o,r,a){function s(e,t){return function(n,i){for(var o=0;o<e.length;o++){var r=e[o],a=n.sortData[r],s=i.sortData[r];if(a>s||s>a)return(a>s?1:-1)*((void 0!==t[r]?t[r]:t)?1:-1)}return 0}}var l=e.jQuery,d=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s+|\s+$/g,"")},c=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=r,c.LayoutMode=a;var u=c.prototype;u._create=function(){for(var e in this.itemGUID=0,this._sorters={},this._getSorters(),t.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],a.modes)this._initLayoutMode(e)},u.reloadItems=function(){this.itemGUID=0,t.prototype.reloadItems.call(this)},u._itemize=function(){for(var e=t.prototype._itemize.apply(this,arguments),n=0;n<e.length;n++){e[n].id=this.itemGUID++}return this._updateItemsSortData(e),e},u._initLayoutMode=function(e){var t=a.modes[e],n=this.options[e]||{};this.options[e]=t.options?o.extend(t.options,n):n,this.modes[e]=new t(this)},u.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},u._layout=function(){var e=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,e),this._isLayoutInited=!0},u.arrange=function(e){this.option(e),this._getIsInstant();var t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},u._init=u.arrange,u._hideReveal=function(e){this.reveal(e.needReveal),this.hide(e.needHide)},u._getIsInstant=function(){var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;return this._isInstant=t,t},u._bindArrangeComplete=function(){function e(){t&&n&&i&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}var t,n,i,o=this;this.once("layoutComplete",function(){t=!0,e()}
118),this.once("hideComplete",function(){n=!0,e()}),this.once("revealComplete",function(){i=!0,e()})},u._filter=function(e){var t=this.options.filter;t=t||"*";for(var n=[],i=[],o=[],r=this._getFilterTest(t),a=0;a<e.length;a++){var s=e[a];if(!s.isIgnored){var l=r(s);l&&n.push(s),l&&s.isHidden?i.push(s):l||s.isHidden||o.push(s)}}return{matches:n,needReveal:i,needHide:o}},u._getFilterTest=function(e){return l&&this.options.isJQueryFiltering?function(t){return l(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return i(t.element,e)}},u.updateSortData=function(e){var t;e?(e=o.makeArray(e),t=this.getItems(e)):t=this.items,this._getSorters(),this._updateItemsSortData(t)},u._getSorters=function(){var e=this.options.getSortData;for(var t in e){var n=e[t];this._sorters[t]=h(n)}},u._updateItemsSortData=function(e){for(var t=e&&e.length,n=0;t&&t>n;n++){e[n].updateSortData()}};var h=function(){function e(e){if("string"!=typeof e)return e;var n=d(e).split(" "),i=n[0],o=i.match(/^\[(.+)\]$/),r=t(o&&o[1],i),a=c.sortDataParsers[n[1]];return a?function(e){return e&&a(r(e))}:function(e){return e&&r(e)}}function t(e,t){return e?function(t){return t.getAttribute(e)}:function(e){var n=e.querySelector(t);return n&&n.textContent}}return e}();c.sortDataParsers={parseInt:function(e){return parseInt(e,10)},parseFloat:function(e){return parseFloat(e)}},u._sort=function(){var e=this.options.sortBy;if(e){var t=s([].concat.apply(e,this.sortHistory),this.options.sortAscending);this.filteredItems.sort(t),e!=this.sortHistory[0]&&this.sortHistory.unshift(e)}},u._mode=function(){var e=this.options.layoutMode,t=this.modes[e];if(!t)throw new Error("No layout mode: "+e);return t.options=this.options[e],t},u._resetLayout=function(){t.prototype._resetLayout.call(this),this._mode()._resetLayout()},u._getItemLayoutPosition=function(e){return this._mode()._getItemLayoutPosition(e)},u._manageStamp=function(e){this._mode()._manageStamp(e)},u._getContainerSize=function(){return this._mode()._getContainerSize()},u.needsResizeLayout=function(){return this._mode().needsResizeLayout()},u.appended=function(e){var t=this.addItems(e);if(t.length){var n=this._filterRevealAdded(t);this.filteredItems=this.filteredItems.concat(n)}},u.prepended=function(e){var t=this._itemize(e);if(t.length){this._resetLayout(),this._manageStamps();var n=this._filterRevealAdded(t);this.layoutItems(this.filteredItems),this.filteredItems=n.concat(this.filteredItems),this.items=t.concat(this.items)}},u._filterRevealAdded=function(e){var t=this._filter(e);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},u.insert=function(e){var t=this.addItems(e);if(t.length){var n,i,o=t.length;for(n=0;o>n;n++)i=t[n],this.element.appendChild(i.element);var r=this._filter(t).matches;for(n=0;o>n;n++)t[n].isLayoutInstant=!0;for(this.arrange(),n=0;o>n;n++)delete t[n].isLayoutInstant;this.reveal(r)}};var f=u.remove;return u.remove=function(e){e=o.makeArray(e);var t=this.getItems(e);f.call(this,e);for(var n=t&&t.length,i=0;n&&n>i;i++){var r=t[i];o.removeFrom(this.filteredItems,r)}},u.shuffle=function(){for(var e=0;e<this.items.length;e++){this.items[e].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},u._noTransition=function(e,t){var n=this.options.transitionDuration;this.options.transitionDuration=0;var i=e.apply(this,t);return this.options.transitionDuration=n,i},u.getFilteredItemElements=function(){return this.filteredItems.map(function(e){return e.element})},c}),function(e,t){"function"==typeof define&&define.amd?define(["jQuery"],t):t("object"==typeof exports?require("jQuery"):e.jQuery)}(this,function(){var e=function(){var e={},t=4,n=new RegExp("{{([^}]+)}}","g"),i=function(e){for(var t,i=[];t=n.exec(e);)i.push(t);return i};return e.parse=function(e){for(var n={inpts:{},chars:{}},o=i(e),r=e.length,a=0,s=0,l=0,d=function(e){for(var i=e.length,o=0;i>o;o++)n.inpts[s]=e.charAt(o),s++;a++,l+=e.length+t-1};r>l;l++)a<o.length&&l===o[a].index?d(o[a][1]):n.chars[l-a*t]=e.charAt(l);return n.mLength=l-a*t,n},e}(),t=function(){var e={};return"undefined"!=typeof navigator&&navigator.userAgent,e.extend=function(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])e[n]=arguments[t][n];return e},e.addChars=function(e,t,n){return e.substr(0,n)+t+e.substr(n,e.length)},e.removeChars=function(e,t,n){return e.substr(0,t)+e.substr(n,e.length)},e.isBetween=function(e,t){return t.sort(function(e,t){return e-t}),e>t[0]&&e<t[1]},e.addListener=function(e,t,n){return"undefined"!=typeof e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},e.preventDefault=function(e){return e.preventDefault?e.preventDefault():e.returnValue=!1},e.getClip=function(e){return e.clipboardData?e.clipboardData.getData("Text"):window.clipboardData?window.clipboardData.getData("Text"):void 0},e.getMatchingKey=function(e,t,n){for(var i in n){var o=n[i];if(e===o.which&&t===o.keyCode)return i}},e.isDelKeyDown=function(t,n){var i={backspace:{which:8,keyCode:8},"delete":{which:46,keyCode:46}};return e.getMatchingKey(t,n,i)},e.isDelKeyPress=function(t,n){var i={backspace:{which:8,keyCode:8,shiftKey:!1},"delete":{which:0,keyCode:46}};return e.getMatchingKey(t,n,i)},e.isSpecialKeyPress=function(t,n){var i={tab:{which:0,keyCode:9}
118,enter:{which:13,keyCode:13},end:{which:0,keyCode:35},home:{which:0,keyCode:36},leftarrow:{which:0,keyCode:37},uparrow:{which:0,keyCode:38},rightarrow:{which:0,keyCode:39},downarrow:{which:0,keyCode:40},F5:{which:116,keyCode:116}};return e.getMatchingKey(t,n,i)},e.isModifier=function(e){return e.ctrlKey||e.altKey||e.metaKey},e.forEach=function(e,t,n){if(e.hasOwnProperty("length"))for(var i=0,o=e.length;o>i&&!1!==t.call(n,e[i],i,e);i++);else for(var r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))break},e}(),n=function(e,t,n){function i(t,i){var r=this;if(r.el=t,!r.el)throw new TypeError("Must provide an existing element");if(r.opts=n.extend({},o,i),"undefined"!=typeof r.opts.pattern&&(r.opts.patterns=r._specFromSinglePattern(r.opts.pattern),delete r.opts.pattern),"undefined"==typeof r.opts.patterns)throw new TypeError("Must provide a pattern or array of patterns");r.patternMatcher=e(r.opts.patterns),r._updatePattern(),r.hldrs={},r.focus=0,n.addListener(r.el,"keydown",function(e){r._keyDown(e)}),n.addListener(r.el,"keypress",function(e){r._keyPress(e)}),n.addListener(r.el,"paste",function(e){r._paste(e)}),r.opts.persistent&&(r._processKey("",!1),r.el.blur(),n.addListener(r.el,"focus",function(e){r._focus(e)}),n.addListener(r.el,"click",function(e){r._focus(e)}),n.addListener(r.el,"touchstart",function(e){r._focus(e)}))}var o={persistent:!1,repeat:!1,placeholder:" "},r={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/};return i.addInptType=function(e,t){r[e]=t},i.prototype.resetPattern=function(n){this.opts.patterns=n?this._specFromSinglePattern(n):this.opts.patterns,this.sel=t.get(this.el),this.val=this.el.value,this.delta=0,this._removeChars(),this.patternMatcher=e(this.opts.patterns);var i=this.patternMatcher.getPattern(this.val);this.mLength=i.mLength,this.chars=i.chars,this.inpts=i.inpts,this._processKey("",!1,!0)},i.prototype._updatePattern=function(){var e=this.patternMatcher.getPattern(this.val);e&&(this.mLength=e.mLength,this.chars=e.chars,this.inpts=e.inpts)},i.prototype._keyDown=function(e){var t=e.which||e.keyCode;return t&&n.isDelKeyDown(e.which,e.keyCode)?(this._processKey(null,t),n.preventDefault(e)):void 0},i.prototype._keyPress=function(e){var t,i;return t=e.which||e.keyCode,i=n.isSpecialKeyPress(e.which,e.keyCode),n.isDelKeyPress(e.which,e.keyCode)||i||n.isModifier(e)?void 0:(this._processKey(String.fromCharCode(t),!1),n.preventDefault(e))},i.prototype._paste=function(e){return this._processKey(n.getClip(e),!1),n.preventDefault(e)},i.prototype._focus=function(){var e=this;setTimeout(function(){var n=t.get(e.el),i=n.end>e.focus,o=0===n.end;(i||o)&&t.set(e.el,e.focus)},0)},i.prototype._processKey=function(e,i,o){if(this.sel=t.get(this.el),this.val=this.el.value,this.delta=0,this.sel.begin!==this.sel.end)this.delta=-1*Math.abs(this.sel.begin-this.sel.end),this.val=n.removeChars(this.val,this.sel.begin,this.sel.end);else if(i&&46===i)this._delete();else if(i&&this.sel.begin-1>=0)this.val=n.removeChars(this.val,this.sel.end-1,this.sel.end),this.delta-=1;else if(i)return!0;i||(this.val=n.addChars(this.val,e,this.sel.begin),this.delta+=e.length),this._formatValue(o)},i.prototype._delete=function(){for(;this.chars[this.sel.begin];)this._nextPos();this.sel.begin<this.val.length&&(this._nextPos(),this.val=n.removeChars(this.val,this.sel.end-1,this.sel.end),this.delta=-1)},i.prototype._nextPos=function(){this.sel.end++,this.sel.begin++},i.prototype._formatValue=function(e){this.newPos=this.sel.end+this.delta,this._removeChars(),this._updatePattern(),this._validateInpts(),this._addChars(),this.el.value=this.val.substr(0,this.mLength),(void 0===e||!1===e)&&t.set(this.el,this.newPos)},i.prototype._removeChars=function(){this.sel.end>this.focus&&(this.delta+=this.sel.end-this.focus);for(var e=0,t=0;t<=this.mLength;t++){var i,o=this.chars[t],r=this.hldrs[t],a=t+e;a=t>=this.sel.begin?a+this.delta:a,i=this.val.charAt(a),(o&&o===i||r&&r===i)&&(this.val=n.removeChars(this.val,a,a+1),e--)}this.hldrs={},this.focus=this.val.length},i.prototype._validateInpts=function(){for(var e=0;e<this.val.length;e++){var t=this.inpts[e],i=!r[t],o=!i&&!r[t].test(this.val.charAt(e)),a=this.inpts[e];(i||o)&&a&&(this.val=n.removeChars(this.val,e,e+1),this.focusStart--,this.newPos--,this.delta--,e--)}},i.prototype._addChars=function(){if(this.opts.persistent){for(var e=0;e<=this.mLength;e++)this.val.charAt(e)||(this.val=n.addChars(this.val,this.opts.placeholder,e),this.hldrs[e]=this.opts.placeholder),this._addChar(e);for(;this.chars[this.focus];)this.focus++}else for(var t=0;t<=this.val.length;t++){if(this.delta<=0&&t===this.focus)return!0;this._addChar(t)}},i.prototype._addChar=function(e){var t=this.chars[e];return!t||(n.isBetween(e,[this.sel.begin-1,this.newPos+1])&&(this.newPos++,this.delta++),e<=this.focus&&this.focus++,this.hldrs[e]&&(delete this.hldrs[e],this.hldrs[e+1]=this.opts.placeholder),void(this.val=n.addChars(this.val,t,e)))},i.prototype._specFromSinglePattern=function(e){return[{"*":e}]},i}(function(e,t){function n(n){var o=[],r=[];return t.forEach(n,function(n){t.forEach(n,function(t,n){var a=e.parse(t),s=i(n);return o.push(s),r.push(a),!1})}),{getPattern:function(e){var n;return t.forEach(o,function(t,i){return t.test(e)?(n=i,!1):void 0}),void 0===n?null:r[n]},patterns:r,matchers:o}}var i=function(e){return"*"===e?/.*/:new RegExp(e)};return n}(e,t),function(){var e={get:function(e){if("number"==typeof e.selectionStart)return{begin:e.selectionStart,end:e.selectionEnd};var t=document.selection.createRange();if(t&&t.parentElement()===e){var n=e.createTextRange(),i=e.createTextRange(),o=e.value.length;return n.moveToBookmark(t.getBookmark()),i.collapse(!1),n.compareEndPoints("StartToEnd",i)>-1?{begin:o,end:o}:{begin:-n.moveStart("character",-o),end:-n.moveEnd("character",-o)}}return{begin:0,end:0}},set:function(e,t){if("object"!=typeof t&&(t={begin:t,end:t}),e.setSelectionRange)e.focus(),e.setSelectionRange(t.begin,t.end);else if(e.createTextRange){var n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t.end),n.moveStart("character",t.begin),n.select()}}};return e}(),t),i="formatter";$.fn[i]=function(e){return"object"==typeof e&&this.each(function(){$.data(this,"plugin_"+i)||$.data(this,"plugin_"+i,new n(this,e))}),this.resetPattern=function(e){return this.each(function(){var t=$.data(this,"plugin_"+i);t&&t.resetPattern(e)}),this},this},$.fn[i].addInptType=function(e,t){n.addInptType(e,t)}}),function(e,t){function n(e,t){p(e).push(t)}function i(i,o,r){var a=i.children(o.headerTag),s=i.children(o.bodyTag);a.length>s.length?z(Q,"contents"):a.length<s.length&&z(Q,"titles");var l=o.startIndex;if(r.stepCount=a.length,o.saveState&&e.cookie){var d=e.cookie(U+g(i)),c=parseInt(d,0);!isNaN(c)&&c<r.stepCount&&(l=c)}r.currentIndex=l,a.each(function(o){var r=e(this),a=s.eq(o),l=a.data("mode"),d=null==l?Z.html:v(Z,/^\s*$/.test(l)||isNaN(l)?l:parseInt(l,0)),c=d===Z.html||a.data("url")===t?"":a.data("url"),u=d!==Z.html&&"1"===a.data("loaded"),h=e.extend({},te,{title:r.html(),content:d===Z.html?a.html():"",contentUrl:c,contentMode:d,contentLoaded:u});n(i,h)})}function o(e){e.triggerHandler("canceled")}function r(e,t){return e.currentIndex-t}function a(t,n){var i=l(t);t.unbind(i).removeData("uid").removeData("options").removeData("state").removeData("steps").removeData("eventNamespace").find(".actions a").unbind(i),t.removeClass(n.clearFixCssClass+" vertical");var o=t.find(".content > *");o.removeData("loaded").removeData("mode").removeData("url"),o.removeAttr("id").removeAttr("role").removeAttr("tabindex").removeAttr("class").removeAttr("style")._removeAria("labelledby")._removeAria("hidden"),t.find(".content > [data-mode='async'],.content > [data-mode='iframe']").empty();var r=e('<{0} class="{1}"></{0}>'.format(t.get(0).tagName,t.attr("class"))),a=t._id();return null!=a&&""!==a&&r._id(a),r.html(t.find(".content").html()),t.after(r),t.remove(),r}function s(e,t){var n=e.find(".steps li").eq(t.currentIndex);e.triggerHandler("finishing",[t.currentIndex])?(n.addClass("done").removeClass("error"),e.triggerHandler("finished",[t.currentIndex])):n.addClass("error")}function l(e){var t=e.data("eventNamespace");return null==t&&(t="."+g(e),e.data("eventNamespace",t)),t}function d(e,t){var n=g(e);return e.find("#"+n+V+t)}function c(e,t){var n=g(e);return e.find("#"+n+Y+t)}function u(e,t){var n=g(e);return e.find("#"+n+G+t)}function h(e){return e.data("options")}function f(e){return e.data("state")}function p(e){return e.data("steps")}function m(e,t){var n=p(e);return(t<0||t>=n.length)&&z(X),n[t]}function g(e){var t=e.data("uid");return null==t&&(null==(t=e._id())&&(t="steps-uid-".concat(W),e._id(t)),W++,e.data("uid",t)),t}function v(e,n){if(q("enumType",e),q("keyOrValue",n),"string"==typeof n){var i=e[n];return i===t&&z("The enum key '{0}' does not exist.",n),i}if("number"==typeof n){for(var o in e)if(e[o]===n)return n;z("Invalid enum value '{0}'.",n)}else z("Invalid key or value type.")}function y(e,t,n){return x(e,t,n,T(n,1))}function _(e,t,n){return x(e,t,n,r(n,1))}function b(e,t,n,i){if((i<0||i>=n.stepCount)&&z(X),!(t.forceMoveForward&&i<n.currentIndex)){var o=n.currentIndex;return e.triggerHandler("stepChanging",[n.currentIndex,i])?(n.currentIndex=i,B(e,t,n),S(e,t,n,o),k(e,t,n),D(e,t,n),j(e,t,n,i,o,function(){e.triggerHandler("stepChanged",[i,o])})):e.find(".steps li").eq(o).addClass("error"),!0}}function T(e,t){return e.currentIndex+t}function C(t){var n=e.extend(!0,{},ne,t);return this.each(function(){var t=e(this),o={currentIndex:n.startIndex,currentStep:null,stepCount:0,transitionElement:null};t.data("options",n),t.data("state",o),t.data("steps",[]),i(t,n,o),N(t,n,o),$(t,n),n.autoFocus&&0===W&&d(t,n.startIndex).focus(),t.triggerHandler("init",[n.startIndex])})}function E(t,n,i,o,r){(o<0||o>i.stepCount)&&z(X),w(t,o,r=e.extend({},te,r)),i.currentIndex!==i.stepCount&&i.currentIndex>=o&&(i.currentIndex++,B(t,n,i)),i.stepCount++;var a=t.find(".content"),s=e("<{0}>{1}</{0}>".format(n.headerTag,r.title)),l=e("<{0}></{0}>".format(n.bodyTag));return null!=r.contentMode&&r.contentMode!==Z.html||l.html(r.content),0===o?a.prepend(l).prepend(s):c(t,o-1).after(l).after(s),L(t,i,l,o),F(t,n,i,s,o),R(t,n,i,o),o===i.currentIndex&&S(t,n,i),k(t,n,i),t}function w(e,t,n){p(e).splice(t,0,n)}function I(t){var n=e(this),i=h(n),o=f(n);if(i.suppressPaginationOnFocus&&n.find(":focus").is(":input"))return t.preventDefault(),!1;var r={left:37,right:39};t.keyCode===r.left?(t.preventDefault(),_(n,i,o)):t.keyCode===r.right&&(t.preventDefault(),y(n,i,o))}function D(t,n,i){if(i.stepCount>0){var o=i.currentIndex,r=m(t,o);if(!n.enableContentCache||!r.contentLoaded)switch(v(Z,r.contentMode)){case Z.iframe:t.find(".content > .body").eq(i.currentIndex).empty().html('<iframe src="'+r.contentUrl+'" frameborder="0" scrolling="no" />').data("loaded","1");break;case Z.async:var a=c(t,o)._aria("busy","true").empty().append(P(n.loadingTemplate,{text:n.labels.loading}));e.ajax({url:r.contentUrl,cache:!1}).done(function(e){a.empty().html(e)._aria("busy","false").data("loaded","1"),t.triggerHandler("contentLoaded",[o])})}}}function x(e,t,n,i){var o=n.currentIndex;if(i>=0&&i<n.stepCount&&!(t.forceMoveForward&&i<n.currentIndex)){var r=d(e,i),a=r.parent(),s=a.hasClass("disabled");return a._enableAria(),r.click(),o!==n.currentIndex||!s||(a._enableAria(!1),!1)}return!1}function O(t){t.preventDefault();var n=e(this),i=n.parent().parent().parent().parent(),r=h(i),a=f(i),l=n.attr("href");switch(l.substring(l.lastIndexOf("#")+1)){case"cancel":o(i);break;case"finish":s(i,a);break;case"next":y(i,r,a);break;case"previous":_(i,r,a)}}
118function k(e,t,n){if(t.enablePagination){var i=e.find(".actions a[href$='#finish']").parent(),o=e.find(".actions a[href$='#next']").parent();if(!t.forceMoveForward)e.find(".actions a[href$='#previous']").parent()._enableAria(n.currentIndex>0);t.enableFinishButton&&t.showFinishButtonAlways?(i._enableAria(n.stepCount>0),o._enableAria(n.stepCount>1&&n.stepCount>n.currentIndex+1)):(i._showAria(t.enableFinishButton&&n.stepCount===n.currentIndex+1),o._showAria(0===n.stepCount||n.stepCount>n.currentIndex+1)._enableAria(n.stepCount>n.currentIndex+1||!t.enableFinishButton))}}function S(t,n,i,o){var r=d(t,i.currentIndex),a=e('<span class="current-info audible">'+n.labels.current+" </span>"),s=t.find(".content > .title");if(null!=o){var l=d(t,o);l.parent().addClass("done").removeClass("error")._selectAria(!1),s.eq(o).removeClass("current").next(".body").removeClass("current"),a=l.find(".current-info"),r.focus()}r.prepend(a).parent()._selectAria().removeClass("done")._enableAria(),s.eq(i.currentIndex).addClass("current").next(".body").addClass("current")}function R(e,t,n,i){for(var o=g(e),r=i;r<n.stepCount;r++){var a=o+V+r,s=o+Y+r,l=o+G+r,d=e.find(".title").eq(r)._id(l);e.find(".steps a").eq(r)._id(a)._aria("controls",s).attr("href","#"+l).html(P(t.titleTemplate,{index:r+1,title:d.html()})),e.find(".body").eq(r)._id(s)._aria("labelledby",l)}}function $(e,t){var n=l(e);e.bind("canceled"+n,t.onCanceled),e.bind("contentLoaded"+n,t.onContentLoaded),e.bind("finishing"+n,t.onFinishing),e.bind("finished"+n,t.onFinished),e.bind("init"+n,t.onInit),e.bind("stepChanging"+n,t.onStepChanging),e.bind("stepChanged"+n,t.onStepChanged),t.enableKeyNavigation&&e.bind("keyup"+n,I),e.find(".actions a").bind("click"+n,O)}function A(e,t,n,i){return!(i<0||i>=n.stepCount||n.currentIndex===i)&&(K(e,i),n.currentIndex>i&&(n.currentIndex--,B(e,t,n)),n.stepCount--,u(e,i).remove(),c(e,i).remove(),d(e,i).parent().remove(),0===i&&e.find(".steps li").first().addClass("first"),i===n.stepCount&&e.find(".steps li").eq(i).addClass("last"),R(e,t,n,i),k(e,t,n),!0)}function K(e,t){p(e).splice(t,1)}function N(t,n,i){var o='<{0} class="{1}">{2}</{0}>',r=v(J,n.stepsOrientation)===J.vertical?" vertical":"",a=e(o.format(n.contentContainerTag,"content "+n.clearFixCssClass,t.html())),s=e(o.format(n.stepsContainerTag,"steps "+n.clearFixCssClass,'<ul role="tablist"></ul>')),l=a.children(n.headerTag),d=a.children(n.bodyTag);t.attr("role","application").empty().append(s).append(a).addClass(n.cssClass+" "+n.clearFixCssClass+r),d.each(function(n){L(t,i,e(this),n)}),l.each(function(o){F(t,n,i,e(this),o)}),S(t,n,i),M(t,n,i)}function L(e,t,n,i){var o=g(e),r=o+Y+i,a=o+G+i;n._id(r).attr("role","tabpanel")._aria("labelledby",a).addClass("body")._showAria(t.currentIndex===i)}function M(e,t,n){if(t.enablePagination){var i='<{0} class="actions {1}"><ul role="menu" aria-label="{2}">{3}</ul></{0}>',o='<li><a href="#{0}" role="menuitem">{1}</a></li>',r="";t.forceMoveForward||(r+=o.format("previous",t.labels.previous)),r+=o.format("next",t.labels.next),t.enableCancelButton&&(r+=o.format("cancel",t.labels.cancel)),e.append(i.format(t.actionContainerTag,t.clearFixCssClass,t.labels.pagination,r)),k(e,t,n),D(e,t,n)}}function P(e,n){for(var i=e.match(/#([a-z]*)#/gi),o=0;o<i.length;o++){var r=i[o],a=r.substring(1,r.length-1);n[a]===t&&z("The key '{0}' does not exist in the substitute collection!",a),e=e.replace(r,n[a])}return e}function F(t,n,i,o,r){var a=g(t),s=a+V+r,d=a+Y+r,c=a+G+r,u=t.find(".steps > ul"),h=P(n.titleTemplate,{index:r+1,title:o.html()}),f=e('<li role="tab"><a id="'+s+'" href="#'+c+'" aria-controls="'+d+'">'+h+"</a></li>");f._enableAria(n.enableAllSteps||i.currentIndex>r),i.currentIndex>r&&f.addClass("done"),o._id(c).attr("tabindex","-1").addClass("title"),0===r?u.prepend(f):u.find("li").eq(r-1).after(f),0===r&&u.find("li").removeClass("first").eq(r).addClass("first"),r===i.stepCount-1&&u.find("li").removeClass("last").eq(r).addClass("last"),f.children("a").bind("click"+l(t),H)}function B(t,n,i){n.saveState&&e.cookie&&e.cookie(U+g(t),i.currentIndex)}function j(t,n,i,o,r,a){var s=t.find(".content > .body"),l=v(ee,n.transitionEffect),d=n.transitionEffectSpeed,c=s.eq(o),u=s.eq(r);switch(l){case ee.fade:case ee.slide:var h=l===ee.fade?"fadeOut":"slide
118Up",p=l===ee.fade?"fadeIn":"slideDown";i.transitionElement=c,u[h](d,function(){var t=f(e(this)._showAria(!1).parent().parent());t.transitionElement&&(t.transitionElement[p](d,function(){e(this)._showAria()}).promise().done(a),t.transitionElement=null)});break;case ee.slideLeft:var m=u.outerWidth(!0),g=o>r?-m:m,y=o>r?m:-m;e.when(u.animate({left:g},d,function(){e(this)._showAria(!1)}),c.css("left",y+"px")._showAria().animate({left:0},d)).done(a);break;default:e.when(u._showAria(!1),c._showAria()).done(a)}}function H(t){t.preventDefault();var n=e(this),i=n.parent().parent().parent().parent(),o=h(i),r=f(i),a=r.currentIndex;if(n.parent().is(":not(.disabled):not(.current)")){var s=n.attr("href");b(i,o,r,parseInt(s.substring(s.lastIndexOf("-")+1),0))}if(a===r.currentIndex)return d(i,a).focus(),!1}function z(e){throw arguments.length>1&&(e=e.format(Array.prototype.slice.call(arguments,1))),new Error(e)}function q(e,t){null==t&&z("The argument '{0}' is null or undefined.",e)}e.fn.extend({_aria:function(e,t){return this.attr("aria-"+e,t)},_removeAria:function(e){return this.removeAttr("aria-"+e)},_enableAria:function(e){return null==e||e?this.removeClass("disabled")._aria("disabled","false"):this.addClass("disabled")._aria("disabled","true")},_showAria:function(e){return null==e||e?this.show()._aria("hidden","false"):this.hide()._aria("hidden","true")},_selectAria:function(e){return null==e||e?this.addClass("current")._aria("selected","true"):this.removeClass("current")._aria("selected","false")},_id:function(e){return e?this.attr("id",e):this.attr("id")}}),String.prototype.format||(String.prototype.format=function(){for(var t=1===arguments.length&&e.isArray(arguments[0])?arguments[0]:arguments,n=this,i=0;i<t.length;i++){var o=new RegExp("\\{"+i+"\\}","gm");n=n.replace(o,t[i])}return n});var W=0,U="jQu3ry_5teps_St@te_",V="-t-",Y="-p-",G="-h-",X="Index out of range.",Q="One or more corresponding step {0} are missing.";e.fn.steps=function(t){return e.fn.steps[t]?e.fn.steps[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist on jQuery.steps"):C.apply(this,arguments)},e.fn.steps.add=function(e){var t=f(this);return console.log("state we have",t),E(this,h(this),t,t.stepCount,e)},e.fn.steps.destroy=function(){return a(this,h(this))},e.fn.steps.finish=function(){s(this,f(this))},e.fn.steps.getCurrentIndex=function(){return f(this).currentIndex},e.fn.steps.getCurrentStep=function(){return m(this,f(this).currentIndex)},e.fn.steps.getStep=function(e){ 119return m(this,e)},e.fn.steps.insert=function(e,t){return E(this,h(this),f(this),e,t)},e.fn.steps.next=function(){return y(this,h(this),f(this))},e.fn.steps.previous=function(){return _(this,h(this),f(this))},e.fn.steps.remove=function(e){return A(this,h(this),f(this),e)},e.fn.steps.setStep=function(){throw new Error("Not yet implemented!")},e.fn.steps.skip=function(){throw new Error("Not yet implemented!")};var Z=e.fn.steps.contentMode={html:0,iframe:1,async:2},J=e.fn.steps.stepsOrientation={horizontal:0,vertical:1},ee=e.fn.steps.transitionEffect={none:0,fade:1,slide:2,slideLeft:3},te=e.fn.steps.stepModel={title:"",content:"",contentUrl:"",contentMode:Z.html,contentLoaded:!1},ne=e.fn.steps.defaults={headerTag:"h1",bodyTag:"div",contentContainerTag:"div",actionContainerTag:"div",stepsContainerTag:"div",cssClass:"wizard",clearFixCssClass:"clearfix",stepsOr
119ientation:J.horizontal,titleTemplate:'<span class="number">#index#</span> #title#',loadingTemplate:'<span class="spinner"></span> #text#',autoFocus:!1,enableAllSteps:!1,enableKeyNavigation:!0,enablePagination:!0,suppressPaginationOnFocus:!0,enableContentCache:!0,enableCancelButton:!1,enableFinishButton:!0,preloadContent:!1,showFinishButtonAlways:!1,forceMoveForward:!1,saveState:!1,startIndex:0,transitionEffect:ee.none,transitionEffectSpeed:200,onStepChanging:function(){return!0},onStepChanged:function(){},onCanceled:function(){},onFinishing:function(){return!0},onFinished:function(){},onContentLoaded:function(){},onInit:function(){},labels:{cancel:"Cancel",current:"current step:",pagination:"Pagination",finish:"End",next:"Next",previous:"Previous",loading:"Loading ..."}}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return _i.apply(null,arguments)}function t(e){_i=e}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t;for(t in e)return!1;return!0}function r(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,i){return yt(e,t,n,i,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return null==e._pf&&(e._pf=h()),e._pf}function p(e){if(null==e._isValid){var t=f(e),n=bi.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&t.bigHour===undefined),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function m(e){var t=u(NaN);return null!=e?c(f(t),e):f(t).userInvalidated=!0,t}function g(e,t){var n,i,o;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=f(t)),r(t._locale)||(e._locale=t._locale),Ti.length>0)for(n=0;n<Ti.length;n++)r(o=t[i=Ti[n]])||(e[i]=o);return e}function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ci&&(Ci=!0,e.updateOffset(this),Ci=!1)}function y(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function _(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=_(t)),n}function T(e,t,n){var i,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(i=0;i<o;i++)(n&&e[i]!==t[i]||!n&&b(e[i])!==b(t[i]))&&a++;return a+r}function C(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function E(t,n){var i=!0;return c(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),i){for(var o,r=[],a=0;a<arguments.length;a++){if(o="","object"==typeof arguments[a]){for(var s in o+="\n["+a+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[a];r.push(o)}C(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function w(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),Ei[t]||(C(n),Ei[t]=!0)}function I(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e){var t,n;for(n in e)I(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function x(e,t){var n,o=c({},e);
119for(n in t)d(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},c(o[n],e[n]),c(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)d(e,n)&&!d(t,n)&&i(e[n])&&(o[n]=c({},o[n]));return o}function O(e){null!=e&&this.set(e)}function k(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return I(i)?i.call(t,n):i}function S(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function R(){return this._invalidDate}function $(e){return this._ordinal.replace("%d",e)}function A(e,t,n,i){var o=this._relativeTime[n];return I(o)?o(e,t,n,i):o.replace(/%d/i,e)}function K(e,t){var n=this._relativeTime[e>0?"future":"past"];return I(n)?n(t):n.replace(/%s/i,t)}function N(e,t){var n=e.toLowerCase();Ri[n]=Ri[n+"s"]=Ri[t]=e}function L(e){return"string"==typeof e?Ri[e]||Ri[e.toLowerCase()]:undefined}function M(e){var t,n,i={};for(n in e)d(e,n)&&(t=L(n))&&(i[t]=e[n]);return i}function P(e,t){$i[e]=t}function F(e){var t=[];for(var n in e)t.push({unit:n,priority:$i[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(t,n){return function(i){return null!=i?(H(this,t,i),e.updateOffset(this,n),this):j(this,t)}}function j(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function H(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function z(e){return I(this[e=L(e)])?this[e]():this}function q(e,t){if("object"==typeof e)for(var n=F(e=M(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(I(this[e=L(e)]))return this[e](t);return this}function W(e,t,n){var i=""+Math.abs(e),o=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}function U(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(Li[e]=o),t&&(Li[t[0]]=function(){return W(o.apply(this,arguments),t[1],t[2])}),n&&(Li[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(e){var t,n,i=e.match(Ai);for(t=0,n=i.length;t<n;t++)Li[i[t]]?i[t]=Li[i[t]]:i[t]=V(i[t]);return function(t){var o,r="";for(o=0;o<n;o++)r+=I(i[o])?i[o].call(t,e):i[o];return r}}function G(e,t){return e.isValid()?(t=X(t,e.localeData()),Ni[t]=Ni[t]||Y(t),Ni[t](e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Ki.lastIndex=0;i>=0&&Ki.test(e);)e=e.replace(Ki,n),Ki.lastIndex=0,i-=1;return e}function Q(e,t,n){eo[e]=I(t)?t:function(e){return e&&n?n:t}}function Z(e,t){return d(eo,e)?eo[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,o){return t||n||i||o}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e,t){var n,i=t;
vendor: 11,227 bytes, line 119
119for("string"==typeof e&&(e=[e]),a(t)&&(i=function(e,n){n[t]=b(e)}),n=0;n<e.length;n++)to[e[n]]=i}function ne(e,t){te(e,function(e,n,i,o){i._w=i._w||{},t(e,i._w,i,o)})}function ie(e,t,n){null!=t&&d(to,e)&&to[e](t,n._a,n,e)}function oe(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function re(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fo).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone}function ae(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fo.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function se(e,t,n){var i,o,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=ho.call(this._shortMonthsParse,a))?o:null:-1!==(o=ho.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=ho.call(this._shortMonthsParse,a))?o:-1!==(o=ho.call(this._longMonthsParse,a))?o:null:-1!==(o=ho.call(this._longMonthsParse,a))?o:-1!==(o=ho.call(this._shortMonthsParse,a))?o:null}function le(e,t,n){var i,o,r;if(this._monthsParseExact)return se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=u([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function de(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(!a(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ce(t){return null!=t?(de(this,t),e.updateOffset(this,!0),this):j(this,"Month")}function ue(){return oe(this.year(),this.month())}function he(e){return this._monthsParseExact?(d(this,"_monthsRegex")||pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=go),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function fe(e){return this._monthsParseExact?(d(this,"_monthsRegex")||pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=vo),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pe(){function e(e,t){return t.length-e.length}var t,n,i=[],o=[],r=[];for(t=0;t<12;t++)n=u([2e3,t]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),o.sort(e),r.sort(e),t=0;t<12;t++)i[t]=ee(i[t]),o[t]=ee(o[t]);for(t=0;t<24;t++)r[t]=ee(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function me(e){return ge(e)?366:365}function ge(e){return e%4==0&&e%100!=0||e%400==0}function ve(){return ge(this.year())}function ye(e,t,n,i,o,r,a){var s=new Date(e,t,n,i,o,r,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function _e(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e,t,n){var i=7+t-n;return-((7+_e(e,0,i).getUTCDay()-t)%7)+i-1}function Te(e,t,n,i,o){var r,a,s=1+7*(t-1)+(7+n-i)%7+be(e,i,o);return s<=0?a=me(r=e-1)+s:s>me(e)?(r=e+1,a=s-me(e)):(r=e,a=s),{year:r,dayOfYear:a}}function Ce(e,t,n){var i,o,r=be(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?i=a+Ee(o=e.year()-1,t,n):a>Ee(e.year(),t,n)?(i=a-Ee(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Ee(e,t,n){var i=be(e,t,n),o=be(e+1,t,n);return(me(e)-i+o)/7}function we(e){return Ce(e,this._week.dow,this._week.doy).week}function Ie(){return this._week.dow}function De(){return this._week.doy}function xe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Oe(e){var t=Ce(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function ke(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Se(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Re(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function $e(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ae(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ke(e,t,n){var i,o,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ho.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ho.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=ho.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=ho.call(this._weekdaysParse,a))?o:-1!==(o=ho.call(this._shortWeekdaysParse,a))?o:-1!==(o=ho.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ho.call(this._shortWeekdaysParse,a))?o:-1!==(o=ho.call(this._weekdaysParse,a))?o:-1!==(o=ho.call(this._minWeekdaysParse,a))?o:null:-1!==(o=ho.call(this._minWeekdaysParse,a))?o:-1!==(o=ho.call(this._weekdaysParse,a))?o:-1!==(o=ho.call(this._shortWeekdaysParse,a))?o:null}function Ne(e,t,n){var i,o,r;if(this._weekdaysParseExact)return Ke.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Le(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=ke(e,this.localeData()),this.add(e-t,"d")):t}function Me(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Pe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Se(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Fe(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Eo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function je(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Io),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function He(){function e(e,t){return t.length-e.length}var t,n,i,o,r,a=[],s=[],l=[],d=[];for(t=0;t<7;t++)n=u([2e3,1]).day(t),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(i),s.push(o),l.push(r),d.push(i),d.push(o),d.push(r);for(a.sort(e),s.sort(e),l.sort(e),d.sort(e),t=0;t<7;t++)s[t]=ee(s[t]),l[t]=ee(l[t]),d[t]=ee(d[t]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ze(){return this.hours()%12||12}function qe(){return this.hours()||24}function We(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ue(e,t){return t._meridiemParse}function Ve(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ye(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ge(e){return e?e.toLowerCase().replace("_","-"):e}function Xe(e){for(var t,n,i,o,r=0;r<e.length;){for(t=(o=Ge(e[r]).split("-")).length,n=(n=Ge(e[r+1]))?n.split("-"):null;t>0;){if(i=Qe(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&T(o,n,!0)>=t-1)break;t--}r++}return null}function Qe(e){var t=null;if(!So[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Do._abbr,require("./locale/"+e),Ze(t)}catch(n){}return So[e]}function Ze(e,t){var n;return e&&(n=r(t)?tt(e):Je(e,t))&&(Do=n),Do._abbr}function Je(e,t){if(null!==t){var n=ko;if(t.abbr=e,null!=So[e])w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=So[e]._config;else if(null!=t.parentLocale){if(null==So[t.parentLocale])return Ro[t.parentLocale]||(Ro[t.parentLocale]=[]),Ro[t.parentLocale].push({name:e,config:t}),null;n=So[t.parentLocale]._config}return So[e]=new O(x(n,t)),Ro[e]&&Ro[e].forEach(function(e){Je(e.name,e.config)}),Ze(e),So[e]}return delete So[e],null}function et(e,t){if(null!=t){var n,i=ko;null!=So[e]&&(i=So[e]._config),(n=new O(t=x(i,t))).parentLocale=So[e],So[e]=n,Ze(e)}else null!=So[e]&&(null!=So[e].parentLocale?So[e]=So[e].parentLocale:null!=So[e]&&delete So[e]);return So[e]}function tt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Do;if(!n(e)){if(t=Qe(e))return t;e=[e]}return Xe(e)}function nt(){return wi(So)}function it(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[io]<0||n[io]>11?io:n[oo]<1||n[oo]>oe(n[no],n[io])?oo:n[ro]<0||n[ro]>
11924||24===n[ro]&&(0!==n[ao]||0!==n[so]||0!==n[lo])?ro:n[ao]<0||n[ao]>59?ao:n[so]<0||n[so]>59?so:n[lo]<0||n[lo]>999?lo:-1,f(e)._overflowDayOfYear&&(t<no||t>oo)&&(t=oo),f(e)._overflowWeeks&&-1===t&&(t=co),f(e)._overflowWeekday&&-1===t&&(t=uo),f(e).overflow=t),e}function ot(e){var t,n,i,o,r,a,s=e._i,l=$o.exec(s)||Ao.exec(s);if(l){for(f(e).iso=!0,t=0,n=No.length;t<n;t++)if(No[t][1].exec(l[1])){o=No[t][0],i=!1!==No[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=Lo.length;t<n;t++)if(Lo[t][1].exec(l[3])){r=(l[2]||" ")+Lo[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(l[4]){if(!Ko.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(r||"")+(a||""),ut(e)}else e._isValid=!1}function rt(e){var t,n,i,o,r,a,s,l,d={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},c="YXWVUTSRQPONZABCDEFGHIKLM";if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=Po.exec(t)){if(i=n[1]?"ddd"+(5===n[1].length?", ":" "):"",o="D MMM "+(n[2].length>10?"YYYY ":"YY "),r="HH:mm"+(n[4]?":ss":""),n[1]){var u=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][new Date(n[2]).getDay()];if(n[1].substr(0,3)!==u)return f(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:s=0===l?" +0000":((l=c.indexOf(n[5][1].toUpperCase())-12)<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00";break;case 4:s=d[n[5]];break;default:s=d[" GMT"]}n[5]=s,e._i=n.splice(1).join(""),a=" ZZ",e._f=i+o+r+a,ut(e),f(e).rfc2822=!0}else e._isValid=!1}function at(t){var n=Mo.exec(t._i);null===n?(ot(t),!1===t._isValid&&(delete t._isValid,rt(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))):t._d=new Date(+n[1])}function st(e,t,n){return null!=e?e:null!=t?t:n}function lt(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function dt(e){var t,n,i,o,r=[];if(!e._d){for(i=lt(e),e._w&&null==e._a[oo]&&null==e._a[io]&&ct(e),null!=e._dayOfYear&&(o=st(e._a[no],i[no]),(e._dayOfYear>me(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=_e(o,0,e._dayOfYear),e._a[io]=n.getUTCMonth(),e._a[oo]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ro]&&0===e._a[ao]&&0===e._a[so]&&0===e._a[lo]&&(e._nextDay=!0,e._a[ro]=0),e._d=(e._useUTC?_e:ye).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ro]=24)}}function ct(e){var t,n,i,o,r,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=st(t.GG,e._a[no],Ce(_t(),1,4).year),i=st(t.W,1),((o=st(t.E,1))<1||o>7)&&(l=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var d=Ce(_t(),r,a);n=st(t.gg,e._a[no],d.year),i=st(t.w,d.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(l=!0)):o=r}i<1||i>Ee(n,r,a)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=Te(n,i,o,r,a),e._a[no]=s.year,e._dayOfYear=s.dayOfYear)}function ut(t){if(t._f!==e.ISO_8601)if(t._f!==e.RFC_2822){t._a=[],f(t).empty=!0;var n,i,o,r,a,s=""+t._i,l=s.length,d=0;for(o=X(t._f,t._locale).match(Ai)||[],n=0;n<o.length;n++)r=o[n],(i=(s.match(Z(r,t))||[])[0])&&((a=s.substr(0,s.indexOf(i))).length>0&&f(t).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),d+=i.length),Li[r]?(i?f(t).empty=!1:f(t).unusedTokens.push(r),ie(r,i,t)):t._strict&&!i&&f(t).unusedTokens.push(r);f(t).charsLeftOver=l-d,s.length>0&&f(t).unusedInput.push(s),t._a[ro]<=12&&!0===f(t).bigHour&&t._a[ro]>0&&(f(t).bigHour=undefined),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[ro]=ht(t._locale,t._a[ro],t._meridiem),dt(t),it(t)}else rt(t);else ot(t)}function ht(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function ft(e){var t,n,i,o,r;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)r=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],ut(t),p(t)&&(r+=f(t).charsLeftOver,r+=10*f(t).unusedTokens.length,f(t).score=r,(null==i||r<i)&&(i=r,n=t));c(e,n||t)}function pt(e){if(!e._d){var t=M(e._i);e._a=l([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),dt(e)}}function mt(e){var t=new v(it(gt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function gt(e){var t=e._i,i=e._f;return e._locale=e._locale||tt(e._l),null===t||i===undefined&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),y(t)?new v(it(t)):(s(t)?e._d=t:n(i)?ft(e):i?ut(e):vt(e),p(e)||(e._d=null),e))}function vt(t){var o=t._i;r(o)?t._d=new Date(e.now()):s(o)?t._d=new Date(o.valueOf()):"string"==typeof o?at(t):n(o)?(t._a=l(o.slice(0),function(e){return parseInt(e,10)}),dt(t)):i(o)?pt(t):a(o)?t._d=new Date(o):e.createFromInputFallback(t)}function yt(e,t,r,a,s){var l={};return!0!==r&&!1!==r||(a=r,r=undefined),(i(e)&&o(e)||n(e)&&0===e.length)&&(e=undefined),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=r,l._i=e,l._f=t,l._strict=a,mt(l)}function _t(e,t,n,i){return yt(e,t,n,i,!1)}function bt(e,t){var i,o;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return _t();for(i=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](i)||(i=t[o]);return i}function Tt(){return bt("isBefore",[].slice.call(arguments,0))}function Ct(){return bt("isAfter",[].slice.call(arguments,0))}function Et(e){for(var t in e)if(-1===Ho.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Ho.length;++i)if(e[Ho[i]]){if(n)return!1;parseFloat(e[Ho[i]])!==b(e[Ho[i]])&&(n=!0)}return!0}function wt(){return this._isValid}function It(){return qt(NaN)}function Dt(e){var t=M(e),n=t.year||0,i=t.quarter||0,o=t.month||0,r=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,d=t.second||0,c=t.millisecond||0;this._isValid=Et(t),this._milliseconds=+c+1e3*d+6e4*l+1e3*s*60*60,this._days=+a+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=tt(),this._bubble()}function xt(e){return e instanceof Dt}function Ot(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function kt(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+W(~~(e/60),2)+t+W(~~e%60,2)})}function St(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(zo)||["-",0,0],o=60*i[1]+b(i[2]);return 0===o?0:"+"===i[0]?o:-o}function Rt(t,n){var i,o;return n._isUTC?(i=n.clone(),o=(y(t)||s(t)?t.valueOf():_t(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),e.updateOffset(i,!1),i):_t(t).local()}
119function $t(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function At(t,n,i){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=St(Qi,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&n&&(o=$t(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!n||this._changeInProgress?Gt(this,qt(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:$t(this)}function Kt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Nt(e){return this.utcOffset(0,e)}function Lt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract($t(this),"m")),this}function Mt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=St(Xi,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Pt(e){return!!this.isValid()&&(e=e?_t(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ft(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bt(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=gt(e))._a){var t=e._isUTC?u(e._a):_t(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function jt(){return!!this.isValid()&&!this._isUTC}function Ht(){return!!this.isValid()&&this._isUTC}function zt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function qt(e,t){var n,i,o,r=e,s=null;return xt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:a(e)?(r={},t?r[t]=e:r.milliseconds=e):(s=qo.exec(e))?(n="-"===s[1]?-1:1,r={y:0,d:b(s[oo])*n,h:b(s[ro])*n,m:b(s[ao])*n,s:b(s[so])*n,ms:b(Ot(1e3*s[lo]))*n}):(s=Wo.exec(e))?(n="-"===s[1]?-1:1,r={y:Wt(s[2],n),M:Wt(s[3],n),w:Wt(s[4],n),d:Wt(s[5],n),h:Wt(s[6],n),m:Wt(s[7],n),s:Wt(s[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Vt(_t(r.from),_t(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),i=new Dt(r),xt(e)&&d(e,"_locale")&&(i._locale=e._locale),i}function Wt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ut(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(e,t){var n;return e.isValid()&&t.isValid()?(t=Rt(t,e),e.isBefore(t)?n=Ut(e,t):((n=Ut(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Yt(e,t){return function(n,i){var o;return null===i||isNaN(+i)||(w(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),Gt(this,qt(n="string"==typeof n?+n:n,i),e),this}}function Gt(t,n,i,o){var r=n._milliseconds,a=Ot(n._days),s=Ot(n._months);t.isValid()&&(o=null==o||o,r&&t._d.setTime(t._d.valueOf()+r*i),a&&H(t,"Date",j(t,"Date")+a*i),s&&de(t,j(t,"Month")+s*i),o&&e.updateOffset(t,a||s))}function Xt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Qt(t,n){var i=t||_t(),o=Rt(i,this).startOf("day"),r=e.calendarFormat(this,o)||"sameElse",a=n&&(I(n[r])?n[r].call(this,i):n[r]);return this.format(a||this.localeData().calendar(r,this,_t(i)))}function Zt(){return new v(this)}function Jt(e,t){var n=y(e)?e:_t(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(r(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function en(e,t){var n=y(e)?e:_t(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(r(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function tn(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function nn(e,t){var n,i=y(e)?e:_t(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=L(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function on(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function rn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function an(e,t,n){var i,o,r,a;return this.isValid()&&(i=Rt(e,this)).isValid()?(o=6e4*(i.utcOffset()-this.utcOffset()),"year"===(t=L(t))||"month"===t||"quarter"===t?(a=sn(this,i),"quarter"===t?a/=3:"year"===t&&(a/=12)):(r=this-i,a="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-o)/864e5:"week"===t?(r-o)/6048e5:r),n?a:_(a)):NaN}function sn(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function ln(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dn(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?G(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):I(Date.prototype.toISOString)?this.toDate().toISOString():G(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}
119function cn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]';return this.format(n+i+o+r)}function un(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=G(this,t);return this.localeData().postformat(n)}function hn(e,t){return this.isValid()&&(y(e)&&e.isValid()||_t(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.from(_t(),e)}function pn(e,t){return this.isValid()&&(y(e)&&e.isValid()||_t(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.to(_t(),e)}function gn(e){var t;return e===undefined?this._locale._abbr:(null!=(t=tt(e))&&(this._locale=t),this)}function vn(){return this._locale}function yn(e){switch(e=L(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1), 120"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function _n(e){return(e=L(e))===undefined||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function bn(){return this._d.valueOf()-6e4*(this._offset||0)}function Tn(){return Math.floor(this.valueOf()/1e3)}function Cn(){return new Date(this.valueOf())}function En(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function In(){return this.isValid()?this.toISOString():null}function Dn(){return p(this)}function xn(){return c({},f(this))}function On(){return f(this).overflow}function kn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Sn(e,t){U(0,[e,e.length],0,t)}function Rn(e){return Nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function $n(e){return Nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function An(){return Ee(this.year(),1,4)}function Kn(){var e=this.localeData()._week;return Ee(this.year(),e.dow,e.doy)}function Nn(e,t,n,i,o){var r;return null==e?Ce(this,i,o).year:(t>(r=Ee(e,i,o))&&(t=r),Ln.call(this,e,t,n,i,o))}function Ln(e,t,n,i,o){var r=Te(e,t,n,i,o),a=_e(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Mn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Pn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Fn(e,t){t[lo]=b(1e3*("0."+e))}function Bn(){return this._isUTC?"UTC":""}function jn(){return this._isUTC?"Coordinated Universal Time":""}function Hn(e){return _t(1e3*e)}function zn(){return _t.apply(null,arguments).parseZone()}function qn(e){return e}function Wn(e,t,n,i){var o=tt(),r=u().set(i,t);return o[n](r,e)}function Un(e,t,n){if(a(e)&&(t=e,e=undefined),e=e||"",null!=t)return Wn(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Wn(e,i,n,"month");return o}function Vn(e,t,n,i){"boolean"==typeof e?(a(t)&&(n=t,t=undefined),t=t||""):(n=t=e,e=!1,a(t)&&(n=t,t=undefined),t=t||"");var o,r=tt(),s=e?r._week.dow:0;if(null!=n)return Wn(t,(n+s)%7,i,"day");var l=[];for(o=0;o<7;o++)l[o]=Wn(t,(o+s)%7,i,"day");return l}function Yn(e,t){return Un(e,t,"months")}function Gn(e,t){return Un(e,t,"monthsShort")}function Xn(e,t,n){return Vn(e,t,n,"weekdays")}function Qn(e,t,n){return Vn(e,t,n,"weekdaysShort")}function Zn(e,t,n){return Vn(e,t,n,"weekdaysMin")}function Jn(){var e=this._data;return this._milliseconds=nr(this._milliseconds),this._days=nr(this._days),this._months=nr(this._months),e.milliseconds=nr(e.milliseconds),e.seconds=nr(e.seconds),e.minutes=nr(e.minutes),e.hours=nr(e.hours),e.months=nr(e.months),e.years=nr(e.years),this}function ei(e,t,n,i){var o=qt(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function ti(e,t){return ei(this,e,t,1)}function ni(e,t){return ei(this,e,t,-1)}function ii(e){return e<0?Math.floor(e):Math.ceil(e)}function oi(){var e,t,n,i,o,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return r>=0&&a>=0&&s>=0||r<=0&&a<=0&&s<=0||(r+=864e5*ii(ai(s)+a),a=0,s=0),l.milliseconds=r%1e3,e=_(r/1e3),l.seconds=e%60,t=_(e/60),l.minutes=t%60,n=_(t/60),l.hours=n%24,s+=o=_(ri(a+=_(n/24))),a-=ii(ai(o)),i=_(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function ri(e){return 4800*e/146097}function ai(e){return 146097*e/4800}function si(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=L(e))||"year"===e)return t=this._days+i/864e5,n=this._months+ri(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ai(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function di(e){return function(){return this.as(e)}}function ci(e){return e=L(e),this.isValid()?this[e+"s"]():NaN}function ui(e){return function(){return this.isValid()?this._data[e]:NaN}}function hi(){return _(this.days()/7)}function fi(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}function pi(e,t,n){var i=qt(e).abs(),o=yr(i.as("s")),r=yr(i.as("m")),a=yr(i.as("h")),s=yr(i.as("d")),l=yr(i.as("M")),d=yr(i.as("y")),c=o<=_r.ss&&["s",o]||o<_r.s&&["ss",o]||r<=1&&["m"]||r<_r.m&&["mm",r]||a<=1&&["h"]||a<_r.h&&["hh",a]||s<=1&&["d"]||s<_r.d&&["dd",s]||l<=1&&["M"]||l<_r.M&&["MM",l]||d<=1&&["y"]||["yy",d];return c[2]=t,c[3]=+e>0,c[4]=n,fi.apply(null,c)}function mi(e){return e===undefined?yr:"function"==typeof e&&(yr=e,!0)}function gi(e,t){return _r[e]!==undefined&&(t===undefined?_r[e]:(_r[e]=t,"s"===e&&(_r.ss=t-1),!0))}function vi(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=pi(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function yi(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=br(this._milliseconds)/1e3,i=br(this._days),o=br(this._months);t=_((e=_(n/60))/60),n%=60,e%=60;var r=_(o/12),a=o%=12,s=i,l=t,d=e,c=n,u=this.asSeconds();return u?(u<0?"-":"")+"P"+(r?r+"Y":"")+(a?a+"M":"")+(s?s+"D":"")+(l||d||c?"T":"")+(l?l+"H":"")+(d?d+"M":"")+(c?c+"S":""):"P0D"}var _i,bi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},Ti=e.momentProperties=[],Ci=!1,Ei={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var wi=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n},Ii={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Di={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"}
vendor: 8,527 bytes, line 120
120,xi="Invalid date",Oi="%d",ki=/\d{1,2}/,Si={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},Ri={},$i={},Ai=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ki=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ni={},Li={},Mi=/\d/,Pi=/\d\d/,Fi=/\d{3}/,Bi=/\d{4}/,ji=/[+-]?\d{6}/,Hi=/\d\d?/,zi=/\d\d\d\d?/,qi=/\d\d\d\d\d\d?/,Wi=/\d{1,3}/,Ui=/\d{1,4}/,Vi=/[+-]?\d{1,6}/,Yi=/\d+/,Gi=/[+-]?\d+/,Xi=/Z|[+-]\d\d:?\d\d/gi,Qi=/Z|[+-]\d\d(?::?\d\d)?/gi,Zi=/[+-]?\d+(\.\d{1,3})?/,Ji=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,eo={},to={},no=0,io=1,oo=2,ro=3,ao=4,so=5,lo=6,co=7,uo=8,ho=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),P("month",8),Q("M",Hi),Q("MM",Hi,Pi),Q("MMM",function(e,t){return t.monthsShortRegex(e)}),Q("MMMM",function(e,t){return t.monthsRegex(e)}),te(["M","MM"],function(e,t){t[io]=b(e)-1}),te(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);null!=o?t[io]=o:f(n).invalidMonth=e});var fo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,po="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),mo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),go=Ji,vo=Ji;U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),N("year","y"),P("year",1),Q("Y",Gi),Q("YY",Hi,Pi),Q("YYYY",Ui,Bi),Q("YYYYY",Vi,ji),Q("YYYYYY",Vi,ji),te(["YYYYY","YYYYYY"],no),te("YYYY",function(t,n){n[no]=2===t.length?e.parseTwoDigitYear(t):b(t)}),te("YY",function(t,n){n[no]=e.parseTwoDigitYear(t)}),te("Y",function(e,t){t[no]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var yo=B("FullYear",!0);U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),P("week",5),P("isoWeek",5),Q("w",Hi),Q("ww",Hi,Pi),Q("W",Hi),Q("WW",Hi,Pi),ne(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=b(e)});var _o={dow:0,doy:6};U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),Q("d",Hi),Q("e",Hi),Q("E",Hi),Q("dd",function(e,t){return t.weekdaysMinRegex(e)}),Q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Q("dddd",function(e,t){return t.weekdaysRegex(e)}),ne(["dd","ddd","dddd"],function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e}),ne(["d","e","E"],function(e,t,n,i){t[i]=b(e)});var bo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),To="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Co="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Eo=Ji,wo=Ji,Io=Ji;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,ze),U("k",["kk",2],0,qe),U("hmm",0,0,function(){return""+ze.apply(this)+W(this.minutes(),2)}),U("hmmss",0,0,function(){return""+ze.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),We("a",!0),We("A",!1),N("hour","h"),P("hour",13),Q("a",Ue),Q("A",Ue),Q("H",Hi),Q("h",Hi),Q("k",Hi),Q("HH",Hi,Pi),Q("hh",Hi,Pi),Q("kk",Hi,Pi),Q("hmm",zi),Q("hmmss",qi),Q("Hmm",zi),Q("Hmmss",qi),te(["H","HH"],ro),te(["k","kk"],function(e,t){var n=b(e);t[ro]=24===n?0:n}),te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),te(["h","hh"],function(e,t,n){t[ro]=b(e),f(n).bigHour=!0}),te("hmm",function(e,t,n){var i=e.length-2;t[ro]=b(e.substr(0,i)),t[ao]=b(e.substr(i)),f(n).bigHour=!0}),te("hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[ro]=b(e.substr(0,i)),t[ao]=b(e.substr(i,2)),t[so]=b(e.substr(o)),f(n).bigHour=!0}),te("Hmm",function(e,t){var n=e.length-2;t[ro]=b(e.substr(0,n)),t[ao]=b(e.substr(n))}),te("Hmmss",function(e,t){var n=e.length-4,i=e.length-2;t[ro]=b(e.substr(0,n)),t[ao]=b(e.substr(n,2)),t[so]=b(e.substr(i))});var Do,xo=/[ap]\.?m?\.?/i,Oo=B("Hours",!0),ko={calendar:Ii,longDateFormat:Di,invalidDate:xi,ordinal:Oi,dayOfMonthOrdinalParse:ki,relativeTime:Si,months:po,monthsShort:mo,week:_o,weekdays:bo,weekdaysMin:Co,weekdaysShort:To,meridiemParse:xo},So={},Ro={},$o=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ao=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ko=/Z|[+-]\d\d(?::?\d\d)?/,No=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Lo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mo=/^\/?Date\((\-?\d+)/i,Po=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Fo=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Bo=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),jo=function(){return Date.now?Date.now():+new Date},Ho=["year","quarter","month","week","day","hour","minute","second","millisecond"];kt("Z",":"),kt("ZZ",""),Q("Z",Qi),Q("ZZ",Qi),te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=St(Qi,e)});var zo=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var qo=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Wo=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;qt.fn=Dt.prototype,qt.invalid=It;var Uo=Yt(1,"add"),Vo=Yt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Yo=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===undefined?this.localeData():this.locale(e)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Sn("gggg","weekYear"),Sn("ggggg","weekYear"),Sn("GGGG","isoWeekYear"),Sn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),P("weekYear",1),P("isoWeekYear",1),Q("G",Gi),Q("g",Gi),Q("GG",Hi,Pi),Q("gg",Hi,Pi),Q("GGGG",Ui,Bi),Q("gggg",Ui,Bi),Q("GGGGG",Vi,ji),Q("ggggg",Vi,ji),ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=b(e)}),ne(["gg","GG"],function(t,n,i,o){n[o]=e.parseTwoDigitYear(t)}),U("Q",0,"Qo","quarter"),N("quarter","Q"),P("quarter",7),Q("Q",Mi),te("Q",function(e,t){t[
vendor: 4,880 bytes, line 120
120io]=3*(b(e)-1)}),U("D",["DD",2],"Do","date"),N("date","D"),P("date",9),Q("D",Hi),Q("DD",Hi,Pi),Q("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),te(["D","DD"],oo),te("Do",function(e,t){t[oo]=b(e.match(Hi)[0],10)});var Go=B("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),P("dayOfYear",4),Q("DDD",Wi),Q("DDDD",Fi),te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),U("m",["mm",2],0,"minute"),N("minute","m"),P("minute",14),Q("m",Hi),Q("mm",Hi,Pi),te(["m","mm"],ao);var Xo=B("Minutes",!1);U("s",["ss",2],0,"second"),N("second","s"),P("second",15),Q("s",Hi),Q("ss",Hi,Pi),te(["s","ss"],so);var Qo,Zo=B("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),P("millisecond",16),Q("S",Wi,Mi),Q("SS",Wi,Pi),Q("SSS",Wi,Fi),Qo="SSSS";Qo.length<=9;Qo+="S")Q(Qo,Yi);for(Qo="S";Qo.length<=9;Qo+="S")te(Qo,Fn);var Jo=B("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var er=v.prototype;er.add=Uo,er.calendar=Qt,er.clone=Zt,er.diff=an,er.endOf=_n,er.format=un,er.from=hn,er.fromNow=fn,er.to=pn,er.toNow=mn,er.get=z,er.invalidAt=On,er.isAfter=Jt,er.isBefore=en,er.isBetween=tn,er.isSame=nn,er.isSameOrAfter=on,er.isSameOrBefore=rn,er.isValid=Dn,er.lang=Yo,er.locale=gn,er.localeData=vn,er.max=Bo,er.min=Fo,er.parsingFlags=xn,er.set=q,er.startOf=yn,er.subtract=Vo,er.toArray=En,er.toObject=wn,er.toDate=Cn,er.toISOString=dn,er.inspect=cn,er.toJSON=In,er.toString=ln,er.unix=Tn,er.valueOf=bn,er.creationData=kn,er.year=yo,er.isLeapYear=ve,er.weekYear=Rn,er.isoWeekYear=$n,er.quarter=er.quarters=Mn,er.month=ce,er.daysInMonth=ue,er.week=er.weeks=xe,er.isoWeek=er.isoWeeks=Oe,er.weeksInYear=Kn,er.isoWeeksInYear=An,er.date=Go,er.day=er.days=Le,er.weekday=Me,er.isoWeekday=Pe,er.dayOfYear=Pn,er.hour=er.hours=Oo,er.minute=er.minutes=Xo,er.second=er.seconds=Zo,er.millisecond=er.milliseconds=Jo,er.utcOffset=At,er.utc=Nt,er.local=Lt,er.parseZone=Mt,er.hasAlignedHourOffset=Pt,er.isDST=Ft,er.isLocal=jt,er.isUtcOffset=Ht,er.isUtc=zt,er.isUTC=zt,er.zoneAbbr=Bn,er.zoneName=jn,er.dates=E("dates accessor is deprecated. Use date instead.",Go),er.months=E("months accessor is deprecated. Use month instead",ce),er.years=E("years accessor is deprecated. Use year instead",yo),er.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Kt),er.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Bt);var tr=O.prototype;tr.calendar=k,tr.longDateFormat=S,tr.invalidDate=R,tr.ordinal=$,tr.preparse=qn,tr.postformat=qn,tr.relativeTime=A,tr.pastFuture=K,tr.set=D,tr.months=re,tr.monthsShort=ae,tr.monthsParse=le,tr.monthsRegex=fe,tr.monthsShortRegex=he,tr.week=we,tr.firstDayOfYear=De,tr.firstDayOfWeek=Ie,tr.weekdays=Re,tr.weekdaysMin=Ae,tr.weekdaysShort=$e,tr.weekdaysParse=Ne,tr.weekdaysRegex=Fe,tr.weekdaysShortRegex=Be,tr.weekdaysMinRegex=je,tr.isPM=Ve,tr.meridiem=Ye,Ze("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=E("moment.lang is deprecated. Use moment.locale instead.",Ze),e.langData=E("moment.langData is deprecated. Use moment.localeData instead.",tt);var nr=Math.abs,ir=di("ms"),or=di("s"),rr=di("m"),ar=di("h"),sr=di("d"),lr=di("w"),dr=di("M"),cr=di("y"),ur=ui("milliseconds"),hr=ui("seconds"),fr=ui("minutes"),pr=ui("hours"),mr=ui("days"),gr=ui("months"),vr=ui("years"),yr=Math.round,_r={ss:44,s:45,m:45,h:22,d:26,M:11},br=Math.abs,Tr=Dt.prototype;return Tr.isValid=wt,Tr.abs=Jn,Tr.add=ti,Tr.subtract=ni,Tr.as=si,Tr.asMilliseconds=ir,Tr.asSeconds=or,Tr.asMinutes=rr,Tr.asHours=ar,Tr.asDays=sr,Tr.asWeeks=lr,Tr.asMonths=dr,Tr.asYears=cr,Tr.valueOf=li,Tr._bubble=oi,Tr.get=ci,Tr.milliseconds=ur,Tr.seconds=hr,Tr.minutes=fr,Tr.hours=pr,Tr.days=mr,Tr.weeks=hi,Tr.months=gr,Tr.years=vr,Tr.humanize=vi,Tr.toISOString=yi,Tr.toString=yi,Tr.toJSON=yi,Tr.locale=gn,Tr.localeData=vn,Tr.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",yi),Tr.lang=Yo,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Q("x",Gi),Q("X",Zi),te("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),te("x",function(e,t,n){n._d=new Date(b(e))}),e.version="2.18.1",t(_t),e.fn=er,e.min=Tt,e.max=Ct,e.now=jo,e.utc=u,e.unix=Hn,e.months=Yn,e.
vendor: 40,716 bytes, lines 120-121
120isDate=s,e.locale=Ze,e.invalid=m,e.duration=qt,e.isMoment=y,e.weekdays=Xn,e.parseZone=zn,e.localeData=tt,e.isDuration=xt,e.monthsShort=Gn,e.weekdaysMin=Zn,e.defineLocale=Je,e.updateLocale=et,e.locales=nt,e.weekdaysShort=Qn,e.normalizeUnits=L,e.relativeTimeRounding=mi,e.relativeTimeThreshold=gi,e.calendarFormat=Xt,e.prototype=er,e}),function(e,t,n,i){function o(t,n){this.settings=null,this.options=e.extend({},o.Defaults,n),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy(function(t,n){this._handlers[n]=e.proxy(this[n],this)},this)),e.each(o.Plugins,e.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),e.each(o.Workers,e.proxy(function(t,n){this._pipe.push({filter:n.filter,run:e.proxy(n.run,this)})},this)),this.setup(),this.initialize()}o.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},o.Width={Default:"default",Inner:"inner",Outer:"outer"},o.Type={Event:"event",State:"state"},o.Plugins={},o.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",n=!this.settings.autoWidth,i=this.settings.rtl,o={width:"auto","margin-left":i?t:"","margin-right":i?"":t};!n&&this.$stage.children().css(o),e.css=o}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,n=null,i=this._items.length,o=!this.settings.autoWidth,r=[];for(e.items={merge:!1,width:t};i--;)n=this._mergers[i],n=this.settings.mergeFit&&Math.min(n,this.settings.items)||n,e.items.merge=n>1||e.items.merge,r[i]=o?t*n:this._items[i].width();this._widths=r}},{filter:["items","settings"],run:function(){var t=[],n=this._items,i=this.settings,o=Math.max(2*i.items,4),r=2*Math.ceil(n.length/2),a=i.loop&&n.length?i.rewind?o:Math.max(o,r):0,s="",l="";for(a/=2;a>0;)t.push(this.normalize(t.length/2,!0)),s+=n[t[t.length-1]][0].outerHTML,t.push(this.normalize(n.length-1-(t.length-1)/2,!0)),l=n[t[t.length-1]][0].outerHTML+l,a-=1;this._clones=t,e(s).addClass("cloned").appendTo(this.$stage),e(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,n=-1,i=0,o=0,r=[];++n<t;)i=r[n-1]||0,o=this._widths[this.relative(n)]+this.settings.margin,r.push(i+o*e);this._coordinates=r}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,n={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(n)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,n=!this.settings.autoWidth,i=this.$stage.children();if(n&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],i.eq(t).css(e.css);else n&&(e.css.width=e.items.width,i.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,n,i,o=this.settings.rtl?1:-1,r=2*this.settings.stagePadding,a=this.coordinates(this.current())+r,s=a+this.width()*o,l=[];for(n=0,i=this._coordinates.length;n<i;n++)e=this._coordinates[n-1]||0,t=Math.abs(this._coordinates[n])+r*o,(this.op(e,"<=",a)&&this.op(e,">",s)||this.op(t,"<",a)&&this.op(t,">",s))&&l.push(n);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],o.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+">",{"class":this.settings.stageClass}).wrap(e("<div/>",{"class":this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},o.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return e(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},o.prototype.initialize=function(){var e,t,n;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:i,n=this.$element.children(t).width(),e.length&&n<=0&&this.preloadAutoWidthImages(e));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},o.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},o.prototype.setup=function(){var t=this.viewport(),n=this.options.responsive,i=-1,o=null;n?(e.each(n,function(e){e<=t&&e>i&&(i=Number(e))}),"function"==typeof(o=e.extend({},this.options,n[i])).stagePadding&&(o.stagePadding=o.stagePadding()),delete o.responsive,o.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):o=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=i,this.settings=o,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},o.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(t){var n=this.trigger("prepare",{content:t});return n.data||(n.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:n.data}),n.data},o.prototype.update=function(){for(var t=0,n=this._pipe.length,i=e.proxy(function(e){return this[e]},this._invalidated),o={};t<n;)(this._invalidated.all||e.grep(this._pipe[t].filter,i).length>0)&&this._pipe[t].run(o),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},o.prototype.width=function(e){switch(e=e||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},o.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},o.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},o.prototype.onDragStart=function(t){var i=null;3!==t.which&&(e.support.transform?i={x:(i=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===i.length?12:4],y:i[16===i.length?13:5]}:(i=this.$stage.position(),i={x:this.settings.rtl?i.left+this.$stage.width()-this.width()+this.settings.margin:i.left,y:i.top}),this.is("animating")&&(e.support.transform?this.animate(i.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=i,this._drag.stage.current=i,this._drag.pointer=this.pointer(t),e(n).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(n).one("mousemove.owl.core touchmove.owl.core",e.proxy(function(t){var i=this.difference(this._drag.pointer,this.pointer(t));e(n).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(i.x)<Math.abs(i.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},o.prototype.onDragMove=function(e){var t=null,n=null,i=null,o=this.difference(this._drag.pointer,this.pointer(e)),r=this.difference(this._drag.stage.start,o);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-t,r.x=((r.x-t)%n+n)%n+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),i=this.settings.pullDrag?-1*o.x/5:0,r.x=Math.max(Math.min(r.x,t+i),n+i)),this._drag.stage.current=r,this.animate(r.x))},o.prototype.onDragEnd=function(t){var i=this.difference(this._drag.pointer,this.pointer(t)),o=this._drag.stage.current,r=i.x>0^this.settings.rtl?"left":"right";e(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==i.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(o.x,0!==i.x?r:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=r,(Math.abs(i.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},o.prototype.closest=function(t,n){var o=-1,r=30,a=this.width(),s=this.coordinates();return this.settings.freeDrag||e.each(s,e.proxy(function(e,l){return"left"===n&&t>l-r&&t<l+r?o=e:"right"===n&&t>l-a-r&&t<l-a+r?o=e+1:this.op(t,"<",l)&&this.op(t,">",s[e+1]!==i?s[e+1]:l-a)&&(o="left"===n?e+1:e),-1===o},this)),this.settings.loop||(this.op(t,">",s[this.minimum()])?o=t=this.minimum():this.op(t,"<",s[this.maximum()])&&(o=t=this.maximum())),o},o.prototype.animate=function(t){var n=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),n&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):n?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},o.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},o.prototype.current=function(e){if(e===i)return this._current;if(0===this._items.length)return i;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}}) 121;t.data!==i&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},o.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,function(e,t){return t})},o.prototype.reset=function(e){(e=this.normalize(e))!==i&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},o.prototype.normalize=function(e,t){var n=this._items.length,o=t?0:this._clones.length;return!this.isNumeric(e)||n<1?e=i:(e<0||e>=n+o)&&(e=((e-o/2)%n+n)%n+o/2),e},o.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},o.prototype.maximum=function(e){var t,n,i,o=this.settings,r=this._coordinates.length;if(o.loop)r=this._clones.length/2+this._items.length-1;else if(o.autoWidth||o.merge){if(t=this._items.length)for(n=this._items[--t].width(),i=this.$element.width();t--&&!((n+=this._items[t].width()+this.settings.margin)>i););r=t+1}else r=o.center?this._items.length-1:this._items.length-o.items;return e&&(r-=this._clones.length/2),Math.max(r,0)},o.prototype.minimum=function(e){return e?0:this._clones.length/2},o.prototype.items=function(e){return e===i?this._items.slice():(e=this.normalize(e,!0),this._items[e])},o.prototype.mergers=function(e){return e===i?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},o.prototype.clones=function(t){var n=this._clones.length/2,o=n+this._items.length,r=function(e){return e%2==0?o+e/2:n-(e+1)/2};return t===i?e.map(this._clones,function(e,t){return r(t)}):e.map(this._clones,function(e,n){return e===t?r(n):null})},o.prototype.speed=function(e){return e!==i&&(this._speed=e),this._speed},o.prototype.coordinates=function(t){var n,o=1,r=t-1;return t===i?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(o=-1,r=t+1),n=this._coordinates[t],n+=(this.width()-n+(this._coordinates[r]||0))/2*o):n=this._coordinates[r]||0,n=Math.ceil(n))},o.prototype.duration=function(e,t,n){return 0===n?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},o.prototype.to=function(e,t){var n=this.current(),i=null,o=e-this.relative(n),r=(o>0)-(o<0),a=this._items.length,s=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(o)>a/2&&(o+=-1*r*a),(i=(((e=n+o)-s)%a+a)%a+s)!==e&&i-o<=l&&i-o>0&&(n=i-o,e=i,this.reset(n))):this.settings.rewind?e=(e%(l+=1)+l)%l:e=Math.max(s,Math.min(l,e)),this.speed(this.duration(n,e,t)),this.current(e),this.isVisible()&&this.update()},o.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},o.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},o.prototype.onTransitionEnd=function(e){if(e!==i&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},o.prototype.viewport=function(){var i;return this.options.responsiveBaseElement!==t?i=e(this.options.responsiveBaseElement).width():t.innerWidth?i=t.innerWidth:n.documentElement&&n.documentElement.clientWidth?i=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),i},o.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(e.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},o.prototype.add=function(t,n){var o=this.relative(this._current);n=n===i?this._items.length:this.normalize(n,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:n}),t=this.prepare(t),0===this._items.length||n===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[n-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[n].before(t),this._items.splice(n,0,t),this._mergers.splice(n,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[o]&&this.reset(this._items[o].index()),this.invalidate("items"),this.trigger("added",{content:t,position:n})},o.prototype.remove=function(e){(e=this.normalize(e,!0))!==i&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},o.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy(function(t,n){this.enter("pre-loading"),n=e(n),e(new Image).one("load",e.proxy(function(e){n.attr("src",e.target.src),n.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",n.attr("src")||n.attr("data-src")||n.attr("data-src-retina"))},this))},o.prototype.destroy=function(){for(var i in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(n).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[i].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},o.prototype.op=function(e,t,n){var i=this.settings.rtl;switch(t){case"<":return i?e>n:e<n;case">":return i?e<n:e>n;case">=":return i?e<=n:e>=n;case"<=":return i?e>=n:e<=n}},o.prototype.on=function(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on"+t,n)},o.prototype.off=function(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on"+t,n)},o.prototype.trigger=function(t,n,i){var r={item:{count:this._items.length,index:this.current()}},a=e.camelCase(e.grep(["on",t,i],function(e){return e}).join("-").toLowerCase()),s=e.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},r,n));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(s)}),this.register({type:o.Type.Event,name:t}),this.$element.trigger(s),this.settings&&"function"==typeof this.settings[a]&&this.settings[a].call(this,s)),s},o.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]===i&&(this._states.current[t]=0),this._states.current[t]++},this))},o.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]--},this))},o.prototype.register=function(t){if(t.type===o.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var n=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!n||!n.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:n.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===o.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy(function(n,i){return e.inArray(n,this._states.tags[t.name])===i},this)))},o.prototype.suppress=function(t){e.each(t,e.proxy(function(e,t){this._supress[t]=!0},this))},o.prototype.release=function(t){e.each(t,e.proxy(function(e,t){delete this._supress[t]},this))},o.prototype.pointer=function(e){var n={x:null,y:null};return(e=(e=e.originalEvent||e||t.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(n.x=e.pageX,n.y=e.pageY):(n.x=e.clientX,n.y=e.clientY),n},o.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},o.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=e(this),r=i.data("owl.carousel");r||(r=new o(this,"object"==typeof t&&t),i.data("owl.carousel",r),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,n){r.register({type:o.Type.Event,name:n}),r.$element.on(n+".owl.carousel.core",e.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([n]),r[n].apply(this,[].slice.call(arguments,1)),this.release([n]))},r))})),"string"==typeof t&&"_"!==t.charAt(0)&&r[t].apply(r,n)})},e.fn.owlCarousel.Constructor=o}(window.Zepto||window.jQuery,window,document),function(e,t){var n=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)};n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var e,n;for(e in t.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var n=this._core.settings,o=n.center&&Math.ceil(n.items/2)||n.items,r=n.center&&-1*o||0,a=(t.property&&t.property.value!==i?t.property.value:this._core.current())+r,s=this._core.clones().length,l=e.proxy(function(e,t){this.load(t)},this);for(n.lazyLoadEager>0&&(o+=n.lazyLoadEager,n.loop&&(a-=n.lazyLoadEager,o++));r++<o;)this.load(s/2+this._core.relative(a)),s&&e.each(this._core.clones(this._core.relative(a)),l),a++}},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1,lazyLoadEager:0},o.prototype.load=function(n){var i=this._core.$stage.children().eq(n),o=i&&i.find(".owl-lazy");!o||e.inArray(i.get(0),this._loaded)>-1||(o.each(e.proxy(function(n,i){var o,r=e(i),a=t.devicePixelRatio>1&&r.attr("data-src-retina")||r.attr("data-src")||r.attr("data-srcset");this._core.trigger("load",{element:r,url:a},"lazy"),r.is("img")?r.one("load.owl.lazy",e.proxy(function(){r.css("opacity",1),this._core.trigger("loaded",{element:r,url:a},"lazy")},this)).attr("src",a):r.is("source")?r.one("load.owl.lazy",e.proxy(function(){this._core.trigger("loaded",{element:r,url:a},"lazy")},this)).attr("srcset",a):((o=new Image).onload=e.proxy(function(){r.css({"background-image":'url("'+a+'")',opacity:"1"}),this._core.trigger("loaded",{element:r,url:a},"lazy")},this),o.src=a)},this)),this._loaded.push(i.get(0)))},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=o}(window.Zepto||window.jQuery,window,document),function(e,t){var n=function(i){this._core=i,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=e.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var o=this;e(t).on("load",function(){o._core.settings.autoHeight&&o.update()}),e(t).resize(function(){o._core.settings.autoHeight&&(null!=o._intervalId&&clearTimeout(o._intervalId),o._intervalId=setTimeout(function(){o.update()},250))})};n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var t=this._core._current,n=t+this._core.settings.items,i=this._core.settings.lazyLoad,o=this._core.$stage.children().toArray().slice(t,n),r=[],a=0;e.each(o,function(t,n){r.push(e(n).height())}),(a=Math.max.apply(null,r))<=1&&i&&this._previousHeight&&(a=this._previousHeight),this._previousHeight=a,this._core.$stage.parent().height(a).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,window,document),function(e,t,n){var i=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var n=e(t.content).find(".owl-video");n.length&&(n.css("display","none"),this.fetch(n,e(t.content)))}},this)},this._core.options=e.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy(function(e){this.play(e)},this))};i.Defaults={video:!1,videoHeight:!1,videoWidth:!1},i.prototype.fetch=function(e,t){var n=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",i=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),o=e.attr("data-width")||this._core.settings.videoWidth,r=e.attr("data-height")||this._core.settings.videoHeight,a=e.attr("href");if(!a)throw new Error("Missing video URL.");if((i=a.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)n="youtube";else if(i[3].indexOf("vimeo")>-1)n="vimeo";else{if(!(i[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");n="vzaar"}i=i[6],this._videos[a]={type:n,id:i,width:o,height:r},t.attr("data-video",a),this.thumbnail(e,this._videos[a])},i.prototype.thumbnail=function(t,n){var i,o,r,a=n.width&&n.height?"width:"+n.width+"px;height:"+n.height+"px;":"",s=t.find("img"),l="src",d="",c=this._core.settings,u=function(n){o='<div class="owl-video-play-icon"></div>',i=c.lazyLoad?e("<div/>",{"class":"owl-video-tn "+d,srcType:n}):e("<div/>",{"class":"owl-video-tn",style:"opacity:1;background-image:url("+n+")"}),t.after(i),t.after(o)};if(t.wrap(e("<div/>",{"class":"owl-video-wrapper",style:a})),this._core.settings.lazyLoad&&(l="data-src",d="owl-lazy"),s.length)return u(s.attr(l)),s.remove(),!1;"youtube"===n.type?(r="//img.youtube.com/vi/"+n.id+"/hqdefault.jpg",u(r)):"vimeo"===n.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e[0].thumbnail_large,u(r)}}):"vzaar"===n.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e.framegrab_url,u(r)}})},i.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},i.prototype.play=function(t){var n,i=e(t.target).closest("."+this._core.settings.itemClass),o=this._videos[i.attr("data-video")],r=o.width||"100%",a=o.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),(n=e('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",a),n.attr("width",r),"youtube"===o.type?n.attr("src","//www.youtube.com/embed/"+o.id+"?autoplay=1&rel=0&v="+o.id):"vimeo"===o.type?n.attr("src","//player.vimeo.com/video/"+o.id+"?autoplay=1"):"vzaar"===o.type&&n.attr("src","//view.vzaar.com/"+o.id+"/player?autoplay=true"),e(n).wrap('<div class="owl-video-frame" />').insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},i.prototype.isInFullScreen=function(){var t=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},i.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.swapping=!0,this.previous=i,this.next=i,this.handlers={"change.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":e.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};o.Defaults={animateOut:!1,animateIn:!1},o.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,n=e.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(e.support.animation.end,n).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(a)),r&&o.one(e.support.animation.end,n).addClass("animated owl-animated-in").addClass(r))}},o.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=o}(window.Zepto||window.jQuery,window,document),function(e,t,n){var i=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":e.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":e.proxy(function(e,t,n){e.namespace&&this.play(t,n)},this),"stop.owl.autoplay":e.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},i.Defaults,this._core.options)};i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(i){this._call=t.setTimeout(e.proxy(this._next,this,i),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||n.hidden||this._core.next(i||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(n,i){var o;this._core.is("rotating")||this._core.enter("rotating"),n=n||this._core.settings.autoplayTimeout,o=Math.min(this._time%(this._timeout||n),n),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%n-o,this._timeout=n,this._call=t.setTimeout(e.proxy(this._next,this,i),n-o)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},i.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(e){"use strict";var t=function(n){this._core=n,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=e.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)};t.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},t.prototype.initialize=function(){var t,n=this._core.settings;for(t in this._controls.$relative=(n.navContainer?e(n.navContainer):e("<div>").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy(function(){this.prev(n.navSpeed)},this)),this._controls.$next=e("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy(function(){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[e('<button role="button">').addClass(n.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(n.dotsContainer?e(n.dotsContainer):e("<div>").addClass(n.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy(function(t){var i=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(i,n.dotsSpeed)},this)),this._overrides)this._core[t]=e.proxy(this[t],this)},t.prototype.destroy=function(){var e,t,n,i,o;for(e in o=this._core.settings,this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&o.navContainer?this._controls[t].html(""):this._controls[t].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.prototype.update=function(){var e,t,n=this._core.clones().length/2,i=n+this._core.items().length,o=this._core.maximum(!0),r=this._core.settings,a=r.center||r.autoWidth||r.dotsData?1:r.dotsEach||r.items;if("page"!==r.slideBy&&(r.slideBy=Math.min(r.slideBy,r.items)),r.dots||"page"==r.slideBy)for(this._pages=[],e=n,t=0,0;e<i;e++){if(t>=a||0===t){if(this._pages.push({start:Math.min(o,e-n),end:e-n+a-1}),Math.min(o,e-n)===o)break;t=0,0}t+=this._core.mergers(this._core.relative(e))}},t.prototype.draw=function(){var t,n=this._core.settings,i=this._core.items().length<=n.items,o=this._core.relative(this._core.current()),r=n.loop||n.rewind;this._controls.$relative.toggleClass("disabled",!n.nav||i),n.nav&&(this._controls.$previous.toggleClass("disabled",!r&&o<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!r&&o>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!n.dots||i),n.dots&&(t=this._pages.length-this._controls.$absolute.children().length,n.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},t.prototype.onTrigger=function(t){var n=this._core.settings;
121t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:n&&(n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items)}},t.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy(function(e){return e.start<=t&&e.end>=t},this)).pop()},t.prototype.getPosition=function(t){var n,i,o=this._core.settings;return"page"==o.slideBy?(n=e.inArray(this.current(),this._pages),i=this._pages.length,t?++n:--n,n=this._pages[(n%i+i)%i].start):(n=this._core.relative(this._core.current()),i=this._core.items().length,t?n+=o.slideBy:n-=o.slideBy),n},t.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},t.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},t.prototype.to=function(t,n,i){var o;!i&&this._pages.length?(o=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%o+o)%o].start,n)):e.proxy(this._overrides.to,this._core)(t,n)},e.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){"use strict";var o=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(n){n.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var n=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!n)return;this._hashes[n]=t.content}},this),"changed.owl.carousel":e.proxy(function(n){if(n.namespace&&"position"===n.property.name){var i=this._core.items(this._core.relative(this._core.current())),o=e.map(this._hashes,function(e,t){return e===i?t:null}).join();if(!o||t.location.hash.slice(1)===o)return;t.location.hash=o}},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy(function(){var e=t.location.hash.substring(1),n=this._core.$stage.children(),o=this._hashes[e]&&n.index(this._hashes[e]);o!==i&&o!==this._core.current()&&this._core.to(this._core.relative(o),!1,!0)},this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var n,i;for(n in e(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(n,this._handlers[n]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){function o(t,n){var o=!1,r=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+s.join(r+" ")+r).split(" "),function(e,t){if(a[t]!==i)return o=!n||t,!1}),o}function r(e){return o(e,!0)}var a=e("<support>").get(0).style,s="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},d={csstransforms:function(){return!!o("transform")},csstransforms3d:function(){return!!o("perspective")},csstransitions:function(){return!!o("transition")},cssanimations:function(){return!!o("animation")}};d.csstransitions()&&(e.support.transition=new String(r("transition")),e.support.transition.end=l.transition.end[e.support.transition]),d.cssanimations()&&(e.support.animation=new String(r("animation")),e.support.animation.end=l.animation.end[e.support.animation]),d.csstransforms()&&(e.support.transform=new String(r("transform")),e.support.transform3d=d.csstransforms3d())}(window.Zepto||window.jQuery,window,document),$(function(){function e(){"use strict";function e(e){for(var t=0;t<e.length;t++)if("undefined"!=typeof document.body.style[e[t]])return e[t];return null}function t(){var e,t=0;return r()?(t=jQuery(".viu").find("nav:first").outerHeight(!0),("absolute"===(e=jQuery(".viu").find("nav:first").css("position"))||"fixed"===e)&&(t=0)):t=jQuery(document).find("nav:first").outerHeight(!0),Math.floor(t)}function n(){return/Android/i.test(navigator.userAgent||navigator.vendor||window.opera)?screen.height*window.devicePixelRatio:/iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)?0===window.orientation&&screen.height>screen.width?screen.height:screen.width:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}
121function i(){!1===p&&(p=!0,s(m.mr_parallaxBackground))}function o(e){return e&&"[object Function]"==={}.toString.call(e)}function r(){return"undefined"!=typeof window.mr_variant}var a,s=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,l=e(["transform","msTransform","webkitTransform","mozTransform","oTransform"]),d="translate3d(0,",c="px,0)",u=n(),h=0,f=window,p=(r(),!1),m=this;jQuery(document).ready(function(){m.documentReady()}),jQuery(window).on("load",function(){m.windowLoad()}),this.documentReady=function(e){return u=n(), 122jQuery("body").hasClass("parallax-2d")&&(d="translate(0,",c="px)"),s&&(m.profileParallaxElements(),m.setupParallax()),o(e)?void e():void 0},this.windowLoad=function(){u=n(),h=t(),window.mr_parallax.profileParallaxElements()},this.setupParallax=function(){r()&&(f=jQuery(".viu").get(0)),void 0!==f&&(("undefined"==typeof window.mr||r())&&(f.onscroll=i),window.addEventListener("resize",function(){u=n(),h=t(),m.profileParallaxElements(),m.mr_parallaxBackground()},!1),window.addEventListener("orientationchange",function(){},!1),m.mr_parallaxBackground())},this.profileParallaxElements=function(){var e;a=[],u=n(),h=t();var i=".parallax > .background-image-holder, .parallax ul.slides > li > .background-image-holder, .parallax ul.slides .owl-item > li > .background-image-holder";r()&&(i=".viu .parallax > .background-image-holder, .viu .parallax ul.slides > li > .background-image-holder, .parallax ul.slides .owl-item > li > .background-image-holder"),e=jQuery(i),/Android|iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)&&(e=e.not(".parallax-disable-mobile .background-image-holder, body.parallax-disable-mobile *")),jQuery(e).each(function(){var e=jQuery(this).closest(".parallax"),t=r()?e.position().top:e.offset().top,n=screen.height,i=screen.width;a.push({section:e.get(0),outerHeight:e.outerHeight(),elemTop:t,elemBottom:t+e.outerHeight(),isFirstSection:!!e.is(":nth-of-type(1)"),imageHolder:jQuery(this).get(0)}),/iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)&&screen.width<1024&&(0===window.orientation&&n>i?(jQuery(this).css("top","-"+n/2+"px"),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*n:1.2*n})):(jQuery(this).css("top","-"+i/2+"px"),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*i:1.2*i}))),/iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)&&screen.width>=1024&&(0===window.orientation&&n>i?(jQuery(this).css("top","-"+n/2+"px"),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*n:1.2*n})):(jQuery(this).css("top","-"+i/2+"px"),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*i:1.2*i}))),/Android/i.test(navigator.userAgent||navigator.vendor||window.opera)&&(jQuery(this).css({top:"-"+n*window.devicePixelRatio/(e.is(":nth-of-type(1)")?8:2)+"px"}),jQuery(this).css({"min-height":e.is(":nth-of-type(1)")?1.5*n:1.2*n})),r()?r()&&(e.is(":nth-of-type(1)")?m.mr_setTranslate3DTransform(jQuery(this).get(0),0===m.mr_getScrollPosition()?0:m.mr_getScrollPosition()/2):m.mr_setTranslate3DTransform(jQuery(this).get(0),(m.mr_getScrollPosition()-t-h)/2)):e.is(":nth-of-type(1)")?m.mr_setTranslate3DTransform(jQuery(this).get(0),0===m.mr_getScrollPosition()?0:m.mr_getScrollPosition()/2):m.mr_setTranslate3DTransform(jQuery(this).get(0),(m.mr_getScrollPosition()+u-t)/2)})},this.mr_parallaxBackground=function(){for(var e,t=a.length,n=void 0===mr||r()?m.mr_getScrollPosition():mr.scroll.y;t--;)e=a[t],r()?n+u-h>e.elemTop&&n-h<e.elemBottom&&(e.isFirstSection?e.imageHolder.style[l]=d+n/2+c:e.imageHolder.style[l]=d+(n-e.elemTop-h)/2+c):n+u>=e.elemTop&&n<=e.elemBottom&&(e.isFirstSection?e.imageHolder.style[l]=d+n/2+c:e.imageHolder.style[l]=d+(n+u-e.elemTop)/2+c);p=!1},this.mr_setTranslate3DTransform=function(e,t){e.style[l]=d+t+c},this.mr_getScrollPosition=function(){return f!==window?f.scrollTop:0===document.documentElement.scrollTop?document.body.scrollTop:document.documentElement.scrollTop}}window.mr_parallax=new e}), 123/* 124 Copyright (C) Federico Zivolo 2019 125 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). 126 */ 127function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function e(e){return e&&"[object Function]"==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}
vendor: 12,664 bytes, line 127
127function n(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function i(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var o=t(e),r=o.overflow,a=o.overflowX,s=o.overflowY;return/(auto|scroll|overlay)/.test(r+s+a)?e:i(n(e))}function o(e){return 11===e?re:10===e?ae:re||ae}function r(e){if(!e)return document.documentElement;for(var n=o(10)?document.body:null,i=e.offsetParent||null;i===n&&e.nextElementSibling;)i=(e=e.nextElementSibling).offsetParent;var a=i&&i.nodeName;return a&&"BODY"!==a&&"HTML"!==a?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===t(i,"position")?r(i):i:e?e.ownerDocument.documentElement:document.documentElement}function a(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||r(e.firstElementChild)===e)}function s(e){return null===e.parentNode?e:s(e.parentNode)}function l(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,d=document.createRange();d.setStart(i,0),d.setEnd(o,0);var c=d.commonAncestorContainer;if(e!==c&&t!==c||i.contains(o))return a(c)?c:r(c);var u=s(e);return u.host?l(u.host,t):l(e,s(t).host)}function d(e){var t="top"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}return e[t]}function c(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=d(t,"top"),o=d(t,"left"),r=n?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=o*r,e.right+=o*r,e}function u(e,t){var n="x"===t?"Left":"Top",i="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function h(e,t,n,i){return J(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],o(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function f(e){var t=e.body,n=e.documentElement,i=o(10)&&getComputedStyle(n);return{height:h("Height",t,n,i),width:h("Width",t,n,i)}}function p(e){return ce({},e,{right:e.left+e.width,bottom:e.top+e.height})}function m(e){var n={};try{if(o(10)){n=e.getBoundingClientRect();var i=d(e,"top"),r=d(e,"left");n.top+=i,n.left+=r,n.bottom+=i,n.right+=r}else n=e.getBoundingClientRect()}catch(t){}var a={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},s="HTML"===e.nodeName?f(e.ownerDocument):{},l=s.width||e.clientWidth||a.right-a.left,c=s.height||e.clientHeight||a.bottom-a.top,h=e.offsetWidth-l,m=e.offsetHeight-c;if(h||m){var g=t(e);h-=u(g,"x"),m-=u(g,"y"),a.width-=h,a.height-=m}return p(a)}function g(e,n){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],a=o(10),s="HTML"===n.nodeName,l=m(e),d=m(n),u=i(e),h=t(n),f=parseFloat(h.borderTopWidth,10),g=parseFloat(h.borderLeftWidth,10);r&&s&&(d.top=J(d.top,0),d.left=J(d.left,0));var v=p({top:l.top-d.top-f,left:l.left-d.left-g,width:l.width,height:l.height});if(v.marginTop=0,v.marginLeft=0,!a&&s){var y=parseFloat(h.marginTop,10),_=parseFloat(h.marginLeft,10);v.top-=f-y,v.bottom-=f-y,v.left-=g-_,v.right-=g-_,v.marginTop=y,v.marginLeft=_}return(a&&!r?n.contains(u):n===u&&"BODY"!==u.nodeName)&&(v=c(v,n)),v}function v(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=g(e,n),o=J(n.clientWidth,window.innerWidth||0),r=J(n.clientHeight,window.innerHeight||0),a=t?0:d(n),s=t?0:d(n,"left");return p({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r})}function y(e){var i=e.nodeName;if("BODY"===i||"HTML"===i)return!1;if("fixed"===t(e,"position"))return!0;var o=n(e);return!!o&&y(o)}function _(e){if(!e||!e.parentElement||o())return document.documentElement;for(var n=e.parentElement;n&&"none"===t(n,"transform");)n=n.parentElement;return n||document.documentElement}function b(e,t,o,r){var a=4<arguments.length&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},d=a?_(e):l(e,t);if("viewport"===r)s=v(d,a);else{var c;"scrollParent"===r?"BODY"===(c=i(n(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===r?e.ownerDocument.documentElement:r;var u=g(c,d,a);if("HTML"!==c.nodeName||y(d))s=u;else{var h=f(e.ownerDocument),p=h.height,m=h.width;s.top+=u.top-u.marginTop,s.bottom=p+u.top,s.left+=u.left-u.marginLeft,s.right=m+u.left}}var b="number"==typeof(o=o||0);return s.left+=b?o:o.left||0,s.top+=b?o:o.top||0,s.right-=b?o:o.right||0,s.bottom-=b?o:o.bottom||0,s}function T(e){return e.width*e.height}function C(e,t,n,i,o){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=b(n,i,r,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return ce({key:e},s[e],{area:T(s[e])})}).sort(function(e,t){return t.area-e.area}),d=l.filter(function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight}),c=0<d.length?d[0].key:l[0].key,u=e.split("-")[1];return c+(u?"-"+u:"")}function E(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return g(n,i?_(t):l(t,n),i)}function w(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function I(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function D(e,t,n){n=n.split("-")[0];var i=w(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",d=r?"width":"height";return o[a]=t[a]+t[l]/2-i[l]/2,o[s]=n===s?t[s]-i[d]:t[I(s)],o}function x(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function O(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=x(e,function(e){return e[t]===n});return e.indexOf(i)}function k(t,n,i){return(void 0===i?t:t.slice(0,O(t,"name",i))).forEach(function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t["function"]||t.fn;t.enabled&&e(i)&&(n.offsets.popper=p(n.offsets.popper),n.offsets.reference=p(n.offsets.reference),n=i(n,t))}),n}function S(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=E(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=C(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=k(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function R(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function $(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],r=o?""+o+n:e;if("undefined"!=typeof document.body.style[r])return r}return null}function A(){return this.state.isDestroyed=!0,R(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function K(e){var t=e.ownerDocument;return t?t.defaultView:window}function N(e,t,n,o){var r="BODY"===e.nodeName,a=r?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),r||N(i(a.parentNode),t,n,o),o.push(a)}function L(e,t,n,o){n.updateBound=o,K(e).addEventListener("resize",n.updateBound,{passive:!0});var r=i(e);return N(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function M(){this.state.eventsEnabled||(this.state=L(this.reference,this.options,this.state,this.scheduleUpdate))}function P(e,t){return K(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function F(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=P(this.reference,this.state))}function B(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function j(e,t){Object.keys(t).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&B(t[n])&&(i="px"),e.style[n]=t[n]+i})}function H(e,t){Object.keys(t).forEach(function(n){!1===t[n]?e.removeAttribute(n):e.setAttribute(n,t[n])})}function z(e,t){var n=e.offsets,i=n.popper,o=n.reference,r=Z,a=function(e){return e},s=r(o.width),l=r(i.width),d=-1!==["left","right"].indexOf(e.placement),c=-1!==e.placement.indexOf("-"),u=t?d||c||s%2==l%2?r:Q:a,h=t?r:a;return{left:u(1==s%2&&1==l%2&&!c&&t?i.left-1:i.left),top:h(i.top),bottom:h(i.bottom),right:u(i.right)}}function q(e,t,n){var i=x(e,function(e){return e.name===t}),o=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!o){var r="`"+t+"`";console.warn("`"+n+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function W(e){return"end"===e?"start":"start"===e?"end":e}function U(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=fe.indexOf(e),i=fe.slice(n+1).concat(fe.slice(0,n));return t?i.reverse():i}function V(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return e;if(0===a.indexOf("%")){var s;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return p(s)[t]/100*r}return"vh"===a||"vw"===a?("vh"===a?J(document.documentElement.clientHeight,window.innerHeight||0):J(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r}function Y(e,t,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(x(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=-1===s?[a]:[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))];return(d=d.map(function(e,i){var o=(1===i?!r:r)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return V(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,i){B(n)&&(o[t]+=n*("-"===e[i-1]?-1:1))})}),o}function G(e,t){var n,i=t.offset,o=e.placement,r=e.offsets,a=r.popper,s=r.reference,l=o.split("-")[0];return n=B(+i)?[+i,0]:Y(i,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e}for(var X=Math.min,Q=Math.floor,Z=Math.round,J=Math.max,ee="undefined"!=typeof window&&"undefined"!=typeof document,te=["Edge","Trident","Firefox"],ne=0,ie=0;ie<te.length;ie+=1)if(ee&&0<=navigator.userAgent.indexOf(te[ie])){ne=1;break}var oe=ee&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ne))}},re=ee&&!(!window.MSInputMethodContext||!document.documentMode),ae=ee&&/MSIE 10/.test(navigator.userAgent),se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},le=function(){function e(e,t){for(var n,i=0;i<t.length;i++)(n=t[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),de=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ce=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ue=ee&&/Firefox/i.test(navigator.userAgent),he=["auto-start","auto","auto-end","top-start","to
127p","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],fe=he.slice(3),pe={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},me=function(){function t(n,i){var o=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};se(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=oe(this.update.bind(this)),this.options=ce({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=n&&n.jquery?n[0]:n,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(ce({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){o.options.modifiers[e]=ce({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ce({name:e},o.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return le(t,[{key:"update",value:function(){return S.call(this)}},{key:"destroy",value:function(){return A.call(this)}},{key:"enableEventListeners",value:function(){return M.call(this)}},{key:"disableEventListeners",value:function(){return F.call(this)}}]),t}();return me.Utils=("undefined"==typeof window?global:window).PopperUtils,me.placements=he,me.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",d=s?"width":"height",c={start:de({},l,r[l]),end:de({},l,r[l]+r[d]-a[d])};e.offsets.popper=ce({},a,c[i])}return e}},offset:{order:200,enabled:!0,fn:G,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||r(e.instance.popper);e.instance.reference===n&&(n=r(n));var i=$("transform"),o=e.instance.popper.style,a=o.top,s=o.left,l=o[i];o.top="",o.left="",o[i]="";var d=b(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=s,o[i]=l,t.boundaries=d;var c=t.priority,u=e.offsets.popper,h={primary:function(e){var n=u[e];return u[e]<d[e]&&!t.escapeWithReference&&(n=J(u[e],d[e])),de({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=u[n];return u[e]>d[e]&&!t.escapeWithReference&&(i=X(u[n],d[e]-("right"===e?u.width:u.height))),de({},n,i)}};return c.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";u=ce({},u,h[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=Q,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",d=a?"width":"height";return n[s]<r(i[l])&&(e.offsets.popper[l]=r(i[l])-n[d]),n[l]>r(i[s])&&(e.offsets.popper[l]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,n){var i;if(!q(e.instance.modifiers,"arrow","keepTogether"))return e;var o=n.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],a=e.offsets,s=a.popper,l=a.reference,d=-1!==["left","right"].indexOf(r),c=d?"height":"width",u=d?"Top":"Left",h=u.toLowerCase(),f=d?"left":"top",m=d?"bottom":"right",g=w(o)[c];l[m]-g<s[h]&&(e.offsets.popper[h]-=s[h]-(l[m]-g)),l[h]+g>s[m]&&(e.offsets.popper[h]+=l[h]+g-s[m]),e.offsets.popper=p(e.offsets.popper);var v=l[h]+l[c]/2-g/2,y=t(e.instance.popper),_=parseFloat(y["margin"+u],10),b=parseFloat(y["border"+u+"Width"],10),T=v-e.offsets.popper[h]-_-b;return T=J(X(s[c]-g,T),0),e.arrowElement=o,e.offsets.arrow=(de(i={},h,Z(T)),de(i,f,""),i),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(R(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=b(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],o=I(i),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case pe.FLIP:a=[i,o];break;case pe.CLOCKWISE:a=U(i);break;case pe.COUNTERCLOCKWISE:a=U(i,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(i!==s||a.length===l+1)return e;i=e.placement.split("-")[0],o=I(i);var d=e.offsets.popper,c=e.offsets.reference,u=Q,h="left"===i&&u(d.right)>u(c.left)||"right"===i&&u(d.left)<u(c.right)||"top"===i&&u(d.bottom)>u(c.top)||"bottom"===i&&u(d.top)<u(c.bottom),f=u(d.left)<u(n.left),p=u(d.right)>u(n.right),m=u(d.top)<u(n.top),g=u(d.bottom)>
127u(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),_=!!t.flipVariations&&(y&&"start"===r&&f||y&&"end"===r&&p||!y&&"start"===r&&m||!y&&"end"===r&&g);(h||v||_)&&(e.flipped=!0,(h||v)&&(i=a[l+1]),_&&(r=W(r)),e.placement=i+(r?"-"+r:""),e.offsets.popper=ce({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=k(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),e.placement=I(t),e.offsets.popper=p(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=x(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,o=e.offsets.popper,a=x(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,l,d=void 0===a?t.gpuAcceleration:a,c=r(e.instance.popper),u=m(c),h={position:o.position},f=z(e,2>window.devicePixelRatio||!ue),p="bottom"===n?"top":"bottom",g="right"===i?"left":"right",v=$("transform");if(l="bottom"==p?"HTML"===c.nodeName?-c.clientHeight+f.bottom:-u.height+f.bottom:f.top,s="right"==g?"HTML"===c.nodeName?-c.clientWidth+f.right:-u.width+f.right:f.left,d&&v)h[v]="translate3d("+s+"px, "+l+"px, 0)",h[p]=0,h[g]=0,h.willChange="transform";else{var y="bottom"==p?-1:1,_="right"==g?-1:1;h[p]=l*y,h[g]=s*_,h.willChange=p+", "+g}var b={"x-placement":e.placement};return e.attributes=ce({},b,e.attributes),e.styles=ce({},h,e.styles),e.arrowStyles=ce({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return j(e.instance.popper,e.styles),H(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&j(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,o){var r=E(o,t,e,n.positionFixed),a=C(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),j(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},me}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){function t(e,t){return T.call(e,t)}function n(e,t){var n,i,o,r,a,s,l,d,c,u,h,f=t&&t.split("/"),p=_.map,m=p&&p["*"]||{};if(e){for(a=(e=e.split("/")).length-1,_.nodeIdCompat&&E.test(e[a])&&(e[a]=e[a].replace(E,"")),"."===e[0].charAt(0)&&f&&(e=f.slice(0,f.length-1).concat(e)),c=0;c<e.length;c++)if("."===(h=e[c]))e.splice(c,1),--c;else if(".."===h){if(0===c||1===c&&".."===e[2]||".."===e[c-1])continue;0<c&&(e.splice(c-1,2),c-=2)}e=e.join("/")}if((f||m)&&p){for(c=(n=e.split("/")).length;0<c;--c){if(i=n.slice(0,c).join("/"),f)for(u=f.length;0<u;--u)if(o=(o=p[f.slice(0,u).join("/")])&&o[i]){r=o,s=c;break}if(r)break;!l&&m&&m[i]&&(l=m[i],d=c)}!r&&l&&(r=l,s=d),r&&(n.splice(0,s,r),e=n.join("/"))}return e}function i(e,t){return function(){var n=C.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),p.apply(h,n.concat([e,t]))}}function o(e){return function(t){v[e]=t}}function r(e){if(t(y,e)){var n=y[e];delete y[e],b[e]=!0,f.apply(h,n)}if(!t(v,e)&&!t(b,e))throw new Error("No "+e);return v[e]}function a(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function s(e){return e?a(e):[]}if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var l=e.fn.select2.amd;var d,c,u,h,f,p,m,g,v,y,_,b,T,C,E;return l&&l.requirejs||(l?c=l:l={},v={},y={},_={},b={},T=Object.prototype.hasOwnProperty,C=[].slice,E=/\.js$/,m=function(e,t){var i,o,s=a(e),l=s[0],d=t[1];return e=s[1],l&&(i=r(l=n(l,d))),l?e=i&&i.normalize?i.normalize(e,(o=d,function(e){return n(e,o)})):n(e,d):(l=(s=a(e=n(e,d)))[0],e=s[1],l&&(i=r(l))),{f:l?l+"!"+e:e,n:e,pr:l,p:i}},g={require:function(e){return i(e)},exports:function(e){var t=v[e];return void 0!==t?t:v[e]={}},module:function(e){return{id:e,uri:"",exports:v[e],config:(t=e,function(){return _&&_.config&&_.config[t]||{}})};var t}},f=function(e,n,a,l){var d,c,u,f,p,_,T,C=[],E=typeof a;if(_=s(l=l||e),"undefined"==E||"function"==E){for(n=!n.length&&a.length?["require","exports","module"]:n,p=0;p<n.length;p+=1)if("require"===(c=(f=m(n[p],_)).f))C[p]=g.require(e);else if("exports"===c)C[p]=g.exports(e),T=!0;else if("module"===c)d=C[p]=g.module(e);else if(t(v,c)||t(y,c)||t(b,c))C[p]=r(c);else{if(!f.p)throw new Error(e+" missing "+c);f.p.load(f.n,i(l,!0),o(c),{}
127),C[p]=v[c]}u=a?a.apply(v[e],C):void 0,e&&(d&&d.exports!==h&&d.exports!==v[e]?v[e]=d.exports:u===h&&T||(v[e]=u))}else e&&(v[e]=a)},d=c=p=function(e,t,n,i,o){if("string"==typeof e)return g[e]?g[e](t):r(m(e,s(t)).f);if(!e.splice){if((_=e).deps&&p(_.deps,_.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=o),i?f(h,e,t,n):setTimeout(function(){f(h,e,t,n)},4),p},p.config=function(e){return p(e)},d._defined=v,(u=function(e,n,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");n.splice||(i=n,n=[]),t(v,e)||t(y,e)||(y[e]=[e,n,i])}).amd={jQuery:!0},l.requirejs=d,l.require=c,l.define=u),l.define("almond",function(){}),l.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),l.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}function n(){this.listeners={}}var i={Extend:function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var o in t)i.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,o=e.prototype.constructor;0<i&&(t.call(arguments,e.prototype.constructor),o=n.prototype.constructor),o.apply(this,arguments)}function o(e){var t=function(){};e in i.prototype&&(t=i.prototype[e]);var o=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),o.apply(this,arguments)}}var r=t(n),a=t(e);n.displayName=e.displayName,i.prototype=new function(){this.constructor=i};for(var s=0;s<a.length;s++){var l=a[s];i.prototype[l]=e.prototype[l]}for(var d=0;d<r.length;d++){var c=r[d];i.prototype[c]=o(c)}return i}};n.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},n.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},i.Observable=n,i.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},i.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},i.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.__cache={};var o=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++o).toString()+"-"+i.generateChars(4),e.setAttribute("data-select2-id",t)),t},i.StoreData=function(e,t,n){var o=i.GetUniqueElementId(e);i.__cache[o]||(i.__cache[o]={}),i.__cache[o][t]=n},i.GetData=function(t,n){var o=i.GetUniqueElementId(t);return n?i.__cache[o]&&null!=i.__cache[o][n]?i.__cache[o][n]:e(t).data(n):i.__cache[o]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter(function(e){return 0===e.indexOf("select2-")});var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter(function(e){return 0!==e.indexOf("select2-")});var o=n.concat(i);e.setAttribute("class",o.join(" "))},i}),l.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current(function(i){var o=i.map(function(e){return e.id.toString()});n.$results.find(".select2-results__option--selectable").each(function(){var n=e(this),i=t.GetData(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&-1<o.indexOf(r)?(this.classList.add("select2-results__option--selected"),n.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),n.attr("aria-selected","false"))})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.classList.add("select2-results__option"),i.classList.add("select2-results__option--selectable");var o={role:"option"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=n.element&&r.call(n.element,":disabled")||null==n.element&&n.disabled)&&(o["aria-disabled"]="true",i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--disabled")),null==n.id&&i.classList.remove("select2-results__option--selectable"),null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(o.role="group",o["aria-label"]=n.text,i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--group")),o){var s=o[a];i.setAttribute(a,s)}if(n.children){var l=e(i),d=document.createElement("strong");d.className="select2-results__group",this.template(n,d);for(var c=[],u=0;u<n.children.length;u++){var h=n.children[u],f=this.option(h);c.push(f)}var p=e("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});p.append(c),l.append(d),l.append(p)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n){var i=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",function(e){i.clear(),i.append(e.data),n.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),n.on("results:append",function(e){i.append(e.data),n.isOpen()&&i.setClasses()}),n.on("query",function(e){i.hideMessages(),i.showLoading(e)}
127),n.on("select",function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),n.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),n.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var o=n-1;0===e.length&&(o=0);var r=t.eq(o);r.trigger("mouseenter");var a=i.$results.offset().top,s=r.offset().top,l=i.$results.scrollTop()+(s-a);0===o?i.$results.scrollTop(0):s-a<0&&i.$results.scrollTop(l)}}), 128n.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var o=t.eq(n);o.trigger("mouseenter");var r=i.$results.offset().top+i.$results.outerHeight(!1),a=o.offset().top+o.outerHeight(!1),s=i.$results.scrollTop()+a-r;0===n?i.$results.scrollTop(0):r<a&&i.$results.scrollTop(s)}}),n.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),n.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,o=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=i.$results.height();o?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(n){var o=e(this),r=t.GetData(this,"data");o.hasClass("select2-results__option--selected")?i.options.get("multiple")?i.trigger("unselect",{originalEvent:n,data:r}):i.trigger("close",{}):i.trigger("select",{originalEvent:n,data:r})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(){var n=t.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:n,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):e(n).append(r)},n}),l.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),l.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n},i.prototype.bind=function(e){var t=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){t.trigger("focus",e)}),this.$selection.on("blur",function(e){t._handleBlur(e)}),this.$selection.on("keydown",function(e){t.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){t.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){t.update(e.data)}),e.on("open",function(){t.$selection.attr("aria-expanded","true"),t.$selection.attr("aria-owns",i),t._attachCloseHandler(e)}),e.on("close",function(){t.$selection.attr("aria-expanded","fal
128se"),t.$selection.removeAttr("aria-activedescendant"),t.$selection.removeAttr("aria-owns"),t.$selection.trigger("focus"),t._detachCloseHandler(e)}),e.on("enable",function(){t.$selection.attr("tabindex",t._tabindex),t.$selection.attr("aria-disabled","false")}),e.on("disable",function(){t.$selection.attr("tabindex","-1"),t.$selection.attr("aria-disabled","true")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each(function(){this!=i[0]&&t.GetData(this,"element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i}),l.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e){var t=this;i.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",function(e){1===e.which&&t.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),e.on("focus",function(){e.isOpen()||t.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var o=t.title||t.text;o?n.attr("title",o):n.removeAttr("title")}else this.clear()},i}),l.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t){var o=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.on("click",function(e){o.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!o.isDisabled()){var i=e(this).parent(),r=n.GetData(i[0],"data");o.trigger("unselect",{originalEvent:t,data:r})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){o.isDisabled()||e.stopPropagation()})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",o=0;o<e.length;o++){var r=e[o],a=this.selectionContainer(),s=this.display(r,a),l=i+n.generateChars(4)+"-";r.id?l+=r.id:l+=n.generateChars(4),a.find(".select2-selection__choice__display").append(s).attr("id",l);var d=r.title||r.text;d&&a.attr("title",d);var c=this.options.get("translations").get("removeItem"),u=a.find(".select2-selection__choice__remove");u.attr("title",c()),u.attr("aria-label",c()),u.attr("aria-describedby",l),n.StoreData(a[0],"data",r),t.pu
128sh(a)}this.$selection.find(".select2-selection__rendered").append(t)}},i}),l.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),l.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var o=n.GetData(i[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var a={data:o};if(this.trigger("clear",a),a.prevented)this.$element.val(r);else{for(var s=0;s<o.length;s++)if(a={data:o[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),this.$selection.find(".select2-selection__clear").remove(),!(0<this.$selection.find(".select2-selection__placeholder").length||0===i.length)){var o=this.$selection.find(".select2-selection__rendered").attr("id"),r=this.options.get("translations").get("removeAllItems"),a=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>');a.attr("title",r()),a.attr("aria-label",r()),a.attr("aria-describedby",o),n.StoreData(a[0],"data",i),this.$selection.prepend(a)}},i}),l.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<span class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');this.$searchContainer=n,this.$search=n.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete"));var i=t.call(this);return this._transferTabIndex(),i.append(this.$searchContainer),i},i.prototype.bind=function(e,i,o){var r=this,a=i.id+"-results",s=i.id+"-container";e.call(this,i,o),r.$search.attr("aria-describedby",s),i.on("open",function(){r.$search.attr("aria-controls",a),r.$search.trigger("focus")}),i.on("close",function(){r.$search.val(""),r.resizeSearch(),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),i.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),i.on("disable",function(){r.$search.prop("disabled",!0)}),i.on("focus",function(){r.$search.trigger("focus")}),i.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===r.$search.val()){var i=r.$selection.find(".select2-selection__choice").last();if(0<i.length){var o=t.GetData(i[0],"data");r.searchRemoveChoice(o),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var l=document.documentMode,d=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(){d?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(d&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&r.handleSearch(e)}})},i.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},i}),l.define("select2/selection/selectionCss",["../utils"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("selectionCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasse
128s(n[0],this.$element[0])),n.addClass(i),n},t}),l.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==r.indexOf(t)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==a.indexOf(t)&&(n.prevented=i.isDefaultPrevented())}})},t}),l.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),l.define("select2/diacritics",[],function(){return{"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u0152":"OE","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7
128a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u0153":"oe","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f"
128:"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03ce":"\u03c9","\u03c2":"\u03c3","\u2019":"'"}}),l.define("select2/data/base",["../utils"],function(e){function t(){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}),l.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(n(e))}))},i.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var i=[];(e=[e]).push.apply(e,n);for(var o=0;o<e.length;o++){var r=e[o].id;-1===i.indexOf(r)&&i.push(r)}t.$element.val(i),t.$element.trigger("input").trigger("change")});else{var n=e.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(n){for(var i=[],o=0;o<n.length;o++){var r=n[o].id;r!==e.id&&-1===i.indexOf(r)&&i.push(r)}t.$element.val(i),t.$element.trigger("input").trigger("change")})}},i.prototype.bind=function(e){var t=this;(this.container=e).on("select",function(e){t.select(e.data)}),e.on("unselect",function(e){t.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each(function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=n(this),r=o.item(t),a=o.matches(e,r);null!==a&&i.push(a)}}),t({results:i})},i.prototype.addOptions=function(e){this.$element.append(e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var o=this._normalizeItem(e);return o.element=i,t.StoreData(i,"data",o),n(i)},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;var o=e[0];if("option"===o.tagName.toLowerCase())i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===o.tagName.toLowerCase()){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),a=[],s=0;s<r.length;s++){var l=n(r[s]),d=this.item(l);a.push(d)}i.children=a}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),l.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){function t(e){return function(){return n(this).val()==e.id}}for(var i=this,o=this.$element.find("option"),r=o.map(function(){return i.item(n(this)).id}).get(),a=[],s=0;s<e.length;s++){var l=this._normalizeItem(e[s]);if(0<=r.indexOf(l.id)){var d=o.filter(t(l)),c=this.item(d),u=n.extend(!0,{},l,c),h=this.option(u);d.replaceWith(h)}else{var f=this.option(l);if(l.children){var p=this.convertToOptions(l.children);f.append(p)}a.push(f)}}return a},i}),l.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){function i(){var n=r.transport(r,function(n){var i=o.processResults(n,e);o.options.get("debug")&&window.console&&console.error&&(i&&i.results&&Array.isArray(i.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(i)}
128,function(){"status"in n&&(0===n.status||"0"===n.status)||o.trigger("results:message",{message:"errorLoading"})});o._request=n}var o=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)), 129this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),l.define("select2/data/tags",["jquery"],function(e){function t(e,t,n){var i=n.get("tags"),o=n.get("createTag");void 0!==o&&(this.createTag=o);var r=n.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,t,n),Array.isArray(i))for(var a=0;a<i.length;a++){var s=i[a],l=this._normalizeItem(s),d=this.option(l);this.$element.append(d)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function o(e,r){for(var a=e.results,s=0;s<a.length;s++){var l=a[s],d=null!=l.children&&!o({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||d)return!r&&(e.data=a,void n(e))}if(r)return!0;var c=i.createTag(t);if(null!=c){var u=i.option(c);u.attr("data-select2-tag",!0),i.addOptions([u]),i.insertTag(a,c)}e.results=a,n(e)}):e.call(this,t,n)},t.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(){this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),l.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var o=this;n.term=n.term||"";var r=this.tokenizer(n,this.options,function(t){var n,i=o._normalizeItem(t);if(!o.$element.find("option").filter(function(){return e(this).val()===i.id}).length){var r=o.option(i);r.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([r])}n=i,o.trigger("select",{data:n})});r.term!==n.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),n.term=r.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<a.length;){var d=a[s];if(-1!==r.indexOf(d)){var c=a.substr(0,s),u=l(e.extend({},n,{term:c}));null!=u?(o(u),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},t}),l.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),l.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),l.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){var i=null!=e?e.length:0;0<n.maximumSelectionLength&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),l.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},n.prototype.bind=function(){},n.prototype.position=function(){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),l.define("select2/dropdown/search",["jquery"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),n.prepend(i),n},t.prototype.bind=function(t,n,i){var o=this,r=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.attr("aria-controls",r),o.$search.trigger("focus"),window.setTimeout(function(){o.$search.trigger("focus")},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.val(""),o.$search.trigger("blur")}),n.on("focus",function(){n.isOpen()||o.$search.trigger("focus")}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer[0].classList.remove("select2-search--hide"):o.$searchContainer[0].classList.add("select2-search--hide"))}),n.on("results:focus",function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),l.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),l.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&t){var n=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=n+50&&this.loadMore()}},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),l.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n},n.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var o=this,r="scroll.
129select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(r,function(){var n=t.GetData(this,"select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(r+" "+a+" "+s,function(){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+r+" "+a)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=r.top,a.bottom=r.top+a.height;var s=this.$dropdown.outerHeight(!1),l=t.scrollTop(),d=t.scrollTop()+t.height(),c=l<r.top-s,u=d>r.bottom+s,h={left:r.left,top:a.bottom},f=this.$dropdownParent;"static"===f.css("position")&&(f=f.offsetParent());var p={top:0,left:0};(e.contains(document.body,f[0])||f[0].isConnected)&&(p=f.offset()),h.top-=p.top,h.left-=p.left,n||i||(o="below"),u||!c||n?!c&&u&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(h.top=a.top-p.top-s),null!=o&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+o),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+o)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),l.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function n(e){for(var t=0,i=0;i<e.length;i++){var o=e[i];o.children?t+=n(o.children):t++}return t}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),l.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var r=e.GetData(o[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t}),l.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),l.define("select2/dropdown/dropdownCss",["../utils"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("dropdownCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t}),l.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results\u2026"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching\u2026"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"}}}),l.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./i18n/en"],function(e,t,n,i,o,r,a,s,l,d,c,u,h,f,p,m,g,v,y,_,b,T,C,E,w,I,D,x,O){function k(){this.reset()}return k.prototype.apply=function(c){if(null==(c=e.extend(!0,{},this.defaults,c)).dataAdapter&&(null!=c.ajax?c.dataAdapter=p:null!=c.data?c.dataAdapter=f:c.dataAdapter=h,0<c.minimumInputLength&&(c.dataAdapter=d.Decorate(c.dataAdapter,v)),0<c.maximumInputLength&&(c.dataAdapter=d.Decorate(c.dataAdapter,y)),0<c.maximumSelectionLength&&(c.dataAdapter=d.Decorate(c.dataAdapter,_)),c.tags&&(c.dataAdapter=d.Decorate(c.dataAdapter,m)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=d.Decorate(c.dataAdapter,g))),null==c.resultsAdapter&&(c.resultsAdapter=t,null!=c.ajax&&(c.resultsAdapter=d.Decorate(c.resultsAdapter,E)),null!=c.placeholder&&(c.resultsAdapter=d.Decorate(c.resultsAdapter,C)),c.selectOnClose&&(c.resultsAdapter=d.Decorate(c.resultsAdapter,D))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=b;else{var u=d.Decorate(b,T);c.dropdownAdapter=u}0!==c.minimumResultsForSearch&&(c.dropdownAdapter=d.Decorate(c.dropdownAdapter,I)),c.closeOnSelect&&(c.dropdownAdapter=d.Decorate(c.dropdownAdapter,x)),null!=c.dropdownCssClass&&(c.dropdownAdapter=d.Decorate(c.dropdownAdapter,O)),c.dropdownAdapter=d.Decorate(c.dropdownAdapter,w)}null==c.selectionAdapter&&(c.multiple?c.selectionAdapter=i:c.selectionAdapter=n,null!=c.placeholder&&(c.selectionAdapter=d.Decorate(c.selectionAdapter,o)),c.allowClear&&(c.selectionAdapter=d.Decorate(c.selectionAdapter,r)),c.multiple&&(c.selectionAdapter=d.Decorate(c.selectionAdapter,a)),null!=c.selectionCssClass&&(c.selectionAdapter=d.Decorate(c.selectionAdapter,s
129)),c.selectionAdapter=d.Decorate(c.selectionAdapter,l)),c.language=this._resolveLanguage(c.language),c.language.push("en");for(var k=[],S=0;S<c.language.length;S++){var R=c.language[S];-1===k.indexOf(R)&&k.push(R)}return c.language=k,c.translations=this._processTranslations(c.language,c.debug),c},k.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return u[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:d.escapeMarkup,language:{},matcher:function n(i,o){if(null==i.term||""===i.term.trim())return o;if(o.children&&0<o.children.length){for(var r=e.extend(!0,{},o),a=o.children.length-1;0<=a;a--)null==n(i,o.children[a])&&r.children.splice(a,1);return 0<r.children.length?r:n(i,r)}var s=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return-1<s.indexOf(l)?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},k.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,o=t.prop("lang"),r=t.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(r));return e.language=a,e},k.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=Array.isArray(t)?t:[t];for(var i=[],o=0;o<n.length;o++)if(i.push(n[o]),"string"==typeof n[o]&&0<n[o].indexOf("-")){var r=n[o].split("-")[0];i.push(r)}return i},k.prototype._processTranslations=function(t,n){for(var i=new c,o=0;o<t.length;o++){var r=new c,a=t[o];if("string"==typeof a)try{r=c.loadPath(a)}catch(t){try{a=this.defaults.amdLanguageBase+a,r=c.loadPath(a)}catch(t){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else r=e.isPlainObject(a)?new c(a):a;i.extend(r)}return i},k.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=d._convertData(i);e.extend(!0,this.defaults,o)},new k}),l.define("select2/options",["jquery","./defaults","./utils"],function(e,t,n){function i(e,n){this.options=e,null!=n&&this.fromElement(n),null!=n&&(this.options=t.applyFromElement(this.options,n)),this.options=t.apply(this.options)}return i.prototype.fromElement=function(t){function i(e,t){return t.toUpperCase()}var o=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));for(var r={},a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a].name,l="data-";if(s.substr(0,l.length)==l){var d=s.substring(l.length),c=n.GetData(t[0],d);r[d.replace(/-([a-z])/g,i)]=c}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var u=e.extend(!0,{},n.GetData(t[0]),r);for(var h in u=n._convertData(u))-1<o.indexOf(h)||(e.isPlainObject(this.options[h])?e.extend(this.options[h],u[h]):this.options[h]=u[h]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i}),l.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var o=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),o.__super__.constructor.call(this);var r=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",r),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var d=this.options.get("dropdownAdapter");this.dropdown=new d(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var r=e.attr("style");if("string"!=typeof r)return null;for(var a=r.split(";"),s=0,l=a.length;s<l;s+=1){var d=a[s].replace(/\s/g,"").match(n);if(null!==d&&1<=d.length)return d[1]}return null},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(t){e._syncA(),e._syncS(t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(n,i){-1===t.indexOf(n)&&e.trigger(n,i)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container[0].classList.add("select2-container--open")}),this.on("close",function(){e.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){e.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){e.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){e.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}
vendor: 4,678 bytes, line 129
129),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},o.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})})},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],a={prevented:!1,name:e,args:t};if(n.call(this,r,a),a.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},o.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},o.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},o.prototype.focus=function(){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map(function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},o}),l.define("jquery-mousewheel",["jquery"],function(e){return e}),l.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,n,i,o){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);
129var i,a=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,a)}),-1<r.indexOf(t)?this:i}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:l.define,require:l.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n}),function(e,t){"function"==typeof define&&define.amd?define([],t(e)):"object"==typeof exports?module.exports=t(e):e.smoothScroll=t(e)}("undefined"!=typeof global?global:this.window||this.global,function(e){"use strict";var t,n,i,o,r,a,s,l={},d="querySelector"in document&&"addEventListener"in e,c={selector:"[data-scroll]",selectorHeader:null,speed:500,easing:"easeInOutCubic",offset:0,callback:function(){}},u=function(){var e={},t=!1,n=0,i=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(var o=function(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t&&"[object Object]"===Object.prototype.toString.call(n[i])?e[i]=u(!0,e[i],n[i]):e[i]=n[i])};n<i;n++){o(arguments[n])}return e},h=function(e){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},f=function(e,t){var n,i,o=t.charAt(0),r="classList"in document.documentElement;for("["===o&&((n=(t=t.substr(1,t.length-2)).split("=")).length>1&&(i=!0,n[1]=n[1].replace(/"/g,"").replace(/'/g,"")));e&&e!==document&&1===e.nodeType;e=e.parentNode){if("."===o)if(r){if(e.classList.contains(t.substr(1)))return e}else if(new RegExp("(^|\\s)"+t.substr(1)+"(\\s|$)").test(e.className))return e;if("#"===o&&e.id===t.substr(1))return e;if("["===o&&e.hasAttribute(n[0])){if(!i)return e;if(e.getAttribute(n[0])===n[1])return e}if(e.tagName.toLowerCase()===t)return e}return null},p=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),i=n.length,o=-1,r="",a=n.charCodeAt(0);++o<i;){if(0===(t=n.charCodeAt(o)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");r+=t>=1&&t<=31||127==t||0===o&&t>=48&&t<=57||1===o&&t>=48&&t<=57&&45===a?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(o):"\\"+n.charAt(o)}return"#"+r},m=function(e,t){var n;return"easeInQuad"===e&&(n=t*t),"easeOutQuad"===e&&(n=t*(2-t)),"easeInOutQuad"===e&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e&&(n=t*t*t),"easeOutCubic"===e&&(n=--t*t*t+1),"easeInOutCubic"===e&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e&&(n=t*t*t*t),"easeOutQuart"===e&&(n=1- --t*t*t*t),"easeInOutQuart"===e&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e&&(n=t*t*t*t*t),"easeOutQuint"===e&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),n||t 130},g=function(e,t,n){var i=0;if(e.offsetParent)do{i+=e.offsetTop,e=e.offsetParent}while(e);return i=Math.max(i-t-n,0),Math.min(i,y()-v())},v=function(){return Math.max(document.documentElement.clientHeight,e.innerHeight||0)},y=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},_=function(e){return e&&"object"==typeof JSON&&"function"==typeof JSON.parse?JSON.parse(e):{}},b=function(e){return e?h(e)+e.offsetTop:0},T=function(t,n,i){i||(t.focus(),document.activeElement.id!==t.id&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))};l.animateScroll=function(n,i,a){var l=_(i?i.getAttribute("data-options"):null),d=u(t||c,a||{},l),h="[object Number]"===Object.prototype.toString.call(n),f=h||!n.tagName?null:n;if(h||f){var p=e.pageYOffset;d.selectorHeader&&!o&&(o=document.querySelector(d.selectorHeader)),r||(r=b(o));var v,C,E=h?n:g(f,r,parseInt(d.offset,10)),w=E-p,I=y(),D=0,x=function(t,o,r){var a=e.pageYOffset;(t==o||a==o||e.innerHeight+a>=I)&&(clearInterval(r),T(n,o,h),d.callback(n,i))},O=function(){v=(v=(D+=16)/parseInt(d.speed,10))>1?1:v,C=p+w*m(d.easing,v),e.scrollTo(0,Math.floor(C)),x(C,E,s)},k=function(){clearInterval(s),s=setInterval(O,16)};0===e.pageYOffset&&e.scrollTo(0,0),k()}};var C=function(){e.location.hash,n&&(n.id=n.getAttribute("data-scroll-id"),l.animateScroll(n,i),n=null,i=null)}
130,E=function(o){if(0===o.button&&!o.metaKey&&!o.ctrlKey&&((i=f(o.target,t.selector))&&"a"===i.tagName.toLowerCase()&&i.hostname===e.location.hostname&&i.pathname===e.location.pathname&&/#/.test(i.href))){var r=p(i.hash);if("#"===r){o.preventDefault();var a=(n=document.body).id?n.id:"smooth-scroll-top";return n.setAttribute("data-scroll-id",a),n.id="",void(e.location.hash.substring(1)===a?C():e.location.hash=a)}(n=document.querySelector(r))&&(n.setAttribute("data-scroll-id",n.id),n.id="",i.hash===e.location.hash&&(o.preventDefault(),C()))}},w=function(){a||(a=setTimeout(function(){a=null,r=b(o)},66))};return l.destroy=function(){t&&(document.removeEventListener("click",E,!1),e.removeEventListener("resize",w,!1),t=null,n=null,i=null,o=null,r=null,a=null,s=null)},l.init=function(n){d&&(l.destroy(),t=u(c,n||{}),o=t.selectorHeader?document.querySelector(t.selectorHeader):null,r=b(o),document.addEventListener("click",E,!1),e.addEventListener("hashchange",C,!1),o&&e.addEventListener("resize",w,!1))},l}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Sweetalert2=t()}(this,function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(T){return!1}}function l(){return(l=s()?Reflect.construct:function(e,t,n){var i=[null];return i.push.apply(i,t),i=new(Function.bind.apply(e,i)),n&&a(i,n.prototype),i}).apply(null,arguments)}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){if(e=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}(e,t))return(t=Object.getOwnPropertyDescriptor(e,t)).get?t.get.call(n):t.value})(e,t,n||e)}function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e){return Object.keys(e).map(function(t){return e[t]})}function f(e){return Array.prototype.slice.call(e)}function p(e,t){t='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),-1===Ve.indexOf(t)&&(Ve.push(t),We(t))}function m(e){return e&&"function"==typeof e.toPromise}function g(e){return m(e)?e.toPromise():Promise.resolve(e)}function v(e){return e&&Promise.resolve(e)===e}function y(t){return t instanceof Element||"object"===e(t=t)&&t.jquery}function _(){return document.body.querySelector(".".concat(Xe.container))}function b(e){var t=_();return t?t.querySelector(e):null}function T(e){return b(".".concat(e))}function C(){return T(Xe.popup)}function E(){return f(C().querySelectorAll(".".concat(Xe.icon)))}function w(){var e=E().filter(function(e){return it(e)});return e.length?e[0]:null}function I(){return T(Xe.title)}function D(){return T(Xe.content)}function x(){return T(Xe.image)}function O(){return T(Xe["progress-steps"])}function k(){return T(Xe["validation-message"])}function S(){return b(".".concat(Xe.actions," .").concat(Xe.confirm))}function R(){return b(".".concat(Xe.actions," .").concat(Xe.deny))}function $(){return b(".".concat(Xe.loader))}function A(){return b(".".concat(Xe.actions," .").concat(Xe.cancel))}function K(){return T(Xe.actions)}function N(){return T(Xe.header)}function L(){return T(Xe.footer)}function M(){return T(Xe["timer-progress-bar"])}function P(){return T(Xe.close)}
130function F(){var e=f(C().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return e=parseInt(e.getAttribute("tabindex")),(t=parseInt(t.getAttribute("tabindex")))<e?1:e<t?-1:0}),t=f(C().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter(function(e){return"-1"!==e.getAttribute("tabindex")});return function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t)).filter(function(e){return it(e)})}function B(){return!Ze()&&!document.body.classList.contains(Xe["no-backdrop"])}function j(e,t){e.textContent="",t&&(f((t=(new DOMParser).parseFromString(t,"text/html")).querySelector("head").childNodes).forEach(function(t){e.appendChild(t)}),f(t.querySelector("body").childNodes).forEach(function(t){e.appendChild(t)}))}function H(e,t){if(t){for(var n=t.split(/\s+/),i=0;i<n.length;i++)if(!e.classList.contains(n[i]))return;return 1}}function z(t,n,i){var o,r;if(r=n,f((o=t).classList).forEach(function(e){-1===h(Xe).indexOf(e)&&-1===h(Qe).indexOf(e)&&-1===h(r.
130showClass).indexOf(e)&&o.classList.remove(e)}),n.customClass&&n.customClass[i]){if("string"!=typeof n.customClass[i]&&!n.customClass[i].forEach)return We("Invalid type of customClass.".concat(i,'! Expected string or iterable object, got "').concat(e(n.customClass[i]),'"'));et(t,n.customClass[i])}}function q(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return nt(e,Xe[t]);case"checkbox":return e.querySelector(".".concat(Xe.checkbox," input"));case"radio":return e.querySelector(".".concat(Xe.radio," input:checked"))||e.querySelector(".".concat(Xe.radio," input:first-child"));case"range":return e.querySelector(".".concat(Xe.range," input"));default:return nt(e,Xe.input)}}function W(e){var t;e.focus(),"file"!==e.type&&(t=e.value,e.value="",e.value=t)}function U(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(function(t){e.forEach?e.forEach(function(e){n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))}function V(e,t,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)}function Y(e,t){t=1<arguments.length&&void 0!==t?t:"flex",e.style.display=t}function G(e){e.style.display="none"}function X(e,t,n,i){(t=e.querySelector(t))&&(t.style[n]=i)}function Q(e,t,n){t?Y(e,n):G(e)}function Z(e){return!!(e.scrollHeight>e.clientHeight)}function J(e){var t=window.getComputedStyle(e);e=parseFloat(t.getPropertyValue("animation-duration")||"0"),t=parseFloat(t.getPropertyValue("transition-duration")||"0");return 0<e||0<t}function ee(e,t){t=1<arguments.length&&void 0!==t&&t;var n=M();it(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"},10))}function te(){return"undefined"==typeof window||"undefined"==typeof document}function ne(e){Ln.isVisible()&&ze!==e.target.value&&Ln.resetValidationMessage(),ze=e.target.value}function ie(t,n){t instanceof HTMLElement?n.appendChild(t):"object"===e(t)?at(t,n):t&&j(n,t)}function oe(e,t){var n,i,o,r,a=K(),s=$(),l=S(),d=R(),c=A();t.showConfirmButton||t.showDenyButton||t.showCancelButton||G(a),z(a,t,"actions"),re(l,"confirm",t),re(d,"deny",t),re(c,"cancel",t),n=l,i=d,o=c,(r=t).buttonsStyling?(et([n,i,o],Xe.styled),r.confirmButtonColor&&(n.style.backgroundColor=r.confirmButtonColor),r.denyButtonColor&&(i.style.backgroundColor=r.denyButtonColor),r.cancelButtonColor&&(o.style.backgroundColor=r.cancelButtonColor)):tt([n,i,o],Xe.styled),t.reverseButtons&&(a.insertBefore(c,s),a.insertBefore(d,s),a.insertBefore(l,s)),j(s,t.loaderHtml),z(s,t,"loader")}function re(e,t,n){Q(e,n["show".concat(u(t),"Button")],"inline-block"),j(e,n["".concat(t,"ButtonText")]),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]),e.className=Xe[t],z(e,n,"".concat(t,"Button")),et(e,n["".concat(t,"ButtonClass")])}function ae(e,t){var n,i,o=_();o&&(i=o,"string"==typeof(n=t.backdrop)?i.style.background=n:n||et([document.documentElement,document.body],Xe["no-backdrop"]),!t.backdrop&&t.allowOutsideClick&&We('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),i=o,(n=t.position)in Xe?et(i,Xe[n]):(We('The "position" parameter is not valid, defaulting to "center"'),et(i,Xe.center)),n=o,!(i=t.grow)||"string"!=typeof i||(i="grow-".concat(i))in Xe&&et(n,Xe[i]),z(o,t,"container"),(t=document.body.getAttribute("data-swal2-queue-step"))&&(o.setAttribute("data-queue-step",t),document.body.removeAttribute("data-swal2-queue-step")))}function se(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)}function le(e,t,n){var i,o;n.inputLabel&&(e.id=Xe.input,i=document.createElement("label"),o=Xe["input-label"],i.setAttribute("for",e.id),i.className=o,i.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",i))}function de(e,t){var n,i,o,r=D().querySelector("#".concat(Xe.content));t.html?(ie(t.html,r),Y(r,"block")):t.text?(r.textContent=t.text,Y(r,"block")):G(r),e=e,n=t,i=D(),e=dt.innerParams.get(e),o=!e||n.input!==e.input,ct.forEach(function(e){var t=Xe[e],r=nt(i,t);ht(e,n.inputAttributes),r.className=t,o&&G(r)}),n.input&&(o&&ut(n),ft(n)),z(D(),t,"content")}function ce(){return _()&&_().getAttribute("data-queue-step")}function ue(e,t){var n=O();if(!t.progressSteps||0===t.progressSteps.length)return G(n),0;Y(n),n.textContent="";var i=parseInt(void 0===t.currentProgressStep?ce():t.currentProgressStep);i>=t.progressSteps.length&&We("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(function(e,o){var r;r=e,e=document.createElement("li"),et(e,Xe["progress-step"]),j(e,r),e=e;n.appendChild(e),o===i&&et(e,Xe["active-progress-step"]),o!==t.progressSteps.length-1&&(e=t,o=document.createElement("li"),et(o,Xe["progress-step-line"]),e.progressStepsDistance&&(o.style.width=e.progressStepsDistance),o=o,n.appendChild(o))})}function he(e,t){var n=N();z(n,t,"header"),ue(0,t),n=e,e=t,(n=dt.innerParams.get(n))&&e.icon===n.icon&&w()?yt(w(),e):(vt(),e.icon&&(-1!==Object.keys(Qe).indexOf(e.icon)?(Y(n=b(".".concat(Xe.icon,".").concat(Qe[e.icon]))),bt(n,e),yt(n,e),et(n,e.showClass.icon)):Ue('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"')))),function(e){var t=x();if(!e.imageUrl)return G(t);Y(t,""),t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt),V(t,"width",e.imageWidth),V(t,"height",e.imageHeight),t.className=Xe.image,z(t,e,"image")}(t),n=t,Q(e=I(),n.title||n.titleText),n.title&&ie(n.title,e),n.titleText&&(e.innerText=n.titleText),z(e,n,"title"),n=t,j(t=P(),n.closeButtonHtml),z(t,n,"closeButton"),Q(t,n.showCloseButton),t.setAttribute("aria-label",n.closeButtonAriaLabel)}function fe(e,t){var n,i;i=t,V(n=C(),"width",i.width),V(n,"padding",i.padding),i.background&&(n.style.background=i.background),wt(n,i),ae(0,t),he(e,t),de(e,t),oe(0,t),i=t,Q(e=L(),i.footer),i.footer&&ie(i.footer,e),z(e,i,"footer"),"function"==typeof t.didRender?t.didRender(C()):"function"==typeof t.onRender&&t.onRender(C())}function pe(){return S()&&S().click()}function me(e){var t=C();t||Ln.fire(),t=C();var n=K(),i=$();!e&&it(S())&&(e=S()),Y(n),e&&(G(e),i.setAttribute("data-button-to-replace",e.className)),i.parentNode.insertBefore(i,e),et([t,n],Xe.loading),Y(i),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()}function ge(){return new Promise(function(e){var t=window.scrollX,n=window.scrollY;It.restoreFocusTimeout=setTimeout(function(){It.previousActiveElement&&It.previousActiveElement.focus?(It.previousActiveElement.focus(),It.previousActiveElement=null):document.body&&document.body.focus(),e()},100),void 0!==t&&void 0!==n&&window.scrollTo(t,n)})}function ve(){if(It.timeout)return function(){var e=M(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=parseInt(window.getComputedStyle(e).width);n=parseInt(t/n*100);e.style.removeProperty("transition"),e.style.width="".concat(n,"%")}(),It.timeout.stop()}function ye(){if(It.timeout){var e=It.timeout.start();return ee(e),e}}function _e(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in xt){var i=t.getAttribute(n);if(i)return void xt[n].fire({template:i})}}function be(e){return Object.prototype.hasOwnProperty.call(Ot,e)}
130function Te(e){return St[e]}function Ce(e){for(var t in e)be(i=t)||We('Unknown parameter "'.concat(i,'"')),e.toast&&(n=t,-1!==Rt.indexOf(n)&&We('The parameter "'.concat(n,'" is incompatible with toasts'))),Te(n=t)&&p(n,Te(n));var n,i}function Ee(){var e,t;dt.innerParams.get(this)&&(G((e=dt.domCache.get(this)).loader),(t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"))).length?Y(t[0],"inline-block"):it(S())||it(R())||it(A())||G(e.actions),tt([e.popup,e.actions],Xe.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1)}function we(){null===Je.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(Je.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Je.previousBodyPadding+function(){var e=document.createElement("div");e.className=Xe["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}(),"px"))}function Ie(){return!!window.MSInputMethodContext&&!!document.documentMode}function De(){var e=_(),t=C();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")}function xe(e,t,n,i){n?jt(e,i):(ge().then(function(){return jt(e,i)}),It.keydownTarget.removeEventListener("keydown",It.keydownHandler,{capture:It.keydownListenerCapture}),It.keydownHandlerAdded=!1),t.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&t.parentNode.removeChild(t),B()&&(null!==Je.previousBodyPadding&&(document.body.style.paddingRight="".concat(Je.previousBodyPadding,"px"),Je.previousBodyPadding=null),H(document.body,Xe.iosfix)&&(t=parseInt(document.body.style.top,10),tt(document.body,Xe.iosfix),document.body.style.top="",document.body.scrollTop=-1*t),"undefined"!=typeof window&&Ie()&&window.removeEventListener("resize",De),f(document.body.children).forEach(function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})),tt([document.documentElement,document.body],[Xe.shown,Xe["height-auto"],Xe["no-backdrop"],Xe["toast-shown"],Xe["toast-column"]])}function Oe(e){var t,n,i,o=C();o&&(e=ke(e),(t=dt.innerParams.get(this))&&!H(o,t.hideClass.popup)&&(n=Pt.swalPromiseResolve.get(this),tt(o,t.showClass.popup),et(o,t.hideClass.popup),i=_(),tt(i,t.showClass.backdrop),et(i,t.hideClass.backdrop),Se(this,o,t),n(e)))}function ke(e){return void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:o({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)}function Se(e,t,n){var i=_(),o=lt&&J(t),r=n.onClose,a=n.onAfterClose,s=n.willClose;n=n.didClose;Ft(t,s,r),o?Bt(e,t,i,n||a):xe(e,i,Ze(),n||a)}function Re(e,t,n){var i=dt.domCache.get(e);t.forEach(function(e){i[e].disabled=n})}function $e(e,t){if(!e)return!1;if("radio"===e.type)for(var n=e.parentNode.parentNode.querySelectorAll("input"),i=0;i<n.length;i++)n[i].disabled=t;else e.disabled=t}function Ae(e){var t,n;(t=e).inputValidator||Object.keys(zt).forEach(function(e){t.input===e&&(t.inputValidator=zt[e])}),e.showLoaderOnConfirm&&!e.preConfirm&&We("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),e.animation=Ye(e.animation),(n=e).target&&("string"!=typeof n.target||document.querySelector(n.target))&&("string"==typeof n.target||n.target.appendChild)||(We('Target parameter is not valid, defaulting to "body"'),n.target="body"),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),rt(e)}function Ke(e){var t=_(),n=C();"function"==typeof e.willOpen?e.willOpen(n):"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n);var i=window.getComputedStyle(document.body).overflowY;nn(t,n,e),setTimeout(function(){en(t,n)},10),B()&&(tn(t,e.scrollbarPadding,i),f(document.body.children).forEac
130h(function(e){e===_()||function(e,t){if("function"==typeof e.contains)return e.contains(t)}(e,_())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})),Ze()||It.previousActiveElement||(It.previousActiveElement=document.activeElement),Jt(n,e),tt(t,Xe["no-transition"])}function Ne(e){var t=C();e.target===t&&(e=_(),t.removeEventListener(lt,Ne),e.style.overflowY="auto")}function Le(e,t){e.closePopup({isConfirmed:!0,value:t})}function Me(e,t,n){var i=F();if(i.length)return(t+=n)===i.length?t=0:-1===t&&(t=i.length-1),i[t].focus();C().focus()}function Pe(e){var t=o({},Ot.showClass,e.showClass),n=o({},Ot.hideClass,e.hideClass),i=function(e){return(e="string"==typeof e.template?document.querySelector(e.template):e.template)?(e=e.content||e,Qt(e),o(Wt(e),Ut(e),Vt(e),Yt(e),Gt(e),Xt(e,qt))):{}}(e);return(i=o({},Ot,e,i)).showClass=t,i.hideClass=n,!1===e.animation&&(i.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},i.hideClass={}),i}function Fe(e,t,n){return new Promise(function(i){function o(t){e.closePopup({isDismissed:!0,dismiss:t})}var r,a,s,l;Pt.swalPromiseResolve.set(e,i),t.confirmButton.onclick=function(){return i=n,(t=e).disableButtons(),void(i.input?hn(t,i,"confirm"):mn(t,i,!0));var t,i},t.denyButton.onclick=function(){return i=n,(t=e).disableButtons(),void(i.returnInputValueOnDeny?hn(t,i,"deny"):pn(t,i,!1));var t,i},t.cancelButton.onclick=function(){return t=o,e.disableButtons(),void t(Ge.cancel);var t},t.closeButton.onclick=function(){return o(Ge.close)},r=e,l=t,i=o,dt.innerParams.get(r).toast?wn(r,l,i):(Dn(l),xn(l),On(r,l,i)),a=e,l=n,s=o,(i=It).keydownTarget&&i.keydownHandlerAdded&&(i.keydownTarget.removeEventListener("keydown",i.keydownHandler,{capture:i.keydownListenerCapture}),i.keydownHandlerAdded=!1),l.toast||(i.keydownHandler=function(e){return _n(a,e,s)},i.keydownTarget=l.keydownListenerCapture?window:C(),i.keydownListenerCapture=l.keydownListenerCapture,i.keydownTarget.addEventListener("keydown",i.keydownHandler,{capture:i.keydownListenerCapture}),i.keydownHandlerAdded=!0),(n.toast&&(n.input||n.footer||n.showCloseButton)?et:tt)(document.body,Xe["toast-column"]),l=e,"select"===(i=n).input||"radio"===i.input?sn(l,i):-1!==["text","email","number","tel","textarea"].indexOf(i.input)&&(m(i.inputValue)||v(i.inputValue))&&ln(l,i),Ke(n),kn(It,n,o),Sn(t,n),setTimeout(function(){t.container.scrollTop=0})})}function Be(e){var t={popup:C(),container:_(),content:D(),actions:K(),confirmButton:S(),denyButton:R(),cancelButton:A(),loader:$(),closeButton:P(),validationMessage:k(),progressSteps:O()};return dt.domCache.set(e,t),t}function je(e){"function"==typeof e.didDestroy?e.didDestroy():"function"==typeof e.onDestroy&&e.onDestroy()}function He(e){delete e.params,delete It.keydownHandler,delete It.keydownTarget,An(dt),An(Pt)}var ze,qe="SweetAlert2:",We=function(t){console.warn("".concat(qe," ").concat("object"===e(t)?t.join(" "):t))},Ue=function(e){console.error("".concat(qe," ").concat(e))},Ve=[],Ye=function(e){return"function"==typeof e?e():e},Ge=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Xe=(Kn=function(e){var t,n={};for(t in e)n[e[t]]="swal2-"+e[t];return n})(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),Qe=Kn(["success","warning","info","question","error"]),Ze=function(){return document.body.classList.contains(Xe["toast-shown"])},Je={previousBodyPadding:null},et=function(e,t){U(e,t,!0)},tt=function(e,t){U(e,t,!1)},nt=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(H(e.childNodes[n],t))return e.childNodes[n]},it=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},ot='\n <div aria-labelledby="'.concat(Xe.title,'" aria-describedby="').concat(Xe.content,'" class="').concat(Xe.popup,'" tabindex="-1">\n <div class="').concat(Xe.header,'">\n <ul class="').concat(Xe["progress-steps"],'"></ul>\n <div class="').concat(Xe.icon," ").concat(Qe.error,'"></div>\n <div class="').concat(Xe.icon," ").concat(Qe.question,'"></div>\n <div class="').concat(Xe.icon," ").concat(Qe.warning,'"></div>\n <div class="').concat(Xe.icon," ").concat(Qe.info,'"></div>\n <div class="').concat(Xe.icon," ").concat(Qe.success,'"></div>\n <img class="').concat(Xe.image,'" />\n <h2 class="').concat(Xe.title,'" id="').concat(Xe.title,'"></h2>\n <button type="button" class="').concat(Xe.close,'"></button>\n </div>\n <div class="').concat(Xe.content,'">\n <div id="').concat(Xe.content,'" class="').concat(Xe["html-container"],'"></div>\n <input class="').concat(Xe.input,'" />\n <input type="file" class="').concat(Xe.file,'" />\n <div class="').concat(Xe.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(Xe.select,'"></select>\n <div class="').concat(Xe.radio,'"></div>
130\n <label for="').concat(Xe.checkbox,'" class="').concat(Xe.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(Xe.label,'"></span>\n </label>\n <textarea class="').concat(Xe.textarea,'"></textarea>\n <div class="').concat(Xe["validation-message"],'" id="').concat(Xe["validation-message"],'"></div>\n </div>\n <div class="').concat(Xe.actions,'">\n <div class="').concat(Xe.loader,'"></div>\n <button type="button" class="').concat(Xe.confirm,'"></button>\n <button type="button" class="').concat(Xe.deny,'"></button>\n <button type="button" class="').concat(Xe.cancel,'"></button>\n </div>\n <div class="').concat(Xe.footer,'"></div>\n <div class="').concat(Xe["timer-progress-bar-container"],'">\n <div class="').concat(Xe["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),rt=function(e){var t,n,i,o,r,a=!!(o=_())&&(o.parentNode.removeChild(o),tt([document.documentElement,document.body],[Xe["no-backdrop"],Xe["toast-shown"],Xe["has-column"]]),!0);te()?Ue("SweetAlert2 requires document to initialize"):((r=document.createElement("div")).className=Xe.container,a&&et(r,Xe["no-transition"]),j(r,ot),(o="string"==typeof(t=e.target)?document.querySelector(t):t).appendChild(r),a=e,(t=C()).setAttribute("role",a.toast?"alert":"dialog"),t.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||t.setAttribute("aria-modal","true"),r=o,"rtl"===window.getComputedStyle(r).direction&&et(_(),Xe.rtl),e=D(),a=nt(e,Xe.input),t=nt(e,Xe.file),n=e.querySelector(".".concat(Xe.range," input")),i=e.querySelector(".".concat(Xe.range," output")),o=nt(e,Xe.select),r=e.querySelector(".".concat(Xe.checkbox," input")),e=nt(e,Xe.textarea),a.oninput=ne,t.onchange=ne,o.onchange=ne,r.onchange=ne,e.oninput=ne,n.oninput=function(e){ne(e),i.value=n.value},n.onchange=function(e){ne(e),n.nextSibling.value=n.value})},at=function(e,t){e.jquery?st(t,e):j(t,e.toString())},st=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},lt=function(){if(te())return!1;var e,t=document.createElement("div"),n={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&void 0!==t.style[e])return n[e];return!1}(),dt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},ct=["input","file","range","select","radio","checkbox","textarea"],ut=function(e){if(!mt[e.input])return Ue('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var t=pt(e.input),n=mt[e.input](t,e);Y(n),setTimeout(function(){W(n)})},ht=function(e,t){var n=q(D(),e);if(n)for(var i in function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name;-1===["type","value","style"].indexOf(n)&&e.removeAttribute(n)}}(n),t)"range"===e&&"placeholder"===i||n.setAttribute(i,t[i])},ft=function(e){var t=pt(e.input);e.customClass&&et(t,e.customClass.input)},pt=function(e){return e=Xe[e]||Xe.input,nt(D(),e)},mt={};mt.text=mt.email=mt.password=mt.number=mt.tel=mt.url=function(t,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?t.value=n.inputValue:v(n.inputValue)||We('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(e(n.inputValue),'"')),le(t,t,n),se(t,n),t.type=n.input,t},mt.file=function(e,t){return le(e,e,t),se(e,t),e},mt.range=function(e,t){var n=e.querySelector("input"),i=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,i.value=t.inputValue,le(n,e,t),e},mt.select=function(e,t){var n;return e.textContent="",t.inputPlaceholder&&(j(n=document.createElement("option"),t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)),le(e,e,t),e},mt.radio=function(e){return e.textContent="",e},mt.checkbox=function(e,t){var n=q(D(),"checkbox");return n.value=1,n.id=Xe.checkbox,n.checked=Boolean(t.inputValue),j(n=e.querySelector("span"),t.inputPlaceholder),e},mt.textarea=function(e,t){function n(e){return parseInt(window.getComputedStyle(e).paddingLeft)+parseInt(window.getComputedStyle(e).paddingRight)}var i;return e.value=t.inputValue,se(e,t),le(e,e,t),"MutationObserver"in window&&(i=parseInt(window.getComputedStyle(C()).width),new MutationObserver(function(){var t=e.offsetWidth+n(C())+n(D());C().style.width=i<t?"".concat(t,"px"):null}).observe(e,{attributes:!0,attributeFilter:["style"]})),e};var gt,vt=function(){for(var e=E(),t=0;t<e.length;t++)G(e[t])},yt=function(e,t){Tt(e,t),_t(),z(e,t,"icon")},_t=function(){for(var e=C(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),i=0;i<n.length;i++)n[i].style.backgroundColor=t},bt=function(e,t){e.textContent="",t.iconHtml?j(e,Ct(t.iconHtml)):"success"===t.icon?j(e,'\n <div class="swal2-success-circular-line-left"></div>
130\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===t.icon?j(e,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):j(e,Ct({question:"?",warning:"!",info:"i"}[t.icon]))},Tt=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,i=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<i.length;n++)X(e,i[n],"backgroundColor",t.iconColor);X(e,".swal2-success-ring","borderColor",t.iconColor)}},Ct=function(e){return'<div class="'.concat(Xe["icon-content"],'">').concat(e,"</div>")},Et=[],wt=function(e,t){e.className="".concat(Xe.popup," ").concat(it(e)?t.showClass.popup:""),t.toast?(et([document.documentElement,document.body],Xe["toast-shown"]),et(e,Xe.toast)):et(e,Xe.modal),z(e,t,"popup"),"string"==typeof t.customClass&&et(e,t.customClass),t.icon&&et(e,Xe["icon-".concat(t.icon)])},It={},Dt=!1,xt={},Ot={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose
130:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0 131},kt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],St={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},Rt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","heightAuto","keydownListenerCapture"],$t=Object.freeze({isValidParameter:be,isUpdatableParameter:function(e){return-1!==kt.indexOf(e)},isDeprecatedParameter:Te,argsToParams:function(t){var n={};return"object"!==e(t[0])||y(t[0])?["title","html","icon"].forEach(function(i,o){"string"==typeof(o=t[o])||y(o)?n[i]=o:void 0!==o&&Ue("Unexpected type of ".concat(i,'! Expected "string" or "Element", got ').concat(e(o)))}):o(n,t[0]),n},isVisible:function(){return it(C())},clickConfirm:pe,clickDeny:function(){return R()&&R().click()},clickCancel:function(){return A()&&A().click()},getContainer:_,getPopup:C,getTitle:I,getContent:D,getHtmlContainer:function(){return T(Xe["html-container"])},getImage:x,getIcon:w,getIcons:E,getInputLabel:function(){return T(Xe["input-label"])},getCloseButton:P,getActions:K,getConfirmButton:S,getDenyButton:R,getCancelButton:A,getLoader:$,getHeader:N,getFooter:L,getTimerProgressBar:M,getFocusableElements:F,getValidationMessage:k,isLoading:function(){return C().hasAttribute("data-loading")},fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l(this,t)},mixin:function(e){return function(n){function l(){return t(this,l),f.apply(this,arguments)}!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}}),t&&a(e,t)}(l,n);var u,h,f=(u=l,h=s(),function(){var e,t=r(u);return d(this,h?(e=r(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))});return i(l,[{key:"_main",value:function(t){return c(r(l.prototype),"_main",this).call(this,o({},e,t))}}]),l}(this)},queue:function(e){function t(e,t){Et=[],e(t)}var n=this;Et=e;var i=[];return new Promise(function(e){!function o(r,a){r<Et.length?(document.body.setAttribute("data-swal2-queue-step",r),n.fire(Et[r]).then(function(n){void 0!==n.value?(i.push(n.value),o(r+1,a)):t(e,{dismiss:n.dismiss})})):t(e,{value:i})}(0)})},getQueueStep:ce,insertQueueStep:function(e,t){return t&&t<Et.length?Et.splice(t,0,e):Et.push(e)},deleteQueueStep:function(e){void 0!==Et[e]&&Et.splice(e,1)},showLoading:me,enableLoading:me,getTimerLeft:function(){return It.timeout&&It.timeout.getTimerLeft()},stopTimer:ve,resumeTimer:ye,toggleTimer:function(){var e=It.timeout;return e&&(e.running?ve:ye)()},increaseTimer:function(e){if(It.timeout)return ee(e=It.timeout.increase(e),!0),e},isTimerRunning:function(){return It.timeout&&It.timeout.isRunning()},bindClickHandler:function(){xt[0<arguments.length&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Dt||(document.body.addEventListener("click",_e),Dt=!0)}}),At=function(){navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||C().scrollHeight>window.innerHeight-44&&(_().style.paddingBottom="".concat(44,"px"))},Kt=function(){var e,t=_();t.ontouchstart=function(t){e=Nt(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},Nt=function(e){var t=e.target,n=_();return!(Lt(e)||Mt(e)||t!==n&&(Z(n)||"INPUT"===t.tagName||Z(D())&&D().contains(t)))},Lt=function(e){return e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType},Mt=function(e){return e.touches&&1<e.touches.length},Pt={swalPromiseResolve:new WeakMap},Ft=function(e,t,n){null!==t&&"function"==typeof t?t(e):null!==n&&"function"==typeof n&&n(e)},Bt=function(e,t,n,i){It.swalCloseEventFinishedCallback=xe.bind(null,e,n,Ze(),i),t.addEventListener(lt,function(e){e.target===t&&(It.swalCloseEventFinishedCallback(),delete It.swalCloseEventFinishedCallback)})},jt=function(e,t){setTimeout(function(){"function"==typeof t&&t(),e._destroy()})},Ht=function(){function e(n,i){t(this,e),this.callback=n,this.remaining=i,this.running=!1,this.start()}return i(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,
131clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),e}(),zt={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}},qt=["swal-title","swal-html","swal-footer"],Wt=function(t){var n={};return f(t.querySelectorAll("swal-param")).forEach(function(t){Zt(t,["name","value"]);var i=t.getAttribute("name");t=t.getAttribute("value");"boolean"==typeof Ot[i]&&"false"===t&&(t=!1),"object"===e(Ot[i])&&(t=JSON.parse(t)),n[i]=t}),n},Ut=function(e){var t={};return f(e.querySelectorAll("swal-button")).forEach(function(e){Zt(e,["type","color","aria-label"]);var n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(u(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))}),t},Vt=function(e){var t={};return(e=e.querySelector("swal-image"))&&(Zt(e,["src","width","height","alt"]),e.hasAttribute("src")&&(t.imageUrl=e.getAttribute("src")),e.hasAttribute("width")&&(t.imageWidth=e.getAttribute("width")),e.hasAttribute("height")&&(t.imageHeight=e.getAttribute("height")),e.hasAttribute("alt")&&(t.imageAlt=e.getAttribute("alt"))),t},Yt=function(e){var t={};return(e=e.querySelector("swal-icon"))&&(Zt(e,["type","color"]),e.hasAttribute("type")&&(t.icon=e.getAttribute("type")),e.hasAttribute("color")&&(t.iconColor=e.getAttribute("color")),t.iconHtml=e.innerHTML),t},Gt=function(e){var t={},n=e.querySelector("swal-input");return n&&(Zt(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value"))),(e=e.querySelectorAll("swal-input-option")).length&&(t.inputOptions={},f(e).forEach(function(e){Zt(e,["value"]);var n=e.getAttribute("value");e=e.innerHTML;t.inputOptions[n]=e})),t},Xt=function(e,t){var n,i={};for(n in t){var o=t[n],r=e.querySelector(o);r&&(Zt(r,[]),i[o.replace(/^swal-/,"")]=r.innerHTML)}return i},Qt=function(e){var t=qt.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);f(e.querySelectorAll("*")).forEach(function(e){e=e.tagName.toLowerCase(),-1===t.indexOf(e)&&We("Unrecognized element <".concat(e,">"))})},Zt=function(e,t){f(e.attributes).forEach(function(n){-1===t.indexOf(n.name)&&We(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])})},Jt=function(e,t){"function"==typeof t.didOpen?setTimeout(function(){return t.didOpen(e)}):"function"==typeof t.onOpen&&setTimeout(function(){return t.onOpen(e)})},en=function(e,t){lt&&J(t)?(e.style.overflowY="hidden",t.addEventListener(lt,Ne)):e.style.overflowY="auto"},tn=function(e,t,n){var i;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!H(document.body,Xe.iosfix)&&(i=document.body.scrollTop,document.body.style.top="".concat(-1*i,"px"),et(document.body,Xe.iosfix),Kt(),At()),"undefined"!=typeof window&&Ie()&&(De(),window.addEventListener("resize",De)),t&&"hidden"!==n&&we(),setTimeout(function(){e.scrollTop=0})},nn=function(e,t,n){et(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),Y(t),setTimeout(function(){et(t,n.showClass.popup),t.style.removeProperty("opacity")},10),et([document.documentElement,document.body],Xe.shown),n.heightAuto&&n.backdrop&&!n.toast&&et([document.documentElement,document.body],Xe["height-auto"])},on=function(e){return e.checked?1:0},rn=function(e){return e.checked?e.value:null},an=function(e){return e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},sn=function(t,n){function i(e){return dn[n.input](o,cn(e),n)}var o=D();m(n.inputOptions)||v(n.inputOptions)?(me(),g(n.inputOptions).then(function(e){t.hideLoading(),i(e)})):"object"===e(n.inputOptions)?i(n.inputOptions):Ue("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(e(n.inputOptions)))},ln=function(e,t){var n=e.getInput();G(n),g(t.inputValue).then(function(i){n.value="number"===t.input?parseFloat(i)||0:"".concat(i),Y(n),n.focus(),e.hideLoading()})["catch"](function(t){Ue("Error in inputValue promise: ".concat(t)),n.value="",Y(n),n.focus(),e.hideLoading()})},dn={select:function(e,t,n){function i(e,t,i){var o=document.createElement("option");o.value=i,j(o,t),o.selected=un(i,n.inputValue),e.appendChild(o)}var o=nt(e,Xe.select);t.forEach(function(e){var t,n=e[0];e=e[1];Array.isArray(e)?((t=document.createElement("optgroup")).label=n,t.disabled=!1,o.appendChild(t),e.forEach(function(e){return i(t,e[1],e[0])})):i(o,e,n)}),o.focus()},radio:function(e,t,n){var i=nt(e,Xe.radio);t.forEach(function(e){var t=e[0],o=e[1],r=document.createElement("input");e=document.createElement("label");r.type="radio",r.name=Xe.radio,r.value=t,un(t,n.inputValue)&&(r.checked=!0),j(t=document.createElement("span"),o),t.className=Xe.label,e.appendChild(r),e.a
131ppendChild(t),i.appendChild(e)}),(t=i.querySelectorAll("input")).length&&t[0].focus()}},cn=function Mn(t){var n=[];return"undefined"!=typeof Map&&t instanceof Map?t.forEach(function(t,i){"object"===e(t)&&(t=Mn(t)),n.push([i,t])}):Object.keys(t).forEach(function(i){var o=t[i];"object"===e(o)&&(o=Mn(o)),n.push([i,o])}),n},un=function(e,t){return t&&t.toString()===e.toString()},hn=function(e,t,n){var i=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return on(n);case"radio":return rn(n);case"file":return an(n);default:return t.inputAutoTrim?n.value.trim():n.value}}(e,t);t.inputValidator?fn(e,t,i):e.getInput().checkValidity()?("deny"===n?pn:mn)(e,t,i):(e.enableButtons(),e.showValidationMessage(t.validationMessage))},fn=function(e,t,n){e.disableInput(),Promise.resolve().then(function(){return g(t.inputValidator(n,t.validationMessage))}).then(function(i){e.enableButtons(),e.enableInput(),i?e.showValidationMessage(i):mn(e,t,n)})},pn=function(e,t,n){t.preDeny?Promise.resolve().then(function(){return g(t.preDeny(n,t.validationMessage))}).then(function(t){!1===t?e.hideLoading():e.closePopup({isDenied:!0,value:void 0===t?n:t})}):e.closePopup({isDenied:!0,value:n})},mn=function(e,t,n){t.showLoaderOnConfirm&&me(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then(function(){return g(t.preConfirm(n,t.validationMessage))}).then(function(t){it(k())||!1===t?e.hideLoading():Le(e,void 0===t?n:t)})):Le(e,n)},gn=["ArrowRight","ArrowDown","Right","Down"],vn=["ArrowLeft","ArrowUp","Left","Up"],yn=["Escape","Esc"],_n=function(e,t,n){var i=dt.innerParams.get(e);i.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?bn(e,t,i):"Tab"===t.key?Tn(t,i):-1!==[].concat(gn,vn).indexOf(t.key)?Cn(t.key):-1!==yn.indexOf(t.key)&&En(t,i,n)},bn=function(e,t,n){t.isComposing||t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML&&-1===["textarea","file"].indexOf(n.input)&&(pe(),t.preventDefault())},Tn=function(e){for(var t=e.target,n=F(),i=-1,o=0;o<n.length;o++)if(t===n[o]){i=o;break}e.shiftKey?Me(0,i,-1):Me(0,i,1),e.stopPropagation(),e.preventDefault()},Cn=function(e){-1!==[S(),R(),A()].indexOf(document.activeElement)&&(e=-1!==gn.indexOf(e)?"nextElementSibling":"previousElementSibling",(e=document.activeElement[e])&&e.focus())},En=function(e,t,n){Ye(t.allowEscapeKey)&&(e.preventDefault(),n(Ge.esc))},wn=function(e,t,n){t.popup.onclick=function(){var t=dt.innerParams.get(e);t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton||t.input||n(Ge.close)}},In=!1,Dn=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(In=!0)}}},xn=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,t.target!==e.popup&&!e.popup.contains(t.target)||(In=!0)}}},On=function(e,t,n){t.container.onclick=function(i){var o=dt.innerParams.get(e);In?In=!1:i.target===t.container&&Ye(o.allowOutsideClick)&&n(Ge.backdrop)}},kn=function(e,t,n){var i=M();G(i),t.timer&&(e.timeout=new Ht(function(){n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(Y(i),setTimeout(function(){e.timeout.running&&ee(t.timer)})))},Sn=function(e,t){if(!t.toast)return Ye(t.allowEnterKey)?void(Rn(e,t)||Me(0,-1,1)):$n()},Rn=function(e,t){return t.focusDeny&&it(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&it(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!it(e.confirmButton)||(e.confirmButton.focus(),0))},$n=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()},An=function(e){for(var t in e)e[t]=new WeakMap},Kn=Object.freeze({hideLoading:Ee,disableLoading:Ee,getInput:function(e){var t=dt.innerParams.get(e||this);return(e=dt.domCache.get(e||this))?q(e.content,t.input):null},close:Oe,closePopup:Oe,closeModal:Oe,closeToast:Oe,enableButtons:function(){Re(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Re(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return $e(this.getInput(),!1)},disableInput:function(){return $e(this.getInput(),!0)},showValidationMessage:function(e){var t=dt.domCache.get(this),n=dt.innerParams.get(this);j(t.validationMessage,e),t.validationMessage.className=Xe["validation-message"],n.customClass&&n.customClass.validationMessage&&et(t.validationMessage,n.customClass.validationMessage),Y(t.validationMessage),(t=this.getInput())&&(t.setAttribute("aria-invalid",!0),t.setAttribute("aria-describedBy",Xe["validation-message"]),W(t),et(t,Xe.inputerror))},resetValidationMessage:function(){var e=dt.domCache.get(this);e.validationMessage&&G(e.validationMessage),(e=this.getInput())&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),tt(e,Xe.inputerror))},getProgressSteps:function(){return dt.domCache.get(this).progressSteps},_main:function(e){Ce(e),It.currentInstance&&It.currentInstance._destroy(),It.currentInstance=this;var t=Pe(e);return Ae(t),Object.freeze(t),It.timeout&&(It.timeout.stop(),delete It.timeout),clearTimeout(It.restoreFocusTimeout),e=Be(this),fe(this,t),dt.innerParams.set(this,t),Fe(this,e,t)},update:function(e){var t=C(),n=dt.innerParams.get(this);if(!t||H(t,n.hideClass.popup))return We("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var i={};Object.keys(e).forEach(function(t){Ln.isUpdatableParameter(t)?i[t]=e[t]:We('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))}),fe(this,n=o({},n,i)),dt.innerParams.set(this,n),Object.defineProperties(this,{params:{value:o({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var e=dt.domCache.get(this),t=dt.innerParams.get(this);t&&(e.popup&&It.swalCloseEventFinishedCallback&&(It.swalCloseEventFinishedCallback(),delete It.swalCloseEventFinishedCallback),It.deferDisposalTimer&&(clearTimeout(It.deferDisposalTimer),delete It.deferDisposalTimer),je(t),He(this))}}),Nn=function(){function e(){if(t(this,e),"undefined"!=typeof window){"undefined"==typeof Promise&&Ue("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),gt=this;for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var r=Object.freeze(this.constructor.argsToParams(i));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}}),r=this._main(this.params),dt.promise.set(this,r)}}return i(e,[{key:"then",value:function(e){return dt.promise.get(this).then(e)}},{key:"finally",value:function(e){return dt.promise.get(this)["finally"](e)}}]),e}();
131o(Nn.prototype,Kn),o(Nn,$t),Object.keys(Kn).forEach(function(e){Nn[e]=function(){if(gt)return gt[e].apply(gt,arguments)}}),Nn.DismissReason=Ge,Nn.version="10.12.3";var Ln=Nn;return Ln["default"]=Ln}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(e){"use strict";var t=function(t,n){this.el=e(t),this.options=e.extend({},e.fn.typed.defaults,n),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};t.prototype={constructor:t,init:function(){var e=this;e.timeout=setTimeout(function(){for(var t=0;t<e.strings.length;++t)e.sequence[t]=t;e.shuffle&&(e.sequence=e.shuffleArray(e.sequence)),e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos)},e.startDelay)},build:function(){var t=this;if(!0===this.showCursor&&(this.cursor=e('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){this.strings=[],this.stringsElement.hide(),console.log(this.stringsElement.children());var n=this.stringsElement.children();e.each(n,function(n,i){t.strings.push(e(i).html())})}this.init()},typewrite:function(e,t){if(!0!==this.stop){var n=Math.round(70*Math.random())+this.typeSpeed,i=this;i.timeout=setTimeout(function(){var n=0,o=e.substr(t);if("^"===o.charAt(0)){var r=1;/^\^\d+/.test(o)&&(r+=(o=/\d+/.exec(o)[0]).length,n=parseInt(o)),e=e.substring(0,t)+e.substring(t+r)}if("html"===i.contentType){var a=e.substr(t).charAt(0);if("<"===a||"&"===a){var s="";for(s="<"===a?">":";";e.substr(t+1).charAt(0)!==s&&(e.substr(t).charAt(0),!(++t+1>e.length)););t++,s}}i.timeout=setTimeout(function(){if(t===e.length){if(i.options.onStringTyped(i.arrayPos),i.arrayPos===i.strings.length-1&&(i.options.callback(),i.curLoop++,!1===i.loop||i.curLoop===i.loopCount))return;i.timeout=setTimeout(function(){i.backspace(e,t)},i.backDelay)}else{0===t&&i.options.preStringTyped(i.arrayPos);var n=e.substr(0,t+1);i.attr?i.el.attr(i.attr,n):i.isInput?i.el.val(n):"html"===i.contentType?i.el.html(n):i.el.text(n),t++,i.typewrite(e,t)}},n)},n)}},backspace:function(e,t){if(!0!==this.stop){var n=Math.round(70*Math.random())+this.backSpeed,i=this;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===e.substr(t).charAt(0)){for(;"<"!==e.substr(t-1).charAt(0)&&(e.substr(t).charAt(0),!(0>--t)););t--,"<"}var n=e.substr(0,t);i.attr?i.el.attr(i.attr,n):i.isInput?i.el.val(n):"html"===i.contentType?i.el.html(n):i.el.text(n),t>i.stopNum?(t--,i.backspace(e,t)):t<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),i.init()):i.typewrite(i.strings[i.sequence[i.arrayPos]],t))},n)}},shuffleArray:function(e){var t,n,i=e.length;if(i)for(;--i;)t=e[n=Math.floor(Math.random()*(i+1))],e[n]=e[i],e[i]=t;return e},reset:function(){clearInterval(this.timeout),this.el.attr("id"),this.el.empty(),"undefined"!=typeof this.cursor&&this.cursor.remove(),this.strPos=0,this.arrayPos=0,this.curLoop=0,this.options.resetCallback()}},e.fn.typed=function(n){return this.each(function(){var i=e(this),o=i.data("typed"),r="object"==typeof n&&n;o&&o.reset(),i.data("typed",o=new t(this,r)),"string"==typeof n&&o[n]()})},e.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery);var mr=function(e,t,n){"use strict";function i(t){t=typeof t==typeof undefined?e:t,a.documentReady.concat(a.documentReadyDeferred).forEac
131h(function(e){e(t)})}function o(t){t="object"==typeof t?e:t,a.windowLoad.concat(a.windowLoadDeferred).forEach(function(e){e(t)})}var r={},a={documentReady:[],documentReadyDeferred:[],windowLoad:[],windowLoadDeferred:[]};return e(n).ready(i),e(t).on("load",o),r.setContext=function(t){return typeof t!=typeof undefined?function(n){return e(t).find(n)}:e},r.components=a,r.documentReady=i,r.windowLoad=o,r}(jQuery,window,document);mr=function(e,t,n){"use strict";return e.util={},e.util.requestAnimationFrame=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame,e.util.documentReady=function(e){var t=(new Date).getFullYear();e(".update-year").text(t)},e.util.windowLoad=function(e){e("[data-delay-src]").each(function(){var t=e(this);t.attr("src",t.attr("data-delay-src")),t.removeAttr("data-delay-src")})},e.util.getURLParameter=function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[undefined,""])[1].replace(/\+/g,"%20"))||null},e.util.capitaliseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.util.slugify=function(e,t){return typeof t!=typeof undefined?e.replace(/ +/g,""):e.toLowerCase().replace(/[\~\!\@\#\$\%\^\&\*\(\)\-\_\=\+\]\[\}\{\'\"\;\\\:\?\/\>\<\.\,]+/g,"").replace(/ +/g,"-")},e.util.sortChildrenByText=function(e,n){var i=t(e),o=i.children().get(),r=-1,a=1;typeof n!=typeof undefined&&(r=1,a=-1),o.sort(function(e,n){var i=t(e).text(),o=t(n).text();return i<o?r:i>o?a:0}),i.empty(),t(o).each(function(e,t){i.append(t)})}
131,e.util.idleSrc=function(e,n){n=typeof n!=typeof undefined?n:"",(e.is(n+"[src]")?e:e.find(n+"[src]")).each(function(e,n){var i=(n=t(n)).attr("src");typeof n.attr("data-src")==typeof undefined&&n.attr("data-src",i),n.attr("src","")})},e.util.activateIdleSrc=function(e,n){n=typeof n!=typeof undefined?n:"",(e.is(n+"[src]")?e:e.find(n+"[src]")).each(function(e,n){var i=(n=t(n)).attr("data-src");typeof i!=typeof undefined&&n.attr("src",i)})},e.util.pauseVideo=function(e){(e.is("video")?e:e.find("video")).each(function(e,n){t(n).get(0).pause()})},e.util.parsePixels=function(e){var i=t(n).height();return/^[1-9]{1}[0-9]*[p][x]$/.test(e)?parseInt(e.replace("px",""),10):/^[1-9]{1}[0-9]*[v][h]$/.test(e)?i*(parseInt(e.replace("vh",""),10)/100):-1},e.components.documentReady.push(e.util.documentReady),e.components.windowLoad.push(e.util.windowLoad),e}(mr,jQuery,window,document),mr=function(e,t,n){"use strict";return e.window={},e.window.height=t(n).height(),e.window.width=t(n).width(),t(n).on("resize",function(){e.window.height=t(n).height(),e.window.width=t(n).width()}),e}(mr,jQuery,window,document),mr=function(e,t,n){"use strict";e.scroll={};var i=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame;e.scroll.listeners=[],e.scroll.busy=!1,e.scroll.y=0,e.scroll.x=0;var o=function(){jQuery(n).off("scroll.mr"),jQuery(n).on("scroll.mr",function(t){!1===e.scroll.busy&&(e.scroll.busy=!0,i(function(t){e.scroll.update(t)})),t.stopPropagation&&t.stopPropagation()})};return e.scroll.update=function(t){var i=typeof n.mr_parallax!=typeof undefined;if(e.scroll.y=i?mr_parallax.mr_getScrollPosition():n.pageYOffset,e.scroll.busy=!1,i&&mr_parallax.mr_parallaxBackground(),e.scroll.listeners.length>0)for(var o=0,r=e.scroll.listeners.length;o<r;o++)e.scroll.listeners[o](t)},e.scroll.documentReady=o,e.components.documentReady.push(o),e}(mr,jQuery,window,document),mr=function(e,t,n){"use strict";e.scroll.classModifiers={},e.scroll.classModifiers.rules=[],e.scroll.classModifiers.parseScrollRules=function(t){return t.attr("data-scroll-class").split(";").forEach(function(n){var i,o,r={};if(2===(i=n.replace(/\s/g,"").split(":")).length){if(!((o=e.util.parsePixels(i[0]))>-1))return!1;if(r.scrollPoint=o,!i[1].length)return!1;var a=i[1];r.toggleClass=a,r.hasClass=t.hasClass(a),r.element=t.get(0),e.scroll.classModifiers.rules.push(r)}}),!!e.scroll.classModifiers.rules.length},e.scroll.classModifiers.update=function(){for(var t,n=e.scroll.y,i=e.scroll.classModifiers.rules,o=i.length;o--;)n>(t=i[o]).scrollPoint&&!t.hasClass&&(t.element.classList.add(t.toggleClass),t.hasClass=e.scroll.classModifiers.rules[o].hasClass=!0),n<t.scrollPoint&&t.hasClass&&(t.element.classList.remove(t.toggleClass),t.hasClass=e.scroll.classModifiers.rules[o].hasClass=!1)};var i=function(){t('.main-container [data-scroll-class*="pos-fixed"]').each(function(){var e=t(this);e.css("max-width",e.parent().outerWidth()),e.parent().css("min-height",e.outerHeight())})},o=function(t){t("[data-scroll-class]").each(function(){var n=t(this);e.scroll.classModifiers.parseScrollRules(n)||console.log("Error parsing scroll rules on: "+n)}),i(),t(n).on("resize",i),e.scroll.classModifiers.rules.length&&e.scroll.listeners.push(e.scroll.classModifiers.update)};return e.components.documentReady.push(o),e.scroll.classModifiers.documentReady=o,e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e(".accordion__title").on("click",function(){var t=e(this).closest(".accordion"),n=e(this).closest("li");n.hasClass("active")?n.removeClass("active"):t.hasClass("accordion--oneopen")?(t.find("li.active").removeClass("active"),n.addClass("active")):n.addClass("active")}),e(".accordion").each(function(){var t=e(this),n=t.outerHeight(!0);t.css("min-height",n)}),e("#faq").css("min-height","auto")};return e.accordions={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e(".alert__close").on("click touchstart",function(){jQuery(this).closest(".alert").addClass("alert--dismissed")})};return e.alerts={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e(".background-image-holder").each(function(){var t=e(this).children("img").attr("src");e(this).css("background",'url("'+t+'")').css("background-position","initial").css("opacity","1")})};return e.backgrounds={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e('.nav-container .bar[data-scroll-class*="fixed"]:not(.bar--absolute)').each(function(){var t=e(this),n=t.outerHeight(!0);
131t.closest(".nav-container").css("min-height",n)})};return e.bars={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),mr=function(e,t,n,i){"use strict";return e.cookies={getItem:function(e){return e&&decodeURIComponent(i.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(e,t,n,o,r,a){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var s="";if(n)switch(n.constructor){case Number:s=n===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:s="; expires="+n;break;case Date:s="; expires="+n.toUTCString()}return i.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+s+(r?"; domain="+r:"")+(o?"; path="+o:"")+(a?"; secure":""),!0},removeItem:function(e,t,n){return!!this.hasItem(e)&&(i.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:"")+(t?"; path="+t:""),!0)},hasItem:function(e){return!!e&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(i.cookie)},keys:function(){for(var e=i.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,n=0;n<t;n++)e[n]=decodeURIComponent(e[n]);return e}},e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e(".countdown[data-date]").each(function(){var t=e(this),n=t.attr("data-date"),i="Time up!",o=!1;typeof t.attr("data-date-fallback")!=typeof undefined&&(i=t.attr("data-date-fallback")),typeof t.attr("data-days-text")!=typeof undefined&&t.attr("data-days-text"),typeof t.attr("data-alert")!=typeof undefined&&(o=t.attr("data-alert")),t.countdown(n,function(e){e.elapsed?(t.text(i),0!=o&&alert(o)):t.text(e.strftime("%M:%S"))})})};return e.countdown={documentReady:t},e.components.documentReadyDeferred.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e(".datepicker").length&&e(".datepicker").pickadate()};return e.components.documentReadyDeferred.push(t),e}(mr,jQuery,window,document),mr=function(e,t,n,i){"use strict";function o(e){e(".dropdown__container").each(function(){var e,t,n,i;jQuery(this).css("left",""),t=(e=jQuery(this)).offset().left,n=jQuery(".containerMeasure").offset().left,i=e.closest(".dropdown").offset().left,e.css("left",-t+n),e.find('.dropdown__content:not([class*="md-12"])').length&&e.find(".dropdown__content").css("left",i-n)}),e(".dropdown__content").each(function(){var e,t,i,o,r;i=(e=jQuery(this)).offset().left+(t=e.outerWidth(!0)),o=jQuery(n).outerWidth(!0),r=jQuery(".containerMeasure").outerWidth()-t,i>o&&e.css("left",r)})}function r(e){var t=jQuery(n).width();e(".dropdown__container").each(function(){var e,n,i,o;jQuery(this).css("left",""),e=jQuery(this),n=t-(e.offset().left+e.outerWidth(!0)),i=jQuery(".containerMeasure").offset().left,o=t-(e.closest(".dropdown").offset().left+e.closest(".dropdown").outerWidth(!0)),e.css("right",-n+i),e.find('.dropdown__content:not([class*="md-12"])').length&&e.find(".dropdown__content").css("right",o-i)}),e(".dropdown__content").each(function(){var e,i,o,r,a;e=jQuery(this),o=t-(e.offset().left+e.outerWidth(!0))+(i=e.outerWidth(!0)),r=jQuery(n).outerWidth(!0),a=jQuery(".containerMeasure").outerWidth()-i,o>r&&e.css("right",a)})}e.dropdowns={},e.dropdowns.done=!1;var a=function(t){var a=!1;t('html[dir="rtl"]').length&&(a=!0),e.dropdowns.done||(jQuery(i).on("click","body:not(.dropdowns--hover) .dropdown:not(.dropdown--hover), body.dropdowns--hover .dropdown.dropdown--click",function(e){var n=jQuery(this);jQuery(e.target).is(".dropdown--active > .dropdown__trigger")?(n.siblings().removeClass("dropdown--active").find(".dropdown").removeClass("dropdown--active"),n.toggleClass("dropdown--active")):(t(".dropdown--active").removeClass("dropdown--active"),n.addClass("dropdown--active"))}),jQuery(i).on("click touchstart","body",function(e){jQuery(e.target).is('[class*="dropdown"], [class*="dropdown"] *')||t(".dropdown--active").removeClass("dropdown--active")}),jQuery("body").append('<div class="container containerMeasure" style="opacity:0;pointer-events:none;"></div>'),!1===a?(o(t),jQuery(n).on("resize",function(){o(t)})):(r(t),jQuery(n).on("resize",function(){r(t)})),e.dropdowns.done=!0)};return e.dropdowns.documentReady=a,e.components.documentReady.push(a),e}(mr,jQuery,window,document),mr=function(e,t,n,i){ 132"use strict";e.forms={},e.forms.captcha={},e.forms.captcha.widgets=[],e.forms.captcha.done=!1;var o=function(t){e.forms.captcha.widgets=[],t(".input-checkbox").off("
132click.mr").on("click.mr",function(e){var n=t(this);if(!t(e.target).is("input")){n.toggleClass("checked");var i=n.find("input");return!1===i.prop("checked")?i.prop("checked",!0):i.prop("checked",!1),i.trigger("change"),!1}}),t(".input-radio").off("click.mr").on("click.mr",function(e){if(!t(e.target).is("input")){var n=t(this),i=n.find("input[type=radio]").attr("name");if("disabled"!=n.find("input[type=radio]").attr("disabled"))return n.closest("form").find('[type=radio][name*="'+i+'"]').each(function(){t(this).parent().removeClass("checked")}),n.addClass("checked").find("input").click().prop("checked",!0),!1}}),t(".input-number__controls > span").off("click.mr").on("click.mr",function(){var e=jQuery(this),t=e.closest(".input-number"),n=t.find('input[type="number"]'),i=n.attr("max"),o=n.attr("min"),r=1,a=parseInt(n.attr("value"),10);t.is("[data-step]")&&(r=parseInt(t.attr("data-step"),10)),e.hasClass("input-number__increase")?a+r<=i&&n.attr("value",a+r):a-r>=o&&n.attr("value",a-r)}),t(".input-file .btn").off("click.mr").on("click.mr",function(){return t(this).siblings("input").trigger("click"),!1}),t('form.form-email, form[action*="list-manage.com"], form[action*="createsend.com"]').attr("novalidate",!0).off("submit").on("submit",e.forms.submit),t(i).on("change, input, paste, keyup",".attempted-submit .field-error",function(){t(this).removeClass("field-error")}),t('form[data-recaptcha-sitekey]:not([data-recaptcha-sitekey=""])').each(function(){var t,n,i,o,r,a,s=jQuery(this),l=s.find("div.recaptcha");r=typeof(r=s.attr("data-recaptcha-theme"))!=typeof undefined?r:"",a=typeof(a=s.attr("data-recaptcha-size"))!=typeof undefined?a:"",e.forms.captcha.sitekey=s.attr("data-recaptcha-sitekey"),l.length||(t=s.find("button[type=submit]").closest('[class*="col-"]'),l=jQuery("<div>").addClass("recaptcha"),jQuery("<div>").addClass("col-xs-12").append(l).insertBefore(t)),n={element:l.get(0),parentForm:s,theme:r,size:a},e.forms.captcha.widgets.push(n),!1===e.forms.captcha.done?jQuery('script[src*="recaptcha/api.js"]').length||(o="https://www.google.com/recaptcha/api.js?onload=mrFormsCaptchaInit&render=explicit",(i=jQuery("<script async defer>")).attr("src",o),jQuery("body").append(i),e.forms.captcha.done=!0):typeof grecaptcha!=typeof undefined&&e.forms.captcha.renderWidgets()})};return e.forms.documentReady=o,e.forms.submit=function(i){i.preventDefault?i.preventDefault():i.returnValue=!1;var o,r,a,s,l,d=t("body"),c=t(i.target).closest("form"),u=typeof c.attr("action")!=typeof undefined?c.attr("action"):"",h=c.find('button[type="submit"], input[type="submit"]'),f=c.attr("original-error"),p=!!c.find("div.recaptcha").length;if(d.find(".form-error, .form-success").remove(),h.attr("data-text",h.text()),s=c.attr("data-error")?c.attr("data-error"):"Please fill all fields correctly",l=c.attr("data-success")?c.attr("data-success"):"Thanks, we'll be in touch shortly",d.append('<div class="form-error" style="display: none;">'+s+"</div>"),d.append('<div class="form-success" style="display: none;">'+l+"</div>"),r=d.find(".form-error"),a=d.find(".form-success"),c.addClass("attempted-submit"),-1!==u.indexOf("createsend.com")||-1!==u.indexOf("list-manage.com"))if(console.log("Mail list form signup detected."),typeof f!=typeof undefined&&!1!==f&&r.html(f),1!==e.forms.validateFields(c)){c.removeClass("attempted-submit"),r.fadeOut(200),h.addClass("btn--loading");try{t.ajax({url:c.attr("action"),crossDomain:!0,data:c.serialize(),method:"GET",cache:!1,dataType:"json",contentType:"application/json; charset=utf-8",success:function(t){"success"!==t.result&&200!==t.Status?(r.attr("original-error",r.text()),r.html(t.msg).stop(!0).fadeIn(1e3),a.stop(!0).fadeOut(1e3),h.removeClass("btn--loading")):(h.removeClass("btn--loading"),typeof(o=c.attr("data-success-redirect"))!=typeof undefined&&!1!==o&&""!==o?n.location=o:(e.forms.resetForm(c),e.forms.showFormSuccess(a,r,1e3,5e3,500)))}})}catch(err){r.attr("original-error",r.text()),r.html(err.message),e.forms.showFormError(a,r,1e3,5e3,500),h.removeClass("btn--loading")}}else e.forms.showFormError(a,r,1e3,5e3,500);else typeof f!=typeof undefined&&!1!==f&&r.text(f),1===e.forms.validateFields(c)?e.forms.showFormError(a,r,1e3,5e3,500):(c.removeClass("attempted-submit"),r.fadeOut(200),h.addClass("btn--loading"),jQuery.ajax({type:"POST",url:"mail/mail.php",data:c.serialize()+"&url="+n.location.href+"&captcha="+p,success:function(i){h.removeClass("btn--loading"),t.isNumeric(i)?parseInt(i,10)>0&&(typeof(o=c.attr("data-success-redirect"))!=typeof undefined&&!1!==o&&""!==o&&(n.location=o),e.forms.resetForm(c),e.forms.showFormSuccess(a,r,1e3,5e3,500),e.forms.captcha.resetWidgets()):(r.attr("original-error",r.text()),r.text(i).stop(!0).fadeIn(1e3),a.stop(!0).fadeOut(1e3))},error:function(e,t,n){r.attr("original-error",r.text()),r.text(n).stop(!0).fadeIn(1e3),a.stop(!0).fadeOut(1e3),h.removeClass("btn--loading")}}));return!1},e.forms.validateFields=function(e){var n,i=t(i),o=!1;if((e=t(e)).find('.validate-required[type="checkbox"]').each(function(){var e=t(this);
132t('[name="'+t(this).attr("name")+'"]:checked').length||(o=1,t(this).attr("data-name")||"check",e.parent().addClass("field-error"))}),e.find(".validate-required, .required, [required]").not('input[type="checkbox"]').each(function(){""===t(this).val()?(t(this).addClass("field-error"),o=1):t(this).removeClass("field-error")}),e.find('.validate-email, .email, [name*="cm-"][type="email"]').each(function(){/(.+)@(.+){2,}\.(.+){2,}/.test(t(this).val())?t(this).removeClass("field-error"):(t(this).addClass("field-error"),o=1)}),e.find(".validate-number-dash").each(function(){/^[0-9][0-9-]+[0-9]$/.test(t(this).val())?t(this).removeClass("field-error"):(t(this).addClass("field-error"),o=1)}),e.find("div.recaptcha").length&&typeof e.attr("data-recaptcha-sitekey")!=typeof undefined&&(n=t(e.find("div.recaptcha")),""!==grecaptcha.getResponse(e.data("recaptchaWidgetID"))?n.removeClass("field-error"):(n.addClass("field-error"),o=1)),e.find(".field-error").length){var r=t(e).find(".field-error:first");r.length&&t("html, body").stop(!0).animate({scrollTop:r.offset().top-100},1200,function(){r.focus()})}else i.find(".form-error").fadeOut(1e3);return o},e.forms.showFormSuccess=function(e,t,n,i,o){e.stop(!0).fadeIn(n),t.stop(!0).fadeOut(n),setTimeout(function(){e.stop(!0).fadeOut(o)},i)},e.forms.showFormError=function(e,t,n,i,o){t.stop(!0).fadeIn(n),e.stop(!0).fadeOut(n),setTimeout(function(){t.stop(!0).fadeOut(o)},i)},e.forms.resetForm=function(e){(e=t(e)).get(0).reset(),e.find(".
132input-radio, .input-checkbox").removeClass("checked")},n.mrFormsCaptchaInit=function(){e.forms.captcha.renderWidgets()},e.forms.captcha.renderWidgets=function(){e.forms.captcha.widgets.forEach(function(t){t.id=grecaptcha.render(t.element,{sitekey:e.forms.captcha.sitekey,theme:t.theme,size:t.size,callback:e.forms.captcha.setHuman}),t.parentForm.data("recaptchaWidgetID",t.id)})},e.forms.captcha.resetWidgets=function(){e.forms.captcha.widgets.forEach(function(e){grecaptcha.reset(e.id)})},e.forms.captcha.setHuman=function(){jQuery("div.recaptcha.field-error").removeClass("field-error")},e.components.documentReadyDeferred.push(o),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e("[data-gradient-bg]").each(function(t){var n,i,o=e(this),r="granim-"+t,a=o.attr("data-gradient-bg"),s=[],l=[];if(o.prepend('<canvas id="'+r+'"></canvas>'),!0===/^(#[0-9|a-f|A-F]{6}){1}([ ]*,[ ]*#[0-9|a-f|A-F]{6})*$/.test(a))for((n=(a=(a=a.replace(" ","")).split(",")).length)%2!=0&&a.push(a[n-1]),i=0;i<n/2;i++)(l=[]).push(a.shift()),l.push(a.shift()),s.push(l);e(this),new Granim({element:"#"+r,name:"basic-gradient",direction:"left-right",opacity:[1,1],isPausedWhenNotInView:!0,states:{"default-state":{gradients:s}}})})};return e.granim={documentReady:t},e.components.documentReadyDeferred.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){if(e(".instafeed").length){var t,n,i="4079540202.b9b1d8a.1d13c245c68d4a17bfbff87919aaeb14",o="b9b1d8ae049d4153b24a6332f0088686";e(".instafeed[data-access-token][data-client-id]").length&&(""!==(t=e(".instafeed[data-access-token][data-client-id]").first().attr("data-access-token"))&&(i=t),""!==(n=e(".instafeed[data-access-token][data-client-id]").first().attr("data-client-id"))&&(o=n)),jQuery.fn.spectragram.accessData={accessToken:i,clientID:o}}e(".instafeed").each(function(){var t=e(this),n=t.attr("data-user-name"),i=12;typeof t.attr("data-amount")!=typeof undefined&&(i=parseInt(t.attr("data-amount"),10)),t.append("<ul></ul>"),t.children("ul").spectragram("getUserFeed",{query:n,max:i})})};return e.instagram={documentReady:t},e.components.documentReadyDeferred.push(t),e}(mr,jQuery,window,document),mr=function(e,t,n,i){"use strict";e.maps={};var o=function(t){t(".map-holder").on("click",function(){t(this).addClass("interact")}).removeClass("interact");var n=t(".map-container[data-maps-api-key]");n.length&&(n.addClass("gmaps-active"),e.maps.initAPI(t),e.maps.init())};return e.maps.documentReady=o,e.maps.initAPI=function(e){if(i.querySelector("[data-maps-api-key]")&&!i.querySelector(".gMapsAPI")&&e("[data-maps-api-key]").length){var t=i.createElement("script"),n=e("[data-maps-api-key]:first").attr("data-maps-api-key");""!==(n=typeof n!=typeof undefined?n:"")&&(t.type="text/javascript",t.src="https://maps.googleapis.com/maps/api/js?key="+n+"&callback=mr.maps.init",t.className="gMapsAPI",i.body.appendChild(t))}},e.maps.init=function(){"undefined"!=typeof n.google&&"undefined"!=typeof n.google.maps&&jQuery(".gmaps-active").each(function(){var e,t=this,o=jQuery(this),r=typeof o.attr("data-map-style")!=typeof undefined&&o.attr("data-map-style"),a=JSON.parse(r)||[{featureType:"landscape",stylers:[{saturation:-100},{lightness:65},{visibility:"on"}]},{featureType:"poi",stylers:[{saturation:-100},{lightness:51},{visibility:"simplified"}]},{featureType:"road.highway",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{saturation:-100},{lightness:30},{visibility:"on"}]},{featureType:"road.local",stylers:[{saturation:-100},{lightness:40},{visibility:"on"}]},{featureType:"transit",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"administrative.province",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"on"},{lightness:-25},{saturation:-100}]},{featureType:"water",elementType:"geometry",stylers:[{hue:"#ffff00"},{lightness:-25},{saturation:-97}]}],s=typeof o.attr("data-map-zoom")!=typeof undefined&&""!==o.attr("data-map-zoom")?1*o.attr("data-map-zoom"):17,l=typeof o.attr("data-latlong")!=typeof undefined&&o.attr("data-latlong"),d=!!l&&1*l.substr(0,l.indexOf(",")),c=!!l&&1*l.substr(l.indexOf(",")+1),u=new google.maps.Geocoder,h=typeof o.attr("data-address")!=typeof undefined?o.attr("data-address").split(";"):[""],f=typeof o.attr("data-marker-image")!=typeof undefined?o.attr("data-marker-image"):"img/mapmarker.png",p="We Are Here",m={draggable:jQuery(i).width()>766,scrollwheel:!1,zoom:s,disableDefaultUI:!0,styles:a};typeof o.attr("data-marker-title")!=typeof undefined&&""!==o.attr("data-marker-title")&&(p=o.attr("data-marker-title")),h!==undefined&&""!==h[0]?u.geocode({address:h[0].replace("[nomarker]","")},function(e,i){if(i===google.maps.GeocoderStatus.OK){var o=new google.maps.Map(t,m);o.setCenter(e[0].geometry.location),h.forEach(function(e){if(f={url:typeof n.mr_variant==typeof undefined?"object"!=typeof f?f:f.url:"../img/mapmarker.png",scaledSize:new google.maps.Size(50,50)},/(\-?\d+(\.\d+)?),\s*(\-?\d+(\.\d+)?)/.test(e)){var t=e.split(",");new google.maps.Marker({position:{lat:1*t[0],lng:1*t[1]},map:o,icon:f,title:p,optimised:!1})}else e.indexOf("[nomarker]")<0&&(new google.maps.Geocoder).geocode({address:e.replace("[nomarker]","")},function(e,t){t===google.maps.GeocoderStatus.OK?new google.maps.Marker({map:o,icon:f,title:p,position:e[0].geometry.location,optimised:!1}):console.log("Map marker error: "+t)})})}else console.log("There was a problem geocoding the address.")}):typeof d!=typeof undefined&&""!==d&&!1!==d&&typeof c!=typeof undefined&&""!==c&&!1!==c&&(m.center={lat:d,lng:c},e=new google.maps.Map(o,m),new google.maps.Marker({position:{lat:d,lng:c},map:e,icon:f,title:p}))})},e.components.documentReady.push(o),e}(mr,jQuery,window,document),mr=function(e,t,n,i){"use strict";var o=function(t){t(".masonry").each(function(){var n,i=t(this),o=i.find(".masonry__container"),r=i.find(".masonry__filters"),a=typeof r.attr("data-filter-all-text")!=typeof undefined?r.attr("data-filter-all-text"):"All";o.find(".masonry__item[data-masonry-filter]").length&&(r.append("<ul></ul>"),n=r.find("> ul"),o.find(".masonry__item[data-masonry-filter]").each(function(){var i=t(this),o=i.attr("data-masonry-filter"),r=[];typeof o!=typeof undefined&&""!==o&&(r=o.split(",")),jQuery(r).each(function(t,o){var r=e.util.slugify(o);i.addClass("filter-"+r),n.find('[data-masonry-filter="'+r+'"]').length||n.append('<li data-masonry-filter="'+r+'">'+o+"</li>")})}),e.util.sortChildrenByText(t(this).find(".masonry__filters ul")),n.prepend('<li class="active" data-masonry-filter="*">'+a+"</li>"))}),t(i).on("click touchstart",".masonry__filters li",function(){var e=t(this),n=e.closest(".masonry").find(".masonry__container"),i="*";"*"!==e.attr("data-masonry-filter")&&(i=".filter-"+e.attr("data-masonry-filter")),e.siblings("li").removeClass("active"),e.addClass("active"),n.removeClass("masonry--animate"),n.on("layoutComplete",function(){t(this).addClass("masonry--active"),typeof mr_parallax!=typeof undefined&&setTimeout(function(){mr_parallax.profileParallaxElements()},100)}),n.isotope({filter:i})})},r=function(){t(".masonry").each(function(){var e=t(this).find(".masonry__container"),n=t(this),i="*";n.is("[data-default-filter]")&&(i=".filter-"+(i=n.attr("data-default-filter").toLowerCase()),n.find("li[data-masonry-filter]").removeClass("active"),n.find('li[data-masonry-filter="'+n.attr("data-default-filter").toLowerCase()+'"]').addClass("active")),e.on("layoutComplete",function(){e.addClass("masonry--active"),typeof mr_parallax!=typeof undefined&&setTimeout(function(){mr_parallax.profileParallaxElements()},100)}),e.isotope({itemSelector:".masonry__item",filter:i,masonry:{columnWidth:".masonry__item"}})})};return e.masonry={documentReady:o,windowLoad:r},e.components.documentReady.push(o),e.components.windowLoad.push(r),e}(mr,jQuery,window,document),mr=function(e,t,n,i){"use strict";e.modals={};var o=function(t){var o='<div class="all-page-modals"></div>',r=t("div.main-container");if(r.length?(jQuery(o).insertAfter(r),e.modals.allModalsContainer=t("div.all-page-modals")):(jQuery("body").append(o),e.modals.allModalsContainer=jQuery("body div.all-page-modals")),t(".modal-container").each(function(){var i=t(this),o=(t(n),i.find(".modal
132-content"));if(i.find(".modal-close").length||i.find(".modal-content").append('<div class="modal-close modal-close-cross"></div>'),o.attr("data-width")!==undefined){var r=1*o.attr("data-width").substr(0,o.attr("data-width").indexOf("%"));o.css("width",r+"%")}if(o.attr("data-height")!==undefined){var a=1*o.attr("data-height").substr(0,o.attr("data-height").indexOf("%"));o.css("height",a+"%")}e.util.idleSrc(i,"iframe")}),t(".modal-instance").each(function(n){var i=t(this),o=i.find(".modal-container"),r=(i.find(".modal-content"),i.find(".modal-trigger"));r.attr("data-modal-index",n),o.attr("data-modal-index",n),typeof o.attr("data-modal-id")!=typeof undefined&&r.attr("data-modal-id",o.attr("data-modal-id")),o=o.detach(),e.modals.allModalsContainer.append(o)}),t(".modal-trigger").on("click",function(){var n,i,o=t(this);return typeof o.attr("data-modal-id")!=typeof undefined?(n=o.attr("data-modal-id"),i=e.modals.allModalsContainer.find('.modal-container[data-modal-id="'+n+'"]')):(n=t(this).attr("data-modal-index"),i=e.modals.allModalsContainer.find('.modal-container[data-modal-index="'+n+'"]')),e.util.activateIdleSrc(i,"iframe"),e.modals.autoplayVideo(i),e.modals.showModal(i),!1}),jQuery(i).on("click",".modal-close",e.modals.closeActiveModal),jQuery(i).keyup(function(t){27===t.keyCode&&e.modals.closeActiveModal()}),t(".modal-container").on("click",function(t){t.target===this&&e.modals.closeActiveModal()}),t(".modal-container[data-autoshow]").each(function(){var n=t(this),i=1*n.attr("data-autoshow");e.util.activateIdleSrc(n),e.modals.autoplayVideo(n),typeof n.attr("data-cookie")!=typeof undefined&&e.cookies.hasItem(n.attr("data-cookie"))||e.modals.showModal(n,i)}),t(".modal-container[data-show-on-exit]").each(function(){var n=jQuery(this),o=n.attr("data-show-on-exit"),r=0;n.attr("data-delay")&&(r=parseInt(n.attr("data-delay"),10)||0),t(o).length&&(n.prepend(t('<i class="ti-close close-modal">')),jQuery(i).on("mouseleave",o,function(){t(".modal-active").length||typeof n.attr("data-cookie")!=typeof undefined&&e.cookies.hasItem(n.attr("data-cookie"))||e.modals.showModal(n,r)}))}),2===n.location.href.split("#").length){var a=n.location.href.split("#").pop();t('[data-modal-id="'+a+'"]').length&&(e.modals.closeActiveModal(),e.modals.showModal(t('[data-modal-id="'+a+'"]')))}t(i).on("wheel mousewheel scroll",".modal-content, .modal-content .scrollable",function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),this.scrollTop+=e.originalEvent.deltaY})};return e.modals.documentReady=o,e.modals.showModal=function(e,n){var i=typeof n!=typeof undefined?1*n:0;setTimeout(function(){t(e).addClass("modal-active")},i)},e.modals.closeActiveModal=function(){var t=jQuery("body div.modal-active");e.util.idleSrc(t,"iframe"),e.util.pauseVideo(t),typeof t.attr("data-cookie")!=typeof undefined&&e.cookies.setItem(t.attr("data-cookie"),"true",Infinity,"/"),t.removeClass("modal-active")},e.modals.autoplayVideo=function(e){e.find("video[autoplay]").length&&e.find("video").get(0).play()},e.components.documentReady.push(o),e}(mr,jQuery,window,document),mr=function(e,t){"use strict";e.newsletters={};var n=function(t){var n,i,o,r,a,s;t('form[action*="createsend.com"]').each(function(){(n=t(this)).attr("novalidate","novalidate"),n.is(".form--no-placeholders")?n.find("input[placeholder]").removeAttr("placeholder"):n.find("input:not([checkbox]):not([radio])").each(function(){var e=t(this);typeof e.attr("placeholder")!=typeof undefined?""===e.attr("placeholder")&&e.siblings("label").length&&(e.attr("placeholder",e.siblings("label").first().text()),n.is(".form--no-labels")&&e.siblings("label").first().remove()):e.siblings("label").length&&(e.attr("placeholder",e.siblings("label").first().text()),n.is(".form--no-labels")&&e.siblings("label").first().remove()),e.parent().is("p")&&e.unwrap()}),n.find("select").wrap('<div class="input-select"></div>'),n.find('input[type="radio"]').wrap('<div class="input-radio"></div>'),n.find('input[type="checkbox"]').each(function(){i=t(this),r=i.attr("id"),o=n.find("label[for="+r+"]"),i.before('<div class="input-checkbox" data-id="'+r+'"></div>'),t('.input-checkbox[data-id="'+r+'"]').prepend(i),t('.input-checkbox[data-id="'+r+'"]').prepend(o),t('.input-checkbox[data-id="'+r+'"]').prepend('<div class="inner"></div>')}),n.find('button[type="submit"]').each(function(){var e=t(this);e.addClass("btn"),e.parent().is("p")&&e.unwrap()}),n.find("[required]").attr("required","required").addClass("val
132idate-required"),n.addClass("form--active"),e.newsletters.prepareAjaxAction(n)}),t('form[action*="list-manage.com"]').each(function(){(n=t(this)).attr("novalidate","novalidate"),n.is(".form--no-placeholders")?n.find("input[placeholder]").removeAttr("placeholder"):n.find("input:not([checkbox]):not([radio])").each(function(){var e=t(this);typeof e.attr("placeholder")!=typeof undefined?""===e.attr("placeholder")&&e.siblings("label").length&&(e.attr("placeholder",e.siblings("label").first().text()),n.is(".form--no-labels")&&e.siblings("label").first().remove()):e.siblings("label").length&&(e.attr("placeholder",e.siblings("label").first().text()),n.is(".form--no-labels")&&e.siblings("label").first().remove())}),n.is(".form--no-labels")&&n.find("input:not([checkbox]):not([radio])").each(function(){var e=t(this);e.siblings("label").length&&e.siblings("label").first().remove()}),n.find("select").wrap('<div class="input-select"></div>'),n.find('input[type="checkbox"]').each(function(){i=t(this),a=i.parent(),o=a.find("label"),i.before('<div class="input-checkbox"><div class="inner"></div></div>'),a.find(".input-checkbox").append(i),a.find(".input-checkbox").append(o)}),n.find('input[type="radio"]').each(function(){s=t(this),a=s.closest("li"),o=a.find("label"),s.before('<div class="input-radio"><div class="inner"></div></div>'),a.find(".input-radio").prepend(s),a.find(".input-radio").prepend(o)}),n.find('input[type="submit"]').each(function(){var e=t(this),n=jQuery("<button/>").attr("type","submit").attr("class",e.attr("class")).addClass("btn").text(e.attr("value"));e.parent().is("div.clear")&&e.unwrap(),n.insertBefore(e),e.remove()}),n.find("input").each(function(){var e=t(this);e.hasClass("required")&&e.removeClass("required").addClass("validate-required")}),n.find('input[type="email"]').removeClass("email").addClass("validate-email"),n.find("#mce-responses").remove(),n.find(".mc-field-group").each(function(){t(this).children().first().unwrap()}),n.find("[required]").attr("required","required").addClass("validate-required"),n.addClass("form--active"),e.newsletters.prepareAjaxAction(n)}),e.forms.documentReady(e.setContext("form.form--active"))};return e.newsletters.documentReady=n,e.newsletters.prepareAjaxAction=function(e){var n=t(e).attr("action");/list-manage\.com/.test(n)&&"//"===(n=n.replace("/post?","/post-json?")+"&c=?").substr(0,2)&&(n="http:"+n),/createsend\.com/.test(n)&&(n+="?callback=?"),t(e).attr("action",n)},e.components.documentReady.push(n),e}(mr,jQuery,window,document),mr=function(e,t){"use strict";e.notifications={};var n=function(t){t(".notification").each(function(){var e=t(this);e.find(".notification-close").length||e.append('<div class="notification-close-cross notification-close"></div>')}),t(".notification[data-autoshow]").each(function(){var n=t(this),i=parseInt(n.attr("data-autoshow"),10);typeof n.attr("data-cookie")!=typeof undefined&&e.cookies.hasItem(n.attr("data-cookie"))||e.notifications.showNotification(n,i)}),t("[data-notification-link]:not(.notification)").on("click",function(){var n=jQuery(this).attr("data-notification-link"),i=t('.notification[data-notification-link="'+n+'"]');return jQuery(".notification--reveal").addClass("notification--dismissed"),i.removeClass("notification--dismissed"),e.notifications.showNotification(i,0),!1}),t(".notification-close").on("click",function(){var t=jQuery(this);if(e.notifications.closeNotification(t),"#"===t.attr("href"))return!1}),t(".notification .inner-link").on("click",function(){var t=jQuery(this).closest(".notification").attr("data-notification-link");e.notifications.closeNotification(t)})};return e.notifications.documentReady=n,e.notifications.showNotification=function(t,n){var i=typeof n!=typeof undefined?1*n:0;if(setTimeout(function(){t.addClass("notification--reveal"),t.closest("nav").addClass("notification--reveal"),t.find("input").length&&t.find("input").first().focus()},i),t.is("[data-autohide]")){var o=parseInt(t.attr("data-autohide"),10);setTimeout(function(){e.notifications.closeNotification(t)},o+i)}},e.notifications.closeNotification=function(n){var i=jQuery(n);(n=i.is(".notification")?i:i.is(".notification-close")?i.closest(".
132notification"):t('.notification[data-notification-link="'+n+'"]')).addClass("notification--dismissed"),n.closest("nav").removeClass("notification--reveal"),typeof n.attr("data-cookie")!=typeof undefined&&e.cookies.setItem(n.attr("data-cookie"),"true",Infinity,"/")},e.components.documentReady.push(n),e}(mr,jQuery,window,document),mr=function(e,t,n){"use strict";var i=function(e){var t=e(n),i=t.width(),o=t.height(),r=e("nav").outerHeight(!0);if(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(navigator.userAgent||navigator.vendor||n.opera)&&e("section").removeClass("parallax"),i>768){var a=e(".parallax:nth-of-type(1)"),s=e(".parallax:nth-of-type(1) .background-image-holder");s.css("top",-r),a.outerHeight(!0)===o&&s.css("height",o+r)}};return e.parallax={documentReady:i},e.components.documentReady.push(i),e}(mr,jQuery,window,document),mr=function(e){"use strict";e.easypiecharts={},e.easypiecharts.pies=[];var t=function(t){e.easypiecharts.init=function(){e.easypiecharts.pies=[],t(".radial").each(function(){var t={},n=jQuery(this);t.element=n,t.value=parseInt(n.attr("data-value"),10),t.top=n.offset().top,t.height=n.height()/2,t.active=!1,e.easypiecharts.pies.push(t)})},e.easypiecharts.activate=function(){e.easypiecharts.pies.forEach(function(t){Math.round(e.scroll.y+e.window.height)>=Math.round(t.top+t.height)&&!1===t.active&&(t.element.data("easyPieChart").enableAnimation(),t.element.data("easyPieChart").update(t.value),t.element.addClass("radial--active"),t.active=!0)})},t(".radial").each(function(){var e=jQuery(this),t="#000000",n=2e3,i=110,o=3;typeof e.attr("data-timing")!=typeof undefined&&(n=1*e.attr("data-timing")),typeof e.attr("data-color")!=typeof undefined&&(t=e.attr("data-color")),typeof e.attr("data-size")!=typeof undefined&&(i=e.attr("data-size")),typeof e.attr("data-bar-width")!=typeof undefined&&(o=e.attr("data-bar-width")),e.css("height",i).css("width",i),e.easyPieChart({animate:{duration:n,enabled:!0},barColor:t,scaleColor:!1,size:i,lineWidth:o}),e.data("easyPieChart").update(0)}),t(".radial").length&&(e.easypiecharts.init(),e.easypiecharts.activate(),e.scroll.listeners.push(e.easypiecharts.activate))};return e.easypiecharts.documentReady=t,e.components.documentReadyDeferred.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";e.sliders={},e.sliders.draggable=!0;var t=function(t){t(".slider").each(function(){var n=t(this),i=n.find("ul.slides");i.find(">li").addClass("slide");var o=i.find("li").length,r=!1,a=!1,s=7e3,l=!0,d=!0,c=e.sliders.draggable;r="true"===n.attr("data-arrows"),n.attr("data-autoplay"),l="false"!==n.attr("data-wraparound"),d="false"!==n.attr("data-freescroll"),a="true"===n.attr("data-paging")&&i.find("li").length>1,n.attr("data-timing")&&(s=1*n.attr("data-timing")),n.attr("data-children",o),o<2&&(c=!1),t(i).flickity({cellSelector:".slide",cellAlign:"left",wrapAround:l,freeScroll:d,pageDots:a,prevNextButtons:r,autoPlay:s,draggable:c,imagesLoaded:!0}),t(i).on("scroll.flickity",function(){n.find(".is-selected").hasClass("controls--dark")?n.addClass("controls--dark"):n.removeClass("controls--dark")})})};return e.sliders.documentReady=t,e.components.documentReadyDeferred.push(t),e}(mr,jQuery,window,document),mr=function(e,t,n){"use strict";e.smoothscroll={},e.smoothscroll.sections=[],e.smoothscroll.init=function(){e.smoothscroll.sections=[],t("a.inner-link").each(function(){var n={},i=t(this),o=i.attr("href");new RegExp("^#[^\r\n\t\f\x0B#.]+$","gm").test(o)&&t("section"+o).length&&(console.log("Found a section with "+o),n.id=o,n.top=Math.round(t(o).offset().top),n.height=Math.round(t(o).outerHeight()),n.link=i.get(0),n.active=!1,e.smoothscroll.sections.push(n))}),e.smoothscroll.highlight()},e.smoothscroll.highlight=function(){e.smoothscroll.sections.forEach(function(t){e.scroll.y>=t.top&&e.scroll.y<t.top+t.height?!1===t.active&&(t.link.classList.add("inner-link--active"),t.active=!0):(t.link.classList.remove("inner-link--active"),t.active=!1)})},e.scroll.listeners.push(e.smoothscroll.highlight);var i=function(t){var i=t("a.inner-link");if(i.length){i.each(function(){var e=t(this);"#"!==e.attr("href").charAt(0)&&e.removeClass("inner-link")}),e.smoothscroll.init(),t(n).on("resize",e.smoothscroll.init);var o=0;t("body[data-smooth-scroll-offset]").length&&(o=t("body").attr("data-smooth-scroll-offset"),o*=1),smoothScroll.init({selector:".inner-link",selectorHeader:null,speed:750,easing:"easeInOutCubic",offset:o})}};return e.smoothscroll.documentReady=i,e.components.documentReady.push(i),e.components.windowLoad.push(e.smoothscroll.init),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e(".tabs").each(function(){var t=e(this);t.after('<ul class="tabs-content">'),t.find("li").each(function(){var t=e(this),n=t.find(".tab__content").wrap("<li></li>").parent(),i=n.clone(!0,!0);n.remove(),t.closest(".tabs-container").find(".tabs-content").append(i)})}),e(".tabs li").on("click",function(){var t,n=e(this),i=n.closest(".tabs-container"),o=1*n.index()+1,r=i.find("> .tabs-content > li:nth-of-type("+o+")");i.find("> .tabs > li").removeClass("active"),i.find("> .tabs-content > li").removeClass("active"),n.addClass("active"),r.addClass("active"),(t=r.find("iframe")).length&&t.attr("src",t.attr("src"))}),e(".tabs li.active").trigger("click")};return e.tabs={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e("[data-toggle-class]").each(function(){var t=e(this),n=t.attr("data-toggle-class").split("|");e(n).each(function(){var n=t,i=[],o="",r="";2===(i=this.split(";")).length?(r=i[0],o=i[1],e(n).on("click",function(){return n.hasClass("toggled-class")?n.removeClass("toggled-class"):n.toggleClass("toggled-class"),e(r).toggleClass(o),!1})):console.log('Error in [data-toggle-class] attribute. This attribute accepts an element, or comma separated elements terminated witha ";" followed by a class name to toggle')})})};return e.toggleClass={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e(".typed-text").each(function(){var t=e(this),n=t.attr("data-typed-strings")?t.attr("data-typed-strings").split(","):[];e(t).typed({strings:n,typeSpeed:100,loop:!0,showCursor:!1})})};return e.typed={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(t){t(".tweets-feed").each(function(e){t(this).attr("id","tweets-"+e)}).each(function(n){function i(t){for(var n=t.length,i=0,r='<ul class="slides">';i<n;)r+="<li>"+t[i]+"</li>",i++;if(r+="</ul>",o.html(r),o.closest(".slider").length)return e.sliders.documentReady(e.setContext()),r}var o=t("#tweets-"+n),r={domId:"",maxTweets:o.attr("data-amount"),enableLinks:!0,showUser:!0,showTime:!0,dateFunction:"",showRetweet:!1,customCallback:i};typeof o.attr("data-widget-id")!=typeof undefined?r.id=o.attr("data-widget-id"):typeof o.attr("data-feed-name")!=typeof undefined&&""!==o.attr("data-feed-name")?r.profile={screenName:o.attr("data-feed-name").replace("@","")}:r.profile={screenName:"twitter"},o.closest(".twitter-feed--slider").length&&o.addClass("slider"),twitterFetcher.fetch(r)})};return e.twitter={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e(".youtube-background").length&&e(".youtube-background").each(function(){var t=e(this),n=e(this).attr("data-video-url"),i=e(this).attr("data-start-at");t.attr("data-property",'{videoURL:"'+n+'",containment:"self",autoPlay:true, mute:true, startAt:'+i+", opacity:1}"),t.closest(".videobg").append('<div class="loading-indicator"></div>'),t.YTPlayer(),t.on("YTPStart",function(){t.closest(".videobg").addClass("video-active")})}),e(".videobg").find("video").length&&e(".videobg").find("video").closest(".videobg").addClass("video-active"),e(".video-cover").each(function(){var t=e(this);t.find("iframe").length&&(t.find("iframe").attr("data-src",t.find("iframe").attr("src")),t.find("iframe").attr("src",""))}),e(".video-cover .video-play-icon").on("click",function(){var t=e(this).closest(".video-cover");if(t.find("video").length){var n=t.find("video").get(0);return t.addClass("reveal-video"),n.play(),!1}if(t.find("iframe").length){var i=t.find("iframe");return i.attr("src",i.attr("data-src")),t.addClass("reveal-video"),!1}})};return e.video={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),mr=function(e){"use strict";var t=function(e){e(".wizard").each(function(){var e=jQuery(this);e.steps({headerTag:"h5",bodyTag:"section",transitionEffect:"slideLeft",autoFocus:!0}),e.addClass("active")})};return e.wizard={documentReady:t},e.components.documentReady.push(t),e}(mr,jQuery,window,document),$(".js-radio-label").on("click",function(){$(this).parent().find("input[type='radio']").click()}), 133/*! 134 * perfect-scrollbar v1.5.0 135 * Copyright 2020 Hyunje Jun, MDBootstrap and Contributors 136 * Licensed under MIT 137 */ 138function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).PerfectScrollbar=t()}(this,function(){"use strict";function e(e){return getComputedStyle(e)}function t(e,t){for(var n in t){var i=t[n];"number"==typeof i&&(i+="px"),e.style[n]=i}return e}function n(e){var t=document.createElement("div");return t.className=e,t}function i(e,t){if(!T)throw new Error("No element matching method supported");return T.call(e,t)}function o(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function r(e,t){return Array.prototype.filter.call(e.children,function(e){return i(e,t)})}function a(e,t){var n=e.element.classList,i=C.state.scrolling(t);n.contains(i)?clearTimeout(E[t]):n.add(i)}function s(e,t){E[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(C.state.scrolling(t))},e.settings.scrollingThreshold)}function l(e,t){a(e,t),s(e,t)}function d(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function c(e,t,n,i,o){var r;if(void 0===i&&(i=!0),void 0===o&&(o=!1),"top"===t)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}u(e,n,r,i,o)}function u(e,t,n,i,o){var r=n[0],a=n[1],s=n[2],c=n[3],u=n[4],h=n[5];void 0===i&&(i=!0),void 0===o&&(o=!1);var f=e.element;e.reach[c]=null,1>f[s]&&(e.reach[c]="start"),f[s]>e[r]-e[a]-1&&(e.reach[c]="end"),t&&(f.dispatchEvent(d("ps-scroll-"+c)),0>t?f.dispatchEvent(d("ps-scroll-"+u)):0<t&&f.dispatchEvent(d("ps-scroll-"+h)),i&&l(e,c)),e.reach[c]&&(t||o)&&f.dispatchEvent(d("ps-"+c+"-reach-"+e.reach[c]))}function h(e){return parseInt(e,10)||0}function f(e){return i(e,"input,[contenteditable]")||i(e,"select,[contenteditable]")||i(e,"textarea,[contenteditable]")||i(e,"button,[contenteditable]")}function p(t){var n=e(t);return h(n.width)+h(n.paddingLeft)+h(n.paddingRight)+h(n.borderLeftWidth)+h(n.borderRightWidth)}function m(e){var t=Math.ceil,n=e.element,i=b(n.scrollTop),a=n.getBoundingClientRect();e.containerWidth=t(a.width),e.containerHeight=t(a.height),e.contentWidth=n.scrollWidth,e.contentHeight=n.scrollHeight,n.contains(e.scrollbarXRail)||(r(n,C.element.rail("x")).forEac
vendor: 9,439 bytes, line 138
138h(function(e){return o(e)}),n.appendChild(e.scrollbarXRail)),n.contains(e.scrollbarYRail)||(r(n,C.element.rail("y")).forEach(function(e){return o(e)}),n.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=g(e,h(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=h((e.negativeScrollAdjustment+n.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=g(e,h(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=h(i*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),v(n,e),e.scrollbarXActive?n.classList.add(C.state.active("x")):(n.classList.remove(C.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,n.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?n.classList.add(C.state.active("y")):(n.classList.remove(C.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,n.scrollTop=0)}function g(e,t){var n=Math.min,i=Math.max;return e.settings.minScrollbarLength&&(t=i(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=n(t,e.settings.maxScrollbarLength)),t}function v(e,n){var i={width:n.railXWidth},o=b(e.scrollTop);i.left=n.isRtl?n.negativeScrollAdjustment+e.scrollLeft+n.containerWidth-n.contentWidth:e.scrollLeft,n.isScrollbarXUsingBottom?i.bottom=n.scrollbarXBottom-o:i.top=n.scrollbarXTop+o,t(n.scrollbarXRail,i);var r={top:o,height:n.railYHeight};n.isScrollbarYUsingRight?n.isRtl?r.right=n.contentWidth-(n.negativeScrollAdjustment+e.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:r.right=n.scrollbarYRight-e.scrollLeft:n.isRtl?r.left=n.negativeScrollAdjustment+e.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:r.left=n.scrollbarYLeft+e.scrollLeft,t(n.scrollbarYRail,r),t(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),t(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}function y(e,t){function n(t){t.touches&&t.touches[0]&&(t[d]=t.touches[0].pageY),v[f]=y+b*(t[d]-_),a(e,p),m(e),t.stopPropagation(),t.preventDefault()}function i(){s(e,p),e[g].classList.remove(C.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",n)}function o(t,o){y=v[f],o&&t.touches&&(t[d]=t.touches[0].pageY),_=t[d],b=(e[l]-e[r])/(e[c]-e[h]),o?e.event.bind(e.ownerDocument,"touchmove",n):(e.event.bind(e.ownerDocument,"mousemove",n),e.event.once(e.ownerDocument,"mouseup",i),t.preventDefault()),e[g].classList.add(C.state.clicking),t.stopPropagation()}var r=t[0],l=t[1],d=t[2],c=t[3],u=t[4],h=t[5],f=t[6],p=t[7],g=t[8],v=e.element,y=null,_=null,b=null;e.event.bind(e[u],"mousedown",function(e){o(e)}),e.event.bind(e[u],"touchstart",function(e){o(e,!0)})}var _=Math.abs,b=Math.floor,T="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),C={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},E={x:null,y:null},w=function(e){this.element=e,this.handlers={}},I={isEmpty:{configurable:!0}};w.prototype.bind=function(e,t){"undefined"==typeof this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},w.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter(function(i){return!(!t||i===t)||(n.element.removeEventListener(e,i,!1),!1)})},w.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},I.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(w.prototype,I);var D=function(){this.eventElements=[]};D.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new w(e),this.eventElements.push(t)),t},D.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},D.prototype.unbind=function(e,t,n){var i=this.eventElement(e);i.unbind(t,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},D.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},D.prototype.once=function(e,t,n){var i=this.eventElement(e),o=function(e){i.unbind(t,o),n(e)};i.bind(t,o)};var x={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&0<window.navigator.maxTouchPoints||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},O=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},k={"click-rail":function(e){e.element,e.event.bind(e.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,m(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,m(e),t.stopPropagation()})},"drag-thumb":function(e){y(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),y(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){function t(t,i){var o=b(n.scrollTop);if(0===t){if(!e.scrollbarYActive)return!1;if(0===o&&0<i||o>=e.contentHeight-e.containerHeight&&0>i)return!e.settings.wheelPropagation}var r=n.scrollLeft;if(0===i){if(!e.scrollbarXActive)return!1;if(0===r&&0>t||r>=e.contentWidth-e.containerWidth&&0<t)return!e.settings.wheelPropagation}return!0}var n=e.element,o=function(){return i(n,":hover")},r=function(){return i(e.scrollbarX,":focus")||i(e.scrollbarY,":focus")};e.event.bind(e.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(o()||r())){var a=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(f(a))return}var s=0,l=0;switch(i.which){case 37:s=i.metaKey?-e.contentWidth:i.altKey?-e.containerWidth:-30;break;case 38:l=i.metaKey?e.contentHeight:i.altKey?e.containerHeight:30;break;case 39:s=i.metaKey?e.contentWidth:i.altKey?e.containerWidth:30;break;case 40:l=i.metaKey?-e.contentHeight:i.altKey?-e.containerHeight:-30;break;case 32:l=i.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:l=e.containerHeight;break;case 34:l=-e.containerHeight;break;case 36:l=e.contentHeight;break;case 35:l=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==s||e.settings.suppressScrollY&&0!==l||(n.scrollTop-=l,n.scrollLeft+=s,m(e),t(s,l)&&i.preventDefault())}})},wheel:function(t){function n(e,n){var i=b(a.scrollTop),o=0===a.scrollTop,r=i+a.offsetHeight===a.scrollHeight,s=0===a.scrollLeft,l=a.scrollLeft+a.offsetWidth===a.scrollWidth;return!(_(n)>_(e)?o||r:s||l)||!t.settings.wheelPropagation}function i(e){var t=e.deltaX,n=-1*e.deltaY;return(void 0===t||void 0===n)&&(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}function o(t,n,i){if(!x.isWebKit&&a.querySelector("select:focus"))return!0;if(!a.contains(t))return!1;for(var o=t;o&&o!==a;){if(o.classList.contains(C.element.consuming))return!0;var r=e(o);if(i&&r.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(0<s&&(0<o.scrollTop&&0>i||o.scrollTop<s&&0<i))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var l=o.scrollWidth-o.clientWidth;if(0<l&&(0<o.scrollLeft&&0>n||o.scrollLeft<l&&0<n))return!0}o=o.parentNode}return!1}function r(e){var r=i(e),s=r[0],l=r[1];if(!o(e.target,s,l)){var d=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(l?a.scrollTop-=l*t.settings.wheelSpeed:a.scrollTop+=s*t.
138settings.wheelSpeed,d=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?a.scrollLeft+=s*t.settings.wheelSpeed:a.scrollLeft-=l*t.settings.wheelSpeed,d=!0):(a.scrollTop-=l*t.settings.wheelSpeed,a.scrollLeft+=s*t.settings.wheelSpeed),m(t),(d=d||n(s,l))&&!e.ctrlKey&&(e.stopPropagation(),e.preventDefault())}}var a=t.element;"undefined"==typeof window.onwheel?"undefined"!=typeof window.onmousewheel&&t.event.bind(a,"mousewheel",r):t.event.bind(a,"wheel",r)},touch:function(t){function n(e,n){var i=b(c.scrollTop),o=c.scrollLeft,r=_(e),a=_(n);if(a>r){if(0>n&&i===t.contentHeight-t.containerHeight||0<n&&0===i)return 0===window.scrollY&&0<n&&x.isChrome}else if(r>a&&(0>e&&o===t.contentWidth-t.containerWidth||0<e&&0===o))return!0;return!0}function i(e,n){c.scrollTop-=n,c.scrollLeft-=e,m(t)}function o(e){return e.targetTouches?e.targetTouches[0]:e}function r(e){return!(e.pointerType&&"pen"===e.pointerType&&0===e.buttons||(!e.targetTouches||1!==e.targetTouches.length)&&(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function a(e){if(r(e)){var t=o(e);u.pageX=t.pageX,u.pageY=t.pageY,h=(new Date).getTime(),null!==p&&clearInterval(p)}}function s(t,n,i){if(!c.contains(t))return!1;for(var o=t;o&&o!==c;){if(o.classList.contains(C.element.consuming))return!0;var r=e(o);if(i&&r.overflowY.match(/(scroll|auto)/)){var a=o.scrollHeight-o.clientHeight;if(0<a&&(0<o.scrollTop&&0>i||o.scrollTop<a&&0<i))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var s=o.scrollWidth-o.clientWidth;if(0<s&&(0<o.scrollLeft&&0>n||o.scrollLeft<s&&0<n))return!0}o=o.parentNode}return!1}function l(e){if(r(e)){var t=o(e),a={pageX:t.pageX,pageY:t.pageY},l=a.pageX-u.pageX,d=a.pageY-u.pageY;if(s(e.target,l,d))return;i(l,d),u=a;var c=(new Date).getTime(),p=c-h;0<p&&(f.x=l/p,f.y=d/p,h=c),n(l,d)&&e.preventDefault()}}function d(){t.settings.swipeEasing&&(clearInterval(p),p=setInterval(function(){return t.isInitialized?void clearInterval(p):f.x||f.y?.01>_(f.x)&&.01>_(f.y)?void clearInterval(p):(i(30*f.x,30*f.y),f.x*=.8,void(f.y*=.8)):void clearInterval(p)},10))}if(x.supportsTouch||x.supportsIePointer){var c=t.element,u={},h=0,f={},p=null;x.supportsTouch?(t.event.bind(c,"touchstart",a),t.event.bind(c,"touchmove",l),t.event.bind(c,"touchend",d)):x.supportsIePointer&&(window.PointerEvent?(t.event.bind(c,"pointerdown",a),t.event.bind(c,"pointermove",l),t.event.bind(c,"pointerup",d)):window.MSPointerEvent&&(t.event.bind(c,"MSPointerDown",a),t.event.bind(c,"MSPointerMove",l),t.event.bind(c,"MSPointerUp",d)))}}},S=function(i,o){var r=this;if(void 0===o&&(o={}),"string"==typeof i&&(i=document.querySelector(i)),!i||!i.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var a in this.element=i,i.classList.add(C.main),this.settings=O(),o)this.settings[a]=o[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return i.classList.add(C.state.focus)},l=function(){return i.classList.remove(C.state.focus)};this.isRtl="rtl"===e(i).direction,!0===this.isRtl&&i.classList.add(C.rtl),this.isNegativeScroll=function(){var e=i.scrollLeft,t=null;return i.scrollLeft=-1,t=0>i.scrollLeft,i.scrollLeft=e,t}(),this.negativeScrollAdjustment=this.isNegativeScroll?i.scrollWidth-i.clientWidth:0,this.event=new D,this.ownerDocument=i.ownerDocument||document,this.scrollbarXRail=n(C.element.rail("x")),i.appendChild(this.scrollbarXRail),this.scrollbarX=n(C.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",l),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var d=e(this.scrollbarXRail);this.scrollbarXBottom=parseInt(d.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=h(d.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=h(d.borderLeftWidth)+h(d.borderRightWidth),t(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=h(d.marginLeft)+h(d.marginRight),t(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=n(C.element.rail("y")),i.appendChild(this.scrollbarYRail),this.scrollbarY=n(C.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",l),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=e(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=h(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?p(this.scrollbarY):null,this.railBorderYWidth=h(c.borderTopWidth)+h(c.borderBottomWidth),t(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=h(c.marginTop)+h(c.marginBottom),t(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:0>=i.scrollLeft?"start":i.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:0>=i.scrollTop?"start":i.scrollTop>=this.contentHeight-this.containerHeight?"end":null}
138,this.isAlive=!0,this.settings.handlers.forEach(function(e){return k[e](r)}),this.lastScrollTop=b(i.scrollTop),this.lastScrollLeft=i.scrollLeft,this.event.bind(this.element,"scroll",function(e){return r.onScroll(e)}),m(this)};return S.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,t(this.scrollbarXRail,{display:"block"}),t(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=h(e(this.scrollbarXRail).marginLeft)+h(e(this.scrollbarXRail).marginRight),this.railYMarginHeight=h(e(this.scrollbarYRail).marginTop)+h(e(this.scrollbarYRail).marginBottom),t(this.scrollbarXRail,{display:"none"}),t(this.scrollbarYRail,{display:"none"}),m(this),c(this,"top",0,!1,!0),c(this,"left",0,!1,!0),t(this.scrollbarXRail,{display:""}),t(this.scrollbarYRail,{display:""}))},S.prototype.onScroll=function(){this.isAlive&&(m(this),c(this,"top",this.element.scrollTop-this.lastScrollTop),c(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=b(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},S.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),o(this.scrollbarX),o(this.scrollbarY),o(this.scrollbarXRail),o(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},S.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")},S}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.domFactory=t():e.domFactory=t()}(window,function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=55)}([function(e,t,n){var i=n(27)("wks"),o=n(14),r=n(3).Symbol,a="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:o)("Symbol."+e))}).store=i},function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(5);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(e,t,n){e.exports=!n(1)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,t,n){var i=n(8),o=n(22);e.exports=n(4)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(2),o=n(45),r=n(21),a=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(3),o=n(13),r=n(7),a=n(10),s=n(26),l=function(e,t,n){var d,c,u,h,f=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=p?i:m?i[t]||(i[t]={}):(i[t]||{}).prototype,_=p?o:o[t]||(o[t]={}),b=_.prototype||(_.prototype={});for(d in p&&(n=t),n)u=((c=!f&&y&&void 0!==y[d])?y:n)[d],h=v&&c?s(u,i):g&&"function"==typeof u?s(Function.call,u):u,y&&a(y,d,u,e&l.U),_[d]!=u&&r(_,d,h),g&&b[d]!=u&&(b[d]=u)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var i=n(3),o=n(7),r=n(6),a=n(14)("src"),s=Function.toString,l=(""+s).split("toString");n(13).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var d="function"==typeof n;d&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(d&&(r(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:o(e,t,n
138):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var i=n(49),o=n(31);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t,n){var i=n(29),o=n(16);e.exports=function(e){return i(o(e))}},function(e){var t=e.exports={version:"2.6.3"};"number"==typeof __e&&(__e=t)},function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(24),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},function(e,t,n){var i=n(16);e.exports=function(e){return Object(i(e))}},function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(i){return"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?e.exports=n=function(e){return t(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},n(i)}e.exports=n},function(e){e.exports=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.unwatch=t.watch=void 0;var o=i(n(4)),r=i(n(3)),a=(t.watch=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var i=t[1];l(i)?m.apply(void 0,t):a(i)?v.apply(void 0,t):g.apply(void 0,t)},t.unwatch=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var i=t[1];l(i)||void 0===i?b.apply(void 0,t):a(i)?_.apply(void 0,t):y.apply(void 0,t)},function(e){return"[object Array]"==={}.toString.call(e)}),s=function(e){return"[object Object]"==={}.toString.call(e)},l=function(e){return"[object Function]"==={}.toString.call(e)},d=function(e,t,n){(0,r["default"])(e,t,{enumerable:!1,configurable:!0,writable:!1,value:n})},c=function(e,t,n,i,o){var r=void 0,a=e.__watchers__[t];(r=e.__watchers__.__watchall__)&&(a=a?a.concat(r):r);for(var s=a?a.length:0,l=0;s>l;l++)a[l].call(e,n,i,t,o)},u=["pop","push","reverse","shift","sort","unshift","splice"],h=function(e,t,n,i){d(e,n,function(){for(var o=0,r=void 0,a=void 0,s=arguments.length,l=Array(s),d=0;s>d;d++)l[d]=arguments[d];if("splice"===n){var c=l[0],u=c+l[1];r=e.slice(c,u),a=[];for(var h=2;h<l.length;h++)a[h-2]=l[h];o=c}else a="push"===n||"unshift"===n?l.length>0?l:void 0:l.length>0?l[0]:void 0;var f=t.apply(e,l);return"pop"===n?(r=f,o=e.length):"push"===n?o=e.length-1:"shift"===n?r=f:"unshift"!==n&&void 0===a&&(a=f),i.call(e,o,n,a,r),f})},f=function(e,t){if(l(t)&&e&&!(e instanceof String)&&a(e))for(var n=u.length;n>0;n--){var i=u[n-1];h(e,e[i],i,t)}},p=function(e,t,n,i){var l=!1,u=a(e);void 0===e.__watchers__&&(d(e,"__watchers__",{}),u&&f(e,function(n,o,r,l){if(c(e,n,r,l,o),0!==i&&r&&(s(r)||a(r))){var d=void 0,u=e.__watchers__[t];(d=e.__watchers__.__watchall__)&&(u=u?u.concat(d):d);for(var h=u?u.length:0,f=0;h>f;f++)if("splice"!==o)m(r,u[f],void 0===i?i:i-1);else for(var p=0;p<r.length;p++)m(r[p],u[f],void 0===i?i:i-1)}})),void 0===e.__proxy__&&d(e,"__proxy__",{}),void 0===e.__watchers__[t]&&(e.__watchers__[t]=[],u||(l=!0));for(var h=0;h<e.__watchers__[t].length;h++)if(e.__watchers__[t][h]===n)return;e.__watchers__[t].push(n),l&&function(){var n=(0,o["default"])(e,t);void 0!==n?function(){var i={enumerable:n.enumerable,configurable:n.configurable};["get","set"].forEach(function(t){void 0!==n[t]&&(i[t]=function(){for(var i=arguments.length,o=Array(i),r=0;i>r;r++)o[r]=arguments[r];return n[t].apply(e,o)})}),["writable","value"].forEach(function(e){void 0!==n[e]&&(i[e]=n[e])}),(0,r["default"])(e.__proxy__,t,i)}():e.__proxy__[t]=e[t],function(e,t,n,i){(0,r["default"])(e,t,{get:n,set:function(e){i.call(this,e)},enumerable:!0,configurable:!0})}(e,t,function(){return e.__proxy__[t]},function(n){var o=e.__proxy__[t];if(0!==i&&e[t]&&(s(e[t])||a(e[t]))&&!e[t].__watchers__)for(var r=0;r<e.__watchers__[t].length;r++)m(e[t],e.__watchers__[t][r],void 0===i?i:i-1);o!==n&&(e.__proxy__[t]=n,c(e,t,n,o,"set"))})}()},m=function T(e,t,n){if("string"!=typeof e&&(e instanceof Object||a(e)))if(a(e)){if(p(e,"__watchall__",t,n),void 0===n||n>0)for(var i=0;i<e.length;i++)T(e[i],t,n)}else{var o=[];for(var r in e)({}).hasOwnProperty.call(e,r)&&o.push(r);v(e,o,t,n)}},g=function(e,t,n,i){"string"!=typeof e&&(e instanceof Object||a(e))&&(l(e[t])||(null!==e[t]&&(void 0===i||i>0)&&m(e[t],n,void 0!==i?i-1:i),p(e,t,n,i)))},v=function(e,t,n,i){if("string"!=typeof e&&(e instanceof Object||a(e)))for(var o=0;o<t.length;o++){var r=t[o];g(e,r,n,i)}},y=function(e,t,n){if(void 0!==e.__watchers__&&void 0!==e.__watchers__[t])if(void 0===n)delete e.__watchers__[t];else for(var i=0;i<e.__watchers__[t].length;i++)e.__watchers__[t][i]===n&&e.__watchers__[t].splice(i,1)},_=function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&y(e,t[i],n)},b=function(e,t){if(!(e instanceof String||!e instanceof Object&&!a(e)))if(a(e)){for(var n=["__watchall__"],i=0;i<e.length;i++)n.push(i);_(e,n,t)}else!function o(e,t){var n=[];for(var i in e)e.hasOwnProperty(i)&&(e[i]instanceof Object&&o(e[i],t),n.push(i));_(e,n,t)}(e,t)}},function(e){var t=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=t)},function(e){var t=Object;e.exports={create:t.create,getProto:t.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:t.getOwnPropertyDescriptor,setDesc:t.defineProperty,setDescs:t.defineProperties,getKeys:t.keys,getNames:t.getOwnPropertyNames,getSymbols:t.getOwnPropertySymbols,each:[].forEach}},function(e,t,n){e.exports={"default":n(5),__esModule:!0}},function(e,t,n){e.exports={"default":n(6),__esModule:!0}},function(e,t,n){var i=n(2);e.exports=function(e,t,n){return i.setDesc(e,t,n)}},function(e,t,n){var i=n(2);n(17),e.exports=function(e,t){return i.getDesc(e,t)}},function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,t,n){var i=n(7);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(13),o=n(1),r=n(9),a="prototype",s=function(e,t,n){var l,d,c,u=e&s.F,h=e&s.G,f=e&s.S,p=e&s.P,m=e&s.B,g=e&s.W,v=h?o:o[t]||(o[t]={}),y=h?i:f?i[t]:(i[t]||{})[a];for(l in h&&(n=t),n)(d=!u&&y&&l in y)&&l in v||(c=d?y[l]:n[l],v[l]=h&&"function"!=typeof y[l]?n[l]:m&&d?r(c,i):g&&y[l]==c?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[a]=e[a],t}(c):p&&"function"==typeof c?r(Function.call,c):c,p&&((v[a]||(v[a]={}))[l]=c))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,e.exports=s},function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(e,t,n){var i=n(8);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(11),o=n(1),r=n(12);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*r(function(){n(1)}),"Object",a)}},function(e,t,n){var i=n(14),o=n(10);e.exports=function(e){return i(o(e))}},function(e,t,n){var i=n(16);n(15)("getOwnPropertyDescriptor",function(e){return function(t,n){return e(i(t),n)}})}])},function(e,t,n){var i=n(5);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e){e.exports=!1},function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(47);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var i=n(13),o=n(3),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(23)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var i=n(8).f,o=n(6),r=n(0)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,n){var i=n(15);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(27)("keys"),o=n(14);e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
138ing,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(2),o=n(62),r=n(31),a=n(30)("IE_PROTO"),s=function(){},l=function(){var e,t=n(46)("iframe"),i=r.length;for(t.style.display="none",n(63).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object</script>"),e.close(),l=e.F;i--;)delete l.prototype[r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var i=n(49),o=n(31).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},function(e,t,n){var i=n(25),o=n(22),r=n(12),a=n(21),s=n(6),l=n(45),d=Object.getOwnPropertyDescriptor;t.f=n(4)?d:function(e,t){if(e=r(e),t=a(t,!0),l)try{return d(e,t)}catch(e){}if(s(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){for(var i=n(51),o=n(11),r=n(10),a=n(3),s=n(7),l=n(37),d=n(0),c=d("iterator"),u=d("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1, 139HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(f),m=0;m<p.length;m++){var g,v=p[m],y=f[v],_=a[v],b=_&&_.prototype;if(b&&(b[c]||s(b,c,h),b[u]||s(b,u,v),l[v]=h,y))for(g in i)b[g]||r(b,g,i[g],!0)}},function(e){e.exports={}},function(e,t,n){"use strict";var i=n(70)(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},function(e,t,n){"use strict";var i=n(71),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";n(72);var i=n(10),o=n(7),r=n(1),a=n(16),s=n(0),l=n(41),d=s("species"),c=!r(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),u=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!r(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),p=f?!r(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={}
vendor: 5,846 bytes, line 139
139,n.constructor[d]=function(){return n}),n[h](""),!t}):void 0;if(!f||!p||"replace"===e&&!c||"split"===e&&!u){var m=/./[h],g=n(a,h,""[e],function(e,t,n,i,o){return t.exec===l?f&&!o?{done:!0,value:m.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),v=g[0],y=g[1];i(String.prototype,e,v),o(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){"use strict";var i,o,r=n(42),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,d=(i=/a/,o=/b*/g,a.call(i,"a"),a.call(o,"a"),0!==i.lastIndex||0!==o.lastIndex),c=void 0!==/()??/.exec("")[1];(d||c)&&(l=function(e){var t,n,i,o,l=this;return c&&(n=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),d&&(t=l.lastIndex),i=a.call(l,e),d&&i&&(l.lastIndex=l.global?i.index+i[0].length:t),c&&i&&i.length>1&&s.call(i[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i}),e.exports=l},function(e,t,n){"use strict";var i=n(2);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var i=n(73),o=n(74),r=n(75);e.exports=function(e,t){return i(e)||o(e,t)||r()}},function(e,t,n){var i=n(87),o=n(88),r=n(89);e.exports=function(e){return i(e)||o(e)||r()}},function(e,t,n){e.exports=!n(4)&&!n(1)(function(){return 7!=Object.defineProperty(n(46)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(5),o=n(3).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){t.f=n(0)},function(e,t,n){var i=n(6),o=n(12),r=n(60)(!1),a=n(30)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,d=[];for(n in s)n!=a&&i(s,n)&&d.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~r(d,n)||d.push(n));return d}},function(e,t,n){var i=n(15);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){"use strict";var i=n(52),o=n(65),r=n(37),a=n(12);e.exports=n(66)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var i=n(0)("unscopables"),o=Array.prototype;null==o[i]&&n(7)(o,i,{}),e.exports=function(e){o[i][e]=!0}},function(e,t,n){"use strict";var i=n(76),o=n(2),r=n(77),a=n(38),s=n(17),l=n(39),d=n(41),c=n(1),u=Math.min,h=[].push,f=!c(function(){RegExp(4294967295,"y")});n(40)("split",2,function(e,t,n,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!i(e))return n.call(o,e,t);for(var r,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,c+"g");(r=d.call(p,o))&&!((a=p.lastIndex)>u&&(l.push(o.slice(u,r.index)),r.length>1&&r.index<o.length&&h.apply(l,r.slice(1)),s=r[0].length,u=a,l.length>=f));)p.lastIndex===r.index&&p.lastIndex++;return u===o.length?!s&&p.test("")||l.push(""):l.push(o.slice(u)),l.length>f?l.slice(0,f):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,i){var o=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,o,i):p.call(String(o),n,i)},function(e,t){var i=c(p,e,this,t,p!==n);if(i.done)return i.value;var d=o(e),h=String(this),m=r(d,RegExp),g=d.unicode,v=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(f?"y":"g"),y=new m(f?d:"^(?:"+d.source+")",v),_=void 0===t?4294967295:t>>>0;if(0===_)return[];if(0===h.length)return null===l(y,h)?[h]:[];for(var b=0,T=0,C=[];T<h.length;){y.lastIndex=f?T:0;var E,w=l(y,f?h:h.slice(T));if(null===w||(E=u(s(y.lastIndex+(f?0:T)),h.length))===b)T=a(h,T,g);else{if(C.push(h.slice(b,T)),C.length===_)return C;for(var I=1;I<=w.length-1;I++)if(C.push(w[I]),C.length===_)return C;T=b=E}}return C.push(h.slice(b)),C}]})},function(e,t,n){"use strict";var i=n(2),o=n(18),r=n(17),a=n(24),s=n(38),l=n(39),d=Math.max,c=Math.min,u=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n(40)("replace",2,function(e,t,n,p){function m(e,t,i,r,a,s){var l=i+e.length,d=r.length,c=f;return void 0!==a&&(a=o(a),c=h),n.call(s,c,function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var c=+o;if(0===c)return n;if(c>d){var h=u(c/10);return 0===h?n:h<=d?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):n}s=r[c-1]}return void 0===s?"":s})}return[function(i,o){var r=e(this),a=null==i?void 0:i[t];return void 0!==a?a.call(i,r,o):n.call(String(r),i,o)},function(e,t){var o=p(n,e,this,t);if(o.done)return o.value;var u=i(e),h=String(this),f="function"==typeof t;f||(t=String(t));var g=u.global;if(g){var v=u.unicode;u.lastIndex=0}for(var y=[];;){var _=l(u,h);if(null===_)break;if(y.push(_),!g)break;""===String(_[0])&&(u.lastIndex=s(h,r(u.lastIndex),v))}for(var b,T="",C=0,E=0;E<y.length;E++){_=y[E];for(var w=String(_[0]),I=d(c(a(_.index),h.length),0),D=[],x=1;x<_.length;x++)D.push(void 0===(b=_[x])?b:String(b));var O=_.groups;if(f){var k=[w].concat(D,I,h);void 0!==O&&k.push(O);var S=String(t.apply(void 0,k))}else S=m(w,h,I,D,O,t);I>=C&&(T+=h.slice(C,I)+S,C=I+w.length)}return T+h.slice(C)}]})},function(e,t,n){e.exports=n(96)},function(e,t,n){"use strict";var i=n(3),o=n(6),r=n(4),a=n(9),s=n(10),l=n(57).KEY,d=n(1),c=n(27),u=n(28),h=n(14),f=n(0),p=n(48),m=n(58),g=n(59),v=n(50),y=n(2),_=n(5),b=n(12),T=n(21),C=n(22),E=n(33),w=n(64),I=n(35),D=n(8),x=n(11),O
vendor: 5,058 bytes, line 139
139=I.f,k=D.f,S=w.f,R=i.Symbol,$=i.JSON,A=$&&$.stringify,K=f("_hidden"),N=f("toPrimitive"),L={}.propertyIsEnumerable,M=c("symbol-registry"),P=c("symbols"),F=c("op-symbols"),B=Object.prototype,j="function"==typeof R,H=i.QObject,z=!H||!H.prototype||!H.prototype.findChild,q=r&&d(function(){return 7!=E(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=O(B,t);i&&delete B[t],k(e,t,n),i&&e!==B&&k(B,t,i)}:k,W=function(e){var t=P[e]=E(R.prototype);return t._k=e,t},U=j&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},V=function(e,t,n){return e===B&&V(F,t,n),y(e),t=T(t,!0),y(n),o(P,t)?(n.enumerable?(o(e,K)&&e[K][t]&&(e[K][t]=!1),n=E(n,{enumerable:C(0,!1)})):(o(e,K)||k(e,K,C(1,{})),e[K][t]=!0),q(e,t,n)):k(e,t,n)},Y=function(e,t){y(e);for(var n,i=g(t=b(t)),o=0,r=i.length;r>o;)V(e,n=i[o++],t[n]);return e},G=function(e){var t=L.call(this,e=T(e,!0));return!(this===B&&o(P,e)&&!o(F,e))&&(!(t||!o(this,e)||!o(P,e)||o(this,K)&&this[K][e])||t)},X=function(e,t){if(e=b(e),t=T(t,!0),e!==B||!o(P,t)||o(F,t)){var n=O(e,t);return!n||!o(P,t)||o(e,K)&&e[K][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=S(b(e)),i=[],r=0;n.length>r;)o(P,t=n[r++])||t==K||t==l||i.push(t);return i},Z=function(e){for(var t,n=e===B,i=S(n?F:b(e)),r=[],a=0;i.length>a;)!o(P,t=i[a++])||n&&!o(B,t)||r.push(P[t]);return r};j||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(F,n),o(this,K)&&o(this[K],e)&&(this[K][e]=!1),q(this,e,C(1,n))};return r&&z&&q(B,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),I.f=X,D.f=V,n(34).f=w.f=Q,n(25).f=G,n(32).f=Z,r&&!n(23)&&s(B,"propertyIsEnumerable",G,!0),p.f=function(e){return W(f(e))}),a(a.G+a.W+a.F*!j,{Symbol:R});for(var J="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;J.length>ee;)f(J[ee++]);for(var te=x(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!j,"Symbol",{"for":function(e){return o(M,e+="")?M[e]:M[e]=R(e)},keyFor:function(e){if(!U(e))throw TypeError(e+" is not a symbol!");for(var t in M)if(M[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!j,"Object",{create:function(e,t){return void 0===t?E(e):Y(E(e),t)},defineProperty:V,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),$&&a(a.S+a.F*(!j||d(function(){var e=R();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=t=i[1],(_(t)||void 0!==e)&&!U(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!U(t))return t}),i[1]=t,A.apply($,i)}}),R.prototype[N]||n(7)(R.prototype,N,R.prototype.valueOf),u(R,"Symbol"),u(Math,"Math",!0),u(i.JSON,"JSON",!0)},function(e,t,n){var i=n(14)("meta"),o=n(5),r=n(6),a=n(8).f,s=0,l=Object.isExtensible||function(){return!0},d=!n(1)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},u=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,i)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[i].i},getWeak:function(e,t){if(!r(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},onFreeze:function(e){return d&&u.NEED&&l(e)&&!r(e,i)&&c(e),e}}},function(e,t,n){var i=n(3),o=n(13),r=n(23),a=n(48),s=n(8).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=r?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var i=n(11),o=n(32),r=n(25);e.exports=function(e){var t=i(e),n=o.f;if(n)for(var a,s=n(e),l=r.f,d=0;s.length>d;)l.call(e,a=s[d++])&&t.push(a);return t}},function(e,t,n){var i=n(12),o=n(17),r=n(61);e.exports=function(e){return function(t,n,a){var s,l=i(t),d=o(l.length),c=r(a,d);if(e&&n!=n){for(;d>c;)if((s=l[c++])!=s)return!0}else for(;d>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(24),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},function(e,t,n){var i=n(8),o=n(2),r=n(11);e.exports=n(4)?Object.defineProperties:function(e,t){o(e);for(var n,a=r(t),s=a.length,l=0;s>l;)i.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var i=n(3).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(12),o=n(34).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(i(e))}},function(e){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var i=n(23),o=n(9),r=n(10),a=n(7),s=n(37),l=n(67),d=n(28),c=n(68),u=n(0)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,g,v){l(n,t,p);var y,_,b,T=function(e){if(!h&&e in I)return I[e];
vendor: 5,333 bytes, line 139
139switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",E="values"==m,w=!1,I=e.prototype,D=I[u]||I["@@iterator"]||m&&I[m],x=D||T(m),O=m?E?T("entries"):x:void 0,k="Array"==t&&I.entries||D;if(k&&(b=c(k.call(new e)))!==Object.prototype&&b.next&&(d(b,C,!0),i||"function"==typeof b[u]||a(b,u,f)),E&&D&&"values"!==D.name&&(w=!0,x=function(){return D.call(this)}),i&&!v||!h&&!w&&I[u]||a(I,u,x),s[t]=x,s[C]=f,m)if(y={values:E?x:T("values"),keys:g?x:T("keys"),entries:O},v)for(_ in y)_ in I||r(I,_,y[_]);else o(o.P+o.F*(h||w),t,y);return y}},function(e,t,n){"use strict";var i=n(33),o=n(22),r=n(28),a={};n(7)(a,n(0)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:o(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var i=n(6),o=n(18),r=n(30)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var i=n(2),o=n(17),r=n(38),a=n(39);n(40)("match",1,function(e,t,n,s){return[function(n){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=i(e),d=String(this);if(!l.global)return a(l,d);var c=l.unicode;l.lastIndex=0;for(var u,h=[],f=0;null!==(u=a(l,d));){var p=String(u[0]);h[f]=p,""===p&&(l.lastIndex=r(d,o(l.lastIndex),c)),f++}return 0===f?null:h}]})},function(e,t,n){var i=n(24),o=n(16);e.exports=function(e){return function(t,n){var r,a,s=String(o(t)),l=i(n),d=s.length;return l<0||l>=d?e?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===d||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}}},function(e,t,n){var i=n(15),o=n(0)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){"use strict";var i=n(41);n(9)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(e){e.exports=function(e){if(Array.isArray(e))return e}},function(e){e.exports=function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==s["return"]||s["return"]()}finally{if(o)throw r}}return n}},function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){var i=n(5),o=n(15),r=n(0)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},function(e,t,n){var i=n(2),o=n(47),r=n(0)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||null==(n=i(a)[r])?t:o(n)}},function(e,t,n){"use strict";var i=n(3),o=n(6),r=n(15),a=n(79),s=n(21),l=n(1),d=n(34).f,c=n(35).f,u=n(8).f,h=n(81).trim,f=i.Number,p=f,m=f.prototype,g="Number"==r(n(33)(m)),v="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,i,o,r=(t=v?t.trim():h(t,3)).charCodeAt(0);if(43===r||45===r){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===r){switch(t.charCodeAt(1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+t}for(var a,l=t.slice(2),d=0,c=l.length;d<c;d++)if((a=l.charCodeAt(d))<48||a>o)return NaN;return parseInt(l,i)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(g?l(function(){m.valueOf.call(n)}):"Number"!=r(n))?a(new p(y(t)),n,f):y(t)};for(var _,b=n(4)?d(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;b.length>T;T++)o(p,_=b[T])&&!o(f,_)&&u(f,_,c(p,_));f.prototype=m,m.constructor=f,n(10)(i,"Number",f)}},function(e,t,n){var i=n(5),o=n(80).set;e.exports=function(e,t,n){var r,a=t.constructor;return a!==n&&"function"==typeof a&&(r=a.prototype)!==n.prototype&&i(r)&&o&&o(e,r),e}},function(e,t,n){var i=n(5),o=n(2),r=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(26)(Function.call,n(35).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return r(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:r}},function(e,t,n){var i=n(9),o=n(16),r=n(1),a=n(82),s="["+a+"]",l=RegExp("^"+s+s+"*"),d=RegExp(s+s+"*$"),c=function(e,t,n){var o={},s=r(function(){return!!a[e]()||"\u200b\x85"!="\u200b\x85"[e]()}),l=o[e]=s?t(u):a[e];n&&(o[n]=l),i(i.P+i.F*s,"String",o)},u=c.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(d,"")),e};e.exports=c},function(e){e.exports="\t\n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t,n){"use strict";n(84);var i=n(2),o=n(42),r=n(4),a=/./.toString,s=function(e){n(10)(RegExp.prototype,"toString",e,!0)};
139n(1)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?o.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,n){n(4)&&"g"!=/./g.flags&&n(8).f(RegExp.prototype,"flags",{configurable:!0,get:n(42)})},function(e,t,n){var i=n(18),o=n(11);n(86)("keys",function(){return function(e){return o(i(e))}})},function(e,t,n){var i=n(9),o=n(13),r=n(1);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*r(function(){n(1)}),"Object",a)}},function(e){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){var i=n(9);i(i.S+i.F,"Object",{assign:n(91)})},function(e,t,n){"use strict";var i=n(11),o=n(32),r=n(25),a=n(18),s=n(29),l=Object.assign;e.exports=!l||n(1)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i})?function(e){for(var t=a(e),n=arguments.length,l=1,d=o.f,c=r.f;n>l;)for(var u,h=s(arguments[l++]),f=d?i(h).concat(d(h)):i(h),p=f.length,m=0;p>m;)c.call(h,u=f[m++])&&(t[u]=h[u]);return t}:l},function(e,t,n){"use strict";var i=n(9),o=n(93)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),i(i.P+i.F*r,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(52)("find")},function(e,t,n){var i=n(26),o=n(29),r=n(18),a=n(17),s=n(94);e.exports=function(e,t){var n=1==e,l=2==e,d=3==e,c=4==e,u=6==e,h=5==e||u,f=t||s;return function(t,s,p){for(var m,g,v=r(t),y=o(v),_=i(s,p,3),b=a(y.length),T=0,C=n?f(t,b):l?f(t,0):void 0;b>T;T++)if((h||T in y)&&(g=_(m=y[T],T,v),e))if(n)C[T]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return T;case 2:C.push(m)}else if(c)return!1;return u?-1:d||c?c:C}}},function(e,t,n){var i=n(95);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(5),o=n(50),r=n(0)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";n.r(t),n(36),n(69);var i=n(43),o=n.n(i),r=(n(53),n(19)),a=n.n(r),s=(n(78),n(20)),l=function(e){return e instanceof HTMLElement},d=(n(83),function(e){return"[object Array]"==={}.toString.call(e)}),c=function(e){return"function"==typeof e},u=(n(54),function(e){return e.replace(/([A-Z])/g,function(e){return"-".concat(e).toLowerCase()})}),h=(n(51),n(85),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){if(t){var n=Object.keys(t).reduce(function(e,n){return e[n]=Object.getOwnPropertyDescriptor(t,n),e},{});Object.getOwnPropertySymbols(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);i.enumerable&&(n[e]=i)}),Object.defineProperties(e,n)}}),e}),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=h({},e)).readOnly=e.readOnly||!1,e.reflectToAttribute=e.reflectToAttribute||!1,e.value=e.value,e.type=e.type,e},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i={enumerable:!0,configurable:!0,writable:!(t=f(t)).readOnly,value:c(t.value)?t.value.call(n):t.value};Object.defineProperty(n,e,i)},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;!(t=f(t)).value&&0!==t.value||n[e]||(t.type===Boolean?n[e]=(!t.reflectToAttribute||"false"!==i.dataset[e])&&t.value:c(t.value)?n[e]=t.value.call(n):n[e]=t.value)},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if((t=f(t)).reflectToAttribute){var i=u("data-".concat(e)),o=Object.getOwnPropertyDescriptor(n,e),r={enumerable:o.enumerable,configurable:o.configurable,get:function(){return t.type===Boolean?""===this.element.dataset[e]:t.type===Number?Number(this.element.dataset[e]):this.element.dataset[e]}
139,set:function(n){var o=!n&&0!==n;if(t.type===Boolean||o)return this.element[o?"removeAttribute":"setAttribute"](i,t.type===Boolean?"":n);this.element.dataset[e]=n}};Object.defineProperty(n,e,r)}},v=function(e,t){var n=e.split("."),i=n.pop();return{parent:function(e,t){return e.split(".").reduce(function(e,t){return e[t]},t)}(n.join("."),t),prop:i}},y=function(e){return d(e.observers)?e.observers.map(function(e){var t=e.match(/([a-zA-Z-_]+)\(([^)]*)\)/),n=o()(t,3),i=n[1],r=n[2];return{fn:i,args:r=r.split(",").map(function(e){return e.trim()}).filter(function(e){return e.length})}}).filter(function(t){var n=t.fn;return c(e[n])}):[]},_=function(e){return d(e.listeners)?e.listeners.map(function(e){var t=e.match(/(.*\.)?([a-zA-Z-_]+)\(([^)]*)\)/),n=o()(t,4),i=n[1],r=n[2],a=n[3];return a=a.split(",").map(function(e){return e.trim()}).filter(function(e){return e.length}),{element:i=i?i.substr(0,i.length-1):"element",fn:r,events:a}}).filter(function(t){var n=t.element,i=t.fn;return c(e[i])&&("document"===n||"window"===n||l(e[n])||e[n]&&l(e[n].element))}):[]},b=function(e){var t=function(e){return d(e.mixins)?e.mixins.filter(function(e){return"object"===a()(e)}):[]}(e);return t.unshift({}),h.apply(null,t)},T=function(e,t){if(e&&"object"===a()(e)&&l(t)){e.element=t;var n={$set:function(e,t){if(e&&void 0!==t&&void 0!==this.properties&&this.properties.hasOwnProperty(e)){var n=f(this.properties[e]),i=Object.getOwnPropertyDescriptor(this,e);if(n.readOnly&&void 0!==i.writable){var o={enumerable:i.enumerable,configurable:i.configurable,writable:!1,value:t};Object.defineProperty(this,e,o)}else this[e]=t}},init:function(){var t;y(t=this).forEach(function(e){var n=e.fn,i=e.args;t[n]=t[n].bind(t),i.forEach(function(e){if(-1!==e.indexOf(".")){var i=v(e,t),o=i.prop,r=i.parent;Object(s.watch)(r,o,t[n])}else Object(s.watch)(t,e,t[n])})}),function(e){_(e).forEach(function(t){var n=t.element,i=t.fn,o=t.events;e[i]=e[i].bind(e),"document"===n?n=e.element.ownerDocument:"window"===n?n=window:l(e[n])?n=e[n]:l(e[n].element)&&(n=e[n].element),n&&o.forEach(function(t){return n.addEventListener(t,e[i])})})}(this),c(e.init)&&e.init.call(this)},destroy:function(){var t=this;y(e).forEach(function(e){var n=e.fn;e.args.forEach(function(e){if(-1!==e.indexOf(".")){var i=v(e,t),o=i.prop,r=i.parent;Object(s.unwatch)(r,o,t[n])}else Object(s.unwatch)(t,e,t[n])})}),_(e).forEach(function(e){var n=e.element,i=e.fn,o=e.events;"document"===n?n=t.element.ownerDocument:"window"===n?n=window:l(t[n])?n=t[n]:l(t[n].element)&&(n=t[n].element),n&&o.forEach(function(e){return n.removeEventListener(e,t[i])})}),c(e.destroy)&&e.destroy.call(this)},fire:function(e){var t;if("CustomEvent"in window&&"object"===a()(window.CustomEvent))try{t=new CustomEvent(e,{bubbles:!1,cancelable:!1})}catch(n){t=new this.CustomEvent_(e,{bubbles:!1,cancelable:!1})}else(t=document.createEvent("Event")).initEvent(e,!1,!0);this.element.dispatchEvent(t)},CustomEvent_:function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}};return function(e,t){if("object"===a()(e.properties))for(var n in e.properties)if(e.properties.hasOwnProperty(n)){var i=e.properties[n];p(n,i,e),g(n,i,e),m(n,i,e,t)}}(e,t),(n=h({},b(e),e,n)).init(),n}console.error("[dom-factory] Invalid factory.",e,t)},C=n(44),E=n.n(C),w=(n(90),n(92),function(e){return e.replace(/(\-[a-z])/g,function(e){return e.toUpperCase().replace("-","")})}),I={autoInit:function(){["DOMContentLoaded","load"].forEach(function(e){window.addEventListener(e,function(){return I.upgradeAll()})})},_registered:[],_created:[],register:function(e,t){var n="js-".concat(e);this.findRegistered(e)||this._registered.push({id:e,cssClass:n,callbacks:[],factory:t})},registerUpgradedCallback:function(e,t){var n=this.findRegistered(e);n&&n.callbacks.push(t)},findRegistered:function(e){return this._registered.find(function(t){return t.id===e})},findCreated:function(e){return this._created.filter(function(t){return t.element===e})},upgradeElement:function(e,t){var n=this;if(void 0!==t){var i=e.getAttribute("data-domfactory-upgraded"),o=this.findRegistered(t);if(!o||null!==i&&-1!==i.indexOf(t)){if(o){var r=e[w(t)];"function"==typeof r._reset&&r._reset()}}else{var a;(i=null===i?[]:i.split(",")).push(t);try{a=T(o.factory(e),e)}catch(e){console.error(t,e.message,e.stack)}if(a){e.setAttribute("data-domfactory-upgraded",i.join(","));var s=Object.assign({},o);delete s.factory,a.__domFactoryConfig=s,this._created.push(a),Object.defineProperty(e,w(t),{configurable:!0,writable:!1,value:a}),o.callbacks.forEach(function(t){return t(e)}),a.fire("domfactory-component-upgraded")}}}else this._registered.forEach(function(t){e.classList.contains(t.cssClass)&&n.upgradeElement(e,t.id)})},upgrade:function(e){var t=this;if(void 0===e)this.upgradeAll();else{var n=this.findRegistered(e);
139n&&E()(document.querySelectorAll("."+n.cssClass)).forEach(function(n){return t.upgradeElement(n,e)})}},upgradeAll:function(){var e=this;this._registered.forEach(function(t){return e.upgrade(t.id)})},downgradeComponent:function(e){e.destroy();var t=this._created.indexOf(e);this._created.splice(t,1);var n=e.element.getAttribute("data-domfactory-upgraded").split(","),i=n.indexOf(e.__domFactoryConfig.id);n.splice(i,1),e.element.setAttribute("data-domfactory-upgraded",n.join(",")),e.fire("domfactory-component-downgraded")},downgradeElement:function(e){this.findCreated(e).forEach(this.downgradeComponent,this)},downgradeAll:function(){this._created.forEach(this.downgradeComponent,this)},downgrade:function(e){var t=this;e instanceof Array||e instanceof NodeList?(e instanceof NodeList?E()(e):e).forEach(function(e){return t.downgradeElement(e)}):e instanceof Node&&this.downgradeElement(e)}};n.d(t,"util",function(){return D}),n.d(t,"factory",function(){return T}),n.d(t,"handler",function(){return I}),n(56);var D={assign:h,isArray:d,isElement:l,isFunction:c,toKebabCase:u,transform:function(e,t){["transform","WebkitTransform","msTransform","MozTransform","OTransform"].map(function(n){return t.style[n]=e})}}}])}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dom-factory")):"function"==typeof define&&define.amd?define(["dom-factory"],t):"object"==typeof exports?exports.MDK=t(require("dom-factory")):e.MDK=t(e.domFactory)}(window,function(e){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=116)}([function(e,t,n){var i=n(29)("wks"),o=n(16),r=n(1).Symbol,a="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:o)("Symbol."+e))}).store=i},function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(e,t,n){e.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(4);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(t){t.exports=e},function(e,t,n){var i=n(7),o=n(19);e.exports=n(2)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(3),o=n(32),r=n(25),a=Object.defineProperty;t.f=n(2)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,t,n){var i=n(1),o=n(6),r=n(9),a=n(16)("src"),s=Function.toString,l=(""+s).split("toString");n(12).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var d="function"==typeof n;d&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(d&&(r(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e){var t=e.exports={version:"2.6.3"};"number"==typeof __e&&(__e=t)},function(e){e.exports={}},function(e,t,n){var i=n(39),o=n(11);e.exports=function(e){return i(o(e))}},function(e,t,n){var i=n(58),o=n(59),r=n(60);e.exports=function(e){return i(e)||o(e)||r()}},function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},function(e,t,n){var i=n(1),o=n(12),r=n(6),a=n(10),s=n(18),l=function(e,t,n){var d,c,u,h,f=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=p?i:m?i[t]||(i[t]={}):(i[t]||{}).prototype,_=p?o:o[t]||(o[t]={}),b=_.prototype||(_.prototype={});for(d in p&&(n=t),n)u=((c=!f&&y&&void 0!==y[d])?y:n)[d],h=v&&c?s(u,i):g&&"function"==typeof u?s(Function.call,u):u,y&&a(y,d,u,e&l.U),_[d]!=u&&r(_,d,h),g&&b[d]!=u&&(b[d]=u)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var i=n(37);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,t,n){var i=n(29)("keys"),o=n(16) 140;e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var i=n(23),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
140ing,toString,valueOf".split(",")},function(e,t,n){var i=n(4);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(4),o=n(1).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e,t,n){var i=n(7).f,o=n(9),r=n(0)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,n){for(var i=n(41),o=n(31),r=n(10),a=n(1),s=n(6),l=n(13),d=n(0),c=d("iterator"),u=d("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(f),m=0;m<p.length;m++){var g,v=p[m],y=f[v],_=a[v],b=_&&_.prototype;if(b&&(b[c]||s(b,c,h),b[u]||s(b,u,v),l[v]=h,y))for(g in i)b[g]||r(b,g,i[g],!0)}},function(e,t,n){var i=n(12),o=n(1),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(30)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(e){e.exports=!1},function(e,t,n){var i=n(38),o=n(24);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t,n){e.exports=!n(2)&&!n(8)(function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var i=n(30),o=n(17),r=n(10),a=n(6),s=n(13),l=n(55),d=n(27),c=n(56),u=n(0)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,g,v){l(n,t,p);var y,_,b,T=function(e){if(!h&&e in I)return I[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",E="values"==m,w=!1,I=e.prototype,D=I[u]||I["@@iterator"]||m&&I[m],x=D||T(m),O=m?E?T("entries"):x:void 0,k="Array"==t&&I.entries||D;if(k&&(b=c(k.call(new e)))!==Object.prototype&&b.next&&(d(b,C,!0),i||"function"==typeof b[u]||a(b,u,f)),E&&D&&"values"!==D.name&&(w=!0,x=function(){return D.call(this)}),i&&!v||!h&&!w&&I[u]||a(I,u,x),s[t]=x,s[C]=f,m)if(y={values:E?x:T("values"),keys:g?x:T("keys"),entries:O},v)for(_ in y)_ in I||r(I,_,y[_]);else o(o.P+o.F*(h||w),t,y);return y}},function(e,t,n){var i=n(3),o=n(46),r=n(24),a=n(21)("IE_PROTO"),s=function(){},l=function(){var e,t=n(26)("iframe"),i=r.length;for(t.style.display="none",n(49).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object</script>"),e.close(),l=e.F;i--;)delete l.prototype[r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e){e.exports=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.unwatch=t.watch=void 0;var o=i(n(4)),r=i(n(3)),a=(t.watch=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var i=t[1];l(i)?m.apply(void 0,t):a(i)?v.apply(void 0,t):g.apply(void 0,t)},t.unwatch=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var i=t[1];l(i)||void 0===i?b.apply(void 0,t):a(i)?_.apply(void 0,t):y.apply(void 0,t)},function(e){return"[object Array]"==={}.toString.call(e)}),s=function(e){return"[object Object]"==={}.toString.call(e)},l=function(e){return"[object Function]"==={}.toString.call(e)}
140,d=function(e,t,n){(0,r["default"])(e,t,{enumerable:!1,configurable:!0,writable:!1,value:n})},c=function(e,t,n,i,o){var r=void 0,a=e.__watchers__[t];(r=e.__watchers__.__watchall__)&&(a=a?a.concat(r):r);for(var s=a?a.length:0,l=0;s>l;l++)a[l].call(e,n,i,t,o)},u=["pop","push","reverse","shift","sort","unshift","splice"],h=function(e,t,n,i){d(e,n,function(){for(var o=0,r=void 0,a=void 0,s=arguments.length,l=Array(s),d=0;s>d;d++)l[d]=arguments[d];if("splice"===n){var c=l[0],u=c+l[1];r=e.slice(c,u),a=[];for(var h=2;h<l.length;h++)a[h-2]=l[h];o=c}else a="push"===n||"unshift"===n?l.length>0?l:void 0:l.length>0?l[0]:void 0;var f=t.apply(e,l);return"pop"===n?(r=f,o=e.length):"push"===n?o=e.length-1:"shift"===n?r=f:"unshift"!==n&&void 0===a&&(a=f),i.call(e,o,n,a,r),f})},f=function(e,t){if(l(t)&&e&&!(e instanceof String)&&a(e))for(var n=u.length;n>0;n--){var i=u[n-1];h(e,e[i],i,t)}},p=function(e,t,n,i){var l=!1,u=a(e);void 0===e.__watchers__&&(d(e,"__watchers__",{}),u&&f(e,function(n,o,r,l){if(c(e,n,r,l,o),0!==i&&r&&(s(r)||a(r))){var d=void 0,u=e.__watchers__[t];(d=e.__watchers__.__watchall__)&&(u=u?u.concat(d):d);for(var h=u?u.length:0,f=0;h>f;f++)if("splice"!==o)m(r,u[f],void 0===i?i:i-1);else for(var p=0;p<r.length;p++)m(r[p],u[f],void 0===i?i:i-1)}})),void 0===e.__proxy__&&d(e,"__proxy__",{}),void 0===e.__watchers__[t]&&(e.__watchers__[t]=[],u||(l=!0));for(var h=0;h<e.__watchers__[t].length;h++)if(e.__watchers__[t][h]===n)return;e.__watchers__[t].push(n),l&&function(){var n=(0,o["default"])(e,t);void 0!==n?function(){var i={enumerable:n.enumerable,configurable:n.configurable};["get","set"].forEach(function(t){void 0!==n[t]&&(i[t]=function(){for(var i=arguments.length,o=Array(i),r=0;i>r;r++)o[r]=arguments[r];return n[t].apply(e,o)})}),["writable","value"].forEach(function(e){void 0!==n[e]&&(i[e]=n[e])}),(0,r["default"])(e.__proxy__,t,i)}():e.__proxy__[t]=e[t],function(e,t,n,i){(0,r["default"])(e,t,{get:n,set:function(e){i.call(this,e)},enumerable:!0,configurable:!0})}(e,t,function(){return e.__proxy__[t]},function(n){var o=e.__proxy__[t];if(0!==i&&e[t]&&(s(e[t])||a(e[t]))&&!e[t].__watchers__)for(var r=0;r<e.__watchers__[t].length;r++)m(e[t],e.__watchers__[t][r],void 0===i?i:i-1);o!==n&&(e.__proxy__[t]=n,c(e,t,n,o,"set"))})}()},m=function T(e,t,n){if("string"!=typeof e&&(e instanceof Object||a(e)))if(a(e)){if(p(e,"__watchall__",t,n),void 0===n||n>0)for(var i=0;i<e.length;i++)T(e[i],t,n)}else{var o=[];for(var r in e)({}).hasOwnProperty.call(e,r)&&o.push(r);v(e,o,t,n)}},g=function(e,t,n,i){"string"!=typeof e&&(e instanceof Object||a(e))&&(l(e[t])||(null!==e[t]&&(void 0===i||i>0)&&m(e[t],n,void 0!==i?i-1:i),p(e,t,n,i)))},v=function(e,t,n,i){if("string"!=typeof e&&(e instanceof Object||a(e)))for(var o=0;o<t.length;o++){var r=t[o];g(e,r,n,i)}},y=function(e,t,n){if(void 0!==e.__watchers__&&void 0!==e.__watchers__[t])if(void 0===n)delete e.__watchers__[t];else for(var i=0;i<e.__watchers__[t].length;i++)e.__watchers__[t][i]===n&&e.__watchers__[t].splice(i,1)},_=function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&y(e,t[i],n)},b=function(e,t){if(!(e instanceof String||!e instanceof Object&&!a(e)))if(a(e)){for(var n=["__watchall__"],i=0;i<e.length;i++)n.push(i);_(e,n,t)}else!function o(e,t){var n=[];for(var i in e)e.hasOwnProperty(i)&&(e[i]instanceof Object&&o(e[i],t),n.push(i));_(e,n,t)}(e,t)}},function(e){var t=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=t)},function(e){var t=Object;e.exports={create:t.create,getProto:t.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:t.getOwnPropertyDescriptor,setDesc:t.defineProperty,setDescs:t.defineProperties,getKeys:t.keys,getNames:t.getOwnPropertyNames,getSymbols:t.getOwnPropertySymbols,each:[].forEach}},function(e,t,n){e.exports={"default":n(5),__esModule:!0}},function(e,t,n){e.exports={"default":n(6),__esModule:!0}},function(e,t,n){var i=n(2);e.exports=function(e,t,n){return i.setDesc(e,t,n)}},function(e,t,n){var i=n(2);n(17),e.exports=function(e,t){return i.getDesc(e,t)}},function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,t,n){var i=n(7);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(13),o=n(1),r=n(9),a="prototype",s=function(e,t,n){var l,d,c,u=e&s.F,h=e&s.G,f=e&s.S,p=e&s.P,m=e&s.B,g=e&s.W,v=h?o:o[t]||(o[t]={}),y=h?i:f?i[t]:(i[t]||{})[a];for(l in h&&(n=t),n)(d=!u&&y&&l in y)&&l in v||(c=d?y[l]:n[l],v[l]=h&&"function"!=typeof y[l]?n[l]:m&&d?r(c,i):g&&y[l]==c?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[a]=e[a],t}(c):p&&"function"==typeof c?r(Function.call,c):c,p&&((v[a]||(v[a]={}))[l]=c))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,e.exports=s},function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(e,t,n){var i=n(8);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(11),o=n(1),r=n(12);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*r(function(){n(1)}),"Object",a)}},function(e,t,n){var i=n(14),o=n(10);e.exports=function(e){return i(o(e))}},function(e,t,n){var i=n(16);n(15)("getOwnPropertyDescriptor",function(e){return function(t,n){return e(i(t),n)}})}])},function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(9),o=n(14),r=n(47)(!1),a=n(21)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,d=[];for(n in s)n!=a&&i(s,n)&&d.push(n);for(;t.length>l;
140)i(s,n=t[l++])&&(~r(d,n)||d.push(n));return d}},function(e,t,n){var i=n(20);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(11);e.exports=function(e){return Object(i(e))}},function(e,t,n){"use strict";var i=n(45),o=n(42),r=n(13),a=n(14);e.exports=n(33)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var i,o,r=n(57),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,d=(i=/a/,o=/b*/g,a.call(i,"a"),a.call(o,"a"),0!==i.lastIndex||0!==o.lastIndex),c=void 0!==/()??/.exec("")[1];(d||c)&&(l=function(e){var t,n,i,o,l=this;return c&&(n=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),d&&(t=l.lastIndex),i=a.call(l,e),d&&i&&(l.lastIndex=l.global?i.index+i[0].length:t),c&&i&&i.length>1&&s.call(i[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i}),e.exports=l},function(e,t,n){"use strict";var i=n(35),o=function(){return{_scrollTargetSelector:null,_scrollTarget:null,get scrollTarget(){return this._scrollTarget?this._scrollTarget:this._defaultScrollTarget},set scrollTarget(e){this._scrollTarget=e},get scrollTargetSelector(){return this._scrollTargetSelector?this._scrollTargetSelector:this.element.hasAttribute("data-scroll-target")?this.element.getAttribute("data-scroll-target"):void 0},set scrollTargetSelector(e){this._scrollTargetSelector=e},get _defaultScrollTarget(){return this._doc},get _owner(){return this.element.ownerDocument},get _doc(){return this._owner.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},set _scrollTop(e){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,e):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=e)},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollLeft(e){this.scrollTarget===this._doc?window.scrollTo(e,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=e)},get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},get _isPositionedFixed(){return this.element instanceof HTMLElement&&"fixed"===window.getComputedStyle(this.element).position},attachToScrollTarget:function(){this.detachFromScrollTarget(),Object(i.watch)(this,"scrollTargetSelector",this.attachToScrollTarget),"document"===this.scrollTargetSelector?this.scrollTarget=this._doc:"string"==typeof this.scrollTargetSelector?this.scrollTarget=document.querySelector("".concat(this.scrollTargetSelector)):this.scrollTargetSelector instanceof HTMLElement&&(this.scrollTarget=this.scrollTargetSelector),this._doc.style.overflow||(this._doc.style.overflow=this.scrollTarget!==this._doc?"hidden":""),this.scrollTarget&&(this.eventTarget=this.scrollTarget===this._doc?window:this.scrollTarget,this._boundScrollHandler=this._boundScrollHandler||this._scrollHandler.bind(this),this._loop())},_loop:function(){requestAnimationFrame(this._boundScrollHandler)},detachFromScrollTarget:function(){Object(i.unwatch)(this,"scrollTargetSelector",this.attachToScrollTarget)},scroll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.scrollTarget===this._doc?window.scrollTo(e,t):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=e,this.scrollTarget.scrollTop=t)},scrollWithBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(i="function"==typeof i?i:function(e,t,n,i){return-n*(e/=i)*(e-2)+t},"smooth"===n){var o=Date.now(),r=this._scrollTop,a=this._scrollLeft,s=t-r,l=e-a;(function n(){var e=Date.now()-o;e<300&&(this.scroll(i(e,a,l,300),i(e,r,s,300)),requestAnimationFrame(n.bind(this)))}).call(this)}else this.scroll(e,t)},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},_scrollHandler:function(){}}};n.d(t,"a",function(){return o}
140)},function(e,t,n){var i=n(0)("unscopables"),o=Array.prototype;null==o[i]&&n(6)(o,i,{}),e.exports=function(e){o[i][e]=!0}},function(e,t,n){var i=n(7),o=n(3),r=n(31);e.exports=n(2)?Object.defineProperties:function(e,t){o(e);for(var n,a=r(t),s=a.length,l=0;s>l;)i.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var i=n(14),o=n(22),r=n(48);e.exports=function(e){return function(t,n,a){var s,l=i(t),d=o(l.length),c=r(a,d);if(e&&n!=n){for(;d>c;)if((s=l[c++])!=s)return!0}else for(;d>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(23),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},function(e,t,n){var i=n(1).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(23),o=n(11);e.exports=function(e){return function(t,n){var r,a,s=String(o(t)),l=i(n),d=s.length;return l<0||l>=d?e?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===d||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}}},function(e,t,n){var i=n(20),o=n(0)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var i=n(63),o=n(19),r=n(14),a=n(25),s=n(9),l=n(32),d=Object.getOwnPropertyDescriptor;t.f=n(2)?d:function(e,t){if(e=r(e),t=a(t,!0),l)try{return d(e,t)}catch(e){}if(s(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";var i={name:"blend-background",setUp:function(){var e=this,t=this.element.querySelector('[class*="__bg-front"]'),n=this.element.querySelector('[class*="__bg-rear"]');[t,n].map(function(t){t&&""===t.style.transform&&(e._transform("translateZ(0)",t),t.style.willChange="opacity")}),n.style.opacity=0},run:function(e){var t=this.element.querySelector('[class*="__bg-front"]'),n=this.element.querySelector('[class*="__bg-rear"]');t.style.opacity=(1-e).toFixed(5),n.style.opacity=e.toFixed(5)}},o=(n(28),n(41),n(68),n(88),n(15)),r=n.n(o),a=(n(64),{name:"fade-background",setUp:function(e){var t=this,n=e.duration||"0.5s",i=e.threshold||(this._isPositionedFixed?1:.3);[this.element.querySelector('[class*="__bg-front"]'),this.element.querySelector('[class*="__bg-rear"]')].map(function(e){if(e){var i=e.style.willChange.split(",").map(function(e){return e.trim()}).filter(function(e){return e.length});i.push("opacity","transform"),e.style.willChange=r()(new Set(i)).join(", "),""===e.style.transform&&t._transform("translateZ(0)",e),e.style.transitionProperty="opacity",e.style.transitionDuration=n}}),this._fadeBackgroundThreshold=this._isPositionedFixed?i:i+this._progress*i},tearDown:function(){delete this._fadeBackgroundThreshold},run:function(e){var t=this.element.querySelector('[class*="__bg-front"]'),n=this.element.querySelector('[class*="__bg-rear"]');e>=this._fadeBackgroundThreshold?(t.style.opacity=0,n.style.opacity=1):(t.style.opacity=1,n.style.opacity=0)}}),s={name:"parallax-background",setUp:function(){},tearDown:function(){var e=this,t=[this.element.querySelector('[class*="__bg-front"]'),this.element.querySelector('[class*="__bg-rear"]')],n=["marginTop","marginBottom"];t.map(function(t){t&&(e._transform("translate3d(0, 0, 0)",t),n.forEach(function(e){return t.style[e]=""}))})},run:function(e){var t=this,n=(this.scrollTarget.scrollHeight-this._scrollTargetHeight)/this.scrollTarget.scrollHeight,i=this.element.offsetHeight*n;void 0!==this._dHeight&&(n=this._dHeight/this.element.offsetHeight,i=this._dHeight*n);var o=Math.abs(.5*i).toFixed(5),r=this._isPositionedFixedEmulated?1e6:i,a=o*e,s=Math.min(a,r).toFixed(5);[this.element.querySelector('[class*="__bg-front"]'),this.element.querySelector('[class*="__bg-rear"]')].map(function(e){e&&(e.style.marginTop="".concat(-1*o,"px"),t._transform("translate3d(0, ".concat(s,"px, 0)"),e))});var l=this.element.querySelector('[class$="__bg"]');l.style.visibility||(l.style.visibility="visible")}};n.d(t,"a",function(){return l});var l=[i,a,s]},function(e,t,n){"use strict";n(28);var i=n(78),o=n.n(i),r=(n(64),n(5)),a=function(){return{_scrollEffects:{},_effectsRunFn:[],_effects:[],_effectsConfig:null,get effects(){return this.element.dataset.effects?this.element.dataset.effects.split(" "):[]},get effectsConfig(){if(this._effectsConfig)return this._effectsConfig;if(this.element.hasAttribute("data-effects-config"))try{return JSON.parse(this.element.getAttribute("data-effects-config"))}catch(e){}return{}},set effectsConfig(e){this._effectsConfig=e},get _clampedScrollTop(){return Math.max(0,this._scrollTop)},registerEffect:function(e,t){if(void 0!==this._scrollEffects[e])throw new Error("effect ".concat(e," is already registered."));this._scrollEffects[e]=t},isOnScreen:function(){return!1},isContentBelow:function(){return!1}
140,createEffect:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._scrollEffects[e];if(void 0===o()(n))throw new ReferenceError("Scroll effect ".concat(e," was not registered"));var i=this._boundEffect(n,t);return i.setUp(),i},_boundEffect:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=parseFloat(t.startsAt||0),i=parseFloat(t.endsAt||1),o=i-n,r=Function(),a=0===n&&1===i?e.run:function(t,i){e.run.call(this,Math.max(0,(t-n)/o),i)};return{setUp:e.setUp?e.setUp.bind(this,t):r,run:e.run?a.bind(this):r,tearDown:e.tearDown?e.tearDown.bind(this):r}},_setUpEffects:function(){var e=this;this._tearDownEffects(),this.effects.forEach(function(t){var n;(n=e._scrollEffects[t])&&e._effects.push(e._boundEffect(n,e.effectsConfig[t]))}),this._effects.forEach(function(t){!1!==t.setUp()&&e._effectsRunFn.push(t.run)})},_tearDownEffects:function(){this._effects.forEach(function(e){e.tearDown()}),this._effectsRunFn=[],this._effects=[]},_runEffects:function(e,t){this._effectsRunFn.forEach(function(n){return n(e,t)})},_scrollHandler:function(){this._updateScrollState(this._clampedScrollTop),this._loop()},_updateScrollState:function(){},_transform:function(e,t){t=t||this.element,r.util.transform(e,t)}}};n.d(t,"a",function(){return a})},function(e,t,n){"use strict";var i=n(34),o=n(19),r=n(27),a={};n(6)(a,n(0)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:o(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var i=n(9),o=n(40),r=n(21)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var i=n(3);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){var i=n(4),o=n(62).set;e.exports=function(e,t,n){var r,a=t.constructor;return a!==n&&"function"==typeof a&&(r=a.prototype)!==n.prototype&&i(r)&&o&&o(e,r),e}},function(e,t,n){var i=n(4),o=n(3),r=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(18)(Function.call,n(52).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return r(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:r}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var i=n(85),o=n(3),r=n(86),a=n(65),s=n(22),l=n(66),d=n(43),c=n(8),u=Math.min,h=[].push,f=!c(function(){RegExp(4294967295,"y")});n(67)("split",2,function(e,t,n,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!i(e))return n.call(o,e,t);for(var r,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=void 0===t?4294967295:t>>>0,p=new RegExp(e.source,c+"g");(r=d.call(p,o))&&!((a=p.lastIndex)>u&&(l.push(o.slice(u,r.index)),r.length>1&&r.index<o.length&&h.apply(l,r.slice(1)),s=r[0].length,u=a,l.length>=f));)p.lastIndex===r.index&&p.lastIndex++;return u===o.length?!s&&p.test("")||l.push(""):l.push(o.slice(u)),l.length>f?l.slice(0,f):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,i){var o=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,o,i):p.call(String(o),n,i)},function(e,t){var i=c(p,e,this,t,p!==n);if(i.done)return i.value;var d=o(e),h=String(this),m=r(d,RegExp),g=d.unicode,v=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(f?"y":"g"),y=new m(f?d:"^(?:"+d.source+")",v),_=void 0===t?4294967295:t>>>0;if(0===_)return[];if(0===h.length)return null===l(y,h)?[h]:[];for(var b=0,T=0,C=[];T<h.length;){y.lastIndex=f?T:0;var E,w=l(y,f?h:h.slice(T));
vendor: 1,283 bytes, line 140
140if(null===w||(E=u(s(y.lastIndex+(f?0:T)),h.length))===b)T=a(h,T,g);else{if(C.push(h.slice(b,T)),C.length===_)return C;for(var I=1;I<=w.length-1;I++)if(C.push(w[I]),C.length===_)return C;T=b=E}}return C.push(h.slice(b)),C}]})},function(e,t,n){"use strict";var i=n(50)(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},function(e,t,n){"use strict";var i=n(51),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";n(79);var i=n(10),o=n(6),r=n(8),a=n(11),s=n(0),l=n(43),d=s("species"),c=!r(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),u=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!r(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),p=f?!r(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={}
140,n.constructor[d]=function(){return n}),n[h](""),!t}):void 0;if(!f||!p||"replace"===e&&!c||"split"===e&&!u){var m=/./[h],g=n(a,h,""[e],function(e,t,n,i,o){return t.exec===l?f&&!o?{done:!0,value:m.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),v=g[0],y=g[1];i(String.prototype,e,v),o(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){"use strict";var i=n(50)(!0);n(33)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var i=n(10);e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},function(e){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var i=n(18),o=n(72),r=n(73),a=n(3),s=n(22),l=n(74),d={},c={};(t=e.exports=function(e,t,n,u,h){var f,p,m,g,v=h?function(){return e}:l(e),y=i(n,u,t?2:1),_=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(r(v)){for(f=s(e.length);f>_;_++)if((g=t?y(a(p=e[_])[0],p[1]):y(e[_]))===d||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=o(m,y,p.value,t))===d||g===c)return g}).BREAK=d,t.RETURN=c},function(e,t,n){var i=n(3);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(t){var r=e["return"];throw void 0!==r&&i(r.call(e)),t}}},function(e,t,n){var i=n(13),o=n(0)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},function(e,t,n){var i=n(51),o=n(0)("iterator"),r=n(13);e.exports=n(12).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){var i=n(16)("meta"),o=n(4),r=n(9),a=n(7).f,s=0,l=Object.isExtensible||function(){return!0},d=!n(8)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},u=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,i)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[i].i},getWeak:function(e,t){if(!r(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},onFreeze:function(e){return d&&u.NEED&&l(e)&&!r(e,i)&&c(e),e}}},function(e,t,n){var i=n(4);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var i=n(0)("iterator"),o=!1;try{var r=[7][i]();r["return"]=function(){o=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],a=r[i]();a.next=function(){return{done:n=!0}},r[i]=function(){return a},e(r)}catch(e){}return n}},function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(i){return"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?e.exports=n=function(e){return t(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},n(i)}e.exports=n},function(e,t,n){"use strict";var i=n(43);n(17)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(e,t,n){"use strict";n(104),n(28);var i=n(15),o=n.n(i),r={name:"fx-condenses",setUp:function(){var e=this,t=o()(this.element.querySelectorAll("[data-fx-condenses]")),n=o()(this.element.querySelectorAll("[data-fx-id]")),i={};t.forEach(function(t){if(t){t.style.willChange="transform",e._transform("translateZ(0)",t),"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block");var n=t.getAttribute("id");t.hasAttribute("id")||(n="rt"+(0|9e6*Math.random()).toString(36),t.setAttribute("id",n));var o=t.getBoundingClientRect();i[n]=o}}),n.forEach(function(t){if(t){var n=t.getAttribute("id"),o=t.getAttribute("data-fx-id"),r=e.element.querySelector("#".concat(o)),a=i[n],s=i[o],l=t.textContent.trim().length>0,d=1;void 0!==s&&(i[n].dx=a.left-s.left,i[n].dy=a.top-s.top,d=l?parseInt(window.getComputedStyle(r)["font-size"],
14010)/parseInt(window.getComputedStyle(t)["font-size"],10):s.height/a.height,i[n].scale=d)}}),this._fxCondenses={elements:t,targets:n,bounds:i}},run:function(e,t){var n=this,i=this._fxCondenses;this.condenses||(t=0),e>=1?i.elements.forEach(function(e){e&&(e.style.willChange="opacity",e.style.opacity=-1!==i.targets.indexOf(e)?0:1)}):i.elements.forEach(function(e){e&&(e.style.willChange="opacity",e.style.opacity=-1!==i.targets.indexOf(e)?1:0)}),i.targets.forEach(function(o){if(o){var r=o.getAttribute("id");!function(e,t,n,i){n.apply(i,t.map(function(t){return t[0]+(t[1]-t[0])*e}))}(Math.min(1,e),[[1,i.bounds[r].scale],[0,-i.bounds[r].dx],[t,t-i.bounds[r].dy]],function(e,t,i){o.style.willChange="transform",t=t.toFixed(5),i=i.toFixed(5),e=e.toFixed(5),n._transform("translate(".concat(t,"px, ").concat(i,"px) scale3d(").concat(e,", ").concat(e,", 1)"),o)})}})},tearDown:function(){delete this._fxCondenses}};n.d(t,"a",function(){return a});var a=[{name:"waterfall",setUp:function(){this._primary.classList.add("mdk-header--shadow")},run:function(){this._primary.classList[this.isOnScreen()&&this.isContentBelow()?"add":"remove"]("mdk-header--shadow-show")},tearDown:function(){this._primary.classList.remove("mdk-header--shadow")}},r]},function(e,t,n){"use strict";var i=n(35),o=function(e){var t={query:e,queryMatches:null,_reset:function(){this._removeListener(),this.queryMatches=null,this.query&&(this._mq=window.matchMedia(this.query),this._addListener(),this._handler(this._mq))},_handler:function(e){this.queryMatches=e.matches},_addListener:function(){this._mq&&this._mq.addListener(this._handler)},_removeListener:function(){this._mq&&this._mq.removeListener(this._handler),this._mq=null},init:function(){Object(i.watch)(this,"query",this._reset),this._reset()},destroy:function(){Object(i.unwatch)(this,"query",this._reset),this._removeListener()}};return t._reset=t._reset.bind(t),t._handler=t._handler.bind(t),t.init(),t};n.d(t,"a",function(){return o})},function(e,t,n){var i=n(7).f,o=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in o||n(2)&&i(o,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,n){"use strict";n(87)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";var i=n(1),o=n(9),r=n(20),a=n(61),s=n(25),l=n(8),d=n(92).f,c=n(52).f,u=n(7).f,h=n(93).trim,f=i.Number,p=f,m=f.prototype,g="Number"==r(n(34)(m)),v="trim"in String.prototype,y=function(e){var t=s(e,!1) 141;if("string"==typeof t&&t.length>2){var n,i,o,r=(t=v?t.trim():h(t,3)).charCodeAt(0);if(43===r||45===r){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===r){switch(t.charCodeAt(1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+t}for(var a,l=t.slice(2),d=0,c=l.length;d<c;d++)if((a=l.charCodeAt(d))<48||a>o)return NaN;return parseInt(l,i)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(g?l(function(){m.valueOf.call(n)}):"Number"!=r(n))?a(new p(y(t)),n,f):y(t)};for(var _,b=n(2)?d(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;b.length>T;T++)o(p,_=b[T])&&!o(f,_)&&u(f,_,c(p,_));f.prototype=m,m.constructor=f,n(10)(i,"Number",f)}},function(e,t,n){var i=n(4),o=n(20),r=n(0)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},function(e,t,n){var i=n(3),o=n(37),r=n(0)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||null==(n=i(a)[r])?t:o(n)}},function(e,t,n){var i=n(17),o=n(8),r=n(11),a=/"/g,s=function(e,t,n,i){var o=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(a,""")+'"'),s+">"+o+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),i(i.P+i.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";var i=n(89),o=n(76);e.exports=n(91)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return i.def(o(this,"Set"),e=0===e?0:e,e)}},i)},function(e,t,n){"use strict";var i=n(7).f,o=n(34),r=n(69),a=n(18),s=n(70),l=n(71),d=n(33),c=n(42),u=n(90),h=n(2),f=n(75).fastKey,p=n(76),m=h?"_s":"size",g=function(e,t){var n,i=f(t);if("F"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,d){var c=e(function(e,i){s(e,c,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,null!=i&&l(i,n,e[d],e)});return r(c.prototype,{clear:function(){for(var e=p(this,t),n=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];e._f=e._l=void 0,e[m]=0},"delete":function(e){var n=p(this,t),i=g(n,e);if(i){var o=i.n,r=i.p;delete n._i[i.i],i.r=!0,r&&(r.n=o),o&&(o.p=r),n._f==i&&(n._f=o),n._l==i&&(n._l=r),n[m]--}return!!i}
141,forEach:function(e){p(this,t);for(var n,i=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(p(this,t),e)}}),h&&i(c.prototype,"size",{get:function(){return p(this,t)[m]}}),c},def:function(e,t,n){var i,o,r=g(e,t);return r?r.v=n:(e._l=r={i:o=f(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=r),i&&(i.n=r),e[m]++,"F"!==o&&(e._i[o]=r)),e},getEntry:g,setStrong:function(e,t,n){d(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),u(t)}}},function(e,t,n){"use strict";var i=n(1),o=n(7),r=n(2),a=n(0)("species");e.exports=function(e){var t=i[e];r&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var i=n(1),o=n(17),r=n(10),a=n(69),s=n(75),l=n(71),d=n(70),c=n(4),u=n(8),h=n(77),f=n(27),p=n(61);e.exports=function(e,t,n,m,g,v){var y=i[e],_=y,b=g?"set":"add",T=_&&_.prototype,C={},E=function(e){var t=T[e];r(T,e,"delete"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof _&&(v||T.forEach&&!u(function(){(new _).entries().next()}))){var w=new _,I=w[b](v?{}:-0,1)!=w,D=u(function(){w.has(1)}),x=h(function(e){new _(e)}),O=!v&&u(function(){for(var e=new _,t=5;t--;)e[b](t,t);return!e.has(-0)});x||((_=t(function(t,n){d(t,_,e);var i=p(new y,t,_);return null!=n&&l(n,g,i[b],i),i})).prototype=T,T.constructor=_),(D||O)&&(E("delete"),E("has"),g&&E("get")),(O||I)&&E(b),v&&T.clear&&delete T.clear}else _=m.getConstructor(t,e,g,b),a(_.prototype,n),s.NEED=!0;return f(_,e),C[e]=_,o(o.G+o.W+o.F*(_!=y),C),v||m.setStrong(_,e,g),_}},function(e,t,n){var i=n(38),o=n(24).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},function(e,t,n){var i=n(17),o=n(11),r=n(8),a=n(94),s="["+a+"]",l=RegExp("^"+s+s+"*"),d=RegExp(s+s+"*$"),c=function(e,t,n){var o={},s=r(function(){return!!a[e]()||"\u200b\x85"!="\u200b\x85"[e]()}),l=o[e]=s?t(u):a[e];n&&(o[n]=l),i(i.P+i.F*s,"String",o)},u=c.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(d,"")),e};e.exports=c},function(e){e.exports="\t\n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e){e.exports=function(e,t){for(var n in t)(r=t[n]).configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(t),o=0;o<i.length;o++){var r,a=i[o];(r=t[a]).configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a,r)}return e}},function(){"function"!=typeof this.RetargetMouseScroll&&function(){var e=["DOMMouseScroll","mousewheel"];this.RetargetMouseScroll=function(t,n,i,o,r){t||(t=document),n||(n=window),"boolean"!=typeof i&&(i=!0),"function"!=typeof r&&(r=null);var a,s,l,d=function(e){e=e||window.event,r&&r.call(this,e)||function(e,t,n,i){n&&(e.preventDefault?e.preventDefault():event.returnValue=!1);var o=e.detail||-e.wheelDelta/40;o*=19,"number"!=typeof i||isNaN(i)||(o*=i),e.wheelDeltaX||"axis"in e&&"HORIZONTAL_AXIS"in e&&e.axis==e.HORIZONTAL_AXIS?t.scrollBy?t.scrollBy(o,0):t.scrollLeft+=o:t.scrollBy?t.scrollBy(0,o):t.scrollTop+=o}(e,n,i,o)};return(a=t.addEventListener)?(a.call(t,e[0],d,!1),a.call(t,e[1],d,!1)):(a=t.attachEvent)&&a.call(t,"on"+e[1],d),(s=t.removeEventListener)?l=function(){s.call(t,e[0],d,!1),s.call(t,e[1],d,!1)}:(s=t.detachEvent)&&(l=function(){s.call(t,"on"+e[1],d)}),{restore:l}}}.call(this)},function(e,t,n){"use strict";n.r(t);var i=n(95),o=n.n(i),r=n(36),a=n.n(r),s=(n(82),n(83),n(44)),l=n(54),d=n(5),c=n(96),u=n(53),h=n(80),f="mdk-header",p=".".concat(f,"__content"),m=".".concat(f,"__bg"),g="".concat(m,"-front"),v="".concat(m,"-rear"),y="".concat(f,"--fixed"),_=function(e){var t,n;return t={properties:{condenses:{type:Boolean,reflectToAttribute:!0},reveals:{type:Boolean,reflectToAttribute:!0},fixed:{type:Boolean,reflectToAttribute:!0},disabled:{type:Boolean,reflectToAttribute:!0},retargetMouseScroll:{type:Boolean,reflectToAttribute:!0,value:!0}},observers:["_handleFixedPositionedScroll(scrollTarget)","_reset(condenses, reveals, fixed)"],listeners:["window._debounceResize(resize)"],mixins:[Object(s.a)(e),Object(l.a)(e)],_height:0,_dHeight:0,_primaryTop:0,_primary:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get transformDisabled(){return this.disabled||this.element.dataset.transformDisabled||!this._isPositionedFixedEmulated||!this.willCondense()},set transformDisabled(e){this.element[e?"setAttribute":"removeAttribute"]("data-transform-disabled","data-transform-disabled")},get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _isPositionedFixedEmulated(){return this.fixed||this.condenses||this.reveals},get _isPositionedAbsolute(){return"absolute"===window.getComputedStyle(this.element).position},get _primaryisPositionedFixed(){return"fixed"===window.getComputedStyle(this._primary).position},willCondense:function(){return this._dHeight>0&&this.condenses},isOnScreen:function(){return 0!==this._height&&this._top<this._height},isContentBelow:function(){return 0===this._top?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0}
141,getScrollState:function(){return{progress:this._progress,top:this._top}},_setupBackgrounds:function(){var e=this.element.querySelector(m);e||(e=document.createElement("DIV"),this.element.insertBefore(e,this.element.childNodes[0]),e.classList.add(m.substr(1))),[g,v].map(function(t){var n=e.querySelector(t);n||(n=document.createElement("DIV"),e.appendChild(n),n.classList.add(t.substr(1)))})},_reset:function(){if(0!==this.element.offsetWidth||0!==this.element.offsetHeight){this._primaryisPositionedFixed&&(this.element.style.paddingTop=this._primary.offsetHeight+"px");var e=this._clampedScrollTop,t=0===this._height||0===e;this._height=this.element.offsetHeight,this._primaryTop=this._primary?this._primary.offsetTop:0,this._dHeight=0,this._mayMove()&&(this._dHeight=this._primary?this._height-this._primary.offsetHeight:0),this._setUpEffects(),this._updateScrollState(t?e:this._lastScrollTop,!0)}},_handleFixedPositionedScroll:function(){void 0!==this._fixedPositionedScrollHandler&&this._fixedPositionedScrollHandler.restore(),this._isValidScrollTarget()&&this._isPositionedFixedEmulated&&this.scrollTarget!==this._doc&&this.retargetMouseScroll&&(this._fixedPositionedScrollHandler=Object(c.RetargetMouseScroll)(this.element,this.scrollTarget))}},(n={})._primary=n._primary||{},n._primary.get=function(){if(this._primaryElement)return this._primaryElement;for(var e,t=this.element.querySelector(p).children,n=0;n<t.length;n++)if(t[n].nodeType===Node.ELEMENT_NODE){var i=t[n];if(void 0!==i.dataset.primary){e=i;break}e||(e=i)}return this._primaryElement=e,this._primaryElement},a()(t,"_updateScrollState",function(e,t){if(0!==this._height&&!this.disabled&&(t||e!==this._lastScrollTop)){var n=0,i=0,o=this._top,r=this._maxHeaderTop,a=e-this._lastScrollTop,s=Math.abs(a),l=e>this._lastScrollTop,d=Date.now();if(this._mayMove()&&(i=this._clamp(this.reveals?o+a:e,0,r)),e>=this._dHeight&&(i=this.condenses?Math.max(this._dHeight,i):i),this.reveals&&s<100&&((d-this._initTimestamp>300||this._wasScrollingDown!==l)&&(this._initScrollTop=e,this._initTimestamp=d),e>=r))if(Math.abs(this._initScrollTop-e)>30||s>10){l&&e>=r?i=r:!l&&e>=this._dHeight&&(i=this.condenses?this._dHeight:0);var c=a/(d-this._lastTimestamp);this._revealTransitionDuration=this._clamp((i-o)/c,0,300)}else i=this._top;n=0===this._dHeight?e>0?1:0:i/this._dHeight,t||(this._lastScrollTop=e,this._top=i,this._wasScrollingDown=l,this._lastTimestamp=d),(t||n!==this._progress||o!==i||0===e)&&(this._progress=n,this._runEffects(n,i),this._transformHeader(i))}}),a()(t,"_transformHeader",function(e){if(!this.transformDisabled){if(this._isPositionedAbsolute){var t=e;return this.scrollTarget===this._doc&&(t=0),e===t&&(this.element.style.willChange="transform",this._transform("translate3d(0, ".concat(-1*t,"px, 0)"))),void(e>=this._primaryTop&&(this._primary.style.willChange="transform",this._transform("translate3d(0, ".concat(Math.min(e,this._dHeight)-this._primaryTop,"px, 0)"),this._primary)))}if(this.fixed&&this._isPositionedFixed){var n=e;return this.element.style.willChange="transform",this._transform("translate3d(0, ".concat(-1*n,"px, 0)")),void(e>=this._primaryTop&&(this._primary.style.willChange="transform",this._transform("translate3d(0, ".concat(Math.min(e,this._dHeight)-this._primaryTop,"px, 0)"),this._primary)))}var i=0,o="".concat(this._revealTransitionDuration,"ms");e>this._dHeight&&(i=-1*(e-this._dHeight),this.reveals&&(o="0ms")),this.reveals&&(this._primary.style.transitionDuration=o),this._primary.style.willChange="transform",this._transform("translate3d(0, ".concat(i,"px, 0)"),this._primary)}}),a()(t,"_clamp",function(e,t,n){return Math.min(n,Math.max(t,e))}),a()(t,"_mayMove",function(){return this.condenses||!this.fixed}),a()(t,"_debounceResize",function(){var e=this;clearTimeout(this._onResizeTimeout),this._resizeWidth!==window.innerWidth&&(this._onResizeTimeout=setTimeout(function(){e._resizeWidth=window.innerWidth,e._reset()},50))}),a()(t,"init",function(){var e=this;this._resizeWidth=window.innerWidth,this.attachToScrollTarget(),this._handleFixedPositionedScroll(),this._setupBackgroun
141ds(),this._primary.setAttribute("data-primary","data-primary"),this._primary.classList[this.fixed||this.condenses?"add":"remove"](y),u.a.concat(h.a).map(function(t){return e.registerEffect(t.name,t)})}),a()(t,"destroy",function(){clearTimeout(this._onResizeTimeout),this.detachFromScrollTarget()}),o()(t,n),t};d.handler.register(f,_),n.d(t,"headerComponent",function(){return _})},function(e,t,n){"use strict";n.r(t),n(28);var i=n(15),o=n.n(i),r=(n(83),n(5)),a=function(){return{properties:{hasScrollingRegion:{type:Boolean,reflectToAttribute:!0},fullbleed:{type:Boolean,reflectToAttribute:!0}},observers:["_updateScroller(hasScrollingRegion)","_updateContentPosition(hasScrollingRegion, header.fixed, header.condenses)","_updateDocument(fullbleed)"],listeners:["window._debounceResize(resize)"],get contentContainer(){return this.element.querySelector(".mdk-header-layout__content")},get header(){var e=this.element.querySelector(".mdk-header");if(e)return e.mdkHeader},_updateScroller:function(){this.header.scrollTargetSelector=this.hasScrollingRegion?this.contentContainer:null},_updateContentPosition:function(){var e=this.header.element.offsetHeight,t=parseInt(window.getComputedStyle(this.header.element).marginBottom,10),n=this.contentContainer.style;(this.header.fixed||this.header.willCondense())&&(n.paddingTop="".concat(e+t,"px"),n.marginTop="")},_debounceResize:function(){var e=this;clearTimeout(this._onResizeTimeout),this._resizeWidth!==window.innerWidth&&(this._onResizeTimeout=setTimeout(function(){e._resizeWidth=window.innerWidth,e._reset()},50))},_updateDocument:function(){var e=o()(document.querySelectorAll("html, body"));this.fullbleed&&e.forEach(function(e){e.style.height="100%"})},_reset:function(){this._updateContentPosition()},init:function(){this._resizeWidth=window.innerWidth,this._updateDocument(),this._updateScroller()},destroy:function(){clearTimeout(this._onResizeTimeout)}}};r.handler.register("mdk-header-layout",a),n.d(t,"headerLayoutComponent",function(){return a})},function(e,t,n){"use strict";n.r(t),n(82);var i=n(44),o=n(54),r=n(5),a=n(53),s=".".concat("mdk-box","__bg"),l="".concat(s,"-front"),d="".concat(s,"-rear"),c=function(e){return{properties:{disabled:{type:Boolean,reflectToAttribute:!0}},listeners:["window._debounceResize(resize)"],mixins:[Object(i.a)(e),Object(o.a)(e)],_progress:0,isOnScreen:function(){return this._elementTop<this._scrollTop+this._scrollTargetHeight&&this._elementTop+this.element.offsetHeight>this._scrollTop},isVisible:function(){return this.element.offsetWidth>0&&this.element.offsetHeight>0},getScrollState:function(){return{progress:this._progress}},_setupBackgrounds:function(){var e=this.element.querySelector(s);e||(e=document.createElement("DIV"),this.element.insertBefore(e,this.element.childNodes[0]),e.classList.add(s.substr(1))),[l,d].map(function(t){var n=e.querySelector(t);n||(n=document.createElement("DIV"),e.appendChild(n),n.classList.add(t.substr(1)))})},_getElementTop:function(){for(var e=this.element,t=0;e&&e!==this.scrollTarget;)t+=e.offsetTop,e=e.offsetParent;return t},_updateScrollState:function(e){if(!this.disabled&&this.isOnScreen()){var t=Math.min(this._scrollTargetHeight,this._elementTop+this.element.offsetHeight),n=1-(this._elementTop-e+this.element.offsetHeight)/t;this._progress=n,this._runEffects(this._progress,e)}},_debounceResize:function(){var e=this;clearTimeout(this._onResizeTimeout),this._resizeWidth!==window.innerWidth&&(this._onResizeTimeout=setTimeout(function(){e._resizeWidth=window.innerWidth,e._reset()},50))},init:function(){var e=this;this._resizeWidth=window.innerWidth,this.attachToScrollTarget(),this._setupBackgrounds(),a.a.map(function(t){return e.registerEffect(t.name,t)})},_reset:function(){this._elementTop=this._getElementTop(),this._setUpEffects(),this._updateScrollState(this._clampedScrollTop)},destroy:function(){clearTimeout(this._onResizeTimeout),this.detachFromScrollTarget()}}};r.handler.register("mdk-box",c),n.d(t,"boxComponent",function(){return c})},function(e,t,n){"use strict";n.r(t);var i=n(5),o=function(){return{properties:{opened:{type:Boolean,reflectToAttribute:!0},persistent:{type:Boolean,reflectToAttribute:!0},align:{reflectToAttribute:!0,value:"start"},position:{reflectToAttribute:!0}},observers:["_resetPosition(align)","_fireChange(opened, persistent, align, position)","_onChangedState(_drawerState)","_onClose(opened)"],listeners:["_onTransitionend(transitionend)","scrim._onClickScrim(click)"],_drawerState:0,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3},get contentContainer(){return this.element.querySelector(".mdk-drawer__content")},get scrim(){var e=this.element.querySelector(".mdk-drawer__scrim");return e||(e=document.createElement("DIV"),this.element.insertBefore(e,this.element.childNodes[0]),e.classList.add("mdk-drawer__scrim")),e},getWidth:function(){return this.contentContainer.offsetWidth},toggle:function(){this.opened=!this.opened},close:function(){this.opened=!1},open:function(){this.opened=!0},_onClose:function(e){e||this.element.setAttribute("data-closing",!0)},_isRTL:function(){return"rtl"===window.getComputedStyle(this.element).direction},_setTransitionDuration:function(e){this.contentContainer.style.transitionDuration=e,this.scrim.style.transitionDuration=e},_resetDrawerState:function(){var e=this._drawerState;this.opened?this._drawerState=this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._drawerState=this._DRAWER_STATE.CLOSED,e!==this._drawerState&&(this.opened||this.element.removeAttribute("data-closing"),this._drawerState===this._DRAWER_STATE.OPENED?document.body.style.overflow="hidden":document.body.style.overflow="")},_resetPosition:function(){switch(this.align){case"start":return void(this.position=this._isRTL()?"right":"left");case"end":return void(this.position=this._isRTL()?"left":"right")}this.position=this.align},_fireChange:function(){this.fire("mdk-drawer-change")},_fireChanged:function(){this.fire("mdk-drawer-changed")},_onTransitionend:function(e){var t=e.target;t!==this.contentContainer&&t!==this.scrim||this._resetDrawerState()},_onClickScrim:function(e){e.preventDefault(),this.close()},_onChangedState:function(e,t){t!==this._DRAWER_STATE.INIT&&this._fireChanged()},init:function(){var e=this;this._resetPosition(),this._setTransitionDuration("0s"),setTimeout(function(){e._setTransitionDuration(""),e._resetDrawerState()},0)}}};i.handler.register("mdk-drawer",o),n.d(t,"drawerComponent",function(){return o}
141)},function(e,t,n){"use strict";n.r(t),n(28);var i=n(15),o=n.n(i),r=(n(68),n(106),n(108),n(81)),a=n(5);Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var s=function(){return{properties:{forceNarrow:{type:Boolean,reflectToAttribute:!0},responsiveWidth:{reflectToAttribute:!0,value:"554px"},hasScrollingRegion:{type:Boolean,reflectToAttribute:!0},fullbleed:{type:Boolean,reflectToAttribute:!0}},observers:["_resetLayout(narrow, forceNarrow)","_onQueryMatches(mediaQuery.queryMatches)","_updateScroller(hasScrollingRegion)","_updateDocument(fullbleed)"],listeners:["drawer._onDrawerChange(mdk-drawer-change)"],_narrow:null,_mediaQuery:null,get mediaQuery(){return this._mediaQuery||(this._mediaQuery=Object(r.a)(this.responsiveMediaQuery)),this._mediaQuery},get narrow(){return!!this.forceNarrow||this._narrow},set narrow(e){this._narrow=!(e||!this.forceNarrow)||e},get contentContainer(){return this.element.querySelector(".mdk-drawer-layout__content")},get drawerNode(){var e;try{e=Array.from(this.element.children).find(function(e){return e.matches(".mdk-drawer")})}catch(e){console.error(e.message,e.stack)}if(e)return e},get drawer(){if(this.drawerNode)return this.drawerNode.mdkDrawer},get responsiveMediaQuery(){return this.forceNarrow?"(min-width: 0px)":"(max-width: ".concat(this.responsiveWidth,")")},_updateDocument:function(){var e=o()(document.querySelectorAll("html, body"));this.fullbleed&&e.forEach(function(e){e.style.height="100%"})},_updateScroller:function(){var e=o()(document.querySelectorAll("html, body"));this.hasScrollingRegion&&e.forEach(function(e){e.style.overflow="hidden",e.style.position="relative"})},_resetLayout:function(){this.drawer.opened=this.drawer.persistent=!this.narrow,this._onDrawerChange()},_resetPush:function(){var e=this.drawer,t=(this.drawer.getWidth(),this.contentContainer);if(e._isRTL(),e.opened)a.util.transform("translate3d(0, 0, 0)",t);else{var n=(this.element.offsetWidth-t.offsetWidth)/2;n="right"===e.position?n:-1*n,a.util.transform("translate3d(".concat(n,"px, 0, 0)"),t)}},_setContentTransitionDuration:function(e){this.contentContainer.style.transitionDuration=e},_onDrawerChange:function(){this._resetPush()},_onQueryMatches:function(e){this.narrow=e},init:function(){var e=this;this._setContentTransitionDuration("0s"),setTimeout(function(){return e._setContentTransitionDuration("")},0),this._updateDocument(),this._updateScroller(),this.drawerNode&&this.mediaQuery.init()},destroy:function(){this.mediaQuery.destroy()}}};a.handler.register("mdk-drawer-layout",s),n.d(t,"drawerLayoutComponent",function(){return s})},function(e,t,n){"use strict";n.r(t),n(84);var i=n(5),o=function(){return{properties:{partialHeight:{reflectToAttribute:!0,type:Number,value:0},forceReveal:{type:Boolean,reflectToAttribute:!0},trigger:{value:"click",reflectToAttribute:!0},opened:{type:Boolean,reflectToAttribute:!0}},observers:["_onChange(opened)"],listeners:["_onEnter(mouseenter, touchstart)","_onLeave(mouseleave, touchend)","window._debounceResize(resize)","_onClick(click)"],get reveal(){return this.element.querySelector(".mdk-reveal__content")},get partial(){var e=this.reveal.querySelector(".mdk-reveal__partial");return e||((e=document.createElement("DIV")).classList.add("mdk-reveal__partial"),this.reveal.insertBefore(e,this.reveal.childNodes[0])),e},open:function(){this.opened=!0},close:function(){this.opened=!1},toggle:function(){this.opened=!this.opened},_reset:function(){this._translate="translateY("+-1*(this.reveal.offsetHeight-this.partialHeight)+"px)",0!==this.partialHeight&&(this.partial.style.height=this.partialHeight+"px"),this.element.style.height=this.reveal.offsetTop+this.partialHeight+"px",this.forceReveal&&!this.opened&&this.open()},_onChange:function(){i.util.transform(this.opened?this._translate:"translateY(0)",this.reveal)},_onEnter:function(){"hover"!==this.trigger||this.forceReveal||this.open()},_onClick:function(){"click"===this.trigger&&this.toggle()},_onLeave:function(){"hover"!==this.trigger||this.forceReveal||this.close()},_debounceResize:function(){var e=this;clearTimeout(this._debounceResizeTimer),this._debounceResizeTimer=setTimeout(function(){e._resizeWidth!==window.innerWidth&&(e._resizeWidth=window.innerWidth,e._reset())},50)},init:function(){this._resizeWidth=window.innerWidth},destroy:function(){clearTimeout(this._debounceResizeTimer)}}};i.handler.register("mdk-reveal",o),n.d(t,"revealComponent",function(){return o}
141)},function(e,t,n){"use strict";n.r(t),n(28);var i=n(15),o=n.n(i),r=(n(84),n(113),n(5)),a=function(e){var t=window.getComputedStyle(e,null);return function(e){"none"===e&&(e="matrix(0,0,0,0,0)");var t={},n=e.match(/([-+]?[\d\.]+)/g);return t.translate={x:parseInt(n[4],10)||0,y:parseInt(n[5],10)||0},t}(t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform"))},s=function(e){return{x:(e=(e=e.originalEvent||e||window.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?e.pageX:e.clientX,y:e.pageY?e.pageY:e.clientY}},l=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},d=function(){return{properties:{autoStart:{type:Boolean,reflectToAttribute:!0},interval:{type:Number,reflectToAttribute:!0,value:3e3}},listeners:["_onEnter(mouseenter)","_onLeave(mouseleave)","_onTransitionend(transitionend)","_onDragStart(mousedown, touchstart)","_onMouseDrag(dragstart, selectstart)","document._onDragMove(mousemove, touchmove)","document._onDragEnd(mouseup, touchend)","window._debounceResize(resize)"],_items:[],_isMoving:!1,_content:null,_current:null,_drag:{},_reset:function(){this._content=this.element.querySelector(".mdk-carousel__content"),this._items=o()(this._content.children),this._content.style.width="",this._items.forEach(function(e){e.style.width=""});var e=this.element.offsetWidth,t=this._items[0].offsetWidth,n=e/t;if(this._itemWidth=t,this._visible=Math.round(n),this._max=this._items.length-this._visible,this.element.style.overflow="hidden",this._content.style.width=t*this._items.length+"px",this._items.forEach(function(e){e.classList.add("mdk-carousel__item"),e.style.width=t+"px"}),this._current||(this._current=this._items[0]),!(this._items.length<2)){var i=this._items.indexOf(this._current);this._transform(i*t*-1,0),this.autoStart&&this.start()}},start:function(){this.stop(),this._items.length<2||this._items.length<=this._visible||(this._setContentTransitionDuration(""),this._interval=setInterval(this.next.bind(this),this.interval))},stop:function(){clearInterval(this._interval),this._interval=null},next:function(){if(!(this._items.length<2||this._isMoving||document.hidden)&&this._isOnScreen()){var e=this._items.indexOf(this._current),t=void 0!==this._items[e+1]?e+1:0;this._items.length-e===this._visible&&(t=0),this._to(t)}},prev:function(){if(!(this._items.length<2||this._isMoving)){var e=this._items.indexOf(this._current),t=void 0!==this._items[e-1]?e-1:this._items.length;this._to(t)}},_transform:function(e,t,n){void 0!==t&&this._setContentTransitionDuration(t+"ms"),a(this._content).translate.x===e?"function"==typeof n&&n.call(this):requestAnimationFrame(function(){0!==t&&(this._isMoving=!0),r.util.transform("translate3d("+e+"px, 0, 0)",this._content),"function"==typeof n&&n.call(this)}.bind(this))},_to:function(e){if(!(this._items.length<2||this._isMoving)){e>this._max&&(e=this._max),e<0&&(e=0);var t=e*this._itemWidth*-1;this._transform(t,!1,function(){this._current=this._items[e]})}},_debounceResize:function(){clearTimeout(this._resizeTimer),this._resizeWidth!==window.innerWidth&&(this._resizeTimer=setTimeout(function(){this._resizeWidth=window.innerWidth,this.stop(),this._reset()}.bind(this),50))},_setContentTransitionDuration:function(e){this._content.style.transitionDuration=e},_onEnter:function(){this.stop()},_onLeave:function(){!this._drag.wasDragging&&this.autoStart&&this.start()},_onTransitionend:function(){this._isMoving=!1},_onDragStart:function(e){if(!this._drag.isDragging&&!this._isMoving&&3!==e.which){this.stop();var t=a(this._content).translate;this._drag.isDragging=!0,this._drag.isScrolling=!1,this._drag.time=(new Date).getTime(),this._drag.start=t,this._drag.current=t,this._drag.delta={x:0,y:0},this._drag.pointer=s(e),this._drag.target=e.target}},_onDragMove:function(e){if(this._drag.isDragging){var t=l(this._drag.pointer,s(e)),n=l(this._drag.start,t),i="ontouchstart"in window&&Math.abs(t.x)<Math.abs(t.y);i||(e.preventDefault(),this._transform(n.x,0)),this._drag.delta=t,this._drag.current=n,this._drag.isScrolling=i,this._drag.target=e.target}},_onDragEnd:function(){if(this._drag.isDragging){this._setContentTransitionDuration(""),this._drag.duration=(new Date).getTime()-this._drag.time;var e=Math.abs(this._drag.delta.x),t=e>20||e>this._itemWidth/3,n=Math.max(Math.round(e/this._itemWidth),1),i=this._drag.delta.x>0;if(t){var o=this._items.indexOf(this._current),r=i?o+n:o-n;this._to(r)}else this._transform(this._drag.start.x);this._drag.isDragging=!1,this._drag.wasDragging=!0}},_onMouseDrag:function(e){e.preventDefault(),e.stopPropagation()},_isOnScreen:function(){var e=this.element.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=window.innerHeight&&e.right<=window.innerWidth},init:function(){this._resizeWidth=window.innerWidth,this._reset()},destroy:function(){this.stop(),clearTimeout(this._resizeTimer)}}};r.handler.register("mdk-carousel",d),n.d(t,"carouselComponent",function(){return d})},function(e,t,n){"use strict";n(105);var i=n(3),o=n(57),r=n(2),a=/./.toString,s=function(e){n(10)(RegExp.prototype,"toString",e,!0)};
141n(8)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?o.call(e):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(e,t,n){n(2)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(57)})},function(e,t,n){"use strict";var i=n(18),o=n(17),r=n(40),a=n(72),s=n(73),l=n(22),d=n(107),c=n(74);o(o.S+o.F*!n(77)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,u,h=r(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(h);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),null==y||f==Array&&s(y))for(n=new f(t=l(h.length));t>v;v++)d(n,v,g?m(h[v],v):h[v]);else for(u=y.call(h),n=new f;!(o=u.next()).done;v++)d(n,v,g?a(u,m,[o.value,v],!0):o.value);return n.length=v,n}})},function(e,t,n){"use strict";var i=n(7),o=n(19);e.exports=function(e,t,n){t in e?i.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){"use strict";var i=n(17),o=n(109)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),i(i.P+i.F*r,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(45)("find")},function(e,t,n){var i=n(18),o=n(39),r=n(40),a=n(22),s=n(110);e.exports=function(e,t){var n=1==e,l=2==e,d=3==e,c=4==e,u=6==e,h=5==e||u,f=t||s;return function(t,s,p){for(var m,g,v=r(t),y=o(v),_=i(s,p,3),b=a(y.length),T=0,C=n?f(t,b):l?f(t,0):void 0;b>T;T++)if((h||T in y)&&(g=_(m=y[T],T,v),e))if(n)C[T]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return T;case 2:C.push(m)}else if(c)return!1;return u?-1:d||c?c:C}}},function(e,t,n){var i=n(111);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(4),o=n(112),r=n(0)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(20);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){"use strict";var i=n(3),o=n(22),r=n(65),a=n(66);n(67)("match",1,function(e,t,n,s){return[function(n){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=i(e),d=String(this);if(!l.global)return a(l,d);var c=l.unicode;l.lastIndex=0;for(var u,h=[],f=0;null!==(u=a(l,d));){var p=String(u[0]);h[f]=p,""===p&&(l.lastIndex=r(d,o(l.lastIndex),c)),f++}return 0===f?null:h}]})},,,function(e,t,n){e.exports=n(124)},,,,,,,,function(e,t,n){"use strict";n.r(t);var i=n(44),o=n(54),r=n(97),a=n(98),s=n(99),l=n(100),d=n(101),c=n(102),u=n(103),h=n(5),f=function(e){return{properties:{"for":{readOnly:!0,value:function(){var e=this.element.getAttribute("data-for");return document.querySelector("#"+e)}},position:{reflectToAttribute:!0,value:"bottom"},opened:{type:Boolean,reflectToAttribute:!0}},listeners:["for.show(mouseenter, touchstart)","for.hide(mouseleave, touchend)","window._debounceResize(resize)"],observers:["_reset(position)"],mixins:[Object(i.a)(e)],get drawerLayout(){var e=document.querySelector(".mdk-js-drawer-layout");if(e)return e.mdkDrawerLayout},_reset:function(){this.element.removeAttribute("style");var e=this["for"].getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2,i=this.element.offsetWidth/2*-1,o=this.element.offsetHeight/2*-1;"left"===this.position||"right"===this.position?n+o<0?(this.element.style.top="0",this.element.style.marginTop="0"):(this.element.style.top=n+"px",this.element.style.marginTop=o+"px"):t+i<0?(this.element.style.left="0",this.element.style.marginLeft="0"):(this.element.style.left=t+"px",this.element.style.marginLeft=i+"px"),"top"===this.position?this.element.style.top=e.top-this.element.offsetHeight-10+"px":"right"===this.position?this.element.style.left=e.left+e.width+10+"px":"left"===this.position?this.element.style.left=e.left-this.element.offsetWidth-10+"px":this.element.style.top=e.top+e.height+10+"px"},_debounceResize:function(){var e=this;clearTimeout(this._debounceResizeTimer),this._debounceResizeTimer=setTimeout(function(){window.innerWidth!==e._debounceResizeWidth&&(e._debounceResizeWidth=window.innerWidth,e._reset())},50)},_scrollHandler:function(){clearTimeout(this._debounceScrollTimer), 142this._debounceScrollTimer=setTimeout(this._reset.bind(this),50)},show:function(){this.opened=!0},hide:function(){this.opened=!1},toggle:function(){this.opened=!this.opened},init:function(){document.body.appendChild(this.element),this._debounceResizeWidth=window.innerWidth,this.attachToScrollTarget(),this._reset(),this.drawerLayout&&this.drawerLayout.hasScrollingRegion&&(this.scrollTargetSelector=this.drawerLayout.contentContainer)},destroy:function(){clearTimeout(this._debounceResizeTimer),clearTimeout(this._debounceScrollTimer),this.detachFromScrollTarget()}}};h.handler.register("mdk-tooltip",f);var p=n(53),m=n(80),g=n(81);n.d(t,"scrollTargetBehavior",function(){return i.a}),n.d(t,"scrollEffectBehavior",function(){return o.a}),n.d(t,"headerComponent",function(){return r.headerComponent}),n.d(t,"headerLayoutComponent",function(){return a.headerLayoutComponent}),n.d(t,"boxComponent",function(){return s.boxComponent}),n.d(t,"drawerComponent",function(){return l.drawerComponent}
142),n.d(t,"drawerLayoutComponent",function(){return d.drawerLayoutComponent}),n.d(t,"revealComponent",function(){return c.revealComponent}),n.d(t,"carouselComponent",function(){return u.carouselComponent}),n.d(t,"tooltipComponent",function(){return f}),n.d(t,"SCROLL_EFFECTS",function(){return p.a}),n.d(t,"HEADER_SCROLL_EFFECTS",function(){return m.a}),n.d(t,"mediaQuery",function(){return g.a})}])}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dom-factory")):"function"==typeof define&&define.amd?define(["dom-factory"],t):"object"==typeof exports?exports.fixFooter=t(require("dom-factory")):e.fixFooter=t(e.domFactory)}(this,function(e){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.footerComponent=void 0,n(1);var i=n(2),o=t.footerComponent=function(e){return{element:e,_reset:function(){this.element.style.opacity=1;var e=this.element.offsetTop,t=e+this.element.offsetHeight,n="fixed"===window.getComputedStyle(this.element).position&&e<document.documentElement.offsetHeight;this.element.classList[t<=window.innerHeight&&!n?"add":"remove"]("fix-footer--fi
142xed")},_debounceResize:function(){clearTimeout(this._debounceResizeTimer),this._debounceResizeTimer=setTimeout(function(){this._resizeHeight!==window.innerHeight&&(this._resizeHeight=window.innerHeight,this._reset())}.bind(this),50)},init:function(){this._debounceResize=this._debounceResize.bind(this),window.addEventListener("load",function(){this._reset(),this._resizeHeight=window.innerHeight,window.addEventListener("resize",this._debounceResize)}.bind(this))},destroy:function(){clearTimeout(this._debounceResizeTimer),window.removeEventListener("resize",this._debounceResize)}}};i.handler.register("fix-footer",o)},function(){},function(t){t.exports=e}])}),("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)})(["jquery"],function(e){return function(){function t(e,t,n){return p({type:T.error,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=m()),(v=e("#"+t.containerId)).length?v:(n&&(v=u(t)),v)}function i(e,t,n){return p({type:T.info,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})}function o(e){y=e}function r(e,t,n){return p({type:T.success,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})}function a(e,t,n){return p({type:T.warning,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}function s(e,t){var i=m();v||n(i),c(e,i,t)||d(i)}function l(t){var i=m();return v||n(i),t&&0===e(":focus",t).length?void g(t):void(v.children().length&&v.remove())}function d(t){for(var n=v.children(),i=n.length-1;i>=0;i--)c(e(n[i]),t)}function c(t,n,i){var o=!(!i||!i.force)&&i.force;return!(!t||!o&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){g(t)}}),0))}function u(t){return(v=e("<div/>").attr("id",t.containerId).addClass(t.positionClass)).appendTo(e(t.target)),v}function h(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function f(e){y&&y(e)}function p(t){function i(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function o(){l(),c(),u(),h(),p(),y(),d(),r()}function r(){var e="";switch(t.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}k.attr("aria-live",e)}function a(){D.closeOnHover&&k.hover(w,E),!D.onclick&&D.tapToDismiss&&k.click(C),D.closeButton&&A&&A.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),D.onCloseClick&&D.onCloseClick(e),C(!0)}),D.onclick&&k.click(function(e){D.onclick(e),C()})}function s(){k.hide(),k[D.showMethod]({duration:D.showDuration,easing:D.showEasing,complete:D.onShown}),D.timeOut>0&&(O=setTimeout(C,D.timeOut),K.maxHideTime=parseFloat(D.timeOut),K.hideEta=(new Date).getTime()+K.maxHideTime,D.progressBar&&(K.intervalId=setInterval(I,10)))}function l(){t.iconClass&&k.addClass(D.toastClass).addClass(x)}function d(){D.newestOnTop?v.prepend(k):v.append(k)}function c(){if(t.title){var e=t.title;D.escapeHtml&&(e=i(t.title)),S.append(e).addClass(D.titleClass),k.append(S)}}function u(){if(t.message){var e=t.message;D.escapeHtml&&(e=i(t.message)),R.append(e).addClass(D.messageClass),k.append(R)}}function h(){D.closeButton&&(A.addClass(D.closeClass).attr("role","button"),k.prepend(A))}function p(){D.progressBar&&($.addClass(D.progressClass),k.prepend($))}function y(){D.rtl&&k.addClass("rtl")}function T(e,t){if(e.preventDuplicates){if(t.message===_)return!0;_=t.message}return!1}function C(t){var n=t&&!1!==D.closeMethod?D.closeMethod:D.hideMethod,i=t&&!1!==D.closeDuration?D.closeDuration:D.hideDuration,o=t&&!1!==D.closeEasing?D.closeEasing:D.hideEasing;if(!e(":focus",k).length||t)return clearTimeout(K.intervalId),k[n]({duration:i,easing:o,complete:function(){g(k),clearTimeout(O),D.onHidden&&"hidden"
142!==N.state&&D.onHidden(),N.state="hidden",N.endTime=new Date,f(N)}})}function E(){(D.timeOut>0||D.extendedTimeOut>0)&&(O=setTimeout(C,D.extendedTimeOut),K.maxHideTime=parseFloat(D.extendedTimeOut),K.hideEta=(new Date).getTime()+K.maxHideTime)}function w(){clearTimeout(O),K.hideEta=0,k.stop(!0,!0)[D.showMethod]({duration:D.showDuration,easing:D.showEasing})}function I(){var e=(K.hideEta-(new Date).getTime())/K.maxHideTime*100;$.width(e+"%")}var D=m(),x=t.iconClass||D.iconClass;if("undefined"!=typeof t.optionsOverride&&(D=e.extend(D,t.optionsOverride),x=t.optionsOverride.iconClass||x),!T(D,t)){b++,v=n(D,!0);var O=null,k=e("<div/>"),S=e("<div/>"),R=e("<div/>"),$=e("<div/>"),A=e(D.closeHtml),K={intervalId:null,hideEta:null,maxHideTime:null},N={toastId:b,state:"visible",startTime:new Date,options:D,map:t};return o(),s(),a(),f(N),D.debug&&console&&console.log(N),k}}function m(){return e.extend({},h(),C.options)}function g(e){v||(v=n()),e.is(":visible")||(e.remove(),e=null,0===v.children().length&&(v.remove(),_=void 0))}var v,y,_,b=0,T={error:"error",info:"info",success:"success",warning:"warning"},C={clear:s,remove:l,error:t,getContainer:n,info:i,options:{},subscribe:o,success:r,version:"2.1.4",warning:a};return C}()}),function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=451)}({1135:function(e,t,n){"use strict";n.r(t),n(452)},451:function(e,t,n){e.exports=n(1135)},452:function(){!function(){"use strict";toastr.primary=function(e,t,n){return this.success(e,t,$.extend({iconClass:"toast-primary"},n))},$('[data-toggle="toastr"]').on("click",function(e){e.preventDefault();var t=$(this),n=t.data("toastr-type")||"success",i=t.data("toastr-message"),o=t.data("toastr-title"),r={closeButton:void 0!==t.data("toastr-close-button")&&t.data("toastr-close-button"),debug:!1,newestOnTop:void 0===t.data("toastr-newest-on-top")||t.data("toastr-newest-on-top"),progressBar:void 0===t.data("toastr-progress-bar")||t.data("toastr-progress-bar"),positionClass:void 0!==t.data("toastr-position-class")?t.data("toastr-position-class"):"toast-top-right",preventDuplicates:void 0!==t.data("toastr-prevent-duplicates")&&t.data("toastr-prevent-duplicates"),onclick:null,showDuration:void 0!==t.data("toastr-show-duration")?t.data("toastr-show-duration"):300,hideDuration:void 0!==t.data("toastr-hide-duration")?t.data("toastr-hide-duration"):1e3,timeOut:void 0!==t.data("toastr-time-out")?t.data("toastr-time-out"):5e3,extendedTimeOut:void 0!==t.data("toastr-extended-time-out")?t.data("toastr-extended-time-out"):1e3,showEasing:void 0!==t.data("toastr-show-easing")?t.data("toastr-show-easing"):"swing",hideEasing:void 0!==t.data("toastr-hide-easing")?t.data("toastr-hide-easing"):"linear",showMethod:void 0!==t.data("toastr-show-method")?t.data("toastr-show-method"):"fadeIn",hideMethod:void 0!==t.data("toastr-hide-method")?t.data("toastr-hide-method"):"fadeOut"};toastr[n](i,o,r)})}()}}),window.showLumaTheme=function(){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t={0:function(e,t,n){var i=n(18)("wks"),o=n(14),r=n(1).Symbol,a="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:o)("Symbol."+e))}).store=i},1:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},10:function(e,t,n){var i=n(1),o=n(9),r=n(6),a=n(8),s=n(19),l=function(e,t,n){var d,c,u,h,f=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=p?i:m?i[t]||(i[t]={}):(i[t]||{}).prototype,_=p?o:o[t]||(o[t]={}),b=_.prototype||(_.prototype={});for(d in p&&(n=t),n)u=((c=!f&&y&&void 0!==y[d])?y:n)[d],h=v&&c?s(u,i):g&&"function"==typeof u?s(Function.call,u):u,y&&a(y,d,u,e&l.U),_[d]!=u&&r(_,d,h),g&&b[d]!=u&&(b[d]=u)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},11:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},1120:function(e,t,n){"use strict";n.r(t),n(121),n(122),n(123),n(124),n(157),n(158),n(159),n(125),$('[data-toggle="tab"]').on("hide.bs.tab",function(e){$(e.target).removeClass("active")}),n(126),n(117),n(127)},117:function(){domFactory.handler.register("accordion",function(){return{_onShow:function(e){$(e.target).hasClass("accordion__menu")&&$(e.target).closest(".accordion__item").addClass("open")},_onHide:function(e){$(e.target).hasClass("accordion__menu")&&$(e.target).closest(".accordion__item").removeClass("open")},init:function(){$(this.element).on("show.bs.collapse",this._onShow),$(this.element).on("hide.bs.collapse",this._onHide)},destroy:function(){$(this.element).off("show.bs.collapse",this._onShow),$(this.element).off("hide.bs.collapse",this._onHide)}}})},12:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},121:function(){!function(){"use strict";domFactory.handler.autoInit(),$('[data-toggle="tooltip"]').tooltip()}()},122:function(){!function(){"use strict";
142$("[data-perfect-scrollbar]").each(function(){var e=$(this),t=new PerfectScrollbar(this,{wheelPropagation:void 0!==e.data("perfect-scrollbar-wheel-propagation")&&e.data("perfect-scrollbar-wheel-propagation"),suppressScrollY:void 0!==e.data("perfect-scrollbar-suppress-scroll-y")&&e.data("perfect-scrollbar-suppress-scroll-y"),swipeEasing:!1});Object.defineProperty(this,"PerfectScrollbar",{configurable:!0,writable:!1,value:t})})}()},123:function(){!function(){"use strict";window.addEventListener("load",function(){$(".preloader").fadeOut(),domFactory.handler.upgradeAll()})}()},124:function(e,t,n){n(58),function(){"use strict";var e=document.querySelectorAll('[data-toggle="sidebar"]');(e=Array.prototype.slice.call(e)).forEach(function(e){e.addEventListener("click",function(e){var t=e.currentTarget.getAttribute("data-target")||"#default-drawer",n=document.querySelector(t);n&&n.mdkDrawer.toggle()})});var t=document.querySelectorAll(".mdk-drawer");(t=Array.prototype.slice.call(t)).forEach(function(e){e.addEventListener("mdk-drawer-change",function(e){if(e.target.mdkDrawer){document.querySelector("body").classList[e.target.mdkDrawer.opened?"add":"remove"]("has-drawer-opened");var t=document.querySelector('[data-target="#'+e.target.id+'"]');t&&t.classList[e.target.mdkDrawer.opened?"add":"remove"]("active")}})}),$(".sidebar .collapse").on("show.bs.collapse",function(e){e.stopPropagation(),$(this).parent().closest("ul").find(".open").find(".collapse").not(this).collapse("hide"),$(this).closest("li").addClass("open")}),$(".sidebar .collapse").on("hidden.bs.collapse",function(e){e.stopPropagation(),$(this).closest("li").removeClass("open")})}()},125:function(){domFactory.handler.register("mdk-carousel-control",function(){return{properties:{slide:{reflectToAttribute:!0,value:"next"}},listeners:["_onClick(click)"],_onClick:function(e){e.preventDefault();var t=document.querySelector(this.element.getAttribute("href"));t&&t.mdkCarousel[this.slide]()}}})},126:function(){domFactory.handler.register("image",function(){return{properties:{position:{reflectToAttribute:!0,value:"center"},height:{reflectToAttribute:!0,value:"auto"}},get image(){return this.element.querySelector("img")},_reset:function(){this.image&&(this.element.style.display="block",this.element.style.position="relative",this.element.style.overflow="hidden",this.element.style.backgroundImage="url(".concat(this.image.src,")"),this.element.style.backgroundSize="cover",this.element.style.backgroundPosition=this.position,this.element.style.height="".concat("auto"===this.height?this.image.offsetHeight:this.height,"px"),this.element.removeChild(this.image))}}})},127:function(){domFactory.handler.register("player",function(){return{listeners:["button.play(click)"],get button(){return this.element.querySelector(".player__content")},play:function(e){e.preventDefault(),this.element.querySelector(".player__embed").classList.remove("d-none"),this.element.querySelector(".player__embed iframe").src+="&autoplay=1"}}})},13:function(e,t,n){var i=n(17),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},14:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},15:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},156:function(e,t,n){e.exports=n(1120)},157:function(){!function(){"use strict";$('.dropdown[data-toggle="tooltip"]').on("shown.bs.dropdown",function(e){$(e.target).tooltip("hide").tooltip("disable")}).on("hide.bs.dropdown",function(e){$(e.target).tooltip("enable")})}()},158:function(){!function(){"use strict";function e(){this.mdkReveal&&this.mdkReveal.close(),this.overlay&&this.overlay.hide()}$("body").on("shown.bs.popover",function(e){$(e.target).data("bs.popover")._activeTrigger.click=!0}),$("body").on("hidden.bs.popover",function(e){$(e.target).data("bs.popover")._activeTrigger.click=!1});var t="body";t=document.querySelector(".mdk-drawer-layout__content")?".mdk-drawer-layout__content":t,t=document.querySelector(".mdk-header-layout__content")?".mdk-header-layout__content":t;var n={trigger:"click",html:!0,container:t=document.querySelector(".mdk-drawer-layout__content .mdk-drawer-layout__content")?".mdk-drawer-layout__content .mdk-drawer-layout__content":t,content:function(){return $(this).next(".popoverContainer").html()},template:'<div class="popover popover-lg" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},i=".".concat("bs.popover"),o={CLICK:"click".concat(i),CLICK_DATA_API:"click".concat(i).c
142oncat(".data-api"),KEYUP_DATA_API:"keyup".concat(i).concat(".data-api")};$(document).on("".concat(o.CLICK_DATA_API," ").concat(o.KEYUP_DATA_API),function(t){t&&(3===t.which||"keyup"===t.type&&9!==t.which)||$('[data-toggle="popover"][data-trigger="click"]').popover("hide").each(e)}),$('[data-toggle="popover"][data-trigger="click"]').popover(n).click(function(t){t.preventDefault(),t.stopPropagation(),$('[data-toggle="popover"]').not(this).popover("hide").each(e)}),$('[data-toggle="popover"][data-trigger="hover"]').popover(n).on("mouseenter",function(){var e=this;$(this).popover("show"),$(".popover").on("mouseleave",function(){$(e).popover("hide")})}).on("mouseleave",function(){var e=this;setTimeout(function(){$(".popover:hover").length||$(e).popover("hide")},300)});var r=$('[data-toggle="popover"][data-popover-onload-show]');r.popover("show"),window.addEventListener("load",function(){r.popover("update")})}()},159:function(){domFactory.handler.register("overlay",function(){return{properties:{overlayOnloadShow:{type:Boolean,reflectToAttribute:!0},trigger:{value:"hover",reflectToAttribute:!0}},observers:["_onChange(shown)"],listeners:["_onEnter(mouseenter, touchstart)","_onLeave(mouseleave, touchend)","_onClick(click)"],show:function(){this.shown=!0},hide:function(){this.shown=!1},toggle:function(){this.shown=!this.shown},_onChange:function(){if(this.shown)return this.element.classList.add("overlay--show");this.element.classList.remove("overlay--show")},_onEnter:function(){"hover"===this.trigger&&this.show()},_onLeave:function(){"hover"===this.trigger&&this.hide()},_onClick:function(){"click"===this.trigger&&this.toggle()},init:function(){"ontouchstart"in window&&this.element.classList.add("overlay--duserselect")},_reset:function(){this.overlayOnloadShow&&!this.shown&&this.show()}}})},16:function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},17:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},18:function(e,t,n){var i=n(9),o=n(1),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(21)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},19:function(e,t,n){var i=n(24);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},2:function(e,t,n){e.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},20:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},21:function(e){e.exports=!1},22:function(e,t,n){var i=n(3);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},24:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},25:function(e,t,n){var i=n(3),o=n(1).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},29:function(e,t,n){e.exports=!n(2)&&!n(5)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},3:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},32:function(e,t,n){var i=n(15);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},36:function(e,t,n){e.exports=n(18)("native-function-to-string",Function.toString)},37:function(e,t,n){var i=n(0)("unscopables"),o=Array.prototype;null==o[i]&&n(6)(o,i,{}),e.exports=function(e){o[i][e]=!0}},4:function(e,t,n){var i=n(3);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},5:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},52:function(e,t,n){var i=n(15);e.exports=Array.isArray||function(e){return"Array"==i(e)}},58:function(e,t,n){"use strict";var i=n(10),o=n(64)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),i(i.P+i.F*r,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},6:function(e,t,n){var i=n(7),o=n(20);e.exports=n(2)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},64:function(e,t,n){var i=n(19),o=n(32),r=n(16),a=n(13),s=n(65);e.exports=function(e,t){var n=1==e,l=2==e,d=3==e,c=4==e,u=6==e,h=5==e||u,f=t||s;return function(t,s,p){for(var m,g,v=r(t),y=o(v),_=i(s,p,3),b=a(y.length),T=0,C=n?f(t,b):l?f(t,0):void 0;b>T;T++)if((h||T in y)&&(g=_(m=y[T],T,v),e))if(n)C[T]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return T;case 2:C.push(m)}else if(c)return!1;return u?-1:d||c?c:C}}},65:function(e,t,n){var i=n(66);e.exports=function(e,t){return new(i(e))(t)}},66:function(e,t,n){var i=n(3),o=n(52),r=n(0)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},7:function(e,t,n){var i=n(4),o=n(29),r=n(22),a=Object.defineProperty;t.f=n(2)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},8:function(e,t,n){var i=n(1),o=n(6),r=n(11),a=n(14)("src"),s=n(36),l=(""+s).split("toString");n(9).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var d="function"==typeof n;d&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(d&&(r(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:o(e,t,n
vendor: 9,300 bytes, line 142
142):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},9:function(e){var t=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=t)}},n={};e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(i,o,function(e){return t[e]}.bind(null,o));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/",e(e.s=156)},function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).flatpickr=t()}(this,function(){"use strict";function e(e,t,n){var i;return void 0===n&&(n=!1),function(){var o=this,r=arguments;null!==i&&clearTimeout(i),i=window.setTimeout(function(){i=null,n||e.apply(o,r)},t),n&&!i&&e.apply(o,r)}}function t(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function n(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function i(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function o(e,t){var i=n("div","numInputWrapper"),o=n("input","numInput "+e),r=n("span","arrowUp"),a=n("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?o.type="number":(o.type="text",o.pattern="\\d*"),void 0!==t)for(var s in t)o.setAttribute(s,t[s]);return i.appendChild(o),i.appendChild(r),i.appendChild(a),i}function r(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}function a(a,s){function m(e){return e.bind(_e)}function v(){var e=_e.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==_e.calendarContainer&&(_e.calendarContainer.style.visibility="hidden",_e.calendarContainer.style.display="block"),void 0!==_e.daysContainer){var t=(_e.days.offsetWidth+1)*e.showMonths;_e.daysContainer.style.width=t+"px",_e.calendarContainer.style.width=t+(void 0!==_e.weekWrapper?_e.weekWrapper.offsetWidth:0)+"px",_e.calendarContainer.style.removeProperty("visibility"),_e.calendarContainer.style.removeProperty("display")}})}function _(e){0===_e.selectedDates.length&&ie(),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==_e.amPM&&e.target===_e.amPM&&(_e.amPM.textContent=_e.l10n.amPM[f(_e.amPM.textContent===_e.l10n.amPM[0])]);var i=parseFloat(n.getAttribute("min")),o=parseFloat(n.getAttribute("max")),r=parseFloat(n.getAttribute("step")),a=parseInt(n.value,10),s=a+r*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==n.value&&2===n.value.length){var l=n===_e.hourElement,d=n===_e.minuteElement;s<i?(s=o+s+f(!l)+(f(l)&&f(!_e.amPM)),d&&L(void 0,-1,_e.hourElement)):s>o&&(s=n===_e.hourElement?s-o-f(!_e.amPM):i,d&&L(void 0,1,_e.hourElement)),_e.amPM&&l&&(1===r?s+a===23:Math.abs(s-a)>r)&&(_e.amPM.textContent=_e.l10n.amPM[f(_e.amPM.textContent===_e.l10n.amPM[0])]),n.value=h(s)}}(e);var t=_e._input.value;D(),ve(),_e._input.value!==t&&_e._debouncedChange()}function D(){if(void 0!==_e.hourElement&&void 0!==_e.minuteElement){var e,t,n=(parseInt(_e.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(_e.minuteElement.value,10)||0)%60,o=void 0!==_e.secondElement?(parseInt(_e.secondElement.value,10)||0)%60:0;void 0!==_e.amPM&&(e=n,t=_e.amPM.textContent,n=e%12+12*f(t===_e.l10n.amPM[1]));var a=void 0!==_e.config.minTime||_e.config.minDate&&_e.minDateHasTime&&_e.latestSelectedDateObj&&0===r(_e.latestSelectedDateObj,_e.config.minDate,!0);if(void 0!==_e.config.maxTime||_e.config.maxDate&&_e.maxDateHasTime&&_e.latestSelectedDateObj&&0===r(_e.latestSelectedDateObj,_e.config.maxDate,!0)){var s=void 0!==_e.config.maxTime?_e.config.maxTime:_e.config.maxDate;(n=Math.min(n,s.getHours()))===s.getHours()&&(i=Math.min(i,s.getMinutes())),i===s.getMinutes()&&(o=Math.min(o,s.getSeconds()))}if(a){var l=void 0!==_e.config.minTime?_e.config.minTime:_e.config.minDate;(n=Math.max(n,l.getHours()))===l.getHours()&&(i=Math.max(i,l.getMinutes())),i===l.getMinutes()&&(o=Math.max(o,l.getSeconds()))}k(n,i,o)}}function x(e){var t=e||_e.latestSelectedDateObj;t&&k(t.getHours(),t.getMinutes(),t.getSeconds())}function O(){var e=_e.config.defaultHour,t=_e.config.defaultMinute,n=_e.config.defaultSeconds;if(void 0!==_e.config.minDate){var i=_e.config.minDate.getHours(),o=_e.config.minDate.getMinutes();(e=Math.max(e,i))===i&&(t=Math.max(o,t)),e===i&&t===o&&(n=_e.config.minDate.getSeconds())}if(void 0!==_e.config.maxDate){var r=_e.config.maxDate.getHours(),a=_e.config.maxDate.getMinutes();(e=Math.min(e,r))===r&&(t=Math.min(a,t)),e===r&&t===a&&(n=_e.config.maxDate.getSeconds())}k(e,t,n)}function k(e,t,n){void 0!==_e.latestSelectedDateObj&&_e.latestSelectedDateObj.setHours(e%24,t,n||0,0),_e.hourElement&&_e.minuteElement&&!_e.isMobile&&(_e.hourElement.value=h(_e.config.time_24hr?e:(12+e)%12+12*f(e%12==0)),_e.minuteElement.value=h(t),void 0!==_e.amPM&&(_e.amPM.textContent=_e.l10n.amPM[f(e>=12)]),void 0!==_e.secondElement&&(_e.secondElement.value=h(n)))}function S(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&Q(t)}function R(e,t,n,i){return t instanceof Array?t.forEach(function(t){return R(e,t,n,i)}):e instanceof Array?e.forEach(function(e){return R(e,t,n,i)}):(e.addEventListener(t,n,i),void _e._handlers.push({element:e,event:t,handler:n,options:i}))}function $(e){return function(t){1===t.which&&e(t)}}function A(){he("onChange")}function K(e,t){var n=void 0!==e?_e.parseDate(e):_e.latestSelectedDateObj||(_e.config.minDate&&_e.config.minDate>_e.now?_e.config.minDate:_e.config.maxDate&&_e.config.maxDate<_e.now?_e.config.maxDate:_e.now),i=_e.currentYear,o=_e.currentMonth;try{void 0!==n&&(_e.currentYear=n.getFullYear(),_e.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,_e.config.errorHandler(e)}t&&_e.currentYear!==i&&(he("onYearChange"),z()),!t||_e.currentYear===i&&_e.currentMonth===o||he("onMonthChange"),_e.redraw()}function N(e){~e.target.className.indexOf("arrow")&&L(e,e.target.classList.contains("arrowUp")?1:-1)}function L(e,t,n){var i=e&&e.target,o=n||i&&i.parentNode&&i.parentNode.firstChild,r=fe("increment");r.delta=t,o&&o.dispatchEvent(r)}function M(e,i,o,a){var s=Z(i,!0),l=n("span","flatpickr-day "+e,i.getDate().toString());return l.dateObj=i,l.$i=a,l.setAttribute("aria-label",_e.formatDate(i,_e.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===r(i,_e.now)&&(_e.todayDateElem=l,l.classList.add("today"),l.setAttribute("aria-current","date")),s?(l.tabIndex=-1,pe(i)&&(l.classList.add("selected"),_e.selectedDateElem=l,"range"===_e.config.mode&&(t(l,"startRange",_e.selectedDates[0]&&0===r(i,_e.selectedDates[0],!0)),t(l,"endRange",_e.selectedDates[1]&&0===r(i,_e.selectedDates[1],!0)),"nextMonthDay"===e&&l.classList.add("inRange")))):l.classList.add("flatpickr-disabled"),"range"===_e.config.mode&&function(e){return!("range"!==_e.config.mode||_e.selectedDates.length<2)&&r(e,_e.selectedDates[0])>=0&&r(e,_e.selectedDates[1])<=0}(i)&&!pe(i)&&l.classList.add("inRange"),_e.weekNumbers&&1===_e.config.showMonths&&"prevMonthDay"!==e&&o%7==1&&_e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+_e.config.getWeek(i)+"</span>"),he("onDayCreate",l),l}function P(e){e.focus(),"range"===_e.config.mode&&te(e)}function F(e){for(var t=e>0?0:_e.config.showMonths-1,n=e>0?_e.config.showMonths:-1,i=t;i!=n;i+=e)for(var o=_e.daysContainer.children[i],r=e>0?0:o.children.length-1,a=e>0?o.children.length:-1,s=r;s!=a;s+=e){var l=o.children[s];if(-1===l.className.indexOf("hidden")&&Z(l.dateObj))return l}}function B(e,t){var n=J(document.activeElement||document.body),i=void 0!==e?e:n?document.activeElement:void 0!==_e.selectedDateElem&&J(_e.selectedDateElem)?_e.selectedDateElem:void 0!==_e.todayDateElem&&J(_e.todayDateElem)?_e.todayDateElem:F(t>0?1:-1);return void 0===i?_e._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():_e.currentMonth,i=t>0?_e.config.showMonths:-1,o=t>0?1:-1,r=n-_e.currentMonth;r!=i;r+=o)for(var a=_e.daysContainer.children[r],s=n-_e.currentMonth===r?e.$i+t:t<0?a.children.length-1:0,l=a.children.length,d=s;d>=0&&d<l&&d!=(t>0?l:-1);d+=o){var c=a.children[d];if(-1===c.className.indexOf("hidden")&&Z(c.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return P(c)}_e.changeMonth(o),B(F(o),0)}(i,t):P(i)}function j(e,t){for(var i=(new Date(e,t,1).getDay()-_e.l10n.firstDayOfWeek+7)%7,o=_e.utils.getDaysInMonth((t-1+12)%12),r=_e.utils.getDaysInMonth(t),a=window.document.createDocumentFragment(),s=_e.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",d=s?"nextMonthDay hidden":"nextMonthDay",c=o+1-i,u=0;c<=o;c++,u++)a.appendChild(M(l,new Date(e,t-1,c),c,u));for(c=1;c<=r;
vendor: 3,015 bytes, lines 142-143
142c++,u++)a.appendChild(M("",new Date(e,t,c),c,u));for(var h=r+1;h<=42-i&&(1===_e.config.showMonths||u%7!=0);h++, 143u++)a.appendChild(M(d,new Date(e,t+1,h%r),h,u));var f=n("div","dayContainer");return f.appendChild(a),f}function H(){if(void 0!==_e.daysContainer){i(_e.daysContainer),_e.weekNumbers&&i(_e.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<_e.config.showMonths;t++){var n=new Date(_e.currentYear,_e.currentMonth,1);n.setMonth(_e.currentMonth+t),e.appendChild(j(n.getFullYear(),n.getMonth()))}_e.daysContainer.appendChild(e),_e.days=_e.daysContainer.firstChild,"range"===_e.config.mode&&1===_e.selectedDates.length&&te()}}function z(){if(!(_e.config.showMonths>1||"dropdown"!==_e.config.monthSelectorType)){var e=function(e){return!(void 0!==_e.config.minDate&&_e.currentYear===_e.config.minDate.getFullYear()&&e<_e.config.minDate.getMonth()||void 0!==_e.config.maxDate&&_e.currentYear===_e.config.maxDate.getFullYear()&&e>_e.config.maxDate.getMonth())};_e.monthsDropdownContainer.tabIndex=-1,_e.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var i=n("option","flatpickr-monthDropdown-month");i.value=new Date(_e.currentYear,t).getMonth().toString(),i.textContent=g(t,_e.config.shorthandCurrentMonth,_e.l10n),i.tabIndex=-1,_e.currentMonth===t&&(i.selected=!0),_e.monthsDropdownContainer.appendChild(i)}}}function q(){var e,t=n("div","flatpickr-month"),i=window.document.createDocumentFragment();_e.config.showMonths>1||"static"===_e.config.monthSelectorType?e=n("span","cur-month"):(_e.monthsDropdownContainer=n("select","flatpickr-monthDropdown-months"),R(_e.monthsDropdownContainer,"change",function(e){var t=e.target,n=parseInt(t.value,10);_e.changeMonth(n-_e.currentMonth),he("onMonthChange")}),z(),e=_e.monthsDropdownContainer);var r=o("cur-year",{tabindex:"-1"}),a=r.getElementsByTagName("input")[0];a.setAttribute("aria-label",_e.l10n.yearAriaLabel),_e.config.minDate&&a.setAttribute("min",_e.config.minDate.getFullYear().toString()),_e.config.maxDate&&(a.setAttribute("max",_e.config.maxDate.getFullYear().toString()),a.disabled=!!_e.config.minDate&&_e.config.minDate.getFullYear()===_e.config.maxDate.getFullYear());var s=n("div","flatpickr-current-month");return s.appendChild(e),s.appendChild(r),i.appendChild(s),t.appendChild(i),{container:t,yearElement:a,monthElement:e}}function W(){i(_e.monthNav),_e.monthNav.appendChild(_e.prevMonthNav),_e.config.showMonths&&(_e.yearElements=[],_e.monthElements=[]);for(var e=_e.config.showMonths;e--;){var t=q();_e.yearElements.push(t.yearElement),_e.monthElements.push(t.monthElement),_e.monthNav.appendChild(t.container)}_e.monthNav.appendChild(_e.nextMonthNav)}function U(){_e.weekdayContainer?i(_e.weekdayContainer):_e.weekdayContainer=n("div","flatpickr-weekdays");for(var e=_e.config.showMonths;e--;){var t=n("div","flatpickr-weekdaycontainer");_e.weekdayContainer.appendChild(t)}return V(),_e.weekdayContainer}function V(){if(_e.weekdayContainer){var e=_e.l10n.firstDayOfWeek,t=_e.l10n.weekdays.shorthand.slice();e>
vendor: 7,599 bytes, line 143
1430&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=_e.config.showMonths;n--;)_e.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Y(e,t){void 0===t&&(t=!0);var n=t?e:e-_e.currentMonth;n<0&&!0===_e._hidePrevMonthArrow||n>0&&!0===_e._hideNextMonthArrow||(_e.currentMonth+=n,(_e.currentMonth<0||_e.currentMonth>11)&&(_e.currentYear+=_e.currentMonth>11?1:-1,_e.currentMonth=(_e.currentMonth+12)%12,he("onYearChange"),z()),H(),he("onMonthChange"),me())}function G(e){return!(!_e.config.appendTo||!_e.config.appendTo.contains(e))||_e.calendarContainer.contains(e)}function X(e){if(_e.isOpen&&!_e.config.inline){var t="function"==typeof(a=e).composedPath?a.composedPath()[0]:a.target,n=G(t),i=t===_e.input||t===_e.altInput||_e.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(_e.input)||~e.path.indexOf(_e.altInput)),o="blur"===e.type?i&&e.relatedTarget&&!G(e.relatedTarget):!i&&!n&&!G(e.relatedTarget),r=!_e.config.ignoredFocusElements.some(function(e){return e.contains(t)});o&&r&&(void 0!==_e.timeContainer&&void 0!==_e.minuteElement&&void 0!==_e.hourElement&&_(),_e.close(),"range"===_e.config.mode&&1===_e.selectedDates.length&&(_e.clear(!1),_e.redraw()))}var a}function Q(e){if(!(!e||_e.config.minDate&&e<_e.config.minDate.getFullYear()||_e.config.maxDate&&e>_e.config.maxDate.getFullYear())){var t=e,n=_e.currentYear!==t;_e.currentYear=t||_e.currentYear,_e.config.maxDate&&_e.currentYear===_e.config.maxDate.getFullYear()?_e.currentMonth=Math.min(_e.config.maxDate.getMonth(),_e.currentMonth):_e.config.minDate&&_e.currentYear===_e.config.minDate.getFullYear()&&(_e.currentMonth=Math.max(_e.config.minDate.getMonth(),_e.currentMonth)),n&&(_e.redraw(),he("onYearChange"),z())}}function Z(e,t){void 0===t&&(t=!0);var n=_e.parseDate(e,void 0,t);if(_e.config.minDate&&n&&r(n,_e.config.minDate,void 0!==t?t:!_e.minDateHasTime)<0||_e.config.maxDate&&n&&r(n,_e.config.maxDate,void 0!==t?t:!_e.maxDateHasTime)>0)return!1;if(0===_e.config.enable.length&&0===_e.config.disable.length)return!0;if(void 0===n)return!1;for(var i=_e.config.enable.length>0,o=i?_e.config.enable:_e.config.disable,a=0,s=void 0;a<o.length;a++){if("function"==typeof(s=o[a])&&s(n))return i;if(s instanceof Date&&void 0!==n&&s.getTime()===n.getTime())return i;if("string"==typeof s&&void 0!==n){var l=_e.parseDate(s,void 0,!0);return l&&l.getTime()===n.getTime()?i:!i}if("object"==typeof s&&void 0!==n&&s.from&&s.to&&n.getTime()>=s.from.getTime()&&n.getTime()<=s.to.getTime())return i}return!i}function J(e){return void 0!==_e.daysContainer&&-1===e.className.indexOf("hidden")&&_e.daysContainer.contains(e)}function ee(e){var t=e.target===_e._input,n=_e.config.allowInput,i=_e.isOpen&&(!n||!t),o=_e.config.inline&&t&&!n;if(13===e.keyCode&&t){if(n)return _e.setDate(_e._input.value,!0,e.target===_e.altInput?_e.config.altFormat:_e.config.dateFormat),e.target.blur();_e.open()}else if(G(e.target)||i||o){var r=!!_e.timeContainer&&_e.timeContainer.contains(e.target);switch(e.keyCode){case 13:r?(e.preventDefault(),_(),le()):de(e);break;case 27:e.preventDefault(),le();break;case 8:case 46:t&&!_e.config.allowInput&&(e.preventDefault(),_e.clear());break;case 37:case 39:if(r||t)_e.hourElement&&_e.hourElement.focus();else if(e.preventDefault(),void 0!==_e.daysContainer&&(!1===n||document.activeElement&&J(document.activeElement))){var a=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),Y(a),B(F(1),0)):B(void 0,a)}break;case 38:case 40:e.preventDefault();var s=40===e.keyCode?1:-1;_e.daysContainer&&void 0!==e.target.$i||e.target===_e.input||e.target===_e.altInput?e.ctrlKey?(e.stopPropagation(),Q(_e.currentYear-s),B(F(1),0)):r||B(void 0,7*s):e.target===_e.currentYearElement?Q(_e.currentYear-s):_e.config.enableTime&&(!r&&_e.hourElement&&_e.hourElement.focus(),_(e),_e._debouncedChange());break;case 9:if(r){var l=[_e.hourElement,_e.minuteElement,_e.secondElement,_e.amPM].concat(_e.pluginElements).filter(function(e){return e}),d=l.indexOf(e.target);if(-1!==d){var c=l[d+(e.shiftKey?-1:1)];e.preventDefault(),(c||_e._input).focus()}}else!_e.config.noCalendar&&_e.daysContainer&&_e.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),_e._input.focus())}}if(void 0!==_e.amPM&&e.target===_e.amPM)switch(e.key){case _e.l10n.amPM[0].charAt(0):case _e.l10n.amPM[0].charAt(0).toLowerCase():_e.amPM.textContent=_e.l10n.amPM[0],D(),ve();break;case _e.l10n.amPM[1].charAt(0):case _e.l10n.amPM[1].charAt(0).toLowerCase():_e.amPM.textContent=_e.l10n.amPM[1],D(),ve()}(t||G(e.target))&&he("onKeyDown",e)}function te(e){if(1===_e.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():_e.days.firstElementChild.dateObj.getTime(),n=_e.parseDate(_e.selectedDates[0],void 0,!0).getTime(),i=Math.min(t,_e.selectedDates[0].getTime()),o=Math.max(t,_e.selectedDates[0].getTime()),r=!1,a=0,s=0,l=i;l<o;l+=E.DAY)Z(new Date(l),!0)||(r=r||l>i&&l<o,l<n&&(!a||l>a)?a=l:l>n&&(!s||l<s)&&(s=l));for(var d=0;d<_e.config.showMonths;d++)for(var c=_e.daysContainer.children[d],u=function(i){var o=c.children[i],l=o.dateObj.getTime(),d=a>0&&l<a||s>0&&l>s;return d?(o.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){o.classList.remove(e)}),"continue"):r&&!d?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){o.classList.remove(e)}),void(void 0!==e&&(e.classList.add(t<=_e.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&l===n?o.classList.add("startRange"):n>t&&l===n&&o.classList.add("endRange"),l>=a&&(0===s||l<=s)&&C(l,n,t)&&o.classList.add("inRange"))))},h=0,f=c.children.length;h<f;h++)u(h)}}function ne(){!_e.isOpen||_e.config["static"]||_e.config.inline||ae()}function ie(){_e.setDate(void 0!==_e.config.minDate?new Date(_e.config.minDate.getTime()):new Date,!0),O(),ve()}function oe(e){return function(t){var n=_e.config["_"+e+"Date"]=_e.parseDate(t,_e.config.dateFormat),i=_e.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(_e["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),_e.selectedDates&&(_e.selectedDates=_e.selectedDates.filter(function(e){return Z(e)}),_e.selectedDates.length||"min"!==e||x(n),ve()),_e.daysContainer&&(se(),void 0!==n?_e.currentYearElement[e]=n.getFullYear().toString():_e.currentYearElement.removeAttribute(e),_e.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function re(){"object"!=typeof _e.config.locale&&void 0===I.l10ns[_e.config.locale]&&_e.config.errorHandler(new Error("flatpickr: invalid locale "+_e.config.locale)),_e.l10n=l({},I.l10ns["default"],"object"==typeof _e.config.locale?_e.config.locale:"default"!==_e.config.locale?I.l10ns[_e.config.locale]:void 0),y.K="("+_e.l10n.amPM[0]+"|"+_e.l10n.amPM[1]+"|"+_e.l10n.amPM[0].toLowerCase()+"|"+_e.l10n.amPM[1].toLowerCase()+")",void 0===l({},s,JSON.parse(JSON.stringify(a.dataset||{}))).time_24hr&&void 0===I.defaultConfig.time_24hr&&(_e.config.time_24hr=_e.l10n.time_24hr),_e.formatDate=b(_e),_e.parseDate=T({config:_e.config,l10n:_e.l10n})}function ae(e){if(void 0!==_e.calendarContainer){he("onPreCalendarPosition");var n=e||_e._positionElement,i=Array.prototype.reduce.call(_e.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),o=_e.calendarContainer.offsetWidth,r=_e.config.position.split(" "),a=r[0],s=r.length>1?r[1]:null,l=n.getBoundingClientRect(),d=window.innerHeight-l.bottom,c="above"===a||"below"!==a&&d<i&&l.to
143p>i,u=window.pageYOffset+l.top+(c?-i-2:n.offsetHeight+2);if(t(_e.calendarContainer,"arrowTop",!c),t(_e.calendarContainer,"arrowBottom",c),!_e.config.inline){var h=window.pageXOffset+l.left-(null!=s&&"center"===s?(o-l.width)/2:0),f=window.document.body.offsetWidth-(window.pageXOffset+l.right),p=h+o>window.document.body.offsetWidth,m=f+o>window.document.body.offsetWidth;if(t(_e.calendarContainer,"rightMost",p),!_e.config["static"])if(_e.calendarContainer.style.top=u+"px",p)if(m){var g=document.styleSheets[0];if(void 0===g)return;var v=window.document.body.offsetWidth,y=Math.max(0,v/2-o/2),_=g.cssRules.length,b="{left:"+l.left+"px;right:auto;}";t(_e.calendarContainer,"rightMost",!1),t(_e.calendarContainer,"centerMost",!0),g.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+b,_),_e.calendarContainer.style.left=y+"px",_e.calendarContainer.style.right="auto"}else _e.calendarContainer.style.left="auto",_e.calendarContainer.style.right=f+"px";else _e.calendarContainer.style.left=h+"px",_e.calendarContainer.style.right="auto"}}}function se(){_e.config.noCalendar||_e.isMobile||(me(),H())}function le(){_e._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(_e.close,0):_e.close()}function de(e){e.preventDefault(),e.stopPropagation();var t=function c(e,t){return t(e)?e:e.parentNode?c(e.parentNode,t):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,i=_e.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(i.getMonth()<_e.currentMonth||i.getMonth()>_e.currentMonth+_e.config.showMonths-1)&&"range"!==_e.config.mode;if(_e.selectedDateElem=n,"single"===_e.config.mode)_e.selectedDates=[i];else if("multiple"===_e.config.mode){var a=pe(i);a?_e.selectedDates.splice(parseInt(a),1):_e.selectedDates.push(i)}else"range"===_e.config.mode&&(2===_e.selectedDates.length&&_e.clear(!1,!1),_e.latestSelectedDateObj=i,_e.selectedDates.push(i),0!==r(i,_e.selectedDates[0],!0)&&_e.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(D(),o){var s=_e.currentYear!==i.getFullYear();_e.currentYear=i.getFullYear(),_e.currentMonth=i.getMonth(),s&&(he("onYearChange"),z()),he("onMonthChange")}if(me(),H(),ve(),_e.config.enableTime&&setTimeout(function(){return _e.showTimeInput=!0},50),o||"range"===_e.config.mode||1!==_e.config.showMonths?void 0!==_e.selectedDateElem&&void 0===_e.hourElement&&_e.selectedDateElem&&_e.selectedDateElem.focus():P(n),void 0!==_e.hourElement&&void 0!==_e.hourElement&&_e.hourElement.focus(),_e.config.closeOnSelect){var l="single"===_e.config.mode&&!_e.config.enableTime,d="range"===_e.config.mode&&2===_e.selectedDates.length&&!_e.config.enableTime;(l||d)&&le()}A()}}function ce(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return _e.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[_e.parseDate(e,t)];else if("string"==typeof e)switch(_e.config.mode){case"single":case"time":n=[_e.parseDate(e,t)];break;case"multiple":n=e.split(_e.config.conjunction).map(function(e){return _e.parseDate(e,t)});break;case"range":n=e.split(_e.l10n.rangeSeparator).map(function(e){return _e.parseDate(e,t)})}else _e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));_e.selectedDates=n.filter(function(e){return e instanceof Date&&Z(e,!1)}),"range"===_e.config.mode&&_e.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ue(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?_e.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:_e.parseDate(e.from,void 0),to:_e.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function he(e,t){if(void 0!==_e.config){var n=_e.config[e];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i<n.length;i++)n[i](_e.selectedDates,_e.input.value,_e,t);"onChange"===e&&(_e.input.dispatchEvent(fe("change")),_e.input.dispatchEvent(fe("input")))}}function fe(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function pe(e){for(var t=0;t<_e.selectedDates.length;t++)if(0===r(_e.selectedDates[t],e))return""+t;return!1}function me(){_e.config.noCalendar||_e.isMobile||!_e.monthNav||(_e.yearElements.forEac
143h(function(e,t){var n=new Date(_e.currentYear,_e.currentMonth,1);n.setMonth(_e.currentMonth+t),_e.config.showMonths>1||"static"===_e.config.monthSelectorType?_e.monthElements[t].textContent=g(n.getMonth(),_e.config.shorthandCurrentMonth,_e.l10n)+" ":_e.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),_e._hidePrevMonthArrow=void 0!==_e.config.minDate&&(_e.currentYear===_e.config.minDate.getFullYear()?_e.currentMonth<=_e.config.minDate.getMonth():_e.currentYear<_e.config.minDate.getFullYear()),_e._hideNextMonthArrow=void 0!==_e.config.maxDate&&(_e.currentYear===_e.config.maxDate.getFullYear()?_e.currentMonth+1>_e.config.maxDate.getMonth():_e.currentYear>_e.config.maxDate.getFullYear()))}function ge(e){return _e.selectedDates.map(function(t){return _e.formatDate(t,e)}).filter(function(e,t,n){return"range"!==_e.config.mode||_e.config.enableTime||n.indexOf(e)===t}).join("range"!==_e.config.mode?_e.config.conjunction:_e.l10n.rangeSeparator)}function ve(e){void 0===e&&(e=!0),void 0!==_e.mobileInput&&_e.mobileFormatStr&&(_e.mobileInput.value=void 0!==_e.latestSelectedDateObj?_e.formatDate(_e.latestSelectedDateObj,_e.mobileFormatStr):""),_e.input.value=ge(_e.config.dateFormat),void 0!==_e.altInput&&(_e.altInput.value=ge(_e.config.altFormat)),!1!==e&&he("onValueUpdate")}function ye(e){var t=_e.prevMonthNav.contains(e.target),n=_e.nextMonthNav.contains(e.target);t||n?Y(t?-1:1):_e.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?_e.changeYear(_e.currentYear+1):e.target.classList.contains("arrowDown")&&_e.changeYear(_e.currentYear-1)}var _e={config:l({},c,I.defaultConfig),l10n:u};_e.parseDate=T({config:_e.config,l10n:_e.l10n}),_e._handlers=[],_e.pluginElements=[],_e.loadedPlugins=[],_e._bind=R,_e._setHoursFromDate=x,_e._positionCalendar=ae,_e.changeMonth=Y,_e.changeYear=Q,_e.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),_e.input.value="",void 0!==_e.altInput&&(_e.altInput.value=""),void 0!==_e.mobileInput&&(_e.mobileInput.value=""),_e.selectedDates=[],_e.latestSelectedDateObj=void 0,!0===t&&(_e.currentYear=_e._initialDate.getFullYear(),_e.currentMonth=_e._initialDate.getMonth()),_e.showTimeInput=!1,!0===_e.config.enableTime&&O(),_e.redraw(),e&&he("onChange")},_e.close=function(){_e.isOpen=!1,_e.isMobile||(void 0!==_e.calendarContainer&&_e.calendarContainer.classList.remove("open"),void 0!==_e._input&&_e._input.classList.remove("active")),he("onClose")},_e._createElement=n,_e.destroy=function(){void 0!==_e.config&&he("onDestroy");for(var e=_e._handlers.length;e--;){var t=_e._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(_e._handlers=[],_e.mobileInput)_e.mobileInput.parentNode&&_e.mobileInput.parentNode.removeChild(_e.mobileInput),_e.mobileInput=void 0;else if(_e.calendarContainer&&_e.calendarContainer.parentNode)if(_e.config["static"]&&_e.calendarContainer.parentNode){var n=_e.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else _e.calendarContainer.parentNode.removeChild(_e.calendarContainer);_e.altInput&&(_e.input.type="text",_e.altInput.parentNode&&_e.altInput.parentNode.removeChild(_e.altInput),delete _e.altInput),_e.input&&(_e.input.type=_e.input._type,_e.input.classList.remove("flatpickr-input"),_e.input.removeAttribute("readonly"),_e.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete _e[e]}catch(e){}})},_e.isEnabled=Z,_e.jumpToDate=K,_e.open=function(e,t){if(void 0===t&&(t=_e._positionElement),!0===_e.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==_e.mobileInput&&(_e.mobileInput.focus(),_e.mobileInput.click()),void he("onOpen");if(!_e._input.disabled&&!_e.config.inline){var n=_e.isOpen;_e.isOpen=!0,n||(_e.calendarContainer.classList.add("open"),_e._input.classList.add("active"),he("onOpen"),ae(t)),!0===_e.config.enableTime&&!0===_e.config.noCalendar&&(0===_e.selectedDates.length&&ie(),!1!==_e.config.allowInput||void 0!==e&&_e.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return _e.hourElement.select()},50))}},_e.redraw=se,_e.set=function(e,t){if(null!==e&&"object"==typeof e)for(var n in Object.assign(_e.config,e),e)void 0!==be[n]&&be[n].forEac
vendor: 8,423 bytes, line 143
143h(function(e){return e()});else _e.config[e]=t,void 0!==be[e]?be[e].forEach(function(e){return e()}):d.indexOf(e)>-1&&(_e.config[e]=p(t));_e.redraw(),ve(!1)},_e.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=_e.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return _e.clear(t);ce(e,n),_e.showTimeInput=_e.selectedDates.length>0,_e.latestSelectedDateObj=_e.selectedDates[_e.selectedDates.length-1],_e.redraw(),K(),x(),0===_e.selectedDates.length&&_e.clear(!1),ve(t),t&&he("onChange")},_e.toggle=function(e){if(!0===_e.isOpen)return _e.close();_e.open(e)};var be={locale:[re,V],showMonths:[W,v,U],minDate:[K],maxDate:[K]};return function(){_e.element=_e.input=a,_e.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=l({},s,JSON.parse(JSON.stringify(a.dataset||{}))),n={};_e.config.parseDate=t.parseDate,_e.config.formatDate=t.formatDate,Object.defineProperty(_e.config,"enable",{get:function(){return _e.config._enable},set:function(e){_e.config._enable=ue(e)}}),Object.defineProperty(_e.config,"disable",{get:function(){return _e.config._disable},set:function(e){_e.config._disable=ue(e)}});var i="time"===t.mode;if(!t.dateFormat&&(t.enableTime||i)){var o=I.defaultConfig.dateFormat||c.dateFormat;n.dateFormat=t.noCalendar||i?"H:i"+(t.enableSeconds?":S":""):o+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||i)&&!t.altFormat){var r=I.defaultConfig.altFormat||c.altFormat;n.altFormat=t.noCalendar||i?"h:i"+(t.enableSeconds?":S K":" K"):r+" h:i"+(t.enableSeconds?":S":"")+" K"}t.altInputClass||(_e.config.altInputClass=_e.input.className+" "+_e.config.altInputClass),Object.defineProperty(_e.config,"minDate",{get:function(){return _e.config._minDate},set:oe("min")}),Object.defineProperty(_e.config,"maxDate",{get:function(){return _e.config._maxDate},set:oe("max")});var u=function(e){return function(t){_e.config["min"===e?"_minTime":"_maxTime"]=_e.parseDate(t,"H:i:S")}};Object.defineProperty(_e.config,"minTime",{get:function(){return _e.config._minTime},set:u("min")}),Object.defineProperty(_e.config,"maxTime",{get:function(){return _e.config._maxTime},set:u("max")}),"time"===t.mode&&(_e.config.noCalendar=!0,_e.config.enableTime=!0),Object.assign(_e.config,n,t);for(var h=0;h<e.length;h++)_e.config[e[h]]=!0===_e.config[e[h]]||"true"===_e.config[e[h]];d.filter(function(e){return void 0!==_e.config[e]}).forEach(function(e){_e.config[e]=p(_e.config[e]||[]).map(m)}),_e.isMobile=!_e.config.disableMobile&&!_e.config.inline&&"single"===_e.config.mode&&!_e.config.disable.length&&!_e.config.enable.length&&!_e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(h=0;h<_e.config.plugins.length;h++){var f=_e.config.plugins[h](_e)||{};for(var g in f)d.indexOf(g)>-1?_e.config[g]=p(f[g]).map(m).concat(_e.config[g]):void 0===t[g]&&(_e.config[g]=f[g])}he("onParseConfig")}(),re(),_e.input=_e.config.wrap?a.querySelector("[data-input]"):a,_e.input?(_e.input._type=_e.input.type,_e.input.type="text",_e.input.classList.add("flatpickr-input"),_e._input=_e.input,_e.config.altInput&&(_e.altInput=n(_e.input.nodeName,_e.config.altInputClass),_e._input=_e.altInput,_e.altInput.placeholder=_e.input.placeholder,_e.altInput.disabled=_e.input.disabled,_e.altInput.required=_e.input.required,_e.altInput.tabIndex=_e.input.tabIndex,_e.altInput.type="text",_e.input.setAttribute("type","hidden"),!_e.config["static"]&&_e.input.parentNode&&_e.input.parentNode.insertBefore(_e.altInput,_e.input.nextSibling)),_e.config.allowInput||_e._input.setAttribute("readonly","readonly"),_e._positionElement=_e.config.positionElement||_e._input):_e.config.errorHandler(new Error("Invalid input element specified")),function(){_e.selectedDates=[],_e.now=_e.parseDate(_e.config.now)||new Date;var e=_e.config.defaultDate||("INPUT"!==_e.input.nodeName&&"TEXTAREA"!==_e.input.nodeName||!_e.input.placeholder||_e.input.value!==_e.input.placeholder?_e.input.value:null);e&&ce(e,_e.config.dateFormat),_e._initialDate=_e.selectedDates.length>0?_e.selectedDates[0]:_e.config.minDate&&_e.config.minDate.getTime()>_e.now.getTime()?_e.config.minDate:_e.config.maxDate&&_e.config.maxDate.getTime()<_e.now.getTime()?_e.config.maxDate:_e.now,_e.currentYear=_e._initialDate.getFullYear(),_e.currentMonth=_e._initialDate.getMonth(),_e.selectedDates.length>0&&(_e.latestSelectedDateObj=_e.selectedDates[0]),void 0!==_e.config.minTime&&(_e.config.minTime=_e.parseDate(_e.config.minTime,"H:i")),void 0!==_e.config.maxTime&&(_e.config.maxTime=_e.parseDate(_e.config.maxTime,"H:i")),_e.minDateHasTime=!!_e.config.minDate&&(_e.config.minDate.getHours()>0||_e.config.minDate.getMinutes()>0||_e.config.minDate.getSeconds()>0),_e.maxDateHasTime=!!_e.config.maxDate&&(_e.config.maxDate.getHours()>0||_e.config.maxDate.getMinutes()>0||_e.config.maxDate.getSeconds()>0),Object.defineProperty(_e,"showTimeInput",{get:function(){return _e._showTimeInput},set:function(e){_e._showTimeInput=e,_e.calendarContainer&&t(_e.calendarContainer,"showTimeInput",e),_e.isOpen&&ae()}})}(),_e.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=_e.currentMonth),void 0===t&&(t=_e.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:_e.l10n.daysInMonth[e]}},_e.isMobile||function(){var e=window.document.createDocumentFragment();if(_e.calendarContainer=n("div","flatpickr-calendar"),_e.calendarContainer.tabIndex=-1,!_e.config.noCalendar){if(e.appendChild((_e.monthNav=n("div","flatpickr-months"),_e.yearElements=[],_e.monthElements=[],_e.prevMonthNav=n("span","flatpickr-prev-month"),_e.prevMonthNav.innerHTML=_e.config.prevArrow,_e.nextMonthNav=n("span","flatpickr-next-month"),_e.nextMonthNav.innerHTML=_e.config.nextArrow,W(),Object.defineProperty(_e,"_hidePrevMonthArrow",{get:function(){return _e.__hidePrevMonthArrow},set:function(e){_e.__hidePrevMonthArrow!==e&&(t(_e.prevMonthNav,"flatpickr-disabled",e),_e.__hidePrevMonthArrow=e)}}),Object.defineProperty(_e,"_hideNextMonthArrow",{get:function(){return _e.__hideNextMonthArrow},set:function(e){_e.__hideNextMonthArrow!==e&&(t(_e.nextMonthNav,"flatpickr-disabled",e),_e.__hideNextMonthArrow=e)}}),_e.currentYearElement=_e.yearElements[0],me(),_e.monthNav)),_e.innerContainer=n("div","flatpickr-innerContainer"),_e.config.weekNumbers){var i=function(){_e.calendarContainer.classList.add("hasWeeks");var e=n("div","flatpickr-weekwrapper");e.appendChild(n("span","flatpickr-weekday",_e.l10n.weekAbbreviation));var t=n("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),r=i.weekWrapper,a=i.weekNumbers;_e.innerContainer.appendChild(r),_e.weekNumbers=a,_e.weekWrapper=r}_e.rContainer=n("div","flatpickr-rContainer"),_e.rContainer.appendChild(U()),_e.daysContainer||(_e.daysContainer=n("div","flatpickr-days"),_e.daysContainer.tabIndex=-1),H(),_e.rContainer.appendChild(_e.daysContainer),_e.innerContainer.appendChild(_e.rContainer),e.appendChild(_e.innerContainer)}_e.config.enableTime&&e.appendChild(function(){_e.calendarContainer.classList.add("hasTime"),_e.config.noCalendar&&_e.calendarContainer.classList.add("noCalendar"),_e.timeContainer=n("div","flatpickr-time"),_e.timeContainer.tabIndex=-1;var e=n("span","flatpickr-time-separator",":"),t=o("flatpickr-hour",{"aria-label":_e.l10n.hourAriaLabel});_e.hourElement=t.getElementsByTagName("input")[0];var i=o("flatpickr-minute",{"aria-label":_e.l10n.minuteAriaLabel});if(_e.minuteElement=i.getElementsByTagName("input")[0],_e.hourElement.tabIndex=_e.minuteElement.tabIndex=-1,_e.hourElement.value=h(_e.latestSelectedDateObj?_e.latestSelectedDateObj.getHours():_e.config.time_24hr?_e.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(_e.config.defaultHour)),_e.minuteElement.value=h(_e.latestSelectedDateObj?_e.latestSelectedDateObj.getMinutes():_e.config.defaultMinute),_e.hourElement.setAttribute("step",_e.config.hourIncrement.toString()),_e.minuteElement.setAttribute("step",_e.config.minuteIncrement.toString()),_e.hourElement.setAttribute("min",_e.config.time_24hr?"0":"1"),_e.hourElement.setAttribute("max",_e.config.time_24hr?"23":"12"),_e.minuteElement.setAttribute("min","0"),_e.minuteElement.setAttribute("max","59"),_e.timeContainer.appendChild(t),_e.timeContainer.appendChild(e),_e.timeContainer.appendChild(i),_e.config.time_24hr&&_e.t
143imeContainer.classList.add("time24hr"),_e.config.enableSeconds){_e.timeContainer.classList.add("hasSeconds");var r=o("flatpickr-second");_e.secondElement=r.getElementsByTagName("input")[0],_e.secondElement.value=h(_e.latestSelectedDateObj?_e.latestSelectedDateObj.getSeconds():_e.config.defaultSeconds),_e.secondElement.setAttribute("step",_e.minuteElement.getAttribute("step")),_e.secondElement.setAttribute("min","0"),_e.secondElement.setAttribute("max","59"),_e.timeContainer.appendChild(n("span","flatpickr-time-separator",":")),_e.timeContainer.appendChild(r)}return _e.config.time_24hr||(_e.amPM=n("span","flatpickr-am-pm",_e.l10n.amPM[f((_e.latestSelectedDateObj?_e.hourElement.value:_e.config.defaultHour)>11)]),_e.amPM.title=_e.l10n.toggleTitle,_e.amPM.tabIndex=-1,_e.timeContainer.appendChild(_e.amPM)),_e.timeContainer}()),t(_e.calendarContainer,"rangeMode","range"===_e.config.mode),t(_e.calendarContainer,"animate",!0===_e.config.animate),t(_e.calendarContainer,"multiMonth",_e.config.showMonths>1),_e.calendarContainer.appendChild(e);var s=void 0!==_e.config.appendTo&&void 0!==_e.config.appendTo.nodeType;if((_e.config.inline||_e.config["static"])&&(_e.calendarContainer.classList.add(_e.config.inline?"inline":"static"),_e.config.inline&&(!s&&_e.element.parentNode?_e.element.parentNode.insertBefore(_e.calendarContainer,_e._input.nextSibling):void 0!==_e.config.appendTo&&_e.config.appendTo.appendChild(_e.calendarContainer)),_e.config["static"])){var l=n("div","flatpickr-wrapper");_e.element.parentNode&&_e.element.parentNode.insertBefore(l,_e.element),l.appendChild(_e.element),_e.altInput&&l.appendChild(_e.altInput),l.appendChild(_e.calendarContainer)}_e.config["static"]||_e.config.inline||(void 0!==_e.config.appendTo?_e.config.appendTo:window.document.body).appendChild(_e.calendarContainer)}(),function(){if(_e.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(_e.element.querySelectorAll("[data-"+e+"]"),function(t){return R(t,"click",_e[e])})}),_e.isMobile)!function(){var e=_e.config.enableTime?_e.config.noCalendar?"time":"datetime-local":"date";_e.mobileInput=n("input",_e.input.className+" flatpickr-mobile"),_e.mobileInput.step=_e.input.getAttribute("step")||"any",_e.mobileInput.tabIndex=1,_e.mobileInput.type=e,_e.mobileInput.disabled=_e.input.disabled,_e.mobileInput.required=_e.input.required,_e.mobileInput.placeholder=_e.input.placeholder,_e.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",_e.selectedDates.length>0&&(_e.mobileInput.defaultValue=_e.mobileInput.value=_e.formatDate(_e.selectedDates[0],_e.mobileFormatStr)),_e.config.minDate&&(_e.mobileInput.min=_e.formatDate(_e.config.minDate,"Y-m-d")),_e.config.maxDate&&(_e.mobileInput.max=_e.formatDate(_e.config.maxDate,"Y-m-d")),_e.input.type="hidden",void 0!==_e.altInput&&(_e.altInput.type="hidden");try{_e.input.parentNode&&_e.input.parentNode.insertBefore(_e.mobileInput,_e.input.nextSibling)}catch(e){}R(_e.mobileInput,"change",function(e){_e.setDate(e.target.value,!1,_e.mobileFormatStr),he("onChange"),he("onClose")})}();else{var t=e(ne,50);_e._debouncedChange=e(A,w),_e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&R(_e.daysContainer,"mouseover",function(e){"range"===_e.config.mode&&te(e.target)}),R(window.document.body,"keydown",ee),_e.config.inline||_e.config["static"]||R(window,"resize",t),void 0!==window.ontouchstart?R(window.document,"touchstart",X):R(window.document,"mousedown",$(X)),R(window.document,"focus",X,{capture:!0}),!0===_e.config.clickOpens&&(R(_e._input,"focus",_e.open),R(_e._input,"mousedown",$(_e.open))),void 0!==_e.daysContainer&&(R(_e.monthNav,"mousedown",$(ye)),R(_e.monthNav,["keyup","increment"],S),R(_e.daysContainer,"mousedown",$(de))),void 0!==_e.timeContainer&&void 0!==_e.minuteElement&&void 0!==_e.hourElement&&(R(_e.timeContainer,["increment"],_),R(_e.timeContainer,"blur",_,{capture:!0}),R(_e.timeContainer,"mousedown",$(N)),R([_e.hourElement,_e.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==_e.secondElement&&R(_e.secondElement,"focus",function(){return _e.secondElement&&_e.secondElement.select()}),void 0!==_e.amPM&&R(_e.amPM,"mousedown",$(function(e){_(e),A()})))}}(),(_e.selectedDates.length||_e.config.noCalendar)&&(_e.config.enableTime&&x(_e.config.noCalendar?_e.latestSelectedDateObj||_e.config.minDate:void 0),ve(!1)),v(),_e.showTimeInput=_e.selectedDates.length>0||_e.config.noCalendar;var i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!_e.isMobile&&i&&ae(),he("onReady")}(),_e}function s(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){ 144return e instanceof HTMLElement}),i=[],o=0;o<n.length;o++){var r=n[o];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=a(r,t||{}),i.push(r._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}var l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)}
vendor: 8,159 bytes, line 144
144,d=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],c={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,"static":!1,time_24hr:!1,weekNumbers:!1,wrap:!1},u={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},h=function(e){return("0"+e).slice(-2)},f=function(e){return!0===e?1:0},p=function(e){return e instanceof Array?e:[e]},m=function(){},g=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:m,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*f(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:m,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:m,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},_={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[_.w(e,t,n)]},F:function(e,t,n){return g(_.n(e,t,n)-1,!1,t)},G:function(e,t,n){return h(_.h(e,t,n))},H:function(e){return h(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[f(e.getHours()>11)]},M:function(e,t){return g(e.getMonth(),!0,t)},S:function(e){return h(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return h(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return h(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return h(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},b=function(e){var t=e.config,n=void 0===t?c:t,i=e.l10n,o=void 0===i?u:i;return function(e,t,i){var r=i||o;return void 0!==n.formatDate?n.formatDate(e,t,r):t.split("").map(function(t,i,o){return _[t]&&"\\"!==o[i-1]?_[t](e,r,n):"\\"!==t?t:""}).join("")}},T=function(e){var t=e.config,n=void 0===t?c:t,i=e.l10n,o=void 0===i?u:i;return function(e,t,i,r){if(0===e||e){var a,s=r||o,l=e;if(e instanceof Date)a=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)a=new Date(e);else if("string"==typeof e){var d=t||(n||c).dateFormat,u=String(e).trim();if("today"===u)a=new Date,i=!0;else if(/Z$/.test(u)||/GMT$/.test(u))a=new Date(e);else if(n&&n.parseDate)a=n.parseDate(e,d);else{a=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var h=void 0,f=[],p=0,m=0,g="";p<d.length;p++){var _=d[p],b="\\"===_,T="\\"===d[p-1]||b;if(y[_]&&!T){g+=y[_];var C=new RegExp(g).exec(e);C&&(h=!0)&&f["Y"!==_?"push":"unshift"]({fn:v[_],val:C[++m]})}else b||(g+=".");f.forEach(function(e){var t=e.fn,n=e.val;return a=t(a,n,s)||a})}a=h?a:void 0}}if(a instanceof Date&&!isNaN(a.getTime()))return!0===i&&a.setHours(0,0,0,0),a;n.errorHandler(new Error("Invalid date provided: "+l))}}},C=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},E={DAY:864e5};"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},o=0,r=t;o<r.length;o++)i(r[o]);return e});var w=300;"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return s(this,e)},HTMLElement.prototype.flatpickr=function(e){return s([this],e)});var I=function(e,t){return"string"==typeof e?s(window.document.querySelectorAll(e),t):e instanceof Node?s([e],t):s(e,t)};return I.defaultConfig={},I.l10ns={en:l({},u),"default":l({},u)},I.localize=function(e){I.l10ns["default"]=l({},I.l10ns["default"],e)},I.setDefaults=function(e){I.defaultConfig=l({},I.defaultConfig,e)},I.parseDate=T({}),I.formatDate=b({}),I.compareDates=r,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return s(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=I),I}),function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
144),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=433)}({0:function(e,t,n){var i=n(18)("wks"),o=n(14),r=n(1).Symbol,a="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:o)("Symbol."+e))}).store=i},1:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},10:function(e,t,n){var i=n(1),o=n(9),r=n(6),a=n(8),s=n(19),l=function(e,t,n){var d,c,u,h,f=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=p?i:m?i[t]||(i[t]={}):(i[t]||{}).prototype,_=p?o:o[t]||(o[t]={}),b=_.prototype||(_.prototype={});for(d in p&&(n=t),n)u=((c=!f&&y&&void 0!==y[d])?y:n)[d],h=v&&c?s(u,i):g&&"function"==typeof u?s(Function.call,u):u,y&&a(y,d,u,e&l.U),_[d]!=u&&r(_,d,h),g&&b[d]!=u&&(b[d]=u)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},11:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},1129:function(e,t,n){"use strict";n.r(t),n(434)},12:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},13:function(e,t,n){var i=n(17),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},14:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},15:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},16:function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},17:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},18:function(e,t,n){var i=n(9),o=n(1),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(21)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},19:function(e,t,n){var i=n(24);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},2:function(e,t,n){e.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},20:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},21:function(e){e.exports=!1},22:function(e,t,n){var i=n(3);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},24:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},25:function(e,t,n){var i=n(3),o=n(1).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},29:function(e,t,n){e.exports=!n(2)&&!n(5)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},3:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},32:function(e,t,n){var i=n(15);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},36:function(e,t,n){e.exports=n(18)("native-function-to-string",Function.toString)},37:function(e,t,n){var i=n(0)("unscopables"),o=Array.prototype;null==o[i]&&n(6)(o,i,{}),e.exports=function(e){o[i][e]=!0}},4:function(e,t,n){var i=n(3);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},433:function(e,t,n){e.exports=n(1129)},434:function(e,t,n){n(58),function(){"use strict";
144$('[data-toggle="flatpickr"]').each(function(){var e=$(this),t={mode:void 0!==e.data("flatpickr-mode")?e.data("flatpickr-mode"):"single",altInput:void 0===e.data("flatpickr-alt-input")||e.data("flatpickr-alt-input"),altInputClass:void 0!==e.data("flatpickr-alt-input-class")?e.data("flatpickr-alt-input-class"):"form-control flatpickr-input",monthSelectorType:void 0!==e.data("flatpickr-month-selector-type")?e.data("flatpickr-month-selector-type"):"static",altFormat:void 0!==e.data("flatpickr-alt-format")?e.data("flatpickr-alt-format"):"F j, Y",dateFormat:void 0!==e.data("flatpickr-date-format")?e.data("flatpickr-date-format"):"Y-m-d",wrap:void 0!==e.data("flatpickr-wrap")&&e.data("flatpickr-wrap"),inline:void 0!==e.data("flatpickr-inline")&&e.data("flatpickr-inline"),"static":void 0!==e.data("flatpickr-static")&&e.data("flatpickr-static"),enableTime:void 0!==e.data("flatpickr-enable-time")&&e.data("flatpickr-enable-time"),noCalendar:void 0!==e.data("flatpickr-no-calendar")&&e.data("flatpickr-no-calendar"),appendTo:void 0!==e.data("flatpickr-append-to")?document.querySelector(e.data("flatpickr-append-to")):void 0,onChange:function(n,i){t.wrap&&e.find("[data-toggle]").text(i)}};e.flatpickr(t)})}()},5:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},52:function(e,t,n){var i=n(15);e.exports=Array.isArray||function(e){return"Array"==i(e)}},58:function(e,t,n){"use strict";var i=n(10),o=n(64)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),i(i.P+i.F*r,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},6:function(e,t,n){var i=n(7),o=n(20);e.exports=n(2)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},64:function(e,t,n){var i=n(19),o=n(32),r=n(16),a=n(13),s=n(65);e.exports=function(e,t){var n=1==e,l=2==e,d=3==e,c=4==e,u=6==e,h=5==e||u,f=t||s;return function(t,s,p){for(var m,g,v=r(t),y=o(v),_=i(s,p,3),b=a(y.length),T=0,C=n?f(t,b):l?f(t,0):void 0;b>T;T++)if((h||T in y)&&(g=_(m=y[T],T,v),e))if(n)C[T]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return T;case 2:C.push(m)}else if(c)return!1;return u?-1:d||c?c:C}}},65:function(e,t,n){var i=n(66);e.exports=function(e,t){return new(i(e))(t)}},66:function(e,t,n){var i=n(3),o=n(52),r=n(0)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},7:function(e,t,n){var i=n(4),o=n(29),r=n(22),a=Object.defineProperty;t.f=n(2)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},8:function(e,t,n){var i=n(1),o=n(6),r=n(11),a=n(14)("src"),s=n(36),l=(""+s).split("toString");n(9).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var d="function"==typeof n;d&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(d&&(r(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},9:function(e){var t=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=t)}}),function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=480)}({0:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(57))},1:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},10:function(e,t,n){var i=n(33),o=n(13);e.exports=function(e){return i(o(e))}},11:function(e,t,n){var i=n(19),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},12:function(e,t,n){var i=n(0),o=n(9),r=n(3),a=n(21),s=n(35),l=n(24),d=l.get,c=l.enforce,u=String(String).split("String");
144(e.exports=function(e,t,n,s){var l,d=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||r(n,"name")||o(n,"name",t),(l=c(n)).source||(l.source=u.join("string"==typeof t?t:""))),e!==i?(d?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:o(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&d(this).source||s(this)})},13:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},14:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},156:function(e,t,n){"use strict";n.r(t),n.d(t,"hexToRGB",function(){return i}),n(59);var i=function(e,t){var n=parseInt(e.slice(1,3),16),i=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+n+", "+i+", "+o+", "+t+")":"rgb("+n+", "+i+", "+o+")"}},16:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},17:function(e,t,n){var i=n(4);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},18:function(e){e.exports={}},19:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},2:function(e,t,n){var i=n(0),o=n(29),r=n(3),a=n(27),s=n(31),l=n(52),d=o("wks"),c=i.Symbol,u=l?c:c&&c.withoutSetter||a;e.exports=function(e){return r(d,e)||(s&&r(c,e)?d[e]=c[e]:d[e]=u("Symbol."+e)),d[e]}},20:function(e,t,n){var i=n(50),o=n(0),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e])||r(o[e]):i[e]&&i[e][t]||o[e]&&o[e][t]}},21:function(e,t,n){var i=n(0),o=n(9);e.exports=function(e,t){try{o(i,e,t)}catch(n){i[e]=t}return t}},22:function(e,t,n){var i=n(0),o=n(21),r=i["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=r},23:function(e,t,n){var i=n(5),o=n(43),r=n(14),a=n(10),s=n(17),l=n(3),d=n(37),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=a(e),t=s(t,!0),d)try{return c(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},24:function(e,t,n){var i,o,r,a=n(64),s=n(0),l=n(4),d=n(9),c=n(3),u=n(22),h=n(25),f=n(18),p=s.WeakMap;if(a){var m=u.state||(u.state=new p),g=m.get,v=m.has,y=m.set;i=function(e,t){return t.facade=e,y.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},r=function(e){return v.call(m,e)}}else{var _=h("state");f[_]=!0,i=function(e,t){return t.facade=e,d(e,_,t),t},o=function(e){return c(e,_)?e[_]:{}},r=function(e){return c(e,_)}}e.exports={set:i,get:o,has:r,enforce:function(e){return r(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},25:function(e,t,n){var i=n(29),o=n(27),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},26:function(e){e.exports=!1},27:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},28:function(e,t,n){var i=n(5),o=n(1),r=n(3),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(r(s,e))return s[e];t||(t={});var n=[][e],d=!!r(t,"ACCESSORS")&&t.ACCESSORS,c=r(t,0)?t[0]:l,u=r(t,1)?t[1]:void 0;return s[e]=!!n&&!o(function(){if(d&&!i)return!0;var e={length:-1};d?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,c,u)})}},29:function(e,t,n){var i=n(26),o=n(22);
144(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.0",mode:i?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},3:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},30:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},31:function(e,t,n){var i=n(1);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},32:function(e,t,n){var i=n(16);e.exports=Array.isArray||function(e){return"Array"==i(e)}},33:function(e,t,n){var i=n(1),o=n(16),r="".split;e.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?r.call(e,""):Object(e)}:Object},34:function(e,t,n){var i=n(40),o=n(30).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},35:function(e,t,n){var i=n(22),o=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return o.call(e)}),e.exports=i.inspectSource},37:function(e,t,n){var i=n(5),o=n(1),r=n(39);e.exports=!i&&!o(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},38:function(e,t,n){var i=n(19),o=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?o(n+t,0):r(n,t)}},39:function(e,t,n){var i=n(0),o=n(4),r=i.document,a=o(r)&&o(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},4:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},40:function(e,t,n){var i=n(3),o=n(10),r=n(55).indexOf,a=n(18);e.exports=function(e,t){var n,s=o(e),l=0,d=[];for(n in s)!i(a,n)&&i(s,n)&&d.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~r(d,n)||d.push(n));return d}},42:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},43:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},44:function(e,t){t.f=Object.getOwnPropertySymbols},47:function(e,t,n){var i=n(1),o=/#|\.prototype\./,r=function(e,t){var n=s[a(e)];return n==d||n!=l&&("function"==typeof t?i(t):!!t)},a=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=r.data={},l=r.NATIVE="N",d=r.POLYFILL="P";e.exports=r},48:function(e,t,n){var i=n(1),o=n(2),r=n(61),a=o("species");e.exports=function(e){return r>=51||!i(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},480:function(e,t,n){e.exports=n(481)},481:function(e,t,n){"use strict";n.r(t),n.d(t,"settings",function(){return r});var i=n(156),o={plain:{gray:"#E3EBF6",primary:"#5567FF",accent:"#ed0b4b",teal:"#00BCC2",yellow:"#E4A93C",success:"#66BB6A",purple:"#824EE1","dodger-blue":"#5567FF","dodger-blue-20":Object(i.hexToRGB)("#5567FF",.2)},darkMode:{border:"#19191A",bodyBg:"#1D2126"},gray:{300:"#E3EBF6",600:"#95AAC9",700:"#B1BBC9",800:"#152E4D",900:"#5B6066"},primary:{50:"#e3f2fd",100:"#bbdefb",200:"#90c9f9",300:"#63b4f6",400:"#42a4f5",500:"#2196F3",600:"#1f87e5",700:"#1a75d2",800:"#1764c0",900:"#1045a1"},accent:{50:"#fee3e9",100:"#fdb9c8",200:"#fa8ca3",300:"#f75c7f",400:"#f23764",500:"#ed0b4b",600:"#dd024a",700:"#c80047",800:"#b40045",900:"#920041"},success:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66BB6A",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},purple:{500:"#824EE1"},warning:"#E4A93C",black:"#383B3D",white:"#FFFFFF",transparent:"transparent"},r={colors:o,charts:{zeroLineColor:o.gray[300],gridLinesColor:o.gray[300],angleLinesColor:o.gray[300],zeroLineWidth:1,defaultColor:o.gray[600],defaultFontColor:"black",defaultFontFamily:'Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',defaultFontSize:13,colors:{area:Object(i.hexToRGB)(o.primary[500],.24)}}};"undefined"!=typeof window&&(window.settings=r)},49:function(e,t,n){var i=n(3),o=n(65),r=n(23),a=n(7);e.exports=function(e,t){for(var n=o(t),s=a.f,l=r.f,d=0;d<n.length;d++){var c=n[d];i(e,c)||s(e,c,l(t,c))}}},5:function(e,t,n){var i=n(1);e.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}}
144)[1]})},50:function(e,t,n){var i=n(0);e.exports=i},51:function(e,t,n){"use strict";var i=n(17),o=n(7),r=n(14);e.exports=function(e,t,n){var a=i(t);a in e?o.f(e,a,r(0,n)):e[a]=n}},52:function(e,t,n){var i=n(31);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},55:function(e,t,n){var i=n(10),o=n(11),r=n(38),a=function(e){return function(t,n,a){var s,l=i(t),d=o(l.length),c=r(a,d);if(e&&n!=n){for(;d>c;)if((s=l[c++])!=s)return!0}else for(;d>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},57:function(e,t,n){var i,o=n(42);i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(i=window)}e.exports=i},59:function(e,t,n){"use strict";var i=n(8),o=n(4),r=n(32),a=n(38),s=n(11),l=n(10),d=n(51),c=n(2),u=n(48),h=n(28),f=u("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),m=c("species"),g=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var n,i,c,u=l(this),h=s(u.length),f=a(e,h),p=a(void 0===t?h:t,h);if(r(u)&&("function"!=typeof(n=u.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[m])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(u,f,p);for(i=new(void 0===n?Array:n)(v(p-f,0)),c=0;f<p;f++,c++)f in u&&d(i,c,u[f]);return i.length=c,i}})},6:function(e,t,n){var i=n(4);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},61:function(e,t,n){var i,o,r=n(0),a=n(74),s=r.process,l=s&&s.versions,d=l&&l.v8;d?o=(i=d.split("."))[0]+i[1]:a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=i[1]),e.exports=o&&+o},64:function(e,t,n){var i=n(0),o=n(35),r=i.WeakMap;e.exports="function"==typeof r&&/native code/.test(o(r))},65:function(e,t,n){var i=n(20),o=n(34),r=n(44),a=n(6);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=r.f;return n?t.concat(n(e)):t}},7:function(e,t,n){var i=n(5),o=n(37),r=n(6),a=n(17),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},74:function(e,t,n){var i=n(20);e.exports=i("navigator","userAgent")||""},8:function(e,t,n){var i=n(0),o=n(23).f,r=n(9),a=n(12),s=n(21),l=n(49),d=n(47);e.exports=function(e,t){var n,c,u,h,f,p=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[p]||s(p,{}):(i[p]||{}).prototype)for(c in t){if(h=t[c],u=e.noTargetGet?(f=o(n,c))&&f.value:n[c],!d(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==u){if(typeof h==typeof u)continue;l(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),a(n,c,h,e)}}},9:function(e,t,n){var i=n(5),o=n(7),r=n(14);e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}}}),function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(t){return e[t]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=491)}({0:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(57))},1:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},10:function(e,t,n){var i=n(33),o=n(13);e.exports=function(e){return i(o(e))}},106:function(e,t,n){"use strict";var i=n(84).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},108:function(e,t,n){"use strict";var i=n(97),o=n(6),r=n(15),a=n(11),s=n(19),l=n(13),d=n(106),c=n(98),u=Math.max,h=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;i("replace",2,function(e,t,n,i){function g(e,n,i,o,a,s){var l=i+e.length,d=o.length,c=m;
vendor: 4,217 bytes, lines 144-145
144return void 0!==a&&(a=r(a),c=p),t.call(s,c,function(t,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var c=+r;if(0===c)return t;if(c>d){var u=f(c/10);return 0===u?t:u<=d?void 0===o[u-1]?r.charAt(1):o[u-1]+r.charAt(1):t}s=o[c-1]}return void 0===s?"":s})}var v=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=i.REPLACE_KEEPS_$0,_=v?"$":"$0";return[function(n,i){var o=l(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,o,i):t.call(String(o),n,i)},function(e,i){if(!v&&y||"string"==typeof i&&-1===i.indexOf(_)){var r=n(t,e,this,i);if(r.done)return r.value}var l=o(e),f=String(this),p="function"==typeof i;p||(i=String(i));var m=l.global;if(m){var b=l.unicode;l.lastIndex=0}for(var T=[];;){var C=c(l,f);if(null===C)break;if(T.push(C),!m)break;""===String(C[0])&&(l.lastIndex=d(f,a(l.lastIndex),b))}for(var E,w="",I=0,D=0;D<T.length;D++){C=T[D];for(var x=String(C[0]),O=u(h(s(C.index),f.length),0),k=[],S=1;S<C.length;S++)k.push(void 0===(E=C[S])?E:String(E));var R=C.groups;if(p){var $=[x].concat(k,O,f);void 0!==R&&$.push(R);var A=String(i.apply(void 0,$))}else A=g(x,f,O,k,R,i);O>=I&&(w+=f.slice(I,O)+A,I=O+x.length)}return w+f.slice(I)}]})},11:function(e,t,n){var i=n(19),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},110:function(e,t,n){"use strict";var i=n(97),o=n(116),r=n(6),a=n(13),s=n(122),l=n(106),d=n(11),c=n(98),u=n(79),h=n(1),f=[].push,p=Math.min,m=!h(function(){return!RegExp(4294967295,"y")});i("split",2,function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),r=void 0===n?4294967295:n>>>0;if(0===r)return[];if(void 0===e)return[i];if(!o(e))return t.call(i,e,r);for(var s,l,d,c=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,h+"g");(s=u.call(m,i))&&!((l=m.lastIndex)>p&&(c.push(i.slice(p,s.index)),s.length>1&&s.index<i.length&&f.apply(c,s.slice(1)),d=s[0].length,p=l,c.length>=r));)m.lastIndex===s.index&&m.lastIndex++;return p===i.length?!d&&m.test("")||c.push(""):c.push(i.slice(p)),c.length>r?c.slice(0,r):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){ 145var o=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,o,n):i.call(String(o),t,n)},function(e,o){var a=n(i,e,this,o,i!==t);if(a.done)return a.value;var u=r(e),h=String(this),f=s(u,RegExp),g=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),y=new f(m?u:"^(?:"+u.source+")",v),_=void 0===o?4294967295:o>>>0;if(0===_)return[];if(0===h.length)return null===c(y,h)?[h]:[];for(var b=0,T=0,C=[];T<h.length;){y.lastIndex=m?T:0;var E,w=c(y,m?h:h.slice(T));if(null===w||(E=p(d(y.lastIndex+(m?0:T)),h.length))===b)T=l(h,T,g);else{if(C.push(h.slice(b,T)),C.length===_)return C;for(var I=1;I<=w.length-1;I++)if(C.push(w[I]),C.length===_)return C;T=b=E}}return C.push(h.slice(b)),C}]},!m)},111:function(e,t,n){"use strict";function i(e,t){return RegExp(e,t)}var o=n(1);t.UNSUPPORTED_Y=o(function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=o(function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},112:function(e,t,n){"use strict";var i=n(8),o=n(55).indexOf,r=n(77),a=n(28),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,d=r("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:l||!d||!c},{indexOf:function(e){return l?s.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},116:function(e,t,n){var i=n(4),o=n(16),r=n(2)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},117:function(e,t,n){"use strict";var i=n(8),o=n(45).filter,r=n(48),a=n(28),s=r("filter"),l=a("filter");i({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},12:function(e,t,n){var i=n(0),o=n(9),r=n(3),a=n(21),s=n(35),l=n(24),d=l.get,c=l.enforce,u=String(String).split("String");
145(e.exports=function(e,t,n,s){var l,d=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||r(n,"name")||o(n,"name",t),(l=c(n)).source||(l.source=u.join("string"==typeof t?t:""))),e!==i?(d?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:o(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&d(this).source||s(this)})},122:function(e,t,n){var i=n(6),o=n(62),r=n(2)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||null==(n=i(a)[r])?t:o(n)}},127:function(e,t,n){var i=n(16),o=n(0);e.exports="process"==i(o.process)},13:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},136:function(e,t,n){"use strict";var i=n(8),o=n(138).left,r=n(77),a=n(28),s=n(61),l=n(127),d=r("reduce"),c=a("reduce",{1:0});i({target:"Array",proto:!0,forced:!d||!c||!l&&s>79&&s<83},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},138:function(e,t,n){var i=n(62),o=n(15),r=n(33),a=n(11),s=function(e){return function(t,n,s,l){i(n);var d=o(t),c=r(d),u=a(d.length),h=e?u-1:0,f=e?-1:1;if(s<2)for(;;){if(h in c){l=c[h],h+=f;break}if(h+=f,e?h<0:u<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:u>h;h+=f)h in c&&(l=n(l,c[h],h,d));return l}};e.exports={left:s(!1),right:s(!0)}},14:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},15:function(e,t,n){var i=n(13);e.exports=function(e){return Object(i(e))}},16:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},17:function(e,t,n){var i=n(4);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},18:function(e){e.exports={}},19:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},2:function(e,t,n){var i=n(0),o=n(29),r=n(3),a=n(27),s=n(31),l=n(52),d=o("wks"),c=i.Symbol,u=l?c:c&&c.withoutSetter||a;e.exports=function(e){return r(d,e)||(s&&r(c,e)?d[e]=c[e]:d[e]=u("Symbol."+e)),d[e]}},20:function(e,t,n){var i=n(50),o=n(0),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e])||r(o[e]):i[e]&&i[e][t]||o[e]&&o[e][t]}},21:function(e,t,n){var i=n(0),o=n(9);e.exports=function(e,t){try{o(i,e,t)}catch(n){i[e]=t}return t}},2126:function(e,t,n){"use strict";n.r(t),n(46),n(117),n(89),n(112),n(81),n(136),n(59),n(67),n(108),n(110),n(93);var i=n(42),o=n.n(i),r=function m(e,t){for(var n in t)"object"!=o()(t[n])?e[n]=t[n]:m(e[n],t[n])},a=function(e){var t=e.data("add"),n=$(e.data("target")).data("chart");e.is(":checked")?function i(e,t){for(var n in t)Array.isArray(t[n])?t[n].forEach(function(t){e[n].push(t)}):i(e[n],t[n])}(n,t):function o(e,t){for(var n in t)Array.isArray(t[n])?t[n].forEach(function(){e[n].pop()}):o(e[n],t[n])}(n,t),n.update()},s=function(e){var t=e.data("update"),n=$(e.data("target")).data("chart");if(r(n,t),void 0!==e.data("prefix")||void 0!==e.data("suffix")){var i=e.data("prefix")?e.data("prefix"):"",o=e.data("suffix")?e.data("suffix"):"";void 0!==n.options.scales&&(n.options.scales.yAxes[0].ticks.callback=function(e){if(!(e%10))return i+e+o}),n.options.tooltips.callbacks.label=function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=e.yLabel||t.datasets[0].data[e.index],a="";return 1<t.datasets.length&&(a+='<span class="popover-body-label mr-auto">'+n+"</span>"),a+'<span class="popover-body-value">'+i+r+o+"</span>"}}n.update()},l={responsive:!0,maintainAspectRatio:!1,defaultColor:settings.charts.defaultColor,defaultFontColor:settings.charts.defaultFontColor,defaultFontFamily:settings.charts.defaultFontFamily,defaultFontSize:settings.charts.defaultFontSize,layout:{padding:0},legend:{display:!1,position:"bottom",labels:{usePointStyle:!0,padding:16}},elements:{point:{radius:0,backgroundColor:settings.colors.primary[500]},line:{tension:.4,borderWidth:3,borderColor:settings.colors.primary[500],backgroundColor:settings.colors.transparent,borderCapStyle:"rounded"},rectangle:{backgroundColor:settings.colors.primary[500]},arc:{backgroundColor:settings.colors.primary[500],borderColor:settings.colors.white,borderWidth:4}},legendCallback:function(e){var t=e.data,n="",i=e.options.elements.line.borderColor;
145return t.datasets.forEach(function(e,o){var r=t.datasets[o].label,a=t.datasets[o].borderColor||i;n+='<span class="chart-legend-item">',n+='<i class="chart-legend-indicator" style="background-color: '+a+'"></i>',n+=r,n+="</span>"}),n},tooltips:{enabled:!1,mode:"index",intersect:!1,custom:function(e){var t=$("#chart-tooltip");if(t.length||(t=$('<div id="chart-tooltip" class="popover bs-popover-top" role="tooltip"></div>'),$("body").append(t)),0!==e.opacity){if(e.body){var n=e.title||[],i=e.body.map(function(e){return e.lines}),o="";o+='<div class="arrow"></div>',n.forEach(function(e){o+='<h3 class="popover-header text-center">'+e+"</h3>"}),i.forEach(function(t,n){var r='<span class="popover-body-indicator" style="background-color: '+e.labelColors[n].backgroundColor+'"></span>',a=1<i.length?"justify-content-left":"justify-content-center";o+='<div class="popover-body d-flex align-items-center '+a+'">'+r+t+"</div>"}),t.html(o)}var r=$(this._chart.canvas),a=(r.outerWidth(),r.outerHeight(),r.offset().top),s=r.offset().left,l=t.outerWidth(),d=t.outerHeight(),c=a+e.caretY-d-16,u=s+e.caretX-l/2;t.css({top:c+"px",left:u+"px",display:"block"})}else t.css("display","none")},callbacks:{title:function(e,t){return t.labels[e[0].index]},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",i=e.yLabel,o="";return 1<t.datasets.length&&(o+='<span class="popover-body-label mr-auto">'+n+"</span>"),o+'<span class="popover-body-value">'+i+"</span>"}}}},d={cutoutPercentage:83,tooltips:{callbacks:{title:function(e,t){return t.labels[e[0].index]},label:function(e,t){return'<span class="popover-body-value">'+t.datasets[0].data[e.index]+"</span>"}}},legendCallback:function(e){var t=e.data,n="";return t.labels.forEach(function(e,i){var o=t.datasets[0].backgroundColor[i];n+='<span class="chart-legend-item">',n+='<i class="chart-legend-indicator" style="background-color: '+o+'"></i>',n+=e,n+="</span>"}),n}},c=function(e,t){return e.split(".").reduce(function(e,t){return e[t]},t)},u=function(e){var t=$(e).data("chart"),n=e.hasAttribute("data-chart-dark-mode");void 0!==t.options.scales.yAxes[0]&&(t.options.scales.yAxes[0].gridLines={color:n?settings.colors.darkMode.border:settings.charts.gridLinesColor,zeroLineColor:n?settings.colors.darkMode.border:settings.charts.zeroLineColor},t.options.scales.yAxes[0].angleLines={color:n?settings.colors.darkMode.border:settings.charts.angleLinesColor}),"doughnut"===t.config.type&&(t.data.datasets[0].borderColor=n?settings.colors.darkMode.bodyBg:settings.colors.white,t.data.datasets[0].hoverBorderColor=n?settings.colors.darkMode.bodyBg:settings.colors.white);var i=(e.getAttribute("data-chart-line-border-color")||"").split(",").filter(function(e){return!!e}),o=new String(e.getAttribute("data-chart-line-border-opacity")||"1").split(",").filter(function(e){return!!e}),r=(e.getAttribute("data-chart-line-background-color")||"").split(",").filter(function(e){return!!e}),a=new String(e.getAttribute("data-chart-line-background-opacity")||"1").split(",").filter(function(e){return!!e});i.forEach(function(e,n){var i=o[n];-1!==e.indexOf(";")?(e=e.split(";"),i=o[0].split(";"),t.data.datasets[0].borderColor=[],t.data.datasets[0].pointBackgroun
145dColor=[],e.forEach(function(e,n){e=-1!==e.indexOf(".")?c(e,settings.colors):h(settings.colors.plain[e],i[n]),t.data.datasets[0].borderColor.push(e),t.data.datasets[0].pointBackgroundColor.push(settings.colors.white)})):(e=-1!==e.indexOf(".")?c(e,settings.colors):h(settings.colors.plain[e],i),t.data.datasets[n].borderColor=e,t.data.datasets[n].pointBackgroundColor=settings.colors.white)});var s=e.getContext("2d"),l=e.scrollHeight,d=null,u=.001;-1!==t.config.type.toLowerCase().indexOf("bar")&&(u=.2),r.forEach(function(e,n){var i=a[n];if(d=d||-1!==e.indexOf("gradient:"),-1!==(e=e.replace(/gradient\:/gi,"")).indexOf(";"))e=e.split(";"),i=a[0].split(";"),t.data.datasets[0].backgroundColor=[],e.forEach(function(e,n){var o=e;if(e=-1!==e.indexOf(".")?c(e,settings.colors):h(settings.colors.plain[e],i[n]),d){var r=s.createLinearGradient(0,0,0,l);r.addColorStop(0,e),r.addColorStop(1,h(o,u)),e=r}t.data.datasets[0].backgroundColor.push(e)});else{var o;if(-1!==e.indexOf(".")?o=e=c(e,settings.colors):(o=settings.colors.plain[e],e=h(o,i)),d){var r=s.createLinearGradient(0,0,0,l);r.addColorStop(0,e),r.addColorStop(1,h(o,u)),e=r}t.data.datasets[n].backgroundColor=e}}),t.update(),$(e).data("chart-legend")&&(document.querySelector($(e).data("chart-legend")).innerHTML=t.generateLegend())},h=function(e,t){var n=parseInt(e.slice(1,3),16),i=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+n+", "+i+", "+o+", "+t+")":"rgb("+n+", "+i+", "+o+")"},f={settings:settings,init:function(){r(Chart,{defaults:{global:l,doughnut:d}}),Chart.scaleService.updateScaleDefaults("linear",{gridLines:{borderDash:[2],borderDashOffset:[2],color:settings.charts.gridLinesColor,drawBorder:!1,drawTicks:!1,lineWidth:settings.charts.lineWidth,zeroLineWidth:settings.charts.zeroLineWidth,zeroLineColor:settings.charts.zeroLineColor,zeroLineBorderDash:[2],zeroLineBorderDashOffset:[2]},angleLines:{color:settings.charts.angleLinesColor},ticks:{beginAtZero:!0,padding:10,callback:function(e){if(!(e%10))return e}}}),Chart.scaleService.updateScaleDefaults("category",{gridLines:{drawBorder:!1,drawOnChartArea:!1,drawTicks:!1},ticks:{padding:20},maxBarThickness:10}
145),$('[data-toggle="chart"]').on({change:function(){var e=$(this);e.is("[data-add]")&&a(e)},click:function(){var e=$(this);e.is("[data-update]")&&s(e)}})},add:a,update:s,create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"line",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=$(e),r=o.data("chart-prefix")||"",a=o.data("chart-suffix")||"",s=o.data("chart-points"),l=o.data("chart-hide-axes"),d=o.data("chart-disable-tooltips");l&&(n=Chart.helpers.merge({scales:{yAxes:[{display:!1}],xAxes:[{display:!1}]}},n)),"area"===t&&(t="line",n=Chart.helpers.merge({elements:{line:{fill:"start"}}},n)),s&&(n=Chart.helpers.merge({elements:{point:{pointStyle:"circle",radius:4,hoverRadius:4,backgroundColor:settings.colors.white,borderColor:settings.colors.primary[500],borderWidth:2}}},n)),"radar"===t&&(n=Chart.helpers.merge({scale:{ticks:{display:!1,beginAtZero:!0,maxTicksLimit:4},pointLabels:{fontSize:settings.charts.defaultFontSize}}},n)),"roundedBar"===t&&(n=Chart.helpers.merge({barRoundness:1.2},n)),"doughnut"!==t&&"radar"!==t||(n=Chart.helpers.merge({scales:{yAxes:{gridLines:{zeroLineWidth:0}}}},n)),(r.length||a.length)&&(n=Chart.helpers.merge({scales:{yAxes:[{ticks:{callback:function(e){if(!(e%10))return"".concat(r).concat(e).concat(a)}}}]},tooltips:{callbacks:{label:function(e,n){var i=n.datasets[e.datasetIndex].label||"",o=e.yLabel,s="";return"doughnut"===t&&(o=n.datasets[0].data[e.index]),1<n.datasets.length&&(s+='<span class="popover-body-label mr-auto">'+i+"</span>"),s+'<span class="popover-body-value">'.concat(r).concat(o).concat(a,"</span>")}}}},n)),d&&(n=Chart.helpers.merge({tooltips:{enabled:!1,custom:function(){}}},n));var c=new Chart(o,{type:t,options:n,data:i});o.data("chart",c),o.data("chart-legend")&&(document.querySelector(o.data("chart-legend")).innerHTML=c.generateLegend()),u(document.querySelector(e))},applyColors:u,hexToRGB:h};if(void 0!==window){window.Charts=f,f.init();var p=new MutationObserver(function(e){e.forEach(function(e){return u(e.target)})});document.querySelectorAll(".chart-canvas").forEach(function(e){p.observe(e,{attributes:!0,attributeOldValue:!1,attributeFilter:["data-chart-line-border-color","data-chart-line-border-opacity","data-chart-line-background-color","data-chart-line-background-opacity","data-chart-dark-mode"]})})}},22:function(e,t,n){var i=n(0),o=n(21),r=i["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=r},23:function(e,t,n){var i=n(5),o=n(43),r=n(14),a=n(10),s=n(17),l=n(3),d=n(37),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=a(e),t=s(t,!0),d)try{return c(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},24:function(e,t,n){var i,o,r,a=n(64),s=n(0),l=n(4),d=n(9),c=n(3),u=n(22),h=n(25),f=n(18),p=s.WeakMap;if(a){var m=u.state||(u.state=new p),g=m.get,v=m.has,y=m.set;i=function(e,t){return t.facade=e,y.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},r=function(e){return v.call(m,e)}}else{var _=h("state");f[_]=!0,i=function(e,t){return t.facade=e,d(e,_,t),t},o=function(e){return c(e,_)?e[_]:{}},r=function(e){return c(e,_)}}e.exports={set:i,get:o,has:r,enforce:function(e){return r(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},25:function(e,t,n){var i=n(29),o=n(27),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},26:function(e){e.exports=!1},27:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},28:function(e,t,n){var i=n(5),o=n(1),r=n(3),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(r(s,e))return s[e];t||(t={});var n=[][e],d=!!r(t,"ACCESSORS")&&t.ACCESSORS,c=r(t,0)?t[0]:l,u=r(t,1)?t[1]:void 0;return s[e]=!!n&&!o(function(){if(d&&!i)return!0;var e={length:-1};d?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,c,u)})}},29:function(e,t,n){var i=n(26),o=n(22);
145(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.0",mode:i?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},3:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},30:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},31:function(e,t,n){var i=n(1);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},32:function(e,t,n){var i=n(16);e.exports=Array.isArray||function(e){return"Array"==i(e)}},33:function(e,t,n){var i=n(1),o=n(16),r="".split;e.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?r.call(e,""):Object(e)}:Object},34:function(e,t,n){var i=n(40),o=n(30).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},35:function(e,t,n){var i=n(22),o=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return o.call(e)}),e.exports=i.inspectSource},37:function(e,t,n){var i=n(5),o=n(1),r=n(39);e.exports=!i&&!o(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},38:function(e,t,n){var i=n(19),o=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?o(n+t,0):r(n,t)}},39:function(e,t,n){var i=n(0),o=n(4),r=i.document,a=o(r)&&o(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},4:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},40:function(e,t,n){var i=n(3),o=n(10),r=n(55).indexOf,a=n(18);e.exports=function(e,t){var n,s=o(e),l=0,d=[];for(n in s)!i(a,n)&&i(s,n)&&d.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~r(d,n)||d.push(n));return d}},42:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},43:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},44:function(e,t){t.f=Object.getOwnPropertySymbols},45:function(e,t,n){var i=n(53),o=n(33),r=n(15),a=n(11),s=n(60),l=[].push,d=function(e){var t=1==e,n=2==e,d=3==e,c=4==e,u=6==e,h=7==e,f=5==e||u;
vendor: 8,971 bytes, line 145
145return function(p,m,g,v){for(var y,_,b=r(p),T=o(b),C=i(m,g,3),E=a(T.length),w=0,I=v||s,D=t?I(p,E):n||h?I(p,0):void 0;E>w;w++)if((f||w in T)&&(_=C(y=T[w],w,b),e))if(t)D[w]=_;else if(_)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:l.call(D,y)}else switch(e){case 4:return!1;case 7:l.call(D,y)}return u?-1:d||c?c:D}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterOut:d(7)}},46:function(e,t,n){"use strict";var i=n(8),o=n(1),r=n(32),a=n(4),s=n(15),l=n(11),d=n(51),c=n(60),u=n(48),h=n(2),f=n(61),p=h("isConcatSpreadable"),m=f>=51||!o(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),g=u("concat"),v=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:r(e)};i({target:"Array",proto:!0,forced:!m||!g},{concat:function(){var e,t,n,i,o,r=s(this),a=c(r,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(v(o=-1===e?r:arguments[e])){if(u+(i=l(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(t=0;t<i;t++,u++)t in o&&d(a,u,o[t])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");d(a,u++,o)}return a.length=u,a}})},47:function(e,t,n){var i=n(1),o=/#|\.prototype\./,r=function(e,t){var n=s[a(e)];return n==d||n!=l&&("function"==typeof t?i(t):!!t)},a=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=r.data={},l=r.NATIVE="N",d=r.POLYFILL="P";e.exports=r},48:function(e,t,n){var i=n(1),o=n(2),r=n(61),a=o("species");e.exports=function(e){return r>=51||!i(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},49:function(e,t,n){var i=n(3),o=n(65),r=n(23),a=n(7);e.exports=function(e,t){for(var n=o(t),s=a.f,l=r.f,d=0;d<n.length;d++){var c=n[d];i(e,c)||s(e,c,l(t,c))}}},491:function(e,t,n){e.exports=n(2126)},5:function(e,t,n){var i=n(1);e.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},50:function(e,t,n){var i=n(0);e.exports=i},51:function(e,t,n){"use strict";var i=n(17),o=n(7),r=n(14);e.exports=function(e,t,n){var a=i(t);a in e?o.f(e,a,r(0,n)):e[a]=n}},52:function(e,t,n){var i=n(31);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},53:function(e,t,n){var i=n(62);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},55:function(e,t,n){var i=n(10),o=n(11),r=n(38),a=function(e){return function(t,n,a){var s,l=i(t),d=o(l.length),c=r(a,d);if(e&&n!=n){for(;d>c;)if((s=l[c++])!=s)return!0}else for(;d>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},57:function(e,t,n){var i,o=n(42);i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(i=window)}e.exports=i},59:function(e,t,n){"use strict";var i=n(8),o=n(4),r=n(32),a=n(38),s=n(11),l=n(10),d=n(51),c=n(2),u=n(48),h=n(28),f=u("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),m=c("species"),g=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var n,i,c,u=l(this),h=s(u.length),f=a(e,h),p=a(void 0===t?h:t,h);if(r(u)&&("function"!=typeof(n=u.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[m])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(u,f,p);for(i=new(void 0===n?Array:n)(v(p-f,0)),c=0;f<p;f++,c++)f in u&&d(i,c,u[f]);return i.length=c,i}})},6:function(e,t,n){var i=n(4);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},60:function(e,t,n){var i=n(4),o=n(32),r=n(2)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[r])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},61:function(e,t,n){var i,o,r=n(0),a=n(74),s=r.process,l=s&&s.versions,d=l&&l.v8;d?o=(i=d.split("."))[0]+i[1]:a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=i[1]),e.exports=o&&+o},62:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},64:function(e,t,n){var i=n(0),o=n(35),r=i.WeakMap;e.exports="function"==typeof r&&/native code/.test(o(r))},65:function(e,t,n){var i=n(20),o=n(34),r=n(44),a=n(6);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=r.f;return n?t.concat(n(e)):t}},67:function(e,t,n){"use strict";var i=n(8),o=n(79);i({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},68:function(e,t,n){"use strict";var i=n(6);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},7:function(e,t,n){var i=n(5),o=n(37),r=n(6),a=n(17),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},72:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},74:function(e,t,n){var i=n(20);e.exports=i("navigator","userAgent")||""},77:function(e,t,n){"use strict";var i=n(1);e.exports=function(e,t){var n=[][e];return!!n&&i(function(){n.call(null,t||function(){throw 1},1)})}},79:function(e,t,n){"use strict";var i,o,r=n(68),a=n(111),s=RegExp.prototype.exec,l=String.prototype.replace,d=s,c=(i=/a/,o=/b*/g,s.call(i,"a"),s.call(o,"a"),0!==i.lastIndex||0!==o.lastIndex),u=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(c||h||u)&&(d=function(e){var t,n,i,o,a=this,d=u&&a.sticky,f=r.call(a),p=a.source,m=0,g=e;return d&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,m++),n=new RegExp("^(?:"+p+")",f)),h&&(n=new RegExp("^"+p+"$(?!\\s)",f)),c&&(t=a.lastIndex),i=s.call(d?n:a,g),d?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=a.lastIndex,a.lastIndex+=i[0].length):a.lastIndex=0:c&&i&&(a.lastIndex=a.global?i.index+i[0].length:t),h&&i&&i.length>1&&l.call(i[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i}),e.exports=d},8:function(e,t,n){var i=n(0),o=n(23).f,r=n(9),a=n(12),s=n(21),l=n(49),d=n(47);e.exports=function(e,t){var n,c,u,h,f,p=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[p]||s(p,{}):(i[p]||{}).prototype)for(c in t){if(h=t[c],u=e.noTargetGet?(f=o(n,c))&&f.value:n[c],!d(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==u){if(typeof h==typeof u)continue;l(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),a(n,c,h,e)}}},81:function(e,t,n){"use strict";var i=n(8),o=n(45).map,r=n(48),a=n(28),s=r("map"),l=a("map");i({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},84:function(e,t,n){var i=n(19),o=n(13),r=function(e){return function(t,n){var r,a,s=String(o(t)),l=i(n),d=s.length;return l<0||l>=d?e?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===d||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}};e.exports={codeAt:r(!1),charAt:r(!0)}},89:function(e,t,n){"use strict";var i=n(8),o=n(91);i({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},9:function(e,t,n){var i=n(5),o=n(7),r=n(14);e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},91:function(e,t,n){"use strict";var i=n(45).forEach,o=n(77),r=n(28),a=o("forEach"),s=r("forEach");e.exports=a&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},93:function(e,t,n){var i=n(0),o=n(72),r=n(91),a=n(9);for(var s in o){var l=i[s],d=l&&l.prototype;if(d&&d.forEach!==r)try{a(d,"forEach",r)}catch(e){d.forEach=r}}},97:function(e,t,n){"use strict";n(67);var i=n(12),o=n(1),r=n(2),a=n(79),s=n(9),l=r("species"),d=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),c="$0"==="a".replace(/./,"$0"),u=r("replace"),h=!!/./[u]&&""===/./[u]("a","$0"),f=!o(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});e.exports=function(e,t,n,u){var p=r(e),m=!o(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),g=m&&!o(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={}
145,n.constructor[l]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t});if(!m||!g||"replace"===e&&(!d||!c||h)||"split"===e&&!f){var v=/./[p],y=n(p,""[e],function(e,t,n,i,o){return t.exec===a?m&&!o?{done:!0,value:v.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}},{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),_=y[0],b=y[1];i(String.prototype,e,_),i(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}u&&s(RegExp.prototype[p],"sham",!0)}},98:function(e,t,n){var i=n(16),o=n(79);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}}}),function(){"undefined"!=typeof window.CKEDITOR_BASEPATH&&null!==window.CKEDITOR_BASEPATH||(window.CKEDITOR_BASEPATH="/assets/ckeditor/")}.call(this), 146/* 147Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 148For licensing, see LICENSE.md or http://ckeditor.com/license 149*/ 150function(){function e(e,t){CKEDITOR.tools.extend(this,t,{editor:e,id:"cke-"+CKEDITOR.tools.getUniqueId(),area:e._.notificationArea}
150),t.type||(this.type="info"),this.element=this._createElement(),e.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(this.element)}function t(e){var t=this;this.editor=e,this.notifications=[],this.element=this._createElement(),this._uiBuffer=CKEDITOR.tools.eventsBuffer(10,this._layout,this),this._changeBuffer=CKEDITOR.tools.eventsBuffer(500,this._layout,this),e.on("destroy",function(){t._removeListeners(),t.element.remove()})}var n,i,o,r,a,s,l,d,c,u,h,f;window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var e=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,t={timestamp:"H5SC",version:"4.7.1",revision:"08ffd39",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:e},status:"unloaded",basePath:function(){var t=window.CKEDITOR_BASEPATH||"";if(!t)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var o=n[i].src.match(e);if(o){t=o[1];break}}if(-1==t.indexOf(":/")&&"//"!=t.slice(0,2)&&(t=0===t.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+t:location.href.match(/^[^\?]*\/(?:)/)[0]+t),!t)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return t}(),getUrl:function(e){return-1==e.indexOf(":/")&&0!==e.indexOf("/")&&(e=this.basePath+e),this.timestamp&&"/"!=e.charAt(e.length-1)&&!/[&?]t=/.test(e)&&(e+=(0<=e.indexOf("?")?"&":"?")+"t="+this.timestamp),e},domReady:function(){function e(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",e,!1),t()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",e),t())}catch(n){}}function t(){for(var e;e=n.shift();)e()}var n=[];return function(t){function i(){try{document.documentElement.doScroll("left")}catch(h){return void setTimeout(i,1)}e()}if(n.push(t),"complete"===document.readyState&&setTimeout(e,1),1==n.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",e),window.attachEvent("onload",e),t=!1;try{t=!window.frameElement}catch(o){}document.documentElement.doScroll&&t&&i()}}}()},n=window.CKEDITOR_GETURL;if(n){var i=t.getUrl;t.getUrl=function(e){return n.call(t,e)||i.call(t,e)}}return t}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(e){var t,n=CKEDITOR.event.prototype;for(t in n)null==e[t]&&(e[t]=n[t])},CKEDITOR.event.prototype=function(){function e(e){var i=t(this);return i[e]||(i[e]=new n(e))}var t=function(e){return(e=e.getPrivate&&e.getPrivate()||e._||(e._={})).events||(e.events={})},n=function(e){this.name=e,this.listeners=[]};return n.prototype={getListenerIndex:function(e){for(var t=0,n=this.listeners;t<n.length;t++)if(n[t].fn==e)return t;return-1}},{define:function(t,n){var i=e.call(this,t);CKEDITOR.tools.extend(i,n,!0)},on:function(t,n,i,o,r){function a(e,r,a,l){return e={name:t,sender:this,editor:e,data:r,listenerData:o,stop:a,cancel:l,removeListener:s},!1!==n.call(i,e)&&e.data}function s(){d.removeListener(t,n)}var l=e.call(this,t);if(0>l.getListenerIndex(n)){l=l.listeners,i||(i=this),isNaN(r)&&(r=10);var d=this;a.fn=n,a.priority=r;for(var c=l.length-1;0<=c;c--)if(l[c].priority<=r)return l.splice(c+1,0,a),{removeListener:s};l.unshift(a)}return{removeListener:s}},once:function(){var e=Array.prototype.slice.call(arguments),t=e[1];return e[1]=function(e){return e.removeListener(),t.apply(this,arguments)},this.on.apply(this,e)},capture:function(){CKEDITOR.event.useCapture=1;var e=this.on.apply(this,arguments);return CKEDITOR.event.useCapture=0,e},fire:function(){var e=0,n=function(){e=1},i=0,o=function(){i=1};return function(r,a,s){var l=t(this)[r];r=e;var d=i;if((e=i=0,l)&&(u=l.listeners).length)for(var c,u=u.slice(0),h=0;h<u.length;h++){if(l.errorProof)try{c=u[h].call(this,s,a,n,o)}catch(f){}else c=u[h].call(this,s,a,n,o);if(!1===c?i=1:void 0!==c&&(a=c),e||i)break}return a=!i&&(void 0===a||a),e=r,i=d,a}}(),fireOnce:function(e,n,i){return n=this.fire(e,n,i),delete t(this)[e],n},removeListener:function(e,n){var i=t(this)[e];if(i){var o=i.getListenerIndex(n);0<=o&&i.listeners.splice(o,1)}},removeAllListeners:function(){var e,n=t(this);for(e in n)delete n[e]},hasListeners:function(e){return(e=t(this)[e])&&0<e.listeners.length}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]),CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(e,t){return e in{instanceReady:1,loaded:1}&&(this[e]=!0),CKEDITOR.event.prototype.fire.call(this,e,t,this)},CKEDITOR.editor.prototype.fireOnce=function(e,t){return e in{instanceReady:1,loaded:1}&&(this[e]=!0),CKEDITOR.event.prototype.fireOnce.call(this,e,t,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var e=navigator.userAgent.toLowerCase(),t=e.match(/edge[ \/](\d+.?\d*)/),n=-1<e.indexOf("trident/");(n={ie:n=!(!t&&!n),edge:!!t,webkit:!n&&-1<e.indexOf(" applewebkit/"),air:-1<e.indexOf(" adobeair/"),mac:-1<e.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<e.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(e),isCustomDomain:function(){if(!this.ie)return!1;var e=document.domain,t=window.location.hostname;return e!=t&&e!="["+t+"]"},secure:"https:"==location.protocol}).gecko="Gecko"==navigator.product&&!n.webkit&&!n.ie,n.webkit&&(-1<e.indexOf("chrome")?n.chrome=!0:n.safari=!0);var i=0;return n.ie&&(i=t?parseFloat(t[1]):n.quirks||!document.documentMode?parseFloat(e.match(/msie (\d+)/)[1]):document.documentMode,n.ie9Compat=9==i,n.ie8Compat=8==i,n.ie7Compat=7==i,n.ie6Compat=7>
150i||n.quirks),n.gecko&&(t=e.match(/rv:([\d\.]+)/))&&(i=1e4*(t=t[1].split("."))[0]+100*(t[1]||0)+1*(t[2]||0)),n.air&&(i=parseFloat(e.match(/ adobeair\/(\d+)/)[1])),n.webkit&&(i=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),n.version=i,n.isCompatible=!(n.ie&&7>i||n.gecko&&4e4>i||n.webkit&&534>i),n.hidpi=2<=window.devicePixelRatio,n.needsBrFiller=n.gecko||n.webkit||n.ie&&10<i,n.needsNbspFiller=n.ie&&11>i,n.cssClass="cke_browser_"+(n.ie?"ie":n.gecko?"gecko":n.webkit?"webkit":"unknown"),n.quirks&&(n.cssClass+=" cke_browser_quirks"),n.ie&&(n.cssClass+=" cke_browser_ie"+(n.quirks?"6 cke_browser_iequirks":n.version)),n.air&&(n.cssClass+=" cke_browser_air"),n.iOS&&(n.cssClass+=" cke_browser_ios"),n.hidpi&&(n.cssClass+=" cke_hidpi"),n}()),"unloaded"==CKEDITOR.status&&(CKEDITOR.event.implementOn(CKEDITOR),CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var e=document.createElement("script");e.type="text/javascript",e.src=CKEDITOR.basePath+"ckeditor.js",document.getElementsByTagName("head")[0].appendChild(e)}},CKEDITOR.loadFullCoreTimeout=0,CKEDITOR.add=function(e){(this._.pending||(this._.pending=[])).push(e)},CKEDITOR.domReady(function(){var e=CKEDITOR.loadFullCore,t=CKEDITOR.loadFullCoreTimeout;e&&(CKEDITOR.status="basic_ready",e&&e._load?e():t&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1e3*t))}),CKEDITOR.status="basic_loaded"),CKEDITOR.VERBOSITY_WARN=1,CKEDITOR.VERBOSITY_ERROR=2,CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR,CKEDITOR.warn=function(e,t){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:e,additionalData:t})},CKEDITOR.error=function(e,t){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:e,additionalData:t})},CKEDITOR.on("log",function(e){if(window.console&&window.console.log){var t=console[e.data.type]?e.data.type:"log",n=e.data.errorCode;(e=e.data.additionalData)?console[t]("[CKEDITOR] Error code: "+n+".",e):console[t]("[CKEDITOR] Error code: "+n+"."),console[t]("[CKEDITOR] For more information about this error go to http://docs.ckeditor.com/#!/guide/dev_errors-section-"+n)}},null,null,999),CKEDITOR.dom={},n=[],i=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",o=/&/g,r=/>/g,a=/</g,s=/"/g,l=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,d={lt:"<",gt:">",amp:"&",quot:'"',nbsp:"\xa0",shy:"\xad"},c=function(e,t){return"#"==t[0]?String.fromCharCode(parseInt(t.slice(1),10)):d[t]},CKEDITOR.on("reset",function(){n=[]}),CKEDITOR.tools={arrayCompare:function(e,t){if(!e&&!t)return!0;if(!e||!t||e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0},getIndex:function(e,t){for(var n=0;n<e.length;++n)if(t(e[n]))return n;return-1},clone:function(e){var t;if(e&&e instanceof Array){t=[];for(var n=0;n<e.length;n++)t[n]=CKEDITOR.tools.clone(e[n]);return t}if(null===e||"object"!=typeof e||e instanceof String||e instanceof Number||e instanceof Boolean||e instanceof Date||e instanceof RegExp||e.nodeType||e.window===e)return e;for(n in t=new e.constructor,e)t[n]=CKEDITOR.tools.clone(e[n]);return t},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},extend:function(e){var t,n,i=arguments.length;"boolean"==typeof(t=arguments[i-1])?i--:"boolean"==typeof(t=arguments[i-2])&&(n=arguments[i-1],i-=2);for(var o=1;o<i;o++){var r,a=arguments[o];for(r in a)!0!==t&&null!=e[r]||(!n||r in n)&&(e[r]=a[r])}return e},prototypedCopy:function(e){var t=function(){};return t.prototype=e,new t},copy:function(e){var t,n={};for(t in e)n[t]=e[t];return n},isArray:function(e){return"[object Array]"==Object.prototype.toString.call(e)},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},cssVendorPrefix:function(e,t,n){return n?i+e+":"+t+";"+e+":"+t:((n={})[e]=t,n[i+e]=t,n)},cssStyleToDomStyle:function(){var e=document.createElement("div").style,t="undefined"!=typeof e.cssFloat?"cssFloat":"undefined"!=typeof e.styleFloat?"styleFloat":"float";return function(e){return"float"==e?t:e.replace(/-./g,function(e){return e.substr(1).toUpperCase()})}}(),buildStyleHtml:function(e){e=[].concat(e);for(var t,n=[],i=0;i<e.length;i++)(t=e[i])&&(/@import|[{}]/.test(t)?n.push("<style>"+t+"</style>"):n.push('<link type="text/css" rel=stylesheet href="'+t+'">'));return n.join("")},htmlEncode:function(e){return null==e?"":String(e).replace(o,"&").replace(r,">").replace(a,"<")},htmlDecode:function(e){return e.replace(l,c)},htmlEncodeAttr:function(e){return CKEDITOR.tools.htmlEncode(e).replace(s,""")},htmlDecodeAttr:function(e){return CKEDITOR.tools.htmlDecode(e)},transformPlainTextToHtml:function(e,t){var n=t==CKEDITOR.ENTER_BR,i=(i=this.htmlEncode(e.replace(/\r\n/g,"\n"))).replace(/\t/g," "),o=t==CKEDITOR.ENTER_P?"p":"div";
150if(!n){var r=/\n{2}/g;if(r.test(i)){var a="<"+o+">",s="</"+o+">";i=a+i.replace(r,function(){return s+a})+s}}return i=i.replace(/\n/g,"<br>"),n||(i=i.replace(new RegExp("<br>(?=</"+o+">)"),function(e){return CKEDITOR.tools.repeat(e,2)})),(i=i.replace(/^ | $/g," ")).replace(/(>|\s) /g,function(e,t){return t+" "}).replace(/ (?=<)/g," ")},getNextNumber:function(){var e=0;return function(){return++e}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var e="e",t=0;8>t;t++)e+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return e},override:function(e,t){var n=t(e);return n.prototype=e.prototype,n},setTimeout:function(e,t,n,i,o){return o||(o=window),n||(n=o),o.setTimeout(function(){i?e.apply(n,[].concat(i)):e.apply(n)},t||0)},trim:function(){var e=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(t){return t.replace(e,"")}}(),ltrim:function(){var e=/^[ \t\n\r]+/g;return function(t){return t.replace(e,"")}}(),rtrim:function(){var e=/[ \t\n\r]+$/g;return function(t){return t.replace(e,"")}}(),indexOf:function(e,t){if("function"==typeof t){for(var n=0,i=e.length;n<i;n++)if(t(e[n]))return n}else{if(e.indexOf)return e.indexOf(t);for(n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1},search:function(e,t){var n=CKEDITOR.tools.indexOf(e,t);return 0<=n?e[n]:null},bind:function(e,t){return function(){return e.apply(t,arguments)}},createClass:function(e){var t=e.$,n=e.base,i=e.privates||e._,o=e.proto;if(e=e.statics,!t&&(t=function(){n&&this.base.apply(this,arguments)}),i){var r=t;t=function(){var e,t=this._||(this._={});for(e in i){var n=i[e];t[e]="function"==typeof n?CKEDITOR.tools.bind(n,this):n}r.apply(this,arguments)}}return n&&(t.prototype=this.prototypedCopy(n.prototype),t.prototype.constructor=t,t.base=n,t.baseProto=n.prototype,t.prototype.base=function(){this.base=n.prototype.base,n.apply(this,arguments),this.base=arguments.callee}),o&&this.extend(t.prototype,o,!0),e&&this.extend(t,e,!0),t},addFunction:function(e,t){return n.push(function(){return e.apply(t||this,arguments)})-1},removeFunction:function(e){n[e]=null},callFunction:function(e){var t=n[e];return t&&t.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var e,t=/^-?\d+\.?\d*px$/;return function(n){return e=CKEDITOR.tools.trim(n+"")+"px",t.test(e)?e:n||""}}(),convertToPx:function(){var e;return function(t){return e||(e=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document),CKEDITOR.document.getBody().append(e)),/%$/.test(t)?t:(e.setStyle("width",t),e.$.clientWidth)}}(),repeat:function(e,t){return Array(t+1).join(e)},tryThese:function(){for(var e,t=0,n=arguments.length;t<n;t++){var i=arguments[t];try{e=i();break}catch(d){}}return e},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(e){return function(){var t=arguments,n=this;window.setTimeout(function(){e.apply(n,t)},0)}},normalizeCssText:function(e,t){var n,i=[],o=CKEDITOR.tools.parseCssText(e,!0,t);for(n in o)i.push(n+":"+o[n]);return i.sort(),i.length?i.join(";")+";":""},convertRgbToHex:function(e){return e.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(e,t,n,i){for(e=[t,n,i],t=0;3>t;t++)e[t]=("0"+parseInt(e[t],10).toString(16)).slice(-2);return"#"+e.join("")})},normalizeHex:function(e){return e.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(e,t,n,i){return 3==(e=t.toLowerCase()).length&&(e=[(e=e.split(""))[0],e[0],e[1],e[1],e[2],e[2]].join("")),"#"+e+i})},parseCssText:function(e,t,n){var i={};return n&&(e=new CKEDITOR.dom.element("span").setAttribute("style",e).getAttribute("style")||""),e&&(e=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(e))),e&&";"!=e?(e.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,n,o){t&&("font-family"==(n=n.toLowerCase())&&(o=o.replace(/\s*,\s*/g,",")),o=CKEDITOR.tools.trim(o)),i[n]=o}),i):i},writeCssText:function(e,t){var n,i=[];for(n in e)i.push(n+":"+e[n]);return t&&i.sort(),i.join("; ")},objectCompare:function(e,t,n){var i;if(!e&&!t)return!0;
150if(!e||!t)return!1;for(i in e)if(e[i]!=t[i])return!1;if(!n)for(i in t)if(e[i]!=t[i])return!1;return!0},objectKeys:function(e){var t,n=[];for(t in e)n.push(t);return n},convertArrayToObject:function(e,t){var n={};1==arguments.length&&(t=!0);for(var i=0,o=e.length;i<o;++i)n[e[i]]=t;return n},fixDomain:function(){for(var e;;)try{e=window.parent.document.domain;break}catch(o){if(!(e=e?e.replace(/.+?(?:\.|$)/,""):document.domain))break;document.domain=e}return!!e},eventsBuffer:function(e,t,n){function i(){r=(new Date).getTime(),o=!1,n?t.call(n):t()}var o,r=0;return{input:function(){if(!o){var t=(new Date).getTime()-r;t<e?o=setTimeout(i,e-t):i()}},reset:function(){o&&clearTimeout(o),o=r=0}}},enableHtml5Elements:function(e,t){for(var n,i="abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video".split(" "),o=i.length;o--;)n=e.createElement(i[o]),t&&e.appendChild(n)},checkIfAnyArrayItemMatches:function(e,t){for(var n=0,i=e.length;n<i;++n)if(e[n].match(t))return!0;return!1},checkIfAnyObjectPropertyMatches:function(e,t){for(var n in e)if(n.match(t))return!0;return!1},keystrokeToString:function(e,t){var n=16711680&t,i=65535&t,o=CKEDITOR.env.mac,r=[],a=[];return n&CKEDITOR.CTRL&&(r.push(o?"\u2318":e[17]),a.push(o?e[224]:e[17])),n&CKEDITOR.ALT&&(r.push(o?"\u2325":e[18]),a.push(e[18])),n&CKEDITOR.SH
150IFT&&(r.push(o?"\u21e7":e[16]),a.push(e[16])),i&&(e[i]?(r.push(e[i]),a.push(e[i])):(r.push(String.fromCharCode(i)),a.push(String.fromCharCode(i)))),{display:r.join("+"),aria:a.join("+")}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==",getCookie:function(e){e=e.toLowerCase();for(var t,n=document.cookie.split(";"),i=0;i<n.length;i++)if(t=n[i].split("="),decodeURIComponent(CKEDITOR.tools.trim(t[0]).toLowerCase())===e)return decodeURIComponent(1<t.length?t[1]:"");return null},setCookie:function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/"},getCsrfToken:function(){if(!(e=CKEDITOR.tools.getCookie("ckCsrfToken"))||40!=e.length){var e=[],t="";if(window.crypto&&window.crypto.getRandomValues)e=new Uint8Array(40),window.crypto.getRandomValues(e);else for(var n=0;40>n;n++)e.push(Math.floor(256*Math.random()));for(n=0;n<e.length;n++){var i="abcdefghijklmnopqrstuvwxyz0123456789".charAt(e[n]%36);t+=.5<Math.random()?i.toUpperCase():i}e=t,CKEDITOR.tools.setCookie("ckCsrfToken",e)}return e},escapeCss:function(e){return e?window.CSS&&CSS.escape?CSS.escape(e):isNaN(parseInt(e.charAt(0),10))?e:"\\3"+e.charAt(0)+" "+e.substring(1,e.length):""},style:{parse:{_colors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?
150:,\s*[0-9.]+\s*)?\)/gi,background:function(e){var t={},n=this._findColor(e);return n.length&&(t.color=n[0],CKEDITOR.tools.array.forEach(n,function(t){e=e.replace(t,"")})),(e=CKEDITOR.tools.trim(e))&&(t.unprocessed=e),t},margin:function(e){function t(e){n.top=i[e[0]],n.right=i[e[1]],n.bottom=i[e[2]],n.left=i[e[3]]}var n={},i=e.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset)/g)||["0px"];switch(i.length){case 1:t([0,0,0,0]);break;case 2:t([0,1,0,1]);break;case 3:t([0,1,2,1]);break;case 4:t([0,1,2,3])}return n},_findColor:function(e){var t=[],n=CKEDITOR.tools.array;return(t=(t=t.concat(e.match(this._rgbaRegExp)||[])).concat(e.match(this._hslaRegExp)||[])).concat(n.filter(e.split(/\s+/),function(e){return!!e.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)||e.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(e,t,n){var i=[];return this.forEach(e,function(o,r){t.call(n,o,r,e)&&i.push(o)}),i},forEach:function(e,t,n){var i,o=e.length;for(i=0;i<o;i++)t.call(n,e[i],i,e)},map:function(e,t,n){for(var i=[],o=0;o<e.length;o++)i.push(t.call(n,e[o],o,e));return i},reduce:function(e,t,n,i){for(var o=0;o<e.length;o++)n=t.call(i,n,e[o],o,e);return n}},object:{findKey:function(e,t){if("object"!=typeof e)return null;for(var n in e)if(e[n]===t)return n;return null}}},CKEDITOR.tools.array.indexOf=CKEDITOR.tools.indexOf,CKEDITOR.tools.array.isArray=CKEDITOR.tools.isArray,CKEDITOR.dtd=function(){var e=CKEDITOR.tools.extend,t=function(e){for(var t=CKEDITOR.tools.clone(e),n=1;n<arguments.length;n++)for(var i in arguments[n])delete t[i];return t},n={},i={},o={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},r={command:1,link:1,meta:1,noscript:1,script:1,style:1},a={},s={"#":1},l={center:1,dir:1,noframes:1};return e(n,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},s,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1}),e(i,o,n,l),e(t={a:t(n,{a:1,button:1}),abbr:n,address:i,area:a,article:i,aside:i,audio:e({source:1,track:1},i),b:n,base:a,bdi:n,bdo:n,blockquote:i,body:i,br:a,button:t(n,{a:1,button:1}),canvas:n,caption:i,cite:n,code:n,col:a,colgroup:{col:1},command:a,datalist:e({option:1},n),dd:i,del:n,details:e({summary:1},i),dfn:n,div:i,dl:{dt:1,dd:1},dt:i,em:n,embed:a,fieldset:e({legend:1},i),figcaption:i,figure:e({figcaption:1},i),footer:i,form:i,h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:e({title:1,base:1},r),header:i,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:a,html:e({head:1,body:1},i,r),i:n,iframe:s,img:a,input:a,ins:n,kbd:n,keygen:a,label:n,legend:n,li:i,link:a,main:i,map:i,mark:n,menu:e({li:1},i),meta:a,meter:t(n,{meter:1}),nav:i,noscript:e({link:1,meta:1,style:1},n),object:e({param:1},n),ol:{li:1},optgroup:{option:1},option:s,output:n,p:n,param:a,pre:n,progress:t(n,{progress:1}),q:n,rp:n,rt:n,ruby:e({rp:1,rt:1},n),s:n,samp:n,script:s,section:i,select:{optgroup:1,option:1},small:n,source:a,span:n,strong:n,style:s,sub:n,summary:e({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},n),sup:n,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:i,textarea:s,tfoot:{tr:1},th:i,thead:{tr:1},time:t(n,{time:1}),title:s,tr:{th:1,td:1},track:a,u:n,ul:{li:1},"var":n,video:e({source:1,track:1},i),wbr:a,acronym:n,applet:e({param:1},i),basefont:a,big:n,center:i,dialog:a,dir:{li:1},font:n,isindex:a,noframes:i,strike:n,tt:n},{$block:e({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},o,l),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1}
150,$inline:n,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:e({body:1,head:1,html:1},t.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}}),t}(),CKEDITOR.dom.event=function(e){this.$=e},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var e=this.getKey();return(this.$.ctrlKey||this.$.metaKey)&&(e+=CKEDITOR.CTRL),this.$.shiftKey&&(e+=CKEDITOR.SHIFT),this.$.altKey&&(e+=CKEDITOR.ALT),e},preventDefault:function(e){var t=this.$;t.preventDefault?t.preventDefault():t.returnValue=!1,e&&this.stopPropagation()},stopPropagation:function(){var e=this.$;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},getTarget:function(){var e=this.$.target||this.$.srcElement;return e?new CKEDITOR.dom.node(e):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var e=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(e.documentElement.scrollLeft||e.body.scrollLeft),y:this.$.pageY||this.$.clientY+(e.documentElement.scrollTop||e.body.scrollTop)}}}
150,CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(e){e&&(this.$=e)},CKEDITOR.dom.domObject.prototype=function(){var e=function(e,t){return function(n){"undefined"!=typeof CKEDITOR&&e.fire(t,new CKEDITOR.dom.event(n))}};return{getPrivate:function(){var e;return(e=this.getCustomData("_"))||this.setCustomData("_",e={}),e},on:function(t){var n=this.getCustomData("_cke_nativeListeners");return n||(n={},this.setCustomData("_cke_nativeListeners",n)),n[t]||(n=n[t]=e(this,t),this.$.addEventListener?this.$.addEventListener(t,n,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+t,n)),CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(e){if(CKEDITOR.event.prototype.removeListener.apply(this,arguments),!this.hasListeners(e)){var t=this.getCustomData("_cke_nativeListeners"),n=t&&t[e];n&&(this.$.removeEventListener?this.$.removeEventListener(e,n,!1):this.$.detachEvent&&this.$.detachEvent("on"+e,n),delete t[e])}},removeAllListeners:function(){var e,t=this.getCustomData("_cke_nativeListeners");for(e in t){var n=t[e];this.$.detachEvent?this.$.detachEvent("on"+e,n):this.$.removeEventListener&&this.$.removeEventListener(e,n,!1),delete t[e]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(e){var t={};CKEDITOR.on("reset",function(){t={}}),e.equals=function(e){try{return e&&e.$===this.$}catch(r){return!1}},e.setCustomData=function(e,n){var i=this.getUniqueId();return(t[i]||(t[i]={}))[e]=n,this},e.getCustomData=function(e){var n=this.$["data-cke-expando"];return(n=n&&t[n])&&e in n?n[e]:null},e.removeCustomData=function(e){var n,i,o;return(n=(n=this.$["data-cke-expando"])&&t[n])&&(i=n[e],o=e in n,delete n[e]),o?i:null},e.clearCustomData=function(){this.removeAllListeners();var e=this.$["data-cke-expando"];e&&delete t[e]},e.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())},CKEDITOR.event.implementOn(e)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(e){return e?new CKEDITOR.dom[e.nodeType==CKEDITOR.NODE_DOCUMENT?"document":e.nodeType==CKEDITOR.NODE_ELEMENT?"element":e.nodeType==CKEDITOR.NODE_TEXT?"text":e.nodeType==CKEDITOR.NODE_COMMENT?"comment":e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](e):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(e,t){return e.append(this,t),e},clone:function(e,t){function n(i){if(i["data-cke-expando"]&&(i["data-cke-expando"]=!1),(i.nodeType==CKEDITOR.NODE_ELEMENT||i.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(t||i.nodeType!=CKEDITOR.NODE_ELEMENT||i.removeAttribute("id",!1),e)){i=i.childNodes;for(var o=0;o<i.length;o++)n(i[o])}}function i(t){if(t.type==CKEDITOR.NODE_ELEMENT||t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(t.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var n=t.getName();":"==n[0]&&t.renameNode(n.substring(1))}if(e)for(n=0;n<t.getChildCount();n++)i(t.getChild(n))}}var o=this.$.cloneNode(e);return n(o),o=new CKEDITOR.dom.node(o),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&i(o),o},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(e){return e.$.parentNode.insertBefore(this.$,e.$.nextSibling),e},insertBefore:function(e){return e.$.parentNode.insertBefore(this.$,e.$),e},insertBeforeMe:function(e){return this.$.parentNode.insertBefore(e.$,this.$),e},getAddress:function(e){for(var t=[],n=this.getDocument().$.documentElement,i=this.$;i&&i!=n;){var o=i.parentNode;o&&t.unshift(this.getIndex.call({$:i},e)),i=o}return t},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(e){function t(e,i){var o=i?e.nextSibling:e.previousSibling;return o&&o.nodeType==CKEDITOR.NODE_TEXT?n(o)?t(o,i):o:null}function n(e){return!e.nodeValue||e.nodeValue==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE}var i,o=this.$,r=-1;if(!this.$.parentNode||e&&o.nodeType==CKEDITOR.NODE_TEXT&&n(o)&&!t(o)&&!t(o,!0))return-1;
150do{e&&o!=this.$&&o.nodeType==CKEDITOR.NODE_TEXT&&(i||n(o))||(r++,i=o.nodeType==CKEDITOR.NODE_TEXT)}while(o=o.previousSibling);return r},getNextSourceNode:function(e,t,n){if(n&&!n.call){var i=n;n=function(e){return!e.equals(i)}}var o;if(!(e=!e&&this.getFirst&&this.getFirst())){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;e=this.getNext()}for(;!e&&(o=(o||this).getParent());){if(n&&!1===n(o,!0))return null;e=o.getNext()}return!e||n&&!1===n(e)?null:t&&t!=e.type?e.getNextSourceNode(!1,t,n):e},getPreviousSourceNode:function(e,t,n){if(n&&!n.call){var i=n;n=function(e){return!e.equals(i)}}var o;if(!(e=!e&&this.getLast&&this.getLast())){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;e=this.getPrevious()}for(;!e&&(o=(o||this).getParent());){if(n&&!1===n(o,!0))return null;e=o.getPrevious()}return!e||n&&!1===n(e)?null:t&&e.type!=t?e.getPreviousSourceNode(!1,t,n):e},getPrevious:function(e){var t,n=this.$;do{t=(n=n.previousSibling)&&10!=n.nodeType&&new CKEDITOR.dom.node(n)}while(t&&e&&!e(t));return t},getNext:function(e){var t,n=this.$;do{t=(n=n.nextSibling)&&new CKEDITOR.dom.node(n)}while(t&&e&&!e(t)) 151;return t},getParent:function(e){var t=this.$.parentNode;return t&&(t.nodeType==CKEDITOR.NODE_ELEMENT||e&&t.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(t):null},getParents:function(e){var t=this,n=[];do{n[e?"push":"unshift"](t)}while(t=t.getParent());return n},getCommonAncestor:function(e){if(e.equals(this))return this;if(e.contains&&e.contains(this))return e;var t=this.contains?this:this.getParent();do{if(t.contains(e))return t}while(t=t.getParent());return null},getPosition:function(e){var t=this.$,n=e.$;if(t.compareDocumentPosition)return t.compareDocumentPosition(n);if(t==n)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&e.type==CKEDITOR.NODE_ELEMENT){if(t.contains){if(t.contains(n))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(n.contains(t))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in t)return 0>t.sourceIndex||0>n.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:t.sourceIndex<n.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}t=this.getAddress(),e=e.getAddress();n=Math.min(t.length,e.length);for(var i=0;i<n;i++)if(t[i]!=e[i])return t[i]<e[i]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return t.length<e.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(e,t){var n,i,o=this.$;for(t||(o=o.parentNode),"function"==typeof e?(i=!0,n=e):(i=!1,n=function(t){return t="string"==typeof t.nodeName?t.nodeName.toLowerCase():"","string"==typeof e?t==e:t in e});o;){if(n(i?new CKEDITOR.dom.node(o):o))return new CKEDITOR.dom.node(o);try{o=o.parentNode}catch(s){o=null}}return null},hasAscendant:function(e,t){var n=this.$;for(t||(n=n.parentNode);n;){if(n.nodeName&&n.nodeName.toLowerCase()==e)return!0;n=n.parentNode}return!1},move:function(e,t){e.append(this.remove(),t)},remove:function(e){var t=this.$,n=t.parentNode;if(n){if(e)for(;e=t.firstChild;)n.insertBefore(t.removeChild(e),t);n.removeChild(t)}return this},replace:function(e){this.insertBefore(e),e.remove()},trim:function(){this.ltrim(),this.rtrim()},ltrim:function(){for(var e;this.getFirst&&(e=this.getFirst());){if(e.type==CKEDITOR.NODE_TEXT){var t=CKEDITOR.tools.ltrim(e.getText()),n=e.getLength();if(!t){e.remove();continue}t.length<n&&(e.split(n-t.length),this.$.removeChild(this.$.firstChild))}break}},rtrim:function(){for(var e;this.getLast&&(e=this.getLast());){if(e.type==CKEDITOR.NODE_TEXT){var t=CKEDITOR.tools.rtrim(e.getText()),n=e.getLength();if(!t){e.remove();continue}t.length<n&&(e.split(t.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild))}break}CKEDITOR.env.needsBrFiller&&(e=this.$.lastChild)&&1==e.type&&"br"==e.nodeName.toLowerCase()&&e.parentNode.removeChild(e)},isReadOnly:function(e){var t=this;if(this.type!=CKEDITOR.NODE_ELEMENT&&(t=this.getParent()),CKEDITOR.env.edge&&t&&t.is("textarea","input")&&(e=!0),!e&&t&&"undefined"!=typeof t.$.isContentEditable)return!(t.$.isContentEditable||t.data("cke-editable"));for(;t;){if(t.data("cke-editable"))return!1;if(t.hasAttribute("contenteditable"))return"false"==t.getAttribute("contenteditable");t=t.getParent()}return!0}}),CKEDITOR.dom.window=function(e){CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focu
151s()},getViewPaneSize:function(){var e=this.$.document,t="CSS1Compat"==e.compatMode;return{width:(t?e.documentElement.clientWidth:e.body.clientWidth)||0,height:(t?e.documentElement.clientHeight:e.body.clientHeight)||0}},getScrollPosition:function(){var e=this.$;return"pageXOffset"in e?{x:e.pageXOffset||0,y:e.pageYOffset||0}:{x:(e=e.document).documentElement.scrollLeft||e.body.scrollLeft||0,y:e.documentElement.scrollTop||e.body.scrollTop||0}},getFrame:function(){var e=this.$.frameElement;return e?new CKEDITOR.dom.element.get(e):null}}),CKEDITOR.dom.document=function(e){CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(e){if(this.$.createStyleSheet)this.$.createStyleSheet(e);else{var t=new CKEDITOR.dom.element("link");t.setAttributes({rel:"stylesheet",type:"text/css",href:e}),this.getHead().append(t)}},appendStyleText:function(e){if(this.$.createStyleSheet){var t=this.$.createStyleSheet("");t.cssText=e}else{var n=new CKEDITOR.dom.element("style",this);n.append(new CKEDITOR.dom.text(e,this)),this.getHead().append(n)}return t||n.$.sheet},createElement:function(e,t){var n=new CKEDITOR.dom.element(e,this);return t&&(t.attributes&&n.setAttributes(t.attributes),t.styles&&n.setStyles(t.styles)),n},createText:function(e){return new CKEDITOR.dom.text(e,this)},focus:function(){this.getWindow().focus()},getActive:function(){var e;try{e=this.$.activeElement}catch(i){return null}return new CKEDITOR.dom.element(e)},getById:function(e){return(e=this.$.getElementById(e))?new CKEDITOR.dom.element(e):null},getByAddress:function(e,t){for(var n=this.$.documentElement,i=0;n&&i<e.length;i++){var o=e[i];if(t)for(var r=-1,a=0;a<n.childNodes.length;a++){var s=n.childNodes[a];if((!0!==t||3!=s.nodeType||!s.previousSibling||3!=s.previousSibling.nodeType)&&++r==o){n=s;break}}else n=n.childNodes[o]}return n?new CKEDITOR.dom.node(n):null},getElementsByTag:function(e,t){return CKEDITOR.env.ie&&8>=document.documentMode||!t||(e=t+":"+e),new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(e))},getHead:function(){var e=this.$.getElementsByTagName("head")[0];return e?new CKEDITOR.dom.element(e):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(e){this.$.open("text/html","replace"),CKEDITOR.env.ie&&(e=e.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();</script>")),this.$.write(e),this.$.close()},find:function(e){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(e))},findOne:function(e){return(e=this.$.querySelector(e))?new CKEDITOR.dom.element(e):null},_getHtml5ShivFrag:function(){var e=this.getCustomData("html5ShivFrag");return e||(e=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(e,!0),this.setCustomData("html5ShivFrag",e)),e}}),CKEDITOR.dom.nodeList=function(e){this.$=e},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(e){return 0>e||e>=this.$.length?null:(e=this.$[e])?new CKEDITOR.dom.node(e):null}},CKEDITOR.dom.element=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createElement(e)),CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.element.get=function(e){return(e="string"==typeof e?document.getElementById(e)||document.getElementsByName(e)[0]:e)&&(e.$?e:new CKEDITOR.dom.element(e))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(e,t){var n=new CKEDITOR.dom.element("div",t);return n.setHtml(e),n.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(e,t,n,i){var o=t.getCustomData("list_marker_id")||t.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),r=t.getCustomData("list_marker_names")||t.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");return e[o]=t,r[n]=1,t.setCustomData(n,i)},CKEDITOR.dom.element.clearAllMarkers=function(e){for(var t in e)CKEDITOR.dom.element.clearMarkers(e,e[t],1)},CKEDITOR.dom.element.clearMarkers=function(e,t,n){var i,o=t.getCustomData("list_marker_names"),r=t.getCustomData("list_marker_id");for(i in o)t.removeCustomData(i);t.removeCustomData("list_marker_names"),n&&(t.removeCustomData("list_marker_id"),delete e[r])},function(){function e(e,t){return-1<(" "+e+" ").replace(r," ").indexOf(" "+t+" ")}function t(e){var t=!0;return e.$.id||(e.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),t=!1),function(){t||e.removeAttribute("id")}}function n(e,t){var n=CKEDITOR.tools.escapeCss(e.$.id);return"#"+n+" "+t.split(/,\s*/).join(", #"+n+" ")}function i(e){for(var t=0,n=0,i=a[e].length;n<i;n++)t+=parseFloat(this.getComputedStyle(a[e][n])||0,10)||0;return t}var o=void 0!==(o=document.createElement("_").classList)&&null!==String(o.add).match(/\[Native code\]/gi),r=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:o?function(e){return this.$.classList.add(e),this}:function(t){var n=this.$.className;return n&&(e(n,t)||(n+=" "+t)),this.$.className=n||t,this},removeClass:o?function(e){var t=this.$;return t.classList.remove(e),t.className||t.removeAttribute("class"),this}:function(t){var n=this.getAttribute("class");return n&&e(n,t)&&((n=n.replace(new RegExp("(?:^|\\s+)"+t+"(?=\\
151s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",n):this.removeAttribute("class")),this},hasClass:function(t){return e(this.$.className,t)},append:function(e,t){return"string"==typeof e&&(e=this.getDocument().createElement(e)),t?this.$.insertBefore(e.$,this.$.firstChild):this.$.appendChild(e.$),e},appendHtml:function(e){if(this.$.childNodes.length){var t=new CKEDITOR.dom.element("div",this.getDocument());t.setHtml(e),t.moveChildren(this)}else this.setHtml(e)},appendText:function(e){null!=this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?this.$.text+=e:this.append(new CKEDITOR.dom.text(e))},appendBogus:function(e){if(e||CKEDITOR.env.needsBrFiller){for(e=this.getLast();e&&e.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(e.getText());)e=e.getPrevious();e&&e.is&&e.is("br")||(e=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&e.setAttribute("type","_moz"),this.append(e))}},breakParent:function(e,t){var n=new CKEDITOR.dom.range(this.getDocument());n.setStartAfter(this),n.setEndAfter(e);var i,o=n.extractContents(!1,t||!1);if(n.insertNode(this.remove()),CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(n=new CKEDITOR.dom.element("div");i=o.getFirst();)i.$.style.backgroundColor&&(i.$.style.backgroundColor=i.$.style.backgroundColor),n.append(i);n.insertAfter(this),n.remove(!0)}else o.insertAfterNode(this)},contains:document.compareDocumentPosition?function(e){return!!(16&this.$.compareDocumentPosition(e.$))}:function(e){var t=this.$;return e.type!=CKEDITOR.NODE_ELEMENT?t.contains(e.getParent().$):t!=e.$&&t.contains(e.$)},focus:function(){function e(){try{this.$.focus()}catch(n){}}return function(t){t?CKEDITOR.tools.setTimeout(e,100,this):e.call(this)}}(),getHtml:function(){var e=this.$.innerHTML;return CKEDITOR.env.ie?e.replace(/<\?[^>]*>/g,""):e},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var e=this.$.ownerDocument.createElement("div");return e.appendChild(this.$.cloneNode(!0)),e.innerHTML},getClientRect:function(){var e=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());return!e.width&&(e.width=e.right-e.left),!e.height&&(e.height=e.bottom-e.top),e},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(e){try{var t=this.$;if(this.getParent())return t.innerHTML=e;var n=this.getDocument()._getHtml5ShivFrag();return n.appendChild(t),t.innerHTML=e,n.removeChild(t),e}catch(h){for(this.$.innerHTML="",(t=new CKEDITOR.dom.element("body",this.getDocument())).$.innerHTML=e,t=t.getChildren();t.count();)this.append(t.getItem(0));return e}}:function(e){return this.$.innerHTML=e},setText:function(){var e=document.createElement("p");return e.innerHTML="x",e=e.textContent,function(t){this.$[e?"textContent":"innerText"]=t}}(),getAttribute:function(){var e=function(e){return this.$.getAttribute(e,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){switch(e){case"class":e="className";break;case"http-equiv":e="httpEquiv";break;case"name":return this.$.name;case"tabindex":return 0!==(e=this.$.getAttribute(e,2))&&0===this.$.tabIndex&&(e=null),e;case"checked":return((e=this.$.attributes.getNamedItem(e)).specified?e.nodeValue:this.$.checked)?"checked":null;case"hspace":case"value":return this.$[e];case"style":return this.$.style.cssText;case"contenteditable":case"contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(e,2)}:e}(),getAttributes:function(e){var t,n={},i=this.$.attributes;for(e=CKEDITOR.tools.isArray(e)?e:[],t=0;t<i.length;t++)-1===CKEDITOR.tools.indexOf(e,i[t].name)&&(n[i[t].name]=i[t].value);return n},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(e){var t=this.getWindow().$.getComputedStyle(this.$,null);return t?t.getPropertyValue(e):""}:function(e){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(e)]},getDtd:function(){var e=CKEDITOR.dtd[this.getName()];return this.getDtd=function(){return e},e},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var e=this.$.tabIndex;return 0!==e||CKEDITOR.dtd.$tabIndex[this.getName()]||0===parseInt(this.getAttribute("tabindex"),10)?e:-1},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var e=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&8>=document.documentMode){var t=this.$.scopeName;"HTML"!=t&&(e=t.toLowerCase()+":"+e)}return this.getName=function(){return e},this.getName()},getValue:function(){return this.$.value},getFirst:function(e){var t=this.$.firstChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getNext(e)),t},getLast:function(e){var t=this.$.lastChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getPrevious(e)),t}
151,getStyle:function(e){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(e)]},is:function(){var e=this.getName();if("object"==typeof arguments[0])return!!arguments[0][e];for(var t=0;t<arguments.length;t++)if(arguments[t]==e)return!0;return!1},isEditable:function(e){var t=this.getName();return!(this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[t]||CKEDITOR.dtd.$empty[t]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())&&(!1===e||!(!(e=CKEDITOR.dtd[t]||CKEDITOR.dtd.span)||!e["#"]))},isIdentical:function(e){var t=this.clone(0,1);if(e=e.clone(0,1),t.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),e.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),t.$.isEqualNode)return t.$.style.cssText=CKEDITOR.tools.normalizeCssText(t.$.style.cssText),e.$.style.cssText=CKEDITOR.tools.normalizeCssText(e.$.style.cssText),t.$.isEqualNode(e.$);if(t=t.getOuterHtml(),e=e.getOuterHtml(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var n=this.getParent();n.type==CKEDITOR.NODE_ELEMENT&&((n=n.clone()).setHtml(t),t=n.getHtml(),n.setHtml(e),e=n.getHtml())}return t==e},isVisible:function(){var e,t,n=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility");return n&&CKEDITOR.env.webkit&&(!(e=this.getWindow()).equals(CKEDITOR.document.getWindow())&&(t=e.$.frameElement)&&(n=new CKEDITOR.dom.element(t).isVisible())),!!n},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;for(var e=this.getChildren(),t=0,n=e.count();t<n;t++){var i=e.getItem(t);if((i.type!=CKEDITOR.NODE_ELEMENT||!i.data("cke-bookmark"))&&(i.type==CKEDITOR.NODE_ELEMENT&&!i.isEmptyInlineRemoveable()||i.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(i.getText())))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var e=this.$.attributes,t=0;t<e.length;t++){var n=e[t];switch(n.nodeName){case"class":if(this.getAttribute("class"))return!0;case"data-cke-expando":continue;default:if(n.specified)return!0}}return!1}:function(){var e=this.$.attributes,t=e.length,n={"data-cke-expando":1,_moz_dirty:1};return 0<t&&(2<t||!n[e[0].nodeName]||2==t&&!n[e[1].nodeName])},hasAttribute:function(){function e(e){var t=this.$.attributes.getNamedItem(e);if("input"==this.getName())switch(e){case"class":return 0<this.$.className.length;case"checked":return!!this.$.checked;case"value":return"checkbox"==(e=this.getAttribute("type"))||"radio"==e?"on"!=this.$.value:!!this.$.value}return!!t&&t.specified}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(t){return"name"==t?!!this.$.name:e.call(this,t)}:e:function(e){return!!this.$.attributes.getNamedItem(e)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(e,t){var n,i=this.$;if(i!=(e=e.$))if(t)for(;n=i.lastChild;)e.insertBefore(i.removeChild(n),e.firstChild);else for(;n=i.firstChild;)e.appendChild(i.removeChild(n))},mergeSiblings:function(){function e(e,t,n){if(t&&t.type==CKEDITOR.NODE_ELEMENT){for(var i=[];t.data("cke-bookmark")||t.isEmptyInlineRemoveable();)if(i.push(t),!(t=n?t.getNext():t.getPrevious())||t.type!=CKEDITOR.NODE_ELEMENT)return;if(e.isIdentical(t)){for(var o=n?e.getLast():e.getFirst();i.length;)i.shift().move(e,!n);t.moveChildren(e,!n),t.remove(),o&&o.type==CKEDITOR.NODE_ELEMENT&&o.mergeSiblings()}}}return function(t){(!1===t||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))&&(e(this,this.getNext(),!0),e(this,this.getPrevious()))}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var e=function(e,t){return this.$.setAttribute(e,t),this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(t,n){return"class"==t?this.$.className=n:"style"==t?this.$.style.cssText=n:"tabindex"==t?this.$.tabIndex=n:"checked"==t?this.$.checked=n:"contenteditable"==t?e.call(this,"contentEditable",n):e.apply(this,arguments),this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(t,n){if("src"==t&&n.match(/^http:\/\//))try{e.apply(this,arguments)}catch(h){}
151else e.apply(this,arguments);return this}:e}(),setAttributes:function(e){for(var t in e)this.setAttribute(t,e[t]);return this},setValue:function(e){return this.$.value=e,this},removeAttribute:function(){var e=function(e){this.$.removeAttribute(e)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){"class"==e?e="className":"tabindex"==e?e="tabIndex":"contenteditable"==e&&(e="contentEditable"),this.$.removeAttribute(e)}:e}(),removeAttributes:function(e){if(CKEDITOR.tools.isArray(e))for(var t=0;t<e.length;t++)this.removeAttribute(e[t]);else for(t in e=e||this.getAttributes())e.hasOwnProperty(t)&&this.removeAttribute(t)},removeStyle:function(e){if((i=this.$.style).removeProperty||"border"!=e&&"margin"!=e&&"padding"!=e)i.removeProperty?i.removeProperty(e):i.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(e)),this.$.style.cssText||this.removeAttribute("style");else{var t,n=["top","left","right","bottom"];"border"==e&&(t=["color","style","width"]);for(var i=[],o=0;o<n.length;o++)if(t)for(var r=0;r<t.length;r++)i.push([e,n[o],t[r]].join("-"));else i.push([e,n[o]].join("-"));for(e=0;e<i.length;e++)this.removeStyle(i[e])}},setStyle:function(e,t){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(e)]=t,this},setStyles:function(e){for(var t in e)this.setStyle(t,e[t]);return this},setOpacity:function(e){CKEDITOR.env.ie&&9>CKEDITOR.env.version?(e=Math.round(100*e),this.setStyle("filter",100<=e?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+e+")")):this.setStyle("opacity",e)},unselectable:function(){if(this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none")),CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var e=this.getElementsByTag("*"),t=0,n=e.count();t<n;t++)e.getItem(t).setAttribute("unselectable","on")}},getPositionedAncestor:function(){for(var e=this;"html"!=e.getName();){if("static"!=e.getComputedStyle("position"))return e;e=e.getParent()}return null},getDocumentPosition:function(e){var t=0,n=0,i=this.getDocument(),o=i.getBody(),r="BackCompat"==i.$.compatMode;if(!document.documentElement.getBoundingClientRect||CKEDITOR.env.ie&&8===CKEDITOR.env.version)for(l=this,d=null;l&&"body"!=l.getName()&&"html"!=l.getName();){for(t+=l.$.offsetLeft-l.$.scrollLeft,n+=l.$.offsetTop-l.$.scrollTop,l.equals(this)||(t+=l.$.clientLeft||0,n+=l.$.clientTop||0);d&&!d.equals(l);)t-=d.$.scrollLeft,n-=d.$.scrollTop,d=d.getParent();d=l,l=(a=l.$.offsetParent)?new CKEDITOR.dom.element(a):null}else{var a=this.$.getBoundingClientRect(),s=i.$.documentElement,l=s.clientTop||o.$.clientTop||0,d=s.clientLeft||o.$.clientLeft||0,c=!0;CKEDITOR.env.ie&&(c=i.getDocumentElement().contains(this),i=i.getBody().contains(this),c=r&&i||!r&&c),c&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(t=o.$.scrollLeft||s.scrollLeft,n=o.$.scrollTop||s.scrollTop):(t=(n=r?o.$:s).scrollLeft,n=n.scrollTop),t=a.left+t-d,n=a.top+n-l)}return e&&(a=this.getWindow(),l=e.getWindow(),!a.equals(l)&&a.$.frameElement&&(t+=(e=new CKEDITOR.dom.element(a.$.frameElement).getDocumentPosition(e)).x,n+=e.y)),document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||r||(t+=this.$.clientLeft?1:0,n+=this.$.clientTop?1:0),{x:t,y:n}},scrollIntoView:function(e){var n=this.getParent();if(n)do{if((n.$.clientWidth&&n.$.clientWidth<n.$.scrollWidth||n.$.clientHeight&&n.$.clientHeight<n.$.scrollHeight)&&!n.is("body")&&this.scrollIntoParent(n,e,1),n.is("html")){var i=n.getWindow();try{var o=i.$.frameElement;o&&(n=new CKEDITOR.dom.element(o))}catch(t){}}}while(n=n.getParent())},scrollIntoParent:function(e,t,n){function i(t,n){/body|html/.test(e.getName())?e.getWindow().$.scrollBy(t,n):(e.$.scrollLeft+=t,e.$.scrollTop+=n)}function o(e,t){var n={x:0,y:0};if(!e.is(c?"body":"html")){var i=e.$.getBoundingClientRect();n.x=i.left,n.y=i.top}return(i=e.getWindow()).equals(t)||(i=o(CKEDITOR.dom.element.get(i.$.frameElement),t),n.x+=i.x,n.y+=i.y),n}function r(e,t){return parseInt(e.getComputedStyle("margin-"+t)||0,10)||0}var a,s,l,d;!e&&(e=this.getWindow());var c="BackCompat"==(l=e.getDocument()).$.compatMode;e instanceof CKEDITOR.dom.window&&(e=c?l.getBody():l.getDocumentElement()),CKEDITOR.env.webkit&&(l=this.getEditor(!1))&&(l._.previousScrollTop=null),s=o(this,l=e.getWindow());var u=o(e,l),h=this.$.offsetHeight;a=this.$.offsetWidth;var f=e.$.clientHeight,p=e.$.clientWidth;l=s.x-r(this,"left")-u.x||0,d=s.y-r(this,"top")-u.y||0,a=s.x+a+r(this,"right")-(u.x+p)||0,s=s.y+h+r(this,"bottom")-(u.y+f)||0,(0>d||0<s)&&i(0,!0===t?d:!1===t?s:0>d?d:s),n&&(0>l||0<a)&&i(0>l?l:a,0)},setState:function(e,t,n){switch(t=t||"cke",e){case CKEDITOR.TRISTATE_ON:this.addClass(t+"_on"),this.removeClass(t+"_off"),this.removeClass(t+"_disabled"),n&&this.setAttribute("aria-pressed",!0),n&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(t+"_disabled"),this.removeClass(t+"_off"),this.removeClass(t+"_on"),n&&this.setAttribute("aria-disabled",!0),n&&this.removeAttribute("aria-pressed");break;default:this.addClass(t+"_off"),this.removeClass(t+"_on"),this.removeClass(t+"_disabled"),n&&this.removeAttribute("aria-pressed"),n&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var e=this.$;try{e.contentWindow.document}catch(n){e.src=e.src}return e&&new CKEDITOR.dom.document(e.contentWindow.document)},copyAttributes:function(e,t){var n=this.$.attributes;t=t||{};for(var i=0;i<n.length;i++){var o,r=n[i],a=r.nodeName.toLowerCase();a in t||("checked"==a&&(o=this.getAttribute(a))?e.setAttribute(a,o):CKEDITOR.env.ie&&!this.hasAttribute(a)||(null===(o=this.getAttribute(a))&&(o=r.nodeValue),e.setAttribute(a,o)))}""!==this.$.style.cssText&&(e.$.style.cssText=this.$.style.cssText)},renameNode:function(e){if(this.getName()!=e){var t=this.getDocument();e=new CKEDITOR.dom.element(e,t),this.copyAttributes(e),this.moveChildren(e),this.getParent(!0)&&this.$.parentNode.replaceChild(e.$,this.$),e.$["data-cke-expando"]=this.$["data-cke-expando"],this.$=e.$,delete this.getName}},getChild:function(){function e(e,t){var n=e.childNodes;if(0<=t&&t<n.length)return n[t]}return function(t){var n=this.$;
151if(t.slice)for(t=t.slice();0<t.length&&n;)n=e(n,t.shift());else n=e(n,t);return n?new CKEDITOR.dom.node(n):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function e(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_enable_context_menu")}this.on("contextmenu",function(t){t.data.getTarget().getAscendant(e,!0)||t.data.preventDefault()})},getDirection:function(e){return e?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(e,t){return e="data-"+e,void 0===t?this.getAttribute(e):(!1===t?this.removeAttribute(e):this.setAttribute(e,t),null)},getEditor:function(e){var t,n,i,o=CKEDITOR.instances;for(t in e=e||void 0===e,o)if((n=o[t]).element.equals(this)&&n.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!e&&(i=n.editable())&&(i.equals(this)||i.contains(this)))return n;return null},find:function(e){var i=t(this);return e=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(n(this,e))),i(),e},findOne:function(e){var i=t(this);return e=this.$.querySelector(n(this,e)),i(),e?new CKEDITOR.dom.element(e):null},forEach:function(e,t,n){if(!(n||t&&this.type!=t))var i=e(this);if(!1!==i){n=this.getChildren();for(var o=0;o<n.count();o++)(i=n.getItem(o)).type==CKEDITOR.NODE_ELEMENT?i.forEach(e,t):t&&i.type!=t||e(i)}}});var a={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(e,t,n){"number"==typeof t&&(!n||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(t-=i.call(this,e)),this.setStyle(e,t+"px"))},CKEDITOR.dom.element.prototype.getSize=function(e,t){var n=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(e)],this.$["client"+CKEDITOR.tools.capitalize(e)])||0;return t&&(n-=i.call(this,e)),n}}(),CKEDITOR.dom.documentFragment=function(e){e=e||CKEDITOR.document,this.$=e.type==CKEDITOR.NODE_DOCUMENT?e.$.createDocumentFragment():e},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(e){(e=e.$).parentNode.insertBefore(this.$,e.nextSibling)},getHtml:function(){var e=new CKEDITOR.dom.element("div");return this.clone(1,1).appendTo(e),e.getHtml().replace(/\s*data-cke-expando=".*?"/g,"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function e(e,t){var n=this.range;if(this._.end)return null;if(!this._.start){if(this._.start=1,n.collapsed)return this.end(),null;n.optimize()}var i,o=n.startContainer;i=n.endContainer;var r,a=n.startOffset,s=n.endOffset,l=this.guard,d=this.type,c=e?"getPreviousSourceNode":"getNextSourceNode";if(!e&&!this._.guardLTR){var u=i.type==CKEDITOR.NODE_ELEMENT?i:i.getParent(),h=i.type==CKEDITOR.NODE_ELEMENT?i.getChild(s):i.getNext();this._.guardLTR=function(e,t){return!(t&&u.equals(e)||h&&e.equals(h)||e.type==CKEDITOR.NODE_ELEMENT&&t&&e.equals(n.root))}}if(e&&!this._.guardRTL){var f=o.type==CKEDITOR.NODE_ELEMENT?o:o.getParent(),p=o.type==CKEDITOR.NODE_ELEMENT?a?o.getChild(a-1):null:o.getPrevious();this._.guardRTL=function(e,t){return!(t&&f.equals(e)||p&&e.equals(p)||e.type==CKEDITOR.NODE_ELEMENT&&t&&e.equals(n.root))}}var m=e?this._.guardRTL:this._.guardLTR;for(r=l?function(e,t){return!1!==m(e,t)&&l(e,t)}:m,this.current?i=this.current[c](!1,d,r):(e?i.type==CKEDITOR.NODE_ELEMENT&&(i=0<s?i.getChild(s-1):!1===r(i,!0)?null:i.getPreviousSourceNode(!0,d,r)):(i=o).type==CKEDITOR.NODE_ELEMENT&&((i=i.getChild(a))||(i=!1===r(o,!0)?null:o.getNextSourceNode(!0,d,r))),i&&!1===r(i)&&(i=null));i&&!this._.end;){if(this.current=i,this.evaluator&&!1===this.evaluator(i)){if(t&&this.evaluator)return!1}else if(!t)return i;i=i[c](!1,d,r)}return this.end(),this.current=null}function t(t){for(var n,i=null;n=e.call(this,t);)i=n;return i}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(e){this.range=e,this._={}},proto:{end:function(){this._.end=1},next:function(){return e.call(this)},previous:function(){return e.call(this,1)},checkForward:function(){return!1!==e.call(this,0,1)},checkBackward:function(){return!1!==e.call(this,1,1)},lastForward:function(){return t.call(this)},lastBackward:function(){return t.call(this,1)},reset:function(){delete this.current,this._={}}}});var n={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},i={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(e){return!("none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in i||!n[this.getComputedStyle("display")])||!!(this.is(CKEDITOR.dtd.$block)||e&&this.is(e))},CKEDITOR.dom.walker.blockBoundary=function(e){return function(t){return!(t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary(e))}},CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})},CKEDITOR.dom.walker.bookmark=function(e,t){function n(e){return e&&e.getName&&"span"==e.getName()&&e.data("cke-bookmark")}return function(i){var o,r;return o=i&&i.type!=CKEDITOR.NODE_ELEMENT&&(r=i.getParent())&&n(r),o=e?o:o||n(i),!!(t^o)}}
151,CKEDITOR.dom.walker.whitespaces=function(e){return function(t){var n;return t&&t.type==CKEDITOR.NODE_TEXT&&(n=!CKEDITOR.tools.trim(t.getText())||CKEDITOR.env.webkit&&t.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE),!!(e^n)}},CKEDITOR.dom.walker.invisible=function(e){var t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.env.webkit?1:0;return function(i){return t(i)?i=1:(i.type==CKEDITOR.NODE_TEXT&&(i=i.getParent()),i=i.$.offsetWidth<=n),!!(e^i)}},CKEDITOR.dom.walker.nodeType=function(e,t){return function(n){return!!(t^n.type==e)}},CKEDITOR.dom.walker.bogus=function(e){function t(e){return!r(e)&&!a(e)}return function(n){var i=CKEDITOR.env.needsBrFiller?n.is&&n.is("br"):n.getText&&o.test(n.getText());return i&&(i=n.getParent(),n=n.getNext(t),i=i.isBlockBoundary()&&(!n||n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary())),!!(e^i)}},CKEDITOR.dom.walker.temp=function(e){return function(t){return t.type!=CKEDITOR.NODE_ELEMENT&&(t=t.getParent()),t=t&&t.hasAttribute("data-cke-temp"),!!(e^t)}};var o=/^[\t\r\n ]*(?: |\xa0)$/,r=CKEDITOR.dom.walker.whitespaces(),a=CKEDITOR.dom.walker.bookmark(),s=CKEDITOR.dom.walker.temp(),l=function(e){return a(e)||r(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$inline)&&!e.is(CKEDITOR.dtd.$empty)};CKEDITOR.dom.walker.ignored=function(e){return function(t){return t=r(t)||a(t)||s(t),!!(e^t)}};var d=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(e){return function(t){for(var n=0,i=t.getChildCount();n<i;++n)if(!d(t.getChild(n)))return!!e;return!e}};var c=CKEDITOR.dom.walker.empty(),u=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(e){var t,n={};for(t in e)CKEDITOR.dtd[t]["#"]&&(n[t]=1);return n}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(e){return function(t){return t=!d(t)&&!!(t.type==CKEDITOR.NODE_TEXT||t.type==CKEDITOR.NODE_ELEMENT&&(t.is(CKEDITOR.dtd.$inline)||t.is("hr")||"false"==t.getAttribute("contenteditable")||!CKEDITOR.env.needsBrFiller&&t.is(u)&&c(t))),!!(e^t)}},CKEDITOR.dom.element.prototype.getBogus=function(){var e=this;do{e=e.getPreviousSourceNode()}while(l(e));return!(!e||!(CKEDITOR.env.needsBrFiller?e.is&&e.is("br"):e.getText&&o.test(e.getText())))&&e}}(),CKEDITOR.dom.range=function(e){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null,this.collapsed=!0;var t=e instanceof CKEDITOR.dom.document;this.document=t?e:e.getDocument(),this.root=t?e.getBody():e},function(){function e(e){e.collapsed=e.startContainer&&e.endContainer&&e.startContainer.equals(e.endContainer)&&e.startOffset==e.endOffset}function t(e,t,n,i,o){function r(e,t,n,i){var r=n?e.getPrevious():e.getNext();return i&&l?r:(c||i?t.append(e.clone(!0,o),n):(e.remove(),d&&t.append(e)),r)}function a(){var e,t,n,i=Math.min(w.length,I.length);for(e=0;e<i;e++)if(t=w[e],n=I[e],!t.equals(n))return e;return e-1}function s(){var t=D-1,n=f&&p&&!v.equals(y) 152;t<x-1||t<O-1||n?(n?e.moveToPosition(y,CKEDITOR.POSITION_BEFORE_START):O==t+1&&h?e.moveToPosition(I[t],CKEDITOR.POSITION_BEFORE_END):e.moveToPosition(I[t+1],CKEDITOR.POSITION_BEFORE_START),i&&(t=w[t+1])&&t.type==CKEDITOR.NODE_ELEMENT&&((n=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',e.document)).insertAfter(t),t.mergeSiblings(!1),e.moveToBookmark({startNode:n}))):e.collapse(!0)}e.optimizeBookmark();var l=0===t,d=1==t,c=2==t;t=c||d;var u,h,f,p,m,g,v=e.startContainer,y=e.endContainer,_=e.startOffset,b=e.endOffset;if(c&&y.type==CKEDITOR.NODE_TEXT&&v.equals(y))v=e.document.createText(v.substring(_,b)),n.append(v);else{y.type==CKEDITOR.NODE_TEXT?c?g=!0:y=y.split(b):0<y.getChildCount()?b>=y.getChildCount()?(y=y.getChild(b-1),h=!0):y=y.getChild(b):p=h=!0,v.type==CKEDITOR.NODE_TEXT?c?m=!0:v.split(_):0<v.getChildCount()?0===_?(v=v.getChild(_),u=!0):v=v.getChild(_-1):f=u=!0;for(var T,C,E,w=v.getParents(),I=y.getParents(),D=a(),x=w.length-1,O=I.length-1,k=n,S=-1,R=D;R<=x;R++){for(E=(C=w[R]).getNext(),R!=x||C.equals(I[R])&&x<O?t&&(T=k.append(C.clone(0,o))):u?r(C,k,!1,f):m&&k.append(e.document.createText(C.substring(_)));E;){if(E.equals(I[R])){S=R;break}E=r(E,k)}k=T}for(k=n,R=D;R<=O;R++)if(E=(n=I[R]).getPrevious(),n.equals(w[R]))t&&(k=k.getChild(0));else{if(R!=O||n.equals(w[R])&&O<x?t&&(T=k.append(n.clone(0,o))):h?r(n,k,!1,p):g&&k.append(e.document.createText(n.substring(0,b))),R>S)for(;E;)E=r(E,k,!0);k=T}c||s()}}
152function n(){var e=!1,t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(!0),i=CKEDITOR.dom.walker.bogus();return function(o){return!(!n(o)&&!t(o))||(i(o)&&!e?e=!0:!(o.type==CKEDITOR.NODE_TEXT&&(o.hasAscendant("pre")||CKEDITOR.tools.trim(o.getText()).length)||o.type==CKEDITOR.NODE_ELEMENT&&!o.is(r)))}}function i(e){var t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(1);return function(i){return!(!n(i)&&!t(i))||(!e&&a(i)||i.type==CKEDITOR.NODE_ELEMENT&&i.is(CKEDITOR.dtd.$removeEmpty))}}function o(e){return function(){var t;return this[e?"getPreviousNode":"getNextNode"](function(e){return!t&&d(e)&&(t=e),l(e)&&!(a(e)&&e.equals(t))})}}var r={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},a=CKEDITOR.dom.walker.bogus(),s=/^[\t\r\n ]*(?: |\xa0)$/,l=CKEDITOR.dom.walker.editable(),d=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var e=new CKEDITOR.dom.range(this.root);return e._setStartContainer(this.startContainer),e.startOffset=this.startOffset,e._setEndContainer(this.endContainer),e.endOffset=this.endOffset,e.collapsed=this.collapsed,e},collapse:function(e){e?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),this.startOffset=this.endOffset),this.collapsed=!0},cloneContents:function(e){var n=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||t(this,2,n,!1,void 0===e||e),n},deleteContents:function(e){this.collapsed||t(this,0,null,e)},extractContents:function(e,n){var i=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||t(this,1,i,e,void 0===n||n),i},createBookmark:function(e){var t,n,i,o,r=this.collapsed;return(t=this.document.createElement("span")).data("cke-bookmark",1),t.setStyle("display","none"),t.setHtml(" "),e&&(i="cke_bm_"+CKEDITOR.tools.getNextNumber(),t.setAttribute("id",i+(r?"C":"S"))),r||((n=t.clone()).setHtml(" "),e&&n.setAttribute("id",i+"E"),(o=this.clone()).collapse(),o.insertNode(n)),(o=this.clone()).collapse(!0),o.insertNode(t),n?(this.setStartAfter(t),this.setEndBefore(n)):this.moveToPosition(t,CKEDITOR.POSITION_AFTER_END),{startNode:e?i+(r?"C":"S"):t,endNode:e?i+"E":n,serializable:e,collapsed:r}},createBookmark2:function(){function e(e){var t,i=e.container,o=e.offset,r=o;
152if((t=(t=i).type!=CKEDITOR.NODE_ELEMENT||0===r||r==t.getChildCount()?0:t.getChild(r-1).type==CKEDITOR.NODE_TEXT&&t.getChild(r).type==CKEDITOR.NODE_TEXT)&&(o=(i=i.getChild(o-1)).getLength()),i.type==CKEDITOR.NODE_ELEMENT&&0<o){e:{for(t=i;o--;)if(0<=(r=t.getChild(o).getIndex(!0))){o=r;break e}o=-1}o+=1}if(i.type==CKEDITOR.NODE_TEXT){for(t=i,r=0;(t=t.getPrevious())&&t.type==CKEDITOR.NODE_TEXT;)r+=t.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;t=r,i.getText()?o+=t:(r=i.getPrevious(n),t?(o=t,i=r?r.getNext():i.getParent().getFirst()):(i=i.getParent(),o=r?r.getIndex(!0)+1:0))}e.container=i,e.offset=o}function t(e,t){var n=t.getCustomData("cke-fillingChar");if(n){var i=e.container;n.equals(i)&&(e.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,0>=e.offset&&(e.offset=i.getIndex(),e.container=i.getParent()))}}var n=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(n){var i=this.collapsed,o={container:this.startContainer,offset:this.startOffset},r={container:this.endContainer,offset:this.endOffset};return n&&(e(o),t(o,this.root),i||(e(r),t(r,this.root))),{start:o.container.getAddress(n),end:i?null:r.container.getAddress(n),startOffset:o.offset,endOffset:r.offset,normalized:n,collapsed:i,is2:!0}}}(),moveToBookmark:function(e){if(e.is2){var t=this.document.getByAddress(e.start,e.normalized),n=e.startOffset,i=e.end&&this.document.getByAddress(e.end,e.normalized);e=e.endOffset,this.setStart(t,n),i?this.setEnd(i,e):this.collapse(!0)}else t=(n=e.serializable)?this.document.getById(e.startNode):e.startNode,e=n?this.document.getById(e.endNode):e.endNode,this.setStartBefore(t),t.remove(),e?(this.setEndBefore(e),e.remove()):this.collapse(!0)},getBoundaryNodes:function(){var e,t=this.startContainer,n=this.endContainer,i=this.startOffset,o=this.endOffset;if(t.type==CKEDITOR.NODE_ELEMENT)if((e=t.getChildCount())>i)t=t.getChild(i);else if(1>e)t=t.getPreviousSourceNode();else{for(t=t.$;t.lastChild;)t=t.lastChild;t=(t=new CKEDITOR.dom.node(t)).getNextSourceNode()||t}if(n.type==CKEDITOR.NODE_ELEMENT)if((e=n.getChildCount())>o)n=n.getChild(o).getPreviousSourceNode(!0);else if(1>e)n=n.getPreviousSourceNode();else{for(n=n.$;n.lastChild;)n=n.lastChild;n=new CKEDITOR.dom.node(n)}return t.getPosition(n)&CKEDITOR.POSITION_FOLLOWING&&(t=n),{startNode:t,endNode:n}},getCommonAncestor:function(e,t){var n=this.startContainer,i=this.endContainer;n=n.equals(i)?e&&n.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?n.getChild(this.startOffset):n:n.getCommonAncestor(i);return t&&!n.is?n.getParent():n},optimize:function(){var e=this.startContainer,t=this.startOffset;e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setStartAfter(e):this.setStartBefore(e)),e=this.endContainer,t=this.endOffset,e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setEndAfter(e):this.setEndBefore(e))},optimizeBookmark:function(){var e=this.startContainer,t=this.endContainer;e.is&&e.is("span")&&e.data("cke-bookmark")&&this.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),t&&t.is&&t.is("span")&&t.data("cke-bookmark")&&this.setEndAt(t,CKEDITOR.POSITION_AFTER_END)},trim:function(e,t){var n=this.startContainer,i=this.startOffset,o=this.collapsed;if((!e||o)&&n&&n.type==CKEDITOR.NODE_TEXT){if(i)if(i>=n.getLength())i=n.getIndex()+1,n=n.getParent();else{var r=n.split(i);i=n.getIndex()+1,n=n.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(r,this.endOffset-this.startOffset):n.equals(this.endContainer)&&(this.endOffset+=1)}else i=n.getIndex(),n=n.getParent();if(this.setStart(n,i),o)return void this.collapse(!0)}n=this.endContainer,i=this.endOffset,t||o||!n||n.type!=CKEDITOR.NODE_TEXT||(i?(i>=n.getLength()||n.split(i),i=n.getIndex()+1):i=n.getIndex(),n=n.getParent(),this.setEnd(n,i))},enlarge:function(e,t){function n(e){return e&&e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("contenteditable")?null:e}var i=new RegExp(/[^\s\ufeff]/);switch(e){case CKEDITOR.ENLARGE_INLINE:var o=1;case CKEDITOR.ENLARGE_ELEMENT:var r=function(e,t){var n,o;for((n=new CKEDITOR.dom.range(p)).setStart(e,t),n.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),(n=new CKEDITOR.dom.walker(n)).guard=function(e){return!(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary())};o=n.next();){if(o.type!=CKEDITOR.NODE_TEXT)return!1;if(h=o!=e?o.getText():o.substring(t),i.test(h))return!1}return!0};if(this.collapsed)break;var a,s,l,d,c,u,h,f=this.getCommonAncestor(),p=this.root,m=!1;u=this.startContainer;var g=this.startOffset;for(u.type==CKEDITOR.NODE_TEXT?(g&&(m=!!(u=!CKEDITOR.tools.trim(u.substring(0,g)).length&&u)),u&&((d=u.getPrevious())||(l=u.getParent()))):(g&&(d=u.getChild(g-1)||u.getLast()),d||(l=u)),l=n(l);l||d;){if(l&&!d){if(!c&&l.equals(f)&&(c=!0),o?l.isBlockBoundary():!p.contains(l))break;m&&"inline"==l.getComputedStyle("display")||(m=!1,c?a=l:this.setStartBefore(l)),d=l.getPrevious()}for(;d;)if(u=!1,d.type==CKEDITOR.NODE_COMMENT)d=d.getPrevious();else{if(d.type==CKEDITOR.NODE_TEXT)h=d.getText(),i.test(h)&&(d=null),u=/[\s\ufeff]$/.test(h);else if((d.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||t&&d.is("br"))&&!d.data("cke-bookmark"))if(m&&CKEDITOR.dtd.$removeEmpty[d.getName()]){if
152(h=d.getText(),i.test(h))d=null;else{g=d.$.getElementsByTagName("*");for(var v,y=0;v=g[y++];)if(!CKEDITOR.dtd.$removeEmpty[v.nodeName.toLowerCase()]){d=null;break}}d&&(u=!!h.length)}else d=null;if(u&&(m?c?a=l:l&&this.setStartBefore(l):m=!0),d){if(u=d.getPrevious(),!l&&!u){l=d,d=null;break}d=u}else l=null}l&&(l=n(l.getParent()))}for(u=this.endContainer,g=this.endOffset,l=d=null,c=m=!1,u.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(u.substring(g)).length?m=!0:(m=!u.getLength(),g==u.getLength()?(d=u.getNext())||(l=u.getParent()):r(u,g)&&(l=u.getParent())):(d=u.getChild(g))||(l=u);l||d;){if(l&&!d){if(!c&&l.equals(f)&&(c=!0),o?l.isBlockBoundary():!p.contains(l))break;m&&"inline"==l.getComputedStyle("display")||(m=!1,c?s=l:l&&this.setEndAfter(l)),d=l.getNext()}for(;d;){if(u=!1,d.type==CKEDITOR.NODE_TEXT)h=d.getText(),r(d,0)||(d=null),u=/^[\s\ufeff]/.test(h);else if(d.type==CKEDITOR.NODE_ELEMENT){if((0<d.$.offsetWidth||t&&d.is("br"))&&!d.data("cke-bookmark"))if(m&&CKEDITOR.dtd.$removeEmpty[d.getName()]){if(h=d.getText(),i.test(h))d=null;else for(g=d.$.getElementsByTagName("*"),y=0;v=g[y++];)if(!CKEDITOR.dtd.$removeEmpty[v.nodeName.toLowerCase()]){d=null;break}d&&(u=!!h.length)}else d=null}else u=1;if(u&&m&&(c?s=l:this.setEndAfter(l)),d){if(u=d.getNext(),!l&&!u){l=d,d=null;break}d=u}else l=null}l&&(l=n(l.getParent()))}a&&s&&(f=a.contains(s)?s:a,this.setStartBefore(f),this.setEndAfter(f));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:l=new CKEDITOR.dom.range(this.root),p=this.root,l.setStartAt(p,CKEDITOR.POSITION_AFTER_START),l.setEnd(this.startContainer,this.startOffset),l=new CKEDITOR.dom.walker(l);var _,b,T=CKEDITOR.dom.walker.blockBoundary(e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),C=null,E=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&"false"==e.getAttribute("contenteditable"))if(C){if(C.equals(e))return void(C=null)}else C=e;else if(C)return;var t=T(e);return t||(_=e),t};o=function(e){var t=E(e);return!t&&e.is&&e.is("br")&&(b=e),t};if(l.guard=E,l=l.lastBackward(),_=_||p,this.setStartAt(_,!_.is("br")&&(!l&&this.checkStartOfBlock()||l&&_.contains(l))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END),e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){l=this.clone(),l=new CKEDITOR.dom.walker(l);var w=CKEDITOR.dom.walker.whitespaces(),I=CKEDITOR.dom.walker.bookmark();if(l.evaluator=function(e){return!w(e)&&!I(e)},(l=l.previous())&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("br"))break}(l=this.clone()).collapse(),l.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),(l=new CKEDITOR.dom.walker(l)).guard=e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?o:E,_=C=b=null,l=l.lastForward(),_=_||p,this.setEndAt(_,!l&&this.checkEndOfBlock()||l&&_.contains(l)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START),b&&this.setEndAfter(b)}},shrink:function(e,t,n){var i="boolean"==typeof n?n:!n||"boolean"!=typeof n.shrinkOnBlockBoundary||n.shrinkOnBlockBoundary,o=n&&n.skipBogus;if(!this.collapsed){e=e||CKEDITOR.SHRINK_TEXT;var r=this.clone(),a=this.startContainer,s=this.endContainer,l=this.startOffset,d=this.endOffset,c=n=1;a&&a.type==CKEDITOR.NODE_TEXT&&(l?l>=a.getLength()?r.setStartAfter(a):(r.setStartBefore(a),n=0):r.setStartBefore(a)),s&&s.type==CKEDITOR.NODE_TEXT&&(d?d>=s.getLength()?r.setEndAfter(s):(r.setEndAfter(s),c=0):r.setEndBefore(s));r=new CKEDITOR.dom.walker(r);var u,h=CKEDITOR.dom.walker.bookmark(),f=CKEDITOR.dom.walker.bogus();return r.evaluator=function(t){return t.type==(e==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)},r.guard=function(t,n){return!!(o&&f(t)||h(t))||!(e==CKEDITOR.SHRINK_ELEMENT&&t.type==CKEDITOR.NODE_TEXT||n&&t.equals(u)||!1===i&&t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary()||t.type==CKEDITOR.NODE_ELEMENT&&t.hasAttribute("contenteditable"))&&(n||t.type!=CKEDITOR.NODE_ELEMENT||(u=t),!0)},n&&(a=r[e==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(a,t?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START),c&&(r.reset(),(r=r[e==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(r,t?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)),!(!n&&!c)}},insertNode:function(e){this.optimizeBookmark(),this.trim(!1,!0);var t=this.startContainer,n=t.getChild(this.startOffset);n?e.insertBefore(n):t.append(e),e.getParent()&&e.getParent().equals(this.endContainer)&&this.endOffset++,this.setStartBefore(e)},moveToPosition:function(e,t){this.setStartAt(e,t),this.collapse(!0)},moveToRange:function(e){this.setStart(e.startContainer,e.startOffset),this.setEnd(e.endContainer,e.endOffset)},selectNodeContents:function(e){this.setStart(e,0),this.setEnd(e,e.type==CKEDITOR.NODE_TEXT?e.getLength():e.getChildCount())},setStart:function(t,n){t.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[t.getName()]&&(n=t.getIndex(),t=t.getParent()),this._setStartContainer(t),this.startOffset=n,this.endContainer||(this._setEndContainer(t),this.endOffset=n),e(this)},setEnd:function(t,n){t.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[t.getName()]&&(n=t.getIndex()+1,t=t.getParent()),this._setEndContainer(t),this.endOffset=n,this.startContainer||(this._setStartContainer(t),this.startOffset=n),e(this)},setStartAfter:function(e){this.setStart(e.getParent(),e.getIndex()+1)},setStartBefore:function(e){this.setStart(e.getParent(),e.getIndex())},setEndAfter:function(e){this.setEnd(e.getParent(),e.getIndex()+1)},setEndBefore:function(e){this.setEnd(e.getParent(),e.getIndex())},setStartAt:function(t,n){switch(n){case CKEDITOR.POSITION_AFTER_START:this.setStart(t,0);break;case CKEDITOR.POSITION_BEFORE_END:t.type==CKEDITOR.NODE_TEXT?this.setStart(t,t.getLength()):this.setStart(t,t.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(t);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(t)}e(this)},setEndAt:function(t,n){switch(n){case CKEDITOR.POSITION_AFTER_START:this.setEnd(t,0);break;case CKEDITOR.POSITION_BEFORE_END:t.type==CKEDITOR.NODE_TEXT?this.setEnd(t,t.getLength()):this.setEnd(t,t.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(t);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(t)}e(this)},fixBlock:function(e,t){var n=this.createBookmark(),i=this.document.createElement(t);this.collapse(e),this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),this.extractContents().appendTo(i),i.trim(),this.insertNode(i);var o=i.getBogus();return o&&o.remove(),i.appendBogus(),this.moveToBookmark(n),i},splitBlock:function(e,t){var n=new CKEDITOR.dom.elementPath(this.startContainer,this.root),i=new CKEDITOR.dom.elementPath(this.endContainer,this.root),o=n.block,r=i.block,a=null;return n.blockLimit.equals(i.blockLimit)?("br"!=e&&(o||(o=this.fixBlock(!0,e),r=new CKEDITOR.dom.elementPath(this.endContainer,this.root).block),r||(r=this.fixBlock(!1,e))),n=o&&this.checkStartOfBlock(),i=r&&this.checkEndOfBlock(),this.deleteContents(),o&&o.equals(r)&&(i?(a=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(r,CKEDITOR.POSITION_AFTER_END),r=null):n?(a=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(o,CKEDITOR.POSITION_BEFORE_START),o=null):(r=this.splitElement(o,t||!1),o.is("ul","ol")||o.appendBogus())),{previousBlock:o,nextBlock:r,wasStartOfBlock:n,wasEndOfBlock:i,elementPath:a}):null},splitElement:function(e,t){if(!this.collapsed)return null;this.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);var n=this.extractContents(!1,t||!1),i=e.clone(!1,t||!1);return n.appendTo(i),i.insertAfter(e),this.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),i},removeEmptyBlocksAtEnd:function(){function e(e){return function(i){return!(t(i)||n(i)||i.type==CKEDITOR.NODE_ELEMENT&&i.isEmptyInlineRemoveable()||e.is("table")&&i.is("caption"))}}
152var t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(!1);return function(t){for(var n,i=this.createBookmark(),o=this[t?"endPath":"startPath"](),r=o.block||o.blockLimit;r&&!r.equals(o.root)&&!r.getFirst(e(r));)n=r.getParent(),this[t?"setEndAt":"setStartAt"](r,CKEDITOR.POSITION_AFTER_END),r.remove(1),r=n;this.moveToBookmark(i)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(e,t){var n=t==CKEDITOR.START,o=this.clone();return o.collapse(n),o[n?"setStartAt":"setEndAt"](e,n?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),(o=new CKEDITOR.dom.walker(o)).evaluator=i(n),o[n?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var e=this.startContainer,t=this.startOffset;return CKEDITOR.env.ie&&t&&e.type==CKEDITOR.NODE_TEXT&&(e=CKEDITOR.tools.ltrim(e.substring(0,t)),s.test(e)&&this.trim(0,1)),this.trim(),e=new CKEDITOR.dom.elementPath(this.startContainer,this.root),(t=this.clone()).collapse(!0),t.setStartAt(e.block||e.blockLimit,CKEDITOR.POSITION_AFTER_START),(e=new CKEDITOR.dom.walker(t)).evaluator=n(),e.checkBackward()},checkEndOfBlock:function(){var e=this.endContainer,t=this.endOffset;return CKEDITOR.env.ie&&e.type==CKEDITOR.NODE_TEXT&&(e=CKEDITOR.tools.rtrim(e.substring(t)),s.test(e)&&this.trim(1,0)),this.trim(),e=new CKEDITOR.dom.elementPath(this.endContainer,this.root),(t=this.clone()).collapse(!1),t.setEndAt(e.block||e.blockLimit,CKEDITOR.POSITION_BEFORE_END),(e=new CKEDITOR.dom.walker(t)).evaluator=n(),e.checkForward()},getPreviousNode:function(e,t,n){var i=this.clone();return i.collapse(1),i.setStartAt(n||this.root,CKEDITOR.POSITION_AFTER_START),(n=new CKEDITOR.dom.walker(i)).evaluator=e,n.guard=t,n.previous()},getNextNode:function(e,t,n){var i=this.clone();return i.collapse(),i.setEndAt(n||this.root,CKEDITOR.POSITION_BEFORE_END),(n=new CKEDITOR.dom.walker(i)).evaluator=e,n.guard=t,n.next()},checkReadOnly:function(){function e(e,t){for(;e;){if(e.type==CKEDITOR.NODE_ELEMENT){if("false"==e.getAttribute("contentEditable")&&!e.data("cke-editable"))return 0;if(e.is("html")||"true"==e.getAttribute("contentEditable")&&(e.contains(t)||e.equals(t)))break}e=e.getParent()}return 1}return function(){var t=this.startContainer,n=this.endContainer;return!(e(t,n)&&e(n,t))}}(),moveToElementEditablePosition:function(e,t){if(e.type==CKEDITOR.NODE_ELEMENT&&!e.isEditable(!1))return this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var n=0;e;){if(e.type==CKEDITOR.NODE_TEXT){t&&this.endContainer&&this.checkEndOfBlock()&&s.test(e.getText())?this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),n=1;break}if(e.type==CKEDITOR.NODE_ELEMENT)if(e.isEditable())this.moveToPosition(e,t?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),n=1;else if(t&&e.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);else if("false"==e.getAttribute("contenteditable")&&e.is(CKEDITOR.dtd.$block))return this.setStartBefore(e),this.setEndAfter(e),!0;var i=e,o=n,r=void 0;i.type==CKEDITOR.NODE_ELEMENT&&i.isEditable(!1)&&(r=i[t?"getLast":"getFirst"](d)),o||r||(r=i[t?"getPrevious":"getNext"](d)),e=r}return!!n},moveToClosestEditablePosition:function(e,t){var n,i,o,r=0,a=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];return e?(n=new CKEDITOR.dom.range(this.root)).moveToPosition(e,a[t?0:1]):n=this.clone(),e&&!e.is(CKEDITOR.dtd.$block)?r=1:(i=n[t?"getNextEditableNode":"getPreviousEditableNode"]())&&(r=1,(o=i.type==CKEDITOR.NODE_ELEMENT)&&i.is(CKEDITOR.dtd.$block)&&"false"==i.getAttribute("contenteditable")?(n.setStartAt(i,CKEDITOR.POSITION_BEFORE_START),n.setEndAt(i,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&o&&i.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(n.setEnd(i,0),n.collapse()):n.moveToPosition(i,a[t?1:0])),r&&this.moveToRange(n),!!r},moveToElementEditStart:function(e){return this.moveToElementEditablePosition(e)},moveToElementEditEnd:function(e){return this.moveToElementEditablePosition(e,!0)},getEnclosedNode:function(){if((e=this.clone()).optimize(),e.startContainer.type!=CKEDITOR.NODE_ELEMENT||e.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var e=new CKEDITOR.dom.walker(e),t=CKEDITOR.dom.walker.bookmark(!1,!0),n=CKEDITOR.dom.walker.whitespace
152s(!0);e.evaluator=function(e){return n(e)&&t(e)};var i=e.next();return e.reset(),i&&i.equals(e.previous())?i:null},getTouchedStartNode:function(){var e=this.startContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.startOffset)||e},getTouchedEndNode:function(){var e=this.endContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.endOffset-1)||e},getNextEditableNode:o(),getPreviousEditableNode:o(1),_getTableElement:function(e){e=e||{td:1,th:1,tr:1,tbody:1,thead:1,tfoot:1,table:1};var t=this.startContainer,n=this.endContainer,i=t.getAscendant("table",!0),o=n.getAscendant("table",!0);return CKEDITOR.env.safari&&i&&n.equals(this.root)?t.getAscendant(e,!0):this.getEnclosedNode()?this.getEnclosedNode().getAscendant(e,!0):i&&o&&(i.equals(o)||i.contains(o)||o.contains(i))?t.getAscendant(e,!0):null},scrollIntoView:function(){var e,t,n,i=new CKEDITOR.dom.element.createFromHtml("<span> </span>",this.document),o=this.clone();o.optimize(),(n=o.startContainer.type==CKEDITOR.NODE_TEXT)?(t=o.startContainer.getText(),e=o.startContainer.split(o.startOffset),i.insertAfter(o.startContainer)):o.insertNode(i),i.scrollIntoView(),n&&(o.startContainer.setText(t),e.remove()),i.remove()},_setStartContainer:function(e){this.startContainer=e},_setEndContainer:function(e){this.endContainer=e},_find:function(e,t){var n,i,o,r,a=this.getCommonAncestor(),s=this.getBoundaryNodes(),l=[];if(a&&a.find)for(i=a.find(e),n=0;n<i.count();n++)a=i.getItem(n),(t||!a.isReadOnly())&&(o=a.getPosition(s.startNode)&CKEDITOR.POSITION_FOLLOWING||s.startNode.equals(a),r=a.getPosition(s.endNode)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IS_CONTAINED||s.endNode.equals(a),o&&r&&l.push(a));return l}},CKEDITOR.dom.range.mergeRanges=function(e){return CKEDITOR.tools.array.reduce(e,function(e,t){var n=e[e.length-1],i=!1;if((t=t.clone()).enlarge(CKEDITOR.ENLARGE_ELEMENT),n){var o=new CKEDITOR.dom.range(t.root),r=(i=new CKEDITOR.dom.walker(o),CKEDITOR.dom.walker.whitespaces());for(o.setStart(n.endContainer,n.endOffset),o.setEnd(t.startContainer,t.startOffset),o=i.next();r(o)||t.endContainer.equals(o);)o=i.next();i=!o}return i?n.setEnd(t.endContainer,t.endOffset):e.push(t),e},[])}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,function(){function e(e){1>arguments.length||(this.range=e,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function t(e){var t=[];return e.forEach(function(e){if("true"==e.getAttribute("contenteditable"))return t.push(e),!1},CKEDITOR.NODE_ELEMENT,!0),t}function n(e,i,o,r){e:{null==r&&(r=t(o));for(var a;a=r.shift();)if(a.getDtd().p){r={element:a,remaining:r};break e}r=null}return r?(a=CKEDITOR.filter.instances[r.element.data("cke-filter")])&&!a.check(i)?n(e,i,o,r.remaining):((i=new CKEDITOR.dom.range(r.element)).selectNodeContents(r.element),(i=i.createIterator()).enlargeBr=e.enlargeBr,i.enforceRealBlocks=e.enforceRealBlocks,i.activeFilter=i.filter=a,e._.nestedEditable={element:r.element,container:o,remaining:r.remaining,iterator:i},1):0}function i(e,t,n){return!!t&&((e=e.clone()).collapse(!n),e.checkBoundaryOfElement(t,n?CKEDITOR.START:CKEDITOR.END))}var o=/^[\r\n\t ]+$/,r=CKEDITOR.dom.walker.bookmark(!1,!0),a=CKEDITOR.dom.walker.whitespaces(!0),s=function(e){return r(e)&&a(e)},l={dd:1,dt:1,li:1};e.prototype={getNextParagraph:function(e){var t,a,d,c,u;if(e=e||"p",this._.nestedEditable){if(t=this._.nestedEditable.iterator.getNextParagraph(e))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,t;if(this.activeFilter=this.filter,n(this,e,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(e);this._.nestedEditable=null}if(!this.range.root.getDtd()[e])return null;if(!this._.started){var h=this.range.clone();a=h.startPath();var f=h.endPath(),p=!h.collapsed&&i(h,a.block),m=!h.collapsed&&i(h,f.block,1);h.shrink(CKEDITOR.SHRINK_ELEMENT,!0),p&&h.setStartAt(a.block,CKEDITOR.POSITION_BEFORE_END),m&&h.setEndAt(f.block,CKEDITOR.POSITION_AFTER_START),a=h.endContainer.hasAscendant("pre",!0)||h.startContainer.hasAscendant("pre",!0),h.enlarge(this.forceBrBreak&&!a||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS),h.collapsed||(a=new CKEDITOR.dom.walker(h.clone()),f=CKEDITOR.dom.walker.bookmark(!0,!0),a.evaluator=f,this._.nextNode=a.next(),(a=new CKEDITOR.dom.walker(h.clone())).evaluator=f,a=a.previous(),this._.lastNode=a.getNextSourceNode(!0,null,h.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&((f=this.range.clone()).moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),f.checkEndOfBlock()&&(f=new CKEDITOR.dom.elementPath(f.endContainer,f.root),this._.lastNode=(f.block||f.blockLimit).getNextSourceNode(!0))),this._.lastNode&&h.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=h.document.createText(""),this._.lastNode.insertAfter(a)),h=null),this._.started=1,a=h}for(f=this._.nextNode,h=this._.lastNode,this._.nextNode=null;f;){p=0,m=f.hasAscendant("pre");var g=f.type!=CKEDITOR.NODE_ELEMENT,v=0;
152if(g)f.type==CKEDITOR.NODE_TEXT&&o.test(f.getText())&&(g=0);else{var y=f.getName();if(CKEDITOR.dtd.$block[y]&&"false"==f.getAttribute("contenteditable")){n(this,e,t=f);break}if(f.isBlockBoundary(this.forceBrBreak&&!m&&{br:1})){if("br"==y)g=1;else if(!a&&!f.getChildCount()&&"hr"!=y){t=f,d=f.equals(h);break}a&&(a.setEndAt(f,CKEDITOR.POSITION_BEFORE_START),"br"!=y&&(this._.nextNode=f)),p=1}else{if(f.getFirst()){a||(a=this.range.clone()).setStartAt(f,CKEDITOR.POSITION_BEFORE_START),f=f.getFirst();continue}g=1}}if(g&&!a&&(a=this.range.clone()).setStartAt(f,CKEDITOR.POSITION_BEFORE_START),d=(!p||g)&&f.equals(h),a&&!p)for(;!f.getNext(s)&&!d;){if((y=f.getParent()).isBlockBoundary(this.forceBrBreak&&!m&&{br:1})){p=1,g=0,d||y.equals(h),a.setEndAt(y,CKEDITOR.POSITION_BEFORE_END);break}g=1,d=(f=y).equals(h),v=1}if(g&&a.setEndAt(f,CKEDITOR.POSITION_AFTER_END),(d=!(f=this._getNextSourceNode(f,v,h)))||p&&a)break}if(!t){if(!a)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;f=(t=new CKEDITOR.dom.elementPath(a.startContainer,a.root)).blockLimit,p={div:1,th:1,td:1},!(t=t.block)&&f&&!this.enforceRealBlocks&&p[f.getName()]&&a.checkStartOfBlock()&&a.checkEndOfBlock()&&!f.equals(a.root)?t=f:!t||this.enforceRealBlocks&&t.is(l)?(t=this.range.document.createElement(e),a.extractContents().appendTo(t),t.trim(),a.insertNode(t),c=u=!0):"li"!=t.getName()?a.checkStartOfBlock()&&a.checkEndOfBlock()||(t=t.clone(!1),a.extractContents().appendTo(t),t.trim(),c=!(u=a.splitBlock()).wasStartOfBlock,u=!u.wasEndOfBlock,a.insertNode(t)):d||(this._.nextNode=t.equals(h)?null:this._getNextSourceNode(a.getBoundaryNodes().endNode,1,h))}return c&&(c=t.getPrevious())&&c.type==CKEDITOR.NODE_ELEMENT&&("br"==c.getName()?c.remove():c.getLast()&&"br"==c.getLast().$.nodeName.toLowerCase()&&c.getLast().remove()),u&&(c=t.getLast())&&c.type==CKEDITOR.NODE_ELEMENT&&"br"==c.getName()&&(!CKEDITOR.env.needsBrFiller||c.getPrevious(r)||c.getNext(r))&&c.remove(),this._.nextNode||(this._.nextNode=d||t.equals(h)||!h?null:this._getNextSourceNode(t,1,h)),t},_getNextSourceNode:function(e,t,n){function i(e){return!(e.equals(n)||e.equals(o))}var o=this.range.root;for(e=e.getNextSourceNode(t,null,i);!r(e);)e=e.getNextSourceNode(t,null,i);return e}},CKEDITOR.dom.range.prototype.createIterator=function(){return new e(this)}}(),CKEDITOR.command=function(e,t){var n;this.uiItems=[],this.exec=function(n){return!(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())&&(this.editorFocus&&e.focus(),!1===this.fire("exec")||!1!==t.exec.call(this,e,n))},this.refresh=function(e,n){return!(this.readOnly||!e.readOnly)||(this.context&&!n.isContextFor(this.context)||!this.checkAllowed(!0)?(this.disable(),!0):(this.startDisabled||this.enable(),this.modes&&!this.modes[e.mode]&&this.disable(),!1===this.fire("refresh",{editor:e,path:n})||t.refresh&&!1!==t.refresh.apply(this,arguments)))},this.checkAllowed=function(t){return t||"boolean"!=typeof n?n=e.activeFilter.checkFeature(this):n},CKEDITOR.tools.extend(this,t,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!t.context,state:CKEDITOR.TRISTATE_DISABLED}),CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(this.preserveState&&"undefined"!=typeof this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(e){return!(this.state==e||e!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())&&(this.previousState=this.state,this.state=e,this.fire("state"),!0)},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,contentsCss:CKEDITOR.getUrl("contents.css"),extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1e4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function e(e,t,n,i,o){var r,s,l;
152for(r in e=[],t){s="boolean"==typeof(s=t[r])?{}:"function"==typeof s?{match:s}:x(s),"$"!=r.charAt(0)&&(s.elements=r),n&&(s.featureName=n.toLowerCase());var d=s;d.elements=a(d.elements,/\s+/)||null,d.propertiesOnly=d.propertiesOnly||!0===d.elements;var c=/\s*,\s*/,u=void 0;for(u in R){d[u]=a(d[u],c)||null;var h=d,f=$[u],p=a(d[$[u]],c),m=d[u],g=[],y=!0,_=void 0;for(_ in p?y=!1:p={},m)"!"==_.charAt(0)&&(_=_.slice(1),g.push(_),p[_]=!0,y=!1);for(;_=g.pop();)m[_]=m["!"+_],delete m["!"+_];h[f]=!y&&p||null}d.match=d.match||null,i.push(s),e.push(s)}for(t=o.elements,o=o.generic,n=0,i=e.length;n<i;++n){for(c in s=!0===(r=x(e[n])).classes||!0===r.styles||!0===r.attributes,d=r,u=f=c=void 0,R)d[c]=v(d[c]);for(u in h=!0,$){for(m in p=[],m=void 0,f=d[c=$[u]])-1<m.indexOf("*")?p.push(new RegExp("^"+m.replace(/\*/g,".*")+"$")):p.push(m);(f=p).length&&(d[c]=f,h=!1)}if(d.nothingRequired=h,d.noProperties=!(d.attributes||d.classes||d.styles),!0===r.elements||null===r.elements)o[s?"unshift":"push"](r);else for(l in d=r.elements,delete r.elements,d)t[l]?t[l][s?"unshift":"push"](r):t[l]=[r]}}function t(e,t,i,o){if((!e.match||e.match(t))&&(o||s(e,t))&&(e.propertiesOnly||(i.valid=!0),i.allAttributes||(i.allAttributes=n(e.attributes,t.attributes,i.validAttributes)),i.allStyles||(i.allStyles=n(e.styles,t.styles,i.validStyles)),!i.allClasses)){if(e=e.classes,t=t.classes,o=i.validClasses,e)if(!0===e)e=!0;else{for(var r,a=0,l=t.length;a<l;++a)o[r=t[a]]||(o[r]=e(r));e=!1}else e=!1;i.allClasses=e}}function n(e,t,n){if(!e)return!1;if(!0===e)return!0 153;for(var i in t)n[i]||(n[i]=e(i));return!1}function i(e,t,n){if(!e.match||e.match(t)){if(e.noProperties)return!1;if(n.hadInvalidAttribute=o(e.attributes,t.attributes)||n.hadInvalidAttribute,n.hadInvalidStyle=o(e.styles,t.styles)||n.hadInvalidStyle,e=e.classes,t=t.classes,e){for(var i=!1,r=!0===e,a=t.length;a--;)(r||e(t[a]))&&(t.splice(a,1),i=!0);e=i}else e=!1;n.hadInvalidClass=e||n.hadInvalidClass}}function o(e,t){if(!e)return!1;var n,i=!1,o=!0===e;for(n in t)(o||e(n))&&(delete t[n],i=!0);return i}function r(e,t,n){return!(e.disabled||e.customConfig&&!n||!t)&&(e._.cachedChecks={},!0)}function a(e,t){if(!e)return!1;if(!0===e)return e;if("string"==typeof e)return"*"==(e=O(e))||CKEDITOR.tools.convertArrayToObject(e.split(t));if(CKEDITOR.tools.isArray(e))return!!e.length&&CKEDITOR.tools.convertArrayToObject(e);var n,i={},o=0;for(n in e)i[n]=e[n],o++;return!!o&&i}function s(e,t){if(e.nothingRequired)return!0;var n,i,o,r;if(o=e.requiredClasses)for(r=t.classes,n=0;n<o.length;++n)if("string"==typeof(i=o[n])){if(-1==CKEDITOR.tools.indexOf(r,i))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(r,i))return!1;return l(t.styles,e.requiredStyles)&&l(t.attributes,e.requiredAttributes)}function l(e,t){if(!t)return!0;for(var n,i=0;i<t.length;++i)if("string"==typeof(n=t[i])){if(!(n in e))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(e,n))return!1;return!0}function d(e){if(!e)return{};e=e.split(/\s*,\s*/).sort();for(var t={};e.length;)t[e.shift()]="cke-test";return t}function c(e){var t,n,i,o,r={},a=1;for(e=O(e);t=e.match(A);)(n=t[2])?(i=u(n,"styles"),o=u(n,"attrs"),n=u(n,"classes")):i=o=n=null,r["$"+a++]={elements:t[1],classes:n,styles:i,attributes:o},e=e.slice(t[0].length);return r}function u(e,t){var n=e.match(K[t]);return n?O(n[1]):null}function h(e){var t=e.styleBackup=e.attributes.style,n=e.classBackup=e.attributes["class"];e.styles||(e.styles=CKEDITOR.tools.parseCssText(t||"",1)),e.classes||(e.classes=n?n.split(/\s+/):[])}function f(e,n,o,r){var a,s=0;if(r.toHtml&&(n.name=n.name.replace(N,"$1")),r.doCallbacks&&e.elementCallbacks){e:{for(var l,d=0,c=(a=e.elementCallbacks).length;d<c;++d)if(l=a[d](n)){a=l;break e}a=void 0}if(a)return a}if(r.doTransform&&(a=e._.transformations[n.name])){for(h(n),d=0;d<a.length;++d)T(e,n,a[d]);m(n)}if(r.doFilter){e:{d=n.name,e=(c=e._).allowedRules.elements[d],a=c.allowedRules.generic,d=c.disallowedRules.elements[d],c=c.disallowedRules.generic,l=r.skipRequired;var u,f,p={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1};if(e||a){if(h(n),d)for(u=0,f=d.length;u<f;++u)if(!1===i(d[u],n,p)){e=null;break e}if(c)for(u=0,f=c.length;u<f;++u)i(c[u],n,p);if(e)for(u=0,f=e.length;u<f;++u)t(e[u],n,p,l);if(a)for(u=0,f=a.length;u<f;++u)t(a[u],n,p,l);e=p}else e=null}if(!e||!e.valid)return o.push(n),1;f=e.validAttributes;var v=e.validStyles;a=e.validClasses;d=n.attributes;var y=n.styles;c=n.classes;l=n.classBackup;var _,b,C=n.styleBackup,E=[],w=(p=[],/^data-cke-/);if(u=!1,delete d.style,delete d["class"],delete n.classBackup,delete n.styleBackup,!e.allAttributes)for(_ in d)f[_]||w.test(_)&&(_==(b=_.replace(/^data-cke-saved-/,""))||f[b])||(delete d[_],u=!0);if(!e.allStyles||e.hadInvalidStyle){for(_ in y)e.allStyles||v[_]?E.push(_+":"+y[_]):u=!0;E.length&&(d.style=E.sort().join("; "))}else C&&(d.style=C);if(!e.allClasses||e.hadInvalidClass){for(_=0;_<c.length;++_)(e.allClasses||a[c[_]])&&p.push(c[_]);p.length&&(d["class"]=p.sort().join(" ")),l&&p.length<l.split(/\s+/).length&&(u=!0)}else l&&(d["class"]=l);if(u&&(s=1),!r.skipFinalValidation&&!g(n))return o.push(n),1}return r.toHtml&&(n.name=n.name.replace(L,"cke:$1")),s}function p(e){var t,n=[];for(t in e)-1<t.indexOf("*")&&n.push(t.replace(/\*/g,".*"));return n.length?new RegExp("^(?:"+n.join("|")+")$"):null}function m(e){var t,n=e.attributes;delete n.style,delete n["class"],(t=CKEDITOR.tools.writeCssText(e.styles,!0))&&(n.style=t),e.classes.length&&(n["class"]=e.classes.sort().join(" "))}function g(e){switch(e.name){case"a":if(!(e.children.length||e.attributes.name||e.attributes.id))return!1;break;case"img":if(!e.attributes.src)return!1}return!0}function v(e){if(!e)return!1;if(!0===e)return!0;var t=p(e);return function(n){return n in e||t&&n.match(t)}}function y(){return new CKEDITOR.htmlParser.element("br")}function _(e){return e.type==CKEDITOR.NODE_ELEMENT&&("br"==e.name||D.$block[e.name])}function b(e,t,n){var i=e.name;if(D.$empty[i]||!e.children.length)"hr"==i&&"br"==t?e.replaceWith(y()):(e.parent&&n.push({check:"it",el:e.parent}),e.remove());else if(D.$block[i]||"tr"==i)if("br"==t)e.previous&&!_(e.previous)&&(t=y()).insertBefore(e),e.next&&!_(e.next)&&(t=y()).insertAfter(e),e.replaceWithChildren();else{var o;i=e.children;e:{o=D[t];for(var r,a=0,s=i.length;a<s;++a)if((r=i[a]).type==CKEDITOR.NODE_ELEMENT&&!o[r.name]){o=!1;break e}o=!0}if(o)e.name=t,e.attributes={},n.push({check:"parent-down",el:e});else{var l,d;for(a=(o=e.parent).type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==o.name,s=i.length;0<s;)r=i[--s],a&&(r.type==CKEDITOR.NODE_TEXT||r.type==CKEDITOR.NODE_ELEMENT&&D.$inline[r.name])?(l||((l=new CKEDITOR.htmlParser.element(t)).insertAfter(e),n.push({check:"parent-down",el:l})),l.add(r,0)):(l=null,d=D[o.name]||D.span,r.insertAfter(e),o.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||r.type!=CKEDITOR.NODE_ELEMENT||d[r.name]||n.push({check:"el-up",el:r}));e.remove()}}else i in{style:1,script:1}?e.remove():(e.parent&&n.push({check:"it",el:e.parent}),e.replaceWithChildren())}function T(e,t,n){var i,o;for(i=0;i<n.length;
153++i)if(!((o=n[i]).check&&!e.check(o.check,!1)||o.left&&!o.left(t))){o.right(t,S);break}}function C(e,t){var n,i,o,r,a=t.getDefinition(),s=a.attributes,l=a.styles;if(e.name!=a.element)return!1;for(n in s)if("class"==n){for(a=s[n].split(/\s+/),o=e.classes.join("|");r=a.pop();)if(-1==o.indexOf(r))return!1}else if(e.attributes[n]!=s[n])return!1;for(i in l)if(e.styles[i]!=l[i])return!1;return!0}function E(e,t){var n,i;return"string"==typeof e?n=e:e instanceof CKEDITOR.style?i=e:(n=e[0],i=e[1]),[{element:n,left:i,right:function(e,n){n.transform(e,t)}}]}function w(e){return function(t){return C(t,e)}}function I(e){return function(t,n){n[e](t)}}var D=CKEDITOR.dtd,x=CKEDITOR.tools.copy,O=CKEDITOR.tools.trim,k=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2,CKEDITOR.filter=function(e){if(this.allowedContent=[],this.disallowedContent=[],this.elementCallbacks=null,this.disabled=!1,this.editor=null,this.id=CKEDITOR.tools.getNextNumber(),this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{}},CKEDITOR.filter.instances[this.id]=this,e instanceof CKEDITOR.editor){e=this.editor=e,this.customConfig=!0;var t=e.config.allowedContent;!0===t?this.disabled=!0:(t||(this.customConfig=!1),this.allow(t,"config",1),this.allow(e.config.extraAllowedContent,"extra",1),this.allow(k[e.enterMode]+" "+k[e.shiftEnterMode],"default",1),this.disallow(e.config.disallowedContent))}else this.customConfig=!1,this.allow(e,"default",1)},CKEDITOR.filter.instances={},CKEDITOR.filter.prototype={allow:function(t,n,i){if(!r(this,t,i))return!1;var o,a;if("string"==typeof t)t=c(t);else if(t instanceof CKEDITOR.style){if(t.toAllowedContentRules)return this.allow(t.toAllowedContentRules(this.editor),n,i);o=t.getDefinition(),t={},i=o.attributes,t[o.element]=o={styles:o.styles,requiredStyles:o.styles&&CKEDITOR.tools.objectKeys(o.styles)},i&&(i=x(i),o.classes=i["class"]?i["class"].split(/\s+/):null,o.requiredClasses=o.classes,delete i["class"],o.attributes=i,o.requiredAttributes=i&&CKEDITOR.tools.objectKeys(i))}else if(CKEDITOR.tools.isArray(t)){for(o=0;o<t.length;++o)a=this.allow(t[o],n,i);return a}return e(this,t,n,this.allowedContent,this._.allowedRules),!0},applyTo:function(e,t,n,i){if(this.disabled)return!1;var o,r,a,s=this,l=[],d=this.editor&&this.editor.config.protectedSource,c=!1,u={doFilter:!n,doTransform:!0,doCallbacks:!0,toHtml:t};for(e.forEach(function(e){if(e.type==CKEDITOR.NODE_ELEMENT){if("off"==e.attributes["data-cke-filter"])return!1;if(!t||"span"!=e.name||!~CKEDITOR.tools.objectKeys(e.attributes).join("|").indexOf("data-cke-"))if(1&(o=f(s,e,l,u)))c=!0;else if(2&o)return!1}else if(e.type==CKEDITOR.NODE_COMMENT&&e.value.match(/^\{cke_protected\}(?!\{C\})/)){var n;e:{var i,r,a,h=decodeURIComponent(e.value.replace(/^\{cke_protected\}/,""));if(n=[],d)for(r=0;r<d.length;++r)if((a=h.match(d[r]))&&a[0].length==h.length){n=!0;break e}1==(h=CKEDITOR.htmlParser.fragment.fromHtml(h)).children.length&&(i=h.children[0]).type==CKEDITOR.NODE_ELEMENT&&f(s,i,n,u),n=!n.length}n||l.push(e)}},null,!0),l.length&&(c=!0),e=[],i=k[i||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];n=l.pop();)n.type==CKEDITOR.NODE_ELEMENT?b(n,i,e):n.remove();for(;r=e.pop();)if((n=r.el).parent)switch(a=D[n.parent.name]||D.span,r.check){case"it":D.$removeEmpty[n.name]&&!n.children.length?b(n,i,e):g(n)||b(n,i,e);break;case"el-up":n.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||a[n.name]||b(n,i,e);break;case"parent-down":n.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||a[n.name]||b(n.parent,i,e)}return c},checkFeature:function(e){return!(!this.disabled&&e)||(e.toFeature&&(e=e.toFeature(this.editor)),!e.requiredContent||this.check(e.requiredContent))},disable:function(){this.disabled=!0},disallow:function(t){return!!r(this,t,!0)&&("string"==typeof t&&(t=c(t)),e(this,t,null,this.disallowedContent,this._.disallowedRules),!0)},addContentForms:function(e){if(!this.disabled&&e){var t,n,i,o=[];for(t=0;t<e.length&&!i;++t)("string"==typeof(n=e[t])||n instanceof CKEDITOR.style)&&this.check(n)&&(i=n);if(i){for(t=0;t<e.length;++t)o.push(E(e[t],i));this.addTransformations(o)}}},addElementCallback:function(e){this.elementCallbacks||(this.elementCallbacks=[]),this.elementCallbacks.push(e)},addFeature:function(e){return!(!this.disabled&&e)||(e.toFeature&&(e=e.toFeature(this.editor)),this.allow(e.allowedContent,e.name),this.addTransformations(e.contentTransformations),this.addContentForms(e.contentForms),!e.requiredContent||!this.customConfig&&!this.disallowedContent.length||this.check(e.requiredContent))},addTransformations:function(e){var t,n;if(!this.disabled&&e){var i,o=this._.transformations;for(i=0;i<e.length;++i){t=e[i];var r=void 0,a=void 0,s=void 0,l=void 0,d=void 0,c=void 0;for(n=[],a=0;a<t.length;
153++a)"string"==typeof(s=t[a])?(l=(s=s.split(/\s*:\s*/))[0],d=null,c=s[1]):(l=s.check,d=s.left,c=s.right),r||(r=(r=s).element?r.element:l?l.match(/^([a-z0-9]+)/i)[0]:r.left.getDefinition().element),d instanceof CKEDITOR.style&&(d=w(d)),n.push({check:l==r?null:l,left:d,right:"string"==typeof c?I(c):c});o[t=r]||(o[t]=[]),o[t].push(n)}}},check:function(e,t,n){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(e)){for(var i=e.length;i--;)if(this.check(e[i],t,n))return!0;return!1}var o,r;if("string"==typeof e){if((r=e+"<"+(!1===t?"0":"1")+(n?"1":"0")+">")in this._.cachedChecks)return this._.cachedChecks[r];o=(i=c(e).$1).styles;var a=i.classes;i.name=i.elements,i.classes=a=a?a.split(/\s*,\s*/):[],i.styles=d(o),i.attributes=d(i.attributes),i.children=[],a.length&&(i.attributes["class"]=a.join(" ")),o&&(i.attributes.style=CKEDITOR.tools.writeCssText(i.styles)),o=i}else o=(i=e.getDefinition()).styles,a=i.attributes||{},o&&!CKEDITOR.tools.isEmpty(o)?(o=x(o),a.style=CKEDITOR.tools.writeCssText(o,!0)):o={},o={name:i.element,attributes:a,classes:a["class"]?a["class"].split(/\s+/):[],styles:o,children:[]};a=CKEDITOR.tools.clone(o);var s,l=[];if(!1!==t&&(s=this._.transformations[o.name])){for(i=0;i<s.length;++i)T(this,o,s[i]);m(o)}return f(this,a,l,{doFilter:!0,doTransform:!1!==t,skipRequired:!n,skipFinalValidation:!n}),t=!(0<l.length)&&!!CKEDITOR.tools.objectCompare(o.attributes,a.attributes,!0),"string"==typeof e&&(this._.cachedChecks[r]=t),t},getAllowedEnterMode:function(){var e=["p","div","br"],t={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(n,i){var o,r=e.slice();if(this.check(k[n]))return n;for(i||(r=r.reverse());o=r.pop();)if(this.check(o))return t[o];return CKEDITOR.ENTER_BR}}(),destroy:function(){delete CKEDITOR.filter.instances[this.id],delete this._,delete this.allowedContent,delete this.disallowedContent}};var S,R={styles:1,attributes:1,classes:1},$={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},A=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,K={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},N=/^cke:(object|embed|param)$/,L=/^(object|embed|param)$/;S=CKEDITOR.filter.transformationsTools={sizeToStyle:function(e){this.lengthToStyle(e,"width"),this.lengthToStyle(e,"height")},sizeToAttribute:function(e){this.lengthToAttribute(e,"width"),this.lengthToAttribute(e,"height")},lengthToStyle:function(e,t,n){if(!((n=n||t)in e.styles)){var i=e.attributes[t];i&&(/^\d+$/.test(i)&&(i+="px"),e.styles[n]=i)}delete e.attributes[t]},lengthToAttribute:function(e,t,n){if(!((n=n||t)in e.attributes)){var i=e.styles[t],o=i&&i.match(/^(\d+)(?:\.\d*)?px$/);o?e.attributes[n]=o[1]:"cke-test"==i&&(e.attributes[n]="cke-test")}delete e.styles[t]},alignmentToStyle:function(e){if(!("float"in e.styles)){var t=e.attributes.align;"left"!=t&&"right"!=t||(e.styles.float=t)}delete e.attributes.align},alignmentToAttribute:function(e){if(!("align"in e.attributes)){var t=e.styles.float;"left"!=t&&"right"!=t||(e.attributes.align=t)}delete e.styles.float},splitBorderShorthand:function(e){function t(t){e.styles["border-top-width"]=n[t[0]],e.styles["border-right-width"]=n[t[1]],e.styles["border-bottom-width"]=n[t[2]],e.styles["border-left-width"]=n[t[3]]}if(e.styles.border){var n=e.styles.border.match(/([\.\d]+\w+)/g)||["0px"];switch(n.length){case 1:e.styles["border-width"]=n[0];break;case 2:t([0,1,0,1]);break;case 3:t([0,1,2,1]);break;case 4:t([0,1,2,3])}e.styles["border-style"]=e.styles["border-style"]||(e.styles.border.match(/(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit)/)||[])[0],e.styles["border-style"]||delete e.styles["border-style"],delete e.styles.border}},listTypeToStyle:function(e){if(e.attributes.type)switch(e.attributes.type){case"a":e.styles["list-style-type"]="lower-alpha";break;case"A":e.styles["list-style-type"]="upper-alpha";break;case"i":e.styles["list-style-type"]="lower-roman";break;case"I":e.styles["list-style-type"]="upper-roman";break;case"1":e.styles["list-style-type"]="decimal";break;default:e.styles["list-style-type"]=e.attributes.type}},splitMarginShorthand:function(e){function t(t){e.styles["margin-top"]=n[t[0]],e.styles["margin-right"]=n[t[1]],e.styles["margin-bottom"]=n[t[2]],e.styles["margin-left"]=n[t[3]]}if(e.styles.margin){var n=e.styles.margin.match(/(\-?[\.\d]+\w+)/g)||["0px"];switch(n.length){case 1:t([0,0,0,0]);break;case 2:t([0,1,0,1]);break;case 3:t([0,1,2,1]);break;case 4:t([0,1,2,3])}delete e.styles.margin}},matchesStyle:C,transform:function(e,t){if("string"==typeof t)e.name=t;else{var n,i,o,r,a=t.getDefinition(),s=a.styles,l=a.attributes;for(n in e.name=a.element,l)if("class"==n)for(a=e.classes.join("|"),o=l[n].split(/\s+/);
153r=o.pop();)-1==a.indexOf(r)&&e.classes.push(r);else e.attributes[n]=l[n];for(i in s)e.styles[i]=s[i]}}}}(),CKEDITOR.focusManager=function(e){return e.focusManager?e.focusManager:(this.hasFocus=!1,this.currentActive=null,this._={editor:e},this)},CKEDITOR.focusManager._={blurDelay:200},CKEDITOR.focusManager.prototype={focus:function(e){this._.timer&&clearTimeout(this._.timer),e&&(this.currentActive=e),this.hasFocus||this._.locked||((e=CKEDITOR.currentInstance)&&e.focusManager.blur(1),this.hasFocus=!0,(e=this._.editor.container)&&e.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(e){function t(){if(this.hasFocus){this.hasFocus=!1;var e=this._.editor.container;e&&e.removeClass("cke_focus"),this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var n=CKEDITOR.focusManager._.blurDelay;e||!n?t.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer,t.call(this)},n,this)}},add:function(e,t){if(!(n=e.getCustomData("focusmanager"))||n!=this){n&&n.remove(e);var n="focus",i="blur";t&&(CKEDITOR.env.ie?(n="focusin",i="focusout"):CKEDITOR.event.useCapture=1);var o={blur:function(){e.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(e)}};e.on(n,o.focus,this),e.on(i,o.blur,this),t&&(CKEDITOR.event.useCapture=0),e.setCustomData("focusmanager",this),e.setCustomData("focusmanager_handlers",o)}},remove:function(e){e.removeCustomData("focusmanager");var t=e.removeCustomData("focusmanager_handlers");e.removeListener("blur",t.blur),e.removeListener("focus",t.focus)}},CKEDITOR.keystrokeHandler=function(e){return e.keystrokeHandler?e.keystrokeHandler:(this.keystrokes={},this.blockedKeystrokes={},this._={editor:e},this)},function(){var e,t=function(t){var n=(t=t.data).getKeystroke(),i=this.keystrokes[n],o=this._.editor;return(e=!1===o.fire("key",{keyCode:n,domEvent:t}))||(i&&(e=!1!==o.execCommand(i,{from:"keystrokeHandler"})),e||(e=!!this.blockedKeystrokes[n])),e&&t.preventDefault(!0),!e},n=function(t){e&&(e=!1,t.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(e){e.on("keydown",t,this),CKEDITOR.env.gecko&&CKEDITOR.env.mac&&e.on("keypress",n,this)}}}(),CKEDITOR.lang={languages:{af:1,ar:1,az:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,oc:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(e,t,n){e&&CKEDITOR.lang.languages[e]||(e=this.detect(t,e));var i=this;t=function(){i[e].dir=i.rtl[e]?"rtl":"ltr",n(e,i[e])},this[e]?t():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+e+".js"),t,this)},detect:function(e,t){var n=this.languages,i=(o=(t=t||navigator.userLanguage||navigator.language||e).toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/))[1],o=o[2];return n[i+"-"+o]?i=i+"-"+o:n[i]||(i=null),CKEDITOR.lang.detect=i?function(){return i}:function(e){return e},i||e}},CKEDITOR.scriptLoader=function(){var e={},t={};return{load:function(n,i,o,r){var a="string"==typeof n;a&&(n=[n]),o||(o=CKEDITOR);var s=n.length,l=[],d=[],c=function(e){i&&(a?i.call(o,e):i.call(o,l,d))};if(0===s)c(!0);else{var u=function(e,t){(t?l:d).push(e),0>=--s&&(r&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),c(t))},h=function(n,i){e[n]=1;var o=t[n];delete t[n];for(var r=0;r<o.length;r++)o[r](n,i)},f=function(n){if(e[n])u(n,!0);else{var o=t[n]||(t[n]=[]);if(o.push(u),!(1<o.length)){var r=new CKEDITOR.dom.element("script");r.setAttributes({type:"text/javascript",src:n}),i&&(CKEDITOR.env.ie&&(8>=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?r.$.onreadystatechange=function(){"loaded"!=r.$.readyState&&"complete"!=r.$.readyState||(r.$.onreadystatechange=null,h(n,!0))}:(r.$.onload=function(){setTimeout(function(){h(n,!0)},0)},r.$.onerror=function(){h(n,!1)})),r.appendTo(CKEDITOR.document.getHead())}}};r&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var p=0;p<s;p++)f(n[p])}},queue:function(){function e(){var e;(e=t[0])&&this.load(e.scriptUrl,e.callback,CKEDITOR,0)}var t=[];return function(n,i){var o=this;t.push({scriptUrl:n,callback:function(){i&&i.apply(this,arguments),t.shift(),e.call(o)}}),1==t.length&&e.call(this)}}()}}(),CKEDITOR.resourceManager=function(e,t){this.basePath=e,this.fileName=t,this.registered={},this.loaded={},this.externals={},this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(e,t){if(this.registered[e])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+e+'" is already registered.');var n=this.registered[e]=t||{};return n.name=e,n.path=this.getPath(e),CKEDITOR.fire(e+CKEDITOR.tools.capitalize(this.fileName)+"Ready",n),this.get(e)},get:function(e){return this.registered[e]||null},getPath:function(e){var t=this.externals[e];return CKEDITOR.getUrl(t&&t.dir||this.basePath+e+"/")},getFilePath:function(e){var t=this.externals[e];return CKEDITOR.getUrl(this.getPath(e)+(t?t.file:this.fileName+".js"))},addExternal:function(e,t,n){e=e.split(",");for(var i=0;i<e.length;i++){var o=e[i];n||(t=t.replace(/[^\/]+$/,function(e){return n=e,""})),this.externals[o]={dir:t,file:n||this.fileName+".js"}}},load:function(e,t,n){CKEDITOR.tools.isArray(e)||(e=e?[e]:[]);for(var i=this.loaded,o=this.registered,r=[],a={},s={},l=0;l<e.length;l++){var d=e[l];
153if(d)if(i[d]||o[d])s[d]=this.get(d);else{var c=this.getFilePath(d);r.push(c),c in a||(a[c]=[]),a[c].push(d)}}CKEDITOR.scriptLoader.load(r,function(e,o){if(o.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+a[o[0]].join(",")+'" was not found at "'+o[0]+'".');for(var r=0;r<e.length;r++)for(var l=a[e[r]],d=0;d<l.length;d++){var c=l[d];s[c]=this.get(c),i[c]=1}t.call(n,s)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(e){var t={};return function(n,i,o){var r={},a=function(n){e.call(this,n,function(e){CKEDITOR.tools.extend(r,e);var n,s=[];for(n in e){var l=e[n],d=l&&l.requires;if(!t[n]){if(l.icons)for(var c=l.icons.split(","),u=c.length;u--;)CKEDITOR.skin.addIcon(c[u],l.path+"icons/"+(CKEDITOR.env.hidpi&&l.hidpi?"hidpi/":"")+c[u]+".png");t[n]=1}if(d)for(d.split&&(d=d.split(",")),l=0;l<d.length;l++)r[d[l]]||s.push(d[l])}if(s.length)a.call(this,s);else{for(n in r)(l=r[n]).onLoad&&!l.onLoad._called&&(!1===l.onLoad()&&delete r[n],l.onLoad._called=1);i&&i.call(o||window,r)}},this)};a.call(this,n)}}),CKEDITOR.plugins.setLang=function(e,t,n){var i=this.get(e);e=i.langEntries||(i.langEntries={}),(i=i.lang||(i.lang=[])).split&&(i=i.split(",")),-1==CKEDITOR.tools.indexOf(i,t)&&i.push(t),e[t]=n},CKEDITOR.ui=function(e){return e.ui?e.ui:(this.items={},this.instances={},this.editor=e,this._={handlers:{}},this)},CKEDITOR.ui.prototype={add:function(e,t,n){n.name=e.toLowerCase();var i=this.items[e]={type:t,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(i,n)},get:function(e){return this.instances[e]},create:function(e){var t=this.items[e],n=t&&this._.handlers[t.type],i=t&&t.command&&this.editor.getCommand(t.command);n=n&&n.create.apply(this,t.args);return this.instances[e]=n,i&&i.uiItems.push(n),n&&!n.type&&(n.type=t.type),n},addHandler:function(e,t){this._.handlers[e]=t},space:function(e){return CKEDITOR.document.getById(this.spaceId(e))},spaceId:function(e){return this.editor.id+"_"+e}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function e(e,o,a){if(CKEDITOR.event.call(this),e=e&&CKEDITOR.tools.clone(e),void 0!==o){if(!(o instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!a)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&a==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!n(o,a))throw Error('The specified element mode is not supported on element: "'+o.getName()+'".');this.element=o,this.elementMode=a,this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(o.getId()||o.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={},this.commands={},this.templates={},this.name=this.name||t(),this.id=CKEDITOR.tools.getNextId(),this.status="unloaded",this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config),this.ui=new CKEDITOR.ui(this),this.focusManager=new CKEDITOR.focusManager(this),this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this),this.on("readOnly",i),this.on("selectionChange",function(e){r(this,e.data.path)}),this.on("activeFilterChange",function(){r(this,this.elementPath(),!0)}),this.on("mode",i),this.on("instanceReady",function(){this.config.startupFocus&&this.focus()}),CKEDITOR.fire("instanceCreated",null,this),CKEDITOR.add(this),CKEDITOR.tools.setTimeout(function(){"destroyed"!==this.status?s(this,e):CKEDITOR.warn("editor-incorrect-destroy")},0,this)}function t(){do{var e="editor"+ ++p}while(CKEDITOR.instances[e]);return e}function n(e,t){return t==CKEDITOR.ELEMENT_MODE_INLINE?e.is(CKEDITOR.dtd.$editable)||e.is("textarea"):t==CKEDITOR.ELEMENT_MODE_REPLACE?!e.is(CKEDITOR.dtd.$nonBodyContent):1}function i(){var e,t=this.commands;for(e in t)o(this,t[e])}function o(e,t){t[t.startDisabled?"disable":e.readOnly&&!t.readOnly?"disable":t.modes[e.mode]?"enable":"disable"]()}function r(e,t,n){if(t){var i,o,r=e.commands;for(o in r)i=r[o],(n||i.contextSensitive)&&i.refresh(e,t)}}function a(e){if(!(t=e.config.customConfig))return!1;var t=CKEDITOR.getUrl(t),n=m[t]||(m[t]={});return n.fn?(n.fn.call(e,e.config),CKEDITOR.getUrl(e.config.customConfig)!=t&&a(e)||e.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(t,function(){n.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){},a(e)}),!0}function s(e,t){e.on("customConfigLoaded",function(){if(t){if(t.on)for(var n in t.on)e.on(n,t.on[n]);CKEDITOR.tools.extend(e.config,t,!0),delete e.config.on}n=e.config,e.readOnly=!!n.readOnly||(e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.element.is("textarea")?e.element.hasAttribute("disabled")||e.element.hasAttribute("readonly"):e.element.isReadOnly():e.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.element.hasAttribute("disabled")||e.element.hasAttribute("readonly"))),e.blockless=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!(e.element.is("textarea")||CKEDITOR.dtd[e.element.getName()].p),e.tabIndex=n.tabIndex||e.element&&e.element.getAttribute("tabindex")||0,e.activeEnterMode=e.enterMode=e.blockless?CKEDITOR.ENTER_BR:n.enterMode,e.activeShiftEnterMode=e.shiftEnterMode=e.blockless?CKEDITOR.ENTER_BR:n.shiftEnterMode,n.skin&&(CKEDITOR.skinName=n.skin),e.fireOnce("configLoaded"),e.dataProcessor=new CKEDITOR.htmlDataProcessor(e),e.filter=e.activeFilter=new CKEDITOR.filter(e),l(e)}),t&&null!=t.customConfig&&(e.config.customConfig=t.customConfig),a(e)||e.fireOnce("customConfigLoaded")}function l(e){CKEDITOR.skin.loadPart("editor",function(){d(e)})}function d(e){CKEDITOR.lang.load(e.config.language,e.config.defaultLanguage,function(t,n){var i=e.config.title;e.langCode=t,e.lang=CKEDITOR.tools.prototypedCopy(n),e.title="string"==typeof i||!1===i?i:[e.lang.editor,e.name].join(", "),e.config.contentsLangDirection||(e.config.contentsLangDirection=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.element.getDirection(1):e.lang.dir),e.fire("langLoaded"),c(e)})}function c(e){e.getStylesSet(function(t){e.once("loaded",function(){e.fire("stylesSet",{styles:t})},null,null,1),u(e)})}function u(e){var t=e.config,n=t.plugins,i=t.extraPlugins,o=t.removePlugins;if(i){var r=new RegExp("(?:^|,)(?:"+i.replace(/\s*,\s*/g,"|")+")(?=,|$)","g");n=(n=n.replace(r,""))+","+i}if(o){var a=new RegExp("(?:^|,)(?:"+o.replace(/\s*,\s*/g,"|")+")(?=,|$)","g");n=n.replace(a,"")}CKEDITOR.env.air&&(n+=",adobeair"),CKEDITOR.plugins.load(n.split(","),function(n){var i=[],o=[],r=[];for(var s in e.plugins=n,n){var l,d=n[s],c=d.lang,u=null,h=d.requires;if(CKEDITOR.tools.isArray(h)&&(h=h.join(",")),h&&(l=h.match(a)))for(;h=l.pop();)CKEDITOR.error("editor-plugin-required",{plugin:h.replace(",",""),requiredBy:s});
153c&&!e.lang[s]&&(c.split&&(c=c.split(",")),0<=CKEDITOR.tools.indexOf(c,e.langCode)?u=e.langCode:u=(u=e.langCode.replace(/-.*/,""))!=e.langCode&&0<=CKEDITOR.tools.indexOf(c,u)?u:0<=CKEDITOR.tools.indexOf(c,"en")?"en":c[0],d.langEntries&&d.langEntries[u]?(e.lang[s]=d.langEntries[u],u=null):r.push(CKEDITOR.getUrl(d.path+"lang/"+u+".js"))),o.push(u),i.push(d)}CKEDITOR.scriptLoader.load(r,function(){for(var n=["beforeInit","init","afterInit"],r=0;r<n.length;r++)for(var a=0;a<i.length;a++){var s=i[a];0===r&&o[a]&&s.lang&&s.langEntries&&(e.lang[s.name]=s.langEntries[o[a]]),s[n[r]]&&s[n[r]](e)}for(e.fireOnce("pluginsLoaded"),t.keystrokes&&e.setKeystroke(e.config.keystrokes),a=0;a<e.config.blockedKeystrokes.length;a++)e.keystrokeHandler.blockedKeystrokes[e.config.blockedKeystrokes[a]]=1;e.status="loaded",e.fireOnce("loaded"),CKEDITOR.fire("instanceLoaded",null,e)})})}function h(){var e=this.element;if(e&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var t=this.getData();return this.config.htmlEncodeOutput&&(t=CKEDITOR.tools.htmlEncode(t)),e.is("textarea")?e.setValue(t):e.setHtml(t),!0}return!1}function f(e,t){function n(e){var t=e.startContainer,n=e.endContainer;return!(!t.is||!(t.is("tr")||t.is("td")&&t.equals(n)&&e.endOffset===t.getChildCount()))}function i(e){var t=e.startContainer;return t.is("tr")?e.cloneContents():t.clone(!0)}for(var o,r,a,s=new CKEDITOR.dom.documentFragment,l=0;l<e.length;l++){var d=e[l],c=d.startContainer.getAscendant("tr",!0);n(d)?(o||((o=c.getAscendant("table").clone()).append(c.getAscendant({thead:1,tbody:1,tfoot:1}).clone()),s.append(o),o=o.findOne("thead, tbody, tfoot")),r&&r.equals(c)||(r=c,a=c.clone(),o.append(a)),a.append(i(d))):s.append(d.cloneContents())}return o?s:t.getHtmlFromRange(e[0])}e.prototype=CKEDITOR.editor.prototype,CKEDITOR.editor=e;var p=0,m={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(e,t){t.name=e.toLowerCase();var n=new CKEDITOR.command(this,t);return this.mode&&o(this,n),this.commands[e]=n},_attachToForm:function(){function e(e){n.updateElement(),n._.required&&!i.getValue()&&!1===n.fire("required")&&e.data.preventDefault()}function t(e){return!!(e&&e.call&&e.apply)}var n=this,i=n.element,o=new CKEDITOR.dom.element(i.$.form);i.is("textarea")&&o&&(o.on("submit",e),t(o.$.submit)&&(o.$.submit=CKEDITOR.tools.override(o.$.submit,function(t){return function(){e(),t.apply?t.apply(this):t()}})),n.on("destroy",function(){o.removeListener("submit",e)}))},destroy:function(e){this.fire("beforeDestroy"),!e&&h.call(this),this.editable(null),this.filter&&(this.filter.destroy(),delete this.filter),delete this.activeFilter,this.status="destroyed",this.fire("destroy"),this.removeAllListeners(),CKEDITOR.remove(this),CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(e){if(!e){if(!(e=this.getSelection()))return null;e=e.getStartElement()}return e?new CKEDITOR.dom.elementPath(e,this.editable()):null},createRange:function(){var e=this.editable();return e?new CKEDITOR.dom.range(e):null},execCommand:function(e,t){var n=this.getCommand(e),i={name:e,commandData:t||{},command:n};return!(!n||n.state==CKEDITOR.TRISTATE_DISABLED||!1===this.fire("beforeCommandExec",i)||(i.returnValue=n.exec(i.commandData),n.async||!1===this.fire("afterCommandExec",i)))&&i.returnValue},getCommand:function(e){return this.commands[e]},getData:function(e){!e&&this.fire("beforeGetData");var t=this._.data;return"string"!=typeof t&&(t=(t=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?t.is("textarea")?t.getValue():t.getHtml():""),t={dataValue:t},!e&&this.fire("getData",t),t.dataValue},getSnapshot:function(){var e=this.fire("getSnapshot");return"string"!=typeof e&&(e=(e=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?e.is("textarea")?e.getValue():e.getHtml():""),e},loadSnapshot:function(e){this.fire("loadSnapshot",e)},setData:function(e,t,n){var i=!0,o=t;t&&"object"==typeof t&&(n=t.internal,o=t.callback,i=!t.noSnapshot),!n&&i&&this.fire("saveSnapshot"),!o&&n||this.once("dataReady",function(e){!n&&i&&this.fire("saveSnapshot"),o&&o.call(e.editor)}),e={dataValue:e},!n&&this.fire("setData",e),this._.data=e.dataValue,!n&&this.fire("afterSetData",e)},setReadOnly:function(e){e=null==e||e,this.readOnly!=e&&(this.readOnly=e,this.keystrokeHandler.blockedKeystrokes[8]=+e,this.editable().setReadOnly(e),this.fire("readOnly"))},insertHtml:function(e,t,n){this.fire("insertHtml",{dataValue:e,mode:t,range:n})},insertText:function(e){this.fire("insertText",e)},insertElement:function(e){this.fire("insertElement",e)},getSelectedHtml:function(e){var t=this.editable(),n=(n=this.getSelection())&&n.getRanges();return t&&n&&0!==n.length?(t=f(n,t),e?t.getHtml():t):null},extractSelectedHtml:function(e,t){var n,i=this.editable(),o=this.getSelection().getRanges(),r=new CKEDITOR.dom.documentFragment;if(!i||0===o.length)return null;for(n=0;n<o.length;n++)r.append(i.extractHtmlFromRange(o[n],t));
153return t||this.getSelection().selectRanges([o[0]]),e?r.getHtml():r},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return h.call(this)},setKeystroke:function(){ 154for(var e,t,n=this.keystrokeHandler.keystrokes,i=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],o=i.length;o--;)e=i[o],t=0,CKEDITOR.tools.isArray(e)&&(t=e[1],e=e[0]),t?n[e]=t:delete n[e]},getCommandKeystroke:function(e){if(e="string"==typeof e?this.getCommand(e):e){var t,n=CKEDITOR.tools.object.findKey(this.commands,e),i=this.keystrokeHandler.keystrokes;if(e.fakeKeystroke)return e.fakeKeystroke;for(t in i)if(i.hasOwnProperty(t)&&i[t]==n)return t}return null},addFeature:function(e){return this.filter.addFeature(e)},setActiveFilter:function(e){e||(e=this.filter),this.activeFilter!==e&&(this.activeFilter=e,this.fire("activeFilterChange"),e===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(e.getAllowedEnterMode(this.enterMode),e.getAllowedEnterMode(this.shiftEnterMode,!0)))},setActiveEnterMode:function(e,t){e=e?this.blockless?CKEDITOR.ENTER_BR:e:this.enterMode,t=t?this.blockless?CKEDITOR.ENTER_BR:t:this.shiftEnterMode,this.activeEnterMode==e&&this.activeShiftEnterMode==t||(this.activeEnterMode=e,this.activeShiftEnterMode=t,this.fire("activeEnterModeChange"))},showNotification:function(e){alert(e)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var e=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,t={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){for(var i,o,r,a=0;i=this._.htmlPartsRegex.exec(n);)if((o=i.index)>a&&(a=n.substring(a,o),r?r.push(a):this.onText(a)),a=this._.htmlPartsRegex.lastIndex,!(o=i[1])||(o=o.toLowerCase(),r&&CKEDITOR.dtd.$cdata[o]&&(this.onCDATA(r.join("")),r=null),r))if(r)r.push(i[0]);else if(o=i[3]){if(o=o.toLowerCase(),!/="/.test(o)){var s,l={},d=i[4];if(i=!!i[5],d)for(;s=e.exec(d);){var c=s[1].toLowerCase();s=s[2]||s[3]||s[4]||"",l[c]=!s&&t[c]?c:CKEDITOR.tools.htmlDecodeAttr(s)}this.onTagOpen(o,l,i),!r&&CKEDITOR.dtd.$cdata[o]&&(r=[])}}else(o=i[2])&&this.onComment(o);else this.onTagClose(o);n.length>a&&this.onText(n.substring(a,n.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(e){this._.output.push("<",e)},openTagClose:function(e,t){t?this._.output.push(" />"):this._.output.push(">")},attribute:function(e,t){"string"==typeof t&&(t=CKEDITOR.tools.htmlEncodeAttr(t)),this._.output.push(" ",e,'="',t,'"')},closeTag:function(e){this._.output.push("</",e,">")},text:function(e){this._.output.push(e)},comment:function(e){this._.output.push("<!--",e,"-->")},write:function(e){this._.output.push(e)},reset:function(){this._.output=[],this._.indent=!1},getHtml:function(e){var t=this._.output.join("");return e&&this.reset(),t}}}),CKEDITOR.htmlParser.node=function(){},CKEDITOR.htmlParser.node.prototype={remove:function(){var e=this.parent.children,t=CKEDITOR.tools.indexOf(e,this),n=this.previous,i=this.next;n&&(n.next=i),i&&(i.previous=n),e.splice(t,1),this.parent=null},replaceWith:function(e){var t=this.parent.children,n=CKEDITOR.tools.indexOf(t,this),i=e.previous=this.previous,o=e.next=this.next;i&&(i.next=e),o&&(o.previous=e),t[n]=e,e.parent=this.parent,this.parent=null},insertAfter:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e),i=e.next;t.splice(n+1,0,this),this.next=e.next,this.previous=e,e.next=this,i&&(i.previous=this),this.parent=e.parent},insertBefore:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e);t.splice(n,0,this),this.next=e,(this.previous=e.previous)&&(e.previous.next=this),e.previous=this,this.parent=e.parent},getAscendant:function(e){for(var t="function"==typeof e?e:"string"==typeof e?function(t){return t.name==e}:function(t){return t.name in e},n=this.parent;n&&n.type==CKEDITOR.NODE_ELEMENT;){if(t(n))return n;n=n.parent}return null},wrapWith:function(e){return this.replaceWith(e),e.add(this),e},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(e){return e||{}}},CKEDITOR.htmlParser.comment=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(e,t){var n=this.value;return(n=e.onComment(t,n,this))?"string"!=typeof n?(this.replaceWith(n),!1):(this.value=n,!0):(this.remove(),!1)},writeHtml:function(e,t){t&&this.filter(t),e.comment(this.value)}}),CKEDITOR.htmlParser.text=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(e,t){if(!(this.value=e.onText(t,this.value,this)))return this.remove(),!1},writeHtml:function(e,t){t&&this.filter(t),e.text(this.value)}}),CKEDITOR.htmlParser.cdata=function(e){this.value=e},CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(e){e.write(this.value)}}),CKEDITOR.htmlParser.fragment=function(){this.children=[],this.parent=null,this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function e(e){return!e.attributes["data-cke-survive"]&&("a"==e.name&&e.attributes.href||CKEDITOR.dtd.$removeEmpty[e.name])}var t=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),n={ol:1,ul:1},i=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),o={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(r,a,s){function l(e){var t;if(0<g.length)for(var n=0;n<g.length;n++){var i=g[n],o=i.name,r=CKEDITOR.dtd[o],a=y.name&&CKEDITOR.dtd[y.name];a&&!a[o]||e&&r&&!r[e]&&CKEDITOR.dtd[e]?o==y.name&&(u(y,y.parent,1),n--):(t||(d(),t=1),(i=i.clone()).parent=y,y=i,g.splice(n,1),n--)}}function d(){for(;v.length;)u(v.shift(),y)}function c(e){if(e._.isBlockLike&&"pre"!=e.name&&"textarea"!=e.name){var t,n=e.children.length,i=e.children[n-1];i&&i.type==CKEDITOR.NODE_TEXT&&((t=CKEDITOR.tools.rtrim(i.value))?i.value=t:e.children.length=n-1)}}function u(t,n,i){n=n||y||m;var o=y;void 0===t.previous&&(h(n,t)&&(y=n,p.onTagOpen(s,{}),t.returnPoint=n=y),c(t),e(t)&&!t.children.length||n.add(t),"pre"==t.name&&(b=!1),"textarea"==t.name&&(_=!1)),t.returnPoint?(y=t.returnPoint,delete t.returnPoint):y=i?n:o}function h(e,t){var n,i;if((e==m||"body"==e.name)&&s&&(!e.name||CKEDITOR.dtd[e.name][s]))return(n=t.attributes&&(i=t.attributes["data-cke-real-element-type"])?i:t.name)&&n in CKEDITOR.dtd.$inline&&!(n in CKEDITOR.dtd.head)&&!t.isOrphan||t.type==CKEDITOR.NODE_TEXT}function f(e,t){return(e in CKEDITOR.dtd.$listItem||e in CKEDITOR.dtd.$tableContent)&&(e==t||"dt"==e&&"dd"==t||"dd"==e&&"dt"==t)}var p=new CKEDITOR.htmlParser,m=a instanceof CKEDITOR.htmlParser.element?a:"string"==typeof a?new CKEDITOR.htmlParser.element(a):new CKEDITOR.htmlParser.fragment,g=[],v=[],y=m,_="textarea"==m.name,b="pre"==m.name;
154for(p.onTagOpen=function(o,r,a,s){if((r=new CKEDITOR.htmlParser.element(o,r)).isUnknown&&a&&(r.isEmpty=!0),r.isOptionalClose=s,e(r))g.push(r);else{if("pre"==o)b=!0;else{if("br"==o&&b)return void y.add(new CKEDITOR.htmlParser.text("\n"));"textarea"==o&&(_=!0)}if("br"==o)v.push(r);else{for(;s=(a=y.name)?CKEDITOR.dtd[a]||(y._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):i,!(r.isUnknown||y.isUnknown||s[o]);)if(y.isOptionalClose)p.onTagClose(a);else if(o in n&&a in n)(a=(a=y.children)[a.length-1])&&"li"==a.name||u(a=new CKEDITOR.htmlParser.element("li"),y),!r.returnPoint&&(r.returnPoint=y),y=a;else if(o in CKEDITOR.dtd.$listItem&&!f(o,a))p.onTagOpen("li"==o?"ul":"dl",{},0,1);else if(a in t&&!f(o,a))!r.returnPoint&&(r.returnPoint=y),y=y.parent;else{if(a in CKEDITOR.dtd.$inline&&g.unshift(y),!y.parent){r.isOrphan=1;break}u(y,y.parent,1)}l(o),d(),r.parent=y,r.isEmpty?u(r):y=r}}},p.onTagClose=function(e){for(var t=g.length-1;0<=t;t--)if(e==g[t].name)return void g.splice(t,1);for(var n=[],i=[],o=y;o!=m&&o.name!=e;)o._.isBlockLike||i.unshift(o),n.push(o),o=o.returnPoint||o.parent;if(o!=m){for(t=0;t<n.length;t++){var r=n[t];u(r,r.parent)}y=o,o._.isBlockLike&&d(),u(o,o.parent),o==y&&(y=y.parent),g=g.concat(i)}"body"==e&&(s=!1)},p.onText=function(e){if(y._.hasInlineStarted&&!v.length||b||_||0!==(e=CKEDITOR.tools.ltrim(e)).length){var n=y.name,r=n?CKEDITOR.dtd[n]||(y._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):i;!_&&!r["#"]&&n in t?(p.onTagOpen(o[n]||""),p.onText(e)):(d(),l(),b||_||(e=e.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," ")),e=new CKEDITOR.htmlParser.text(e),h(y,e)&&this.onTagOpen(s,{},0,1),y.add(e))}},p.onCDATA=function(e){y.add(new CKEDITOR.htmlParser.cdata(e))},p.onComment=function(e){d(),l(),y.add(new CKEDITOR.htmlParser.comment(e))},p.parse(r),d();y!=m;)u(y,y.parent,1);return c(m),m},CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(e,t){isNaN(t)&&(t=this.children.length);var n=0<t?this.children[t-1]:null;if(n){if(e._.isBlockLike&&n.type==CKEDITOR.NODE_TEXT&&(n.value=CKEDITOR.tools.rtrim(n.value),0===n.value.length))return this.children.pop(),void this.add(e);n.next=e}e.previous=n,e.parent=this,this.children.splice(t,0,e),this._.hasInlineStarted||(this._.hasInlineStarted=e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&!e._.isBlockLike)},filter:function(e,t){t=this.getFilterContext(t),e.onRoot(t,this),this.filterChildren(e,!1,t)},filterChildren:function(e,t,n){if(this.childrenFilteredBy!=e.id)for(n=this.getFilterContext(n),t&&!this.parent&&e.onRoot(n,this),this.childrenFilteredBy=e.id,t=0;t<this.children.length;t++)!1===this.children[t].filter(e,n)&&t--},writeHtml:function(e,t){t&&this.filter(t),this.writeChildrenHtml(e)},writeChildrenHtml:function(e,t,n){var i=this.getFilterContext();for(n&&!this.parent&&t&&t.onRoot(i,this),t&&this.filterChildren(t,!1,i),t=0,i=(n=this.children).length;t<i;t++)n[t].writeHtml(e)},forEach:function(e,t,n){if(!(n||t&&this.type!=t))var i=e(this);if(!1!==i){n=this.children;for(var o=0;o<n.length;o++)(i=n[o]).type==CKEDITOR.NODE_ELEMENT?i.forEach(e,t):t&&i.type!=t||e(i)}},getFilterContext:function(e){return e||{}}}}(),function(){function e(){this.rules=[]}function t(t,n,i,o){var r,a;for(r in n)(a=t[r])||(a=t[r]=new e),a.add(n[r],i,o)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(t){this.id=CKEDITOR.tools.getNextNumber(),this.elementNameRules=new e,this.attributeNameRules=new e,this.elementsRules={},this.attributesRules={},this.textRules=new e,this.commentRules=new e,this.rootRules=new e,t&&this.addRules(t,10)},proto:{addRules:function(e,n){var i;"number"==typeof n?i=n:n&&"priority"in n&&(i=n.priority),"number"!=typeof i&&(i=10),"object"!=typeof n&&(n={}),e.elementNames&&this.elementNameRules.addMany(e.elementNames,i,n),e.attributeNames&&this.attributeNameRules.addMany(e.attributeNames,i,n),e.elements&&t(this.elementsRules,e.elements,i,n),e.attributes&&t(this.attributesRules,e.attributes,i,n),e.text&&this.textRules.add(e.text,i,n),e.comment&&this.commentRules.add(e.comment,i,n),e.root&&this.rootRules.add(e.root,i,n)},applyTo:function(e){e.filter(this)},onElementName:function(e,t){return this.elementNameRules.execOnName(e,t)},onAttributeName:function(e,t){return this.attributeNameRules.execOnName(e,t)}
154,onText:function(e,t,n){return this.textRules.exec(e,t,n)},onComment:function(e,t,n){return this.commentRules.exec(e,t,n)},onRoot:function(e,t){return this.rootRules.exec(e,t)},onElement:function(e,t){for(var n,i=[this.elementsRules["^"],this.elementsRules[t.name],this.elementsRules.$],o=0;3>o;o++)if(n=i[o]){if(!1===(n=n.exec(e,t,this)))return null;if(n&&n!=t)return this.onNode(e,n);if(t.parent&&!t.name)break}return t},onNode:function(e,t){var n=t.type;return n==CKEDITOR.NODE_ELEMENT?this.onElement(e,t):n==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(e,t.value)):n==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(e,t.value)):null},onAttribute:function(e,t,n,i){return(n=this.attributesRules[n])?n.exec(e,i,t,this):i}}}),CKEDITOR.htmlParser.filterRulesGroup=e,e.prototype={add:function(e,t,n){this.rules.splice(this.findIndex(t),0,{value:e,priority:t,options:n})},addMany:function(e,t,n){for(var i=[this.findIndex(t),0],o=0,r=e.length;o<r;o++)i.push({value:e[o],priority:t,options:n});this.rules.splice.apply(this.rules,i)},findIndex:function(e){for(var t=this.rules,n=t.length-1;0<=n&&e<t[n].priority;)n--;return n+1},exec:function(e,t){var n,i,o,r,a=t instanceof CKEDITOR.htmlParser.node||t instanceof CKEDITOR.htmlParser.fragment,s=Array.prototype.slice.call(arguments,1),l=this.rules,d=l.length;for(r=0;r<d;r++)if(a&&(n=t.type,i=t.name),o=l[r],!(e.nonEditable&&!o.options.applyToAll||e.nestedEditable&&o.options.excludeNestedEditable)){if(!1===(o=o.value.apply(null,s))||a&&o&&(o.name!=i||o.type!=n))return o;null!=o&&(s[0]=t=o)}return t},execOnName:function(e,t){for(var n,i=0,o=this.rules,r=o.length;t&&i<r;i++)n=o[i],e.nonEditable&&!n.options.applyToAll||e.nestedEditable&&n.options.excludeNestedEditable||(t=t.replace(n.value[0],n.value[1]));return t}}}(),function(){function e(e,t){function s(e){return e||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text("\xa0"):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function l(e,t){return function(o){if(o.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var a,l,c=[],u=n(o);if(u)for(d(u,1)&&c.push(u);u;)r(u)&&(a=i(u))&&d(a)&&((l=i(a))&&!r(l)?c.push(a):(s(h).insertAfter(a),a.remove())),u=u.previous;for(u=0;u<c.length;u++)c[u].remove();(c=!e||!1!==("function"==typeof t?t(o):t))&&((h||CKEDITOR.env.needsBrFiller||o.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(h||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||o.name in CKEDITOR.dtd.tr||o.name in CKEDITOR.dtd.$listItem))?c=!(c=n(o))||"form"==o.name&&"input"==c.name:c=!1),c&&o.add(s(e))}}}function d(e,t){return!(h&&!CKEDITOR.env.needsBrFiller||e.type!=CKEDITOR.NODE_ELEMENT||"br"!=e.name||e.attributes["data-cke-eol"])||!!(e.type==CKEDITOR.NODE_TEXT&&(n=e.value.match(g))&&(n.index&&(new CKEDITOR.htmlParser.text(e.value.substring(0,n.index)).insertBefore(e),e.value=n[0]),!CKEDITOR.env.needsBrFiller&&h&&(!t||e.parent.name in f)||!h&&((n=e.previous)&&"br"==n.name||!n||r(n))));var n}var c,u={elements:{}},h="html"==t,f=CKEDITOR.tools.extend({},b);for(c in f)"#"in y[c]||delete f[c];for(c in f)u.elements[c]=l(h,e.config.fillEmptyBlocks);return u.root=l(h,!1),u.elements.br=function(e){return function(t){if(t.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var n=t.attributes;if("data-cke-bogus"in n||"data-cke-eol"in n)delete n["data-cke-bogus"];else{for(n=t.next;n&&o(n);)n=n.next;var l=i(t);!n&&r(t.parent)?a(t.parent,s(e)):r(n)&&l&&!r(l)&&s(e).insertBefore(n)}}}}(h),u}function t(e,t){return e!=CKEDITOR.ENTER_BR&&!1!==t&&(e==CKEDITOR.ENTER_DIV?"div":"p")}function n(e){for(e=e.children[e.children.length-1];e&&o(e);)e=e.previous;return e}function i(e){for(e=e.previous;e&&o(e);)e=e.previous;return e}function o(e){return e.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(e.value)||e.type==CKEDITOR.NODE_ELEMENT&&e.attributes["data-cke-bookmark"]}function r(e){return e&&(e.type==CKEDITOR.NODE_ELEMENT&&e.name in b||e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function a(e,t){var n=e.children[e.children.length-1];e.children.push(t),t.parent=e,n&&(n.next=t,t.previous=n)}function s(e){"false"!=(e=e.attributes).contenteditable&&(e["data-cke-editable"]=e.contenteditable?"true":1),e.contenteditable="false"}function l(e){switch((e=e.attributes)["data-cke-editable"]){case"true":e.contenteditable="true";break;case"1":delete e.contenteditable}}function d(e){return e.replace(I,function(e,t,n){return"<"+t+n.replace(D,function(e,t){return x.test(t)&&-1==n.indexOf("data-cke-saved-"+t)?" data-cke-saved-"+e+" data-cke-"+CKEDITOR.rn
154d+"-"+e:e})+">"})}function c(e,t){return e.replace(t,function(e,t,n){return 0===e.indexOf("<textarea")&&(e=t+f(n).replace(/</g,"<").replace(/>/g,">")+"</textarea>"),"<cke:encoded>"+encodeURIComponent(e)+"</cke:encoded>"})}function u(e){return e.replace(S,function(e,t){return decodeURIComponent(t)})}function h(e){return e.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(e){return"<!--"+v+"{C}"+encodeURIComponent(e).replace(/--/g,"%2D%2D")+"-->"})}function f(e){return e.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(e,t){return decodeURIComponent(t)})}function p(e,t){var n=t._.dataStore;return e.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(e,t){return decodeURIComponent(t)}).replace(/\{cke_protected_(\d+)\}/g,function(e,t){return n&&n[t]||""})}function m(e,t){var n=[],i=t.config.protectedSource,o=t._.dataStore||(t._.dataStore={id:1}),r=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g;i=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(i);e=e.replace(/\x3c!--[\s\S]*?--\x3e/g,function(e){return"<!--{cke_tempcomment}"+(n.push(e)-1)+"-->"});for(var a=0;a<i.length;a++)e=e.replace(i[a],function(e){return e=e.replace(r,function(e,t,i){return n[i]}),/cke_temp(comment)?/.test(e)?e:"<!--{cke_temp}"+(n.push(e)-1)+"-->"});return(e=(e=e.replace(r,function(e,t,i){return"<!--"+v+(t?"{C}":"")+encodeURIComponent(n[i]).replace(/--/g,"%2D%2D")+"-->"})).replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(e){return e.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(e,t){return o[o.id]=decodeURIComponent(t),"{cke_protected_"+o.id+++"}"})})).replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(e,n,i,o){return"<"+n+i+">"+p(f(o),t)+"</"+n+">"})}CKEDITOR.htmlDataProcessor=function(n){var i,o,r=this;this.editor=n,this.dataFilter=i=new CKEDITOR.htmlParser.filter,this.htmlFilter=o=new CKEDITOR.htmlParser.filter,this.writer=new CKEDITOR.htmlParser.basicWriter,i.addRules(T),i.addRules(C,{applyToAll:!0}),i.addRules(e(n,"data"),{applyToAll:!0}),o.addRules(E),o.addRules(w,{applyToAll:!0}),o.addRules(e(n,"html"),{applyToAll:!0}),n.on("toHtml",function(e){var i,o,r=(r=(r=(r=(r=c(r=d(r=c(r=m(r=(e=e.data).dataValue,n),k)),O)).replace(R,"$1cke:$2")).replace(A,"<cke:$1$2></cke:$1>")).replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2")).replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");i=e.context||n.editable().getName(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==i&&(i="div",r="<pre>"+r+"</pre>",o=1),(i=n.document.createElement(i)).setHtml("a"+r),r=(r=i.getHtml().substr(1)).replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),""),o&&(r=r.replace(/^<pre>|<\/pre>$/gi,"")),r=f(r=u(r=r.replace($,"$1$2"))),i=!1!==e.fixForBody&&t(e.enterMode,n.config.autoParagraph),r=CKEDITOR.htmlParser.fragment.fromHtml(r,e.context,i),i&&(!(o=r).children.length&&CKEDITOR.dtd[o.name][i]&&(i=new CKEDITOR.htmlParser.element(i),o.add(i))),e.dataValue=r},null,null,5),n.on("toHtml",function(e){e.data.filter.applyTo(e.data.dataValue,!0,e.data.dontFilter,e.data.enterMode)&&n.fire("dataFiltered")},null,null,6),n.on("toHtml",function(e){e.data.dataValue.filterChildren(r.dataFilter,!0)},null,null,10),n.on("toHtml",function(e){var t=(e=e.data).dataValue,n=new CKEDITOR.htmlParser.basicWriter;t.writeChildrenHtml(n),t=n.getHtml(!0),e.dataValue=h(t)},null,null,15),n.on("toDataFormat",function(e){var i=e.data.dataValue;e.data.enterMode!=CKEDITOR.ENTER_BR&&(i=i.replace(/^<br *\/?>/i,"")),e.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(i,e.data.context,t(e.data.enterMode,n.config.autoParagraph))},null,null,5),n.on("toDataFormat",function(e){e.data.dataValue.filterChildren(r.htmlFilter,!0)},null,null,10),n.on("toDataFormat",function(e){e.data.filter.applyTo(e.data.dataValue,!1,!0)},null,null,11),n.on("toDataFormat",function(e){var t=e.data.dataValue,i=r.writer;i.reset(),t.writeChildrenHtml(i),t=p(t=f(t=i.getHtml(!0)),n),e.data.dataValue=t},null,null,15)},CKEDITOR.htmlDataProcessor.prototype={toHtml:function(e,t,n,i){var o,r,a,s,l=this.editor;return t&&"object"==typeof t?(o=t.context,n=t.fixForBody,i=t.dontFilter,r=t.filter,a=t.enterMode,s=t.protectedWhitespace
154s):o=t,o||null===o||(o=l.editable().getName()),l.fire("toHtml",{dataValue:e,context:o,fixForBody:n,dontFilter:i,filter:r||l.filter,enterMode:a||l.enterMode,protectedWhitespaces:s}).dataValue},toDataFormat:function(e,t){var n,i,o;return t&&(n=t.context,i=t.filter,o=t.enterMode),n||null===n||(n=this.editor.editable().getName()),this.editor.fire("toDataFormat",{dataValue:e,filter:i||this.editor.filter,context:n,enterMode:o||this.editor.enterMode}).dataValue}};var g=/(?: |\xa0)$/,v="{cke_protected}",y=CKEDITOR.dtd,_="caption colgroup col thead tfoot tbody".split(" "),b=CKEDITOR.tools.extend({},y.$blockLimit,y.$block),T={elements:{input:s,textarea:s}},C={attributeNames:[[/^on/,"data-cke-pa-on"],[/^srcdoc/,"data-cke-pa-srcdoc"],[/^data-cke-expando$/,""]],elements:{iframe:function(e){if(e.attributes&&e.attributes.src){var t=e.attributes.src.toLowerCase().replace(/[^a-z]/gi,"");0!==t.indexOf("javascript")&&0!==t.indexOf("data")||(e.attributes["data-cke-pa-src"]=e.attributes.src,delete e.attributes.src)}}}},E={elements:{embed:function(e){if((n=e.parent)&&"object"==n.name){var t=n.attributes.width,n=n.attributes.height;t&&(e.attributes.width=t),n&&(e.attributes.height=n)}},a:function(e){var t=e.attributes;if(!(e.children.length||t.name||t.id||e.attributes["data-cke-saved-name"]))return!1}}},w={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(e){var t=e.attributes;if(t){if(t["data-cke-temp"])return!1;for(var n=["name","href","src"],i=0;i<n.length;i++)"data-cke-saved-"+n[i]in t&&delete t[n[i]]}return e},table:function(e){e.children.slice(0).sort(function(e,t){var n,i;return e.type==CKEDITOR.NODE_ELEMENT&&t.type==e.type&&(n=CKEDITOR.tools.indexOf(_,e.name),i=CKEDITOR.tools.indexOf(_,t.name)),-1<n&&-1<i&&n!=i||(n=e.parent?e.getIndex():-1,i=t.parent?t.getIndex():-1),n>i?1:-1})},param:function(e){return e.children=[],e.isEmpty=!0,e},span:function(e){"Apple-style-span"==e.attributes["class"]&&delete e.name},html:function(e){delete e.attributes.contenteditable,delete e.attributes["class"]},body:function(e){delete e.attributes.spellcheck,delete e.attributes.contenteditable},style:function(e){var t=e.children[0];t&&t.value&&(t.value=CKEDITOR.tools.trim(t.value)),e.attributes.type||(e.attributes.type="text/css")},title:function(e){var t=e.children[0];!t&&a(e,t=new CKEDITOR.htmlParser.text),t.value=e.attributes["data-cke-title"]||""},input:l,textarea:l},attributes:{"class":function(e){return CKEDITOR.tools.ltrim(e.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(w.attributes.style=function(e){return e.replace(/(^|;)([^\:]+)/g,function(e){return e.toLowerCase()})});var I=/<(a|area|img|input|source)\b([^>]*)>/gi,D=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,x=/^(href|src|name)$/i,O=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,k=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,S=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,R=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,$=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,A=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),CKEDITOR.htmlParser.element=function(e,t){this.name=e,this.attributes=t||{},this.children=[];var n=e||"",i=n.match(/^cke:(.*)/);i&&(n=i[1]),n=!!(CKEDITOR.dtd.$nonBodyContent[n]||CKEDITOR.dtd.$block[n]||CKEDITOR.dtd.$listItem[n]||CKEDITOR.dtd.$tableContent[n]||CKEDITOR.dtd.$nonEditable[n]||"br"==n),this.isEmpty=!!CKEDITOR.dtd.$empty[e],this.isUnknown=!CKEDITOR.dtd[e],this._={isBlockLike:n,hasInlineStarted:this.isEmpty||!n}},CKEDITOR.htmlParser.cssStyle=function(e){var t={};return((e instanceof CKEDITOR.htmlParser.element?e.attributes.style:e)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,n,i){"font-family"==n&&(i=i.replace(/["']/g,"")),t[n.toLowerCase()]=i}),{rules:t,populate:function(e){var t=this.toString();t&&(e instanceof CKEDITOR.dom.element?e.setAttribute("style",t):e instanceof CKEDITOR.htmlParser.element?e.attributes.style=t:e.style=t)},toString:function(){var e,n=[];for(e in t)t[e]&&n.push(e,":",t[e],";");return n.join("")}}},function(){function e(e){return function(t){return t.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof e?t.name==e:t.name in e)}}var t=function(e,t){return(e=e[0])<(t=t[0])?-1:e>t?1:0},n=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:n.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(e,t){var n,i,o,r,a=this;if((t=a.getFilterContext(t)).off)return!0;for(a.parent||e.onRoot(t,a);;){if(n=a.name,!(i=e.onElementName(t,n)))return this.remove(),!1;if(a.name=i,!(a=e.onElement(t,a)))return this.remove(),!1;if(a!==this)return this.replaceWith(a),!1;if(a.name==n)break;if(a.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(a),!1;if(!a.name)return this.replaceWithChildren(),!1}for(o in n=a.attributes){for(i=n[o];;){if(!(r=e.onAttributeName(t,o))){delete n[o];break}if(r==o)break;delete n[o],o=r}r&&(!1===(i=e.onAttribute(t,a,r,i))?delete n[r]:n[r]=i)}return a.isEmpty||this.filterChildren(e,!1,t),!0}
154,filterChildren:n.filterChildren,writeHtml:function(e,n){n&&this.filter(n);var i,o,r=this.name,a=[],s=this.attributes;for(i in e.openTag(r,s),s)a.push([i,s[i]]);for(e.sortAttributes&&a.sort(t),i=0,o=a.length;i<o;i++)s=a[i],e.attribute(s[0],s[1]);e.openTagClose(r,this.isEmpty),this.writeChildrenHtml(e),this.isEmpty||e.closeTag(r)},writeChildrenHtml:n.writeChildrenHtml,replaceWithChildren:function(){for(var e=this.children,t=e.length;t;)e[--t].insertAfter(this);this.remove()},forEach:n.forEach,getFirst:function(t){if(!t)return this.children.length?this.children[0]:null;"function"!=typeof t&&(t=e(t));for(var n=0,i=this.children.length;n<i;++n)if(t(this.children[n]))return this.children[n];return null},getHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;return this.writeChildrenHtml(e),e.getHtml()},setHtml:function(e){for(var t=0,n=(e=this.children=CKEDITOR.htmlParser.fragment.fromHtml(e).children).length;t<n;++t)e[t].parent=this},getOuterHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;return this.writeHtml(e),e.getHtml()},split:function(e){for(var t=this.children.splice(e,this.children.length-e),n=this.clone(),i=0;i<t.length;++i)t[i].parent=n;return n.children=t,t[0]&&(t[0].previous=null),0<e&&(this.children[e-1].next=null),this.parent.add(n,this.getIndex()+1),n},find:function(e,t){void 0===t&&(t=!1);var n,i=[];for(n=0;n<this.children.length;n++){var o=this.children[n];"function"==typeof e&&e(o)?i.push(o):"string"==typeof e&&o.name===e&&i.push(o),t&&o.find&&(i=i.concat(o.find(e,t)))}return i},addClass:function(e){if(!this.hasClass(e)){var t=this.attributes["class"]||"";this.attributes["class"]=t+(t?" ":"")+e}},removeClass:function(e){var t=this.attributes["class"];t&&((t=CKEDITOR.tools.trim(t.replace(new RegExp("(?:\\s+|^)"+e+"(?:\\s+|$)")," ")))?this.attributes["class"]=t:delete this.attributes["class"])},hasClass:function(e){var t=this.attributes["class"];return!!t&&new RegExp("(?:^|\\s)"+e+"(?=\\s|$)").test(t)},getFilterContext:function(e){var t=[];if(e||(e={off:!1,nonEditable:!1,nestedEditable:!1}),e.off||"off"!=this.attributes["data-cke-processor"]||t.push("off",!0),e.nonEditable||"false"!=this.attributes.contenteditable?e.nonEditable&&!e.nestedEditable&&"true"==this.attributes.contenteditable&&t.push("nestedEditable",!0):t.push("nonEditable",!0),t.length){e=CKEDITOR.tools.copy(e);for(var n=0;n<t.length;n+=2)e[t[n]]=t[n+1]}return e}},!0)}(),function(){var e=/{([^}]+)}/g;CKEDITOR.template=function(e){this.source=String(e)},CKEDITOR.template.prototype.output=function(t,n){var i=this.source.replace(e,function(e,n){return void 0!==t[n]?t[n]:e});return n?n.push(i):i}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(e){CKEDITOR.instances[e.name]=e,e.on("focus",function(){CKEDITOR.currentInstance!=e&&(CKEDITOR.currentInstance=e,CKEDITOR.fire("currentInstance"))}),e.on("blur",function(){CKEDITOR.currentInstance==e&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))}),CKEDITOR.fire("instance",null,e)},CKEDITOR.remove=function(e){delete CKEDITOR.instances[e.name]},function(){var e={};CKEDITOR.addTemplate=function(t,n){var i=e[t];return i||(i={name:t,source:n},CKEDITOR.fire("template",i),e[t]=new CKEDITOR.template(i.source))},CKEDITOR.getTemplate=function(t){return e[t]}}(),function(){var e=[];CKEDITOR.addCss=function(t){e.push(t)},CKEDITOR.getCss=function(){return e.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,CKEDITOR.inline=function(e,t){if(!CKEDITOR.env.isCompatible)return null;if((e=CKEDITOR.dom.element.get(e)).getEditor())throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.';var n=new CKEDITOR.editor(t,e,CKEDITOR.ELEMENT_MODE_INLINE),i=e.is("textarea")?e:null;return i?(n.setData(i.getValue(),null,!0),(e=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+!!n.readOnly+'" class="cke_textarea_inline">'+i.getValue()+"</div>",CKEDITOR.document)).insertAfter(i),i.hide(),i.$.form&&n._attachToForm()):n.setData(e.getHtml(),null,!0),n.on("loaded",function(){n.fire("uiReady"),n.editable(e),n.container=e,n.ui.contentsElement=e,n.setData(n.getData(1)),n.resetDirty(),n.fire("contentDom"),n.mode="wysiwyg",n.fire("mode"),n.status="ready",n.fireO
154nce("instanceReady"),CKEDITOR.fire("instanceReady",null,n)},null,null,1e4),n.on("destroy",function(){i&&(n.container.clearCustomData(),n.container.remove(),i.show()),n.element.clearCustomData(),delete n.element}),n},CKEDITOR.inlineAll=function(){var e,t,n;for(n in CKEDITOR.dtd.$editable)for(var i=CKEDITOR.document.getElementsByTag(n),o=0,r=i.count();o<r;o++)"true"==(e=i.getItem(o)).getAttribute("contenteditable")&&(t={element:e,config:{}},!1!==CKEDITOR.fire("inline",t)&&CKEDITOR.inline(e,t.config))},CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()}),CKEDITOR.replaceClass="ckeditor",function(){function e(e,i,o,r){if(!CKEDITOR.env.isCompatible)return null;if((e=CKEDITOR.dom.element.get(e)).getEditor())throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.';var a=new CKEDITOR.editor(i,e,r);return r==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.setStyle("visibility","hidden"),a._.required=e.hasAttribute("required"),e.removeAttribute("required")),o&&a.setData(o,null,!0),a.on("loaded",function(){n(a),r==CKEDITOR.ELEMENT_MODE_REPLACE&&a.config.autoUpdateElement&&e.$.form&&a._attachToForm(),a.setMode(a.config.startupMode,function(){a.resetDirty(),a.status="ready",a.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,a)})}),a.on("destroy",t),a}function t(){var e=this.container,t=this.element;e&&(e.clearCustomData(),e.remove()),t&&(t.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(t.show(),this._.required&&t.setAttribute("required","required")),delete this.element)}function n(e){var t=e.name,n=e.element,i=e.elementMode,o=e.fire("uiSpace",{space:"top",html:""}).html,r=e.fire("uiSpace",{space:"bottom",html:""}).html,a=new CKEDITOR.template('<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" lang="{langCode}" role="application"'+(e.title?' aria-labelledby="cke_{name}_arialbl"':"")+">"+(e.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>');t=CKEDITOR.dom.element.createFromHtml(a.output({id:e.id,name:t,langDir:e.lang.dir,langCode:e.langCode,voiceLabel:e.title,topHtml:o?'<span id="'+e.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+o+"</span>":"",contentId:e.ui.spaceId("contents"), 155bottomHtml:r?'<span id="'+e.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+r+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));i==CKEDITOR.ELEMENT_MODE_REPLACE?(n.hide(),t.insertAfter(n)):n.append(t),e.container=t,e.ui.contentsElement=e.ui.space("contents"),o&&e.ui.space("top").unselectable(),r&&e.ui.space("bottom").unselectable(),n=e.config.width,i=e.config.height,n&&t.setStyle("width",CKEDITOR.tools.cssLength(n)),i&&e.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(i)),t.disableContextMenu(),CKEDITOR.env.webkit&&t.on("focus",function(){e.focus()}),e.fireOnce("uiReady")}CKEDITOR.replace=function(t,n){return e(t,n,null,CKEDITOR.ELEMENT_MODE_REPLACE)},CKEDITOR.appendTo=function(t,n,i){return e(t,n,i,CKEDITOR.ELEMENT_MODE_APPENDTO)},CKEDITOR.replaceAll=function(){for(var e=document.getElementsByTagName("textarea"),t=0;t<e.length;t++){var n=null,i=e[t];if(i.name||i.id){if("string"==typeof arguments[0]){if(!new RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(i.className))continue}else if("function"==typeof arguments[0]&&(n={},!1===arguments[0](i,n)))continue;this.replace(i,n)}}},CKEDITOR.editor.prototype.addMode=function(e,t){(this._.modes||(this._.modes={}))[e]=t},CKEDITOR.editor.prototype.setMode=function(e,t){var n=this,i=this._.modes;if(e!=n.mode&&i&&i[e]){if(n.fire("beforeSetMode",e),n.mode){var o,r=n.checkDirty(),a=(i=n._.previousModeData,0);n.fire("beforeModeUnload"),n.editable(0),n._.previousMode=n.mode,n._.previousModeData=o=n.getData(1),"source"==n.mode&&i==o&&(n.fire("lockSnapshot",{forceUpdate:!0}),a=1),n.ui.space("contents").setHtml(""),n.mode=""}else n._.previousModeData=n.getData(1);this._.modes[e](function(){n.mode=e,void 0!==r&&!r&&n.resetDirty(),a?n.fire("unlockSnapshot"):"wysiwyg"==e&&n.fire("saveSnapshot"),setTimeout(function(){n.fire("mode"),t&&t.call(n)},0)})}},CKEDITOR.editor.prototype.resize=function(e,t,n,i){var o=this.container,r=this.ui.space("contents"),a=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;(i=i?this.container.getFirst(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_inner")}):o).setSize("width",e,!0),a&&(a.style.width="1%");var s=(i.$.offsetHeight||0)-(r.$.clientHeight||0);o=Math.max(t-(n?0:s),0);t=n?t+s:t,r.setStyle("height",o+"px"),a&&(a.style.width="100%"),this.fire("resize",{outerHeight:t,contentsHeight:o,outerWidth:e||i.getSize("width")})},CKEDITOR.editor.prototype.getResizable=function(e){return e?this.ui.space("contents"):this.container},CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function e(e){var n,o=e.editor,r=e.data.path,s=r.blockLimit,l=e.data.selection,d=l.getRanges()[0];(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&(l=t(l,r))&&(l.appendBogus(),n=CKEDITOR.env.ie),a(o,r.block,s)&&d.collapsed&&!d.getCommonAncestor().isReadOnly()&&((r=d.clone()).enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),(s=new CKEDITOR.dom.walker(r)).guard=function(e){return!i(e)||e.type==CKEDITOR.NODE_COMMENT||e.isReadOnly()},!s.checkForward()||r.checkStartOfBlock()&&r.checkEndOfBlock())&&(o=d.fixBlock(!0,o.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||(
155o=o.getFirst(i))&&o.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(o.getText()).match(/^(?: |\xa0)$/)&&o.remove(),n=1,e.cancel()),n&&d.select()}function t(e,t){if(e.isFake)return 0;var n=t.block||t.blockLimit,o=n&&n.getLast(i);return!n||!n.isBlockBoundary()||o&&o.type==CKEDITOR.NODE_ELEMENT&&o.isBlockBoundary()||n.is("pre")||n.getBogus()?void 0:n}function n(e){var t=e.data.getTarget();t.is("input")&&("submit"!=(t=t.getAttribute("type"))&&"reset"!=t||e.data.preventDefault())}function i(e){return c(e)&&u(e)}function o(e,t){return function(n){var i=n.data.$.toElement||n.data.$.fromElement||n.data.$.relatedTarget;(i=i&&i.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(i):null)&&(t.equals(i)||t.contains(i))||e.call(this,n)}}function r(e){function t(e){return function(t,o){if(o&&t.type==CKEDITOR.NODE_ELEMENT&&t.is(r)&&(n=t),!(o||!i(t)||e&&f(t)))return!1}}var n,o=e.getRanges()[0];e=e.root;var r={table:1,ul:1,ol:1,dl:1};if(o.startPath().contains(r)){var a=o.clone();if(a.collapse(1),a.setStartAt(e,CKEDITOR.POSITION_AFTER_START),(e=new CKEDITOR.dom.walker(a)).guard=t(),e.checkBackward(),n)return(a=o.clone()).collapse(),a.setEndAt(n,CKEDITOR.POSITION_AFTER_END),(e=new CKEDITOR.dom.walker(a)).guard=t(!0),n=!1,e.checkForward(),n}return null}function a(e,t,n){return!1!==e.config.autoParagraph&&e.activeEnterMode!=CKEDITOR.ENTER_BR&&(e.editable().equals(n)&&!t||t&&"true"==t.getAttribute("contenteditable"))}function s(e){return e.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==e.config.autoParagraph&&(e.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p")}function l(e){var t=e.editor;t.getSelection().scrollIntoView(),setTimeout(function(){t.fire("saveSnapshot")},0)}function d(e,t,n){var i=e.getCommonAncestor(t);for(t=e=n?t:e;(e=e.getParent())&&!i.equals(e)&&1==e.getChildCount();)t=e;t.remove()}var c,u,h,f,p,m,g,v,y,_;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(e,t){this.base(t.$||t),this.editor=e,this.status="unloaded",this.hasFocus=!1,this.setup()},proto:{focus:function(){var e;if(CKEDITOR.env.webkit&&!this.hasFocus&&(e=this.editor._.previousActive||this.getDocument().getActive(),this.contains(e)))e.focus();else{CKEDITOR.env.edge&&14<CKEDITOR.env.version&&!this.hasFocus&&this.getDocument().equals(CKEDITOR.document)&&(this.editor._.previousScrollTop=this.$.scrollTop);try{if(!CKEDITOR.env.ie||CKEDITOR.env.edge&&14<CKEDITOR.env.version||!this.getDocument().equals(CKEDITOR.document))if(CKEDITOR.env.chrome){var t=this.$.scrollTop;this.$.focus(),this.$.scrollTop=t}else this.$.focus();else this.$.setActive()}catch(i){if(!CKEDITOR.env.ie)throw i}CKEDITOR.env.safari&&!this.isInline()&&((e=CKEDITOR.document.getActive()).equals(this.getWindow().getFrame())||this.getWindow().focus())}},on:function(e,t){var n=Array.prototype.slice.call(arguments,0);
155return CKEDITOR.env.ie&&/^focus|blur$/.exec(e)&&(e="focus"==e?"focusin":"focusout",t=o(t,this),n[0]=e,n[1]=t),CKEDITOR.dom.element.prototype.on.apply(this,n)},attachListener:function(e){!this._.listeners&&(this._.listeners=[]);var t=Array.prototype.slice.call(arguments,1);t=e.on.apply(e,t);return this._.listeners.push(t),t},clearListeners:function(){var e=this._.listeners;try{for(;e.length;)e.pop().removeListener()}catch(n){}},restoreAttrs:function(){var e,t,n=this._.attrChanges;for(t in n)n.hasOwnProperty(t)&&(null!==(e=n[t])?this.setAttribute(t,e):this.removeAttribute(t))},attachClass:function(e){var t=this.getCustomData("classes");this.hasClass(e)||(!t&&(t=[]),t.push(e),this.setCustomData("classes",t),this.addClass(e))},changeAttr:function(e,t){var n=this.getAttribute(e);t!==n&&(!this._.attrChanges&&(this._.attrChanges={}),e in this._.attrChanges||(this._.attrChanges[e]=n),this.setAttribute(e,t))},insertText:function(e){this.editor.focus(),this.insertHtml(this.transformPlainTextToHtml(e),"text")},transformPlainTextToHtml:function(e){var t=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(e,t)},insertHtml:function(e,t,n){var i=this.editor;i.focus(),i.fire("saveSnapshot"),n||(n=i.getSelection().getRanges()[0]),m(this,t||"html",e,n),n.select(),l(this),this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(e,t,n){m(this,n||"html",e,t),this.editor.fire("afterInsertHtml",{intoRange:t})},insertElement:function(e,t){(o=this.editor).focus(),o.fire("saveSnapshot");var n=o.activeEnterMode,o=o.getSelection(),r=e.getName();r=CKEDITOR.dtd.$block[r];t||(t=o.getRanges()[0]),this.insertElementIntoRange(e,t)&&(t.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),r&&((r=e.getNext(function(e){return i(e)&&!f(e)}))&&r.type==CKEDITOR.NODE_ELEMENT&&r.is(CKEDITOR.dtd.$block)?r.getDtd()["#"]?t.moveToElementEditStart(r):t.moveToElementEditEnd(e):r||n==CKEDITOR.ENTER_BR||(r=t.fixBlock(!0,n==CKEDITOR.ENTER_DIV?"div":"p"),t.moveToElementEditStart(r)))),o.selectRanges([t]),l(this)},insertElementIntoSelection:function(e){this.insertElement(e)},insertElementIntoRange:function(e,t){var n,i,o=this.editor,r=o.config.enterMode,a=e.getName(),s=CKEDITOR.dtd.$block[a];if(t.checkReadOnly())return!1;if(t.deleteContents(1),t.startContainer.type==CKEDITOR.NODE_ELEMENT&&(t.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})?g(t):t.startContainer.is(CKEDITOR.dtd.$list)&&v(t)),s)for(;(n=t.getCommonAncestor(0,1))&&(i=CKEDITOR.dtd[n.getName()])&&(!i||!i[a]);)n.getName()in CKEDITOR.dtd.span?t.splitElement(n):t.checkStartOfBlock()&&t.checkEndOfBlock()?(t.setStartBefore(n),t.collapse(!0),n.remove()):t.splitBlock(r==CKEDITOR.ENTER_DIV?"div":"p",o.editable());return t.insertNode(e),!0},setData:function(e,t){t||(e=this.editor.dataProcessor.toHtml(e)),this.setHtml(e),this.fixInitialSelection(),"unloaded"==this.status&&(this.status="ready"),this.editor.fire("dataReady")},getData:function(e){var t=this.getHtml();return e||(t=this.editor.dataProcessor.toDataFormat(t)),t},setReadOnly:function(e){this.setAttribute("contenteditable",!e)},detach:function(){this.removeClass("cke_editable"),this.status="detached";var e=this.editor;this._.detach(),delete e.document,delete e.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function e(){var e,t=n.getDocument().$,i=t.getSelection();e:if(i.anchorNode&&i.anchorNode==n.$)e=!0;else{if(CKEDITOR.env.webkit&&(e=n.getDocument().getActive())&&e.equals(n)&&!i.anchorNode){e=!0;break e}e=void 0}e&&((e=new CKEDITOR.dom.range(n)).moveToElementEditStart(n),(t=t.createRange()).setStart(e.startContainer.$,e.startOffset),t.collapse(!0),i.removeAllRanges(),i.addRange(t))}function t(){var e=n.getDocument().$,t=e.selection,i=n.getDocument().getActive();"None"==t.type&&i.equals(n)&&(t=new CKEDITOR.dom.range(n),e=e.body.createTextRange(),t.moveToElementEditStart(n),(t=t.startContainer).type!=CKEDITOR.NODE_ELEMENT&&(t=t.getParent()),e.moveToElementText(t.$),e.collapse(!0),e.select())}var n=this;CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks)?this.hasFocus&&(this.focus(),t()):this.hasFocus?(this.focus(),e()):this.once("focus",function(){e()},null,null,-999)},getHtmlFromRange:function(e){return e.collapsed?new CKEDITOR.dom.documentFragment(e.document):(e={doc:this.getDocument(),range:e.clone()},y.eol.detect(e,this),y.bogus.exclude(e),y.cell.shrink(e),e.fragment=e.range.cloneContents(),y.tree.rebuild(e,this),y.eol.fix(e,this),new CKEDITOR.dom.documentFragment(e.fragment.$))},extractHtmlFromRange:function(e,t){var n=_,i={range:e,doc:e.document},o=this.getHtmlFromRange(e);if(e.collapsed)return e.optimize(),o;if(e.enlarge(CKEDITOR.ENLARGE_INLINE,1),n.table.detectPurge(i),i.bookmark=e.createBookmark(),delete i.range,(a=this.editor.createRange()).moveToPosition(i.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START),i.targetBookmark=a.createBookmark(),n.list.detectMerge(i,this),n.table.detectRanges(i,this),n.block.detectMerge(i,this),i.tableContentsRanges?(n.table.deleteRanges(i),e.moveToBookmark(i.bookmark),i.range=e):(e.moveToBookmark(i.bookmark),i.range=e,e.extractContents(n.detectExtractMerge(i))),e.moveToBookmark(i.targetBookmark),e.optimize(),n.fixUneditableRangePosition(e),n.list.merge(i,this),n.table.purge(i,this),n.block.merge(i,this),t){if(n=e.startPath(),i=e.checkStartOfBlock()&&e.checkEndOfBlock()&&n.block&&!e.root.equals(n.block)){e:{var r,a=0;if(i=n.block.getElementsByTag("span"))for(;r=i.getItem(a++);)if(!u(r)){i=!0;break e}i=!1}i=!i}i&&(e.moveToPosition(n.block,CKEDITOR.POSITION_BEFORE_START),n.block.remove())}else n.autoParagraph(this.editor,e),h(e.startContainer)&&e.startContainer.appendBogus();return e.startContainer.mergeSiblings(),o},setup:function(){var e=this.editor;if(this.attachListener(e,"beforeGetData",function(){var t=this.getData();this.is("textarea")||!1!==e.config.ignoreEmptyParagraph&&(t=t.replace(p,function(e,t){return t})),e.setData(t,null,1)},this),this.attachListener(e,"getSnapshot",function(e){e.data=this.getData(1)},this),this.attachListener(e,"afterSetData",function(){this.setData(e.getData(1))}
155,this),this.attachListener(e,"loadSnapshot",function(e){this.setData(e.data,1)},this),this.attachListener(e,"beforeFocus",function(){var t=e.getSelection();(t=t&&t.getNative())&&"Control"==t.type||this.focus()},this),this.attachListener(e,"insertHtml",function(e){this.insertHtml(e.data.dataValue,e.data.mode,e.data.range)},this),this.attachListener(e,"insertElement",function(e){this.insertElement(e.data)},this),this.attachListener(e,"insertText",function(e){this.insertText(e.data)},this),this.setReadOnly(e.readOnly),this.attachClass("cke_editable"),e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):e.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&e.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||this.attachClass("cke_editable_themed"),this.attachClass("cke_contents_"+e.config.contentsLangDirection),e.keystrokeHandler.blockedKeystrokes[8]=+e.readOnly,e.keystrokeHandler.attach(this),this.on("blur",function(){this.hasFocus=!1},null,null,-1),this.on("focus",function(){this.hasFocus=!0},null,null,-1),CKEDITOR.env.webkit&&this.on("scroll",function(){e._.previousScrollTop=e.editable().$.scrollTop},null,null,-1),CKEDITOR.env.edge&&14<CKEDITOR.env.version){var t=function(){var n=e.editable();null!=e._.previousScrollTop&&n.getDocument().equals(CKEDITOR.document)&&(n.$.scrollTop=e._.previousScrollTop,e._.previousScrollTop=null,this.removeListener("scroll",t))};this.on("scroll",t)}if(e.focusManager.add(this),this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,e.once("contentDom",function(){e.focusManager.focus(this)},this)),this.isInline()&&this.changeAttr("tabindex",e.tabIndex),!this.is("textarea")){e.document=this.getDocument(),e.window=this.getWindow();var o=e.document;this.changeAttr("spellcheck",!e.config.disableNativeSpellChecker);var a=e.config.contentsLangDirection;this.getDirection(1)!=a&&this.changeAttr("dir",a);var s=CKEDITOR.getCss();if(s){var l=(a=o.getHead()).getCustomData("stylesheet");l?s!=l.getText()&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?l.$.styleSheet.cssText=s:l.setText(s)):(s=o.appendStyleText(s),s=new CKEDITOR.dom.element(s.ownerNode||s.owningElement),a.setCustomData("stylesheet",s),s.data("cke-temp",1))}a=o.getCustomData("stylesheet_ref")||0,o.setCustomData("stylesheet_ref",a+1),this.setCustomData("cke_includeReadonly",!e.config.disableReadonlyStyling),this.attachListener(this,"click",function(e){e=e.data;var t=new CKEDITOR.dom.elementPath(e.getTarget(),this).contains("a");t&&2!=e.$.button&&t.isReadOnly()&&e.preventDefault()});var u={8:1,46:1};this.attachListener(e,"key",function(t){if(e.readOnly)return!0;var n,i=t.data.domEvent.getKey();if(0!==(t=e.getSelection()).getRanges().length){if(i in u){var o,a,s,l,d=t.getRanges()[0],h=d.startPath();i=8==i;CKEDITOR.env.ie&&11>CKEDITOR.env.version&&(o=t.getSelectedElement())||(o=r(t))?(e.fire("saveSnapshot"),d.moveToPosition(o,CKEDITOR.POSITION_BEFORE_START),o.remove(),d.select(),e.fire("saveSnapshot"),n=1):d.collapsed&&((a=h.block)&&(l=a[i?"getPrevious":"getNext"](c))&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("table")&&d[i?"checkStartOfBlock":"checkEndOfBlock"]()?(e.fire("saveSnapshot"),d[i?"checkEndOfBlock":"checkStartOfBlock"]()&&a.remove(),d["moveToElementEdit"+(i?"End":"Start")](l),d.select(),e.fire("saveSnapshot"),n=1):h.blockLimit&&h.blockLimit.is("td")&&(s=h.blockLimit.getAscendant("table"))&&d.checkBoundaryOfElement(s,i?CKEDITOR.START:CKEDITOR.END)&&(l=s[i?"getPrevious":"getNext"](c))?(e.fire("saveSnapshot"),d["moveToElementEdit"+(i?"End":"Start")](l),d.checkStartOfBlock()&&d.checkEndOfBlock()?l.remove():d.select(),e.fire("saveSnapshot"),n=1):(s=h.contains(["td","th","caption"]))&&d.checkBoundaryOfElement(s,i?CKEDITOR.START:CKEDITOR.END)&&(n=1))}return!n}}),e.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&this.attachListener(this,"keyup",function(t){t.data.getKeystroke()in u&&!this.getFirst(i)&&(this.appendBogus(),(t=e.createRange()).moveToPosition(this,CKEDITOR.POSITION_AFTER_START),t.select())}),this.attachListener(this,"dblclick",function(t){if(e.readOnly)return!1;t={element:t.data.getTarget()},e.fire("doubleclick",t)}),CKEDITOR.env.ie&&this.attachListener(this,"click",n),CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(t){var n=t.data.getTarget();
155n.is("img","hr","input","textarea","select")&&!n.isReadOnly()&&(e.getSelection().selectElement(n),n.is("input","textarea","select")&&t.data.preventDefault())}),CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(t){(t=t.data.getTarget())&&t.is("img")&&e.getSelection().selectElement(t)}),CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(t){if(2==t.data.$.button&&!(t=t.data.getTarget()).getOuterHtml().replace(p,"")){var n=e.createRange();n.moveToElementEditStart(t),n.select(!0)}}),CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(e){e.data.getTarget().is("input","select")&&e.data.preventDefault()}),this.attachListener(this,"mouseup",function(e){e.data.getTarget().is("input","textarea")&&e.data.preventDefault()})),CKEDITOR.env.webkit&&this.attachListener(e,"key",function(t){if(e.readOnly)return!0;if((n=t.data.domEvent.getKey())in u&&0!==(t=e.getSelection()).getRanges().length){var n=8==n,i=t.getRanges()[0];if(t=i.startPath(),i.collapsed)e:{var o=t.block;if(o&&i[n?"checkStartOfBlock":"checkEndOfBlock"]()&&i.moveToClosestEditablePosition(o,!n)&&i.collapsed){if(i.startContainer.type==CKEDITOR.NODE_ELEMENT){var r=i.startContainer.getChild(i.startOffset-(n?1:0));if(r&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("hr")){e.fire("saveSnapshot"),r.remove(),t=!0;break e}}var a;if(!(i=i.startPath().block)||i&&i.contains(o))t=void 0;else e.fire("saveSnapshot"),(a=(n?i:o).getBogus())&&a.remove(),r=(a=e.getSelection()).createBookmarks(),(n?o:i).moveChildren(n?i:o,!1),t.lastElement.mergeSiblings(),d(o,i,!n),a.selectBookmarks(r),t=!0}else t=!1}else n=i,a=t.block,i=n.endPath().block,a&&i&&!a.equals(i)?(e.fire("saveSnapshot"),(o=a.getBogus())&&o.remove(),n.enlarge(CKEDITOR.ENLARGE_INLINE),n.deleteContents(),i.getParent()&&(i.moveChildren(a,!1),t.lastElement.mergeSiblings(),d(a,i,!0)),(n=e.getSelection().getRanges()[0]).collapse(1),n.optimize(),""===n.startContainer.getHtml()&&n.startContainer.appendBogus(),n.select(),t=!0):t=!1;if(!t)return;return e.getSelection().scrollIntoView(),e.fire("saveSnapshot"),!1}},this,null,100)}}},_:{detach:function(){var e;if(this.editor.setData(this.editor.getData(),0,1),this.clearListeners(),this.restoreAttrs(),e=this.removeCustomData("classes"))for(;e.length;)this.removeClass(e.pop());if(!this.is("textarea")){var t=(e=this.getDocument()).getHead();if(t.getCustomData("stylesheet")){var n=e.getCustomData("stylesheet_ref");--n?e.setCustomData("stylesheet_ref",n):(e.removeCustomData("stylesheet_ref"),t.removeCustomData("stylesheet").remove())}}this.editor.fire("contentDomUnload"),delete this.editor}}}),CKEDITOR.editor.prototype.editable=function(e){var t=this._.editable;return t&&e?0:(arguments.length&&(t=this._.editable=e?e instanceof CKEDITOR.editable?e:new CKEDITOR.editable(this,e):(t&&t.detach(),null)),t)},CKEDITOR.on("instanceLoaded",function(t){var n=t.editor;n.on("insertElement",function(e){(e=e.data).type==CKEDITOR.NODE_ELEMENT&&(e.is("input")||e.is("textarea"))&&("false"!=e.getAttribute("contentEditable")&&e.data("cke-editable",e.hasAttribute("contenteditable")?"true":"1"),e.setAttribute("contentEditable",!1))}),n.on("selectionChange",function(t){if(!n.readOnly){var i=n.getSelection();i&&!i.isLocked&&(i=n.checkDirty(),n.fire("lockSnapshot"),e(t),n.fire("unlockSnapshot"),!i&&n.resetDirty())}})}),CKEDITOR.on("instanceCreated",function(e){var t=e.editor;t.on("mode",function(){var e=t.editable();if(e&&e.isInline()){var n=t.title;if(e.changeAttr("role","textbox"),e.changeAttr("aria-label",n),n&&e.changeAttr("title",n),(o=t.fire("ariaEditorHelpLabel",{}).label)&&(n=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var i=CKEDITOR.tools.getNextId(),o=CKEDITOR.dom.element.createFromHtml('<span id="'+i+'" class="cke_voice_label">'+o+"</span>");n.append(o),e.changeAttr("aria-describedby",i)}}})}),CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}"),c=CKEDITOR.dom.walker.whitespaces(!0),u=CKEDITOR.dom.walker.bookmark(!1,!0),h=CKEDITOR.dom.walker.empty(),f=CKEDITOR.dom.walker.bogus(),p=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,m=function(){function e(e){return e.type==CKEDITOR.NODE_ELEMENT}function t(n,i){var o,r,a,s,l=[],d=i.range.startContainer;o=i.range.startPath();d=c[d.getName()];for(var u=0,h=n.getChildren(),f=h.count(),p=-1,m=-1,g=0,v=o.contains(c.$list);u<f;++u)e(o=h.getItem(u))?(a=o.getName(),v&&a in CKEDITOR.dtd.$list?l=l.concat(t(o,i)):(s=!!d[a],"br"!=a||!o.data("cke-eol")||u&&u!=f-1||(g=(r=u?l[u-1].node:h.getItem(u+1))&&(!e(r)||!r.is("br")),r=r&&e(r)&&c.$block[r.getName()]),-1!=p||s||(p=u),s||(m=u),l.push({isElement:1,isLineBreak:g,isBlock:o.isBlockBoundary(),hasBlockSibling:r,node:o,name:a,allowed:s}),r=g=0)):l.push({isElement:0,node:o,allowed:1});return-1<p&&(l[p].firstNotAllowed=1),-1<m&&(l[m].lastNotAllowed=1),l}function n(t,i){var o,r=[],a=t.getChildren(),s=a.count(),l=0,d=c[i],u=!t.is(c.$inline)||t.is("br");for(u&&r.push(" ");l<s;l++)e(o=a.getItem(l))&&!o.is(d)?r=r.concat(n(o,i)):r.push(o);return u&&r.push(" "),r}function o(t){return e(t.startContainer)&&t.startContainer.getChild(t.startOffset-1)}function r(t){return t&&e(t)&&(t.is(c.$removeEmpty)||t.is("a")&&!t.isBlockBoundary())}function l(t,n,i,o){var r,a,s=t.clone();s.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),(r=new CKEDITOR.dom.walker(s).next())&&e(r)&&u[r.getName()]&&(a=r.getPrevious())&&e(a)&&!a.getParent().equals(t.startContainer)&&i.contains(a)&&o.contains(r)&&r.isIdentical(a)&&(r.moveChildren(a),r.remove(),l(t,n,i,o))}function d(t,n){function i(t,n){if(n.isBlock&&n.isElement&&!n.node.is("br")&&e(t)&&t.is("br"))return t.remove(),1}var o=n.endContainer.getChild(n.endOffset),r=n.endContainer.getChild(n.endOffset-1);o&&i(o,t[t.length-1]),r&&i(r,t[0])&&(n.setEnd(n.endContainer,n.endOffset-1),n.collapse())}var c=CKEDITOR.dtd,u={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},h={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},f=CKEDITOR.tools.extend({},c.$inline);return delete f.br,function(u,p,m,g){var v=u.editor,y=!1;if("unfiltered_html"==p&&(p="html",y=!0),!g.checkReadOnly()){var _,b,T;if(p=(u={type:p,dontFilter:y,editable:u,editor:v,range:g,blockLimit:$=ne
155w CKEDITOR.dom.elementPath(g.startContainer,g.root).blockLimit||g.root,mergeCandidates:[],zombies:[]}).range,g=u.mergeCandidates,"text"==u.type&&p.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(_=CKEDITOR.dom.element.createFromHtml("<span> </span>",p.document),p.insertNode(_),p.setStartAfter(_)),y=new CKEDITOR.dom.elementPath(p.startContainer),u.endPath=$=new CKEDITOR.dom.elementPath(p.endContainer),!p.collapsed){v=$.block||$.blockLimit;var C=p.getCommonAncestor();v&&!v.equals(C)&&!v.contains(C)&&p.checkEndOfBlock()&&u.zombies.push(v),p.deleteContents()}for(;(b=o(p))&&e(b)&&b.isBlockBoundary()&&y.contains(b);)p.moveToPosition(b,CKEDITOR.POSITION_BEFORE_END);for(l(p,u.blockLimit,y,$),_&&(p.setEndBefore(_),p.collapse(),_.remove()),(v=(_=p.startPath()).contains(r,!1,1))&&(p.splitElement(v),u.inlineStylesRoot=v,u.inlineStylesPeak=_.lastElement),(v=(_=p.createBookmark()).startNode.getPrevious(i))&&e(v)&&r(v)&&g.push(v),(v=_.startNode.getNext(i))&&e(v)&&r(v)&&g.push(v),v=_.startNode;(v=v.getParent())&&r(v);)g.push(v);if(p.moveToBookmark(_),_=m){if(_=u.range,"text"==u.type&&u.inlineStylesRoot){for(p=(b=u.inlineStylesPeak).getDocument().createText("{cke-peak}"),g=u.inlineStylesRoot.getParent();!b.equals(g);)p=p.appendTo(b.clone()),b=b.getParent();m=p.getOuterHtml().split("{cke-peak}").join(m)}if(b=u.blockLimit.getName(),/^\s+|\s+$/.test(m)&&"span"in CKEDITOR.dtd[b])m=(S='<span data-cke-marker="1"> </span>')+m+S;if(m=u.editor.dataProcessor.toHtml(m,{context:null,fixForBody:!1,protectedWhitespaces:!!S,dontFilter:u.dontFilter,filter:u.editor.activeFilter,enterMode:u.editor.activeEnterMode}),(b=_.document.createElement("body")).setHtml(m),S&&(b.getFirst().remove(),b.getLast().remove()),(S=_.startPath().block)&&(1!=S.getChildCount()||!S.getBogus()))e:{var E;if(1==b.getChildCount()&&e(E=b.getFirst())&&E.is(h)&&!E.hasAttribute("contenteditable")){for(_=0,g=(S=E.getElementsByTag("*")).count();_<g;_++)if(!(p=S.getItem(_)).is(f))break e;E.moveChildren(E.getParent(1)),E.remove()}}u.dataWrapper=b,_=m}if(_){var w;_=(E=u.range).document,b=u.blockLimit,g=0;var I,D,x,O,k,S=[];m=v=0,p=E.startContainer;var R,$=(y=u.endPath.elements[0]).getPosition(p);C=!(!y.getCommonAncestor(p)||$==CKEDITOR.POSITION_IDENTICAL||$&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);for(d(p=t(u.dataWrapper,u),E);g<p.length;g++){if(w=($=p[g]).isLineBreak){w=E,O=b;var A=void 0,K=void 0;$.hasBlockSibling?w=1:(A=w.startContainer.getAscendant(c.$block,1))&&A.is({div:1,p:1})?(K=A.getPosition(O))==CKEDITOR.POSITION_IDENTICAL||K==CKEDITOR.POSITION_CONTAINS?w=0:(O=w.splitElement(A),w.moveToPosition(O,CKEDITOR.POSITION_AFTER_START),w=1):w=0}if(w)m=0<g;else{if(w=E.startPath(),!$.isBlock&&a(u.editor,w.block,w.blockLimit)&&(x=s(u.editor))&&((x=_.createElement(x)).appendBogus(),E.insertNode(x),CKEDITOR.env.needsBrFiller&&(I=x.getBogus())&&I.remove(),E.moveToPosition(x,CKEDITOR.POSITION_BEFORE_END)),(w=E.startPath().block)&&!w.equals(D)&&((I=w.getBogus())&&(I.remove(),S.push(w)),D=w),$.firstNotAllowed&&(v=1),v&&$.isElement){for(w=E.startContainer,O=null;w&&!c[w.getName()][$.name];){if(w.equals(b)){w=null;break}O=w,w=w.getParent()}if(w)O&&(k=E.splitElement(O),u.zombies.push(k),u.zombies.push(O));else{O=b.getName(),R=!g,w=g==p.length-1;A=[],K=(O=n($.node,O)).length;for(var N=0,L=void 0,M=0,P=-1;N<K;N++)" "==(L=O[N])?(M||R&&!N||(A.push(new CKEDITOR.dom.text(" ")),P=A.length),M=1):(A.push(L),M=0);w&&P==A.length&&A.pop(),R=A}}if(R){for(;w=R.pop();)E.insertNode(w);R=0}else E.insertNode($.node);$.lastNotAllowed&&g<p.length-1&&((k=C?y:k)&&E.setEndAt(k,CKEDITOR.POSITION_AFTER_START),v=0),E.collapse()}}1!=p.length?I=!1:I=(I=p[0]).isElement&&"false"==I.node.getAttribute("contenteditable"),I&&(m=!0,w=p[0].node,E.setStartAt(w,CKEDITOR.POSITION_BEFORE_START),E.setEndAt(w,CKEDITOR.POSITION_AFTER_END)),u.dontMoveCaret=m,u.bogusNeededBlocks=S}for(I=u.range,k=u.bogusNeededBlocks,R=I.createBookmark();D=u.zombies.pop();)D.getParent()&&((x=I.clone()).moveToElementEditStart(D),x.removeEmptyBlocksAtEnd());if(k)for(;D=k.pop();)CKEDITOR.env.needsBrFiller?D.appendBogus():D.append(I.document.createText("\xa0"));for(;D=u.mergeCandidates.pop();)D.mergeSiblings();if(I.moveToBookmark(R),!u.dontMoveCaret){for(D=o(I);D&&e(D)&&!D.is(c.$empty);){if(D.isBlockBoundary())I.moveToPosition(D,CKEDITOR.POSITION_BEFORE_END);else{if(r(D)&&D.getHtml().match(/(\s| )$/g)){T=null;break}(T=I.clone()).moveToPosition(D,CKEDITOR.POSITION_BEFORE_END)}D=D.getLast(i)}T&&I.moveToRange(T)}}}}(),g=function(){function e(e){return(e=new CKEDITOR.dom.walker(e)).guard=function(e,t){return!t&&(e.type==CKEDITOR.NODE_ELEMENT?e.is(CKEDITOR.dtd.$tableContent):void 0)},e.evaluator=function(e){return e.type==CKEDITOR.NODE_ELEMENT},e}
155function t(e,t,n){return t=e.getDocument().createElement(t),e.append(t,n),t}function n(e){for(var t,n=e.count();0<n--;)t=e.getItem(n),CKEDITOR.tools.trim(t.getHtml())||(t.appendBogus(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&t.getChildCount()&&t.getFirst().remove())}return function(i){var o=i.startContainer,r=o.getAscendant("table",1),a=!1;n(r.getElementsByTag("td")),n(r.getElementsByTag("th")),(r=i.clone()).setStart(o,0),(r=e(r).lastBackward())||((r=i.clone()).setEndAt(o,CKEDITOR.POSITION_BEFORE_END),r=e(r).lastForward(),a=!0),r||(r=o),r.is("table")?(i.setStartAt(r,CKEDITOR.POSITION_BEFORE_START),i.collapse(!0),r.remove()):(r.is({tbody:1,thead:1,tfoot:1})&&(r=t(r,"tr",a)),r.is("tr")&&(r=t(r,r.getParent().is("thead")?"th":"td",a)),(o=r.getBogus())&&o.remove(),i.moveToPosition(r,a?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}(),v=function(){function e(e){return(e=new CKEDITOR.dom.walker(e)).guard=function(e,t){return!t&&(e.type==CKEDITOR.NODE_ELEMENT?e.is(CKEDITOR.dtd.$list)||e.is(CKEDITOR.dtd.$listItem):void 0)},e.evaluator=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$listItem)},e}return function(t){var n,i=t.startContainer,o=!1;(n=t.clone()).setStart(i,0),(n=e(n).lastBackward())||((n=t.clone()).setEndAt(i,CKEDITOR.POSITION_BEFORE_END),n=e(n).lastForward(),o=!0),n||(n=i),n.is(CKEDITOR.dtd.$list)?(t.setStartAt(n,CKEDITOR.POSITION_BEFORE_START),t.collapse(!0),n.remove()):((i=n.getBogus())&&i.remove(),t.moveToPosition(n,o?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),t.select())}}(),y={eol:{detect:function(e,t){var n=e.range,i=n.clone(),o=n.clone(),r=new CKEDITOR.dom.elementPath(n.startContainer,t),a=new CKEDITOR.dom.elementPath(n.endContainer,t);i.collapse(1),o.collapse(),r.block&&i.checkBoundaryOfElement(r.block,CKEDITOR.END)&&(n.setStartAfter(r.block),e.prependEolBr=1),a.block&&o.checkBoundaryOfElement(a.block,CKEDITOR.START)&&(n.setEndBefore(a.block),e.appendEolBr=1)},fix:function(e,t){var n,i=t.getDocument();e.appendEolBr&&(n=this.createEolBr(i),e.fragment.append(n)),!e.prependEolBr||n&&!n.getPrevious()||e.fragment.append(this.createEolBr(i),1)},createEolBr:function(e){return e.createElement("br",{attributes:{"data-cke-eol":1}})}},bogus:{exclude:function(e){var t,n=(t=e.range.getBoundaryNodes()).startNode;!(t=t.endNode)||!f(t)||n&&n.equals(t)||e.range.setEndBefore(t)}},tree:{rebuild:function(e,t){var n,i=(a=e.range).getCommonAncestor(),o=new CKEDITOR.dom.elementPath(i,t),r=new CKEDITOR.dom.elementPath(a.startContainer,t),a=new CKEDITOR.dom.elementPath(a.endContainer,t);if(i.type==CKEDITOR.NODE_TEXT&&(i=i.getParent()),o.blockLimit.is({tr:1,table:1})){var s=o.contains("table").getParent();n=function(e){return!e.equals(s)}}else if(o.block&&o.block.is(CKEDITOR.dtd.$listItem)&&(r=r.contains(CKEDITOR.dtd.$list),a=a.contains(CKEDITOR.dtd.$list),!r.equals(a))){var l=o.contains(CKEDITOR.dtd.$list).getParent();n=function(e){return!e.equals(l)}}n||(n=function(e){return!e.equals(o.block)&&!e.equals(o.blockLimit)}),this.rebuildFragment(e,t,i,n)},rebuildFragment:function(e,t,n,i){for(var o;n&&!n.equals(t)&&i(n);)o=n.clone(0,1),e.fragment.appendTo(o),e.fragment=o,n=n.getParent()}},cell:{shrink:function(e){var t=(e=e.range).startContainer,n=e.endContainer,i=e.startOffset,o=e.endOffset;t.type==CKEDITOR.NODE_ELEMENT&&t.equals(n)&&t.is("tr")&&++i==o&&e.shrink(CKEDITOR.SHRINK_TEXT)}}},_=function(){function e(e,t){var n=e.getParent();n.is(CKEDITOR.dtd.$inline)&&e[t?"insertBefore":"insertAfter"](n)}function t(t,n,i){e(n),e(i,1);for(var o;o=i.getNext();)o.insertAfter(n),n=o;h(t)&&t.remove()}function n(e,t){var n=new CKEDITOR.dom.range(e);return n.setStartAfter(t.startNode),n.setEndBefore(t.endNode),n}return{list:{detectMerge:function(e,t){var i=n(t,e.bookmark),o=i.startPath(),r=i.endPath(),a=o.contains(CKEDITOR.dtd.$list),s=r.contains(CKEDITOR.dtd.$list);e.mergeList=a&&s&&a.getParent().equals(s.getParent())&&!a.equals(s),e.mergeListItems=o.block&&r.block&&o.block.is(CKEDITOR.dtd.$listItem)&&r.block.is(CKEDITOR.dtd.$listItem),(e.mergeList||e.mergeListItems)&&((i=i.clone()).setStartBefore(e.bookmark.startNode),i.setEndAfter(e.bookmark.endNode),e.mergeListBookmark=i.createBookmark())},merge:function(e,n){if(e.mergeListBookmark){var i=e.mergeListBookmark.startNode,o=e.mergeListBookmark.endNode,r=new CKEDITOR.dom.elementPath(i,n),a=new CKEDITOR.dom.elementPath(o,n);if(e.mergeList){var s=r.contains(CKEDITOR.dtd.$list),l=a.contains(CKEDITOR.dtd.$list);s.equals(l)||(l.moveChildren(s),l.remove())}e.mergeListItems&&(r=r.contains(CKEDITOR.dtd.$listItem),a=a.contains(CKEDITOR.dtd.$listItem),r.equals(a)||t(a,i,o)),i.remove(),o.remove()}}},block:{detectMerge:function(e,t){if(!e.tableContentsRanges&&!e.mergeListBookmark){var n=new CKEDITOR.dom.range(t);n.setStartBefore(e.bookmark.startNode),n.setEndAfter(e.bookmark.endNode),e.mergeBlockBookmark=n.createBookmark()}},merge:function(e,n){if(e.mergeBlockBookmark&&!e.purgeTableBookmark){var i=e.mergeBlockBookmark.startNode,o=e.mergeBlockBookmark.endNode,r=new CKEDITOR.dom.elementPath(i,n),a=new CKEDITOR.dom.elementPath(o,n);r=r.block,a=a.block;r&&a&&!r.equals(a)&&t(a,i,o),i.remove(),o.remove()}}},table:function(){function e(e){ 156var n,o=[],r=new CKEDITOR.dom.walker(e),a=e.startPath().contains(i),s=e.endPath().contains(i),l={};return r.guard=function(r,d){if(r.type==CKEDITOR.NODE_ELEMENT){var c="visited_"+(d?"out":"in");if(r.getCustomData(c))return;CKEDITOR.dom.element.setMarker(l,r,c,1)}d&&a&&r.equals(a)?((n=e.clone()).setEndAt(a,CKEDITOR.POSITION_BEFORE_END),o.push(n)):!d&&s&&r.equals(s)?((n=e.clone()).setStartAt(s,CKEDITOR.POSITION_AFTER_START),o.push(n)):((c=!d)&&(c=r.type==CKEDITOR.NODE_ELEMENT&&r.is(i)&&(!a||t(r,a))&&(!s||t(r,s))),c&&((n=e.clone()).selectNodeContents(r),o.push(n)))},r.lastForward(),CKEDITOR.dom.element.clearAllMarkers(l),o}function t(e,t){var n=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,i=e.getPosition(t);return i!==CKEDITOR.POSITION_IDENTICAL&&0==(i&n)}var i={td:1,th:1,caption:1};return{detectPurge:function(e){var t=e.range;(n=t.clone()).enlarge(CKEDITOR.ENLARGE_ELEMENT);var n=new CKEDITOR.dom.walker(n),o=0;if(n.evaluator=function(e){e.type==CKEDITOR.NODE_ELEMENT&&e.is(i)&&++o},n.checkForward(),1<o){n=t.startPath().contains("table");var r=t.endPath().contains("table");n&&r&&t.checkBoundaryOfElement(n,CKEDITOR.START)&&t.checkBoundaryOfElement(r,CKEDITOR.END)&&((t=e.range.clone()).setStartBefore(n),t.setEndAfter(r),e.purgeTableBookmark=t.createBookmark())}},detectRanges:function(o,r){var a,s,l=n(r,o.bookmark),d=l.clone(),c=l.getCommonAncestor();c.is(CKEDITOR.dtd.$tableContent)&&!c.is(i)&&(c=c.getAscendant("table",!0)),s=c,c=new CKEDITOR.dom.elementPath(l.startContainer,s),s=new CKEDITOR.dom.elementPath(l.endContainer,s),c=c.contains("table"),s=s.contains("table"),(c||s)&&(c&&s&&t(c,s)?(o.tableSurroundingRange=d,d.setStartAt(c,CKEDITOR.POSITION_AFTER_END),d.setEndAt(s,CKEDITOR.POSITION_BEFORE_START),(d=l.clone()).setEndAt(c,CKEDITOR.POSITION_AFTER_END),(a=l.clone()).setStartAt(s,CKEDITOR.POSITION_BEFORE_START),a=e(d).concat(e(a))):c?s||(o.tableSurroundingRange=d,d.setStartAt(c,CKEDITOR.POSITION_AFTER_END),l.setEndAt(c,CKEDITOR.POSITION_AFTER_END)):(o.tableSurroundingRange=d,d.setEndAt(s,CKEDITOR.POSITION_BEFORE_START),l.setStartAt(s,CKEDITOR.POSITION_AFTER_START)),o.tableContentsRanges=a||e(l))},deleteRanges:function(e){for(var t;t=e.tableContentsRanges.pop();)t.extractContents(),h(t.startContainer)&&t.startContainer.appendBogus();e.tableSurroundingRange&&e.tableSurroundingRange.extractContents()},purge:function(e){if(e.purgeTableBookmark){var t=e.doc,n=e.range.clone();(t=t.createElement("p")).insertBefore(e.purgeTableBookmark.startNode),n.moveToBookmark(e.purgeTableBookmark),n.deleteContents(),e.range.moveToPosition(t,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(e){return!(e.range.startPath().contains(CKEDITOR.dtd.$listItem)&&e.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(e){e.startContainer.getDtd()["#"]||e.moveToClose
156stEditablePosition(null,!0)},autoParagraph:function(e,t){var n,i=t.startPath();a(e,i.block,i.blockLimit)&&(n=s(e))&&((n=t.document.createElement(n)).appendBogus(),t.insertNode(n),t.moveToPosition(n,CKEDITOR.POSITION_AFTER_START))}}}()}(),function(){function e(e,t){if(0===e.length)return!1;var n,i;if((n=!t&&1===e.length)&&!(n=e[0].collapsed)){var o=e[0];n=o.startContainer.getAscendant({td:1,th:1},!0);var r=o.endContainer.getAscendant({td:1,th:1},!0);i=CKEDITOR.tools.trim,n&&n.equals(r)&&!n.findOne("td, th, tr, tbody, table")?n=!(o=o.cloneContents()).getFirst()||i(o.getFirst().getText())!==i(n.getText()):n=!1}if(n)return!1;for(i=0;i<e.length;i++)if(!(n=e[i]._getTableElement()))return!1;return!0}function t(e){function t(e){e=e.find("td, th");var t,n=[];for(t=0;t<e.count();t++)n.push(e.getItem(t));return n}var n,i,o=[];for(i=0;i<e.length;i++)(n=e[i]._getTableElement()).is&&n.is({td:1,th:1})?o.push(n):o=o.concat(t(n));return o}function n(e){e=t(e);var n,i,o="",r=[];for(i=0;i<e.length;i++)n&&!n.equals(e[i].getAscendant("tr"))?(o+=r.join("\t")+"\n",n=e[i].getAscendant("tr"),r=[]):0===i&&(n=e[i].getAscendant("tr")),r.push(e[i].getText());return o+r.join("\t")}function i(e){var t=this.root.editor,i=t.getSelection(1);this.reset(),m=!0,i.root.once("selectionchange",function(e){e.cancel()},null,null,0),i.selectRanges([e[0]]),(i=this._.cache).ranges=new CKEDITOR.dom.rangeList(e),i.type=CKEDITOR.SELECTION_TEXT,i.selectedElement=e[0]._getTableElement(),i.selectedText=n(e),i.nativeSel=null,this.isFake=1,this.rev=_++,t._.fakeSelection=this,m=!1,this.root.fire("selectionchange")}function o(){var t,n=this._.fakeSelection;if(n){var i;if(!(i=!(t=this.getSelection(1)))&&(i=!t.isHidden())){i=n;var o=t.getRanges(),r=i.getRanges(),a=o.length&&o[0]._getTableElement()&&o[0]._getTableElement().getAscendant("table",!0),s=r.length&&r[0]._getTableElement()&&r[0]._getTableElement().getAscendant("table",!0),l=1===o.length&&o[0]._getTableElement()&&o[0]._getTableElement().is("table"),d=1===r.length&&r[0]._getTableElement()&&r[0]._getTableElement().is("table"),c=1===o.length&&o[0].collapsed;r=e(o,!!CKEDITOR.env.webkit)&&e(r);(a=!(!a||!s)&&(a.equals(s)||s.contains(a)))&&(c||r)?(l&&!d&&i.selectRanges(o),i=!0):i=!1,i=!i}i&&(n.reset(),n=0)}(n||(n=t||this.getSelection(1))&&n.getType()!=CKEDITOR.SELECTION_NONE)&&(this.fire("selectionCheck",n),(t=this.elementPath()).compare(this._.selectionPreviousPath)||(i=this._.selectionPreviousPath&&this._.selectionPreviousPath.blockLimit.equals(t.blockLimit),CKEDITOR.env.webkit&&!i&&(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=t,this.fire("selectionChange",{selection:n,path:t})))}function r(){v=!0,g||(a.call(this),g=CKEDITOR.tools.setTimeout(a,200,this))}function a(){g=null,v&&(CKEDITOR.tools.setTimeout(o,0,this),v=!1)}function s(e){return!(!C(e)&&(e.type!=CKEDITOR.NODE_ELEMENT||e.is(CKEDITOR.dtd.$empty)))}function l(e){function t(t,n){return!(!t||t.type==CKEDITOR.NODE_TEXT)&&e.clone()["moveToElementEdit"+(n?"End":"Start")](t)}if(!(e.root instanceof CKEDITOR.editable))return!1;var n=e.startContainer,i=e.getPreviousNode(s,null,n),o=e.getNextNode(s,null,n);return!(!t(i)&&!t(o,1)&&(i||o||n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary()&&n.getBogus()))}function d(e){c(e,!1);var t=e.getDocument().createText(b);return e.setCustomData("cke-fillingChar",t),t}function c(e,t){var n=e&&e.removeCustomData("cke-fillingChar");if(n){if(!1!==t){var i=e.getDocument().getSelection().getNative(),o=i&&"None"!=i.type&&i.getRangeAt(0),r=b.length;if(n.getLength()>r&&o&&o.intersectsNode(n.$)){var a=[{node:i.anchorNode,offset:i.anchorOffset},{node:i.focusNode,offset:i.focusOffset}];i.anchorNode==n.$&&i.anchorOffset>r&&(a[0].offset-=r),i.focusNode==n.$&&i.focusOffset>r&&(a[1].offset-=r)}}n.setText(u(n.getText(),1)),a&&(i=(n=e.getDocument().$).getSelection(),(n=n.createRange()).setStart(a[0].node,a[0].offset),n.collapse(!0),i.removeAllRanges(),i.addRange(n),i.extend(a[1].node,a[1].offset))}}function u(e,t){return t?e.replace(T,function(e,t){return t?"\xa0":""}):e.replace(b,"")}function h(e,t){var n=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+(CKEDITOR.env.ie&&14>CKEDITOR.env.version?"display:none":"position:fixed;top:0;left:-1000px")+'">'+(t||" ")+"</div>",e.document);e.fire("lockSnapshot"),e.editable().append(n);var i=e.getSelection(1),o=e.createRange(),r=i.root.on("selectionchange",function(e){e.cancel()},null,null,0);o.setStartAt(n,CKEDITOR.POSITION_AFTER_START),o.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),i.selectRanges([o]),r.removeListener(),e.fire("unlockSnapshot"),e._.hiddenSelectionContainer=n}function f(e){var t={37:1,39:1,8:1,46:1};return function(n){var i=n.data.getKeystroke();if(t[i]){var o=e.getSelection().getRanges(),r=o[0];1==o.length&&r.collapsed&&(i=r[38>i?"getPreviousEditableNode":"getNextEditableNode"]())&&i.type==CKEDITOR.NODE_ELEMENT&&"false"==i.getAttribute("contenteditable")&&(e.getSelection().fake(i),n.data.preventDefault(),n.cancel())}}}function p(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.getCommonAncestor().isReadOnly()&&e.splice(t,1),!n.collapsed){if(n.startContainer.isReadOnly())for(var i,o=n.startContainer;o&&!((i=o.type==CKEDITOR.NODE_ELEMENT)&&o.is("body")||!o.isReadOnly());)i&&"false"==o.getAttribute("contentEditable")&&n.setStartAfter(o),o=o.getParent();o=n.startContainer,i=n.endContainer;var r=n.startOffset,a=n.endOffset,s=n.clone();o&&o.type==CKEDITOR.NODE_TEXT&&(r>=o.getLength()?s.setStartAfter(o):s.setStartBefore(o)),i&&i.type==CKEDITOR.NODE_TEXT&&(a?s.setEndAfter(i):s.setEndBefore(i)),(o=new CKEDITOR.dom.walker(s)).evaluator=function(i){if(i.type==CKEDITOR.NODE_ELEMENT&&i.isReadOnly()){var o=n.clone();return n.setEndBefore(i),n.collapsed&&e.splice(t--,1),i.getPosition(s.endContainer)&CKEDITOR.POSITION_CONTAINS||(o.setStartAfter(i),o.collapsed||e.splice(t+1,0,o)),!0}return!1},o.next()}}return e}var m,g,v,y="function"!=typeof window.getSelection,_=1,b=CKEDITOR.tools.repeat("\u200b",7),T=new RegExp(b+"( )?","g"),C=CKEDITOR.dom.walker.invisible(1),E=function(){function e(e){return function(t){var n=t.editor.createRange();
156return n.moveToClosestEditablePosition(t.selected,e)&&t.editor.getSelection().selectRanges([n]),!1}}function t(e){return function(t){var n,i=t.editor,o=i.createRange();return(n=o.moveToClosestEditablePosition(t.selected,e))||(n=o.moveToClosestEditablePosition(t.selected,!e)),n&&i.getSelection().selectRanges([o]),i.fire("saveSnapshot"),t.selected.remove(),n||(o.moveToElementEditablePosition(i.editable()),i.getSelection().selectRanges([o])),i.fire("saveSnapshot"),!1}}var n=e(),i=e(1);return{37:n,38:n,39:i,40:i,8:t(),46:t(1)}}();CKEDITOR.on("instanceCreated",function(e){function t(){var e=n.getSelection();e&&e.removeAllRanges()}var n=e.editor;n.on("contentDom",function(){function e(){(s=new CKEDITOR.dom.selection(n.getSelection())).lock()}function t(){h.removeListener("mouseup",t),g.removeListener("mouseup",t);var e=CKEDITOR.document.$.selection,n=e.createRange();"None"!=e.type&&n.parentElement().ownerDocument==u.$&&n.select()}function i(e){if(CKEDITOR.env.ie){var t=(e=e.getRanges()[0])?e.startContainer.getAscendant(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&("false"==e.getAttribute("contenteditable")||"true"==e.getAttribute("contenteditable"))},!0):null;return e&&"false"==t.getAttribute("contenteditable")&&t}}var a,s,l,d,u=n.document,h=CKEDITOR.document,p=n.editable(),m=u.getBody(),g=u.getDocumentElement(),v=p.isInline();if((CKEDITOR.env.gecko&&p.attachListener(p,"focus",function(e){e.removeListener(),0!==a&&(e=n.getSelection().getNative())&&e.isCollapsed&&e.anchorNode==p.$&&((e=n.createRange()).moveToElementEditStart(p),e.select())},null,null,-2),p.attachListener(p,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){a&&CKEDITOR.env.webkit&&(a=n._.previousActive&&n._.previousActive.equals(u.getActive()))&&null!=n._.previousScrollTop&&n._.previousScrollTop!=p.$.scrollTop&&(p.$.scrollTop=n._.previousScrollTop),n.unlockSelection(a),a=0},null,null,-1),p.attachListener(p,"mousedown",function(){a=0}),(CKEDITOR.env.ie||v)&&(y?p.attachListener(p,"beforedeactivate",e,null,null,-1):p.attachListener(n,"selectionCheck",e,null,null,-1),p.attachListener(p,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){n.lockSelection(s),a=1},null,null,-1),p.attachListener(p,"mousedown",function(){a=0})),CKEDITOR.env.ie&&!v)&&(p.attachListener(p,"mousedown",function(e){2==e.data.$.button&&((e=n.document.getSelection())&&e.getType()!=CKEDITOR.SELECTION_NONE||(l=n.window.getScrollPosition()))}),p.attachListener(p,"mouseup",function(e){2==e.data.$.button&&l&&(n.document.$.documentElement.scrollLeft=l.x,n.document.$.documentElement.scrollTop=l.y),l=null}),"BackCompat"!=u.$.compatMode)){var _,b;if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)g.on("mousedown",function(e){function t(e){if(e=e.data.$,_){var t=m.$.createTextRange();try{t.moveToPoint(e.clientX,e.clientY)}catch(i){}_.setEndPoint(0>b.compareEndPoints("StartToStart",t)?"EndToEnd":"StartToStart",t),_.select()}}function n(){g.removeListener("mousemove",t),h.removeListener("mouseup",n),g.removeListener("mouseup",n),_.select()}if((e=e.data).getTarget().is("html")&&e.$.y<g.$.clientHeight&&e.$.x<g.$.clientWidth){_=m.$.createTextRange();try{_.moveToPoint(e.$.clientX,e.$.clientY)}catch(i){}b=_.duplicate(),g.on("mousemove",t),h.on("mouseup",n),g.on("mouseup",n)}});7<CKEDITOR.env.version&&11>CKEDITOR.env.version&&g.on("mousedown",function(e){e.data.getTarget().is("html")&&(h.on("mouseup",t),g.on("mouseup",t))})}(p.attachListener(p,"selectionchange",o,n),p.attachListener(p,"keyup",r,n),p.attachListener(p,"keydown",function(e){var t=this.getSelection(1);i(t)&&(t.selectElement(i(t)),e.data.preventDefault())},n),p.attachListener(p,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){n.forceNextSelectionCheck(),n.selectionChange(1)}),v&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko))?(p.attachListener(p,"mousedown",function(){d=1}),p.attachListener(u.getDocumentElement(),"mouseup",function(){d&&r.call(n),d=0})):p.attachListener(CKEDITOR.env.ie?p:u.getDocumentElement(),"mouseup",r,n);CKEDITOR.env.webkit&&p.attachListener(u,"keydown",function(e){switch(e.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:p.hasFocus&&c(p)}}
156,null,null,-1),p.attachListener(p,"keydown",f(n),null,null,-1)}),n.on("setData",function(){n.unlockSelection(),CKEDITOR.env.webkit&&t()}),n.on("contentDomUnload",function(){n.unlockSelection()}),CKEDITOR.env.ie9Compat&&n.on("beforeDestroy",t,null,null,9),n.on("dataReady",function(){delete n._.fakeSelection,delete n._.hiddenSelectionContainer,n.selectionChange(1)}),n.on("loadSnapshot",function(){var e=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),t=n.editable().getLast(e);t&&t.hasAttribute("data-cke-hidden-sel")&&(t.remove(),CKEDITOR.env.gecko&&(e=n.editable().getFirst(e))&&e.is("br")&&e.getAttribute("_moz_editor_bogus_node")&&e.remove())},null,null,100),n.on("key",function(e){if("wysiwyg"==n.mode){var t=n.getSelection();if(t.isFake){var i=E[e.data.keyCode];if(i)return i({editor:n,selected:t.getSelectedElement(),selection:t,keyEvent:e})}}})}),CKEDITOR.env.webkit&&CKEDITOR.on("instanceReady",function(e){var t=e.editor;t.on("selectionChange",function(){var e=t.editable(),n=e.getCustomData("cke-fillingChar");n&&(n.getCustomData("ready")?(c(e),e.editor.fire("selectionCheck")):n.setCustomData("ready",1))},null,null,-1),t.on("beforeSetMode",function(){c(t.editable())},null,null,-1),t.on("getSnapshot",function(e){e.data&&(e.data=u(e.data))},t,null,20),t.on("toDataFormat",function(e){e.data.dataValue=u(e.data.dataValue)},null,null,0)}),CKEDITOR.editor.prototype.selectionChange=function(e){(e?o:r).call(this)},CKEDITOR.editor.prototype.getSelection=function(e){return!this._.savedSelection&&!this._.fakeSelection||e?(e=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(e):null:this._.savedSelection||this._.fakeSelection},CKEDITOR.editor.prototype.lockSelection=function(e){return(e=e||this.getSelection(1)).getType()!=CKEDITOR.SELECTION_NONE&&(!e.isLocked&&e.lock(),this._.savedSelection=e,!0)},CKEDITOR.editor.prototype.unlockSelection=function(e){var t=this._.savedSelection;return!!t&&(t.unlock(e),delete this._.savedSelection,!0)},CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath},CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)},CKEDITOR.dom.range.prototype.select=function(){var e=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);return e.selectRanges([this]),e},CKEDITOR.SELECTION_NONE=1,CKEDITOR.SELECTION_TEXT=2,CKEDITOR.SELECTION_ELEMENT=3,CKEDITOR.dom.selection=function(e){if(e instanceof CKEDITOR.dom.selection){var t=e;e=e.root}var n,i,o=e instanceof CKEDITOR.dom.element;if(this.rev=t?t.rev:_++,this.document=e instanceof CKEDITOR.dom.document?e:e.getDocument(),this.root=o?e:this.document.getBody(),this.isLocked=0,this._={cache:{}},t)return CKEDITOR.tools.extend(this._.cache,t._.cache),this.isFake=t.isFake,this.isLocked=t.isLocked,this;if(e=this.getNative())if(e.getRangeAt)n=(i=e.rangeCount&&e.getRangeAt(0))&&new CKEDITOR.dom.node(i.commonAncestorContainer);else{try{i=e.createRange()}catch(c){}n=i&&CKEDITOR.dom.element.get(i.item&&i.item(0)||i.parentElement())}return(!n||n.type!=CKEDITOR.NODE_ELEMENT&&n.type!=CKEDITOR.NODE_TEXT||!this.root.equals(n)&&!this.root.contains(n))&&(this._.cache.type=CKEDITOR.SELECTION_NONE,this._.cache.startElement=null,this._.cache.selectedElement=null,this._.cache.selectedText="",this._.cache.ranges=new CKEDITOR.dom.rangeList),this};var w={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.tools.extend(CKEDITOR.dom.selection,{_removeFillingCharSequenceString:u,_createFillingCharSequenceNode:d,FILLING_CHAR_SEQUENCE:b}),CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=y?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:y?function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_NONE;try{var n=this.getNative(),i=n.type;"Text"==i&&(t=CKEDITOR.SELECTION_TEXT),"Control"==i&&(t=CKEDITOR.SELECTION_ELEMENT),n.createRange().parentElement()&&
156(t=CKEDITOR.SELECTION_TEXT)}catch(o){}return e.type=t}:function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_TEXT;if((n=this.getNative())&&n.rangeCount){if(1==n.rangeCount){var n,i=(n=n.getRangeAt(0)).startContainer;i==n.endContainer&&1==i.nodeType&&1==n.endOffset-n.startOffset&&w[i.childNodes[n.startOffset].nodeName.toLowerCase()]&&(t=CKEDITOR.SELECTION_ELEMENT)}}else t=CKEDITOR.SELECTION_NONE;return e.type=t},getRanges:function(){var e=y?function(){function e(e){return new CKEDITOR.dom.node(e).getIndex()}var t=function(t,n){(t=t.duplicate()).collapse(n);var i=t.parentElement();if(!i.hasChildNodes())return{container:i,offset:0};for(var o,r,a,s,l=i.children,d=t.duplicate(),c=0,u=l.length-1,h=-1;c<=u;)if(o=l[h=Math.floor((c+u)/2)],d.moveToElementText(o),0<(a=d.compareEndPoints("StartToStart",t)))u=h-1;else{if(!(0>a))return{container:i,offset:e(o)};c=h+1}if(-1==h||h==l.length-1&&0>a){if(d.moveToElementText(i),d.setEndPoint("StartToStart",t),d=d.text.replace(/(\r\n|\r)/g,"\n").length,l=i.childNodes,!d)return(o=l[l.length-1]).nodeType!=CKEDITOR.NODE_TEXT?{container:i,offset:l.length}:{container:o,offset:o.nodeValue.length};for(i=l.length;0<d&&0<i;)(r=l[--i]).nodeType==CKEDITOR.NODE_TEXT&&(s=r,d-=r.nodeValue.length);return{container:s,offset:-d}}if(d.collapse(0<a),d.setEndPoint(0<a?"StartToStart":"EndToStart",t),!(d=d.text.replace(/(\r\n|\r)/g,"\n").length))return{container:i,offset:e(o)+(0<a?0:1)};for(;0<d;)try{(r=o[0<a?"previousSibling":"nextSibling"]).nodeType==CKEDITOR.NODE_TEXT&&(d-=r.nodeValue.length,s=r),o=r}catch(_){return{container:i,offset:e(o)}}return{container:s,offset:0<a?-d:s.nodeValue.length+d}};return function(){var e=(s=this.getNative())&&s.createRange(),n=this.getType();if(!s)return[];if(n==CKEDITOR.SELECTION_TEXT)return s=new CKEDITOR.dom.range(this.root),n=t(e,!0),s.setStart(new CKEDITOR.dom.node(n.container),n.offset),n=t(e),s.setEnd(new CKEDITOR.dom.node(n.container),n.offset),s.endContainer.getPosition(s.startContainer)&CKEDITOR.POSITION_PRECEDING&&s.endOffset<=s.startContainer.getIndex()&&s.collapse(),[s];if(n==CKEDITOR.SELECTION_ELEMENT){n=[];for(var i=0;i<e.length;i++){for(var o=e.item(i),r=o.parentNode,a=0,s=new CKEDITOR.dom.range(this.root);a<r.childNodes.length&&r.childNodes[a]!=o;a++);s.setStart(new CKEDITOR.dom.node(r),a),s.setEnd(new CKEDITOR.dom.node(r),a+1),n.push(s)}return n}return[]}}():function(){var e,t=[],n=this.getNative();if(!n)return t;for(var i=0;i<n.rangeCount;i++){var o=n.getRangeAt(i);(e=new CKEDITOR.dom.range(this.root)).setStart(new CKEDITOR.dom.node(o.startContainer),o.startOffset),e.setEnd(new CKEDITOR.dom.node(o.endContainer),o.endOffset),t.push(e)}return t};return function(t){var n=this._.cache,i=n.ranges;return i||(n.ranges=i=new CKEDITOR.dom.rangeList(e.call(this))),t?p(new CKEDITOR.dom.rangeList(i.slice())):i}}(),getStartElement:function(){var e,t=this._.cache;if(void 0!==t.startElement)return t.startElement;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var n=this.getRanges()[0];if(n){if(n.collapsed)(e=n.startContainer).type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent());else{for(n.optimize();e=n.startContainer,n.startOffset==(e.getChildCount?e.getChildCount():e.getLength())&&!e.isBlockBoundary();)n.setStartAfter(e);if((e=n.startContainer).type!=CKEDITOR.NODE_ELEMENT)return e.getParent();if((e=e.getChild(n.startOffset))&&e.type==CKEDITOR.NODE_ELEMENT)for(n=e.getFirst();n&&n.type==CKEDITOR.NODE_ELEMENT;)e=n,n=n.getFirst();else e=n.startContainer}e=e.$}}return t.startElement=e?new CKEDITOR.dom.element(e):null},getSelectedElement:function(){var e=this._.cache;if(void 0!==e.selectedElement)return e.selectedElement;var t=this,n=CKEDITOR.tools.tryThese(function(){return t.getNative().createRange().item(0)},function(){for(var e,n,i=t.getRanges()[0].clone(),o=2;o&&!((e=i.getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT&&w[e.getName()]&&(n=e));o--)i.shrink(CKEDITOR.SHRINK_ELEMENT);return n&&n.$});return e.selectedElement=n?new CKEDITOR.dom.element(n):null},getSelectedText:function(){var e=this._.cache;if(void 0!==e.selectedText)return e.selectedText;var t=this.getNative();
156t=y?"Control"==t.type?"":t.createRange().text:t.toString();return e.selectedText=t},lock:function(){this.getRanges(),this.getStartElement(),this.getSelectedElement(),this.getSelectedText(),this._.cache.nativeSel=null,this.isLocked=1},unlock:function(t){if(this.isLocked){if(t)var n=this.getSelectedElement(),o=this.getRanges(),r=this.isFake;this.isLocked=0,this.reset(),t&&(t=n||o[0]&&o[0].getCommonAncestor())&&t.getAscendant("body",1)&&(e(o)?i.call(this,o):r?this.fake(n):n?this.selectElement(n):this.selectRanges(o))}},reset:function(){this._.cache={},this.isFake=0;var e=this.root.editor;if(e&&e._.fakeSelection)if(this.rev==e._.fakeSelection.rev){delete e._.fakeSelection;var t=e._.hiddenSelectionContainer;if(t){var n=e.checkDirty();e.fire("lockSnapshot"),t.remove(),e.fire("unlockSnapshot"),!n&&e.resetDirty()}delete e._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=_++},selectElement:function(e){var t=new CKEDITOR.dom.range(this.root);t.setStartBefore(e),t.setEndAfter(e),this.selectRanges([t])},selectRanges:function(t){var n=this.root.editor,o=n&&n._.hiddenSelectionContainer;if(this.reset(),o){o=this.root;for(var r,a=0;a<t.length;++a)(r=t[a]).endContainer.equals(o)&&(r.endOffset=Math.min(r.endOffset,o.getChildCount()))}if(t.length)if(this.isLocked){var s=CKEDITOR.document.getActive();this.unlock(),this.selectRanges(t),this.lock(),s&&!s.equals(this.root)&&s.focus()}else{var u,f,p;if(1==t.length&&!(p=t[0]).collapsed&&(u=p.getEnclosedNode())&&u.type==CKEDITOR.NODE_ELEMENT&&((p=p.clone()).shrink(CKEDITOR.SHRINK_ELEMENT,!0),(f=p.getEnclosedNode())&&f.type==CKEDITOR.NODE_ELEMENT&&(u=f),"false"==u.getAttribute("contenteditable"))||(u=void 0),u)this.fake(u);else if(n&&n.plugins.tableselection&&CKEDITOR.plugins.tableselection.isSupportedEnvironment&&e(t)&&!m)i.call(this,t);else{if(y){var g,_,b;if(f=CKEDITOR.dom.walker.whitespaces(!0),u=/\ufeff|\u00a0/,p={table:1,tbody:1,tr:1},1<t.length&&(n=t[t.length-1],t[0].setEnd(n.endContainer,n.endOffset)),t=(n=t[0]).collapsed,(o=n.getEnclosedNode())&&o.type==CKEDITOR.NODE_ELEMENT&&o.getName()in w&&(!o.is("a")||!o.getText()))try{return(b=o.$.createControlRange()).addElement(o.$),void b.select()}catch(h){}(n.startContainer.type==CKEDITOR.NODE_ELEMENT&&n.startContainer.getName()in p||n.endContainer.type==CKEDITOR.NODE_ELEMENT&&n.endContainer.getName()in p)&&(n.shrink(CKEDITOR.NODE_ELEMENT,!0),t=n.collapsed),p=(b=n.createBookmark()).startNode,t||(s=b.endNode),(b=n.document.$.body.createTextRange()).moveToElementText(p.$),b.moveStart("character",1),s?((u=n.document.$.body.createTextRange()).moveToElementText(s.$),b.setEndPoint("EndToEnd",u),b.moveEnd("character",-1)):(g=p.getNext(f),_=p.hasAscendant("pre"),g=!(g&&g.getText&&g.getText().match(u))&&(_||!p.hasPrevious()||p.getPrevious().is&&p.getPrevious().is("br")),(_=n.document.createElement("span")).setHtml(""),_.insertBefore(p),g&&n.document.createText("\ufeff").insertBefore(p)),n.setStartBefore(p),p.remove(),t?(g?(b.moveStart("character",-1),b.select(),n.document.$.selection.clear()):b.select(),n.moveToPosition(_,CKEDITOR.POSITION_BEFORE_START),_.remove()):(n.setEndBefore(s),s.remove(),b.select())}else{if(!(s=this.getNative()))return;for(this.removeAllRanges(),b=0;b<t.length;b++)if(b<t.length-1&&(g=t[b],_=t[b+1],(u=g.clone()).setStart(g.endContainer,g.endOffset),u.setEnd(_.startContainer,_.startOffset),!u.collapsed&&(u.shrink(CKEDITOR.NODE_ELEMENT,!0),n=u.getCommonAncestor(),u=u.getEnclosedNode(),n.isReadOnly()||u&&u.isReadOnly())))_.setStart(g.startContainer,g.startOffset),t.splice(b--,1);else{n=t[b],_=this.document.$.createRange(),n.collapsed&&CKEDITOR.env.webkit&&l(n)&&(u=d(this.root),n.insertNode(u),(g=u.getNext())&&!u.getPrevious()&&g.type==CKEDITOR.NODE_ELEMENT&&"br"==g.getName()?(c(this.root),n.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START)):n.moveToPosition(u,CKEDITOR.POSITION_AFTER_END)),_.setStart(n.startContainer.$,n.startOffset);try{_.setEnd(n.endContainer.$,n.endOffset)}catch(v){if(!(0<=v.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")))throw v;n.collapse(1),_.setEnd(n.endContainer.$,n.endOffset)}s.addRange(_)}}this.reset(),this.root.fire("selectionchange")}}},fake:function(e,t){var n=this.root.editor;void 0===t&&e.hasAttribute("aria-label")&&(t=e.getAttribute("aria-label")),this.reset(),h(n,t);var i=this._.cache,o=new CKEDITOR.dom.range(this.root);o.setStartBefore(e),o.setEndAfter(e),i.ranges=new CKEDITOR.dom.rangeList(o),i.selectedElement=i.startElement=e,i.type=CKEDITOR.SELECTION_ELEMENT,i.selectedText=i.nativeSel=null,this.isFake=1,this.rev=_++,n._.fakeSelection=this,this.root.fire("selectionchange")},isHidden:function(){var e=this.getCommonAncestor();return e&&e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent()),!(!e||!e.data("cke-hidden-sel"))},isInTable:function(){return e(this.getRanges())},createBookmarks:function(e){return e=this.getRanges().createBookmarks(e),this.isFake&&(e.isFake=1),e},createBookmarks2:function(e){return e=this.getRanges().createBookmarks2(e),this.isFake&&(e.isFake=1),e},selectBookmarks:function(t){for(var n,i=[],o=0;o<t.length;o++){var r=new CKEDITOR.dom.range(this.root);r.moveToBookmark(t[o]),i.push(r)}return t.isFake&&((n=e(i)?i[0]._getTableElement():i[0].getEnclosedNode())&&n.type==CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),t.isFake=0)),t.isFake&&!e(i)?this.fake(n):this.selectRanges(i),this},getCommonAncestor:function(){var e=this.getRanges();return e.length?e[0].startContainer.getCommonAncestor(e[e.length-1].endContainer):null},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var e=this.getNative();try{e&&e[y?"empty":"removeAllRanges"]()}catch(n){}this.reset()}}}}(),CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function e(e,t){for(var n,i;(e=e.getParent())&&!e.equals(t);)if(e.getAttribute("data-nostyle"))n=e;else if(!i){var o=e.getAttribute("contentEditable");
156"false"==o?n=e:"true"==o&&(i=1)}return n}function t(e,t,n,i){return(e.getPosition(t)|i)==i&&(!n.childRule||n.childRule(e))}function n(i){var r=i.document;if(i.collapsed)r=v(this,r),i.insertNode(r),i.moveToPosition(r,CKEDITOR.POSITION_BEFORE_END);else{var a,s=this.element,l=this._.definition,d=(y=l.ignoreReadonly)||l.includeReadonly;null==d&&(d=i.root.getCustomData("cke_includeReadonly"));var c=CKEDITOR.dtd[s];c||(a=!0,c=CKEDITOR.dtd.span),i.enlarge(CKEDITOR.ENLARGE_INLINE,1),i.trim();var u,h=i.createBookmark(),f=h.startNode,m=h.endNode,g=f;if(!y){var y=e(f,_=i.getCommonAncestor()),_=e(m,_);y&&(g=y.getNextSourceNode(!0)),_&&(m=_)}for(g.getPosition(m)==CKEDITOR.POSITION_FOLLOWING&&(g=0);g;){if(y=!1,g.equals(m))g=null,y=!0;else{_=(D=g.type==CKEDITOR.NODE_ELEMENT?g.getName():null)&&"false"==g.getAttribute("contentEditable");var b=D&&g.getAttribute("data-nostyle");if(D&&g.data("cke-bookmark")){g=g.getNextSourceNode(!0);continue}if(_&&d&&CKEDITOR.dtd.$block[D])for(var T=void 0,C=0,E=(K=(A=o(E=g)).length)&&new CKEDITOR.dom.range(E.getDocument());C<K;++C){T=A[C];var w=CKEDITOR.filter.instances[T.data("cke-filter")];w&&!w.check(this)||(E.selectNodeContents(T),n.call(this,E))}if(A=D?!c[D]||b?0:_&&!d?0:t(g,m,l,S):1){if(A=l,K=s,C=a,!(T=g.getParent())||!(T.getDtd()||CKEDITOR.dtd.span)[K]&&!C||A.parentRule&&!A.parentRule(T))y=!0;else if(u||D&&CKEDITOR.dtd.$removeEmpty[D]&&(g.getPosition(m)|S)!=S||(u=i.clone()).setStartBefore(g),(D=g.type)==CKEDITOR.NODE_TEXT||_||D==CKEDITOR.NODE_ELEMENT&&!g.getChildCount()){for(var I,D=g;(y=!D.getNext(O))&&c[(I=D.getParent()).getName()]&&t(I,f,l,R);)D=I;u.setEndAfter(D)}}else y=!0;g=g.getNextSourceNode(b||_)}if(y&&u&&!u.collapsed){_=(y=v(this,r)).hasAttributes(),b=u.getCommonAncestor(),D={};for(var x,k,$,A={},K=(T={},{});y&&b;){if(b.getName()==s){for(x in l.attributes)!K[x]&&($=b.getAttribute(k))&&(y.getAttribute(x)==$?A[x]=1:K[x]=1);for(k in l.styles)!T[k]&&($=b.getStyle(k))&&(y.getStyle(k)==$?D[k]=1:T[k]=1)}b=b.getParent()}for(x in A)y.removeAttribute(x);for(k in D)y.removeStyle(k);_&&!y.hasAttributes()&&(y=null),y?(u.extractContents().appendTo(y),u.insertNode(y),p.call(this,y),y.mergeSiblings(),CKEDITOR.env.ie||y.$.normalize()):(y=new CKEDITOR.dom.element("span"),u.extractContents().appendTo(y),u.insertNode(y),p.call(this,y),y.remove(!0)),u=null}}i.moveToBookmark(h),i.shrink(CKEDITOR.SHRINK_TEXT),i.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function i(e){function t(){for(var e=new CKEDITOR.dom.elementPath(i.getParent()),t=new CKEDITOR.dom.elementPath(c.getParent()),n=null,o=null,r=0;r<e.elements.length;r++){var a=e.elements[r];if(a==e.block||a==e.blockLimit)break;u.checkElementRemovable(a,!0)&&(n=a)}for(r=0;r<t.elements.length&&((a=t.elements[r])!=t.block&&a!=t.blockLimit);r++)u.checkElementRemovable(a,!0)&&(o=a);o&&c.breakParent(o),n&&i.breakParent(n)}e.enlarge(CKEDITOR.ENLARGE_INLINE,1);var n=e.createBookmark(),i=n.startNode,o=this._.definition.alwaysRemoveElement;if(e.collapsed){for(var r,a,s=new CKEDITOR.dom.elementPath(i.getParent(),e.root),l=0;l<s.elements.length&&(a=s.elements[l])&&a!=s.block&&a!=s.blockLimit;l++)if(this.checkElementRemovable(a)){var d;!o&&e.collapsed&&(e.checkBoundaryOfElement(a,CKEDITOR.END)||(d=e.checkBoundaryOfElement(a,CKEDITOR.START)))?(r=a).match=d?"start":"end":(a.mergeSiblings(),a.is(this.element)?f.call(this,a):m(a,b(this)[a.getName()]))}if(r){for(o=i,l=0;!(a=s.elements[l]).equals(r);l++)a.match||((a=a.clone()).append(o),o=a);o["start"==r.match?"insertBefore":"insertAfter"](r)}}else{var c=n.endNode,u=this;for(t(),s=i;!s.equals(c);)r=s.getNextSourceNode(),s.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(s)&&(s.getName()==this.element?f.call(this,s):m(s,b(this)[s.getName()]),r.type==CKEDITOR.NODE_ELEMENT&&r.contains(i)&&(t(),r=i.getNext())),s=r}e.moveToBookmark(n),e.shrink(CKEDITOR.NODE_ELEMENT,!0)}function o(e){var t=[];return e.forEach(function(e){if("true"==e.getAttribute("contenteditable"))return t.push(e),!1},CKEDITOR.NODE_ELEMENT,!0),t}function r(e){var t=e.getEnclosedNode()||e.getCommonAncestor(!1,!0);(e=new CKEDITOR.dom.elementPath(t,e.root).contains(this.element,1)
156)&&!e.isReadOnly()&&y(e,this)}function a(e){var t=e.getCommonAncestor(!0,!0);if(e=new CKEDITOR.dom.elementPath(t,e.root).contains(this.element,1)){var n=(t=this._.definition).attributes;if(n)for(var i in n)e.removeAttribute(i,n[i]);if(t.styles)for(var o in t.styles)t.styles.hasOwnProperty(o)&&e.removeStyle(o)}}function s(e){var t=e.createBookmark(!0),n=e.createIterator();n.enforceRealBlocks=!0,this._.enterMode&&(n.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var i,o=e.document;i=n.getNextParagraph();)!i.isReadOnly()&&(!n.activeFilter||n.activeFilter.check(this))&&d(i,v(this,o,i));e.moveToBookmark(t)}function l(e){var t,n,i=e.createBookmark(1),o=e.createIterator();for(o.enforceRealBlocks=!0,o.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;t=o.getNextParagraph();)this.checkElementRemovable(t)&&(t.is("pre")?((n=this._.enterMode==CKEDITOR.ENTER_BR?null:e.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&t.copyAttributes(n),d(t,n)):f.call(this,t));e.moveToBookmark(i)}function d(e,t){(n=!t)&&(t=e.getDocument().createElement("div"),e.copyAttributes(t));var n,i,o=t&&t.is("pre"),r=e.is("pre"),a=!o&&r;if(o&&!r){if(r=t,(a=e.getBogus())&&a.remove(), 157a=(a=(a=(a=u(a=e.getHtml(),/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"")).replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1")).replace(/([ \t\n\r]+| )/g," ")).replace(/<br\b[^>]*>/gi,"\n"),CKEDITOR.env.ie){var s=e.getDocument().createElement("div");s.append(r),r.$.outerHTML="<pre>"+a+"</pre>",r.copyAttributes(s.getFirst()),r=s.getFirst().remove()}else r.setHtml(a);t=r}else a?t=h(n?[e.getHtml()]:c(e),t):e.moveChildren(t);(t.replace(e),o)?(i=(n=t).getPrevious(k))&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("pre")&&(o=u(i.getHtml(),/\n$/,"")+"\n\n"+u(n.getHtml(),/^\n/,""),CKEDITOR.env.ie?n.$.outerHTML="<pre>"+o+"</pre>":n.setHtml(o),i.remove()):n&&g(t)}function c(e){var t=[];return u(e.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(e,t,n){return t+"</pre>"+n+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(e,n){t.push(n)}),t}function u(e,t,n){var i="",o="";return e=e.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(e,t,n){return t&&(i=t),n&&(o=n),""}),i+e.replace(t,n)+o}function h(e,t){var n;1<e.length&&(n=new CKEDITOR.dom.documentFragment(t.getDocument()));for(var i=0;i<e.length;i++){var o=(o=(o=u(o=u(o=u(o=(o=e[i]).replace(/(\r\n|\r)/g,"\n"),/^[ \t]*\n/,""),/\n$/,""),/^[ \t]+|[ \t]+$/g,function(e,t){return 1==e.length?" ":t?" "+CKEDITOR.tools.repeat(" ",e.length-1):CKEDITOR.tools.repeat(" ",e.length-1)+" "})).replace(/\n/g,"<br>")).replace(/[ \t]{2,}/g,function(e){return CKEDITOR.tools.repeat(" ",e.length-1)+" "});if(n){var r=t.clone();r.setHtml(o),n.append(r)}else t.setHtml(o)}return n||t}function f(e,t){var n,i=(o=this._.definition).attributes,o=o.styles,r=b(this)[e.getName()],a=CKEDITOR.tools.isEmpty(i)&&CKEDITOR.tools.isEmpty(o);for(n in i)("class"!=n&&!this._.definition.fullMatch||e.getAttribute(n)==T(n,i[n]))&&(t&&"data-"==n.slice(0,5)||(a=e.hasAttribute(n),e.removeAttribute(n)));for(var s in o)this._.definition.fullMatch&&e.getStyle(s)!=T(s,o[s],!0)||(a=a||!!e.getStyle(s),e.removeStyle(s));m(e,r,w[e.getName()]),a&&(this._.definition.alwaysRemoveElement?g(e,1):!CKEDITOR.dtd.$block[e.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!e.hasAttributes()?g(e):e.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function p(e){for(var t,n=b(this),i=e.getElementsByTag(this.element),o=i.count();0<=--o;)(t=i.getItem(o)).isReadOnly()||f.call(this,t,!0);for(var r in n)if(r!=this.element)for(o=(i=e.getElementsByTag(r)).count()-1;0<=o;o--)(t=i.getItem(o)).isReadOnly()||m(t,n[r])}function m(e,t,n){if(t=t&&t.attributes)for(var i=0;i<t.length;i++){var o,r=t[i][0];if(o=e.getAttribute(r)){var a=t[i][1];(null===a||a.test&&a.test(o)||"string"==typeof a&&o==a)&&e.removeAttribute(r)}}n||g(e)}function g(e,t){if(!e.hasAttributes()||t)if(CKEDITOR.dtd.$block[e.getName()]){var n=e.getPrevious(k),i=e.getNext(k);!n||n.type!=CKEDITOR.NODE_TEXT&&n.isBlockBoundary({br:1})||e.append("br",1),!i||i.type!=CKEDITOR.NODE_TEXT&&i.isBlockBoundary({br:1})||e.append("br"),e.remove(!0)}else n=e.getFirst(),i=e.getLast(),e.remove(!0),n&&(n.type==CKEDITOR.NODE_ELEMENT&&n.mergeSiblings(),i&&!n.equals(i)&&i.type==CKEDITOR.NODE_ELEMENT&&i.mergeSiblings())}function v(e,t,n){var i;return"*"==(i=e.element)&&(i="span"),i=new CKEDITOR.dom.element(i,t),n&&n.copyAttributes(i),i=y(i,e),t.getCustomData("doc_processing_style")&&i.hasAttribute("id")?i.removeAttribute("id"):t.setCustomData("doc_processing_style",1),i}function y(e,t){var n=(i=t._.definition).attributes,i=CKEDITOR.style.getStyleText(i);if(n)for(var o in n)e.setAttribute(o,n[o]);return i&&e.setAttribute("style",i),e}function _(e,t){for(var n in e)e[n]=e[n].replace(x,function(e,n){return t[n]})}function b(e){if(e._.overrides)return e._.overrides;var t=e._.overrides={},n=e._.definition.overrides;if(n){CKEDITOR.tools.isArray(n)||(n=[n]);for(var i=0;i<n.length;i++){var o,r;if("string"==typeof(s=n[i])?o=s.toLowerCase():(o=s.element?s.element.toLowerCase():e.element,r=s.attributes),s=t[o]||(t[o]={}),r){var a,s=s.attributes=s.attributes||[];for(a in r)s.push([a.toLowerCase(),r[a]])}}}return t}function T(e,t,n){var i=new CKEDITOR.dom.element("span");return i[n?"setStyle":"setAttribute"](e,t),i[n?"getStyle":"getAttribute"](e)}function C(e,t){function n(e,t){return"font-family"==t.toLowerCase()?e.replace(/["']/g,""):e}for(var i in"string"==typeof e&&(e=CKEDITOR.tools.parseCssText(e)),"string"==typeof t&&(t=CKEDITOR.tools.parseCssText(t,!0)),e)if(!(i in t)||n(t[i],i)!=n(e[i],i)&&"inherit"!=e[i]&&"inherit"!=t[i])return!1;return!0}function E(e,t,n){var i,o,r=e.document,a=e.getRanges();if(t=t?this.removeFromRange:this.applyToRange,e.isFake&&e.isInTable())for(i=[],o=0;o<a.length;o++)i.push(a[o].clone());for(var s=a.createIterator();o=s.getNextRange();)t.call(this,o,n);e.selectRanges(i||a),r.removeCustomData("doc_processing_style")}var w={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},I={a:1,blockquote:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},D=/\s*(?:;\s*|$)/,x=/#\((.+?)\)/g,O=CKEDITOR.dom.walker.bookmark(0,1),k=CKEDITOR.dom.walker.whitespace
157s(1);CKEDITOR.style=function(e,t){if("string"==typeof e.type)return new CKEDITOR.style.customHandlers[e.type](e);var n=e.attributes;n&&n.style&&(e.styles=CKEDITOR.tools.extend({},e.styles,CKEDITOR.tools.parseCssText(n.style)),delete n.style),t&&(_((e=CKEDITOR.tools.clone(e)).attributes,t),_(e.styles,t)),n=this.element=e.element?"string"==typeof e.element?e.element.toLowerCase():e.element:"*",this.type=e.type||(w[n]?CKEDITOR.STYLE_BLOCK:I[n]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE),"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT),this._={definition:e}},CKEDITOR.style.prototype={apply:function(e){if(e instanceof CKEDITOR.dom.document)return E.call(this,e.getSelection());if(this.checkApplicable(e.elementPath(),e)){var t=this._.enterMode;t||(this._.enterMode=e.activeEnterMode),E.call(this,e.getSelection(),0,e),this._.enterMode=t}},remove:function(e){if(e instanceof CKEDITOR.dom.document)return E.call(this,e.getSelection(),1);if(this.checkApplicable(e.elementPath(),e)){var t=this._.enterMode;t||(this._.enterMode=e.activeEnterMode),E.call(this,e.getSelection(),1,e),this._.enterMode=t}},applyToRange:function(e){return this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?n:this.type==CKEDITOR.STYLE_BLOCK?s:this.type==CKEDITOR.STYLE_OBJECT?r:null,this.applyToRange(e)},removeFromRange:function(e){return this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?i:this.type==CKEDITOR.STYLE_BLOCK?l:this.type==CKEDITOR.STYLE_OBJECT?a:null,this.removeFromRange(e)},applyToObject:function(e){y(e,this)},checkActive:function(e,t){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(e.block||e.blockLimit,!0,t);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var n,i=e.elements,o=0;o<i.length;o++)if(n=i[o],this.type!=CKEDITOR.STYLE_INLINE||n!=e.block&&n!=e.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var r=n.getName();if(!("string"==typeof this.element?r==this.element:r in this.element))continue}if(this.checkElementRemovable(n,!0,t))return!0}}return!1},checkApplicable:function(e,t,n){if(t&&t instanceof CKEDITOR.filter&&(n=t),n&&!n.check(this))return!1;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!e.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!e.blockLimit.getDtd()[this.element]}return!0},checkElementMatch:function(e,t){var n=this._.definition;if(!e||!n.ignoreReadonly&&e.isReadOnly())return!1;var i=e.getName();if("string"==typeof this.element?i==this.element:i in this.element){if(!t&&!e.hasAttributes())return!0;if(i=n._AC)n=i;else{i={};var o=0,r=n.attributes;if(r)for(var a in r)o++,i[a]=r[a];(a=CKEDITOR.style.getStyleText(n))&&(i.style||o++,i.style=a),i._length=o,n=n._AC=i}if(!n._length)return!0;for(var s in n)if("_length"!=s)if(i=e.getAttribute(s)||"","style"==s?C(n[s],i):n[s]==i){if(!t)return!0}else if(t)return!1;if(t)return!0}return!1},checkElementRemovable:function(e,t,n){if(this.checkElementMatch(e,t,n))return!0;if(t=b(this)[e.getName()]){var i;if(!(t=t.attributes))return!0;for(n=0;n<t.length;n++)if(i=t[n][0],i=e.getAttribute(i)){var o=t[n][1];if(null===o)return!0;if("string"==typeof o){if(i==o)return!0}else if(o.test(i))return!0}}return!1},buildPreview:function(e){var t=this._.definition,n=[],i=t.element;"bdo"==i&&(i="span");n=["<",i];var o=t.attributes;if(o)for(var r in o)n.push(" ",r,'="',o[r],'"');return(o=CKEDITOR.style.getStyleText(t))&&n.push(' style="',o,'"'),n.push(">",e||t.name,"</",i,">"),n.join("")},getDefinition:function(){return this._.definition}},CKEDITOR.style.getStyleText=function(e){if(t=e._ST)return t;var t=e.styles,n=e.attributes&&e.attributes.style||"",i="";for(var o in n.length&&(n=n.replace(D,";")),t){var r=t[o],a=(o+":"+r).replace(D,";");"inherit"==r?i+=a:n+=a}return n.length&&(n=CKEDITOR.tools.normalizeCssText(n,!0)),e._ST=n+i},CKEDITOR.style.customHandlers={},CKEDITOR.style.addCustomHandler=function(e){var t=function(e){this._={definition:e},this.setup&&this.setup(e)};return t.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},e,!0),this.customHandlers[e.type]=t};var S=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,R=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(e,t){this.requiredContent=this.allowedContent=this.style=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.styleCommand.prototype.exec=function(e){e.focus(),this.state==CKEDITOR.TRISTATE_OFF?e.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&e.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(e,t,n){CKEDITOR.stylesSet.addExternal(e,t,""),CKEDITOR.stylesSet.load(e,n)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(e,t){var n=this._.styleStateChangeCallbacks;n||(n=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(e){for(var t=0;t<n.length;t++){var i=n[t],o=i.style.checkActive(e.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;i.fn.call(this,o)}})),n.push({style:e,fn:t})},applyStyle:function(e){e.apply(this)},removeStyle:function(e){e.remove(this)},getStylesSet:function(e){if(this._.stylesDefinitions)e(this._.stylesDefinitions);else{var t=this;
157if(!1===(n=t.config.stylesCombo_stylesSet||t.config.stylesSet))e(null);else if(n instanceof Array)t._.stylesDefinitions=n,e(n);else{n||(n="default");var n,i=(n=n.split(":"))[0];CKEDITOR.stylesSet.addExternal(i,n[1]?n.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),""),CKEDITOR.stylesSet.load(i,function(n){t._.stylesDefinitions=n[i],e(t._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createComment(e)),CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"<!--"+this.$.nodeValue+"-->"}}),function(){var e,t={},n={};for(e in CKEDITOR.dtd.$blockLimit)e in CKEDITOR.dtd.$list||(t[e]=1);for(e in CKEDITOR.dtd.$block)e in CKEDITOR.dtd.$blockLimit||e in CKEDITOR.dtd.$empty||(n[e]=1);CKEDITOR.dom.elementPath=function(e,i){var o,r=null,a=null,s=[],l=e;i=i||e.getDocument().getBody(),l||(l=i);do{if(l.type==CKEDITOR.NODE_ELEMENT){if(s.push(l),!this.lastElement&&(this.lastElement=l,l.is(CKEDITOR.dtd.$object)||"false"==l.getAttribute("contenteditable")))continue;if(l.equals(i))break;if(!a&&(o=l.getName(),"true"==l.getAttribute("contenteditable")?a=l:!r&&n[o]&&(r=l),t[o])){if(o=!r&&"div"==o){e:{for(var d=0,c=(o=l.getChildren()).count();d<c;d++){var u=o.getItem(d);if(u.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[u.getName()]){o=!0;break e}}o=!1}o=!o}o?r=l:a=l}}}while(l=l.getParent());a||(a=i),this.block=r,this.blockLimit=a,this.root=i,this.elements=s}}(),CKEDITOR.dom.elementPath.prototype={compare:function(e){var t=this.elements;if(!(e=e&&e.elements)||t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0},contains:function(e,t,n){var i;"string"==typeof e&&(i=function(t){return t.getName()==e}),e instanceof CKEDITOR.dom.element?i=function(t){return t.equals(e)}:CKEDITOR.tools.isArray(e)?i=function(t){return-1<CKEDITOR.tools.indexOf(e,t.getName())}:"function"==typeof e?i=e:"object"==typeof e&&(i=function(t){return t.getName()in e});var o=this.elements,r=o.length;for(t&&r--,n&&(o=Array.prototype.slice.call(o,0)).reverse(),t=0;t<r;t++)if(i(o[t]))return o[t];return null},isContextFor:function(e){return!(e in CKEDITOR.dtd.$block)||!!(this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit).getDtd()[e]},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createTextNode(e)),this.$=e},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(e){this.$.nodeValue=e},split:function(e){var t=this.$.parentNode,n=t.childNodes.length,i=this.getLength(),o=this.getDocument(),r=new CKEDITOR.dom.text(this.$.splitText(e),o);return t.childNodes.length==n&&(e>=i?(r=o.createText("")).insertAfter(this):((e=o.createText("")).insertAfter(r),e.remove())),r},substring:function(e,t){return"number"!=typeof t?this.$.nodeValue.substr(e):this.$.nodeValue.substring(e,t)}}),function(){function e(e,t,n){var i=e.serializable,o=t[n?"endContainer":"startContainer"],r=n?"endOffset":"startOffset",a=i?t.document.getById(e.startNode):e.startNode;return e=i?t.document.getById(e.endNode):e.endNode,o.equals(a.getPrevious())?(t.startOffset=t.startOffset-o.getLength()-e.getPrevious().getLength(),o=e.getNext()):o.equals(e.getPrevious())&&(t.startOffset-=o.getLength(),o=e.getNext()),o.equals(a.getParent())&&t[r]++,o.equals(e.getParent())&&t[r]++,t[n?"endContainer":"startContainer"]=o,t}CKEDITOR.dom.rangeList=function(e){return e instanceof CKEDITOR.dom.rangeList?e:(e?e instanceof CKEDITOR.dom.range&&(e=[e]):e=[],CKEDITOR.tools.extend(e,t))};var t={createIterator:function(){var e,t=this,n=CKEDITOR.dom.walker.bookmark(),i=[];return{getNextRange:function(o){var r=t[e=void 0===e?0:e+1];if(r&&1<t.length){if(!e)for(var a=t.length-1;0<=a;a--)i.unshift(t[a].createBookmark(!0));if(o)for(var s=0;t[e+s+1];){var l=r.document;for(o=0,a=l.getById(i[s].endNode),l=l.getById(i[s+1].startNode);;){if(a=a.getNextSourceNode(!1),l.equals(a))o=1;else if(n(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())continue;break}if(!o)break;s++}for(r.moveToBookmark(i.shift());s--;)(a=t[++e]).moveToBookmark(i.shift()),r.setEnd(a.endContainer,a.endOffset)}return r}}},createBookmarks:function(t){for(var n,i=[],o=0;o<this.length;o++){i.push(n=this[o].createBookmark(t,!0));for(var r=o+1;r<this.length;r++)this[r]=e(n,this[r]),this[r]=e(n,this[r],!0)}return i},createBookmarks2:function(e){for(var t=[],n=0;n<this.length;n++)t.push(this[n].createBookmark2(e));return t},moveToBookmarks:function(e){for(var t=0;t<this.length;t++)this[t].moveToBookmark(e[t])}}}(),function(){function e(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function t(t){var n=CKEDITOR.skin["ua_"+t],i=CKEDITOR.env;if(n){n=n.split(",").sort(function(e,t){return e>t?-1:1});for(var o,r=0;r<n.length;
157r++)if(o=n[r],i.ie&&(o.replace(/^ie/,"")==i.version||i.quirks&&"iequirks"==o)&&(o="ie"),i[o]){t+="_"+n[r];break}}return CKEDITOR.getUrl(e()+t+".css")}function n(e,n){r[e]||(CKEDITOR.document.appendStyleSheet(t(e)),r[e]=1),n&&n()}function i(e){var t=e.getById(a);return t||((t=e.getHead().append("style")).setAttribute("id",a),t.setAttribute("type","text/css")),t}function o(e,t,n){var i,o,r;if(CKEDITOR.env.webkit)for(t=t.split("}").slice(0,-1),o=0;o<t.length;o++)t[o]=t[o].split("{");for(var a=0;a<e.length;a++)if(CKEDITOR.env.webkit)for(o=0;o<t.length;o++){for(r=t[o][1],i=0;i<n.length;i++)r=r.replace(n[i][0],n[i][1]);e[a].$.sheet.addRule(t[o][0],r)}else{for(r=t,i=0;i<n.length;i++)r=r.replace(n[i][0],n[i][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?e[a].$.styleSheet.cssText+=r:e[a].$.innerHTML+=r}}var r={};CKEDITOR.skin={path:e,loadPart:function(t,i){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e()+"skin.js"),function(){n(t,i)}):n(t,i)},getPath:function(e){return CKEDITOR.getUrl(t(e))},icons:{},addIcon:function(e,t,n,i){e=e.toLowerCase(),this.icons[e]||(this.icons[e]={path:t,offset:n||0,bgsize:i||"16px"})},getIconStyle:function(e,t,n,i,o){var r;return e&&(e=e.toLowerCase(),t&&(r=this.icons[e+"-rtl"]),r||(r=this.icons[e])),e=n||r&&r.path||"",i=i||r&&r.offset,o=o||r&&r.bgsize||"16px",e&&(e=e.replace(/'/g,"\\'")),e&&"background-image:url('"+CKEDITOR.getUrl(e)+"');background-position:0 "+i+"px;background-size:"+o+";"}},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(e){var t=i(CKEDITOR.document);return(this.setUiColor=function(e){this.uiColor=e;var n=CKEDITOR.skin.chameleon,i="",r="";"function"==typeof n&&(i=n(this,"editor"),r=n(this,"panel")),o([t],i,e=[[l,e]]),o(s,r,e)}).call(this,e)}});var a="cke_ui_color",s=[],l=/\$color/g;CKEDITOR.on("instanceLoaded",function(e){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var t=e.editor;e=function(e){if(!(e=(e.data[0]||e.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument()).getById("cke_ui_color")){e=i(e),s.push(e);var n=t.getUiColor();n&&o([e],CKEDITOR.skin.chameleon(t,"panel"),[[l,n]])}},t.on("panelShow",e),t.on("menuShow",e),t.config.uiColor&&t.setUiColor(t.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var e=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);e.appendTo(CKEDITOR.document.getHead());try{var t=e.getComputedStyle("border-top-color"),n=e.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!t||t!=n)}catch(r){CKEDITOR.env.hc=!1}e.remove()}if(CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc"),CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}"),CKEDITOR.status="loaded",CKEDITOR.fireOnce("loaded"),e=CKEDITOR._.pending)for(delete CKEDITOR._.pending,t=0;t<e.length;t++)CKEDITOR.editor.prototype.constructor.apply(e[t][0],e[t][1]),CKEDITOR.add(e[t][0])}(), 158/* 159 Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 160 For licensing, see LICENSE.md or http://ckeditor.com/license 161*/ 162CKEDITOR.skin.name="moono-lisa",CKEDITOR.skin.ua_editor="ie,iequirks,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie8",CKEDITOR.skin.chameleon=function(){var e=function(e,t){for(var n=e.match(/[^#]./g),i=0;3>i;i++){var o,r=i;o=parseInt(n[i],16),o=("0"+(0>t?0|o*(1+t):0|o+(255-o)*t).toString(16)).slice(-2),n[r]=o}return"#"+n.join("")},t
vendor: 2,821 bytes, line 162
162={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_bottom [background-color:{defaultBackground};border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [background-color:{defaultBackground};outline-color:{defaultBorder};] {id} .cke_dialog_tab [background-color:{dialogTab};border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [background-color:{lightBackground};] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} a.cke_button_off:hover,{id} a.cke_button_off:focus,{id} a.cke_button_off:active [background-color:{darkBackground};border-color:{toolbarElementsBorder};] {id} .cke_button_on [background-color:{ckeButtonOn};border-color:{toolbarElementsBorder};] {id} .cke_toolbar_separator,{id} .cke_toolgroup a.cke_button:last-child:after,{id} .cke_toolgroup a.cke_button.cke_button_disabled:hover:last-child:after [background-color: {toolbarElementsBorder};border-color: {toolbarElementsBorder};] {id} a.cke_combo_button:hover,{id} a.cke_combo_button:focus,{id} .cke_combo_on a.cke_combo_button [border-color:{toolbarElementsBorder};background-color:{darkBackground};] {id} .cke_combo:after [border-color:{toolbarElementsBorder};] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover,{id} a.cke_path_item:focus,{id} a.cke_path_item:active [background-color:{darkBackground};] {id}.cke_panel [border-color:{defaultBorder};] "),panel:new CKEDITOR.template(".cke_panel_grouptitle [background-color:{lightBackground};border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover,.cke_menubutton:focus,.cke_menubutton:active [background-color:{menubuttonHover};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menubutton_disabled:hover .cke_menubutton_icon,.cke_menubutton_disabled:focus .cke_menubutton_icon,.cke_menubutton_disabled:active .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};
vendor: 3,740 bytes, line 162
162return function(n,i){var o=e(n.uiColor,.4);o={id:"."+n.id,defaultBorder:e(o,-.2),toolbarElementsBorder:e(o,-.25),defaultBackground:o,lightBackground:e(o,.8),darkBackground:e(o,-.15),ckeButtonOn:e(o,.4),ckeResizer:e(o,-.4),ckeColorauto:e(o,.8),dialogBody:e(o,.7),dialogTab:e(o,.65),dialogTabSelected:"#FFF",dialogTabSelectedBorder:"#FFF",elementsPathColor:e(o,-.6),menubuttonHover:e(o,.1),menubuttonIcon:e(o,.5),menubuttonIconHover:e(o,.3)};return t[i].output(o).replace(/\[/g,"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var e,t,n,i=function(e){this._||(this._={}),this._["default"]=this._.initValue=e["default"]||"",this._.required=e.required||!1;for(var t=[this._],n=1;n<arguments.length;n++)t.push(arguments[n]);return t.push(!0),CKEDITOR.tools.extend.apply(CKEDITOR.tools,t),this._},o={build:function(e,t,n){return new CKEDITOR.ui.dialog.textInput(e,t,n)}},r={build:function(e,t,n){return new CKEDITOR.ui.dialog[t.type](e,t,n)}},a={isChanged:function(){return this.getValue()!=this.getInitValue()},reset:function(e){this.setValue(this.getInitValue(),e)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},s=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(e,t){this._.domOnChangeRegistered||(e.on("load",function(){this.getInputElement().on("change",function(){e.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",t)}},!0),l=/^on([A-Z]\w+)/,d=function(e){for(var t in e)(l.test(t)||"title"==t||"type"==t)&&delete e[t];return e},c=function(e){(e=e.data.getKeystroke())==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):e==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(e,t,n,o){if(!(4>arguments.length)){var r=i.call(this,t);r.labelId=CKEDITOR.tools.getNextId()+"_label",this._.children=[];var a={role:t.role||"presentation"};t.includeLabel&&(a["aria-labelledby"]=r.labelId),CKEDITOR.ui.dialog.uiElement.call(this,e,t,n,"div",null,a,function(){var n=[],i=t.required?" cke_required":"";return"horizontal"!=t.labelLayout?n.push('<label class="cke_dialog_ui_labeled_label'+i+'" ',' id="'+r.labelId+'"',r.inputId?' for="'+r.inputId+'"':"",(t.labelStyle?' style="'+t.labelStyle+'"':"")+">",t.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',t.controlStyle?' style="'+t.controlStyle+'"':"",' role="presentation">',o.call(this,e,t),"</div>"):(i={type:"hbox",widths:t.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+i+'" id="'+r.labelId+'" for="'+r.inputId+'"'+(t.labelStyle?' style="'+t.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(t.label)+"</label>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(t.controlStyle?' style="'+t.controlStyle+'"':"")+">"+o.call(this,e,t)+"</span>"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(e,i,n)),n.join("")})}},textInput:function(e,t,n){if(!(3>arguments.length)){i.call(this,t);var o=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",r={"class":"cke_dialog_ui_input_"+t.type,id:o,type:t.type};t.validate&&(this.validate=t.validate),t.maxLength&&(r.maxlength=t.maxLength),t.size&&(r.size=t.size),t.inputStyle&&(r.style=t.inputStyle);var a=this,s=!1;e.on("load",function(){a.getInputElement().on("keydown",function(e){13==e.data.getKeystroke()&&(s=!0)}),a.getInputElement().on("keyup",function(t){13==t.data.getKeystroke()&&s&&(e.getButton("ok")&&setTimeout(function(){e.getButton("ok").click()},0),s=!1),a.bidi&&c.call(a,t)},null,null,1e3)}
162),CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){var e=['<div class="cke_dialog_ui_input_',t.type,'" role="presentation"'];for(var n in t.width&&e.push('style="width:'+t.width+'" '),e.push("><input "),r["aria-labelledby"]=this._.labelId,this._.required&&(r["aria-required"]=this._.required),r)e.push(n+'="'+r[n]+'" ');return e.push(" /></div>"),e.join("")})}},textarea:function(e,t,n){if(!(3>arguments.length)){i.call(this,t);var o=this,r=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",a={};t.validate&&(this.validate=t.validate),a.rows=t.rows||5,a.cols=t.cols||20,a["class"]="cke_dialog_ui_input_textarea "+(t["class"]||""),"undefined"!=typeof t.inputStyle&&(a.style=t.inputStyle),t.dir&&(a.dir=t.dir),o.bidi&&e.on("load",function(){o.getInputElement().on("keyup",c)},o),CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){a["aria-labelledby"]=this._.labelId,this._.required&&(a["aria-required"]=this._.required);var e,t=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',r,'" '];for(e in a)t.push(e+'="'+CKEDITOR.tools.htmlEncode(a[e])+'" ');return t.push(">",CKEDITOR.tools.htmlEncode(o._["default"]),"</textarea></div>"),t.join("")})}},checkbox:function(e,t,n){if(!(3>arguments.length)){var o=i.call(this,t,{"default":!!t["default"]});t.validate&&(this.validate=t.validate),CKEDITOR.ui.dialog.uiElement.call(this,e,t,n,"span",null,null,function(){var n=CKEDITOR.tools.extend({},t,{id:t.id?t.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),i=[],r=CKEDITOR.tools.getNextId()+"_label",a={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":r};return d(n),t["default"]&&(a.checked="checked"),"undefined"!=typeof n.inputStyle&&(n.style=n.inputStyle),o.checkbox=new CKEDITOR.ui.dialog.uiElement(e,n,i,"input",null,a),i.push(' <label id="',r,'" for="',a.id,'"'+(t.labelStyle?' style="'+t.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(t.label),"</label>"),i.join("")})}},radio:function(e,t,n){if(!(3>arguments.length)){i.call(this,t),this._["default"]||(this._["default"]=this._.initValue=t.items[0][1]),t.validate&&(this.validate=t.validate);var o=[],r=this;t.role="radiogroup",t.includeLabel=!0,CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){for(var n=[],i=[],a=(t.id?t.id:CKEDITOR.tools.getNextId())+"_radio",s=0;s<t.items.length;s++){var l=t.items[s],c=void 0!==l[2]?l[2]:l[0],u=void 0!==l[1]?l[1]:l[0],h=(f=CKEDITOR.tools.getNextId()+"_radio_input")+"_label",f=CKEDITOR.tools.extend({},t,{id:f,title:null,type:null},!0),p=(c=CKEDITOR.tools.extend({},f,{title:c},!0),{type:"radio","class":"cke_dialog_ui_radio_input",name:a,value:u,"aria-labelledby":h}),m=[];r._["default"]==u&&(p.checked="checked"),d(f),d(c),"undefined"!=typeof f.inputStyle&&(f.style=f.inputStyle),f.keyboardFocusable=!0,o.push(new CKEDITOR.ui.dialog.uiElement(e,f,m,"input",null,p)),m.push(" "),new CKEDITOR.ui.dialog.uiElement(e,c,m,"label",null,{id:h,"for":p.id},l[0]),n.push(m.join(""))}return new CKEDITOR.ui.dialog.hbox(e,o,n,i),i.join("")}),this._.children=o}},button:function(e,t,n){if(arguments.length){"function"==typeof t&&(t=t(e.getParentEditor())),i.call(this,t,{disabled:t.disabled||!1}),CKEDITOR.event.implementOn(this);var o=this;e.on("load",function(){var e=this.getElement();e.on("click",function(e){o.click(),e.data.preventDefault()}),e.on("keydown",function(e){e.data.getKeystroke()in{32:1}&&(o.click(),e.data.preventDefault())}),e.unselectable()},this);var r=CKEDITOR.tools.extend({},t);delete r.style;var a=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,e,r,n,"a",null,{style:t.style,href:"javascript:void(0)",title:t.label,hidefocus:"true","class":t["class"],role:"button","aria-labelledby":a},'<span id="'+a+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(t.label)+"</span>")}},select:function(e,t,n){if(!(3>arguments.length)){var o=i.call(this,t);t.validate&&(this.validate=t.validate),o.inputId=CKEDITOR.tools.getNextId()+"_select",CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){var n=CKEDITOR.tools.extend({},t,{id:t.id?t.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),i=[],r=[],a={id:o.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};i.push('<div class="cke_dialog_ui_input_',t.type,'" role="presentation"'),t.width&&i.push('style="width:'+t.width+'" '),i.push(">"),void 0!==t.size&&(a.size=t.size),void 0!==t.multiple&&(a.multiple=t.multiple),d(n);for(var s,l=0;l<t.items.length&&(s=t.items[l]);l++)r.push('<option value="',CKEDITOR.tools.htmlEncode(void 0!==s[1]?s[1]:s[0]).replace(/"/g,"""),'" /> ',CKEDITOR.tools.htmlEncode(s[0]));return"undefined"!=typeof n.inputStyle&&(n.style=n.inputStyle),o.select=new CKEDITOR.ui.dialog.uiElement(e,n,i,"select",null,a,r.join("")),i.push("</div>"),i.join("")})}},file:function(e,t,n){if(!(3>arguments.length)){void 0===t["default"]&&(t["default"]="");var o=CKEDITOR.tools.extend(i.call(this,t),{definition:t,buttons:[]});t.validate&&(this.validate=t.validate),e.on("load",function(){CKEDITOR.document.getById(o.frameId).getParent().addClass("cke_dialog_ui_input_file")}),CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){o.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var e=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',o.frameId,'" title="',t.label,'" src="javascript:void('];return e.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0"),e.push(')"></iframe>'),e.join("")})}},fileButton:function(e,t,n){var o=this;if(!(3>arguments.length)){i.call(this,t),t.validate&&(this.validate=t.validate);var r=CKEDITOR.tools.extend({},t),a=r.onClick;r.className=(r.className?r.className+" ":"")+"cke_dialog_ui_button",r.onClick=function(n){var i=t["for"];a&&!1===a.call(this,n)||(e.getContentElement(i[0],i[1]).submit(),this.disable())},e.on("load",function(){e.getContentElement(t["for"][0],t["for"][1])._.buttons.push(o)}),CKEDITOR.ui.dialog.button.call(this,e,r,n)}},html:(e=/^\s*<[\w:]+\s+([^>]*)?>/,t=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,n=/\/$/,function(i,o,r){if(!(3>arguments.length)){var a=[],s=o.html;"<"!=s.charAt(0)&&(s="<span>"+s+"</span>");var l=o.focus;if(l){var d=this.focus;this.focus=function(){("function"==typeof l?l:d).call(this),this.fire("focus")},o.isFocusable&&(this.isFocusable=this.isFocusable),this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,i,o,a,"span",null,null,""),a=a.join("").match(e),s=s.match(t)||["","",""],n.test(s[1])&&(s[1]=s[1].slice(0,-1),s[2]="/"+s[2]),r.push([s[1]," ",a[1]||"",s[2]].join(""))}}),fieldset:function(e,t,n,i,o){var r=o.label;this._={children:t},CKEDITOR.ui.dialog.uiElement.call(this,e,o,i,"fieldset",null,null,function(){var e=[];r&&e.push("<legend"+(o.labelStyle?' style="'+o.labelStyle+'"':"")+">"+r+"</legend>");for(var t=0;t<n.length;t++)e.push(n[t]);return e.join("")})}},!0),CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement,CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{set
162Label:function(e){var t=CKEDITOR.document.getById(this._.labelId);return 1>t.getChildCount()?new CKEDITOR.dom.text(e,CKEDITOR.document).appendTo(t):t.getChild(0).$.nodeValue=e,this},getLabel:function(){var e=CKEDITOR.document.getById(this._.labelId);return!e||1>e.getChildCount()?"":e.getChild(0).getText()},eventProcessors:s},!0),CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled&&this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var e=this.getElement();e&&e.removeClass("cke_disabled")},disable:function(){this._.disabled=!0,this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(e,t){this.on("click",function(){t.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},focus:function(){var e=this.selectParentTab();setTimeout(function(){var t=e.getInputElement();t&&t.$.focus()},0)},select:function(){var e=this.selectParentTab();setTimeout(function(){var t=e.getInputElement();t&&(t.$.focus(),t.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(e){if(this.bidi){var t=e&&e.charAt(0);(t="\u202a"==t?"ltr":"\u202b"==t?"rtl":null)&&(e=e.slice(1)),this.setDirectionMarker(t)}return e||(e=""),CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},getValue:function(){var e=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&e){var t=this.getDirectionMarker();t&&(e=("ltr"==t?"\u202a":"\u202b")+e)}return e},setDirectionMarker:function(e){var t=this.getInputElement();e?t.setAttributes({dir:e,"data-cke-dir-marker":e}):this.getDirectionMarker()&&t.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},a,!0),CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput,CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(e,t,n){var i=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),o=this.getInputElement().$;return i.$.text=e,i.$.value=null==t?e:t,null==n?CKEDITOR.env.ie?o.add(i.$):o.add(i.$,null):o.add(i.$,n),this},remove:function(e){return this.getInputElement().$.remove(e),this},clear:function(){for(var e=this.getInputElement().$;0<e.length;)e.remove(0);return this},keyboardFocusable:!0},a,!0),CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(e,t){this.getInputElement().$.checked=e,!t&&this.fire("change",{value:e})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(e,t){return!CKEDITOR.env.ie||8<CKEDITOR.env.version?s.onChange.apply(this,arguments):(e.on("load",function(){var e=this._.checkbox.getElement();e.on("propertychange",function(t){"checked"==(t=t.data.$).propertyName&&this.fire("change",{value:e.$.checked})},this)},this),this.on("change",t),null)}},keyboardFocusable:!0},a,!0),CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(e,t){for(var n,i=this._.children,o=0;o<i.length&&(n=i[o]);o++)n.getElement().$.checked=n.getValue()==e;!t&&this.fire("change",{value:e})},getValue:function(){for(var e=this._.children,t=0;t<e.length;t++)if(e[t].getElement().$.checked)return e[t].getValue();return null},accessKeyUp:function(){var e,t=this._.children;for(e=0;e<t.length;e++)if(t[e].getElement().$.checked)return void t[e].getElement().focus();t[0].getElement().focus()},eventProcessors:{onChange:function(e,t){return!CKEDITOR.env.ie||8<CKEDITOR.env.version?s.onChange.apply(this,arguments):(e.on("load",function(){for(var e=this._.children,t=this,n=0;n<e.length;n++)e[n].getElement().on("propertychange",function(e){"checked"==(e=e.data.$).propertyName&&this.$.checked&&t.fire("change",{value:this.getAttribute("value")})})},this),this.on("change",t),null)}}},a,!0),CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,a,{getInputElement:function(){var e=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<e.$.forms.length?new CKEDITOR.dom.element(e.$.forms[0].elements[0]):this.getElement()},submit:function(){return this.getInputElement().getParent().$.submit(),this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(e){var t,n,i=/^on([A-Z]\w+)/,o=function(e,t,n,i){e.on("formLoaded",function(){e.getIn
vendor: 5,459 bytes, line 162
162putElement().on(n,i,e)})};for(n in e)(t=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,e[n]):o(this,this._.dialog,t[1].toLowerCase(),e[n]));return this},reset:function(){function e(){n.$.open();var e="";i.size&&(e=i.size-(CKEDITOR.env.ie?7:0));var d=t.frameId+"_input";for(n.$.write(['<html dir="'+s+'" lang="'+l+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+s+'" lang="'+l+'" action="',CKEDITOR.tools.htmlEncode(i.action),'"><label id="',t.labelId,'" for="',d,'" style="display:none">',CKEDITOR.tools.htmlEncode(i.label),'</label><input style="width:100%" id="',d,'" aria-labelledby="',t.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(i.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(0<e?e:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+r+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+a+")}","</script>"].join("")),n.$.close(),e=0;e<o.length;e++)o[e].enable()}var t=this._,n=CKEDITOR.document.getById(t.frameId).getFrameDocument(),i=t.definition,o=t.buttons,r=this.formLoadedNumber,a=this.formUnloadNumber,s=t.dialog._.editor.lang.dir,l=t.dialog._.editor.langCode;r||(r=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),a=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(r),CKEDITOR.tools.removeFunction(a)})),CKEDITOR.env.gecko?setTimeout(e,500):e()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(e,t){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",t)}},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button,CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype),CKEDITOR.dialog.addUIElement("text",o),CKEDITOR.dialog.addUIElement("password",o),CKEDITOR.dialog.addUIElement("textarea",r),CKEDITOR.dialog.addUIElement("checkbox",r),CKEDITOR.dialog.addUIElement("radio",r),CKEDITOR.dialog.addUIElement("button",r),CKEDITOR.dialog.addUIElement("select",r),CKEDITOR.dialog.addUIElement("file",r),CKEDITOR.dialog.addUIElement("fileButton",r),CKEDITOR.dialog.addUIElement("html",r),CKEDITOR.dialog.addUIElement("fieldset",{build:function(e,t,n){for(var i,o=t.children,r=[],a=[],s=0;s<o.length&&(i=o[s]);s++){var l=[];r.push(l),a.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(e,i,l))}return new CKEDITOR.ui.dialog[t.type](e,a,r,n,t)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function e(){for(var e=this._.tabIdList.length,t=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+e,n=t-1;n>t-e;n--)if(this._.tabs[this._.tabIdList[n%e]][0].$.offsetHeight)return this._.tabIdList[n%e];return null}function t(){for(var e=this._.tabIdList.length,t=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),n=t+1;n<t+e;n++)if(this._.tabs[this._.tabIdList[n%e]][0].$.offsetHeight)return this._.tabIdList[n%e];return null}function n(e,t){for(var n=e.$.getElementsByTagName("input"),i=0,o=n.length;i<o;i++){var r=new CKEDITOR.dom.element(n[i]);"text"==r.getAttribute("type").toLowerCase()&&(t?(r.setAttribute("value",r.getCustomData("fake_value")||""),r.removeCustomData("fake_value")):(r.setCustomData("fake_value",r.getAttribute("value")),r.setAttribute("value","")))}}function i(e,t){var n=this.getInputElement();n&&(e?n.removeAttribute("aria-invalid"):n.setAttribute("aria-invalid",!0)),e||(this.select?this.select():this.focus()),t&&alert(t),this.fire("validated",{valid:e,msg:t})}function o(){var e=this.getInputElement();e&&e.removeAttribute("aria-invalid")}function r(e){var t=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",g).output({id:CKEDITOR.tools.getNextNumber(),editorId:e.id,langDir:e.lang.dir,langCode:e.langCode,editorDialogClass:"cke_editor_"+e.name.replace(/\./g,"\\.")+"_dialog",closeTitle:e.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),n=t.getChild([0,0,0,0,0]),i=n.getChild(0),o=n.getChild(1);return e.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(n),!CKEDITOR.env.ie||CKEDITOR.env.quirks||CKEDITOR.env.edge||(e="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())",CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+e+'" tabIndex="-1"></iframe>').appendTo(n.getParent())),i.unselectable(),o.unselectable(),{element:t,parts:{dialog:t.getChild(0),title:i,close:o,tabs:n.getChild(2),contents:n.getChild([3,0,0,0]),footer:n.getChild([3,0,1,0])}}}function a(e,t,n){this.element=t,this.focusIndex=n,this.tabIndex=0,this.isFocusable=function(){return!t.getAttribute("disabled")&&t.isVisible()},this.focus=function(){e._.currentFocusIndex=this.focusIndex,this.element.focus()}
162,t.on("keydown",function(e){e.data.getKeystroke()in{32:1,13:1}&&this.fire("click")}),t.on("focus",function(){this.fire("mouseover")}),t.on("blur",function(){this.fire("mouseout")})}function s(e){function t(){e.layout()}var n=CKEDITOR.document.getWindow();n.on("resize",t),e.on("hide",function(){n.removeListener("resize",t)})}function l(e,t){this._={dialog:e},CKEDITOR.tools.extend(this,t)}function d(e){function t(t){var n=e.getSize(),l=CKEDITOR.document.getWindow().getViewPaneSize(),d=t.data.$.screenX,c=t.data.$.screenY,u=d-i.x,h=c-i.y;i={x:d,y:c},o.x+=u,o.y+=h,e.move(o.x+s[3]<a?-s[3]:o.x-s[1]>l.width-n.width-a?l.width-n.width+("rtl"==r.lang.dir?0:s[1]):o.x,o.y+s[0]<a?-s[0]:o.y-s[2]>l.height-n.height-a?l.height-n.height+s[2]:o.y,1),t.data.preventDefault()}function n(){if(CKEDITOR.document.removeListener("mousemove",t),CKEDITOR.document.removeListener("mouseup",n),CKEDITOR.env.ie6Compat){var e=E.getChild(0).getFrameDocument();e.removeListener("mousemove",t),e.removeListener("mouseup",n)}}var i=null,o=null,r=e.getParentEditor(),a=r.config.dialog_magnetDistance,s=CKEDITOR.skin.margins||[0,0,0,0];void 0===a&&(a=20),e.parts.title.on("mousedown",function(r){if(i={x:r.data.$.screenX,y:r.data.$.screenY},CKEDITOR.document.on("mousemove",t),CKEDITOR.document.on("mouseup",n),o=e.getPosition(),CKEDITOR.env.ie6Compat){var a=E.getChild(0).getFrameDocument();a.on("mousemove",t),a.on("mouseup",n)}r.data.preventDefault()},e)}function c(e){function t(t){var n="rtl"==u.lang.dir,c=d.width,h=d.height,f=c+(t.data.$.screenX-l.x)*(n?-1:1)*(e._.moved?1:2),p=h+(t.data.$.screenY-l.y)*(e._.moved?1:2),m=e._.element.getFirst(),g=(m=n&&m.getComputedStyle("right"),e.getPosition());g.y+p>s.height&&(p=s.height-g.y),(n?m:g.x)+f>s.width&&(f=s.width-(n?m:g.x)),o!=CKEDITOR.DIALOG_RESIZE_WIDTH&&o!=CKEDITOR.DIALOG_RESIZE_BOTH||(c=Math.max(i.minWidth||0,f-r)),o!=CKEDITOR.DIALOG_RESIZE_HEIGHT&&o!=CKEDITOR.DIALOG_RESIZE_BOTH||(h=Math.max(i.minHeight||0,p-a)),e.resize(c,h),e._.moved||e.layout(),t.data.preventDefault()}function n(){if(CKEDITOR.document.removeListener("mouseup",n),CKEDITOR.document.removeListener("mousemove",t),c&&(c.remove(),c=null),CKEDITOR.env.ie6Compat){var e=E.getChild(0).getFrameDocument();e.removeListener("mouseup",n),e.removeListener("mousemove",t)}}var i=e.definition,o=i.resizable;if(o!=CKEDITOR.DIALOG_RESIZE_NONE){var r,a,s,l,d,c,u=e.getParentEditor(),h=CKEDITOR.tools.addFunction(function(i){d=e.getSize();var o=e.parts.contents;o.$.getElementsByTagName("iframe").length&&(c=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'),o.append(c)),a=d.height-e.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks)),r=d.width-e.parts.contents.getSize("width",1),l={x:i.screenX,y:i.screenY},s=CKEDITOR.document.getWindow().getViewPaneSize(),CKEDITOR.document.on("mousemove",t),CKEDITOR.document.on("mouseup",n),CKEDITOR.env.ie6Compat&&((o=E.getChild(0).getFrameDocument()).on("mousemove",t),o.on("mouseup",n)),i.preventDefault&&i.preventDefault()});e.on("load",function(){var t="";o==CKEDITOR.DIALOG_RESIZE_WIDTH?t=" cke_resizer_horizontal":o==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(t=" cke_resizer_vertical"),t=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+t+" cke_resizer_"+u.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(u.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+h+', event )">'+("ltr"==u.lang.dir?"\u25e2":"\u25e3")+"</div>"),e.parts.footer.append(t,1)}),u.on("destroy",function(){CKEDITOR.tools.removeFunction(h)})}}function u(e){e.data.preventDefault(1)}function h(e){var t=CKEDITOR.document.getWindow(),n=e.config,i=CKEDITOR.skinName||e.config.skin,o=n.dialog_backgroundCoverColor||("moono-lisa"==i?"black":"white"),r=(i=n.dialog_backgroundCoverOpacity,n.baseFloatZIndex),a=(n=CKEDITOR.tools.genKey(o,i,r),w[n]);a?a.show():(r=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",r,"; top: 0px; left: 0px; ",CKEDITOR.env.ie6Compat?"":"background-color: "+o,'" class="cke_dialog_background_cover">'],CKEDITOR.env.ie6Compat&&(o="<html><body style=\\'background-color:"+o+";\\'></body></html>",r.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:'),r.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+o+"' );document.close();")+"})())"),r.push('" style="position:absolute;
162left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')),r.push("</div>"),(a=CKEDITOR.dom.element.createFromHtml(r.join(""))).setOpacity(void 0!==i?i:.5),a.on("keydown",u),a.on("keypress",u),a.on("keyup",u),a.appendTo(CKEDITOR.document.getBody()),w[n]=a),e.focusManager.add(a),E=a;var s=function(){var e=t.getScrollPosition(),n=CKEDITOR.dialog._.currentTop;if(a.setStyles({left:e.x+"px",top:e.y+"px"}),n)do{e=n.getPosition(),n.move(e.x,e.y)}while(n=n._.parentDialog)};if(C=e=function(){var e=t.getViewPaneSize();a.setStyles({width:e.width+"px",height:e.height+"px"})},t.on("resize",e),e(),CKEDITOR.env.mac&&CKEDITOR.env.webkit||a.focus(),CKEDITOR.env.ie6Compat){var l=function(){s(),arguments.callee.prevScrollHandler.apply(this,arguments)};t.$.setTimeout(function(){l.prevScrollHandler=window.onscroll||function(){},window.onscroll=l},0),s()}}function f(e){E&&(e.focusManager.remove(E),e=CKEDITOR.document.getWindow(),E.hide(),e.removeListener("resize",C),CKEDITOR.env.ie6Compat&&e.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),C=null)}var p,m=CKEDITOR.tools.cssLength,g='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+CKEDITOR.env.cssClass+' cke_{langDir}" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>';CKEDITOR.dialog=function(n,a){function s(){var e=E._.focusList;e.sort(function(e,t){return e.tabIndex!=t.tabIndex?t.tabIndex-e.tabIndex:e.focusIndex-t.focusIndex});for(var t=e.length,n=0;n<t;n++)e[n].focusIndex=n}function l(e){var t=E._.focusList;if(e=e||0,!(1>t.length)){var n=E._.currentFocusIndex;E._.tabBarMode&&0>e&&(n=0);try{t[n].getInputElement().$.blur()}catch(u){}var i=n,o=1<E._.pageCount;do{if(i+=e,o&&!E._.tabBarMode&&(i==t.length||-1==i))return E._.tabBarMode=!0,E._.tabs[E._.currentTabId][0].focus(),void(E._.currentFocusIndex=-1);if((i=(i+t.length)%t.length)==n)break}while(e&&!t[i].isFocusable());t[i].focus(),"text"==t[i].type&&t[i].select()}}function u(i){if(E==CKEDITOR.dialog._.currentTop){var o=i.data.getKeystroke(),r="rtl"==n.lang.dir,a=[37,38,39,40];if(f=p=0,9==o||o==CKEDITOR.SHIFT+9)l(o==CKEDITOR.SHIFT+9?-1:1),f=1;else if(o==CKEDITOR.ALT+121&&!E._.tabBarMode&&1<E.getPageCount())E._.tabBarMode=!0,E._.tabs[E._.currentTabId][0].focus(),E._.currentFocusIndex=-1,f=1;else if(-1!=CKEDITOR.tools.indexOf(a,o)&&E._.tabBarMode)o=-1!=CKEDITOR.tools.indexOf([r?39:37,38],o)?e.call(E):t.call(E),E.selectPage(o),E._.tabs[o][0].focus(),f=1;else if(13!=o&&32!=o||!E._.tabBarMode)if(13==o)(o=i.data.getTarget()).is("a","button","select","textarea")||o.is("input")&&"button"==o.$.type||((o=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(o.click,0,o),f=1),p=1;else{if(27!=o)return;(o=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(o.click,0,o):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(), 163p=1}else this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=-1,l(1),f=1;h(i)}}function h(e){f?e.data.preventDefault(1):p&&e.data.stopPropagation()}var f,p,m=CKEDITOR.dialog._.dialogDefinitions[a],g=CKEDITOR.tools.clone(v),y=n.config.dialog_buttonsOrder||"OS",_=n.lang.dir,b={};if(("OS"==y&&CKEDITOR.env.mac||"rtl"==y&&"ltr"==_||"ltr"==y&&"rtl"==_)&&g.buttons.reverse(),m=CKEDITOR.tools.extend(m(n),g),m=CKEDITOR.tools.clone(m),m=new T(this,m),g=r(n),this._={editor:n,element:g.element,name:a,contentSize:{
163width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1},this.parts=g.parts,CKEDITOR.tools.setTimeout(function(){n.fire("ariaWidget",this.parts.contents)},0,this),(g={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"})["rtl"==_?"right":"left"]=0,this.parts.dialog.setStyles(g),CKEDITOR.event.call(this),this.definition=m=CKEDITOR.fire("dialogDefinition",{name:a,definition:m},n).definition,!("removeDialogTabs"in n._)&&n.config.removeDialogTabs){for(g=n.config.removeDialogTabs.split(";"),_=0;_<g.length;_++)if(2==(y=g[_].split(":")).length){var C=y[0];b[C]||(b[C]=[]),b[C].push(y[1])}n._.removeDialogTabs=b}if(n._.removeDialogTabs&&(b=n._.removeDialogTabs[a]))for(_=0;_<b.length;_++)m.removeContents(b[_]);m.onLoad&&this.on("load",m.onLoad),m.onShow&&this.on("show",m.onShow),m.onHide&&this.on("hide",m.onHide),m.onOk&&this.on("ok",function(e){n.fire("saveSnapshot"),setTimeout(function(){n.fire("saveSnapshot")},0),!1===m.onOk.call(this,e)&&(e.data.hide=!1)}),this.state=CKEDITOR.DIALOG_STATE_IDLE,m.onCancel&&this.on("cancel",function(e){!1===m.onCancel.call(this,e)&&(e.data.hide=!1)});var E=this,w=function(e){var t,n=E._.contents;for(t in n)for(var i in n[t])if(e.call(this,n[t][i]))return};this.on("ok",function(e){w(function(t){if(t.validate){var n=t.validate(this),o="string"==typeof n||!1===n;return o&&(e.data.hide=!1,e.stop()),i.call(t,!o,"string"==typeof n?n:void 0),o}})},this,null,0),this.on("cancel",function(e){w(function(t){if(t.isChanged())return n.config.dialog_noConfirmCancel||confirm(n.lang.common.confirmCancel)||(e.data.hide=!1),!0})},this,null,0),this.parts.close.on("click",function(e){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),e.data.preventDefault()},this),this.changeFocus=l;var I=this._.element;for(n.focusManager.add(I,1),this.on("show",function(){I.on("keydown",u,this),CKEDITOR.env.gecko&&I.on("keypress",h,this)}),this.on("hide",function(){I.removeListener("keydown",u),CKEDITOR.env.gecko&&I.removeListener("keypress",h),w(function(e){o.apply(e)})}),this.on("iframeAdded",function(e){new CKEDITOR.dom.document(e.data.iframe.$.contentWindow.document).on("keydown",u,this,null,0)}),this.on("show",function(){s();var e=1<E._.pageCount;n.config.dialog_startupFocusTab&&e?(E._.tabBarMode=!0,E._.tabs[E._.currentTabId][0].focus(),E._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=e?-1:this._.focusList.length-1,m.onFocus?(e=m.onFocus.call(this))&&e.focus():l(1))},this,null,4294967295),CKEDITOR.env.ie6Compat&&this.on("load",function(){var e=this.getElement(),t=e.getFirst();t.remove(),t.appendTo(e)},this),d(this),c(this),new CKEDITOR.dom.text(m.title,CKEDITOR.document).appendTo(this.parts.title),_=0;_<m.contents.length;_++)(b=m.contents[_])&&this.addPage(b);for(this.parts.tabs.on("click",function(e){var t=e.data.getTarget();t.hasClass("cke_dialog_tab")&&(t=t.$.id,this.selectPage(t.substring(4,t.lastIndexOf("_"))),this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,l(1)),e.data.preventDefault())},this),_=[],b=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:m.buttons},_).getChild(),this.parts.footer.setHtml(_.join("")),_=0;_<b.length;_++)this._.buttons[b[_].id]=b[_]},CKEDITOR.dialog.prototype={destroy:function(){this.hide(),this._.element.remove()},resize:function(e,t){this._.contentSize&&this._.contentSize.width==e&&this._.contentSize.height==t||(CKEDITOR.dialog.fire("resize",{dialog:this,width:e,height:t},this._.editor),this.fire("resize",{width:e,height:t},this._.editor),this.parts.contents.setStyles({width:e+"px",height:t+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:e,height:t})},getSize:function(){var e=this._.element.getFirst();return{width:e.$.offsetWidth||0,height:e.$.offsetHeight||0}},move:function(e,t,n){var i=this._.element.getFirst(),o="rtl"==this._.editor.lang.dir,r="fixed"==i.getComputedStyle("position");CKEDITOR.env.ie&&i.setStyle("zoom","100%"),r&&this._.position&&this._.position.x==e&&this._.position.y==t||(this._.position={x:e,y:t},r||(e+=(r=CKEDITOR.document.getWindow().getScrollPosition()).x,t+=r.y),o&&(r=this.getSize(),e=CKEDITOR.document.getWindow().getViewPaneSize().width-r.width-e),(t={top:(0<t?t:0)+"px"})[o?"right":"left"]=(0<e?e:0)+"px",i.setStyles(t),n&&(this._.moved=1))},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var e=this._.element,t=this.definition;for(var n in e.getParent()&&e.getParent().equals(CKEDITOR.document.getBody())?e.setStyle("display","block"):e.appendTo(CKEDITOR.document.getBody()),this.resize(this._.contentSize&&this._.contentSize.width||t.width||t.minWidth,this._.contentSize&&this._.contentSize.height||t.height||t.minHeight),this.reset(),this.selectPage(this.definition.contents[0].id),null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex),this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10),null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,h(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2),CKEDITOR.dialog._.currentTop=this),e.on("key
163down",D),e.on("keyup",x),this._.hasFocus=!1,t.contents)if(t.contents[n]){e=t.contents[n];var i=this._.tabs[e.id],o=e.requiredContent,r=0;if(i){for(var a in this._.contents[e.id]){var l=this._.contents[e.id][a];"hbox"!=l.type&&"vbox"!=l.type&&l.getInputElement()&&(l.requiredContent&&!this._.editor.activeFilter.check(l.requiredContent)?l.disable():(l.enable(),r++))}!r||o&&!this._.editor.activeFilter.check(o)?i[0].addClass("cke_dialog_tab_disabled"):i[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout(),s(this),this.parts.dialog.setStyle("visibility",""),this.fireOnce("load",{}),CKEDITOR.ui.fire("ready",this),this.fire("show",{}),this._.editor.fire("dialogShow",this),this._.parentDialog||this._.editor.focusManager.lock(),this.foreach(function(e){e.setInitValue&&e.setInitValue()})},100,this)},layout:function(){var e=this.parts.dialog,t=this.getSize(),n=CKEDITOR.document.getWindow().getViewPaneSize(),i=(n.width-t.width)/2,o=(n.height-t.height)/2;CKEDITOR.env.ie6Compat||(t.height+(0<o?o:0)>n.height||t.width+(0<i?i:0)>n.width?e.setStyle("position","absolute"):e.setStyle("position","fixed")),this.move(this._.moved?this._.position.x:i,this._.moved?this._.position.y:o)},foreach:function(e){for(var t in this._.contents)for(var n in this._.contents[t])e.call(this,this._.contents[t][n]);return this},reset:(p=function(e){e.reset&&e.reset(1)},function(){return this.foreach(p),this}),setupContent:function(){var e=arguments;this.foreach(function(t){t.setup&&t.setup.apply(t,e)})},commitContent:function(){var e=arguments;this.foreach(function(t){CKEDITOR.env.ie&&this._.currentFocusIndex==t.focusIndex&&t.getInputElement().$.blur(),t.commit&&t.commit.apply(t,e)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{}),this._.editor.fire("dialogHide",this),this.selectPage(this._.tabIdList[0]);var e=this._.element;for(e.setStyle("display","none"),this.parts.dialog.setStyle("visibility","hidden"),k(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var t=this._.parentDialog.getElement().getFirst();t.setStyle("z-index",parseInt(t.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else f(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=10;else{CKEDITOR.dialog._.currentZIndex=null,e.removeListener("keydown",D),e.removeListener("keyup",x);var n=this._.editor;n.focus(),setTimeout(function(){n.focusManager.unlock(),CKEDITOR.env.iOS&&n.window.focus()},0)}delete this._.parentDialog,this.foreach(function(e){e.resetInitValue&&e.resetInitValue()}),this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(e){if(!e.requiredContent||this._.editor.filter.check(e.requiredContent)){for(var t=[],n=e.label?' title="'+CKEDITOR.tools.htmlEncode(e.label)+'"':"",i=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:e.elements,expand:!!e.expand,padding:e.padding,style:e.style||"width: 100%;"},t),o=this._.contents[e.id]={},r=i.getChild(),a=0;i=r.shift();)i.notAllowed||"hbox"==i.type||"vbox"==i.type||a++,o[i.id]=i,"function"==typeof i.getChild&&r.push.apply(r,i.getChild());a||(e.hidden=!0),(t=CKEDITOR.dom.element.createFromHtml(t.join(""))).setAttribute("role","tabpanel"),i=CKEDITOR.env,o="cke_"+e.id+"_"+CKEDITOR.tools.getNextNumber(),n=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",n,e.hidden?' style="display:none"':"",' id="',o,'"',i.gecko&&!i.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',e.label,"</a>"].join("")),t.setAttribute("aria-labelledby",o),this._.tabs[e.id]=[n,t],this._.tabIdList.push(e.id),!e.hidden&&this._.pageCount++,this._.lastTab=n,this.updateStyle(),t.setAttribute("name",e.id),t.appendTo(this.parts.contents),n.unselectable(),this.parts.tabs.append(n),e.accessKey&&(O(this,this,"CTRL+"+e.accessKey,R,S),this._.accessKeyMap["CTRL+"+e.accessKey]=e.id)}},selectPage:function(e){if(this._.currentTabId!=e&&!this._.tabs[e][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:e,currentPage:this._.currentTabId})){for(var t in this._.tabs){var i=this._.tabs[t][0],o=this._.tabs[t][1];t!=e&&(i.removeClass("cke_dialog_tab_selected"),o.hide()),o.setAttribute("aria-hidden",t!=e)}var r=this._.tabs[e];r[0].addClass("cke_dialog_tab_selected"),CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(n(r[1]),r[1].show(),setTimeout(function(){n(r[1],1)},0)):r[1].show(),this._.currentTabId=e,this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,e)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(t){var n=this._.tabs[t]&&this._.tabs[t][0];n&&1!=this._.pageCount&&n.isVisible()&&(t==this._.currentTabId&&this.selectPage(e.call(this)),n.hide(),this._.pageCount--,this.updateStyle())},showPage:function(e){(e=this._.tabs[e]&&this._.tabs[e][0])&&(e.show(),this._.pageCount++,this.updateStyle())},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(e,t){var n=this._.contents[e];return n&&n[t]},getValueOf:function(e,t){return this.getContentElement(e,t).getValue()},setValueOf:function(e,t,n){return this.getContentElement(e,t).setValue(n)},getButton:function(e){return this._.buttons[e]},click:function(e){return this._.buttons[e].click()},disableButton:function(e){return this._.buttons[e].disable()},enableButton:function(e){return this._.buttons[e].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(e,t){if(void 0===t)t=this._.focusList.length,this._.focusList.push(new a(this,e,t));else{this._.focusList.splice(t,0,new a(this,e,t));for(var n=t+1;n<this._.focusList.length;n++)this._.focusList[n].focusIndex++}},setState:function(e){if(this.state!=e){if(this.state=e,e==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var t=this.getParentEditor().lang.dir,n={attributes:{"class":"cke_dialog_spinner"},styles:{float:"rtl"==t?"right":"left"}};n.styles["margin-"+("rtl"==t?"left":"right")]="8px",this.parts.spinner=CKEDITOR.document.createElement("div",n),this.parts.spinner.setHtml("⌛"),this.parts.spinner.appendTo(this.parts.title,1)}this.parts.spinner.show(),this.getButton("ok").disable()}else e==CKEDITOR.DIALOG_STATE_IDLE&&(this.parts.spinner&&this.parts.spinner.hide(),this.getButton("ok").enable());this.fire("state",e)}}},CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(e,t){this._.dialogDefinitions[e]&&"function"!=typeof t||(this._.dialogDefinitions[e]=t)},exists:function(e){return!!this._.dialogDefinitions[e]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(e,t,n){return!((e=e.config.removeDialogTabs)&&e.match(new RegExp("(?:^|;)"+t+":"+n+"(?:$|;)","i")))},okButton:function(){var e=function(e,t){return t=t||{},CKEDITOR.tools.extend({id:"ok",type:"button",label:e.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(e){!1!==(e=e.data.dialog).fire("ok",{hide:!0}).hide&&e.hide()}},t,!0)};return e.type="button",e.override=function(t){return CKEDITOR.tools.extend(function(n){return e(n,t)},{type:"button"},!0)},e}(),cancelButton:function(){var e=function(e,t){return t=t||{},CKEDITOR.tools.extend({id:"cancel",type:"button",label:e.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(e){!1!==(e=e.data.dialog).fire("cancel",{hide:!0}).hide&&e.hide()}},t,!0)};return e.type="button",e.override=function(t){return CKEDITOR.tools.extend(function(n){return e(n,t)},{type:"button"},!0)},e}(),addUIElement:function(e,t){this._.uiElementBuilders[e]=t}}),CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null},CKEDITOR.event.implementOn(CKEDITOR.dialog),CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var v={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},y=function(e,t,n){for(var i,o=0;i=e[o];o++)if(i.id==t||n&&i[n]&&(i=y(i[n],t,n)))return i;return null},_=function(e,t,n,i,o){if(n){for(var r,a=0;r=e[a];a++){if(r.id==n)return e.splice(a,0,t),t;if(i&&r[i]&&(r=_(r[i],t,n,i,!0)))return r}if(o)return null}return e.push(t),t},b=function(e,t,n){for(var i,o=0;i=e[o];o++){if(i.id==t)return e.splice(o,1);if(n&&i[n]&&(i=b(i[n],t,n)))return i}return null},T=function(e,t){this.dialog=e;for(var n,i=t.contents,o=0;n=i[o];o++)i[o]=n&&new l(e,n);CKEDITOR.tools.extend(this,t)};T.prototype={getContents:function(e){return y(this.contents,e)},getButton:function(e){return y(this.buttons,e)},addContents:function(e,t){return _(this.contents,e,t)},addButton:function(e,t){return _(this.buttons,e,t)},removeContents:function(e){b(this.contents,e)},removeButton:function(e){b(this.buttons,e)}},l.prototype={get:function(e){return y(this.elements,e,"children")},add:function(e,t){return _(this.elements,e,t,"children")},remove:function(e){b(this.elements,e,"children")}};
163var C,E,w={},I={},D=function(e){var t=e.data.$.ctrlKey||e.data.$.metaKey,n=e.data.$.altKey,i=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode);(t=I[(t?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+o])&&t.length&&((t=t[t.length-1]).keydown&&t.keydown.call(t.uiElement,t.dialog,t.key),e.data.preventDefault())},x=function(e){var t=e.data.$.ctrlKey||e.data.$.metaKey,n=e.data.$.altKey,i=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode);(t=I[(t?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+o])&&t.length&&((t=t[t.length-1]).keyup&&(t.keyup.call(t.uiElement,t.dialog,t.key),e.data.preventDefault()))},O=function(e,t,n,i,o){(I[n]||(I[n]=[])).push({uiElement:e,dialog:t,key:n,keyup:o||e.accessKeyUp,keydown:i||e.accessKeyDown})},k=function(e){for(var t in I){for(var n=I[t],i=n.length-1;0<=i;i--)n[i].dialog!=e&&n[i].uiElement!=e||n.splice(i,1);0===n.length&&delete I[t]}},S=function(e,t){e._.accessKeyMap[t]&&e.selectPage(e._.accessKeyMap[t])},R=function(){};CKEDITOR.ui.dialog={uiElement:function(e,t,n,i,o,r,a){if(!(4>arguments.length)){var s=(i.call?i(t):i)||"div",l=["<",s," "],d=(o&&o.call?o(t):o)||{},c=(r&&r.call?r(t):r)||{},u=(a&&a.call?a.call(this,e,t):a)||"",h=this.domId=c.id||CKEDITOR.tools.getNextId()+"_uiElement";t.requiredContent&&!e.getParentEditor().filter.check(t.requiredContent)&&(d.display="none",this.notAllowed=!0),c.id=h;var f={};t.type&&(f["cke_dialog_ui_"+t.type]=1),t.className&&(f[t.className]=1),t.disabled&&(f.cke_disabled=1);var p=c["class"]&&c["class"].split?c["class"].split(" "):[];for(h=0;h<p.length;h++)p[h]&&(f[p[h]]=1);for(h in p=[],f)p.push(h);for(h in c["class"]=p.join(" "),t.title&&(c.title=t.title),f=(t.style||"").split(";"),t.align&&(p=t.align,d["margin-left"]="left"==p?0:"auto",d["margin-right"]="right"==p?0:"auto"),d)f.push(h+":"+d[h]);for(t.hidden&&f.push("display:none"),h=f.length-1;0<=h;h--)""===f[h]&&f.splice(h,1);for(h in 0<f.length&&(c.style=(c.style?c.style+"; ":"")+f.join("; ")),c)l.push(h+'="'+CKEDITOR.tools.htmlEncode(c[h])+'" ');l.push(">",u,"</",s,">"),n.push(l.join("")),(this._||(this._={})).dialog=e,"boolean"==typeof t.isChanged&&(this.isChanged=function(){return t.isChanged}),"function"==typeof t.isChanged&&(this.isChanged=t.isChanged),"function"==typeof t.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(e){return function(n){e.call(this,t.setValue.call(this,n))}})),"function"==typeof t.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,function(e){return function(){return t.getValue.call(this,e.call(this))}})),CKEDITOR.event.implementOn(this),this.registerEvents(t),this.accessKeyUp&&this.accessKeyDown&&t.accessKey&&O(this,e,"CTRL+"+t.accessKey);var m=this;e.on("load",function(){var t=m.getInputElement();if(t){var n=m.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?"cke_dialog_ui_focused":"";t.on("focus",function(){e._.tabBarMode=!1,e._.hasFocus=!0,m.fire("focus"),n&&this.addClass(n)}),t.on("blur",function(){m.fire("blur"),n&&this.removeClass(n)})}}),CKEDITOR.tools.extend(this,t),this.keyboardFocusable&&(this.tabIndex=t.tabIndex||0,this.focusIndex=e._.focusList.push(this)-1,this.on("focus",function(){e._.currentFocusIndex=m.focusIndex}))}},hbox:function(e,t,n,i,o){if(!(4>arguments.length)){this._||(this._={});var r,a=this._.children=t,s=o&&o.widths||null,l=o&&o.height||null,d={role:"presentation"};o&&o.align&&(d.align=o.align),CKEDITOR.ui.dialog.uiElement.call(this,e,o||{type:"hbox"},i,"table",{},d,function(){var e=['<tbody><tr class="cke_dialog_ui_hbox">'];for(r=0;r<n.length;r++){var t="cke_dialog_ui_hbox_child",i=[];0===r&&(t="cke_dialog_ui_hbox_first"),r==n.length-1&&(t="cke_dialog_ui_hbox_last"),e.push('<td class="',t,'" role="presentation" '),s?s[r]&&i.push("width:"+m(s[r])):i.push("width:"+Math.floor(100/n.length)+"%"),l&&i.push("height:"+m(l)),o&&void 0!==o.padding&&i.push("padding:"+m(o.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&a[r].align&&i.push("text-align:"+a[r].align),0<i.length&&e.push('style="'+i.join("; ")+'" '),e.push(">",n[r],"</td>")}return e.push("</tr></tbody>"),e.join("")})}},vbox:function(e,t,n,i,o){if(!(3>arguments.length)){this._||(this._={});var r=this._.children=t,a=o&&o.width||null,s=o&&o.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,e,o||{type:"vbox"},i,"div",null,{role:"presentation"},function(){var t=['<table role="presentation" cellspacing="0" border="0" '];t.push('style="'),o&&o.expand&&t.push("height:100%;"),t.push("width:"+m(a||"100%"),";"),CKEDITOR.env.webkit&&t.push("float:none;
163"),t.push('"'),t.push('align="',CKEDITOR.tools.htmlEncode(o&&o.align||("ltr"==e.getParentEditor().lang.dir?"left":"right")),'" '),t.push("><tbody>");for(var i=0;i<n.length;i++){var l=[];t.push('<tr><td role="presentation" '),a&&l.push("width:"+m(a||"100%")),s?l.push("height:"+m(s[i])):o&&o.expand&&l.push("height:"+Math.floor(100/n.length)+"%"),o&&void 0!==o.padding&&l.push("padding:"+m(o.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&r[i].align&&l.push("text-align:"+r[i].align),0<l.length&&t.push('style="',l.join("; "),'" '),t.push(' class="cke_dialog_ui_vbox_child">',n[i],"</td></tr>")}return t.push("</tbody></table>"),t.join("")})}}},CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(e,t){return this.getInputElement().setValue(e),!t&&this.fire("change",{value:e}),this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var e=this.getInputElement();(e=e.getParent())&&-1==e.$.className.search("cke_dialog_page_contents"););return e?(e=e.getAttribute("name"),this._.dialog._.currentTabId!=e&&this._.dialog.selectPage(e),this):this},focus:function(){return this.selectParentTab().getInputElement().focus(),this},registerEvents:function(e){var t,n,i=/^on([A-Z]\w+)/,o=function(e,t,n,i){t.on("load",function(){e.getInputElement().on(n,i,e)})};for(n in e)(t=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,e[n]):o(this,this._.dialog,t[1].toLowerCase(),e[n]));return this},eventProcessors:{onLoad:function(e,t){e.on("load",t,this)},onShow:function(e,t){e.on("show",t,this)},onHide:function(e,t){e.on("hide",t,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var e=this.getElement();this.getInputElement().setAttribute("disabled","true"),e.addClass("cke_disabled")},enable:function(){var e=this.getElement();this.getInputElement().removeAttribute("disabled"),e.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!(!this.isEnabled()||!this.isVisible())}},CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(e){return 1>arguments.length?this._.children.concat():(e.splice||(e=[e]),2>e.length?this._.children[e[0]]:this._.children[e[0]]&&this._.children[e[0]].getChild?this._.children[e[0]].getChild(e.slice(1,e.length)):null)}},!0),CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox,function(){var e={build:function(e,t,n){for(var i,o=t.children,r=[],a=[],s=0;s<o.length&&(i=o[s]);s++){var l=[];r.push(l),a.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(e,i,l))}return new CKEDITOR.ui.dialog[t.type](e,a,r,n,t)}};CKEDITOR.dialog.addUIElement("hbox",e),CKEDITOR.dialog.addUIElement("vbox",e)}(),CKEDITOR.dialogCommand=function(e,t){this.dialogName=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.dialogCommand.prototype={exec:function(e){e.openDialog(this.dialogName)},canUndo:!1,editorFocus:1},function(){var e=/^([a]|[^a])+$/,t=/^\d*$/,n=/^\d*(?:\.\d+)?$/,i=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,o=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,r=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=1,CKEDITOR.VALIDATE_AND=2,CKEDITOR.dialog.validate={functions:function(){var e=arguments;return function(){var t,n,i=this&&this.getValue?this.getValue():e[0],o=CKEDITOR.VALIDATE_AND,r=[];for(n=0;n<e.length&&"function"==typeof e[n];n++)r.push(e[n]);n<e.length&&"string"==typeof e[n]&&(t=e[n],n++),n<e.length&&"number"==typeof e[n]&&(o=e[n]);var a=o==CKEDITOR.VALIDATE_AND;for(n=0;n<r.length;n++)a=o==CKEDITOR.VALIDATE_AND?a&&r[n](i):a||r[n](i);return!!a||t}},regex:function(e,t){return function(n){return n=this&&this.getValue?this.getValue():n,!!e.test(n)||t}},notEmpty:function(t){return this.regex(e,t)},integer:function(e){return this.regex(t,e)},number:function(e){return this.regex(n,e)},cssLength:function(e){return this.functions(function(e){return o.test(CKEDITOR.tools.trim(e))},e)},htmlLength:function(e){return this.functions(function(e){return i.test(CKEDITOR.tools.trim(e))},e)},inlineStyle:function(e){return this.functions(function(e){return r.test(CKEDITOR.tools.trim(e))},e)},equals:function(e,t){return this.functions(function(t){return t==e},t)},notEqual:function(e,t){return this.functions(function(t){return t!=e},t)}},CKEDITOR.on("instanceDestroyed",function(e){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var t;t=CKEDITOR.dialog._.currentTop;)t.hide();for(var n in w)w[n].remove();w={}}for(var i in e=e.editor._.storedDialogs)e[i].destroy()})}(),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(e,t){var n=null,i=CKEDITOR.dialog._.dialogDefinitions[e];if(null===CKEDITOR.dialog._.currentTop&&h(this),"function"==typeof i)n=(n=this._.storedDialogs||(this._.storedDialogs={}))[e]||(n[e]=new CKEDITOR.dialog(this,e)),t&&t.call(n,n),n.show();else{if("failed"==i)throw f(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+e+'" failed when loading definition.');"string"==typeof i&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(i),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[e]&&(CKEDITOR.dialog._.dialogDefinitions[e]="failed"),this.openDialog(e,t)},this,0,1)}return CKEDITOR.skin.loadPart("dialog"),n}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(e){e.on("doubleclick",function(t){t.data.dialog&&e.openDialog(t.data.dialog)},null,null,999)}}),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(e){var t=e.addCommand("about",new CKEDITOR.dialogCommand("about"));t.modes={wysiwyg:1,source:1},t.canUndo=!1,t.readOnly=1,e.ui.addButton&&e.ui.addButton("About",{label:e.lang.about.title,command:"about",toolbar:"about"}),CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-gb":1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(e){var t=this;e.addCommand("a11yHelp",{exec:function(){var n=e.langCode;n=t.availableLangs[n]?n:t.availableLangs[n.replace(/-.*/,"")]?n.replace(/-.*/,""):"en",CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(t.path+"dialogs/lang/"+n+".js"),function(){e.lang.a11yhelp=t.langEntries[n],e.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1}),e.setKeystroke(CKEDITOR.ALT+48,"a11yHelp"),CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js"),e.on("ariaEditorHelpLabel",function(t){t.data.label=e.lang.common.editorHelp})}}),function(){function e(e){var t=this.att;void 0!==(e=e&&e.hasAttribute(t)&&e.getAttribute(t)||"")&&this.setValue(e)}function t(){for(var e,t=0;t<arguments.length;t++)if(arguments[t]instanceof CKEDITOR.dom.element){e=arguments[t];break}if(e){t=this.att;var n=this.getValue();n?e.setAttribute(t,n):e.removeAttribute(t,n)}}var n={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(e){e||(e=n);var t=[];
163e.id&&t.push("id"),e.dir&&t.push("dir");var i="";return t.length&&(i+="["+t.join(",")+"]"),e.classes&&(i+="(*)"),e.styles&&(i+="{*}"),i},createAdvancedTab:function(i,o,r){o||(o=n);var a=i.lang.common,s={id:"advanced",label:a.advancedTab,title:a.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},l=[];return(o.id||o.dir)&&(o.id&&l.push({id:"advId",att:"id",type:"text",requiredContent:r?r+"[id]":null,label:a.id,setup:e,commit:t}),o.dir&&l.push({id:"advLangDir",att:"dir",type:"select",requiredContent:r?r+"[dir]":null,label:a.langDir,"default":"",style:"width:100%",items:[[a.notSet,""],[a.langDirLTR,"ltr"],[a.langDirRTL,"rtl"]],setup:e,commit:t}),s.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(l)})),(o.styles||o.classes)&&(l=[],o.styles&&l.push({id:"advStyles",att:"style",type:"text",requiredContent:r?r+"{cke-xyz}":null,label:a.styles,"default":"",validate:CKEDITOR.dialog.validate.inlineStyle(a.invalidInlineStyle),onChange:function(){},getStyle:function(e,t){var n=this.getValue().match(new RegExp("(?:^|;)\\s*"+e+"\\s*:\\s*([^;]*)","i"));return n?n[1]:t},updateStyle:function(e,t){var n=this.getValue(),o=i.document.createElement("span");o.setAttribute("style",n),o.setStyle(e,t),n=CKEDITOR.tools.normalizeCssText(o.getAttribute("style")),this.setValue(n,1)},setup:e,commit:t}),o.classes&&l.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:r?r+"(cke-xyz)":null,label:a.cssClasses,"default":"",setup:e,commit:t}]}),s.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(l)})),s}})}(),CKEDITOR.plugins.add("basicstyles",{init:function(e){var t=0,n=function(n,o,r,a){if(a){a=new CKEDITOR.style(a);var s=i[r];s.unshift(a),e.attachStyleStateChange(a,function(t){!e.readOnly&&e.getCommand(r).setState(t)}),e.addCommand(r,new CKEDITOR.styleCommand(a,{contentForms:s})),e.ui.addButton&&e.ui.addButton(n,{label:o,command:r,toolbar:"basicstyles,"+(t+=10)})}},i={bold:["strong","b",["span",function(e){return"bold"==(e=e.styles["font-weight"])||700<=+e}]],italic:["em","i",["span",function(e){return"italic"==e.styles["font-style"]}]],underline:["u",["span",function(e){return"underline"==e.styles["text-decoration"]}]],strike:["s","strike",["span",function(e){return"line-through"==e.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},o=e.config,r=e.lang.basicstyles;n("Bold",r.bold,"bold",o.coreStyles_bold),n("Italic",r.italic,"italic",o.coreStyles_italic),n("Underline",r.underline,"underline",o.coreStyles_underline),n("Strike",r.strike,"strike",o.coreStyles_strike),n("Subscript",r.subscript,"subscript",o.coreStyles_subscript),n("Superscript",r.superscript,"superscript",o.coreStyles_superscript),e.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript={element:"sup"},function(){function e(e,t,n,i){if(!e.isReadOnly()&&!e.equals(n.editable())){CKEDITOR.dom.element.setMarker(i,e,"bidi_processed",1),i=e;for(var o=n.editable();(i=i.getParent())&&!i.equals(o);)if(i.getCustomData("bidi_processed"))return e.removeStyle("direction"),void e.removeAttribute("dir");((i="useComputedState"in n.config?n.config.useComputedState:1)?e.getComputedStyle("direction"):e.getStyle("direction")||e.hasAttribute("dir"))!=t&&(e.removeStyle("direction"),i?(e.removeAttribute("dir"),t!=e.getComputedStyle("direction")&&e.setAttribute("dir",t)):e.setAttribute("dir",t),n.forceNextSelectionCheck())}}function t(e,t,n){var i=e.getCommonAncestor(!1,!0);if((e=e.clone()).enlarge(n==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS),e.checkBoundaryOfElement(i,CKEDITOR.START)&&e.checkBoundaryOfElement(i,CKEDITOR.END)){for(var o;i&&i.type==CKEDITOR.NODE_ELEMENT&&(o=i.getParent())&&1==o.getChildCount()&&!(i.getName()in t);)i=o;return i.type==CKEDITOR.NODE_ELEMENT&&i.getName()in t&&i}}function n(n){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:!0,attributes:"dir"}},requiredContent:"p[dir]",refresh:function(e,t){var n,i;if(!(i=void 0===(i=e.config.useComputedState)||i)){n=t.lastElement;for(var o=e.editable();n&&!(n.getName()in a||n.equals(o));){var r=n.getParent();if(!r)break;n=r}}(n=n||t.block||t.blockLimit).equals(e.editable())&&(o=e.getSelection().getRanges()[0].getEnclosedNode())&&o.type==CKEDITOR.NODE_ELEMENT&&(n=o),n&&(i=i?n.getComputedStyle("direction"):n.get
163Style("direction")||n.getAttribute("dir"),e.getCommand("bidirtl").setState("rtl"==i?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),e.getCommand("bidiltr").setState("ltr"==i?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)),(i=(t.block||t.blockLimit||e.editable()).getDirection(1))!=(e._.selDir||e.lang.dir)&&(e._.selDir=i,e.fire("contentDirChanged",i))},exec:function(i){var a=i.getSelection(),s=i.config.enterMode;if((u=a.getRanges())&&u.length){for(var l,d={},c=a.createBookmarks(),u=u.createIterator(),h=0;l=u.getNextRange(1);){var f=l.getEnclosedNode();f&&(!f||f.type==CKEDITOR.NODE_ELEMENT&&f.getName()in r)||(f=t(l,o,s)), 164f&&e(f,n,i,d);var p=new CKEDITOR.dom.walker(l),m=c[h].startNode,g=c[h++].endNode;for(p.evaluator=function(e){var t,n=s==CKEDITOR.ENTER_P?"p":"div";return(t=!!e&&e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in o)&&((n=e.is(n))&&(n=!!(n=e.getParent())&&n.type==CKEDITOR.NODE_ELEMENT),t=!(n&&e.getParent().is("blockquote"))),!!(t&&e.getPosition(m)&CKEDITOR.POSITION_FOLLOWING&&(e.getPosition(g)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING)};f=p.next();)e(f,n,i,d);for((l=l.createIterator()).enlargeBr=s!=CKEDITOR.ENTER_BR;f=l.getNextParagraph(s==CKEDITOR.ENTER_P?"p":"div");)e(f,n,i,d)}CKEDITOR.dom.element.clearAllMarkers(d),i.forceNextSelectionCheck(),a.selectBookmarks(c),i.focus()}}}}function i(e){var t=e==s.setAttribute,n=e==s.removeAttribute,i=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;return function(o,r){if(!this.isReadOnly()){var a;if(a=o==(t||n?"dir":"direction")||"style"==o&&(n||i.test(r))){e:{for(var s=(a=this).getDocument().getBody().getParent();a;){if(a.equals(s)){a=!1;break e}a=a.getParent()}a=!0}a=!a}if(a&&(a=this.getDirection(1),s=e.apply(this,arguments),a!=this.getDirection(1)))return this.getDocument().fire("dirChanged",this),s}return e.apply(this,arguments)}}var o={table:1,ul:1,ol:1,blockquote:1,div:1},r={},a={};CKEDITOR.tools.extend(r,o,{tr:1,p:1,div:1,li:1}),CKEDITOR.tools.extend(a,r,{td:1}),CKEDITOR.plugins.add("bidi",{init:function(e){function t(t,n,i,o,r){e.addCommand(i,new CKEDITOR.command(e,o)),e.ui.addButton&&e.ui.addButton(t,{label:n,command:i,toolbar:"bidi,"+r})}if(!e.blockless){var i=e.lang.bidi;t("BidiLtr",i.ltr,"bidiltr",n("ltr"),10),t("BidiRtl",i.rtl,"bidirtl",n("rtl"),20),e.on("contentDom",function(){e.document.on("dirChanged",function(t){e.fire("dirChanged",{node:t.data,dir:t.data.getDirection(1)})})}),e.on("contentDirChanged",function(t){t=(e.lang.dir!=t.data?"add":"remove")+"Class";var n=e.ui.space(e.config.toolbarLocation);n&&n[t]("cke_mixed_dir_content")})}}});for(var s=CKEDITOR.dom.element.prototype,l=["setStyle","removeStyle","setAttribute","removeAttribute"],d=0;d<l.length;d++)s[l[d]]=CKEDITOR.tools.override(s[l[d]],i)}(),u={exec:function(e){var t=e.getCommand("blockquote").state,n=e.getSelection(),i=n&&n.getRanges()[0];if(i){var o=n.createBookmarks();if(CKEDITOR.env.ie){var r,a=o[0].startNode,s=o[0].endNode;if(a&&"blockquote"==a.getParent().getName())for(r=a;r=r.getNext();)if(r.type==CKEDITOR.NODE_ELEMENT&&r.isBlockBoundary()){a.move(r,!0);break}if(s&&"blockquote"==s.getParent().getName())for(r=s;r=r.getPrevious();)if(r.type==CKEDITOR.NODE_ELEMENT&&r.isBlockBoundary()){s.move(r);break}}if((l=i.createIterator()).enlargeBr=e.config.enterMode!=CKEDITOR.ENTER_BR,t==CKEDITOR.TRISTATE_OFF){for(a=[];t=l.getNextParagraph();)a.push(t);for(1>a.length&&(t=e.document.createElement(e.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),s=o.shift(),i.insertNode(t),t.append(new CKEDITOR.dom.text("\ufeff",e.document)),i.moveToBookmark(s),i.selectNodeContents(t),i.collapse(!0),s=i.createBookmark(),a.push(t),o.unshift(s)),r=a[0].getParent(),i=[],s=0;s<a.length;s++)t=a[s],r=r.getCommonAncestor(t.getParent());for(t={table:1,tbody:1,tr:1,ol:1,ul:1};t[r.getName()];)r=r.getParent();for(s=null;0<a.length;){for(t=a.shift();!t.getParent().equals(r);)t=t.getParent();t.equals(s)||i.push(t),s=t}for(;0<i.length;)if("blockquote"==(t=i.shift()).getName()){for(s=new CKEDITOR.dom.documentFragment(e.document);t.getFirst();)s.append(t.getFirst().remove()),a.push(s.getLast());s.replace(t)}else a.push(t);for((i=e.document.createElement("blockquote")).insertBefore(a[0]);0<a.length;)t=a.shift(),i.append(t)}else if(t==CKEDITOR.TRISTATE_ON){for(s=[],r={};t=l.getNextParagraph();){for(a=i=null;t.getParent();){if("blockquote"==t.getParent().getName()){i=t.getParent(),a=t;break}t=t.getParent()}i&&a&&!a.getCustomData("blockquote_moveout")&&(s.push(a),CKEDITOR.dom.element.setMarker(r,a,"blockquote_moveout",!0))}for(CKEDITOR.dom.element.clearAllMarkers(r),t=[],a=[],r={};0<s.length;)i=(l=s.shift()).getParent(),l.getPrevious()?l.getNext()?(l.breakParent(l.getParent()),a.push(l.getNext())):l.remove().insertAfter(i):l.remove().insertBefore(i),i.getCustomData("blockquote_processed")||(a.push(i),CKEDITOR.dom.element.setMarker(r,i,"blockquote_processed",!0)),t.push(l);for(CKEDITOR.dom.element.clearAllMarkers(r),s=a.length-1;0<=s;s--){e:{for(var l=0,d=(r=i=a[s]).getChildCount(),c=void 0;l<d&&(c=r.getChild(l));
164l++)if(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()){r=!1;break e}r=!0}r&&i.remove()}if(e.config.enterMode==CKEDITOR.ENTER_BR)for(i=!0;t.length;)if("div"==(l=t.shift()).getName()){for(s=new CKEDITOR.dom.documentFragment(e.document),!i||!l.getPrevious()||l.getPrevious().type==CKEDITOR.NODE_ELEMENT&&l.getPrevious().isBlockBoundary()||s.append(e.document.createElement("br")),i=l.getNext()&&!(l.getNext().type==CKEDITOR.NODE_ELEMENT&&l.getNext().isBlockBoundary());l.getFirst();)l.getFirst().remove().appendTo(s);i&&s.append(e.document.createElement("br")),s.replace(l),i=!1}}n.selectBookmarks(o),e.focus()}},refresh:function(e,t){this.setState(e.elementPath(t.block||t.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"},CKEDITOR.plugins.add("blockquote",{init:function(e){e.blockless||(e.addCommand("blockquote",u),e.ui.addButton&&e.ui.addButton("Blockquote",{label:e.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}}),function(){var e='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-describedby="{id}_description" aria-haspopup="{hasArrow}" aria-disabled="{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');e=(e=e+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"')+'> </span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span><span id="{id}_description" class="cke_button_label" aria-hidden="false">{ariaShortcut}</span>{arrowHtml}</a>';var t=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"▼":"")+"</span>"),n=CKEDITOR.addTemplate("button",e);CKEDITOR.plugins.add("button",{beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}}),CKEDITOR.UI_BUTTON="button",CKEDITOR.ui.button=function(e){CKEDITOR.tools.extend(this,e,{title:e.label,click:e.click||function(t){t.execCommand(e.command)}}),this._={}},CKEDITOR.ui.button.handler={create:function(e){return new CKEDITOR.ui.button(e)}},CKEDITOR.ui.button.prototype={render:function(e,i){function o(){var t=e.mode;t&&(t=this.modes[t]?void 0!==g[t]?g[t]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,t=e.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:t,this.setState(t),this.refresh&&this.refresh())}var r,a,s,l=CKEDITOR.env,d=this._.id=CKEDITOR.tools.getNextId(),c="",u=this.command;this._.editor=e;var h={id:d,button:this,editor:e,focus:function(){CKEDITOR.document.getById(d).focus()},execute:function(){this.button.click(e)},attach:function(e){this.button.attach(e)}},f=CKEDITOR.tools.addFunction(function(e){if(h.onkey)return e=new CKEDITOR.dom.event(e),!1!==h.onkey(h,e.getKeystroke())}),p=CKEDITOR.tools.addFunction(function(e){var t;return h.onfocus&&(t=!1!==h.onfocus(h,new CKEDITOR.dom.event(e))),t}),m=0;if(h.clickFn=r=CKEDITOR.tools.addFunction(function(){m&&(e.unlockSelection(1),m=0),h.execute(),l.iOS&&e.focus()}),this.modes){var g={};e.on("beforeModeUnload",function(){e.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(g[e.mode]=this._.state)},this),e.on("activeFilterChange",o,this),e.on("mode",o,this),!this.readOnly&&e.on("readOnly",o,this)}else u&&(u=e.getCommand(u))&&(u.on("state",function(){this.setState(u.state)},this),c+=u.state==CKEDITOR.TRISTATE_ON?"on":u.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");this.directional&&e.on("contentDirChanged",function(t){var n=CKEDITOR.document.getById(this._.id),i=n.getFirst();(t=t.data)!=e.lang.dir?n.addClass("cke_"+t):n.removeClass("cke_ltr").removeClass("cke_rtl"),i.setAttribute("style",CKEDITOR.skin.getIconStyle(v,"rtl"==t,this.icon,this.iconOffset))},this),u?(a=e.getCommandKeystroke(u))&&(s=CKEDITOR.tools.keystrokeToString(e.lang.common.keyboard,a)):c+="off";var v=a=this.name||this.command;return this.icon&&!/\./.test(this.icon)&&(v=this.icon,this.icon=null),c={id:d,name:a,iconName:v,label:this.label,cls:this.className||"",state:c,ariaDisabled:"disabled"==c?"true":"false",title:this.title+(s?" ("+s.display+")":""),ariaShortcut:s?e.lang.common.keyboardShortcut+" "+s.aria:"",titleJs:l.gecko&&!l.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:f,focusFn:p,clickFn:r,style:CKEDITOR.skin.getIconStyle(v,"rtl"==e.lang.dir,this.icon,this.iconOffset),arrowHtml:this.hasArrow?t.output():""},n.output(c,i),this.onRender&&this.onRender(),h},setState:function(e){if(this._.state==e)return!1;this._.state=e;var t=CKEDITOR.document.getById(this._.id);return!!t&&(t.setState(e,"cke_button"),e==CKEDITOR.TRISTATE_DISABLED?t.setAttribute("aria-disabled",!0):t.removeAttribute("aria-disabled"),this.hasArrow?(e=e==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label,CKEDITOR.document.getById(this._.id+"_label").setText(e)):e==CKEDITOR.TRISTATE_ON?t.setAttribute("aria-pressed",!0):t.removeAttribute("aria-pressed"),!0)},getState:function(){return this._.state},toFeature:function(e){if(this._.feature)return this._.feature;var t=this;return this.allowedContent||this.requiredContent||!this.command||(t=e.getCommand(this.command)||t),this._.feature=t}},CKEDITOR.ui.prototype.addButton=function(e,t){this.add(e,CKEDITOR.UI_BUTTON,t)}}(),function(){function e(e){function n(){for(var n=i(),r=CKEDITOR.tools.clone(e.config.toolbarGroups)||t(e),a=0;a<r.length;a++){var s=r[a];if("/"!=s){"string"==typeof s&&(s=r[a]={name:s});var l,d=s.groups;if(d)for(var c=0;c<d.length;c++)(l=n[l=d[c]])&&o(s,l);(l=n[s.name])&&o(s,l)}}return r}function i(){var t,n,i,o={};for(t in e.ui.items)n=(i=(i=(n=e.ui.items[t]).toolbar||"others").split(","))[0],i=parseInt(i[1]||-1,10),o[n]||(o[n]=[]),o[n].push({name:t,order:i}
164);for(n in o)o[n]=o[n].sort(function(e,t){return e.order==t.order?0:0>t.order?-1:0>e.order?1:e.order<t.order?-1:1});return o}function o(t,n){if(n.length){t.items?t.items.push(e.ui.create("-")):t.items=[];for(var i;i=n.shift();)i="string"==typeof i?i:i.name,a&&-1!=CKEDITOR.tools.indexOf(a,i)||(i=e.ui.create(i))&&e.addFeature(i)&&t.items.push(i)}}function r(e){var t,n,i,r=[];for(t=0;t<e.length;++t)i={},"/"==(n=e[t])?r.push(n):CKEDITOR.tools.isArray(n)?(o(i,CKEDITOR.tools.clone(n)),r.push(i)):n.items&&(o(i,CKEDITOR.tools.clone(n.items)),i.name=n.name,r.push(i));return r}var a=(a=e.config.removeButtons)&&a.split(","),s=e.config.toolbar;return"string"==typeof s&&(s=e.config["toolbar_"+s]),e.toolbar=s?r(s):n()}function t(e){return e._.toolbarGroups||(e._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var n=function(){this.toolbars=[],this.focusCommandExecuted=!1};n.prototype.focus=function(){for(var e,t=0;e=this.toolbars[t++];)for(var n,i=0;n=e.items[i++];)if(n.focus)return void n.focus()};var i={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(e){e.toolbox&&(e.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){e.toolbox.focus()},100):e.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(t){var o,r=function(e,n){var i,a=(s="rtl"==t.lang.dir)?37:39,s=s?39:37,l=void 0===(l=t.config.toolbarGroupCycling)||l;switch(n){case 9:case CKEDITOR.SHIFT+9:for(;!i||!i.items.length;)if((i=9==n?(i?i.next:e.toolbar.next)||t.toolbox.toolbars[0]:(i?i.previous:e.toolbar.previous)||t.toolbox.toolbars[t.toolbox.toolbars.length-1]).items.length)for(e=i.items[o?i.items.length-1:0];e&&!e.focus;)(e=o?e.previous:e.next)||(i=0);return e&&e.focus(),!1;case a:i=e;do{!(i=i.next)&&l&&(i=e.toolbar.items[0])}while(i&&!i.focus);return i?i.focus():r(e,9),!1;case 40:return e.button&&e.button.hasArrow?e.execute():r(e,40==n?a:s),!1;case s:case 38:i=e;do{!(i=i.previous)&&l&&(i=e.toolbar.items[e.toolbar.items.length-1])}while(i&&!i.focus);
164return i?i.focus():(o=1,r(e,CKEDITOR.SHIFT+9),o=0),!1;case 27:return t.focus(),!1;case 13:case 32:return e.execute(),!1}return!0};t.on("uiSpace",function(i){if(i.data.space==t.config.toolbarLocation){i.removeListener(),t.toolbox=new n;var o,a,s=['<span id="',l=CKEDITOR.tools.getNextId(),'" class="cke_voice_label">',t.lang.toolbar.toolbars,"</span>",'<span id="'+t.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',l,'" onmousedown="return false;">'],l=!1!==t.config.toolbarStartupExpanded;t.config.toolbarCanCollapse&&t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&s.push('<span class="cke_toolbox_main"'+(l?">":' style="display:none">'));for(var d=t.toolbox.toolbars,c=e(t),u=c.length,h=0;h<u;h++){var f,p,m,g=0,v=c[h],y="/"!==v&&("/"===c[h+1]||h==u-1);if(v)if(o&&(s.push("</span>"),a=o=0),"/"===v)s.push('<span class="cke_toolbar_break"></span>');else{m=v.items||v;for(var _=0;_<m.length;_++){var b,T=m[_];if(T){var C=function(e){e=e.render(t,s),0<(E=g.items.push(e)-1)&&(e.previous=g.items[E-1],e.previous.next=e),e.toolbar=g,e.onkey=r,e.onfocus=function(){t.toolbox.focusCommandExecuted||t.focus()}};if(T.type==CKEDITOR.UI_SEPARATOR)a=o&&T;else{if(b=!1!==T.canGroup,!g){f=CKEDITOR.tools.getNextId(),g={id:f,items:[]},p=v.name&&(t.lang.toolbar.toolbarGroups[v.name]||v.name),s.push('<span id="',f,'" class="cke_toolbar'+(y?' cke_toolbar_last"':'"'),p?' aria-labelledby="'+f+'_label"':"",' role="toolbar">'),p&&s.push('<span id="',f,'_label" class="cke_voice_label">',p,"</span>"),s.push('<span class="cke_toolbar_start"></span>');var E=d.push(g)-1;0<E&&(g.previous=d[E-1],g.previous.next=g)}b?o||(s.push('<span class="cke_toolgroup" role="presentation">'),o=1):o&&(s.push("</span>"),o=0),a&&(C(a),a=0),C(T)}}}o&&(s.push("</span>"),a=o=0),g&&s.push('<span class="cke_toolbar_end"></span></span>')}}if(t.config.toolbarCanCollapse&&s.push("</span>"),t.config.toolbarCanCollapse&&t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var w=CKEDITOR.tools.addFunction(function(){t.execCommand("toolbarCollapse")});t.on("destroy",function(){CKEDITOR.tools.removeFunction(w)}),t.addCommand("toolbarCollapse",{readOnly:1,exec:function(e){var t=e.ui.space("toolbar_collapser"),n=t.getPrevious(),i=e.ui.space("contents"),o=n.getParent(),r=parseInt(i.$.style.height,10),a=o.$.offsetHeight,s=t.hasClass("cke_toolbox_collapser_min");s?(n.show(),t.removeClass("cke_toolbox_collapser_min"),t.setAttribute("title",e.lang.toolbar.toolbarCollapse)):(n.hide(),t.addClass("cke_toolbox_collapser_min"),t.setAttribute("title",e.lang.toolbar.toolbarExpand)),t.getFirst().setText(s?"\u25b2":"\u25c0"),i.setStyle("height",r-(o.$.offsetHeight-a)+"px"),e.fire("resize",{outerHeight:e.container.$.offsetHeight,contentsHeight:i.$.offsetHeight,outerWidth:e.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}}),t.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse"),s.push('<a title="'+(l?t.lang.toolbar.toolbarCollapse:t.lang.toolbar.toolbarExpand)+'" id="'+t.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser'),l||s.push(" cke_toolbox_collapser_min"),s.push('" onclick="CKEDITOR.tools.callFunction('+w+')">','<span class="cke_arrow">▲</span>',"</a>")}s.push("</span>"),i.data.html+=s.join("")}}),t.on("destroy",function(){if(this.toolbox){var e,t,n,i,o=0;for(e=this.toolbox.toolbars;o<e.length;o++)for(n=e[o].items,t=0;t<n.length;t++)(i=n[t]).clickFn&&CKEDITOR.tools.removeFunction(i.clickFn),i.keyDownFn&&CKEDITOR.tools.removeFunction(i.keyDownFn)}}),t.on("uiReady",function(){var e=t.ui.space("toolbox");e&&t.focusManager.add(e,1)}),t.addCommand("toolbarFocus",i),t.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus"),t.ui.add("-",CKEDITOR.UI_SEPARATOR,{}),t.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(e,t){return t.push('<span class="cke_toolbar_separator" role="separator"></span>'),{}}}}})}}),CKEDITOR.ui.prototype.addToolbarGroup=function(e,n,i){var o=t(this.editor),r=0===n,a={name:e};if(i){if(i=CKEDITOR.tools.search(o,function(e){return e.name==i}))return!i.groups&&(i.groups=[]),n&&0<=(n=CKEDITOR.tools.indexOf(i.groups,n))?void i.groups.splice(n+1,0,e):void(r?i.groups.splice(0,0,e):i.groups.push(e));n=null}n&&(n=CKEDITOR.tools.indexOf(o,function(e){return e.name==n})),r?o.splice(0,0,e):"number"==typeof n?o.splice(n+1,0,a):o.push(e)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",CKEDITOR.plugins.add("notification",{requires:"toolbar",init:function(e){function n(e){var t=new CKEDITOR.dom.element("div");t.setStyles({position:"fixed","margin-left":"-9999px"}),t.setAttributes({"aria-live":"assertive","aria-atomic":"true"}),t.setText(e),CKEDITOR.document.getBody().append(t),setTimeout(function(){t.remove()},100)}e._.notificationArea=new t(e),e.showNotification=function(t,n,i){var o,r;return"progress"==n?o=i:r=i,(t=new CKEDITOR.plugins.notification(e,{message:t,type:n,progress:o,duration:r})).show(),t},e.on("key",function(t){if(27==t.data.keyCode){var i=e._.notificationArea.notifications;i.length&&(n(e.lang.notification.closed),i[i.length-1].hide(),t.cancel())}})}}),e.prototype={show:function(){!1!==this.editor.fire("notificationShow",{notification:this})&&(this.area.add(this),this._hideAfterTimeout())},update:function(e){var t=!0;!1===this.editor.fire("notificationUpdate",{notification:this,options:e})&&(t=!1);var n=this.element,i=n.findOne(".cke_notification_message"),o=n.findOne(".cke_notification_progress"),r=e.type;n.removeAttribute("role"),e.progress&&"progress"!=this.type&&(r="progress"),r&&(n.removeClass(this._getClass()),n.removeAttribute("aria-label"),this.type=r,n.addClass(this._getClass()),n.setAttribute("aria-label",this.type),"progress"!=this.type||o?"progress"!=this.type&&o&&o.remove():(o=this._createProgressElement()).insertBefore(i)),void 0!==e.message&&(this.message=e.message,i.setHtml(this.message)),void 0!==e.progress&&(this.progress=e.progress,o&&o.setStyle("width",this._getPercentageProgress())),t&&e.important&&(n.setAttribute("role","alert"),this.isVisible()||this.area.add(this)),this.duration=e.duration,this._hideAfterTimeout()},hide:function(){!1!==this.editor.fire("notificationHide",{notification:this})&&this.area.remove(this)},isVisible:function(){return 0<=CKEDITOR.tools.indexOf(this.area.notifications,this)},_createElement:function(){var e,t,n=this,i=this.editor.lang.common.close;return(e=new CKEDITOR.dom.element("div")).addClass("cke_notification"),e.addClass(this._getClass()),e.setAttributes({id:this.id,role:"alert","aria-label":this.t
164ype}),"progress"==this.type&&e.append(this._createProgressElement()),(t=new CKEDITOR.dom.element("p")).addClass("cke_notification_message"),t.setHtml(this.message),e.append(t),t=CKEDITOR.dom.element.createFromHtml('<a class="cke_notification_close" href="javascript:void(0)" title="'+i+'" role="button" tabindex="-1"><span class="cke_label">X</span></a>'),e.append(t),t.on("click",function(){n.editor.focus(),n.hide()}),e},_getClass:function(){return"progress"==this.type?"cke_notification_info":"cke_notification_"+this.type},_createProgressElement:function(){var e=new CKEDITOR.dom.element("span");return e.addClass("cke_notification_progress"),e.setStyle("width",this._getPercentageProgress()),e},_getPercentageProgress:function(){return Math.round(100*(this.progress||0))+"%"},_hideAfterTimeout:function(){var e,t=this;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),"number"==typeof this.duration?e=this.duration:"info"!=this.type&&"success"!=this.type||(e="number"==typeof this.editor.config.notification_duration?this.editor.config.notification_duration:5e3),e&&(t._hideTimeoutId=setTimeout(function(){t.hide()},e))}},t.prototype={add:function(e){this.notifications.push(e),this.element.append(e.element),1==this.element.getChildCount()&&(CKEDITOR.document.getBody().append(this.element),this._attachListeners()),this._layout()},remove:function(e){var t=CKEDITOR.tools.indexOf(this.notifications,e);0>t||(this.notifications.splice(t,1),e.element.remove(),this.element.getChildCount()||(this._removeListeners(),this.element.remove()))},_createElement:function(){var e=this.editor,t=e.config,n=new CKEDITOR.dom.element("div");return n.addClass("cke_notifications_area"),n.setAttribute("id","cke_notifications_area_"+e.name),n.setStyle("z-index",t.baseFloatZIndex-2),n},_attachListeners:function(){var e=CKEDITOR.document.getWindow(),t=this.editor;e.on("scroll",this._uiBuffer.input),e.on("resize",this._uiBuffer.input),t.on("change",this._changeBuffer.input),t.on("floatingSpaceLayout",this._layout,this,null,20),t.on("blur",this._layout,this,null,20)},_removeListeners:function(){var e=CKEDITOR.document.getWindow(),t=this.editor;e.removeListener("scroll",this._uiBuffer.input),e.removeListener("resize",this._uiBuffer.input),t.removeListener("change",this._changeBuffer.input),t.removeListener("floatingSpaceLayout",this._layout),t.removeListener("blur",this._layout)},_layout:function(){function e(){i.setStyle("left",p(m+o.width-l-d))}var t,n,i=this.element,o=(t=this.editor).ui.contentsElement.getClientRect(),r=t.ui.contentsElement.getDocumentPosition(),a=(t=t.ui.space("top")).getClientRect(),s=i.getClientRect(),l=this._notificationWidth,d=this._notificationMargin,c=(n=CKEDITOR.document.getWindow()).getScrollPosition(),u=n.getViewPaneSize(),h=CKEDITOR.document.getBody(),f=h.getDocumentPosition(),p=CKEDITOR.tools.cssLength;l&&d||(n=this.element.getChild(0),l=this._notificationWidth=n.getClientRect().width,d=this._notificationMargin=parseInt(n.getComputedStyle("margin-left"),10)+parseInt(n.getComputedStyle("margin-right"),10)),t.isVisible()&&a.bottom>o.top&&a.bottom<o.bottom-s.height?i.setStyles({position:"fixed",top:p(a.bottom)}):0<o.top?i.setStyles({position:"absolute",top:p(r.y)}):r.y+o.height-s.height>c.y?i.setStyles({position:"fixed",top:0}):i.setStyles({position:"absolute",top:p(r.y+o.height-s.height)});var m="fixed"==i.getStyle("position")?o.left:"static"!=h.getComputedStyle("position")?r.x-f.x:r.x;o.width<l+d?r.x+l+d>c.x+u.width?e():i.setStyle("left",p(m)):r.x+l+d>c.x+u.width?i.setStyle("left",p(m)):r.x+o.width/2+l/2+d>c.x+u.width?i.setStyle("left",p(m-r.x+c.x+u.width-l-d)):0>o.left+o.width-l-d?e():0>o.left+o.width/2-l/2?i.setStyle("left",p(m-r.x+c.x)):i.setStyle("left",p(m+o.width/2-l/2-d/2))}},CKEDITOR.plugins.notification=e,function(){function e(e,t,n){return t.type||(t.type="auto"),!(n&&!1===e.fire("beforePaste",t)||!t.dataValue&&t.dataTransfer.isEmpty())&&(t.dataValue||(t.dataValue=""),CKEDITOR.env.gecko&&"drop"==t.method&&e.toolbox&&e.once("afterPaste",function(){e.toolbox.focus()}),e.fire("paste",t))}function t(t){function n(){var e,n=t.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var i=function(e){t.readOnly&&"cut"==e.name||m.initPasteDataTransfer(e,t),e.data.preventDefault()};n.on("copy",i),n.on("cut",i),n.on("cut",function(){t.readOnly||t.extractSelectedHtml()},null,null,999)}n.on(m.mainPasteEvent,function(e){"beforepaste"==m.mainPasteEvent&&g||h(e)}),"beforepaste"==m.mainPasteEvent&&(n.on("paste",function(e){v||(r(),e.data.preventDefault(),h(e),s("paste"))}),n.on("contextmenu",a,null,null,0),n.on("beforepaste",function(e){!e.data||e.data.$.ctrlKey||e.data.$.shiftKey||a()},null,null,0)),n.on("beforecut",function(){!g&&l(t)}),n.attachListener(CKEDITOR.env.ie?n:t.document.getDocumentElement(),"mouseup",function(){e=setTimeout(function(){f()},0)}),t.on("destroy",function(){clearTimeout(e)}),n.on("keyup",f)}function i(e){return{type:e,canUndo:"cut"==e,startDisabled:!0,fakeKeystroke:"cut"==e?CKEDITOR.CTRL+88:CKEDITOR.CTRL+67,exec:function(){var e;"cut"==this.type&&l();var n=this.type;if(CKEDITOR.env.ie)e=s(n);else try{e=t.document.$.execCommand(n,!1,null)}catch(o){e=!1}return e||t.showNotification(t.lang.clipboard[this.type+"Error"]),e}}}function o(){return{canUndo:!1,async:!0,fakeKeystroke:CKEDITOR.CTRL+86,exec:function(t,n){function i(n,i){i=void 0===i||i,n?(n.method="paste",n.dataTransfer||(n.dataTransfer=m.initPasteDataTransfer()
164),e(t,n,i)):r&&t.showNotification(l,"info",t.config.clipboard_notificationDuration),t.fire("afterCommandExec",{name:"paste",command:o,returnValue:!!n})}var o=this,r="undefined"==typeof(n=null!=n?n:{}).notification||n.notification,a=n.type,s=CKEDITOR.tools.keystrokeToString(t.lang.common.keyboard,t.getCommandKeystroke(this)),l="string"==typeof r?r:t.lang.clipboard.pasteNotification.replace(/%1/,'<kbd aria-label="'+s.aria+'">'+s.display+"</kbd>");s="string"==typeof n?n:n.dataValue;a?t._.nextPasteType=a:delete t._.nextPasteType,"string"==typeof s?i({dataValue:s}):t.getClipboardData(i)}}}function r(){v=1,setTimeout(function(){v=0},100)}function a(){g=1,setTimeout(function(){g=0},10)}function s(e){var n=t.document,i=n.getBody(),o=!1,r=function(){o=!0};return i.on(e,r),7<CKEDITOR.env.version?n.$.execCommand(e):n.$.selection.createRange().execCommand(e),i.removeListener(e,r),o}function l(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var e,n,i,o=t.getSelection();o.getType()==CKEDITOR.SELECTION_ELEMENT&&(e=o.getSelectedElement())&&(n=o.getRanges()[0],(i=t.document.createText("")).insertBefore(e),n.setStartBefore(i),n.setEndAfter(e),o.selectRanges([n]),setTimeout(function(){e.getParent()&&(i.remove(),o.selectElement(e))},0))}}function d(e,n){var i,o=t.document,r=t.editable(),a=function(e){e.cancel()};if(!o.getById("cke_pastebin")){var s=t.getSelection(),l=s.createBookmarks();CKEDITOR.env.ie&&s.root.fire("selectionchange");var d=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!r.is("body")||CKEDITOR.env.ie?"div":"body",o);d.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var c=0;o=o.getWindow();CKEDITOR.env.webkit?(r.append(d),d.addClass("cke_editable"),r.is("body")||(c=(c="static"!=r.getComputedStyle("position")?r:CKEDITOR.dom.element.get(r.$.offsetParent)).getDocumentPosition().y)):r.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(d),d.setStyles({position:"absolute",top:o.getScrollPosition().y-c+10+"px",width:"1px",height:Math.max(1,o.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0}),CKEDITOR.env.safari&&d.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text")),(c=d.getParent().isReadOnly())?(d.setOpacity(0),d.setAttribute("contenteditable",!0)):d.setStyle("ltr"==t.config.contentsLangDirection?"left":"right","-10000px"),t.on("selectionChange",a,null,null,0),(CKEDITOR.env.webkit||CKEDITOR.env.gecko)&&(i=r.once("blur",a,null,null,-100)),c&&d.focus(),(c=new CKEDITOR.dom.range(d)).selectNodeContents(d);var u=c.select();CKEDITOR.env.ie&&(i=r.once("blur",function(){t.lockSelection(u)}));var h=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){var e;CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=h),i&&i.removeListener(),CKEDITOR.env.ie&&r.focus(),s.selectBookmarks(l),d.remove(),CKEDITOR.env.webkit&&(e=d.getFirst())&&e.is&&e.hasClass("Apple-style-span")&&(d=e),t.removeListener("selectionChange",a),n(d.getHtml())},0)}}function c(){if("paste"==m.mainPasteEvent)return t.fire("beforePaste",{type:"auto",method:"paste"}),!1;t.focus(),r();var e=t.focusManager;return e.lock(),t.editable().fire(m.mainPasteEvent)&&!s("paste")?(e.unlock(),!1):(e.unlock(),!0)}function u(e){if("wysiwyg"==t.mode)switch(e.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:e=t.editable(),r(),"paste"==m.mainPasteEvent&&e.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:t.fire("saveSnapshot"),setTimeout(function(){t.fire("saveSnapshot")},50)}}function h(n){var i={type:"auto",method:"paste",dataTransfer:m.initPasteDataTransfer(n)};i.dataTransfer.cacheData();var o=!1!==t.fire("beforePaste",i);o&&m.canClipboardApiBeTrusted(i.dataTransfer,t)?(n.data.preventDefault(),setTimeout(function(){e(t,i)},0)):d(n,function(n){i.dataValue=n.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/gi,""),o&&e(t,i)})}function f(){if("wysiwyg"==t.mode){var e=p("paste");t.getCommand("cut").setState(p("cut")),t.getCommand("copy").setState(p("copy")),t.getCommand("paste").setState(e),t.fire("pasteState",e)}}function p(e){if(y&&e in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==e)return CKEDITOR.TRISTATE_OFF;var n=(e=t.getSelection()).getRanges();return e.getType()==CKEDITOR.SELECTION_NONE||1==n.length&&n[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var m=CKEDITOR.plugins.clipboard,g=0,v=0,y=0;t.on("key",u),t.on("contentDom",n),t.on("selectionChange",function(e){y=e.data.selection.getRanges()[0].checkReadOnly(),f()}),t.contextMenu&&t.contextMenu.addListener(function(e,t){return y=t.getRanges()[0].checkReadOnly(),{cut:p("cut"),copy:p("copy"),paste:p("paste")}}),function(){function e(e,n,i,o,r){var a=t.lang.clipboard[n];t.addCommand(n,i),t.ui.addButton&&t.ui.addButton(e,{label:a,command:n,toolbar:"clipboard,"+o}),t.addMenuItems&&t.addMenuItem(n,{label:a,command:n,group:"clipboard",order:r})}e("Cut","cut",i("cut"),10,1),e("Copy","copy",i("copy"),20,4),e("Paste","paste",o(),30,8)}(),t.getClipboardData=function(e,n){function i(e){e.removeListener(),e.cancel(),n(e.data)}n||(n=e,e=null),t.on("paste",i,null,null,0),!1===c()&&(t.removeListener("paste",i),n(null))}}function i(e){if(CKEDITOR.env.webkit){if(!e.match(/^[^<]*$/g)&&!e.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!e.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!e.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>
164|(\r\n))*$/gi))return"html"}else{if(!CKEDITOR.env.gecko)return"html";if(!e.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}return"htmlifiedtext"}function o(e,t){function n(e){return CKEDITOR.tools.repeat("</p><p>",~~(e/2))+(1==e%2?"<br>":"")}return(t=(t=t.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>")).replace(/<\/?[A-Z]+>/g,function(e){return e.toLowerCase()})).match(/^[^<]$/)?t:(CKEDITOR.env.webkit&&-1<t.indexOf("<div>")&&((t=t.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>")).match(/<div>(<br>|)<\/div>/)&&(t="<p>"+t.replace(/(<div>(<br>|)<\/div>)+/g,function(e){return n(e.split("</div><div>").length+1)})+"</p>"),t=(t=t.replace(/<\/div><div>/g,"<br>")).replace(/<\/?div>/g,"")),CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(t=t.replace(/^<br><br>$/,"<br>")),-1<t.indexOf("<br><br>")&&(t="<p>"+t.replace(/(<br>){2,}/g,function(e){return n(e.length/4)})+"</p>")),l(e,t))}function a(){function e(){var e,t={};for(e in CKEDITOR.dtd)"$"!=e.charAt(0)&&"div"!=e&&"span"!=e&&(t[e]=1);return t}var t={};return{get:function(n){return"plain-text"==n?t.plainText||(t.plainText=new CKEDITOR.filter("br")):"semantic-content"==n?((n=t.semanticContent)||((n=new CKEDITOR.filter).allow({$1:{elements:e(),attributes:!0,styles:!1,classes:!1}}),n=t.semanticContent=n),n):n?new CKEDITOR.filter(n):null}}}function s(e,t,n){t=CKEDITOR.htmlParser.fragment.fromHtml(t);var i=new CKEDITOR.htmlParser.basicWriter;return n.applyTo(t,!0,!1,e.activeEnterMode),t.writeHtml(i),i.getHtml()}function l(e,t){return e.enterMode==CKEDITOR.ENTER_BR?t=t.replace(/(<\/p><p>)+/g,function(e){return CKEDITOR.tools.repeat("<br>",e.length/7*2)}).replace(/<\/?p>/g,""):e.enterMode==CKEDITOR.ENTER_DIV&&(t=t.replace(/<(\/)?p>/g,"<$1div>")),t}function d(e){e.data.preventDefault(),e.data.$.dataTransfer.dropEffect="none"}function c(t){var n=CKEDITOR.plugins.clipboard;t.on("contentDom",function(){function i(n,i,o){i.select(),e(t,{dataTransfer:o,method:"drop"},1),o.sourceEditor.fire("saveSnapshot"),o.sourceEditor.editable().extractHtmlFromRange(n),o.sourceEditor.getSelection().selectRanges([n]),o.sourceEditor.fire("saveSnapshot")}function o(i,o){i.select(),e(t,{dataTransfer:o,method:"drop"},1),n.resetDragDataTransfer()}function r(e,n,i){var o={$:e.data.$, 165target:e.data.getTarget()};n&&(o.dragRange=n),i&&(o.dropRange=i),!1===t.fire(e.name,o)&&e.data.preventDefault()}function a(e){return e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),e.getChildCount()}var s=t.editable(),l=CKEDITOR.plugins.clipboard.getDropTarget(t),d=t.ui.space("top"),c=t.ui.space("bottom");n.preventDefaultDropOnElement(d),n.preventDefaultDropOnElement(c),s.attachListener(l,"dragstart",r),s.attachListener(t,"dragstart",n.resetDragDataTransfer,n,null,1),s.attachListener(t,"dragstart",function(e){n.initDragDataTransfer(e,t)},null,null,2),s.attachListener(t,"dragstart",function(){var e=n.dragRange=t.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(n.dragStartContainerChildCount=e?a(e.startContainer):null,n.dragEndContainerChildCount=e?a(e.endContainer):null)},null,null,100),s.attachListener(l,"dragend",r),s.attachListener(t,"dragend",n.initDragDataTransfer,n,null,1),s.attachListener(t,"dragend",n.resetDragDataTransfer,n,null,100),s.attachListener(l,"dragover",function(e){if(CKEDITOR.env.edge)e.data.preventDefault();else{var t=e.data.getTarget();t&&t.is&&t.is("html")?e.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&e.data.$.dataTransfer.types.contains("Files")&&e.data.preventDefault()}}),s.attachListener(l,"drop",function(e){if(!e.data.$.defaultPrevented&&(e.data.preventDefault(),!(i=e.data.getTarget()).isReadOnly()||i.type==CKEDITOR.NODE_ELEMENT&&i.is("html"))){var i=n.getRangeAtDropPosition(e,t),o=n.dragRange;i&&r(e,o,i)}},null,null,9999),s.attachListener(t,"drop",n.initDragDataTransfer,n,null,1),s.attachListener(t,"drop",function(e){if(e=e.data){var r=e.dropRange,a=e.dragRange,s=e.dataTransfer;s.getTransferType(t)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){n.internalDrop(a,r,s,t)},0):s.getTransferType(t)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?i(a,r,s):o(r,s)}},null,null,9999)})}CKEDITOR.plugins.add("clipboard",{requires:"notification",init:function(e){var n,r=a();if(e.config.forcePasteAsPlainText?n="plain-text":e.config.pasteFilter?n=e.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in e.config||(n="semantic-content"),e.pasteFilter=r.get(n),t(e),c(e),CKEDITOR.env.gecko){var l,d=["image/png","image/jpeg","image/gif"];e.on("paste",function(t){var n=t.data,i=n.dataTransfer;if(!n.dataValue&&"paste"==n.method&&i&&1==i.getFilesCount()&&l!=i.id&&(i=i.getFile(0),-1!=CKEDITOR.tools.indexOf(d,i.type))){var o=new FileReader;o.addEventListener("load",function(){t.data.dataValue='<img src="'+o.result+'" />',e.fire("paste",t.data)},!1),o.addEventListener("abort",function(){e.fire("paste",t.data)},!1),o.addEventListener("error",function(){e.fire("paste",t.data)},!1),o.readAsDataURL(i),l=n.dataTransfer.id,t.stop()}},null,null,1)}e.on("paste",function(t){if(t.data.dataTransfer||(t.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer),!t.data.dataValue){var n=t.data.dataTransfer,i=n.getData("text/html");i?(t.data.dataValue=i,t.data.type="html"):(i=n.getData("text/plain"))&&(t.data.dataValue=e.editable().transformPlainTextToHtml(i),t.data.type="text")}},null,null,1),e.on("paste",function(e){var t=e.data.dataValue,n=CKEDITOR.dtd.$block;if(-1<t.indexOf("Apple-")&&(t=t.replace(/<span class="Apple-converted-s
165pace"> <\/span>/gi," "),"html"!=e.data.type&&(t=t.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(e,t){return t.replace(/\t/g," ")})),-1<t.indexOf('<br class="Apple-interchange-newline">')&&(e.data.startsWithEOL=1,e.data.preSniffing="html",t=t.replace(/<br class="Apple-interchange-newline">/,"")),t=t.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1")),t.match(/^<[^<]+cke_(editable|contents)/i)){var i,o,r=new CKEDITOR.dom.element("div");for(r.setHtml(t);1==r.getChildCount()&&(i=r.getFirst())&&i.type==CKEDITOR.NODE_ELEMENT&&(i.hasClass("cke_editable")||i.hasClass("cke_contents"));)r=o=i;o&&(t=o.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?t=t.replace(/^ (?: |\r\n)?<(\w+)/g,function(t,i){return i.toLowerCase()in n?(e.data.preSniffing="html","<"+i):t}):CKEDITOR.env.webkit?t=t.replace(/<\/(\w+)><div><br><\/div>$/,function(t,i){return i in n?(e.data.endsWithEOL=1,"</"+i+">"):t}):CKEDITOR.env.gecko&&(t=t.replace(/(\s)<br>$/,"$1")),e.data.dataValue=t},null,null,3),e.on("paste",function(t){t=t.data;var n,a=e._.nextPasteType||t.type,l=t.dataValue,d=e.config.clipboard_defaultContentType||"html",c=t.dataTransfer.getTransferType(e);n="html"==a||"html"==t.preSniffing?"html":i(l),delete e._.nextPasteType,"htmlifiedtext"==n&&(l=o(e.config,l)),"text"==a&&"html"==n?l=s(e,l,r.get("plain-text")):c==CKEDITOR.DATA_TRANSFER_EXTERNAL&&e.pasteFilter&&!t.dontFilter&&(l=s(e,l,e.pasteFilter)),t.startsWithEOL&&(l='<br data-cke-eol="1">'+l),t.endsWithEOL&&(l+='<br data-cke-eol="1">'),"auto"==a&&(a="html"==n||"html"==d?"html":"text"),t.type=a,t.dataValue=l,delete t.preSniffing,delete t.startsWithEOL,delete t.endsWithEOL},null,null,6),e.on("paste",function(t){(t=t.data).dataValue&&(e.insertHtml(t.dataValue,t.type,t.range),setTimeout(function(){e.fire("afterPaste")},0))},null,null,1e3)}}),CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:!CKEDITOR.env.ie&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie,isFileApiSupported:!CKEDITOR.env.ie||9<CKEDITOR.env.version,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",canClipboardApiBeTrusted:function(e,t){return!!(e.getTransferType(t)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!e.isEmpty()||CKEDITOR.env.gecko&&(e.getData("text/html")||e.getFilesCount())||CKEDITOR.env.safari&&603<=CKEDITOR.env.version&&!CKEDITOR.env.iOS)},getDropTarget:function(e){var t=e.editable();return CKEDITOR.env.ie&&9>CKEDITOR.env.version||t.isInline()?t:e.document},fixSplitNodesAfterDrop:function(e,t,n,i){function o(e,n,i){var o=e;if(o.type==CKEDITOR.NODE_TEXT&&(o=e.getParent()),o.equals(n)&&i!=n.getChildCount())return e=t.startContainer.getChild(t.startOffset-1),n=t.startContainer.getChild(t.startOffset),e&&e.type==CKEDITOR.NODE_TEXT&&n&&n.type==CKEDITOR.NODE_TEXT&&(i=e.getLength(),e.setText(e.getText()+n.getText()),n.remove(),t.setStart(e,i),t.collapse(!0)),!0}var r=t.startContainer;"number"==typeof i&&"number"==typeof n&&r.type==CKEDITOR.NODE_ELEMENT&&(o(e.startContainer,r,n)||o(e.endContainer,r,i))},isDropRangeAffectedByDragRange:function(e,t){var n=t.startContainer,i=t.endOffset;return!!(e.endContainer.equals(n)&&e.endOffset<=i||e.startContainer.getParent().equals(n)&&e.startContainer.getIndex()<i||e.endContainer.getParent().equals(n)&&e.endContainer.getIndex()<i)},internalDrop:function(t,n,i,o){var r,a,s=CKEDITOR.plugins.clipboard,l=o.editable();o.fire("saveSnapshot"),o.fire("lockSnapshot",{dontUpdate:1}),CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(t,n,s.dragStartContainerChildCount,s.dragEndContainerChildCount),(a=this.isDropRangeAffectedByDragRange(t,n))||(r=t.createBookmark(!1)),s=n.clone().createBookmark(!1),a&&(r=t.createBookmark(!1)),t=r.startNode,n=r.endNode,a=s.startNode,n&&t.getPosition(a)&CKEDITOR.POSITION_PRECEDING&&n.getPosition(a)&CKEDITOR.POSITION_FOLLOWING&&a.insertBefore(t),(t=o.createRange()).moveToBookmark(r),l.extractHtmlFromRange(t,1),(n=o.createRange()).moveToBookmark(s),e(o,{dataTransfer:i,method:"drop",range:n},1),o.fire("unlockSnapshot")},getRangeAtDropPosition:function(e,t){var n=e.data.$,i=n.clientX,o=n.clientY,r=t.getSelection(!0).getRanges()[0],a=t.createRange();if(e.data.testRange)return e.data.testRange;if(document.caretRangeFromPoint&&t.document.$.caretRangeFromPoint(i,o))n=t.document.$.caretRangeFromPoint(i,o),a.setStart(CKEDITOR.dom.node(n.startContainer),n.startOffset),a.collapse(!0);else if(n.rangeParent)a.setStart(CKEDITOR.dom.node(n.rangeParent),n.rangeOffset),a.collapse(!0);else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&r&&t.editable().hasFocus)return r;if(!document.body.createTextRange)return null;t.focus(),n=t.document.getBody().$.createTextRange();try{for(var s=!1,l=0;20>l&&!s;l++){if(!s)try{n.moveToPoint(i,o-l),s=!0}catch(u){}if(!s)try{n.moveToPoint(i,o+l),s=!0}catch(p){}}if(s){var d="cke-temp-"+(new Date).getTime();n.pasteHTML('<span id="'+d+'">\u200b</span>');var c=t.document.getById(d);a.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START),c.remove()}else{var h=t.document.$.elementFromPoint(i,o),f=new CKEDITOR.dom.element(h);if(f.equals(t.editable())||"html"==f.getName())return r&&r.startContainer&&!r.startContainer.equals(t.editable())?r:null;i<f.getClientRect().left?a.setStartAt(f,CKEDITOR.POSITION_AFTER_START):a.setStartAt(f,CKEDITOR.POSITION_BEFORE_END),a.collapse(!0)}}catch(m){return null}}return a},initDragDataTransfer:function(e,t){var n=e.data.$?e.data.$.dataTransfer:null,i=new this.dataTransfer(n,t);n?this.dragData&&i.id==this.dragData.id?i=this.dragData:this.dragData=i:this.dragData?i=this.dragData:this.dragData=i,e.data.dataTransfer=i},resetDragDataTransfer:function(){this.dragData=null}
165,initPasteDataTransfer:function(e,t){if(this.isCustomCopyCutSupported){if(e&&e.data&&e.data.$){var n=new this.dataTransfer(e.data.$.clipboardData,t);return this.copyCutData&&n.id==this.copyCutData.id?(n=this.copyCutData).$=e.data.$.clipboardData:this.copyCutData=n,n}return new this.dataTransfer(null,t)}return new this.dataTransfer(CKEDITOR.env.edge&&e&&e.data.$&&e.data.$.clipboardData||null,t)},preventDefaultDropOnElement:function(e){e&&e.on("dragover",d)}};var u=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(e,t){if(e&&(this.$=e),this._={metaRegExp:/^<meta.*?>/i,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i,fragmentRegExp:/\x3c!--(?:Start|End)Fragment--\x3e/g,data:{},files:[],normalizeType:function(e){return"text"==(e=e.toLowerCase())||"text/plain"==e?"Text":"url"==e?"URL":e}},this.id=this.getData(u),this.id||(this.id="Text"==u?"":"cke-"+CKEDITOR.tools.getUniqueId()),"Text"!=u)try{this.$.setData(u,this.id)}catch(r){}t&&(this.sourceEditor=t,this.setData("text/html",t.getSelectedHtml(1)),"Text"==u||this.getData("text/plain")||this.setData("text/plain",t.getSelection().getSelectedText()))},CKEDITOR.DATA_TRANSFER_INTERNAL=1,CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=2,CKEDITOR.DATA_TRANSFER_EXTERNAL=3,CKEDITOR.plugins.clipboard.dataTransfer.prototype={getData:function(e,t){e=this._.normalizeType(e);var n,i=this._.data[e];if(null==i||""===i)try{i=this.$.getData(e)}catch(h){}return null!=i&&""!==i||(i=""),"text/html"!=e||t?"Text"==e&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==i.substring(0,7)&&(i=""):(i=i.replace(this._.metaRegExp,""),(n=this._.bodyRegExp.exec(i))&&n.length&&(i=(i=n[1]).replace(this._.fragmentRegExp,""))),"string"==typeof i&&(i=-1!==(n=i.indexOf("</html>"))?i.substring(0,n+7):i),i},setData:function(e,t){if(e=this._.normalizeType(e),this._.data[e]=t,CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"URL"==e||"Text"==e){"Text"==u&&"Text"==e&&(this.id=t);try{this.$.setData(e,t)}catch(r){}}},getTransferType:function(e){return this.sourceEditor?this.sourceEditor==e?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function e(e){e=i._.normalizeType(e);var t=i.getData(e,!0);t&&(i._.data[e]=t)}if(this.$){var t,n,i=this;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(t=0;t<this.$.types.length;t++)e(this.$.types[t])}else e("Text"),e("URL");if(n=this._getImageFromClipboard(),this.$&&this.$.files||n){if(this._.files=[],this.$.files&&this.$.files.length)for(t=0;t<this.$.files.length;t++)this._.files.push(this.$.files[t]);0===this._.files.length&&n&&this._.files.push(n)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(e){return this._.files.length?this._.files[e]:this.$&&this.$.files&&this.$.files.length?this.$.files[e]:0===e?this._getImageFromClipboard():void 0},isEmpty:function(){var e,t={};if(this.getFilesCount())return!1;for(e in this._.data)t[e]=1;if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var n=0;n<this.$.types.length;n++)t[this.$.types[n]]=1}else t.Text=1,t.URL=1;for(e in"Text"!=u&&(t[u]=0),t)if(t[e]&&""!==this.getData(e))return!1;return!0},_getImageFromClipboard:function(){var e;if(this.$&&this.$.items&&this.$.items[0])try{if((e=this.$.items[0].getAsFile())&&e.type)return e}catch(n){}}}}(),CKEDITOR.config.clipboard_notificationDuration=1e4,CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function e(e){var t=this._;t.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(e),t.on?t.panel.hide():t.panel.showBlock(this._.id,this.document.getById(this._.id),4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(t){var n=t.panel||{};delete t.panel,this.base(t),this.document=n.parent&&n.parent.getDocument()||CKEDITOR.document,n.block={attributes:n.attributes},this.hasArrow=n.toolbarRelated=!0,this.click=e,this._={panelDefinition:n}},statics:{handler:{create:function(e){return new CKEDITOR.ui.panelButton(e)}}},proto:{createPanel:function(e){var t=this._;if(!t.panel){var n=this._.panelDefinition,i=this._.panelDefinition.block,o=n.parent||CKEDITOR.document.getBody(),r=this._.panel=new CKEDITOR.ui.floatPanel(e,o,n),a=(n=r.addBlock(t.id,i),this);r.onShow=function(){a.className&&this.element.addClass(a.className+"_panel"),a.setState(CKEDITOR.TRISTATE_ON),t.on=1,a.editorFocus&&e.focus(),a.onOpen&&a.onOpen()},r.onHide=function(n){a.className&&this.element.getFirst().removeClass(a.className+"_panel"),a.setState(a.modes&&a.modes[e.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),t.on=0,!n&&a.onClose&&a.onClose()},r.onEscape=function(){r.hide(1),a.document.getById(t.id).focus()},this.onBlock&&this.onBlock(r,n),n.onHide=function(){t.on=0,a.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}}),CKEDITOR.UI_PANELBUTTON="panelbutton",function(){CKEDITOR.plugins.add("panel",{beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}}),CKEDITOR.UI_PANEL="panel",CKEDITOR.ui.panel=function(e,t){t&&CKEDITOR.tools.extend(this,t),CKEDITOR.tools.extend(this,{className:"",css:[]}),this.id=CKEDITOR.tools.getNextId(),this.document=e,this.isFramed=this.forceIFrame||this.css.length,this._={blocks:{}}},CKEDITOR.ui.panel.handler={create:function(e){return new CKEDITOR.ui.panel(e)}};var e=CKEDITOR.addTemplate("panel",'<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),t=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),n=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>');CKEDITOR.ui.panel.prototype={render:function(i,o){this.getHolderElement=function(){if(!(t=this._.holder)){if(this.isFramed){var e=(t=this.document.getById(this.id+"_frame")).getParent(),t=t.getFrameDocument();CKEDITOR.env.iOS&&e.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"}),e=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0,this.onLoad&&this.onLoad()},this)),t.write(n.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+e+");"}
165,r))),t.getWindow().$.CKEDITOR=CKEDITOR,t.on("keydown",function(e){var t=e.data.getKeystroke(),n=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&!1===this._.onKeyDown(t)?e.data.preventDefault():(27==t||t==("rtl"==n?39:37))&&this.onEscape&&!1===this.onEscape(t)&&e.data.preventDefault()},this),(t=t.getBody()).unselectable(),CKEDITOR.env.air&&CKEDITOR.tools.callFunction(e)}else t=this.document.getById(this.id);this._.holder=t}return t};var r={editorId:i.id,id:this.id,langCode:i.langCode,dir:i.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":i.config.baseFloatZIndex+1};if(this.isFramed){var a=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";r.frame=t.output({id:this.id+"_frame",src:a})}return a=e.output(r),o&&o.push(a),a},addBlock:function(e,t){return t=this._.blocks[e]=t instanceof CKEDITOR.ui.panel.block?t:new CKEDITOR.ui.panel.block(this.getHolderElement(),t),this._.currentBlock||this.showBlock(e),t},getBlock:function(e){return this._.blocks[e]},showBlock:function(e){e=this._.blocks[e];var t=this._.currentBlock,n=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");return t&&t.hide(),this._.currentBlock=e,CKEDITOR.fire("ariaWidget",n),e._.focusIndex=-1,this._.onKeyDown=e.onKeyDown&&CKEDITOR.tools.bind(e.onKeyDown,e),e.show(),e},destroy:function(){this.element&&this.element.remove()}},CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(e,t){this.element=e.append(e.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}})),t&&CKEDITOR.tools.extend(this,t),this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]}),this.keys={},this._.focusIndex=-1,this.element.disableContextMenu()},_:{markItem:function(e){-1!=e&&(e=this.element.getElementsByTag("a").getItem(this._.focusIndex=e),CKEDITOR.env.webkit&&e.getDocument().getWindow().focus(),e.focus(),this.onMark&&this.onMark(e))},markFirstDisplayed:function(e){for(var t,n,i=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&"none"==e.getStyle("display")},o=this._.getItems(),r=o.count()-1;0<=r;r--)if((t=o.getItem(r)).getAscendant(i)||(n=t,this._.focusIndex=r),"true"==t.getAttribute("aria-selected")){n=t,this._.focusIndex=r;break}n&&(e&&e(),CKEDITOR.env.webkit&&n.getDocument().getWindow().focus(),n.focus(),this.onMark&&this.onMark(n))},getItems:function(){return this.element.getElementsByTag("a")}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){this.onHide&&!0===this.onHide.call(this)||this.element.setStyle("display","none")},onKeyDown:function(e,t){switch(o=this.keys[e]){case"next":for(var n,i=this._.focusIndex,o=this.element.getElementsByTag("a");n=o.getItem(++i);)if(n.getAttribute("_cke_focus")&&n.$.offsetWidth){this._.focusIndex=i,n.focus();break}return!n&&!t&&(this._.focusIndex=-1,this.onKeyDown(e,1));case"prev":for(i=this._.focusIndex,o=this.element.getElementsByTag("a");0<i&&(n=o.getItem(--i));){if(n.getAttribute("_cke_focus")&&n.$.offsetWidth){this._.focusIndex=i,n.focus();break}n=null}return!n&&!t&&(this._.focusIndex=o.count(),this.onKeyDown(e,1));case"click":case"mouseup":return(n=0<=(i=this._.focusIndex)&&this.element.getElementsByTag("a").getItem(i))&&(n.$[o]?n.$[o]():n.$["on"+o]()),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function e(e,n,i,o,r){r=CKEDITOR.tools.genKey(n.getUniqueId(),i.getUniqueId(),e.lang.dir,e.uiColor||"",o.css||"",r||"");var a=t[r];return a||((a=t[r]=new CKEDITOR.ui.panel(n,o)).element=i.append(CKEDITOR.dom.element.createFromHtml(a.render(e),n)),a.element.setStyles({display:"none",position:"absolute"})),a}var t={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(t,n,i,o){function r(){d.hide()}i.forceIFrame=1,i.toolbarRelated&&t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(n=CKEDITOR.document.getById("cke_"+t.name));var a=n.getDocument(),s=(o=e(t,a,n,i,o||0)).element,l=s.getFirst(),d=this;s.disableContextMenu(),this.element=s,this._={editor:t,panel:o,parentElement:n,definition:i,document:a,iframe:l,children:[],dir:t.lang.dir,showBlockParams:null},t.on("mode",r),t.on("resize",r),a.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(e,t){return this._.panel.addBlock(e,t)},addListBlock:function(e,t){return this._.panel.addListBlock(e,t)},getBlock:function(e){return this._.panel.getBlock(e)},showBlock:function(e,t,n,i,o,r){var a=this._.panel,s=a.showBlock(e);this._.showBlockParams=[].slice.call(arguments),this.allowBlur(!1);var l=this._.editor.editable();this._.returnFocus=l.hasFocus?l:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement),this._.hideTimeout=0;var d=this.element,c=(l=this._.iframe,l=CKEDITOR.env.ie&&!CKEDITOR.env.edge?l:new CKEDITOR.dom.window(l.$.contentWindow),d.getDocument()),u=this._.parentElement.getPositionedAncestor(),h=t.getDocumentPosition(c),f=(c=u?u.getDocumentPosition(c):{x:0,y:0},"rtl"==this._.dir),p=h.x+(i||0)-c.x,m=h.y+(o||0)-c.y;!f||1!=n&&4!=n?f||2!=n&&3!=n||(p+=t.$.offsetWidth-1):p+=t.$.offsetWidth,3!=n&&4!=n||(m+=t.$.offsetHeight-1),this._.panel._.offsetParentId=t.getId(),d.setStyles({top:m+"px",left:0,display:""}),d.setOpacity(0),d.getFirst().removeStyle("width"),this._.editor.focusManager.add(l),this._.blurSet||(CKEDITOR.event.useCapture=!0,l.on("blur",function(e){function t(){delete this._.returnFocus,this.hide()}this.allowBlur()&&e.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild&&(CKEDITOR.env.iOS?this._.hideTimeout||(this._.hideTimeout=CKEDITOR.tools.setTimeout(t,0,this)):t.call(this))},this),l.on("focus",function(){this._.focused=!0,this.hideChild(),this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(l.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),l.on("touchend",function(){this._.hideTimeout=0,this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1),a.onEscape=CKEDITOR.tools.bind(function(e){if(this.onEscape&&!1===this.onEscape(e))return!1},this),CKEDITOR.tools.setTimeout(function(){var e=CKEDITOR.tools.bind(function(){if((n=d).removeStyle("width"),s.autoSize){var e=s.element.getDocument();e=(CKEDITOR.env.webkit||CKEDITOR.env.edge?s.element:e.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<e&&(e+=(n.$.offsetWidth||0)-(n.$.clientWidth||0)+3),n.setStyle("width",e+10+"px"),e=s.element.$.scrollHeight,CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<e&&(e+=(n.$.offsetHeight||0)-(n.$.clientHeight||0)+3),n.setStyle("height",e+"px"),a._.currentBlock.element.setStyle("display","none").removeStyle("display")}else n.removeStyle("height");f&&(p-=d.$.offsetWidth),d.setStyle("left",p+"px");e=a.element.getWindow();var t,n=d.$.getBoundingClientRect(),i=(e=e.getViewPaneSize(),n.width||n.right-n.left),o=n.height||n.bottom-n.top,l=f?n.right:e.width-n.left,c=f?e.width-n.right:n.left;f?l<i&&(p=c>i?p+i:e.width>i?p-n.left:p-n.right+e.width):l<i&&(p=c>i?p-i:e.width>i?p-n.right+e.width:p-n.left),i=n.top,e.height-n.top<o&&(m=i>o?m-o:e.height>o?m-n.bottom+e.height:m-n.top),CKEDITOR.env.ie&&("html"==(e=n=new CKEDITOR.dom.element(d.$.offsetParent)).getName()&&(e=e.getDocument().getBody()),"rtl"==e.getComputedStyle("direction")&&(p=CKEDITOR.env.ie8Compat?p-2*d.getDocument().getDocumentElement().$.scrollLeft:p-(n.$.scrollWidth-n.$.clientWidth))),(t=(n=d.getFirst()).getCustomData("activePanel"))&&t.onHide&&t.onHide.call(this,1),n.setCustomData("activePanel",this),d.setStyles({top:m+"px",left:p+"px"}),d.setOpacity(1),r&&r()},this);a.isLoaded?e():a.onLoad=e,CKEDITOR.tools.setTimeout(function(){var e=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus(),s.element.focus(),CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=e),this.allowBlur(!0),CKEDITOR.env.ie?CKEDITOR.tools.setTimeout(function(){s.markFirstDisplayed?s.markFirstDisplayed():s._.markFirstDisplayed()},0):s.markFirstDisplayed?s.markFirstDisplayed():s._.markFirstDisplayed(),this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this),this.visible=1,this.onShow&&this.onShow.call(this)},reposition:function(){var e=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,e))},focus:function(){if(CKEDITOR.env.webkit){var e=CKEDITOR.document.getActive();e&&!e.equals(this._.iframe)&&e.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var e=this._.iframe.getFrameDocument().getActive();e&&e.is("a")&&(this._.lastFocused=e)},hide:function(e){!this.visible||this.onHide&&!0===this.onHide.call(this)||(this.hideChild(),CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur(),this.element.setStyle("display","none"),this.visible=0,this.element.getFirst().removeCustomData("activePanel"),(e=e&&this._.returnFocus)&&(CKEDITOR.env.webkit&&e.type&&e.getWindow().$.focus(),e.focus()),delete this._.lastFocused,this._.showBlockParams=null,this._.editor.fire("panelHide",this))},allowBlur:function(e){var t=this._.panel;return void 0!==e&&(t.allowBlur=e),t.allowBlur},showAsChild:function(e,t,n,i,o,r){this._.activeChild==e&&e._.panel._.offsetParentId==n.getId()||(this.hideChild(),e.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=e,this._.focused=!1,e.showBlock(t,n,i,o,r),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){e.element.getChild(0).$.style.cssText+=""},100))},hideChild:function(e){var t=this._.activeChild;t&&(delete t.onHide,delete this._.activeChild,t.hide(),e&&this.focus())}}}),CKEDITOR.on("instanceDestroyed",function(){var e,n=CKEDITOR.tools.isEmpty(CKEDITOR.instances);for(e in t){var i=t[e];n?i.destroy():i.element.hide()}n&&(t={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(e){function t(t,i,s,l,d){var c,u=new CKEDITOR.style(r["colorButton_"+i+"Style"]),h=CKEDITOR.tools.getNextId()+"_colorBox";d=d||{},e.ui.add(t,CKEDITOR.UI_PANELBUTTON,{label:s,title:s,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+l,allowedContent:u,requiredContent:u,contentTransformations:d.contentTransformations,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":a.panelTitle}},onBlock:function(t,o){c=o,o.autoSize=!0,o.element.addClass("cke_colorblock"),o.element.setHtml(n(t,i,h)),o.element.getDocument().getBody().setStyle("overflow","hidden"),CKEDITOR.ui.fire("ready",this);var r=o.keys,a="rtl"==e.lang.dir;r[a?37:39]="next",r[40]="next",r[9]="next",r[a?39:37]="prev",r[38]="prev",r[CKEDITOR.SH
165IFT+9]="prev",r[32]="click"},refresh:function(){e.activeFilter.check(u)||this.setState(CKEDITOR.TRISTATE_DISABLED)},onOpen:function(){var t=(a=e.getSelection())&&a.getStartElement(),n=e.elementPath(t);if(n){t=n.block||n.blockLimit||e.document.getBody();do{n=t&&t.getComputedStyle("back"==i?"background-color":"color")||"transparent"}while("back"==i&&"transparent"==n&&t&&(t=t.getParent()));if(n&&"transparent"!=n||(n="#ffffff"),!1!==r.colorButton_enableAutomatic&&this._.panel._.iframe.getFrameDocument().getById(h).setStyle("background-color",n),t=a&&a.getRanges()[0]){var a=new CKEDITOR.dom.walker(t),s=t.collapsed?t.startContainer:a.next();for(t="";s;){if(s.type===CKEDITOR.NODE_TEXT&&(s=s.getParent()),s=o(s.getComputedStyle("back"==i?"background-color":"color")),(t=t||s)!==s){t="";break}s=a.next()}for(a=t,t=c._.getItems(),s=0;s<t.count();s++){var l=t.getItem(s);l.removeAttribute("aria-selected"),a&&a==o(l.getAttribute("data-value"))&&l.setAttribute("aria-selected",!0)}}return n}}})}function n(t,n,o){var s=[],l=r.colorButton_colors.split(","),d=r.colorButton_colorsPerRow||6,c=e.plugins.colordialog&&!1!==r.colorButton_enableMore,u=l.length+(c?2:1),h=CKEDITOR.tools.addFunction(function g(n,o){function a(e){this.removeListener("ok",a),this.removeListener("cancel",a),"ok"==e.name&&g(this.getContentElement("picker","selectedColor").getValue(),o)}if("?"==n)e.openDialog("colordialog",function(){this.on("ok",a),this.on("cancel",a)});else{if(e.focus(),t.hide(),e.fire("saveSnapshot"),e.removeStyle(new CKEDITOR.style(r["colorButton_"+o+"Style"],{color:"inherit"})),n){var s=r["colorButton_"+o+"Style"];s.childRule="back"==o?function(e){return i(e)}:function(e){return!(e.is("a")||e.getElementsByTag("a").count())||i(e)},e.applyStyle(new CKEDITOR.style(s,{color:n}))}e.fire("saveSnapshot")}});for(!1!==r.colorButton_enableAutomatic&&s.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',a.auto,'" onclick="CKEDITOR.tools.callFunction(',h,",null,'",n,"');return false;\" href=\"javascript:void('",a.auto,'\')" role="option" aria-posinset="1" aria-setsize="',u,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td colspan="'+d+'" align="center"><span class="cke_colorbox" id="',o,'"></span>',a.auto,"</td></tr></table></a>"),s.push('<table role="presentation" cellspacing=0 cellpadding=0 width="100%">'),o=0;o<l.length;o++){0==o%d&&s.push("</tr><tr>");var f=l[o].split("/"),p=f[0],m=f[1]||p;f[1]||(p="#"+p.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3")),f=e.lang.colorbutton.colors[m]||m,s.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',f,'" onclick="CKEDITOR.tools.callFunction(',h,",'",p,"','",n,"'); return false;\" href=\"javascript:void('",f,'\')" data-value="'+m+'" role="option" aria-posinset="',o+2,'" aria-setsize="',u,'"><span class="cke_colorbox" style="background-color:#',m,'"></span></a></td>')}return c&&s.push('</tr><tr><td colspan="'+d+'" align="center"><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',a.more,'" onclick="CKEDITOR.tools.callFunction(',h,",'?','",n,"');return false;\" href=\"javascript:void('",a.more,"')\"",' role="option" aria-posinset="',u,'" aria-setsize="',u,'">',a.more,"</a></td>"),s.push("</tr></table>"),s.join("")}function i(e){return"false"==e.getAttribute("contentEditable")||e.getAttribute("data-nostyle")}function o(e){return CKEDITOR.tools.convertRgbToHex(e||"").replace(/#/,"").toLowerCase()}var r=e.config,a=e.lang.colorbutton;if(!CKEDITOR.env.hc){t("TextColor","fore",a.textColorTitle,10,{contentTransformations:[[{element:"font",check:"span{color}",left:function(e){return!!e.attributes.color},right:function(e){e.name="span",e.attributes.color&&(e.styles.color=e.attributes.color),delete e.attributes.color}}]]});var s={}
165,l=e.config.colorButton_normalizeBackground;(void 0===l||l)&&(s.contentTransformations=[[{element:"span",left:function(e){var t=CKEDITOR.tools;return!("span"!=e.name||!e.styles||!e.styles.background)&&((e=t.style.parse.background(e.styles.background)).color&&1===t.objectKeys(e).length)},right:function(t){var n=new CKEDITOR.style(e.config.colorButton_backStyle,{color:t.styles.background}).getDefinition();return t.name=n.element,t.styles=n.styles,t.attributes=n.attributes||{},t}}]]),t("BGColor","back",a.bgColorTitle,20,s)}}}),CKEDITOR.config.colorButton_colors="1ABC9C,2ECC71,3498DB,9B59B6,4E5F70,F1C40F,16A085,27AE60,2980B9,8E44AD,2C3E50,F39C12,E67E22,E74C3C,ECF0F1,95A5A6,DDD,FFF,D35400,C0392B,BDC3C7,7F8C8D,999,000",CKEDITOR.config.colorButton_foreStyle={element:"span",styles:{color:"#(color)"},overrides:[{element:"font",attributes:{color:null}}]},CKEDITOR.config.colorButton_backStyle={element:"span",styles:{"background-color":"#(color)"}},CKEDITOR.plugins.colordialog={requires:"dialog",init:function(e){var t=new CKEDITOR.dialogCommand("colordialog");t.editorFocus=!1,e.addCommand("colordialog",t),CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js"),e.getColorFromDialog=function(t,n){var i=function(e){this.removeListener("ok",i),this.removeListener("cancel",i),e="ok"==e.name?this.getValueOf("picker","selectedColor"):null,t.call(n,e)},o=function(e){e.on("ok",i),e.on("cancel",i)};e.execCommand("colordialog"),e._.storedDialogs&&e._.storedDialogs.colordialog?o(e._.storedDialogs.colordialog):CKEDITOR.on("dialogDefinition",function(e){if("colordialog"==e.data.name){var t=e.data.definition;e.removeListener(),t.onLoad=CKEDITOR.tools.override(t.onLoad,function(e){return function(){o(this),t.onLoad=e,"function"==typeof e&&e.call(this)}})}})}}},CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog),function(){CKEDITOR.plugins.add("templates",{requires:"dialog",init:function(e){CKEDITOR.dialog.add("templates",CKEDITOR.getUrl(this.path+"dialogs/templates.js")),e.addCommand("templates",new CKEDITOR.dialogCommand("templates")),e.ui.addButton&&e.ui.addButton("Templates",{label:e.lang.templates.button,command:"templates",toolbar:"doctools,10"})}});var e={},t={};CKEDITOR.addTemplates=function(t,n){e[t]=n},CKEDITOR.getTemplates=function(t){return e[t]},CKEDITOR.loadTemplates=function(e,n){for(var i=[],o=0,r=e.length;o<r;o++)t[e[o]]||(i.push(e[o]),t[e[o]]=1);i.length?CKEDITOR.scriptLoader.load(i,n):setTimeout(n,0)}}(), 166CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")],CKEDITOR.config.templates_replaceContent=!0,CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(e){for(var t=e.config.menu_groups.split(","),n=e._.menuGroups={},i=e._.menuItems={},o=0;o<t.length;o++)n[t[o]]=o+1;e.addMenuGroup=function(e,t){n[e]=t||100},e.addMenuItem=function(e,t){n[t.group]&&(i[e]=new CKEDITOR.menuItem(this,e,t))},e.addMenuItems=function(e){for(var t in e)this.addMenuItem(t,e[t])},e.getMenuItem=function(e){return i[e]},e.removeMenuItem=function(e){delete i[e]}}}),function(){function e(e){e.sort(function(e,t){return e.group<t.group?-1:e.group>t.group?1:e.order<t.order?-1:e.order>t.order?1:0})}var t='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1" _cke_focus=1 hidefocus="true" role="{role}" aria-label="{label}" aria-describedby="{id}_description" aria-haspopup="{hasPopup}" aria-disabled="{disabled}" {ariaChecked} draggable="false"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(t+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(t+=' onblur="this.style.cssText = this.style.cssText;" ondragstart="return false;"');t=t+' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">';var n=CKEDITOR.addTemplate("menuItem",t+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{shortcutHtml}{arrowHtml}</span></a><span id="{id}_description" class="cke_voice_label" aria-hidden="false">{ariaShortcut}</span></span>'),i=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>'),o=CKEDITOR.addTemplate("menuShortcut",'<span class="cke_menubutton_label cke_menubutton_shortcut">{shortcut}</span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(e,t){t=this._.definition=t||{},this.id=CKEDITOR.tools.getNextId(),this.editor=e,this.items=[],this._.listeners=[],this._.level=t.level||1;var n=CKEDITOR.tools.extend({},t.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),i=n.block.attributes=n.attributes||{};!i.role&&(i.role="menu"),this._.panelDefinition=n},_:{onShow:function(){var e=this.editor.getSelection(),t=e&&e.getStartElement(),n=this.editor.elementPath(),i=this._.listeners;this.removeAll();for(var o=0;o<i.length;o++){var r=i[o](t,e,n);if(r)for(var a in r){var s=this.editor.getMenuItem(a);!s||s.command&&!this.editor.getCommand(s.command).state||(s.state=r[a],this.add(s))}}},onClick:function(e){this.hide(),e.onClick?e.onClick():e.command&&this.editor.execCommand(e.command)},onEscape:function(e){var t=this.parent;return t?t._.panel.hideChild(1):27==e&&this.hide(1),!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(e){var t=this._.subMenu,n=this.items[e];if(n=n.getItems&&n.getItems()){for(var i in t?t.removeAll():((t=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({}
166,this._.definition,{level:this._.level+1},!0))).parent=this,t._.onClick=CKEDITOR.tools.bind(this._.onClick,this)),n){var o=this.editor.getMenuItem(i);o&&(o.state=n[i],t.add(o))}var r=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+String(e));setTimeout(function(){t.show(r,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(e){e.order||(e.order=this.items.length),this.items.push(e)},removeAll:function(){this.items=[]},show:function(t,n,i,o){if(this.parent||(this._.onShow(),this.items.length)){n=n||("rtl"==this.editor.lang.dir?2:1);var r=this.items,a=this.editor,s=this._.panel,l=this._.element;if(!s)(s=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level)).onEscape=CKEDITOR.tools.bind(function(e){if(!1===this._.onEscape(e))return!1},this),s.onShow=function(){s._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")},s.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this),(l=s.addBlock(this.id,this._.panelDefinition.block)).autoSize=!0,(d=l.keys)[40]="next",d[9]="next",d[38]="prev",d[CKEDITOR.SHIFT+9]="prev",d["rtl"==a.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click",d[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(d[13]="mouseup"),(d=(l=this._.element=l.element).getDocument()).getBody().setStyle("overflow","hidden"),d.getElementsByTag("html").getItem(0).setStyle("overflow","hidden"),this._.itemOverFn=CKEDITOR.tools.addFunction(function(e){clearTimeout(this._.showSubTimeout),this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,a.config.menu_subMenuDelay||400,this,[e])},this),this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this),this._.itemClickFn=CKEDITOR.tools.addFunction(function(e){var t=this.items[e];t.state==CKEDITOR.TRISTATE_DISABLED?this.hide(1):t.getItems?this._.showSubMenu(e):this._.onClick(t)},this);e(r);for(var d=['<div class="cke_menu'+((d=a.elementPath())&&d.direction()!=a.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],c=r.length,u=c&&r[0].group,h=0;h<c;h++){var f=r[h];u!=f.group&&(d.push('<div class="cke_menuseparator" role="separator"></div>'),u=f.group),f.render(this,h,d)}d.push("</div>"),l.setHtml(d.join("")),CKEDITOR.ui.fire("ready",this),this.parent?this.parent._.panel.showAsChild(s,this.id,t,n,i,o):s.showBlock(this.id,t,n,i,o),a.fire("menuShow",[s])}},addListener:function(e){this._.listeners.push(e)},hide:function(e){this._.onHide&&this._.onHide(),this._.panel&&this._.panel.hide(e)}}}),CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(e,t,n){CKEDITOR.tools.extend(this,n,{order:0,className:"cke_menubutton__"+t}),this.group=e._.menuGroups[this.group],this.editor=e,this.name=t},proto:{render:function(e,t,r){var a,s,l=e.id+String(t),d="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,c="",u=this.editor,h=d==CKEDITOR.TRISTATE_ON?"on":d==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(c=' aria-checked="'+(d==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var f=this.getItems,p="&#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",m=this.name;this.icon&&!/\./.test(this.icon)&&(m=this.icon),this.command&&(a=u.getCommand(this.command),(a=u.getCommandKeystroke(a))&&(s=CKEDITOR.tools.keystrokeToString(u.lang.common.keyboard,a))),e={id:l,name:this.name,iconName:m,label:this.label,cls:this.className||"",state:h,hasPopup:f?"true":"false",disabled:d==CKEDITOR.TRISTATE_DISABLED,title:this.label+(s?" ("+s.display+")":""),ariaShortcut:s?u.lang.common.keyboardShortcut+" "+s.aria:"",href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:e._.itemOverFn,moveOutFn:e._.itemOutFn,clickFn:e._.itemClickFn,index:t,iconStyle:CKEDITOR.skin.getIconStyle(m,"rtl"==this.editor.lang.dir,m==this.icon?null:this.icon,this.iconOffset),shortcutHtml:s?o.output({shortcut:s.display}):"",arrowHtml:f?i.output({label:p}):"",role:this.role?this.role:"menuitem",ariaChecked:c},n.output(e,r)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(e){this.base.call(this,e,{panel:{className:"cke_menu_panel",attributes:{"aria-label":e.lang.contextmenu.options}}})},proto:{addTarget:function(e,t){if(e.on("contextmenu",function(e){e=e.data;var i=CKEDITOR.env.webkit?n:CKEDITOR.env.mac?e.$.metaKey:e.$.ctrlKey;if(!t||!i){if(e.preventDefault(),CKEDITOR.env.mac&&CKEDITOR.env.webkit){i=this.editor;(o=new CKEDITOR.dom.elementPath(e.getTarget(),i.editable()).contains(function(e){return e.hasAttribute("contenteditable")},!0))&&"false"==o.getAttribute("contenteditable")&&i.getSelection().fake(o)}var o=e.getTarget().getDocument(),r=e.getTarget().getDocument().getDocumentElement(),a=(i=!o.equals(CKEDITOR.document),o=o.getWindow().getScrollPosition(),i?e.$.clientX:e.$.pageX||o.x+e.$.clientX),s=i?e.$.clientY:e.$.pageY||o.y+e.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(r,null,a,s)},CKEDITOR.env.ie?200:0,this)}},this),CKEDITOR.env.webkit){var n,i=function(){n=0};
166e.on("keydown",function(e){n=CKEDITOR.env.mac?e.data.$.metaKey:e.data.$.ctrlKey}),e.on("keyup",i),e.on("contextmenu",i)}},open:function(e,t,n,i){!1!==this.editor.config.enableContextMenu&&(this.editor.focus(),e=e||CKEDITOR.document.getDocumentElement(),this.editor.selectionChange(1),this.show(e,t,n,i))}}})},beforeInit:function(e){var t=e.contextMenu=new CKEDITOR.plugins.contextMenu(e);e.on("contentDom",function(){t.addTarget(e.editable(),!1!==e.config.browserContextMenuOnCtrl)}),e.addCommand("contextMenu",{exec:function(){e.contextMenu.open(e.document.getBody())}}),e.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu"),e.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),function(){function e(e){var t=(e=e.data)&&e.$;return!(!e||!t)&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?1===t.button:0===t.button)}function t(e,t,n,i){var o=new CKEDITOR.dom.walker(e);if(!(e=e.startContainer.getAscendant(t,!0)||e.endContainer.getAscendant(t,!0))||(n(e),!i))for(;(e=o.next())&&(!(e=e.getAscendant(t,!0))||(n(e),!i)););}function n(e,t){var n={ul:"ol",ol:"ul"};return-1!==o(t,function(t){return t.element===e||t.element===n[e]})}function i(e){this.styles=null,this.sticky=!1,this.editor=e,this.filter=new CKEDITOR.filter(e.config.copyFormatting_allowRules),!0===e.config.copyFormatting_allowRules&&(this.filter.disabled=!0),e.config.copyFormatting_disallowRules&&this.filter.disallow(e.config.copyFormatting_disallowRules)}var o=CKEDITOR.tools.indexOf,r=!1;CKEDITOR.plugins.add("copyformatting",{lang:"az,de,en,it,ja,nb,nl,oc,pl,pt-br,ru,sv,tr,zh,zh-cn",icons:"copyformatting",hidpi:!0,init:function(t){var i=CKEDITOR.plugins.copyformatting;i._addScreenReaderContainer(),r||(CKEDITOR.document.appendStyleSheet(this.path+"styles/copyformatting.css"),r=!0),t.addContentsCss&&t.addContentsCss(this.path+"styles/copyformatting.css"),t.copyFormatting=new i.state(t),t.addCommand("copyFormatting",i.commands.copyFormatting),t.addCommand("applyFormatting",i.commands.applyFormatting),t.ui.addButton("CopyFormatting",{label:t.lang.copyformatting.label,command:"copyFormatting",toolbar:"cleanup,0"}),t.on("contentDom",function(){var n=t.editable(),i=n.isInline()?n:t.document,o=t.ui.get("CopyFormatting");n.attachListener(i,"mouseup",function(n){e(n)&&t.execCommand("applyFormatting")}),n.attachListener(CKEDITOR.document,"mouseup",function(i){var o=t.getCommand("copyFormatting");e(i)&&o.state===CKEDITOR.TRISTATE_ON&&!n.contains(i.data.getTarget())&&t.execCommand("copyFormatting")}),o&&(i=CKEDITOR.document.getById(o._.id),n.attachListener(i,"dblclick",function(){t.execCommand("copyFormatting",{sticky:!0})}),n.attachListener(i,"mouseup",function(e){e.data.stopPropagation()}))}),t.config.copyFormatting_keystrokeCopy&&t.setKeystroke(t.config.copyFormatting_keystrokeCopy,"copyFormatting"),t.on("key",function(e){var n=t.getCommand("copyFormatting");(e=e.data.domEvent).getKeystroke&&27===e.getKeystroke()&&n.state===CKEDITOR.TRISTATE_ON&&t.execCommand("copyFormatting")}),t.copyFormatting.on("extractFormatting",function(e){var n=e.data.element;return n.contains(t.editable())||n.equals(t.editable())?e.cancel():(n=i._convertElementToStyleDef(n),t.copyFormatting.filter.check(new CKEDITOR.style(n),!0,!0)?void(e.data.styleDef=n):e.cancel())}),t.copyFormatting.on("applyFormatting",function(e){if(!e.data.preventFormatStripping){var r,a,s=e.data.range,l=i._extractStylesFromRange(t,s),d=i._determineContext(s);if(t.copyFormatting._isContextAllowed(d))for(a=0;a<l.length;a++)d=l[a],r=s.createBookmark(),-1===o(i.preservedElements,d.element)?CKEDITOR.env.webkit&&!CKEDITOR.env.chrome?l[a].removeFromRange(e.data.range,e.editor):l[a].remove(e.editor):n(d.element,e.data.styles)&&i._removeStylesFromElementInRange(s,d.element),s.moveToBookmark(r)}}),t.copyFormatting.on("applyFormatting",function(e){var n=CKEDITOR.plugins.copyformatting,i=n._determineContext(e.data.range);"list"===i&&t.copyFormatting._isContextAllowed("list")?n._applyStylesToListContext(e.editor,e.data.range,e.data.styles):"table"===i&&t.copyFormatting._isContextAllowed("table")?n._applyStylesToTableContext(e.editor,e.data.range,e.data.styles):t.copyFormatting._isContextAllowed("text")&&n._applyStylesToTextContext(e.editor,e.data.range,e.data.styles)},null,null,999)}}),i.prototype._isContextAllowed=function(e){var t=this.editor.config.copyFormatting_allowedContexts;return!0===t||-1!==o(t,e)},CKEDITOR.event.implementOn(i.prototype),CKEDITOR.plugins.copyformatting={state:i,inlineBoundary:"h1 h2 h3 h4 h5 h6 p div".split(" "),excludedAttributes:["id","style","href","data-cke-saved-href","dir"],elementsForInlineTransform:["li"],excludedElementsFromInlineTransform:["table","thead","tbody","ul","ol"],excludedAttributesFromInlineTransform:["value","type"],preservedElements:"ul ol li td th tr thead tbody table".split(" "),breakOnElements:["ul","ol","table"],_initialKeystrokePasteCommand:null,commands:{copyFormatting:{exec:function(e,t){var n=CKEDITOR.plugins.copyformatting,i=e.copyFormatting,o=!!t&&"keystrokeHandler"==t.from,r=!!t&&(t.sticky||o),a=n._getCursorContainer(e),s=CKEDITOR.document.getDocumentElement();if(this.state===CKEDITOR.TRISTATE_ON)return i.styles=null,i.sticky=!1,a.removeClass("cke_copyformatting_active"),s.removeClass("cke_copyformatting_disabled"),s.removeClass("cke_copyformatting_tableresize_cursor"),n._putScreenReaderMessage(e,"canceled"),n._detachPasteKeystrokeHandler(e),this.setState(CKEDITOR.TRISTATE_OFF);i.styles=n._extractStylesFromElement(e,e.elementPath().lastElement),this.setState(CKEDITOR.TRISTATE_ON),o||(a.addClass("cke_copyformatting_active"),s.addClass("cke_copyformatting_tableresize_cursor"),e.config.copyFormatting_outerCursor&&s.addClass("cke_copyformatting_disabled")),i.sticky=r,n._putScreenReaderMessage(e,"copied"),n._attachPasteKeystrokeHandler(e)}},applyFormatting:{editorFocus:!1,exec:function(e,t){var n=e.getCommand("copyFormatting"),i=!!t&&"keystrokeHandler"==t.from,o=CKEDITOR.plugins.copyformatting,r=e.copyFormatting,a=o._getCursorContainer(e),s=CKEDITOR.document.getDocumentElement();if(i||n.state===CKEDITOR.TRISTATE_ON){if(i&&!r.styles)return o._putScreenReaderMessage(e,"failed"),o._detachPasteKeystrokeHandler(e),!1;i=o._applyFormat(e,r.styles),r.sticky||(r.styles=null,a.removeClass("cke_copyformatting_active"),s.removeClass("cke_copyformatting_disabled"),s.removeClass("cke_copyformatting_tableresize_cursor"),n.setState(CKEDITOR.TRISTATE_OFF),o._detachPasteKeystrokeHandler(e)),o._putScreenReaderMessage(e,i?"applied":"canceled")}}}},_getCursorContainer:function(e){return e.elementMode===CKEDITOR.ELEMENT_MODE_INLINE?e.editable():e.editable().getParent()},_convertElementToStyleDef:function(e){var t=CKEDITOR.tools,n=e.getAttributes(CKEDITOR.plugins.copyformatting.excludedAttributes);t=t.parseCssText(e.getAttribute("style"),!0,!0);return{element:e.getName(),type:CKEDITOR.STYLE_INLINE,attributes:n,styles:t}},_extractStylesFromElement:function(e,t){var n={},i=[];do{if(t.type===CKEDITOR.NODE_ELEMENT&&!t.hasAttribute("data-cke-bookmark")&&(n.element=t,e.copyFormatting.fire("extractFormatting",n,e)&&n.styleDef&&i.push(new CKEDITOR.style(n.styleDef)),t.getName&&-1!==o(CKEDITOR.plugins.copyformatting.breakOnElements,t.getName())))break}while((t=t.getParent())&&t.type===CKEDITOR.NODE_ELEMENT);return i},_extractStylesFromRange:function(e,t){for(var n,i=[],o=new CKEDITOR.dom.walker(t);n=o.next();)i=i.concat(CKEDITOR.plugins.copyformatting._extractStylesFromElement(e,n));return i},_removeStylesFromElementInRange:function(e,t){for(var n,i=-1!==o(["ol","ul","table"],t),r=new CKEDITOR.dom.walker(e);
166(n=r.next())&&(!(n=n.getAscendant(t,!0))||(n.removeAttributes(n.getAttributes()),!i)););},_getSelectedWordOffset:function(e){function t(e,t){return e[t?"getPrevious":"getNext"](function(e){return e.type!==CKEDITOR.NODE_COMMENT})}function n(e){return e.type==CKEDITOR.NODE_ELEMENT?(e=e.getHtml().replace(/<span.*?> <\/span>/g,"")).replace(/<.*?>/g,""):e.getText()}function i(e,r){var a,s,l=e,d=/\s/g,c="p br ol ul li td th div caption body".split(" "),u=!1,h=!1;do{for(a=t(l,r);!a&&l.getParent();){if(l=l.getParent(),-1!==o(c,l.getName())){h=u=!0;break}a=t(l,r)}if(a&&a.getName&&-1!==o(c,a.getName())){u=!0;break}l=a}while(l&&l.getStyle&&("none"==l.getStyle("display")||!l.getText()));for(l||(l=e);l.type!==CKEDITOR.NODE_TEXT;)l=!u||r||h?l.getChild(0):l.getChild(l.getChildCount()-1);for(c=n(l);null!=(h=d.exec(c))&&(s=h.index,r););if("number"!=typeof s&&!u)return i(l,r);if(u)r?s=0:s=(h=(d=/([\.\b]*$)/).exec(c))?h.index:c.length;else if(r&&(s+=1)>c.length)return i(l);return{node:l,offset:s}}var r,a,s,l,d,c=/\b\w+\b/gi;for(r=n(s=l=d=e.startContainer);null!=(a=c.exec(r));)if(a.index+a[0].length>=e.startOffset)return e=a.index,c=a.index+a[0].length,0===a.index&&(l=(a=i(s,!0)).node,e=a.offset),c>=r.length&&(d=(r=i(s)).node,c=r.offset),{startNode:l,startOffset:e,endNode:d,endOffset:c};return null},_filterStyles:function(e){var t,n,i=CKEDITOR.tools.isEmpty,o=[];for(n=0;n<e.length;n++)t=e[n]._.definition,-1!==CKEDITOR.tools.indexOf(CKEDITOR.plugins.copyformatting.inlineBoundary,t.element)&&(t.element=e[n].element="span"),"span"===t.element&&i(t.attributes)&&i(t.styles)||o.push(e[n]);return o},_determineContext:function(e){function t(t){var n,i=new CKEDITOR.dom.walker(e);if(e.startContainer.getAscendant(t,!0)||e.endContainer.getAscendant(t,!0))return!0;for(;n=i.next();)if(n.getAscendant(t,!0))return!0}return t({ul:1,ol:1})?"list":t("table")?"table":"text"},_applyStylesToTextContext:function(e,t,n){var i,r,a=CKEDITOR.plugins.copyformatting,s=a.excludedAttributesFromInlineTransform;for(CKEDITOR.env.webkit&&!CKEDITOR.env.chrome&&e.getSelection().selectRanges([t]),i=0;i<n.length;i++)if(t=n[i],-1===o(a.excludedElementsFromInlineTransform,t.element)){if(-1!==o(a.elementsForInlineTransform,t.element))for(t.element=t._.definition.element="span",r=0;r<s.length;r++)t._.definition.attributes[s[r]]&&delete t._.definition.attributes[s[r]];t.apply(e)}},_applyStylesToListContext:function(e,n,i){var o,r,a;for(a=0;a<i.length;a++)o=i[a],r=n.createBookmark(),"ol"===o.element||"ul"===o.element?t(n,{ul:1,ol:1},function(e){var t=o;e.getName()!==t.element&&e.renameNode(t.element),t.applyToObject(e)},!0):"li"===o.element?t(n,"li",function(e){o.applyToObject(e)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(e,n,[o]),n.moveToBookmark(r)},_applyStylesToTableContext:function(e,n,i){function r(e,t){e.getName()!==t.element&&((t=t.getDefinition()).element=e.getName(),t=new CKEDITOR.style(t)),t.applyToObject(e)}var a,s,l;for(l=0;l<i.length;l++)a=i[l],s=n.createBookmark(),-1!==o(["table","tr"],a.element)?t(n,a.element,function(e){a.applyToObject(e)}):-1!==o(["td","th"],a.element)?t(n,{td:1,th:1},function(e){r(e,a)}):-1!==o(["thead","tbody"],a.element)?t(n,{thead:1,tbody:1},function(e){r(e,a)}):CKEDITOR.plugins.copyformatting._applyStylesToTextContext(e,n,[a]),n.moveToBookmark(s)},_applyFormat:function(e,t){var n,i,o=e.getSelection().getRanges()[0],r=CKEDITOR.plugins.copyformatting;if(!o)return!1;if(o.collapsed){if(i=e.getSelection().createBookmarks(),!(n=r._getSelectedWordOffset(o)))return;(o=e.createRange()).setStart(n.startNode,n.startOffset),o.setEnd(n.endNode,n.endOffset),o.select()}return t=r._filterStyles(t),!!e.copyFormatting.fire("applyFormatting",{styles:t,range:o,preventFormatStripping:!1},e)&&(i&&e.getSelection().selectBookmarks(i),!0)},_putScreenReaderMessage:function(e,t){var n=this._getScreenReaderContainer();n&&n.setText(e.lang.copyformatting.notification[t])},_addScreenReaderContainer:function(){return this._getScreenReaderContainer()?this._getScreenReaderContainer():CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?void 0:CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml('<div class="cke_screen_reader_only cke_copyformatting_notification"><div aria-live="polite"></div></div>')).getChild(0)},_getScreenReaderContainer:function(){if(!CKEDITOR.env.ie6Compat&&!CKEDITOR.env.ie7Compat)return CKEDITOR.document.getBody().findOne(".cke_copyformatting_notification div[aria-live]")},_attachPasteKeystrokeHandler:function(e){var t=e.config.copyFormatting_keystrokePaste;t&&(this._initialKeystrokePasteCommand=e.keystrokeHandler.keystrokes[t],e.setKeystroke(t,"applyFormatting"))},_detachPasteKeystrokeHandler:function(e){var t=e.config.copyFormatting_keystrokePaste;t&&e.setKeystroke(t,this._initialKeystrokePasteCommand||!1)}},CKEDITOR.config.copyFormatting_outerCursor=!0,CKEDITOR.config.copyFormatting_allowRules="b s u i em strong span p div td th ol ul li(*)[*]{*}",CKEDITOR.config.copyFormatting_disallowRules="*[data-cke-widget*,data-widget*,data-cke-realelement](cke_widget*)",CKEDITOR.config.copyFormatting_allowedContexts=!0,CKEDITOR.config.copyFormatting_keystrokeCopy=CKEDITOR.CTRL+CKEDITOR.SH
166IFT+67,CKEDITOR.config.copyFormatting_keystrokePaste=CKEDITOR.CTRL+CKEDITOR.SHIFT+86}(),CKEDITOR.plugins.add("div",{requires:"dialog",init:function(e){if(!e.blockless){var t=e.lang.div,n="div(*)";CKEDITOR.dialog.isTabEnabled(e,"editdiv","advanced")&&(n+=";div[dir,id,lang,title]{*}"),e.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:n,requiredContent:"div",contextSensitive:!0,contentTransformations:[["div: alignmentToStyle"]],refresh:function(e,t){this.setState("div"in(e.config.div_wrapTable?t.root:t.blockLimit).getDtd()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})),e.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"})),e.addCommand("removediv",{requiredContent:"div",exec:function(e){function t(t){(t=CKEDITOR.plugins.div.getSurroundDiv(e,t))&&!t.data("cke-div-added")&&(a.push(t),t.data("cke-div-added"))}for(var n,i=e.getSelection(),o=i&&i.getRanges(),r=i.createBookmarks(),a=[],s=0;s<o.length;s++)(n=o[s]).collapsed?t(i.getStartElement()):((n=new CKEDITOR.dom.walker(n)).evaluator=t,n.lastForward());for(s=0;s<a.length;s++)a[s].remove(!0);i.selectBookmarks(r)}}),e.ui.addButton&&e.ui.addButton("CreateDiv",{label:t.toolbar,command:"creatediv",toolbar:"blocks,50"}),e.addMenuItems&&(e.addMenuItems({editdiv:{label:t.edit,command:"editdiv",group:"div",order:1},removediv:{label:t.remove,command:"removediv",group:"div",order:5}}),e.contextMenu&&e.contextMenu.addListener(function(t){return!t||t.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(e)?{editdiv:CKEDITOR.TRISTATE_OFF,removediv:CKEDITOR.TRISTATE_OFF}:null})),CKEDITOR.dialog.add("creatediv",this.path+"dialogs/div.js"),CKEDITOR.dialog.add("editdiv",this.path+"dialogs/div.js")}}}),CKEDITOR.plugins.div={getSurroundDiv:function(e,t){var n=e.elementPath(t);return e.elementPath(n.blockLimit).contains(function(e){return e.is("div")&&!e.isReadOnly()},1)}},CKEDITOR.plugins.add("resize",{init:function(e){function t(t){var n=s.width,o=s.height,l=n+(t.data.$.screenX-a.x)*("rtl"==r?-1:1);t=o+(t.data.$.screenY-a.y),d&&(n=Math.max(i.resize_minWidth,Math.min(l,i.resize_maxWidth))),c&&(o=Math.max(i.resize_minHeight,Math.min(t,i.resize_maxHeight))),e.resize(d?n:null,o)}function n(){CKEDITOR.document.removeListener("mousemove",t),CKEDITOR.document.removeListener("mouseup",n),e.document&&(e.document.removeListener("mousemove",t),e.document.removeListener("mouseup",n))}var i=e.config,o=e.ui.spaceId("resizer"),r=e.element?e.element.getDirection(1):"ltr";if(!i.resize_dir&&(i.resize_dir="vertical"),void 0===i.resize_maxWidth&&(i.resize_maxWidth=3e3),void 0===i.resize_maxHeight&&(i.resize_maxHeight=3e3),void 0===i.resize_minWidth&&(i.resize_minWidth=750),void 0===i.resize_minHeight&&(i.resize_minHeight=250),!1!==i.resize_enabled){var a,s,l=null,d=("both"==i.resize_dir||"horizontal"==i.resize_dir)&&i.resize_minWidth!=i.resize_maxWidth,c=("both"==i.resize_dir||"vertical"==i.resize_dir)&&i.resize_minHeight!=i.resize_maxHeight,u=CKEDITOR.tools.addFunction(function(o){l||(l=e.getResizable()),s={width:l.$.offsetWidth||0,height:l.$.offsetHeight||0},a={x:o.screenX,y:o.screenY},i.resize_minWidth>s.width&&(i.resize_minWidth=s.width),i.resize_minHeight>s.height&&(i.resize_minHeight=s.height),CKEDITOR.document.on("mousemove",t),CKEDITOR.document.on("mouseup",n),e.document&&(e.document.on("mousemove",t),e.document.on("mouseup",n)),o.preventDefault&&o.preventDefault()});e.on("destroy",function(){CKEDITOR.tools.removeFunction(u)}),e.on("uiSpace",function(t){if("bottom"==t.data.space){var n="";d&&!c&&(n=" cke_resizer_horizontal"),!d&&c&&(n=" cke_resizer_vertical");var i='<span id="'+o+'" class="cke_resizer'+n+" cke_resizer_"+r+'" title="'+CKEDITOR.tools.htmlEncode(e.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+u+', event)">'+("ltr"==r?"\u25e2":"\u25e3")+"</span>";"ltr"==r&&"ltr"==n?t.data.html+=i:t.data.html=i+t.data.html}},e,null,100),e.on("maximize",function(t){e.ui.space("resizer")[t.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){function e(e,n){function o(t){var n;(t=l.list[t]).equals(e.editable())||"true"==t.getAttribute("contenteditable")?((n=e.createRange()).selectNodeContents(t),n=n.select()):(n=e.getSelection()).selectElement(t),CKEDITOR.env.ie&&e.fire("selectionChange",{selection:n,path:new CKEDITOR.dom.elementPath(t)}),e.focus()}function r(){a&&a.setHtml('<span class="cke_path_empty"> </span>'),delete l.list}var a,s=e.ui.spaceId("path"),l=e._.elementsPath,d=l.idBase;
166n.html+='<span id="'+s+'_label" class="cke_voice_label">'+e.lang.elementspath.eleLabel+'</span><span id="'+s+'" class="cke_path" role="group" aria-labelledby="'+s+'_label"><span class="cke_path_empty"> </span></span>',e.on("uiReady",function(){var t=e.ui.space("path");t&&e.focusManager.add(t,1)}),l.onClick=o;var c=CKEDITOR.tools.addFunction(o),u=CKEDITOR.tools.addFunction(function(t,n){var i,r=l.idBase;switch(n=new CKEDITOR.dom.event(n),i="rtl"==e.lang.dir,n.getKeystroke()){case i?39:37:case 9:return(i=CKEDITOR.document.getById(r+(t+1)))||(i=CKEDITOR.document.getById(r+"0")),i.focus(),!1;case i?37:39:case CKEDITOR.SHIFT+9:return(i=CKEDITOR.document.getById(r+(t-1)))||(i=CKEDITOR.document.getById(r+(l.list.length-1))),i.focus(),!1;case 27:return e.focus(),!1;case 13:case 32:return o(t),!1}return!0});e.on("selectionChange",function(){for(var t,n=[],o=l.list=[],r=[],h=l.filters,f=!0,p=e.elementPath().elements,m=p.length;m--;){var g=p[m],v=0;t=g.data("cke-display-name")?g.data("cke-display-name"):g.data("cke-real-element-type")?g.data("cke-real-element-type"):g.getName(),(f=g.hasAttribute("contenteditable")?"true"==g.getAttribute("contenteditable"):f)||g.hasAttribute("contenteditable")||(v=1);for(var y=0;y<h.length;y++){var _=h[y](g,t);if(!1===_){v=1;break}t=_||t}v||(o.unshift(g),r.unshift(t))}for(o=o.length,h=0;h<o;h++)t=r[h],f=e.lang.elementspath.eleTitle.replace(/%1/,t),t=i.output({id:d+h,label:f,text:t,jsTitle:"javascript:void('"+t+"')",index:h,keyDownFn:u,clickFn:c}),n.unshift(t);a||(a=CKEDITOR.document.getById(s)),(r=a).setHtml(n.join("")+'<span class="cke_path_empty"> </span>'),e.fire("elementsPathUpdate",{space:r})}),e.on("readOnly",r),e.on("contentDomUnload",r),e.addCommand("elementsPathFocus",t.toolbarFocus),e.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}var t={toolbarFocus:{editorFocus:!1,readOnly:1,exec:function(e){(e=CKEDITOR.document.getById(e._.elementsPath.idBase+"0"))&&e.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}}},n="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(n+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(n+=' onblur="this.style.cssText = this.style.cssText;"');var i=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+n+' hidefocus="true" onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(t){t._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]},t.on("uiSpace",function(n){"bottom"==n.data.space&&e(t,n.data)})}})}(),function(){function e(e,t,n){if(n=e.config.forceEnterMode||n,"wysiwyg"==e.mode){t||(t=e.activeEnterMode);var i=e.elementPath();i&&!i.isContextFor("p")&&(t=CKEDITOR.ENTER_BR,n=1),e.fire("saveSnapshot"),t==CKEDITOR.ENTER_BR?a(e,t,null,n):s(e,t,null,n),e.fire("saveSnapshot")}}function t(e){for(var t=(e=e.getSelection().getRanges(!0)).length-1;0<t;t--)e[t].deleteContents();return e[0]}function n(e){var t=e.startContainer.getAscendant(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&"true"==e.getAttribute("contenteditable")},!0);return e.root.equals(t)?e:((t=new CKEDITOR.dom.range(t)).moveToRange(e),t)}CKEDITOR.plugins.add("enterkey",{init:function(t){t.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(t){e(t)}}),t.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(t){e(t,t.activeShiftEnterMode,1)}}
166),t.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var i=CKEDITOR.dom.walker.whitespaces(),o=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(e,r,s,d){if(s=s||t(e)){var c,u=(s=n(s)).document,h=s.checkStartOfBlock(),f=s.checkEndOfBlock(),p=e.elementPath(s.startContainer),m=p.block,g=r==CKEDITOR.ENTER_DIV?"div":"p";if(h&&f){if(m&&(m.is("li")||m.getParent().is("li"))){m.is("li")||(m=m.getParent()),c=(s=m.getParent()).getParent(),d=!m.hasPrevious();var v=!m.hasNext(),y=(g=e.getSelection()).createBookmarks(),_=(h=m.getDirection(1),f=m.getAttribute("class"),m.getAttribute("style")),b=c.getDirection(1)!=h;if(e=e.enterMode!=CKEDITOR.ENTER_BR||b||_||f,c.is("li"))d||v?(d&&v&&s.remove(),m[v?"insertAfter":"insertBefore"](c)):m.breakParent(c);else{if(e)p.block.is("li")?(c=u.createElement(r==CKEDITOR.ENTER_P?"p":"div"),b&&c.setAttribute("dir",h),_&&c.setAttribute("style",_),f&&c.setAttribute("class",f),m.moveChildren(c)):c=p.block,d||v?c[d?"insertBefore":"insertAfter"](s):(m.breakParent(s),c.insertAfter(s));else if(m.appendBogus(!0),d||v)for(;u=m[d?"getFirst":"getLast"]();)u[d?"insertBefore":"insertAfter"](s);else for(m.breakParent(s);u=m.getLast();)u.insertAfter(s);m.remove()}return void g.selectBookmarks(y)}if(m&&m.getParent().is("blockquote"))return m.breakParent(m.getParent()),m.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||m.getPrevious().remove(),m.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||m.getNext().remove(),s.moveToElementEditStart(m),void s.select()}else if(m&&m.is("pre")&&!f)return void a(e,r,s,d);if(h=s.splitBlock(g)){if(r=h.previousBlock,m=h.nextBlock,p=h.wasStartOfBlock,e=h.wasEndOfBlock,m?(y=m.getParent()).is("li")&&(m.breakParent(y),m.move(m.getNext(),1)):r&&(y=r.getParent())&&y.is("li")&&(r.breakParent(y),y=r.getNext(),s.moveToElementEditStart(y),r.move(r.getPrevious())),p||e){if(r?(r.is("li")||!l.test(r.getName())&&!r.is("pre"))&&(c=r.clone()):m&&(c=m.clone()),c?d&&!c.is("li")&&c.renameNode(g):y&&y.is("li")?c=y:(c=u.createElement(g),r&&(v=r.getDirection())&&c.setAttribute("dir",v)),u=h.elementPath)for(d=0,g=u.elements.length;d<g&&(!(y=u.elements[d]).equals(u.block)&&!y.equals(u.blockLimit));d++)CKEDITOR.dtd.$removeEmpty[y.getName()]&&(y=y.clone(),c.moveChildren(y),c.append(y));c.appendBogus(),c.getParent()||s.insertNode(c),c.is("li")&&c.removeAttribute("value"),!CKEDITOR.env.ie||!p||e&&r.getChildCount()||(s.moveToElementEditStart(e?r:c),s.select()),s.moveToElementEditStart(p&&!e?m:c)}else m.is("li")&&((c=s.clone()).selectNodeContents(m),(c=new CKEDITOR.dom.walker(c)).evaluator=function(e){return!(o(e)||i(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in CKEDITOR.dtd.$inline&&!(e.getName()in CKEDITOR.dtd.$empty))},(y=c.next())&&y.type==CKEDITOR.NODE_ELEMENT&&y.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?u.createElement("br"):u.createText("\xa0")).insertBefore(y)),m&&s.moveToElementEditStart(m);s.select(),s.scrollIntoView()}}},enterBr:function(e,n,i,o){if(i=i||t(e)){var r=i.document,a=i.checkEndOfBlock(),d=new CKEDITOR.dom.elementPath(e.getSelection().getStartElement()),c=d.block,u=c&&d.block.getName();o||"li"!=u?(!o&&a&&l.test(u)?(a=c.getDirection())?((r=r.createElement("div")).setAttribute("dir",a),r.insertAfter(c),i.setStart(r,0)):(r.createElement("br").insertAfter(c),CKEDITOR.env.gecko&&r.createText("").insertAfter(c), 167i.setStartAt(c.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(e="pre"==u&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?r.createText("\r"):r.createElement("br"),i.deleteContents(),i.insertNode(e),CKEDITOR.env.needsBrFiller?(r.createText("\ufeff").insertAfter(e),a&&(c||d.blockLimit).appendBogus(),e.getNext().$.nodeValue="",i.setStartAt(e.getNext(),CKEDITOR.POSITION_AFTER_START)):i.setStartAt(e,CKEDITOR.POSITION_AFTER_END)),i.collapse(!0),i.select(),i.scrollIntoView()):s(e,n,i,o)}}};var r=CKEDITOR.plugins.enterkey,a=r.enterBr,s=r.enterBlock,l=/^h[1-6]$/}(),function(){function e(e,t){var n={},i=[],o={nbsp:"\xa0",shy:"\xad",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'};if(e=e.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(e,r){var a=t?"&"+r+";":o[r];return n[a]=t?o[r]:"&"+r+";",i.push(a),""}),!t&&e){e=e.split(",");var r,a=document.createElement("div");for(a.innerHTML="&"+e.join(";&")+";",r=a.innerHTML,a=null,a=0;a<r.length;a++){var s=r.charAt(a);n[s]="&"+e[a]+";",i.push(s)}}return n.regex=i.join(t?"|":""),n}CKEDITOR.plugins.add("entities",{afterInit:function(t){function n(e){return l[e]}function i(e){return"force"!=o.entities_processNumerical&&a[e]?a[e]:"&#"+e.charCodeAt(0)+";"}var o=t.config;if(t=(t=t.dataProcessor)&&t.htmlFilter){var r=[];!1!==o.basicEntities&&r.push("nbsp,gt,lt,amp"),o.entities&&(r.length&&r.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"),o.entities_latin&&r.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),o.entities_greek&&r.push("Alp
167ha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"),o.entities_additional&&r.push(o.entities_additional));var a=e(r.join(",")),s=a.regex?"["+a.regex+"]":"a^";delete a.regex,o.entities&&o.entities_processNumerical&&(s="[^ -~]|"+s);s=new RegExp(s,"g");var l=e("nbsp,gt,lt,amp,shy",!0),d=new RegExp(l.regex,"g");t.addRules({text:function(e){return e.replace(d,n).replace(s,i)}},{applyToAll:!0,excludeNestedEditable:!0})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,CKEDITOR.config.entities_additional="#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(e,t,n,i){n=n||"70%","string"==typeof(t=t||"80%")&&1<t.length&&"%"==t.substr(t.length-1,1)&&(t=parseInt(window.screen.width*parseInt(t,10)/100,10)),"string"==typeof n&&1<n.length&&"%"==n.substr(n.length-1,1)&&(n=parseInt(window.screen.height*parseInt(n,10)/100,10)),640>t&&(t=640),420>n&&(n=420);var o=parseInt((window.screen.height-n)/2,10),r=parseInt((window.screen.width-t)/2,10);i=(i||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+",width="+t+",height="+n+",top="+o+",left="+r;var a=window.open("",null,i,!0);if(!a)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(a.moveTo(r,o),a.resizeTo(t,n)),a.focus(),a.location.href=e}catch(l){window.open(e,null,i,!0)}return!0}}),function(){function e(e,t){var n=[];if(!t)return e;for(var i in t)n.push(i+"="+encodeURIComponent(t[i]));return e+(-1!=e.indexOf("?")?"&":"?")+n.join("&")}function t(e){return(e+="").charAt(0).toUpperCase()+e.substr(1)}function n(){var n=(o=this.getDialog()).getParentEditor();n._.filebrowserSe=this;var i=n.config["filebrowser"+t(o.getName())+"WindowWidth"]||n.config.filebrowserWindowWidth||"80%",o=n.config["filebrowser"+t(o.getName())+"WindowHeight"]||n.config.filebrowserWindowHeight||"70%",r=this.filebrowser.params||{};r.CKEditor=n.name,r.CKEditorFuncNum=n._.filebrowserFn,r.langCode||(r.langCode=n.langCode),r=e(this.filebrowser.url,r),n.popup(r,i,o,n.config.filebrowserWindowFeatures||n.config.fileBrowserWindowFeatures)}function i(){var e=this.getDialog();return e.getParentEditor()._.filebrowserSe=this,!(!e.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value||!e.getContentElement(this["for"][0],this["for"][1]).getAction())}function o(t,n,i){var o=i.params||{};o.CKEditor=t.name,o.CKEditorFuncNum=t._.filebrowserFn,o.langCode||(o.langCode=t.langCode),n.action=e(i.url,o),n.filebrowser=i}function r(e,a,s,l){if(l&&l.length)for(var d,c=l.length;c--;)if("hbox"!=(d=l[c]).type&&"vbox"!=d.type&&"fieldset"!=d.type||r(e,a,s,d.children),d.filebrowser)if("string"==typeof d.filebrowser&&(d.filebrowser={action:"fileButton"==d.type?"QuickUpload":"Browse",target:d.filebrowser}),"Browse"==d.filebrowser.action){var u=d.filebrowser.url;void 0===u&&(void 0===(u=e.config["filebrowser"+t(a)+"BrowseUrl"])&&(u=e.config.filebrowserBrowseUrl)),u&&(d.onClick=n,d.filebrowser.url=u,d.hidden=!1)}else if("QuickUpload"==d.filebrowser.action&&d["for"]&&(void 0===(u=d.filebrowser.url)&&(void 0===(u=e.config["filebrowser"+t(a)+"UploadUrl"])&&(u=e.config.filebrowserUploadUrl)),u)){var h=d.onClick;d.onClick=function(e){var t=e.sender;return(!h||!1!==h.call(t,e))&&(!!i.call(t,e)&&(e=t.getDialog().getContentElement(this["for"][0],this["for"][1]).getInputElement(),(t=new CKEDITOR.dom.element(e.$.form))&&((e=t.$.elements.ckCsrfToken)?e=new CKEDITOR.dom.element(e):((e=new CKEDITOR.dom.element("input")).setAttributes({name:"ckCsrfToken",type:"hidden"}),t.append(e)),e.setAttribute("value",CKEDITOR.tools.getCsrfToken())),!0))},d.filebrowser.url=u,d.hidden=!1,o(e,s.getContents(d["for"][0]).get(d["for"][1]),d.filebrowser)}}function a(e,t,n){if(-1!==n.indexOf(";")){n=n.split(";");for(var i=0;i<n.length;
167i++)if(a(e,t,n[i]))return!0;return!1}return(e=e.getContents(t).get(n).filebrowser)&&e.url}function s(e,t){var n=this._.filebrowserSe.getDialog(),i=this._.filebrowserSe["for"],o=this._.filebrowserSe.filebrowser.onSelect;i&&n.getContentElement(i[0],i[1]).reset(),"function"==typeof t&&!1===t.call(this._.filebrowserSe)||o&&!1===o.call(this._.filebrowserSe,e,t)||("string"==typeof t&&t&&alert(t),e&&(n=(i=this._.filebrowserSe).getDialog(),i=i.filebrowser.target||null)&&(i=i.split(":"),(o=n.getContentElement(i[0],i[1]))&&(o.setValue(e),n.selectPage(i[0]))))}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(e){e._.filebrowserFn=CKEDITOR.tools.addFunction(s,e),e.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}}),CKEDITOR.on("dialogDefinition",function(e){if(e.editor.plugins.filebrowser)for(var t,n=e.data.definition,i=0;i<n.contents.length;++i)(t=n.contents[i])&&(r(e.editor,e.data.name,n,t.elements),t.hidden&&t.filebrowser&&(t.hidden=!a(n,t.id,t.filebrowser)))})}(),CKEDITOR.plugins.add("find",{requires:"dialog",init:function(e){var t=e.addCommand("find",new CKEDITOR.dialogCommand("find"));t.canUndo=!1,t.readOnly=1,e.addCommand("replace",new CKEDITOR.dialogCommand("replace")).canUndo=!1,e.ui.addButton&&(e.ui.addButton("Find",{label:e.lang.find.find,command:"find",toolbar:"find,10"}),e.ui.addButton("Replace",{label:e.lang.find.replace,command:"replace",toolbar:"find,20"})),CKEDITOR.dialog.add("find",this.path+"dialogs/find.js"),CKEDITOR.dialog.add("replace",this.path+"dialogs/find.js")}}),CKEDITOR.config.find_highlight={element:"span",styles:{"background-color":"#004",color:"#fff"}},function(){function e(e,t){var n=i.exec(e),o=i.exec(t);if(n){if(!n[2]&&"px"==o[2])return o[1];if("px"==n[2]&&!o[2])return o[1]+"px"}return t}var t=CKEDITOR.htmlParser.cssStyle,n=CKEDITOR.tools.cssLength,i=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,o={elements:{$:function(n){var i=n.attributes;if((i=(i=(i=i&&i["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(i)))&&i.children[0])&&n.attributes["data-cke-resizable"]){var o=new t(n).rules;n=i.attributes;var r=o.width;o=o.height;r&&(n.width=e(n.width,r)),o&&(n.height=e(n.height,o))}return i}}};CKEDITOR.plugins.add("fakeobjects",{init:function(e){e.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(e){(e=(e=e.dataProcessor)&&e.htmlFilter)&&e.addRules(o,{applyToAll:!0})}}),CKEDITOR.editor.prototype.createFakeElement=function(e,i,o,r){var a=(a=this.lang.fakeobjects)[o]||a.unknown;return i={"class":i,"data-cke-realelement":encodeURIComponent(e.getOuterHtml()),"data-cke-real-node-type":e.type,alt:a,title:a,align:e.getAttribute("align")||""},CKEDITOR.env.hc||(i.src=CKEDITOR.tools.transparentImageData),o&&(i["data-cke-real-element-type"]=o),r&&(i["data-cke-resizable"]=r,o=new t,r=e.getAttribute("width"),e=e.getAttribute("height"),r&&(o.rules.width=n(r)),e&&(o.rules.height=n(e)),o.populate(i)),this.document.createElement("img",{attributes:i})},CKEDITOR.editor.prototype.createFakeParserElement=function(e,i,o,r){var a,s=(s=this.lang.fakeobjects)[o]||s.unknown;return a=new CKEDITOR.htmlParser.basicWriter,e.writeHtml(a),a=a.getHtml(),i={"class":i,"data-cke-realelement":encodeURIComponent(a),"data-cke-real-node-type":e.type,alt:s,title:s,align:e.attributes.align||""},CKEDITOR.env.hc||(i.src=CKEDITOR.tools.transparentImageData),o&&(i["data-cke-real-element-type"]=o),r&&(i["data-cke-resizable"]=r,r=e.attributes,e=new t,o=r.width,r=r.height,void 0!==o&&(e.rules.width=n(o)),void 0!==r&&(e.rules.height=n(r)),e.populate(i)),new CKEDITOR.htmlParser.element("img",i)},CKEDITOR.editor.prototype.restoreRealElement=function(t){if(t.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var n=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(t.data("cke-realelement")),this.document);if(t.data("cke-resizable")){var i=t.getStyle("width");t=t.getStyle("height"),i&&n.setAttribute("width",e(n.getAttribute("width"),i)),t&&n.setAttribute("height",e(n.getAttribute("height"),t))}return n}}(),function(){function e(e){return"application/x-shockwave-flash"==(e=e.attributes).type||n.test(e.src||"")}function t(e,t){return e.createFakeParserElement(t,"cke_flash","flash",!0)}var n=/\.swf(?:$|\?)/i;CKEDITOR.plugins.add("flash",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_flash{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(e){var t="object[classid,codebase,height,hspace,vspace,width];param[name,value];embed[height,hspace,pluginspage,src,type,vspace,width]";CKEDITOR.dialog.isTabEnabled(e,"flash","properties")&&(t+=";object[align];
167 embed[allowscriptaccess,quality,scale,wmode]"),CKEDITOR.dialog.isTabEnabled(e,"flash","advanced")&&(t+=";object[id]{*}; embed[bgcolor]{*}(*)"),e.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:t,requiredContent:"embed"})),e.ui.addButton&&e.ui.addButton("Flash",{label:e.lang.common.flash,command:"flash",toolbar:"insert,20"}),CKEDITOR.dialog.add("flash",this.path+"dialogs/flash.js"),e.addMenuItems&&e.addMenuItems({flash:{label:e.lang.flash.properties,command:"flash",group:"flash"}}),e.on("doubleclick",function(e){var t=e.data.element;t.is("img")&&"flash"==t.data("cke-real-element-type")&&(e.data.dialog="flash")}),e.contextMenu&&e.contextMenu.addListener(function(e){if(e&&e.is("img")&&!e.isReadOnly()&&"flash"==e.data("cke-real-element-type"))return{flash:CKEDITOR.TRISTATE_OFF}})},afterInit:function(n){var i=n.dataProcessor;(i=i&&i.dataFilter)&&i.addRules({elements:{"cke:object":function(i){var o=i.attributes;if(!(o.classid&&String(o.classid).toLowerCase()||e(i))){for(o=0;o<i.children.length;o++)if("cke:embed"==i.children[o].name){if(!e(i.children[o]))break;return t(n,i)}return null}return t(n,i)},"cke:embed":function(i){return e(i)?t(n,i):null}}},5)}})}(),CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1}),function(){function e(e){var i=e.config,o=e.fire("uiSpace",{space:"top",html:""}).html,r=function(){function o(e,t,i){s.setStyle(t,n(i)),s.setStyle("position",e)}function a(e){var t=d.getDocumentPosition();switch(e){case"top":o("absolute","top",t.y-f-g);break;case"pin":o("fixed","top",y);break;case"bottom":o("absolute","top",t.y+(u.height||u.bottom-u.top)+g)}l=e}var l,d,c,u,h,f,p,m=i.floatSpaceDockedOffsetX||0,g=i.floatSpaceDockedOffsetY||0,v=i.floatSpacePinnedOffsetX||0,y=i.floatSpacePinnedOffsetY||0;return function(o){if(d=e.editable()){var y=o&&"focus"==o.name;y&&s.show(),e.fire("floatingSpaceLayout",{show:y}),s.removeStyle("left"),s.removeStyle("right"),c=s.getClientRect(),u=d.getClientRect(),h=t.getViewPaneSize(),f=c.height,p="pageXOffset"in t.$?t.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft,l?(f+g<=u.top?a("top"):f+g>h.height-u.bottom?a("pin"):a("bottom"),o=h.width/2,o=i.floatSpacePreferRight?"right":0<u.left&&u.right<h.width&&u.width>c.width?"rtl"==i.contentsLangDirection?"right":"left":o-u.left>u.right-o?"left":"right",c.width>h.width?(o="left",y=0):(y="left"==o?0<u.left?u.left:0:u.right<h.width?h.width-u.right:0)+c.width>h.width&&(o="left"==o?"right":"left",y=0),s.setStyle(o,n(("pin"==l?v:m)+y+("pin"==l?0:"left"==o?p:-p)))):(l="pin",a("pin"),r(o))}}}();if(o){var a=new CKEDITOR.template('<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}"'+(e.title?' aria-labelledby="cke_{name}_arialbl"':" ")+">"+(e.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':" ")+'<div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>'),s=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(a.output({content:o,id:e.id,langDir:e.lang.dir,langCode:e.langCode,name:e.name,style:"display:none;z-index:"+(i.baseFloatZIndex-1),topId:e.ui.spaceId("top"),voiceLabel:e.title}))),l=CKEDITOR.tools.eventsBuffer(500,r),d=CKEDITOR.tools.eventsBuffer(100,r);s.unselectable(),s.on("mousedown",function(e){(e=e.data).getTarget().hasAscendant("a",1)||e.preventDefault()}),e.on("focus",function(n){r(n),e.on("change",l.input),t.on("scroll",d.input),t.on("resize",d.input)}),e.on("blur",function(){s.hide(),e.removeListener("change",l.input),t.removeListener("scroll",d.input),t.removeListener("resize",d.input)}),e.on("destroy",function(){t.removeListener("scroll",d.input),t.removeListener("resize",d.input),s.clearCustomData(),s.remove()}),e.focusManager.hasFocus&&s.show(),e.focusManager.add(s,1)}}var t=CKEDITOR.document.getWindow(),n=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(t){t.on("loaded",function(){e(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var e=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),t=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')" {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'),n=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),i=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(e,t){return this.addBlock(e,new CKEDITOR.ui.listBlock(this.getHolderElement(),t))},CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(e,t){var n=(t=t||{}).attributes||(t.attributes={});(this.multiSelect=!!t.multiSelect)&&(n["aria-multiselectable"]=!0),!n.role&&(n.role="listbox"),this.base.apply(this,arguments),this.element.setAttribute("role",n.role),(n=this.keys)[40]="next",n[9]="next",n[38]="prev",n[CKEDITOR.SH
167IFT+9]="prev",n[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(n[13]="mouseup"),this._.pendingHtml=[],this._.pendingList=[],this._.items={},this._.groups={}},_:{close:function(){if(this._.started){var t=e.output({items:this._.pendingList.join("")});this._.pendingList=[],this._.pendingHtml.push(t),delete this._.started}},getClick:function(){return this._.click||(this._.click=CKEDITOR.tools.addFunction(function(e){var t=this.toggle(e);this.onClick&&this.onClick(e,t)},this)),this._.click}},proto:{add:function(e,n,o){var r=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0),this._.items[e]=r,e={id:r,val:CKEDITOR.tools.htmlEncodeAttr(e).replace(i,"\\'"),onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(o||e),text:n||e},this._.pendingList.push(t.output(e))},startGroup:function(e){this._.close();var t=CKEDITOR.tools.getNextId();this._.groups[e]=t,this._.pendingHtml.push(n.output({id:t,label:e}))},commit:function(){this._.close(),this.element.appendHtml(this._.pendingHtml.join("")),delete this._.size,this._.pendingHtml=[]},toggle:function(e){var t=this.isMarked(e);return t?this.unmark(e):this.mark(e),!t},hideGroup:function(e){var t=(e=this.element.getDocument().getById(this._.groups[e]))&&e.getNext();e&&(e.setStyle("display","none"),t&&"ul"==t.getName()&&t.setStyle("display","none"))},hideItem:function(e){this.element.getDocument().getById(this._.items[e]).setStyle("display","none")},showAll:function(){var e,t=this._.items,n=this._.groups,i=this.element.getDocument();for(e in t)i.getById(t[e]).setStyle("display","");for(var o in n)e=(t=i.getById(n[o])).getNext(),t.setStyle("display",""),e&&"ul"==e.getName()&&e.setStyle("display","")},mark:function(e){this.multiSelect||this.unmarkAll(),e=this._.items[e];var t=this.element.getDocument().getById(e);t.addClass("cke_selected"),this.element.getDocument().getById(e+"_option").setAttribute("aria-selected",!0),this.onMark&&this.onMark(t)},markFirstDisplayed:function(){var e=this;this._.markFirstDisplayed(function(){e.multiSelect||e.unmarkAll()})},unmark:function(e){var t=this.element.getDocument();e=this._.items[e];var n=t.getById(e);n.removeClass("cke_selected"),t.getById(e+"_option").removeAttribute("aria-selected"),this.onUnmark&&this.onUnmark(n)},unmarkAll:function(){var e,t=this._.items,n=this.element.getDocument();for(e in t){var i=t[e];n.getById(i).removeClass("cke_selected"),n.getById(i+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(e){return this.element.getDocument().getById(this._.items[e]).hasClass("cke_selected")},focus:function(e){this._.focusIndex=-1;var t,n=this.element.getElementsByTag("a"),i=-1;if(e){for(t=this.element.getDocument().getById(this._.items[e]).getFirst();e=n.getItem(++i);)if(e.equals(t)){this._.focusIndex=i;break}}else this.element.focus();t&&setTimeout(function(){t.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var e='<span id="{id}" class="cke_combo cke_combo__{name} {cls}" role="presentation"><span id="{id}_label" class="cke_combo_label">{label}</span><a class="cke_combo_button" title="{title}" tabindex="-1"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="true"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');e=e+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+(CKEDITOR.env.hc?"▼":CKEDITOR.env.air?" ":"")+"</span></span></a></span>";var t=CKEDITOR.addTemplate("combo",e);CKEDITOR.UI_RICHCOMBO="richcombo",CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(e){CKEDITOR.tools.extend(this,e,{canGroup:!1,title:e.label,modes:{wysiwyg:1},editorFocus:1}),e=this.panel||{},delete this.panel,this.id=CKEDITOR.tools.getNextNumber(),this.document=e.parent&&e.parent.getDocument()||CKEDITOR.document,e.className="
167cke_combopanel",e.block={multiSelect:e.multiSelect,attributes:e.attributes},e.toolbarRelated=!0,this._={panelDefinition:e,items:{}}},proto:{renderHtml:function(e){var t=[];return this.render(e,t),t.join("")},render:function(e,n){function i(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var t=this.modes[e.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;e.readOnly&&!this.readOnly&&(t=CKEDITOR.TRISTATE_DISABLED),this.setState(t),this.setValue(""),t!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var o=CKEDITOR.env,r="cke_"+this.id,a=CKEDITOR.tools.addFunction(function(t){u&&(e.unlockSelection(1),u=0),l.execute(t)},this),s=this,l={id:r,combo:this,focus:function(){CKEDITOR.document.getById(r).getChild(1).focus()},execute:function(t){var n=s._;if(n.state!=CKEDITOR.TRISTATE_DISABLED)if(s.createPanel(e),n.on)n.panel.hide();else{s.commit();var i=s.getValue();i?n.list.mark(i):n.list.unmarkAll(),n.panel.showBlock(s.id,new CKEDITOR.dom.element(t),4)}},clickFn:a};e.on("activeFilterChange",i,this),e.on("mode",i,this),e.on("selectionChange",i,this),!this.readOnly&&e.on("readOnly",i,this);var d=CKEDITOR.tools.addFunction(function(e,t){var n=(e=new CKEDITOR.dom.event(e)).getKeystroke();switch(n){case 13:case 32:case 40:CKEDITOR.tools.callFunction(a,t);break;default:l.onkey(l,n)}e.preventDefault()}),c=CKEDITOR.tools.addFunction(function(){l.onfocus&&l.onfocus()}),u=0;return l.keyDownFn=d,o={id:r,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:o.gecko&&!o.hc?"":(this.title||"").replace("'",""),keydownFn:d,focusFn:c,clickFn:a},t.output(o,n),this.onRender&&this.onRender(),l},createPanel:function(e){if(!this._.panel){var t=this._.panelDefinition,n=this._.panelDefinition.block,i=t.parent||CKEDITOR.document.getBody(),o="cke_combopanel__"+this.name,r=new CKEDITOR.ui.floatPanel(e,i,t),a=(t=r.addListBlock(this.id,n),this);r.onShow=function(){this.element.addClass(o),a.setState(CKEDITOR.TRISTATE_ON),a._.on=1,a.editorFocus&&!e.focusManager.hasFocus&&e.focus(),a.onOpen&&a.onOpen()},r.onHide=function(t){this.element.removeClass(o),a.setState(a.modes&&a.modes[e.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),a._.on=0,!t&&a.onClose&&a.onClose()},r.onEscape=function(){r.hide(1)},t.onClick=function(e,t){a.onClick&&a.onClick.call(a,e,t),r.hide()},this._.panel=r,this._.list=t,r.getBlock(this.id).onHide=function(){a._.on=0,a.setState(CKEDITOR.TRISTATE_OFF)},this.init&&this.init()}},setValue:function(e,t){this._.value=e;var n=this.document.getById("cke_"+this.id+"_text");n&&(e||t?n.removeClass("cke_combo_inlinelabel"):(t=this.label,n.addClass("cke_combo_inlinelabel")),n.setText(void 0!==t?t:e))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(e){this._.list.mark(e)},hideItem:function(e){this._.list.hideItem(e)},hideGroup:function(e){this._.list.hideGroup(e)},showAll:function(){this._.list.showAll()},add:function(e,t,n){this._.items[e]=n||e,this._.list.add(e,t,n)},startGroup:function(e){this._.list.startGroup(e)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this)),this._.committed=1},setState:function(e){if(this._.state!=e){var t=this.document.getById("cke_"+this.id);t.setState(e,"cke_combo"),e==CKEDITOR.TRISTATE_DISABLED?t.setAttribute("aria-disabled",!0):t.removeAttribute("aria-disabled"),this._.state=e}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))}},statics:{handler:{create:function(e){return new CKEDITOR.ui.richCombo(e)}}}}),CKEDITOR.ui.prototype.addRichCombo=function(e,t){this.add(e,CKEDITOR.UI_RICHCOMBO,t)}}(),function(){function e(e,n,i,o,r,a,s,l){var d=e.config,c=new CKEDITOR.style(s),u=r.split(";");r=[];for(var h={},f=0;f<u.length;f++){if(p=u[f]){var p=p.split("/"),m={},g=u[f]=p[0];m[i]=r[f]=p[1]||g,h[g]=new CKEDITOR.style(s,m),h[g]._.definition.name=g}else u.splice(f--,1)}e.ui.addRichCombo(n,{label:o.label,title:o.panelTitle,toolbar:"styles,"+l,allowedContent:c,requiredContent:c,contentTransformations:[[{element:"font",check:"span",left:function(e){return!!e.attributes.size||!!e.attributes.align||!!e.attributes.face},right:function(e){var t=" x-small small medium large x-large xx-large 48px".split(" ");e.name="span",e.attributes.size&&(e.styles["font-size"]=t[e.attributes.size],delete e.attributes.size),e.attributes.align&&(e.styles["text-align"]=e.attributes.align,delete e.attributes.align),e.attributes.face&&(e.styles["font-family"]=e.attributes.face,delete e.attributes.face)}}]],panel:{css:[CKEDITOR.skin.getPath("editor")].concat(d.contentsCss),multiSelect:!1,attributes:{"aria-label":o.panelTitle}},init:function(){this.startGroup(o.panelTitle);for(var e=0;e<u.length;e++){var t=u[e];this.add(t,h[t].buildPreview(),t)}},onClick:function(n){e.focus(),e.fire("saveSnapshot");var i=this.getValue(),o=h[n];if(i&&n!=i){var r=h[i],a=e.getSelection().getRanges()[0];if(a.collapsed){var s=e.elementPath(),l=s.contains(function(e){return r.checkElementRemovable(e)});if(l){var d=a.checkBoundaryOfElement(l,CKEDITOR.START),c=a.checkBoundaryOfElement(l,CKEDITOR.END);if(d&&c){for(d=a.createBookmark();s=l.getFirst();)s.insertBefore(l);l.remove(),a.moveToBookmark(d)}else d||c?a.moveToPosition(l,d?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_END):(a.splitElement(l),a.moveToPosition(l,CKEDITOR.POSITION_AFTER_END)),t(a,s.elements.slice(),l);e.getSelection().selectRanges([a])}}else e.removeStyle(r)}e[i==n?"removeStyle":"applyStyle"](o),e.fire("saveSnapshot")},onRender:function(){e.on("selectionChange",function(t){var n=this.getValue();t=t.data.path.elements;for(var i,o=0;o<t.length;o++)for(var r in i=t[o],h)if(h[r].checkElementMatch(i,!0,e))return void(r!=n&&this.setValue(r));this.setValue("",a)},this)},refresh:function(){e.activeFilter.check(c)||this.setState(CKEDITOR.TRISTATE_DISABLED)}})}function t(e,n,i){var o=n.pop();if(o){if(i)return t(e,n,o.equals(i)?null:i);
167i=o.clone(),e.insertNode(i),e.moveToPosition(i,CKEDITOR.POSITION_AFTER_START),t(e,n)}}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(t){var n=t.config;e(t,"Font","family",t.lang.font,n.font_names,n.font_defaultLabel,n.font_style,30),e(t,"FontSize","size",t.lang.font.fontSize,n.fontSize_sizes,n.fontSize_defaultLabel,n.fontSize_style,40)}})}(),CKEDITOR.config.font_names="Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif",CKEDITOR.config.font_defaultLabel="",CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",attributes:{face:null}}]},CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px",CKEDITOR.config.fontSize_defaultLabel="",CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]},CKEDITOR.plugins.add("forms",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss(".cke_editable form{border: 1px dotted #FF0000;padding: 2px;}\n"),CKEDITOR.addCss("img.cke_hidden{background-image: url("+CKEDITOR.getUrl(this.path+"images/hiddenfield.gif")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}")},init:function(e){var t=e.lang,n=0,i={email:1,password:1,search:1,tel:1,text:1,url:1},o={checkbox:"input[type,name,checked,required]",radio:"input[type,name,checked,required]",textfield:"input[type,name,value,size,maxlength,required]",textarea:"textarea[cols,rows,name,required]",select:"select[name,size,multiple,required]; option[value,selected]",button:"input[type,name,value]",form:"form[action,name,id,enctype,target,method]",hiddenfield:"input[type,name,value]",imagebutton:"input[type,alt,src]{width,height,border,border-width,border-style,margin,float}"},r={checkbox:"input",radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},a=function(i,a,s){var l={allowedContent:o[a],requiredContent:r[a]};"form"==a&&(l.context="form"),e.addCommand(a,new CKEDITOR.dialogCommand(a,l)),e.ui.addButton&&e.ui.addButton(i,{label:t.common[i.charAt(0).toLowerCase()+i.slice(1)],command:a,toolbar:"forms,"+(n+=10)}),CKEDITOR.dialog.add(a,s)},s=this.path+"dialogs/";!e.blockless&&a("Form","form",s+"form.js"),a("Checkbox","checkbox",s+"checkbox.js"),a("Radio","radio",s+"radio.js"),a("TextField","textfield",s+"textfield.js"),a("Textarea","textarea",s+"textarea.js"),a("Select","select",s+"select.js"),a("Button","button",s+"button.js");var l=e.plugins.image;l&&!e.plugins.image2&&a("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+"dialogs/image.js"),a("HiddenField","hiddenfield",s+"hiddenfield.js"),e.addMenuItems&&(a={checkbox:{label:t.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",group:"checkbox"},radio:{label:t.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:t.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:t.forms.hidden.title,command:"hiddenfield",group:"hiddenfield"},button:{label:t.forms.button.title,command:"button",group:"button"},select:{label:t.forms.select.title,command:"select",group:"select"},textarea:{label:t.forms.textarea.title,command:"textarea",group:"textarea"}},l&&(a.imagebutton={label:t.image.titleButton,command:"imagebutton",group:"imagebutton"}),!e.blockless&&(a.form={label:t.forms.form.menu,command:"form",group:"form"}),e.addMenuItems(a)),e.contextMenu&&(!e.blockless&&e.contextMenu.addListener(function(e,t,n){if((e=n.contains("form",1))&&!e.isReadOnly())return{form:CKEDITOR.TRISTATE_OFF}}),e.contextMenu.addListener(function(e){if(e&&!e.isReadOnly()){var t=e.getName();if("select"==t)return{select:CKEDITOR.TRISTATE_OFF};if("textarea"==t)return{textarea:CKEDITOR.TRISTATE_OFF};if("input"==t){var n=e.getAttribute("type")||"text";switch(n){case"button":case"submit":case"reset":return{button:CKEDITOR.TRISTATE_OFF};case"checkbox":return{checkbox:CKEDITOR.TRISTATE_OFF};case"radio":return{radio:CKEDITOR.TRISTATE_OFF};case"image":return l?{imagebutton:CKEDITOR.TRISTATE_OFF}:null}if(i[n])return{textfield:CKEDITOR.TRISTATE_OFF}}if("img"==t&&"hiddenfield"==e.data("cke-real-element-type"))return{hiddenfield:CKEDITOR.TRISTATE_OFF}}})),e.on("doubleclick",function(t){var n=t.data.element;if(!e.blockless&&n.is("form"))t.data.dialog="form";else if(n.is("select"))t.data.dialog="select";else if(n.is("textarea"))t.data.dialog="textarea";else if(n.is("img")&&"hiddenfield"==n.data("cke-real-element-type"))t.data.dialog="hiddenfield";else if(n.is("input")){switch(n=n.getAttribute("type")||"text"){case"button":case"submit":case"reset":t.data.dialog="button";break;case"checkbox":t.data.dialog="checkbox";break;case"radio":t.data.dialog="radio";break;case"image":t.data.dialog="imagebutton"}i[n]&&(t.data.dialog="textfield")}})},afterInit:function(e){ 168var t=(n=e.dataProcessor)&&n.htmlFilter,n=n&&n.dataFilter;CKEDITOR.env.ie&&t&&t.addRules({elements:{input:function(e){var t=(e=e.attributes).type;t||(e.type="text"),"checkbox"!=t&&"radio"!=t||"on"!=e.value||delete e.value}}},{applyToAll:!0}),n&&n.addRules({elements:{input:function(t){if("hidden"==t.attributes.type)return e.createFakeParserElement(t,"cke_hidden","hiddenfield")}}},{applyToAll:!0})}}),CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(e){if(!e.blockless){for(var t=e.config,n=e.lang.format,i=t.format_tags.split(";"),o={},r=0,a=[],s=0;s<i.length;s++){var l=i[s],d=new CKEDITOR.style(t["format_"+l]);e.filter.customConfig&&!e.filter.check(d)||(r++,o[l]=d,o[l]._.enterMode=e.config.enterMode,a.push(d))}0!==r&&e.ui.addRichCombo("Format",{label:n.label,title:n.panelTitle,toolbar:"styles,20",allowedContent:a,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(t.contentsCss),multiSelect:!1,attributes:{"aria-label":n.panelTitle}},init:function(){for(var e in this.startGroup(n.panelTitle),o){var t=n["tag_"+e];this.add(e,o[e].buildPreview(t),t)}},onClick:function(t){e.focus(),e.fire("saveSnapshot"),t=o[t];var n=e.elementPath();e[t.checkActive(n,e)?"removeStyle":"applyStyle"](t),setTimeout(function(){e.fire("saveSnapshot")},0)},onRender:function(){e.on("selectionChange",function(t){var n=this.getValue();for(var i in t=t.data.path,this.refresh(),o)if(o[i].checkActive(t,e))return void(i!=n&&this.setValue(i,e.lang.format["tag_"+i]));this.setValue("")},this)},onOpen:function(){for(var t in this.showAll(),o)e.activeFilter.check(o[t])||this.hideItem(t)},refresh:function(){var t=e.elementPath();if(t){if(t.isContextFor("p"))for(var n in o)if(e.activeFilter.check(o[n]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"},CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},function(){var e={canUndo:!1,exec:function(e){var t=e.document.createElement("hr");e.insertElement(t)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(t){t.blockless||(t.addCommand("horizontalrule",e),t.ui.addButton&&t.ui.addButton("HorizontalRule",{label:t.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(e){var t=new CKEDITOR.htmlWriter;t.forceSimpleAmpersand=e.config.forceSimpleAmpersand,t.indentationChars=e.config.dataIndentationChars||"\t",e.dataProcessor.writer=t}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base(),this.indentationChars="\t",this.selfClosingEnd=" />",this.lineBreakChars="\n",this.sortAttributes=1,this._.indent=0,this._.indentation="",this._.inPre=0,this._.rules={};var e,t=CKEDITOR.dtd;for(e in CKEDITOR.tools.extend({},t.$nonBodyContent,t.$block,t.$listItem,t.$tableContent))this.setRules(e,{indent:!t[e]["#"],breakBeforeOpen:1,breakBeforeClose:!t[e]["#"],breakAfterClose:1,needsSpace:e in t.$block&&!(e in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1}),this.setRules("title",{indent:0,breakAfterOpen:0}),this.setRules("style",{indent:0,breakBeforeClose:1}),this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(e){var t=this._.rules[e];this._.afterCloser&&t&&t.needsSpace&&this._.needsSpace&&this._.output.push("\n"),this._.indent?this.indentation():t&&t.breakBeforeOpen&&(this.lineBreak(),this.indentation()),this._.output.push("<",e),this._.afterCloser=0},openTagClose:function(e,t){var n=this._.rules[e];t?(this._.output.push(this.selfClosingEnd),n&&n.breakAfterClose&&(this._.needsSpace=n.needsSpace)):(this._.output.push(">"),n&&n.indent&&(this._.indentation+=this.indentationChars)),n&&n.breakAfterOpen&&this.lineBreak(),"pre"==e&&(this._.inPre=1)},attribute:function(e,t){"string"==typeof t&&(this.forceSimpleAmpersand&&(t=t.replace(/&/g,"&")),t=CKEDITOR.tools.htmlEncodeAttr(t)),this._.output.push(" ",e,'="',t,'"')},closeTag:function(e){var t=this._.rules[e];t&&t.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length)),this._.indent?this.indentation():t&&t.breakBeforeClose&&(this.lineBreak(),this.indentation()),this._.output.push("</",e,">"),"pre"==e&&(this._.inPre=0),t&&t.breakAfterClose&&(this.lineBreak(),this._.needsSpace=t.needsSpace),this._.afterCloser=1},text:function(e){this._.indent&&(this.indentation(),!this._.inPre&&(e=CKEDITOR.tools.ltrim(e))),this._.output.push(e)},comment:function(e){this._.indent&&this.indentation(),this._.output.push("<!--",e,"-->")},lineBreak:function(){!this._.inPre&&0<this._.output.length&&this._.output.push(this.lineBreakChars),this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation),this._.indent=0},reset:function(){this._.output=[],this._.indent=0,this._.indentation="",this._.afterCloser=0,this._.inPre=0,this._.needsSpace=0},setRules:function(e,t){var n=this._.rules[e];
168n?CKEDITOR.tools.extend(n,t,!0):this._.rules[e]=t}}}),CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_iframe{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(e){var t=e.lang.iframe,n="iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]";e.plugins.dialogadvtab&&(n+=";iframe"+e.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1})),CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js"),e.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",{allowedContent:n,requiredContent:"iframe"})),e.ui.addButton&&e.ui.addButton("Iframe",{label:t.toolbar,command:"iframe",toolbar:"insert,80"}),e.on("doubleclick",function(e){var t=e.data.element;t.is("img")&&"iframe"==t.data("cke-real-element-type")&&(e.data.dialog="iframe")}),e.addMenuItems&&e.addMenuItems({iframe:{label:t.title,command:"iframe",group:"image"}}),e.contextMenu&&e.contextMenu.addListener(function(e){if(e&&e.is("img")&&"iframe"==e.data("cke-real-element-type"))return{iframe:CKEDITOR.TRISTATE_OFF}})},afterInit:function(e){var t=e.dataProcessor;(t=t&&t.dataFilter)&&t.addRules({elements:{iframe:function(t){return e.createFakeParserElement(t,"cke_iframe","iframe",!0)}}})}}),function(){function e(e){function n(e){var t=!1;s.attachListener(s,"keydown",function(){var n=o.getBody().getElementsByTag(e);if(!t){for(var i=0;i<n.count();i++)n.getItem(i).setCustomData("retain",!0);t=!0}},null,null,1),s.attachListener(s,"keyup",function(){var n=o.getElementsByTag(e);t&&(1!=n.count()||n.getItem(0).getCustomData("retain")||n.getItem(0).hasAttribute("data-cke-temp")||n.getItem(0).remove(1),t=!1)})}var i=this.editor,o=e.document,r=o.body,a=o.getElementById("cke_actscrpt");a&&a.parentNode.removeChild(a),(a=o.getElementById("cke_shimscrpt"))&&a.parentNode.removeChild(a),(a=o.getElementById("cke_basetagscrpt"))&&a.parentNode.removeChild(a),r.contentEditable=!0,CKEDITOR.env.ie&&(r.hideFocus=!0,r.disabled=!0,r.removeAttribute("disabled")),delete this._.isLoadingData,this.$=r,o=new CKEDITOR.dom.document(o),this.setup(),this.fixInitialSelection();var s=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&o.getDocumentElement().addClass(o.$.compatMode),CKEDITOR.env.ie&&!CKEDITOR.env.edge&&i.enterMode!=CKEDITOR.ENTER_P?n("p"):CKEDITOR.env.edge&&i.enterMode!=CKEDITOR.ENTER_DIV&&n("div"),(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)&&o.getDocumentElement().on("mousedown",function(e){e.data.getTarget().is("html")&&setTimeout(function(){i.editable().focus()})}),t(i);try{i.document.$.execCommand("2D-position",!1,!0)}catch(l){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==i.document.$.compatMode)&&this.attachListener(this,"keydown",function(e){var t=e.data.getKeystroke();if(33==t||34==t)if(CKEDITOR.env.ie)setTimeout(function(){i.getSelection().scrollIntoView()},0);else if(i.window.$.innerHeight>this.$.offsetHeight){var n=i.createRange();n[33==t?"moveToElementEditStart":"moveToElementEditEnd"](this),n.select(),e.data.preventDefault()}}),CKEDITOR.env.ie&&this.attachListener(o,"blur",function(){try{o.$.selection.empty()}catch(e){}}),CKEDITOR.env.iOS&&this.attachListener(o,"touchend",function(){e.focus()}),(r=i.document.getElementsByTag("title").getItem(0)).data("cke-title",r.getText()),CKEDITOR.env.ie&&(i.document.$.title=this._.docTitle),CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready"),i.fire("contentDom"),this._.isPendingFocus&&(i.focus(),this._.isPendingFocus=!1),setTimeout(function(){i.fire("dataReady")},0)},0,this)}function t(e){function t(){var t;e.editable().attachListener(e,"selectionChange",function(){var i=e.getSelection().getSelectedElement();i&&(t&&(t.detachEvent("onresizestart",n),t=null),i.$.attachEvent("onresizestart",n),t=i.$)})}function n(e){e.returnValue=!1}if(CKEDITOR.env.gecko)try{var o=e.document.$;o.execCommand("enableObjectResizing",!1,!e.config.disableObjectResizing),o.execCommand("enableInlineTableEditing",!1,!e.config.disableNativeTableHandles)}catch(i){}else CKEDITOR.env.ie&&11>CKEDITOR.env.version&&e.config.disableObjectResizing&&t(e)}function n(){var e=[];
168if(8<=CKEDITOR.document.$.documentMode){e.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var t,n=[];for(t in CKEDITOR.dtd.$removeEmpty)n.push("html.CSS1Compat "+t+"[contenteditable=false]");e.push(n.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(e.push("html{height:100% !important}"),e.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));return e.push("html{cursor:text;*cursor:auto}"),e.push("img,input,textarea{cursor:default}"),e.join("\n")}var o;CKEDITOR.plugins.add("wysiwygarea",{init:function(e){e.config.fullPage&&e.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"}),e.addMode("wysiwyg",function(t){function n(n){n&&n.removeListener(),e.editable(new o(e,r.$.contentWindow.document.body)),e.setData(e.getData(1),t)}var i="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",r=(i=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(i)+"}())":"",CKEDITOR.dom.element.createFromHtml('<iframe src="'+i+'" frameBorder="0"></iframe>'));r.setStyles({width:"100%",height:"100%"}),r.addClass("cke_wysiwyg_frame").addClass("cke_reset"),(i=e.ui.space("contents")).append(r);var a=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;a&&r.on("load",n);var s=e.title,l=e.fire("ariaEditorHelpLabel",{}).label;if(s&&(CKEDITOR.env.ie&&l&&(s+=", "+l),r.setAttribute("title",s)),l){s=CKEDITOR.tools.getNextId();var d=CKEDITOR.dom.element.createFromHtml('<span id="'+s+'" class="cke_voice_label">'+l+"</span>");i.append(d,1),r.setAttribute("aria-describedby",s)}e.on("beforeModeUnload",function(e){e.removeListener(),d&&d.remove()}),r.setAttributes({tabIndex:e.tabIndex,allowTransparency:"true"}),!a&&n(),e.fire("ariaWidget",r)})}}),CKEDITOR.editor.prototype.addContentsCss=function(e){var t=this.config,n=t.contentsCss;CKEDITOR.tools.isArray(n)||(t.contentsCss=n?[n]:[]),t.contentsCss.push(e)},o=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments),this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(t){CKEDITOR.tools.setTimeout(e,0,this,t)},this),this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(e,t){var i=this.editor;if(t)this.setHtml(e),this.fixInitialSelection(),i.fire("dataReady");else{this._.isLoadingData=!0,i._.dataStore={id:1};var r=i.config,a=r.fullPage,s=r.docType,l=CKEDITOR.tools.buildStyleHtml(n()).replace(/<style>/,'<style data-cke-temp="1">');a||(l+=CKEDITOR.tools.buildStyleHtml(i.config.contentsCss));var d=r.baseHref?'<base href="'+r.baseHref+'" data-cke-temp="1" />':"";a&&(e=e.replace(/<!DOCTYPE[^>]*>/i,function(e){return i.docType=s=e,""}).replace(/<\?xml\s[^\?]*\?>/i,function(e){return i.xmlDeclaration=e,""})),e=i.dataProcessor.toHtml(e),a?(/<body[\s|>]/.test(e)||(e="<body>"+e),/<html[\s|>]/.test(e)||(e="<html>"+e+"</html>"),/<head[\s|>]/.test(e)?/<title[\s|>]/.test(e)||(e=e.replace(/<head[^>]*>/,"$&<title></title>")):e=e.replace(/<html[^>]*>/,"$&<head><title></title></head>"),d&&(e=e.replace(/<head[^>]*?>/,"$&"+d)),e=e.replace(/<\/head\s*>/,l+"$&"),e=s+e):e=r.docType+'<html dir="'+r.contentsLangDirection+'" lang="'+(r.contentsLanguage||i.langCode)+'"><head><title>'+this._.docTitle+"</title>"+d+l+"</head><body"+(r.bodyId?' id="'+r.bodyId+'"':"")+(r.bodyClass?' class="'+r.bodyClass+'"':"")+">"+e+"</body></html>",CKEDITOR.env.gecko&&(e=e.replace(/<body/,'<body contenteditable="true" '),2e4>CKEDITOR.env.version&&(e=e.replace(/<body[^>]*>/,"$&<!-- cke-content-start -->"))),r='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ':"")+">var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"</script>",CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(r+='<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)</script>'),d&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(r+='<script id="cke_basetagscrpt">var baseTag = document.querySelector( "base" );baseTag.href = baseTag.href;</script>'),e=e.replace(/(?=\s*<\/(:?head)>)/,r),this.clearCustomData(),this.clearListeners(),i.fire("contentDomUnload");var c=this.getDocument();try{c.write(e)}catch(o){setTimeout(function(){c.write(e)},0)}}},getData:function(e){if(e)return this.getHtml();var t=(e=this.editor).config,n=(r=t.fullPage)&&e.docType,i=r&&e.xmlDeclaration,o=this.getDocument(),r=r?o.getDocumentElement().getOuterHtml():o.getBody().getHtml();return CKEDITOR.env.gecko&&t.enterMode!=CKEDITOR.ENTER_BR&&(r=r.replace(/<br>(?=\s*(:?$|<\/body>))/,"")),r=e.dataProcessor.toDataFormat(r),i&&(r=i+"\n"+r),n&&(r=n+"\n"+r),r},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:o.baseProto.focus.call(this)},detach:function(){var e,t=this.editor,n=t.document;try{e=t.window.getFrame()}catch(r){}o.baseProto.detach.call(this),this.clearCustomData(),n.getDocumentElement().clearCustomData(),CKEDITOR.tools.removeFunction(this._.frameLoadedHandler),e&&e.getParent()?(e.clearCustomData(),(t=e.removeCustomData("onResize"))&&t.removeListener(),e.remove()):CKEDITOR.warn("editor-destroy-iframe")}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,function(){function e(e,t){if(t||(t=e.getSelection().getSelectedElement()),t&&t.is("img")&&!t.data("cke-realelement")&&!t.isReadOnly())return t}function t(e){var t=e.getStyle("float");return"inherit"!=t&&"none"!=t||(t=0),t||(t=e.getAttribute("align")),t}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(t){if(!t.plugins.image2){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var n="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(t,"image","advanced")&&(n="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)"),t.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:n,requiredContent:"img[alt,src]",contentTransformations:[["img{width}
168: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]})),t.ui.addButton&&t.ui.addButton("Image",{label:t.lang.common.image,command:"image",toolbar:"insert,10"}),t.on("doubleclick",function(e){var t=e.data.element;!t.is("img")||t.data("cke-realelement")||t.isReadOnly()||(e.data.dialog="image")}),t.addMenuItems&&t.addMenuItems({image:{label:t.lang.image.menu,command:"image",group:"image"}}),t.contextMenu&&t.contextMenu.addListener(function(n){if(e(t,n))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(n){function i(i){var o=n.getCommand("justify"+i);o&&("left"!=i&&"right"!=i||o.on("exec",function(o){var r=e(n);r&&(t(r)==i?(r.removeStyle("float"),i==t(r)&&r.removeAttribute("align")):r.setStyle("float",i),o.cancel())}),o.on("refresh",function(o){var r=e(n);r&&(r=t(r),this.setState(r==i?CKEDITOR.TRISTATE_ON:"right"==i||"left"==i?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),o.cancel())}))}n.plugins.image2||(i("left"),i("right"),i("center"),i("block"))}})}(),CKEDITOR.config.image_removeLinkByEmptyURL=!0,function(){function e(e,i){var o,r;i.on("refresh",function(e){var i,o=[t];for(i in e.data.states)o.push(e.data.states[i]);this.setState(CKEDITOR.tools.search(o,n)?n:t)},i,null,100),i.on("exec",function(t){o=e.getSelection(),r=o.createBookmarks(1),t.data||(t.data={}),t.data.done=!1},i,null,0),i.on("exec",function(){e.forceNextSelectionCheck(),o.selectBookmarks(r)},i,null,100)}var t=CKEDITOR.TRISTATE_DISABLED,n=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(t){var n=CKEDITOR.plugins.indent.genericDefinition;e(t,t.addCommand("indent",new n(!0))),e(t,t.addCommand("outdent",new n)),t.ui.addButton&&(t.ui.addButton("Indent",{label:t.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),t.ui.addButton("Outdent",{label:t.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"})),t.on("dirChanged",function(e){var n=t.createRange(),i=e.data.node;n.setStartBefore(i),n.setEndAfter(i);for(var o,r=new CKEDITOR.dom.walker(n);o=r.next();)if(o.type==CKEDITOR.NODE_ELEMENT)if(!o.equals(i)&&o.getDirection())n.setStartAfter(o),r=new CKEDITOR.dom.walker(n);else{var a=t.config.indentClasses;if(a)for(var s="ltr"==e.data.dir?["_rtl",""]:["","_rtl"],l=0;l<a.length;l++)o.hasClass(a[l]+s[0])&&(o.removeClass(a[l]+s[0]),o.addClass(a[l]+s[1]));a=o.getStyle("margin-right"),s=o.getStyle("margin-left"),a?o.setStyle("margin-left",a):o.removeStyle("margin-left"),s?o.setStyle("margin-right",s):o.removeStyle("margin-right")}})}}),CKEDITOR.plugins.indent={genericDefinition:function(e){this.isIndent=!!e,this.startDisabled=!this.isIndent},specificDefinition:function(e,t,n){this.name=t,this.editor=e,this.jobs={},this.enterBr=e.config.enterMode==CKEDITOR.ENTER_BR,this.isIndent=!!n,this.relatedGlobal=n?"indent":"outdent",this.indentKey=n?9:CKEDITOR.SHIFT+9,this.database={}},registerCommands:function(e,t){e.on("pluginsLoaded",function(){for(var e in t)!function(e,t){var n,i=e.getCommand(t.relatedGlobal);for(n in t.jobs)i.on("exec",function(i){i.data.done||(e.fire("lockSnapshot"),t.execJob(e,n)&&(i.data.done=!0),e.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(t.database))},this,null,n),i.on("refresh",function(i){i.data.states||(i.data.states={}),i.data.states[t.name+"@"+n]=t.refreshJob(e,n,i.data.path)},this,null,n);e.addFeature(t)}(this,t[e])})}},CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}},CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(e,n){var i=this.jobs[n];if(i.state!=t)return i.exec.call(this,e)},refreshJob:function(e,n,i){return n=this.jobs[n],e.activeFilter.checkFeature(this)?n.state=n.refresh.call(this,e,i):n.state=t,n.state},getContext:function(e){return e.contains(this.context)}}}(),function(){function e(e,n,i){if(!e.getCustomData("indent_processed")){var o=this.editor,r=this.isIndent;if(n){if(i=0,(o=e.$.className.match(this.classNameRegex))&&(o=o[1],i=CKEDITOR.tools.indexOf(n,o)+1),0>(i+=r?1:-1))return;i=Math.min(i,n.length),i=Math.max(i,0),e.$.className=CKEDITOR.tools.ltrim(e.$.className.replace(this.classNameRegex,"")),0<i&&e.addClass(n[i-1])}else{n=t(e,i),i=parseInt(e.getStyle(n),10);var a=o.config.indentOffset||40;if(isNaN(i)&&(i=0),0>(i+=(r?1:-1)*a))return;i=Math.max(i,0),i=Math.ceil(i/a)*a,e.setStyle(n,i?i+(o.config.indentUnit||"px"):""),""===e.getAttribute("style")&&e.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,e,"indent_processed",1)}}function t(e,t){return"ltr"==(t||e.getComputedStyle("direction"))?"margin-left":"margin-right"}var n=CKEDITOR.dtd.$listItem,i=CKEDITOR.dtd.$list,o=CKEDITOR.TRISTATE_DISABLED,r=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(a){function s(){l.specificDefinition.apply(this,arguments),this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:!0,styles:d?null:"margin-left,margin-right",classes:d||null}},this.contentTransformations=[["div: splitMarginShorthand"],["h1: splitMarginShorthand"],["h2: splitMarginShorthand"],["h3: splitMarginShorthand"],["h4: splitMarginShorthand"],["h5: splitMarginShorthand"],["h6: splitMarginShorthand"],["ol: splitMarginShorthand"],["p: splitMarginShorthand"],["pre: splitMarginShorthand"],["ul: splitMarginShorthand"]],this.enterBr&&(this.allowedContent.div=!0),this.requiredContent=(this.enterBr?"div":"p")+(d?"("+d.join(",")+")":"{margin-left}"),this.jobs={20:{refresh:function(e,i){if(!(a=i.block||i.blockLimit).is(n))var a=(s=a.getAscendant(n))&&i.c
168ontains(s)||a;if(a.is(n)&&(a=a.getParent()),this.enterBr||this.getContext(i)){if(d){var s=d,l=(a=a.$.className.match(this.classNameRegex),this.isIndent);return(s=a?!l||a[1]!=s.slice(-1):l)?r:o}return this.isIndent?r:a?CKEDITOR[0>=(parseInt(a.getStyle(t(a)),10)||0)?"TRISTATE_DISABLED":"TRISTATE_OFF"]:o}return o},exec:function(t){var n,o=(o=t.getSelection())&&o.getRanges()[0];if(n=t.elementPath().contains(i))e.call(this,n,d);else for(o=o.createIterator(),t=t.config.enterMode,o.enforceRealBlocks=!0,o.enlargeBr=t!=CKEDITOR.ENTER_BR;n=o.getNextParagraph(t==CKEDITOR.ENTER_P?"p":"div");)n.isReadOnly()||e.call(this,n,d);return!0}}}}var l=CKEDITOR.plugins.indent,d=a.config.indentClasses;l.registerCommands(a,{indentblock:new s(a,"indentblock",!0),outdentblock:new s(a,"outdentblock")}),CKEDITOR.tools.extend(s.prototype,l.specificDefinition.prototype,{context:{div:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,p:1,pre:1,table:1},classNameRegex:d?new RegExp("(?:^|\\s+)("+d.join("|")+")(?=$|\\s)"):null})}})}(),function(){function e(e){function i(t){for(var i=o.startContainer,l=o.endContainer;i&&!i.getParent().equals(t);)i=i.getParent();for(;l&&!l.getParent().equals(t);)l=l.getParent();if(!i||!l)return!1;for(var d=i,c=(i=[],!1);!c;)d.equals(l)&&(c=!0),i.push(d),d=d.getNext();if(1>i.length)return!1;for(d=t.getParents(!0),l=0;l<d.length;l++)if(d[l].getName&&s[d[l].getName()]){t=d[l];break}d=r.isIndent?1:-1,l=i[0],i=i[i.length-1];var u=(c=CKEDITOR.plugins.list.listToArray(t,a))[i.getCustomData("listarray_index")].indent;for(l=l.getCustomData("listarray_index");l<=i.getCustomData("listarray_index");l++)if(c[l].indent+=d,0<d){var h=c[l].parent;c[l].parent=new CKEDITOR.dom.element(h.getName(),h.getDocument())}for(l=i.getCustomData("listarray_index")+1;l<c.length&&c[l].indent>u;l++)c[l].indent+=d;var f;if((i=CKEDITOR.plugins.list.arrayToList(c,a,null,e.config.enterMode,t.getDirection()),!r.isIndent)&&((f=t.getParent())&&f.is("li"))){var p,m=[];for(l=(d=i.listNode.getChildren()).count()-1;0<=l;l--)(p=d.getItem(l))&&p.is&&p.is("li")&&m.push(p)}if(i&&i.listNode.replace(t),m&&m.length)for(l=0;l<m.length;l++){for(p=t=m[l];(p=p.getNext())&&p.is&&p.getName()in s;)CKEDITOR.env.needsNbspFiller&&!t.getFirst(n)&&t.append(o.document.createText("\xa0")),t.append(p);t.insertAfter(f)}return i&&e.fire("contentDomInvalidated"),!0}for(var o,r=this,a=this.database,s=this.context,l=((l=e.getSelection())&&l.getRanges()).createIterator();o=l.getNextRange();){for(var d=o.getCommonAncestor();d&&(d.type!=CKEDITOR.NODE_ELEMENT||!s[d.getName()]);){if(e.editable().equals(d)){d=!1;break}d=d.getParent()}if(d||(d=o.startPath().contains(s))&&o.setEndAt(d,CKEDITOR.POSITION_BEFORE_END),!d){var c=o.getEnclosedNode();c&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in s&&(o.setStartAt(c,CKEDITOR.POSITION_AFTER_START),o.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),d=c)}if(d&&o.startContainer.type==CKEDITOR.NODE_ELEMENT&&o.startContainer.getName()in s&&((c=new CKEDITOR.dom.walker(o)).evaluator=t,o.startContainer=c.next()),d&&o.endContainer.type==CKEDITOR.NODE_ELEMENT&&o.endContainer.getName()in s&&((c=new CKEDITOR.dom.walker(o)).evaluator=t,o.endContainer=c.previous()),d)return i(d)}return 0}function t(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.is("li")}function n(e){return i(e)&&o(e)}var i=CKEDITOR.dom.walker.whitespaces(!0),o=CKEDITOR.dom.walker.bookmark(!1,!0),r=CKEDITOR.TRISTATE_DISABLED,a=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(t){function n(t){i.specificDefinition.apply(this,arguments),this.requiredContent=["ul","ol"],t.on("key",function(e){var n=t.elementPath();if("wysiwyg"==t.mode&&e.data.keyCode==this.indentKey&&n){var i=this.getContext(n);!i||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,n,i)||(t.execCommand(this.relatedGlobal),e.cancel())}},this),this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(e,t){var n=this.getContext(t),i=CKEDITOR.plugins.indentList.firstItemInPath(this.context,t,n);return n&&this.isIndent&&!i?a:r}:function(e,t){return!this.getContext(t)||this.isIndent?r:a},exec:CKEDITOR.tools.bind(e,this)}}var i=CKEDITOR.plugins.indent;
168i.registerCommands(t,{indentlist:new n(t,"indentlist",!0),outdentlist:new n(t,"outdentlist")}),CKEDITOR.tools.extend(n.prototype,i.specificDefinition.prototype,{context:{ol:1,ul:1}})}}),CKEDITOR.plugins.indentList={},CKEDITOR.plugins.indentList.firstItemInPath=function(e,n,i){var o=n.contains(t);return i||(i=n.contains(e)),i&&o&&o.equals(i.getFirst(t))}}(),CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(e){e.config.smiley_path=e.config.smiley_path||this.path+"images/",e.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"})),e.ui.addButton&&e.ui.addButton("Smiley",{label:e.lang.smiley.toolbar,command:"smiley",toolbar:"insert,50"}),CKEDITOR.dialog.add("smiley",this.path+"dialogs/smiley.js")}}),CKEDITOR.config.smiley_images="regular_smile.png sad_smile.png wink_smile.png teeth_smile.png confused_smile.png tongue_smile.png embarrassed_smile.png omg_smile.png whatchutalkingabout_smile.png angry_smile.png angel_smile.png shades_smile.png devil_smile.png cry_smile.png lightbulb.png thumbs_down.png thumbs_up.png heart.png broken_heart.png kiss.png envelope.png".split(" "),CKEDITOR.config.smiley_descriptions="smiley;sad;wink;laugh;frown;cheeky;blush;surprise;indecision;angry;angel;cool;devil;crying;enlightened;no;yes;heart;broken heart;kiss;mail".split(";"),function(){function e(e,t){var n;if(t=void 0===t||t)n=e.getComputedStyle("text-align");else{for(;(!e.hasAttribute||!e.hasAttribute("align")&&!e.getStyle("text-align"))&&(n=e.getParent());)e=n;n=e.getStyle("text-align")||e.getAttribute("align")||""}return n&&(n=n.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,"")),!n&&t&&(n="rtl"==e.getComputedStyle("direction")?"right":"left"),n}function t(e,t,n){this.editor=e,this.name=t,this.value=n,this.context="p",t=e.config.justifyClasses;var i=e.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(t){switch(n){case"left":this.cssClassName=t[0];break;case"center":this.cssClassName=t[1];break;case"right":this.cssClassName=t[2];break;case"justify":this.cssClassName=t[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+t.join("|")+")(?=$|\\s)"),this.requiredContent=i+"("+this.cssClassName+")"}else this.requiredContent=i+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}},e.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function n(e){var t=e.editor,n=t.createRange();n.setStartBefore(e.data.node),n.setEndAfter(e.data.node);for(var i,o=new CKEDITOR.dom.walker(n);i=o.next();)if(i.type==CKEDITOR.NODE_ELEMENT)if(!i.equals(e.data.node)&&i.getDirection())n.setStartAfter(i),o=new CKEDITOR.dom.walker(n);else{var r=t.config.justifyClasses;r&&(i.hasClass(r[0])?(i.removeClass(r[0]),i.addClass(r[2])):i.hasClass(r[2])&&(i.removeClass(r[2]),i.addClass(r[0]))),"left"==(r=i.getStyle("text-align"))?i.setStyle("text-align","right"):"right"==r&&i.setStyle("text-align","left")}}t.prototype={exec:function(t){var n=t.getSelection(),i=t.config.enterMode;if(n){for(var o,r,a=n.createBookmarks(),s=n.getRanges(),l=this.cssClassName,d=void 0===(d=t.config.useComputedState)||d,c=s.length-1;0<=c;c--)for((o=s[c].createIterator()).enlargeBr=i!=CKEDITOR.ENTER_BR;r=o.getNextParagraph(i==CKEDITOR.ENTER_P?"p":"div");)if(!r.isReadOnly()){r.removeAttribute("align"),r.removeStyle("text-align");var u=l&&(r.$.className=CKEDITOR.tools.ltrim(r.$.className.replace(this.cssClassRegex,""))),h=this.state==CKEDITOR.TRISTATE_OFF&&(!d||e(r,!0)!=this.value);l?h?r.addClass(l):u||r.removeAttribute("class"):h&&r.setStyle("text-align",this.value)}t.focus(),t.forceNextSelectionCheck(),n.selectBookmarks(a)}},refresh:function(t,n){var i=n.block||n.blockLimit;this.setState("body"!=i.getName()&&e(i,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}},CKEDITOR.plugins.add("justify",{init:function(e){if(!e.blockless){var i=new t(e,"justifyleft","left"),o=new t(e,"justifycenter","center"),r=new t(e,"justifyright","right"),a=new t(e,"justifyblock","justify");e.addCommand("justifyleft",i),e.addCommand("justifycenter",o),e.addCommand("justifyright",r),e.addCommand("justifyblock",a),e.ui.addButton&&(e.ui.addButton("JustifyLeft",{label:e.lang.justify.left,command:"justifyleft",toolbar:"align,10"}),e.ui.addButton("JustifyCenter",{label:e.lang.justify.center,command:"justifycenter",toolbar:"align,20"}),e.ui.addButton("JustifyRight",{label:e.lang.justify.right,command:"justifyright",toolbar:"align,30"}),e.ui.addButton("JustifyBlock",{label:e.lang.justify.block,command:"justifyblock",toolbar:"align,40"})),e.on("dirChanged",n)}}})}(),CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var e=function(e){var t=this._,n=t.menu;t.state!==CKEDITOR.TRISTATE_DISABLED&&(t.on&&n?n.hide():(t.previousState=t.state,n||((n=t.menu=new CKEDITOR.menu(e,{panel:{className:"cke_menu_panel",attributes:{"aria-label":e.lang.common.options}}})).onHide=CKEDITOR.tools.bind(function(){var n=this.command?e.getCommand(this.command).modes:this.modes;this.setState(!n||n[e.mode]?t.previousState:CKEDITOR.TRISTATE_DISABLED),t.on=0},this),this.onMenu&&n.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),t.on=1,setTimeout(function(){n.show(CKEDITOR.document.getById(t.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(t){delete t.panel,this.base(t),this.hasArrow=!0,this.click=e},statics:{handler:{create:function(e){return new CKEDITOR.ui.menuButton(e)}}}})},beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton",CKEDITOR.plugins.add("language",{requires:"menubutton",init:function(e){var t,n,i,o,r=e.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],a=this,s=e.lang.language,l={};for(e.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(e,t){var n=l["language_"+t];n&&e[n.style.checkActive(e.elementPath(),e)?"removeStyle":"applyStyle"](n.style)},refresh:function(e){this.setState(a.getCurrentLangElement(e)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}}),o=0;o<r.length;
168o++)n=(t=r[o].split(":"))[0],l[i="language_"+n]={label:t[1],langId:n,group:"language",order:o,ltr:"rtl"!=(""+t[2]).toLowerCase(),onClick:function(){e.execCommand("language",this.langId)},role:"menuitemcheckbox"},l[i].style=new CKEDITOR.style({element:"span",attributes:{lang:n,dir:l[i].ltr?"ltr":"rtl"}});l.language_remove={label:s.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:l.length,onClick:function(){var t=a.getCurrentLangElement(e);t&&e.execCommand("language",t.getAttribute("lang"))}},e.addMenuGroup("language",1),e.addMenuGroup("language_remove"),e.addMenuItems(l),e.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:s.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var t,n={},i=a.getCurrentLangElement(e);for(t in l)n[t]=CKEDITOR.TRISTATE_OFF 169;return n.language_remove=i?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,i&&(n["language_"+i.getAttribute("lang")]=CKEDITOR.TRISTATE_ON),n}})},getCurrentLangElement:function(e){var t,n=e.elementPath();if(e=n&&n.elements,n)for(var i=0;i<e.length;i++)n=e[i],!t&&"span"==n.getName()&&n.hasAttribute("dir")&&n.hasAttribute("lang")&&(t=n);return t}}),function(){function e(e){return e.replace(/'/g,"\\$&")}function t(e){for(var t,n=e.length,i=[],o=0;o<n;o++)t=e.charCodeAt(o),i.push(t);return"String.fromCharCode("+i.join(",")+")"}function n(t,n){var i,o,r=t.plugins.link,a=r.compiledProtectionFunction.params;o=[r.compiledProtectionFunction.name,"("];for(var s=0;s<a.length;s++)i=n[r=a[s].toLowerCase()],0<s&&o.push(","),o.push("'",i?e(encodeURIComponent(n[r])):"","'");return o.push(")"),o.join("")}function i(e){var t;return(e=e.config.emailProtection||"")&&"encode"!=e&&(t={},e.replace(/^([^(]+)\(([^)]+)\)$/,function(e,n,i){t.name=n,t.params=[],i.replace(/[^,\s]+/g,function(e){t.params.push(e)})})),t}CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function e(e){return n.replace(/%1/g,"rtl"==e?"right":"left").replace(/%2/g,"cke_contents_"+e)}var t="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",n=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+t+"padding-%1:18px;cursor:auto;}.%2 img.cke_anchor{"+t+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";CKEDITOR.addCss(e("ltr")+e("rtl"))},init:function(e){var t="a[!href]";CKEDITOR.dialog.isTabEnabled(e,"link","advanced")&&(t=t.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type,download]{*}(*)")),CKEDITOR.dialog.isTabEnabled(e,"link","target")&&(t=t.replace("]",",target,onclick]")),e.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:t,requiredContent:"a[href]"})),e.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"})),e.addCommand("unlink",new CKEDITOR.unlinkCommand),e.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand),e.setKeystroke(CKEDITOR.CTRL+76,"link"),e.ui.addButton&&(e.ui.addButton("Link",{label:e.lang.link.toolbar,command:"link",toolbar:"links,10"}),e.ui.addButton("Unlink",{label:e.lang.link.unlink,command:"unlink",toolbar:"links,20"}),e.ui.addButton("Anchor",{label:e.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"})),CKEDITOR.dialog.add("link",this.path+"dialogs/link.js"),CKEDITOR.dialog.add("anchor",this.path+"dialogs/anchor.js"),e.on("doubleclick",function(t){var n=CKEDITOR.plugins.link.getSelectedLink(e)||t.data.element.getAscendant("a",1);n&&!n.isReadOnly()&&(n.is("a")?(t.data.dialog=!n.getAttribute("name")||n.getAttribute("href")&&n.getChildCount()?"link":"anchor",t.data.link=n):CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,n)&&(t.data.dialog="anchor"))},null,null,0),e.on("doubleclick",function(t){t.data.dialog in{link:1,anchor:1}&&t.data.link&&e.getSelection().selectElement(t.data.link)},null,null,20),e.addMenuItems&&e.addMenuItems({anchor:{label:e.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1}
169,removeAnchor:{label:e.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:e.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:e.lang.link.unlink,command:"unlink",group:"link",order:5}}),e.contextMenu&&e.contextMenu.addListener(function(t){if(!t||t.isReadOnly())return null;if(!(t=CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t))&&!(t=CKEDITOR.plugins.link.getSelectedLink(e)))return null;var n={};return t.getAttribute("href")&&t.getChildCount()&&(n={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF}),t&&t.hasAttribute("name")&&(n.anchor=n.removeAnchor=CKEDITOR.TRISTATE_OFF),n}),this.compiledProtectionFunction=i(e)},afterInit:function(e){e.dataProcessor.dataFilter.addRules({elements:{a:function(t){return t.attributes.name?t.children.length?null:e.createFakeParserElement(t,"cke_anchor","anchor"):null}}});var t=e._.elementsPath&&e._.elementsPath.filters;t&&t.push(function(t,n){if("a"==n&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t)||t.getAttribute("name")&&(!t.getAttribute("href")||!t.getChildCount())))return"anchor"})}});var o=/^javascript:/,r=/^mailto:([^?]+)(?:\?(.+))?$/,a=/subject=([^;?:@&=$,\/]*)/i,s=/body=([^;?:@&=$,\/]*)/i,l=/^#(.*)$/,d=/^((?:http|https|ftp|news):\/\/)?(.*)$/,c=/^(_(?:self|top|parent|blank))$/,u=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,h=/^javascript:([^(]+)\(([^)]+)\)$/,f=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,p=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,m={id:"advId",dir:"advLangDir",accessKey:"advAccessKey",name:"advName",lang:"advLangCode",tabindex:"advTabIndex",title:"advTitle",type:"advContentType","class":"advCSSClasses",charset:"advCharset",style:"advStyles",rel:"advRel"};CKEDITOR.plugins.link={getSelectedLink:function(e,t){var n,i=e.getSelection(),o=i.getSelectedElement(),r=i.getRanges(),a=[];if(!t&&o&&o.is("a"))return o;for(o=0;o<r.length;o++)if((n=i.getRanges()[o]).shrink(CKEDITOR.SHRINK_TEXT,!1,{skipBogus:!0}),(n=e.elementPath(n.getCommonAncestor()).contains("a",1))&&t)a.push(n);else if(n)return n;return t?a:null},getEditorAnchors:function(e){for(var t,n=(i=(n=e.editable()).isInline()&&!e.plugins.divarea?e.document:n).getElementsByTag("a"),i=i.getElementsByTag("img"),o=[],r=0;t=n.getItem(r++);)(t.data("cke-saved-name")||t.hasAttribute("name"))&&o.push({name:t.data("cke-saved-name")||t.getAttribute("name"),id:t.getAttribute("id")});for(r=0;t=i.getItem(r++);)(t=this.tryRestoreFakeAnchor(e,t))&&o.push({name:t.getAttribute("name"),id:t.getAttribute("id")});return o},fakeAnchor:!0,tryRestoreFakeAnchor:function(e,t){if(t&&t.data("cke-real-element-type")&&"anchor"==t.data("cke-real-element-type")){var n=e.restoreRealElement(t);if(n.data("cke-saved-name"))return n}},parseLinkAttributes:function(e,t){var n,i=t&&(t.data("cke-saved-href")||t.getAttribute("href"))||"",g=e.plugins.link.compiledProtectionFunction,v=e.config.emailProtection,y={};if(i.match(o)&&("encode"==v?i=i.replace(u,function(e,t,n){return n=n||"","mailto:"+String.fromCharCode.apply(String,t.split(","))+n.replace(/\\'/g,"'")}):v&&i.replace(h,function(e,t,n){if(t==g.name){y.type="email",e=y.email={},t=/(^')|('$)/g;for(var i,o=(n=n.match(/[^,\s]+/g)).length,r=0;r<o;r++)i=decodeURIComponent(i=n[r].replace(t,"").replace(/\\'/g,"'")),e[g.params[r].toLowerCase()]=i;e.address=[e.name,e.domain].join("@")}})),!y.type)if(v=i.match(l))y.type="anchor",y.anchor={},y.anchor.name=y.anchor.id=v[1];else if(v=i.match(r)){n=i.match(a),i=i.match(s),y.type="email";var _=y.email={};_.address=v[1],n&&(_.subject=decodeURIComponent(n[1])),i&&(_.body=decodeURIComponent(i[1]))}else i&&(n=i.match(d))&&(y.type="url",y.url={},y.url.protocol=n[1],y.url.url=n[2]);if(t){if(i=t.getAttribute("target"))y.target={type:i.match(c)?i:"frame",name:i};else if(i=(i=t.data("cke-pa-onclick")||t.getAttribute("onclick"))&&i.match(f))for(y.target={type:"popup",name:i[1]};v=p.exec(i[2]);)"yes"!=v[2]&&"1"!=v[2]||v[1]in{height:1,width:1,top:1,left:1}?isFinite(v[2])&&(y.target[v[1]]=v[2]):y.target[v[1]]=!0;null!==t.getAttribute("download")&&(y.download=!0);var b;i={};for(b in m)(v=t.getAttribute(b))&&(i[m[b]]=v);(b=t.data("cke-saved-name")||i.advName)&&(i.advName=b),CKEDITOR.tools.isEmpty(i)||(y.advanced=i)}return y},getLinkAttributes:function(i,o){var r=i.config.emailProtection||"",a={};switch(o.type){case"url":r=o.url&&void 0!==o.url.protocol?o.url.protocol:"http://";var s=o.url&&CKEDITOR.tools.trim(o.url.url)||"";a["data-cke-saved-href"]=0===s.indexOf("/")?s:r+s;break;
169case"anchor":r=o.anchor&&o.anchor.id,a["data-cke-saved-href"]="#"+(o.anchor&&o.anchor.name||r||"");break;case"email":s=(c=o.email).address;switch(r){case"":case"encode":var l=encodeURIComponent(c.subject||""),d=encodeURIComponent(c.body||""),c=[];l&&c.push("subject="+l),d&&c.push("body="+d),c=c.length?"?"+c.join("&"):"","encode"==r?(r=["javascript:void(location.href='mailto:'+",t(s)],c&&r.push("+'",e(c),"'"),r.push(")")):r=["mailto:",s,c];break;default:r=s.split("@",2),c.name=r[0],c.domain=r[1],r=["javascript:",n(i,c)]}a["data-cke-saved-href"]=r.join("")}if(o.target)if("popup"==o.target.type){r=["window.open(this.href, '",o.target.name||"","', '"];var u="resizable status location toolbar menubar fullscreen scrollbars dependent".split(" ");for(s=u.length,l=function(e){o.target[e]&&u.push(e+"="+o.target[e])},c=0;c<s;c++)u[c]+=o.target[u[c]]?"=yes":"=no";l("width"),l("left"),l("height"),l("top"),r.push(u.join(","),"'); return false;"),a["data-cke-pa-onclick"]=r.join("")}else"notSet"!=o.target.type&&o.target.name&&(a.target=o.target.name);if(o.download&&(a.download=""),o.advanced){for(var h in m)(r=o.advanced[m[h]])&&(a[h]=r);a.name&&(a["data-cke-saved-name"]=a.name)}for(var f in a["data-cke-saved-href"]&&(a.href=a["data-cke-saved-href"]),h={target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1,download:1},o.advanced&&CKEDITOR.tools.extend(h,m),a)delete h[f];return{set:a,removed:CKEDITOR.tools.objectKeys(h)}},showDisplayTextForElement:function(e,t){var n={img:1,table:1,tbody:1,thead:1,tfoot:1,input:1,select:1,textarea:1},i=t.getSelection();return!(t.widgets&&t.widgets.focused||i&&1<i.getRanges().length)&&(!e||!e.getName||!e.is(n))}},CKEDITOR.unlinkCommand=function(){},CKEDITOR.unlinkCommand.prototype={exec:function(e){if(CKEDITOR.env.ie){var t,n=e.getSelection().getRanges()[0],i=n.getPreviousEditableNode()&&n.getPreviousEditableNode().getAscendant("a",!0)||n.getNextEditableNode()&&n.getNextEditableNode().getAscendant("a",!0);n.collapsed&&i&&(t=n.createBookmark(),n.selectNodeContents(i),n.select())}i=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1}),e.removeStyle(i),t&&(n.moveToBookmark(t),n.select())},refresh:function(e,t){var n=t.lastElement&&t.lastElement.getAscendant("a",!0);n&&"a"==n.getName()&&n.getAttribute("href")&&n.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]",editorFocus:1},CKEDITOR.removeAnchorCommand=function(){},CKEDITOR.removeAnchorCommand.prototype={exec:function(e){var t,n=e.getSelection(),i=n.createBookmarks();n&&(t=n.getSelectedElement())&&(t.getChildCount()?t.is("a"):CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t))?t.remove(1):(t=CKEDITOR.plugins.link.getSelectedLink(e))&&(t.hasAttribute("href")?(t.removeAttributes({name:1,"data-cke-saved-name":1}),t.removeClass("cke_anchor")):t.remove(1)),n.selectBookmarks(i)},requiredContent:"a[name]"},CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0})}(),function(){function e(e,t,n){function i(n){!(l=c[n?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(d=t.root[n?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||d.is&&d.isBlockBoundary({br:1})||e.document.createElement("br")[n?"insertBefore":"insertAfter"](l)}for(var o=CKEDITOR.plugins.list.listToArray(t.root,n),r=[],a=0;a<t.contents.length;a++){var s=t.contents[a];(s=s.getAscendant("li",!0))&&!s.getCustomData("list_item_processed")&&(r.push(s),CKEDITOR.dom.element.setMarker(n,s,"list_item_processed",!0))}for(s=null,a=0;a<r.length;a++)o[s=r[a].getCustomData("listarray_index")].indent=-1;for(a=s+1;a<o.length;a++)if(o[a].indent>o[a-1].indent+1){for(r=o[a-1].indent+1-o[a].indent,s=o[a].indent;o[a]&&o[a].indent>=s;)o[a].indent+=r,a++;a--}var l,d,c=CKEDITOR.plugins.list.arrayToList(o,n,null,e.config.enterMode,t.root.getAttribute("dir")).listNode;i(!0),i(),c.replace(t.root),e.fire("contentDomInvalidated")}function t(e,t){this.name=e,this.context=this.type=t,this.allowedContent=t+" li",this.requiredContent=t}function n(e,t,n,i){for(var o,r;o=e[i?"getLast":"getFirst"](f);)(r=o.getDirection(1))!==t.getDirection(1)&&o.setAttribute("dir",r),o.remove(),n?o[i?"insertBefore":"insertAfter"](n):t.append(o,i)}function i(e){function t(t){var i=e[t?"getPrevious":"getNext"](c);i&&i.type==CKEDITOR.NODE_ELEMENT&&i.is(e.getName())&&(n(e,i,null,!t),e.remove(),e=i)}t(),t(1)}function o(e){return e.type==CKEDITOR.NODE_ELEMENT&&(e.getName()in CKEDITOR.dtd.$block||e.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[e.getName()]["#"]}function r(e,t,o){e.fire("saveSnapshot"),o.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var r=o.extractContents();t.trim(!1,!0);var s=t.createBookmark(),l=(d=new CKEDITOR.dom.elementPath(t.startContainer)).block,d=d.lastElement.getAscendant("li",1)||l,h=(f=new CKEDITOR.dom.elementPath(o.startContainer)).contains(CKEDITOR.dtd.$listItem),f=f.contains(CKEDITOR.dtd.$list);for(l?(l=l.getBogus())&&l.remove():f&&(l=f.getPrevious(c))&&u(l)&&l.remove(),(l=r.getLast())&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("br")&&l.remove(),(l=t.startContainer.getChild(t.startOffset))?r.insertBefore(l):t.startContainer.append(r),h&&(r=a(h))&&(d.contains(h)?(n(r,h.getParent(),h),r.remove()):d.append(r));o.checkStartOfBlock()&&o.checkEndOfBlock()&&(r=(f=o.startPath()).block);)r.is("li")&&(d=r.getParent(),r.equals(d.getLast(c))&&r.equals(d.getFirst(c))&&(r=d)),o.moveToPosition(r,CKEDITOR.POSITION_BEFORE_START),r.remove();o=o.clone(),r=e.editable(),o.setEndAt(r,CKEDITOR.POSITION_BEFORE_END),(o=new CKEDITOR.dom.walker(o)).evaluator=function(e){return c(e)&&!u(e)},(o=o.next())&&o.type==CKEDITOR.NODE_ELEMENT&&o.getName()in CKEDITOR.dtd.$list&&i(o),t.moveToBookmark(s),t.select(),e.fire("saveSnapshot")}function a(e){return(e=e.getLast(c))&&e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in s?e:null}var s={ol:1,ul:1}
169,l=CKEDITOR.dom.walker.whitespaces(),d=CKEDITOR.dom.walker.bookmark(),c=function(e){return!(l(e)||d(e))},u=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(e,t,n,i,o){if(!s[e.getName()])return[];i||(i=0),n||(n=[]);for(var r=0,a=e.getChildCount();r<a;r++){var l=e.getChild(r);if(l.type==CKEDITOR.NODE_ELEMENT&&l.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(l,t,n,i+1),"li"==l.$.nodeName.toLowerCase()){var d={parent:e,indent:i,element:l,contents:[]};o?d.grandparent=o:(d.grandparent=e.getParent(),d.grandparent&&"li"==d.grandparent.$.nodeName.toLowerCase()&&(d.grandparent=d.grandparent.getParent())),t&&CKEDITOR.dom.element.setMarker(t,l,"listarray_index",n.length),n.push(d);for(var c,u=0,h=l.getChildCount();u<h;u++)(c=l.getChild(u)).type==CKEDITOR.NODE_ELEMENT&&s[c.getName()]?CKEDITOR.plugins.list.listToArray(c,t,n,i+1,d.grandparent):d.contents.push(c)}}return n},arrayToList:function(e,t,n,i,o){if(n||(n=0),!e||e.length<n+1)return null;for(var r,a,l,u=e[n].parent.getDocument(),h=new CKEDITOR.dom.documentFragment(u),f=null,p=n,m=Math.max(e[n].indent,0),g=null,v=i==CKEDITOR.ENTER_P?"p":"div";;){var y=e[p];if(r=y.grandparent,a=y.element.getDirection(1),y.indent==m){for(f&&e[p].parent.getName()==f.getName()||(f=e[p].parent.clone(!1,1),o&&f.setAttribute("dir",o),h.append(f)),g=f.append(y.element.clone(0,1)),a!=f.getDirection(1)&&g.setAttribute("dir",a),r=0;r<y.contents.length;r++)g.append(y.contents[r].clone(1,1));p++}else if(y.indent==Math.max(m,0)+1)y=e[p-1].element.getDirection(1),p=CKEDITOR.plugins.list.arrayToList(e,null,p,i,y!=a?a:null),!g.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=u.$.documentMode&&g.append(u.createText("\xa0")),g.append(p.listNode),p=p.nextIndex;else{if(-1!=y.indent||n||!r)return null;s[r.getName()]?(g=y.element.clone(!1,!0),a!=r.getDirection(1)&&g.setAttribute("dir",a)):g=new CKEDITOR.dom.documentFragment(u);f=r.getDirection(1)!=a;var _,b,T=y.element,C=T.getAttribute("class"),E=T.getAttribute("style"),w=g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(i!=CKEDITOR.ENTER_BR||f||E||C),I=y.contents.length;for(r=0;r<I;r++)if(_=y.contents[r],d(_)&&1<I)w?b=_.clone(1,1):g.append(_.clone(1,1));else if(_.type==CKEDITOR.NODE_ELEMENT&&_.isBlockBoundary()){f&&!_.getDirection()&&_.setAttribute("dir",a),l=_;var D=T.getAttribute("style");D&&l.setAttribute("style",D.replace(/([^;])$/,"$1;")+(l.getAttribute("style")||"")),C&&_.addClass(C),l=null,b&&(g.append(b),b=null),g.append(_.clone(1,1))}else w?(l||(l=u.createElement(v),g.append(l),f&&l.setAttribute("dir",a)),E&&l.setAttribute("style",E),C&&l.setAttribute("class",C),b&&(l.append(b),b=null),l.append(_.clone(1,1))):g.append(_.clone(1,1));b&&((l||g).append(b),b=null),g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&p!=e.length-1&&(CKEDITOR.env.needsBrFiller&&(a=g.getLast())&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("br")&&a.remove(),(a=g.getLast(c))&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$block)||g.append(u.createElement("br"))),"div"!=(a=g.$.nodeName.toLowerCase())&&"p"!=a||g.appendBogus(),h.append(g),f=null,p++}if(l=null,e.length<=p||Math.max(e[p].indent,0)<m)break}if(t)for(e=h.getFirst();e;){if(e.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(t,e),e.getName()in CKEDITOR.dtd.$listItem&&(u=o=i=void 0,i=(n=e).getDirection()))){for(o=n.getParent();o&&!(u=o.getDirection());)o=o.getParent();i==u&&n.removeAttribute("dir")}e=e.getNextSourceNode()}return{listNode:h,nextIndex:p}}};var h=/^h[1-6]$/,f=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);t.prototype={exec:function(t){this.refresh(t,t.elementPath());var n=t.config,o=t.getSelection(),r=o&&o.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF)if((l=t.editable()).getFirst(c)){var a=1==r.length&&r[0];(n=a&&a.getEnclosedNode())&&n.is&&this.type==n.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else n.enterMode==CKEDITOR.ENTER_BR?l.appendBogus():r[0].fixBlock(1,n.enterMode==CKEDITOR.ENTER_P?"p":"div"),o.selectRanges(r);n=o.createBookmarks(!0);for(var l=[],d={},u=(r=r.createIterator(),0);(a=r.getNextRange())&&++u;){var f=(b=a.getBoundaryNodes()).startNode,p=b.endNode;for(f.type==CKEDITOR.NODE_ELEMENT&&"td"==f.getName()&&a.setStartAt(b.startNode,CKEDITOR.POSITION_AFTER_START),p.type==CKEDITOR.NODE_ELEMENT&&"td"==p.getName()&&a.setEndAt(b.endNode,CKEDITOR.POSITION_BEFORE_END),(a=a.createIterator()).forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;b=a.getNextParagraph();)if(!b.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(d,b,"list_block",1);f=(g=t.elementPath(b)).elements,p=0;for(var m,g=g.blockLimit,v=f.length-1;0<=v&&(m=f[v]);v--)if(s[m.getName()]&&g.contains(m)){g.removeCustomData("list_group_object_"+u),(f=m.getCustomData("list_group_object"))?f.contents.push(b):(f={root:m,contents:[b]},l.push(f),CKEDITOR.dom.element.setMarker(d,m,"list_group_object",f)),p=1;break}p||((p=g).getCustomData("list_group_object_"+u)?p.getCustomData("list_group_object_"+u).contents.push(b):(f={root:p,contents:[b]},CKEDITOR.dom.element.setMarker(d,p,"list_group_object_"+u,f),l.push(f)))}}for(m=[];0<l.length;)if(f=l.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(s[f.root.getName()]){for(r=t,u=f,f=d,a=m,p=CKEDITOR.plugins.list.listToArray(u.root,f),g=[],b=0;b<u.contents.length;b++)(v=(v=u.contents[b]).getAscendant("li",!0))&&!v.getCustomData("list_item_processed")&&(g.push(v),CKEDITOR.dom.element.setMarker(f,v,"list_item_processed",!0));v=u.root.getDocument();for(var y=void 0,_=void 0,b=0;b<g.length;b++){var T=g[b].getCustomData("listarray_index");
169(y=p[T].parent).is(this.type)||(_=v.createElement(this.type),y.copyAttributes(_,{start:1,type:1}),_.removeStyle("list-style-type"),p[T].parent=_)}for(f=CKEDITOR.plugins.list.arrayToList(p,f,null,r.config.enterMode),p=void 0,g=f.listNode.getChildCount(),b=0;b<g&&(p=f.listNode.getChild(b));b++)p.getName()==this.type&&a.push(p);f.listNode.replace(u.root),r.fire("contentDomInvalidated")}else{for(p=t,b=m,g=(a=f).contents,r=a.root.getDocument(),u=[],1==g.length&&g[0].equals(a.root)&&(f=r.createElement("div"),g[0].moveChildren&&g[0].moveChildren(f),g[0].append(f),g[0]=f),a=a.contents[0].getParent(),v=0;v<g.length;v++)a=a.getCommonAncestor(g[v].getParent());for(y=p.config.useComputedState,p=f=void 0,y=void 0===y||y,v=0;v<g.length;v++)for(_=g[v];T=_.getParent();){if(T.equals(a)){u.push(_),!p&&_.getDirection()&&(p=1),_=_.getDirection(y),null!==f&&(f=f&&f!=_?null:_);break}_=T}if(!(1>u.length)){for(g=u[u.length-1].getNext(),v=r.createElement(this.type),b.push(v),y=b=void 0;u.length;)b=u.shift(),y=r.createElement("li"),(_=b).is("pre")||h.test(_.getName())||"false"==_.getAttribute("contenteditable")?b.appendTo(y):(b.copyAttributes(y),f&&b.getDirection()&&(y.removeStyle("direction"),y.removeAttribute("dir")),b.moveChildren(y),b.remove()),y.appendTo(v);f&&p&&v.setAttribute("dir",f),g?v.insertBefore(g):v.appendTo(a)}}else this.state==CKEDITOR.TRISTATE_ON&&s[f.root.getName()]&&e.call(this,t,f,d);for(v=0;v<m.length;v++)i(m[v]);CKEDITOR.dom.element.clearAllMarkers(d),o.selectBookmarks(n),t.focus()},refresh:function(e,t){var n=t.contains(s,1),i=t.blockLimit||t.root;n&&i.contains(n)?this.setState(n.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(e){e.blockless||(e.addCommand("numberedlist",new t("numberedlist","ol")),e.addCommand("bulletedlist",new t("bulletedlist","ul")),e.ui.addButton&&(e.ui.addButton("NumberedList",{label:e.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),e.ui.addButton("BulletedList",{label:e.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),e.on("key",function(t){var n,i=t.data.domEvent.getKey();if("wysiwyg"==e.mode&&i in{8:1,46:1}){var l=e.getSelection().getRanges()[0],d=l&&l.startPath();if(l&&l.collapsed){var h,f=8==i,p=e.editable(),m=new CKEDITOR.dom.walker(l.clone());if(m.evaluator=function(e){return c(e)&&!u(e)},m.guard=function(e,t){return!(t&&e.type==CKEDITOR.NODE_ELEMENT&&e.is("table"))},i=l.clone(),f)if((h=d.contains(s))&&l.checkBoundaryOfElement(h,CKEDITOR.START)&&(h=h.getParent())&&h.is("li")&&(h=a(h))?(n=h,h=h.getPrevious(c),i.moveToPosition(h&&u(h)?h:n,CKEDITOR.POSITION_BEFORE_START)):(m.range.setStartAt(p,CKEDITOR.POSITION_AFTER_START),m.range.setEnd(l.startContainer,l.startOffset),(h=m.previous())&&h.type==CKEDITOR.NODE_ELEMENT&&(h.getName()in s||h.is("li"))&&(h.is("li")||(m.range.selectNodeContents(h),m.reset(),m.evaluator=o,h=m.previous()),n=h,i.moveToElementEditEnd(n),i.moveToPosition(i.endPath().block,CKEDITOR.POSITION_BEFORE_END))),n)r(e,i,l),t.cancel();else{var g=d.contains(s);g&&l.checkBoundaryOfElement(g,CKEDITOR.START)&&(n=g.getFirst(c),l.checkBoundaryOfElement(n,CKEDITOR.START)&&(h=g.getPrevious(c),a(n)?h&&(l.moveToElementEditEnd(h),l.select()):e.execCommand("outdent"),t.cancel()))}else if(n=d.contains("li")){if(m.range.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),f=(p=n.getLast(c))&&o(p)?p:n,d=0,(h=m.next())&&h.type==CKEDITOR.NODE_ELEMENT&&h.getName()in s&&h.equals(p)?(d=1,h=m.next()):l.checkBoundaryOfElement(f,CKEDITOR.END)&&(d=2),d&&h){if((l=l.clone()).moveToElementEditStart(h),1==d&&(i.optimize(),!i.startContainer.equals(n))){for(n=i.startContainer;n.is(CKEDITOR.dtd.$inline);)g=n,n=n.getParent();g&&i.moveToPosition(g,CKEDITOR.POSITION_AFTER_END)}2==d&&(i.moveToPosition(i.endPath().block,CKEDITOR.POSITION_BEFORE_END),l.endPath().block&&l.moveToPosition(l.endPath().block,CKEDITOR.POSITION_AFTER_START)),r(e,i,l),t.cancel()}}else m.range.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),(h=m.next())&&h.type==CKEDITOR.NODE_ELEMENT&&h.is(s)&&(h=h.getFirst(c),d.block&&l.checkStartOfBlock()&&l.checkEndOfBlock()?(d.block.remove(),l.moveToElementEditStart(h),l.select()):a(h)?(l.moveToElementEditStart(h),l.select()):((l=l.clone()).moveToElementEditStart(h),r(e,i,l)),t.cancel());setTimeout(function(){e.selectionChange(1)})}}}))}})}(),CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(e){var t;e.blockless||(t=new CKEDITOR.dialogCommand("numberedListStyle",{requiredContent:"ol",allowedContent:"ol{list-style-type}[start]; li{list-style-type}[value]",contentTransformations:[["ol: listTypeToStyle"]]}),t=e.addCommand("numberedListStyle",t),e.addFeature(t),CKEDITOR.dialog.add("numberedListStyle",this.path+"dialogs/liststyle.js"),t=new CKEDITOR.dialogCommand("bulletedListStyle",{requiredContent:"ul",allowedContent:"ul{list-style-type}",contentTransformations:[["ul: listTypeToStyle"]]}),t=e.addCommand("bulletedListStyle",t),e.addFeature(t),CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js"),e.addMenuGroup("list",108),e.addMenuItems({numberedlist:{label:e.lang.liststyle.numberedTitle,group:"list",command:"numberedListStyle"},bulletedlist:{label:e.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}}
169),e.contextMenu.addListener(function(e){if(!e||e.isReadOnly())return null;for(;e;){var t=e.getName();if("ol"==t)return{numberedlist:CKEDITOR.TRISTATE_OFF};if("ul"==t)return{bulletedlist:CKEDITOR.TRISTATE_OFF};e=e.getParent()}return null}))}},CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle),function(){function e(e,t,n){return u(t)&&u(n)&&n.equals(t.getNext(function(e){return!(Y(e)||G(e)||h(e))}))}function t(e){this.upper=e[0],this.lower=e[1],this.set.apply(this,e.slice(2))}function n(e){var t=e.element;if(t&&u(t)&&(t=t.getAscendant(e.triggers,!0))&&e.editable.contains(t)){var n=a(t);if("true"==n.getAttribute("contenteditable"))return t;if(n.is(e.triggers))return n}return null}function i(e,t,n){return b(e,t),b(e,n),e=t.size.bottom,n=n.size.top,e&&n?0|(e+n)/2:e||n}function o(e,t,n){return t[n?"getPrevious":"getNext"](function(t){return t&&t.type==CKEDITOR.NODE_TEXT&&!Y(t)||u(t)&&!h(t)&&!c(e,t)})}function r(e,t,n){return e>t&&e<n}function a(e,t){if(e.data("cke-editable"))return null;for(t||(e=e.getParent());e&&!e.data("cke-editable");){if(e.hasAttribute("contenteditable"))return e;e=e.getParent()}return null}function s(e){var t=e.doc,n=D('<span contenteditable="false" style="'+q+"position:absolute;border-top:1px dashed "+e.boxColor+'"></span>',t),i=CKEDITOR.getUrl(this.path+"images/"+(x.hidpi?"hidpi/":"")+"icon"+(e.rtl?"-rtl":"")+".png");for(w(n,{attach:function(){return this.wrap.getParent()||this.wrap.appendTo(e.editable,!0),this},lineChildren:[w(D('<span title="'+e.editor.lang.magicline.title+'" contenteditable="false">↵</span>',t),{base:q+"height:17px;width:17px;"+(e.rtl?"left":"right")+":17px;background:url("+i+") center no-repeat "+e.boxColor+";cursor:pointer;"+(x.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(x.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),w(D(U,t),{base:W+"left:0px;border-left-color:"+e.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),w(D(U,t),{base:W+"right:0px;border-right-color:"+e.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){return this.wrap.getParent()&&this.wrap.remove(),this},mouseNear:function(){b(e,this);var t=e.holdDistance,n=this.size;return!!(n&&r(e.mouse.y,n.top-t,n.bottom+t)&&r(e.mouse.x,n.left-t,n.right+t))},place:function(){var t=e.view,n=e.editable,i=e.trigger,o=i.upper,a=i.lower,s=o||a,l=s.getParent(),d={};for(var c in this.trigger=i,o&&b(e,o,!0),a&&b(e,a,!0),b(e,l,!0),e.inInlineMode&&T(e,!0),l.equals(n)?(d.left=t.scroll.x,d.right=-t.scroll.x,d.width=""):(d.left=s.size.left-s.size.margin.left+t.scroll.x-(e.inInlineMode?t.editable.left+t.editable.border.left:0),d.width=s.size.outerWidth+s.size.margin.left+s.size.margin.right+t.scroll.x,d.right=""),o&&a?d.top=o.size.margin.bottom===a.size.margin.top?0|o.size.bottom+o.size.margin.bottom/2:o.size.margin.bottom<a.size.margin.top?o.size.bottom+o.size.margin.bottom:o.size.bottom+o.size.margin.bottom-a.size.margin.top:o?a||(d.top=o.size.bottom+o.size.margin.bottom):d.top=a.size.top-a.size.margin.top,i.is(N)||r(d.top,t.scroll.y-15,t.scroll.y+5)?(d.top=e.inInlineMode?0:t.scroll.y,this.look(N)):i.is(L)||r(d.top,t.pane.bottom-5,t.pane.bottom+15)?(d.top=e.inInlineMode?t.editable.height+t.editable.padding.top+t.editable.padding.bottom:t.pane.bottom-1,this.look(L)):(e.inInlineMode&&(d.top-=t.editable.top+t.editable.border.top),this.look(M)),e.inInlineMode&&(d.top--,d.top+=t.editable.scroll.top,d.left+=t.editable.scroll.left),d)d[c]=CKEDITOR.tools.cssLength(d[c]);this.setStyles(d)},look:function(e){if(this.oldLook!=e){for(var t,n=this.lineChildren.length;n--;)(t=this.lineChildren[n]).setAttribute("style",t.base+t.looks[0|e/2]);this.oldLook=e}},wrap:new I("span",e.doc)}),t=n.lineChildren.length;t--;)n.lineChildren[t].appendTo(n);n.look(M),n.appendTo(n.wrap),n.unselectable(),n.lineChildren[0].on("mouseup",function(t){n.detach(),l(e,function(t){var n=e.line.trigger;t[n.is(R)?"insertBefore":"insertAfter"](n.is(R)?n.lower:n.upper)},!0),e.editor.focus(),x.ie||e.enterMode==CKEDITOR.ENTER_BR||e.hotNode.scrollIntoView(),t.data.preventDefault(!0)}),n.on("mousedown",function(e){e.data.preventDefault(!0)}),e.line=n}function l(e,t,n){var i,o=new CKEDITOR.dom.range(e.doc),r=e.editor;x.ie&&e.enterMode==CKEDITOR.ENTER_BR?i=e.doc.createText(P):(i=(i=a(e.element,!0))&&i.data("cke-enter-mode")||e.enterMode,(i=new I(S[i],e.doc)).is("br")||e.doc.createText(P).appendTo(i)),n&&r.fire("saveSnapshot"),t(i),o.moveToPosition(i,CKEDITOR.POSITION_AFTER_START),r.getSelection().selectRanges([o]),e.hotNode=i,n&&r.fire("saveSnapshot")}function d(e,t){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function i(n){var i=x.ie&&9>x.version?" ":P,o=e.hotNode&&e.hotNode.getText()==i&&e.element.equals(e.hotNode)&&e.lastCmdDirection===!!t;l(e,function(i){o&&e.hotNode&&e.hotNode.remove(),i[t?"insertAfter":"insertBefore"](n),i.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!t}),e.lastCmdDirection=!!t}),x.ie||e.enterMode==CKEDITOR.ENTER_BR||e.hotNode.scrollIntoView(),e.line.detach()}return function(r){var s,l;(r=(r=r.getSelection().getStartElement()).getAscendant(H,1),m(e,r)||!r||r.equals(e.editable)||r.contains(e.editable))||((s=a(r))&&"false"==s.getAttribute("contenteditable")&&(r=s),e.element=r,u(s=o(e,r,!t))&&s.is(e.triggers)&&s.is(j)&&(!o(e,s,!t)||(l=o(e,s,!t))&&u(l)&&l.is(e.triggers))?i(s):u(l=n(e,r))&&(o(e,l,!t)?(r=o(e,l,!t))&&u(r)&&r.is(e.triggers)&&i(l):i(l)))}}()}}function c(e,t){if(!t||t.type!=CKEDITOR.NODE_ELEMENT||!t.$)return!1;var n=e.line;return n.wrap.equals(t)||n.wrap.contains(t)}function u(e){return e&&e.type==CKEDITOR.NODE_ELEMENT&&e.$}function h(e){return!!u(e)&&((t=f(e))||(u(e)?t=!(!(t={left:1,right:1,center:1})[e.getComputedStyle("float")]&&!t[e.getAttribute("align")]):t=!1),t);var t}function f(e){return!!{absolute:1,fixed:1}[e.getComputedStyle("position")]}function p(e,t){return u(t)?t.is(e.triggers):null}function m(e,t){if(!t)return!1;for(var n=t.getParents(1),i=n.length;i--;)for(var o=e.tabuList.length;o--;)if(n[i].hasAttribute(e.tabuList[o]))return!0;return!1}function g(e,t,n){return!!(t=t[n?"getLast":"getFirst"](function(t){return e.isRelevant(t)&&!t.is(B)}))&&(b(e,t),n?t.size.top>e.mouse.y:t.size.bottom<e.mouse.y)}function v(e){var n=e.editable,i=e.mouse,o=e.view,a=e.triggerOffset;T(e);var s=i.y>(e.inInlineMode?o.editable.top+o.editable.height/2:Math.min(o.editable.height,o.pane.height)/2);return(n=n[s?"getLast":"getFirst"](function(e){return!(Y(e)||G(e))}))?(c(e,n)&&(n=e.line.wrap[s?"getPrevious":"getNext"](function(e){return!(Y(e)||G(e))})),u(n)&&!h(n)&&p(e,n)?(b(e,n),!s&&0<=n.size.top&&r(i.y,0,n.size.top+a)?(e=e.inInlineMode||0===o.scroll.y?N:M,new t([null,n,R,K,e])):s&&n.size.bottom<=o.pane.height&&r(i.y,n.size.bottom-a,o.pane.height)?(e=e.inInlineMode||r(n.size.bottom,o.pane.height-a,o.pane.height)?L:M,new t([n,null,$,K,e])):null):null):null}function y(e){var i=e.mouse,a=e.view,s=e.triggerOffset,l=n(e);if(!l)return null;b(e,l);s=Math.min(s,0|l.size.outerHeight/2);var d,c,f=[];if(r(i.y,l.size.top-1,l.size.top+s))c=!1;else{if(!r(i.y,l.size.bottom-s,l.size.bottom+1))return null;c=!0}if(h(l)||g(e,l,c)||l.getParent().is(F))return null;var m=o(e,l,!c);if(m){if(m&&m.type==CKEDITOR.NODE_TEXT)return null;if(u(m)){if(h(m)||!p(e,m)||m.getParent().is(F))return null;f=[m,l][c?"reverse":"concat"]().concat([A,K])}}else l.equals(e.editable[c?"getLast":"getFirst"](e.isRelevant))?(T(e),c&&r(i.y,l.size.bottom-s,a.pane.height)&&r(l.size.bottom,a.pane.height-s,a.pane.height)?d=L:r(i.y,0,l.size.top+s)&&(d=N)):d=M,f=[null,l][c?"reverse":"concat"]().concat([c?$:R,K,d,l.equals(e.editable[c?"getLast":"getFirst"](e.isRelevant))?c?L:N:M]);return 0 in f?new t(f):null}function _(e,t,n,i){for(var o=t.getDocumentPosition(),r={},a={},s={},l={},d=Q.length;d--;)r[Q[d]]=parseInt(t.getComputedStyle.call(t,"border-"+Q[d]+"-width"),10)||0,s[Q[d]]=parseInt(t.getComputedStyle.call(t,"padding-"+Q[d]),10)||0,a[Q[d]]=parseInt(t.getComputedStyle.call(t,"margin-"+Q[d]),10)||0 170;return n&&!i||C(e,i),l.top=o.y-(n?0:e.view.scroll.y),l.left=o.x-(n?0:e.view.scroll.x),l.outerWidth=t.$.offsetWidth,l.outerHeight=t.$.offsetHeight,l.height=l.outerHeight-(s.top+s.bottom+r.top+r.bottom),l.width=l.outerWidth-(s.left+s.right+r.left+r.right),l.bottom=l.top+l.outerHeight,l.right=l.left+l.outerWidth,e.inInlineMode&&(l.scroll={top:t.$.scrollTop,left:t.$.scrollLeft}),w({border:r,padding:s,margin:a,ignoreScroll:n},l,!0)}function b(e,t,n){if(!u(t))return t.size=null;if(t.size){if(t.size.ignoreScroll==n&&t.size.date>new Date-z)return null}else t.size={};return w(t.size,_(e,t,n),{date:+new Date},!0)}function T(e,t){e.view.editable=_(e,e.editable,t,!0)}function C(e,t){e.view||(e.view={});var n=e.view;if(!(!t&&n&&n.date>new Date-z)){n=(i=e.win).getScrollPosition();var i=i.getViewPaneSize();w(e.view,{scroll:{x:n.x,y:n.y,width:e.doc.$.documentElement.scrollWidth-i.width,height:e.doc.$.documentElement.scrollHeight-i.height},pane:{width:i.width,height:i.height,bottom:i.height+n.y},date:+new Date},!0)}}function E(e,n,i,o){for(var r=o,a=o,s=0,l=!1,d=!1,c=e.view.pane.height,u=e.mouse;u.y+s<c&&0<u.y-s&&(l||(l=n(r,o)),d||(d=n(a,o)),!l&&0<u.y-s&&(r=i(e,{x:u.x,y:u.y-s})),!d&&u.y+s<c&&(a=i(e,{x:u.x,y:u.y+s})),!l||!d);)s+=2;return new t([r,a,null,null])}CKEDITOR.plugins.add("magicline",{init:function(e){var i,r,a,p=e.config,g=p.magicline_triggerOffset||30,b={editor:e,enterMode:p.enterMode,triggerOffset:g,holdDistance:0|g*(p.magicline_holdDistance||.5),boxColor:p.magicline_color||"#ff0000",rtl:"rtl"==p.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(p.magicline_tabuList||[]),triggers:p.magicline_everywhere?H:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}};b.isRelevant=function(e){return u(e)&&!c(b,e)&&!h(e)},e.on("contentDom",function(){var u=e.editable(),h=e.document,g=e.window;w(b,{editable:u,inInlineMode:u.isInline(),doc:h,win:g,hotNode:null},!0),b.boundary=b.inInlineMode?b.editable:b.doc.getDocumentElement(),u.is(k.$inline)||(b.inInlineMode&&!f(u)&&u.setStyles({position:"relative",top:null,left:null}),s.call(this,b),C(b),u.attachListener(e,"beforeUndoImage",function(){b.line.detach()}),u.attachListener(e,"beforeGetData",function(){b.line.wrap.getParent()&&
170(b.line.detach(),e.once("getData",function(){b.line.attach()},null,null,1e3))},null,null,0),u.attachListener(b.inInlineMode?h:h.getWindow().getFrame(),"mouseout",function(t){if("wysiwyg"==e.mode)if(b.inInlineMode){var n=t.data.$.clientX;t=t.data.$.clientY,C(b),T(b,!0);var i=b.view.editable,o=b.view.scroll;n>i.left-o.x&&n<i.right-o.x&&t>i.top-o.y&&t<i.bottom-o.y||(clearTimeout(a),a=null,b.line.detach())}else clearTimeout(a),a=null,b.line.detach()}),u.attachListener(u,"keyup",function(){b.hiddenMode=0}),u.attachListener(u,"keydown",function(t){if("wysiwyg"==e.mode)switch(t.data.getKeystroke()){case 2228240:case 16:b.hiddenMode=1,b.line.detach()}}),u.attachListener(b.inInlineMode?u:h,"mousemove",function(t){if(r=!0,"wysiwyg"==e.mode&&!e.readOnly&&!a){var n={x:t.data.$.clientX,y:t.data.$.clientY};a=setTimeout(function(){b.mouse=n,a=b.trigger=null,C(b),r&&!b.hiddenMode&&e.focusManager.hasFocus&&!b.line.mouseNear()&&(b.element=V(b,!0))&&((b.trigger=v(b)||y(b)||X(b))&&!m(b,b.trigger.upper||b.trigger.lower)?b.line.attach().place():(b.trigger=null,b.line.detach()),r=!1)},30)}}),u.attachListener(g,"scroll",function(){"wysiwyg"==e.mode&&(b.line.detach(),x.webkit&&(b.hiddenMode=1,clearTimeout(i),i=setTimeout(function(){b.mouseDown||(b.hiddenMode=0)},50)))}),u.attachListener(O?h:g,"mousedown",function(){"wysiwyg"==e.mode&&(b.line.detach(),b.hiddenMode=1,b.mouseDown=1)}),u.attachListener(O?h:g,"mouseup",function(){b.hiddenMode=0,b.mouseDown=0}),e.addCommand("accessPreviousSpace",d(b)),e.addCommand("accessNextSpace",d(b,!0)),e.setKeystroke([[p.magicline_keystrokePrevious,"accessPreviousSpace"],[p.magicline_keystrokeNext,"accessNextSpace"]]),e.on("loadSnapshot",function(){var t,n,i,o;for(o in{p:1,br:1,div:1})for(i=(t=e.document.getElementsByTag(o)).count();i--;)if((n=t.getItem(i)).data("cke-magicline-hot"))return b.hotNode=n,void(b.lastCmdDirection="true"===n.data("cke-magicline-dir"))}),this.backdoor={accessFocusSpace:l,boxTrigger:t,isLine:c,getAscendantTrigger:n,getNonEmptyNeighbour:o,getSize:_,that:b,triggerEdge:y,triggerEditable:v,triggerExpand:X})},this)}});var w=CKEDITOR.tools.extend,I=CKEDITOR.dom.element,D=I.createFromHtml,x=CKEDITOR.env,O=CKEDITOR.env.ie&&9>CKEDITOR.env.version,k=CKEDITOR.dtd,S={},R=128,$=64,A=32,K=16,N=4,L=2,M=1,P="\xa0",F=k.$listItem,B=k.$tableContent,j=w({},k.$nonEditable,k.$empty),H=k.$block,z=100,q="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",W=q+"border-color:transparent;display:block;border-style:solid;",U="<span>"+P+"</span>";S[CKEDITOR.ENTER_BR]="br",S[CKEDITOR.ENTER_P]="p",S[CKEDITOR.ENTER_DIV]="div",t.prototype={set:function(e,t,n){return this.properties=e+t+(n||M),this},is:function(e){return(this.properties&e)==e}};var V=function(){function e(e,t){var n=e.$.elementFromPoint(t.x,t.y);return n&&n.nodeType?new CKEDITOR.dom.element(n):null}return function(t,n,i){if(!t.mouse)return null;var o=t.doc,r=t.line.wrap,a=e(o,i=i||t.mouse);return n&&c(t,a)&&(r.hide(),a=e(o,i),r.show()),!a||a.type!=CKEDITOR.NODE_ELEMENT||!a.$||x.ie&&9>x.version&&!t.boundary.equals(a)&&!t.boundary.contains(a)?null:a}}(),Y=CKEDITOR.dom.walker.whitespaces(),G=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),X=function(){function t(t){var o,a,s;if(!u(f=t.element)||f.contains(t.editable)||f.isReadOnly())return null;if(o=(s=E(t,function(e,t){return!t.equals(e)},function(e,t){return V(e,!0,t)},f)).upper,a=s.lower,e(t,o,a))return s.set(A,8);if(o&&f.contains(o))for(;!o.getParent().equals(f);)o=o.getParent();else o=f.getFirst(function(e){return n(t,e)});if(a&&f.contains(a))for(;!a.getParent().equals(f);)a=a.getParent();else a=f.getLast(function(e){return n(t,e)});if(!o||!a)return null;if(b(t,o),b(t,a),!r(t.mouse.y,o.size.top,a.size.bottom))return null;for(var l,d,c,h,f=Number.MAX_VALUE;a&&!a.equals(o)&&(d=o.getNext(t.isRelevant));)(l=Math.abs(i(t,o,d)-t.mouse.y))<f&&(f=l,c=o,h=d),b(t,o=d);return c&&h&&r(t.mouse.y,c.size.top,h.size.bottom)?(s.upper=c,s.lower=h,s.set(A,8)):null}function n(e,t){return!(t&&t.type==CKEDITOR.NODE_TEXT||G(t)||h(t)||c(e,t)||t.type==CKEDITOR.NODE_ELEMENT&&t.$&&t.is("br"))}return function(n){var i,o=t(n);if(i=o){i=o.upper;var r=o.lower;i=!(!i||!r||h(r)||h(i)||r.equals(i)||i.equals(r)||r.contains(i)||i.contains(r))&&!!(p(n,i)&&p(n,r)&&e(n,i,r))}return i?o:null}}(),Q=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SH
170IFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function e(e){if(!e||e.type!=CKEDITOR.NODE_ELEMENT||"form"!=e.getName())return[];for(var t=[],n=["style","className"],i=0;i<n.length;i++){var o=e.$.elements.namedItem(n[i]);o&&(o=new CKEDITOR.dom.element(o),t.push([o,o.nextSibling]),o.remove())}return t}function t(e,t){if(e&&e.type==CKEDITOR.NODE_ELEMENT&&"form"==e.getName()&&0<t.length)for(var n=t.length-1;0<=n;n--){var i=t[n][0],o=t[n][1];o?i.insertBefore(o):i.appendTo(e)}}function n(n,i){var o=e(n),r={},a=n.$;return i||(r["class"]=a.className||"",a.className=""),r.inline=a.style.cssText||"",i||(a.style.cssText="position: static; overflow: visible"),t(o),r}function i(n,i){var o=e(n),r=n.$;"class"in i&&(r.className=i["class"]),"inline"in i&&(r.style.cssText=i.inline),t(o)}function o(e){if(!e.editable().isInline()){var t,n=CKEDITOR.instances;for(t in n){var i=n[t];"wysiwyg"!=i.mode||i.readOnly||((i=i.document.getBody()).setAttribute("contentEditable",!1),i.setAttribute("contentEditable",!0))}e.editable().hasFocus&&(e.toolbox.focus(),e.focus())}}CKEDITOR.plugins.add("maximize",{init:function(e){function t(){var t=c.getViewPaneSize();e.resize(t.width,t.height,null,!0)}if(e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var r,a,s,l=e.lang,d=CKEDITOR.document,c=d.getWindow(),u=CKEDITOR.TRISTATE_OFF;e.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var h=e.container.getFirst(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_inner")}),f=e.ui.space("contents");if("wysiwyg"==e.mode){var p=e.getSelection();r=p&&p.getRanges(),a=c.getScrollPosition()}else{var m=e.editable().$;r=!CKEDITOR.env.ie&&[m.selectionStart,m.selectionEnd],a=[m.scrollLeft,m.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){for(c.on("resize",t),s=c.getScrollPosition(),p=e.container;p=p.getParent();)p.setCustomData("maximize_saved_styles",n(p)),p.setStyle("z-index",e.config.baseFloatZIndex-5);f.setCustomData("maximize_saved_styles",n(f,!0)),h.setCustomData("maximize_saved_styles",n(h,!0)),f={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0},d.getDocumentElement().setStyles(f),!CKEDITOR.env.gecko&&d.getDocumentElement().setStyle("position","fixed"),CKEDITOR.env.gecko&&CKEDITOR.env.quirks||d.getBody().setStyles(f),CKEDITOR.env.ie?setTimeout(function(){c.$.scrollTo(0,0)},0):c.$.scrollTo(0,0),h.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute"),h.$.offsetLeft,h.setStyles({"z-index":e.config.baseFloatZIndex-5,left:"0px",top:"0px"}),h.addClass("cke_maximized"),t(),f=h.getDocumentPosition(),h.setStyles({left:-1*f.x+"px",top:-1*f.y+"px"}),CKEDITOR.env.gecko&&o(e)}else if(this.state==CKEDITOR.TRISTATE_ON){c.removeListener("resize",t);p=[f,h];for(var g=0;g<p.length;g++)i(p[g],p[g].getCustomData("maximize_saved_styles")),p[g].removeCustomData("maximize_saved_styles");for(p=e.container;p=p.getParent();)i(p,p.getCustomData("maximize_saved_styles")),p.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){c.$.scrollTo(s.x,s.y)},0):c.$.scrollTo(s.x,s.y),h.removeClass("cke_maximized"),CKEDITOR.env.webkit&&(h.setStyle("display","inline"),setTimeout(function(){h.setStyle("display","block")},0)),e.fire("resize",{outerHeight:e.container.$.offsetHeight,contentsHeight:f.$.offsetHeight,outerWidth:e.container.$.offsetWidth})}this.toggleState(),(p=this.uiItems[0])&&(f=this.state==CKEDITOR.TRISTATE_OFF?l.maximize.maximize:l.maximize.minimize,(p=CKEDITOR.document.getById(p._.id)).getChild(1).setHtml(f),p.setAttribute("title",f),p.setAttribute("href",'javascript:void("'+f+'");')),"wysiwyg"==e.mode?r?(CKEDITOR.env.gecko&&o(e),e.getSelection().selectRanges(r),(m=e.getSelection().getStartElement())&&m.scrollIntoView(!0)):c.$.scrollTo(a.x,a.y):(r&&(m.selectionStart=r[0],m.selectionEnd=r[1]),m.scrollLeft=a[0],m.scrollTop=a[1]),r=a=null,u=this.state,e.fire("maximize",this.state)},canUndo:!1}),e.ui.addButton&&e.ui.addButton("Maximize",{label:l.maximize.maximize,command:"maximize",toolbar:"tools,10"}),e.on("mode",function(){var t=e.getCommand("maximize");t.setState(t.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:u)},null,null,100)}}})}(),CKEDITOR.plugins.add("newpage",{init:function(e){e.addCommand("newpage",{modes:{wysiwyg:1,source:1},exec:function(e){var t=this;e.setData(e.config.newpage_html||"",function(){e.focus(),setTimeout(function(){e.fire("afterCommandExec",{name:"newpage",command:t}),e.selectionChange()},200)})},async:!0}),e.ui.addButton&&e.ui.addButton("NewPage",{label:e.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}}),function(){function e(e){return{"aria-label":e,"class":"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-after: always",title:e}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var e=("background:url("+CKEDITOR.getUrl(this.path+"images/pagebreak.gif")+") no-repeat center center;clear:both;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;padding:0;height:7px;cursor:default;").replace(/;/g," !important;");CKEDITOR.addCss("div.cke_pagebreak{"+e+"}")},init:function(e){e.blockless||(e.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd),e.ui.addButton&&e.ui.addButton("PageBreak",{label:e.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"}),CKEDITOR.env.webkit&&e.on("contentDom",function(){e.document.on("click",function(t){(t=t.data.getTarget()).is("div")&&t.hasClass("cke_pagebreak")&&e.getSelection().selectElement(t)})}))},afterInit:function(t){function n(n){CKEDITOR.tools.extend(n.attributes,e(t.lang.pagebreak.alt),!0),n.children.length=0}var i=(o=t.dataProcessor)&&o.dataFilter,o=o&&o.htmlFilter,r=/page-break-after\s*:\s*always/i,a=/display\s*:\s*none/i;o&&o.addRules({attributes:{"class":function(e,t){var n=e.replace("cke_pagebreak","");if(n!=e){var i=CKEDITOR.htmlParser.fragment.fromHtml('<span style="display: none;"> </span>').children[0];t.children.length=0,t.add(i),delete(i=t.attributes)["aria-label"],delete i.contenteditable,delete i.title}return n}}},{applyToAll:!0,priority:5}),i&&i.addRules({elements:{div:function(e){if(e.attributes["data-cke-pagebreak"])n(e);else if(r.test(e.attributes.style)){var t=e.children[0];t&&"span"==t.name&&a.test(t.attributes.style)&&n(e)}}}})}}),CKEDITOR.plugins.pagebreakCmd={exec:function(t){var n=t.document.createElement("div",{attributes:e(t.lang.pagebreak.alt)});t.insertElement(n)},context:"div",allowedContent:{div:{styles:"!page-break-after"},span:{match:function(e){return(e=e.parent)&&"div"==e.name&&e.styles&&e.styles["page-break-after"]},styles:"display"}},requiredContent:"div{page-break-after}"}}(),h={canUndo:!1,async:!0,exec:function(e,t){var n=e.lang,i=CKEDITOR.tools.keystrokeToString(n.common.keyboard,e.getCommandKeystroke(CKEDITOR.env.ie?e.commands.paste:this)),o=t&&"undefined"!=typeof t.notification?t.notification:!t||!t.from||"keystrokeHandler"===t.from&&CKEDITOR.env.ie;n=o&&"string"==typeof o?o:n.pastetext.pasteNotification.replace(/%1/,'<kbd aria-label="'+i.aria+'">'+i.display+"</kbd>");e.execCommand("paste",{type:"text",notification:!!o&&n})}},CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(e){var t=CKEDITOR.env.safari?CKEDITOR.CTRL+CKEDITOR.ALT+CKEDITOR.SH
170IFT+86:CKEDITOR.CTRL+CKEDITOR.SHIFT+86;e.addCommand("pastetext",h),e.setKeystroke(t,"pastetext"),e.ui.addButton&&e.ui.addButton("PasteText",{label:e.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"}),e.config.forcePasteAsPlainText&&e.on("beforePaste",function(e){"html"!=e.data.type&&(e.data.type="text")}),e.on("pasteState",function(t){e.getCommand("pastetext").setState(t.data)})}}),function(){function e(e,t,n){var i=CKEDITOR.cleanWord;return i?n():(e=CKEDITOR.getUrl(e.config.pasteFromWordCleanupFile||t+"filter/default.js"),CKEDITOR.scriptLoader.load(e,n,null,!0)),!i}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(t){var n=0,i=this.path;t.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(e,t){n=1,e.execCommand("paste",{type:"html",notification:!t||"undefined"==typeof t.notification||t.notification})}}),t.ui.addButton&&t.ui.addButton("PasteFromWord",{label:t.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"}),t.on("paste",function(o){var r=o.data,a=(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?r.dataTransfer.getData("text/html",!0):null)||r.dataValue,s={dataValue:a},l=/(class=\"?Mso|style=(?:\"|\')[^\"]*?\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/;l=/<meta\s*name=(?:\"|\')?generator(?:\"|\')?\s*content=(?:\"|\')?microsoft/gi.test(a)||l.test(a);if(a&&(n||l)&&(!1!==t.fire("pasteFromWord",s)||n)){r.dontFilter=!0;var d=e(t,i,function(){d?t.fire("paste",r):(!t.config.pasteFromWordPromptCleanup||n||confirm(t.lang.pastefromword.confirmCleanup))&&(s.dataValue=CKEDITOR.cleanWord(s.dataValue,t),t.fire("afterPasteFromWord",s),r.dataValue=s.dataValue),n=0});d&&o.cancel()}},null,null,3)}})}(),function(){var e,t={modes:{wysiwyg:1,source:1},canUndo:!1,readOnly:1,exec:function(n){var i,o=(r=n.config).baseHref?'<base href="'+r.baseHref+'"/>':"";if(r.fullPage)i=n.getData().replace(/<head>/,"$&"+o).replace(/[^>]*(?=<\/title>)/,"$& — "+n.lang.preview.preview);else{var r="<body ";(s=n.document&&n.document.getBody())&&(s.getAttribute("id")&&(r+='id="'+s.getAttribute("id")+'" '),s.getAttribute("class")&&(r+='class="'+s.getAttribute("class")+'" ')),r+=">",i=n.config.docType+'<html dir="'+n.config.contentsLangDirection+'"><head>'+o+"<title>"+n.lang.preview.preview+"</title>"+CKEDITOR.tools.buildStyleHtml(n.config.contentsCss)+"</head>"+r+n.getData()+"</body></html>"}o=640,r=420,s=80;try{var a=window.screen,s=(o=Math.round(.8*a.width),r=Math.round(.7*a.height),Math.round(.1*a.width))}catch(t){}if(!1===n.fire("contentPreview",n={dataValue:i}))return!1;var l;a="";return CKEDITOR.env.ie&&(window._cke_htmlToLoad=n.dataValue,l="javascript:void( (function(){document.open();"+("("+CKEDITOR.tools.fixDomain+")();").replace(/\/\/.*?\n/g,"").replace(/parent\./g,"window.opener.")+"document.write( window.opener._cke_htmlToLoad );document.close();window.opener._cke_htmlToLoad = null;})() )",a=""),CKEDITOR.env.gecko&&(window._cke_htmlToLoad=n.dataValue,a=CKEDITOR.getUrl(e+"preview.html")),a=window.open(a,null,"toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+o+",height="+r+",left="+s),CKEDITOR.env.ie&&a&&(a.location=l),CKEDITOR.env.ie||CKEDITOR.env.gecko||((l=a.document).open(),l.write(n.dataValue),l.close()),!0}};CKEDITOR.plugins.add("preview",{init:function(n){n.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(e=this.path,n.addCommand("preview",t),n.ui.addButton&&n.ui.addButton("Preview",{label:n.lang.preview.preview,command:"preview",toolbar:"document,40"}))}})}(),CKEDITOR.plugins.add("print",{init:function(e){e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(e.addCommand("print",CKEDITOR.plugins.print),e.ui.addButton&&e.ui.addButton("Print",{label:e.lang.print.toolbar,command:"print",toolbar:"document,50"}))}}),CKEDITOR.plugins.print={exec:function(e){CKEDITOR.env.gecko?e.window.$.print():e.document.$.execCommand("Print")},canUndo:!1,readOnly:1,modes:{wysiwyg:1}},CKEDITOR.plugins.add("removeformat",{init:function(e){e.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat),e.ui.addButton&&e.ui.addButton("RemoveFormat",{label:e.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(e){for(var t,n=e._.removeFormatRegex||(e._.removeFormatRegex=new RegExp("^(?:"+e.config.removeFormatTags.replace(/,/g,"|")+")$","i")),i=e._.removeAttributes||(e._.removeAttributes=e.config.removeFormatAttributes.split(",")),o=CKEDITOR.plugins.removeformat.filter,r=e.getSelection().getRanges(),a=r.createIterator(),s=function(e){return e.type==CKEDITOR.NODE_ELEMENT};t=a.getNextRange();){t.collapsed||t.enlarge(CKEDITOR.ENLARGE_ELEMENT);var l=t.createBookmark(),d=l.startNode,c=l.endNode,u=function(t){for(var i,r=e.elementPath(t),a=r.elements,s=1;(i=a[s])&&!i.equals(r.block)&&!i.equals(r.blockLimit);s++)n.test(i.getName())&&o(e,i)&&t.breakParent(i)};if(u(d),c)for(u(c),d=d.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);d&&!d.equals(c);)if(d.isReadOnly()){if(d.getPosition(c)&CKEDITOR.POSITION_CONTAINS)break;d=d.getNext(s)}else u=d.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==d.getName()&&d.data("cke-realelement")||!o(e,d)||(n.test(d.getName())?d.remove(1):(d.removeAttributes(i),e.fire("removeFormatCleanup",d))),d=u;t.moveToBookmark(l)}e.forceNextSelectionCheck(),e.getSelection().selectRanges(r)}}},filter:function(e,t){for(var n=e._.removeFormatFilters||[],i=0;i<n.length;i++)if(!1===n[i](t))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(e){this._.removeFormatFilters||(this._.removeFormatFilters=[]),this._.removeFormatFilters.push(e)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",function(){var e={readOnly:1,exec:function(t){if(t.fire("save")&&(t=t.element.$.form))try{t.submit()}catch(e){t.submit.click&&t.submit.click()}}};CKEDITOR.plugins.add("save",{init:function(t){t.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(t.addCommand("save",e).modes={wysiwyg:!!t.element.$.form},t.ui.addButton&&t.ui.addButton("Save",{label:t.lang.save.toolbar,command:"save",toolbar:"document,10"}))}})}(),CKEDITOR.plugins.add("selectall",{init:function(e){e.addCommand("selectAll",{modes:{wysiwyg:1,source:1},exec:function(e){var t=e.editable();if(t.is("textarea"))e=t.$,CKEDITOR.env.ie?e.createTextRange().execCommand("SelectAll"):(e.selectionStart=0,e.selectionEnd=e.value.length),e.focus();else{if(t.is("body"))e.document.$.execCommand("SelectAll",!1,null);else{var n=e.createRange();n.selectNodeContents(t),n.select()}e.forceNextSelectionCheck(),e.selectionChange()}},canUndo:!1}),e.ui.addButton&&e.ui.addButton("SelectAll",{label:e.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}}),function(){var e={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(e){this.toggleState(),this.refresh(e)},refresh:function(e){if(e.document){var t=this.state!=CKEDITOR.TRISTATE_ON||e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!e.focusManager.hasFocus?"removeClass":"attachClass";e.editable()[t]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var e,t,n,i,o,r,a="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),s=CKEDITOR.getUrl(this.path),l=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),d=l?":not([contenteditable=false]):not(.cke_show_blocks_off)":"";for(e=t=n=i="";o=a.pop();)e+=".cke_show_blocks "+o+d+(r=a.length?",":""),n+=".cke_show_blocks.cke_contents_ltr "+o+d+r,i+=".cke_show_blocks.cke_contents_rtl "+o+d+r,t+=".cke_show_blocks "+o+d+"{background-image:url("+CKEDITOR.getUrl(s+"images/block_"+o+".png")+")}";CKEDITOR.addCss((e+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(t,n+"{background-position:top left;padding-left:8px}",i+"{background-position:top right;padding-right:8px}")),l||CKEDITOR.addCss(".cke_show_blocks [contenteditable=false],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable=false],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable=false],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")},init:function(t){function n(){i.refresh(t)}if(!t.blockless){var i=t.addCommand("showblocks",e);i.canUndo=!1,t.config.startupOutlineBlocks&&i.setState(CKEDITOR.TRISTATE_ON),t.ui.addButton&&t.ui.addButton("ShowBlocks",{label:t.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"}),t.on("mode",function(){i.state!=CKEDITOR.TRISTATE_DISABLED&&i.refresh(t)}),t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(t.on("focus",n),t.on("blur",n)),t.on("contentDom",function(){i.state!=CKEDITOR.TRISTATE_DISABLED&&i.refresh(t)})}}})}(),function(){var e={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(e){this.toggleState(),this.refresh(e)},refresh:function(e){if(e.document){var t=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";e.editable()[t]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var e;e=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,;.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,;.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,;.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders "),CKEDITOR.addCss(e)},init:function(t){var n=t.addCommand("showborders",e);n.canUndo=!1,!1!==t.config.startupShowBorders&&n.setState(CKEDITOR.TRISTATE_ON),t.on("mode",function(){n.state!=CKEDITOR.TRISTATE_DISABLED&&n.refresh(t)},null,null,100),t.on("contentDom",function(){n.state!=CKEDITOR.TRISTATE_DISABLED&&n.refresh(t)}),t.on("removeFormatCleanup",function(e){e=e.data,t.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&e.is("table")&&(!e.hasAttribute("border")||0>=parseInt(e.getAttribute("border"),10))&&e.addClass("cke_show_border")})},afterInit:function(e){var t=e.dataProcessor;e=t&&t.dataFilter,t=t&&t.htmlFilter,e&&e.addRules({elements:{table:function(e){var t=(e=e.attributes)["class"],n=parseInt(e.border,10);n&&!(0>=n)||t&&-1!=t.indexOf("cke_show_border")||(e["class"]=(t||"")+" cke_show_border")}}}),t&&t.addRules({elements:{table:function(e){var t=(e=e.attributes)["class"];t&&(e["class"]=t.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}}),CKEDITOR.on("dialogDefinition",function(e){var t=e.data.name;"table"!=t&&"tableProperties"!=t||((t=(e=e.data.definition).getContents("info").get("txtBorder")).commit=CKEDITOR.tools.override(t.commit,function(e){return function(t,n){e.apply(this,arguments);var i=parseInt(this.getValue(),10);n[!i||0>=i?"addClass":"removeClass"]("cke_show_border")}}
170),(e=(e=e.getContents("advanced"))&&e.get("advCSSClasses"))&&(e.setup=CKEDITOR.tools.override(e.setup,function(e){return function(){e.apply(this,arguments),this.setValue(this.getValue().replace(/cke_show_border/,""))}}),e.commit=CKEDITOR.tools.override(e.commit,function(e){return function(t,n){e.apply(this,arguments),parseInt(n.getAttribute("border"),10)||n.addClass("cke_show_border")}})))})}(),function(){CKEDITOR.plugins.add("sourcearea",{init:function(t){function n(){var e=o&&this.equals(CKEDITOR.document.getActive());this.hide(),this.setStyle("height",this.getParent().$.clientHeight+"px"),this.setStyle("width",this.getParent().$.clientWidth+"px"),this.show(),e&&this.focus()}if(t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var i=CKEDITOR.plugins.sourcearea;t.addMode("source",function(i){var o=t.ui.space("contents").getDocument().createElement("textarea");o.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",t.config.sourceAreaTabSize||4))),o.setAttribute("dir","ltr"),o.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu"),t.ui.space("contents").append(o),(o=t.editable(new e(t,o))).setData(t.getData(1)),CKEDITOR.env.ie&&(o.attachListener(t,"resize",n,o),o.attachListener(CKEDITOR.document.getWindow(),"resize",n,o),CKEDITOR.tools.setTimeout(n,0,o)),t.fire("ariaWidget",this),i()}),t.addCommand("source",i.commands.source),t.ui.addButton&&t.ui.addButton("Source",{label:t.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"}),t.on("mode",function(){t.getCommand("source").setState("source"==t.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var o=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var e=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(e){this.setValue(e),this.status="ready",this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(e){this[(e?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){e.baseProto.detach.call(this),this.clearCustomData(),this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(e){"wysiwyg"==e.mode&&e.fire("saveSnapshot"),e.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED),e.setMode("source"==e.mode?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,es:1,"es-mx":1,et:1,eu:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(e){var t=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js"),e.addCommand("specialchar",{exec:function(){var n=e.langCode;n=t.availableLangs[n]?n:t.availableLangs[n.replace(/-.*/,"")]?n.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(t.path+"dialogs/lang/"+n+".js"),function(){CKEDITOR.tools.extend(e.lang.specialchar,t.langEntries[n]),e.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1}),e.ui.addButton&&e.ui.addButton("SpecialChar",{label:e.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! " # $ % & ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ € ‘ ’ “ ” – — ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Œ œ Ŵ Ŷ ŵ ŷ ‚ ‛ „ … ™ ► • → ⇒ ⇔ ♦ ≈".split(" "),CKEDITOR.plugins.add("scayt",{requires:"menubutton,dialog",tabToOpen:null,dialogName:"scaytDialog",onLoad:function(e){CKEDITOR.plugins.scayt.onLoadTimestamp=(new Date).getTime(),"moono-lisa"==(CKEDITOR.skinName||e.config.skin)&&CKEDITOR.document.appendStyleSheet(this.path+"skins/"+CKEDITOR.skin.name+"/scayt.css"),CKEDITOR.document.appendStyleSheet(this.path+"dialogs/dialog.css")},init:function(e){var t=this,n=CKEDITOR.plugins.scayt;this.bindEvents(e),this.parseConfig(e),this.addRule(e),CKEDITOR.dialog.add(this.dialogName,CKEDITOR.getUrl(this.path+"dialogs/options.js")),this.addMenuItems(e);var i=e.lang.scayt,o=CKEDITOR.env;e.ui.add("Scayt",CKEDITOR.UI_MENUBUTTON,{label:i.text_title,title:e.plugins.wsc?e.lang.wsc.title:i.text_title,modes:{wysiwyg:!(o.ie&&(8>o.version||o.quirks))},toolbar:"spellchecker,20",refresh:function(){var t=e.ui.instances.Scayt.getState();e.scayt&&(t=n.state.scayt[e.name]?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),e.fire("scaytButtonState",t)},onRender:function(){var t=this;e.on("scaytButtonState",function(e){void 0!==typeof e.data&&t.setState(e.data)})},onMenu:function(){var t=e.scayt;e.getMenuItem("scaytToggle").label=e.lang.scayt[t&&n.state.scayt[e.name]?"btn_disable":"btn_enable"];var i={scaytToggle:CKEDITOR.TRISTATE_OFF,scaytOptions:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytLangs:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytDict:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytAbout:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,WSC:e.plugins.wsc?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED};return e.config.scayt_uiTabs[0]||delete i.scaytOptions,e.config.scayt_uiTabs[1]||delete i.scaytLangs,e.config.scayt_uiTabs[2]||delete i.scaytDict,t&&!CKEDITOR.plugins.scayt.
170isNewUdSupported(t)&&(delete i.scaytDict,e.config.scayt_uiTabs[2]=0,CKEDITOR.plugins.scayt.alarmCompatibilityMessage()),i}}),e.contextMenu&&e.addMenuItems&&(e.contextMenu.addListener(function(){var n,i,o=e.scayt;return o&&(i=o.getSelectionNode())&&(n=t.menuGenerator(e,i),o.showBanner("."+e.contextMenu._.definition.panel.className.split(" ").join(" ."))),n}),e.contextMenu._.onHide=CKEDITOR.tools.override(e.contextMenu._.onHide,function(t){return function(){var n=e.scayt;return n&&n.hideBanner(),t.apply(this)}}))},addMenuItems:function(e){var t=this,n=CKEDITOR.plugins.scayt;e.addMenuGroup("scaytButton");for(var i=e.config.scayt_contextMenuItemsOrder.split("|"),o=0;o<i.length;o++)i[o]="scayt_"+i[o];if((i=["grayt_description","grayt_suggest","grayt_control"].concat(i))&&i.length)for(o=0;o<i.length;o++)e.addMenuGroup(i[o],o-10);e.addCommand("scaytToggle",{exec:function(e){var t=e.scayt;n.state.scayt[e.name]=!n.state.scayt[e.name],!0===n.state.scayt[e.name]?t||n.createScayt(e):t&&n.destroy(e)}}),e.addCommand("scaytAbout",{exec:function(e){e.scayt.tabToOpen="about",e.lockSelection(),e.openDialog(t.dialogName)}}),e.addCommand("scaytOptions",{exec:function(e){e.scayt.tabToOpen="options",e.lockSelection(),e.openDialog(t.dialogName)}}),e.addCommand("scaytLangs",{exec:function(e){ 171e.scayt.tabToOpen="langs",e.lockSelection(),e.openDialog(t.dialogName)}}),e.addCommand("scaytDict",{exec:function(e){e.scayt.tabToOpen="dictionaries",e.lockSelection(),e.openDialog(t.dialogName)}}),i={scaytToggle:{label:e.lang.scayt.btn_enable,group:"scaytButton",command:"scaytToggle"},scaytAbout:{label:e.lang.scayt.btn_about,group:"scaytButton",command:"scaytAbout"},scaytOptions:{label:e.lang.scayt.btn_options,group:"scaytButton",command:"scaytOptions"},scaytLangs:{label:e.lang.scayt.btn_langs,group:"scaytButton",command:"scaytLangs"},scaytDict:{label:e.lang.scayt.btn_dictionaries,group:"scaytButton",command:"scaytDict"}},e.plugins.wsc&&(i.WSC={label:e.lang.wsc.toolbar,group:"scaytButton",onClick:function(){var t=CKEDITOR.plugins.scayt,n=e.scayt,i=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.container.getText():e.document.getBody().getText();(i=i.replace(/\s/g,""))?(n&&t.state.scayt[e.name]&&n.setMarkupPaused&&n.setMarkupPaused(!0),e.lockSelection(),e.execCommand("checkspell")):alert("Nothing to check!")}}),e.addMenuItems(i)},bindEvents:function(e){var t=CKEDITOR.plugins.scayt,n=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE,i=function(){t.destroy(e)},o=function(){!t.state.scayt[e.name]||e.readOnly||e.scayt||t.createScayt(e)},r=function(){var t=e.editable();t.attachListener(t,"focus",function(t){var i,r;if(CKEDITOR.plugins.scayt&&!e.scayt&&setTimeout(o,0),t=CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[e.name]&&e.scayt,(n||t)&&e._.savedSelection){t=!(t=e._.savedSelection.getSelectedElement())&&e._.savedSelection.getRanges();for(var a=0;a<t.length;a++)"string"==typeof(r=t[a]).startContainer.$.nodeValue&&(((i=r.startContainer.getText().length)<r.startOffset||i<r.endOffset)&&e.unlockSelection(!1))}},this,null,-10)},a=function(){n?e.config.scayt_inlineModeImmediateMarkup?o():(e.on("blur",function(){setTimeout(i,0)}),e.on("focus",o),e.focusManager.hasFocus&&o()):o(),r();var t=e.editable();t.attachListener(t,"mousedown",function(t){t=t.data.getTarget();var n=e.widgets&&e.widgets.getByElement(t);n&&(n.wrapper=t.getAscendant(function(e){return e.hasAttribute("data-cke-widget-wrapper")},!0))},this,null,-10)};e.on("contentDom",a),e.on("beforeCommandExec",function(n){var i=e.scayt,o=!1,r=!1,a=!0;n.data.name in t.options.disablingCommandExec&&"wysiwyg"==e.mode?i&&(t.destroy(e),e.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)):"bold"!==n.data.name&&"italic"!==n.data.name&&"underline"!==n.data.name&&"strike"!==n.data.name&&"subscript"!==n.data.name&&"superscript"!==n.data.name&&"enter"!==n.data.name&&"cut"!==n.data.name&&"language"!==n.data.name||!i||("cut"===n.data.name&&(a=!1,r=!0),"language"===n.data.name&&(r=o=!0),e.fire("reloadMarkupScayt",{removeOptions:{removeInside:a,forceBookmark:r,language:o},timeout:0}))}),e.on("beforeSetMode",function(n){"source"==n.data&&((n=e.scayt)&&(t.destroy(e),e.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)),e.document&&e.document.getBody().removeAttribute("_jquid"))}),e.on("afterCommandExec",function(n){"wysiwyg"!=e.mode||"undo"!=n.data.name&&"redo"!=n.data.name||setTimeout(function(){t.reloadMarkup(e.scayt)},250)}),e.on("readOnly",function(n){var i;n&&(i=e.scayt,!0===n.editor.readOnly?i&&i.fire("removeMarkupInDocument",{}):i?t.reloadMarkup(i):"wysiwyg"==n.editor.mode&&!0===t.state.scayt[n.editor.name]&&(t.createScayt(e),n.editor.fire("scaytButtonState",CKEDITOR.TRISTATE_ON)))}),e.on("beforeDestroy",i),e.on("setData",function(){i(),(e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE||e.plugins.divarea)&&a()},this,null,50),e.on("reloadMarkupScayt",function(n){var i=n.data&&n.data.removeOptions,o=n.data&&n.data.timeout,r=n.data&&n.data.language,a=e.scayt;a&&setTimeout(function(){r&&(i.selectionNode=e.plugins.language.getCurrentLangElement(e),i.selectionNode=i.selectionNode&&i.selectionNode.$||null),a.removeMarkupInSelectionNode(i),t.reloadMarkup(a)},o||0)}),e.on("insertElement",function(){e.fire("reloadMarkupScayt",{removeOptions:{forceBookmark:!0}})},this,null,50),e.on("insertHtml",function(){e.scayt&&e.scayt.setFocused&&e.scayt.setFocused(!0),e.fire("reloadMarkupScayt")},this,null,50),e.on("insertText",function(){e.scayt&&e.scayt.setFocused&&e.scayt.setFocused(!0),e.fire("reloadMarkupScayt")},this,null,50),e.on("scaytDialogShown",function(t){t.data.selectPage(e.scayt.tabToOpen)})},parseConfig:function(e){if((i=CKEDITOR.plugins.scayt).replaceOldOptionsNames(e.config),"boolean"!=typeof e.config.scayt_autoStartup&&(e.config.scayt_autoStartup=!1),i.state.scayt[e.name]=e.config.scayt_autoStartup,"boolean"!=typeof e.config.grayt_autoStartup&&(e.config.grayt_autoStartup=!1),"boolean"!=typeof e.config.scayt_inlineModeImmediateMarkup&&(e.config.scayt_inlineModeImmediateMarkup=!1),i.state.grayt[e.name]=e.config.grayt_autoStartup,e.config.scayt_contextCommands||(e.config.scayt_contextCommands="ignore|ignoreall|add"),e.config.scayt_contextMenuItemsOrder||(e.config.scayt_contextMenuItemsOrder="suggest|moresuggest|control"),e.config.scayt_sLang||(e.config.scayt_sLang="en_US"),(void 0===e.config.scayt_maxSuggestions||"number"!=typeof e.config.scayt_maxSuggestions||0>e.config.scayt_maxSuggestions)&&(e.config.scayt_maxSuggestions=5),(void 0===e.config.scayt_minWordLength||"number"!=typeof e.config.scayt_minWordLength||1>e.config.scayt_minWordLength)&&(e.config.scayt_minWordLength=4),void 0!==e.config.scayt_customDictionaryIds&&"string"==typeof e.config.scayt_customDictionaryIds||(e.config.scayt_customDictionaryIds=""),void 0!==e.config.scayt_userDictionaryName&&"string"==typeof e.config.scayt_userDictionaryName||(e.config.scayt_userDictionaryName=null),"string"==typeof e.config.scayt_uiTabs&&3===e.config.scayt_uiTabs.split(",").length){var t=[],n=[];e.config.scayt_uiTabs=e.config.scayt_uiTabs.split(","),CKEDITOR.tools.search(e.config.scayt_uiTabs,function(e){1===Number(e)||0===Number(e)?(n.push(!0),t.push(Number(e))):n.push(!1)}),null===CKEDITOR.tools.search(n,!1)?e.config.scayt_uiTabs=t:e.config.scayt_uiTabs=[1,1,1]}else e.config.scayt_uiTabs=[1,1,1];if("string"!=typeof e.config.scayt_serviceProtocol&&(e.config.scayt_serviceProtocol=null),"string"!=typeof e.config.scayt_serviceHost&&(e.config.scayt_serviceHost=null),"string"!=typeof e.config.scayt_servicePort&&(e.config.scayt_servicePort=null),"string"!=typeof e.config.scayt_servicePath&&(e.config.scayt_servicePath=null),e.config.scayt_moreSuggestions||(e.config.scayt_moreSuggestions="on"),"string"!=typeof e.config.scayt_customerId&&(e.config.scayt_customerId="1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2"),"string"!=typeof e.config.scayt_customPunctuation&&(e.config.scayt_customPunctuation="-"),"string"!=typeof e.config.scayt_srcUrl&&(i=-1!=(i=document.location.protocol).search(/https?:/)?i:"http:",e.config.scayt_srcUrl=i+"//svc.webspellchecker.net/spellcheck31/lf/scayt3/ckscayt/ckscayt.js"),"boolean"!=typeof CKEDITOR.config.scayt_handleCheckDirty&&(CKEDITOR.config.scayt_handleCheckDirty=!0),"boolean"!=typeof CKEDITOR.config.scayt_handleUndoRedo&&(CKEDITOR.config.scayt_handleUndoRedo=!0),CKEDITOR.config.scayt_handleUndoRedo=!!CKEDITOR.plugins.undo&&CKEDITOR.config.scayt_handleUndoRedo,"boolean"!=typeof e.config.scayt_multiLanguageMode&&(e.config.scayt_multiLanguageMode=!1),"object"!=typeof e.config.scayt_multiLanguageStyles&&(e.config.scayt_multiLanguageStyles={}),e.config.scayt_ignoreAllCapsWords&&"boolean"!=typeof e.config.scayt_ignoreAllCapsWords&&(e.config.scayt_ignoreAllCapsWords=!1),e.config.scayt_ignoreDomainNames&&"boolean"!=typeof e.config.scayt_ignoreDomainNames&&(e.config.scayt_ignoreDomainNames=!1),e.config.scayt_ignoreWordsWithMixedCases&&"boolean"!=typeof e.config.scayt_ignoreWordsWithMixedCases&&
171(e.config.scayt_ignoreWordsWithMixedCases=!1),e.config.scayt_ignoreWordsWithNumbers&&"boolean"!=typeof e.config.scayt_ignoreWordsWithNumbers&&(e.config.scayt_ignoreWordsWithNumbers=!1),e.config.scayt_disableOptionsStorage){var i=CKEDITOR.tools.isArray(e.config.scayt_disableOptionsStorage)?e.config.scayt_disableOptionsStorage:"string"==typeof e.config.scayt_disableOptionsStorage?[e.config.scayt_disableOptionsStorage]:void 0,o="all options lang ignore-all-caps-words ignore-domain-names ignore-words-with-mixed-cases ignore-words-with-numbers".split(" "),r=["lang","ignore-all-caps-words","ignore-domain-names","ignore-words-with-mixed-cases","ignore-words-with-numbers"],a=CKEDITOR.tools.search,s=CKEDITOR.tools.indexOf;e.config.scayt_disableOptionsStorage=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],l=!!a(e,"options");if(!a(o,i)||l&&a(r,function(e){if("lang"===e)return!1}))return;if(a(r,i)&&r.splice(s(r,i),1),"all"===i||l&&a(e,"lang"))return[];"options"===i&&(r=["lang"])}return t.concat(r)}(i)}},addRule:function(e){var t=CKEDITOR.plugins.scayt,n=(o=e.dataProcessor)&&o.htmlFilter,i=e._.elementsPath&&e._.elementsPath.filters,o=o&&o.dataFilter,r=e.addRemoveFormatFilter,a=function(n){if(e.scayt&&(n.hasAttribute(t.options.data_attribute_name)||n.hasAttribute(t.options.problem_grammar_data_attribute)))return!1},s=function(n){var i=!0;return e.scayt&&(n.hasAttribute(t.options.data_attribute_name)||n.hasAttribute(t.options.problem_grammar_data_attribute))&&(i=!1),i};i&&i.push(a),o&&o.addRules({elements:{span:function(e){var n=e.hasClass(t.options.misspelled_word_class)&&e.attributes[t.options.data_attribute_name],i=e.hasClass(t.options.problem_grammar_class)&&e.attributes[t.options.problem_grammar_data_attribute];return t&&(n||i)&&delete e.name,e}}}),n&&n.addRules({elements:{span:function(e){var n=e.hasClass(t.options.misspelled_word_class)&&e.attributes[t.options.data_attribute_name],i=e.hasClass(t.options.problem_grammar_class)&&e.attributes[t.options.problem_grammar_data_attribute];return t&&(n||i)&&delete e.name,e}}}),r&&r.call(e,s)},scaytMenuDefinition:function(e){var t=this;return{scayt:{scayt_ignore:{label:(e=e.scayt).getLocal("btn_ignore"),group:"scayt_control",order:1,exec:function(e){e.scayt.ignoreWord()}},scayt_ignoreall:{label:e.getLocal("btn_ignoreAll"),group:"scayt_control",order:2,exec:function(e){e.scayt.ignoreAllWords()}},scayt_add:{label:e.getLocal("btn_addWord"),group:"scayt_control",order:3,exec:function(e){var t=e.scayt;setTimeout(function(){t.addWordToUserDictionary()},10)}},scayt_option:{label:e.getLocal("btn_options"),group:"scayt_control",order:4,exec:function(e){e.scayt.tabToOpen="options",e.lockSelection(),e.openDialog(t.dialogName)},verification:function(e){return 1==e.config.scayt_uiTabs[0]}},scayt_language:{label:e.getLocal("btn_langs"),group:"scayt_control",order:5,exec:function(e){e.scayt.tabToOpen="langs",e.lockSelection(),e.openDialog(t.dialogName)},verification:function(e){return 1==e.config.scayt_uiTabs[1]}},scayt_dictionary:{label:e.getLocal("btn_dictionaries"),group:"scayt_control",order:6,exec:function(e){e.scayt.tabToOpen="dictionaries",e.lockSelection(),e.openDialog(t.dialogName)},verification:function(e){return 1==e.config.scayt_uiTabs[2]}},scayt_about:{label:e.getLocal("btn_about"),group:"scayt_control",order:7,exec:function(e){e.scayt.tabToOpen="about",e.lockSelection(),e.openDialog(t.dialogName)}}},grayt:{grayt_problemdescription:{label:"Grammar problem description",group:"grayt_description",order:1,state:CKEDITOR.TRISTATE_DISABLED,exec:function(){}},grayt_ignore:{label:e.getLocal("btn_ignore"),group:"grayt_control",order:2,exec:function(e){e.scayt.ignorePhrase()}}}}},buildSuggestionMenuItems:function(e,t,n){var i={},o={},r=n?"word":"phrase",a=n?"startGrammarCheck":"startSpellCheck",s=e.scayt;if(0<t.length&&"no_any_suggestions"!==t[0])if(n)for(n=0;n<t.length;n++){var l="scayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[n].replace(" ","_");e.addCommand(l,this.createCommand(CKEDITOR.plugins.scayt.suggestions[n],r,a)),n<e.config.scayt_maxSuggestions?(e.addMenuItem(l,{label:t[n],command:l,group:"scayt_suggest",order:n+1}),i[l]=CKEDITOR.TRISTATE_OFF):(e.addMenuItem(l,{label:t[n],command:l,group:"scayt_moresuggest",order:n+1}),o[l]=CKEDITOR.TRISTATE_OFF,"on"===e.config.scayt_moreSuggestions&&(e.addMenuItem("scayt_moresuggest",{label:s.getLocal("btn_moreSuggestions"),group:"scayt_moresuggest",order:10,getItems:function(){return o}}),i.scayt_moresuggest=CKEDITOR.TRISTATE_OFF))}else for(n=0;n<t.length;n++)l="grayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[n].replace(" ","_"),e.addCommand(l,this.createCommand(CKEDITOR.plugins.scayt.suggestions[n],r,a)),e.addMenuItem(l,{label:t[n],command:l,group:"grayt_suggest",order:n+1}),i[l]=CKEDITOR.TRISTATE_OFF;else i.no_scayt_suggest=CKEDITOR.TRISTATE_DISABLED,e.addCommand("no_scayt_suggest",{exec:function(){}}),e.addMenuItem("no_scayt_suggest",{label:s.getLocal("btn_noSuggestions")||"no_scayt_suggest",command:"no_scayt_suggest",group:"scayt_suggest",order:0});return i},menuGenerator:function(e,t){var n,i,o=e.scayt,r=this.scaytMenuDefinition(e),a={},s=e.config.scayt_contextCommands.split("|"),l=t.getAttribute(o.getLangAttribute())||o.getLang();if(n=o.isScaytNode(t),i=o.isGraytNode(t),n?(r=r.scayt,a=t.getAttribute(o.getScaytNodeAttributeName()),o.fire("getSuggestionsList",{lang:l,word:a}),a=this.buildSuggestionMenuItems(e,CKEDITOR.plugins.scayt.suggestions,n)):i&&(r=r.grayt,a=t.getAttribute(o.getGraytNodeAttributeName()),i=o.getProblemDescriptionText(a,l),r.grayt_problemdescription&&i&&(r.grayt_problemdescription.label=i),o.fire("getGrammarSuggestionsList",{lang:l,phrase:a}),a=this.buildSuggestionMenuItems(e,CKEDITOR.plugins.scayt.suggestions,n)),n&&"off"==e.config.scayt_contextCommands)return a;for(var d in r)n&&-1==CKEDITOR.tools.indexOf(s,d.replace("scayt_",""))&&"all"!=e.config.scayt_contextCommands||(a[d]="undefined"!=typeof r[d].state?r[d].state:CKEDITOR.TRISTATE_OFF,"function"!=typeof r[d].verification||r[d].verification(e)||delete a[d],e.addCommand(d,{exec:r[d].exec}),e.addMenuItem(d,{label:e.lang.scayt[r[d].label]||r[d].label,command:d,group:r[d].group,order:r[d].order}));return a},createCommand:function(e,t,n){return{exec:function(i){i=i.scayt;var o={};o[t]=e,i.replaceSelectionNode(o),"startGrammarCheck"===n&&i.removeMarkupInSelectionNode({grammarOnly:!0}),i.fire(n)}}}}),CKEDITOR.plugins.scayt={charsToObserve:[{charName:"cke-fillingChar",charCode:function(){var e;if(n=(n=CKEDITOR.version.match(/^\d(\.\d*)*/))&&n[0]){e="4.5.7";var t,n=n.replace(/\./g,"");e=e.replace(/\./g,""),t=0<=(t=n.length-e.length)?t:0,e=parseInt(n)>=parseInt(e)*Math.pow(10,t)}return e?Array(7).join(String.fromCharCode(8203)):String.fromCharCode(8203)}()}],onLoadTimestamp:"",state:{scayt:{},grayt:{}},warningCounter:0,suggestions:[],options:{disablingCommandExec:{source:!0,newpage:!0,templates:!0},data_attribute_name:"data-scayt-word",misspelled_word_class:"scayt-misspell-word",problem_grammar_data_attribute:"data-grayt-phrase",problem_grammar_class:"gramm-problem"},backCompatibilityMap:{scayt_service_protocol:"scayt_serviceProtocol",scayt_service_host:"scayt_serviceHost",scayt_service_port:"scayt_servicePort",scayt_service_path:"scayt_servicePath",scayt_customerid:"scayt_customerId"},alarmCompatibilityMessage:function(){5>this.warningCounter&&(console.warn("You are using the latest version of SCAYT plugin for CKEditor with the old application version. In order to have access to the newest features, it is recommended to upgrade the application version to latest one as well. Contact us for more details at [email protected]."),this.warningCounter+=1)},isNewUdSupported:function(e){return!!e.getUserDictionary},reloadMarkup:function(e){var t;e&&(t=e.getScaytLangList(),e.reloadMarkup?e.reloadMarkup():(this.alarmCompatibilityMessage(),t&&t.ltr&&t.rtl&&e.fire("startSpellCheck, startGrammarCheck")))},replaceOldOptionsNames:function(e){for(var t in e)t in this.backCompatibilityMap&&(e[this.backCompatibilityMap[t]]=e[t],delete e[t])},createScayt:function(e){var t=this,n=CKEDITOR.plugins.scayt;this.loadScaytLibrary(e,function(e){function i(e){return new SCAYT.CKSCAYT(e,function(){},function(){})}var o=e.window&&e.window.getFrame()||e.editable();if(o){var r;o={lang:e.config.scayt_sLang,container:o.$,customDictionary:e.config.scayt_customDictionaryIds,userDictionaryName:e.config.scayt_userDictionaryName,localization:e.langCode,customer_id:e.config.scayt_customerId,customPunctuation:e.config.scayt_customPunctuation,debug:e.config.scayt_debug,data_attribute_name:t.options.data_attribute_name,misspelled_word_class:t.options.misspelled_word_class,problem_grammar_data_attribute:t.options.problem_grammar_data_attribute,problem_grammar_class:t.options.problem_grammar_class,"options-to-restore":e.config.scayt_disableOptionsStorage,focused:e.editable().hasFocus,ignoreElementsRegex:e.config.scayt_elementsToIgnore,ignoreGraytElementsRegex:e.config.grayt_elementsToIgnore,minWordLength:e.config.scayt_minWordLength,multiLanguageMode:e.config.scayt_multiLanguageMode,multiLanguageStyles:e.config.scayt_multiLanguageStyles,graytAutoStartup:n.state.grayt[e.name],charsToObserve:n.charsToObserve},e.config.scayt_serviceProtocol&&(o.service_protocol=e.config.scayt_serviceProtocol),e.config.scayt_serviceHost&&(o.service_host=e.config.scayt_serviceHost),e.config.scayt_servicePort&&(o.service_port=e.config.scayt_servicePort),e.config.scayt_servicePath&&(o.service_path=e.config.scayt_servicePath),"boolean"==typeof e.config.scayt_ignoreAllCapsWords&&(o["ignore-all-caps-words"]=e.config.scayt_ignoreAllCapsWords),"boolean"==typeof e.config.scayt_ignoreDomainNames&&(o["ignore-domain-names"]=e.config.scayt_ignoreDomainNames),"boolean"==typeof e.config.scayt_ignoreWordsWithMixedCases&&
171(o["ignore-words-with-mixed-cases"]=e.config.scayt_ignoreWordsWithMixedCases),"boolean"==typeof e.config.scayt_ignoreWordsWithNumbers&&(o["ignore-words-with-numbers"]=e.config.scayt_ignoreWordsWithNumbers);try{r=i(o)}catch(l){t.alarmCompatibilityMessage(),delete o.charsToObserve,r=i(o)}r.subscribe("suggestionListSend",function(e){for(var t={},n=[],i=0;i<e.suggestionList.length;i++)t["word_"+e.suggestionList[i]]||(t["word_"+e.suggestionList[i]]=e.suggestionList[i],n.push(e.suggestionList[i]));CKEDITOR.plugins.scayt.suggestions=n}),r.subscribe("selectionIsChanged",function(){e.getSelection().isLocked&&e.lockSelection()}),r.subscribe("graytStateChanged",function(t){n.state.grayt[e.name]=t.state}),r.addMarkupHandler&&r.addMarkupHandler(function(t){var n=e.editable(),i=n.getCustomData(t.charName);i&&(i.$=t.node,n.setCustomData(t.charName,i))}),e.scayt=r,e.fire("scaytButtonState",e.readOnly?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_ON)}else n.state.scayt[e.name]=!1})},destroy:function(e){e.scayt&&e.scayt.destroy(),delete e.scayt,e.fire("scaytButtonState",CKEDITOR.TRISTATE_OFF)},loadScaytLibrary:function(e,t){var n,i=function(){CKEDITOR.fireOnce("scaytReady"),e.scayt||"function"==typeof t&&t(e)};"undefined"==typeof window.SCAYT||"function"!=typeof window.SCAYT.CKSCAYT?(n=e.config.scayt_srcUrl+"?"+this.onLoadTimestamp,CKEDITOR.scriptLoader.load(n,function(e){e&&i()})):window.SCAYT&&"function"==typeof window.SCAYT.CKSCAYT&&i()}},CKEDITOR.on("dialogDefinition",function(e){var t=e.data.name;e=e.data.definition.dialog,"scaytDialog"===t&&e.on("cancel",function(){return!1},this,null,-1),"checkspell"===t&&e.on("cancel",function(e){e=e.sender&&e.sender.getParentEditor();var t=CKEDITOR.plugins.scayt,n=e.scayt;n&&t.state.scayt[e.name]&&n.setMarkupPaused&&n.setMarkupPaused(!1),e.unlockSelection()},this,null,-2),"link"===t&&e.on("ok",function(e){var t=e.sender&&e.sender.getParentEditor();t&&setTimeout(function(){t.fire("reloadMarkupScayt",{removeOptions:{removeInside:!0,forceBookmark:!0},timeout:0})},0)})}),CKEDITOR.on("scaytReady",function(){!0===CKEDITOR.config.scayt_handleCheckDirty&&((e=CKEDITOR.editor.prototype).checkDirty=CKEDITOR.tools.override(e.checkDirty,function(e){return function(){var t=null,n=this.scayt;if(CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt){if(t="ready"==this.status){var i=n.removeMarkupFromString(this.getSnapshot());n=n.removeMarkupFromString(this._.previousValue),t=t&&n!==i}}else t=e.call(this);return t}}),e.resetDirty=CKEDITOR.tools.override(e.resetDirty,function(e){return function(){var t=this.scayt;CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt?this._.previousValue=t.removeMarkupFromString(this.getSnapshot()):e.call(this)}}));if(!0===CKEDITOR.config.scayt_handleUndoRedo){var e,t="function"==typeof(e=CKEDITOR.plugins.undo.Image.prototype).equalsContent?"equalsContent":"equals";e[t]=CKEDITOR.tools.override(e[t],function(e){return function(t){var n=t.editor.scayt,i=this.contents,o=t.contents,r=null;return CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[t.editor.name]&&t.editor.scayt&&(this.contents=n.removeMarkupFromString(i)||"",t.contents=n.removeMarkupFromString(o)||""),r=e.apply(this,arguments),this.contents=i,t.contents=o,r}})}}),CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(e){var t=e.config,n=e.lang.stylescombo,i={},o=[],r=[];e.on("stylesSet",function(n){if(n=n.data.styles){for(var a,s,l,d=0,c=n.length;d<c;d++)a=n[d],e.blockless&&a.element in CKEDITOR.dtd.$block||"string"==typeof a.type&&!CKEDITOR.style.customHandlers[a.type]||(s=a.name,a=new CKEDITOR.style(a),e.filter.customConfig&&!e.filter.check(a))||(a._name=s,a._.enterMode=t.enterMode,a._.type=l=a.assignedTo||a.type,a._.weight=d+1e3*(l==CKEDITOR.STYLE_OBJECT?1:l==CKEDITOR.STYLE_BLOCK?2:3),i[s]=a,o.push(a),r.push(a));o.sort(function(e,t){return e._.weight-t._.weight})}}),e.ui.addRichCombo("Styles",{label:n.label,title:n.panelTitle,toolbar:"styles,10",allowedContent:r,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(t.contentsCss),multiSelect:!0,attributes:{"aria-label":n.panelTitle}},init:function(){var e,t,i,r,a,s;for(a=0,s=o.length;a<s;a++)t=(e=o[a])._name,(r=e._.type)!=i&&(this.startGroup(n["panelTitle"+String(r)]),i=r),this.add(t,e.type==CKEDITOR.STYLE_OBJECT?t:e.buildPreview(),t);this.commit()},onClick:function(t){e.focus(),e.fire("saveSnapshot"),t=i[t];var n=e.elementPath();t.group&&t.removeStylesFromSameGroup(e)?e.applyStyle(t):e[t.checkActive(n,e)?"removeStyle":"applyStyle"](t),e.fire("saveSnapshot")},onRender:function(){e.on("selectionChange",function(t){for(var n,o=this.getValue(),r=0,a=(t=t.data.path.elements).length;r<a;r++)for(var s in n=t[r],i)if(i[s].checkElementRemovable(n,!0,e))return void(s!=o&&this.setValue(s));this.setValue("")},this)},onOpen:function(){var t=e.getSelection().getSelectedElement(),o=(t=e.elementPath(t),[0,0,0,0]);for(var r in this.showAll(),this.unmarkAll(),i){var a=i[r],s=a._.type;a.checkApplicable(t,e,e.activeFilter)?o[s]++:this.hideItem(r),a.checkActive(t,e)&&this.mark(r)}o[CKEDITOR.STYLE_BLOCK]||this.hideGroup(n["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]),o[CKEDITOR.STYLE_INLINE]||this.hideGroup(n["panelTitle"+String(CKEDITOR.STYLE_INLINE)]),o[CKEDITOR.STYLE_OBJECT]||this.hideGroup(n["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var t=e.elementPath();if(t){for(var n in i)if(i[n].checkApplicable(t,e,e.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){i={},o=[]}})}}),function(){function e(e){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(t){if(t.editable().hasFocus){var n,i=t.getSelection();if(n=new CKEDITOR.dom.elementPath(i.getCommonAncestor(),i.root).contains({td:1,th:1},1)){i=t.createRange();if((r=CKEDITOR.tools.tryThese(function(){var t=n.getParent().$.cells[n.$.cellIndex+(e?-1:1)];return t.parentNode.parentNode,t},function(){var t;return(t=(t=n.getParent()).getAscendant("table").$.rows[t.$.rowIndex+(e?-1:1)]).cells[e?t.cells.length-1:0]}))||e){if(!r)return!0;r=new CKEDITOR.dom.element(r),i.moveToElementEditStart(r),i.checkStartOfBlock()&&i.checkEndOfBlock()||i.selectNodeContents(r)}else{for(var o=n.getAscendant("table").$,r=n.getParent().$.cells,a=(o=new CKEDITOR.dom.element(o.insertRow(-1),t.document),0),s=r.length;a<s;a++)o.append(new CKEDITOR.dom.element(r[a],t.document).clone(!1,!1)).appendBogus();i.moveToElementEditStart(o)}return i.select(!0),!0}}return!1}}}var t={editorFocus:!1,modes:{wysiwyg:1,source:1}},n={exec:function(e){e.container.focusNext(!0,e.tabIndex)}},i={exec:function(e){e.container.focusPrevious(!0,e.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(o){for(var r=!1!==o.config.enableTabKeyTools,a=o.config.tabSpaces||0,s="";a--;)s+="\xa0";s&&o.on("key",function(e){9==e.data.keyCode&&(o.insertText(s),e.cancel())}),r&&o.on("key",function(e){(9==e.data.keyCode&&o.execCommand("selectNextCell")||e.data.keyCode==CKEDITOR.SH
171IFT+9&&o.execCommand("selectPreviousCell"))&&e.cancel()}),o.addCommand("blur",CKEDITOR.tools.extend(n,t)),o.addCommand("blurBack",CKEDITOR.tools.extend(i,t)),o.addCommand("selectNextCell",e()),o.addCommand("selectPreviousCell",e(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(e,t){var n,i,o,r,a,s,l=void 0===t?this.getTabIndex():t;if(0>=l)for(a=this.getNextSourceNode(e,CKEDITOR.NODE_ELEMENT);a;){if(a.isVisible()&&0===a.getTabIndex()){o=a;break}a=a.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(a=this.getDocument().getBody().getFirst();a=a.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&a.equals(this)){if(i=!0,e){if(!(a=a.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(a)&&(n=1);if(a.isVisible()&&!(0>(s=a.getTabIndex()))){if(n&&s==l){o=a;break}s>l&&(!o||!r||s<r)?(o=a,r=s):o||0!==s||(o=a,r=s)}}o&&o.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(e,t){for(var n,i,o,r,a=void 0===t?this.getTabIndex():t,s=0,l=this.getDocument().getBody().getLast();l=l.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&l.equals(this)){if(i=!0,e){if(!(l=l.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(l)&&(n=1);if(l.isVisible()&&!(0>(r=l.getTabIndex())))if(0>=a){if(n&&0===r){o=l;break}r>s&&(o=l,s=r)}else{if(n&&r==a){o=l;break}r<a&&(!o||r>s)&&(o=l,s=r)}}o&&o.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(e){function t(e){return CKEDITOR.tools.extend(e||{},{contextSensitive:1,refresh:function(e,t){this.setState(t.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!e.blockless){var n=e.lang.table;e.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+(e.plugins.dialogadvtab?"table"+e.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(e){e.styles&&(e.styles.border&&e.styles.border.match(/solid/)&&(e.attributes.border=1),"collapse"==e.styles["border-collapse"]&&(e.attributes.cellspacing=0))}}]]})),e.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",t())),e.addCommand("tableDelete",t({exec:function(e){var t=e.elementPath().contains("table",1);if(t){var n=t.getParent(),i=e.editable();1!=n.getChildCount()||n.is("td","th")||n.equals(i)||(t=n),(e=e.createRange()).moveToPosition(t,CKEDITOR.POSITION_BEFORE_START),t.remove(),e.select()}}})),e.ui.addButton&&e.ui.addButton("Table",{label:n.toolbar,command:"table",toolbar:"insert,30"}),CKEDITOR.dialog.add("table",this.path+"dialogs/table.js"),CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js"),e.addMenuItems&&e.addMenuItems({table:{label:n.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:n.deleteTable,command:"tableDelete",group:"table",order:1}}),e.on("doubleclick",function(e){e.data.element.is("table")&&(e.data.dialog="tableProperties")}),e.contextMenu&&e.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function e(e,t){function n(e){return!t||t.contains(e)&&e.getAscendant("table",!0).equals(t)}function i(e){0<r.length||e.type!=CKEDITOR.NODE_ELEMENT||!f.test(e.getName())||e.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(a,e,"selected_cell",!0),r.push(e))}if(e){for(var o=e.getRanges(),r=[],a={},s=0;s<o.length;s++){var l,d;if((l=o[s]).collapsed)(l=l.getCommonAncestor().getAscendant({td:1,th:1},!0))&&n(l)&&r.push(l);else for((l=new CKEDITOR.dom.walker(l)).guard=i;d=l.next();)d.type==CKEDITOR.NODE_ELEMENT&&d.is(CKEDITOR.dtd.table)||(d=d.getAscendant({td:1,th:1},!0))&&!d.getCustomData("selected_cell")&&n(d)&&(CKEDITOR.dom.element.setMarker(a,d,"selected_cell",!0),r.push(d))}return CKEDITOR.dom.element.clearAllMarkers(a),r}}function t(t,n){var i=(o=(s=p(t)?t:e(t))[0]).getAscendant("table"),o=o.getDocument(),r=(l=s[0].getParent()).$.rowIndex,a=(s=s[s.length-1]).getParent().$.rowIndex+s.$.rowSpan-1,s=new CKEDITOR.dom.element(i.$.rows[a]),l=(r=n?r:a,n?l:s);for(i=(s=CKEDITOR.tools.buildTableMap(i))[r],r=n?s[r-1]:s[r+1],s=s[0].length,o=o.createElement("tr"),a=0;i[a]&&a<s;a++){var d;1<i[a].rowSpan&&r&&i[a]==r[a]?(d=i[a]).rowSpan+=1:((d=new CKEDITOR.dom.element(i[a]).clone()).removeAttribute("rowSpan"),d.appendBogus(),o.append(d),d=d.$),a+=d.colSpan-1}n?o.insertBefore(l):o.insertAfter(l)}function n(t){if(t instanceof CKEDITOR.dom.selection){var i=t.getRanges(),o=(l=e(t))[0].getAscendant("table"),r=CKEDITOR.tools.buildTableMap(o),a=l[0].getParent().$.rowIndex,s=(l=l[l.length-1]).getParent().$.rowIndex+l.$.rowSpan-1,l=[];for(t.reset(),t=a;t<=s;t++){for(var d=r[t],c=new CKEDITOR.dom.element(o.$.rows[t]),u=0;u<d.length;u++){var h=new CKEDITOR.dom.element(d[u]),f=h.getParent().$.rowIndex;1==h.$.rowSpan?h.remove():(--h.$.rowSpan,f==t&&((f=r[t+1])[u-1]?h.insertAfter(new CKEDITOR.dom.element(f[u-1])):new CKEDITOR.dom.element(o.$.rows[t+1]).append(h,1))),u+=h.$.colSpan-1}l.push(c)}for(r=o.$.rows,i[0].moveToPosition(o,CKEDITOR.POSITION_BEFORE_START),a=new CKEDITOR.dom.element(r[s+1]||(0<a?r[a-1]:null)||o.$.parentNode),t=l.length;0<=t;t--)n(l[t]);return o.$.parentNode?a:(i[0].select(),null)}return t instanceof CKEDITOR.dom.element&&(1==(o=t.getAscendant("table")).$.rows.length?o.remove():t.remove()),null}function i(e,t){for(var n=e.getParent().$.cells,i=0,o=0;o<n.length;o++){var r=n[o];i=i+(t?1:r.colSpan);if(r==e.$)break}return i-1}function o(e,t){for(var n=t?Infinity:0,o=0;o<e.length;o++){var r=i(e[o],t);(t?r<n:r>n)&&(n=r)}return n}function r(t,n){for(var i=(a=p(t)?t:e(t))[0].getAscendant("table"),r=o(a,1),a=o(a),s=n?r:a,l=CKEDITOR.tools.buildTableMap(i),d=(i=[],r=[],a=l.length,0);d<a;d++)i.push(l[d][s]),r.push(n?l[d][s-1]:l[d][s+1]);for(d=0;d<a;d++)i[d]&&(1<i[d].colSpan&&r[d]==i[d]?(l=i[d]).colSpan+=1:((l=(s=new CKEDITOR.dom.element(i[d])).clone()).removeAttribute("colSpan"),l.a
171ppendBogus(),l[n?"insertBefore":"insertAfter"].call(l,s),l=l.$),d+=l.rowSpan-1)}function a(e,t){var n=e.getStartElement().getAscendant({td:1,th:1},!0);if(n){var i=n.clone();i.appendBogus(),t?i.insertBefore(n):i.insertAfter(n)}}function s(t){if(t instanceof CKEDITOR.dom.selection){var n,i=t.getRanges(),o=e(t),r=o[0]&&o[0].getAscendant("table");e:{var a=0;n=o.length-1;for(var d,c,u={};d=o[a++];)CKEDITOR.dom.element.setMarker(u,d,"delete_cell",!0);for(a=0;d=o[a++];)if((c=d.getPrevious())&&!c.getCustomData("delete_cell")||(c=d.getNext())&&!c.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(u),n=c;break e}CKEDITOR.dom.element.clearAllMarkers(u),(a=(a=o[0].getParent()).getPrevious())?n=a.getLast():n=(a=(a=o[n].getParent()).getNext())?a.getChild(0):null}for(t.reset(),t=o.length-1;0<=t;t--)s(o[t]);n?l(n,!0):r&&(i[0].moveToPosition(r,CKEDITOR.POSITION_BEFORE_START),i[0].select(),r.remove())}else t instanceof CKEDITOR.dom.element&&(1==(i=t.getParent()).getChildCount()?i.remove():t.remove())}function l(e,t){var n=e.getDocument(),i=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(i.focus(),n.focus()),(n=new CKEDITOR.dom.range(n))["moveToElementEdit"+(t?"End":"Start")](e)||(n.selectNodeContents(e),n.collapse(!t)),n.select(!0)}function d(e,t,n){if(e=e[t],void 0===n)return e;for(t=0;e&&t<e.length;t++){if(n.is&&e[t]==n.$)return t;if(t==n)return new CKEDITOR.dom.element(e[t])}return n.is?-1:null}function c(t,n,i){var o,r,a=e(t);if((n?1!=a.length:2>a.length)||(o=t.getCommonAncestor())&&o.type==CKEDITOR.NODE_ELEMENT&&o.is("table"))return!1;o=(t=a[0]).getAscendant("table");var s=CKEDITOR.tools.buildTableMap(o),c=s.length,u=s[0].length,h=t.getParent().$.rowIndex,f=d(s,h,t);if(n){var p;try{var m=parseInt(t.getAttribute("rowspan"),10)||1;r=parseInt(t.getAttribute("colspan"),10)||1,p=s["up"==n?h-m:"down"==n?h+m:h]["left"==n?f-r:"right"==n?f+r:f]}catch(l){return!1}if(!p||t.$==p)return!1;a["up"==n||"left"==n?"unshift":"push"](new CKEDITOR.dom.element(p))}n=t.getDocument();var g=h,v=(m=p=0,!i&&new CKEDITOR.dom.documentFragment(n)),y=0;for(n=0;n<a.length;n++){var _=(r=a[n]).getParent(),b=r.getFirst(),T=r.$.colSpan,C=r.$.rowSpan,E=d(s,_=_.$.rowIndex,r);y=y+T*C,m=Math.max(m,E-f+T);p=Math.max(p,_-h+C), 172i||((C=(T=r).getBogus())&&C.remove(),T.trim(),r.getChildren().count()&&(_==g||!b||b.isBlockBoundary&&b.isBlockBoundary({br:1})||(!(g=v.getLast(CKEDITOR.dom.walker.whitespaces(!0)))||g.is&&g.is("br")||v.append("br")),r.moveChildren(v)),n?r.remove():r.setHtml("")),g=_}if(i)return p*m==y;for(v.moveChildren(t),t.appendBogus(),m>=u?t.removeAttribute("rowSpan"):t.$.rowSpan=p,p>=c?t.removeAttribute("colSpan"):t.$.colSpan=m,n=(a=(i=new CKEDITOR.dom.nodeList(o.$.rows)).count())-1;0<=n;n--)(o=i.getItem(n)).$.cells.length||(o.remove(),a++);return t}function u(t,n){if(1<(i=e(t)).length)return!1;if(n)return!0;var i,o,r=(c=(i=i[0]).getParent()).getAscendant("table"),a=d(u=CKEDITOR.tools.buildTableMap(r),h=c.$.rowIndex,i);if(1<(l=i.$.rowSpan)){o=Math.ceil(l/2);for(var s,l=Math.floor(l/2),c=h+o,u=(r=new CKEDITOR.dom.element(r.$.rows[c]),d(u,c)),h=(c=i.clone(),0);h<u.length;h++){if((s=u[h]).parentNode==r.$&&h>a){c.insertBefore(new CKEDITOR.dom.element(s));break}s=null}s||r.append(c)}else for(l=o=1,(r=c.clone()).insertAfter(c),r.append(c=i.clone()),s=d(u,h),a=0;a<s.length;a++)s[a].rowSpan++;return c.appendBogus(),i.$.rowSpan=o,c.$.rowSpan=l,1==o&&i.removeAttribute("rowSpan"),1==l&&c.removeAttribute("rowSpan"),c}function h(t,n){if(1<(i=e(t)).length)return!1;if(n)return!0;var i,o=(i=i[0]).getParent(),r=o.getAscendant("table"),a=d(r=CKEDITOR.tools.buildTableMap(r),o.$.rowIndex,i);if(1<(s=i.$.colSpan))o=Math.ceil(s/2),s=Math.floor(s/2);else{for(var s=o=1,l=[],c=0;c<r.length;c++){var u=r[c];l.push(u[a]),1<u[a].rowSpan&&(c+=u[a].rowSpan-1)}for(r=0;r<l.length;r++)l[r].colSpan++}return(r=i.clone()).insertAfter(i),r.appendBogus(),i.$.colSpan=o,r.$.colSpan=s,1==o&&i.removeAttribute("colSpan"),1==s&&r.removeAttribute("colSpan"),r}var f=/^(?:td|th)$/,p=CKEDITOR.tools.isArray;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(i){function o(e){return CKEDITOR.tools.extend(e||{},{contextSensitive:1,refresh:function(e,t){this.setState(t.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function d(e,t){var n=i.addCommand(e,t);i.addFeature(n)}var f=i.lang.table,p=CKEDITOR.tools.style.parse;d("cellProperties",new CKEDITOR.dialogCommand("cellProperties",o({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table",contentTransformations:[[{element:"td",left:function(e){return e.styles.background&&p.background(e.styles.background).color},right:function(e){e.styles["background-color"]=p.background(e.styles.background).color}},{element:"td",check:"td{vertical-align}",left:function(e){return e.attributes&&e.attributes.valign},right:function(e){e.styles["vertical-align"]=e.attributes.valign,delete e.attributes.valign}}],[{element:"tr",check:"td{height}",left:function(e){return e.styles&&e.styles.height},right:function(e){CKEDITOR.tools.array.forEach(e.children,function(t){t.name in{td:1,th:1}&&(t.attributes["cke-row-height"]=e.styles.height)}),delete e.styles.height}}],[{element:"td",check:"td{height}",left:function(e){return(e=e.attributes)&&e["cke-row-height"]},right:function(e){e.styles.height=e.attributes["cke-row-height"],delete e.attributes["cke-row-height"]}}]]}))),CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js"),d("rowDelete",o({requiredContent:"table",exec:function(e){(e=n(e=e.getSelection()))&&l(e)}})),d("rowInsertBefore",o({requiredContent:"table",exec:function(n){t(n=e(n=n.get
172Selection()),!0)}})),d("rowInsertAfter",o({requiredContent:"table",exec:function(n){t(n=e(n=n.getSelection()))}})),d("columnDelete",o({requiredContent:"table",exec:function(t){t=(u=t.getSelection()).getRanges();var n,i,o=(a=e(u))[0],r=a[a.length-1],a=o.getAscendant("table"),s=CKEDITOR.tools.buildTableMap(a),d=[];u.reset();for(var c=0,u=s.length;c<u;c++)for(var h=0,f=s[c].length;h<f;h++)s[c][h]==o.$&&(n=h),s[c][h]==r.$&&(i=h);for(c=n;c<=i;c++)for(h=0;h<s.length;h++)r=s[h],o=new CKEDITOR.dom.element(a.$.rows[h]),(r=new CKEDITOR.dom.element(r[c])).$&&(1==r.$.colSpan?r.remove():--r.$.colSpan,h+=r.$.rowSpan-1,o.$.cells.length||d.push(o));i=a.$.rows[0]&&a.$.rows[0].cells,n=new CKEDITOR.dom.element(i[n]||(n?i[n-1]:a.$.parentNode)),d.length==u&&(t[0].moveToPosition(a,CKEDITOR.POSITION_AFTER_END),t[0].select(),a.remove()),n&&l(n,!0)}})),d("columnInsertBefore",o({requiredContent:"table",exec:function(t){r(t=e(t=t.getSelection()),!0)}})),d("columnInsertAfter",o({requiredContent:"table",exec:function(t){r(t=e(t=t.getSelection()))}})),d("cellDelete",o({requiredContent:"table",exec:function(e){s(e=e.getSelection())}})),d("cellMerge",o({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(e,t){t.cell=c(e.getSelection()),l(t.cell,!0)}})),d("cellMergeRight",o({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(e,t){t.cell=c(e.getSelection(),"right"),l(t.cell,!0)}})),d("cellMergeDown",o({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(e,t){t.cell=c(e.getSelection(),"down"),l(t.cell,!0)}})),d("cellVerticalSplit",o({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(e){l(h(e.getSelection()))}})),d("cellHorizontalSplit",o({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(e){l(u(e.getSelection()))}})),d("cellInsertBefore",o({requiredContent:"table",exec:function(e){a(e=e.getSelection(),!0)}})),d("cellInsertAfter",o({requiredContent:"table",exec:function(e){a(e=e.getSelection())}})),i.addMenuItems&&i.addMenuItems({tablecell:{label:f.cell.menu,group:"tablecell",order:1,getItems:function(){var t=i.getSelection(),n=e(t);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:c(t,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:c(t,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:c(t,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:h(t,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:u(t,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<n.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:f.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:f.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:f.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:f.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:f.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:f.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:f.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:f.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:f.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:f.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:f.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:f.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:f.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:f.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:f.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:f.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:f.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}}),i.contextMenu&&i.contextMenu.addListener(function(e,t,n){return(e=n.contains({td:1,th:1},1))&&!e.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getCellColIndex:i,insertRow:t,insertColumn:r,getSelectedCells:e},CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(e,t,n,i,o){e=e.$.rows,n=n||0,i="number"==typeof i?i:e.length-1,o="number"==typeof o?o:-1;var r=-1,a=[];for(t=t||0;t<=i;t++){!a[++r]&&(a[r]=[]);for(var s=-1,l=n;l<=(-1===o?e[t].cells.length-1:o);l++){if(!(c=e[t].cells[l]))break;for(s++;a[r][s];)s++;for(var d=isNaN(c.colSpan)?1:c.colSpan,c=isNaN(c.rowSpan)?1:c.rowSpan,u=0;u<c&&!(t+u>i);u++){a[r+u]||(a[r+u]=[]);for(var h=0;h<d;h++)a[r+u][s+h]=e[t].cells[l]}if(s+=d-1,-1!==o&&s>=o)break}}return a},function(){function e(e,t){var n,i,o=e.getAscendant("table"),r=t.getAscendant("table"),a=CKEDITOR.tools.buildTableMap(o),s=e.getAscendant("tr",!0).$.rowIndex,l=t.getAscendant("tr",!0).$.rowIndex,d=[],c={};for(o.contains(r)&&(l=(t=t.getAscendant({td:1,th:1})).getAscendant("tr",!0).$.rowIndex),s>l&&(o=s,s=l,l=o,o=e,e=t,t=o),o=0;o<a[s].length;o++)if(e.$===a[s][o]){n=o;break}for(o=0;o<a[l].length;o++)if(t.$===a[l][o]){i=o;break}for(n>i&&(o=n,n=i,i=o),o=s;o<=l;o++)for(s=n;s<=i;s++)(r=new CKEDITOR.dom.element(a[o][s])).$&&!r.getCustomData("selected_cell")&&(d.push(r),CKEDITOR.dom.element.setMarker(c,r,"selected_cell",!0));return CKEDITOR.dom.element.clearAllMarkers(c),d}function t(e){return e=e.data.$,CKEDITOR.env.ie&&9>CKEDITOR.env.version?1===e.button:0===e.button}function n(e){return(e=e.editable().findOne(".cke_table-faked-selection"))&&e.getAscendant("table")}function i(e,t){var n,i=e.editable().find(".cke_table-faked-selection");for(e.fire("lockSnapshot"),e.editable().removeClass("cke_table-faked-selection-editor"),n=0;n<i.count();n++)i.getItem(n).removeClass("cke_table-faked-selection");0<i.count()&&i.getItem(0).getAscendant("table").removeClass("cke_table-faked-selection-table"),e.fire("unlockSnapshot"),t&&(_={active:!1},e.getSelection().isInTable()&&e.getSelection().reset())}function o(e,t){var n,i,o=[];for(i=0;i<t.length;i++)(n=e.createRange()).setStartBefore(t[i]),n.setEndAfter(t[i]),o.push(n);e.getSelection().selectRanges(o)}function r(t){var n=t.editable().find(".cke_table-faked-selection");1>n.count()||o(t,n=e(n.getItem(0),n.getItem(n.count()-1)))}function a(t,n,r){var a,s=m(t.getSelection(!0));if(n=n.is("table")?null:n,(a=_.active&&!_.first)&&!(a=n)&&(a=t.getSelection().getRanges(),a=!!(1<s.length||a[0]&&!a[0].collapsed)),a)_.first=n||s[0],_.dirty=!n&&1!==s.length;else if(_.active&&n&&_.first.getAscendant("table").equals(n.getAscendant("table"))){if(s=e(_.first,n),!_.dirty&&1===s.length)return i(t,"mouseup"===r.name);_.dirty=!0,_.last=n,o(t,s)}}function s(e){var t,n=(e=e.editor||e.sender.editor)&&e.getSelection(),o=n&&n.getRanges()||[];if(n&&(i(e),n.isInTable()&&n.isFake)){for(1===o.length&&o[0]._getTableElement()&&o[0]._getTableElement().is("table")&&(t=o[0]._getTableElement()),t=m(n,t),e.fire("lockSnapshot"),n=0;n<t.length;n++)t[n].addClass("cke_table-faked-selection");0<t.length&&(e.editable().addClass("cke_table-faked-selection-editor"),t[0].getAscendant("table").addClass("cke_table-faked-selection-table")),e.fire("unlockSnapshot")}}function l(e){function o(e,t){return!(!e||!t)&&(e.equals(t)||e.contains(t)||t.contains(e)||e.getCommonAncestor(t).is(m))}function s(e){return!e.getAscendant("table",!0)&&e.getDocument().equals(c.document)}function d(e,n,i,r){return!(("mousedown"!==e.name||!t(e)&&r)&&("mouseup"!==e.name||s(e.data.getTarget())||o(i,r)))}if(e.data.getTarget().getName){var c=e.editor||e.listenerData.editor,u=c.getSelection(1),h=n(c),f=(p=e.data.getTarget())&&p.getAscendant({td:1,th:1},!0),p=p&&p.getAscendant("table",!0),m={table:1,thead:1,tbody:1,tfoot:1,tr:1,td:1,th:1};d(e,u,h,p)&&i(c,!0),!_.active&&"mousedown"===e.name&&t(e)&&p&&(_={active:!0},CKEDITOR.document.on("mouseup",l,null,{editor:c})),(f||p)&&a(c,f||p,e),"mouseup"===e.name&&(t(e)&&(s(e.data.getTarget())||o(h,p))&&r(c),_={active:!1},CKEDITOR.document.removeListener("mouseup",l))}}function d(e){var t=e.data.getTarget().getAscendant({td:1,th:1},!0);t&&!t.hasClass("cke_table-faked-selection")&&(e.cancel(),e.data.preventDefault())}function c(e,t){function n(e){e.cancel()}var i,o,r,a,s=e.getSelection(),l=s.createBookmarks(),d=e.document,c=e.createRange(),u=d.getDocumentElement().$,h=CKEDITOR.env.ie&&9>CKEDITOR.env.version,f=e.blockless||CKEDITOR.env.ie?"span":"div";d.getById("cke_table_copybin")||(i=d.createElement(f),(o=d.createElement(f)).setAttributes({id:"cke_table_copybin","data-cke-temp":"1"}),i.setStyles({position:"absolute",width:"1px",height:"1px",overflow:"hidden"}),i.setStyle("ltr"==e.config.contentsLangDirection?"left":"right","-5000px"),i.setHtml(e.getSelectedHtml(!0)),e.fire("lockSnapshot"),o.append(i),e.editable().append(o),a=e.on("selectionChange",n,null,null,0),h&&(r=u.scrollTop),c.selectNodeContents(i),c.select(),h&&(u.scrollTop=r),setTimeout(function(){o.remove(),s.selectBookmarks(l),a.removeListener(),e.fire("unlockSnapshot"),t&&(e.extractSelectedHtml(),e.fire("saveSnapshot"))},100))}function u(e){var t=e.editor||e.sender.editor;t.getSelection().isInTable()&&c(t,"cut"===e.name)}function h(t){function n(e){var t=(e=e.getRanges()[0]).endContainer.getAscendant("tr",!0);if(t&&e.collapsed){if(e.checkBoundaryOfElement(t,CKEDITOR.START))return 1;if(e.checkBoundaryOfElement(t,CKEDITOR.END))return 2}return 0}function i(e){var t,n=0;for(t=0;t<e.length;t++)e[t].length>n&&(n=e[t].length);return n}function r(e){var t,n=e.getAscendant("table"),i=e.getParent().$.rowIndex;n=CKEDITOR.tools.buildTableMap(n);for(t=0;t<n[i].length;t++)if(new CKEDITOR.dom.element(n[i][t]).equals(e))return t}var a,s,l,d,c,u,h=t.editor,f=h.dataProcessor,p=h.getSelection(),_=new CKEDITOR.dom.element("body"),b=0,T=0,C=0,E=0,w={};
172if(f||(f=new CKEDITOR.htmlDataProcessor(h)),_.setHtml(f.toHtml(t.data.dataValue),{fixForBody:!1}),E=_.findOne("table"),p.getRanges().length&&(p.isInTable()||(a=n(p)))&&(s=m(p)).length){if(t.stop(),t=s[0].getAscendant("table"),C=(l=(s=m(p,t))[0]).getParent(),c=(d=s[s.length-1]).getParent(),!a)for(f=0;f<s.length;f++)s[f].setHtml("");if(1<_.getChildCount()||!E)s[0].setHtml(_.getHtml()),h.fire("saveSnapshot");else{if(a){for(s=C.getChildCount(),(C=c=new CKEDITOR.dom.element("tr"))["insert"+(1===a?"Before":"After")](l.getParent()),f=0;f<s;f++)(l=new CKEDITOR.dom.element("td")).appendTo(C);l=C.getFirst(),d=C.getLast(),p.selectElement(C),s=m(p)}if(a=CKEDITOR.tools.buildTableMap(t,C.$.rowIndex,g(l,!0),c.$.rowIndex,r(d)),C=i(p=CKEDITOR.tools.buildTableMap(E)),E=i(a),p.length>a.length)for(b=p.length-a.length,f=0;f<b;f++)v(s);if(C>E)for(T=C-E,f=0;f<T;f++)y(s);for(C=(l=s[0]).getParent(),d=s[s.length-1],d=(c=new CKEDITOR.dom.element(t.$.rows[d.getParent().$.rowIndex+b])).getChild(d.$.cellIndex+T),b=g(s[0],!0),s=r(d),a=CKEDITOR.tools.buildTableMap(t,C.$.rowIndex,b,c.$.rowIndex,s),f=0;f<p.length;f++)for(T=new CKEDITOR.dom.element(t.$.rows[C.$.rowIndex+f]),s=0;s<p[f].length;s++)u=new CKEDITOR.dom.element(p[f][s]),_=a[f]&&a[f][s]?new CKEDITOR.dom.element(a[f][s]):null,u&&!u.getCustomData("processed")?(_&&_.getParent()?u.replace(_):(0===s||p[f][s-1])&&((_=0!==s?new CKEDITOR.dom.element(p[f][s-1]):null)&&T.equals(_.getParent())?u.insertAfter(_):0<b?u.insertAfter(new CKEDITOR.dom.element(T.$.cells[b])):T.append(u,!0)),CKEDITOR.dom.element.setMarker(w,u,"processed",!0)):u.getCustomData("processed")&&_&&_.remove();CKEDITOR.dom.element.clearAllMarkers(w),o(h,e(new CKEDITOR.dom.element(p[0][0]),u)),h.fire("saveSnapshot"),setTimeout(function(){h.fire("afterPaste")},0)}}}function f(e,t,n){e.on("beforeCommandExec",function(n){-1!==CKEDITOR.tools.array.indexOf(t,n.data.name)&&(n.data.selectedCells=m(e.getSelection()))}),e.on("afterCommandExec",function(i){-1!==CKEDITOR.tools.array.indexOf(t,i.data.name)&&n(e,i.data)})}var p,m,g,v,y,_={active:!1};CKEDITOR.plugins.tableselection={getCellsBetween:e,keyboardIntegration:function(e){function t(e){e.getEnclosedNode()?e.getEnclosedNode().setText(""):e.deleteContents(),CKEDITOR.tools.array.forEach(e._find("td"),function(e){e.appendBogus()})}var n=e.editable();n.attachListener(n,"keydown",function(e){function n(t,n){if(!n.length)return null;var i=e.createRange(),r=CKEDITOR.dom.range.mergeRanges(n);CKEDITOR.tools.array.forEach(r,function(e){e.enlarge(CKEDITOR.ENLARGE_ELEMENT)});var a=(s=r[0].getBoundaryNodes()).startNode,s=s.endNode;if(a&&a.is&&a.is(o)){for(var l=a.getAscendant("table",!0),d=a.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT,l),c=!1,u=function(e){return!a.contains(e)&&e.is&&e.is("td","th")};d&&!u(d);)d=d.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT,l);return!d&&s&&s.is&&!s.is("table")&&s.getNext()&&(d=s.getNext().findOne("td, th"),c=!0),d?i["moveToElementEdit"+(c?"Start":"End")](d):(i.setStartBefore(a.getAscendant("table",!0)),i.collapse(!0)),r[0].deleteContents(),[i]}return a?(i.moveToElementEditablePosition(a),[i]):void 0}var i={37:1,38:1,39:1,40:1,8:1,46:1},o=CKEDITOR.tools.extend({table:1},CKEDITOR.dtd.$tableContent);return delete o.td,delete o.th,function(o){var r,a,s,l,d=o.data.getKey(),c=37===d||38==d;if(i[d]&&(r=e.getSelection())&&r.isInTable()&&r.isFake)if(s=(a=r.getRanges())[0]._getTableElement(),l=a[a.length-1]._getTableElement(),o.data.preventDefault(),o.cancel(),8<d&&46>d)a[0].moveToElementEditablePosition(c?s:l,!c),r.selectRanges([a[0]]);else{for(o=0;o<a.length;o++)t(a[o]);(o=n(s,a))?a=o:a[0].moveToElementEditablePosition(s),r.selectRanges(a),e.fire("saveSnapshot")}}}(e),null,null,-1),n.attachListener(n,"keypress",function(n){var i,o=e.getSelection(),r=n.data.$.charCode||13===n.data.getKey();if(o&&o.isInTable()&&o.isFake&&r&&!(n.data.getKeystroke()&CKEDITOR.CTRL)){for(r=(n=o.getRanges())[0].getEnclosedNode().getAscendant({td:1,th:1},!0),i=0;i<n.length;i++)t(n[i]);n[0].moveToElementEditablePosition(r),o.selectRanges([n[0]])}},null,null,-1)},isSupportedEnvironment:!(CKEDITOR.env.ie&&11>CKEDITOR.env.version)},CKEDITOR.plugins.add("tableselection",{requires:"clipboard,tabletools",onLoad:function(){p=CKEDITOR.plugins.tabletools,m=p.getSelectedCells,g=p.getCellColIndex,v=p.insertRow,y=p.insertColumn,CKEDITOR.document.appendStyleSheet(this.path+"/styles/tableselection.css")},init:function(e){CKEDITOR.plugins.tableselection.isSupportedEnvironment&&(e.addContentsCss&&e.addContentsCss(this.path+"/styles/tableselection.css"),e.on("contentDom",function(){var t=e.editable(),n=t.isInline()?t:e.document,i={editor:e};t.attachListener(n,"mousedown",l,null,i),t.attachListener(n,"mousemove",l,null,i),t.attachListener(n,"mouseup",l,null,i),t.attachListener(t,"dragstart",d),t.attachListener(e,"selectionCheck",s),CKEDITOR.plugins.tableselection.keyboardIntegration(e),CKEDITOR.plugins.clipboard&&!CKEDITOR.plugins.clipboard.isCustomCopyCutSupported&&(t.attachListener(t,"cut",u),t.attachListener(t,"copy",u))}),e.on("paste",h),f(e,"rowInsertBefore rowInsertAfter columnInsertBefore columnInsertAfter cellInsertBefore cellInsertAfter".split(" "),function(e,t){o(e,t.selectedCells)}),f(e,["cellMerge","cellMergeRight","cellMergeDown"],function(e,t){o(e,[t.commandData.cell])}),f(e,["cellDelete"],function(e){i(e,!0)}))}})}(),function(){var e=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SH
172IFT+90],t={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(t){function i(e){a.enabled&&!1!==e.data.command.canUndo&&a.save()}function o(){a.enabled=!t.readOnly&&"wysiwyg"==t.mode,a.onChange()}var a=t.undoManager=new n(t),s=a.editingHandler=new r(a),l=t.addCommand("undo",{exec:function(){a.undo()&&(t.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),d=t.addCommand("redo",{exec:function(){a.redo()&&(t.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});t.setKeystroke([[e[0],"undo"],[e[1],"redo"],[e[2],"redo"]]),a.onChange=function(){l.setState(a.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),d.setState(a.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)},t.on("beforeCommandExec",i),t.on("afterCommandExec",i),t.on("saveSnapshot",function(e){a.save(e.data&&e.data.contentOnly)}),t.on("contentDom",s.attachListeners,s),t.on("instanceReady",function(){t.fire("saveSnapshot")}),t.on("beforeModeUnload",function(){"wysiwyg"==t.mode&&a.save(!0)}),t.on("mode",o),t.on("readOnly",o),t.ui.addButton&&(t.ui.addButton("Undo",{label:t.lang.undo.undo,command:"und
172o",toolbar:"undo,10"}),t.ui.addButton("Redo",{label:t.lang.undo.redo,command:"redo",toolbar:"undo,20"})),t.resetUndo=function(){a.reset(),t.fire("saveSnapshot")},t.on("updateSnapshot",function(){a.currentImage&&a.update()}),t.on("lockSnapshot",function(e){e=e.data,a.lock(e&&e.dontUpdate,e&&e.forceUpdate)}),t.on("unlockSnapshot",a.unlock,a)}}),CKEDITOR.plugins.undo={};var n=CKEDITOR.plugins.undo.UndoManager=function(e){this.strokesRecorded=[0,0],this.locked=null,this.previousKeyGroup=-1,this.limit=e.config.undoStackSize||20,this.strokesLimit=25,this.editor=e,this.reset()};n.prototype={type:function(e,t){var i=n.getKeyGroup(e),o=this.strokesRecorded[i]+1;t=t||o>=this.strokesLimit,this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange()),t?(o=0,this.editor.fire("saveSnapshot")):this.editor.fire("change"),this.strokesRecorded[i]=o,this.previousKeyGroup=i},keyGroupChanged:function(e){return n.getKeyGroup(e)!=this.previousKeyGroup},reset:function(){this.snapshots=[],this.index=-1,this.currentImage=null,this.hasRedo=this.hasUndo=!1,this.locked=null,this.resetType()},resetType:function(){this.strokesRecorded=[0,0],this.typing=!1,this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0),this.hasRedo=!!this.getNextImage(!1),this.resetType(),this.onChange()},save:function(e,t,n){var o=this.editor;if(this.locked||"ready"!=o.status||"wysiwyg"!=o.mode)return!1;var r=o.editable();if(!r||"ready"!=r.status)return!1;if(r=this.snapshots,t||(t=new i(o)),!1===t.contents)return!1;if(this.currentImage)if(t.equalsContent(this.currentImage)){if(e||t.equalsSelection(this.currentImage))return!1}else!1!==n&&o.fire("change");return r.splice(this.index+1,r.length-this.index-1),r.length==this.limit&&r.shift(),this.index=r.push(t)-1,this.currentImage=t,!1!==n&&this.refreshState(),!0},restoreImage:function(e){var t,n=this.editor;e.bookmarks&&(n.focus(),t=n.getSelection()),this.locked={level:999},this.editor.loadSnapshot(e.contents),e.bookmarks?t.selectBookmarks(e.bookmarks):CKEDITOR.env.ie&&((t=this.editor.document.getBody().$.createTextRange()).collapse(!0),t.select()),this.locked=null,this.index=e.index,this.currentImage=this.snapshots[this.index],this.update(),this.refreshState(),n.fire("change")},getNextImage:function(e){var t,n=this.snapshots,i=this.currentImage;if(i)if(e){for(t=this.index-1;0<=t;t--)if(e=n[t],!i.equalsContent(e))return e.index=t,e}else for(t=this.index+1;t<n.length;t++)if(e=n[t],!i.equalsContent(e))return e.index=t,e;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var e=this.getNextImage(!0);if(e)return this.restoreImage(e),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var e=this.getNextImage(!1);if(e)return this.restoreImage(e),!0}return!1},update:function(e){if(!this.locked){e||(e=new i(this.editor));for(var t=this.index,n=this.snapshots;0<t&&this.currentImage.equalsContent(n[t-1]);)--t;n.splice(t,this.index-t+1,e),this.index=t,this.currentImage=e}},updateSelection:function(e){if(!this.snapshots.length)return!1;var t=this.snapshots,n=t[t.length-1];return!(!n.equalsContent(e)||n.equalsSelection(e))&&(this.currentImage=t[t.length-1]=e,!0)},lock:function(e,t){if(this.locked)this.locked.level++;else if(e)this.locked={level:1};else{var n=null;if(t)n=!0;else{var o=new i(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(o)&&(n=o)}this.locked={update:n,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var e=this.locked.update;if(this.locked=null,!0===e)this.update();else if(e){var t=new i(this.editor,!0);e.equalsContent(t)||this.update()}}}},n.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1},n.keyGroups={PRINTABLE:0,FUNCTIONAL:1},n.isNavigationKey=function(e){return!!n.navigationKeyCodes[e]},n.getKeyGroup=function(e){var i=n.keyGroups;return t[e]?i.FUNCTIONAL:i.PRINTABLE},n.getOppositeKeyGroup=function(e){var t=n.keyGroups;return e==t.FUNCTIONAL?t.PRINTABLE:t.FUNCTIONAL},n.ieFunctionalKeysBug=function(e){return CKEDITOR.env.ie&&n.getKeyGroup(e)==n.keyGroups.FUNCTIONAL};var i=CKEDITOR.plugins.undo.Image=function(e,t){this.editor=e,e.fire("beforeUndoImage");var n=e.getSnapshot();CKEDITOR.env.ie&&n&&(n=n.replace(/\s+data-cke-expando=".*?"/g,"")),this.contents=n,t||(this.bookmarks=(n=n&&e.getSelection())&&n.createBookmarks2(!0)),e.fire("afterUndoImage")},o=/\b(?:href|src|name)="[^"]*?"/gi;i.prototype={equalsContent:function(e){var t=this.contents;return e=e.contents,CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(t=t.replace(o,""),e=e.replace(o,"")),t==e},equalsSelection:function(e){var t=this.bookmarks;if(e=e.bookmarks,t||e){if(!t||!e||t.length!=e.length)return!1;for(var n=0;n<t.length;n++){var i=t[n],o=e[n];if(i.startOffset!=o.startOffset||i.endOffset!=o.endOffset||!CKEDITOR.tools.arrayCompare(i.start,o.start)||!CKEDITOR.tools.arrayCompare(i.end,o.end))return!1}}return!0}};var r=CKEDITOR.plugins.undo.NativeEditingHandler=function(e){this.undoManager=e,this.ignoreInputEvent=!1,this.keyEventsStack=new a,this.lastKeydownImage=null};r.prototype={onKeydown:function(t){var o=t.data.getKey();229!==o&&(-1<CKEDITOR.tools.indexOf(e,t.data.getKeystroke())?t.data.preventDefault():(this.keyEventsStack.cleanUp(t),t=this.undoManager,this.keyEventsStack.getLast(o)||this.keyEventsStack.push(o),this.lastKeydownImage=new i(t.editor),(n.isNavigationKey(o)||this.undoManager.keyGroupChanged(o))&&(t.strokesRecorded[0]||t.strokesRecorded[1])&&(t.save(!1,this.lastKeydownImage,!1),t.resetType())))},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=!1;else{var e=this.keyEventsStack.getLast();e||(e=this.keyEventsStack.push(0)),this.keyEventsStack.increment(e.keyCode),this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(e.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(e){var t=this.undoManager;e=e.data.getKey();var o=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(e),n.ieFunctionalKeysBug(e)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new i(t.editor,!0))||(0<o?t.type(e):n.isNavigationKey(e)&&this.onNavigationKey(!0))},onNavigationKey:function(e){var t=this.undoManager;!e&&t.save(!0,null,!1)||t.updateSelection(new i(t.editor)),t.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},attachListeners:function(){var e=this.undoManager.editor,t=e.editable(),i=this;t.attachListener(t,"keydown",function(e){i.onKeydown(e),n.ieFunctionalKeysBug(e.data.getKey())&&i.onInput()},null,null,999),t.attachListener(t,CKEDITOR.env.ie?"keypress":"input",i.onInput,i,null,999),t.attachListener(t,"keyup",i.onKeyup,i,null,999),t.attachListener(t,"paste",i.ignoreInputEventListener,i,null,999),t.attachListener(t,"drop",i.ignoreInputEventListener,i,null,999),t.attachListener(t.isInline()?t:e.document.getDocumentElement(),"click",function(){i.onNavigationKey()},null,null,999),t.attachListener(this.undoManager.editor,"blur",function(){i.keyEventsStack.remove(9)},null,null,999)}};var a=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};a.prototype={push:function(e){return e=this.stack.push({keyCode:e,inputs:0}),this.stack[e-1]},getLastIndex:function(e){if("number"!=typeof e)return this.stack.length-1;for(var t=this.stack.length;t--;)if(this.stack[t].keyCode==e)return t;return-1},getLast:function(e){return-1!=(e=this.getLastIndex(e))?this.stack[e]:null},increment:function(e){this.getLast(e).inputs++},remove:function(e){-1!=(e=this.getLastIndex(e))&&this.stack.splice(e,1)},resetInputs:function(e){if("number"==typeof e)this.getLast(e).inputs=0;else for(e=this.stack.length;e--;)this.stack[e].inputs=0},getTotalInputs:function(){for(var e=this.stack.length,t=0;e--;)t+=this.stack[e].inputs;return t},cleanUp:function(e){(e=e.data.$).ctrlKey||e.metaKey||this.remove(17),e.shiftKey||this.remove(16),e.altKey||this.remove(18)}}}(),CKEDITOR.plugins.add("wsc",{requires:"dialog",parseApi:function(e){e.config.wsc_onFinish="function"==typeof e.config.wsc_onFinish?e.config.wsc_onFinish:function(){},e.config.wsc_onClose="function"==typeof e.config.wsc_onClose?e.config.wsc_onClose:function(){}},parseConfig:function(e){e.config.wsc_customerId=e.config.wsc_customerId||CKEDITOR.config.wsc_customerId||"1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk",e.config.wsc_customDictionaryIds=e.config.wsc_customDictionaryIds||CKEDITOR.config.wsc_customDictionaryIds||"",e.config.wsc_userDictionaryName=e.config.wsc_userDictionaryName||CKEDITOR.config.wsc_userDictionaryName||"",e.config.wsc_customLoaderScript=e.config.wsc_customLoaderScript||CKEDITOR.config.wsc_customLoaderScript,e.config.wsc_interfaceLang=e.config.wsc_interfaceLang,CKEDITOR.config.wsc_cmd=e.config.wsc_cmd||CKEDITOR.config.wsc_cmd||"spell",CKEDITOR.config.wsc_version="v4.3.0-master-d769233",CKEDITOR.config.wsc_removeGlobalVariable=!0},onLoad:function(e){"moono-lisa"==(CKEDITOR.skinName||e.config.skin)&&CKEDITOR.document.appendStyleSheet(this.path+"skins/"+CKEDITOR.skin.name+"/wsc.css")},init:function(e){var t=CKEDITOR.env;this.parseConfig(e),this.parseApi(e),e.addCommand("checkspell",new CKEDITOR.dialogCommand("checkspell")).modes={wysiwyg:!(CKEDITOR.env.opera||CKEDITOR.env.air||document.domain!=window.location.hostname||t.ie&&(8>
172t.version||t.quirks))},"undefined"==typeof e.plugins.scayt&&e.ui.addButton&&e.ui.addButton("SpellChecker",{label:e.lang.wsc.toolbar,click:function(e){var t=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.container.getText():e.document.getBody().getText();(t=t.replace(/\s/g,""))?e.execCommand("checkspell"):alert("Nothing to check!")},toolbar:"spellchecker,10"}),CKEDITOR.dialog.add("checkspell",this.path+(CKEDITOR.env.ie&&7>=CKEDITOR.env.version?"dialogs/wsc_ie.js":window.postMessage?"dialogs/wsc.js":"dialogs/wsc_ie.js"))}}),CKEDITOR.config.plugins="dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,button,toolbar,notification,clipboard,panelbutton,panel,floatpanel,colorbutton,colordialog,templates,menu,contextmenu,copyformatting,div,resize,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,tableselection,undo,wsc",CKEDITOR.config.skin="moono-lisa",f=function(e,t){var n=CKEDITOR.getUrl("plugins/"+t);e=e.split(",");for(var i=0;i<e.length;i++)CKEDITOR.skin.icons[e[i]]={path:n,offset:-e[++i],bgsize:e[++i]}}, 173CKEDITOR.env.hidpi?f("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,bgcolor,384,,textcolor,408,,templates-rtl,432,,templates,456,,copyformatting,480,,creatediv,504,,find-rtl,528,,find,552,,replace,576,,flash,600,,button,624,,checkbox,648,,form,672,,hiddenfield,696,,imagebutton,720,,radio,744,,select-rtl,768,,select,792,,textarea-rtl,816,,textarea,840,,textfield-rtl,864,,textfield,888,,horizontalrule,912,,iframe,936,,image,960,,indent-rtl,984,,indent,1008,,outdent-rtl,1032,,outdent,1056,,smiley,1080,,justifyblock,1104,,justifycenter,1128,,justifyleft,1152,,justifyright,1176,,language,1200,,anchor-rtl,1224,,anchor,1248,,link,1272,,unlink,1296,,bulletedlist-rtl,1320,,bulletedlist,1344,,numberedlist-rtl,1368,,numberedlist,1392,,maximize,1416,,newpage-rtl,1440,,newpage,1464,,pagebreak-rtl,1488,,pagebreak,1512,,pastetext-rtl,1536,,pastetext,1560,,pastefromword-rtl,1584,,pastefromword,1608,,preview-rtl,1632,,preview,1656,,print,1680,,removeformat,1704,,save,1728,,selectall,1752,,showblocks-rtl,1776,,showblocks,1800,,source-rtl,1824,,source,1848,,specialchar,1872,,scayt,1896,,table,1920,,redo-rtl,1944,,redo,1968,,undo-rtl,1992,,undo,2016,,spellchecker,2040,","icons_hidpi.png"):f("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,bgcolor,384,auto,textcolor,408,auto,templates-rtl,432,auto,templates,456,auto,copyformatting,480,auto,creatediv,504,auto,find-rtl,528,auto,find,552,auto,replace,576,auto,flash,600,auto,button,624,auto,checkbox,648,auto,form,672,auto,hiddenfield,696,auto,imagebutton,720,auto,radio,744,auto,select-rtl,768,auto,select,792,auto,textarea-rtl,816,auto,textarea,840,auto,textfield-rtl,864,auto,textfield,888,auto,horizontalrule,912,auto,iframe,936,auto,image,960,auto,indent-rtl,984,auto,indent,1008,auto,outdent-rtl,1032,auto,outdent,1056,auto,smiley,1080,auto,justifyblock,1104,auto,justifycenter,1128,auto,justifyleft,1152,auto,justifyright,1176,auto,language,1200,auto,anchor-rtl,1224,auto,anchor,1248,auto,link,1272,auto,unlink,1296,auto,bulletedlist-rtl,1320,auto,bulletedlist,1344,auto,numberedlist-rtl,1368,auto,numberedlist,1392,auto,maximize,1416,auto,newpage-rtl,1440,auto,newpage,1464,auto,pagebreak-rtl,1488,auto,pagebreak,1512,auto,pastetext-rtl,1536,auto,pastetext,1560,auto,pastefromword-rtl,1584,auto,pastefromword,1608,auto,preview-rtl,1632,auto,preview,1656,auto,print,1680,auto,removeformat,1704,auto,save,1728,auto,selectall,1752,auto,showblocks-rtl,1776,auto,showblocks,1800,auto,source-rtl,1824,auto,source,1848,auto,specialchar,1872,auto,scayt,1896,auto,table,1920,auto,redo-rtl,1944,auto,redo,1968,auto,undo-rtl,1992,auto,undo,2016,auto,spellchecker,2040,auto","icons.png"),CKEDITOR.lang.languages={af:1,sq:1,ar:1,az:1,eu:1,bn:1,bs:1,bg:1,ca:1,"zh-cn":1,zh:1,hr:1,cs:1,da:1,nl:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,et:1,fo:1,fi:1,fr:1,"fr-ca":1,gl:1,ka:1,de:1,"de-ch":1,el:1,gu:1,he:1,hi:1,hu:1,is:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lv:1,lt:1,mk:1,ms:1,mn:1,no:1,nb:1,oc:1,fa:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,sr:1,"sr-latn":1,si:1,sk:1,sl:1,es:1,"es-mx":1,sv:1,tt:1,th:1,tr:1,ug:1,uk:1,vi:1,cy:1})}(),function(e){var t=0,n=function(){return(new Date).getTime()+t++},i=function(e){return"["+e+"]$1"},o=function(e){return"_"+e+"_$1"},r=function(t,n,i){return t?"function"==typeof t?(n&&console.warn("association-insertion-traversal is ignored, because association-insertion-node is given as a function."),t(i)):"string"==typeof t?n?i[n](t):"this"==t?i:e(t):void 0:i.parent()};e(document).on("click",".add_fields",function(t){t.preventDefault(),t.stopPropagation();var a=e(this),s=a.data("association"),l=a.data("associations"),d=a.data("association-insertion-template"),c=a.data("association-insertion-method")||a.data("association-insertion-position")||"before",u=a.data("association-insertion-node"),h=a.data("association-insertion-traversal"),f=parseInt(a.data("c
173ount"),10),p=new RegExp("\\[new_"+s+"\\](.*?\\s)","g"),m=new RegExp("_new_"+s+"_(\\w*)","g"),g=n(),v=d.replace(p,i(g)),y=[],_=t;for(v==d&&(p=new RegExp("\\[new_"+l+"\\](.*?\\s)","g"),m=new RegExp("_new_"+l+"_(\\w*)","g"),v=d.replace(p,i(g))),y=[v=v.replace(m,o(g))],f=isNaN(f)?1:Math.max(f,1),f-=1;f;)g=n(),v=(v=d.replace(p,i(g))).replace(m,o(g)),y.push(v),f-=1;var b=r(u,h,a);b&&0!=b.length||console.warn("Couldn't find the element to insert the template. Make sure your `data-association-insertion-*` on `link_to_add_association` is correct."),e.each(y,function(t,n){var i=e(n),o=jQuery.Event("cocoon:before-insert");if(b.trigger(o,[i,_]),!o.isDefaultPrevented()){b[c](i);b.trigger("cocoon:after-insert",[i,_])}})}),e(document).on("click",".remove_fields.dynamic, .remove_fields.existing",function(t){var n=e(this),i=n.data("wrapper-class")||"nested-fields",o=n.closest("."+i),r=o.parent(),a=t;t.preventDefault(),t.stopPropagation();var s=jQuery.Event("cocoon:before-remove");if(r.trigger(s,[o,a]),!s.isDefaultPrevented()){var l=r.data("remove-timeout")||0;setTimeout(function(){n.hasClass("dynamic")?o.detach():(n.prev("input[type=hidden]").val("1"),o.hide()),r.trigger("cocoon:after-remove",[o,a])},l)}}),e(document).on("ready page:load turbolinks:load",function(){e(".remove_fields.existing.destroyed").each(function(){var t=e(this),n=t.data("wrapper-class")||"nested-fields";t.closest("."+n).hide()})})}(jQuery),function(){document.addEventListener("turbolinks:load",function(e){if("function"==typeof ga)return ga("set","location",e.data.url),ga("send","pageview"),console.log("Turbolinks: Navigated to "+e.data.url)})}.call(this),function(){var e=this;(function(){(function(){var e=[].slice;this.ActionCable={INTERNAL:{message_types:{welcome:"welcome",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},WebSocket:window.WebSocket,logger:window.console,createConsumer:function(e){var n;return null==e&&(e=null!=(n=this.getConfig("url"))?n:this.INTERNAL.default_mount_path),new t.Consumer(this.createWebSocketURL(e))},getConfig:function(e){var t;return null!=(t=document.head.querySelector("meta[name='action-cable-"+e+"']"))?t.getAttribute("content"):void 0},createWebSocketURL:function(e){var t;return e&&!/^wss?:/i.test(e)?((t=document.createElement("a")).href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href):e},startDebugging:function(){return this.debugging=!0},stopDebugging:function(){return this.debugging=null},log:function(){var t,n;if(t=1<=arguments.length?e.call(arguments,0):[],this.debugging)return t.push(Date.now()),(n=this.logger).log.apply(n,["[ActionCable]"].concat(e.call(t)))}}}).call(this)}).call(e);var t=e.ActionCable;(function(){(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};t.ConnectionMonitor=function(){function n(t){this.connection=t,this.visibilityDidChange=e(this.visibilityDidChange,this),this.reconnectAttempts=0}var i,o,r;return n.pollInterval={min:3,max:30},n.staleThreshold=6,n.prototype.start=function(){if(!this.isRunning())return this.startedAt=o(),delete this.stoppedAt,this.startPolling(),document.addEventListener("visibilitychange",this.visibilityDidChange),t.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms")},n.prototype.stop=function(){if(this.isRunning())return this.stoppedAt=o(),this.stopPolling(),document.removeEventListener("visibilitychange",this.visibilityDidChange),t.log("ConnectionMonitor stopped")},n.prototype.isRunning=function(){return null!=this.startedAt&&null==this.stoppedAt},n.prototype.recordPing=function(){return this.pingedAt=o()},n.prototype.recordConnect=function(){return this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,t.log("ConnectionMonitor recorded connect")},n.prototype.recordDisconnect=function(){return this.disconnectedAt=o(),t.log("ConnectionMonitor recorded disconnect")},n.prototype.startPolling=function(){return this.stopPolling(),this.poll()},n.prototype.stopPolling=function(){return clearTimeout(this.pollTimeout)},n.prototype.poll=function(){return this.pollTimeout=setTimeout((e=this,function(){return e.reconnectIfStale(),e.poll()}),this.getPollInterval());var e},n.prototype.getPollInterval=function(){var e,t,n,o;return n=(o=this.constructor.pollInterval).min,t=o.max,e=5*Math.log(this.reconnectAttempts+1),Math.round(1e3*i(e,n,t))},n.prototype.reconnectIfStale=function(){if(this.connectionIsStale())return t.log("ConnectionMonitor detected stale c
173onnection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+r(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?t.log("ConnectionMonitor skipping reopening recent disconnect"):(t.log("ConnectionMonitor reopening"),this.connection.reopen())},n.prototype.connectionIsStale=function(){var e;return r(null!=(e=this.pingedAt)?e:this.startedAt)>this.constructor.staleThreshold},n.prototype.disconnectedRecently=function(){return this.disconnectedAt&&r(this.disconnectedAt)<this.constructor.staleThreshold},n.prototype.visibilityDidChange=function(){if("visible"===document.visibilityState)return setTimeout((e=this,function(){if(e.connectionIsStale()||!e.connection.isOpen())return t.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = "+document.visibilityState),e.connection.reopen()}),200);var e},o=function(){return(new Date).getTime()},r=function(e){return(o()-e)/1e3},i=function(e,t,n){return Math.max(t,Math.min(n,e))},n}()}).call(this),function(){var e,n,i,o,r,a=[].slice,s=function(e,t){return function(){return e.apply(t,arguments)}},l=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};o=t.INTERNAL,n=o.message_types,i=o.protocols,r=2<=i.length?a.call(i,0,e=i.length-1):(e=0,[]),i[e++],t.Connection=function(){function e(e){this.consumer=e,this.open=s(this.open,this),this.subscriptions=this.consumer.subscriptions,this.monitor=new t.ConnectionMonitor(this),this.disconnected=!0}return e.reopenDelay=500,e.prototype.send=function(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},e.prototype.open=function(){return this.isActive()?(t.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(t.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+i),null!=this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new t.WebSocket(this.consumer.url,i),this.installEventHandlers(),this.monitor.start(),!0)},e.prototype.close=function(e){var t;if((null!=e?e:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return null!=(t=this.webSocket)?t.close():void 0},e.prototype.reopen=function(){var e;if(t.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(n){return e=n,t.log("Failed to reopen WebSocket",e)}finally{t.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},e.prototype.getProtocol=function(){var e;return null!=(e=this.webSocket)?e.protocol:void 0},e.prototype.isOpen=function(){return this.isState("open")},e.prototype.isActive=function(){return this.isState("open","connecting")},e.prototype.isProtocolSupported=function(){var e;return e=this.getProtocol(),l.call(r,e)>=0},e.prototype.isState=function(){var e,t;return t=1<=arguments.length?a.call(arguments,0):[],e=this.getState(),l.call(t,e)>=0},e.prototype.getState=function(){var e,t;for(t in WebSocket)if(WebSocket[t]===(null!=(e=this.webSocket)?e.readyState:void 0))return t.toLowerCase();return null},e.prototype.installEventHandlers=function(){var e,t;for(e in this.events)t=this.events[e].bind(this),this.webSocket["on"+e]=t},e.prototype.uninstallEventHandlers=function(){var e;for(e in this.events)this.webSocket["on"+e]=function(){}},e.prototype.events={message:function(e){var t,i,o;if(this.isProtocolSupported())switch(t=(o=JSON.parse(e.data)).identifier,i=o.message,o.type){case n.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case n.ping:return this.monitor.recordPing();case n.confirmation:return this.subscriptions.notify(t,"connected");case n.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",i)}},open:function(){if(t.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupported())return t.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function(){if(t.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function(){return t.log("WebSocket onerror event")}},e}()}.call(this),function(){var e=[].slice;t.Subscriptions=function(){function n(e){this.consumer=e,this.subscriptions=[]}return n.prototype.create=function(e,n){var i,o,r;return o="object"==typeof(i=e)?i:{channel:i},r=new t.Subscription(this.consumer,o,n),this.add(r)},n.prototype.add=function(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.sendCommand(e,"subscribe"),e},n.prototype.remove=function(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},n.prototype.reject=function(e){var t,n,i,o,r;for(o=[],t=0,n=(i=this.findAll(e)).length;t<n;t++)r=i[t],this.forget(r),this.notify(r,"rejected"),o.push(r);return o},n.prototype.forget=function(e){var t;return this.subscriptions=function(){var n,i,o,r;for(r=[],n=0,i=(o=this.subscriptions).length;n<i;n++)(t=o[n])!==e&&r.push(t);return r}.call(this),e},n.prototype.findAll=function(e){var t,n,i,o,r;for(o=[],t=0,n=(i=this.subscriptions).length;t<n;t++)(r=i[t]).identifier===e&&o.push(r);return o},n.prototype.reload=function(){var e,t,n,i,o;for(i=[],e=0,t=(n=this.subscriptions).length;e<t;e++)o=n[e],i.push(this.sendCommand(o,"subscribe"));return i},n.prototype.notifyAll=function(){var t,n,i,o,r,a,s;
173for(n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],a=[],i=0,o=(r=this.subscriptions).length;i<o;i++)s=r[i],a.push(this.notify.apply(this,[s,n].concat(e.call(t))));return a},n.prototype.notify=function(){var t,n,i,o,r,a,s;for(a=arguments[0],n=arguments[1],t=3<=arguments.length?e.call(arguments,2):[],r=[],i=0,o=(s="string"==typeof a?this.findAll(a):[a]).length;i<o;i++)a=s[i],r.push("function"==typeof a[n]?a[n].apply(a,t):void 0);return r},n.prototype.sendCommand=function(e,t){var n;return n=e.identifier,this.consumer.send({command:t,identifier:n})},n}()}.call(this),function(){t.Subscription=function(){function e(e,n,i){this.consumer=e,null==n&&(n={}),this.identifier=JSON.stringify(n),t(this,i)}var t;return e.prototype.perform=function(e,t){return null==t&&(t={}),t.action=e,this.send(t)},e.prototype.send=function(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},e.prototype.unsubscribe=function(){return this.consumer.subscriptions.remove(this)},t=function(e,t){var n,i;if(null!=t)for(n in t)i=t[n],e[n]=i;return e},e}()}.call(this),function(){t.Consumer=function(){function e(e){this.url=e,this.subscriptions=new t.Subscriptions(this),this.connection=new t.Connection(this)}return e.prototype.send=function(e){return this.connection.send(e)},e.prototype.connect=function(){return this.connection.open()},e.prototype.disconnect=function(){return this.connection.close({allowReconnect:!1})},e.prototype.ensureActiveConnection=function(){if(!this.connection.isActive())return this.connection.open()},e}()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd&&define(t)}.call(this),function(){this.App||(this.App={});var e=window.location.pathname,t=new RegExp("^/live_class/[0-9A-Za-z]+$"),n=new RegExp("^/parents/classroom_loading+$"),i=new RegExp("^/live_class_(vc|vc_tx|smi|si|icl|tesol|txi|rvc)/[0-9A-Za-z]+$"),o=new RegExp("^/live_challenge_event?[0-9A-Za-z]+$"),r=new RegExp("^/live_event_v2?[0-9A-Za-z]+$"),a=new RegExp("^/congratulations/play$"),s=new RegExp("^/workshops/([0-9]+)-.*/workshop_live_session$"),l=new RegExp("^/([0-9]+)/ai_class"),d=new RegExp("^/users/graduation_ceremony/([0-9]+)/live_ceremony$"),c=new RegExp("^/live_group_class/[0-9A-Za-z]+$");if(t.test(e)||n.test(e)||i.test(e))App.cable=ActionCable.createConsumer("/cable/?page=live_class");else if(o.test(e))App.cable=ActionCable.createConsumer("/cable/?page=live_challenge_events");else if(r.test(e))App.cable=ActionCable.createConsumer("/cable/?page=live_event_v2");else if(a.test(e))App.cable=ActionCable.createConsumer("/cable/?page=play");else if(s.test(e)){var u=e.match(s)[1];App.cable=u?ActionCable.createConsumer(`/cable/?page=workshop_live_session&workshop_id=${u}`):ActionCable.createConsumer()}else if(l.test(e))App.cable=ActionCable.createConsumer("/cable/?page=ai_class");else if(c.test(e))App.cable=ActionCable.createConsumer("/cable/?page=live_group_class");else if(d.test(e)){var h=e.match(d)[1];App.cable=ActionCable.createConsumer(`/cable/?page=live_ceremony&ceremony_id=${h}`)}else App.cable=ActionCable.createConsumer()}.call(this),function(){$(document).ready(function(){var changeBatchBtnColor,getDuration;if($("#batch_details").length>0&&!$("#batch_details").data("stopAnalysis"))return App.analytics=App.cable.subscriptions.create("AnalyticsChannel",{connected:function(){},disconnected:function(){},received:function(data){var current_date,detail_button,duration,end_time,i,j,join_time,k,last_session,ref,ref1,ref2,results,results1,selected_date,selected_date_formatted,ses,sessions;if(selected_date=$("#calendar").val().split("-"),current_date="w_event"===data.data_ty?new Date(data.time):new Date(data.date),selected_date_formatted=new Date(selected_date[2],selected_date[1],selected_date[0]),selected_date_formatted.getDate()+"/"+selected_date_formatted.getMonth()+"/"+selected_date_formatted.getFullYear()==current_date.getDate()+"/"+(current_date.getMonth()+1)+"/"+current_date.getFullYear())if("w_event"===data.data_ty){if(("Teacher"===(ref=data.user_type)||"Student"===ref||"visitor"===ref)&&($("#batch_details").length>0&&(detail_button=$(".batch_btn[data-wc-m-id='"+data.meeting_id+"']")),detail_button.length>0)){for(results=[],i=j=0,ref1=detail_button.length-1;0<=ref1?j<=ref1:j>=ref1;i=0<=ref1?++j:--j)sessions=detail_button[i].dataset[data.user_type.toLowerCase()+"Session"],0===sessions.length?"room.client.joined"===data.event_type?detail_button[i].dataset[data.user_type.toLowerCase()+"Session"]='["'+data.w_time+' - ongoing"]':"room.client.left"===data.event_type&&(detail_button[i].dataset[data.user_type.toLowerCase()+"Session"]='[ "started_yesterday - '+data.w_time+'"]'):(ses=eval(sessions),last_session=ses.pop(),-1!==last_session.indexOf("ongoing")?"room.client.left"===data.event_type&&(join_time=moment(last_session.slice(0,last_session.indexOf(" - ongoing")),"hh:mm:ss A").toDate(),duration=getDuration(join_time,current_date),end_time=last_session.slice(0,last_session.indexOf(" - ongoing"))+" - "+moment(current_date).format("hh:mm:ss A")+" ("+duration+")",ses.push(end_time),detail_button[i].dataset[data.user_type.toLowerCase()+"Session"]='["'+ses.join('","')+'"]'):"room.client.joined"===data.event_type?(end_time=data.w_time+" - ongoing",ses.push(last_session),ses.push(end_time),detail_button[i].dataset[data.user_type.toLowerCase()+"Session"]='["'+ses.join('","')+'"]'):"room.client.left"===data.event_type&&(join_time=moment(last_session.slice(0,last_session.indexOf(" -")),"hh:mm:ss A").toDate(),duration=getDuration(join_time,current_date),end_time=last_session.slice(0,last_session.indexOf(" -"))+" - "+moment(current_date).format("hh:mm:ss A")+" ("+duration+")",ses.push(end_time),detail_button[i].dataset[data.user_type.toLowerCase()+"Session"]='["'+ses.join('","')+'"]')),results.push(changeBatchBtnColor(detail_button[i]));return results}}else if("attendance_event"===data.data_ty&&(detail_button=$(".batch_btn[data-student-id='"+data.student_id+"']"),detail_button.length>0)){for(results1=[],i=k=0,ref2=detail_button.length-1;0<=ref2?k<=ref2:k>=ref2;
173i=0<=ref2?++k:--k)detail_button[i].dataset.attendance=data.att,detail_button[i].dataset.attendanceHumanize=data.status,results1.push(changeBatchBtnColor(detail_button[i]));return results1}}}),changeBatchBtnColor=function(e){var t,n,i;return e.dataset.teacherSession.length>0&&e.dataset.studentSession.length>0?(e.dataset.color="#008000",e.style.backgroundColor="#008000",e.dataset.status="teacher_and_student_joined",e.dataset.statusHumanize="Teacher and student joined"):e.dataset.teacherSession.length<=0&&e.dataset.studentSession.length<=0?0===(t=e.dataset.attendance)||"0"===t?(e.dataset.color="#800080",e.style.backgroundColor="#800080",e.dataset.status="teacher_and_student_not_joined_absent_found",e.dataset.statusHumanize="Teacher and student not joined absent found"):1===(n=e.dataset.attendance)||"1"===n?(e.dataset.color="#000",e.style.backgroundColor="#000",e.dataset.status="teacher_and_student_not_joined_present_found",e.dataset.statusHumanize="Teacher and student not joined present found"):2===(i=e.dataset.attendance)||"2"===i?(e.dataset.color="#008080",e.style.backgroundColor="#008080",e.dataset.status="teacher_and_student_not_joined_leave_found",e.dataset.statusHumanize="Teacher and student not joined leave found"):(e.dataset.color="#0000ff",e.style.backgroundColor="#0000ff",e.dataset.status="teacher_and_student_not_joined_no_attendance_found",e.dataset.statusHumanize="Teacher and student not joined no attendance found"):e.dataset.teacherSession.length>0&&e.dataset.studentSession.length<=0?(e.dataset.color="#ffff00",e.style.backgroundColor="#ffff00",e.dataset.status="teacher_joined_and_student_not_joined",e.dataset.statusHumanize="Teacher joined and student not joined"):e.dataset.teacherSession.length<=0&&e.dataset.studentSession.length>0?(e.dataset.color="#ff0000",e.style.backgroundColor="#ff0000",e.dataset.status="student_joined_and_teacher_not_joined",e.dataset.statusHumanize="Student joined and teacher not joined"):(e.dataset.color="#f36aa7",e.style.backgroundColor="#f36aa7",e.dataset.status="insufficient_information",e.dataset.statusHumanize="Insufficient information")},getDuration=function(e,t){var n,i,o;return o=Math.floor((t.getTime()-e.getTime())/1e3),i=Math.floor(o/60),n=Math.floor(i/60),i%=60,o%=60,String(n).padStart(2,"0")+":"+String(i).padStart(2,"0")+":"+String(o).padStart(2,"0")}})}.call(this),function(){$(document).ready(function(){if($("#device-pref-modal").length>0)return App.app_detection=App.cable.subscriptions.create("AppDetectionChannel",{connected:function(){},disconnected:function(){},received:function(e){if("disable_popup"===e.action)return App.app_detection.disable_popup(e.user_id)},disable_popup:function(e){var t;if($("#device-pref-modal-close-div_"+e).length>0)return t='<button type="button" class="close ml-2" id="device-pref-modal-close-btn_'+e+'" data-dismiss="modal" aria-label="Close" style="margin-top: -0.5rem;">\n <span aria-hidden="true">×</span>\n</button>',document.getElementById("device-pref-modal-close-div_"+e).innerHTML=t,document.getElementById("device-pref-modal-close-btn_"+e).click()}})})}.call(this),function(){$(document).ready(function(){if($("#congratulations_play_page").length>0)return App.audio=App.cable.subscriptions.create("AudioChannel",{connected:function(){console.log("Connected to the Audio channel")},disconnected:function(){console.log("Disconnected from the Audio channel")},queue:[],playing:!1,playNext:function(){var e,t,n,i;0!==this.queue.length?(this.playing=!0,n=this.queue.shift(),t=document.querySelector("#audio-source"),e=document.querySelector("#audio"),t.setAttribute("src","https://cdn1.planetspark.in/assets/money_sound.mp3"),e.load(),e.play(),i=this,e.onended=function(){t.setAttribute("src","data:audio/mpeg;base64,"+n),e.load(),e.play(),e.onended=function(){t.setAttribute("src","https://cdn1.planetspark.in/assets/claps_low_volume_2.mp3"),e.load(),e.play(),e.onended=function(){i.playNext()}}}):this.playing=!1},received:function(e){var t;t=e.audioData,this.queue.push(t),this.playing||this.playNext()}})})}.call(this),function(){$(document).ready(function(){if($("#tx_demos_page").length>0)return App.call_track=App.cable.subscriptions.create("CallTrackChannel",{connected:function(){return App.call_track.check_actionable_demos($("#tx_demos_page").data().userId)},disconnected:function(){},received:function(data){if($("#tx_demos_page_id_"+data.teacher_id).length>0){if("domestic_free_call_btn"===data.action)return App.call_track.domestic_free_call_btn_swal(data.system_number);if("update_tx_call_track"===data.action)return App.call_track.update_tx_call_track(data.teacher_id,data.booking_id,data.booking_track,data.booking,data.lead,data.parsed_message,data.expires_at_present,data.expires_at_iso,data.whatsapp_note,data.alert_class);if("check_actionable_demos"===data.action)return App.call_track.show_actionable_demos(data.teacher_id,eval(data.bookings_array));if("call_dynamic_cancellation_reason"===data.action)return App.call_track.fetch_cancellation_reason_v2(data.teacher_id,data.booking_id);if("fetch_contacted_question"===data.action)return App.call_track.show_contacted_question(data.teacher_id,data.booking_id,data.booking_track_id,data.ask_contacted_with_parent_question,data.connected_call_seconds,data.user_indicator);if("fetch_cancellation_reason"===data.action||"fetch_cancellation_reason_v2"===data.action)return App.call_track.show_cancellation_reason(data.teacher_id,data.booking_id,data.booking_track_id,data.cancellation_reason_array,data.grade_collection,data.specified_language,data.has_manually_contacted,data.others_options,data.user_indicator);if("remove_clb_data"===data.action)return App.call_track.remove_clb_data(data.teacher_id,data.booking_id);if("reveal_lead_number_btn"===data.action)return App.call_track.fetch_reveal_lead_number(data.teacher_id,data.booking_id);if("reveal_lead_number"===data.action)return App.call_track.reveal_lead_number(data.teacher_id,data.booking_id,data.country_code,data.phone,data.whatsapp_note);if("update_reminder_state"===data.action)return App.call_track.update_reminder_state(data.teacher_id,data.booking_id,data.html_card,data.html_list);if("spark_ai_demo_call_update"===data.action&&window.handleSparkAiDemoCallUpdate)return window.handleSparkAiDemoCallUpdate(data.booking_id,data.ai_demo_call_status,data.message,data.total_calls,data.ai_demo_call_id,data.call_outcome,data.call_summary,data.call_recording_url)}},open_clb_modal:function(e,t){var n;if((n=document.getElementById("update_clb_modal_"+t))&&!n.classList.value.includes("show"))return $("#open_clb_modal_btn_"+t).click()},close_clb_modal:function(e,t){return $("#update_clb_modal_"+t).modal("hide")},fetch_contacted_question:function(e,t){return this.perform("fetch_contacted_question",{teacher_id:e,booking_id:t})},fetch_reveal_lead_number:function(e,t){return this.perform("fetch_reveal_lead_number",{teacher_id:e,booking_id:t})},fetch_cancellation_reason:function(e,t,n){return this.perform("fetch_cancellation_reason",{teacher_id:e,booking_id:t,has_manually_contacted:n})},fetch_cancellation_reason_v2:function(e,t){return this.perform("fetch_cancellation_reason_v2",{teacher_id:e,booking_id:t})},fetch_cancellation_reason_v3:function(e,t,n){return this.perform("fetch_cancellation_reason_v3",{teacher_id:e,booking_id:t,has_manually_contacted:n})},check_actionable_demos:function(e){return this.perform("check_actionable_demos",{teacher_id:e})},remove_clb_data:function(e,t){return App.call_track.close_clb_modal(e,t),$("#clb_main_frame_"+t).remove()},reveal_lead_number:function(e,t,n,i,o){var r;return null==o&&(o=!1),r="+"+n+i,document.querySelectorAll(".clb_masked_phone_"+t).forEach(function(e){var a;if(e.innerHTML='<a href="tel:'+r+'" class="text-underline">'+r+"</a>",a=e.closest("p"),o&&e.dataset.waNote&&a&&!a.parentNode.querySelector(".whatsapp_reachout_note_"+t))return a.insertAdjacentHTML("afterend",'<p class="text-70 mb-1 whatsapp_reachout_note_'+t+'">\n Reach out over <a href="https://wa.me/'+n+i+'" target="_blank" rel="noopener" class="text-underline">whatsapp</a> for better connectivity\n</p>')}),$("#open_free_call_modal_reveal_btn_"+t).remove()},clean_clb_status_selection:function(e,t){var n;if(n=document.getElementById("clb_status_field_"+t))return n.value="",n.dispatchEvent(new Event("change"))},show_contacted_question:function(e,t,n,i,o,r){var a,s,l;return null==o&&(o=0),null==r&&(r="parent"),s="learner"===r?"learner":"parent",!0!==i&&"true"!==i?App.call_track.fetch_cancellation_reason_v3(e,t,"ignore"):(a='<div class="form-group">\n <label class="form-label" for="clb_contacted_with_parent_field_'+t+'">Were you able to contact the '+s+'?</label>\n\n <div class="custom-control custom-radio mb-1">\n <input id="clb_contacted_with_parent_field1_'+t+'" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][contacted_with_parent]" type="radio" class="custom-control-input clb_contacted_with_parent_fields_'+t+'" value="false" onclick="check_timeSlot_div()" required="required">\n <label for="clb_contacted_with_parent_field1_'+t+'" class="custom-control-label custom-control-label3">No, I was not able to speak with the '+s+'</label>\n </div>\n\n <div class="custom-control custom-radio mb-1">\n <input id="clb_contacted_with_parent_field2_'+t+'" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][contacted_with_parent]" type="radio" class="custom-control-input clb_contacted_with_parent_fields_'+t+'" value="true" required="required">\n <label for="clb_contacted_with_parent_field2_'+t+'" class="custom-control-label custom-control-label3">Yes, I was able to speak with the '+s+"</label>\n </div>\n</div>",$("#show_contacted_with_parent_question_field_"+t).html(a),document.querySelectorAll(".clb_contacted_with_parent_fields_"+t).forEach(function(n){return n.addEventListener("click",function(n){var i,o,r,a;return o=n.target.value,r=document.getElementById("show_reason_field_"+t),a=document.getElementById("show_subreason_field_"+t),i=document.getElementById("show_cancellation_data_field_"+t),r.innerHTML="",a.innerHTML="",i.innerHTML="",o?"true"===o?App.c
173all_track.fetch_cancellation_reason_v3(e,t,"true"):App.call_track.fetch_cancellation_reason_v3(e,t,"false"):(r.innerHTML="",a.innerHTML="",i.innerHTML="")})}),parseInt(o||0,10)>=30&&(l=document.getElementById("clb_contacted_with_parent_field2_"+t))?l.click():void 0)},createGradeCollectionOption:function(e,t){var n,i,o,r,a;for(o=[],r=0,a=e.length;r<a;r++)i="<option value='"+(n=e[r])[0]+"'>"+n[1]+"</option>",o.push(i);return'<div class="form-group">\n <label class="form-label" for="clb_cancellation_grade_field_'+t+'">Grade:</label>\n <select name="grade" id="clb_cancellation_grade_field_'+t+'" class="form-control form__input" required="required">\n <option value=\'\'>Select Grade</option>\n '+o.join(" ")+"\n </select>\n</div>"},show_cancellation_reason:function(e,t,n,i,o,r,a,s,l){var d,c,u,h,f,p,m,g,v,y,_,b,T;for(null==s&&(s=[]),null==l&&(l="parent"),d=[],u=1,f=0,m=i.length;f<m;f++)b=(v=i[f]).label||v.reason,h=v.helper?'<small class="form-text text-muted mt-0 mb-2 ml-4">'+v.helper+"</small>":"",c='<div class="custom-control custom-radio mb-1">\n <input data-id="'+v.id+'" id="clb_reason_field_'+u+"_"+t+'" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][cancellation_reason]" type="radio" class="custom-control-input clb_reason_fields_'+t+'" value="'+v.reason+'" onclick = "check_reason(this)" required="required">\n <label for="clb_reason_field_'+u+"_"+t+'" class="custom-control-label custom-control-label3">'+b+"</label>\n</div>\n"+h,d.push(c),2===v.id&&(p='<input name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][child_age]" class="form-control d-none my-2" type="number" placeholder="Enter Child\'s Age" id="child_age_reason_input" max="26" min="01">',d.push(p)),u+=1 174;if(_='<input type="hidden" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][id]" value="'+n+'" />\n<div class="form-group">\n <label class="form-label" for="clb_reason_field_'+t+'">Cancellation Reason</label>\n\n '+d.join(" ")+"\n</div>",$("#show_reason_field_"+t).html(_),document.querySelectorAll(".clb_reason_fields_"+t).forEach(function(e){return e.addEventListener("change",function(e){var n,l,d,c,u,h,f,p,m,g,v,y,_,b,T,C,E,w,I,D,x,O,k;for(D=e.target.value,I=document.querySelector(".clb_reason_fields_"+t+":checked")&&document.querySelector(".clb_reason_fields_"+t+":checked").dataset.id,x=document.getElementById("show_subreason_field_"+t),d=document.getElementById("show_cancellation_data_field_"+t),c=document.getElementById("show_language_data_field_"+t),x.innerHTML="",d.innerHTML="",c.innerHTML="",p={},_={},g=0,b=i.length;g<b;g++)(h=i[g]).id===parseInt(I)&&(p=h),1===h.id&&(_=h);if(!I)return console.log("No selection");if(p&&p.subreason&&p.subreason.length>0){for(l=[],f=1,v=0,T=(E=p.subreason).length;v<T;v++)k=E[v],n='<div class="custom-control custom-radio mb-1">\n <input id="clb_sub_reason_field_'+f+"_"+t+'" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][cancellation_subreason]" type="radio" class="custom-control-input clb_sub_reason_fields_'+t+'" value="'+(k.name||k)+'" required="required">\n <label for="clb_sub_reason_field_'+f+"_"+t+'" class="custom-control-label custom-control-label3">'+(k.name||k)+"</label>\n</div>",l.push(n),"Does not have a child in our target age group"===k.name&&(m='<input name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][child_age]" class="d-none form-control my-2" type="number" placeholder="Enter Child\'s Age" id="child_age_subReason_input" max="26" min="01">',l.push(m)),f+=1;if(O='<div class="form-group" id="clb_sub_reason_div_'+t+'">\n <label class="form-label" for="clb_sub_reason_field_'+t+'">Select '+p.subreason_name+"</label>\n\n "+l.join(" ")+"\n</div>",x.innerHTML=O,u=document.querySelectorAll(".clb_sub_reason_fields_"+t),d=document.getElementById("show_cancellation_data_field_"+t),u.forEach(function(e){return e.addEventListener("change",function(e){var u,p,m,g,v,y,b,T,C,E,w,D,x;if(document.getElementById("child_age_subReason_input")&&(document.getElementById("child_age_subReason_input").classList.add("d-none"),document.getElementById("child_age_subReason_input").required=!1),E=e.target.value,d.innerHTML="",c.innerHTML="","Language issue"===E){for(p=[],u=0,m=i.length;u<m;
174u++)if(1===(h=i[u]).id)for(x=1,y=0,g=(T=h.subreason).length;y<g;y++)w=T[y],D='<div class="custom-control custom-radio mb-1">\n <input id="clb_cancellation_data_field_'+x+"_"+t+'" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][cancellation_data]" type="radio" class="custom-control-input clb_cancellation_data_fields_'+t+'" value="'+w+'" required="required">\n <label for="clb_cancellation_data_field_'+x+"_"+t+'" class="custom-control-label custom-control-label3">'+w+"</label>\n</div>",p.push(D),x+=1;d.innerHTML='<div class="form-group">\n <label class="form-label" for="clb_cancellation_data_field_'+t+'">Select Language</label>\n\n '+p.join(" ")+"\n</div>"}else"Does not have a child in our target age group"===E?document.getElementById("child_age_subReason_input")&&(document.getElementById("child_age_subReason_input").classList.remove("d-none"),document.getElementById("child_age_subReason_input").required=!0):"Others"===E?d.innerHTML=App.call_track.othersOptionsHTML(s,t):"Teacher doesn't want to take the demo due to personal reasons"===E?d.innerHTML='<div class="form-group">\n <label class="form-label" for="clb_cancellation_data_field_'+t+'">Enter Reason</label>\n <textarea class="form-control form__input" id="clb_cancellation_data_field_'+t+'" placeholder="Please Enter Reason" required="required" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][cancellation_data]" minlength="10"></textarea>\n</div>':"Teacher is not comfortable teaching this age-group"===E?d.innerHTML+=App.call_track.createGradeCollectionOption(o,t):d.innerHTML="";if("true"===a&&(d.innerHTML+=App.call_track.createGradeCollectionOption(o,t)),"Others"===E&&App.call_track.bindOthersOptions(t),1!==parseInt(I)){for(l=[],f=1,b=0,v=(C=_.subreason).length;b<v;b++)k=C[b],n='<div class="custom-control custom-radio mb-1">\n <input id="clb_sub_reason_field_'+f+"_"+t+'_language" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][specified_language]" type="radio" class="custom-control-input clb_sub_reason_fields_'+t+'" value="'+k+'" required="required" '+(k===r?"checked":"")+'>\n <label for="clb_sub_reason_field_'+f+"_"+t+'_language" class="custom-control-label custom-control-label3">'+k+"</label>\n</div>",l.push(n),f+=1;return O='<div class="form-group" id="clb_sub_reason_div_'+t+'">\n <label class="form-label" for="clb_sub_reason_field_'+t+"\">Please confirm customer's preferred demo language</label>\n\n "+l.join(" ")+"\n</div>",c.innerHTML+=O}return c.innerHTML=""})}),"true"===a)return d.innerHTML+=App.call_track.createGradeCollectionOption(o,t)}else{if("Teacher doesn't want to take the demo due to personal reasons"===D&&(d.innerHTML='<div class="form-group">\n <label class="form-label" for="clb_cancellation_data_field_'+t+'">Enter Reason</label>\n <textarea class="form-control form__input" id="clb_cancellation_data_field_'+t+'" placeholder="Please Enter Reason" required="required" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][cancellation_data]" minlength="10"></textarea>\n</div>'),_.subreason){for(l=[],f=1,y=0,C=(w=_.subreason).length;y<C;y++)k=w[y],n='<div class="custom-control custom-radio mb-1">\n <input id="clb_sub_reason_field_'+f+"_"+t+'_language" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][specified_language]" type="radio" class="custom-control-input clb_sub_reason_fields_'+t+'" value="'+k+'" required="required" '+(k===r?"checked":"")+'>\n <label for="clb_sub_reason_field_'+f+"_"+t+'_language" class="custom-control-label custom-control-label3">'+k+"</label>\n</div>",l.push(n),f+=1;O='<div class="form-group" id="clb_sub_reason_div_'+t+'">\n <label class="form-label" for="clb_sub_reason_field_'+t+"\">Please confirm customer's preferred demo language</label>\n\n "+l.join(" ")+"\n</div>",c.innerHTML+=O}if("true"===a)return d.innerHTML+=App.call_track.createGradeCollectionOption(o,t)}})}
174),(g=window.cancelPresetByBooking&&window.cancelPresetByBooking[t])&&(delete window.cancelPresetByBooking[t],(y=document.querySelector(".clb_reason_fields_"+t+"[value='"+g.reason+"']"))&&(y.click(),T=document.querySelector(".clb_sub_reason_fields_"+t+"[value='"+g.subreason+"']"))))return T.click()},othersOptionsHTML:function(e,t){var n,i,o,r,a,s;for(a=[],r=1,n=0,i=(s=e||[]).length;n<i;n++)o=s[n],a.push('<div class="custom-control custom-radio mb-1">\n <input id="clb_others_tag_field_'+r+"_"+t+'" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][others_tag]" type="radio" class="custom-control-input clb_others_tag_fields_'+t+'" value="'+o.value+'" required="required">\n <label for="clb_others_tag_field_'+r+"_"+t+'" class="custom-control-label custom-control-label3">'+o.label+"</label>\n</div>"),r+=1;return'<div class="form-group" id="clb_others_tag_div_'+t+'">\n <label class="form-label">What happened?</label>\n '+a.join(" ")+'\n</div>\n<div class="form-group d-none" id="clb_something_else_div_'+t+'">\n <textarea class="form-control form__input" id="clb_cancellation_data_field_'+t+'" placeholder="Write in a few words (60 characters)" maxlength="60" name="combat_lead_booking[combat_lead_booking_tracks_attributes][0][cancellation_data]" disabled="disabled"></textarea>\n</div>'},bindOthersOptions:function(e){var t,n;if(t=document.getElementById("clb_something_else_div_"+e),n=document.getElementById("clb_cancellation_data_field_"+e),t&&n)return document.querySelectorAll(".clb_others_tag_fields_"+e).forEach(function(i){return i.addEventListener("change",function(i){if("something_else"===i.target.value?(t.classList.remove("d-none"),n.disabled=!1,n.required=!0):(t.classList.add("d-none"),n.disabled=!0,n.required=!1,n.value=""),window.clearNoteHint)return window.clearNoteHint(e)})}),n.addEventListener("input",function(){if(window.clearNoteHint)return window.clearNoteHint(e)})},domestic_free_call_btn_swal:function(e){return Swal.fire({title:"Calling...",text:"The system will now call you first from "+e+", please pick the call and as soon as you pickup, the call will be routed to parent.",icon:"info",confirmButtonText:"OK",confirmButtonColor:"#77c13a",showCancelButton:!1,cancelButtonText:"No",cancelButtonColor:"#c1c1c1",timer:15e3})},show_actionable_demos:function(e,t){return t.forEach(function(t){return"true"===t.is_closable||!0===t.is_closable?App.call_track.open_clb_modal(e,t.id):(App.call_track.open_clb_modal(e,t.id),$("#update_clb_modal_"+t.id+"-close-btn").addClass("d-none"))})},replace_commentator_message:function(e,t,n,i,o,r){return null==r&&(r="alert-info"),document.querySelectorAll(".clb_modal_commentator_"+t).forEach(function(e){var t;if("true"!==e.dataset.reminderShort)return t="",i&&(t="<p class='mb-1 expiryTimerClock font-weight-bold' data-exp-time='"+o+"'></p>"),e.innerHTML='<div class="alert '+r+'" role="alert">\n <p class="mb-1">'+n+"</p>\n "+t+"\n</div>"}),document.querySelectorAll(".expiryTimerClock").forEach(function(e){var t,n;return t=new Date(e.dataset.expTime).getTime(),n=setInterval(function(){var i,o,r,a,s;if(a=(new Date).getTime(),i=t-a,Math.floor(i/864e5),o=Math.floor(i%864e5/36e5),r=Math.floor(i%36e5/6e4),s=Math.floor(i%6e4/1e3),e.innerHTML=o+" h "+r+" m "+s+" s",i<0)return clearInterval(n),e.innerHTML="Demo is expired, please update the status to continue"},1e3)})},update_reminder_state:function(e,t,n,i){if(document.querySelectorAll(".clb_modal_commentator_"+t).forEach(function(e){return e.innerHTML=("true"===e.dataset.reminderShort?i:n)||""}),"function"==typeof window.calcReminderClocks)return window.calcReminderClocks()},update_tx_call_track:function(e,t,n,i,o,r,a,s,l,d){if(null==l&&(l=!1),null==d&&(d="alert-info"),App.call_track.replace_commentator_message(e,t,r,a,s,d),App.call_track.open_clb_modal(e,t),App.call_track.clean_clb_status_selection(e,t),n.reveal_number)return App.call_track.reveal_lead_number(e,t,o.country_code,o.phone,l)}})})}.call(this),function(){var e,t;(e=$("#messages")).length>0&&((t=function(){return window.scrollTo(0,document.body.scrollHeight)})(),App.global_chat=App.cable.subscriptions.create({channel:"ChatsChannel",chat_room_id:e.data("chat-room-id")},{connected:function(){return console.log("connected"),t()},disconnected:function(){return console.log("disconnected")},received:function(n){return console.log("received"),e.append(n.message),t()},send_message:function(e,t){return this.perform("send_message",{message_body:e,chat_room_id:t})}}),$("#new_chat_message").submit(function(t){var n;return n=$(this).find("#chat_message_body"),$.trim(n.val()).length>=1&&(App.global_chat.send_message(n.val(),e.data("chat-room-id")),n.val("")),t.preventDefault(),!1}))}.call(this),function(){var e;e=function(e,t){var n,i,o,r;if(i=String(null!=t?t:""),n=String(null!=(o=e.user_id)?o:""),!(i&&n&&i===n||(r=e.room_name||e.roomName,"function"!=typeof joinDailycoWaitingRoom)))return joinDailycoWaitingRoom(r)},$(document).ready(function(){var t,n,i,o,r,a,s,l;if(null!=(a=document.getElementById("dailyco_waiting_room_channel"))&&"true"===a.dataset.useSharedSubscription&&(t=a.dataset.cableChannel,i=a.dataset.userId,null!=t)){n={};try{n=JSON.parse(a.dataset.cableParams||"{}")}catch(d){return o=d,void console.error("Invalid dailyco waiting room cable params",o)}for(r in null!=App.dailyco_waiting_room&&(App.cable.subscriptions.remove(App.dailyco_waiting_room),App.dailyco_waiting_room=null),s={channel:t},n)l=n[r],s[r]=l;return App.dailyco_waiting_room=App.cable.subscriptions.create(s,{connected:function(){},disconnected:function(){},received:function(t){if("dailyco_user_joined"===t.action)return e(t,i)}})}})}.call(this),function(){$(document).ready(function(){if($("#tx_my_demos_request_page").length>0)return App.demo_request=App.cable.subscriptions.create("DemoRequestChannel",{connected:function(){},disconnected:function(){},received:function(e){if($("#tx_my_demos_request_page_id_"+e.teacher_id).length>0&&("new_dr_for_teacher"===e.action?App.demo_request.check_and_append_dr_card(e.demo_request_id,e.teacher_id,e.section_number,e.dr_card_html):"reject_dr_for_teacher"===e.action&&App.demo_request.remove_rejected_dr_card(e.demo_request_id,e.teacher_id)),"remove_dr_for_teacher"===e.action)return App.demo_request.check_and_remove_dr_card(e.demo_request_ids)},check_and_append_dr_card:function(e,t,n,i){var o,r;if((r=document.getElementById("demo_requests_pending_"+n+"_div_"+t))&&0===document.querySelectorAll("#tx_dr_card_col_"+e).length)return o='<div class="col-md-12" id="tx_dr_card_shimmer_'+e+'">\n <div class="card pt-3">\n <div class="card-body">\n <div class="p-32">
174\n <div class="cardShimmerBG cardShimmerTitleLine"></div>\n <div class="cardShimmerBG cardShimmerTitleLine cardShimmerEnd"></div>\n\n <div class="cardShimmerBG cardShimmerContentLine mt-4"></div>\n <div class="cardShimmerBG cardShimmerContentLine"></div>\n <div class="cardShimmerBG cardShimmerContentLine"></div>\n <div class="cardShimmerBG cardShimmerContentLine"></div>\n <div class="cardShimmerBG cardShimmerContentLine"></div>\n <div class="cardShimmerBG cardShimmerContentLine"></div>\n <div class="cardShimmerBG cardShimmerContentLine"></div>\n <div class="cardShimmerBG cardShimmerContentLine cardShimmerEnd"></div>\n </div>\n </div>\n </div>\n</div>',r.insertAdjacentHTML("beforeend",o),App.demo_request.remove_shimmer_add_dr_card(e,r,i)},remove_rejected_dr_card:function(e,t){return document.querySelectorAll("#tx_dr_card_col_"+e).forEach(function(e){if(e.dataset.teacherId===""+t)return e.classList.add("dr_card_col_div_transfom"),setTimeout(function(){return e.remove()},1e3)})},check_and_remove_dr_card:function(e){return e.forEach(function(e){return document.querySelectorAll("#tx_dr_card_col_"+e).forEach(function(e){return e.remove()}),document.querySelectorAll(".swal_accept_dr_btn_"+e).forEach(function(){return Swal.fire({title:"Oops!",text:"This demo has already been Assigned to different teacher, please try to accept faster next time",icon:"info",timer:7e3})}),document.querySelectorAll(".swal_reject_dr_btn_"+e).forEach(function(){return Swal.fire({title:"Oops!",text:"This demo has been expired.",icon:"info",timer:4e3})})})},remove_shimmer_add_dr_card:function(e,t,n){return setTimeout(function(){var i,o;if((o=document.getElementById("tx_dr_card_shimmer_"+e))&&o.remove(),t.insertAdjacentHTML("beforeend",n),i=document.querySelector(".willExpireDemoTimerClock_"+e))return App.demo_request.calculate_time_distance(i)},2e3)},calculate_time_distance:function(e){var t,n;return t=new Date(e.dataset.expTime).getTime(),n=setInterval(function(){var i,o,r,a,s;if(a=(new Date).getTime(),i=t-a,Math.floor(i/864e5),o=Math.floor(i%864e5/36e5),r=Math.floor(i%36e5/6e4),s=Math.floor(i%6e4/1e3),e.innerHTML=o+" h "+r+" m "+s+" s",i<0)return clearInterval(n),e.innerHTML="Demo is expired, please update the status to continue"},1e3)}})})}.call(this),function(){$(document).ready(function(){var e;return $("#employee_offers_table").length>0&&(App.employee_offers=App.cable.subscriptions.create({channel:"EmployeeOffersChannel"},{connected:function(){},disconnected:function(){},received:function(t){if("offer_accepted"===t.action)return e(t)}})),e=function(e){var t,n,i,o;if((i=$("tr[data-offer-id='"+e.employee_offer_id+"']")).length>0&&(o=i.find(".acceptance-status-select"),t=i.find(".acceptance-status-display .field-value"),o.length>0&&o.val("accepted"),t.length>0&&t.text("Accepted"),(n=i.find(".joining-date-display .field-value")).length>0&&null!=e.joining_date))return n.text(e.joining_date)}})}.call(this),function(){$(document).ready(function(){if($("#classroom_loading").length>0&&$("#classroom_loading").data("enable"))return App.instant_demo=App.cable.subscriptions.create({channel:"InstantDemoChannel",code:$("#classroom_loading").data("code"),id:$("#classroom_loading").data("id")},{connected:function(){},disconnected:function(){},received:function(e){return"redirect_parent_to_class"===e.action?setTimeout(function(){return window.location.href=e.url},2e3):"redirect_px_to_normal_demo"===e.action?window.location.href=e.url:void 0}})})}.call(this),function(){$(function(){var e,t,n,i,o,r,a,s;if(o=/users\/graduation_ceremony\/(\d+)\/live_ceremony$/,null!=(i=window.location.pathname.match(o)))return t=i[1],(e=document.querySelector("body")).dataset.applauseAudioUrl,n=e.dataset.confettiImgUrl,App.graduationCeremony=App.cable.subscriptions.create({channel:"LiveCeremonyChannel",ceremony_id:t},{connected:function(){},disconnected:function(){},received:function(t){var n,i,o,a,l,d,c,u,h,f,p,m;return p=t.slide,m=t.status,n=t.action,a=t.certificate_url,"dailyco_user_joined"===n?(d=e.dataset.user,c=String(null!=d?d:""),i=String(null!=(u=t.user_id)?u:""),void(c&&i&&c===i||(f=t.room_name||t.roomName,"function"==typeof joinDailycoWaitingRoom&&joinDailycoWaitingRoom(f)))):"certificate"!==p||"unveil"!==n?"completed"===m?((o=document.getElementById("card-front-"+p))&&(null!=(h=o.querySelector(".button-container"))&&h.remove(),(l=document.createElement("i")).className="fa fa-check-circle text-success",l.style.fontSize="20px",o.appendChild(l)),s()):void 0:void r(a,t.sound_url)}}),a=function(){var e,t;if(t=document.getElementById("certificate-overlay"))return(e=document.createElement("img")).src=n,e.alt="Confetti",e.style.position="absolute",e.style.top="50%",e.style.left="50%",e.style.transform="translate(-50%, -50%)",e.style.zIndex="1",e.style.pointerEvents="none",e.style.maxWidth="80%",e.id="certificate_confetti_image",t.appendChild(e),setTimeout(function(){return e.remove()},1e4)},s=function(){var e,t;return e=document.querySelectorAll('input.activity-status[value="completed"]').length,t=document.querySelectorAll(".activity-card[data-sli
174de]").length-e,document.getElementById("completed-activities").innerText="Completed Activities: "+e,document.getElementById("remaining-activities").innerText="Pending Activities: "+t},r=function(e,t){var n,i,o;if(o=document.getElementById("certificate-overlay"),n=document.getElementById("certificate-img"),o&&n)return n.src=e,o.classList.remove("d-none"),o.style.display="flex",(i=new Audio(t)).currentTime=5,i.volume=.1,i.play()["catch"](function(e){return console.error("Playback error:",e)}),setTimeout(function(){return i.pause(),$("#emoji_overlay").hide()},2e3),setTimeout(function(){return a()},500)}})}.call(this),function(){var e;e=function(e){var t,n;return n=document.getElementById("room-select"),t=document.getElementById("mobile-room-select"),n&&(n.value=e),t&&(t.value=e),autoInitClass(e)},$(document).ready(function(){var t;if($("#whereby_iframe").length>0)return t=!0===$("#whereby_iframe").data("instant")?$("#whereby_iframe").data("code")+"_instant-"+$("#whereby_iframe").data("meeting-type")+"_"+$("#whereby_iframe").data("ref-id"):!0===$("#whereby_iframe").data("clgb")?$("#whereby_iframe").data("code")+"_clgb-"+$("#whereby_iframe").data("meeting-type")+"_"+$("#whereby_iframe").data("ref-id"):$("#whereby_iframe").data("code")+"_"+$("#whereby_iframe").data("meeting-type")+"_"+$("#whereby_iframe").data("ref-id"),App.live_class=App.cable.subscriptions.create({channel:"WherebyLiveClassChannel",room_code:t,joining_time:$("#whereby_iframe").data("current-time"),wc_id:$("#whereby_iframe").data("wc-id"),code_number:$("#whereby_iframe").data("code"),ref_id:$("#whereby_iframe").data("ref-id"),instant_demo:$("#whereby_iframe").data("instant"),clbp_id:$("#whereby_iframe").data("clbp-id")},{connected:function(){},disconnected:function(){},received:function(t){var n,i,o,r,a,s,l,d,c,u,h,f,p,m,g,v,y,_,b,T,C,E,w,I,D,x,O,k,S,R,A,K,N,L,M,P,F,B,j,H,z,q;if(z=$("#whereby_iframe").data("type"),"end_call"===t.action&&"visitor"===z&&(window.location.href=window.location.protocol+"//"+window.location.host),"reload_classroom"===t.action){if("visitor"===z)return l=window.location.href,H=new URL(l),(S=new URLSearchParams(H.search)).has("teacher_joined")?window.location.reload():(S.set("teacher_joined","true"),H.search=S.toString(),j=H.toString(),window.location.href=j)}else if("instant_demo_phone"===t.action){if("visitor"===z)return $("#instant_demo_phone_modal").modal("show")}else if("reload_subs_demo_page"===t.action){if("visitor"===z)return window.location.reload()}else if("substitute_demo_unassigned"===t.action){if("visitor"===z)return Swal.fire({title:"Teacher Unassigned",html:"We regret to inform you that we are unable to assign any teacher at the moment to conduct the Demo Session. Kindly reschedule the meeting or contact PlanetSpark support for more help.",icon:"info",showCloseButton:!1,showCancelButton:!1,confirmButtonText:"Exit the Meet",allowOutsideClick:!1,allowEscapeKey:!1}).then(function(e){if(e.isConfirmed)return window.location.href="/"})}else if("share_teacher_slots"===t.action){if("visitor"===z)return $("#teacher-slot-modal").modal("show"),document.getElementsByClassName("modal-backdrop")[0].remove()}else if("share_employee_profile"===t.action){if("visitor"===z)return $("#emp-profile-modal").modal("show"),document.getElementsByClassName("modal-backdrop")[0].remove()}else if("allote_teacher_slot"===t.action){if((N=$("#seat_"+t.seatNumber+"_teacher")).hasClass("black-color"))"visitor"===z&&Swal.fire({title:"Teacher Slot Info",html:"Slot already booked.",icon:"info",showCloseButton:!0,showCancelButton:!0,focusCancel:!0,showConfirmButton:!1,cancelButtonText:"Close"});else if(N.css("background-color","#12AD2B"),"visitor"===z)return Swal.fire({title:"Teacher Slot Info",html:"Slot successfully reserved.",icon:"info",showCloseButton:!0,showCancelButton:!0,focusCancel:!0,showConfirmButton:!1,cancelButtonText:"Close"}),$("#teacher-slot-modal").modal("hide")}else if("redirect_to_instant_demo"===t.action){if("visitor"===z)return window.location.href=t.url}else if("show_otp_field"===t.action){if("visitor"===z)return Swal.fire({title:"Your Counselling code:",html:"<p class='text-center'>Your exclusive PlanetSpark counselling code is "+t.otp+".<br><br><input id='otp1' required class='swal2-input' placeholder='Enter Counseling Code' style='display:block !important;margin-left: 15px;'></p>",icon:"info",showCloseButton:!0,showCancelButton:!1,showConfirmButton:!0,confirmButtonText:"Verify"}).then(function(e){if(e.isConfirmed)return console.log($("#otp1").val()),$.post("/live_call_vc_otp",{otp:$("#otp1").val(),code:t.code,clb_id:t.clb_id},function(e){return console.log("Success:",e)})})}else if("verify_combat_otp"===t.action)"host"===z&&Swal.fire({title:"Counseling code added successfully!",icon:"info",showCloseButton:!0,showCancelButton:!0,focusCancel:!0,showConfirmButton:!1,cancelButtonText:"Close"});else if("bonus_demo_planned"===t.action){if("visitor"===z)return T="For the best experience of your child, please make sure that both parents are present in the Bonus Class","adult"===t.grade&&(T=""),Swal.fire({title:"Congratulations",html:"Congratulations! "+t.titled_name+" has awarded you a Bonus Class.<br /><br />Date: <strong>"+t.date+"</strong><br/>Time: <strong>"+t.time+"</strong>",icon:"success",confirmButtonText:"I Confirm My Participation.",confirmButtonColor:"#77c13a",showCancelButton:!1}).then(function(e){if(e.isConfirmed)return Swal.fire({title:"Congratulations",html:"Your Bonus Class is confirmed! "+T,icon:"success"})})}else if("px_request_bonus_demo_to_tx"===t.action){if("host"===z&&(Swal.fire({title:"Bonus Demo Request",html:"Parent has requested for a bonus demo.",icon:"info",confirmButtonText:"Ok",confirmButtonColor:"#77c13a",showCancelButton:!1}),document.getElementById("open-plan-bonus-demo-modal-btn")))return document.getElementById("open-plan-bonus-demo-modal-btn").click()}else if("instant_demo_phone_msg"===t.action){if("host"===z){if(Swal.fire({title:t.title,text:t.text,icon:t.icon,timer:3e3}),$("#demo_class_assessment_combat_lead_booking_id").val(),$("#instant_p
174hone_req_btn").removeClass("student_birthday_button"),y=document.getElementById("insta_demo_tx_phone_commentator"))return y.dataset.phoneEntered="true"}else if("visitor"===z)return $("#instant_demo_phone_modal").modal("show")}else{if("instant_demo_expire"===t.action)return"visitor"===z?setTimeout(function(){return location.assign(t.visitor_url)},2e3):location.replace(t.host_url);if("assign_badge"===t.action){if("visitor"===z)return $("body").append("<div id='badge_popup' class='appreciation_overlay badge_overall'><div id='appreciation_content'> <h3 class='font-nm-ubold' style='color: #fff;'>Congratulations!</h3> <p class='font-nm-ubold'>You won a badge</p> <img src='"+t.badge_url+"'></div></div>"),$("#badge_popup").show(),m=function(){return $("#badge_popup").hide(),$("#badge_popup").remove(),$("#badge_"+t.badgeId).animate({opacity:"100%"},2e3)},setTimeout(m,6e3),this.perform("assign_badge",{badgeId:t.badgeId,record_badge:t.record_badge})}else if("appreciation"===t.action){if("visitor"===z)return $("#appreciation_overlay").show(),(i=$("#applause_sound")).prop("currentTime",5),i.prop("volume",.1),i.trigger("play"),m=function(){return $("#appreciation_overlay").hide(),i.trigger("pause")},setTimeout(m,4e3),this.perform("assign_appreciation",{appreciation_type:t.appreciation_type,teacher_id:t.teacher_id})}else if("switch_platform"===t.action){if((z=$("#whereby_iframe").data("user"))!==t.user_id)return e(t.switch_to)}else if("feedback_request"===t.action){if("visitor"===z)return $("#live_class_feedback_requested_by_id").val(t.requester_id),$("#feedback_request_form").modal("show")}else if("feedback_submitted"===t.action){if("host"===z)return Swal.fire({title:"Feedback Submitted",text:"Feedback has been shared!",icon:"info",timer:3e3})}else if("display_demo_assessment"===t.action){if("visitor"===z)return $("#assessmentModal").show(),$(".option-input").css("pointer-events","none")}else if("refresh_radio_btn"===t.action){if("visitor"===z)return o="#demo_class_assessment_body_language_"+t.checkedBtn.body_language,s="#demo_class_assessment_confidence_attitude_"+t.checkedBtn.confidence_attitude,q="#demo_class_assessment_voice_modulation_"+t.checkedBtn.voice_modulation,P="#demo_class_assessment_thought_structure_"+t.checkedBtn.thought_structure,p="#demo_class_assessment_fluency_"+t.checkedBtn.fluency,$(o).prop("checked",!0),$(s).prop("checked",!0),$(q).prop("checked",!0),$(P).prop("checked",!0),$(p).prop("checked",!0)}else if("cancel_demo_assessment"===t.action){if("visitor"===z)return $("#assessmentModal").hide()}else{if("slot_time_show"===t.action)return $("#open-counseling-session-modal").modal("show"),$("#counseling_session_booking_form").hide(),$("#open-counseling-session-modal-close-btn").show();if("open_counselling_modal"===t.action){if("visitor"===z)return $("#open-counseling-session-modal").modal("show"),$("#tabs_column_field").css("pointer-events","none"),$("#cards_column_field").css("pointer-events","none"),$("#open-counseling-session-modal-close-btn").hide(),$("#counseling_session_booking_form").show(),resetAndEmptyOtpFields();if("visitor"!==z)return $("#tabs_column_field").css("pointer-events",""),$("#cards_column_field").css("pointer-events",""),$("#confirm-slot-btn").hide(),resetAndEmptyOtpFields(),$("#lead_otp_button").removeClass("d-none").show(),$("#counseling_session_booking_form").show(),$("#open-counseling-session-modal-close-btn").show()}else if("open_student_counselling_modal"===t.action){if("visitor"===z)return $("#open-counseling-session-modal").modal("show"),$("#tabs_column_field").css("pointer-events",""),$("#cards_column_field").css("pointer-events",""),$("#counseling_booking_type").val("student_booking"),resetAndEmptyOtpFields(),$("#confirm-slot-btn").show(),$("#open-counseling-session-modal-close-btn").show();if("visitor"!==z)return $("#open-counseling-session-modal").modal("show"),$("#tabs_column_field").css("pointer-events","none"),$("#cards_column_field").css("pointer-events","none"),resetAndEmptyOtpFields(),$("#open-counseling-session-modal-close-btn").hide(),$("#student_booking_info").removeClass("d-none")}else{if("close_counselling_modal"===t.action)return $("#open-counseling-session-modal").modal("hide"),clearResendLeadOtpInterval();if("confirm_slot_success"===t.action){if("visitor"===z)return $("#open-counseling-session-modal").modal("hide"),Swal.fire({title:"Success",text:"Counselling Session Booked Sucessfully",icon:"success",timer:1e3})}else if("confirm_student_booking_slot_success"===t.action){if(v="<span> Previously Booked Session at "+(c=t.booking_date)+" </span>",$("#previous_session_desc").html(v),$("#is_counseling_booked").val("true"),"visitor"!==z)return $("#open-counseling-session-modal-btn").text("Reschedule Parent's Counseling"),$("#open-counseling-session-modal-btn2").text("Reschedule Parent's Counseling"),O="Dear Teacher,<br/><br/>The parent has booked a video counselling session for the slot "+c+". Please reinfor
174ce the presence of both parents for the session with our expert counselor.",$("#open-counseling-session-modal").modal("hide"),Swal.fire({title:"Success",html:O,icon:"success",customClass:{content:"text-left"}}),incrementSessionBookingCount()}else if("confirm_teacher_booking_slot_success"===t.action){if(v="<span> Previously Booked Session at "+(c=t.booking_date)+" </span>",$("#previous_session_desc").html(v),$("#is_counseling_booked").val("true"),"visitor"===z)return c=t.booking_date,O="Hi "+t.lead_name+",<br/><br/>A video counselling session has been booked for you for "+c,"adult"!==t.lead_grade&&(O+="<br/><br/>Please ensure that both the parents are available for the counselling session."),$("#open-counseling-session-modal").modal("hide"),Swal.fire({title:"Success",html:O,confirmButtonText:"I Confirm",icon:"success",allowOutsideClick:!1,customClass:{content:"text-left"}})}else if("confirm_slot_error"===t.action){if("visitor"===z)return $("#open-counseling-session-modal").modal("hide"),Swal.fire({title:"Error",text:"Error While Booking Counselling Session",icon:"success",timer:1e3})}else if("date_change"===t.action){for(f=t.div_id,B=document.querySelectorAll(".time-btns"),h=document.querySelectorAll(".day-btns"),document.querySelectorAll(".h4-tags"),n=document.querySelectorAll(".card-slots"),g=0,w=h.length;g<w;g++)(u=h[g]).classList.remove("btn-primary"),u.classList.remove("text-white"),u.classList.add("btn-outline-primary"),u.classList.add("text-primary");for(_=0,I=B.length;_<I;_++)(F=B[_]).classList.remove("btn-primary"),F.classList.add("btn-outline-primary");for(L=document.getElementById(f),a=document.getElementById(t.div_id+"_card"),b=0,D=n.length;b<D;b++)n[b].classList.add("d-none");if(a.classList.remove("d-none"),L.classList.add("btn-primary"),L.classList.add("text-white"),L.classList.remove("btn-outline-primary"),L.classList.remove("text-primary"),"visitor"===z)return $("#lead_otp_message").addClass("d-none"),$("#lead_otp_message").html("")}else if("time_change"===t.action){for(f=t.div_id,C=0,x=(B=document.querySelectorAll(".time-btns")).length;C<x;C++)(F=B[C]).classList.remove("btn-primary"),F.classList.add("btn-outline-primary");if((L=document.getElementById(f)).dataset.timePretty,L.classList.remove("btn-outline-primary"),L.classList.remove("disabled"),L.classList.add("btn-primary"),"visitor"===z)return $("#lead_otp_message").addClass("d-none"),$("#lead_otp_message").html("")}else if("onboarding_req"===t.action){if("host"===z)return Swal.fire({title:"An agent will be joining!",text:"Dear Teacher, Your student has requested Onboarding, one of our Learning Managers will connect shortly and guide your student with the LMS. This will take 5-8 mins, we request your cooperation. Thank you.",icon:"info",timer:5e3})}else if("send_lead_otp"===t.action){if("visitor"===z)return E=t.otp,O="Congrats, this is your special counseling confirmation code for "+(c=t.booking_date)+'. Please share this code with the teacher<br/> <span class="font-weight-bolder"> Code: '+E+"</span>",$("#lead_otp_message").html(O),$("#lead_otp_message").removeClass("d-none").show()}else if("sparkx_video"===t.action){if("host"===z)return Swal.fire({title:"Video Submitted!",text:"Dear Teacher, Your student has submitted the Sparkx Video Successfully, Get more videos created post every class",icon:"info",timer:5e3})}else if("agent_joined_popup"===t.action){if("teacher"===t.req_type){if((z=$("#whereby_iframe").data("user"))===t.req_id)return Swal.fire({title:"Request Accepted!", 175html:"Your Request is accepted, an agent will join your classroom shortly to assist you.<br>Live Support Ticket ID: "+t.ticket_id+"<br>Agent Name: "+t.agent_name,icon:"info",timer:8e3})}else if("visitor"===z)return Swal.fire({title:"Request Accepted!",html:"Your Request is accepted, an agent will join your classroom shortly to assist you.<br>Live Support Ticket ID: "+t.ticket_id+"<br>Agent Name: "+t.agent_name,icon:"info",timer:8e3})}else if("remove_substitute_timer_screen"===t.action){if("visitor"===z&&(M=document.getElementById("substitute_timer")))return M.style.display="none"}else if("remove_restrict_teacher_btn"===t.action){if("visitor"===z&&(A=document.getElementById("restrict_substitute_teacher")))return A.
175style.display="none"}else{if("assign_mock_case_study"===t.action)return updateMockCaseDisplay(t.mock_case);if("sync_presentation_slide"===t.action){if("function"==typeof window.syncLcpSlide)return window.syncLcpSlide(t.index,t.presentationId)}else if("sync_presentation_open"===t.action){if("function"==typeof window.openPresentationPanel&&"visitor"===(z=$("#whereby_iframe").data("type")))return window.openPresentationPanel(!1,!0,t.presentation_id)}else if("student_submission"===t.action){if("host"===z&&"function"==typeof window.handleStudentSubmission)return window.handleStudentSubmission(t)}else if("dailyco_user_joined"===t.action&&(d=$("#whereby_iframe").data("user"),k=String(null!=d?d:""),r=String(null!=(R=t.user_id)?R:"").split("|")[0],!(k&&r&&k===r||(K=t.room_name||t.roomName,"function"!=typeof joinDailycoWaitingRoom))))return joinDailycoWaitingRoom(K)}}}}},speak:function(){return this.perform("speak")}})})}.call(this),function(){$(document).ready(function(){if($("#live_chlng_event").length>0)return App.live_class=App.cable.subscriptions.create({channel:"LiveEventChannel",room_code:$("#live_chlng_event").data("event-id")+"_"+$("#live_chlng_event").data("event-time-slot-id"),lead_id:$("#live_chlng_event").data("cl-id"),host_id:$("#live_chlng_event").data("host-id")},{connected:function(){},disconnected:function(){},received:function(e){var t,n,i,o,r,a;if("comment"===e.action)return n='<div class="card-comment"> <div class="d-flex justify-content-between align-items-center" style="height: 100%"> <div> <img class="mr-2" alt="user" height="25px" width="25px" src="'+e.image+'">'+e.user_name+'</div> </div> <div class="comments_video" style="color: ##1E2256 ;margin-top: 10px;font-size: 13px; font-weight: 400">'+e.comment+"</div> </div>",$("#cmt_box").append(n),$("#box").animate({scrollTop:$("#box").prop("scrollHeight")},1e3);if("update_viewer_count"===e.action){if(e.host)return $("#teacher_not_present_strip").addClass("d-none")}else if("dailyco_user_joined"===e.action&&(a=$("#live_chlng_event").data("user"),i=String(null!=a?a:""),t=String(null!=(o=e.user_id)?o:""),!(i&&t&&i===t||(r=e.room_name||e.roomName,"function"!=typeof joinDailycoWaitingRoom))))return joinDailycoWaitingRoom(r)},speak:function(){return this.perform("speak")}})})}.call(this),function(){var e,t,n,i=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};e=function(e,t){var n,i;return e=new Date(e),i=new Date,n=Math.round((i-e)/1e3),Math.max(t-n,0)},t=function(e){var t,n;return n=window.location.href,e=e.replace(/[\[\]]/g,"\\$&"),(t=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(n))?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null},window.pendingTeacherDemoActivities=window.pendingTeacherDemoActivities||{},n=function(e){var t;return(t=document.getElementById("room-select"))&&(t.value=e),autoInitClass(e)},$(document).ready(function(){var o,r,a,s;if(s=t("event_id"),a=t("event_time_slot_id"),s&&a)return o=function(e,t){var n,i,o,r,a,s,l,d,c,u,h,f,p,m,g,v,y,_,b,T,C,E,w,I,D,x,O,k,S,R,A,K,N,L,M,P,F,B,j,H,z,q,W,U,V,Y;if(null==t&&(t="move"),U=$("body").data("usertype"),g=!1,window.INTERACTIVE_ACTIVITIES)for(o in _=window.INTERACTIVE_ACTIVITIES)if(!0===(i=_[o]).is_teacher_view){g=!0;break}if(p="Student"===U&&window.currentActiveUserId&&String($("body").data("user"))===String(window.currentActiveUserId),"Teacher"===U||g||p){for(o in n=window.INTERACTIVE_ACTIVITIES||{})if(i=n[o],m=!1,("Teacher"===U||g)&&(!0===i.teacher_demo_active||!0===i.sync_teacher_before_start&&!0!==i.session_active)&&(m=!0),p&&!0===i.session_active&&!0!==i.whole_class_all_together&&(m=!0),m){if((a=document.querySelector("[id^='gp-core-shell'][data-activity-id='"+o+"']"))&&(0===a.offsetWidth||0===a.offsetHeight))continue;if(y=Date.now(),null==window.lastCursorBroadcast&&(window.lastCursorBroadcast=0),("move"===t||"drag"===t)&&y-window.lastCursorBroadcast<50)return;window.lastCursorBroadcast=y,a=a||document.body,f=function(e,t){var n,i,o,r;for(i=[];e&&1===e.nodeType&&e!==t;){if(e.hasAttribute("data-id")){i.unshift(e.nodeName.toLowerCase()+"[data-id='"+e.getAttribute("data-id").replace(/'/g,"\\'")+"']");break}for(o=e.nodeName.toLowerCase(),r=e,n=1;r=r.previousElementSibling;)1===r.nodeType&&r.nodeName.toLowerCase()===o&&n++;(n>1||e.nextElementSibling&&e.nextElementSibling.nodeName.toLowerCase()===o)&&(o+=":nth-of-type("+n+")"),i.unshift(o),e=e.parentNode}return i.join(" > ")};try{q=f(z=e.target,a),v=r="Teacher"===U?"Teacher":window.currentUserName||"Student","drag"===t?v=r+" is dragging":("down"===t||"move"===t&&1===e.buttons)&&(v=z.closest&&z.closest("canvas")?r+" is drawing":z.closest&&z.closest(".gp-tile, .draggable, .gp-bucket-card, .gp-continuum-bar")?r+" is dragging":z.closest&&z.closest(".gp-option, .gp-choice, button, input, select")?r+" is selecting":r+" is interacting"),window.getSelection().toString().trim().length>0&&(v=r+" is highlighting"),W=z.getBoundingClientRect?z.getBoundingClientRect():{left:0,top:0,width:1,height:1},l=null!=(b=null!=(R=null!=(L=null!=(M=null!=(P=e.originalEvent)?P.clientX:void 0)?M:null!=(F=e.originalEvent)&&null!=(B=F.touches)&&null!=(j=B[0])?j.clientX:void 0)?L:null!=(H=e.originalEvent)&&null!=(T=H.changedTouches)&&null!=(C=T[0])?C.clientX:void 0)?R:e.clientX)?b:0,d=null!=(E=null!=(w=null!=(I=null!=(D=null!=(x=e.originalEvent)?x.clientY:void 0)?D:null!=(O=e.originalEvent)&&null!=(k=O.touches)&&null!=(S=k[0])?S.clientY:void 0)?I:null!=(A=e.originalEvent)&&null!=(K=A.changedTouches)&&null!=(N=K[0])?N.clientY:void 0)?w:e.clientY)?E:0,V=(l-W.left)/(W.width||1)*100,Y=(d-W.top)/(W.height||1)*100,c=(l-(s=a.getBoundingClientRect?a.getBoundingClientRect():{left:0,top:0,width:1,height:1}
175).left)/(s.width||1)*100,u=(d-s.top)/(s.height||1)*100,App.live_event_v2&&(window.CURSOR_DEBUG&&console.log("[Cursor Tracker] Broadcasting move for Activity",o,"Target:",q,"x:",V,"y:",Y),p?(0===v.indexOf("Teacher")&&(v=v.replace("Teacher",$("body").data("username")||"Student")),App.live_event_v2.perform("participant_cursor_move",{interactive_activity_id:o,x:V,y:Y,container_x:c,container_y:u,target_path:q,state:t,label:v})):App.live_event_v2.perform("teacher_cursor_move",{interactive_activity_id:o,x:V,y:Y,container_x:c,container_y:u,target_path:q,state:t,label:v}))}catch(G){h=G,window.CURSOR_DEBUG&&console.error("[Cursor Tracker] Error broadcasting cursor:",h)}return}}else window.CURSOR_DEBUG&&console.log("[Cursor] Rejected: Not Teacher, not isTeacherView and not active student. userType:",U,"isTeacherView:",g)},$(document).on("mousemove",function(e){return o(e,"move")}),$(document).on("dragover",function(e){return o(e,"drag")}),$(document).on("mousedown",function(e){return o(e,"down")}),$(document).on("mouseup",function(e){return o(e,"up")}),r=function(){var e,t,n,i,o,r,a,s,l,d,c,u,h,f,p,m;if(m=$("body").data("usertype"),u=!1,window.INTERACTIVE_ACTIVITIES)for(i in h=window.INTERACTIVE_ACTIVITIES)if(!0===(n=h[i]).is_teacher_view){u=!0;break}for(i in t=window.INTERACTIVE_ACTIVITIES||{},e=null,a=null,t)if(c=!0===(n=t[i]).teacher_demo_active||!0===n.sync_teacher_before_start&&!0!==n.session_active,d="Student"===m&&!0===n.session_active&&"active"===n.participant_turn_status&&!0!==n.whole_class_all_together,(u&&c||d)&&(r=document.querySelector("[id^='gp-core-shell'][data-activity-id='"+i+"']"))&&r.offsetWidth>0&&r.offsetHeight>0){e=i,a=r;break}if(e&&a)if((f=window.getSelection())&&0!==f.rangeCount){if(a.contains(f.anchorNode))return l=function(e,t){var n,i,o,r;for(i=[];e&&1===e.nodeType&&e!==t;){if(e.hasAttribute("data-id")){i.unshift(e.nodeName.toLowerCase()+"[data-id='"+e.getAttribute("data-id").replace(/'/g,"\\'")+"']");break}for(o=e.nodeName.toLowerCase(),r=e,n=1;r=r.previousElementSibling;)1===r.nodeType&&r.nodeName.toLowerCase()===o&&n++;(n>1||e.nextElementSibling&&e.nextElementSibling.nodeName.toLowerCase()===o)&&(o+=":nth-of-type("+n+")"),i.unshift(o),e=e.parentNode}return i.join(" > ")},o=(p=function(e){var t,n;return e?3===e.nodeType?(n=e.parentNode,t=Array.prototype.indexOf.call(n.childNodes,e),{path:l(n,a),type:"text",index:t}):1===e.nodeType?{path:l(e,a),type:"element",index:-1}:null:null})(f.anchorNode),s=p(f.focusNode),o&&s&&App.live_event_v2?App.live_event_v2.perform("teacher_cursor_selection",{interactive_activity_id:e,clear:!1,anchor:o,anchor_offset:f.anchorOffset,focus:s,focus_offset:f.focusOffset}):void 0}else App.live_event_v2&&App.live_event_v2.perform("teacher_cursor_selection",{interactive_activity_id:e,clear:!0})},document.addEventListener("selectionchange",function(){var e;return e=Date.now(),null==window.lastSelectionBroadcast&&(window.lastSelectionBroadcast=0),e-window.lastSelectionBroadcast<50?(clearTimeout(window.selectionTimeout),void(window.selectionTimeout=setTimeout(r,50))):(window.lastSelectionBroadcast=e,r())}),null!=App.live_event_v2&&(App.cable.subscriptions.remove(App.live_event_v2),App.live_event_v2=null),App.live_event_v2=App.cable.subscriptions.create({channel:"LiveEventV2Channel",event_id:s,event_time_slot_id:a},{connected:function(){return window._liveEventV2HasConnectedBefore&&window.dispatchEvent(new CustomEvent("websocket-reconnected")),window._liveEventV2HasConnectedBefore=!0},disconnected:function(){},received:function(t){var o,r,s,l,d,c,u,h,f,p,m,g,v,y,_,b,T,C,E,w,I,D,x,O,k,S,R,A,K,N,L,M,P,F,B,j,H,z,q,W,U,V,Y,G,X,Q,Z,J,ee,te,ne,ie,oe,re,ae,se,le,de,ce,ue,he,fe,pe,me,ge,ve,ye,_e,be,Te,Ce,Ee,we,Ie,De,xe,Oe,ke,Se,Re,$e,Ae,Ke,Ne,Le,Me,Pe,Fe,Be,je,He,ze,qe,We,Ue,Ve,Ye,Ge,Xe,Qe,Ze,Je,et,tt,nt,it,ot;if("switch_platform"===t.action){if((nt=$("body").data("user"))!==t.user_id)return window.OVERLAY_ENGINE_ENABLED?(null!=(ge=window.RoomSwitch)&&ge.begin(),window.location.reload()):n(t.switch_to)}else{if("overlay"===t.action)return null!=(ve=window.OverlayManager)?ve.ingest(t):void 0;if("play_emoji"===t.action)return $("#emoji_gif").attr("src",t.gif),$("#emoji_overlay").show(),t.sound?((C=new Audio("<%= assets_path 'applause.mp3' %>")).currentTime=5,C.volume=.1,C.play()["catch"](function(e){return console.error("Playback error:",e)}),setTimeout(function(){return C.pause(),$("#emoji_overlay").hide()},2e3)):setTimeout(function(){return $("#emoji_overlay").hide()},2e3);if("timer_started"===t.action){if("Student"===(nt=$("body").data("usertype")))return window.scrollTo({top:0,behavior:"smooth"}),Qe=t.time_started,O=t.duration,xe=e(Qe,O),$("#practice_for").hide(),$("#timer-container").css("display","flex").show(),startCountdown(xe)}else{if("timer_paused"===t.action)return $("#practice_for").hide(),$("#timer-container").css("display","flex").show(),clearInterval(countDown);if("timer_resumed"===t.action){if("Student"===(nt=$("body").data("usertype")))return Qe=t.time_started,O=t.duration,xe=e(Qe,O),$("#practice_for").hide(),$("#timer-container").css("display","flex").show(),startCountdown(xe)}else if("timer_stopped"===t.action){if(clearInterval(countDown),$("#timer-container").hide(),$("#practice_for").show(),(u=$("#t
175imer_terminer")).prop("currentTime",5),u.prop("volume",.1),u.on("canplay",function(){return u[0].play()}),u.on("ended",function(){return u[0].pause()}),u.on("error",function(e){return console.error("Audio playback error:",e)}),void 0!==(ce=u[0].play()))return ce["catch"](function(e){return console.error("Playback failed:",e)})}else if("dailyco_user_joined"===t.action){if(nt=$("body").data("user"),ae=String(null!=nt?nt:""),v=String(null!=(_e=t.user_id)?_e:""),!(ae&&v&&ae===v||(Se=t.room_name||t.roomName,"function"!=typeof joinDailycoWaitingRoom)))return joinDailycoWaitingRoom(Se)}else if("student_joined"===t.action){if(j=document.getElementById("grouped-student-list"),"Teacher"===(ot=$("body").data("usertype")),j){if(Pe="student-practice-class-"+t.student_user_id,Le=document.getElementById(Pe),H=""===(B=t.group_name||"no_group_assigned")||null===B?"no_group_assigned":B+"_group",Be=null!=(F=document.getElementById(H))?F.querySelector(".student-list"):void 0,Je=null!=F?F.querySelector(".toggle-students-button"):void 0,Me=null!=Be?Be.querySelectorAll(".student-card"):void 0,Le)return Le.style.backgroundColor="";if(F&&((Ne=document.createElement("div")).className="student-card",Ne.id="student-practice-class-"+t.student_user_id,h=document.querySelector("meta[name='badge-icon-path']").content,Ne.innerHTML='<div style="flex: 1;">\n <p class="mb-0" style="font-size: 14px;"><strong>'+t.student_name+"</strong></p>\n <small>Grade: "+t.student_grade+'</small>\n</div>\n<div>\n <a class="img-icon-container ${!isTeacher ? \'d-none\' : \'\'}" id="badges-btn" onclick="openBadgesModal('+t.student_user_id+", "+t.event_registration_id+')">\n <img src="'+h+'" class="img-fluid badge-image" alt="Badges" style="height: 32px; width: 32px;">\n <div class="img-icon-tooltip"><strong>Assign Badge</strong></div>\n </a>\n</div>',Be.appendChild(Ne),Me.length>=3))return Ne.style.display="none",Je.innerHTML="\u2227",Je.title="Click to hide"}}else if("student_left"===t.action){if(Pe="student-practice-class-"+t.student_user_id,Le=document.getElementById(Pe))return Le.style.backgroundColor="lightgrey"}else{if("assign_badge"===t.action)return ot=$("body").data("usertype"),it=$("body").data("user"),h=document.querySelector("meta[name='badge-icon-path']").content,"Student"===ot&&t.student_id===it?($("body").append("<div id='badge_popup' class='appreciation_overlay'><div id='appreciation_content'> <h3 class='font-nm-ubold' style='color: #fff;'>Congratulations!</h3> <p class='font-nm-ubold'>You won a badge</p> <img src='"+h+"''></div></div>"),$("#badge_popup").show(),z=function(){return $("#badge_popup").hide(),$("#badge_popup").remove(),$("#badge_"+t.badgeId).animate({opacity:"100%"},2e3),u.trigger("pause")},setTimeout(z,5e3),(f=document.getElementById("badge_overlay"))&&(ie="You have been rewarded with "+t.badges_count+" badge(s). Kindly refresh your badges.",f.innerHTML='<img src="'+h+'" class="img-fluid badge-image" alt="Badges" style="height: 32px; width: 32px; margin-right: 8px;">\n<span>'+ie+"</span>",f.classList.remove("hidden"),setTimeout(function(){return f.classList.add("hidden")},5e3))):($("body").append("<div id='badge_popup' class='appreciation_overlay'><div id='appreciation_content'> <h3 class='font-nm-ubold' style='color: #fff;'>Congratulations!</h3> <p class='font-nm-ubold'>"+t.student_name+" has won a badge</p> <img src='"+h+"''></div></div>"),$("#badge_popup").show(),z=function(){return $("#badge_popup").hide(),$("#badge_popup").remove(),$("#badge_"+t.badgeId).animate({opacity:"100%"},2e3),u.trigger("pause")},setTimeout(z,5e3)),(u=$("#applause_sound")).prop("currentTime",5),u.prop("volume",.1),u.trigger("play");if("start_buzzer_round"===t.action)return window.scrollTo({top:0,behavior:"smooth"}),"Teacher"===(ot=$("body").data("usertype"))&&Swal.fire({title:"Buzzer Round Started!",icon:"info",confirmButtonText:"OK",timer:2e3}),"Student"===ot&&(Swal.fire({title:"Buzzer Round Started!",text:"Get ready to press the buzzer!",icon:"info",confirmButtonText:"OK",timer:2e3}),(y=document.getElementById("buzzer-icon-student"))&&(y.style.removeProperty("pointer-events"),y.style.removeProperty("opacity"))),(u=$("#buzzer_sound_teacher")).prop("currentTime",5),u.prop("volume",.1),u.trigger("play"),u.on("canplay",function(){return u.trigger("play")}),u.on("ended",function(){return u.trigger("pause")});if("buzzer_pressed"===t.action)return"Student"===(ot=$("body").data("usertype"))&&(y=document.getElementById("buzzer-icon-student"))&&(y.style.pointerEvents="none",y.style.opacity="0.5"),"Teacher"===ot&&(_=document.getElementById("buzzer-toggle"))&&(_.checked=!1),Swal.fire({title:"Buzzer round won by "+t.student_name,imageUrl:t.buzzer_icon_url,imageWidth:300,imageHeight:300,confirmButtonText:"OK",icon:!1,timer:3e3});if("end_buzzer_round"===t.action)return Swal.fire({title:"Buzzer round ended",text:"Buzzer round ended by the teacher",icon:"info",confirmButtonText:"OK",timer:3e3}
175),"Student"===(ot=$("body").data("usertype"))&&(y=document.getElementById("buzzer-icon-student"))&&(y.style.pointerEvents="none",y.style.opacity="0.5"),(u=$("#buzzer_sound_teacher")).prop("currentTime",5),u.prop("volume",.1),u.trigger("play"),u.on("canplay",function(){return u.trigger("play")}),u.on("ended",function(){return u.trigger("pause")});if("show_team_details"===t.action)return showTeamDetails();if("close_team_details"===t.action)return Swal.close();if("start_interactive_activity"===t.action)return(V=t.interactive_activity_id)&&"function"==typeof startInteractiveActivity&&startInteractiveActivity(V),document.querySelectorAll(".teacher-virtual-cursor").forEach(function(e){return e.style.display="none"});if("update_active_turn"===t.type){if(console.log("ACTION CABLE: update_active_turn received",t.active_participant_turn),document.querySelectorAll(".teacher-virtual-cursor").forEach(function(e){return e.style.display="none"}),V=t.interactive_activity_id,r=t.active_participant_turn,re=t.next_participant_turn,(null!=(be=t.active_participant_turns)?be.length:void 0)>0)for(W=0,te=(Te=t.active_participant_turns).length;W<te;W++)if((fe=Te[W])&&String(fe.user_id)===String(window.currentUserId)){r=fe;break}return he=function(){var e,t,n,o;if((e=null!=r?r.user_id:void 0)?(window.currentActiveUserId!==e.toString()&&document.querySelectorAll(".teacher-virtual-cursor, .participant-virtual-cursor").forEach(function(e){return e.style.display="none"}),window.currentActiveUserId=e.toString(),n=new CustomEvent("activeStudentChanged",{detail:{active_user_id:e}}),document.dispatchEvent(n),console.log("EVENT DISPATCHED: activeStudentChanged for user "+e)):(window.currentActiveUserId=null,document.querySelectorAll(".teacher-virtual-cursor, .participant-virtual-cursor").forEach(function(e){return e.style.display="none"})),V&&"function"==typeof updateInteractiveActivityTurn&&updateInteractiveActivityTurn(V,r,!1,re),V&&"function"==typeof renderGenericGroupButtons&&renderGenericGroupButtons(V,r),V&&"function"==typeof renderRecordingArea&&(t=(window.INTERACTIVE_ACTIVITIES||{})[String(V)]||{},o=String(t.structure_code||"").toUpperCase(),i.call(window.INTERACTIVE_ACTIVITY_RECORDING_STRUCTURES||[],o)>=0))return renderRecordingArea(r,V)},V=t.interactive_activity_id,r=t.active_participant_turn,"function"==typeof window.activeSpeakerVideoSync&&window.activeSpeakerVideoSync(t),X=(s=(window.INTERACTIVE_ACTIVITIES||{})[String(V)]||{}).active_participant_turn&&r&&String(s.active_participant_turn.id)!==String(r.id)||s.round_robin_format&&s.active_participant_turn&&!r,Xe=Date.now()-(window.lastInteractiveActivityTurnComplete||0),Y=!0===t.auto_advanced||Xe<3e3,X&&Y&&s.round_robin_format?window.showAutoAdvanceTimer(function(){return he()}):he()}if("update_teacher_controls"===t.type){if(V=t.interactive_activity_id,Ve=t.teacher_controls_html,null!=t.interactive_activity_session_id&&(null==window.currentActiveActivityId&&(window.currentActiveActivityId=String(V)),window.currentActiveActivitySessionId=String(t.interactive_activity_session_id),window.currentActiveActivityNotificationsEnabled=!0),V&&null!==Ve&&"function"==typeof window.storeInteractiveActivityTeacherControls&&window.storeInteractiveActivityTeacherControls(V,Ve),Ke=null!=(Ae=document.getElementById("turns-section"))&&null!=Ae.querySelector("#interactive-activity-container-"+V),null!=window.currentActiveActivityId&&String(window.currentActiveActivityId)===String(V)||Ke?(Ae&&(Ae.innerHTML='<div id="interactive-activity-container-'+V+'">\n '+Ve+"\n</div>"),($e=document.getElementById("slide-based-participants-sidebar"))&&$e.classList.add("open"),le=document.getElementById("participants-section"),tt=document.getElementById("turns-section"),le&&(le.style.display="none"),tt&&(tt.style.display="block")):(T=document.getElementById("interactive-activity-teacher-controls-"+V))&&(T.innerHTML=Ve),"function"==typeof window.syncInteractiveActivityTeacherControls)return window.syncInteractiveActivityTeacherControls(window.currentActiveStudentsData||[])}else{if("interactive_activity_session_started"===t.type)return V=t.interactive_activity_id,"function"==typeof window.activeSpeakerVideoSync&&window.activeSpeakerVideoSync(t),V&&"function"==typeof window.markInteractiveActivitySessionStarted&&window.markInteractiveActivitySessionStarted(V,t),document.querySelectorAll(".teacher-virtual-cursor").forEach(function(e){return e.style.display="none"});if("interactive_activity_typing"===t.type)return S=new CustomEvent("interactive-activity-typing",{detail:t}),window.dispatchEvent(S);if("flip_match_state_update"===t.type)return S=new CustomEvent("flip-match-state-update",{detail:t}),window.dispatchEvent(S);if("match_many_state_update"===t.type)return S=new CustomEvent("match-many-state-update",{detail:t}),window.dispatchEvent(S);if("match_pair_state_update"===t.type)return S=new CustomEvent("match-pair-state-update",{detail:t}),window.dispatchEvent(S);if("selection_activity_state_update"===t.type)return S=new CustomEvent("selection-activity-state-update",{detail:t}),window.dispatchEvent(S);if("multi_fill_tile_state_update"===t.type)return S=new CustomEvent("multi-fill-tile-state-update",{detail:t}),window.dispatchEvent(S);if("structured_builder_state_update"===t.type)return S=new CustomEvent("structured-builder-state-update",{detail:t}),window.dispatchEvent(S);if("fill_tiles_state_update"===t.type)return S=new CustomEvent("fill-tiles-state-update",{detail:t}),window.dispatchEvent(S);if("sequence_order_state_update"===t.type)return S=new CustomEvent("sequence-order-state-update",{detail:t}),window.dispatchEvent(S);if("sort_bucket_state_update"===t.type)return S=new CustomEvent("sort-bucket-state-update",{detail:t}),window.dispatchEvent(S);if("speaking_activity_state_update"===t.type)return S=new CustomEvent("speaking-activity-state-update",{detail:t}),window.dispatchEvent(S);if("continuum_state_update"===t.type)return S=new CustomEvent("continuum-state-update",{detail:t}),window.dispatchEvent(S);if("multi_fill_tile_state_update"===t.type)return S=new CustomEvent("multi-fill-tile-state-update",{detail:t}),window.dispatchEvent(S);if("structured_builder_state_update"===t.type)return S=new CustomEvent("structured-builder-state-update",{detail:t}),window.dispatchEvent(S);if("fill_tiles_state_update"===t.type)return S=new CustomEvent("fill-tiles-state-update",{detail:t}),window.dispatchEvent(S);if("flip_match_turn_complete"===(Ce=t.type)||"spotlight_interactive_turn_complete"===Ce)return window.lastInteractiveActivityTurnComplete=Date.now(),S=new CustomEvent("flip-match-turn-complete",{detail:t}),window.dispatchEvent(S),Re=new CustomEvent("spotlight-interactive-turn-complete",{detail:t}),window.dispatchEvent(Re);
175if("pre_decided_order_session_complete"===t.type)return ue=new CustomEvent("pre-decided-order-session-complete",{detail:t}),window.dispatchEvent(ue);if("pre_decided_turn_transition"===t.type)return et=new CustomEvent("pre-decided-turn-transition",{detail:t}),window.dispatchEvent(et);if("rapid_fire_question_started"===(Ee=t.type)||"rapid_fire_question_locked"===Ee||"rapid_fire_correct_answer"===Ee||"rapid_fire_wrong_answer"===Ee||"rapid_fire_question_reopened"===Ee||"rapid_fire_question_failed"===Ee||"rapid_fire_question_completed"===Ee||"rapid_fire_next_question"===Ee||"rapid_fire_session_completed"===Ee||"rapid_fire_not_eligible"===Ee)return me=new CustomEvent("rapid-fire-state-update",{detail:t}),window.dispatchEvent(me);if("TEACHER_EVALUATED"===t.type)return S=new CustomEvent("teacher-evaluated",{detail:t}),window.dispatchEvent(S);if("STUDENT_SUBMITTED"===t.type){if((ot=String($("body").data("usertype")||"")).toLowerCase().indexOf("teacher")>=0&&String(t.event_time_slot_id)===String(a)&&(null==window.recentStudentSubmissionNotifications&&(window.recentStudentSubmissionNotifications={}),se="session_"+t.interactive_activity_session_id+"_turn_"+(t.turn_id||"unknown")+"_participant_"+(t.participant_id||t.participant_name||"unknown"),!window.recentStudentSubmissionNotifications[se]))return window.recentStudentSubmissionNotifications[se]=!0,"function"==typeof window.playApplauseSound&&window.playApplauseSound(),setTimeout(function(){return"function"==typeof window.showTeacherNotification?window.showTeacherNotification(t.participant_name):void 0},80)}else{if("student_monitor_state"===t.type)return S=new CustomEvent("student-monitor-state",{detail:t}),window.dispatchEvent(S);if("teacher_peer_needed"===t.action){if("Teacher"===(ot=$("body").data("usertype"))&&String(t.teacher_id)===String($("body").data("user"))&&(He=t.student_id)&&window.teacherScreenShareActive&&window.teacherScreenShareStream)return createTeacherPeerConnection(He,window.teacherScreenShareStream)}else if("teacher_demo_active"===t.action){if("Student"===(ot=$("body").data("usertype"))&&((V=t.interactive_activity_id)&&(window.pendingTeacherDemoActivities[String(V)]=!0),V&&"function"==typeof window.setTeacherDemoActive&&window.setTeacherDemoActive(V,!0),window.teacherDemoActive=!0,window._studentTeacherScreenPC&&(window._studentTeacherScreenPC.close(),window._studentTeacherScreenPC=null),App.live_event_v2))return App.live_event_v2.perform("request_teacher_screen_share",{})}else if("teacher_demo_stopped"===t.action){if(ot=$("body").data("usertype"),E=$("body").data("user"),"Student"===ot||String(t.teacher_id)!==String(E))return window.pendingTeacherDemoActivities={},Object.keys(window.INTERACTIVE_ACTIVITIES||{}).forEach(function(e){if("function"==typeof window.setTeacherDemoActive)return window.setTeacherDemoActive(e,!1)}),window.teacherDemoActive=!1,"function"==typeof window.hideTeacherScreenShareFromActivityArea&&window.hideTeacherScreenShareFromActivityArea(),document.querySelectorAll(".teacher-virtual-cursor").forEach(function(e){return e.style.display="none"})}else if("participant_cursor_move"===t.action){if(String(t.participant_id)===String($("body").data("user")))return;if(l=t.interactive_activity_id){if(I=document.documentElement,D="participant-virtual-cursor-"+t.participant_id,(w=document.getElementById(D))||((w=document.createElement("div")).id=D,w.className="teacher-virtual-cursor participant-virtual-cursor",w.innerHTML='<div style="position: relative;">\n <div class="cursor-ripple" style="position: absolute; top: -5px; left: -5px; width: 24px; height: 24px; background: rgba(52, 152, 219, 0.6); border-radius: 50%; opacity: 0; transform: scale(0.5); pointer-events: none; z-index: 1;"></div>\n <svg width="28" height="28" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="position: relative; z-index: 2; transform: rotate(-10deg); transition: transform 0.1s ease-out;">\n <path d="M5.5 3L18.5 12L12 13.5L9.5 21L5.5 3Z" fill="#3498db" stroke="white" stroke-width="2" stroke-linejoin="round"/>\n </svg>\n <div class="teacher-cursor-text-label" style="position: absolute; top: 22px; left: 16px; background: #3498db; color: white; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); white-space: nowrap; z-index: 3; transition: all 0.2s ease-out;"></div>\n</div>',(ee=w.querySelector(".teacher-cursor-text-label"))&&(ee.textContent=t.participant_name||"Student"),w.style.position="fixed",w.style.zIndex=2147483647,w.style.pointerEvents="none",w.style.transition="top 0.05s linear, left 0.05s linear",w.style.filter="drop-shadow(0px 3px 6px rgba(0,0,0,0.3))",I.appendChild(w)),w.style.display="block",g=(m=document.querySelector("[id^='gp-core-shell'][data-activity-id='"+l+"']")||document.body).getBoundingClientRect?m.getBoundingClientRect():{left:0,top:0,width:1,height:1},A=t.container_x,K=t.container_y,void 0===A&&(A=t.x),void 0===K&&(K=t.y),N=g.left+g.width*(A/100),L=g.top+g.height*(K/100),t.target_path){try{We=""===t.target_path?m:m.querySelector(t.target_path)}catch(rt){rt,We=null}We&&(N=(Ue=We.getBoundingClientRect()).left+Ue.width*(t.x/100),L=Ue.top+Ue.height*(t.y/100))}if((isNaN(N)||isNaN(L))&&(N=-1e3,L=-1e3),w.style.left=N+"px",w.style.top=L+"px",window._participantCursorHideTimers=window._participantCursorHideTimers||{},window._participantCursorHideTimers[D]&&clearTimeout(window._participantCursorHideTimers[D]),window._participantCursorHideTimers[D]=setTimeout(function(){if(w)return w.style.display="none"},3e3),ke=w.querySelector(".cursor-ripple"),qe=w.querySelector("svg"),"down"===t.state?(qe.style.transform="rotate(-10deg) scale(0.85)",ke&&(ke.style.transition="none",ke.style.opacity="1",ke.style.transform="scale(0.5)",ke.offsetWidth,ke.style.transition="transform 0.4s ease-out, opacity 0.4s ease-out",ke.style.transform="scale(3.5)",ke.style.opacity="0")):"up"===t.state&&(qe.style.transform="rotate(-10deg) scale(1)"),(J=w.querySelector(".teacher-cursor-text-label"))&&t.label)return J.textContent=t.label,t.label!==t.participant_name?J.style.background="#2980b9":J.style.background="#3498db"}}else if("teacher_cursor_move"===t.action){if(ot=$("body").data("usertype"),Q=!1,window.INTERACTIVE_ACTIVITIES)for(o in we=window.INTERACTIVE_ACTIVITIES)if(!0===we[o].is_teacher_view){Q=!0;break}if(!Q){if(String(t.teacher_id)===window.currentUserId)return;if(l=t.interactive_activity_id){if(I=document.documentElement,D="participant-virtual-cursor-"+t.teacher_id,(w=document.getElementById(D))||((w=document.createElement("div")).id=D,w.className="teacher-virtual-cursor",w.innerHTML='<div style="position: relative;">\n <div class="cursor-ripple" style="position: absolute; top: -5px; left: -5px; width: 24px; height: 24px; background: rgba(255, 77, 77, 0.6); border-radius: 50%; opacity: 0; transform: scale(0.5); pointer-events: none; z-index: 1;"></div>\n <svg width="28" height="28" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="position: relative; z-index: 2; transform: rotate(-10deg); transition: transform 0.1s ease-out;">\n <path d="M5.5 3L18.5 12L12 13.5L9.5 21L5.5 3Z" fill="#ff4d4d" stroke="white" stroke-width="2" stroke-linejoin="round"/>\n </svg>\n <div class="teacher-cursor-text-label" style="position: absolute; top: 22px; left: 16px; background: #ff4d4d; color: white; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); white-space: nowrap; z-index: 3; transition: all 0.2s ease-out;"></div>\n</div>',(J=w.querySelector(".teacher-cursor-text-label"))&&(J.textContent=t.label||"Teacher"),w.style.position="fixed",w.style.zIndex=2147483647,w.style.pointerEvents="none",w.style.transition="top 0.05s linear, left 0.05s linear",w.style.filter="drop-shadow(0px 3px 6px rgba(0,0,0,0.3))",I.appendChild(w)),w.style.display="block",g=(m=document.querySelector("[id^='gp-core-shell'][data-activity-id='"+l+"']")||document.body).getBoundingClientRect?m.getBoundingClientRect():{left:0,top:0,width:1,height:1},A=t.container_x,K=t.container_y,void 0===A&&(A=t.x),void 0===K&&(K=t.y),N=g.left+g.width*(A/100),L=g.top+g.height*(K/100),t.target_path){try{We=""===t.target_path?m:m.querySelector(t.target_path)}catch(rt){rt,We=null}We&&(N=(Ue=We.getBoundingClientRect()).left+Ue.width*(t.x/100),L=Ue.top+Ue.height*(t.y/100))}if((isNaN(N)||isNaN(L))&&(window.CURSOR_DEBUG&&console.error("[Cursor Tracker] Calculation resulted in NaN coordinates! finalX:",N,"finalY:",L),N=-1e3,L=-1e3),window.CURSOR_DEBUG&&console.log("[Cursor Tracker] Received move. finalX:",N,"finalY:",L),w.style.left=N+"px",w.style.top=L+"px",w.dataset.idleTimeout&&clearTimeout(window[w.dataset.idleTimeout]),Ze="cursor_timeout_"+t.teacher_id,w.dataset.idleTimeout=Ze,window[Ze]=setTimeout(function(){return w.style.display="none"},3e3),ke=w.querySelector(".cursor-ripple"),qe=w.querySelector("svg"),"down"===t.state?(qe.style.transform="rotate(-10deg) scale(0.85)",ke&&(ke.style.transition="none",ke.style.opacity="1",ke.style.transform="scale(0.5)",ke.offsetWidth,ke.style.transition="transform 0.4s ease-out, opacity 0.4s ease-out",ke.style.transform="scale(3.5)",ke.style.opacity="0")):"up"===t.state&&(qe.style.transform="rotate(-10deg) scale(1)"),(J=w.querySelector(".teacher-cursor-text-label"))&&t.label)return J.textContent=t.label, 176"Teacher"!==t.label?J.style.background="#d93838":J.style.background="#ff4d4d"}}}else if("teacher_cursor_selection"===t.action){if("Student"===(ot=$("body").data("usertype"))){if(t.clear){for((null!=(Ie=window.CSS)?Ie.highlights:void 0)&&window.CSS.highlights["delete"]("teacher-highlight"),Z=0,ne=(R=document.querySelectorAll(".teacher-highlight-overlay")).length;Z<ne;Z++)R[Z].remove();return void(window._teacherHighlightRedrawHandler&&(window.removeEventListener("scroll",window._teacherHighlightRedrawHandler,!0),window.removeEventListener("resize",window._teacherHighlightRedrawHandler),window._teacherHighlightRedrawHandler=null))}if(l=t.interactive_activity_id,!(T=document.querySelector("[id^='gp-core-shell'][data-activity-id='"+l+"']")||document.body))return;if(document.getElementById("teacher-highlight-style")||((ze=document.createElement("style")).id="teacher-highlight-style",ze.innerHTML="::highlight(teacher-highlight) { background-color: rgba(255, 200, 0, 0.4); color: inherit; }",document.head.appendChild(ze)),d=(Oe=function(e){var t,n,i,o,r,a,s,l,d;if(!e||"undefined"==typeof e.path)return null;try{s=""===e.path?T:T.querySelector(e.path)}catch(rt){return rt,null}if(!s)return null;if("text"===e.type){if(s.childNodes.length>e.index){if((a=s.childNodes[e.index])&&3===a.nodeType)return a;for(n=0,o=(d=s.childNodes).length;n<o;n++)if(3===(t=d[n]).nodeType)return t;return s}for(i=0,r=(l=s.childNodes).length;i<r;i++)if(3===(t=l[i]).nodeType)return t;return s}return s})(t.anchor),M=Oe(t.focus),d&&M)try{if(pe=document.createRange(),b=d.compareDocumentPosition(M),G=!1,b&Node.DOCUMENT_POSITION_PRECEDING?G=!0:0===b&&t.anchor_offset>t.focus_offset&&(G=!0),c=t.anchor_offset,c=3===d.nodeType?Math.min(Math.max(0,c),d.length):Math.min(Math.max(0,c),d.childNodes.length),P=t.focus_offset,P=3===M.nodeType?Math.min(Math.max(0,P),M.length):Math.min(Math.max(0,P),M.childNodes.length),G?(pe.setStart(M,P),pe.setEnd(d,c)):(pe.setStart(d,c),pe.setEnd(M,P)),(x=function(e){var t,n,i,o,r,a,s,l;for(n=0,o=(R=document.querySelectorAll(".teacher-highlight-overlay")).length;n<o;n++)R[n].remove();for(l=[],i=0,r=(s=e.getClientRects()).length;i<r;i++)a=s[i],(t=document.createElement("div")).className="teacher-highlight-overlay",t.style.position="fixed",t.style.backgroundColor="rgba(255, 200, 0, 0.4)",t.style.pointerEvents="none",t.style.zIndex="2147483646",t.style.left=a.left+"px",t.style.top=a.top+"px",t.style.width=a.width+"px",t.style.height=a.height+"px",t.style.borderRadius="3px",l.push(document.documentElement.appendChild(t));return l})(pe),window._teacherHighlightRedrawHandler&&(window.removeEventListener("scroll",window._teacherHighlightRedrawHandler,!0),window.removeEventListener("resize",window._teacherHighlightRedrawHandler)),window._teacherHighlightRedrawHandler=function(){return x(pe)},window.addEventListener("scroll",window._teacherHighlightRedrawHandler,!0),window.addEventListener("resize",window._teacherHighlightRedrawHandler),(null!=(De=window.CSS)?De.highlights:void 0)&&"undefined"!=typeof Highlight)return q=new Highlight(pe),window.CSS.highlights.set("teacher-highlight",q)}catch(rt){return k=rt,console.error("Failed to sync text selection",k)}}}else if("teacher_screen_share_offer"===t.action){if("Student"===(ot=$("body").data("usertype"))&&(He=$("body").data("user"),String(t.to_user_id)===String(He)))return window._studentTeacherScreenPC&&(window._studentTeacherScreenPC.close(),window._studentTeacherScreenPC=null),U={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun1.l.google.com:19302"}]},de=new RTCPeerConnection(U),window._studentTeacherScreenPC=de,window._teacherScreenShareFromUserId=t.from_user_id,de.onicecandidate=function(e){if(e.candidate&&App.live_event_v2)return App.live_event_v2.perform("webrtc_signal",{to_user_id:t.from_user_id,signal_type:"ice-candidate",signal_data:e.candidate})},de.ontrack=function(e){if("function"==typeof window.showTeacherScreenShareInActivityArea)return window.showTeacherScreenShareInActivityArea(e.streams[0])},de.onconnectionstatechange=function(){var e;if("connected"===de.connectionState&&(e=document.getElementById("teacherScreenShareOverlayVideo"))&&e.srcObject)return e.play()["catch"](function(e){return console.warn("connectionstate play retry failed:",e)})},de.setRemoteDescription(new RTCSessionDescription(t.signal_data)).then(function(){return de.createAnswer().then(function(e){return de.setLocalDescription(e).then(function(){if(App.live_event_v2)return App.live_event_v2.perform("webrtc_signal",{to_user_id:t.from_user_id,signal_type:"answer",signal_data:de.localDescription})})})})}else if("screen_view_request"===t.action){if(He=$("body").data("user"),String(t.student_id)===String(He))return Swal.fire({title:"Screen Share Request",text:t.teacher_name+" wants to view your screen",icon:"info",showCancelButton:!0,confirmButtonText:"Accept",cancelButtonText:"Reject",confirmButtonColor:"#28a745",cancelButtonColor:"#dc3545"}).then(function(e){return e.isConfirmed?(App.live_event_v2.perform("accept_screen_view",{teacher_id:t.teacher_id}),window.screenShareService.startScreenShare(t.teacher_id).then(function(e){return e?window.screenShareService.showScreenShareOverlay():Swal.fire("Error","Failed to start screen sharing","error")})):App.live_event_v2.perform("reject_screen_view",{teacher_id:t.teacher_id})})}else if("screen_view_accepted"===t.action){if(Ge=$("body").data("user"),String(t.teacher_id)===String(Ge))return Fe=window.screenShareService.getStudentInfo(t.student_id),window.screenShareService.openScreenViewTab(t.student_id,Fe.name)}else if("screen_view_rejected"===t.action){if(Ge=$("body").data("user"),String(t.teacher_id)===String(Ge))return Swal.fire("Rejected","Student declined
176screen share request","info")}else if("screen_view_stop"===t.action){if(He=$("body").data("user"),String(t.student_id)===String(He))return window.screenShareService.stopScreenShare()}else if("webrtc_signal"===t.action&&(E=$("body").data("user"),String(t.to_user_id)===String(E))){if(Ye=null!=(ye=window.teacherScreenShareConnections)?ye[String(t.from_user_id)]:void 0,je=window._studentTeacherScreenPC,Ye&&"answer"===t.signal_type)return Ye.setRemoteDescription(new RTCSessionDescription(t.signal_data)).then(function(){var e,n,i,o,r,a;if(null==window.teacherScreenShareHasRemote&&(window.teacherScreenShareHasRemote={}),window.teacherScreenShareHasRemote[String(t.from_user_id)]=!0,(null!=(o=window.teacherScreenShareIceQueues)&&null!=(r=o[String(t.from_user_id)])?r.length:void 0)>0){for(n=0,i=(a=window.teacherScreenShareIceQueues[String(t.from_user_id)]).length;n<i;n++)e=a[n],Ye.addIceCandidate(new RTCIceCandidate(e))["catch"](function(e){return console.error("Teacher queued addIceCandidate error:",e)});return window.teacherScreenShareIceQueues[String(t.from_user_id)]=[]}})["catch"](function(e){return console.error("Teacher setRemoteDescription error:",e)});if(Ye&&"ice-candidate"===t.signal_type)return null==window.teacherScreenShareHasRemote&&(window.teacherScreenShareHasRemote={}),window.teacherScreenShareHasRemote[String(t.from_user_id)]?Ye.addIceCandidate(new RTCIceCandidate(t.signal_data))["catch"](function(e){return console.error("Teacher addIceCandidate error:",e)}):(null==window.teacherScreenShareIceQueues&&(window.teacherScreenShareIceQueues={}),null==(p=window.teacherScreenShareIceQueues)[oe=String(t.from_user_id)]&&(p[oe]=[]),window.teacherScreenShareIceQueues[String(t.from_user_id)].push(t.signal_data));if("offer"===t.signal_type)return window.screenShareService&&window.screenShareService.screenViewTab&&!window.screenShareService.screenViewTab.closed?window.screenShareService.screenViewTab.postMessage({type:"screen_view_signal",signalType:t.signal_type,signalData:t.signal_data},"*"):(window._studentTeacherScreenPC&&(window._studentTeacherScreenPC.close(),window._studentTeacherScreenPC=null),U={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun1.l.google.com:19302"}]},de=new RTCPeerConnection(U),window._studentTeacherScreenPC=de,window._teacherScreenShareFromUserId=t.from_user_id,window._studentTeacherScreenIceQueue=[],window._studentTeacherScreenHasRemote=!1,de.onicecandidate=function(e){if(e.candidate&&App.live_event_v2)return App.live_event_v2.perform("webrtc_signal",{to_user_id:t.from_user_id,signal_type:"ice-candidate",signal_data:e.candidate})},de.ontrack=function(e){if(window._pendingTeacherScreenShareStream=e.streams[0],"function"==typeof window.showTeacherScreenShareInActivityArea)return window.showTeacherScreenShareInActivityArea(e.streams[0])},de.onconnectionstatechange=function(){var e;if("connected"===de.connectionState&&(e=document.getElementById("teacherScreenShareOverlayVideo"))&&e.srcObject)return e.play()["catch"](function(e){return console.warn("connectionstate play retry failed:",e)})},de.setRemoteDescription(new RTCSessionDescription(t.signal_data)).then(function(){var e,n,i,o,r;if(window._studentTeacherScreenHasRemote=!0,(null!=(o=window._studentTeacherScreenIceQueue)?o.length:void 0)>0){for(n=0,i=(r=window._studentTeacherScreenIceQueue).length;n<i;n++)e=r[n],de.addIceCandidate(new RTCIceCandidate(e))["catch"](function(e){return console.error("Student queued addIceCandidate error:",e)});window._studentTeacherScreenIceQueue=[]}return de.createAnswer().then(function(e){return de.setLocalDescription(e).then(function(){if(App.live_event_v2)return App.live_event_v2.perform("webrtc_signal",{to_user_id:t.from_user_id,signal_type:"answer",signal_data:de.localDescription})})})}));if(je&&"answer"===t.signal_type)return je.setRemoteDescription(new RTCSessionDescription(t.signal_data))["catch"](function(e){return console.error("Student setRemoteDescription error:",e)});if(je&&"ice-candidate"===t.signal_type)return window._studentTeacherScreenHasRemote?je.addIceCandidate(new RTCIceCandidate(t.signal_data))["catch"](function(e){return console.error("Student addIceCandidate error:",e)}):(null==window._studentTeacherScreenIceQueue&&(window._studentTeacherScreenIceQueue=[]),window._studentTeacherScreenIceQueue.push(t.signal_data));if(window.screenShareService&&window.screenShareService.screenViewTab&&!window.screenShareService.screenViewTab.closed)return window.screenShareService.screenViewTab.postMessage({type:"screen_view_signal",signalType:t.signal_type,signalData:t.signal_data},"*");if(window.screenShareService)return window.screenShareService.handleIncomingSignal(t.from_user_id,t.signal_type,t.signal_data)}}}}}}}})}),window.evaluateResponse=function(e,t,n,i,o){var r,a,s,l,d,c,u;if((a=e&&e.target&&e.target.closest&&(null!=(c=e.target.closest("div"))?c.querySelectorAll("button"):void 0)||[]).length>0)for(l=0,d=a.length;l<d;l++)(r=a[l]).disabled=!0,r.style.opacity="0.7";return s=(null!=(u=document.querySelector('meta[name="csrf-token"]'))?u.content:void 0)||"",fetch("/interactive_activities/evaluate_response/"+t,{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":s},body:JSON.stringify({round_index:n,is_correct:i,time_slot_id:o})}).then(function(e){return e.json()}).then(function(e){var t,o,s,l,d,c;if(e.success){if(console.log("Evaluation successful"),(t=document.getElementById("round-buttons-"+n))&&(t.style.opacity="0",setTimeout(function(){return t.remove()},300)),(o=document.getElementById("round-container-"+n))&&(o.classList.remove("bg-light"),o.classList.add("bg-white"),i?(o.classList.add("border-success"),o.classList.remove("border-danger")):(o.classList.add("border-danger"),o.classList.remove("border-success"))),c=document.getElementById("round-status-"+n))return c.textContent=i?"Status: Correct":"Status: Incorrect",c.style.color=i?"#28a745":"#dc3545"}else if(alert("Failed to evaluate: "+(e.message||"Unknown error")),a.length>0){for(d=[],s=0,l=a.length;s<l;s++)(r=a[s]).disabled=!1,d.push(r.style.opacity="1");return d}})["catch"](function(e){var t,n,i;if(console.error(e),alert("Error evaluating response"),a.length>0){for(i=[],t=0,n=a.length;t<n;t++)(r=a[t]).disabled=!1,i.push(r.style.opacity="1");return i}})}}.call(this),function(){$(document).ready(function(){if($("#open_issue_list").length>0)return App.live_support_help_request=App.cable.subscriptions.create("LiveSupportHelpRequestChannel",{connected:function(){},disconnected:function(){},received:function(e){var t,n,i;if($("#open_issue_list, #open_class_issue_list, #open_demo_issue_list, #onboard_tickets_list").length>0){if("help_request"===e.action||"red_case"===e.action)return i="<div class='list-group-item p-3' id='card_"+e.id+"'> <div class='row align-items-start' style='width: 100%'> <div class='col-sm-3'> <div class='media align-items-center'> <div class='d-flex flex-column media-body media-middle'> <div class='d-flex'> <a href='javascript:void(0);' style='margin:auto 0;' class='card-title'>"+e.req_type+" - "+e.id+"</a> <a class='btn btn-sm btn-accent ml-2' style='margin: 0;font-size: 11px;height: 19px; border-radius: 20px;' href='javascript:void(0);'>new</a> </div> <div class='red-case' id='red_case_"+e.id+"'></div> <small class='text-muted'>booking time: "+e.booking_time+"</small> <small class='text-muted'>type: "+e.class_details.type+"</small> <small class='text-muted'>batch_id: "+e.class_details.batch_id+"</small> <small class='text-muted'>clb_id: "+e.class_details.clb_id+"</small> <small class='text-muted'>instant_demo_id: "+e.class_details.instant_demo_id+"</small> <small class='text-muted' style='color: #ff0000 !important;'>"+e.created_at+"</small> </div> </div> </div> <div class='col-sm col-md'> <p style='font-size:13px;'><strong>Student Details</strong></p> <small class='text-muted'>
176 id: "+e.student_details.id+"</small><br> <small class='text-muted'> name: "+e.student_details.name+"</small><br> <small class='text-muted'> email: "+e.student_details.email+"</small><br> <small class='text-muted'> phone: "+e.student_details.phone+e.student_details.wa_link+"</small><br> </div> <div class='col-sm col-md'> <p style='font-size:13px;'><strong>Teacher Details</strong></p> <small class='text-muted'> id: "+e.teacher_details.id+"</small><br> <small class='text-muted'> name: "+e.teacher_details.name+"</small><br> <small class='text-muted'> email: "+e.teacher_details.email+"</small><br> <small class='text-muted'> phone: "+e.teacher_details.phone+e.teacher_details.wa_link+"</small><br> </div> <div class='col-sm col-md'> <p style='font-size: 13px;'><strong>Learning Manager Details</strong></p> <small class='text-muted'> id: "+e.manager_details.id+"</small><br> <small class='text-muted'> name: "+e.manager_details.name+"</small><br> <small class='text-muted'> email: "+e.manager_details.email+"</small><br> <small class='text-muted'> phone: "+e.manager_details.phone+e.manager_details.wa_link+"</small><br> </div> <div class='col-sm-2 d-flex flex-column align-items-left justify-content-centerr'> <form class='button_to' method='get' action='/employees/live_support_helps/accept_request'><input class='btn btn-success' type='submit' value='Accept'><input type='hidden' name='id' value='"+e.id+"'></form> <small class='text-muted'>Category: "+e.category+"</small> <small class='text-muted'>Description: "+e.description+"</small> </div> </div> </div>","onboarding"===e.category?$("#onboard_tickets_list").append(i):$("#open_issue_list").append(i),(n=$("#noti_sound")).prop("currentTime",0),n.prop("volume",.2),n.trigger("play"),"onboarding"===e.category?t="<span class='badge badge-danger'>Onboarding Support</span>":e.meta.red_case&&(t="<span class='badge badge-danger'>Red Case</span>"),$("#red_case_"+e.id).html(t);if("remove_card"===e.action)return $("#card_"+e.id).remove()}else if($("#whereby_iframe").length>0&&"help_button"===e.action)return e.enabled?(i="<button id='help_btn' class='btn btn-sm btn-accent'> <i class='fa fa-life-ring' aria-hidden='true' style='margin-right: 2px;'></i> Get Help </button>",$("#help_btn_section").html(i)):$("#help_btn").remove()}})})}.call(this),function(){$(document).ready(function(){if($("#notification_nav_item_disabled").length>0)return App.notification=App.cable.subscriptions.create("NotificationChannel",{connected:function(){if($("#notification_nav_item").data())return App.notification.fetch_notifications($("#notification_nav_item").data().userId,1,!1)},disconnected:function(){},received:function(e){return"fetch_notifications"===e.action?App.notification.display_notifications(e.user_id,e.notifications,e.unread_notifications_count,e.is_last_page):"mark_notifications_read"===e.action?App.notification.display_mark_as_read(e.user_id,e.notification_ids):"new_notification"===e.action?App.notification.punch_notification(e.user_id,JSON.parse(e.notification),"prepend"):"mark_notification_click"===e.action?App.notification.process_notification_click(e.user_id,e.notification_id,e.action_type,e.link):"display_employee_task_notification"===e.action?(App.notification.punch_notification(e.user_id,JSON.parse(e.notification),"prepend"),App.notification.fire_swal_notification(e.user_id,JSON.parse(e.notification))):void 0},fetch_notifications:function(e,t,n){return this.perform("fetch_notifications",{user_id:e,page:t,mark_read:n})},display_notifications:function(user_id,notifications,unread_notifications_count,is_last_page){var current_page_number,i,len,notif,notifications_array,parsed_notifications;if(parsed_notifications=eval(notifications),$("#notification_nav_content_"+user_id).length>0){for(notifications_array=[],i=0,len=parsed_notifications.length;i<len;i++)notif=parsed_notifications[i],App.notification.punch_notification(user_id,notif,"append");return App.notification.unread_notification_badge_update(user_id,unread_notifications_count),current_page_number=parseInt(document.getElementById("notification_nav_content_"+user_id).dataset.pageNumber),1===current_page_number&&$("#notification_nav_bell_btn_"+user_id).on("click",function(){return App.notification.mark_all_as_read(user_id)}),"true"===is_last_page||!0===is_last_page?App.notification.no_new_notification(user_id):App.notification.load_more_scrollable(user_id)}},load_more_scrollable:function(e){var t;return(t=document.getElementById("notification_nav_scrollable_"+e)).addEventListener("scroll",function(){function n(i){var o;i.target.scrollHeight-i.target.scrollTop<=i.target.clientHeight+100&&(o=parseInt(document.getElementById("notification_nav_content_"+e).dataset.pageNumber)+1,document.getElementById("notification_nav_content_"+e).setAttribute("data-page-number",o),App.notification.fetch_notifications(e,o,!0),t.removeEventListener("scroll",n))}return n}(),{passive:!0})},load_more_process:function(e){var t,n,i,o,r,a;for(n=document.querySelectorAll(".notification_nav_load_more_btns"),t=parseInt(document.getElementById("notification_nav_content_"+e).dataset.pageNumber),a=t+1,i=0,o=n.length;i<o;i++)n[i].remove();return r='<div class="text-center mt-1 mb-3 notification_nav_load_more_btns" id="notification_nav_load_btn_'+e+"_"+a+'">\n <button class="btn btn-sm btn-primary">Load More</button>\n</div>',$("#notification_nav_content_"+e).append(r),$("#notification_nav_load_btn_"+e+"_"+a
176).on("click",function(){return document.getElementById("notification_nav_content_"+e).setAttribute("data-page-number",a),App.notification.fetch_notifications(e,a,!1),$("#notification_nav_dropdown_menu_"+e).addClass("show")})},no_new_notification:function(e){var t;return t='<div class="text-center mt-1 mb-3">\n <i class="material-icons text-success border-success" style="font-size: 40px;border-radius: 50%;border: 2px solid;opacity: 0.6;">done</i>\n <p class="text-muted mb-0 fs-0-9rem">No Notifications to Display. <br /> You\'re All Caught Up.</p>\n</div>',$("#notification_nav_content_"+e).append(t)},punch_notification:function(e,t,n){var i,o,r,a,s;return o=new Date(t.created_at).toLocaleDateString(),r=new Date(t.created_at).toLocaleTimeString(),s="",t.image_url&&t.image_url.length>0&&(s=t.image_url),a='<a href="javascript:void(0);" class="list-group-item list-group-item-action dn_notifs '+(t.read?"":"unread")+'" data-notification-id="'+t.id+'" data-notification-read="'+t.read+'" data-notification-clicked="'+t.clicked+'" id="notification_nav_list_a_'+t.id+'" data-turbolinks="false">\n <span class="d-flex align-items-center mb-1">\n <small class="text-black-50">'+o+" - "+r+"</small>\n "+(t.read?"":"<span class='ml-auto unread-indicator bg-accent' id='notification_nav_unread_indicator_"+t.id+"'></span>")+'\n </span>\n <span class="d-flex">\n <span class="avatar avatar-xs mr-2">
176\n <span class="avatar-title rounded-circle bg-light">\n <i class="material-icons font-size-16pt text-accent">add_to_photos</i>\n </span>\n </span>\n <span class="flex d-flex flex-column">\n <strong class="text-black-100">'+t.title+'</strong>\n <span class="text-black-70" style="word-break: break-word;">'+t.body+"</span>\n "+(s.length>0?"<img src='"+s+"' style='max-width: 250px; max-height: 250px;' />":"")+"\n </span>\n </span>\n</a>","append"===n?$("#notification_nav_content_"+e).append(a):"prepend"===n&&$("#notification_nav_content_"+e).prepend(a),i=parseInt($("#notification_nav_badge_"+e).text())+1,App.notification.unread_notification_badge_update(e,i),$("#notification_nav_list_a_"+t.id).on("click",function(){return App.notification.mark_as_click(e,t.id,t.action_type,t.action)})},mark_as_click:function(e,t,n,i){var o,r;if(o=document.getElementById("notification_nav_list_a_"+t))return"false"===(r=o.dataset.notificationClicked)||!1===r?(o.setAttribute("data-notification-clicked",!0),this.perform("mark_notification_click",{user_id:e,notification_id:t,action_type:n,link:i})):App.notification.process_notification_click(e,t,n,i)},process_notification_click:function(e,t,n,i){var o;if(o="","external"!==n&&"webview"!==n||(o=i),o.length>0&&$("#notification_nav_list_a_"+t).length>0)return window.location.href=i},unread_notification_badge_update:function(e,t){return $("#notification_nav_badge_"+e).html(t),t>0?$("#notification_nav_badge_"+e).removeClass("d-none"):$("#notification_nav_badge_"+e).addClass("d-none")},mark_all_as_read:function(e){var t,n,i,o,r;for(t=[],i=0,o=(n=document.getElementById("notification_nav_content_"+e).querySelectorAll(".dn_notifs")).length;i<o;i++)"false"!==(r=n[i]).dataset.notificationRead&&!1!==r.dataset.notificationRead||t.push(r.dataset.notificationId);if(t.length>0)return this.perform("mark_notifications_read",{user_id:e,notification_ids:t})},display_mark_as_read:function(e,t){var n,i,o,r;for(i=0,r=t.length;i<r;i++)o=t[i],$("#notification_nav_unread_indicator_"+o).remove(),document.getElementById("notification_nav_list_a_"+o)&&document.getElementById("notification_nav_list_a_"+o).setAttribute("data-notification-read",!0);return n=parseInt($("#notification_nav_badge_"+e).text())-t.length,App.notification.unread_notification_badge_update(e,n)},fire_swal_notification:function(e,t){return Swal.fire({icon:"info",title:t.title,text:t.body})}})})}.call(this),function(){$(document).ready(function(){var e;return $("#one_to_one_page").length>0&&(App.one_to_one_connect=App.cable.subscriptions.create({channel:"OneToOneConnectChannel"},{connected:function(){},disconnected:function(){},received:function(t){if(console.log("Received data: ",t),"hide_employee"===t.action)return e(t.employee_id,t.leader_id)}})),e=function(e,t){var n,i;if(t=String(t),n=String(n),(i=document.getElementById("data-employee-id_"+e))&&(n=i.getAttribute("data-current-user-id")),t!==n&&i)return i.style.display="none"}})}.call(this),function(){$(document).ready(function(){var e,t;if((e=$("#bot_for_performance_class_")).length>0&&(t=e.data("pcp_id")))return App.performanceClassChannel=App.cable.subscriptions.create({channel:"PerformanceClassPracticeChannel",pcp_id:t},{received:function(e){return console.log("WebSocket message received:",e),"broadcast_feedback"===e.action?(console.log("Executing generateAiFeedback with data:",e),generateAiFeedback(e)):"play_avatar"===e.action?(console.log("Received message:",e.message),playAvatar(e.message)):void 0}})})}.call(this),function(){($("#live_class_tv_page_section").length>0||$("#live_class_teachers_section").length>0)&&(App.poll=App.cable.subscriptions.create("PollChannel",{connected:function(){if($("#live_class_tv_page_section").data())return App.poll.speak("check_poll_status",$("#live_class_tv_page_section").data().userId)},disconnected:function(){},received:function(e){var t,n,i,o,r,a,s,l,d,c,u,h,f,p,m,g,v,y,_,b,T,C;if($("#live_class_tv_page_section").length>0||$("#live_class_teachers_section").length>0)if("poll_voted"===e.action){if(i=$("#show_poll_details_answer_"+e.teacher_id+" p").text().substring(8).split(", "),T='<tr>\n <td>\n <div class="media flex-nowrap align-items-center" style="white-space: nowrap;">\n <div class="media-body">\n <div>\n <div>\n <p class="mb-0"><strong class="js-lists-values-name">'+e.student_name+'</strong></p>\n </div>\n </div>\n </div>\n </div>\n </td>\n <td>\n <div>\n <p class="js-lists-values-status text-50 mb-4pt">'+e.student_answer+'</p>
176\n <span class="w-100 indicator-line rounded '+(i.includes(e.student_answer)?"bg-success":"bg-danger")+'"></span>\n </div>\n </td>\n</tr>',$("#show_poll_table_body_"+e.teacher_id).append(T),$("#live_class_tv_page_section").data()&&$("#live_class_tv_page_section").data().userId===e.student_id)return $("#live_tv_show_poll").animate({right:"-300px"},300,function(){return $("#live_tv_show_poll").addClass("hidden"),$("#live_tv_show_poll_question p").text(""),$("#live_tv_show_poll_formGroup").empty(),$("#new_poll_vote input[type='radio']").off("change")})}else{if("poll_ended"===e.action)return $("#show_poll_end_poll_btn_"+e.teacher_id).addClass("hidden"),$("#show_poll_publish_poll_btn_"+e.teacher_id).attr("href","/teachers/polls/"+e.poll_id+"/poll_results"),$("#show_poll_publish_poll_btn_"+e.teacher_id).removeClass("hidden"),$("#show_poll_close_modal_btn_"+e.teacher_id).removeClass("hidden"),$("#live_tv_show_poll").animate({right:"-300px"},300,function(){return $("#live_tv_show_poll").addClass("hidden"),$("#live_tv_show_poll_formGroup").empty()});if("poll_published"===e.action){for(n=[],s=0,u=(v=e.poll_results).length;s<u;s++)g='<tr>\n <td>\n <div class="media flex-nowrap align-items-center" style="white-space: nowrap;">\n <div class="media-body">\n <div>\n <div>\n <p class="mb-0"><strong class="js-lists-values-name">'+(C=v[s]).name+'</strong></p>\n </div>\n </div>\n </div>\n </div>\n </td>\n <td>\n <div>\n <p class="js-lists-values-status text-50 mb-4pt">'+C.percentage+' %</p>\n <span class="w-100 indicator-line rounded '+(C.is_correct?"bg-success":"bg-danger")+'"></span>\n </div>\n </td>\n</tr>',n.push(g);return $("#live_tv_publish_poll_table_body").html(n.join(" ")),$("#live_tv_publish_poll").removeClass("hidden"),$("#live_tv_publish_poll").animate({right:"0"},300),setTimeout(function(){return $("#live_tv_publish_poll").animate({right:"-300px"},300,function(){return $("#live_tv_publish_poll").addClass("hidden"),$("#live_tv_publish_poll_table_body").empty()})},1e4)}if("poll_started"===e.action){for($("#new_poll").trigger("reset"),$("#new_poll_modal_"+e.teacher_id).modal("hide"),$("#show_poll_modal_"+e.teacher_id).modal("show"),$("#show_poll_details_question_"+e.teacher_id+" p").text("Question: "+e.poll_question),$("#show_poll_details_answer_"+e.teacher_id+" p").text("Answer: "+e.poll_options.filter(function(e){return e.is_correct}).map(function(e){return e.name}).join(", ")),$("#show_poll_table_body_"+e.teacher_id).empty(),$("#show_poll_publish_poll_btn_"+e.teacher_id).addClass("hidden"),$("#show_poll_close_modal_btn_"+e.teacher_id).addClass("hidden"),$("#show_poll_end_poll_btn_"+e.teacher_id).removeClass("hidden"),$("#show_poll_end_poll_btn_"+e.teacher_id).attr("href","/teachers/polls/"+e.poll_id),t=[],l=0,h=(y=e.poll_options).length;l<h;l++)m='<label class="btn btn-outline-secondary mt-1">\n <input type="radio" id="poll_vote_answer" name="poll_vote[poll_option_id]" value="'+(C=y[l]).id+'" aria-checked="true">\n '+C.name+"\n</label>",t.push(m);return a='<div class=\'form-group d-flex flex-column align-items-center\'>\n <label for="answer" id="label-type" class="form-label">Select Answer</label>\n <div role="group" aria-labelledby="label-type" class="w-100">\n <div role="group" class="btn-group-toggle d-flex flex-column" data-toggle="buttons">\n '+t.join(" ")+"\n </div>\n </div>\n</div>",$("#live_tv_show_poll_formGroup").html(a),$("#live_tv_show_poll_question p").text(""+e.poll_question),$("#live_tv_show_poll").removeClass("hidden"),$("#live_tv_show_poll").animate({right:"0"},300),$("#new_poll_vote input[type='radio']").on("change",function(){return $("#new_poll_vote").submit()})}if("poll_create_error"===e.action){for(r=[],d=0,f=(_=e.error_messages).length;d<f;d++)C=_[d],r.push("<li>"+C+"</li>");return o='<ul class="ml-3 mb-2 pt-2">\n '+r.join(" ")+"\n</ul>",$("#new_poll_error_messages_"+e.teacher_id).html(o),$("#new_poll_error_messages_"+e.teacher_id).removeClass("hidden")}if("user_poll_status"===e.action){for(t=[],c=0,p=(b=e.poll_options).length;c<p;c++)m='<label class="btn btn-outline-secondary mt-1">\n <input type="radio" id="poll_vote_answer" name="poll_vote[poll_option_id]" value="'+(C=b[c]).id+'" aria-checked="true">\n '+C.name+"\n</label>",t.push(m);if(a='<div class=\'form-group d-flex flex-column align-items-center\'>\n <label for="answer" id="label-type" class="form-label">Select Answer</label>\n <div role="group" aria-labelledby="label-type" class="w-100">\n <div role="group" class="btn-group-toggle d-flex flex-column" data-toggle="buttons">\n '+t.join(" ")+"\n </div>\n </div>\n</div>",$("#live_class_tv_page_section").data()&&$("#live_class_tv_page_section").data().userId===e.student_id)return $("#live_tv_show_poll_formGroup").html(a),$("#live_tv_show_poll_question p").text(""+e.poll_question),$("#live_tv_show_poll").removeClass("hidden"),$("#live_tv_show_poll").animate({right:"0"},300),$("#new_poll_vote input[type='radio']").on("change",function(){return $("#new_poll_vote").submit()})}}},speak:function(e,t){return this.perform("speak",{status:e,user_id:t})}}))}.call(this),function(){var e=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};$(document).ready(function(){var t,n,i,o,r,a,s,l;if((o=document.getElementById("practice_class_session_info"))&&(s=o.getAttribute("data-usertype"),l=o.getAttribute("data-userid"),n=o.getAttribute("data-eventtimeslotid"),i=o.getAttribute("data-hostid"),t=o.getAttribute("data-backuphostid")),l&&s&&n)return null!=App.practice_class&&(App.cable.subscriptions.remove(App.practice_class),App.practice_class=null),a={channel:"PracticeClassChannel",event_time_slot_id:n},r={received:function(o){var r,a,d,c,u,h,f,p,m,g,v,y,_,b,T,C,E,w,I,D,x,O,k,S,R,$,A,K,N,L,M,P,F,B,j,H;if(console.log("data",o),"update_active_student_data"===o.type&&(p=o.current_students_data,window.updateActiveStudentData(p)),"move_to_slide_number"===o.type){if(window.recentStudentSubmissionNotifications={},window.currentActiveActivityNotificationsEnabled=!1,window.currentActiveActivityId=null,window.currentActiveActivitySessionId=null,null!=(N=o.slide_number)){if("function"==typeof window.hasIncompleteInteractiveActivity&&window.hasIncompleteInteractiveActivity())return void("function"==typeof window.showEndSessionFirstPopup&&window.showEndSessionFirstPopup());"function"==typeof window.moveToSlideNumber&&(window.lastSlideTransitionAt=Date.now(),window.moveToSlideNumber(N),($=document.getElementById("slide-based-participants-sidebar"))&&$.classList.remove("open"),(g=document.getElementById("generic-group-sidebar-overlay"))&&(g.style.display="none"),D=document.getElementById("participants-section"),H=document.getElementById("turns-section"),D&&(D.style.display="block"),H&&(H.style.display="none"),document.querySelectorAll(".generic-group-buttons-container").forEach(function(e){return e.style.display="none",e.innerHTML=""}),"function"==typeof window.syncInteractiveActivityTeacherControls&&setTimeout(function(){return window.syncInteractiveActivityTeacherControls(window.currentActiveStudentsData||[])},0))}"function"==typeof window.setActiveSpeaker&&window.setActiveSpeaker(null,null,null)}if("start_speaking_prompt_activity_round"===o.type&&(P=o.student_data,h=o.activity_data,window.renderSpeakingPromptActivityRound(P,h)),"move_to_next_student"===o.type&&(w=o.next_student_data,h=o.activity_data,window.renderNextStudentTurnDetails(w,h)),"update_active_turn"===o.type&&(E=o.next_participant_turn,a=o.active_participant_turn,y=o.interactive_activity_id,O=function(){var t,n,i,o 177;if((t=null!=a?a.user_id:void 0)&&window.currentActiveUserId!==t.toString()&&document.querySelectorAll(".participant-virtual-cursor").forEach(function(e){return e.style.display="none"}),t?(window.currentActiveUserId=t.toString(),i=new CustomEvent("activeStudentChanged",{detail:{active_user_id:t}}),document.dispatchEvent(i)):(window.currentActiveUserId=null,document.querySelectorAll(".participant-virtual-cursor").forEach(function(e){return e.style.display="none"})),"function"==typeof window.setActiveSpeaker&&(null!=a?window.setActiveSpeaker(null!=a?a.user_id:void 0,null!=a?a.user_name:void 0,null!=a?a.role:void 0):window.setActiveSpeaker(null,null,null)),"function"==typeof window.updateInteractiveActivityTurn&&window.updateInteractiveActivityTurn(y,a,!1,E),"function"==typeof window.renderGenericGroupButtons&&window.renderGenericGroupButtons(y,a),"function"==typeof window.renderRecordingArea&&(n=(window.INTERACTIVE_ACTIVITIES||{})[String(y)]||{},o=String(n.structure_code||"").toUpperCase(),e.call(window.INTERACTIVE_ACTIVITY_RECORDING_STRUCTURES||[],o)>=0&&window.renderRecordingArea(a,y)),"function"==typeof window.updateRoleplayUI)return window.updateRoleplayUI(a,y)},T=(u=(window.INTERACTIVE_ACTIVITIES||{})[String(y)]||{}).active_participant_turn&&a&&String(u.active_participant_turn.id)!==String(a.id)||!u.active_participant_turn&&a||u.round_robin_format&&u.active_participant_turn&&!a,B=Date.now()-(window.lastInteractiveActivityTurnComplete||0),_=!0===o.auto_advanced||B<3e3,T&&_&&u.round_robin_format?window.showAutoAdvanceTimer(function(){return O()}):O()),"update_teacher_controls"===o.type&&(y=o.interactive_activity_id,F=o.teacher_controls_html,null!=o.interactive_activity_session_id&&(window.currentActiveActivityId=String(y),window.currentActiveActivitySessionId=String(o.interactive_activity_session_id),window.currentActiveActivityNotificationsEnabled=!0,!(c=(window.INTERACTIVE_ACTIVITIES||{})[String(y)])||c.session_active||c.is_teacher_view||(c.session_active=!0,c.teacher_demo_active=!1,"responded"!==c.participant_turn_status&&(c.is_teacher_view||!0===c.whole_class_all_together||!0===c.parallel_turns_format||!0!==c.requires_active_turn)&&(c.participant_turn_status="active"),window.dispatchEvent(new CustomEvent("interactive-activity-turn-change",{detail:{activityId:String(y),sessionActive:!0,participantTurnStatus:c.participant_turn_status}}))),"function"==typeof window.markInteractiveActivitySessionStarted&&window.markInteractiveActivitySessionStarted(y,o)),y&&null!==F&&"function"==typeof window.storeInteractiveActivityTeacherControls&&window.storeInteractiveActivityTeacherControls(y,F),K=null!=(A=document.getElementById("turns-section"))&&null!=A.querySelector("#interactive-activity-container-"+y),null!=window.currentActiveActivityId&&String(window.currentActiveActivityId)===String(y)||K?(A&&(A.innerHTML='<div id="interactive-activity-container-'+y+'">\n '+F+"\n</div>
177"),b=F.indexOf("interactive-activity-completed-session")>=0||F.indexOf("This Activity is completed")>=0,C=!0===(u=(window.INTERACTIVE_ACTIVITIES||{})[String(y)]||{}).round_robin_format,b&&!C&&(($=document.getElementById("slide-based-participants-sidebar"))&&$.classList.add("open"),D=document.getElementById("participants-section"),H=document.getElementById("turns-section"),D&&(D.style.display="none"),H&&(H.style.display="block"))):(f=document.getElementById("interactive-activity-teacher-controls-"+y))&&(f.innerHTML=F),"function"==typeof window.syncInteractiveActivityTeacherControls&&window.syncInteractiveActivityTeacherControls(window.currentActiveStudentsData||[]),(String(l)===String(i)||String(l)===String(t)||String(s||"").toLowerCase().indexOf("teacher")>=0)&&o.interactive_activity_session_id&&"function"==typeof window.showEndActivitySessionBtn&&window.showEndActivitySessionBtn(y,o.interactive_activity_session_id)),"interactive_activity_session_started"===o.type&&(y=o.interactive_activity_id)&&"function"==typeof window.markInteractiveActivitySessionStarted&&window.markInteractiveActivitySessionStarted(y,o),"TEACHER_EVALUATED"===o.type&&(m=new CustomEvent("teacher-evaluated",{detail:o}),window.dispatchEvent(m)),"STUDENT_SUBMITTED"===o.type){if(console.log("Student submitted:",o),!(String(l)===String(i)||String(l)===String(t)||String(s||"").toLowerCase().indexOf("teacher")>=0))return;if(null==o.event_time_slot_id||String(o.event_time_slot_id)!==String(n))return;if(null==o.interactive_activity_id||null==o.interactive_activity_session_id)return;if(r=window.currentActiveActivityId,d=window.currentActiveActivitySessionId,null==r||null==d)return;if(!0!==window.currentActiveActivityNotificationsEnabled)return;if(null==r||String(r)!==String(o.interactive_activity_id))return;if(null==d||String(d)!==String(o.interactive_activity_session_id))return;if(null==window.recentStudentSubmissionNotifications&&(window.recentStudentSubmissionNotifications={}),I="session_"+o.interactive_activity_session_id+"_turn_"+(o.turn_id||"unknown")+"_participant_"+(o.participant_id||o.participant_name||"unknown"),window.recentStudentSubmissionNotifications[I])return;window.recentStudentSubmissionNotifications[I]=!0,"function"==typeof window.playApplauseSound&&window.playApplauseSound(),setTimeout(function(){return"function"==typeof window.showTeacherNotification?window.showTeacherNotification(o.participant_name):void 0},80)}if("session_ended"===o.type&&((y=o.interactive_activity_id)&&null!=window.currentActiveActivityId&&String(window.currentActiveActivityId)===String(y)&&setTimeout(function(){return window.currentActiveActivityId=null,window.currentActiveActivitySessionId=null,window.currentActiveActivityNotificationsEnabled=!1},500),y&&((f=document.getElementById("interactive-activity-teacher-controls-"+y))&&(f.innerHTML=o.teacher_controls_html||""),null!==o.teacher_controls_html&&"function"==typeof window.storeInteractiveActivityTeacherControls&&window.storeInteractiveActivityTeacherControls(y,o.teacher_controls_html),($=document.getElementById("slide-based-participants-sidebar"))&&$.classList.remove("open"),D=document.getElementById("participants-section"),H=document.getElementById("turns-section"),D&&(D.style.display="block"),H&&(H.style.display="none"),document.getElementById("slide-based-end-session-btn")&&(L=document.getElementById("slide-based-start-activity-slot"))&&(L.style.display="none"),"function"==typeof window.markInteractiveActivityCompleted&&window.markInteractiveActivityCompleted(y)),y&&"function"==typeof window.updateInteractiveActivityTurn&&window.updateInteractiveActivityTurn(y,null),y&&"function"==typeof window.renderRecordingArea&&window.renderRecordingArea(null,y),(v=document.getElementById("generic-group-sidebar-overlay"))&&(v.style.display="none")),"participant_turn_skipped"===o.type&&((y=o.interactive_activity_id)&&"function"==typeof window.updateInteractiveActivityTurn&&window.updateInteractiveActivityTurn(y,null),y&&"function"==typeof window.renderRecordingArea&&window.renderRecordingArea(null,y)),"tag_turn_removed"===o.type&&((y=o.interactive_activity_id)&&"function"==typeof window.updateInteractiveActivityTurn&&window.updateInteractiveActivityTurn(y,null),y&&"function"==typeof window.renderRecordingArea&&window.renderRecordingArea(null,y),null!=o.tagger_user_id&&String(l)===String(o.tagger_user_id
177)&&((u=(window.INTERACTIVE_ACTIVITIES||{})[String(y)])&&(u.participant_turn_status="responded"),window.dispatchEvent(new CustomEvent("interactive-activity-turn-change",{detail:{activityId:String(y),sessionActive:!0,participantTurnStatus:"responded",activeParticipantTurn:null}})),"function"==typeof window.renderTagNextUI&&(f=document.getElementById("interactive-activity-container-"+y),window.renderTagNextUI(y,o,f)))),"flip_match_state_update"===o.type&&(m=new CustomEvent("flip-match-state-update",{detail:o}),window.dispatchEvent(m)),"match_many_state_update"===o.type&&(m=new CustomEvent("match-many-state-update",{detail:o}),window.dispatchEvent(m)),"match_pair_state_update"===o.type&&(m=new CustomEvent("match-pair-state-update",{detail:o}),window.dispatchEvent(m)),"selection_activity_state_update"===o.type&&(m=new CustomEvent("selection-activity-state-update",{detail:o}),window.dispatchEvent(m)),"multi_fill_tile_state_update"===o.type&&(m=new CustomEvent("multi-fill-tile-state-update",{detail:o}),window.dispatchEvent(m)),"structured_builder_state_update"===o.type&&(m=new CustomEvent("structured-builder-state-update",{detail:o}),window.dispatchEvent(m)),"fill_tiles_state_update"===o.type&&(m=new CustomEvent("fill-tiles-state-update",{detail:o}),window.dispatchEvent(m)),"sequence_order_state_update"===o.type&&(m=new CustomEvent("sequence-order-state-update",{detail:o}),window.dispatchEvent(m)),"sort_bucket_state_update"===o.type&&(m=new CustomEvent("sort-bucket-state-update",{detail:o}),window.dispatchEvent(m)),"speaking_activity_state_update"===o.type&&(m=new CustomEvent("speaking-activity-state-update",{detail:o}),window.dispatchEvent(m)),"speech_detected_pre_turn"===o.type&&(m=new CustomEvent("speech-detected-pre-turn",{detail:o}),window.dispatchEvent(m)),"start_turn_on_behalf"===o.type&&String(o.target_user_id)===String(l)&&(m=new CustomEvent("start-turn-on-behalf",{detail:o}),window.dispatchEvent(m)),"continuum_state_update"===o.type&&(m=new CustomEvent("continuum-state-update",{detail:o}),window.dispatchEvent(m)),"canvas_activity_state_update"===o.type&&(m=new CustomEvent("canvas-activity-state-update",{detail:o}),window.dispatchEvent(m)),"flip_match_turn_complete"!==(k=o.type)&&"spotlight_interactive_turn_complete"!==k||(window.lastInteractiveActivityTurnComplete=Date.now(),m=new CustomEvent("flip-match-turn-complete",{detail:o}),window.dispatchEvent(m),R=new CustomEvent("spotlight-interactive-turn-complete",{detail:o}),window.dispatchEvent(R)),"multi_fill_tile_state_update"===o.type&&(m=new CustomEvent("multi-fill-tile-state-update",{detail:o}),window.dispatchEvent(m)),"structured_builder_state_update"===o.type&&(m=new CustomEvent("structured-builder-state-update",{detail:o}),window.dispatchEvent(m)),"fill_tiles_state_update"===o.type&&(m=new CustomEvent("fill-tiles-state-update",{detail:o}),window.dispatchEvent(m)),"pre_decided_order_session_complete"===o.type&&(x=new CustomEvent("pre-decided-order-session-complete",{detail:o}),window.dispatchEvent(x)),"pre_decided_turn_transition"===o.type&&(j=new CustomEvent("pre-decided-turn-transition",{detail:o}),window.dispatchEvent(j)),"interactive_activity_typing"===o.type&&(m=new CustomEvent("interactive-activity-typing",{detail:o}),window.dispatchEvent(m)),"transformation_lab_state_update"===o.type&&(m=new CustomEvent("transformation-lab-state-update",{detail:o}),window.dispatchEvent(m)),"student_monitor_state"===o.type&&(m=new CustomEvent("student-monitor-state",{detail:o}),window.dispatchEvent(m)),"monitor_screen_control"===o.type&&(m=new CustomEvent("monitor-screen-control",{detail:o}),window.dispatchEvent(m)),"rapid_fire_question_started"!==(S=o.type)&&"rapid_fire_question_locked"!==S&&"rapid_fire_correct_answer"!==S&&"rapid_fire_wrong_answer"!==S&&"rapid_fire_question_reopened"!==S&&"rapid_fire_question_failed"!==S&&"rapid_fire_question_completed"!==S&&"rapid_fire_next_question"!==S&&"rapid_fire_session_completed"!==S&&"rapid_fire_not_eligible"!==S||(m=new CustomEvent("rapid-fire-state-update",{detail:o}),window.dispatchEvent(m)),"student_issuesss"===o.type&&("Teacher"!==s&&l!==i&&l!==t||((M=document.getElementById("studentIssuePanel")).innerHTML="",M.innerHTML=o.message,M.style.display="block")),"active_participant_changed"===o.action)return window.currentActiveUserId=o.user_id.toString(),"function"==typeof window.setActiveSpeaker&&window.setActiveSpeaker(o.user_id,o.user_name,o.role),m=new CustomEvent("activeStudentChanged",{detail:{active_user_id:o.user_id}}),document.dispatchEvent(m)}},"Student"===s&&(r.send_message=function(e){return this.perform("send_message",{event_time_slot_id:n,message_body:e})},r.notify_speech_detected=function(e){return this.perform("notify_speech_detected",{event_time_slot_id:n,participant_turn_id:e})}),"Teacher"!==s&&l!==i&&l!==t||(r.move_to_slide_number=function(e){return this.perform("move_to_slide_number",{event_time_slot_id:n,slide_number:e})},r.start_turn_on_behalf=function(e){return this.perform("start_turn_on_behalf",{event_time_slot_id:n,participant_turn_id:e})},r.start_speaking_prompt_activity_round=function(e){return this.perform("start_speaking_prompt_activity_round",{event_time_slot_id:n,activity_data:e})},r.move_to_next_student=function(e,t,i,o){return this.perform("move_to_next_student",{event_time_slot_id:n,next_student_id:e,activity_data:t,activity_type:i,previous_students_data:o})},r.monitor_start_screen=function(e){return this.perform("monitor_start_screen",{event_time_slot_id:n,student_id:e})},r.monitor_stop_screen=function(e){return this.perform("monitor_stop_screen",{event_time_slot_id:n,student_id:e})}),r.broadcast_canvas_activity_state=function(e){return this.perform("broadcast_canvas_activity_state",e)},r.connected=function(){return window._practiceClassHasConnectedBefore&&window.dispatchEvent(new CustomEvent("websocket-reconnected")),window._practiceClassHasConnectedBefore=!0,window._practiceClassKeepAlive&&clearInterval(window._practiceClassKeepAlive),window._practiceClassKeepAlive=setInterval((e=this,function(){return e.perform("keepalive",{event_time_slot_id:n})}),15e3);var e},r.disconnected=function(){return window._practiceClassKeepAlive&&clearInterval(window._practiceClassKeepAlive),window._practiceClassKeepAlive=null},App.practice_class=App.cable.subscriptions.create(a,r),function(e){return App.practice_class.send_message(e)}})}.call(this),function(){$(document).ready(function(){if($("#reports_crm_page").length>0)return App.report=App.cable.subscriptions.create("ReportChannel",{connected:function(){if($("#reports_crm_page").data())return App.report.speak("add_user",$("#reports_crm_page").data().userId)},disconnected:function(){},received:function(e){var t,n,i,o,r,a,s,l,d;if("add_user"===e.action){for($("#reports_crm_avatars_grp_"+e.team_id).html(""),s=[],e.employees_data.map(function(t){if(t.team_id===e.team_id)return s.push(t)}),t=["<span class='d-flex align-items-center text-70' id='reports_crm_avatars_watching'><i class='material-icons mr-1'>remove_red_eye</i> "+s.length+" watching right now</span>"],o=0,r=s.length;o<r;o++)d=s[o],n=(i=["border-danger","border-info","border-success","border-warning","border-primary","border-dark"])[Math.floor(Math.random()*i.length)],l="",d.image_present?l='<div class="tooltip1 text-underline">\n <div class="avatar" id="reports_crm_page_avatar_'+d.id+'">\n <img src="'+d.image_url+'" alt="'+d.name+'" class="avatar-img rounded-circle '+n+'">\n </div>\n <span class="tooltiptext1">'+d.name+"</span>\n</div>":(a=[],d.name.split(" ").map(function(e){return a.push(e[0].toUpperCase())}),l='<div class="tooltip1 text-underline">\n <div class="avatar">\n <div class="avatar-title rounded-circle">'+(a=a.join(""))+'</div>\n </div>\n <span class="tooltiptext1">'+d.name+"</span>\n</div>"),t.push(l);return $("#reports_crm_avatars_grp_"+e.team_id).html(t.join(" "))}if("remove_user"===e.action)return $("#reports_crm_page_avatar_"+e.id).remove(),s=[],e.employees_data.map(function(t){if(t.team_id===e.team_id)return s.push(t)}),$("#reports_crm_avatars_watching").html("<span class='d-flex align-items-center text-70' id='reports_crm_avatars_watching'><i class='material-icons mr-1'>remove_red_eye</i> "+s.length+" watching right now</span>")},speak:function(e,t){return this.perform("speak",{status:e,user_id:t})}})})}.call(this),function(){$(document).ready(function(){var e,t;if(e=null!=(t=document.getElementById("sales-training-session"))?t.getAttribute("data-se
177ssion-id"):void 0)return App.sales_training_session=App.cable.subscriptions.create({channel:"SalesTrainingSessionChannel",sales_training_session_id:e},{connected:function(){},disconnected:function(){},received:function(e){var t,n,i,o,r,a;if((o=document.getElementById("participant-"+e.participant_id))&&(r=o.querySelector(".status-button"),n=o.querySelector(".delete-icon-"+e.participant_id),a=document.getElementById("submit_form_btn"),r&&(e.verification_status?(a.disabled=!1,a.classList.remove("disabled"),r.innerHTML="Verified",r.classList.remove("btn-warning"),r.classList.add("btn-success")):(r.innerHTML="Pending",r.classList.remove("btn-success"),r.classList.add("btn-warning"))),n&&(e.verification_status?n.classList.add("disabled-icon"):n.classList.remove("disabled-icon")),(t=o.querySelector("input[type='checkbox']"))&&(t.disabled=e.verification_status),i=o.querySelector(".otp-input")))return i.disabled=e.verification_status,e.verification_status?i.classList.add("disabled-input"):i.classList.remove("disabled-input")}})})}.call(this),function(){$(document).ready(function(){var e,t,n,i,o,r,a,s,l,d,c,u,h;if(i=new RegExp("^/workshops/([0-9]+)-.*?/workshop_live_session$"),n=window.location.pathname,h=null,i.test(n)&&(h=n.match(i)[1]),(u=document.getElementById("wk_session_info"))&&(d=u.getAttribute("data-usertype"),c=u.getAttribute("data-userid"),t=u.getAttribute("data-demobookinglink"),l=u.getAttribute("data-teachername"),e=u.getAttribute("data-attendeename")),h&&d&&(s={channel:"WorkshopChannel",workshop_id:h},a={received:function(n){var i,o,r,a;return"dailyco_user_joined"===n.action?(o=String(null!=c?c:""),i=String(null!=(r=n.user_id)?r:""),void(o&&i&&o===i||(a=n.room_name||n.roomName,"function"==typeof joinDailycoWaitingRoom&&joinDailycoWaitingRoom(a)))):"Attendee"===d?(Swal.fire({icon:"success",html:"Dear "+(e||"Student")+"\n<br>\nYour teacher "+l+' has shared a link with you to book a free 1:1 demo.\n<br>\n<a class="text-primary" href="'+t+'" target="_blank">'+t.slice(0,20)+"...</a>",confirmButtonText:"Book Free 1:1 Demo Now",showCancelButton:!0}).then(function(e){if(e.isConfirmed&&t)return window.open(t,"_blank")}),document.getElementById("book_1_1_demo_btn").classList.remove("d-none")):"Teacher"===d?Swal.fire({icon:"info",text:"Sent Booking Link To All. Ask them to click on 'Book Now' Button shown on their screen."}):void 0}},"Teacher"===d&&(a.share_link=function(){return this.perform("share_demo_link",{workshop_id:h})}),App.workshop=App.cable.subscriptions.create(s,a),o=function(e){return e.disabled=!0,App.workshop.share_link(),e.disabled=!1},r=document.getElementById("send_to_all")))return r.addEventListener("click",function(){return o(r)})})}.call(this); 178/*! 179 Copyright 2008-2019 SpryMedia Ltd. 180 181 This source file is free software, available under the following license: 182 MIT license - http://datatables.net/license 183 184 This source file is distributed in the hope that it will be useful, but 185 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 186 or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. 187 188 For details please refer to: http://www.datatables.net 189 DataTables 1.10.20 190 ©2008-2019 SpryMedia Ltd - datatables.net/license 191*/ 192var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,o=0;o<i;o++){var r=e[o];if(t.call(n,r,o,e))return{i:o,v:r}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,n,i){if(t){for(n=$jscomp.global,e=e.split("."),i=0;i<e.length-1;i++){var o=e[i];o in n||(n[o]={}),n=n[o]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.find",function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}},"es6","es3"),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t,window,document)}):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n,t,t.document)}:e(jQuery,window,document)}(function(e,t,n,i){function o(t){var n,i,r={};e.each(t,function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(i=e.replace(n[0],n[2].toLowerCase()),r[i]=e,"o"===n[1]&&o(t[e]))}),t._hungarianMap=r}function r(t,n,a){var s;t._hungarianMap||o(t),e.each(n,function(o){(s=t._hungarianMap[o])===i||!a&&n[s]!==i||("o"===s.charAt(0)?(n[s]||(n[s]={}),e.extend(!0,n[s],n[o]),r(t[s],n[s],a)):n[s]=n[o])})}function a(e){var t=We.defaults.oLanguage,n=t.sDecimal;if(n&&Be(n),e){var i=e.sZeroRecords;!e.sEmptyTable&&i&&"No data available in table"===t.sEmptyTable&&Re(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&i&&"Loading..."===t.sLoadingRecords&&Re(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&n!==e&&Be(e)}}function s(e){if(lt(e,"ordering","bSort"),lt(e,"orderMulti","bSortMulti"),lt(e,"orderClasses","bSortClasses"),lt(e,"orderCellsTop","bSortCellsTop"),lt(e,"order","aaSorting"),lt(e,"orderFixed","aaSortingFixed"),lt(e,"paging","bPaginate"),lt(e,"pagingType","sPaginationType"),lt(e,"pageLength","iDisplayLength"),lt(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&
192(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t<n;t++)e[t]&&r(We.models.oSearch,e[t])}function l(t){lt(t,"orderable","bSortable"),lt(t,"orderData","aDataSort"),lt(t,"orderSequence","asSorting"),lt(t,"orderDataType","sortDataType");var n=t.aDataSort;"number"!=typeof n||e.isArray(n)||(t.aDataSort=[n])}function d(n){if(!We.__browser){var i={};We.__browser=i;var o=e("<div/>").css({position:"fixed",top:0,left:-1*e(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(e("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=o.children(),a=r.children();i.barWidth=r[0].offsetWidth-r[0].clientWidth,i.bScrollOversize=100===a[0].offsetWidth&&100!==r[0].clientWidth,i.bScrollbarLeft=1!==Math.round(a.offset().left),i.bBounding=!!o[0].getBoundingClientRect().width,o.remove()}e.extend(n.oBrowser,We.__browser),n.oScroll.iBarWidth=We.__browser.barWidth}function c(e,t,n,o,r,a){var s=!1;if(n!==i){var l=n;s=!0}for(;o!==r;)e.hasOwnProperty(o)&&(l=s?t(l,e[o],o,e):e[o],s=!0,o+=a);return l}function u(t,i){var o=We.defaults.column,r=t.aoColumns.length;o=e.extend({},We.models.oColumn,o,{nTh:i||n.createElement("th"),sTitle:o.sTitle?o.sTitle:i?i.innerHTML:"",aDataSort:o.aDataSort?o.aDataSort:[r],mData:o.mData?o.mData:r,idx:r}),t.aoColumns.push(o),(o=t.aoPreSearchCols)[r]=e.extend({},We.models.oSearch,o[r]),h(t,r,e(i).data())}function h(t,n,o){n=t.aoColumns[n];var a=t.oClasses,s=e(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=s.attr("width")||null;var d=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);d&&(n.sWidthOrig=d[1])}o!==i&&null!==o&&(l(o),r(We.defaults.column,o,!0),o.mDataProp===i||o.mData||(o.mData=o.mDataProp),o.sType&&(n._sManualType=o.sType),o.className&&!o.sClass&&(o.sClass=o.className),o.sClass&&s.addClass(o.sClass),e.extend(n,o),Re(n,o,"sWidth","sWidthOrig"),o.iDataSort!==i&&(n.aDataSort=[o.iDataSort]),Re(n,o,"aDataSort"));var c=n.mData,u=I(c),h=n.mRender?I(n.mRender):null;o=function(e){return"string"==typeof e&&-1!==e.indexOf("@")},n._bAttrSrc=e.isPlainObject(c)&&(o(c.sort)||o(c.type)||o(c.filter)),n._setter=null,n.fnGetData=function(e,t,n){var o=u(e,t,i,n);return h&&t?h(o,t,e,n):o},n.fnSetData=function(e,t,n){return D(c)(e,t,n)},"number"!=typeof c&&(t._rowReadObject=!0),t.oFeatures.bSort||(n.bSortable=!1,s.addClass(a.sSortableNone)),t=-1!==e.inArray("asc",n.asSorting),o=-1!==e.inArray("desc",n.asSorting),n.bSortable&&(t||o)?t&&!o?(n.sSortingClass=a.sSortableAsc,n.sSortingClassJUI=a.sSortJUIAscAllowed):!t&&o?(n.sSortingClass=a.sSortableDesc,n.sSortingClassJUI=a.sSortJUIDescAllowed):(n.sSortingClass=a.sSortable,n.sSortingClassJUI=a.sSortJUI):(n.sSortingClass=a.sSortableNone,n.sSortingClassJUI="")}function f(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;me(e);for(var n=0,i=t.length;n<i;n++)t[n].nTh.style.width=t[n].sWidth}""===(t=e.oScroll).sY&&""===t.sX||fe(e),Ne(e,null,"column-sizing",[e])}function p(e,t){return"number"==typeof(e=v(e,"bVisible"))[t]?e[t]:null}function m(t,n){return t=v(t,"bVisible"),-1!==(n=e.inArray(n,t))?n:null}function g(t){var n=0;return e.each(t.aoColumns,function(t,i){i.bVisible&&"none"!==e(i.nTh).css("display")&&n++}),n}function v(t,n){var i=[];return e.map(t.aoColumns,function(e,t){e[n]&&i.push(t)}),i}function y(e){var t,n,o,r=e.aoColumns,a=e.aoData,s=We.ext.type.detect,l=0;for(t=r.length;l<t;l++){var d=r[l],c=[];if(!d.sType&&d._sManualType)d.sType=d._sManualType;else if(!d.sType){var u=0;for(n=s.length;u<n;u++){var h=0;for(o=a.length;h<o;h++){c[h]===i&&(c[h]=C(e,h,l,"type"));var f=s[u](c[h],e);if(!f&&u!==s.length-1)break;if("html"===f)break}if(f){d.sType=f;break}}d.sType||(d.sType="string")}}}function _(t,n,o,r){var a,s,l,d=t.aoColumns;if(n)for(a=n.length-1;0<=a;a--){var c=n[a],h=c.targets!==i?c.targets:c.aTargets;e.isArray(h)||(h=[h]);var f=0;for(s=h.length;f<s;f++)if("number"==typeof h[f]&&0<=h[f]){for(;d.length<=h[f];)u(t);r(h[f],c)}else if("number"==typeof h[f]&&0>h[f])r(d.length+h[f],c);else if("string"==typeof h[f]){var p=0;for(l=d.length;p<l;p++)("_all"==h[f]||e(d[p].nTh).hasClass(h[f]))&&r(p,c)}}if(o)for(a=0,t=o.length;a<t;a++)r(a,o[a])}function b(t,n,o,r){var a=t.aoData.length,s=e.extend(!0,{},We.models.oRow,{src:o?"dom":"data",idx:a});s._aData=n,t.aoData.push(s);for(var l=t.aoColumns,d=0,c=l.length;d<c;d++)l[d].sType=null;return t.aiDisplayMaster.push(a),(n=t.rowIdFn(n))!==i&&(t.aIds[n]=s),!o&&t.oFeatures.bDeferRender||$(t,a,o,r),a}function T(t,n){var i;return n instanceof e||(n=e(n)),n.map(function(e,n){return i=R(t,n),b(t,i.data,n,i.cells)})}function C(e,t,n,o){var r=e.iDraw,a=e.aoColumns[n],s=e.aoData[t]._aData,l=a.sDefaultContent,d=a.fnGetData(s,o,{settings:e,row:t,col:n});if(d===i)return e.iDrawError!=r&&null===l&&(Se(e,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+t+", column "+n,4),e.iDrawError=r),l;if(d!==s&&null!==d||null===l||o===i){if("function"==typeof d)return d.call(s)}else d=l;return null===d&&"display"==o?"":d}function E(e,t,n,i){e.aoColumns[n].fnSetData(e.aoData[t]._aData,i,{settings:e,row:t,col:n})}function w(t){return e.map(t.match(/(\\.|[^\.])+/g)||[""],function(e){return e.replace(/\\\./g,".")})}function I(t){if(e.isPlainObject(t)){var n={};return e.each(t,function(e,t){t&&(n[e]=I(t))}),function(e,t,o,r){var a=n[t]||n._;return a!==i?a(e,t,o,r):e}}if(null===t)return function(e){return e};if("function"==typeof t)return function(e,n,i,o){return t(e,n,i,o)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e){return e[t]};var o=function(t,n,r){if(""!==r)for(var a=w(r),s=0,l=a.length;s<l;s++){r=a[s].match(dt);var d=a[s].match(ct);if(r){if(a[s]=a[s].replace(dt,""),""!==a[s]&&(t=t[a[s]]),d=[],a.splice(0,s+1),a=a.join("."),e.isArray(t))for(s=0,l=t.length;s<l;s++)d.push(o(t[s],n,a));t=""===(t=r[0].substring(1,r[0].length-1))?d:d.join(t);break}if(d)a[s]=a[s].replace(ct,""),t=t[a[s]]();else{if(null===t||t[a[s]]===i)return i;t=t[a[s]]}}return t};return function(e,n){return o(e,n,t)}}function D(t){if(e.isPlainObject(t))return D(t._);if(null===t)return function(){};if("function"==typeof t)return function(e,n,i){t(e,"set",n,i)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){e[t]=n};var n=function(t,o,r){for(var a,s,l=(r=w(r))[r.length-1],d=0,c=r.length-1;d<c;
192d++){if(a=r[d].match(dt),s=r[d].match(ct),a){if(r[d]=r[d].replace(dt,""),t[r[d]]=[],(l=r.slice()).splice(0,d+1),a=l.join("."),e.isArray(o))for(s=0,c=o.length;s<c;s++)n(l={},o[s],a),t[r[d]].push(l);else t[r[d]]=o;return}s&&(r[d]=r[d].replace(ct,""),t=t[r[d]](o)),null!==t[r[d]]&&t[r[d]]!==i||(t[r[d]]={}),t=t[r[d]]}l.match(ct)?t[l.replace(ct,"")](o):t[l.replace(dt,"")]=o};return function(e,i){return n(e,i,t)}}function x(e){return it(e.aoData,"_aData")}function O(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function k(e,t,n){for(var o=-1,r=0,a=e.length;r<a;r++)e[r]==t?o=r:e[r]>t&&e[r]--;-1!=o&&n===i&&e.splice(o,1)}function S(e,t,n,o){var r,a=e.aoData[t],s=function(n,i){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=C(e,t,i,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==a.src)){var l=a.anCells;if(l)if(o!==i)s(l[o],o);else for(n=0,r=l.length;n<r;n++)s(l[n],n)}else a._aData=R(e,a,o,o===i?i:a._aData).data;if(a._aSortData=null,a._aFilterData=null,s=e.aoColumns,o!==i)s[o].sType=null;else{for(n=0,r=s.length;n<r;n++)s[n].sType=null;A(e,a)}}function R(t,n,o,r){var a,s,l=[],d=n.firstChild,c=0,u=t.aoColumns,h=t._rowReadObject;r=r!==i?r:h?{}:[];var f=function(e,t){if("string"==typeof e){var n=e.indexOf("@");-1!==n&&(n=e.substring(n+1),D(e)(r,t.getAttribute(n)))}},p=function(t){o!==i&&o!==c||(a=u[c],s=e.trim(t.innerHTML),a&&a._bAttrSrc?(D(a.mData._)(r,s),f(a.mData.sort,t),f(a.mData.type,t),f(a.mData.filter,t)):h?(a._setter||(a._setter=D(a.mData)),a._setter(r,s)):r[c]=s),c++};if(d)for(;d;){var m=d.nodeName.toUpperCase();"TD"!=m&&"TH"!=m||(p(d),l.push(d)),d=d.nextSibling}else for(d=0,m=(l=n.anCells).length;d<m;d++)p(l[d]);return(n=n.firstChild?n:n.nTr)&&(n=n.getAttribute("id"))&&D(t.rowId)(r,n),{data:r,cells:l}}function $(t,i,o,r){var a,s,l=t.aoData[i],d=l._aData,c=[];if(null===l.nTr){var u=o||n.createElement("tr");l.nTr=u,l.anCells=c,u._DT_RowIndex=i,A(t,l);var h=0;for(a=t.aoColumns.length;h<a;h++){var f=t.aoColumns[h],p=(s=!o)?n.createElement(f.sCellType):r[h];p._DT_CellIndex={row:i,column:h},c.push(p),!s&&(o&&!f.mRender&&f.mData===h||e.isPlainObject(f.mData)&&f.mData._===h+".display")||(p.innerHTML=C(t,i,h,"display")),f.sClass&&(p.className+=" "+f.sClass),f.bVisible&&!o?u.appendChild(p):!f.bVisible&&o&&p.parentNode.removeChild(p),f.fnCreatedCell&&f.fnCreatedCell.call(t.oInstance,p,C(t,i,h),d,i,h)}Ne(t,"aoRowCreatedCallback",null,[u,d,i,c])}l.nTr.setAttribute("role","row")}function A(t,n){var i=n.nTr,o=n._aData;i&&((t=t.rowIdFn(o))&&(i.id=t),o.DT_RowClass&&(t=o.DT_RowClass.split(" "),n.__rowc=n.__rowc?st(n.__rowc.concat(t)):t,e(i).removeClass(n.__rowc.join(" ")).addClass(o.DT_RowClass)),o.DT_RowAttr&&e(i).attr(o.DT_RowAttr),o.DT_RowData&&e(i).data(o.DT_RowData))}function K(t){var n,i,o=t.nTHead,r=t.nTFoot,a=0===e("th, td",o).length,s=t.oClasses,l=t.aoColumns;a&&(i=e("<tr/>").appendTo(o));var d=0;for(n=l.length;d<n;d++){var c=l[d],u=e(c.nTh).addClass(c.sClass);a&&u.appendTo(i),t.oFeatures.bSort&&(u.addClass(c.sSortingClass),!1!==c.bSortable&&(u.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),we(t,c.nTh,d))),c.sTitle!=u[0].innerHTML&&u.html(c.sTitle),Me(t,"header")(t,u,c,s)}if(a&&F(t.aoHeader,o),e(o).find(">tr").attr("role","row"),e(o).find(">tr>th, >tr>td").addClass(s.sHeaderTH),e(r).find(">tr>th, >tr>td").addClass(s.sFooterTH),null!==r)for(d=0,n=(t=t.aoFooter[0]).length;d<n;d++)(c=l[d]).nTf=t[d].cell,c.sClass&&e(c.nTf).addClass(c.sClass)}function N(t,n,o){var r,a,s=[],l=[],d=t.aoColumns.length;if(n){o===i&&(o=!1);var c=0;for(r=n.length;c<r;c++){for(s[c]=n[c].slice(),s[c].nTr=n[c].nTr,a=d-1;0<=a;a--)t.aoColumns[a].bVisible||o||s[c].splice(a,1);l.push([])}for(c=0,r=s.length;c<r;c++){if(t=s[c].nTr)for(;a=t.firstChild;)t.removeChild(a);for(a=0,n=s[c].length;a<n;a++){var u=d=1;if(l[c][a]===i){for(t.appendChild(s[c][a].cell),l[c][a]=1;s[c+d]!==i&&s[c][a].cell==s[c+d][a].cell;)l[c+d][a]=1,d++;for(;s[c][a+u]!==i&&s[c][a].cell==s[c][a+u].cell;){for(o=0;o<d;o++)l[c+o][a+u]=1;u++}e(s[c][a].cell).attr("rowspan",d).attr("colspan",u)}}}}}function L(t){var n=Ne(t,"aoPreDrawCallback","preDraw",[t]);if(-1!==e.inArray(!1,n))ue(t,!1);else{n=[];var o=0,r=t.asStripeClasses,a=r.length,s=t.oLanguage,l=t.iInitDisplayStart,d="ssp"==Pe(t),c=t.aiDisplay;t.bDrawing=!0,l!==i&&-1!==l&&(t._iDisplayStart=d?l:l>=t.fnRecordsDisplay()?0:l,t.iInitDisplayStart=-1),l=t._iDisplayStart;var u=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,ue(t,!1);else if(d){if(!t.bDestroying&&!H(t))return}else t.iDraw++;if(0!==c.length)for(s=d?t.aoData.length:u,d=d?0:l;d<s;d++){var h=c[d],f=t.aoData[h];null===f.nTr&&$(t,h);var p=f.nTr;if(0!==a){var m=r[o%a];f._sRowStripe!=m&&(e(p).removeClass(f._sRowStripe).addClass(m),f._sRowStripe=m)}
192Ne(t,"aoRowCallback",null,[p,f._aData,o,d,h]),n.push(p),o++}else o=s.sZeroRecords,1==t.iDraw&&"ajax"==Pe(t)?o=s.sLoadingRecords:s.sEmptyTable&&0===t.fnRecordsTotal()&&(o=s.sEmptyTable),n[0]=e("<tr/>",{"class":a?r[0]:""}).append(e("<td />",{valign:"top",colSpan:g(t),"class":t.oClasses.sRowEmpty}).html(o))[0];Ne(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],x(t),l,u,c]),Ne(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],x(t),l,u,c]),(r=e(t.nTBody)).children().detach(),r.append(e(n)),Ne(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function M(e,t){var n=e.oFeatures,i=n.bFilter;n.bSort&&Te(e),i?V(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,L(e),e._drawHold=!1}function P(t){var n=t.oClasses,i=e(t.nTable);i=e("<div/>").insertBefore(i);var o=t.oFeatures,r=e("<div/>",{id:t.sTableId+"_wrapper","class":n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=i[0],t.nTableWrapper=r[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var a,s,l,d,c,u,h=t.sDom.split(""),f=0;f<h.length;f++){if(a=null,"<"==(s=h[f])){if(l=e("<div/>")[0],"'"==(d=h[f+1])||'"'==d){for(c="",u=2;h[f+u]!=d;)c+=h[f+u],u++;"H"==c?c=n.sJUIHeader:"F"==c&&(c=n.sJUIFooter),-1!=c.indexOf(".")?(d=c.split("."),l.id=d[0].substr(1,d[0].length-1),l.className=d[1]):"#"==c.charAt(0)?l.id=c.substr(1,c.length-1):l.className=c,f+=u}r.append(l),r=e(l)}else if(">"==s)r=r.parent();else if("l"==s&&o.bPaginate&&o.bLengthChange)a=se(t);else if("f"==s&&o.bFilter)a=U(t);else if("r"==s&&o.bProcessing)a=ce(t);else if("t"==s)a=he(t);else if("i"==s&&o.bInfo)a=te(t);else if("p"==s&&o.bPaginate)a=le(t);else if(0!==We.ext.feature.length)for(u=0,d=(l=We.ext.feature).length;u<d;u++)if(s==l[u].cFeature){a=l[u].fnInit(t);break}a&&((l=t.aanFeatures)[s]||(l[s]=[]),l[s].push(a),r.append(a))}i.replaceWith(r),t.nHolding=null}function F(t,n){var i,o,r;n=e(n).children("tr"),t.splice(0,t.length);var a=0;for(r=n.length;a<r;a++)t.push([]);for(a=0,r=n.length;a<r;a++){var s=n[a];for(i=s.firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase()){var l=1*i.getAttribute("colspan"),d=1*i.getAttribute("rowspan");l=l&&0!==l&&1!==l?l:1,d=d&&0!==d&&1!==d?d:1;var c=0;for(o=t[a];o[c];)c++;var u=c,h=1===l;for(o=0;o<l;o++)for(c=0;c<d;c++)t[a+c][u+o]={cell:i,unique:h},t[a+c].nTr=s}i=i.nextSibling}}}function B(e,t,n){var i=[];n||(n=e.aoHeader,t&&F(n=[],t)),t=0;for(var o=n.length;t<o;t++)for(var r=0,a=n[t].length;r<a;r++)!n[t][r].unique||i[r]&&e.bSortCellsTop||(i[r]=n[t][r].cell);return i}function j(t,n,i){if(Ne(t,"aoServerParams","serverParams",[n]),n&&e.isArray(n)){var o={},r=/(.*?)\[\]$/;e.each(n,function(e,t){(e=t.name.match(r))?(e=e[0],o[e]||(o[e]=[]),o[e].push(t.value)):o[t.name]=t.value}),n=o}var a=t.ajax,s=t.oInstance,l=function(e){Ne(t,null,"xhr",[t,e,t.jqXHR]),i(e)};if(e.isPlainObject(a)&&a.data){var d=a.data,c="function"==typeof d?d(n,t):d;n="function"==typeof d&&c?c:e.extend(!0,n,c),delete a.data}c={data:n,success:function(e){var n=e.error||e.sError;n&&Se(t,0,n),t.json=e,l(e)},dataType:"json",cache:!1,type:t.sServerMethod,error:function(n,i,o){o=Ne(t,null,"xhr",[t,null,t.jqXHR]),-1===e.inArray(!0,o)&&("parsererror"==i?Se(t,0,"Invalid JSON response",1):4===n.readyState&&Se(t,0,"Ajax error",7)),ue(t,!1)}},t.oAjaxData=n,Ne(t,null,"preXhr",[t,n]),t.fnServerData?t.fnServerData.call(s,t.sAjaxSource,e.map(n,function(e,t){return{name:t,value:e}}),l,t):t.sAjaxSource||"string"==typeof a?t.jqXHR=e.ajax(e.extend(c,{url:a||t.sAjaxSource})):"function"==typeof a?t.jqXHR=a.call(s,n,l,t):(t.jqXHR=e.ajax(e.extend(c,a)),a.data=d)}function H(e){return!e.bAjaxDataGet||(e.iDraw++,ue(e,!0),j(e,z(e),function(t){q(e,t)}),!1)}function z(t){var n=t.aoColumns,i=n.length,o=t.oFeatures,r=t.oPreviousSearch,a=t.aoPreSearchCols,s=[],l=be(t),d=t._iDisplayStart,c=!1!==o.bPaginate?t._iDisplayLength:-1,u=function(e,t){s.push({name:e,value:t})};u("sEcho",t.iDraw),u("iColumns",i),u("sColumns",it(n,"sName").join(",")),u("iDisplayStart",d),u("iDisplayLength",c);var h={draw:t.iDraw,columns:[],order:[],start:d,length:c,search:{value:r.sSearch,regex:r.bRegex}};for(d=0;d<i;d++){var f=n[d],p=a[d];c="function"==typeof f.mData?"function":f.mData,h.columns.push({data:c,name:f.sName,searchable:f.bSearchable,orderable:f.bSortable,search:{value:p.sSearch,regex:p.bRegex}}),u("mDataProp_"+d,c),o.bFilter&&(u("sSearch_"+d,p.sSearch),u("bRegex_"+d,p.bRegex),u("bSearchable_"+d,f.bSearchable)),o.bSort&&u("bSortable_"+d,f.bSortable)}return o.bFilter&&(u("sSearch",r.sSearch),u("bRegex",r.bRegex)),o.bSort&&(e.each(l,function(e,t){h.order.push({column:t.col,dir:t.dir}),u("iSortCol_"+e,t.col),u("sSortDir_"+e,t.dir)}),u("iSortingCols",l.length)),null===(n=We.ext.legacy.ajax)?t.sAjaxSource?s:h:n?s:h}function q(e,t){var n=function(e,n){return t[e]!==i?t[e]:t[n]},o=W(e,t),r=n("sEcho","draw"),a=n("iTotalRecords","recordsTotal");if(n=n("iTotalDisplayRecords","recordsFiltered"),r){if(1*r<e.iDraw)return;e.iDraw=1*r}for(O(e),e._iRecordsTotal=parseInt(a,10),e._iRecordsDisplay=parseInt(n,10),r=0,a=o.length;r<a;r++)b(e,o[r]);e.aiDisplay=e.aiDisplayMaster.slice(),e.bAjaxDataGet=!1,L(e),e._bInitComplete||re(e,t),e.bAjaxDataGet=!0,ue(e,!1)}function W(t,n){return"data"===(t=e.isPlainObject(t.ajax)&&t.ajax.dataSrc!==i?t.ajax.dataSrc:t.sAjaxDataProp)?n.aaData||n[t]:""!==t?I(t)(n):n}
192function U(t){var i=t.oClasses,o=t.sTableId,r=t.oLanguage,a=t.oPreviousSearch,s=t.aanFeatures,l='<input type="search" class="'+i.sFilterInput+'"/>',d=r.sSearch;d=d.match(/_INPUT_/)?d.replace("_INPUT_",l):d+l,i=e("<div/>",{id:s.f?null:o+"_filter","class":i.sFilter}).append(e("<label/>").append(d)),s=function(){var e=this.value?this.value:"";e!=a.sSearch&&(V(t,{sSearch:e,bRegex:a.bRegex,bSmart:a.bSmart,bCaseInsensitive:a.bCaseInsensitive}),t._iDisplayStart=0,L(t))},l=null!==t.searchDelay?t.searchDelay:"ssp"===Pe(t)?400:0;var c=e("input",i).val(a.sSearch).attr("placeholder",r.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",l?mt(s,l):s).on("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",o);return e(t.nTable).on("search.dt.DT",function(e,i){if(t===i)try{c[0]!==n.activeElement&&c.val(a.sSearch)}catch(o){}}),i[0]}function V(e,t,n){var o=e.oPreviousSearch,r=e.aoPreSearchCols,a=function(e){o.sSearch=e.sSearch,o.bRegex=e.bRegex,o.bSmart=e.bSmart,o.bCaseInsensitive=e.bCaseInsensitive},s=function(e){return e.bEscapeRegex!==i?!e.bEscapeRegex:e.bRegex};if(y(e),"ssp"!=Pe(e)){for(X(e,t.sSearch,n,s(t),t.bSmart,t.bCaseInsensitive),a(t),t=0;t<r.length;t++)G(e,r[t].sSearch,t,s(r[t]),r[t].bSmart,r[t].bCaseInsensitive);Y(e)}else a(t);e.bFiltered=!0,Ne(e,null,"search",[e])}function Y(t){for(var n,i,o=We.ext.search,r=t.aiDisplay,a=0,s=o.length;a<s;a++){for(var l=[],d=0,c=r.length;d<c;d++)i=r[d],n=t.aoData[i],o[a](t,n._aFilterData,i,n._aData,d)&&l.push(i);r.length=0,e.merge(r,l)}}function G(e,t,n,i,o,r){if(""!==t){var a=[],s=e.aiDisplay;for(i=Q(t,i,o,r),o=0;o<s.length;o++)t=e.aoData[s[o]]._aFilterData[n],i.test(t)&&a.push(s[o]);e.aiDisplay=a}}function X(e,t,n,i,o,r){o=Q(t,i,o,r);var a=e.oPreviousSearch.sSearch,s=e.aiDisplayMaster;r=[],0!==We.ext.search.length&&(n=!0);var l=Z(e);if(0>=t.length)e.aiDisplay=s.slice();else{for((l||n||i||a.length>t.length||0!==t.indexOf(a)||e.bSorted)&&(e.aiDisplay=s.slice()),t=e.aiDisplay,n=0;n<t.length;n++)o.test(e.aoData[t[n]]._sFilterRow)&&r.push(t[n]);e.aiDisplay=r}}function Q(t,n,i,o){return t=n?t:ut(t),i&&(t="^(?=.*?"+e.map(t.match(/"[^"]+"|[^ ]+/g)||[""],function(e){if('"'===e.charAt(0)){var t=e.match(/^"(.*)"$/);e=t?t[1]:e}return e.replace('"',"")}).join(")(?=.*?")+").*$"),new RegExp(t,o?"i":"")}function Z(e){var t,n,i=e.aoColumns,o=We.ext.type.search,r=!1,a=0;for(t=e.aoData.length;a<t;a++){var s=e.aoData[a];if(!s._aFilterData){var l=[],d=0;for(n=i.length;d<n;d++){if((r=i[d]).bSearchable){var c=C(e,a,d,"filter");o[r.sType]&&(c=o[r.sType](c)),null===c&&(c=""),"string"!=typeof c&&c.toString&&(c=c.toString())}else c="";c.indexOf&&-1!==c.indexOf("&")&&(ht.innerHTML=c,c=ft?ht.textContent:ht.innerText),c.replace&&(c=c.replace(/[\r\n\u2028]/g,"")),l.push(c)}s._aFilterData=l,s._sFilterRow=l.join(" "),r=!0}}return r}function J(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function ee(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function te(t){var n=t.sTableId,i=t.aanFeatures.i,o=e("<div/>",{"class":t.oClasses.sInfo,id:i?null:n+"_info"});return i||(t.aoDrawCallback.push({fn:ne,sName:"information"}),o.attr("role","status").attr("aria-live","polite"),e(t.nTable).attr("aria-describedby",n+"_info")),o[0]}function ne(t){var n=t.aanFeatures.i;if(0!==n.length){var i=t.oLanguage,o=t._iDisplayStart+1,r=t.fnDisplayEnd(),a=t.fnRecordsTotal(),s=t.fnRecordsDisplay(),l=s?i.sInfo:i.sInfoEmpty;s!==a&&(l+=" "+i.sInfoFiltered),l=ie(t,l+=i.sInfoPostFix),null!==(i=i.fnInfoCallback)&&(l=i.call(t.oInstance,t,o,r,a,s,l)),e(n).html(l)}}function ie(e,t){var n=e.fnFormatNumber,i=e._iDisplayStart+1,o=e._iDisplayLength,r=e.fnRecordsDisplay(),a=-1===o;return t.replace(/_START_/g,n.call(e,i)).replace(/_END_/g,n.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,n.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(e,r)).replace(/_PAGE_/g,n.call(e,a?1:Math.ceil(i/o))).replace(/_PAGES_/g,n.call(e,a?1:Math.ceil(r/o)))}function oe(e){var t=e.iInitDisplayStart,n=e.aoColumns,i=e.oFeatures,o=e.bDeferLoading;if(e.bInitialised){P(e),K(e),N(e,e.aoHeader),N(e,e.aoFooter),ue(e,!0),i.bAutoWidth&&me(e);var r=0;for(i=n.length;r<i;r++){var a=n[r];a.sWidth&&(a.nTh.style.width=_e(a.sWidth))}Ne(e,null,"preInit",[e]),M(e),("ssp"!=(n=Pe(e))||o)&&("ajax"==n?j(e,[],function(n){var i=W(e,n);for(r=0;r<i.length;r++)b(e,i[r]);e.iInitDisplayStart=t,M(e),ue(e,!1),re(e,n)},e):(ue(e,!1),re(e)))}else setTimeout(function(){oe(e)},200)}function re(e,t){e._bInitComplete=!0,(t||e.oInit.aaData)&&f(e),Ne(e,null,"plugin-init",[e,t]),Ne(e,"aoInitComplete","
192init",[e,t])}function ae(e,t){t=parseInt(t,10),e._iDisplayLength=t,Le(e),Ne(e,null,"length",[e,t])}function se(t){var n=t.oClasses,i=t.sTableId,o=t.aLengthMenu,r=e.isArray(o[0]),a=r?o[0]:o;o=r?o[1]:o,r=e("<select/>",{name:i+"_length","aria-controls":i,"class":n.sLengthSelect});for(var s=0,l=a.length;s<l;s++)r[0][s]=new Option("number"==typeof o[s]?t.fnFormatNumber(o[s]):o[s],a[s]);var d=e("<div><label/></div>").addClass(n.sLength);return t.aanFeatures.l||(d[0].id=i+"_length"),d.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",r[0].outerHTML)),e("select",d).val(t._iDisplayLength).on("change.DT",function(){ae(t,e(this).val()),L(t)}),e(t.nTable).on("length.dt.DT",function(n,i,o){t===i&&e("select",d).val(o)}),d[0]}function le(t){var n=t.sPaginationType,i=We.ext.pager[n],o="function"==typeof i,r=function(e){L(e)};n=e("<div/>").addClass(t.oClasses.sPaging+n)[0];var a=t.aanFeatures;return o||i.fnInit(t,n,r),a.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(o){var t,n=e._iDisplayStart,s=e._iDisplayLength,l=e.fnRecordsDisplay(),d=-1===s;for(n=d?0:Math.ceil(n/s),s=d?1:Math.ceil(l/s),l=i(n,s),d=0,t=a.p.length;d<t;d++)Me(e,"pageButton")(e,a.p[d],d,l,n,s)}else i.fnUpdate(e,r)},sName:"pagination"})),n}function de(e,t,n){var i=e._iDisplayStart,o=e._iDisplayLength,r=e.fnRecordsDisplay();return 0===r||-1===o?i=0:"number"==typeof t?(i=t*o)>r&&(i=0):"first"==t?i=0:"previous"==t?0>(i=0<=o?i-o:0)&&(i=0):"next"==t?i+o<r&&(i+=o):"last"==t?i=Math.floor((r-1)/o)*o:Se(e,0,"Unknown paging action: "+t,5),t=e._iDisplayStart!==i,e._iDisplayStart=i,t&&(Ne(e,null,"page",[e]),n&&L(e)),t}function ce(t){return e("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing","class":t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function ue(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),Ne(t,null,"processing",[t,n])}function he(t){var n=e(t.nTable);n.attr("role","grid");var i=t.oScroll;if(""===i.sX&&""===i.sY)return t.nTable;var o=i.sX,r=i.sY,a=t.oClasses,s=n.children("caption"),l=s.length?s[0]._captionSide:null,d=e(n[0].cloneNode(!1)),c=e(n[0].cloneNode(!1)),u=n.children("tfoot");u.length||(u=null),d=e("<div/>",{"class":a.sScrollWrapper}).append(e("<div/>",{"class":a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:o?o?_e(o):null:"100%"}).append(e("<div/>",{"class":a.sScrollHeadInner}).css({"box-sizing":"content-box",width:i.sXInner||"100%"}).append(d.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(n.children("thead"))))).append(e("<div/>",{"class":a.sScrollBody}).css({position:"relative",overflow:"auto",width:o?_e(o):null}).append(n)),u&&d.append(e("<div/>",{"class":a.sScrollFoot}).css({overflow:"hidden",border:0,width:o?o?_e(o):null:"100%"}).append(e("<div/>",{"class":a.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(n.children("tfoot")))));var h=(n=d.children())[0];a=n[1];var f=u?n[2]:null;return o&&e(a).on("scroll.DT",function(e){e=this.scrollLeft,h.scrollLeft=e,u&&(f.scrollLeft=e)}),e(a).css(r&&i.bCollapse?"max-height":"height",r),t.nScrollHead=h,t.nScrollBody=a,t.nScrollFoot=f,t.aoDrawCallback.push({fn:fe,sName:"scrolling"}),d[0]}function fe(t){var n=t.oScroll,o=n.sX,r=n.sXInner,a=n.sY;n=n.iBarWidth;var s=e(t.nScrollHead),l=s[0].style,d=s.children("div"),c=d[0].style,u=d.children("table");d=t.nScrollBody;var h,m=e(d),g=d.style,v=e(t.nScrollFoot).children("div"),y=v.children("table"),_=e(t.nTHead),b=e(t.nTable),T=b[0],C=T.style,E=t.nTFoot?e(t.nTFoot):null,w=t.oBrowser,I=w.bScrollOversize,D=it(t.aoColumns,"nTh"),x=[],O=[],k=[],S=[],R=function(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},$=d.scrollHeight>d.clientHeight;if(t.scrollBarVis!==$&&t.scrollBarVis!==i)t.scrollBarVis=$,f(t);else{if(t.scrollBarVis=$,b.children("thead, tfoot").remove(),E){var A=E.clone().prependTo(b),K=E.find("tr");A=A.find("tr")}var N=_.clone().prependTo(b);_=_.find("tr"),$=N.find("tr"),N.find("th, td").removeAttr("tabindex"),o||(g.width="100%",s[0].style.width="100%"),e.each(B(t,N),function(e,n){h=p(t,e),n.style.width=t.aoColumns[h].sWidth}),E&&pe(function(e){e.style.width=""},A),s=b.outerWidth(),""===o?(C.width="100%",I&&(b.find("tbody").height()>d.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=_e(b.outerWidth()-n)),s=b.outerWidth()):""!==r&&(C.width=_e(r),s=b.outerWidth()),pe(R,$),pe(function(t){k.push(t.innerHTML),x.push(_e(e(t).css("width")))},$),pe(function(t,n){-1!==e.inArray(t,D)&&(t.style.width=x[n])},_),e($).height(0),E&&(pe(R,A),pe(function(t){S.push(t.innerHTML),O.push(_e(e(t).css("width")))},A),pe(function(e,t){e.style.width=O[t]},K),e(A).height(0)),pe(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+k[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=x[t]},$),E&&pe(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+S[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=O[t]},A),b.outerWidth()<s?(K=d.scrollHeight>
192d.offsetHeight||"scroll"==m.css("overflow-y")?s+n:s,I&&(d.scrollHeight>d.offsetHeight||"scroll"==m.css("overflow-y"))&&(C.width=_e(K-n)),""!==o&&""===r||Se(t,1,"Possible column misalignment",6)):K="100%",g.width=_e(K),l.width=_e(K),E&&(t.nScrollFoot.style.width=_e(K)),!a&&I&&(g.height=_e(T.offsetHeight+n)),o=b.outerWidth(),u[0].style.width=_e(o),c.width=_e(o),r=b.height()>d.clientHeight||"scroll"==m.css("overflow-y"),c[a="padding"+(w.bScrollbarLeft?"Left":"Right")]=r?n+"px":"0px",E&&(y[0].style.width=_e(o),v[0].style.width=_e(o),v[0].style[a]=r?n+"px":"0px"),b.children("colgroup").insertBefore(b.children("thead")),m.trigger("scroll"),!t.bSorted&&!t.bFiltered||t._drawHold||(d.scrollTop=0)}}function pe(e,t,n){for(var i,o,r=0,a=0,s=t.length;a<s;){for(i=t[a].firstChild,o=n?n[a].firstChild:null;i;)1===i.nodeType&&(n?e(i,o,r):e(i,r),r++),i=i.nextSibling,o=n?o.nextSibling:null;a++}}function me(n){var i,o=n.nTable,r=n.aoColumns,a=n.oScroll,s=a.sY,l=a.sX,d=a.sXInner,c=r.length,u=v(n,"bVisible"),h=e("th",n.nTHead),m=o.getAttribute("width"),y=o.parentNode,_=!1,b=n.oBrowser;for(a=b.bScrollOversize,(i=o.style.width)&&-1!==i.indexOf("%")&&(m=i),i=0;i<u.length;i++){var T=r[u[i]];null!==T.sWidth&&(T.sWidth=ge(T.sWidthOrig,y),_=!0)}if(a||!_&&!l&&!s&&c==g(n)&&c==h.length)for(i=0;i<c;i++)null!==(u=p(n,i))&&(r[u].sWidth=_e(h.eq(i).width()));else{(c=e(o).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var C=e("<tr/>").appendTo(c.find("tbody"));for(c.find("thead, tfoot").remove(),c.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),c.find("tfoot th, tfoot td").css("width",""),h=B(n,c.find("thead")[0]),i=0;i<u.length;i++)T=r[u[i]],h[i].style.width=null!==T.sWidthOrig&&""!==T.sWidthOrig?_e(T.sWidthOrig):"",T.sWidthOrig&&l&&e(h[i]).append(e("<div/>").css({width:T.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(i=0;i<u.length;i++)T=r[_=u[i]],e(ve(n,_)).clone(!1).append(T.sContentPadding).appendTo(C);for(e("[name]",c).removeAttr("name"),T=e("<div/>").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(c).appendTo(y),l&&d?c.width(d):l?(c.css("width","auto"),c.removeAttr("width"),c.width()<y.clientWidth&&m&&c.width(y.clientWidth)):s?c.width(y.clientWidth):m&&c.width(m),i=s=0;i<u.length;i++)d=(y=e(h[i])).outerWidth()-y.width(),s+=y=b.bBounding?Math.ceil(h[i].getBoundingClientRect().width):y.outerWidth(),r[u[i]].sWidth=_e(y-d);o.style.width=_e(s),T.remove()}m&&(o.style.width=_e(m)),!m&&!l||n._reszEvt||(o=function(){e(t).on("resize.DT-"+n.sInstance,mt(function(){f(n)}))},a?setTimeout(o,1e3):o(),n._reszEvt=!0)}function ge(t,i){return t?(i=(t=e("<div/>").css("width",_e(t)).appendTo(i||n.body))[0].offsetWidth,t.remove(),i):0}function ve(t,n){var i=ye(t,n);if(0>i)return null;var o=t.aoData[i];return o.nTr?o.anCells[n]:e("<td/>").html(C(t,i,n,"display"))[0]}function ye(e,t){for(var n,i=-1,o=-1,r=0,a=e.aoData.length;r<a;r++)(n=(n=(n=C(e,r,t,"display")+"").replace(pt,"")).replace(/ /g," ")).length>i&&(i=n.length,o=r);return o}function _e(e){return null===e?"0px":"number"==typeof e?0>e?"0px":e+"px":e.match(/\d$/)?e+"px":e}function be(t){var n=[],o=t.aoColumns,r=t.aaSortingFixed,a=e.isPlainObject(r),s=[],l=function(t){t.length&&!e.isArray(t[0])?s.push(t):e.merge(s,t)};for(e.isArray(r)&&l(r),a&&r.pre&&l(r.pre),l(t.aaSorting),a&&r.post&&l(r.post),t=0;t<s.length;t++){var d=s[t][0];for(r=0,a=(l=o[d].aDataSort).length;r<a;r++){var c=l[r],u=o[c].sType||"string";s[t]._idx===i&&(s[t]._idx=e.inArray(s[t][1],o[c].asSorting)),n.push({src:d,col:c,dir:s[t][1],index:s[t]._idx,type:u,formatter:We.ext.type.order[u+"-pre"]})}}return n}function Te(e){var t,n=[],i=We.ext.type.order,o=e.aoData,r=0,a=e.aiDisplayMaster;y(e);var s=be(e),l=0;for(t=s.length;l<t;l++){var d=s[l];d.formatter&&r++,De(e,d.col)}if("ssp"!=Pe(e)&&0!==s.length){for(l=0,t=a.length;l<t;l++)n[a[l]]=l;r===s.length?a.sort(function(e,t){ 193var i,r=s.length,a=o[e]._aSortData,l=o[t]._aSortData;for(i=0;i<r;i++){var d=s[i],c=a[d.col],u=l[d.col];if(0!==(c=c<u?-1:c>u?1:0))return"asc"===d.dir?c:-c}return(c=n[e])<(u=n[t])?-1:c>u?1:0}):a.sort(function(e,t){var r,a=s.length,l=o[e]._aSortData,d=o[t]._aSortData;for(r=0;r<a;r++){var c=s[r],u=l[c.col],h=d[c.col];if(0!==(u=(c=i[c.type+"-"+c.dir]||i["string-"+c.dir])(u,h)))return u}return(u=n[e])<(h=n[t])?-1:u>h?1:0})}e.bSorted=!0}
193function Ce(e){var t=e.aoColumns,n=be(e);e=e.oLanguage.oAria;for(var i=0,o=t.length;i<o;i++){var r=t[i],a=r.asSorting,s=r.sTitle.replace(/<.*?>/g,""),l=r.nTh;l.removeAttribute("aria-sort"),r.bSortable&&(0<n.length&&n[0].col==i?(l.setAttribute("aria-sort","asc"==n[0].dir?"ascending":"descending"),r=a[n[0].index+1]||a[0]):r=a[0],s+="asc"===r?e.sSortAscending:e.sSortDescending),l.setAttribute("aria-label",s)}}function Ee(t,n,o,r){var a=t.aaSorting,s=t.aoColumns[n].asSorting,l=function(t,n){var o=t._idx;return o===i&&(o=e.inArray(t[1],s)),o+1<s.length?o+1:n?null:0};"number"==typeof a[0]&&(a=t.aaSorting=[a]),o&&t.oFeatures.bSortMulti?-1!==(o=e.inArray(n,it(a,"0")))?(null===(n=l(a[o],!0))&&1===a.length&&(n=0),null===n?a.splice(o,1):(a[o][1]=s[n],a[o]._idx=n)):(a.push([n,s[0],0]),a[a.length-1]._idx=0):a.length&&a[0][0]==n?(n=l(a[0]),a.length=1,a[0][1]=s[n],a[0]._idx=n):(a.length=0,a.push([n,s[0]]),a[0]._idx=0),M(t),"function"==typeof r&&r(t)}function we(e,t,n,i){var o=e.aoColumns[n];Ae(t,{},function(t){!1!==o.bSortable&&(e.oFeatures.bProcessing?(ue(e,!0),setTimeout(function(){Ee(e,n,t.shiftKey,i),"ssp"!==Pe(e)&&ue(e,!1)},0)):Ee(e,n,t.shiftKey,i))})}function Ie(t){var n,i=t.aLastSort,o=t.oClasses.sSortColumn,r=be(t),a=t.oFeatures;if(a.bSort&&a.bSortClasses){for(a=0,n=i.length;a<n;a++){var s=i[a].src;e(it(t.aoData,"anCells",s)).removeClass(o+(2>a?a+1:3))}for(a=0,n=r.length;a<n;a++)s=r[a].src,e(it(t.aoData,"anCells",s)).addClass(o+(2>a?a+1:3))}t.aLastSort=r}function De(e,t){var n,i=e.aoColumns[t],o=We.ext.order[i.sSortDataType];o&&(n=o.call(e.oInstance,e,t,m(e,t)));for(var r,a=We.ext.type.order[i.sType+"-pre"],s=0,l=e.aoData.length;s<l;s++)(i=e.aoData[s])._aSortData||(i._aSortData=[]),(!i._aSortData[t]||o)&&(r=o?n[s]:C(e,s,t,"sort"),i._aSortData[t]=a?a(r):r)}function xe(t){if(t.oFeatures.bStateSave&&!t.bDestroying){var n={time:+new Date,start:t._iDisplayStart,length:t._iDisplayLength,order:e.extend(!0,[],t.aaSorting),search:J(t.oPreviousSearch),columns:e.map(t.aoColumns,function(e,n){return{visible:e.bVisible,search:J(t.aoPreSearchCols[n])}})};Ne(t,"aoStateSaveParams","stateSaveParams",[t,n]),t.oSavedState=n,t.fnStateSaveCallback.call(t.oInstance,t,n)}}function Oe(t,n,o){var r,a,s=t.aoColumns;if(n=function(n){if(n&&n.time){var l=Ne(t,"aoStateLoadParams","stateLoadParams",[t,n]);if(-1===e.inArray(!1,l)&&!(0<(l=t.iStateDuration)&&n.time<+new Date-1e3*l||n.columns&&s.length!==n.columns.length)){if(t.oLoadedState=e.extend(!0,{},n),n.start!==i&&(t._iDisplayStart=n.start,t.iInitDisplayStart=n.start),n.length!==i&&(t._iDisplayLength=n.length),n.order!==i&&(t.aaSorting=[],e.each(n.order,function(e,n){t.aaSorting.push(n[0]>=s.length?[0,n[1]]:n)})),n.search!==i&&e.extend(t.oPreviousSearch,ee(n.search)),n.columns)for(r=0,a=n.columns.length;r<a;r++)(l=n.columns[r]).visible!==i&&(s[r].bVisible=l.visible),l.search!==i&&e.extend(t.aoPreSearchCols[r],ee(l.search));Ne(t,"aoStateLoaded","stateLoaded",[t,n])}}o()},t.oFeatures.bStateSave){var l=t.fnStateLoadCallback.call(t.oInstance,t,n);l!==i&&n(l)}else o()}function ke(t){var n=We.settings;return-1!==(t=e.inArray(t,it(n,"nTable")))?n[t]:null}function Se(e,n,i,o){if(i="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+i,o&&(i+=". For more information about this error, please see http://datatables.net/tn/"+o),n)t.console&&console.log&&console.log(i);else if(n=(n=We.ext).sErrMode||n.errMode,e&&Ne(e,null,"error",[e,o,i]),"alert"==n)alert(i);else{if("throw"==n)throw Error(i);"function"==typeof n&&n(e,o,i)}}function Re(t,n,o,r){e.isArray(o)?e.each(o,function(i,o){e.isArray(o)?Re(t,n,o[0],o[1]):Re(t,n,o)}):(r===i&&(r=o),n[o]!==i&&(t[r]=n[o]))}function $e(t,n,i){var o;for(o in n)if(n.hasOwnProperty(o)){var r=n[o];e.isPlainObject(r)?(e.isPlainObject(t[o])||(t[o]={}),e.extend(!0,t[o],r)):i&&"data"!==o&&"aaData"!==o&&e.isArray(r)?t[o]=r.slice():t[o]=r}return t}function Ae(t,n,i){e(t).on("click.DT",n,function(n){e(t).blur(),i(n)}).on("keypress.DT",n,function(e){13===e.which&&(e.preventDefault(),i(e))}).on("selectstart.DT",function(){return!1})}function Ke(e,t,n,i){n&&e[t].push({fn:n,sName:i})}function Ne(t,n,i,o){var r=[];return n&&(r=e.map(t[n].slice().reverse(),function(e){return e.fn.apply(t.oInstance,o)})),null!==i&&(n=e.Event(i+".dt"),e(t.nTable).trigger(n,o),r.push(n.result)),r}function Le(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),i=e._iDisplayLength;t>=n&&(t=n-i),t-=t%i,(-1===i||0>t)&&(t=0),e._iDisplayStart=t}function Me(t,n){t=t.renderer;var i=We.ext.renderer[n];return e.isPlainObject(t)&&t[n]?i[t[n]]||i._:"string"==typeof t&&i[t]||i._}function Pe(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Fe(e,t){var n=Nt.numbers_length,i=Math.floor(n/2);return t<=n?e=rt(0,t):e<=i?((e=rt(0,n-2)).push("ellipsis"),e.push(t-1)):(e>=t-1-i?e=rt(t-(n-2),t):((e=rt(e-i+2,e+i-1)).push("ellipsis"),e.push(t-1)),e.splice(0,0,"ellipsis"),e.splice(0,0,0)),e.DT_el="span",e}function Be(t){e.each({num:function(e){return Lt(e,t)},"num-fmt":function(e){return Lt(e,t,Qe)},"html-num":function(e){return Lt(e,t,Ye)},"html-num-fmt":function(e){return Lt(e,t,Ye,Qe)}},function(e,n){He.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(He.type.search[e+t]=He.type.search.html)})}function je(e){return function(){var t=[ke(this[We.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return We.ext.internal[e].apply(this,t)}}var He,ze,qe,We=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new _t(e?ke(this[He.iApiIndex]):this)},this.fnAddData=function(t,n){var o=this.api(!0);return t=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?o.rows.add(t):o.row.add(t),(n===i||n)&&o.draw(),t.flatten().toArray()}
193,this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],o=n.oScroll;e===i||e?t.draw(!1):(""!==o.sX||""!==o.sY)&&fe(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===i||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var o=this.api(!0),r=(e=o.rows(e)).settings()[0],a=r.aoData[e[0][0]];return e.remove(),t&&t.call(this,r,a),(n===i||n)&&o.draw(),a},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,o,r,a){r=this.api(!0),null===t||t===i?r.search(e,n,o,a):r.column(t).search(e,n,o,a),r.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==i){var o=e.nodeName?e.nodeName.toLowerCase():"";return t!==i||"td"==o||"th"==o?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==i?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){e=this.api(!0).page(e),(t===i||t)&&e.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),(n===i||n)&&e.columns.adjust().draw()},this.fnSettings=function(){return ke(this[He.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,o,r){var a=this.api(!0);return n===i||null===n?a.row(t).data(e):a.cell(t,n).data(e),(r===i||r)&&a.columns.adjust(),(o===i||o)&&a.draw(),0},this.fnVersionCheck=He.fnVersionCheck;var n=this,o=t===i,c=this.length;for(var f in o&&(t={}),this.oApi=this.internal=He.internal,We.ext.internal)f&&(this[f]=je(f));return this.each(function(){var f,p={},m=1<c?$e(p,t,!0):t,g=0;p=this.getAttribute("id");var v=!1,y=We.defaults,C=e(this);if("table"!=this.nodeName.toLowerCase())Se(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{s(y),l(y.column),r(y,y,!0),r(y.column,y.column,!0),r(y,e.extend(m,C.data()),!0);var E=We.settings;for(g=0,f=E.length;g<f;g++){var w=E[g];if(w.nTable==this||w.nTHead&&w.nTHead.parentNode==this||w.nTFoot&&w.nTFoot.parentNode==this){var D=m.bRetrieve!==i?m.bRetrieve:y.bRetrieve;if(o||D)return w.oInstance;if(m.bDestroy!==i?m.bDestroy:y.bDestroy){w.oInstance.fnDestroy();break}return void Se(w,0,"Cannot reinitialise DataTable",3)}if(w.sTableId==this.id){E.splice(g,1);break}}null!==p&&""!==p||(this.id=p="DataTables_Table_"+We.ext._unique++);var x=e.extend(!0,{},We.models.oSettings,{sDestroyWidth:C[0].style.width,sInstance:p,sTableId:p});x.nTable=this,x.oApi=n.internal,x.oInit=m,E.push(x),x.oInstance=1===n.length?n:C.dataTable(),s(m),a(m.oLanguage),m.aLengthMenu&&!m.iDisplayLength&&(m.iDisplayLength=e.isArray(m.aLengthMenu[0])?m.aLengthMenu[0][0]:m.aLengthMenu[0]),m=$e(e.extend(!0,{},y),m),Re(x.oFeatures,m,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Re(x,m,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Re(x.oScroll,m,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Re(x.oLanguage,m,"fnInfoCallback"),Ke(x,"aoDrawCallback",m.fnDrawCallback,"user"),Ke(x,"aoServerParams",m.fnServerParams,"user"),Ke(x,"aoStateSaveParams",m.fnStateSaveParams,"user"),Ke(x,"aoStateLoadParams",m.fnStateLoadParams,"user"),Ke(x,"aoStateLoaded",m.fnStateLoaded,"user"),Ke(x,"aoRowCallback",m.fnRowCallback,"user"),Ke(x,"aoRowCreatedCallback",m.fnCreatedRow,"user"),Ke(x,"aoHeaderCallback",m.fnHeaderCallback,"user"),Ke(x,"aoFooterCallback",m.fnFooterCallback,"user"),Ke(x,"aoInitComplete",m.fnInitComplete,"user"),Ke(x,"aoPreDrawCallback",m.fnPreDrawCallback,"user"),x.rowIdFn=I(m.rowId),d(x);var O=x.oClasses;
193e.extend(O,We.ext.classes,m.oClasses),C.addClass(O.sTable),x.iInitDisplayStart===i&&(x.iInitDisplayStart=m.iDisplayStart,x._iDisplayStart=m.iDisplayStart),null!==m.iDeferLoading&&(x.bDeferLoading=!0,p=e.isArray(m.iDeferLoading),x._iRecordsDisplay=p?m.iDeferLoading[0]:m.iDeferLoading,x._iRecordsTotal=p?m.iDeferLoading[1]:m.iDeferLoading);var k=x.oLanguage;e.extend(!0,k,m.oLanguage),k.sUrl&&(e.ajax({dataType:"json",url:k.sUrl,success:function(t){a(t),r(y.oLanguage,t),e.extend(!0,k,t),oe(x)},error:function(){oe(x)}}),v=!0),null===m.asStripeClasses&&(x.asStripeClasses=[O.sStripeOdd,O.sStripeEven]),p=x.asStripeClasses;var S=C.children("tbody").find("tr").eq(0);if(-1!==e.inArray(!0,e.map(p,function(e){return S.hasClass(e)}))&&(e("tbody tr",this).removeClass(p.join(" ")),x.asDestroyStripes=p.slice()),p=[],0!==(E=this.getElementsByTagName("thead")).length&&(F(x.aoHeader,E[0]),p=B(x)),null===m.aoColumns)for(E=[],g=0,f=p.length;g<f;g++)E.push(null);else E=m.aoColumns;for(g=0,f=E.length;g<f;g++)u(x,p?p[g]:null);if(_(x,m.aoColumnDefs,E,function(e,t){h(x,e,t)}),S.length){var R=function(e,t){return null!==e.getAttribute("data-"+t)?t:null};e(S[0]).children("th, td").each(function(e,t){var n=x.aoColumns[e];if(n.mData===e){var o=R(t,"sort")||R(t,"order");t=R(t,"filter")||R(t,"search"),null===o&&null===t||(n.mData={_:e+".display",sort:null!==o?e+".@data-"+o:i,type:null!==o?e+".@data-"+o:i,filter:null!==t?e+".@data-"+t:i},h(x,e))}})}var $=x.oFeatures;p=function(){if(m.aaSorting===i){var t=x.aaSorting;for(g=0,f=t.length;g<f;g++)t[g][1]=x.aoColumns[g].asSorting[0]}Ie(x),$.bSort&&Ke(x,"aoDrawCallback",function(){if(x.bSorted){var t=be(x),n={};e.each(t,function(e,t){n[t.src]=t.dir}),Ne(x,null,"order",[x,t,n]),Ce(x)}}),Ke(x,"aoDrawCallback",function(){(x.bSorted||"ssp"===Pe(x)||$.bDeferRender)&&Ie(x)},"sc"),t=C.children("caption").each(function(){this._captionSide=e(this).css("caption-side")});var n=C.children("thead");if(0===n.length&&(n=e("<thead/>").appendTo(C)),x.nTHead=n[0],0===(n=C.children("tbody")).length&&(n=e("<tbody/>").appendTo(C)),x.nTBody=n[0],0===(n=C.children("tfoot")).length&&0<t.length&&(""!==x.oScroll.sX||""!==x.oScroll.sY)&&(n=e("<tfoot/>").appendTo(C)),0===n.length||0===n.children().length?C.addClass(O.sNoFooter):0<n.length&&(x.nTFoot=n[0],F(x.aoFooter,x.nTFoot)),m.aaData)for(g=0;g<m.aaData.length;g++)b(x,m.aaData[g]);else(x.bDeferLoading||"dom"==Pe(x))&&T(x,e(x.nTBody).children("tr"));x.aiDisplay=x.aiDisplayMaster.slice(),x.bInitialised=!0,!1===v&&oe(x)},m.bStateSave?($.bStateSave=!0,Ke(x,"aoDrawCallback",xe,"state_save"),Oe(x,m,p)):p()}}),n=null,this},Ue={},Ve=/[\r\n\u2028]/g,Ye=/<.*?>/g,Ge=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Xe=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^|\-)/g,Qe=/[',$\xa3\u20ac\xa5%\u2009\u202F\u20BD\u20a9\u20BArfk\u0243\u039e]/gi,Ze=function(e){return!e||!0===e||"-"===e},Je=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},et=function(e,t){return Ue[t]||(Ue[t]=new RegExp(ut(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(Ue[t],"."):e},tt=function(e,t,n){var i="string"==typeof e;return!!Ze(e)||(t&&i&&(e=et(e,t)),n&&i&&(e=e.replace(Qe,"")),!isNaN(parseFloat(e))&&isFinite(e))},nt=function(e,t,n){return!!Ze(e)||((Ze(e)||"string"==typeof e)&&!!tt(e.replace(Ye,""),t,n)||null)},it=function(e,t,n){var o=[],r=0,a=e.length;if(n!==i)for(;r<a;r++)e[r]&&e[r][t]&&o.push(e[r][t][n]);else for(;r<a;r++)e[r]&&o.push(e[r][t]);return o},ot=function(e,t,n,o){var r=[],a=0,s=t.length;if(o!==i)for(;a<s;a++)e[t[a]][n]&&r.push(e[t[a]][n][o]);else for(;a<s;a++)r.push(e[t[a]][n]);return r},rt=function(e,t){var n=[];if(t===i){t=0;var o=e}else o=t,t=e;for(e=t;e<o;e++)n.push(e);return n},at=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&t.push(e[n]);return t},st=function(e){e:{if(!(2>e.length))for(var t=e.slice().sort(),n=t[0],i=1,o=t.length;i<o;i++){if(t[i]===n){t=!1;break e}n=t[i]}t=!0}if(t)return e.slice();t=[],o=e.length;var r,a=0;i=0;e:for(;i<o;i++){for(n=e[i],r=0;r<a;r++)if(t[r]===n)continue e;t.push(n),a++}return t};We.util={throttle:function(e,t){var n,o,r=t!==i?t:200;return function(){var t=this,a=+new Date,s=arguments;n&&a<n+r?(clearTimeout(o),o=setTimeout(function(){n=i,e.apply(t,s)},r)):(n=a,e.apply(t,s))}},escapeRegex:function(e){return e.replace(Xe,"\\$1")}};var lt=function(e,t,n){e[t]!==i&&(e[n]=e[t])}
193,dt=/\[.*?\]$/,ct=/\(\)$/,ut=We.util.escapeRegex,ht=e("<div>")[0],ft=ht.textContent!==i,pt=/<.*?>/g,mt=We.util.throttle,gt=[],vt=Array.prototype,yt=function(t){var n,i=We.settings,o=e.map(i,function(e){return e.nTable});if(!t)return[];if(t.nTable&&t.oApi)return[t];if(t.nodeName&&"table"===t.nodeName.toLowerCase()){var r=e.inArray(t,o);return-1!==r?[i[r]]:null}return t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?n=e(t):t instanceof e&&(n=t),n?n.map(function(){return-1!==(r=e.inArray(this,o))?i[r]:null}).toArray():void 0)},_t=function(t,n){if(!(this instanceof _t))return new _t(t,n);var i=[],o=function(e){(e=yt(e))&&i.push.apply(i,e)};if(e.isArray(t))for(var r=0,a=t.length;r<a;r++)o(t[r]);else o(t);this.context=st(i),n&&e.merge(this,n),this.selector={rows:null,cols:null,opts:null},_t.extend(this,this,gt)};We.Api=_t,e.extend(_t.prototype,{any:function(){return 0!==this.count()},concat:vt.concat,context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new _t(t[e],this[e]):null},filter:function(e){var t=[];if(vt.filter)t=vt.filter.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)e.call(this,this[n],n,this)&&t.push(this[n]);return new _t(this.context,t)},flatten:function(){var e=[];return new _t(this.context,e.concat.apply(e,this.toArray()))},join:vt.join,indexOf:vt.indexOf||function(e,t){t=t||0;for(var n=this.length;t<n;t++)if(this[t]===e)return t;return-1},iterator:function(e,t,n,o){var r,a,s,l=[],d=this.context,c=this.selector;"string"==typeof e&&(o=n,n=t,t=e,e=!1);var u=0;for(r=d.length;u<r;u++){var h=new _t(d[u]);if("table"===t){var f=n.call(h,d[u],u);f!==i&&l.push(f)}else if("columns"===t||"rows"===t)(f=n.call(h,d[u],this[u],u))!==i&&l.push(f);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t){var p=this[u];"column-rows"===t&&(s=It(d[u],c.opts));var m=0;for(a=p.length;m<a;m++)f=p[m],(f="cell"===t?n.call(h,d[u],f.row,f.column,u,m):n.call(h,d[u],f,u,m,s))!==i&&l.push(f)}}return l.length||o?((t=(e=new _t(d,e?l.concat.apply([],l):l)).selector).rows=c.rows,t.cols=c.cols,t.opts=c.opts,e):this},lastIndexOf:vt.lastIndexOf||function(){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(vt.map)t=vt.map.call(this,e,this);else for(var n=0,i=this.length;n<i;n++)t.push(e.call(this,this[n],n));return new _t(this.context,t)},pluck:function(e){return this.map(function(t){return t[e]})},pop:vt.pop,push:vt.push,reduce:vt.reduce||function(e,t){return c(this,e,t,0,this.length,1)},reduceRight:vt.reduceRight||function(e,t){return c(this,e,t,this.length-1,-1,-1)},reverse:vt.reverse,selector:null,shift:vt.shift,slice:function(){return new _t(this.context,this)},sort:vt.sort,splice:vt.splice,toArray:function(){return vt.slice.call(this)},to$:function(){return e(this)},toJQuery:function(){return e(this)},unique:function(){return new _t(this.context,st(this))},unshift:vt.unshift}),_t.extend=function(e,t,n){if(n.length&&t&&(t instanceof _t||t.__dt_wrapper)){var i,o=function(e,t,n){return function(){var i=t.apply(e,arguments);return _t.extend(i,i,n.methodExt),i}},r=0;for(i=n.length;r<i;r++){var a=n[r];t[a.name]="function"===a.type?o(e,a.val,a):"object"===a.type?{}:a.val,t[a.name].__dt_wrapper=!0,_t.extend(e,t[a.name],a.propExt)}}},_t.register=ze=function(t,n){if(e.isArray(t))for(var i=0,o=t.length;i<o;i++)_t.register(t[i],n);else{o=t.split(".");var r,a=gt;for(t=0,i=o.length;t<i;t++){var s=(r=-1!==o[t].indexOf("()"))?o[t].replace("()",""):o[t];e:{for(var l=0,d=a.length;l<d;l++)if(a[l].name===s){l=a[l];break e}l=null}l||(l={name:s,val:{},methodExt:[],propExt:[],type:"object"},a.push(l)),t===i-1?(l.val=n,l.type="function"==typeof n?"function":e.isPlainObject(n)?"object":"other"):a=r?l.methodExt:l.propExt}}},_t.registerPlural=qe=function(t,n,o){_t.register(t,o),_t.register(n,function(){var t=o.apply(this,arguments);return t===this?this:t instanceof _t?t.length?e.isArray(t[0])?new _t(t.context,t[0]):t[0]:i:t})};var bt=function(t,n){if("number"==typeof t)return[n[t]];var i=e.map(n,function(e){return e.nTable});return e(i).filter(t).map(function(t){return t=e.inArray(this,i),n[t]}).toArray()};ze("tables()",function(e){return e?new _t(bt(e,this.context)):this}),ze("table()",function(e){var t=(e=this.tables(e)).context;return t.length?new _t(t[0]):e}),qe("tables().nodes()","table().node()",function(){return this.iterator("table",function(e){return e.nTable},1)}),qe("tables().body()","table().body()",function(){return this.iterator("table",function(e){return e.nTBody},1)}),qe("tables().header()","table().header()",function(){return this.iterator("table",function(e){return e.nTHead},1)}),qe("tables().footer()","table().footer()",function(){return this.iterator("table",function(e){return e.nTFoot},1)}),qe("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)}),ze("draw()",function(e){return this.iterator("table",function(t){"page"===e?L(t):("string"==typeof e&&(e="full-hold"!==e),M(t,!1===e))})}),ze("page()",function(e){return e===i?this.page.info().page:this.iterator("table",function(t){de(t,e)})}),ze("page.info()",function(e){if(0===this.context.length)return i;var t=(e=this.context[0])._iDisplayStart,n=e.oFeatures.bPaginate?e._iDisplayLength:-1,o=e.fnRecordsDisplay(),r=-1===n;return{page:r?0:Math.floor(t/n),pages:r?1:Math.ceil(o/n),start:t,end:e.fnDisplayEnd(),length:n,recordsTotal:e.fnRecordsTotal(),recordsDisplay:o,serverSide:"ssp"===Pe(e)}}),ze("page.len()",function(e){return e===i?0!==this.context.length?this.context[0]._iDisplayLength:i:this.iterator("table",function(t){ae(t,e)})});var Tt=function(e,t,n){if(n){var i=new _t(e);i.one("draw",function(){n(i.ajax.json())})}if("ssp"==Pe(e))M(e,t);else{ue(e,!0);var o=e.jqXHR;o&&4!==o.readyState&&o.abort(),j(e,[],function(n){O(e);for(var i=0,o=(n=W(e,n)).length;i<o;i++)b(e,n[i]);M(e,t),ue(e,!1)})}};ze("ajax.json()",function(){var e=this.context;if(0<e.length)return e[0].json}),ze("ajax.params()",function(){var e=this.context;if(0<e.length)return e[0].oAjaxData}),ze("ajax.reload()",function(e,t){return this.iterator("table",function(n){Tt(n,!1===t,e)})}),ze("ajax.url()",function(t){var n=this.context;return t===i?0===n.length?i:(n=n[0]).ajax?e.isPlainObject(n.ajax)?n.ajax.url:n.aja
193x:n.sAjaxSource:this.iterator("table",function(n){e.isPlainObject(n.ajax)?n.ajax.url=t:n.ajax=t})}),ze("ajax.url().load()",function(e,t){return this.iterator("table",function(n){Tt(n,!1===t,e)})});var Ct=function(t,n,o,r,a){var s,l,d,c=[],u=typeof n;for(n&&"string"!==u&&"function"!==u&&n.length!==i||(n=[n]),u=0,l=n.length;u<l;u++){var h=n[u]&&n[u].split&&!n[u].match(/[\[\(:]/)?n[u].split(","):[n[u]],f=0;for(d=h.length;f<d;f++)(s=o("string"==typeof h[f]?e.trim(h[f]):h[f]))&&s.length&&(c=c.concat(s))}if((t=He.selector[t]).length)for(u=0,l=t.length;u<l;u++)c=t[u](r,a,c);return st(c)},Et=function(t){return t||(t={}),t.filter&&t.search===i&&(t.search=t.filter),e.extend({search:"none",order:"current",page:"all"},t)},wt=function(e){for(var t=0,n=e.length;t<n;t++)if(0<e[t].length)return e[0]=e[t],e[0].length=1,e.length=1,e.context=[e.context[t]],e;return e.length=0,e},It=function(t,n){var i=[],o=t.aiDisplay,r=t.aiDisplayMaster,a=n.search,s=n.order;if(n=n.page,"ssp"==Pe(t))return"removed"===a?[]:rt(0,r.length);if("current"==n)for(s=t._iDisplayStart,t=t.fnDisplayEnd();s<t;s++)i.push(o[s]);else if("current"==s||"applied"==s){if("none"==a)i=r.slice();else if("applied"==a)i=o.slice();else if("removed"==a){var l={};for(s=0,t=o.length;s<t;s++)l[o[s]]=null;i=e.map(r,function(e){return l.hasOwnProperty(e)?null:e})}}else if("index"==s||"original"==s)for(s=0,t=t.aoData.length;s<t;s++)"none"==a?i.push(s):(-1===(r=e.inArray(s,o))&&"removed"==a||0<=r&&"applied"==a)&&i.push(s);return i},Dt=function(t,n,o){var r;return Ct("row",n,function(n){var a=Je(n),s=t.aoData;if(null!==a&&!o)return[a];if(r||(r=It(t,o)),null!==a&&-1!==e.inArray(a,r))return[a];if(null===n||n===i||""===n)return r;if("function"==typeof n)return e.map(r,function(e){var t=s[e];return n(e,t._aData,t.nTr)?e:null});if(n.nodeName){a=n._DT_RowIndex;var l=n._DT_CellIndex;return a!==i?s[a]&&s[a].nTr===n?[a]:[]:l?s[l.row]&&s[l.row].nTr===n.parentNode?[l.row]:[]:(a=e(n).closest("*[data-dt-row]")).length?[a.data("dt-row")]:[]}return"string"==typeof n&&"#"===n.charAt(0)&&(a=t.aIds[n.replace(/^#/,"")])!==i?[a.idx]:(a=at(ot(t.aoData,r,"nTr")),e(a).filter(n).map(function(){return this._DT_RowIndex}).toArray())},t,o)};ze("rows()",function(t,n){t===i?t="":e.isPlainObject(t)&&(n=t,t=""),n=Et(n);var o=this.iterator("table",function(e){return Dt(e,t,n)},1);return o.selector.rows=t,o.selector.opts=n,o}),ze("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||i},1)}),ze("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return ot(e.aoData,t,"_aData")},1)}),qe("rows().cache()","row().cache()",function(e){return this.iterator("row",function(t,n){return t=t.aoData[n],"search"===e?t._aFilterData:t._aSortData},1)}),qe("rows().invalidate()","row().invalidate()",function(e){return this.iterator("row",function(t,n){S(t,n,e)})}),qe("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)}),qe("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,i=0,o=n.length;i<o;i++)for(var r=0,a=this[i].length;r<a;r++){var s=n[i].rowIdFn(n[i].aoData[this[i][r]]._aData);t.push((!0===e?"#":"")+s)}return new _t(n,t)}),qe("rows().remove()","row().remove()",function(){var e=this;return this.iterator("row",function(t,n,o){var r,a,s=t.aoData,l=s[n];s.splice(n,1);var d=0;for(r=s.length;d<r;d++){var c=s[d],u=c.anCells;if(null!==c.nTr&&(c.nTr._DT_RowIndex=d),null!==u)for(c=0,a=u.length;c<a;c++)u[c]._DT_CellIndex.row=d}k(t.aiDisplayMaster,n),k(t.aiDisplay,n),k(e[o],n,!1),0<t._iRecordsDisplay&&t._iRecordsDisplay--,Le(t),(n=t.rowIdFn(l._aData))!==i&&delete t.aIds[n]}),this.iterator("table",function(e){for(var t=0,n=e.aoData.length;t<n;t++)e.aoData[t].idx=t}),this}),ze("rows.add()",function(t){var n=this.iterator("table",function(e){var n,i=[],o=0;for(n=t.length;o<n;o++){var r=t[o];r.nodeName&&"TR"===r.nodeName.toUpperCase()?i.push(T(e,r)[0]):i.push(b(e,r))}return i},1),i=this.rows(-1);return i.pop(),e.merge(i,n),i}),ze("row()",function(e,t){return wt(this.rows(e,t))}),ze("row().data()",function(t){var n=this.context;if(t===i)return n.length&&this.length?n[0].aoData[this[0]]._aData:i;var o=n[0].aoData[this[0]];return o._aData=t,e.isArray(t)&&o.nTr.id&&D(n[0].rowId)(t,o.nTr.id),S(n[0],this[0],"data"),this}),ze("row().node()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]].nTr||null}),ze("row.add()",function(t){t instanceof e&&t.length&&(t=t[0]);var n=this.iterator("table",function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?T(e,t)[0]:b(e,t)});return this.row(n[0])});
193var xt=function(t,n,i,o){var r=[],a=function(n,i){if(e.isArray(n)||n instanceof e)for(var o=0,s=n.length;o<s;o++)a(n[o],i);else n.nodeName&&"tr"===n.nodeName.toLowerCase()?r.push(n):(o=e("<tr><td/></tr>").addClass(i),e("td",o).addClass(i).html(n)[0].colSpan=g(t),r.push(o[0]))};a(i,o),n._details&&n._details.detach(),n._details=e(r),n._detailsShow&&n._details.insertAfter(n.nTr)},Ot=function(e,t){var n=e.context;n.length&&(e=n[0].aoData[t!==i?t:e[0]])&&e._details&&(e._details.remove(),e._detailsShow=i,e._details=i)},kt=function(e,t){var n=e.context;n.length&&e.length&&((e=n[0].aoData[e[0]])._details&&((e._detailsShow=t)?e._details.insertAfter(e.nTr):e._details.detach(),St(n[0])))},St=function(e){var t=new _t(e),n=e.aoData;t.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<it(n,"_details").length&&(t.on("draw.dt.DT_details",function(i,o){e===o&&t.rows({page:"current"}).eq(0).each(function(e){(e=n[e])._detailsShow&&e._details.insertAfter(e.nTr)})}),t.on("column-visibility.dt.DT_details",function(t,i,o,r){if(e===i)for(i=g(i),o=0,r=n.length;o<r;o++)(t=n[o])._details&&t._details.children("td[colspan]").attr("colspan",i)}),t.on("destroy.dt.DT_details",function(i,o){if(e===o)for(i=0,o=n.length;i<o;i++)n[i]._details&&Ot(t,i)}))};ze("row().child()",function(e,t){var n=this.context;return e===i?n.length&&this.length?n[0].aoData[this[0]]._details:i:(!0===e?this.child.show():!1===e?Ot(this):n.length&&this.length&&xt(n[0],n[0].aoData[this[0]],e,t),this)}),ze(["row().child.show()","row().child().show()"],function(){return kt(this,!0),this}),ze(["row().child.hide()","row().child().hide()"],function(){return kt(this,!1),this}),ze(["row().child.remove()","row().child().remove()"],function(){return Ot(this),this}),ze("row().child.isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1});var Rt=/^([^:]+):(name|visIdx|visible)$/,$t=function(e,t,n,i,o){n=[],i=0;for(var r=o.length;i<r;i++)n.push(C(e,o[i],t));return n},At=function(t,n,i){var o=t.aoColumns,r=it(o,"sName"),a=it(o,"nTh");return Ct("column",n,function(n){var s=Je(n);if(""===n)return rt(o.length);if(null!==s)return[0<=s?s:o.length+s];if("function"==typeof n){var l=It(t,i);return e.map(o,function(e,i){return n(i,$t(t,i,0,0,l),a[i])?i:null})}var d="string"==typeof n?n.match(Rt):"";if(d)switch(d[2]){case"visIdx":case"visible":if(0>(s=parseInt(d[1],10))){var c=e.map(o,function(e,t){return e.bVisible?t:null});return[c[c.length+s]]}return[p(t,s)];case"name":return e.map(r,function(e,t){return e===d[1]?t:null});default:return[]}return n.nodeName&&n._DT_CellIndex?[n._DT_CellIndex.column]:(s=e(a).filter(n).map(function(){return e.inArray(this,a)}).toArray()).length||!n.nodeName?s:(s=e(n).closest("*[data-dt-column]")).length?[s.data("dt-column")]:[]},t,i)};ze("columns()",function(t,n){t===i?t="":e.isPlainObject(t)&&(n=t,t=""),n=Et(n);var o=this.iterator("table",function(e){return At(e,t,n)},1);return o.selector.cols=t,o.selector.opts=n,o}),qe("columns().header()","column().header()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),qe("columns().footer()","column().footer()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),qe("columns().data()","column().data()",function(){return this.iterator("column-rows",$t,1)}),qe("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),qe("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(t,n,i,o,r){return ot(t.aoData,r,"search"===e?"_aFilterData":"_aSortData",n)},1)}),qe("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,i,o){return ot(e.aoData,o,"anCells",t)},1)}),qe("columns().visible()","column().visible()",function(t,n){var o=this,r=this.iterator("column",function(n,o){if(t===i)return n.aoColumns[o].bVisible;var r,a=n.aoColumns,s=a[o],l=n.aoData;if(t!==i&&s.bVisible!==t){if(t){var d=e.inArray(!0,it(a,"bVisible"),o+1);for(a=0,r=l.length;a<r;a++){var c=l[a].nTr;n=l[a].anCells,c&&c.insertBefore(n[o],n[d]||null)}}else e(it(n.aoData,"anCells",o)).detach();s.bVisible=t}});return t!==i&&this.iterator("table",function(r){N(r,r.aoHeader),N(r,r.aoFooter),r.aiDisplay.length||e(r.nTBody).find("td[colspan]").attr("colspan",g(r)),xe(r),o.iterator("column",function(e,i){Ne(e,null,"column-visibility",[e,i,t,n])}),(n===i||n)&&o.columns.adjust()}),r}),qe("columns().indexes()","column().index()",function(e){return this.iterator("column",function(t,n){return"visible"===e?m(t,n):n},1)}),ze("columns.adjust()",function(){return this.iterator("table",function(e){f(e)},1)}),ze("column.index()",function(e,t){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===e||"toData"===e)return p(n,t);if("fromData"===e||"toVisible"===e)return m(n,t)}}),ze("column()",function(e,t){return wt(this.columns(e,t))});var Kt=function(t,n,o){var r,a,s,l,d,c,u,h=t.aoData,f=It(t,o),p=at(ot(h,f,"anCells")),m=e([].concat.apply([],p)),g=t.aoColumns.length;return Ct("cell",n,function(n){var o="function"==typeof n;if(null===n||n===i||o){for(a=[],s=0,l=f.length;s<l;s++)for(r=f[s],d=0;d<g;d++)c={row:r,column:d},o?(u=h[r],n(c,C(t,r,d),u.anCells?u.anCells[d]:null)&&a.push(c)):a.push(c);return a}return e.isPlainObject(n)?n.column!==i&&n.row!==i&&-1!==e.inArray(n.row,f)?[n]:[]:(o=m.filter(n).map(function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}}
193).toArray()).length||!n.nodeName?o:(u=e(n).closest("*[data-dt-row]")).length?[{row:u.data("dt-row"),column:u.data("dt-column")}]:[]},t,o)};ze("cells()",function(t,n,o){if(e.isPlainObject(t)&&(t.row===i?(o=t,t=null):(o=n,n=null)),e.isPlainObject(n)&&(o=n,n=null),null===n||n===i)return this.iterator("table",function(e){return Kt(e,t,Et(o))});var r,a,s,l,d=o?{page:o.page,order:o.order,search:o.search}:{},c=this.columns(n,d),u=this.rows(t,d);return d=this.iterator("table",function(e,t){for(e=[],r=0,a=u[t].length;r<a;r++)for(s=0,l=c[t].length;s<l;s++)e.push({row:u[t][r],column:c[t][s]});return e},1),d=o&&o.selected?this.cells(d,o):d,e.extend(d.selector,{cols:n,rows:t,opts:o}),d}),qe("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){return(e=e.aoData[t])&&e.anCells?e.anCells[n]:i},1)}),ze("cells().data()",function(){return this.iterator("cell",function(e,t,n){return C(e,t,n)},1)}),qe("cells().cache()","cell().cache()",function(e){return e="search"===e?"_aFilterData":"_aSortData",this.iterator("cell",function(t,n,i){return t.aoData[n][e][i]},1)}),qe("cells().render()","cell().render()",function(e){return this.iterator("cell",function(t,n,i){ 194return C(t,n,i,e)},1)}),qe("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:m(e,n)}},1)}),qe("cells().invalidate()","cell().invalidate()",function(e){return this.iterator("cell",function(t,n,i){S(t,n,e,i)})}),ze("cell()",function(e,t,n){return wt(this.cells(e,t,n))}),ze("cell().data()",function(e){var t=this.context,n=this[0];return e===i?t.length&&n.length?C(t[0],n[0].row,n[0].column):i:(E(t[0],n[0].row,n[0].column,e),S(t[0],n[0].row,"data",n[0].column),this)}),ze("order()",function(t,n){var o=this.context;return t===i?0!==o.length?o[0].aaSorting:i:("number"==typeof t?t=[[t,n]]:t.length&&!e.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",function(e){e.aaSorting=t.slice()}))}),ze("order.listener()",function(e,t,n){return this.iterator("table",function(i){we(i,e,t,n)})}),ze("order.fixed()",function(t){if(!t){var n=this.context;return n=n.length?n[0].aaSortingFixed:i,e.isArray(n)?{pre:n}:n}return this.iterator("table",function(n){n.aaSortingFixed=e.extend(!0,{},t)})}),ze(["columns().order()","column().order()"],function(t){var n=this;return this.iterator("table",function(i,o){var r=[];e.each(n[o],function(e,n){r.push([n,t])}),i.aaSorting=r})}),ze("search()",function(t,n,o,r){var a=this.context;return t===i?0!==a.length?a[0].oPreviousSearch.sSearch:i:this.iterator("table",function(i){i.oFeatures.bFilter&&V(i,e.extend({},i.oPreviousSearch,{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===o||o,bCaseInsensitive:null===r||r}),1)})}),qe("columns().search()","column().search()",function(t,n,o,r){return this.iterator("column",function(a,s){var l=a.aoPreSearchCols;if(t===i)return l[s].sSearch;a.oFeatures.bFilter&&(e.extend(l[s],{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===o||o,bCaseInsensitive:null===r||r}),V(a,a.oPreviousSearch,1))})}),ze("state()",function(){return this.context.length?this.context[0].oSavedState:null}),ze("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})}),ze("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),ze("state.save()",function(){return this.iterator("table",function(e){xe(e)})}),We.versionCheck=We.fnVersionCheck=function(e){for(var t,n,i=We.version.split("."),o=0,r=(e=e.split(".")).length;o<r;o++)if((t=parseInt(i[o],10)||0)!==(n=parseInt(e[o],10)||0))return t>n;return!0},We.isDataTable=We.fnIsDataTable=function(t){var n=e(t).get(0),i=!1;return t instanceof We.Api||(e.each(We.settings,function(t,o){t=o.nScrollHead?e("table",o.nScrollHead)[0]:null;var r=o.nScrollFoot?e("table",o.nScrollFoot)[0]:null;o.nTable!==n&&t!==n&&r!==n||(i=!0)}),i)},We.tables=We.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var i=e.map(We.settings,function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable});return n?new _t(i):i},We.camelToHungarian=r,ze("$()",function(t,n){return n=this.rows(n).nodes(),n=e(n),e([].concat(n.filter(t).toArray(),n.find(t).toArray()))}),e.each(["on","one","off"],function(t,n){ze(n+"()",function(){var t=Array.prototype.slice.call(arguments);t[0]=e.map(t[0].split(/\s/),function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" ");var i=e(this.tables().nodes());return i[n].apply(i,t),this})}),ze("clear()",function(){return this.iterator("table",function(e){O(e)})}),ze("settings()",function(){return new _t(this.context,this.context)}),ze("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),ze("data()",function(){return this.iterator("table",function(e){return it(e.aoData,"_aData")}).flatten()}),ze("destroy()",function(n){return n=n||!1,this.iterator("table",function(i){var o=i.nTableWrapper.parentNode,r=i.oClasses,a=i.nTable,s=i.nTBody,l=i.nTHead,d=i.nTFoot,c=e(a);s=e(s);var u,h=e(i.nTableWrapper),f=e.map(i.aoData,function(e){return e.nTr});i.bDestroying=!0,Ne(i,"aoDestroyCallback","destroy",[i]),n||new _t(i).columns().visible(!0),h.off(".DT").find(":not(tbody *)").off(".DT"),e(t).off(".DT-"+i.sInstance),a!=l.parentNode&&(c.children("thead").detach(),c.append(l)),d&&a!=d.parentNode&&(c.children("tfoot").detach(),c.append(d)),i.aaSorting=[],i.aaSortingFixed=[],Ie(i),e(f).removeClass(i.asStripeClasses.join(" ")),e("th, td",l).removeClass(r.sSortable+" "+r.sSortableAsc+" "+r.sSortableDesc+" "+r.sSortableNone),s.children().detach(),s.append(f),c[l=n?"remove":"detach"](),h[l](),!n&&o&&(o.insertBefore(a,i.nTableRe
vendor: 4,815 bytes, line 194
194insertBefore),c.css("width",i.sDestroyWidth).removeClass(r.sTable),(u=i.asDestroyStripes.length)&&s.children().each(function(t){e(this).addClass(i.asDestroyStripes[t%u])})),-1!==(o=e.inArray(i,We.settings))&&We.settings.splice(o,1)})}),e.each(["column","row","cell"],function(e,t){ze(t+"s().every()",function(e){var n=this.selector.opts,o=this;return this.iterator(t,function(r,a,s,l,d){e.call(o[t](a,"cell"===t?s:n,"cell"===t?n:i),a,s,l,d)})})}),ze("i18n()",function(t,n,o){var r=this.context[0];return(t=I(t)(r.oLanguage))===i&&(t=n),o!==i&&e.isPlainObject(t)&&(t=t[o]!==i?t[o]:t._),t.replace("%d",o)}),We.version="1.10.20",We.settings=[],We.models={},We.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},We.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},We.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},We.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(n){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},We.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(We.defaults),We.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(We.defaults.column),We.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:i,oAjaxD
194ata:i,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Pe(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Pe(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,i=this.aiDisplay.length,o=this.oFeatures,r=o.bPaginate;return o.bServerSide?!1===r||-1===e?t+i:Math.min(t+e,this._iRecordsDisplay):!r||n>i||-1===e?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},We.ext=He={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:We.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:We.version},e.extend(He,{afnFiltering:He.search,aTypes:He.type.detect,ofnSearch:He.type.search,oSort:He.type.order,afnSortData:He.order,aoFeatures:He.feature,oApi:He.internal,oStdClasses:He.classes,oPagination:He.pager}),e.extend(We.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Nt=We.ext.pager;e.extend(Nt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[Fe(e,t)]},simple_numbers:function(e,t){return["previous",Fe(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Fe(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Fe(e,t),"last"]},_numbers:Fe,numbers_length:7}),e.extend(!0,We.ext.renderer,{pageButton:{_:function(t,o,r,a,s,l){var d,c,u=t.oClasses,h=t.oLanguage.oPaginate,f=t.oLanguage.oAria.paginate||{},p=0,m=function(n,i){var o,a=u.sPageButtonDisabled,g=function(e){de(t,e.data.action,!0)},v=0;for(o=i.length;v<o;v++){var y=i[v];if(e.isArray(y)){var _=e("<"+(y.DT_el||"div")+"/>").appendTo(n);m(_,y)}else{switch(d=null,c=y,_=t.iTabIndex,y){case"ellipsis":n.append('<span class="ellipsis">…</span>');break;case"first":d=h.sFirst,0===s&&(_=-1,c+=" "+a);break;case"previous":d=h.sPrevious,0===s&&(_=-1,c+=" "+a);break;case"next":d=h.sNext,s===l-1&&(_=-1,c+=" "+a);break;case"last":d=h.sLast,s===l-1&&(_=-1,c+=" "+a);break;default:d=y+1,c=s===y?u.sPageButtonActive:""}null!==d&&(Ae(_=e("<a>",{"class":u.sPageButton+" "+c,"aria-controls":t.sTableId,"aria-label":f[y],"data-dt-idx":p,tabindex:_,id:0===r&&"string"==typeof y?t.sTableId+"_"+y:null}).html(d).appendTo(n),{action:y},g),p++)}}};try{var g=e(o).find(n.activeElement).data("dt-idx")}catch(v){}m(e(o).empty(),a),g!==i&&e(o).find("[data-dt-idx="+g+"]").focus()}}}),e.extend(We.ext.type.detect,[function(e,t){return t=t.oLanguage.sDecimal,tt(e,t)?"num"+t:null},function(e,t){return(!e||e instanceof Date||Ge.test(e))&&(null!==(t=Date.parse(e))&&!isNaN(t)||Ze(e))?"date":null},function(e,t){return t=t.oLanguage.sDecimal,tt(e,t,!0)?"num-fmt"+t:null},function(e,t){return t=t.oLanguage.sDecimal,nt(e,t)?"html-num"+t:null},function(e,t){return t=t.oLanguage.sDecimal,nt(e,t,!0)?"html-num-fmt"+t:null},function(e){return Ze(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(We.ext.type.search,{html:function(e){return Ze(e)?e:"string"==typeof e?e.replace(Ve," ").replace(Ye,""):""},string:function(e){return Ze(e)?e:"string"==typeof e?e.replace(Ve," "):e}});var Lt=function(e,t,n,i){return 0===e||e&&"-"!==e?(t&&(e=et(e,t)),e.replace&&(n&&(e=e.replace(n,"")),i&&(e=e.replace(i,""))),1*e):-Infinity};e.extend(He.type.order,{"date-pre":function(e){return e=Date.parse(e),isNaN(e)?-Infinity:e}
194,"html-pre":function(e){return Ze(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return Ze(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e<t?-1:e>t?1:0},"string-desc":function(e,t){return e<t?1:e>t?-1:0}}),Be(""),e.extend(!0,We.ext.renderer,{header:{_:function(t,n,i,o){e(t.nTable).on("order.dt.DT",function(e,r,a,s){t===r&&(e=i.idx,n.removeClass(i.sSortingClass+" "+o.sSortAsc+" "+o.sSortDesc).addClass("asc"==s[e]?o.sSortAsc:"desc"==s[e]?o.sSortDesc:i.sSortingClass))})},jqueryui:function(t,n,i,o){e("<div/>").addClass(o.sSortJUIWrapper).append(n.contents()).append(e("<span/>").addClass(o.sSortIcon+" "+i.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",function(e,r,a,s){t===r&&(e=i.idx,n.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==s[e]?o.sSortAsc:"desc"==s[e]?o.sSortDesc:i.sSortingClass),n.find("span."+o.sSortIcon).removeClass(o.sSortJUIAsc+" "+o.sSortJUIDesc+" "+o.sSortJUI+" "+o.sSortJUIAscAllowed+" "+o.sSortJUIDescAllowed).addClass("asc"==s[e]?o.sSortJUIAsc:"desc"==s[e]?o.sSortJUIDesc:i.sSortingClassJUI))})}}});var Mt=function(e){return"string"==typeof e?e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):e};return We.render={number:function(e,t,n,i,o){return{display:function(r){if("number"!=typeof r&&"string"!=typeof r)return r;var a=0>r?"-":"",s=parseFloat(r);return isNaN(s)?Mt(r):(s=s.toFixed(n),r=Math.abs(s),s=parseInt(r,10),r=n?t+(r-s).toFixed(n).substring(2):"",a+(i||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+r+(o||""))}}},text:function(){return{display:Mt,filter:Mt}}},e.extend(We.ext.internal,{_fnExternApiFunc:je,_fnBuildAjax:j,_fnAjaxUpdate:H,_fnAjaxParameters:z,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:W,_fnAddColumn:u,_fnColumnOptions:h,_fnAdjustColumnSizing:f,_fnVisibleToColumnIndex:p,_fnColumnIndexToVisible:m,_fnVisbleColumns:g,_fnGetColumns:v,_fnColumnTypes:y,_fnApplyColumnDefs:_,_fnHungarianMap:o,_fnCamelToHungarian:r,_fnLanguageCompat:a,_fnBrowserDetect:d,_fnAddData:b,_fnAddTr:T,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==i?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,n,i){return e.inArray(i,t.aoData[n].anCells)},_fnGetCellData:C,_fnSetCellData:E,_fnSplitObjNotation:w,_fnGetObjectDataFn:I,_fnSetObjectDataFn:D,_fnGetDataMaster:x,_fnClearTable:O,_fnDeleteIndex:k,_fnInvalidate:S,_fnGetRowElements:R,_fnCreateTr:$,_fnBuildHead:K,_fnDrawHead:N,_fnDraw:L,_fnReDraw:M,_fnAddOptionsHtml:P,_fnDetectHeader:F,_fnGetUniqueThs:B,_fnFeatureHtmlFilter:U,_fnFilterComplete:V,_fnFilterCustom:Y,_fnFilterColumn:G,_fnFilter:X,_fnFilterCreateSearch:Q,_fnEscapeRegex:ut,_fnFilterData:Z,_fnFeatureHtmlInfo:te,_fnUpdateInfo:ne,_fnInfoMacros:ie,_fnInitialise:oe,_fnInitComplete:re,_fnLengthChange:ae,_fnFeatureHtmlLength:se,_fnFeatureHtmlPaginate:le,_fnPageChange:de,_fnFeatureHtmlProcessing:ce,_fnProcessingDisplay:ue,_fnFeatureHtmlTable:he,_fnScrollDraw:fe,_fnApplyToChildren:pe,_fnCalculateColumnWidths:me,_fnThrottle:mt,_fnConvertToWidth:ge,_fnGetWidestNode:ve,_fnGetMaxLenString:ye,_fnStringToCss:_e,_fnSortFlatten:be,_fnSort:Te,_fnSortAria:Ce,_fnSortListener:Ee,_fnSortAttachListener:we,_fnSortingClasses:Ie,_fnSortData:De,_fnSaveState:xe,_fnLoadState:Oe,_fnSettingsFromNode:ke,_fnLog:Se,_fnMap:Re,_fnBindAction:Ae,_fnCallbackReg:Ke,_fnCallbackFire:Ne,_fnLengthOverflow:Le,_fnRenderer:Me,_fnDataSource:Pe,_fnRowAttributes:A,_fnExtend:$e,_fnCalculateEnd:function(){}}),e.fn.dataTable=We,We.$=e,e.fn.dataTableSettings=We.settings,e.fn.dataTableExt=We.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(We,function(t,n){e.fn.DataTable[t]=n}),e.fn.dataTable}); 195/*! 196 Copyright 2009-2021 SpryMedia Ltd. 197 198 This source file is free software, available under the following license: 199 MIT license - http://datatables.net/license/mit 200 201 This source file is distributed in the hope that it will be useful, but 202 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 203 or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. 204 205 For details please refer to: http://www.datatables.net 206 FixedHeader 3.2.2
207 ©2009-2021 SpryMedia Ltd - datatables.net/license 208 */ 209var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,o=0;o<i;o++){var r=e[o];if(t.call(n,r,o,e))return{i:o,v:r}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype?e:(e[t]=n.value,e)},$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(e,t){var n=$jscomp.propertyToPolyfillSymbol[t];return null==n?e[t]:void 0!==(n=e[n])?n:e[t]};$jscomp.polyfill=function(e,t,n,i){t&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,t,n,i):$jscomp.polyfillUnisolated(e,t,n,i))},$jscomp.polyfillUnisolated=function(e,t,n,i){for(n=$jscomp.global,e=e.split("."),i=0;i<e.length-1;i++){var o=e[i];if(!(o in n))return;n=n[o]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:t})},$jscomp.polyfillIsolated=function(e,t,n,i){var o=e.split(".");e=1===o.length,i=o[0],i=!e&&i in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var r=0;r<o.length-1;r++){var a=o[r];if(!(a in i))return;i=i[a]}o=o[o.length-1],null!=(t=t(n=$jscomp.IS_SYMBOL_NATIVE&&"es6"===n?i[o]:null))&&(e?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==n&&($jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+o,o=$jscomp.propertyToPolyfillSymbol[o],$jscomp.defineProperty(i,o,{configurable:!0,writable:!0,value:t})))},$jscomp.polyfill("Array.prototype.find",function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}},"es6","es3"),function(e){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return e(t,window,document)}):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n&&n.fn.dataTable||(n=require("datatables.net")(t,n).$),e(n,t,t.document)}:e(jQuery,window,document)}(function(e,t,n,i){var o=e.fn.dataTable,r=0,a=function(n,i){if(!(this instanceof a))throw"FixedHeader must be initialised with the 'new' keyword.";if(!0===i&&(i={}),n=new o.Api(n),this.c=e.extend(!0,{},a.defaults,i),this.s={dt:n,position:{theadTop:0,tbodyTop:0,tfootTop:0,tfootBottom:0,width:0,left:0,tfootHeight:0,theadHeight:0,windowHeight:e(t).height(),visible:!0},headerMode:null,footerMode:null,autoWidth:n.settings()[0].oFeatures.bAutoWidth,namespace:".dtfc"+r++,scrollLeft:{header:-1,footer:-1},enable:!0},this.dom={floatingHeader:null,thead:e(n.table().header()),tbody:e(n.table().body()),tfoot:e(n.table().footer()),header:{host:null,floating:null,floatingParent:e('<div class="dtfh-floatingparent">'),placeholder:null},footer:{host:null,floating:null,floatingParent:e('<div class="dtfh-floatingparent">'),placeholder:null}},this.dom.header.host=this.dom.thead.parent(),this.dom.footer.host=this.dom.tfoot.parent(),(n=n.settings()[0])._fixedHeader)throw"FixedHeader already initialised on table "+n.nTable.id;n._fixedHeader=this,this._constructor()};return e.extend(a.prototype,{destroy:function(){var n=this.dom;this.s.dt.off(".dtfc"),e(t).off(this.s.namespace),n.header.rightBlocker&&n.header.rightBlocker.remove(),n.header.leftBlocker&&n.header.leftBlocker.remove(),n.footer.rightBlocker&&n.footer.rightBlocker.remove(),n.footer.leftBlocker&&n.footer.leftBlocker.remove(),this.c.header&&this._modeChange("in-place","header",!0),this.c.footer&&n.tfoot.length&&this._modeChange("in-place","footer",!0)},enable:function(e,t){this.s.enable=e,(t||t===i)&&(this._positions(),this._scroll(!0))},enabled:function(){return this.s.enable},headerOffset:function(e){return e!==i&&(this.c.headerOffset=e,this.update()),this.c.headerOffset},footerOffset:function(e){return e!==i&&(this.c.footerOffset=e,this.update()),this.c.footerOffset},update:function(t){var n=this.s.dt.table().node();e(n).is(":visible")?this.enable(!0,!1):this.enable(!1,!1),0!==e(n).children("thead").length&&(this._positions(),this._scroll(t===i||t))},_constructor:function(){var n=this,i=this.s.dt;e(t).on("scroll"+this.s.namespace,function(){n._scroll()}).on("resize"+this.s.namespace,o.util.throttle(function(){n.s.position.windowHeight=e(t).height(),n.update()},50));var r=e(".fh-fixedHeader");!this.c.headerOffset&&r.length&&(this.c.headerOffset=r.outerHeight()),r=e(".fh-fixedFooter"),!this.c.footerOffset&&r.length&&(this.c.footerOffset=r.outerHeight()),i.on("column-reorder.dt.dtfc column-visibility.dt.dtfc column-sizing.dt.dtfc responsive-display.dt.dtfc",function(){n.update()}).on("draw.dt.dtfc",function(e,t){n.update(t!==i.settings()[0])}),i.on("destroy.dtfc",function(){n.destroy()}),this._positions(),this._scroll()},_clone:function(t,i){var o=this,r=this.s.dt,a=this.dom[t],s="header"===t?this.dom.thead:this.dom.tfoot;if("footer"!==t||!this._scrollEnabled())if(!i&&a.floating)a.floating.removeClass("fixedHeader-floating fixedHeader-locked");else{a.floating&&(null!==a.placeholder&&a.placeholder.remove(),this._unsize(t),a.floating.children().detach(),a.floating.remove());var l=e(r.table().node()),d=e(l.parent()),c=this._scrollEnabled();i=e(n).scrollLeft();var u=e(n).scrollTop();a.floating=e(r.table().node().cloneNode(!1)).attr("aria-hidden","true").css({"table-layout":"fixed",top:0,left:0}).removeAttr("id").append(s),a.floatingParent.css({width:d.width(),overflow:"hidden",height:"fit-content",position:"fixed",left:c?l.offset().left+d.scrollLeft():0}).css("header"===t?{top:this.c.headerOffset,bottom:""}:{top:"",bottom:this.c.footerOffset}).addClass("footer"===t?"dtfh-floatingparentfoot":"dtfh-floatingparenthead").append(a.floating).appendTo("body"),this._stickyPosition(a.floating,"-"),(t=function(){var e=d.scrollLeft();
209o.s.scrollLeft={footer:e,header:e},a.floatingParent.scrollLeft(o.s.scrollLeft.header)})(),d.off("scroll.dtfh").on("scroll.dtfh",t),a.placeholder=s.clone(!1),a.placeholder.find("*[id]").removeAttr("id"),a.host.prepend(a.placeholder),this._matchWidths(a.placeholder,a.floating),e(n).scrollTop(u).scrollLeft(i)}},_stickyPosition:function(t,n){if(this._scrollEnabled()){var i=this,o="rtl"===e(i.s.dt.table().node()).css("direction");t.find("th").each(function(){if("sticky"===e(this).css("position")){var t=e(this).css("right"),r=e(this).css("left");"auto"===t||o?"auto"!==r&&o&&(t=+r.replace(/px/g,"")+("-"===n?-1:1)*i.s.dt.settings()[0].oBrowser.barWidth,e(this).css("left",0<t?t:0)):(t=+t.replace(/px/g,"")+("-"===n?-1:1)*i.s.dt.settings()[0].oBrowser.barWidth,e(this).css("right",0<t?t:0))}})}},_matchWidths:function(t,n){var i=function(n){return e(n,t).map(function(){return 1*e(this).css("width").replace(/[^\d\.]/g,"")}).toArray()},o=function(t,i){e(t,n).each(function(t){e(this).css({width:i[t],minWidth:i[t]})})},r=i("th");i=i("td"),o("th",r),o("td",i)},_unsize:function(t){var n=this.dom[t].floating;n&&("footer"===t||"header"===t&&!this.s.autoWidth)?e("th, td",n).css({width:"",minWidth:""}):n&&"header"===t&&e("th, td",n).css("min-width","")},_horizontal:function(t,n){var i=this.dom[t],o=this.s.scrollLeft;if(i.floating&&o[t]!==n){if(this._scrollEnabled()){var r=e(e(this.s.dt.table().node()).parent()).scrollLeft();i.floating.scrollLeft(r),i.floatingParent.scrollLeft(r)}o[t]=n}},_modeChange:function(i,o,r){var a=this.dom[o],s=this.s.position,l=this._scrollEnabled();if("footer"!==o||!l){var d=function(e){a.floating.attr("style",function(t,n){return(n||"")+"width: "+e+"px !important;"}),l||a.floatingParent.attr("style",function(t,n){return(n||"")+"width: "+e+"px !important;"})},c=this.dom["footer"===o?"tfoot":"thead"],u=e.contains(c[0],n.activeElement)?n.activeElement:null,h=e(e(this.s.dt.table().node()).parent());if("in-place"===i)a.placeholder&&(a.placeholder.remove(),a.placeholder=null),this._unsize(o),"header"===o?a.host.prepend(c):a.host.append(c),a.floating&&(a.floating.remove(),a.floating=null,this._stickyPosition(a.host,"+")),a.floatingParent&&a.floatingParent.remove(),e(e(a.host.parent()).parent()).scrollLeft(h.scrollLeft());else if("in"===i){this._clone(o,r),c=h.offset(),r=e(n).scrollTop();var f=e(t).height();f=r+f;var p=l?c.top:s.tbodyTop;h=l?c.top+h.outerHeight():s.tfootTop,r="footer"===o?p>f?s.tfootHeight:p+s.tfootHeight-f:r+this.c.headerOffset+s.theadHeight-h,h="header"===o?"top":"bottom",r=this.c[o+"Offset"]-(0<r?r:0),a.floating.addClass("fixedHeader-floating"),a.floatingParent.css(h,r).css({left:s.left,height:"header"===o?s.theadHeight:s.tfootHeight,"z-index":2}).append(a.floating),d(s.width),"footer"===o&&a.floating.css("top","")}else"below"===i?(this._clone(o,r),a.floating.addClass("fixedHeader-locked"),a.floatingParent.css({position:"absolute",top:s.tfootTop-s.theadHeight,left:s.left+"px"}),d(s.width)):"above"===i&&(this._clone(o,r),a.floating.addClass("fixedHeader-locked"),a.floatingParent.css({position:"absolute",top:s.tbodyTop,left:s.left+"px"}),d(s.width));u&&u!==n.activeElement&&setTimeout(function(){u.focus()},10),this.s.scrollLeft.header=-1,this.s.scrollLeft.footer=-1,this.s[o+"Mode"]=i}},_positions:function(){var t=this.s.dt,n=t.table(),i=this.s.position,o=this.dom;n=e(n.node());var r=this._scrollEnabled(),a=e(t.table().header());t=e(t.table().footer()),o=o.tbody;var s=n.parent();i.visible=n.is(":visible"),i.width=n.outerWidth(),i.left=n.offset().left,i.theadTop=a.offset().top,i.tbodyTop=r?s.offset().top:o.offset().top,i.tbodyHeight=r?s.outerHeight():o.outerHeight(),i.theadHeight=a.outerHeight(),i.theadBottom=i.theadTop+i.theadHeight,t.length?(i.tfootTop=i.tbodyTop+i.tbodyHeight,i.tfootBottom=i.tfootTop+t.outerHeight(),i.tfootHeight=t.outerHeight()):(i.tfootTop=i.tbodyTop+o.outerHeight(),i.tfootBottom=i.tfootTop,i.tfootHeight=i.tfootTop)},_scroll:function(o){if(!this.s.dt.settings()[0].bDestroying){var r=this._scrollEnabled(),a=e(this.s.dt.table().node()).parent(),s=a.offset(),l=a.outerHeight(),d=e(n).scrollLeft(),c=e(n).scrollTop(),u=e(t).height(),h=u+c,f=this.s.position,p=r?s.top:f.tbodyTop,m=r?s.left
209:f.left;l=r?s.top+l:f.tfootTop;var g=r?a.outerWidth():f.tbodyWidth;h=c+u,this.c.header&&(this.s.enable?!f.visible||c+this.c.headerOffset+f.theadHeight<=p?u="in-place":c+this.c.headerOffset+f.theadHeight>p&&c+this.c.headerOffset<l?(u="in",a=e(e(this.s.dt.table().node()).parent()),c+this.c.headerOffset+f.theadHeight>l||this.dom.header.floatingParent===i?o=!0:this.dom.header.floatingParent.css({top:this.c.headerOffset,position:"fixed"}).append(this.dom.header.floating)):u="below":u="in-place",(o||u!==this.s.headerMode)&&this._modeChange(u,"header",o),this._horizontal("header",d));var v={offset:{top:0,left:0},height:0},y={offset:{top:0,left:0},height:0};this.c.footer&&this.dom.tfoot.length&&(this.s.enable?!f.visible||f.tfootBottom+this.c.footerOffset<=h?f="in-place":l+f.tfootHeight+this.c.footerOffset>h&&p+this.c.footerOffset<h?(f="in",o=!0):f="above":f="in-place",(o||f!==this.s.footerMode)&&this._modeChange(f,"footer",o),this._horizontal("footer",d),o=function(e){return{offset:e.offset(),height:e.outerHeight()}},v=this.dom.header.floating?o(this.dom.header.floating):o(this.dom.thead),y=this.dom.footer.floating?o(this.dom.footer.floating):o(this.dom.tfoot),r&&y.offset.top>c&&(0>(h=h+((r=c-s.top)>-v.height?r:0)-(v.offset.top+(r<-v.height?v.height:0)+y.height))&&(h=0),a.outerHeight(h),Math.round(a.outerHeight())>=Math.round(h)?e(this.dom.tfoot.parent()).addClass("fixedHeader-floating"):e(this.dom.tfoot.parent()).removeClass("fixedHeader-floating"))),this.dom.header.floating&&this.dom.header.floatingParent.css("left",m-d),this.dom.footer.floating&&this.dom.footer.floatingParent.css("left",m-d),this.s.dt.settings()[0]._fixedColumns!==i&&(a=function(t,n,o){return o===i&&(o=0===(o=e("div.dtfc-"+t+"-"+n+"-blocker")).length?null:o.clone().appendTo("body").css("z-index",1)),null!==o&&o.css({top:"top"===n?v.offset.top:y.offset.top,left:"right"===t?m+g-o.width():m}),o},this.dom.header.rightBlocker=a("right","top",this.dom.header.rightBlocker),this.dom.header.leftBlocker=a("left","top",this.dom.header.leftBlocker),this.dom.footer.rightBlocker=a("right","bottom",this.dom.footer.rightBlocker),this.dom.footer.leftBlocker=a("left","bottom",this.dom.footer.leftBlocker))}},_scrollEnabled:function(){var e=this.s.dt.settings()[0].oScroll;return""!==e.sY||""!==e.sX}}),a.version="3.2.2",a.defaults={header:!0,footer:!1,headerOffset:0,footerOffset:0},e.fn.dataTable.FixedHeader=a,e.fn.DataTable.FixedHeader=a,e(n).on("init.dt.dtfh",function(t,n,i){"dt"===t.namespace&&(t=n.oInit.fixedHeader,i=o.defaults.fixedHeader,!t&&!i||n._fixedHeader||(i=e.extend({},i,t),!1!==t&&new a(n,i)))}),o.Api.register("fixedHeader()",function(){}),o.Api.register("fixedHeader.adjust()",function(){return this.iterator("table",function(e){(e=e._fixedHeader)&&e.update()})}),o.Api.register("fixedHeader.enable()",function(e){return this.iterator("table",function(t){t=t._fixedHeader,e=e===i||e,t&&e!==t.enabled()&&t.enable(e)})}),o.Api.register("fixedHeader.enabled()",function(){if(this.context.length){var e=this.context[0]._fixedHeader;if(e)return e.enabled()}return!1}),o.Api.register("fixedHeader.disable()",function(){return this.iterator("table",function(e){(e=e._fixedHeader)&&e.enabled()&&e.enable(!1)})}),e.each(["header","footer"],function(e,t){o.Api.register("fixedHeader."+t+"Offset()",function(e){var n=this.context;return e===i?n.length&&n[0]._fixedHeader?n[0]._fixedHeader[t+"Offset"]():i:this.iterator("table",function(n){(n=n._fixedHeader)&&n[t+"Offset"](e)})})}),a}), 210/*! 211 Buttons for DataTables 1.6.5 212 ©2016-2020 SpryMedia Ltd - datatables.net/license 213*/ 214function(e){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return e(t,window,document)}):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n&&n.fn.dataTable||(n=require("datatables.net")(t,n).$),e(n,t,t.document)}:e(jQuery,window,document)}(function(e,t,n,i){function o(t,n,i){e.fn.animate?t.stop().fadeIn(n,i):(t.css("display","block"),i&&i.call(t))}function r(t,n,i){e.fn.animate?t.stop().fadeOut(n,i):(t.css("display","none"),i&&i.call(t))}function a(e,t){return e=new l.Api(e),t=t||(e.init().buttons||l.defaults.buttons),new h(e,t).container()}var s,l=e.fn.dataTable,d=0,c=0,u=l.ext.buttons,h=function(t,n){if(!(this instanceof h))return function(e){return new h(e,t).container()};void 0===n&&(n={}),!0===n&&(n={}),Array.isArray(n)&&(n={buttons:n}),this.c=e.extend(!0,{},h.defaults,n),n.buttons&&(this.c.buttons=n.buttons),this.s={dt:new l.Api(t),buttons:[],listenKeys:"",namespace:"dtb"+d++},this.dom={container:e("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()};e.extend(h.prototype,{action:function(e,t){return e=this._nodeToButton(e),t===i?e.conf.action:(e.conf.action=t,this)},active:function(t,n){var o=this._nodeToButton(t);return t=this.c.dom.button.active,o=e(o.node),n===i?o.hasClass(t):(o.toggleClass(t,n===i||n),this)},add:function(e,t){var n=this.s.buttons;if("string"==typeof t){t=t.split("-");var o=this.s;n=0;for(var r=t.length-1;n<r;n++)o=o.buttons[1*t[n]];n=o.buttons,t=1*t[t.length-1]}return this._expandButton(n,e,o!==i,t),this._draw(),this},container:function(){return this.dom.container},disable:function(t){return t=this._nodeToButton(t),e(t.node).addClass(this.c.dom.button.disabled).attr("disabled",!0),this},destroy:function(){e("body").off("keyup."+this.s.namespace);var t,n=this.s.buttons.slice(),i=0;for(t=n.length;i<t;i++)this.remove(n[i].node);for(this.dom.container.remove(),i=0,t=(n=this.s.dt.settings()[0]).length;i<t;i++)if(n.inst===this){n.splice(i,1);break}return this},enable:function(t,n){return!1===n?this.disable(t):(t=this._nodeToButton(t),e(t.node).removeClass(this.c.dom.button.disabled).removeAttr("disabled"),this)},name:function(){return this.c.name},node:function(t){return t?(t=this._nodeToButton(t),e(t.node)):this.dom.container},processing:function(t,n){var o=this.s.dt,r=this._nodeToButton(t);
214return n===i?e(r.node).hasClass("processing"):(e(r.node).toggleClass("processing",n),e(o.table().node()).triggerHandler("buttons-processing.dt",[n,o.button(t),o,e(t),r.conf]),this)},remove:function(t){var n=this._nodeToButton(t),i=this._nodeToHost(t),o=this.s.dt;if(n.buttons.length)for(var r=n.buttons.length-1;0<=r;r--)this.remove(n.buttons[r].node);return n.conf.destroy&&n.conf.destroy.call(o.button(t),o,e(t),n.conf),this._removeKey(n.conf),e(n.node).remove(),t=e.inArray(n,i),i.splice(t,1),this},text:function(t,n){var o=this._nodeToButton(t);t=this.c.dom.collection.buttonLiner,t=o.inCollection&&t&&t.tag?t.tag:this.c.dom.buttonLiner.tag;var r=this.s.dt,a=e(o.node),s=function(e){return"function"==typeof e?e(r,a,o.conf):e};return n===i?s(o.conf.text):(o.conf.text=n,t?a.children(t).html(s(n)):a.html(s(n)),this)},_constructor:function(){var t=this,i=this.s.dt,o=i.settings()[0],r=this.c.buttons;o._buttons||(o._buttons=[]),o._buttons.push({inst:this,name:this.c.name});for(var a=0,s=r.length;a<s;a++)this.add(r[a]);i.on("destroy",function(e,n){
214n===o&&t.destroy()}),e("body").on("keyup."+this.s.namespace,function(e){if(!n.activeElement||n.activeElement===n.body){var i=String.fromCharCode(e.keyCode).toLowerCase();-1!==t.s.listenKeys.toLowerCase().indexOf(i)&&t._keypress(i,e)}})},_addKey:function(t){t.key&&(this.s.listenKeys+=e.isPlainObject(t.key)?t.key.key:t.key)},_draw:function(e,t){e||(e=this.dom.container,t=this.s.buttons),e.children().detach();for(var n=0,i=t.length;n<i;n++)e.append(t[n].inserter),e.append(" "),t[n].buttons&&t[n].buttons.length&&this._draw(t[n].collection,t[n].buttons)},_expandButton:function(t,n,o,r){for(var a=this.s.dt,s=0,l=(n=Array.isArray(n)?n:[n]).length;s<l;s++){var d=this._resolveExtends(n[s]);if(d)if(Array.isArray(d))this._expandButton(t,d,o,r);else{var c=this._buildButton(d,o);c&&(r!==i&&null!==r?(t.splice(r,0,c),r++):t.push(c),c.conf.buttons&&(c.collection=e("<"+this.c.dom.collection.tag+"/>"),c.conf._collection=c.collection,this._expandButton(c.buttons,c.conf.buttons,!0,r)),d.init&&d.init.call(a.button(c.node),a,e(c.node),d),0)}}},_buildButton:function(t,n){var o=this.c.dom.button,r=this.c.dom.buttonLiner,a=this.c.dom.collection,s=this.s.dt,l=function(e){return"function"==typeof e?e(s,h,t):e};if(n&&a.button&&(o=a.button),n&&a.buttonLiner&&(r=a.buttonLiner),t.available&&!t.available(s,t))return!1;var d=function(t,n,i,o){o.action.call(n.button(i),t,n,i,o),e(n.table().node()).triggerHandler("buttons-action.dt",[n.button(i),n,i,o])};a=t.tag||o.tag;var u=t.clickBlurs===i||t.clickBlurs,h=e("<"+a+"/>").addClass(o.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(e){e.preventDefault(),!h.hasClass(o.disabled)&&t.action&&d(e,s,h,t),u&&h.trigger("blur")}).on("keyup.dtb",function(e){13===e.keyCode&&!h.hasClass(o.disabled)&&t.action&&d(e,s,h,t)});return"a"===a.toLowerCase()&&h.attr("href","#"),"button"===a.toLowerCase()&&h.attr("type","button"),r.tag?(a=e("<"+r.tag+"/>").html(l(t.text)).addClass(r.className),"a"===r.tag.toLowerCase()&&a.attr("href","#"),h.append(a)):h.html(l(t.text)),!1===t.enabled&&h.addClass(o.disabled),t.className&&h.addClass(t.className),t.titleAttr&&h.attr("title",l(t.titleAttr)),t.attr&&h.attr(t.attr),t.namespace||(t.namespace=".dt-button-"+c++),r=(r=this.c.dom.buttonContainer)&&r.tag?e("<"+r.tag+"/>").addClass(r.className).append(h):h,this._addKey(t),this.c.buttonCreated&&(r=this.c.buttonCreated(t,r)),{conf:t,node:h.get(0),inserter:r,buttons:[],inCollection:n,collection:null}},_nodeToButton:function(e,t){t||(t=this.s.buttons);for(var n=0,i=t.length;n<i;n++){if(t[n].node===e)return t[n];if(t[n].buttons.length){var o=this._nodeToButton(e,t[n].buttons);if(o)return o}}},_nodeToHost:function(e,t){t||(t=this.s.buttons);for(var n=0,i=t.length;n<i;n++){if(t[n].node===e)return t;if(t[n].buttons.length){var o=this._nodeToHost(e,t[n].buttons);if(o)return o}}},_keypress:function(t,n){if(!n._buttonsHandled){var i=function(o){for(var r=0,a=o.length;r<a;r++){var s=o[r].conf,l=o[r].node;s.key&&(s.key===t?(n._buttonsHandled=!0,e(l).click()):!e.isPlainObject(s.key)||s.key.key!==t||s.key.shiftKey&&!n.shiftKey||s.key.altKey&&!n.altKey||s.key.ctrlKey&&!n.ctrlKey||s.key.metaKey&&!n.metaKey||(n._buttonsHandled=!0,e(l).click())),o[r].buttons.length&&i(o[r].buttons)}};i(this.s.buttons)}},_removeKey:function(t){if(t.key){var n=e.isPlainObject(t.key)?t.key.key:t.key;t=this.s.listenKeys.split(""),n=e.inArray(n,t),t.splice(n,1),this.s.listenKeys=t.join("")}},_resolveExtends:function(t){var n,o=this.s.dt,r=function(n){for(var r=0;!e.isPlainObject(n)&&!Array.isArray(n);){if(n===i)return;if("function"==typeof n){if(!(n=n(o,t)))return!1}else if("string"==typeof n){if(!u[n])throw"Unknown button type: "+n;n=u[n]}if(30<++r)throw"Buttons: Too many iterations"}return Array.isArray(n)?n:e.extend({},n)};for(t=r(t);t&&t.extend;){if(!u[t.extend])throw"Cannot extend unknown button type: "+t.extend;var a=r(u[t.extend]);if(Array.isArray(a))return a;if(!a)return!1;var s=a.className;t=e.extend({},a,t),s&&t.className!==s&&(t.className=s+" "+t.className);var l=t.postfixButtons;if(l){for(t.buttons||(t.buttons=[]),s=0,n=l.length;s<n;s++)t.buttons.push(l[s]);t.postfixButtons=null}if(l=t.prefixButtons){for(t.buttons||(t.buttons=[]),s=0,n=l.length;s<n;s++)t.buttons.splice(s,0,l[s]);t.prefixButtons=null}t.extend=a.extend}return t},_popover:function(i,a,s){var l=this.c,d=e.extend({align:"button-left",autoClose:!1,background:!0,backgroundClassName:"dt-button-background",contentClassName:l.dom.collection.className,collectionLayout:"",collectionTitle:"",dropup:!1,fade:400,rightAlignClassName:"dt-button-right",tag:l.dom.collection.tag},s),c=a.node(),u=function(){r(e(".dt-button-collection"),d.fade,function(){e(this).detach()}),e(a.buttons('[aria-haspopup="true"][aria-expanded="true"]').nodes()).attr("aria-expanded","fal
214se"),e("div.dt-button-background").off("click.dtb-collection"),h.background(!1,d.backgroundClassName,d.fade,c),e("body").off(".dtb-collection"),a.off("buttons-action.b-internal")};!1===i&&u(),(s=e(a.buttons('[aria-haspopup="true"][aria-expanded="true"]').nodes())).length&&(c=s.eq(0),u()),s=e("<div/>").addClass("dt-button-collection").addClass(d.collectionLayout).css("display","none"),i=e(i).addClass(d.contentClassName).attr("role","menu").appendTo(s),c.attr("aria-expanded","true"),c.parents("body")[0]!==n.body&&(c=n.body.lastChild),d.collectionTitle&&s.prepend('<div class="dt-button-collection-title">'+d.collectionTitle+"</div>"),o(s.insertAfter(c),d.fade),l=e(a.table().container());var f=s.css("position");if("dt-container"===d.align&&(c=c.parent(),s.css("width",l.width())),"absolute"===f&&(s.hasClass(d.rightAlignClassName)||s.hasClass(d.leftAlignClassName)||"dt-container"===d.align)){var p=c.position();s.css({top:p.top+c.outerHeight(),left:p.left});var m=s.outerHeight(),g=l.offset().top+l.height(),v=p.top+c.outerHeight()+m;g=v-g,v=p.top-m;var y=l.offset().top,_=p.top-m-5;(g>y-v||d.dropup)&&-_<y&&s.css("top",_),l=(p=l.offset().left)+(l=l.width()),f=s.offset().left;var b=s.width();b=f+b;var T=c.offset().left,C=c.outerWidth();C=T+C,T=0,s.hasClass(d.rightAlignClassName)?p>f+(T=C-b)&&(T=(f=p-(f+T))>(l-=b+T)?T+l:T+f):l<b+(T=p-f)&&(T=(f=p-(f+T))>(l-=b+T)?T+l:T+f),s.css("left",s.position().left+T)}else"absolute"===f?(p=c.position(),s.css({top:p.top+c.outerHeight(),left:p.left}),m=s.outerHeight(),f=c.offset().top,T=0,C=(T=c.offset().left)+(C=c.outerWidth()),b=(f=s.offset().left)+(b=i.width()),_=p.top-m-5,g=l.offset().top+l.height(),g=(v=p.top+c.outerHeight()+m)-g,v=p.top-m,(g>(y=l.offset().top)-v||d.dropup)&&-_<y&&s.css("top",_),T="button-right"===d.align?C-b:T-f,s.css("left",s.position().left+T)):((f=s.height()/2)>e(t).height()/2&&(f=e(t).height()/2),s.css("marginTop",-1*f));d.background&&h.background(!0,d.backgroundClassName,d.fade,c),e("div.dt-button-background").on("click.dtb-collection",function(){}),e("body").on("click.dtb-collection",function(t){var n=e.fn.addBack?"addBack":"andSelf",o=e(t.target).parent()[0];(!e(t.target).parents()[n]().filter(i).length&&!e(o).hasClass("dt-buttons")||e(t.target).hasClass("dt-button-background"))&&u()}).on("keyup.dtb-collection",function(e){27===e.keyCode&&u()}),d.autoClose&&setTimeout(function(){a.on("buttons-action.b-internal",function(e,t,n,i){i[0]!==c[0]&&u()})},0),e(s).trigger("buttons-popover.dt")}}),h.background=function(t,a,s,l){s===i&&(s=400),l||(l=n.body),t?o(e("<div/>").addClass(a).css("display","none").insertAfter(l),s):r(e("div."+a),s,function(){e(this).removeClass(a).remove()})},h.instanceSelector=function(t,n){if(t===i||null===t)return e.map(n,function(e){return e.inst});var o=[],r=e.map(n,function(e){return e.name}),a=function(t){if(Array.isArray(t))for(var i=0,s=t.length;i<s;i++)a(t[i]);else"string"==typeof t?-1!==t.indexOf(",")?a(t.split(",")):-1!==(t=e.inArray(t.trim(),r))&&o.push(n[t].inst):"number"==typeof t&&o.push(n[t].inst)};return a(t),o},h.buttonSelector=function(t,n){for(var o=[],r=function(e,t,n){for(var o,a,s=0,l=t.length;s<l;s++)(o=t[s])&&(a=n!==i?n+s:s+"",e.push({node:o.node,name:o.conf.name,idx:a}),o.buttons&&r(e,o.buttons,a+"-"))},a=function(t,n){var s,l=[];r(l,n.s.buttons);var d=e.map(l,function(e){return e.node});if(Array.isArray(t)||t instanceof e)for(d=0,s=t.length;d<s;d++)a(t[d],n);else if(null===t||t===i||"*"===t)for(d=0,s=l.length;d<s;d++)o.push({inst:n,node:l[d].node});else if("number"==typeof t)o.push({inst:n,node:n.s.buttons[t].node});else if("string"==typeof t)if(-1!==t.indexOf(","))for(d=0,s=(l=t.split(",")).length;d<s;d++)a(l[d].trim(),n);else if(t.match(/^\d+(\-\d+)*$/))d=e.map(l,function(e){return e.idx}),o.push({inst:n,node:l[e.inArray(t,d)].node});else if(-1!==t.indexOf(":name"))for(t=t.replace(":name",""),d=0,s=l.length;d<s;d++)l[d].name===t&&o.push({inst:n,node:l[d].node});else e(d).filter(t).each(function(){o.push({inst:n,node:this})});else"object"==typeof t&&t.nodeName&&(-1!==(l=e.inArray(t,d))&&o.push({inst:n,node:d[l]}))},s=0,l=t.length;s<l;s++)a(n,t[s]);return o},h.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{tag:"div",className:""},button:{tag:"ActiveXObject"in t?"a":"button",className:"dt-button",active:"active",disabled:"disabled"},buttonLiner:{tag:"span",className:""}}},h.version="1.6.5",e.extend(u,{collection:{text:function(e){return e.i18n("buttons.collection","Collection")},className:"buttons-collection",init:function(e,t){t.attr("aria-expanded",!1)},action:function(e,t,n,i){e.stopPropagation(),i._collection.parents("body").length?this.popover(!1,i):this.popover(i._collection,i)},attr:{"aria-haspopup":!0}},copy:function(e,t){return u.copyHtml5?"copyHtml5":u.copyFlash&&u.copyFlash.available(e,t)?"copyFlash":void 0},csv:function(e,t){return u.csvHtml5&&u.csvHtml5.available(e,t)?"csvHtml5":u.csvFlash&&u.csvFlash.available(e,t)?"csvFlash":void 0},excel:function(e,t){return u.excelHtml5&&u.excelHtml5.available(e,t)?"excelHtml5":u.excelFlash&&u.excelFlash.available(e,t)?"excelFlash":void 0},pdf:function(e,t){return u.pdfHtml5&&u.pdfHtml5.available(e,t)?"pdfHtml5":u.pdfFlash&&u.pdfFlash.available(e,t)?"pdfFlash":void 0},pageLength:function(t){t=t.settings()[0].aLengthMenu;var n=Array.isArray(t[0])?t[0]:t,i=Array.isArray(t[0])?t[1]:t;return{extend:"collection",text:function(e){return e.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},e.page.len())},className:"buttons-page-length",autoClose:!0,buttons:e.map(n,function(e,t){return{text:i[t],className:"button-page-length",action:function(t,n){n.page.len(e).draw()},init:function(t,n,i){var o=this;n=function(){o.active(t.page.len()===e)},t.on("length.dt"+i.namespace,n),n()},destroy:function(e,t,n){e.off("length.dt"+n.namespace)}}}),init:function(e,t,n){var i=this;e.on("length.dt"+n.namespace,function(){i.text(n.text)})},destroy:function(e,t,n){e.off("length.dt"+n.namespace)}}}}),l.Api.register("buttons()",function(e,t){t===i&&(t=e,e=i),this.selector.buttonGroup=e;var n=this.iterator(!0,"table",function(n){if(n._buttons)return h.buttonSelector(h.instanceSelector(e,n._buttons),t)},!0);return n._groupSelector=e,n}),l.Api.register("button()",function(e,t){return 1<(e=this.buttons(e,t)).length&&e.splice(1,e.length),e}),l.Api.registerPlural("buttons().active()","button().active()",function(e){return e===i?this.map(function(e){return e.inst.active(e.node)}):this.each(function(t){t.inst.active(t.node,e)})}),l.Api.registerPlural("buttons().action()","button().action()",function(e){return e===i?this.map(function(e){return e.inst.action(e.node)}):this.each(function(t){t.inst.action(t.node,e)})}),l.Api.register(["buttons().enable()","button().enable()"],function(e){return this.each(function(t){t.inst.enable(t.node,e)})}),l.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(e){e.inst.disable(e.node)})}),l.Api.registerPlural("buttons().nodes()","button().node()",function(){var t=e();return e(this.each(function(e){t=t.add(e.inst.node(e.node))})),t}),l.Api.registerPlural("buttons().processing()","button().processing()",function(e){return e===i?this.map(function(e){return e.inst.processing(e.node)}):this.each(function(t){t.inst.processing(t.node,e)})}),l.Api.registerPlural("buttons().text()","button().text()",function(e){return e===i?this.map(function(e){return e.inst.text(e.node)}):this.each(function(t){t.inst.text(t.node,e)})}),l.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(e){e.inst.node(e.node).trigger("click")})}),l.Api.register("button().popover()",function(e,t){return this.map(function(n){return n.inst._popover(e,this.button(this[0].node),t)})}),l.Api.register("buttons().containers()",function(){var t=e(),n=this._groupSelector;return this.iterator(!0,"table",function(e){if(e._buttons)for(var i=0,o=(e=h.instanceSelector(n,e._buttons)).length;i<o;i++)t=t.add(e[i].container())}),t}),l.Api.register("buttons().container()",function(){return this.containers().eq(0)}),l.Api.register("button().add()",function(e,t){var n=this.context;return n.length&&((n=h.instanceSelector(this._groupSelector,n[0]._buttons)).length&&n[0].add(t,e)),this.button(this._groupSelector,e)}),l.Api.register("buttons().destroy()",function(){return this.pluck("inst").unique().each(function(e){e.destroy()}),this}),l.Api.registerPlural("buttons().remove()","buttons().remove()",function(){return this.each(function(e){e.inst.remove(e.node)}),this}),l.Api.register("buttons.info()",function(t,n,a){var l=this;return!1===t?(this.off("destroy.btn-info"),r(e("#datatables_buttons_info"),400,function(){e(this).remove()}),clearTimeout(s),s=null,this):(s&&clearTimeout(s),e("#datatables_buttons_info").length&&e("#datatables_buttons_info").remove(),t=t?"<h2>"+t+"</h2>":"",o(e('<div id="datatables_buttons_info" class="dt-button-info"/>').html(t).append(e("<div/>")["string"==typeof n?"html":"append"](n)).css("display","none").appendTo("body")),a!==i&&0!==a&&(s=setTimeout(function(){l.buttons.info(!1)},a)),this.on("destroy.btn-info",function(){l.buttons.info(!1)}),this)}),l.Api.register("buttons.exportData()",function(e){if(this.context.length)return g(new l.Api(this.context[0]),e)}),l.Api.register("buttons.exportInfo()",function(t){t||(t={});var n=t,o="*"===n.filename&&"*"!==n.title&&n.title!==i&&null!==n.title&&""!==n.title?n.title:n.filename;return"function"==typeof o&&(o=o()),o===i||null===o?o=null:(-1!==o.indexOf("*")&&(o=o.replace("*",e
214("head > title").text()).trim()),o=o.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,""),(n=f(n.extension))||(n=""),o+=n),{filename:o,title:n=null===(n=f(t.title))?null:-1!==n.indexOf("*")?n.replace("*",e("head > title").text()||"Exported data"):n,messageTop:p(this,t.message||t.messageTop,"top"),messageBottom:p(this,t.messageBottom,"bottom")}});var f=function(e){return null===e||e===i?null:"function"==typeof e?e():e},p=function(t,n,i){return null===(n=f(n))?null:(t=e("caption",t.table().container()).eq(0),"*"===n?t.css("caption-side")!==i?null:t.length?t.text():"":n)},m=e("<textarea/>")[0],g=function(t,n){var o=e.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(e){return r(e)},footer:function(e){return r(e)},body:function(e){return r(e)}},customizeData:null},n),r=function(e){return"string"!=typeof e?e:(e=(e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"")).replace(/<!\-\-.*?\-\->/g,""),o.stripHtml&&(e=e.replace(/<([^>'"]*('[^']*'|"[^"]*")?)*>/g,"")),o.trim&&(e=e.replace(/^\s+|\s+$/g,"")),o.stripNewlines&&(e=e.replace(/\n/g," ")),o.decodeEntities&&(m.innerHTML=e,e=m.value),e)};n=t.columns(o.columns).indexes().map(function(e){var n=t.column(e).header();return o.format.header(n.innerHTML,e,n)}).toArray();var a=t.table().footer()?t.columns(o.columns).indexes().map(function(e){var n=t.column(e).footer();return o.format.footer(n?n.innerHTML:"",e,n)}).toArray():null,s=e.extend({},o.modifier);t.select&&"function"==typeof t.select.info&&s.selected===i&&t.rows(o.rows,e.extend({selected:!0},s)).any()&&e.extend(s,{selected:!0}),s=t.rows(o.rows,s).indexes().toArray();var l=t.cells(s,o.columns);s=l.render(o.orthogonal).toArray(),l=l.nodes().toArray();for(var d=n.length,c=[],u=0,h=0,f=0<d?s.length/d:0;h<f;h++){for(var p=[d],g=0;g<d;g++)p[g]=o.format.body(s[u],h,g,l[u]),u++;c[h]=p}return n={header:n,footer:a,body:c},o.customizeData&&o.customizeData(n),n};return e.fn.dataTable.Buttons=h,e.fn.DataTable.Buttons=h,e(n).on("init.dt plugin-init.dt",function(e,t){"dt"===e.namespace&&(e=t.oInit.buttons||l.defaults.buttons)&&!t._buttons&&new h(t,e).container()}),l.ext.feature.push({fnInit:a,cFeature:"B"}),l.ext.features&&l.ext.features.register("buttons",a),h}), 215/*! 216 HTML5 export buttons for Buttons and DataTables. 217 2016 SpryMedia Ltd - datatables.net/license 218 219 FileSaver.js (1.3.3) - MIT license 220 Copyright © 2016 Eli Grey - http://eligrey.com 221*/ 222function(e){"function"==typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(t){return e(t,window,document)}):"object"==typeof exports?module.exports=function(t,n,i,o){return t||(t=window),n&&n.fn.dataTable||(n=require("datatables.net")(t,n).$),n.fn.dataTable.Buttons||require("datatables.net-buttons")(t,n),e(n,t,t.document,i,o)}:e(jQuery,window,document)}(function(e,t,n,i,o,r){function a(e){for(var t="";0<=e;)t=String.fromCharCode(e%26+65)+t,e=Math.floor(e/26)-1;return t}function s(n,i){g===r&&(g=-1===v.serializeToString((new t.DOMParser).parseFromString(y["xl/worksheets/sheet1.xml"],"text/xml")).indexOf("xmlns:r")),e.each(i,function(t,i){if(e.isPlainObject(i))s(t=n.folder(t),i);else{if(g){var o,r=i.childNodes[0],a=[];for(o=r.attributes.length-1;0<=o;o--){var l=r.attributes[o].nodeName,d=r.attributes[o].nodeValue;-1!==l.indexOf(":")&&(a.push({name:l,value:d}),r.removeAttribute(l))}for(o=0,l=a.length;o<l;o++)(d=i.createAttribute(a[o].name.replace(":","_dt_b_namespace_token_"))).value=a[o].value,r.setAttributeNode(d)}i=v.serializeToString(i),g&&(-1===i.indexOf("<?xml")&&(i='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+i),i=(i=i.replace(/_dt_b_namespace_token_/g,":")).replace(/xmlns:NS[\d]+="" NS[\d]+:/g,"")),i=i.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>"),n.file(t,i)}})}function l(t,n,i){var o=t.createElement(n);return i&&(i.attr&&e(o).attr(i.attr),i.children&&e.each(i.children,function(e,t){o.appendChild(t)}),null!==i.text&&i.text!==r&&o.appendChild(t.createTextNode(i.text))),o}function d(e,t){var n=e.header[t].length;e.footer&&e.footer[t].length>n&&(n=e.footer[t].length);for(var i=0,o=e.body.length;i<o;i++){var a=e.body[i][t];if(-1!==(a=null!==a&&a!==r?a.toString():"").indexOf("\n")?((a=a.split("\n")).sort(function(e,t){return t.length-e.length}),a=a[0].length):a=a.length,a>n&&(n=a),40<n)return 54}return 6<(n*=1.35)?n:6}var c=e.fn.dataTable;c.Buttons.pdfMake=function(e){if(!e)return o||t.pdfMake;o=e},c.Buttons.jszip=function(e){if(!e)return i||t.JSZip;i=e};var u=function(e){if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document.createElementNS("http://www.w3.org/1999/xhtml","a"),n="download"in t,i=/constructor/i.test(e.HTMLElement)||e.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),r=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},a=function(t){setTimeout(function(){"string"==typeof t?(e.URL||e.webkitURL||e).revokeObjectURL(t):t.remove()},4e4)},s=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},l=function(l,d,c){c||(l=s(l));
222var u=this,h="application/octet-stream"===l.type,f=function(){for(var e=["writestart","progress","write","writeend"],t=(e=[].concat(e)).length;t--;){var n=u["on"+e[t]];if("function"==typeof n)try{n.call(u,u)}catch(i){r(i)}}};if(u.readyState=u.INIT,n){var p=(e.URL||e.webkitURL||e).createObjectURL(l);setTimeout(function(){t.href=p,t.download=d;var e=new MouseEvent("click");t.dispatchEvent(e),f(),a(p),u.readyState=u.DONE})}else!function(){if((o||h&&i)&&e.FileReader){var t=new FileReader;t.onloadend=function(){var n=o?t.result:t.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(n,"_blank")||(e.location.href=n),u.readyState=u.DONE,f()},t.readAsDataURL(l),u.readyState=u.INIT}else p||(p=(e.URL||e.webkitURL||e).createObjectURL(l)),h?e.location.href=p:e.open(p,"_blank")||(e.location.href=p),u.readyState=u.DONE,f(),a(p)}()},d=l.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=s(e)),navigator.msSaveOrOpenBlob(e,t)}:(d.abort=function(){},d.readyState=d.INIT=0,d.WRITING=1,d.DONE=2,d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null,function(e,t,n){return new l(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||void 0!==t&&t||this.content);c.fileSave=u;var h=function(e){var t="Sheet1";return e.sheetName&&(t=e.sheetName.replace(/[\[\]\*\/\\\?:]/g,"")),t},f=function(e){return e.newline?e.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"},p=function(e,t){var n=f(t);e=e.buttons.exportData(t.exportOptions);var i=t.fieldBoundary,o=t.fieldSeparator,a=new RegExp(i,"g"),s=t.escapeChar!==r?t.escapeChar:"\\",l=function(e){for(var t="",n=0,r=e.length;n<r;n++)0<n&&(t+=o),t+=i?i+(""+e[n]).replace(a,s+i)+i:e[n];return t},d=t.header?l(e.header)+n:"";t=t.footer&&e.footer?n+l(e.footer):"";for(var c=[],u=0,h=e.body.length;u<h;u++)c.push(l(e.body[u]));return{str:d+c.join(n)+t,rows:c.length}},m=function(){if(-1===navigator.userAgent.indexOf("Safari")||-1!==navigator.userAgent.indexOf("Chrome")||-1!==navigator.userAgent.indexOf("Opera"))return!1;var e=navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/);return!!(e&&1<e.length&&603.1>1*e[1])};try{var g,v=new XMLSerializer}catch(b){}var y={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><definedNames/></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/><mergeCells count="0"/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$$-45C]"/><numFmt numFmtId="165" formatCode=""\xa3"#,##0.00"/><numFmt numFmtId="166" formatCode="[$\u20ac-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="68"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="1" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="2" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="14" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},_=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(e){return e/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(e){return e/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?\xa3[\d,]+.?\d*$/,style:58},{match:/^\-?\u20ac[\d,]+.?\d*$/,style:59},{match:/^\-?\d+$/,style:65},{match:/^\-?\d+\.\d{2}$/,style:66},{match:/^\([\d,]+\)$/,style:61,fmt:function(e){return-1*e.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(e){return-1*e.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+$/,style:63},{match:/^\-?[\d,]+\.\d{2}$/,style:64},{match:/^[\d]{4}\-[\d]{2}\-[\d]{2}$/,style:67,fmt:function(e){return Math.round(25569+Date.parse(e)/864e5)}}];return c.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(e){return e.i18n("buttons.copy","Copy")},action:function(t,i,o,r){this.processing(!0);var a=this;t=p(i,r);var s=i.buttons.exportInfo(r),l=f(r),d=t.str;if(o=e("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0}),s.title&&(d=s.title+l+l+d),s.messageTop&&(d=s.messageTop+l+l+d),s.messageBottom&&(d=d+l+l+s.messageBottom),r.customize&&(d=r.customize(d,r,i)),r=e("<textarea readonly/>").val(d).appendTo(o),n.queryCommandSupported("copy")){o.appendTo(i.table().container()),r[0].focus(),r[0].select();try{var c=n.execCommand("copy");if(o.remove(),c)return i.buttons.info(i.i18n("buttons.copyTitle","Copy to clipboard"),i.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",_:"Copied %d rows to clipboard"},t.rows),2e3),void this.processing(!1)}catch(m){}}c=e("<span>"+i.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>\u2318</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(o),i.buttons.info(i.i18n("buttons.copyTitle","Copy to clipboard"),
222c,0),r[0].focus(),r[0].select();var u=e(c).closest(".dt-button-info"),h=function(){u.off("click.buttons-copy"),e(n).off(".buttons-copy"),i.buttons.info(!1)};u.on("click.buttons-copy",h),e(n).on("keydown.buttons-copy",function(e){27===e.keyCode&&(h(),a.processing(!1))}).on("copy.buttons-copy cut.buttons-copy",function(){h(),a.processing(!1)})},exportOptions:{},fieldSeparator:"\t",fieldBoundary:"",header:!0,footer:!1,title:"*",messageTop:"*",messageBottom:"*"},c.ext.buttons.csvHtml5={bom:!1,className:"buttons-csv buttons-html5",available:function(){return t.FileReader!==r&&t.Blob},text:function(e){return e.i18n("buttons.csv","CSV")},action:function(e,t,i,o){this.processing(!0),e=p(t,o).str,i=t.buttons.exportInfo(o);var r=o.charset;o.customize&&(e=o.customize(e,o,t)),!1!==r?(r||(r=n.characterSet||n.charset),r&&(r=";charset="+r)):r="",o.bom&&(e="\ufeff"+e),u(new Blob([e],{type:"text/csv"+r}),i.filename,!0),this.processing(!1)},filename:"*",extension:".csv",exportOptions:{},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!1},c.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return t.FileReader!==r&&(i||t.JSZip)!==r&&!m()&&v},text:function(e){return e.i18n("buttons.excel","Excel")},action:function(n,o,c,f){this.processing(!0);var p=this,m=0,g=(n=function(t){return e.parseXML(y[t])})("xl/worksheets/sheet1.xml"),v=g.getElementsByTagName("sheetData")[0];n={_rels:{".rels":n("_rels/.rels")},xl:{_rels:{"workbook.xml.rels":n("xl/_rels/workbook.xml.rels")},"workbook.xml":n("xl/workbook.xml"),"styles.xml":n("xl/styles.xml"),worksheets:{"sheet1.xml":g}},"[Content_Types].xml":n("[Content_Types].xml")};var b,T,C=o.buttons.exportData(f.exportOptions),E=function(e){T=l(g,"row",{attr:{r:b=m+1}});for(var t=0,n=e.length;t<n;t++){var i=a(t)+""+b,o=null;if(null===e[t]||e[t]===r||""===e[t]){if(!0!==f.createEmptyCells)continue;e[t]=""}var s=e[t];e[t]="function"==typeof e[t].trim?e[t].trim():e[t];for(var d=0,c=_.length;d<c;d++){var u=_[d];if(e[t].match&&!e[t].match(/^0\d+/)&&e[t].match(u.match)){o=e[t].replace(/[^\d\.\-]/g,""),u.fmt&&(o=u.fmt(o)),o=l(g,"c",{attr:{r:i,s:u.style},children:[l(g,"v",{text:o})]});break}}o||("number"==typeof e[t]||e[t].match&&e[t].match(/^-?\d+(\.\d+)?$/)&&!e[t].match(/^0\d+/)?o=l(g,"c",{attr:{t:"n",r:i},children:[l(g,"v",{text:e[t]})]}):(s=s.replace?s.replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""):s,o=l(g,"c",{attr:{t:"inlineStr",r:i},children:{row:l(g,"is",{children:{row:l(g,"t",{text:s,attr:{"xml:space":"preserve"}})}})}}))),T.appendChild(o)}v.appendChild(T),m++};f.customizeData&&f.customizeData(C);var w=function(t,n){var i=e("mergeCells",g);i[0].appendChild(l(g,"mergeCell",{attr:{ref:"A"+t+":"+a(n)+t}})),i.attr("count",parseFloat(i.attr("count"))+1),e("row:eq("+(t-1)+") c",g).attr("s","51")},I=o.buttons.exportInfo(f);I.title&&(E([I.title],m),w(m,C.header.length-1)),I.messageTop&&(E([I.messageTop],m),w(m,C.header.length-1)),f.header&&(E(C.header,m),e("row:last c",g).attr("s","2")),c=m;for(var D=0,x=C.body.length;D<x;D++)E(C.body[D],m);for(D=m,f.footer&&C.footer&&(E(C.footer,m),e("row:last c",g).attr("s","2")),I.messageBottom&&(E([I.messageBottom],m),w(m,C.header.length-1)),E=l(g,"cols"),e("worksheet",g).prepend(E),w=0,x=C.header.length;w<x;w++)E.appendChild(l(g,"col",{attr:{min:w+1,max:w+1,width:d(C,w),customWidth:1}}));E=n.xl["workbook.xml"],e("sheets sheet",E).attr("name",h(f)),f.autoFilter&&(e("mergeCells",g).before(l(g,"autoFilter",{attr:{ref:"A"+c+":"+a(C.header.length-1)+D}})),e("definedNames",E).append(l(E,"definedName",{attr:{name:"_xlnm._FilterDatabase",localSheetId:"0",hidden:1},text:h(f)+"!$A$"+c+":"+a(C.header.length-1)+D}))),f.customize&&f.customize(n,f,o),0===e("mergeCells",g).children().length&&e("mergeCells",g).remove(),c={type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},s(o=new(i||t.JSZip),n),o.generateAsync?o.generateAsync(c).then(function(e){u(e,I.filename),p.processing(!1)}):(u(o.generate(c),I.filename),this.processing(!1))},filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!1,title:"*",messageTop:"*",messageBottom:"*",createEmptyCells:!1,autoFilter:!1,sheetName:""},c.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return t.FileReader!==r&&(o||t.pdfMake)},text:function(e){return e.i18n("buttons.pdf","PDF")},action:function(n,i,a,s){this.processing(!0),a=i.buttons.exportData(s.exportOptions),n=i.buttons.exportInfo(s);var l=[];s.header&&l.push(e.map(a.header,function(e){return{text:"string"==typeof e?e:e+"",style:"tableHeader"}}));for(var d=0,c=a.body.length;d<c;d++)l.push(e.map(a.body[d],function(e){return null!==e&&e!==r||(e=""),{text:"string"==typeof e?e:e+"",style:d%2?"tableBodyEven":"tableBodyOdd"}}));s.footer&&a.footer&&l.push(e.map(a.footer,function(e){return{text:"string"==typeof e?e:e+"",style:"tableFooter"}})),a={pageSize:s.pageSize,pageOrientation:s.orientation,content:[{table:{headerRows:1,body:l},layout:"noBorders"}],styles:{tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"},tableBodyEven:{},tableBodyOdd:{fillColor:"#f3f3f3"},tableFooter:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154"},title:{alignment:"center",fontSize:15},message:{}},defaultStyle:{fontSize:10}},n.messageTop&&a.content.unshift({text:n.messageTop,style:"message",margin:[0,0,0,12]}),n.messageBottom&&a.content.push({text:n.messageBottom,style:"message",margin:[0,0,0,12]}),n.title&&a.content.unshift({text:n.title,style:"title",margin:[0,0,0,12]}),s.customize&&s.customize(a,s,i),i=(o||t.pdfMake).createPdf(a),"open"!==s.download||m()?i.download(n.filename):i.open(),this.processing(!1)},title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:"A4",header:!0,footer:!1,messageTop:"*",messageBottom:"*",customize:null,download:"download"},c.Buttons}),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function e(t,n,i){function o(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){return o(t[a][1][e]||e)},c,c.exports,e,t,n,i)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(e,t,n){(function(i){!function(e){"object"==typeof n&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function t(n,i,o){function r(s,l){if(!i[s]){if(!n[s]){var d="function"==typeof e&&e;if(!l&&d)return d(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}
vendor: 6,654 bytes, line 222
222var u=i[s]={exports:{}};n[s][0].call(u.exports,function(e){return r(n[s][1][e]||e)},u,u.exports,t,n,i,o)}return i[s].exports}for(var a="function"==typeof e&&e,s=0;s<o.length;s++)r(o[s]);return r}({1:[function(e,t,n){(function(i){!function(e){"object"==typeof n&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function t(n,i,o){function r(s,l){if(!i[s]){if(!n[s]){var d="function"==typeof e&&e;if(!l&&d)return d(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[s]={exports:{}};n[s][0].call(u.exports,function(e){return r(n[s][1][e]||e)},u,u.exports,t,n,i,o)}return i[s].exports}for(var a="function"==typeof e&&e,s=0;s<o.length;s++)r(o[s]);return r}({1:[function(e,t,n){(function(i){!function(e){"object"==typeof n&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function t(n,i,o){function r(s,l){if(!i[s]){if(!n[s]){var d="function"==typeof e&&e;if(!l&&d)return d(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[s]={exports:{}};n[s][0].call(u.exports,function(e){return r(n[s][1][e]||e)},u,u.exports,t,n,i,o)}return i[s].exports}for(var a="function"==typeof e&&e,s=0;s<o.length;s++)r(o[s]);return r}({1:[function(e,t,n){(function(i){!function(e){"object"==typeof n&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function t(n,i,o){function r(s,l){if(!i[s]){if(!n[s]){var d="function"==typeof e&&e;if(!l&&d)return d(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[s]={exports:{}};n[s][0].call(u.exports,function(e){return r(n[s][1][e]||e)},u,u.exports,t,n,i,o)}return i[s].exports}for(var a="function"==typeof e&&e,s=0;s<o.length;s++)r(o[s]);return r}({1:[function(e,t,n){(function(i){!function(e){"object"==typeof n&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function t(n,i,o){function r(s,l){if(!i[s]){if(!n[s]){var d="function"==typeof e&&e;if(!l&&d)return d(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[s]={exports:{}};n[s][0].call(u.exports,function(e){return r(n[s][1][e]||e)},u,u.exports,t,n,i,o)}return i[s].exports}for(var a="function"==typeof e&&e,s=0;s<o.length;s++)r(o[s]);return r}({1:[function(e,t,n){"use strict";var i=e("./utils"),o=e("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,o,a,s,l,d,c=[],u=0,h=e.length,f=h,p="string"!==i.getTypeOf(e);u<e.length;)f=h-u,o=p?(t=e[u++],n=u<h?e[u++]:0,u<h?e[u++]:0):(t=e.charCodeAt(u++),n=u<h?e.charCodeAt(u++):0,u<h?e.charCodeAt(u++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<f?(15&n)<<2|o>>6:64,d=2<f?63&o:64,c.push(r.charAt(a)+r.charAt(s)+r.charAt(l)+r.charAt(d));return c.join("")},n.decode=function(e){var t,n,i,a,s,l,d=0,c=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var u,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===r.charAt(64)&&h--,e.charAt(e.length-2)===r.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=o.uint8array?new Uint8Array(0|h):new Array(0|h);d<e.length;)t=r.indexOf(e.charAt(d++))<<2|(a=r.indexOf(e.charAt(d++)))>>4,n=(15&a)<<4|(s=r.indexOf(e.charAt(d++)))>>2,i=(3&s)<<6|(l=r.indexOf(e.charAt(d++))),u[c++]=t,64!==s&&(u[c++]=n),64!==l&&(u[c++]=i);return u}},{"./support":30,"./utils":32}],2:[function(e,t){"use strict";function n(e,t,n,i,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=o}var i=e("./external"),o=e("./stream/DataWorker"),r=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");n.prototype={getContentWorker:function(){var e=new o(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new o(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},n.createWorkerFrom=function(e,t,n){return e.pipe(new r).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=n},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t){"use strict";var n=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,n){var o=i,r=0+n;e^=-1;for(var a=0;a<r;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}(0|t,e,e.length):function(e,t,n){var o=i,r=0+n;e^=-1;for(var a=0;a<r;a++)e=e>>>8^o[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t){"use strict";var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,n){"use strict";function i(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}var o="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=e("pako"),a=e("./utils"),s=e("./stream/GenericWorker"),l=o?"uint8array":"array";n.magic="\b\0",a.inherits(i,s),i.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(l,e.data),!1)},i.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)}
vendor: 6,730 bytes, lines 222-223
222,i.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},i.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this 223;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new i("Deflate",e)},n.uncompressWorker=function(){return new i("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t){"use strict";function n(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i}function i(e,t,i,o,a,c){var u,h,f=e.file,p=e.compression,m=c!==s.utf8encode,g=r.transformTo("string",c(f.name)),v=r.transformTo("string",s.utf8encode(f.name)),y=f.comment,_=r.transformTo("string",c(y)),b=r.transformTo("string",s.utf8encode(y)),T=v.length!==f.name.length,C=b.length!==y.length,E="",w="",I="",D=f.dir,x=f.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!i||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var k=0;t&&(k|=8),m||!T&&!C||(k|=2048);var S,R=0,$=0;D&&(R|=16),"UNIX"===a?($=798,R|=((S=f.unixPermissions)||(S=D?16893:33204),(65535&S)<<16)):($=20,R|=63&(f.dosPermissions||0)),u=x.getUTCHours(),u<<=6,u|=x.getUTCMinutes(),u<<=5,u|=x.getUTCSeconds()/2,h=x.getUTCFullYear()-1980,h<<=4,h|=x.getUTCMonth()+1,h<<=5,h|=x.getUTCDate(),T&&(E+="up"+n((w=n(1,1)+n(l(g),4)+v).length,2)+w),C&&(E+="uc"+n((I=n(1,1)+n(l(_),4)+b).length,2)+I);var A="";return A+="\n\0",A+=n(k,2),A+=p.magic,A+=n(u,2),A+=n(h,2),A+=n(O.crc32,4),A+=n(O.compressedSize,4),A+=n(O.uncompressedSize,4),A+=n(g.length,2),A+=n(E.length,2),{fileRecord:d.LOCAL_FILE_HEADER+A+g+E,dirRecord:d.CENTRAL_FILE_HEADER+n($,2)+A+n(_.length,2)+"\0\0\0\0"+n(R,4)+n(o,4)+g+E+_}}function o(e,t,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}var r=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),d=e("../signature");r.inherits(o,a),o.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},o.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},o.prototype.closedSource=function(e){this.accumulate=!1;var t,o=this.streamFiles&&!e.file.dir,r=i(e,o,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),o)this.push({data:(t=e,d.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},o.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var i,o,a,s,l,c,u=this.bytesWritten-e,h=(i=this.dirRecords.length,o=u,a=e,s=this.zipComment,l=this.encodeFileName,c=r.transformTo("string",l(s)),d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(i,2)+n(i,2)+n(o,4)+n(a,4)+n(c.length,2)+c);this.push({data:h,meta:{percent:100}})},o.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},o.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},o.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},o.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=o},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var i=e("../compressions"),o=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var r=new o(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,n){a++;var o=function(e,t){var n=e||t,o=i[n];if(!o)throw new Error(n+" is not a valid compression method !");return o}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,d=n.date;n._compressWorker(o,s).withStreamInfo("file",{name:e,dir:l,date:d,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(r)}),r.entriesCount=a}catch(e){r.error(e)}return r}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.5.0",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t){"use strict";function n(e){return new o.Promise(function(t,n){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",function(e){n(e)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}var i=e("./utils"),o=e("./external"),r=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");t.exports=function(e,t){var s=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),l.isNode&&l.isStream(e)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip f
223ile",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new a(t);return n.load(e),n}).then(function(e){var i=[o.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)i.push(n(r[a]));return o.Promise.all(i)}).then(function(e){for(var n=e.shift(),i=n.files,o=0;o<i.length;o++){var r=i[o];s.file(r.fileNameStr,r.decompressed,{binary:!0,optimizedBinaryString:!0,date:r.date,dir:r.dir,comment:r.fileCommentStr.length?r.fileCommentStr:null,unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions,createFolders:t.createFolders})}return n.zipComment.length&&(s.comment=n.zipComment),s})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t){"use strict";function n(e,t){o.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}var i=e("../utils"),o=e("../stream/GenericWorker");i.inherits(n,o),n.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t){"use strict";function n(e,t,n){i.call(this,t),this._helper=e;var o=this;e.on("data",function(e,t){o.push(e)||o._helper.pause(),n&&n(t)}).on("error",function(e){o.emit("error",e)}).on("end",function(){o.push(null)})}var i=e("readable-stream").Readable;e("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},t.exports=n},{"../utils":32,"readable-stream":16}],14:[function(e,t){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t){"use strict";function n(e,t,n){var o,r=a.getTypeOf(t),l=a.extend(n||{},d);l.date=l.date||new Date,null!==l.compression&&(l.compression=l.compression.toUpperCase()),"string"==typeof l.unixPermissions&&(l.unixPermissions=parseInt(l.unixPermissions,8)),l.unixPermissions&&16384&l.unixPermissions&&(l.dir=!0),l.dosPermissions&&16&l.dosPermissions&&(l.dir=!0),l.dir&&(e=i(e)),l.createFolders&&(o=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""}(e))&&m.call(this,o,!0);var h,g="string"===r&&!1===l.binary&&!1===l.base64;n&&void 0!==n.binary||(l.binary=!g),(t instanceof c&&0===t.uncompressedSize||l.dir||!t||0===t.length)&&(l.base64=!1,l.binary=!0,t="",l.compression="STORE",r="string"),h=t instanceof c||t instanceof s?t:f.isNode&&f.isStream(t)?new p(e,t):a.prepareContent(e,t,l.binary,l.optimizedBinaryString,l.base64);var v=new u(e,h,l);this.files[e]=v}function i(e){return"/"!==e.slice(-1)&&(e+="/"),e}function o(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var r=e("./utf8"),a=e("./utils"),s=e("./stream/GenericWorker"),l=e("./stream/StreamHelper"),d=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),h=e("./generate"),f=e("./nodejsUtils"),p=e("./nodejs/NodejsStreamInputAdapter"),m=function(e,t){return t=void 0!==t?t:d.createFolders,e=i(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},g={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,i;for(t in this.files)this.files.hasOwnProperty(t)&&(i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i))},filter:function(e){var t=[];
vendor: 8,457 bytes, line 223
223return this.forEach(function(n,i){e(n,i)&&t.push(i)}),t},file:function(e,t,i){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,i),this;if(o(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(o(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=m.call(this,t),i=this.clone();return i.root=n.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";t=h.generateWorker(this,n,i)}catch(e){(t=new s("error")).error(e)}return new l(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=g},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t){t.exports=e("stream")},{stream:void 0}],17:[function(e,t){"use strict";function n(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}var i=e("./DataReader");e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data[this.zero+e]},n.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),o=e.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===n&&this.data[r+2]===i&&this.data[r+3]===o)return r-this.zero;return-1},n.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),o=e.charCodeAt(3),r=this.readData(4);return t===r[0]&&n===r[1]&&i===r[2]&&o===r[3]},n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],18:[function(e,t){"use strict";function n(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}var i=e("../utils");n.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=n},{"../utils":32}],19:[function(e,t){"use strict";function n(e){i.call(this,e)}var i=e("./Uint8ArrayReader");e("../utils").inherits(n,i),n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t){"use strict";function n(e){i.call(this,e)}var i=e("./DataReader");e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},n.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],21:[function(e,t){"use strict";function n(e){i.call(this,e)}var i=e("./ArrayReader");e("../utils").inherits(n,i),n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(e,t){"use strict";var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),r=e("./StringReader"),a=e("./NodeBufferReader"),s=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new a(e):i.uint8array?new s(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new r(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t){"use strict";function n(e){i.call(this,"ConvertWorker to "+e),this.destType=e}var i=e("./GenericWorker"),o=e("../utils");o.inherits(n,i),n.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(e,t){"use strict";function n(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}var i=e("./GenericWorker"),o=e("../crc32");e("../utils").inherits(n,i),n.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t){"use strict";function n(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}var i=e("../utils"),o=e("./GenericWorker");i.inherits(n,o),n.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},t.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(e,t){"use strict";function n(e){o.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}var i=e("../utils"),o=e("./GenericWorker");i.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,t){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}
vendor: 11,532 bytes, line 223
223n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t){"use strict";function n(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,i.checkSupport(a),this._worker=e.pipe(new o(a)),e.lock()}catch(e){this._worker=new r("error"),this._worker.error(e)}}var i=e("../utils"),o=e("./ConvertWorker"),r=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),d=null;if(s.nodestream)try{d=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}n.prototype={accumulate:function(e){return t=this,n=e,new l.Promise(function(e,o){var r=[],s=t._internalType,l=t._outputType,d=t._mimeType;t.on("data",function(e,t){r.push(e),n&&n(t)}).on("error",function(e){r=[],o(e)}).on("end",function(){try{var t=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,o=null,r=0;for(n=0;n<t.length;n++)r+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(o=new Uint8Array(r),n=0;n<t.length;n++)o.set(t[n],i),i+=t[n].length;return o;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,r),d);e(t)}catch(t){o(t)}r=[]}).resume()});var t,n},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){i.delay(t,arguments,n)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=n},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),n.blob=0===o.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";function i(){l.call(this,"utf-8 decode"),this.leftOver=null}function o(){l.call(this,"utf-8 encode")}for(var r=e("./utils"),a=e("./support"),s=e("./nodejsUtils"),l=e("./stream/GenericWorker"),d=new Array(256),c=0;c<256;c++)d[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;d[254]=d[254]=1,n.utf8encode=function(e){return a.nodebuffer?s.newBufferFrom(e,"utf-8"):function(e){var t,n,i,o,r,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=a.uint8array?new Uint8Array(l):new Array(l),o=r=0;r<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[r++]=n:(n<2048?t[r++]=192|n>>>6:(n<65536?t[r++]=224|n>>>12:(t[r++]=240|n>>>18,t[r++]=128|n>>>12&63),t[r++]=128|n>>>6&63),t[r++]=128|63&n);return t}(e)},n.utf8decode=function(e){return a.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,s=new Array(2*a);for(t=n=0;t<a;)if((i=e[t++])<128)s[n++]=i;else if(4<(o=d[i]))s[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return s.length!==n&&(s.subarray?s=s.subarray(0,n):s.length=n),r.applyFromCharCode(s)}(e=r.transformTo(a.uint8array?"uint8array":"array",e))},r.inherits(i,l),i.prototype.processChunk=function(e){var t=r.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+d[e[n]]>t?n:t}(t),s=t;o!==t.length&&(a.uint8array?(s=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(s=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(s),meta:e.meta})},i.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=i,r.inherits(o,l),o.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=o},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";function i(e){return e}function o(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}function r(e){var t=65536,i=n.getTypeOf(e),o=!0;if("uint8array"===i?o=h.applyCanBeUsed.uint8array:"nodebuffer"===i&&(o=h.applyCanBeUsed.nodebuffer),o)for(;1<t;)try{return h.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return h.stringifyByChar(e)}function a(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}var s=e("./support"),l=e("./base64"),d=e("./nodejsUtils"),c=e("set-immediate-shim"),u=e("./external");n.newBlob=function(t,i){n.checkSupport("blob");try{return new Blob([t],{type:i})}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return o.append(t),o.getBlob(i)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(e,t,n){var i=[],o=0,r=e.length;if(r<=n)return String.fromCharCode.apply(null,e);for(;o<r;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+n,r)))):i.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+n,r)))),o+=n;return i.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return s.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return s.nodebuffer&&1===String.fromCharCode.apply(null,d.allocBuffer(1)).length}catch(e){return!1}}()}};n.applyFromCharCode=r;var f={};f.string={string:i,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:function(e){return o(e,d.allocBuffer(e.length))}},f.array={string:r,array:i,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return d.newBufferFrom(e)}},f.arraybuffer={string:function(e){return r(new Uint8Array(e))},array:function(e){return a(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:i,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return d.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:r,array:function(e){return a(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:i,nodebuffer:function(e){return d.newBufferFrom(e)}},f.nodebuffer={string:r,array:function(e){return a(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return a(e,new Uint8Array(e.length))},nodebuffer:i},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return f[i][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":s.nodebuffer&&d.isBuffer(e)?"nodebuffer":s.uint8array&&e instanceof Uint8Array?"uint8array":s.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!s[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){c(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,i,r,a){return u.Promise.resolve(t).then(function(e){return s.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new u.Promise(function(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},i.readAsArrayBuffer(e)}):e}).then(function(t){var d,c=n.getTypeOf(t);return c?("arraybuffer"===c?t=n.transformTo("uint8array",t):"string"===c&&(a?t=l.decode(t):i&&!0!==r&&(t=o(d=t,s.uint8array?new Uint8Array(d.length):new Array(d.length)))),t):u.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim"
vendor: 6,896 bytes, lines 223-224
223:54}],33:[function(e,t){"use strict";function n(e){this.files=[],this.loadOptions=e}var i=e("./reader/readerFor"),o=e("./utils"),r=e("./signature"),a=e("./zipEntry"),s=(e("./utf8"),e("./support"));n.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e], 224this.reader.setIndex(t.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=t-n;if(0<i)this.isSignature(t,r.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=n},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t){"use strict";function n(e,t){this.options=e,this.loadOptions=t}var i=e("./reader/readerFor"),o=e("./utils"),r=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),d=e("./support");n.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);
vendor: 2,543 bytes, line 224
224this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,i,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<o;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i};e.setIndex(o)},handleUTF8:function(){var e=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var r=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(r)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)?null:a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)?null:a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=n},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t){"use strict";function n(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),r=e("./utf8"),a=e("./compressedObject"),s=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var o="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!o&&(t=t.pipe(new r.Utf8EncodeWorker)),!a&&o&&(t=t.pipe(new r.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)}
vendor: 6,367 bytes, line 224
224,nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new r.Utf8EncodeWorker)),a.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof s?this._data:new o(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<l.length;c++)n.prototype[l[c]]=d;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t){(function(e){"use strict";function n(){var e,t;o=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}o=!1}var i,o,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var a=0,s=new r(n),l=e.document.createTextNode("");s.observe(l,{characterData:!0}),i=function(){l.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)i="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){n(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(n,0)};else{var d=new e.MessageChannel;d.port1.onmessage=n,i=function(){d.port2.postMessage(0)}}var c=[];t.exports=function(e){1!==c.push(e)||o||i()}}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t){"use strict";function n(){}function i(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,e!==n&&s(this,e)}function o(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function r(e,t,n){d(function(){var i;try{i=t(n)}catch(i){return c.reject(e,i)}i===e?c.reject(e,new TypeError("Cannot resolve promise with itself")):c.resolve(e,i)})}function a(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function s(e,t){function n(t){o||(o=!0,c.reject(e,t))}function i(t){o||(o=!0,c.resolve(e,t))}var o=!1,r=l(function(){t(i,n)});"error"===r.status&&n(r.value)}function l(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}var d=e("immediate"),c={},u=["REJECTED"],h=["FULFILLED"],f=["PENDING"];(t.exports=i).prototype["finally"]=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){if("function"!=typeof e&&this.state===h||"function"!=typeof t&&this.state===u)return this;var i=new this.constructor(n);return this.state!==f?r(i,this.state===h?e:t,this.outcome):this.queue.push(new o(i,e,t)),i},o.prototype.callFulfilled=function(e){c.resolve(this.promise,e)},o.prototype.otherCallFulfilled=function(e){r(this.promise,this.onFulfilled,e)},o.prototype.callRejected=function(e){c.reject(this.promise,e)},o.prototype.otherCallRejected=function(e){r(this.promise,this.onRejected,e)},c.resolve=function(e,t){var n=l(a,t);if("error"===n.status)return c.reject(e,n.value);var i=n.value;if(i)s(e,i);else{e.state=h,e.outcome=t;for(var o=-1,r=e.queue.length;++o<r;)e.queue[o].callFulfilled(t)}return e},c.reject=function(e,t){e.state=u,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},i.resolve=function(e){return e instanceof this?e:c.resolve(new this(n),e)},i.reject=function(e){var t=new this(n);return c.reject(t,e)},i.all=function(e){function t(e,t){i.resolve(e).then(function(e){a[t]=e,++s!==o||r||(r=!0,c.resolve(d,a))},function(e){r||(r=!0,c.reject(d,e))})}var i=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var o=e.length,r=!1;if(!o)return this.resolve([]);for(var a=new Array(o),s=0,l=-1,d=new this(n);++l<o;)t(e[l],l);return d},i.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,i=!1;if(!t)return this.resolve([]);for(var o,r=-1,a=new this(n);++r<t;)o=e[r],this.resolve(o).then(function(e){i||(i=!0,c.resolve(a,e))},function(e){i||(i=!0,c.reject(a,e))});return a}},{immediate:36}],38:[function(e,t){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";function i(e){if(!(this instanceof i))return new i(e);this.options=a.assign({level:h,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(l[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var o;if(o="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,o))!==u)throw new Error(l[n]);this._dict_set=!0}}function o(e,t){var n=new i(t);if(n.push(e,!0),n.err)throw n.msg||l[n.err];return n.result}var r=e("./zlib/deflate"),a=e("./utils/common"),s=e("./utils/strings"),l=e("./zlib/messages"),d=e("./zlib/zstream"),c=Object.prototype.toString,u=0,h=-1,f=0,p=8;i.prototype.push=function(e,t){var n,i,o=this.strm,l=this.options.chunkSize;if(this.ended)return!1;i=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=s.string2buf(e):"[object ArrayBuffer]"===c.call(e)?o.input=new
vendor: 6,533 bytes, line 224
224Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new a.Buf8(l),o.next_out=0,o.avail_out=l),1!==(n=r.deflate(o,i))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==i&&2!==i)||("string"===this.options.to?this.onData(s.buf2binstring(a.shrinkBuf(o.output,o.next_out))):this.onData(a.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==n);return 4===i?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==i||(this.onEnd(u),!(o.avail_out=0))},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=i,n.deflate=o,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,o(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,o(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";function i(e){if(!(this instanceof i))return new i(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==l.Z_OK)throw new Error(d[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function o(e,t){var n=new i(t);if(n.push(e,!0),n.err)throw n.msg||d[n.err];return n.result}var r=e("./zlib/inflate"),a=e("./utils/common"),s=e("./utils/strings"),l=e("./zlib/constants"),d=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),h=Object.prototype.toString;i.prototype.push=function(e,t){var n,i,o,d,c,u,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;i=t===~~t?t:!0===t?l.Z_FINISH:l.Z_NO_FLUSH,"string"==typeof e?f.input=s.binstring2buf(e):"[object ArrayBuffer]"===h.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new a.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&m&&(u="string"==typeof m?s.string2buf(m):"[object ArrayBuffer]"===h.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,u)),n===l.Z_BUF_ERROR&&!0===g&&(n=l.Z_OK,g=!1),n!==l.Z_STREAM_END&&n!==l.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==l.Z_STREAM_END&&(0!==f.avail_in||i!==l.Z_FINISH&&i!==l.Z_SYNC_FLUSH)||("string"===this.options.to?(o=s.utf8border(f.output,f.next_out),d=f.next_out-o,c=s.buf2string(f.output,o),f.next_out=d,f.avail_out=p-d,d&&a.arraySet(f.output,f.output,o,d,0),this.onData(c)):this.onData(a.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==l.Z_STREAM_END);return n===l.Z_STREAM_END&&(i=l.Z_FINISH),i===l.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l.Z_OK):i!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(f.avail_out=0))},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){e===l.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=i,n.inflate=o,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,o(e,t)},n.ungzip=o},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,i,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),o);else for(var r=0;r<i;r++)e[o+r]=t[n+r]},flattenChunks:function(e){var t,n,i,o,r,a;for(t=i=0,n=e.length;t<n;t++)i+=e[t].length;for(a=new Uint8Array(i),t=o=0,n=e.length;t<n;t++)r=e[t],a.set(r,o),o+=r.length;return a}},r={arraySet:function(e,t,n,i,o){for(var r=0;r<i;r++)e[o+r]=t[n+r]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,r))},n.setTyped(i)},{}],42:[function(e,t,n){"use strict";function i(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&r))return String.fromCharCode.apply(null,o.shrinkBuf(e,t));for(var n="",i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n}var o=e("./common"),r=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var s=new o.Buf8(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;s[254]=s[254]=1,n.string2buf=function(e){var t,n,i,r,a,s=e.length,l=0;for(r=0;r<s;r++)55296==(64512&(n=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(i=e.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new o.Buf8(l),r=a=0;a<l;r++)55296==(64512&(n=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(i=e.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return i(e,e.length)},n.binstring2buf=function(e){for(var t=new o.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,o,r,a,l=t||e.length,d=new Array(2*l);for(n=o=0;n<l;)if((r=e[n++])<128)d[o++]=r;else if(4<(a=s[r]))d[o++]=65533,n+=a-1;else{for(r&=2===a?31:3===a?15:7;1<a&&n<l;)r=r<<6|63&e[n++],a--;1<a?d[o++]=65533:r<65536?d[o++]=r:(r-=65536,d[o++]=55296|r>>10&1023,d[o++]=56320|1023&r)}return i(d,o)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+s[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t){"use strict";
vendor: 26,308 bytes, lines 224-225
224t.exports=function(e,t,n,i){for(var o=65535&e|0,r=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;r=r+(o=o+t[i++]|0)|0,--a;);o%=65521,r%=65521}return o|r<<16|0}},{}],44:[function(e,t){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t){"use strict";var n=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,i,o){var r=n,a=o+i;e^=-1;for(var s=o;s<a;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";function i(e,t){return e.msg=w[t],t}function o(e){return(e<<1)-(4<e?9:0)}function r(e){for(var t=e.length;0<=--t;)e[t]=0}function a(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(b.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function s(e,t){T._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,a(e.strm)}function l(e,t){e.pending_buf[e.pending++]=t}function d(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function c(e,t){var n,i,o=e.max_chain_length,r=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-M?e.strstart-(e.w_size-M):0,d=e.window,c=e.w_mask,u=e.prev,h=e.strstart+L,f=d[r+a-1],p=d[r+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(d[(n=t)+a]===p&&d[n+a-1]===f&&d[n]===d[r]&&d[++n]===d[r+1]){r+=2,n++;do{}while(d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&r<h);if(i=L-(h-r),r=h-L,a<i){if(e.match_start=t,s<=(a=i))break;f=d[r+a-1],p=d[r+a]}}}while((t=u[t&c])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function u(e){var t,n,i,o,r,a,s,l,d,c,u=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=u+(u-M)){for(b.arraySet(e.window,e.window,u,u,0),e.match_start-=u,e.strstart-=u,e.block_start-=u,t=n=e.hash_size;i=e.head[--t],e.head[t]=u<=i?i-u:0,--n;);for(t=n=u;i=e.prev[--t],e.prev[t]=u<=i?i-u:0,--n;);o+=u}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,l=e.strstart+e.lookahead,c=void 0,(d=o)<(c=a.avail_in)&&(c=d),n=0===c?0:(a.avail_in-=c,b.arraySet(s,a.input,a.next_in,c,l),1===a.state.wrap?a.adler=C(a.adler,s,c,l):2===a.state.wrap&&(a.adler=E(a.adler,s,c,l)),a.next_in+=c,a.total_in+=c,c),e.lookahead+=n,e.lookahead+e.insert>=N)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=(e.ins_h<<e.hash_shift^e.window[r+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[r+N-1])&e.hash_mask,e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<N)););}while(e.lookahead<M&&0!==e.strm.avail_in)}function h(e,t){for(var n,i;;){if(e.lookahead<M){if(u(e),e.lookahead<M&&t===I)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-M&&(e.match_length=c(e,n)),e.match_length>=N)if(i=T._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=T._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<N-1?e.strstart:N-1,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}function f(e,t){for(var n,i,o;;){if(e.lookahead<M){if(u(e),e.lookahead<M&&t===I)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=N-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-M&&(e.match_length=c(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===N&&4096<e.strstart-e.match_start)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-N,i=T._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=N-1,e.strstart++,i&&(s(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((i=T._tr_tally(e,0,e.window[e.strstart-1]))&&s(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=T._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<N-1?e.strstart:N-1,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}function p(e,t,n,i,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=o}function m(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=k,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new b.Buf16(2*A),this.dyn_dtree=new b.Buf16(2*(2*R+1)),this.bl_tree=new b.Buf16(2*(2*$+1)),r(this.dyn_ltree),r(this.dyn_dtree),r(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new b.Buf16(K+1),this.heap=new b.Buf16(2*S+1),r(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new b.Buf16(2*S+1),r(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function g(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=O,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?P:F,e.adler=2===t.wrap?0:1,t.last_flush=I,T._tr_init(t),D):i(e,x)}function v(e){var t,n=g(e);return n===D&&((t=e.state).window_size=2*t.w_size,r(t.head),t.max_lazy_match=_[t.level].max_lazy,t.good_match=_[t.level].good_length,t.nice_match=_[t.level].nice_length,t.max_chain_length=_[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=N-1,t.match_available=0,t.ins_h=0),n}function y(e,t,n,o,r,a){if(!e)return x;var s=1;if(-1===t&&(t=6),o<0?(s=0,o=-o):15<o&&(s=2,o-=16),r<1||9<r||n!==k||o<8||15<o||t<0||9<t||a<0||4<a)return i(e,x);8===o&&(o=9);var l=new m;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=o,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+N-1)/N),l.window=new b.Buf8(2*l.w_size),l.head=new b.Buf16(l.hash_size),l.prev=new b.Buf16(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new b.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,v(e)}var _,b=e("../utils/common"),T=e("./trees"),C=e("./adler32"),E=e("./crc32"),w=e("./messages"),I=0,D=0,x=-2,O=2,k=8,S=286,R=30,$=19,A=2*S+1,K=15,N=3,L=258,M=L+N+1,P=42,F=113;_=[new p(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(u(e),0===e.lookahead&&t===I)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,s(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-M&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(s(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(s(e,!1),e.strm.avail_out),1)}),new p(4,4,8,4,h),new p(4,5,16,8,h),new p(4,6,32,32,h),new p(4,4,16,16,f),new p(8,16,32,32,f),new p(8,16,128,128,f),new p(8,32,128,256,f),new p(32,128,258,1024,f),new p(32,258,258,4096,f)],n.deflateInit=function(e,t){return y(e,t,k,15,8,0)},n.deflateInit2=y,n.deflateReset=v,n.deflateResetKeep=g,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?x:(e.state.gzhead=t,D):x},n.deflate=function(e,t){var n,c,h,f;if(!e||!e.state||5<t||t<0)return e?i(e,x):x;if(c=e.state,!e.output||!e.input&&0!==e.avail_in||666===c.status&&4!==t)return i(e,0===e.avail_out?-5:x);if(c.strm=e,n=c.last_flush,c.last_flush=t,c.status===P)if(2===c.wrap)e.adler=0,l(c,31),l(c,139),l(c,8),c.gzhead?(l(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),l(c,255&c.gzhead.time),l(c,c.gzhead.time>>8&255),l(c,c.gzhead.time>>16&255),l(c,c.gzhead.time>>24&255),l(c,9===c.level?2:2<=c.strategy||c.level<2?4:0),l(c,255&c.gzhead.os),c.gzhead.extra&&c.gzhead.extra.length&&(l(c,255&c.gzhead.extra.length),l(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(e.adler=E(e.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=69):(l(c,0),l(c,0),l(c,0),l(c,0),l(c,0),l(c,9===c.level?2:2<=c.strategy||c.level<2?4:0),l(c,3),c.status=F);else{var p=k+(c.w_bits-8<<4)<<8;p|=(2<=c.strategy||c.level<2?0:c.level<6?1:6===c.level?2:3)<<6,0!==c.strstart&&(p|=32),p+=31-p%31,c.status=F,d(c,p),0!==c.strstart&&(d(c,e.adler>>>16),d(c,65535&e.adler)),e.adler=1}if(69===c.status)if(c.gzhead.extra){for(h=c.pending;c.gzindex<(65535&c.gzhead.extra.length)&&(c.pending!==c.pending_buf_size||(c.gzhead.hcrc&&c.pending>h&&(e.adler=E(e.adler,c.pending_buf,c.pending-h,h)),a(e),h=c.pending,c.pending!==c.pending_buf_size));)l(c,255&c.gzhead.extra[c.gzindex]),c.gzindex++;c.gzhead.hcrc&&c.pending>h&&(e.adler=E(e.adler,c.pending_buf,c.pending-h,h)),c.gzindex===c.gzhead.extra.length&&(c.gzindex=0,c.status=73)}else c.status=73;if(73===c.status)if(c.gzhead.name){h=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>h&&(e.adler=E(e.adler,c.pending_buf,c.pending-h,h)),a(e),h=c.pending,c.pending===c.pending_buf_size)){f=1;break}f=c.gzindex<c.gzhead.name.length?255&c.gzhead.name.charCodeAt(c.gzindex++):0,l(c,f)}while(0!==f);c.gzhead.hcrc&&c.pending>h&&(e.adler=E(e.adler,c.pending_buf,c.pending-h,h)),0===f&&(c.gzindex=0,c.status=91)}else c.status=91;if(91===c.status)if(c.gzhead.comment){h=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>h&&(e.adler=E(e.adler,c.pending_buf,c.pending-h,h)),a(e),h=c.pending,c.pending===c.pending_buf_size)){f=1;break}f=c.gzindex<c.gzhead.comment.length?255&c.gzhead.comment.charCodeAt(c.gzindex++):0,l(c,f)}while(0!==f);c.gzhead.hcrc&&c.pending>h&&(e.adler=E(e.adler,c.pending_buf,c.pending-h,h)),0===f&&(c.status=103)}else c.status=103;if(103===c.status&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&a(e),c.pending+2<=c.pending_buf_size&&(l(c,255&e.adler),l(c,e.adler>>8&255),e.adler=0,c.status=F)):c.status=F),0!==c.pending){if(a(e),0===e.avail_out)return c.last_flush=-1,D}else if(0===e.avail_in&&o(t)<=o(n)&&4!==t)return i(e,-5);if(666===c.status&&0!==e.avail_in)return i(e,-5);if(0!==e.avail_in||0!==c.lookahead||t!==I&&666!==c.status){var m=2===c.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(u(e),0===e.lookahead)){if(t===I)return 1;break}if(e.match_length=0,n=T._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2 225}(c,t):3===c.strategy?function(e,t){for(var n,i,o,r,a=e.window;;){if(e.lookahead<=L){if(u(e),e.lookahead<=L&&t===I)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=N&&0<e.strstart&&(i=a[o=e.strstart-1])===a[++o]&&i===a[++o]&&i===a[++o]){r=e.strstart+L;do{}while(i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&i===a[++o]&&o<r);e.match_length=L-(r-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(n=T._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=T._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}(c,t):_[c.level].func(c,t);if(3!==m&&4!==m||(c.status=666),1===m||3===m)return 0===e.avail_out&&(c.last_flush=-1),D;if(2===m&&(1===t?T._tr_align(c):5!==t&&(T._tr_stored_block(c,0,0,!1),3===t&&(r(c.head),0===c.lookahead&&(c.strstart=0,c.block_start=0,c.insert=0))),a(e),0===e.avail_out))return c.last_flush=-1,D}return 4!==t?D:c.wrap<=0?1:(2===c.wrap?(l(c,255&e.adler),l(c,e.adler>>8&255),l(c,e.adler>>16&255),l(c,e.adler>>24&255),l(c,255&e.total_in),l(c,e.total_in>>8&255),l(c,e.total_in>>16&255),l(c,e.total_in>>24&255)):(d(c,e.adler>>>16),d(c,65535&e.adler)),a(e),0<c.wrap&&(c.wrap=-c.wrap),0!==c.pending?D:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==P&&69!==t&&73!==t&&91!==t&&103!==t&&t!==F&&666!==t?i(e,x):(e.state=null,t===F?i(e,-3):D):x},n.deflateSetDictionary=function(e,t){var n,i,o,a,s,l,d,c,h=t.length;if(!e||!e.state)return x;if(2===(a=(n=e.state).wrap)||1===a&&n.status!==P||n.lookahead)return x;for(1===a&&(e.adler=C(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===a&&(r(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new b.Buf8(n.w_size),b.arraySet(c,t,h-n.w_size,n.w_size,0),t=c,h=n.w_size),s=e.avail_in,l=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,u(n);n.lookahead>=N;){for(i=n.strstart,o=n.lookahead-(N-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+N-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=N-1,u(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=N-1,n.match_available=0,e.next_in=l,e.input=d,e.avail_in=s,n.wrap=a,D},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t){"use strict";t.exports=function(e,t){var n,i,o,r,a,s,l,d,c,u,h,f,p,m,g,v,y,_,b,T,C,E,w,I,D;n=e.state,i=e.next_in,I=e.input,o=i+(e.avail_in-5),r=e.next_out,D=e.output,a=r-(t-e.avail_out),s=r+(e.avail_out-257),l=n.dmax,d=n.wsize,c=n.whave,u=n.wnext,h=n.window,f=n.hold,p=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(f+=I[i++]<<p,p+=8,f+=I[i++]<<p,p+=8),_=m[f&v];t:for(;;){if(f>>>=b=_>>>24,p-=b,0==(b=_>>>16&255))D[r++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=m[(65535&_)+(f&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}T=65535&_,(b&=15)&&(p<b&&(f+=I[i++]<<p,p+=8),T+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=I[i++]<<p,p+=8,f+=I[i++]<<p,p+=8),_=g[f&y];n:for(;;){if(f>>>=b=_>>>24,p-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=g[(65535&_)+(f&(1<<b)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(C=65535&_,p<(b&=15)&&(f+=I[i++]<<p,(p+=8)<b&&(f+=I[i++]<<p,p+=8)),l<(C+=f&(1<<b)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,(b=r-a)<C){if(c<(b=C-b)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(w=h,(E=0)===u){if(E+=d-b,b<T){for(T-=b;D[r++]=h[E++],--b;);E=r-C,w=D}}else if(u<b){if(E+=d+u-b,(b-=u)<T){for(T-=b;D[r++]=h[E++],--b;);if(E=0,u<T){for(T-=b=u;D[r++]=h[E++],--b;);E=r-C,w=D}}}else if(E+=u-b,b<T){for(T-=b;D[r++]=h[E++],--b;);E=r-C,w=D}for(;2<T;)D[r++]=w[E++],D[r++]=w[E++],D[r++]=w[E++],T-=3;T&&(D[r++]=w[E++],1<T&&(D[r++]=w[E++]))}else{for(E=r-C;D[r++]=D[E++],D[r++]=D[E++],D[r++]=D[E++],2<(T-=3););T&&(D[r++]=D[E++],1<T&&(D[r++]=D[E++]))}break}}break}}while(i<o&&r<s);i-=T=p>>3,f&=(1<<(p-=T<<3))-1,e.next_in=i,e.next_out=r,e.avail_in=i<o?o-i+5:5-(i-o),e.avail_out=r<s?s-r+257:257-(r-s),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){"use strict";function i(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function r(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=C,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new f.Buf32(E),t.distcode=t.distdyn=new f.Buf32(w),t.sane=1,t.back=-1,b):T}function a(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,r(e)):T}function s(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?T:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,a(e))):T}function l(e,t){var n,i;return e?(i=new o,(e.state=i).window=null,(n=s(e,t))!==b&&(e.state=null),n):T}function d(e){if(I){var t;for(u=new f.Buf32(512),h=new f.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(v(y,e.lens,0,288,u,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;v(_,e.lens,0,32,h,0,e.work,{bits:5}),I=!1}e.lencode=u,e.lenbits=9,e.distcode=h,e.distbits=5}function c(e,t,n,i){var o,r=e.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new f.Buf8(r.wsize)),i>=r.wsize?(f.arraySet(r.window,t,n-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):(i<(o=r.wsize-r.wnext)&&(o=i),f.arraySet(r.window,t,n-i,o,r.wnext),(i-=o)?(f.arraySet(r.window,t,n-i,i,0),r.wnext=i,r.whave=r.wsize):(r.wnext+=o,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=o))),0}var u,h,f=e("../utils/common"),p=e("./adler32"),m=e("./crc32"),g=e("./inffast"),v=e("./inftrees"),y=1,_=2,b=0,T=-2,C=1,E=852,w=592,I=!0;n.inflateReset=a,n.inflateReset2=s,n.inflateResetKeep=r,n.inflateInit=function(e){return l(e,15)},n.inflateInit2=l,n.inflate=function(e,t){var n,o,r,a,s,l,u,h,E,w,I,D,x,O,k,S,R,$,A,K,N,L,M,P,F=0,B=new f.Buf8(4),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return T;12===(n=e.state).mode&&(n.mode=13),s=e.next_out,r=e.output,u=e.avail_out,a=e.next_in,o=e.input,l=e.avail_in,h=n.hold,E=n.bits,w=l,I=u,L=b;e:for(;;)switch(n.mode){case C:if(0===n.wrap){n.mode=13;break}for(;E<16;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if(2&n.wrap&&35615===h){B[n.check=0]=255&h,B[1]=h>>>8&255,n.check=m(n.check,B,2,0),E=h=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&h)){e.msg="unknown compression method",n.mode=30;break}if(E-=4,N=8+(15&(h>>>=4)),0===n.wbits)n.wbits=N;else if(N>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<N,e.adler=n.check=1,n.mode=512&h?10:12,E=h=0;break;case 2:for(;E<16;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if(n.flags=h,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=h>>8&1),512&n.flags&&(B[0]=255&h,B[1]=h>>>8&255,n.check=m(n.check,B,2,0)),E=h=0,n.mode=3;case 3:for(;E<32;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}n.head&&(n.head.time=h),512&n.flags&&(B[0]=255&h,B[1]=h>>>8&255,B[2]=h>>>16&255,B[3]=h>>>24&255,n.check=m(n.check,B,4,0)),E=h=0,n.mode=4;case 4:for(;E<16;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}n.head&&(n.head.xflags=255&h,n.head.os=h>>8),512&n.flags&&(B[0]=255&h,B[1]=h>>>8&255,n.check=m(n.check,B,2,0)),E=h=0,n.mode=5;case 5:if(1024&n.flags){for(;E<16;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}n.length=h,n.head&&(n.head.extra_len=h),512&n.flags&&(B[0]=255&h,B[1]=h>>>8&255,n.check=m(n.check,B,2,0)),E=h=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(l<(D=n.length)&&(D=l),D&&(n.head&&(N=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),f.arraySet(n.head.extra,o,a,D,N)),512&n.flags&&(n.check=m(n.check,o,D,a)),l-=D,a+=D,n.length-=D),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===l)break e;for(D=0;N=o[a+D++],n.head&&N&&n.length<65536&&(n.head.name+=String.fromCharCode(N)),N&&D<l;);if(512&n.flags&&(n.check=m(n.check,o,D,a)),l-=D,a+=D,N)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===l)break e;for(D=0;N=o[a+D++],n.head&&N&&n.length<65536&&(n.head.comment+=String.fromCharCode(N)),N&&D<l;);if(512&n.flags&&(n.check=m(n.check,o,D,a)),l-=D,a+=D,N)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;E<16;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if(h!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}E=h=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;E<32;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}e.adler=n.check=i(h),E=h=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=l,n.hold=h,n.bits=E,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){h>>>=7&E,E-=7&E,n.mode=27;break}for(;E<3;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}switch(n.last=1&h,E-=1,3&(h>>>=1)){case 0:n.mode=14;break;case 1:if(d(n),n.mode=20,6!==t)break;h>>>=2,E-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}h>>>=2,E-=2;break;case 14:for(h>>>=7&E,E-=7&E;E<32;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if((65535&h)!=(h>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&h,E=h=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(D=n.length){if(l<D&&(D=l),u<D&&(D=u),0===D)break e;f.arraySet(r,o,a,D,s),l-=D,a+=D,u-=D,s+=D,n.length-=D;break}n.mode=12;break;case 17:for(;E<14;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if(n.nlen=257+(31&h),h>>>=5,E-=5,n.ndist=1+(31&h),h>>>=5,E-=5,n.ncode=4+(15&h),h>>>=4,E-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;E<3;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}n.lens[j[n.have++]]=7&h,h>>>=3,E-=3}for(;n.have<19;)n.lens[j[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,M={bits:n.lenbits},L=v(0,n.lens,0,19,n.lencode,0,n.work,M),n.lenbits=M.bits,L){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;S=(F=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,R=65535&F,!((k=F>>>24)<=E);){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if(R<16)h>>>=k,E-=k,n.lens[n.have++]=R;else{if(16===R){for(P=k+2;E<P;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if(h>>>=k,E-=k,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}N=n.lens[n.have-1],D=3+(3&h),h>>>=2,E-=2}else if(17===R){for(P=k+3;E<P;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}E-=k,N=0,D=3+(7&(h>>>=k)),h>>>=3,E-=3}else{for(P=k+7;E<P;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}E-=k,N=0,D=11+(127&(h>>>=k)),h>>>=7,E-=7}if(n.have+D>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;D--;)n.lens[n.have++]=N}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,M={bits:n.lenbits},L=v(y,n.lens,0,n.nlen,n.lencode,0,n.work,M),n.lenbits=M.bits,L){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,M={bits:n.distbits},L=v(_,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,M),n.distbits=M.bits,L){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=l&&258<=u){e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=l,n.hold=h,n.bits=E,g(e,I),s=e.next_out,r=e.output,u=e.avail_out,a=e.next_in,o=e.input,l=e.avail_in,h=n.hold,E=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(F=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,R=65535&F,!((k=F>>>24)<=E);){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if(S&&0==(240&S)){for($=k,A=S,K=R;S=(F=n.lencode[K+((h&(1<<$+A)-1)>>$)])>>>16&255,R=65535&F,!($+(k=F>>>24)<=E);){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}h>>>=$,E-=$,n.back+=$}if(h>>>=k,E-=k,n.back+=k,n.length=R,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(P=n.extra;E<P;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}n.length+=h&(1<<n.extra)-1,h>>>=n.extra,E-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(F=n.distcode[h&(1<<n.distbits)-1])>>>16&255,R=65535&F,!((k=F>>>24)<=E);){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if(0==(240&S)){for($=k,A=S,K=R;S=(F=n.distcode[K+((h&(1<<$+A)-1)>>$)])>>>16&255,R=65535&F,!($+(k=F>>>24)<=E);){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}h>>>=$,E-=$,n.back+=$}if(h>>>=k,E-=k,n.back+=k,64&S){e.msg="invalid distance code",n.mode=30;break}n.offset=R,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(P=n.extra;E<P;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}n.offset+=h&(1<<n.extra)-1,h>>>=n.extra,E-=n.extra,n.back+=n.extra}if(n.offset>
vendor: 4,173 bytes, line 225
225n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===u)break e;if(D=I-u,n.offset>D){if((D=n.offset-D)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}x=D>n.wnext?(D-=n.wnext,n.wsize-D):n.wnext-D,D>n.length&&(D=n.length),O=n.window}else O=r,x=s-n.offset,D=n.length;for(u<D&&(D=u),u-=D,n.length-=D;r[s++]=O[x++],--D;);0===n.length&&(n.mode=21);break;case 26:if(0===u)break e;r[s++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;E<32;){if(0===l)break e;l--,h|=o[a++]<<E,E+=8}if(I-=u,e.total_out+=I,n.total+=I,I&&(e.adler=n.check=n.flags?m(n.check,r,I,s-I):p(n.check,r,I,s-I)),I=u,(n.flags?h:i(h))!==n.check){e.msg="incorrect data check",n.mode=30;break}E=h=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;E<32;){if(0===l)break e;l--,h+=o[a++]<<E,E+=8}if(h!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}E=h=0}n.mode=29;case 29:L=1;break e;case 30:L=-3;break e;case 31:return-4;case 32:default:return T}return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=l,n.hold=h,n.bits=E,(n.wsize||I!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&c(e,e.output,e.next_out,I-e.avail_out)?(n.mode=31,-4):(w-=e.avail_in,I-=e.avail_out,e.total_in+=w,e.total_out+=I,n.total+=I,n.wrap&&I&&(e.adler=n.check=n.flags?m(n.check,r,I,e.next_out-I):p(n.check,r,I,e.next_out-I)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===I||4===t)&&L===b&&(L=-5),L)},n.inflateEnd=function(e){if(!e||!e.state)return T;var t=e.state;return t.window&&(t.window=null),e.state=null,b},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?T:((n.head=t).done=!1,b):T},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?T:11===n.mode&&p(1,t,i,0)!==n.check?-3:c(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,b):T},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t){"use strict";var n=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],r=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,s,l,d,c,u,h){var f,p,m,g,v,y,_,b,T,C=h.bits,E=0,w=0,I=0,D=0,x=0,O=0,k=0,S=0,R=0,$=0,A=null,K=0,N=new n.Buf16(16),L=new n.Buf16(16),M=null,P=0;for(E=0;E<=15;E++)N[E]=0;for(w=0;w<l;w++)N[t[s+w]]++;for(x=C,D=15;1<=D&&0===N[D];D--);if(D<x&&(x=D),0===D)return d[c++]=20971520,d[c++]=20971520,h.bits=1,0;for(I=1;I<D&&0===N[I];I++);for(x<I&&(x=I),E=S=1;E<=15;E++)if(S<<=1,(S-=N[E])<0)return-1;if(0<S&&(0===e||1!==D))return-1;for(L[1]=0,E=1;E<15;E++)L[E+1]=L[E]+N[E];for(w=0;w<l;w++)0!==t[s+w]&&(u[L[t[s+w]]++]=w);if(y=0===e?(A=M=u,19):1===e?(A=i,K-=257,M=o,P-=257,256):(A=r,M=a,-1),E=I,v=c,k=w=$=0,m=-1,g=(R=1<<(O=x))-1,1===e&&852<R||2===e&&592<R)return 1;for(;;){for(_=E-k,T=u[w]<y?(b=0,u[w]):u[w]>y?(b=M[P+u[w]],A[K+u[w]]):(b=96,0),f=1<<E-k,I=p=1<<O;d[v+($>>k)+(p-=f)]=_<<24|b<<16|T|0,0!==p;);for(f=1<<E-1;$&f;)f>>=1;if(0!==f?($&=f-1,$+=f):$=0,w++,0==--N[E]){if(E===D)break;E=t[s+u[w]]}if(x<E&&($&g)!==m){for(0===k&&(k=x),v+=I,S=1<<(O=E-k);O+k<D&&!((S-=N[O+k])<=0);)O++,S<<=1;if(R+=1<<O,1===e&&852<R||2===e&&592<R)return 1;d[m=$&g]=x<<24|O<<16|v-c|0}}return 0!==$&&(d[v+$]=E-k<<24|64<<16|0),h.bits=x,0}},{"../utils/common":41}],51:[function(e,t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";function i(e){for(var t=e.length;0<=--t;)e[t]=0}function o(e,t,n,i,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=o,this.has_stree=e&&e.length}function r(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function a(e){return e<256?S[e]:S[256+(e>>>7)]}
vendor: 6,159 bytes, line 225
225function s(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function l(e,t,n){e.bi_valid>E-n?(e.bi_buf|=t<<e.bi_valid&65535,s(e,e.bi_buf),e.bi_buf=t>>E-e.bi_valid,e.bi_valid+=n-E):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function d(e,t,n){l(e,n[2*t],n[2*t+1])}function c(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function u(e,t,n){var i,o,r=new Array(C+1),a=0;for(i=1;i<=C;i++)r[i]=a=a+n[i-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=c(r[s]++,s))}}function h(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function f(e){8<e.bi_valid?s(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function p(e,t,n,i){var o=2*t,r=2*n;return e[o]<e[r]||e[o]===e[r]&&i[t]<=i[n]}function m(e,t,n){for(var i=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&p(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!p(t,i,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=i}function g(e,t,n){var i,o,r,s,c=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],o=e.pending_buf[e.l_buf+c],c++,0===i?d(e,o,t):(d(e,(r=R[o])+256+1,t),0!==(s=w[r])&&l(e,o-=$[r],s),d(e,r=a(--i),n),0!==(s=I[r])&&l(e,i-=L[r],s)),c<e.last_lit;);d(e,256,t)}function v(e,t){var n,i,o,r=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,d=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==r[2*n]?(e.heap[++e.heap_len]=d=n,e.depth[n]=0):r[2*n+1]=0;for(;e.heap_len<2;)r[2*(o=e.heap[++e.heap_len]=d<2?++d:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=d,n=e.heap_len>>1;1<=n;n--)m(e,r,n);for(o=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],m(e,r,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,r[2*o]=r[2*n]+r[2*i],e.depth[o]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,r[2*n+1]=r[2*i+1]=o,e.heap[1]=o++,m(e,r,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,o,r,a,s,l=t.dyn_tree,d=t.max_code,c=t.stat_desc.static_tree,u=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(r=0;r<=C;r++)e.bl_count[r]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)p<(r=l[2*l[2*(i=e.heap[n])+1]+1]+1)&&(r=p,m++),l[2*i+1]=r,d<i||(e.bl_count[r]++,a=0,f<=i&&(a=h[i-f]),s=l[2*i],e.opt_len+=s*(r+a),u&&(e.static_len+=s*(c[2*i+1]+a)));if(0!==m){do{for(r=p-1;0===e.bl_count[r];)r--;e.bl_count[r]--,e.bl_count[r+1]+=2,e.bl_count[p]--,m-=2}while(0<m);for(r=p;0!==r;r--)for(i=e.bl_count[r];0!==i;)d<(o=e.heap[--n])||(l[2*o+1]!==r&&(e.opt_len+=(r-l[2*o+1])*l[2*o],l[2*o+1]=r),i--)}}(e,t),u(r,d,e.bl_count)}function y(e,t,n){var i,o,r=-1,a=t[1],s=0,l=7,d=4;for(0===a&&(l=138,d=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)o=a,a=t[2*(i+1)+1],++s<l&&o===a||(s<d?e.bl_tree[2*o]+=s:0!==o?(o!==r&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,r=o,d=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4))}function _(e,t,n){var i,o,r=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),i=0;i<=n;i++)if(o=a,a=t[2*(i+1)+1],!(++s<c&&o===a)){if(s<u)for(;d(e,o,e.bl_tree),0!=--s;);else 0!==o?(o!==r&&(d(e,o,e.bl_tree),s--),d(e,16,e.bl_tree),l(e,s-3,2)):s<=10?(d(e,17,e.bl_tree),l(e,s-3,3)):(d(e,18,e.bl_tree),l(e,s-11,7));r=o,u=(s=0)===a?(c=138,3):o===a?(c=6,3):(c=7,4)}}function b(e,t,n,i){var o,r,a;l(e,0+(i?1:0),3),r=t,a=n,f(o=e),s(o,a),s(o,~a),T.arraySet(o.pending_buf,o.window,r,a,o.pending),o.pending+=a}var T=e("../utils/common"),C=15,E=16,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=new Array(576);i(O);var k=new Array(60);i(k);var S=new Array(512);i(S);var R=new Array(256);i(R);var $=new Array(29);i($);var A,K,N,L=new Array(30);i(L);var M=!1;n._tr_init=function(e){M||(function(){var e,t,n,i,r,a=new Array(C+1);for(i=n=0;i<28;i++)for($[i]=n,e=0;e<1<<w[i];e++)R[n++]=i;for(R[n-1]=i,i=r=0;i<16;i++)for(L[i]=r,e=0;e<1<<I[i];e++)S[r++]=i;for(r>>=7;i<30;i++)for(L[i]=r<<7,e=0;e<1<<I[i]-7;e++)S[256+r++]=i;for(t=0;t<=C;t++)a[t]=0;for(e=0;e<=143;)O[2*e+1]=8,e++,a[8]++;for(;e<=255;)O[2*e+1]=9,e++,a[9]++;for(;e<=279;)O[2*e+1]=7,e++,a[7]++;for(;e<=287;)O[2*e+1]=8,e++,a[8]++;for(u(O,287,a),e=0;e<30;e++)k[2*e+1]=5,k[2*e]=c(e,5);A=new o(O,w,257,286,C),K=new o(k,I,0,30,C),N=new o(new Array(0),D,0,19,7)}(),M=!0),e.l_desc=new r(e.dyn_ltree,A),e.d_desc=new r(e.dyn_dtree,K),e.bl_desc=new r(e.bl_tree,N),e.bi_buf=0,e.bi_valid=0,h(e)},n._tr_stored_block=b,n._tr_flush_block=function(e,t,n,i){var o,r,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),v(e,e.l_desc),v(e,e.d_desc),a=function(e){var t;for(y(e,e.dyn_ltree,e.l_desc.max_code),y(e,e.dyn_dtree,e.d_desc.max_code),v(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*x[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(r=e.static_len+3+7>>>3)<=o&&(o=r)):o=r=n+5,n+4<=o&&-1!==t?b(e,t,n,i):4===e.strategy||r===o?(l(e,2+(i?1:0),3),g(e,O,k)):(l(e,4+(i?1:0),3),function(e,t,n,i){var o;for(l(e,t-257,5),l(e,n-1,5),l(e,i-4,4),o=0;o<i;o++)l(e,e.bl_tree[2*x[o]+1],3);_(e,e.dyn_ltree,t-1),_(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),g(e,e.dyn_ltree,e.dyn_dtree)),h(e),i&&f(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(R[n]+256+1)]++,e.dyn_dtree[2*a(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;l(e,2,3),d(e,256,O),16===(t=e).bi_valid?(s(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t){"use strict";
225t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)})}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}); 226/*! 227 Copyright 2010-2018 SpryMedia Ltd. 228 229 This source file is free software, available under the following license: 230 MIT license - http://datatables.net/license/mit 231 232 This source file is distributed in the hope that it will be useful, but 233 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 234 or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. 235 236 For details please refer to: http://www.datatables.net 237 FixedColumns 3.3.0 238 ©2010-2018 SpryMedia Ltd - datatables.net/license 239*/ 240var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,o=0;o<i;o++){var r=e[o];if(t.call(n,r,o,e))return{i:o,v:r}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,n,i){if(t){for(n=$jscomp.global,e=e.split("."),i=0;i<e.length-1;i++){var o=e[i];o in n||(n[o]={}),n=n[o]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.find",function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}},"es6","es3"),function(e){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return e(t,window,document)}):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n&&n.fn.dataTable||(n=require("datatables.net")(t,n).$),e(n,t,t.document)}:e(jQuery,window,document)}(function(e,t,n,i){var o,r=e.fn.dataTable,a=function(t,n){var o=this;if(this instanceof a){n!==i&&!0!==n||(n={});var r=e.fn.dataTable.camelToHungarian;if(r&&(r(a.defaults,a.defaults,!0),r(a.defaults,n)),t=new e.fn.dataTable.Api(t).settings()[0],this.s={dt:t,iTableColumns:t.aoColumns.length,aiOuterWidths:[],aiInnerWidths:[],rtl:"rtl"===e(t.nTable).css("direction")},this.dom={scroller:null,header:null,body:null,footer:null,grid:{wrapper:null,dt:null,left:{wrapper:null,head:null,body:null,foot:null},right:{wrapper:null,head:null,body:null,foot:null}},clone:{left:{header:null,body:null,footer:null},right:{header:null,body:null,footer:null}}},t._oFixedColumns)throw"FixedColumns already initialised on this table";t._oFixedColumns=this,t._bInitComplete?this._fnConstruct(n):t.oApi._fnCallbackReg(t,"aoInitComplete",function(){o._fnConstruct(n)},"FixedColumns")}else alert("FixedColumns warning: FixedColumns must be initialised with the 'new' keyword.")};return e.extend(a.prototype,{fnUpdate:function(){this._fnDraw(!0)},fnRedrawLayout:function(){this._fnColCalc(),this._fnGridLayout(),this.fnUpdate()},fnRecalculateHeight:function(e){delete e._DTTC_iHeight,e.style.height="auto"},fnSetRowHeight:function(e,t){e.style.height=t+"px"},fnGetPosition:function(t){var n=this.s.dt.oInstance;if(e(t).parents(".DTFC_Cloned").length){if("tr"===t.nodeName.toLowerCase())return t=e(t).index(),n.fnGetPosition(e("tr",this.s.dt.nTBody)[t]);var i=e(t).index();return t=e(t.parentNode).index(),[n.fnGetPosition(e("tr",this.s.dt.nTBody)[t]),i,n.oApi._fnVisibleToColumnIndex(this.s.dt,i)]}return n.fnGetPosition(t)},fnToFixedNode:function(t,n){var i;return n<this.s.iLeftColumns?i=e(this.dom.clone.left.body).find("[data-dt-row="+t+"][data-dt-column="+n+"]"):n>=this.s.iRightColumns&&(i=e(this.dom.clone.right.body).find("[data-dt-row="+t+"][data-dt-column="+n+"]")),i&&i.length?i[0]:new e.fn.dataTable.Api(this.s.dt).cell(t,n).node()},_fnConstruct:function(o){var r=this;if("function"!=typeof this.s.dt.oInstance.fnVersionCheck||!0!==this.s.dt.oInstance.fnVersionCheck("1.8.0"))alert("FixedColumns "+a.VERSION+" required DataTables 1.8.0 or later. Please upgrade your DataTables installation");else if(""===this.s.dt.oScroll.sX)this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,"FixedColumns is not needed (no x-scrolling in DataTables enabled), so no action will be taken. Use 'FixedHeader' for column fixing when scrolling is not enabled");else{this.s=e.extend(!0,this.s,a.defaults,o),o=this.s.dt.oClasse
240s,this.dom.grid.dt=e(this.s.dt.nTable).parents("div."+o.sScrollWrapper)[0],this.dom.scroller=e("div."+o.sScrollBody,this.dom.grid.dt)[0],this._fnColCalc(),this._fnGridSetup();var s,l=!1;e(this.s.dt.nTableWrapper).on("mousedown.DTFC",function(t){0===t.button&&(l=!0,e(n).one("mouseup",function(){l=!1}))}),e(this.dom.scroller).on("mouseover.DTFC touchstart.DTFC",function(){l||(s="main")}).on("scroll.DTFC",function(e){!s&&e.originalEvent&&(s="main"),"main"===s&&(0<r.s.iLeftColumns&&(r.dom.grid.left.liner.scrollTop=r.dom.scroller.scrollTop),0<r.s.iRightColumns&&(r.dom.grid.right.liner.scrollTop=r.dom.scroller.scrollTop))});var d="onwheel"in n.createElement("div")?"wheel.DTFC":"mousewheel.DTFC";0<r.s.iLeftColumns&&e(r.dom.grid.left.liner).on("mouseover.DTFC touchstart.DTFC",function(){l||(s="left")}).on("scroll.DTFC",function(e){!s&&e.originalEvent&&(s="left"),"left"===s&&(r.dom.scroller.scrollTop=r.dom.grid.left.liner.scrollTop,0<r.s.iRightColumns&&(r.dom.grid.right.liner.scrollTop=r.dom.grid.left.liner.scrollTop))}).on(d,function(e){r.dom.scroller.scrollLeft-="wheel"===e.type?-e.originalEvent.deltaX:e.originalEvent.wheelDeltaX}),0<r.s.iRightColumns&&e(r.dom.grid.right.liner).on("mouseover.DTFC touchstart.DTFC",function(){l||(s="right")}).on("scroll.DTFC",function(e){!s&&e.originalEvent&&(s="right"),"right"===s&&(r.dom.scroller.scrollTop=r.dom.grid.right.liner.scrollTop,0<r.s.iLeftColumns&&(r.dom.grid.left.liner.scrollTop=r.dom.grid.right.liner.scrollTop))}).on(d,function(e){r.dom.scroller.scrollLeft-="wheel"===e.type?-e.originalEvent.deltaX:e.originalEvent.wheelDeltaX}),e(t).on("resize.DTFC",function(){r._fnGridLayout.call(r)});var c=!0,u=e(this.s.dt.nTable);u.on("draw.dt.DTFC",function(){r._fnColCalc(),r._fnDraw.call(r,c),c=!1}).on("column-sizing.dt.DTFC",function(){r._fnColCalc(),r._fnGridLayout(r)}).on("column-visibility.dt.DTFC",function(e,t,n,o,a){(a===i||a)&&(r._fnColCalc(),r._fnGridLayout(r),r._fnDraw(!0))}).on("select.dt.DTFC deselect.dt.DTFC",function(e){"dt"===e.namespace&&r._fnDraw(!1)}).on("destroy.dt.DTFC",function(){u.off(".DTFC"),e(r.dom.scroller).off(".DTFC"),e(t).off(".DTFC"),e(r.s.dt.nTableWrapper).off(".DTFC"),e(r.dom.grid.left.liner).off(".DTFC "+d),e(r.dom.grid.left.wrapper).remove(),e(r.dom.grid.right.liner).off(".DTFC "+d),e(r.dom.grid.right.wrapper).remove()}),this._fnGridLayout(),this.s.dt.oInstance.fnDraw(!1)}},_fnColCalc:function(){var t=this,n=0,i=0;this.s.aiInnerWidths=[],this.s.aiOuterWidths=[],e.each(this.s.dt.aoColumns,function(o,r){if((r=e(r.nTh)).filter(":visible").length){var a=r.outerWidth();if(0===t.s.aiOuterWidths.length){var s=e(t.s.dt.nTable).css("border-left-width");a+="string"==typeof s&&-1===s.indexOf("px")?1:parseInt(s,10)}t.s.aiOuterWidths.length===t.s.dt.aoColumns.length-1&&(a+="string"==typeof(s=e(t.s.dt.nTable).css("border-right-width"))&&-1===s.indexOf("px")?1:parseInt(s,10)),t.s.aiOuterWidths.push(a),t.s.aiInnerWidths.push(r.width()),o<t.s.iLeftColumns&&(n+=a),t.s.iTableColumns-t.s.iRightColumns<=o&&(i+=a)}else t.s.aiInnerWidths.push(0),t.s.aiOuterWidths.push(0)}),this.s.iLeftWidth=n,this.s.iRightWidth=i},_fnGridSetup:function(){var t=this._fnDTOverflow();this.dom.body=this.s.dt.nTable,this.dom.header=this.s.dt.nTHead.parentNode,this.dom.header.parentNode.parentNode.style.position="relative";var n=e('<div class="DTFC_ScrollWrapper" style="position:relative; clear:both;"><div class="DTFC_LeftWrapper" style="position:absolute; top:0; left:0;" aria-hidden="true"><div class="DTFC_LeftHeadWrapper" style="position:relative; top:0; left:0; overflow:hidden;"></div><div class="DTFC_LeftBodyWrapper" style="position:relative; top:0; left:0; height:0; overflow:hidden;"><div class="DTFC_LeftBodyLiner" style="position:relative; top:0; left:0; overflow-y:scroll;"></div></div><div class="DTFC_LeftFootWrapper" style="position:relative; top:0; left:0; overflow:hidden;"></div></div><div class="DTFC_RightWrapper" style="position:absolute; top:0; right:0;" aria-hidden="true"><div class="DTFC_RightHeadWrapper" style="position:relative; top:0; left:0;"><div class="DTFC_RightHeadBlocker DTFC_Blocker" style="position:absolute; top:0; bottom:0;"></div></div><div class="DTFC_RightBodyWrapper" style="position:relative; top:0; left:0; height:0; overflow:hidden;"><div class="DTFC_RightBodyLiner" style="position:relative; top:0; left:0; overflow-y:scroll;"></div></div><div class="DTFC_RightFootWrapper" style="position:relative; top:0; left:0;"><div class="DTFC_RightFootBlocker DTFC_Blocker" style="position:absolute; top:0; bottom:0;"></div></div></div></div>')[0],i=n.childNodes[0],o=n.childNodes[1];if(this.dom.grid.dt.parentNode.insertBefore(n,this.dom.grid.dt),n.appendChild(this.dom.grid.dt),this.dom.grid.wrapper=n,0<this.s.iLeftColumns&&(this.dom.grid.left.wrapper=i,this.dom.grid.left.head=i.
240childNodes[0],this.dom.grid.left.body=i.childNodes[1],this.dom.grid.left.liner=e("div.DTFC_LeftBodyLiner",n)[0],n.appendChild(i)),0<this.s.iRightColumns){this.dom.grid.right.wrapper=o,this.dom.grid.right.head=o.childNodes[0],this.dom.grid.right.body=o.childNodes[1],this.dom.grid.right.liner=e("div.DTFC_RightBodyLiner",n)[0],o.style.right=t.bar+"px";var r=e("div.DTFC_RightHeadBlocker",n)[0];r.style.width=t.bar+"px",r.style.right=-t.bar+"px",this.dom.grid.right.headBlock=r,(r=e("div.DTFC_RightFootBlocker",n)[0]).style.width=t.bar+"px",r.style.right=-t.bar+"px",this.dom.grid.right.footBlock=r,n.appendChild(o)}this.s.dt.nTFoot&&(this.dom.footer=this.s.dt.nTFoot.parentNode,0<this.s.iLeftColumns&&(this.dom.grid.left.foot=i.childNodes[2]),0<this.s.iRightColumns&&(this.dom.grid.right.foot=o.childNodes[2])),this.s.rtl&&e("div.DTFC_RightHeadBlocker",n).css({left:-t.bar+"px",right:""})},_fnGridLayout:function(){var t=this,n=this.dom.grid;e(n.wrapper).width();var i=this.s.dt.nTable.parentNode.offsetHeight,o=this.s.dt.nTable.parentNode.parentNode.offsetHeight,r=this._fnDTOverflow(),a=this.s.iLeftWidth,s=this.s.iRightWidth,l="rtl"===e(this.dom.body).css("direction"),d=function(n,i){r.bar?t._firefoxScrollError()?34<e(n).height()&&(n.style.width=i+r.bar+"px"):n.style.width=i+r.bar+"px":(n.style.width=i+20+"px",n.style.paddingRight="20px",n.style.boxSizing="border-box")};r.x&&(i-=r.bar),n.wrapper.style.height=o+"px",0<this.s.iLeftColumns&&((o=n.left.wrapper).style.width=a+"px",o.style.height="1px",l?(o.style.left="",o.style.right=0):(o.style.left=0,o.style.right=""),n.left.body.style.height=i+"px",n.left.foot&&(n.left.foot.style.top=(r.x?r.bar:0)+"px"),d(n.left.liner,a),n.left.liner.style.height=i+"px",n.left.liner.style.maxHeight=i+"px"),0<this.s.iRightColumns&&((o=n.right.wrapper).style.width=s+"px",o.style.height="1px",this.s.rtl?(o.style.left=r.y?r.bar+"px":0,o.style.right=""):(o.style.left="",o.style.right=r.y?r.bar+"px":0),n.right.body.style.height=i+"px",n.right.foot&&(n.right.foot.style.top=(r.x?r.bar:0)+"px"),d(n.right.liner,s),n.right.liner.style.height=i+"px",n.right.liner.style.maxHeight=i+"px",n.right.headBlock.style.display=r.y?"block":"none",n.right.footBlock.style.display=r.y?"block":"none")},_fnDTOverflow:function(){var e=this.s.dt.nTable,t=e.parentNode,n={x:!1,y:!1,bar:this.s.dt.oScroll.iBarWidth};return e.offsetWidth>t.clientWidth&&(n.x=!0),e.offsetHeight>t.clientHeight&&(n.y=!0),n},_fnDraw:function(t){this._fnGridLayout(),this._fnCloneLeft(t),this._fnCloneRight(t),null!==this.s.fnDrawCallback&&this.s.fnDrawCallback.call(this,this.dom.clone.left,this.dom.clone.right),e(this).trigger("draw.dtfc",{leftClone:this.dom.clone.left,rightClone:this.dom.clone.right})},_fnCloneRight:function(e){if(!(0>=this.s.iRightColumns)){var t,n=[];for(t=this.s.iTableColumns-this.s.iRightColumns;t<this.s.iTableColumns;t++)this.s.dt.aoColumns[t].bVisible&&n.push(t);this._fnClone(this.dom.clone.right,this.dom.grid.right,n,e)}},_fnCloneLeft:function(e){if(!(0>=this.s.iLeftColumns)){var t,n=[];for(t=0;t<this.s.iLeftColumns;t++)this.s.dt.aoColumns[t].bVisible&&n.push(t);this._fnClone(this.dom.clone.left,this.dom.grid.left,n,e)}},_fnCopyLayout:function(t,n,i){for(var o=[],r=[],a=[],s=0,l=t.length;s<l;s++){var d=[];d.nTr=e(t[s].nTr).clone(i,!1)[0];for(var c=0,u=this.s.iTableColumns;c<u;c++)if(-1!==e.inArray(c,n)){var h=e.inArray(t[s][c].cell,a);-1===h?(h=e(t[s][c].cell).clone(i,!1)[0],r.push(h),a.push(t[s][c].cell),d.push({cell:h,unique:t[s][c].unique})):d.push({cell:r[h],unique:t[s][c].unique})}o.push(d)}return o},_fnClone:function(t,n,o,r){var a,s,l=this,d=this.s.dt;if(r){e(t.header).remove(),t.header=e(this.dom.header).clone(!0,!1)[0],t.header.className+=" DTFC_Cloned",t.header.style.width="100%",n.head.appendChild(t.header);var c=this._fnCopyLayout(d.aoHeader,o,!0),u=e(">thead",t.header);u.empty();var h=0;for(a=c.length;h<a;h++)u[0].appendChild(c[h].nTr);d.oApi._fnDrawHead(d,c,!0)}else{c=this._fnCopyLayout(d.aoHeader,o,!1);var f=[];for(d.oApi._fnDetectHeader(f,e(">thead",t.header)[0]),h=0,a=c.length;h<a;h++){var p=0;for(u=c[h].length;p<u;p++)f[h][p].cell.className=c[h][p].cell.className,e("span.DataTables_sort_icon",f[h][p].cell).each(function(){this.className=e("span.DataTables_sort_icon",c[h][p].cell)[0].className})}}this._fnEqualiseHeights("thead",this.dom.header,t.header),"auto"==this.s.sHeightMatch&&e(">tbody>tr",l.dom.body).css("height","auto"),null!==t.body&&(e(t.body).remove(),t.body=null),t.body=e(this.dom.body).clone(!0)[0],t.body.className+=" DTFC_Cloned",t.body.style.paddingBottom=
240d.oScroll.iBarWidth+"px",t.body.style.marginBottom=2*d.oScroll.iBarWidth+"px",null!==t.body.getAttribute("id")&&t.body.removeAttribute("id"),e(">thead>tr",t.body).empty(),e(">tfoot",t.body).remove();var m=e("tbody",t.body)[0];if(e(m).empty(),0<d.aiDisplay.length){for(a=e(">thead>tr",t.body)[0],s=0;s<o.length;s++){var g=o[s],v=e(d.aoColumns[g].nTh).clone(!0)[0];v.innerHTML="",(u=v.style).paddingTop="0",u.paddingBottom="0",u.borderTopWidth="0",u.borderBottomWidth="0",u.height=0,u.width=l.s.aiInnerWidths[g]+"px",a.appendChild(v)}e(">tbody>tr",l.dom.body).each(function(t){t=!1===l.s.dt.oFeatures.bServerSide?l.s.dt.aiDisplay[l.s.dt._iDisplayStart+t]:t;var n=l.s.dt.aoData[t].anCells||e(this).children("td, th"),i=this.cloneNode(!1);for(i.removeAttribute("id"),i.setAttribute("data-dt-row",t),s=0;s<o.length;s++)g=o[s],0<n.length&&((v=e(n[g]).clone(!0,!0)[0]).removeAttribute("id"),v.setAttribute("data-dt-row",t),v.setAttribute("data-dt-column",g),i.appendChild(v));m.appendChild(i)})}else e(">tbody>tr",l.dom.body).each(function(){(v=this.cloneNode(!0)).className+=" DTFC_NoData",e("td",v).html(""),m.appendChild(v)});if(t.body.style.width="100%",t.body.style.margin="0",t.body.style.padding="0",d.oScroller!==i&&(a=d.oScroller.dom.force,n.forcer?n.forcer.style.height=a.style.height:(n.forcer=a.cloneNode(!0),n.liner.appendChild(n.forcer))),n.liner.appendChild(t.body),this._fnEqualiseHeights("tbody",l.dom.body,t.body),null!==d.nTFoot){if(r){for(null!==t.footer&&t.footer.parentNode.removeChild(t.footer),t.footer=e(this.dom.footer).clone(!0,!0)[0],t.footer.className+=" DTFC_Cloned",t.footer.style.width="100%",n.foot.appendChild(t.footer),c=this._fnCopyLayout(d.aoFooter,o,!0),(n=e(">tfoot",t.footer)).empty(),h=0,a=c.length;h<a;h++)n[0].appendChild(c[h].nTr);d.oApi._fnDrawHead(d,c,!0)}else for(c=this._fnCopyLayout(d.aoFooter,o,!1),n=[],d.oApi._fnDetectHeader(n,e(">tfoot",t.footer)[0]),h=0,a=c.length;h<a;h++)for(p=0,u=c[h].length;p<u;p++)n[h][p].cell.className=c[h][p].cell.className;this._fnEqualiseHeights("tfoot",this.dom.footer,t.footer)}n=d.oApi._fnGetUniqueThs(d,e(">thead",t.header)[0]),e(n).each(function(e){g=o[e],this.style.width=l.s.aiInnerWidths[g]+"px"}),null!==l.s.dt.nTFoot&&(n=d.oApi._fnGetUniqueThs(d,e(">tfoot",t.footer)[0]),e(n).each(function(e){g=o[e],this.style.width=l.s.aiInnerWidths[g]+"px"}))},_fnGetTrNodes:function(e){for(var t=[],n=0,i=e.childNodes.length;n<i;n++)"TR"==e.childNodes[n].nodeName.toUpperCase()&&t.push(e.childNodes[n]);return t},_fnEqualiseHeights:function(t,n,i){if("none"!=this.s.sHeightMatch||"thead"===t||"tfoot"===t){var o=n.getElementsByTagName(t)[0];i=i.getElementsByTagName(t)[0],(t=e(">"+t+">tr:eq(0)",n).children(":first")).outerHeight(),t.height(),o=this._fnGetTrNodes(o),n=this._fnGetTrNodes(i);var r=[];for(i=0,t=n.length;i<t;i++){var a=o[i].offsetHeight,s=n[i].offsetHeight;a=s>a?s:a,"semiauto"==this.s.sHeightMatch&&(o[i]._DTTC_iHeight=a),r.push(a)}for(i=0,t=n.length;i<t;i++)n[i].style.height=r[i]+"px",o[i].style.height=r[i]+"px"}},_firefoxScrollError:function(){if(o===i){var t=e("<div/>").css({position:"absolute",top:0,left:0,height:10,width:50,overflow:"scroll"}).appendTo("body");o=t[0].clientWidth===t[0].offsetWidth&&0!==this._fnDTOverflow().bar,t.remove()}return o}}),a.defaults={iLeftColumns:1,iRightColumns:0,fnDrawCallback:null,sHeightMatch:"semiauto"},a.version="3.3.0",r.Api.register("fixedColumns()",function(){return this}),r.Api.register("fixedColumns().update()",function(){return this.iterator("table",function(e){e._oFixedColumns&&e._oFixedColumns.fnUpdate()})}),r.Api.register("fixedColumns().relayout()",function(){return this.iterator("table",function(e){e._oFixedColumns&&e._oFixedColumns.fnRedrawLayout()})}),r.Api.register("rows().recalcHeight()",function(){return this.iterator("row",function(e,t){e._oFixedColumns&&e._oFixedColumns.fnRecalculateHeight(this.row(t).node())})}),r.Api.register("fixedColumns().rowIndex()",function(t){return(t=e(t)).parents(".DTFC_Cloned").length?this.rows({page:"current"}).indexes()[t.index()]:this.row(t).index()}),r.Api.register("fixedColumns().cellIndex()",function(t){if((t=e(t)).parents(".DTFC_Cloned").length){var n=t.parent().index();return n=this.rows({page:"current"}).indexes()[n],t=t.parents(".DTFC_LeftWrapper").length?t.index():this.columns().flatten().length-this.context[0]._oFixedColumns.s.iRightColumns+t.index(),{row:n,column:this.column.index("toData",t),columnVisible:t}}return this.cell(t).index()}),r.Api.registerPlural("cells().fixedNodes()","cell().fixedNode()",function(){return this.iterator("cell",function(e,t,n){return e._oFixedColumns?e._oFixedColumns.fnToFixedNode(t,n):this.node()},1)}),e(n).on("init.dt.fixedColumns",function(t,n){if("dt"===t.namespace){t=n.oInit.fixedColumns;var i=r.defaults.fixedColumns;(t||i)&&(i=e.extend({},t,i),!1!==t&&new a(n,i))}}),e.fn.dataTable.FixedColumns=a,e.fn.DataTable.FixedColumns=a}),function(e){"function"==typeof define&&define.amd?define(["jquery","moment","datatables.net"],e):e(jQuery,moment)}(function(e,t){function n(e){return"string"==typeof e&&(e=(e=e.replace(/(<.*?>)|(\r?\n|\r)/g,"")).trim()),e}e.fn.dataTable.moment=function(i,o,r){var a=e.fn.dataTable.ext.type;a.detect.unshift(function(e){return""===(e=n(e))||null===e?"moment-"+i:t(e,i,o,!0).isValid()?"moment-"+i:null}),a.order["moment-"+i+"-pre"]=function(e){return e=n(e),t(e,i,o,!0).isValid()?parseInt(t(e,i,o,!0).format("x"),10):r?-Infinity:Infinity}}}),$(document).ready(function(){$(".js-radio-label").on("click",function(){$(this).parent().parent().find("input[type='radio']").click()}),$(".js-next-slide").on("click",function(){$(".actions a[href='#next']").click()})}),function(e){"object"==typeof module&&module.exports?module.exports=e():window.intlTelInput=e()}(function(e){"use strict";return function(){function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}for(var o=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austr
240ia","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (\u202b\u062c\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202c\u200e)","km","269"],["Congo (DRC)","cd","243"],["Congo (Republic)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xf4te d\u2019Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan","jo","962"],["Kazakhstan","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["R\xe9union","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Saint Barth\xe9lemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin","mf","590",2],["Saint Pierre and Miquelon","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["S
240omalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Swaziland","sz","268"],["Sweden","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara","eh","212",1,["5288","5289"]],["Yemen\u202c","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xc5land Islands","ax","358",1,["18"]]],r=0;r<o.length;r++){var a=o[r];o[r]={name:a[0],iso2:a[1],dialCode:a[2],priority:a[3]||0,areaCodes:a[4]||null}}var s={getInstance:function(e){var t=e.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[t]},instances:{}};"object"==typeof window&&(window.intlTelInputGlobals=s);var l=0,d={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},c=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"];"object"==typeof window&&window.addEventListener("load",function(){window.intlTelInputGlobals.windowLoaded=!0});var u=function(e,t){for(var n=Object.keys(e),i=0;i<n.length;i++)t(n[i],e[n[i]])},h=function(e){u(window.intlTelInputGlobals.instances,function(t){window.intlTelInputGlobals.instances[t][e]()})},f=function(){function n(e,i){var o=this;t(this,n),this.id=l++,this.telInput=e,this.activeItem=null,this.highlightedItem=null;var r=i||{};this.options={},u(d,function(e,t){o.options[e]=r.hasOwnProperty(e)?r[e]:t}),this.hadInitialPlaceholder=Boolean(e.getAttribute("placeholder"))}return i(n,[{key:"_init",value:function(){var e=this;if(this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(document.body.classList.add("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer=document.body)),"undefined"!=typeof Promise){var t=new Promise(function(t,n){e.resolveAutoCountryPromise=t,e.rejectAutoCountryPromise=n}),n=new Promise(function(t,n){e.resolveUtilsScriptPromise=t,e.rejectUtilsScriptPromise=n});this.promise=Promise.all([t,n])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(t,n,i){n.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=n.length),this.countryCodes.hasOwnProperty(n)||(this.countryCodes[n]=[]);for(var o=0;o<this.countryCodes[n].length;o++)if(this.countryCodes[n][o]===t)return;var r=i!==e?i:this.countryCodes[n].length;this.countryCodes[n][r]=t}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var e=this.options.onlyCountries.map(function(e){return e.toLowerCase()});this.countries=o.filter(function(t){return e.indexOf(t.iso2)>-1})}else if(this.options.excludeCountries.length){var t=this.options.excludeCountries.map(function(e){return e.toLowerCase()});this.countries=o.filter(function(e){return-1===t.indexOf(e.iso2)})}else this.countries=o}},{key:"_translateCountriesByLocale",value:function(){for(var e=0;e<this.countries.length;e++){var t=this.countries[e].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(t)&&(this.countries[e].name=this.options.localizedCountries[t])}}},{key:"_countryNameSort",value:function(e,t){return e.name.localeCompare(t.name)}},{key:"_processCountryCodes",value:function(){this.dialCodeMaxLen=0,this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];this._addCountryCode(t.iso2,t.dialCode,t.priority)}for(var n=0;n<this.countries.length;n++){var i=this.countries[n];if(i.areaCodes)for(var o=this.countryCodes[i.dialCode][0],r=0;r<i.areaCodes.length;r++){for(var a=i.areaCodes[r],s=1;s<a.length;s++){var l=i.dialCode+a.substr(0,s);this._addCountryCode(o,l),this._addCountryCode(i.iso2,l)}this._addCountryCode(i.iso2,i.dialCode+a)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var t=this.options.preferredCountries[e].toLowerCase(),n=this._getCountryData(t,!1,!0);n&&this.preferredCountries.push(n)}}},{key:"_createEl",value:function(e,t,n){var i=document.createElement(e);return t&&u(t,function(e,t){return i.setAttribute(e,t)}),n&&n.appendChild(i),i}},{key:"_generateMarkup",value:function(){this.telInput.hasAttribute("autocomplete")||this.telInput.form&&this.telInput.form.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off");var e="iti";this.options.allowDropdown&&(e+=" iti--allow-dropdown"),this.options.separateDialCode&&(e+=" iti--separate-dial-code"),this.options.customContainer&&(e+=" ",e+=this.options.customContainer);var t=this._createEl("div",{"class":e});if(this.telInput.parentNode.insertBefore(t,this.telInput),this.flagsContainer=this._createEl("div",{"class":"iti__flag-container"},t),t.appendChild(this.telInput),this.selectedFlag=this._createEl("div",{"class":"iti__selected-flag",role:"combobox","aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.flagsContainer),this.selectedFlagInner=this._createEl("div",{"class":"iti__flag"},this.selectedFlag),this.options.separateDialCode&&(this.selectedDialCode=this._createEl("div",{"class":"iti__selected-dial-code"},this.selectedFlag)),this.options.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{"class":"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{"class":"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{"class":"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),this.options.dropdownContainer?(this.dropdown=this._createEl("div",{"class":"iti iti--container"}),this.dropdown.appendChild(this.countryList)):this.flagsContainer.appendChild(this.countryList)),this.options.hiddenInput){ 241var n=this.options.hiddenInput,i=this.telInput.getAttribute("name");if(i){var o=i.lastIndexOf("[");-1!==o&&(n="".concat(i.substr(0,o),"[").concat(n,"]"))}this.hiddenInput=this._createEl("input",{type:"hidden",name:n}),t.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function(e,t,n){for(var i="",o=0;o<e.length;o++){var r=e[o],a=n?"-preferred":"";i+="<li class='iti__country ".concat(t,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(r.iso2).concat(a,"' role='option' data-dial-code='").concat(r.dialCode,"' data-country-code='").concat(r.iso2,"'>"),i+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(r.iso2,"'></div></div>"),i+="<span class='iti__country-name'>".concat(r.name,"</span>"),i+="<span class='iti__dial-code'>+".concat(r.dialCode,"</span>"),i+="</li>"}this.countryList.insertAdjacentHTML("beforeend",i)}},{key:"_setInitialState",value:function(){var e=this.telInput.value,t=this._getDialCode(e),n=this._isRegionlessNanp(e),i=this.options,o=i.initialCountry,r
241=i.nationalMode,a=i.autoHideDialCode,s=i.separateDialCode;t&&!n?this._updateFlagFromNumber(e):"auto"!==o&&(o?this._setFlag(o.toLowerCase()):t&&n?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,e||this._setFlag(this.defaultCountry)),e||r||a||s||(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),e&&this._updateValFromNumber(e)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var e=this;this._handleHiddenInputSubmit=function(){e.hiddenInput.value=e.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var e=this.telInput;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_initDropdownListeners",value:function(){var e=this;this._handleLabelClick=function(t){e.countryList.classList.contains("iti__hide")?e.telInput.focus():t.preventDefault()};var t=this._getClosestLabel();t&&t.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!e.countryList.classList.contains("iti__hide")||e.telInput.disabled||e.telInput.readOnly||e._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(t){e.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(t.key)&&(t.preventDefault(),t.stopPropagation(),e._showDropdown()),"Tab"===t.key&&e._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var e=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.windowLoaded?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(e.options.utilsScript)}):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout(function(){return h("handleAutoCountry")})},function(){return h("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var e=this;this._handleKeyupEvent=function(){e._updateFlagFromNumber(e.telInput.value)&&e._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(e._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(e){var t=this.telInput.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_initBlurListeners",value:function(){var e=this;this._handleSubmitOrBlurEvent=function(){e._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var e=this._getNumeric(this.telInput.value);e&&this.selectedCountryData.dialCode!==e||(this.telInput.value="")}}},{key:"_getNumeric",value:function(e){return e.replace(/\D/g,"")}},{key:"_trigger",value:function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),this.telInput.dispatchEvent(t)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(e,t,n){n&&!e.classList.contains(t)?e.classList.add(t):!n&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var e=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var t=this.telInput.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,i=t.top+n,o=this.countryList.offsetHeight,r=i+this.telInput.offsetHeight+o<n+window.innerHeight,a=i-o>n;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!r&&a),this.options.dropdownContainer){var s=!r&&a?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(i+s,"px"),this.dropdown.style.left="".concat(t.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return e._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(e){for(var t=e;t&&t!==this.countryList&&!t.classList.contains("iti__country");)t=t.parentNode;return t===this.countryList?null:t}},{key:"_bindDropdownListeners",value:function(){var e=this;this._handleMouseoverCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._highlightListItem(n,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._selectListItem(n)},this.countryList.addEventListener("click",this._handleClickCountryList);var t=!0;
241this._handleClickOffToClose=function(){t||e._closeDropdown(),t=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var n="",i=null;this._handleKeydownOnDropdown=function(t){t.preventDefault(),"ArrowUp"===t.key||"Up"===t.key||"ArrowDown"===t.key||"Down"===t.key?e._handleUpDownKey(t.key):"Enter"===t.key?e._handleEnterKey():"Escape"===t.key?e._closeDropdown():/^[a-zA-Z\xc0-\xff\u0430-\u044f\u0410-\u042f ]$/.test(t.key)&&(i&&clearTimeout(i),n+=t.key.toLowerCase(),e._searchForCountry(n),i=setTimeout(function(){n=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(e){var t="ArrowUp"===e||"Up"===e?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;t&&(t.classList.contains("iti__divider")&&(t="ArrowUp"===e||"Up"===e?t.previousElementSibling:t.nextElementSibling),this._highlightListItem(t,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(e){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,e)){var n=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(this.countries[t].iso2));this._highlightListItem(n,!1),this._scrollTo(n,!0);break}}},{key:"_startsWith",value:function(e,t){return e.substr(0,t.length).toLowerCase()===t}},{key:"_updateValFromNumber",value:function(e){var t=e;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var n=!this.options.separateDialCode&&(this.options.nationalMode||"+"!==t.charAt(0)),i=intlTelInputUtils.numberFormat,o=i.NATIONAL,r=i.INTERNATIONAL,a=n?o:r;t=intlTelInputUtils.formatNumber(t,this.selectedCountryData.iso2,a)}t=this._beforeSetNumber(t),this.telInput.value=t}},{key:"_updateFlagFromNumber",value:function(e){var t=e,n=this.selectedCountryData.dialCode,i="1"===n;t&&this.options.nationalMode&&i&&"+"!==t.charAt(0)&&("1"!==t.charAt(0)&&(t="1".concat(t)),t="+".concat(t)),this.options.separateDialCode&&n&&"+"!==t.charAt(0)&&(t="+".concat(n).concat(t));var o=this._getDialCode(t),r=this._getNumeric(t),a=null;if(o){var s=this.countryCodes[this._getNumeric(o)],l=-1!==s.indexOf(this.selectedCountryData.iso2)&&r.length<=o.length-1;if(!("1"===n&&this._isRegionlessNanp(r))&&!l)for(var d=0;d<s.length;d++)if(s[d]){a=s[d];break}}else"+"===t.charAt(0)&&r.length?a="":t&&"+"!==t||(a=this.defaultCountry);return null!==a&&this._setFlag(a)}},{key:"_isRegionlessNanp",value:function(e){var t=this._getNumeric(e);if("1"===t.charAt(0)){var n=t.substr(1,3);return-1!==c.indexOf(n)}return!1}},{key:"_highlightListItem",value:function(e,t){var n=this.highlightedItem;n&&n.classList.remove("iti__highlight"),this.highlightedItem=e,this.highlightedItem.classList.add("iti__highlight"),t&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(e,t,n){for(var i=t?o:this.countries,r=0;r<i.length;r++)if(i[r].iso2===e)return i[r];if(n)return null;throw new Error("No country data for '".concat(e,"'"))}},{key:"_setFlag",value:function(e){var t=this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(e));var n=e?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown";if(this.selectedFlag.setAttribute("title",n),this.options.separateDialCode){var i=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=i;var o=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.telInput.style.paddingLeft="".concat(o+6,"px")}if(this._updatePlaceholder(),this.options.allowDropdown){var r=this.activeItem;if(r&&(r.classList.remove("iti__active"),r.setAttribute("aria-selected","false")),e){var a=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e));a.setAttribute("aria-selected","true"),a.classList.add("iti__active"),this.activeItem=a,this.selectedFlag.setAttribute("aria-activedescendant",a.getAttribute("id"))}}return t.iso2!==e}},{key:"_getHiddenSelectedFlagWidth",value:function(){var e=this.telInput.parentNode.cloneNode();e.style.visibility="hidden",document.body.appendChild(e);var t=this.selectedFlag.cloneNode(!0);e.appendChild(t);var n=t.offsetWidth;return e.parentNode.removeChild(e),n}},{key:"_updatePlaceholder",value:function(){var e="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&"polite"===this.options.autoPlaceholder;if(window.intlTelInputUtils&&e){var t=intlTelInputUtils.numberType[this.options.placeholderNumberType],n=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,t):"";n=this._beforeSetNumber(n),"function"==typeof this.options.customPlaceholder&&(n=this.options.customPlaceholder(n,this.selectedCountryData)),this.telInput.setAttribute("placeholder",n)}}},{key:"_selectListItem",value:function(e){var t=this._setFlag(e.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(e.getAttribute("data-dial-code"),!0),this.telInput.focus();var n=this.telInput.value.length;this.telInput.setSelectionRange(n,n),t&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","fal
241se"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.isMobile||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(e,t){var n=this.countryList,i=window.pageYOffset||document.documentElement.scrollTop,o=n.offsetHeight,r=n.getBoundingClientRect().top+i,a=r+o,s=e.offsetHeight,l=e.getBoundingClientRect().top+i,d=l+s,c=l-r+n.scrollTop,u=o/2-s/2;if(l<r)t&&(c-=u),n.scrollTop=c;else if(d>a){t&&(c+=u);var h=o-s;n.scrollTop=c-h}}},{key:"_updateDialCode",value:function(e,t){var n,i=this.telInput.value,o="+".concat(e);if("+"===i.charAt(0)){var r=this._getDialCode(i);n=r?i.replace(r,o):o}else{if(this.options.nationalMode||this.options.separateDialCode)return;if(i)n=o+i;else{if(!t&&this.options.autoHideDialCode)return;n=o}}this.telInput.value=n}},{key:"_getDialCode",value:function(e){var t="";if("+"===e.charAt(0))for(var n="",i=0;i<e.length;i++){var o=e.charAt(i);if(!isNaN(parseInt(o,10))&&(n+=o,this.countryCodes[n]&&(t=e.substr(0,i+1)),n.length===this.dialCodeMaxLen))break}return t}},{key:"_getFullNumber",value:function(){var e=this.telInput.value.trim(),t=this.selectedCountryData.dialCode,n=this._getNumeric(e);return(this.options.separateDialCode&&"+"!==e.charAt(0)&&t&&n?"+".concat(t):"")+e}},{key:"_beforeSetNumber",value:function(e){var t=e;if(this.options.separateDialCode){var n=this._getDialCode(t);if(n){var i=" "===t[(n="+".concat(this.selectedCountryData.dialCode)).length]||"-"===t[n.length]?n.length+1:n.length;t=t.substr(i)}}return this._cap(t)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var e=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var t=this._getClosestLabel();t&&t.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&e&&e.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoHideDialCode&&(e&&e.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var n=this.telInput.parentNode;n.parentNode.insertBefore(this.telInput,n),n.parentNode.removeChild(n),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(e){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),t,e)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),e)}return-99}},{key:"isValidNumber",value:function(){var e=this._getFullNumber().trim(),t=this.options.nationalMode?this.selectedCountryData.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null}},{key:"setCountry",value:function(e){var t=e.toLowerCase();this.selectedFlagInner.classList.contains("iti__".concat(t))||(this._setFlag(t),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())}},{key:"setNumber",value:function(e){var t=this._updateFlagFromNumber(e);
241this._updateValFromNumber(e),t&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(e){this.options.placeholderNumberType=e,this._updatePlaceholder()}}]),n}();s.getCountryData=function(){return o};var p=function(e,t,n){var i=document.createElement("script");i.onload=function(){h("handleUtils"),t&&t()},i.onerror=function(){h("rejectUtilsScriptPromise"),n&&n()},i.className="iti-load-utils",i.async=!0,i.src=e,document.body.appendChild(i)};return s.loadUtils=function(e){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(t,n){return p(e,t,n)});p(e)}return null},s.defaults=d,s.version="17.0.0",function(e,t){var n=new f(e,t);return n._init(),e.setAttribute("data-intl-tel-input-id",n.id),window.intlTelInputGlobals.instances[n.id]=n,n}}()}),function(){function e(e,t){e=e.split(".");var n,i=Q;e[0]in i||"undefined"==typeof i.execScript||i.execScript("var "+e[0]);for(;e.length&&(n=e.shift());)e.length||void 0===t?i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}:i[n]=t}function t(e,t){function n(){}n.prototype=t.prototype,e.o=t.prototype,e.prototype=new n,e.prototype.constructor=e}function n(e,t){e.sort(t||i)}function i(e,t){return e>t?1:e<t?-1:0}function o(e){var t,n=[],i=0;for(t in e)n[i++]=e[t];return n}function r(e,t){switch(this.a=e,this.h=!!t.i,this.c=t.b,this.m=t.type,this.l=!1,this.c){case te:case ne:case ie:case oe:case re:case ee:case J:this.l=!0}this.g=t.defaultValue}function a(e,t){for(this.c=e,this.a={},e=0;e<t.length;e++){var n=t[e];this.a[n.a]=n}}function s(e){return n(e=o(e.a),function(e,t){return e.a-t.a}),e}function l(){this.a={},this.g=this.f().a,this.c=this.h=null}function d(e,t){for(var n=s(e.f()),i=0;i<n.length;i++){var o=n[i],r=o.a;if(null!=t.a[r]){e.c&&delete e.c[o.a];var a=11==o.c||10==o.c;if(o.h){o=f(t,r);for(var l=0;l<o.length;l++)g(e,r,a?o[l].clone():o[l])}else o=c(t,r),a?(a=c(e,r))?d(a,o):m(e,r,o.clone()):m(e,r,o)}}}function c(e,t){var n=e.a[t];if(null==n)return null;if(e.h){if(!(t in e.c)){var i=e.h,o=e.g[t];if(null!=n)if(o.h){for(var r=[],a=0;a<n.length;a++)r[a]=i.c(o,n[a]);n=r}else n=i.c(o,n);return e.c[t]=n}return e.c[t]}return n}function u(e,t,n){var i=c(e,t);return e.g[t].h?i[n||0]:i}function h(e,t){if(null!=e.a[t])e=u(e,t,void 0);else e:{if(void 0===(e=e.g[t]).g)if((t=e.m)===Boolean)e.g=!1;else if(t===Number)e.g=0;else{if(t!==String){e=new t;break e}e.g=e.l?"0":""}e=e.g}return e}function f(e,t){return c(e,t)||[]}function p(e,t){return e.g[t].h?null!=e.a[t]?e.a[t].length:0:null!=e.a[t]?1:0}function m(e,t,n){e.a[t]=n,e.c&&(e.c[t]=n)}function g(e,t,n){e.a[t]||(e.a[t]=[]),e.a[t].push(n),e.c&&delete e.c[t]}function v(e,t){var n,i=[];for(n in t)0!=n&&i.push(new r(n,t[n]));return new a(e,i)}function y(){}function _(){}function b(){}function T(e){null!=e&&this.a.apply(this,arguments)} 242/* 243 244 Protocol Buffer 2 Copyright 2008 Google Inc. 245 All other code copyright its respective owners. 246 Copyright (C) 2010 The Libphonenumber Authors 247 248 Licensed under the Apache License, Version 2.0 (the "License"); 249 you may not use this file except in compliance with the License. 250 You may obtain a copy of the License at 251 252 http://www.apache.org/licenses/LICENSE-2.0 253 254 Unless required by applicable law or agreed to in writing, software 255 distributed under the License is distributed on an "AS IS" BASIS, 256 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 257 See the License for the specific language governing permissions and 258 limitations under the License. 259 */ 260function C(){l.call(this)}function E(){l.call(this)}function w(){l.call(this)}function I(){l.call(this)} 261/* 262 263 Copyright (C) 2010 The Libphonenumber Authors. 264 265 Licensed under the Apache License, Version 2.0 (the "License"); 266 you may not use this file except in compliance with the License. 267 You may obtain a copy of the License at 268 269 http://www.apache.org/licenses/LICENSE-2.0 270 271 Unless required by applicable law or agreed to in writing, software 272 distributed under the License is distributed on an "AS IS" BASIS, 273 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 274 See the License for the specific language governing permissions and 275 limitations under the License. 276 */ 277function D(){this.a={}}function x(e){var t=e.search(ye);return 0<=t?0<=(t=(e=(e=e.substring(t)).replace(be,"")).search(_e))&&(e=e.substring(0,t)):e="",e}function O(e){return!(2>e.length)&&X(Ee,e)}function k(e){return X(Te,e)?$(e,me):$(e,pe)}function S(e){var t=k(e.toString());e.c="",e.a(t)}function R(e){return null!=e&&(1!=p(e,9)||-1!=f(e,9)[0])}function $(e,t){for(var n,i=new T,o=e.length,r=0;r<o;++r)null!=(n=t[(n=e.charAt(r)).toUpperCase()])&&i.a(n);return i.toString()}function A(e){return null!=e&&isNaN(e)&&e.toUpperCase()in fe}function K(e,t,n){if(0==u(t,2)&&null!=t.a[5]){var i=h(t,5);if(0<i.length)return i}i=h(t,1);var o=L(t);if(0==n)return M(i,0,o,"");if(!(i in he))return o;e=N(e,i,z(i)),t=null!=t.a[3]&&0!=u(t,3).length?3==n?";ext="+u(t,3):null!=e.a[13]?u(e,13)+h(t,3):" ext. "+h(t,3):"";e:{for(var r,a=(e=0==f(e,20).length||2==n?f(e,19):f(e,20)).length,s=0;s<a;++s){var l=p(r=e[s],3);if((0==l||0==o.search(u(r,3,l-1)))&&X(l=new RegExp(u(r,1)),o)){e=r;break e}}e=null}return null!=e&&(e=h(a=e,2),r=new RegExp(u(a,1)),h(a,5),a=h(a,4),o=2==n&&null!=a&&0<a.length?o.replace(r,e.replace(we,a)):o.replace(r,e),3==n&&(o=(o=o.replace(/^[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e]+/,"")).replace(/[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e]+/g,"-"))),M(i,n,o,t)}function N(e,t,n){return B(e,"001"==n?""+t:n)}function L(e){if(null==e.a[2])return"";var t=""+u(e,2);return null!=e.a[4]&&u(e,4)&&0<h(e,8)?Array(h(e,8)+1).join("0")+t:t}function M(e,t,n,i){switch(t){case 0:return"+"+e+n+i;case 1:return"+"+e+" "+n+i;case 3:return"tel:+"+e+"-"+n+i;default:return n+i}}function P(e,t){switch(t){case 4:return u(e,5);case 3:return u(e,4);case 1:return u(e,3);case 0:case 2:return u(e,2);case 5:return u(e,6);case 6:return u(e,8);case 7:return u(e,7);case 8:return u(e,21);case 9:return u(e,25);case 10:return u(e,28);default:return u(e,1)}}function F(e,t){return j(e,u(t,1))?j(e,u(t,5))?4:j(e,u(t,4))?3:j(e,u(t,6))?5:j(e,u(t,8))?6:j(e,u(t,7))?7:j(e,u(t,21))?8:j(e,u(t,25))?9:j(e,u(t,28))?10:j(e,u(t,2))?u(t,18)||j(e,u(t,3))?2:0:!u(t,18)&&j(e,u(t,3))?1:-1:-1}function B(e,t){if(null==t)return null;t=t.toUpperCase();var n=e.a[t];if(null==n){if(null==(n=fe[t]))return null;n=(new b).a(w.f(),n),e.a[t]=n}return n}function j(e,t){var n=e.length;return!(0<p(t,9)&&-1==Z(f(t,9),n))&&X(h(t,2),e)}function H(e,t){if(null==t)return null;var n=h(t,1);if(null==(n=he[n]))e=null;else if(1==n.length)e=n[0];else e:{t=L(t);for(var i,o=n.length,r=0;r<o;r++){var a=B(e,i=n[r]);if(null!=a.a[23]){if(0==t.search(u(a,23))){e=i;break e}}else if(-1!=F(t,a)){e=i;break e}}e=null}return e}function z(e){return null==(e=he[e])?"ZZ":e[0]}function q(e,t,i,o){var r=P(i,o),a=0==p(r,9)?f(u(i,1),9):f(r,9);
277if(r=f(r,10),2==o){if(!R(P(i,0)))return q(e,t,i,1);R(e=P(i,1))&&(n(a=a.concat(0==p(e,9)?f(u(i,1),9):f(e,9))),0==r.length?r=f(e,10):n(r=r.concat(f(e,10))))}return-1==a[0]?5:(t=t.length,-1<Z(r,t)?4:(i=a[0])==t?0:i>t?2:a[a.length-1]<t?3:-1<Z(a,t,1)?0:5)}function W(e,t){var n=L(t);return(t=h(t,1))in he?q(e,n,t=N(e,t,z(t)),-1):1}function U(e,t,n,i,o,r){if(0==t.length)return 0;var a;t=new T(t),null!=n&&(a=u(n,11)),null==a&&(a="NonMatch");var s=t.toString();if(0==s.length)a=20;else if(ge.test(s))s=s.replace(ge,""),t.c="",t.a(k(s)),a=1;else{if(s=new RegExp(a),S(t),0==(a=t.toString()).search(s)){s=a.match(s)[0].length;var l=a.substring(s).match(ve);l&&null!=l[1]&&0<l[1].length&&"0"==$(l[1],pe)?a=!1:(t.c="",t.a(a.substring(s)),a=!0)}else a=!1;a=a?5:20}if(o&&m(r,6,a),20!=a){if(2>=t.c.length)throw Error("Phone number too short after IDD");e:{if(0!=(e=t.toString()).length&&"0"!=e.charAt(0))for(o=e.length,t=1;3>=t&&t<=o;++t)if((n=parseInt(e.substring(0,t),10))in he){i.a(e.substring(t)),i=n;break e}i=0}if(0!=i)return m(r,1,i),i;throw Error("Invalid country calling code")}return null!=n&&(s=""+(a=h(n,10)),0==(l=t.toString()).lastIndexOf(s,0)&&(s=new T(l.substring(s.length)),l=u(n,1),l=new RegExp(h(l,2)),V(s,n,null),s=s.toString(),!X(l,t.toString())&&X(l,s)||3==q(e,t.toString(),n,-1)))?(i.a(s),o&&m(r,6,10),m(r,1,a),a):(m(r,1,0),0)}function V(e,t,n){var i=e.toString(),o=i.length,r=u(t,15);if(0!=o&&null!=r&&0!=r.length){var a=new RegExp("^(?:"+r+")");if(o=a.exec(i)){var s=X(r=new RegExp(h(u(t,1),2)),i),l=o.length-1;null==(t=u(t,16))||0==t.length||null==o[l]||0==o[l].length?s&&!X(r,i.substring(o[0].length))||(null!=n&&0<l&&null!=o[l]&&n.a(o[1]),e.set(i.substring(o[0].length))):(i=i.replace(a,t),(!s||X(r,i))&&(null!=n&&0<l&&n.a(o[1]),e.set(i)))}}}function Y(e,t,n){if(!A(n)&&0<t.length&&"+"!=t.charAt(0))throw Error("Invalid country calling code");return G(e,t,n,!0)}function G(e,t,n,i){if(null==t)throw Error("The string supplied did not seem to be a phone number");if(250<t.length)throw Error("The string supplied is too long to be a phone number");var o=new T,r=t.indexOf(";phone-context=");if(0<=r){var a=r+15;if("+"==t.charAt(a)){var s=t.indexOf(";",a);0<s?o.a(t.substring(a,s)):o.a(t.substring(a))}a=t.indexOf("tel:"),o.a(t.substring(0<=a?a+4:0,r))}else o.a(x(t));if(0<(a=(r=o.toString()).indexOf(";isub="))&&(o.c="",o.a(r.substring(0,a))),!O(o.toString()))throw Error("The string supplied did not seem to be a phone number");if(r=o.toString(),!(A(n)||null!=r&&0<r.length&&ge.test(r)))throw Error("Invalid country calling code");r=new I,i&&m(r,5,t);e:{if(0<=(a=(t=o.toString()).search(Ce))&&O(t.substring(0,a)))for(var l=(s=t.match(Ce)).length,d=1;d<l;++d)if(null!=s[d]&&0<s[d].length){o.c="",o.a(t.substring(0,a)),t=s[d];break e}t=""}0<t.length&&m(r,3,t),a=B(e,n),t=new T,s=0,l=o.toString();try{s=U(e,l,a,t,i,r)}catch(c){if("Invalid country calling code"!=c.message||!ge.test(l))throw c;if(0==(s=U(e,l=l.replace(ge,""),a,t,i,r)))throw c}if(0!=s?(o=z(s))!=n&&(a=N(e,s,o)):(S(o),t.a(o.toString()),null!=n?m(r,1,s=h(a,10)):i&&(delete r.a[6],r.c&&delete r.c[6])),2>t.c.length)throw Error("The string supplied is too short to be a phone number");if(null!=a&&(n=new T,V(o=new T(t.toString()),a,n),2!=(e=q(e,o.toString(),a,-1))&&4!=e&&5!=e&&(t=o,i&&0<n.toString().length&&m(r,7,n.toString()))),2>(e=(i=t.toString()).length))throw Error("The string supplied is too short to be a phone number");if(17<e)throw Error("The string supplied is too long to be a phone number");if(1<i.length&&"0"==i.charAt(0)){for(m(r,4,!0),e=1;e<i.length-1&&"0"==i.charAt(e);)e++;1!=e&&m(r,8,e)}return m(r,2,parseInt(i,10)),r}function X(e,t){return!(!(e="string"==typeof e?t.match("^(?:"+e+")$"):t.match(e))||e[0].length!=t.length)} 278/* 279 280 Copyright The Closure Library Authors. 281 SPDX-License-Identifier: Apache-2.0 282 */ 283var Q=this||self,Z=Array.prototype.indexOf?function(e,t,n){return Array.prototype.indexOf.call(e,t,n)}:function(e,t,n){if(n=null==n?0:0>n?Math.max(0,e.length+n):n,"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,n);for(;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},J=1,ee=2,te=3,ne=4,ie=6,oe=16,re=18;l.prototype.has=function(e){return null!=this.a[e.a]},l.prototype.get=function(e,t){return u(this,e.a,t)},l.prototype.set=function(e,t){m(this,e.a,t)},l.prototype.add=function(e,t){g(this,e.a,t)},l.prototype.clone=function(){var e=new this.constructor;return e!=this&&(e.a={},e.c&&(e.c={}),d(e,this)),e},y.prototype.a=function(e){throw new e.c,Error("Unimplemented")},y.prototype.c=function(e,t){if(11==e.c||10==e.c)return t instanceof l?t:this.a(e.m.prototype.f(),t);if(14==e.c)return"string"==typeof t&&ae.test(t)&&0<(e=Number(t))?e:t;if(!e.l)return t;if((e=e.m)===String){if("number"==typeof t)return String(t)}else if(e===Number&&"string"==typeof t&&("Infinity"===t||"-Infinity"===t||"NaN"===t||ae.test(t)))return Number(t);return t};var ae=/^-?[0-9]+$/;t(_,y),_.prototype.a=function(e,t){return(e=new e.c).h=this,e.a=t,e.c={},e},t(b,_),b.prototype.c=function(e,t){return 8==e.c?!!t:y.prototype.c.apply(this,arguments)},b.prototype.a=function(e,t){return b.o.a.call(this,e,t)},T.prototype.c="",T.prototype.set=function(e){this.c=""+e},T.prototype.a=function(e,t){if(this.c+=String(e),null!=t)for(var n=1;n<arguments.length;n++)this.c+=arguments[n];return this},T.prototype.toString=function(){return this.c},t(C,l);var se=null;t(E,l);var le=null;t(w,l);var de=null;C.prototype.f=function(){var e=se;return e||(se=e=v(C,{0:{name:"NumberFormat",j:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:!0,b:9,type:String},2:{name:"format",required:!0,b:9,type:String}
vendor: 6,704 bytes, lines 283-300
283,3:{name:"leading_digits_pattern",i:!0,b:9,type:String},4:{name:"national_prefix_formatting_rule",b:9,type:String},6:{name:"national_prefix_optional_when_formatting",b:8,defaultValue:!1,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",b:9,type:String}})),e},C.f=C.prototype.f,E.prototype.f=function(){var e=le;return e||(le=e=v(E,{0:{name:"PhoneNumberDesc",j:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",b:9,type:String},9:{name:"possible_length",i:!0,b:5,type:Number},10:{name:"possible_length_local_only",i:!0,b:5,type:Number},6:{name:"example_number",b:9,type:String}})),e},E.f=E.prototype.f,w.prototype.f=function(){var e=de;return e||(de=e=v(w,{0:{name:"PhoneMetadata",j:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",b:11,type:E},2:{name:"fixed_line",b:11,type:E},3:{name:"mobile",b:11,type:E},4:{name:"toll_free",b:11,type:E},5:{name:"premium_rate",b:11,type:E},6:{name:"shared_cost",b:11,type:E},7:{name:"personal_number",b:11,type:E},8:{name:"voip",b:11,type:E},21:{name:"pager",b:11,type:E},25:{name:"uan",b:11,type:E},27:{name:"emergency",b:11,type:E},28:{name:"voicemail",b:11,type:E},29:{name:"short_code",b:11,type:E},30:{name:"standard_rate",b:11,type:E},31:{name:"carrier_specific",b:11,type:E},33:{name:"sms_services",b:11,type:E},24:{name:"no_international_dialling",b:11,type:E},9:{name:"id",required:!0,b:9,type:String},10:{name:"country_code",b:5,type:Number},11:{name:"international_prefix",b:9,type:String},17:{name:"preferred_international_prefix",b:9,type:String},12:{name:"national_prefix",b:9,type:String},13:{name:"preferred_extn_prefix",b:9,type:String},15:{name:"national_prefix_for_parsing",b:9,type:String},16:{name:"national_prefix_transform_rule",b:9,type:String},18:{name:"same_mobile_and_fixed_line_pattern",b:8,defaultValue:!1,type:Boolean},19:{name:"number_format",i:!0,b:11,type:C},20:{name:"intl_number_format",i:!0,b:11,type:C},22:{name:"main_country_for_code",b:8,defaultValue:!1,type:Boolean},23:{name:"leading_digits",b:9,type:String},26:{name:"leading_zero_possible",b:8,defaultValue:!1,type:Boolean}})),e},w.f=w.prototype.f,t(I,l);var ce=null,ue={$:0,w:1,v:5,u:10,s:20};I.prototype.f=function(){var e=ce;return e||(ce=e=v(I,{0:{name:"PhoneNumber",j:"i18n.phonenumbers.PhoneNumber"},1:{name:"country_code",required:!0,b:5,type:Number},2:{name:"national_number",required:!0,b:4,type:Number},3:{name:"extension",b:9,type:String},4:{name:"italian_leading_zero",b:8,type:Boolean},8:{name:"number_of_leading_zeros",b:5,defaultValue:1,type:Number},5:{name:"raw_input",b:9,type:String},6:{name:"country_code_source",b:14,defaultValue:0,type:ue},7:{name:"preferred_domestic_carrier_code",b:9,type:String}})),e},I.ctor=I,I.ctor.f=I.prototype.f; 284/* 285 286 Copyright (C) 2010 The Libphonenumber Authors 287 288 Licensed under the Apache License, Version 2.0 (the "License"); 289 you may not use this file except in compliance with the License. 290 You may obtain a copy of the License at 291 292 http://www.apache.org/licenses/LICENSE-2.0 293 294 Unless required by applicable law or agreed to in writing, software 295 distributed under the License is distributed on an "AS IS" BASIS, 296 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 297 See the License for the specific language governing permissions and 298 limitations under the License. 299 */ 300var he={1:"US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],800:["001"],808:["001"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],870:["001"],878:["001"],880:["BD"],881:["001"],882:["001"],883:["001"],886:["TW"],888:["001"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],979:["001"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},fe={AC:[,[,,"(?:[01589]\\d|[46])\\d{4}",,,,,,,[5,6]],[,,"6[2-467]\\d{3}",,,,"62889",,,[5]],[,,"4\\d{4}",,,,"40123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AC",247,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:0[1-9]|[1589]\\d)\\d{4}",,,,"542011",,,[6]],,,[,,,,,,,,,[-1]]],AD:[,[,,"(?:1|6\\d)\\d{7}|[135-9]\\d{5}",,,,,,,[6,8,9]],[,,"[78]\\d{5}",,,,"712345",,,[6]],[,,"690\\d{6}|[356]\\d{5}",,,,"312345",,,[6,9]],[,,"180[02]\\d{4}",,,,"18001234",,,[8]],[,,"[19]\\d{5}",,,,"912345",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AD",376,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],[,"(\\d{4})(\\d{4})","$1 $2",["1"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],,[,,,,,,,,,[-1]],,,[,,"1800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AE:[,[,,"(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}
300",,,,,,,[5,6,7,8,9,10,11,12]],[,,"[2-4679][2-8]\\d{6}",,,,"22345678",,,[8],[7]],[,,"5[024-68]\\d{7}",,,,"501234567",,,[9]],[,,"400\\d{6}|800\\d{2,9}",,,,"800123456"],[,,"900[02]\\d{5}",,,,"900234567",,,[9]],[,,"700[05]\\d{5}",,,,"700012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AE",971,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],[,"(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"600[25]\\d{5}",,,,"600212345",,,[9]],,,[,,,,,,,,,[-1]]],AF:[,[,,"[2-7]\\d{8}",,,,,,,[9],[7]],[,,"(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}",,,,"234567890",,,,[7]],[,,"7\\d{8}",,,,"701234567",,,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AF",93,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AG:[,[,,"(?:268|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}",,,,"2684601234",,,,[7]],[,,"268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}",,,,"2684641234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"26848[01]\\d{4}",,,,"2684801234",,,,[7]],"AG",1,"011","1",,,"1|([457]\\d{6})$","268$1",,,,,[,,"26840[69]\\d{4}",,,,"2684061234",,,,[7]],,"268",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AI:[,[,,"(?:264|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"264(?:292|4(?:6[12]|9[78]))\\d{4}",,,,"2644612345",,,,[7]],[,,"264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}",,,,"2642351234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AI",1,"011","1",,,"1|([2457]\\d{6})$","264$1",,,,,[,,"264724\\d{4}",,,,"2647241234",,,,[7]],,"264",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AL:[,[,,"(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",,,,,,,[6,7,8,9],[5]],[,,"(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",,,,"22345678",,,[8],[5,6,7]],[,,"6(?:[78][2-9]|9\\d)\\d{6}",,,,"672123456",,,[9]],[,,"800\\d{4}",,,,"8001234",,,[7]],[,,"900[1-9]\\d\\d",,,,"900123",,,[6]],[,,"808[1-9]\\d\\d",,,,"808123",,,[6]],[,,"700[2-9]\\d{4}",,,,"70021234",,,[8]],[,,,,,,,,,[-1]],"AL",355,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],[,"(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AM:[,[,,"(?:[1-489]\\d|55|60|77)\\d{6}",,,,,,,[8],[5,6]],[,,"(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}",,,,"10123456",,,,[5,6]],[,,"(?:33|4[1349]|55|77|88|9[13-9])\\d{6}",,,,"77123456"],[,,"800\\d{5}",,,,"80012345"],[,,"90[016]\\d{5}",,,,"90012345"],[,,"80[1-4]\\d{5}",,,,"80112345"],[,,,,,,,,,[-1]],[,,"60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|90)\\d{4}",,,,"60271234"],"AM",374,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],[,"(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],[,"(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],[,"(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AO:[,[,,"[29]\\d{8}",,,,,,,[9]],[,,"2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}",,,,"222123456"],[,,"9[1-49]\\d{7}",,,,"923123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AO",244,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AR:[,[,,"11\\d{8}|(?:[2368]|9\\d)\\d{9}",,,,,,,[10,11],[6,7,8]],[,,"3888[013-9]\\d{5}|(?:29(?:54|66)|3(?:777|865))[2-8]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}
300|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|302|657|920)|3(?:4(?:8[27]|92)|541|755|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|32[03]|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-7]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-8]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:[03][45]|[17][2-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"1123456789",,,[10],[6,7,8]],[,,"93888[013-9]\\d{5}|9(?:29(?:54|66)|3(?:777|865))[2-8]\\d{5}|93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}
300|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|302|657|920)|3(?:4(?:8[27]|92)|541|755|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|32[03]|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-7]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-8]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:[03][45]|[17][2-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"91123456789",,,,[6,7,8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"60[04579]\\d{7}",,,,"6001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AR",54,"00","0",,,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1",,,[[,"(\\d{3})","$1",["0|1(?:0[0-35-7]|1[02-5]|2[015]|34|4[478])|911"]],[,"(\\d{2})(\\d{4})","$1-$2",["[1-9]"]],[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],[,"(\\d{4})(\\d{4})","$1-$2",["[1-8]"]],[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",,1],[,"(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1"],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1"]],[[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",,1],[,"(\\d)(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"]],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3-$4",["91"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3-$4",["9"]]],[,,,,,,,,,[-1]],,,[,,"810\\d{7}",,,,,,,[10]],[,,"810\\d{7}",,,,"8101234567",,,[10]],,,[,,,,,,,,,[-1]]],AS:[,[,,"(?:[58]\\d\\d|684|900)\\d{7}",,,,,,,[10],[7]],[,,"6846(?:22|33|44|55|77|88|9[19])\\d{4}",,,,"6846221234",,,,[7]],[,,"684(?:2(?:48|5[2468]|72)|7(?:3[13]|70|82))\\d{4}",,,,"6847331234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}
300",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AS",1,"011","1",,,"1|([267]\\d{6})$","684$1",,,,,[,,,,,,,,,[-1]],,"684",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AT:[,[,,"1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",,,,,,,[4,5,6,7,8,9,10,11,12,13],[3]],[,,"1(?:11\\d|[2-9]\\d{3,11})|(?:316|463|(?:51|66|73)2)\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-8]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}",,,,"1234567890",,,,[3]],[,,"6(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}",,,,"664123456",,,[7,8,9,10,11,12,13]],[,,"800\\d{6,10}",,,,"800123456",,,[9,10,11,12,13]],[,,"9(?:0[01]|3[019])\\d{6,10}",,,,"900123456",,,[9,10,11,12,13]],[,,"8(?:10|2[018])\\d{6,10}|828\\d{5}",,,,"810123456",,,[8,9,10,11,12,13]],[,,,,,,,,,[-1]],[,,"5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",,,,"780123456",,,[5,6,7,8,9,10,11,12,13]],"AT",43,"00","0",,,"0",,,,[[,"(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],[,"(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],[,"(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],[,"(\\d{6})","$1",["1"]],[,"(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],[,"(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],[[,"(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],[,"(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],[,"(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],[,"(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],[,"(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AU:[,[,,"1(?:[0-79]\\d{7,8}|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",,,,,,,[5,6,7,8,9,10]],[,,"8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-7]|3[2-4]|[4-6]\\d))|91(?:[0-57-9]\\d|6[0135-9])\\d)\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:6[0-8]|[78]\\d|9[02-9]))\\d{6}",,,,"212345678",,,[9],[8]],[,,"4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",,,,"1300123456",,,[6,8,10]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"AU",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|(183[12])",,"0011",,[[,"(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["13"]],[,"(\\d{3})(\\d{3})","$1 $2",["19"]],[,"(\\d{3})(\\d{4})","$1 $2",["180","1802"]],[,"(\\d{4})(\\d{3,4})","$1 $2",["19"]],[,"(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],[[,"(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],[,,"163\\d{2,6}",,,,"1631234",,,[5,6,7,8,9]],1,,[,,"1[38]00\\d{6}|1(?:345[0-4]|802)\\d{3}|13\\d{4}",,,,,,,[6,7,8,10]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AW:[,[,,"(?:[25-79]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"5(?:2\\d|8[1-9])\\d{4}",,,,"5212345"],[,,"(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4
300-8]))\\d{4}",,,,"5601234"],[,,"800\\d{4}",,,,"8001234"],[,,"900\\d{4}",,,,"9001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:28\\d|501)\\d{4}",,,,"5011234"],"AW",297,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AX:[,[,,"2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"18[1-8]\\d{3,6}",,,,"181234567",,,[6,7,8,9]],[,,"(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AX",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,,,[,,,,,,,,,[-1]],,"18",[,,,,,,,,,[-1]],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],AZ:[,[,,"365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",,,,,,,[9],[7]],[,,"(?:222[0-79]\\d|365(?:[0-46-9]\\d|5[0-35-9]))\\d{4}|(?:(?:1[28]|46)\\d|2(?:[045]2|1[24]|2[34]|33|6[23]))\\d{6}",,,,"123123456",,,,[7]],[,,"(?:36554|99[2-9]\\d\\d)\\d{4}|(?:[16]0|4[04]|5[015]|7[07])\\d{7}",,,,"401234567"],[,,"88\\d{7}",,,,"881234567"],[,,"900200\\d{3}",,,,"900200123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AZ",994,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[1-9]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365|46","1[28]|2|365(?:[0-46-9]|5[0-35-9])|46"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365|46","1[28]|2|365(?:[0-46-9]|5[0-35-9])|46"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BA:[,[,,"6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",,,,,,,[8,9],[6]],[,,"(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",,,,"30212345",,,[8],[6]],[,,"6040[0-4]\\d{4}|6(?:03|[1-356]|44|7\\d)\\d{6}",,,,"61123456"],[,,"8[08]\\d{6}",,,,"80123456",,,[8]],[,,"9[0246]\\d{6}",,,,"90123456",,,[8]],[,,"8[12]\\d{6}",,,,"82123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BA",387,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1-$2",["[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70(?:3[0146]|[56]0)\\d{4}",,,,"70341234",,,[8]],,,[,,,,,,,,,[-1]]],BB:[,[,,"(?:246|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}",,,,"2464123456",,,,[7]],[,,"246(?:2(?:[3568]\\d|4[0-57-9])|45\\d|69[5-7]|8(?:[2-5]\\d|83))\\d{4}",,,,"2462501234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"(?:246976|900[2-9]\\d\\d)\\d{4}",,,,"9002123456",,,,[7]],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"24631\\d{5}",,,,"2463101234",,,,[7]],"BB",1,"011","1",,,"1|([2-9]\\d{6})$","246$1",,,,,[,,,,,,,,,[-1]],,"246",[,,,,,,,,,[-1]],[,,"246(?:292|367|4(?:1[7-9]|3[01]|44|67)|7(?:36|53))\\d{4}",,,,"2464301234",,,,[7]],,,[,,,,,,,,,[-1]]],BD:[,[,,"1\\d{9}|2\\d{7,8}|88\\d{4,6}|(?:8[0-79]|9\\d)\\d{4,8}|(?:[346]\\d|[57])\\d{5,8}",,,,,,,[6,7,8,9,10]],[,,"(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2[45]\\d\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}",,,,"27111234"],[,,"(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",,,,"1812345678",,,[10]],[,,"80[03]\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"96(?:0[469]|1[0-47]|3[389]|6[69]|7[78])\\d{6}",,,,"9604123456",,,[10]],"BD",880,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],[,"(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],[,"(\\d{4})(\\d{3,6})","$1-$2",["[13-9]"],"0$1"],[,"(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BE:[,[,,"4\\d{8}|[1-9]\\d{7}",,,,,,,[8,9]],[,,"80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",,,,"12345678",,,[8]],[,,"4[5-9]\\d{7}",,,,"470123456",,,[9]],[,,"800[1-9]\\d{4}",,,,"80012345",,,[8]],[,,"(?:70(?:2[0-57]|3[0457]|44|69|7[0579])|90(?:0[0-35-8]|1[36]|2[0-3568]|3[0135689]|4[2-68]|5[1-68]|6[0-378]|7[23568]|9[34679]))\\d{4}",,,,"90012345",,,[8]],[,,"7879\\d{4}",,,,"78791234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BE",32,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],[,"(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"78(?:0[57]|1[0458]|2[25]|3[15-8]|48|[56]0|7[078])\\d{4}",,,,"78102345",,,[8]],,,[,,,,,,,,,[-1]]],BF:[,[,,"[025-7]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:49|5[23]|6[56]|9[016-9])|4(?:4[569]|5[4-6]|6[56]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}",,,,"20491234"],[,,"(?:0[127]|5[1-8]|[67]\\d)\\d{6}",,,,"70123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BF",226,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BG:[,[,,"[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",,,,,,,[6,7,8,9],[4,5]],[,,"2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",,,,"2123456",,,[6,7,8],[4,5]],[,,"43[07-9]\\d{5}|(?:48|8[7-9]\\d|9(?:8\\d|9[69]))\\d{6}",,,,"48123456",,,[8,9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"90\\d{6}",,,,"90123456",,,[8]],[,,"700\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BG",359,"00","0",,,"0",,,,[[,"(\\d{6})","$1",["1"]],[,"(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],[[,"(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BH:[,[,,"[136-9]\\d{7}",,,,,,,[8]],[,,"(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|7[7-9]|88)|9[69][69])|7(?:1(?:11|78)|7\\d\\d))\\d{4}",,,,"17001234"],[,,"(?:3(?:[1-79]\\d|8[0-47-9])\\d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]\\d|7[0-6])))\\d{4}",,,,"36001234"],[,,"80\\d{6}
300",,,,"80123456"],[,,"(?:87|9[014578])\\d{6}",,,,"90123456"],[,,"84\\d{6}",,,,"84123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BH",973,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BI:[,[,,"(?:[267]\\d|31)\\d{6}",,,,,,,[8]],[,,"22\\d{6}",,,,"22201234"],[,,"(?:29|31|6[1289]|7[125-9])\\d{6}",,,,"79561234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BI",257,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BJ:[,[,,"(?:[2689]\\d|51)\\d{6}",,,,,,,[8]],[,,"2(?:02|1[037]|2[45]|3[68])\\d{5}",,,,"20211234"],[,,"(?:51|6\\d|9[013-9])\\d{6}",,,,"90011234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"857[58]\\d{4}",,,,"85751234"],"BJ",229,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[25689]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"81\\d{6}",,,,"81123456"],,,[,,,,,,,,,[-1]]],BL:[,[,,"(?:590|69\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:2[7-9]|5[12]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}",,,,"690001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"BL",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BM:[,[,,"(?:441|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}",,,,"4414123456",,,,[7]],[,,"441(?:[2378]\\d|5[0-39])\\d{5}",,,,"4413701234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BM",1,"011","1",,,"1|([2-8]\\d{6})$","441$1",,,,,[,,,,,,,,,[-1]],,"441",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BN:[,[,,"[2-578]\\d{6}",,,,,,,[7]],[,,"22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}",,,,"2345678"],[,,"(?:22[89]|[78]\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[34]\\d{5}",,,,"5345678"],"BN",673,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]], 301BO:[,[,,"(?:[2-467]\\d\\d|8001)\\d{5}",,,,,,,[8,9],[7]],[,,"(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",,,,"22123456",,,[8],[7]],[,,"[67]\\d{7}",,,,"71234567",,,[8]],[,,"8001[07]\\d{4}",,,,"800171234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BO",591,"00(?:1\\d)?","0",,,"0(1\\d)?",,,,[[,"(\\d)(\\d{7})","$1 $2",["[23]|4[46]"],,"0$CC $1"],[,"(\\d{8})","$1",["[67]"],,"0$CC $1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"],,"0$CC $1"]],,[,,,,,,,,,[-1]],,,[,,"8001[07]\\d{4}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BQ:[,[,,"(?:[34]1|7\\d)\\d{5}",,,,,,,[7]],[,,"(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}",,,,"7151234"],[,,"(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}",,,,"3181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BQ",599,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"[347]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BR:[,[,,"(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",,,,,,,[8,9,10,11]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",,,,"1123456789",,,[10],[8]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",,,,"11961234567",,,[10,11],[8,9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"300\\d{6}|[59]00\\d{6,7}",,,,"300123456",,,[9,10]],[,,"300\\d{7}|[34]00\\d{5}|4(?:02|37)0\\d{4}",,,,"40041234",,,[8,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BR",55,"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","0",,,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",,,[[,"(\\d{3,6})","$1",["1(?:1[25-8]|2[357-9]|3[02-68]|4[12568]|5|6[0-8]|8[015]|9[0-47-9])|321|610"]],[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\d{4})(\\d{4})","$1-$2",["[2-57]","[2357]|4(?:[0-24-9]|3(?:[0-689]|7[1-9]))"]],[,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],[,"(\\d{5})(\\d{4})","$1-$2",["9"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[,,,,,,,,,[-1]],,,[,,"4020\\d{4}|[34]00\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BS:[,[,,"(?:242|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-4]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}",,,,"2423456789",,,,[7]],[,,"242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}",,,,"2423591234",,,,[7]],[,,"242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456",,,,[7]],[,,"900[2-9]\\d{6}
301",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BS",1,"011","1",,,"1|([3-8]\\d{6})$","242$1",,,,,[,,,,,,,,,[-1]],,"242",[,,,,,,,,,[-1]],[,,"242225\\d{4}",,,,"2422250123"],,,[,,,,,,,,,[-1]]],BT:[,[,,"[17]\\d{7}|[2-8]\\d{6}",,,,,,,[7,8],[6]],[,,"(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",,,,"2345678",,,[7],[6]],[,,"(?:1[67]|77)\\d{6}",,,,"17123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BT",975,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]],[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BW:[,[,,"90\\d{5}|(?:[2-6]|7\\d)\\d{6}",,,,,,,[7,8]],[,,"(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[0389]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}",,,,"2401234",,,[7]],[,,"77200\\d{3}|7(?:[1-6]\\d|7[013-9])\\d{5}",,,,"71123456",,,[8]],[,,,,,,,,,[-1]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"79(?:1(?:[01]\\d|20)|2[0-2]\\d)\\d{3}",,,,"79101234",,,[8]],"BW",267,"00",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["90"]],[,"(\\d{3})(\\d{4})","$1 $2",["[2-6]"]],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BY:[,[,,"(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",,,,,,,[6,7,8,9,10,11],[5]],[,,"(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",,,,"152450911",,,[9],[5,6,7]],[,,"(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",,,,"294911911",,,[9]],[,,"800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}",,,,"8011234567"],[,,"(?:810|902)\\d{7}",,,,"9021234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"249\\d{6}",,,,"249123456",,,[9]],"BY",375,"810","8",,,"0|80?",,"8~10",,[[,"(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],[,"(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],[,"(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,"800\\d{3,7}|(?:8(?:0[13]|10|20\\d)|902)\\d{7}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BZ:[,[,,"(?:0800\\d|[2-8])\\d{6}",,,,,,,[7,11]],[,,"(?:236|732)\\d{4}|[2-578][02]\\d{5}",,,,"2221234",,,[7]],[,,"6[0-35-7]\\d{5}",,,,"6221234",,,[7]],[,,"0800\\d{7}",,,,"08001234123",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BZ",501,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],[,"(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CA:[,[,,"(?:[2-8]\\d|90)\\d{8}",,,,,,,[10],[7]],[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[57])|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,,[7]],[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[57])|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|(?:5(?:00|2[12]|33|44|66|77|88)|622)[2-9]\\d{6}",,,,"5002345678"],[,,"600[2-9]\\d{6}",,,,"6002012345"],"CA",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CC:[,[,,"1(?:[0-79]\\d|8[0-24-9])\\d{7}|[148]\\d{8}|1\\d{5,7}",,,,,,,[6,7,8,9,10]],[,,"8(?:51(?:0(?:02|31|60|89)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",,,,"891621234",,,[9],[8]],[,,"4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",,,,"1300123456",,,[6,8,10]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CC",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|([59]\\d{7})$","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CD:[,[,,"[189]\\d{8}|[1-68]\\d{6}",,,,,,,[7,9]],[,,"12\\d{7}|[1-6]\\d{6}",,,,"1234567"],[,,"88\\d{5}|(?:8[0-2459]|9[017-9])\\d{7}",,,,"991234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CD",243,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],[,"(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CF:[,[,,"(?:[27]\\d{3}|8776)\\d{4}",,,,,,,[8]],[,,"2[12]\\d{6}",,,,"21612345"],[,,"7[0257]\\d{6}",,,,"70012345"],[,,,,,,,,,[-1]],[,,"8776\\d{4}",,,,"87761234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CF",236,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CG:[,[,,"222\\d{6}|(?:0\\d|80)\\d{7}",,,,,,,[9]],[,,"222[1-589]\\d{5}",,,,"222123456"],[,,"0[14-6]\\d{7}",,,,"061234567"],[,,,,,,,,,[-1]],[,,"80(?:0\\d\\d|11[0-4])\\d{4}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CG",242,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["801"]],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CH:[,[,,"8\\d{11}|[2-9]\\d{8}",,,,,,,[9,12]],[,,"(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}",,,,"212345678",,,[9]],[,,"7[35-9]\\d{7}",,,,"781234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[016]\\d{6}",,,,"900123456",,,[9]],[,,"84[0248]\\d{6}",,,,"840123456",,,[9]],[,,"878\\d{6}",,,,"878123456",,,[9]],[,,,,,,,,,[-1]],"CH",41,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],,[,,"74[0248]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"5[18]\\d{7}",,,,"581234567",,,[9]],,,[,,"860\\d{9}",,,,"860123456789",,,[12]]],CI:[,[,,"[02-9]\\d{7}",,,,,,,[8]],[,,"(?:2(?:0[023]|1[02357]|[23][045]|4[03-5])|3(?:0[06]|1[069]|[2-4][07]|5[09]|6[08]))\\d{5}",,,,"21234567"],[,,"(?:2[0-3]80|97[0-3]\\d)\\d{4}|(?:0[1-9]|[457]\\d|6[014-9]|8[4-9]|95)\\d{6}",,,,"01234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CI",225,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[02-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CK:[,[,,"[2-578]\\d{4}",,,,,,,[5]],[,,"(?:2\\d|3[13-7]|4[1-5])\\d{3}",,,,"21234"],[,,"[578]\\d{4}",,,,"71234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CK",682,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CL:[,[,,"12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",,,,,,,[9,10,11]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:0\\d|1[0-35-9]|2[1-9]|3[0-2]|40)))|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:0\\d|1[0-35-9]|2[1-9]|3[0-2]|40)))|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"(?:123|8)00\\d{6}",,,,"800123456",,,[9,11]],[,,,,,,,,,[-1]],[,,"600\\d{7,8}",,,,"6001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,"44\\d{7}",,,,"441234567",,,[9]],"CL",56,"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0",,,,,,,1,[[,"(\\d{4})","$1",["1(?:[03-589]|21)|[29]0|78"]],[,"(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],[[,"(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-3]"],"($1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],[,,,,,,,,,[-1]],,,[,,"600\\d{7,8}",,,,,,,[10,11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CM:[,[,,"(?:[26]\\d\\d|88)\\d{6}",,,,,,,[8,9]],[,,"2(?:22|33)\\d{6}",,,,"222123456",,,[9]],[,,"(?:24[23]|6[5-9]\\d)\\d{6}",,,,"671234567",,,[9]],[,,"88\\d{6}",,,,"88012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CM",237,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CN:[,[,,"1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",,,,,,,[7,8,9,10,11,12],[5,6]],[,,"(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|21(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))\\d{5}|(?:43[35]|754)\\d{7,8}|8(?:078\\d{7}|51\\d{7,8})|(?:10|(?:2|85)1|43[35]|754)(?:100\\d\\d|95\\d{3,4})|(?:2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[1-9]\\d{6})|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[1-9]\\d{5})|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",,,,"1012345678",,,[7,8,9,10,11],[5,6]],[,,"1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|5[0-35-9]|6[25-7]|7[0-35-8]|9[0135-9])\\d{8}",,,,"13123456789",,,[11]],[,,"(?:(?:10|21)8|8)00\\d{7}",,,,"8001234567",,,[10,12]],[,,"16[08]\\d{5}",,,,"16812345",,,[8]],[,,"400\\d{7}|950\\d{7,8}|(?:10|2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",,,,"4001234567",,,[7,8,9,10,11],[5,6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CN",86,"00|1(?:[12]\\d|79)\\d\\d00","0",,,"0|(1(?:[12]\\d|79)\\d\\d)",,"00",,[[,"(\\d{5,6})","$1",["96"]],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])"]],[,"(\\d{4})(\\d{4})","$1 $2",["16[08]"]],[,"(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])","26|3(?:[0268]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|50|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9])|(?:34|85[23])[0-8]|(?:1|58)[1-9]|(?:63|95)[06-9]|(?:33|85[23]9)[0-46-9]|(?:10|2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[0-8]|9[0-47-9])","26|3(?:[0268]|3[0-46-9]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23](?:[02-8]|1[1-9]|9[0-46-9]))|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:1|58|85[23]10)[1-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4}
301)","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[,,,,,,,,,[-1]],,,[,,"(?:(?:10|21)8|[48])00\\d{7}|950\\d{7,8}",,,,,,,[10,11,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CO:[,[,,"(?:1\\d|[36])\\d{9}|[124-8]\\d{7}",,,,,,,[8,10,11],[7]],[,,"60[124-8][2-9]\\d{6}|[124-8][2-9]\\d{6}",,,,"6012345678",,,[8,10],[7]],[,,"3333(?:0(?:0\\d|1[0-5])|[4-9]\\d\\d)\\d{3}|33(?:00|3[0-24-9])\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}",,,,"3211234567",,,[10]],[,,"1800\\d{7}",,,,"18001234567",,,[11]],[,,"19(?:0[01]|4[78])\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CO",57,"00(?:4(?:[14]4|56)|[579])","0",,,"0([3579]|4(?:[14]4|56))?",,,,[[,"(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["3"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1"]],[[,"(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["3"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CR:[,[,,"(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",,,,,,,[8,10]],[,,"210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",,,,"22123456",,,[8]],[,,"(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",,,,"83123456",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"90[059]\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:210[0-6]|4\\d{3}|5100)\\d{4}",,,,"40001234",,,[8]],"CR",506,"00",,,,"(19(?:0[0-2468]|1[09]|20|66|77|99))",,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CU:[,[,,"[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",,,,,,,[6,7,8,10],[4,5]],[,,"(?:3[23]|48)\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}",,,,"71234567",,,,[4,5]],[,,"5\\d{7}",,,,"51234567",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,"807\\d{7}",,,,"8071234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CU",53,"119","0",,,"0",,,,[[,"(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],[,"(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],[,"(\\d)(\\d{7})","$1 $2",["5"],"0$1"],[,"(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CV:[,[,,"(?:[2-59]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}",,,,"2211234"],[,,"(?:[34][36]|5[1-389]|9\\d)\\d{5}",,,,"9911234"],[,,"800\\d{4}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CV",238,"0",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CW:[,[,,"(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",,,,,,,[7,8]],[,,"9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}",,,,"94351234"],[,,"953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}",,,,"95181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"60[0-2]\\d{4}",,,,"6001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CW",599,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[3467]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],,[,,"955\\d{5}",,,,"95581234",,,[8]],1,"[69]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CX:[,[,,"1(?:[0-79]\\d|8[0-24-9])\\d{7}|[148]\\d{8}|1\\d{5,7}",,,,,,,[6,7,8,9,10]],[,,"8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|235)|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",,,,"891641234",,,[9],[8]],[,,"4(?:83[0-38]|93[0-4])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{3}|45[0-4])\\d{3}|13\\d{4}",,,,"1300123456",,,[6,8,10]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CX",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|([59]\\d{7})$","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CY:[,[,,"(?:[279]\\d|[58]0)\\d{6}",,,,,,,[8]],[,,"2[2-6]\\d{6}",,,,"22345678"],[,,"9[4-79]\\d{6}",,,,"96123456"],[,,"800\\d{5}",,,,"80001234"],[,,"90[09]\\d{5}",,,,"90012345"],[,,"80[1-9]\\d{5}",,,,"80112345"],[,,"700\\d{5}",,,,"70012345"],[,,,,,,,,,[-1]],"CY",357,"00",,,,,,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:50|77)\\d{6}",,,,"77123456"],,,[,,,,,,,,,[-1]]],CZ:[,[,,"(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",,,,,,,[9,10,11,12]],[,,"(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}",,,,"212345678",,,[9]],[,,"(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}",,,,"601123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:0[05689]|76)\\d{6}",,,,"900123456",,,[9]],[,,"8[134]\\d{7}",,,,"811234567",,,[9]],[,,"70[01]\\d{6}",,,,"700123456",,,[9]],[,,"9[17]0\\d{6}",,,,"910123456",,,[9]],"CZ",420,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"9(?:5\\d|7[2-4])\\d{6}",,,,"972123456",,,[9]],,,[,,"9(?:3\\d{9}|6\\d{7,10})",,,,"93123456789"]],DE:[,[,,"[2579]\\d{5,14}|49(?:[05]\\d{10}|[46][1-8]\\d{4,9})|49(?:[0-25]\\d|3[1-689]|7[1-7])\\d{4,8}|49(?:[0-2579]\\d|[34][1-9]|6[0-8])\\d{3}|49\\d{3,4}|(?:1|[368]\\d|4[0-8])\\d{3,13}",,,,,,,[4,5,6,7,8,9,10,11,12,13,14,15],[2,3]],[,,"(?:32|49[4-6]\\d)\\d{9}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][
3010-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",,,,"30123456",,,[5,6,7,8,9,10,11,12,13,14,15],[2,3,4]],[,,"15[0-25-9]\\d{8}|1(?:6[023]|7\\d)\\d{7,8}",,,,"15123456789",,,[10,11]],[,,"800\\d{7,12}",,,,"8001234567890",,,[10,11,12,13,14,15]],[,,"(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",,,,"9001234567",,,[10,11]],[,,"180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",,,,"18012345",,,[7,8,9,10,11,12,13,14]],[,,"700\\d{8}",,,,"70012345678",,,[11]],[,,,,,,,,,[-1]],"DE",49,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],[,"(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],[,"(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],[,"(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],[,"(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],[,"(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],[,"(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],[,"(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],[,"(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],[,"(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],[,"(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],[,"(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],[,"(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],[,"(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],,[,,"16(?:4\\d{1,10}|[89]\\d{1,11})",,,,"16412345",,,[4,5,6,7,8,9,10,11,12,13,14]],,,[,,,,,,,,,[-1]],[,,"18(?:1\\d{5,11}|[2-9]\\d{8})",,,,"18500123456",,,[8,9,10,11,12,13,14]],,,[,,"1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}",,,,"177991234567",,,[12,13]]],DJ:[,[,,"(?:2\\d|77)\\d{6}",,,,,,,[8]],[,,"2(?:1[2-5]|7[45])\\d{5}",,,,"21360003"],[,,"77\\d{6}",,,,"77831001"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DJ",253,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DK:[,[,,"[2-9]\\d{7}",,,,,,,[8]],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DK",45,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DM:[,[,,"(?:[58]\\d\\d|767|900)\\d{7}",,,,,,,[10],[7]],[,,"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}",,,,"7674201234",,,,[7]],[,,"767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-7]|70[1-6])\\d{4}",,,,"7672251234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DM",1,"011","1",,,"1|([2-7]\\d{6})$","767$1",,,,,[,,,,,,,,,[-1]],,"767",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DO:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-
30157-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}",,,,"8092345678",,,,[7]],[,,"8[024]9[2-9]\\d{6}",,,,"8092345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DO",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"8[024]9",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]], 302DZ:[,[,,"(?:[1-4]|[5-79]\\d|80)\\d{7}",,,,,,,[8,9]],[,,"9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[0135689])\\d{6}",,,,"12345678"],[,,"(?:5(?:4[0-29]|5\\d|6[01])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",,,,"551234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"80[3-689]1\\d{5}",,,,"808123456",,,[9]],[,,"80[12]1\\d{5}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,"98[23]\\d{6}",,,,"983123456",,,[9]],"DZ",213,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EC:[,[,,"1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",,,,,,,[8,9,10,11],[7]],[,,"[2-7][2-7]\\d{6}",,,,"22123456",,,[8],[7]],[,,"964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",,,,"991234567",,,[9]],[,,"1800\\d{7}|1[78]00\\d{6}",,,,"18001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[2-7]890\\d{4}",,,,"28901234",,,[8]],"EC",593,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-7]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EE:[,[,,"8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",,,,"3212345",,,[7]],[,,"5(?:[0-35-9]\\d{6}|4(?:[0-57-9]\\d{5}|6(?:[0-24-9]\\d{4}|3(?:[0-35-9]\\d{3}|4000))))|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:23|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[24-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9]|8[2-4])\\d|7(?:[679]\\d|8[13-9]))\\d)|[349]\\d{4})\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",,,,"51234567",,,[7,8]],[,,"800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}",,,,"80012345"],[,,"(?:40\\d\\d|900)\\d{4}",,,,"9001234",,,[7,8]],[,,,,,,,,,[-1]],[,,"70[0-2]\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],"EE",372,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],[,"(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,"800[2-9]\\d{3}",,,,,,,[7]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EG:[,[,,"[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2[2-4]|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",,,,"234567890",,,[8,9],[6,7]],[,,"1[0-25]\\d{8}",,,,"1001234567",,,[10]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"EG",20,"00","0",,,"0",,,,[[,"(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],[,"(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EH:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"528[89]\\d{5}",,,,"528812345"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0[0-36-8]|6[1267]|7[0-37]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"EH",212,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"528[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ER:[,[,,"[178]\\d{6}",,,,,,,[7],[6]],[,,"(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}",,,,"8370362",,,,[6]],[,,"(?:17[1-3]|7\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ER",291,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ES:[,[,,"[5-9]\\d{8}",,,,,,,[9]],[,,"96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}",,,,"810123456"],[,,"(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}",,,,"612345678"],[,,"[89]00\\d{6}",,,,"800123456"],[,,"80[367]\\d{6}",,,,"803123456"],[,,"90[12]\\d{6}",,,,"901123456"],[,,"70\\d{7}",,,,"701234567"],[,,,,,,,,,[-1]],"ES",34,"00",,,,,,,,[[,"(\\d{4})","$1",["905"]],[,"(\\d{6})","$1",["[79]9"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"51\\d{7}",,,,"511234567"],,,[,,,,,,,,,[-1]]],ET:[,[,,"(?:11|[2-59]\\d)\\d{7}",,,,,,,[9],[7]],[,,"11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01
302]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[578]|44|5[0-4])|6(?:1[78]|2[69]|39|4[5-7]|5[1-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}",,,,"111112345",,,,[7]],[,,"9\\d{8}",,,,"911234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ET",251,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FI:[,[,,"[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"(?:1[3-79][1-8]|[235689][1-8]\\d)\\d{2,6}",,,,"131234567",,,[5,6,7,8,9]],[,,"(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FI",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,[[,"(\\d{5})","$1",["75[12]"],"0$1"],[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{6})","$1",["11"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[,,,,,,,,,[-1]],1,"1[03-79]|[2-9]",[,,"20(?:2[023]|9[89])\\d{1,6}|(?:60[12]\\d|7099)\\d{4,5}|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:[1-3]00|7(?:0[1-5]\\d\\d|5[03-9]))\\d{3,7}"],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],FJ:[,[,,"45\\d{5}|(?:0800\\d|[235-9])\\d{6}",,,,,,,[7,11]],[,,"603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",,,,"3212345",,,[7]],[,,"(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",,,,"7012345",,,[7]],[,,"0800\\d{7}",,,,"08001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FJ",679,"0(?:0|52)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FK:[,[,,"[2-7]\\d{4}",,,,,,,[5]],[,,"[2-47]\\d{4}",,,,"31234"],[,,"[56]\\d{4}",,,,"51234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FK",500,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FM:[,[,,"(?:[39]\\d\\d|820)\\d{4}",,,,,,,[7]],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}",,,,"3201234"],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}",,,,"3501234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FM",691,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[389]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FO:[,[,,"(?:[2-8]\\d|90)\\d{4}",,,,,,,[6]],[,,"(?:20|[34]\\d|8[19])\\d{4}",,,,"201234"],[,,"(?:[27][1-9]|5\\d)\\d{4}",,,,"211234"],[,,"80[257-9]\\d{3}",,,,"802123"],[,,"90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d",,,,"901123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:6[0-36]|88)\\d{4}",,,,"601234"],"FO",298,"00",,,,"(10(?:01|[12]0|88))",,,,[[,"(\\d{6})","$1",["[2-9]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FR:[,[,,"[1-9]\\d{8}",,,,,,,[9]],[,,"(?:[1-35]\\d|4[1-9])\\d{7}",,,,"123456789"],[,,"700\\d{6}|(?:6\\d|7[3-9])\\d{7}",,,,"612345678"],[,,"80[0-5]\\d{6}",,,,"801234567"],[,,"836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}",,,,"891123456"],[,,"8(?:1[01]|2[0156]|84)\\d{6}",,,,"884012345"],[,,,,,,,,,[-1]],[,,"9\\d{8}",,,,"912345678"],"FR",33,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["10"]],[,"(\\d{3})(\\d{3})","$1 $2",["1"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"80[6-9]\\d{6}",,,,"806123456"],,,[,,,,,,,,,[-1]]],GA:[,[,,"(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",,,,,,,[7,8]],[,,"[01]1\\d{6}",,,,"01441234",,,[8]],[,,"(?:0[2-7]|6[256]|7[47])\\d{6}|[2-7]\\d{6}",,,,"06031234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GA",241,"00",,,,"0(11\\d{6}|6[256]\\d{6}|7[47]\\d{6})","$1",,,[[,"(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GB:[,[,,"[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",,,,,,,[7,9,10],[4,5,6,8]],[,,"(?:1(?:1(?:3(?:[0-58]\\d\\d|73[03])|(?:4[0-5]|5[0-26-9]|6[0-4]|[78][0-49])\\d\\d)|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:0\\d|2[0-35-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])
302))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",,,,"1212345678",,,[9,10],[4,5,6,7,8]],[,,"7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",,,,"7400123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GB",44,"00","0"," x",,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],[,"(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],[,"(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],[,"(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],[,"(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],,[,,"76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",,,,"7640123456",,,[10]],1,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GD:[,[,,"(?:473|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}",,,,"4732691234",,,,[7]],[,,"473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)\\d{4}",,,,"4734031234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GD",1,"011","1",,,"1|([2-9]\\d{6})$","473$1",,,,,[,,,,,,,,,[-1]],,"473",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GE:[,[,,"(?:[3-57]\\d\\d|800)\\d{6}",,,,,,,[9],[6,7]],[,,"(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}",,,,"322123456",,,,[6,7]],[,,"5(?:0(?:0(?:0\\d|50)\\d|555[5-9])|(?:111\\d|8(?:58[89]|888))\\d|(?:2222|3333)[0-4]|52(?:00\\d|22[0-4])|75(?:00\\d|7(?:7[7-9]|8[01])))\\d{3}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}",,,,"555123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70[67]\\d{6}",,,,"706123456"],"GE",995,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"70[67]\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GF:[,[,,"(?:[56]94|976)\\d{6}",,,,,,,[9]],[,,"594(?:[023]\\d|1[01]|4[03-9]|5[6-9]|6[0-3]|80|9[014])\\d{4}",,,,"594101234"],[,,"694(?:[0-249]\\d|3[0-48])\\d{4}",,,,"694201234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976\\d{6}",,,,"976012345"],"GF",594,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GG:[,[,,"(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",,,,,,,[7,9,10],[6]],[,,"1481[25-9]\\d{5}",,,,"1481256789",,,[10],[6]],[,,"7(?:(?:781|839)\\d|911[17])\\d{5}",,,,"7781123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GG",44,"00","0",,,"0|([25-9]\\d{5})$","1481$1",,,,,[,,"76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",,,,"7640123456",,,[10]],,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GH:[,[,,"(?:[235]\\d{3}|800)\\d{5}",,,,,,,[8,9],[7]],[,,"3082[0-5]\\d{4}
302|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",,,,"302345678",,,[9],[7]],[,,"(?:2[0346-8]\\d|5(?:[0457]\\d|6[01]|9[1-6]))\\d{6}",,,,"231234567",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GH",233,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[237]|8[0-2]"]],[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"800\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GI:[,[,,"[256]\\d{7}",,,,,,,[8]],[,,"21(?:6[24-7]\\d|90[0-2])\\d{3}|2(?:00|2[25])\\d{5}",,,,"20012345"],[,,"(?:5[146-8]\\d|6(?:06|29))\\d{5}",,,,"57123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GI",350,"00",,,,,,,,[[,"(\\d{3})(\\d{5})","$1 $2",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GL:[,[,,"(?:19|[2-689]\\d)\\d{4}",,,,,,,[6]],[,,"(?:19|3[1-7]|6[14689]|8[14-79]|9\\d)\\d{4}",,,,"321000"],[,,"[245]\\d{5}",,,,"221234"],[,,"80\\d{4}",,,,"801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3[89]\\d{4}",,,,"381234"],"GL",299,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-689]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GM:[,[,,"[2-9]\\d{6}",,,,,,,[7]],[,,"(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}",,,,"5661234"],[,,"(?:[23679]\\d|5[0-389])\\d{5}",,,,"3012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GM",220,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GN:[,[,,"722\\d{6}|(?:3|6\\d)\\d{7}",,,,,,,[8,9]],[,,"3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",,,,"30241234",,,[8]],[,,"6[02356]\\d{7}",,,,"601123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"722\\d{6}",,,,"722123456",,,[9]],"GN",224,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GP:[,[,,"(?:590|69\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}",,,,"590201234"],[,,"69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}",,,,"690001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"GP",590,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GQ:[,[,,"222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",,,,,,,[9]],[,,"33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}",,,,"333091234"],[,,"(?:222|55[015])\\d{6}",,,,"222123456"],[,,"80\\d[1-9]\\d{5}",,,,"800123456"],[,,"90\\d[1-9]\\d{5}",,,,"900123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GQ",240,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],[,"(\\d{3})(\\d{6})","$1 $2",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GR:[,[,,"5005000\\d{3}|(?:[2689]\\d|70)\\d{8}",,,,,,,[10]],[,,"2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",,,,"2123456789"],[,,"68[57-9]\\d{7}|(?:69|94)\\d{8}",,,,"6912345678"],[,,"800\\d{7}",,,,"8001234567"],[,,"90[19]\\d{7}",,,,"9091234567"],[,,"8(?:0[16]|12|[27]5|50)\\d{7}",,,,"8011234567"],[,,"70\\d{8}",,,,"7012345678"],[,,,,,,,,,[-1]],"GR",30,"00",,,,,,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],[,"(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"5005000\\d{3}",,,,"5005000123"],,,[,,,,,,,,,[-1]]],GT:[,[,,"(?:1\\d{3}|[2-7])\\d{7}",,,,,,,[8,11]],[,,"[267][2-9]\\d{6}",,,,"22456789",,,[8]],[,,"[3-5]\\d{7}",,,,"51234567",,,[8]],[,,"18[01]\\d{8}",,,,"18001112222",,,[11]],[,,"19\\d{9}",,,,"19001112222",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GT",502,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GU:[,[,,"(?:[58]\\d\\d|671|900)\\d{7}",,,,,,,[10],[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[0236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[0236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}
302",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GU",1,"011","1",,,"1|([3-9]\\d{6})$","671$1",,1,,,[,,,,,,,,,[-1]],,"671",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GW:[,[,,"[49]\\d{8}|4\\d{6}",,,,,,,[7,9]],[,,"443\\d{6}",,,,"443201234",,,[9]],[,,"9(?:5\\d|6[569]|77)\\d{6}",,,,"955012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"40\\d{5}",,,,"4012345",,,[7]],"GW",245,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["40"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GY:[,[,,"(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}",,,,,,,[7]],[,,"(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-24-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|77[1-57])\\d{4}",,,,"2201234"],[,,"6\\d{6}",,,,"6091234"],[,,"(?:289|862)\\d{4}",,,,"2891234"],[,,"9008\\d{3}",,,,"9008123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GY",592,"001",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HK:[,[,,"8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}",,,,,,,[5,6,7,8,9,11]],[,,"(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-6]|5[0-5]|9\\d))|58(?:0[1-8]|1[2-9]))\\d{4}",,,,"21234567",,,[8]],[,,"(?:46(?:[01][0-6]|4[0-57-9]|5[0-8]|6[0-4])|5730|6(?:26[013-7]|66[0-3])|70(?:7[1-5]|8[0-4])|848[015-9]|929[03-9])\\d{4}|(?:46[23]|5(?:[1-59][0-46-9]|6[0-4689]|7[0-2469])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|849|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",,,,"51234567",,,[8]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900(?:[0-24-9]\\d{7}|3\\d{1,4})",,,,"90012345678",,,[5,6,7,8,11]],[,,,,,,,,,[-1]],[,,"8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",,,,"81123456",,,[8]],[,,,,,,,,,[-1]],"HK",852,"00(?:30|5[09]|[126-9]?)",,,,,,"00",,[[,"(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],,[,,"7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",,,,"71123456",,,[8]],,,[,,,,,,,,,[-1]],[,,"30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",,,,"30161234",,,[8]],,,[,,,,,,,,,[-1]]],HN:[,[,,"8\\d{10}|[237-9]\\d{7}",,,,,,,[8,11]],[,,"2(?:2(?:0[0139]|1[1-36]|[23]\\d|4[04-6]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[78]|2[3-59]|3[13-689]|4[0-68]|5[1-35])|5(?:0[7-9]|16|4[03-5]|5\\d|6[014-6]|74|80)|6(?:[056]\\d|17|2[07]|3[04]|4[0-378]|[78][0-8]|9[01])|7(?:6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",,,,"22123456",,,[8]],[,,"[37-9]\\d{7}",,,,"91234567",,,[8]],[,,"8002\\d{7}",,,,"80021234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"HN",504,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["8"]]],[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],[,,,,,,,,,[-1]],,,[,,"8002\\d{7}",,,,,,,[11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HR:[,[,,"(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",,,,,,,[6,7,8,9]],[,,"1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"9(?:751\\d{5}|8\\d{6,7})|9(?:0[1-9]|[1259]\\d|7[0679])\\d{6}",,,,"921234567",,,[8,9]],[,,"80[01]\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"6[01459]\\d{6}|6[01]\\d{4,5}",,,,"611234",,,[6,7,8]],[,,,,,,,,,[-1]],[,,"7[45]\\d{6}",,,,"74123456",,,[8]],[,,,,,,,,,[-1]],"HR",385,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],[,"(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"62\\d{6,7}|72\\d{6}",,,,"62123456",,,[8,9]],,,[,,,,,,,,,[-1]]],HT:[,[,,"[2-489]\\d{7}",,,,,,,[8]],[,,"2(?:2\\d|5[1-5]|81|9[149])\\d{5}",,,,"22453300"],[,,"[34]\\d{7}",,,,"34101234"],[,,"8\\d{7}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}",,,,"98901234"],"HT",509,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HU:[,[,,"[235-7]\\d{8}|[1-9]\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",,,,"12345678",,,[8],[6,7]],[,,"(?:[257]0|3[01])\\d{7}",,,,"201234567",,,[9]],[,,"(?:[48]0\\d|6802)\\d{5}",,,,"80123456"],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"21\\d{7}",,,,"211234567",,,[9]],"HU",36,"00","06",,,"06",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],,[,,,,,,,,,[-1]],,,[,,"(?:[48]0\\d|6802)\\d{5}"],[,,"38\\d{7}",,,,"381234567",,,[9]],,,[,,,,,,,,,[-1]]],ID:[,[,,"(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",,,,,,,[7,8,9,10,11,12,13],[5,6]],[,,"2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",,,,"218350123",,,[7,8,9,10,11],[5,6]],[,,"8[1-35-9]\\d{7,10}",,,,"812345678",,,[9,10,11,12]],[,,"00[17]803\\d{7}|(?:177\\d|800)\\d{5,7}|001803\\d{6}",,,,"8001234567",,,[8,9,10,11,12,13]],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,"804\\d{7}",,,,"8041234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ID",62,"00[89]","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],[,"(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],[,"(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],[,"(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],[,"(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],[,"(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],[,"(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["001"]],[,"(\\d{2})(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],[,"(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],[,"(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],[,"(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],[,"(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],[,"(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],[,"(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"001803\\d{6,7}|(?:007803\\d|8071)\\d{6}",,,,,,,[10,12,13]],[,,"(?:1500|8071\\d{3})\\d{3}",,,,"8071123456",,,[7,10]],,,[,,,,,,,,,[-1]]],IE:[,[,,"(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",,,,,,,[7,8,9,10],[5,6]],[,,"(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}",,,,"2212345",,,,[5,6]],[,,"8(?:22|[35-9]\\d)\\d{6}",,,,"850123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,"15(?:1[2-8]|[2-8]0|9[089])\\d{6}",,,,"1520123456",,,[10]],[,,"18[59]0\\d{6}",,,,"1850123456",,,[10]],[,,"700\\d{6}",,,,"700123456",,,[9]],[,,"76\\d{7}",,,,"761234567",,,[9]],"IE",353,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],[,"(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],[,"(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],[,"(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"18[59]0\\d{6}",,,,,,,[10]],[,,"818\\d{6}",,,,"818123456",,,[9]],,,[,,"88210[1-9]\\d{4}|8(?:[35-79]5\\d\\d|8(?:[013-9]\\d\\d|2(?:[01][1-9]|[2-9]\\d)))\\d{5}",,,,"8551234567",,,[10]]],IL:[,[,,"1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",,,,,,,[7,8,9,10,11,12]],[,,"153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}",,,,"21234567",,,[8,11,12],[7]],[,,"5(?:(?:[02368]\\d|[19][2-9]|4[1-9])\\d|5(?:01|1[79]|2[2-9]|3[23]|44|5[015689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",,,,"502345678",,,[9]],[,,"1(?:255|80[019]\\d{3})\\d{3}",,,,"1800123456",,,[7,10]],[,,"1212\\d{4}|1(?:200|9(?:0[01]|19))\\d{6}",,,,"1919123456",,,[8,10]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,"78(?:33|55|77|81)\\d{5}|7(?:18|2[23]|3[237]|47|6[58]|7\\d|82|9[235-9])\\d{6}",,,,"771234567",,,[9]],"IL",972,"0(?:0|1[2-9])","0",,,"0",,,,[[,"(\\d{4})(\\d{3})","$1-$2",["125"]],[,"(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],[,"(\\d{4})(\\d{6})","$1-$2",["159"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],[,"(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],,[,,,,,,,,,[-1]],,,[,,"1700\\d{6}",,,,,,,[10]],[,,"1599\\d{6}",,,,"1599123456",,,[10]],,,[,,"151\\d{8,9}",,,,"15112340000",,,[11,12]]],IM:[,[,,"1624\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1624[5-8]\\d{5}",,,,"1624756789",,,,[6]],[,,"76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}",,,,"7924123456"],[,,"808162\\d{4}",,,,"8081624567"],[,,"8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}",,,,"9016247890"],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678"],[,,"56\\d{8}",,,,"5612345678"],"IM",44,"00","0",,,"0|([5-8]\\d{5})$","1624$1",,,,,[,,,,,,,,,[-1]],,"74576|(?:16|7[56])24",[,,,,,,,,,[-1]],[,,"3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],
vendor: 10,052 bytes, line 303
303IN:[,[,,"(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",,,,,,,[8,9,10,11,12,13],[6,7]],[,,"2717(?:[2-7]\\d|95)\\d{4}|(?:271[0-689]|782[0-6])[2-7]\\d{5}|(?:170[24]|2(?:(?:[02][2-79]|90)\\d|80[13468])|(?:3(?:23|80)|683|79[1-7])\\d|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",,,,"7410410123",,,[10],[6,7,8]],[,,"(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])\\d|7(?:[235689]\\d|4[0189]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}",,,,"8123456789",,,[10]],[,,"000800\\d{7}|1(?:600\\d{6}|80(?:0\\d{4,9}|3\\d{9}))",,,,"1800123456"],[,,"186[12]\\d{9}",,,,"1861123456789",,,[13]],[,,"1860\\d{7}",,,,"18603451234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IN",91,"00","0",,,"0",,,,[[,"(\\d{7})","$1",["575"]],[,"(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",,1],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",,1],[,"(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",,1],[,"(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],,,1],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[[,"(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",,1],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",,1],[,"(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",,1],[,"(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],,,1],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[,,,,,,,,,[-1]],,,[,,"1(?:600\\d{6}|800\\d{4,9})|(?:000800|18(?:03\\d\\d|6(?:0|[12]\\d\\d)))\\d{7}"],[,,"140\\d{7}",,,,"1409305260",,,[10]],,,[,,,,,,,,,[-1]]],IO:[,[,,"3\\d{6}",,,,,,,[7]],[,,"37\\d{5}",,,,"3709100"],[,,"38\\d{5}",,,,"3801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IO",246,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IQ:[,[,,"(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"7[3-9]\\d{8}",,,,"7912345678",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IQ",964,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IR:[,[,,"[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",,,,,,,[4,5,6,7,10],[8]],[,,"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|
3032(?:121|[2689]0\\d)|30[0-2]\\d|4(?:111|40\\d))\\d{4}",,,,"2123456789",,,[6,7,10],[4,5,8]],[,,"9(?:(?:0(?:[1-35]\\d|4[4-6])|(?:[13]\\d|2[0-2])\\d)\\d|9(?:(?:[0-2]\\d|3[01]|4[45])\\d|5[15]0|8(?:1\\d|88)|9(?:0[013]|1\\d|21|77|9[6-9])))\\d{5}",,,,"9123456789",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"993[2-9]\\d{6}",,,,"9932123456",,,[10]],"IR",98,"00","0",,,"0",,,,[[,"(\\d{4,5})","$1",["96"],"0$1"],[,"(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"9(?:4440\\d{5}|6(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19]))",,,,,,,[4,5,10]],[,,"96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",,,,"9601",,,[4,5]],,,[,,,,,,,,,[-1]]],IS:[,[,,"(?:38\\d|[4-9])\\d{6}",,,,,,,[7,9]],[,,"(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-245]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",,,,"4101234",,,[7]],[,,"(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[027-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[28]))\\d{4}",,,,"6111234"],[,,"80[08]\\d{4}",,,,"8001234",,,[7]],[,,"90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"49[0-24-79]\\d{4}",,,,"4921234",,,[7]],"IS",354,"00|1(?:0(?:01|[12]0)|100)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"809\\d{4}",,,,"8091234",,,[7]],,,[,,"(?:689|8(?:7[18]|80)|95[48])\\d{4}",,,,"6891234",,,[7]]],IT:[,[,,"0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",,,,,,,[6,7,8,9,10,11,12]],[,,"0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",,,,"0212345678",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[6,9]],[,,"(?:0878\\d\\d|89(?:2|4[5-9]\\d))\\d{3}|89[45][0-4]\\d\\d|(?:1(?:44|6[346])|89(?:5[5-9]|9))\\d{6}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"IT",39,"00",,,,,,,,[[,"(\\d{4,5})","$1",["1(?:0|9[246])","1(?:0|9(?:2[2-9]|[46]))"]],[,"(\\d{6})","$1",["1(?:1|92)"]],[,"(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],[,"(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],[,"(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],[,"(\\d{4})(\\d{4})","$1 $2",["894"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1[4679]|[38]"]],[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],[,"(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],[[,"(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],[,"(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"]],[,"(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],[,"(\\d{4})(\\d{4})","$1 $2",["894"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1[4679]|[38]"]],[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]"]],[,"(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],[,,,,,,,,,[-1]],1,,[,,"848\\d{6}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],JE:[,[,,"1534\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1534[0-24-8]\\d{5}",,,,"1534456789",,,,[6]],[,,"7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}",,,,"7797712345"],[,,"80(?:07(?:35|81)|8901)\\d{4}",,,,"8007354567"],[,,"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}",,,,"9018105678"],[,,,,,,,,,[-1]],[,,"701511\\d{4}",,,,"7015115678"],[,,"56\\d{8}",,,,"5612345678"],"JE",44,"00","0",,,"0|([0-24-8]\\d{5})$","1534$1",,,,,[,,"76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",,,,"7640123456"],,,[,,,,,,,,,[-1]],[,,"(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],JM:[,[,,"(?:[58]\\d\\d|658|900)\\d{7}",,,,,,,[10],[7]],[,,"(?:658(?:2(?:[0-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:5(?:02|1[0-468]|2[35]|63)|6(?:0[1-3579]|1[0237-9]|[23]\\d|40|5[06]|6[2-589]|7[05]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}",,,,"8765230123",,,,[7]],[,,"(?:658295|876(?:2(?:[14-9]\\d|2[013-9]|3[7-9])|[348]\\d\\d|5(?:0[13-9]|1[579]|[2-57-9]\\d|6[0-24-9])|6(?:4[89]|6[
30367])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}",,,,"8762101234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"JM",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"658|876",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],JO:[,[,,"(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",,,,,,,[8,9]],[,,"87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",,,,"62001234",,,[8]],[,,"7(?:[78][0-25-9]|9\\d)\\d{6}",,,,"790123456",,,[9]],[,,"80\\d{6}",,,,"80012345",,,[8]],[,,"9\\d{7}",,,,"90012345",,,[8]],[,,"85\\d{6}",,,,"85012345",,,[8]],[,,"70\\d{7}",,,,"700123456",,,[9]],[,,,,,,,,,[-1]],"JO",962,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],[,"(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],,[,,"74(?:66|77)\\d{5}",,,,"746612345",,,[9]],,,[,,,,,,,,,[-1]],[,,"8(?:10|8\\d)\\d{5}",,,,"88101234",,,[8]],,,[,,,,,,,,,[-1]]],JP:[,[,,"00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",,,,,,,[8,9,10,11,12,13,14,15,16,17]],[,,"(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",,,,"312345678",,,[9]],[,,"[7-9]0[1-9]\\d{7}",,,,"9012345678",,,[10]],[,,"00(?:(?:37|66)\\d{6,13}|(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d)|(?:120|800\\d)\\d{6}",,,,"120123456"],[,,"990\\d{6}",,,,"990123456",,,[9]],[,,,,,,,,,[-1]],[,,"60\\d{7}",,,,"601234567",,,[9]],[,,"50[1-9]\\d{7}",,,,"5012345678",,,[10]],"JP",81,"010","0",,,"0",,,,[[,"(\\d{4})(\\d{4})","$1-$2",["007","0077","00777","00777[01]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[279]|49|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[01
3037])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3[3-8]|5[2-9])","[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3(?:[3-6][2-9]|7|8[2-5])|5[2-9])"],"0$1"],[,"(\\d{4})(\\d{2})(\\d{3,4})","$1-$2-$3",["007"]],[,"(\\d{4})(\\d{2})(\\d{4})","$1-$2-$3",["008"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[2579]|80"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{4})(\\d{4,5})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{5})(\\d{5,6})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{6})(\\d{6,7})","$1-$2-$3",["0"]]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[279]|49|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[
303017-9]|6[6-8]))|49|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3[3-8]|5[2-9])","[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3(?:[3-6][2-9]|7|8[2-5])|5[2-9])"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[2579]|80"],"0$1"]],[,,"20\\d{8}",,,,"2012345678",,,[10]],,,[,,"00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66)\\d{6,13}"],[,,"570\\d{6}",,,,"570123456",,,[9]],,,[,,,,,,,,,[-1]]],KE:[,[,,"(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",,,,,,,[7,8,9,10]],[,,"(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",,,,"202012345",,,[7,8,9]],[,,"(?:1(?:0[0-2]|1[0-5])|7\\d\\d)\\d{6}",,,,"712123456",,,[9]],[,,"800[24-8]\\d{5,6}",,,,"800223456",,,[9,10]],[,,"900[02-9]\\d{5}",,,,"900223456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KE",254,"000","0",,,"0",,,,[[,"(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],[,"(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KG:[,[,,"8\\d{9}|(?:[235-8]\\d|99)\\d{7}",,,,,,,[9,10],[5,6]],[,,"312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",,,,"312123456",,,[9],[5,6]],[,,"(?:312(?:58\\d|973)|8801\\d\\d)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|7(?:[07]\\d|55)|99[05-9])\\d{6}",,,,"700123456",,,[9]],[,,"800\\d{6,7}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KG",996,"00","0",,,"0",,,,[[,"(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],[,"(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KH:[,[,,"1\\d{9}|[1-9]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",,,,"23756789",,,[8,9],[6,7]],[,,"(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",,,,"91234567",,,[8,9]],[,,"1800(?:1\\d|2[019])\\d{4}",,,,"1800123456",,,[10]],[,,"1900(?:1\\d|2[09])\\d{4}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KH",855,"00[14-9]","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KI:[,[,,"(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",,,,,,,[5,8]],[,,"(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}",,,,"31234"],[,,"(?:63\\d{3}|73(?:0[0-5]\\d|140))\\d{3}|[67]200[01]\\d{3}",,,,"72001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",,,,"30010000",,,[8]],"KI",686,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KM:[,[,,"[3478]\\d{6}",,,,,,,[7],[4]],[,,"7[4-7]\\d{5}",,,,"7712345",,,,[4]],[,,"[34]\\d{6}",,,,"3212345"],[,,,,,,,,,[-1]],[,,"8\\d{6}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KM",269,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KN:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}",,,,"8692361234",,,,[7]],[,,"869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}",,,,"8697652917",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}
303",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KN",1,"011","1",,,"1|([2-7]\\d{6})$","869$1",,,,,[,,,,,,,,,[-1]],,"869",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KP:[,[,,"85\\d{6}|(?:19\\d|[2-7])\\d{7}",,,,,,,[8,10],[6,7]],[,,"(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}",,,,"21234567",,,,[6,7]],[,,"19[1-3]\\d{7}",,,,"1921234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KP",850,"00|99","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"238[02-9]\\d{4}|2(?:[0-24-9]\\d|3[0-79])\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KR:[,[,,"00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",,,,,,,[5,6,8,9,10,11,12,13,14],[3,4,7]],[,,"(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",,,,"22123456",,,[5,6,8,9,10],[3,4,7]],[,,"1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[1-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",,,,"1020000000",,,[9,10]],[,,"00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}",,,,"801234567",,,[9,11,12,13,14]],[,,"60[2-9]\\d{6}",,,,"602345678",,,[9]],[,,,,,,,,,[-1]],[,,"50\\d{8,9}",,,,"5012345678",,,[10,11]],[,,"70\\d{8}",,,,"7012345678",,,[10]],"KR",82,"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","0",,,"0(8(?:[1-46-8]|5\\d\\d))?",,,,[[,"(\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"],"0$1"],[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3})(\\d{3})","$1 $2 $3",["003","0030"]],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3,4})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{5})(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"]],[,,"15\\d{7,8}",,,,"1523456789",,,[9,10]],,,[,,"00(?:3(?:08\\d{6,7}|68\\d{7})|798\\d{7,9})",,,,,,,[11,12,13,14]],[,,"1(?:5(?:22|44|66|77|88|99)|6(?:[07]0|44|6[16]|88)|8(?:00|33|55|77|99))\\d{4}",,,,"15441234",,,[8]],,,[,,,,,,,,,[-1]]],KW:[,[,,"(?:18|[2569]\\d\\d)\\d{5}",,,,,,,[7,8]],[,,"2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",,,,"22345678",,,[8]],[,,"(?:5(?:2(?:22|5[25])|88[58])|6(?:222|444|70[013-9]|888|93[039])|9(?:11[01]|333|500))\\d{4}|(?:5(?:[05]\\d|1[0-7]|6[56])|6(?:0[034679]|5[015-9]|6\\d|7[67]|9[069])|9(?:0[09]|22|[4679]\\d|55|8[057-9]))\\d{5}",,,,"50012345",,,[8]],[,,"18\\d{5}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KW",965,"00",,,,,,,,[[,"(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],[,"(\\d{3})(\\d{5})","$1 $2",["[25]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]], 304KY:[,[,,"(?:345|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|25|[48]8)|9(?:14|4[035-9]))\\d{4}",,,,"3452221234",,,,[7]],[,,"345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}",,,,"3453231234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"(?:345976|900[2-9]\\d\\d)\\d{4}
304",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KY",1,"011","1",,,"1|([2-9]\\d{6})$","345$1",,,,,[,,"345849\\d{4}",,,,"3458491234"],,"345",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KZ:[,[,,"33622\\d{5}|(?:7\\d|80)\\d{8}",,,,,,,[10],[5,6,7]],[,,"(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9])|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-246-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",,,,"7123456789",,,,[5,6,7]],[,,"7(?:0[0-25-8]|47|6[02-4]|7[15-8]|85)\\d{7}",,,,"7710009998"],[,,"800\\d{7}",,,,"8001234567"],[,,"809\\d{7}",,,,"8091234567"],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567"],[,,"751\\d{7}",,,,"7511234567"],"KZ",7,"810","8",,,"8",,"8~10",,,,[,,,,,,,,,[-1]],,"33|7",[,,"751\\d{7}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LA:[,[,,"[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",,,,,,,[8,9,10],[6]],[,,"(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",,,,"21212862",,,[8],[6]],[,,"(?:20(?:[239]\\d|5[24-9]|7[6-8])|302\\d)\\d{6}",,,,"2023123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LA",856,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"30[013-9]\\d{6}",,,,"301234567",,,[9]],,,[,,,,,,,,,[-1]]],LB:[,[,,"[7-9]\\d{7}|[13-9]\\d{6}",,,,,,,[7,8]],[,,"(?:(?:[14-69]\\d|8[02-9])\\d|7(?:[2-57]\\d|62|8[0-7]|9[04-9]))\\d{4}",,,,"1123456",,,[7]],[,,"793(?:[01]\\d|2[0-4])\\d{3}|(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[89]|9[12]))\\d{5}",,,,"71123456"],[,,,,,,,,,[-1]],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,"80\\d{6}",,,,"80123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LB",961,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LC:[,[,,"(?:[58]\\d\\d|758|900)\\d{7}",,,,,,,[10],[7]],[,,"758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}",,,,"7584305678",,,,[7]],[,,"758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}",,,,"7582845678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"LC",1,"011","1",,,"1|([2-8]\\d{6})$","758$1",,,,,[,,,,,,,,,[-1]],,"758",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LI:[,[,,"90\\d{5}|(?:[2378]|6\\d\\d)\\d{6}",,,,,,,[7,9]],[,,"(?:2(?:01|1[27]|2[02]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",,,,"2345678",,,[7]],[,,"(?:6(?:4(?:79|[89]\\d)|5[0-4]\\d|6(?:0\\d|10|2[0-26-9]|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}",,,,"660234567"],[,,"80(?:02[28]|9\\d\\d)\\d\\d",,,,"8002222",,,[7]],[,,"90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",,,,"9002222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LI",423,"00","0",,,"0|(1001)",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[237-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"870(?:28|87)\\d\\d",,,,"8702812",,,[7]],,,[,,"697(?:42|56|[78]\\d)\\d{4}",,,,"697861234",,,[9]]],LK:[,[,,"[1-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}
304",,,,"112345678",,,,[7]],[,,"7(?:[0-25-8]\\d|4[01])\\d{6}",,,,"712345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LK",94,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"1973\\d{5}",,,,"197312345"],,,[,,,,,,,,,[-1]]],LR:[,[,,"(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",,,,,,,[7,8,9]],[,,"(?:2\\d{3}|33333)\\d{4}",,,,"21234567",,,[8,9]],[,,"(?:(?:330|555|(?:77|88)\\d)\\d|4[67])\\d{5}|[56]\\d{6}",,,,"770123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"332(?:02|[34]\\d)\\d{4}",,,,"332021234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LR",231,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LS:[,[,,"(?:[256]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"2\\d{7}",,,,"22123456"],[,,"[56]\\d{7}",,,,"50123456"],[,,"800[256]\\d{4}",,,,"80021234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LS",266,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LT:[,[,,"(?:[3469]\\d|52|[78]0)\\d{6}",,,,,,,[8]],[,,"(?:3[1478]|4[124-6]|52)\\d{6}",,,,"31234567"],[,,"6\\d{7}",,,,"61234567"],[,,"80[02]\\d{5}",,,,"80012345"],[,,"9(?:0[0239]|10)\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,"70[05]\\d{5}",,,,"70012345"],[,,"[89]01\\d{5}",,,,"80123456"],"LT",370,"00","8",,,"[08]",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",,1],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",,1],[,"(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",,1],[,"(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70[67]\\d{5}",,,,"70712345"],,,[,,,,,,,,,[-1]]],LU:[,[,,"35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",,,,,,,[4,5,6,7,8,9,10,11]],[,,"(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}",,,,"27123456"],[,,"6(?:[269][18]|5[158]|7[189]|81)\\d{6}",,,,"628123456",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"90[015]\\d{5}",,,,"90012345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,,,,,,,,[-1]],[,,"20(?:1\\d{5}|[2-689]\\d{1,7})",,,,"20201234",,,[4,5,6,7,8,9,10]],"LU",352,"00",,,,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",,,,[[,"(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LV:[,[,,"(?:[268]\\d|90)\\d{6}",,,,,,,[8]],[,,"6\\d{7}",,,,"63123456"],[,,"2\\d{7}",,,,"21234567"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,"81\\d{6}",,,,"81123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LV",371,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LY:[,[,,"[2-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}",,,,"212345678",,,,[7]],[,,"9[1-6]\\d{7}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LY",218,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MA:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[015-7]\\d|2[02-9]|3[0-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}",,,,"520123456"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0[0-36-8]|6[1267]|7[0-37]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"MA",212,"00","0",,,"0",,,,[[,"(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],[,"(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],[,"(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],[,"(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MC:[,[,,"870\\d{5}|(?:[349]|6\\d)\\d{7}",,,,,,,[8,9]],[,,"(?:870|9[2-47-9]\\d)\\d{5}",,,,"99123456",,,[8]],[,,"4(?:[46]\\d|5[1-9])\\d{5}|(?:3|6\\d)\\d{7}",,,,"612345678"],[,,"90\\d{6}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MC",377,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[39]"]],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[39]"]],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"870\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MD:[,[,,"(?:[235-7]\\d|[89]0)\\d{6}",,,,,,,[8]],[,,"(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}",,,,"22212345"],[,,"562\\d{5}|(?:6\\d|7[16-9])\\d{6}",,,,"62112345"],[,,"800\\d{5}",,,,"80012345"],[,,"90[056]\\d{5}",,,,"90012345"],[,,"808\\d{5}
304",,,,"80812345"],[,,,,,,,,,[-1]],[,,"3[08]\\d{6}",,,,"30123456"],"MD",373,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"803\\d{5}",,,,"80312345"],,,[,,,,,,,,,[-1]]],ME:[,[,,"(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",,,,,,,[8,9],[6]],[,,"(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",,,,"30234567",,,[8],[6]],[,,"6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",,,,"67622901",,,[8]],[,,"80(?:[0-2578]|9\\d)\\d{5}",,,,"80080002"],[,,"9(?:4[1568]|5[178])\\d{5}",,,,"94515151",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"78[1-49]\\d{5}",,,,"78108780",,,[8]],"ME",382,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"77[1-9]\\d{5}",,,,"77273012",,,[8]],,,[,,,,,,,,,[-1]]],MF:[,[,,"(?:590|69\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[29]|3[0-5]))\\d{4}",,,,"690001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"MF",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MG:[,[,,"[23]\\d{8}",,,,,,,[9],[7]],[,,"2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[35]|8[268]|9[245])\\d{5}",,,,"202123456",,,,[7]],[,,"3[2-49]\\d{7}",,,,"321234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"22\\d{7}",,,,"221234567"],"MG",261,"00","0",,,"0|([24-9]\\d{6})$","20$1",,,[[,"(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MH:[,[,,"329\\d{4}|(?:[256]\\d|45)\\d{5}",,,,,,,[7]],[,,"(?:247|528|625)\\d{4}",,,,"2471234"],[,,"(?:(?:23|54)5|329|45[56])\\d{4}",,,,"2351234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"635\\d{4}",,,,"6351234"],"MH",692,"011","1",,,"1",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MK:[,[,,"[2-578]\\d{7}",,,,,,,[8],[6,7]],[,,"(?:2(?:[23]\\d|5[0-24578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}",,,,"22012345",,,,[6,7]],[,,"7(?:4(?:60\\d|747)|94(?:[01]\\d|2[0-4]))\\d{3}|7(?:[0-25-8]\\d|3[2-4]|42|9[23])\\d{5}",,,,"72345678"],[,,"800\\d{5}",,,,"80012345"],[,,"5[02-9]\\d{6}",,,,"50012345"],[,,"8(?:0[1-9]|[1-9]\\d)\\d{5}",,,,"80123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MK",389,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],[,"(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ML:[,[,,"[24-9]\\d{7}",,,,,,,[8]],[,,"2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-39]))\\d{5}",,,,"20212345"],[,,"2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[01]|[679]\\d|8[239])\\d{6}",,,,"65012345"],[,,"80\\d{6}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ML",223,"00",,,,,,,,[[,"(\\d{4})","$1",["67[057-9]|74[045]","67(?:0[09]|[59]9|77|8[89])|74(?:0[02]|44|55)"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[,,,,,,,,,[-1]],,,[,,"80\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MM:[,[,,"1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",,,,,,,[6,7,8,9,10],[5]],[,,"(?:1(?:(?:2\\d|3[56]|[89][0-6])\\d|4(?:2[2-469]|39|46|6[25]|7[0-3]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|2[246]|39|46|62|7[0-3]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[0-3])|3(?:20\\d|4(?:70|83)|56)|420\\d|5470)|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|247[23]|3(?:20\\d|470)|4(?:2[04]\\d|47[23])|7(?:(?:3\\d|8[01459])\\d|4(?:39|60|7[013]))))\\d{4}|5(?:2(?:2\\d{5,6}|47[023]\\d{4})|(?:347[23]|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[0-2])|8(?:20\\d|47[02])|9(?:20\\d|47[01]))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:2\\d|4[1-9]|51)\\d|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|[35]2\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",,,,"1234567",,,[6,7,8,9],[5]],[,,"(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",,,,"92123456",,,[7,8,9,10]],[,,"80080(?:[01][1-9]|2\\d)\\d{3}",,,,"8008001234",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"1333\\d{4}|[12]468\\d{4}",,,,"13331234",,,[8]],"MM",95,"00","0",,,"0",,,,[[,"(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],[,"(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],[,"(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MN:[,[,,"[12]\\d{7,9}|[57-9]\\d{7}",,,,,,,[8,9,10],[4,5,6]],[,,"[12]2[1-3]\\d{5,6}|7(?:0[0-5]\\d|128)\\d{4}|(?:[12](?:1|27)|5[368])\\d{6}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}",,,,"53123456",,,,[4,5,6]],[,,"(?:83[01]|920)\\d{5}|(?:5[05]|8[05689]|9[013-9])\\d{6}",,,,"88123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"712[0-79]\\d{4}|7(?:1[013-9]|[5-8]\\d)\\d{5}",,,,"75123456",,,[8]],"MN",976,"001","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],[,"(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],[,"(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],[,"(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],[,"(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MO:[,[,,"(?:28|[68]\\d)\\d{6}",,,,,,,[8]],[,,"(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",,,,"28212345"],[,,"6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:[02][5-9]|[146-8]\\d|[35][0-4]))\\d{4}",,,,"66123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MO",853,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[268]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MP:[,[,,"[58]\\d{9}|(?:67|90)0\\d{7}",,,,,,,[10],[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}
304",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MP",1,"011","1",,,"1|([2-9]\\d{6})$","670$1",,1,,,[,,,,,,,,,[-1]],,"670",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MQ:[,[,,"69\\d{7}|(?:59|97)6\\d{6}",,,,,,,[9]],[,,"596(?:0[0-7]|10|2[7-9]|3[05-9]|4[0-46-8]|[5-7]\\d|8[09]|9[4-8])\\d{4}",,,,"596301234"],[,,"69(?:6(?:[0-47-9]\\d|5[0-6]|6[0-4])|727)\\d{4}",,,,"696201234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976(?:6[1-9]|7[0-367])\\d{4}",,,,"976612345"],"MQ",596,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MR:[,[,,"(?:[2-4]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"(?:25[08]|35\\d|45[1-7])\\d{5}",,,,"35123456"],[,,"[2-4][0-46-9]\\d{6}",,,,"22123456"],[,,"800\\d{5}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MR",222,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MS:[,[,,"(?:[58]\\d\\d|664|900)\\d{7}",,,,,,,[10],[7]],[,,"6644(?:1[0-3]|91)\\d{4}",,,,"6644912345",,,,[7]],[,,"664(?:3(?:49|9[1-6])|49[2-6])\\d{4}",,,,"6644923456",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MS",1,"011","1",,,"1|([34]\\d{6})$","664$1",,,,,[,,,,,,,,,[-1]],,"664",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MT:[,[,,"3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"2(?:0(?:[19]\\d|3[1-4]|6[059])|[1-357]\\d\\d)\\d{4}",,,,"21001234"],[,,"(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}",,,,"96961234"],[,,"800[3467]\\d{4}",,,,"80071234"],[,,"5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}",,,,"50037123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3550\\d{4}",,,,"35501234"],"MT",356,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],,[,,"7117\\d{4}",,,,"71171234"],,,[,,,,,,,,,[-1]],[,,"501\\d{5}",,,,"50112345"],,,[,,,,,,,,,[-1]]],MU:[,[,,"(?:[2-468]|5\\d)\\d{6}",,,,,,,[7,8]],[,,"(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-7])|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",,,,"54480123"],[,,"5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|5(?:2[589]|4[3-589]|7\\d|8[0-689]|9[0-8])\\d{5}",,,,"52512345",,,[8]],[,,"80[0-2]\\d{4}",,,,"8001234",,,[7]],[,,"30\\d{5}",,,,"3012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3(?:20|9\\d)\\d{4}",,,,"3201234",,,[7]],"MU",230,"0(?:0|[24-7]0|3[03])",,,,,,"020",,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],[,"(\\d{4})(\\d{4})","$1 $2",["5"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MV:[,[,,"(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",,,,,,,[7,10]],[,,"(?:3(?:0[0-3]|3[0-59])|6(?:[57][02468]|6[024-68]|8[024689]))\\d{4}",,,,"6701234",,,[7]],[,,"46[46]\\d{4}|(?:7\\d|9[13-9])\\d{5}",,,,"7712345",,,[7]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MV",960,"0(?:0|19)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"4[05]0\\d{4}",,,,"4001234",,,[7]],,,[,,,,,,,,,[-1]]],MW:[,[,,"1\\d{6}(?:\\d{2})?|(?:[23]1|77|88|99)\\d{7}",,,,,,,[7,9]],[,,"(?:1[2-9]|21\\d\\d)\\d{5}",,,,"1234567"],[,,"111\\d{6}|(?:31|77|88|99)\\d{7}",,,,"991234567",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MW",265,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MX:[,[,,"(?:1(?:[01467]\\d|[2359][1-9]|8[1-79])|[2-9]\\d)\\d{8}",,,,,,,[10,11],[7,8]],[,,"(?:2(?:0[01]|2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-
30457-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))\\d{7}",,,,"2001234567",,,[10],[7,8]],[,,"(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))\\d{7}",,,,"12221234567",,,,[7,8]],[,,"8(?:00|88)\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,"300\\d{7}",,,,"3001234567",,,[10]],[,,"500\\d{7}",,,,"5001234567",,,[10]],[,,,,,,,,,[-1]],"MX",52,"0[09]","01",,,"0(?:[12]|4[45])|1",,"00",,[[,"(\\d{5})","$1",["53"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MY:[,[,,"1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",,,,"323856789",,,[8,9],[6,7]],[,,"1(?:4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[01]\\d|2[2-6]))|(?:(?:[269]|59)\\d|[37][1-9]|4[235-9])\\d|8(?:1[23]|[236]\\d|4[06]|5[7-9]|7[016-9]|8[01]|9[0-8]))\\d{5}",,,,"123456789",,,[9,10]],[,,"1[378]00\\d{6}",,,,"1300123456",,,[10]],[,,"1600\\d{6}",,,,"1600123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",,,,"1546012345",,,[10]],"MY",60,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],[,"(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MZ:[,[,,"(?:2|8\\d)\\d{7}",,,,,,,[8,9]],[,,"2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",,,,"21123456",,,[8]],[,,"8[2-79]\\d{7}",,,,"821234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MZ",258,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NA:[,[,,"[68]\\d{7,8}",,,,,,,[8,9]],[,,"64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}",,,,"61221234"],[,,"(?:60|8[1245])\\d{7}",,,,"811234567",,,[9]],[,,"80\\d{7}",,,,"800123456",,,[9]],[,,"8701\\d{5}",,,,"870123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8(?:3\\d\\d|86)\\d{5}",,,,"88612345"],"NA",264,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NC:[,[,,"[2-57-9]\\d{5}",,,,,,,[6]],[,,"(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}",,,,"201234"],[,,"(?:5[0-4]|[79]\\d|8[0-79])\\d{4}",,,,"751234"],[,,,,,,,,,[-1]],[,,"36\\d{4}",,,,"366711"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NC",687,"00",,,,,,,,[[,"(\\d{3})","$1",["5[6-8]"]],[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NE:[,[,,"[027-9]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145
304]|5[14]|6[14-68]|7[169]|88))\\d{4}",,,,"20201234"],[,,"(?:23|7[04]|[89]\\d)\\d{6}",,,,"93123456"],[,,"08\\d{6}",,,,"08123456"],[,,"09\\d{6}",,,,"09123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NE",227,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NF:[,[,,"[13]\\d{5}",,,,,,,[6],[5]],[,,"(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}",,,,"106609",,,,[5]],[,,"(?:14|3[58])\\d{4}",,,,"381234",,,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NF",672,"00",,,,"([0-258]\\d{4})$","3$1",,,[[,"(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],[,"(\\d)(\\d{5})","$1 $2",["[13]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NG:[,[,,"(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",,,,,,,[7,8,10,11,12,13,14],[5,6]],[,,"(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}",,,,"18040123",,,[7,8],[5,6]],[,,"(?:702[0-24-9]|8(?:01|19)[01])\\d{6}|(?:70[13-689]|8(?:0[2-9]|1[0-8])|9(?:0[1-9]|15))\\d{7}",,,,"8021234567",,,[10]],[,,"800\\d{7,11}",,,,"80017591759",,,[10,11,12,13,14]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NG",234,"009","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],[,"(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"700\\d{7,11}",,,,"7001234567",,,[10,11,12,13,14]],,,[,,,,,,,,,[-1]]],NI:[,[,,"(?:1800|[25-8]\\d{3})\\d{4}",,,,,,,[8]],[,,"2\\d{7}",,,,"21234567"],[,,"(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}",,,,"81234567"],[,,"1800\\d{4}",,,,"18001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NI",505,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NL:[,[,,"(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",,,,,,,[5,6,7,8,9,10]],[,,"(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",,,,"101234567",,,[9]],[,,"6[1-58]\\d{7}",,,,"612345678",,,[9]],[,,"800\\d{4,7}",,,,"8001234",,,[7,8,9,10]],[,,"90[069]\\d{4,7}",,,,"9061234",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:85|91)\\d{7}",,,,"851234567",,,[9]],"NL",31,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["1[238]|[34]"]],[,"(\\d{2})(\\d{3,4})","$1 $2",["14"]],[,"(\\d{6})","$1",["1"]],[,"(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],[,"(\\d)(\\d{8})","$1 $2",["6"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],[[,"(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],[,"(\\d)(\\d{8})","$1 $2",["6"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],[,,"66\\d{7}",,,,"662345678",,,[9]],,,[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)\\d",,,,,,,[5,6]],[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",,,,"14020",,,[5,6,9]],,,[,,,,,,,,,[-1]]],NO:[,[,,"(?:0|[2-9]\\d{3})\\d{4}",,,,,,,[5,8]],[,,"(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}",,,,"21234567",,,[8]],[,,"(?:4[015-8]|5[89]|9\\d)\\d{6}",,,,"40612345",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"NO",47,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|5[89]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],,[,,,,,,,,,[-1]],1,"[02-689]|7[0-8]",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]], 305NP:[,[,,"9\\d{9}|[1-9]\\d{7}",,,,,,,[8,10],[6,7]],[,,"(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",,,,"14567890",,,[8],[6,7]],[,,"9(?:6[0-3]|7[245]|8[0-24-68])\\d{7}",,,,"9841234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NP",977,"00","0",,,"0",,,,[[,"(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],[,"(\\d{2})(\\d{6})","$1-$2",["[1-8]|9(?:[1-579]|6[2-6])"],"0$1"],[,"(\\d{3})(\\d{7})","$1-$2",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NR:[,[,,"(?:444|
305(?:55|8\\d)\\d|666)\\d{4}",,,,,,,[7]],[,,"444\\d{4}",,,,"4441234"],[,,"(?:55[3-9]|666|8\\d\\d)\\d{4}",,,,"5551234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NR",674,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NU:[,[,,"(?:[47]|888\\d)\\d{3}",,,,,,,[4,7]],[,,"[47]\\d{3}",,,,"7012",,,[4]],[,,"888[4-9]\\d{3}",,,,"8884012",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NU",683,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NZ:[,[,,"[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",,,,,,,[5,6,7,8,9,10]],[,,"24099\\d{3}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",,,,"32345678",,,[8],[7]],[,,"2[0-27-9]\\d{7,8}|21\\d{6}",,,,"211234567",,,[8,9,10]],[,,"508\\d{6,7}|80\\d{6,8}",,,,"800123456",,,[8,9,10]],[,,"(?:11\\d{5}|50(?:0[08]|30|66|77))\\d{3}|90\\d{6,8}",,,,"900123456",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,"70\\d{7}",,,,"701234567",,,[9]],[,,,,,,,,,[-1]],"NZ",64,"0(?:0|161)","0",,,"0",,"00",,[[,"(\\d{2})(\\d{3,8})","$1 $2",["83"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[0367]|[89]0"],"0$1"],[,"(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],,[,,"[28]6\\d{6,7}",,,,"26123456",,,[8,9]],,,[,,,,,,,,,[-1]],[,,"83\\d{3,8}",,,,"83012378"],,,[,,,,,,,,,[-1]]],OM:[,[,,"(?:1505|[279]\\d{3}|500)\\d{4}|8007\\d{4,5}",,,,,,,[7,8,9]],[,,"2[2-6]\\d{6}",,,,"23123456",,,[8]],[,,"(?:1505|90[1-9]\\d)\\d{4}|(?:7[1289]|9[1-9])\\d{6}",,,,"92123456",,,[8]],[,,"500\\d{4}|8007\\d{4,5}",,,,"80071234"],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"OM",968,"00",,,,,,,,[[,"(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],[,"(\\d{2})(\\d{6})","$1 $2",["2"]],[,"(\\d{4})(\\d{4})","$1 $2",["[179]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PA:[,[,,"8\\d{9}|[68]\\d{7}|[1-57-9]\\d{6}",,,,,,,[7,8,10]],[,,"(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[58]|7[0167]|8[258]|9[139])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[026-9])|3(?:[089]\\d|1[014-7]|2[0-5]|33|4[0-79]|55|6[068]|7[03-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[056]|7[0-24-9]|8[6-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",,,,"2001234",,,[7]],[,,"(?:1[16]1|21[89]|6(?:[02-9]\\d|1[0-7])\\d|8(?:1[01]|7[23]))\\d{4}",,,,"61234567",,,[7,8]],[,,"800\\d{4}(?:\\d(?:\\d{2})?)?",,,,"8001234"],[,,"(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",,,,"8601234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PA",507,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],[,"(\\d{4})(\\d{4})","$1-$2",["[68]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PE:[,[,,"(?:[14-8]|9\\d)\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:(?:4[34]|5[14])[0-8]\\d|7(?:173|3[0-8]\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",,,,"11234567",,,[8],[6,7]],[,,"9\\d{8}",,,,"912345678",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"805\\d{5}",,,,"80512345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,"80[24]\\d{5}",,,,"80212345",,,[8]],[,,,,,,,,,[-1]],"PE",51,"19(?:1[124]|77|90)00","0"," Anexo ",,"0",,,,[[,"(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],[,"(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],[,"(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PF:[,[,,"[48]\\d{7}|4\\d{5}",,,,,,,[6,8]],[,,"4(?:0[4-689]|9[4-68])\\d{5}",,,,"40412345",,,[8]],[,,"8[7-9]\\d{6}",,,,"87123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"499\\d{5}",,,,"49901234",,,[8]],"PF",689,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[48]"]]],,[,,,,,,,,,[-1]],,,[,,"44\\d{4}",,,,,,,[6]],[,,"44\\d{4}",,,,"440123",,,[6]],,,[,,,,,,,,,[-1]]],PG:[,[,,"(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",,,,,,,[7,8]],[,,"(?:64[1-9]|7730|85[02-46-9])\\d{4}|(?:3[0-2]|4[257]|5[34]|77[0-24]|9[78])\\d{5}",,,,"3123456"],[,,"77(?:3[1-9]|[5-9]\\d)\\d{4}|(?:7[0-689]|8[18])\\d{6}",,,,"70123456",,,[8]],[,,"180\\d{4}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"2(?:0[0-47]|7[568])\\d{4}",,,,"2751234",,,[7]],"PG",675,"00|140[1-3]",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],[,"(\\d{4})(\\d{4})","$1 $2",["[78]"]]],,[,,"27[01]\\d{4}",,,,"2700123",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PH:[,[,,"1800\\d{7,9}|(?:2|[89]\\d{4})\\d{5}|[2-8]\\d{8}|[28]\\d{7}",,,,,,,[6,8,9,10,11,12,13],[4,5,7]],[,,"(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|2\\d{5}(?:\\d{2})?|8[2-8]\\d{7}",,,,"21234567",,,[6,8,9,10],[4,5,7]],[,,"(?:81[37]|9(?:0[5-9]|1[0-24-9]|2[0-35-9]|[35]\\d|4[235-9]|6[0-35-8]|7[1-9]|8[189]|9[4-9]))\\d{7}",,,,"9051234567",,,[10]],[,,"1800\\d{7,9}",,,,"180012345678",,,[11,12,13]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PH",63,"00","0",,,"0",,,,[[,"(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],[,"(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],[,"(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PK:[,[,,"122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",,,,,,,[8,9,10,11,12],[5,6,7]],[,,"(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}",,,,"2123456789",,,[9,10],[5,6,7,8]],[,,"3(?:[014]\\d|2[0-5]|3[0-7]|55|64)\\d{7}",,,,"3012345678",,,[10]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,"122\\d{6}",,,,"122044444",,,[9]],[,,,,,,,,,[-1]],"PK",92,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["[89]0"],"0$1"],[,"(\\d{4})(\\d{5})","$1 $2",["1"]],[,"(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],[,"(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],[,"(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],[,"(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",,,,"21111825888",,,[11,12]],,,[,,,,,,,,,[-1]]],PL:[,[,,"6\\d{5}
305(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",,,,,,,[6,7,8,9,10]],[,,"47\\d{7}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",,,,"123456789",,,[7,9]],[,,"(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",,,,"512345678",,,[9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"70[01346-8]\\d{6}",,,,"701234567",,,[9]],[,,"801\\d{6}",,,,"801234567",,,[9]],[,,,,,,,,,[-1]],[,,"39\\d{7}",,,,"391234567",,,[9]],"PL",48,"00",,,,,,,,[[,"(\\d{5})","$1",["19"]],[,"(\\d{3})(\\d{3})","$1 $2",["11|64"]],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]],,[,,"64\\d{4,7}",,,,"641234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]],[,,"804\\d{6}",,,,"804123456",,,[9]],,,[,,,,,,,,,[-1]]],PM:[,[,,"[45]\\d{5}",,,,,,,[6]],[,,"(?:4[1-3]|50)\\d{4}",,,,"430123"],[,,"(?:4[02-4]|5[05])\\d{4}",,,,"551234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PM",508,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PR:[,[,,"(?:[589]\\d\\d|787)\\d{7}",,,,,,,[10],[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"PR",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,"787|939",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PS:[,[,,"[2489]2\\d{6}|(?:1\\d|5)\\d{8}",,,,,,,[8,9,10],[7]],[,,"(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",,,,"22234567",,,[8],[7]],[,,"5[69]\\d{7}",,,,"599123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,,,,,,,,[-1]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PS",970,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PT:[,[,,"(?:[26-9]\\d|30)\\d{7}",,,,,,,[9]],[,,"2(?:[12]\\d|[35][1-689]|4[1-59]|6[1-35689]|7[1-9]|8[1-69]|9[1256])\\d{6}",,,,"212345678"],[,,"6[356]9230\\d{3}|(?:6[036]93|9(?:[1-36]\\d\\d|480))\\d{5}",,,,"912345678"],[,,"80[02]\\d{6}",,,,"800123456"],[,,"(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}",,,,"760123456"],[,,"80(?:8\\d|9[1579])\\d{5}",,,,"808123456"],[,,"884[0-4689]\\d{5}",,,,"884123456"],[,,"30\\d{7}",,,,"301234567"],"PT",351,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70(?:7\\d|8[17])\\d{5}",,,,"707123456"],,,[,,"600\\d{6}",,,,"600110000"]],PW:[,[,,"(?:[24-8]\\d\\d|345|900)\\d{4}",,,,,,,[7]],[,,"(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}",,,,"2771234"],[,,"(?:45[0-5]|6[2-4689]0|(?:77|88)\\d)\\d{4}",,,,"6201234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PW",680,"01[12]",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PY:[,[,,"59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",,,,,,,[6,7,8,9,10,11],[5]],[,,"(?:[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:2[4-68]|[4-68]\\d|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}",,,,"212345678",,,[7,8,9],[5,6]],[,,"9(?:51|6[129]|[78][1-6]|9[1-5])\\d{6}",,,,"961456789",,,[9]],[,,"9800\\d{5,7}",,,,"98000123456",,,[9,10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8700[0-4]\\d{4}",,,,"870012345",,,[9]],"PY",595,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],[,"(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],[,"(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],[,"(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"[2-9]0\\d{4,7}",,,,"201234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]]],QA:[,[,,"[2-7]\\d{7}|(?:2\\d\\d|800)\\d{4}",,,,,,,[7,8]],[,,"(?:23|4[04])\\d{6}",,,,"44123456",,,[8]],[,,"(?:28|[35-7]\\d)\\d{6}",,,,"33123456",,,[8]],[,,"800\\d{4}",,,,"8001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"QA",974,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]],,[,,"2(?:[12]\\d|61)\\d{4}",,,,"2123456",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RE:[,[,,"9769\\d{5}
305|(?:26|[68]\\d)\\d{7}",,,,,,,[9]],[,,"26(?:2\\d\\d|30[01])\\d{4}",,,,"262161234"],[,,"(?:69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[05]|6[0-36]|7[0-27]|8[0-8]|9[0-479]))|9769\\d)\\d{4}",,,,"692123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89[1-37-9]\\d{6}",,,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RE",262,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],,[,,,,,,,,,[-1]],1,"26[23]|69|[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RO:[,[,,"(?:[237]\\d|[89]0)\\d{7}|[23]\\d{5}",,,,,,,[6,9]],[,,"[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d",,,,"211234567"],[,,"7[01]20\\d{5}|7(?:0[013-9]|1[01]|[2-7]\\d|8[03-8]|9[09])\\d{6}",,,,"712034567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[0136]\\d{6}",,,,"900123456",,,[9]],[,,"801\\d{6}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RO",40,"00","0"," int ",,"0",,,,[[,"(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],[,"(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:37\\d|80[578])\\d{6}",,,,"372123456",,,[9]],,,[,,,,,,,,,[-1]]],RS:[,[,,"38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",,,,,,,[6,7,8,9,10,11,12],[4,5]],[,,"(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",,,,"10234567",,,[7,8,9,10,11,12],[4,5,6]],[,,"6(?:[0-689]|7\\d)\\d{6,7}",,,,"601234567",,,[8,9,10]],[,,"800\\d{3,9}",,,,"80012345"],[,,"(?:78\\d|90[0169])\\d{3,7}",,,,"90012345",,,[6,7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RS",381,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],[,"(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7[06]\\d{4,10}",,,,"700123456"],,,[,,,,,,,,,[-1]]],RU:[,[,,"[347-9]\\d{9}",,,,,,,[10],[7]],[,,"(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\d{7}",,,,"3011234567",,,,[7]],[,,"9\\d{9}",,,,"9123456789"],[,,"80[04]\\d{7}",,,,"8001234567"],[,,"80[39]\\d{7}",,,,"8091234567"],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567"],[,,,,,,,,,[-1]],"RU",7,"810","8",,,"8",,"8~10",,[[,"(\\d{3})(\\d{2})(\\d{2})","$1-$2-$3",["[0-79]"]],[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",,1],[,"(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[3489]"],"8 ($1)",,1]],[[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",,1],[,"(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[3489]"],"8 ($1)",,1]],[,,,,,,,,,[-1]],1,"3[04-689]|[489]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RW:[,[,,"(?:06|[27]\\d\\d|[89]00)\\d{6}",,,,,,,[8,9]],[,,"(?:06|2[23568]\\d)\\d{6}",,,,"250123456"],[,,"7[238]\\d{7}",,,,"720123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900\\d{6}",,,,"900123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RW",250,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SA:[,[,,"92\\d{7}|(?:[15]|8\\d)\\d{8}",,,,,,,[9,10],[7]],[,,"1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",,,,"112345678",,,[9],[7]],[,,"5(?:[013-689]\\d|7[0-36-8])\\d{6}",,,,"512345678",,,[9]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"925\\d{6}",,,,"925012345",,,[9]],[,,"920\\d{6}",,,,"920012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SA",966,"00","0",,,"0",,,,[[,"(\\d{4})(\\d{5})","$1 $2",["9"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"811\\d{7}",,,,"8110123456",,,[10]],,,[,,,,,,,,,[-1]]],SB:[,[,,"(?:[1-6]|[7-9]\\d\\d)\\d{4}",,,,,,,[5,7]],[,,"(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",,,,"40123",,,[5]],[,,"48\\d{3}|(?:(?:7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}",,,,"7421234"],[,,"1[38]\\d{3}",,,,"18123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[12]\\d{3}",,,,"51123",,,[5]],"SB",677,"0[01]",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SC:[,[,,"8000\\d{3}|(?:[249]\\d|64)\\d{5}",,,,,,,[7]],[,,"4[2-46]\\d{5}",,,,"4217123"],[,,"2[5-8]\\d{5}",,,,"2510123"],[,,"8000\\d{3}",,,,"8000000"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"971\\d{4}|(?:64|95)\\d{5}",,,,"6412345"],"SC",248,"010|0[0-2]",,,,,,"00",,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SD:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1(?:5\\d|8[35-7])\\d{6}",,,,"153123456"],[,,"(?:1[0-2]|9[0-3569])\\d{7}",,,,"911231234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SD",249,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SE:[,[,,"(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",,,,,,,[6,7,8,9,10,12]],[,,"(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",,,,"8123456",,,[7,8,9]],[,,"7[02369]\\d{7}",,,,"701234567",,,[9]],[,,"20\\d{4,7}",,,,"20123456",,,[6,7,8,9]],[,,"649\\d{6}|9(?:00|39|44)[1-8]\\d{3,6}",,,,"9001234567",,,[7,8,9,10]],[,,"77[0-7]\\d{6}",,,,"771234567",,,[9]],[,,"75[1-8]\\d{6}",,,,"751234567",,,[9]],[,,,,,,,,,[-1]],"SE",46,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1"],[,"(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44)"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1"],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1"],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1"],[,"(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1"]],[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1 $2 $3",["20"]],[,"(\\d{3})(\\d{4})","$1 $2",["9(?:00|39|44)"]],[,"(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"]],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1 $2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"]],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1 $2 $3",["9(?:00|39|44)"]],[,"(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["10|7"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["9"]],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"]]],[,,"74[02-9]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"10[1-8]\\d{6}",,,,"102345678",,,[9]],,,[,,"(?:25[245]|67[3-68])\\d{9}",,,,"254123456789",,,[12]]],SG:[,[,,"(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",,,,,,,[8,10,11]],[,,"662[0-24-9]\\d{4}|6(?:[1-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",,,,"61234567",,,[8]],[,,"(?:8(?:0(?:1[0-8]|2[7-9]|3[01])|[1-8]\\d\\d|9(?:[0-24]\\d|3[0-489]|5[0-2]))|9[0-8]\\d\\d)\\d{4}",,,,"81234567",,,[8]],[,,"(?:18|8)00\\d{7}",,,,"18001234567",,,[10,11]],[,,"1900\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:3[12]\\d|666)\\d{5}",,,,"31234567",,,[8]],"SG",65,"0[0-3]\\d",,,,,,,,[[,"(\\d{4,5})","$1",["1[013-9]|77","1(?:[013-8]|9(?:0[1-9]|[1-9]))|77"]],[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-3]|[1-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],[[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-3]|[1-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7000\\d{7}",,,,"70001234567",,,[11]],,,[,,,,,,,,,[-1]]],SH:[,[,,"(?:[256]\\d|8)\\d{3}",,,,,,,[4,5]],[,,"2(?:[0-57-9]\\d|6[4-9])\\d\\d",,,,"22158"],[,,"[56]\\d{4}",,,,"51234",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"262\\d\\d",,,,"26212",,,[5]],"SH",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],1,"[256]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SI:[,[,,"[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",,,,,,,[5,6,7,8]],[,,"(?:[1-357][2-8]|4[24-8])\\d{6}",,,,"12345678",,,[8],[7]],[,,"65(?:1\\d|55|[67]0)\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",,,,"31234567",,,[8]],[,,"80\\d{4,6}",,,,"80123456",,,[6,7,8]],[,,"89[1-3]\\d{2,5}|90\\d{4,6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-489])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",,,,"59012345",,,[8]],"SI",386,"00|10(?:22|66|88|99)","0",,,"0",,"00",,[[,"(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],[,"(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],[,"(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SJ:[,[,,"0\\d{4}|(?:[4589]\\d|79)\\d{6}",,,,,,,[5,8]],[,,"79\\d{6}",,,,"79123456",,,[8]],[,,"(?:4[015-8]|5[89]|9\\d)\\d{6}",,,,"41234567",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"SJ",47,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"79",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],SK:[,[,,"[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",,,,,,,[6,7,9]],[,,"(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d",,,,"221234567"],[,,"909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",,,,"912123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:00|[78]\\d)\\d{6}",,,,"900123456",,,[9]],[,,"8[5-9]\\d{7}",,,,"850123456",,,[9]],[,,,,,,,,,[-1]],[,,"6(?:02|5[0-4]|9[0-6])\\d{6}",,,,"690123456",,,[9]],"SK",421,"00","0",,,"0",,,,[[,"(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],[,"(\\d{4})(\\d{3})","$1 $2",["909","9090"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],[[,"(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],[,,"9090\\d{3}",,,,"9090123",,,[7]],,,[,,"9090\\d{3}|(?:602|8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}",,,,,,,[7,9]],[,,"96\\d{7}",,,,"961234567",,,[9]],,,[,,,,,,,,,[-1]]],SL:[,[,,"(?:[2378]\\d|66|99)\\d{6}",,,,,,,[8],[6]],[,,"22[2-4][2-9]\\d{4}",,,,"22221234",,,,[6]],[,,"(?:25|3[013-5]|66|7[4-9]|8[08]|99)\\d{6}",,,,"25123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SL",232,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SM:[,[,,"(?:0549|[5-7]\\d)\\d{6}",,,,,,,[8,10],[6]],[,,"0549(?:8[0157-9]|9\\d)\\d{4}",,,,"0549886377",,,[10],[6]],[,,"6[16]\\d{6}",,,,"66661212",,,[8]],[,,,,,,,,,[-1]],[,,"7[178]\\d{6}",,,,"71123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[158]\\d{6}",,,,"58001110",,,[8]],"SM",378,"00",,,,"([89]\\d{5})$","0549$1",,,[[,"(\\d{6})","$1",["[89]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SN:[,[,,"(?:[378]\\d{4}|93330)\\d{4}",,,,,,,[9]],[,,"3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}
305",,,,"301012345"],[,,"7(?:[06-8]\\d|21|90)\\d{6}",,,,"701234567"],[,,"800\\d{6}",,,,"800123456"],[,,"88[4689]\\d{6}",,,,"884123456"],[,,"81[02468]\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,"93330\\d{4}|3(?:392|9[01]\\d)\\d{5}",,,,"933301234"],"SN",221,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SO:[,[,,"[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",,,,,,,[6,7,8,9]],[,,"(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",,,,"4012345",,,[6,7]],[,,"28\\d{5}|(?:6[1-9]|79)\\d{6,7}|(?:15|24|(?:3[59]|4[89]|8[08])\\d|60|7[1-8]|9(?:0\\d|[2-9]))\\d{6}",,,,"71123456",,,[7,8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SO",252,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{4})","$1 $2",["8[125]"]],[,"(\\d{6})","$1",["[134]"]],[,"(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],[,"(\\d)(\\d{7})","$1 $2",["24|[67]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],[,"(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[1-35-9]|9[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SR:[,[,,"(?:[2-5]|68|[78]\\d)\\d{5}",,,,,,,[6,7]],[,,"(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}",,,,"211234"],[,,"(?:7[124-7]|8[124-9])\\d{5}",,,,"7412345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"56\\d{4}",,,,"561234",,,[6]],"SR",597,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],[,"(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],[,"(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SS:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1[89]\\d{7}",,,,"181234567"],[,,"(?:12|9[12579])\\d{7}",,,,"977123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SS",211,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ST:[,[,,"(?:22|9\\d)\\d{5}",,,,,,,[7]],[,,"22\\d{5}",,,,"2221234"],[,,"900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}",,,,"9812345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ST",239,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SV:[,[,,"[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",,,,,,,[7,8,11]],[,,"2(?:[1-6]\\d{3}|[79]90[034]|890[0245])\\d{3}",,,,"21234567",,,[8]],[,,"66(?:[02-9]\\d\\d|1(?:[02-9]\\d|16))\\d{3}|(?:6[0-57-9]|7\\d)\\d{6}",,,,"70123456",,,[8]],[,,"800\\d{4}(?:\\d{4})?",,,,"8001234",,,[7,11]],[,,"900\\d{4}(?:\\d{4})?",,,,"9001234",,,[7,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SV",503,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[89]"]],[,"(\\d{4})(\\d{4})","$1 $2",["[267]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SX:[,[,,"7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"7215(?:4[2-8]|8[239]|9[056])\\d{4}",,,,"7215425678",,,,[7]],[,,"7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}",,,,"7215205678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"SX",1,"011","1",,,"1|(5\\d{6})$","721$1",,,,,[,,,,,,,,,[-1]],,"721",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]], 306SY:[,[,,"[1-39]\\d{8}|[1-5]\\d{7}",,,,,,,[8,9],[6,7]],[,,"21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}",,,,"112345678",,,,[6,7]],[,,"9(?:22|[3-589]\\d|6[02-9])\\d{6}",,,,"944567890",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SY",963,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SZ:[,[,,"0800\\d{4}|(?:[237]\\d|900)\\d{6}",,,,,,,[8,9]],[,,"[23][2-5]\\d{6}",,,,"22171234",,,[8]],[,,"7[6-9]\\d{6}",,,,"76123456",,,[8]],[,,"0800\\d{4}",,,,"08001234",,,[8]],[,,"900\\d{6}",,,,"900012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70\\d{6}",,,,"70012345",,,[8]],"SZ",268,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[0237]"]],[,"(\\d{5})(\\d{4})","$1 $2",["9"]]],,[,,,,,,,,,[-1]],,,[,,"0800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TA:[,[,,"8\\d{3}",,,,,,,[4]],[,,"8\\d{3}",,,,"8999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TA",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"8",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TC:[,[,,"(?:[58]\\d\\d|649|900)\\d{7}",,,,,,,[10],[7]],[,,"649(?:266|712|9(?:4\\d|50))\\d{4}",,,,"6497121234",,,,[7]],[,,"649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}",,,,"6492311234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}
306",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"649(?:71[01]|966)\\d{4}",,,,"6497101234",,,,[7]],"TC",1,"011","1",,,"1|([2-479]\\d{6})$","649$1",,,,,[,,,,,,,,,[-1]],,"649",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TD:[,[,,"(?:22|[69]\\d|77)\\d{6}",,,,,,,[8]],[,,"22(?:[37-9]0|5[0-5]|6[89])\\d{4}",,,,"22501234"],[,,"(?:6[023568]|77|9\\d)\\d{6}",,,,"63012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TD",235,"00|16",,,,,,"00",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TG:[,[,,"[279]\\d{7}",,,,,,,[8]],[,,"2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}",,,,"22212345"],[,,"(?:7[09]|9[0-36-9])\\d{6}",,,,"90112345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TG",228,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TH:[,[,,"1\\d{9}|[1689]\\d{8}|[1-57]\\d{7}",,,,,,,[8,9,10]],[,,"(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",,,,"21234567",,,[8]],[,,"(?:14|6[1-6]|[89]\\d)\\d{7}",,,,"812345678",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,"1900\\d{6}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"6[08]\\d{7}",,,,"601234567",,,[9]],"TH",66,"00[1-9]","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TJ:[,[,,"(?:[02]0|11|[3-57-9]\\d)\\d{7}",,,,,,,[9],[3,5,6,7]],[,,"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}",,,,"372123456",,,,[3,5,6,7]],[,,"41[18]\\d{6}|(?:[024]0|11|5[05]|7[07]|88|9\\d)\\d{7}",,,,"917123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TJ",992,"810","8",,,"8",,"8~10",,[[,"(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"],,,1],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"],,,1],[,"(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3"],,,1],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02457-9]|11"],,,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TK:[,[,,"[2-47]\\d{3,6}",,,,,,,[4,5,6,7]],[,,"(?:2[2-4]|[34]\\d)\\d{2,5}",,,,"3101"],[,,"7[2-4]\\d{2,5}",,,,"7290"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TK",690,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TL:[,[,,"7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",,,,,,,[7,8]],[,,"(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",,,,"2112345",,,[7]],[,,"7[2-8]\\d{6}",,,,"77212345",,,[8]],[,,"80\\d{5}",,,,"8012345",,,[7]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,"70\\d{5}",,,,"7012345",,,[7]],[,,,,,,,,,[-1]],"TL",670,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],[,"(\\d{4})(\\d{4})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TM:[,[,,"[1-6]\\d{7}",,,,,,,[8]],[,,"(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}",,,,"12345678"],[,,"6\\d{7}",,,,"66123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TM",993,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],[,"(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],[,"(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TN:[,[,,"[2-57-9]\\d{7}",,,,,,,[8]],[,,"81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}",,,,"30010123"],[,,"3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-7])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}",,,,"20123456"],[,,"8010\\d{4}",,,,"80101234"],[,,"88\\d{6}",,,,"88123456"],[,,"8[12]10\\d{4}",,,,"81101234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TN",216,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TO:[,[,,"(?:0800|[5-8]\\d{3})\\d{3}|[2-8]\\d{4}",,,,,,,[5,7]],[,,"(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",,,,"20123",,,[5]],[,,"6(?:3[02]|8[5-9])\\d{4}|(?:6[09]|7\\d|8[46-9])\\d{5}",,,,"7715123",,,[7]],[,,"0800\\d{3}",,,,"0800222",,,[7]],[,,"55[04]\\d{4}",,,,"5501234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TO",676,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],[,"(\\d{4})(\\d{3})","$1 $2",["0"]],[,"(\\d{3})(\\d{4})","$1 $2",["[5-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TR:[,[,,"4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",,,,,,,[7,10,12,13]],[,,"(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",,,,"2123456789",,,[10]],[,,"56161\\d{5}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}",,,,"5012345678",,,[10]],[,,"800\\d{7}(?:\\d{2,3})?",,,,"8001234567",,,[10,12,13]],[,,"(?:8[89]8|900)\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,"592(?:21[12]|461)\\d{4}",,,,"5922121234",,,[10]],[,,"850\\d{7}",,,,"8500123456",,,[10]],"TR",90,"00","0",,,"0",,,,[[,"(\\d{3})(\\d)(\\d{3})","$1 $2 $3",["444"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[0589]|90"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",,1],[,"(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",,1]],[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[0589]|90"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",,1],[,"(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",,1]],[,,"512\\d{7}",,,,"5123456789",,,[10]],,,[,,"444\\d{4}",,,,,,,[7]],[,,"444\\d{4}",,,,"4441444",,,[7]],,,[,,,,,,,,,[-1]]],TT:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"868(?:2(?:0[13]|1[89]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}",,,,"8682211234",,,,[7]],[,,"868(?:2(?:6[3-9]|[7-9]\\d)|(?:3\\d|4[6-9])\\d|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}",,,,"8682911234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}
306",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"TT",1,"011","1",,,"1|([2-46-8]\\d{6})$","868$1",,,,,[,,,,,,,,,[-1]],,"868",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"868619\\d{4}",,,,"8686191234",,,,[7]]],TV:[,[,,"(?:2|7\\d\\d|90)\\d{4}",,,,,,,[5,6,7]],[,,"2[02-9]\\d{3}",,,,"20123",,,[5]],[,,"(?:7[01]\\d|90)\\d{4}",,,,"901234",,,[6,7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TV",688,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["2"]],[,"(\\d{2})(\\d{4})","$1 $2",["90"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TW:[,[,,"[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",,,,,,,[7,8,9,10,11]],[,,"(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",,,,"221234567",,,[8,9]],[,,"(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",,,,"912345678",,,[9]],[,,"80[0-79]\\d{6}|800\\d{5}",,,,"800123456",,,[8,9]],[,,"20(?:[013-9]\\d\\d|2)\\d{4}",,,,"203123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"99\\d{7}",,,,"990123456",,,[9]],[,,"7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",,,,"7012345678",,,[10,11]],"TW",886,"0(?:0[25-79]|19)","0","#",,"0",,,,[[,"(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],[,"(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"50[0-46-9]\\d{6}",,,,"500123456",,,[9]],,,[,,,,,,,,,[-1]]],TZ:[,[,,"(?:[26-8]\\d|41|90)\\d{7}",,,,,,,[9]],[,,"2[2-8]\\d{7}",,,,"222345678"],[,,"77[2-9]\\d{6}|(?:6[2-9]|7[13-689])\\d{7}",,,,"621234567"],[,,"80[08]\\d{6}",,,,"800123456"],[,,"90\\d{7}",,,,"900123456"],[,,"8(?:40|6[01])\\d{6}",,,,"840123456"],[,,,,,,,,,[-1]],[,,"41\\d{7}",,,,"412345678"],"TZ",255,"00[056]","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"(?:8(?:[04]0|6[01])|90\\d)\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UA:[,[,,"[89]\\d{9}|[3-9]\\d{8}",,,,,,,[9,10],[5,6,7]],[,,"(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",,,,"311234567",,,[9],[5,6,7]],[,,"(?:50|6[36-8]|7[1-3]|9[1-9])\\d{7}",,,,"501234567",,,[9]],[,,"800[1-8]\\d{5,6}",,,,"800123456"],[,,"900[239]\\d{5,6}",,,,"900212345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"89[1-579]\\d{6}",,,,"891234567",,,[9]],"UA",380,"00","0",,,"0",,"0~0",,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],[,"(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UG:[,[,,"800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",,,,,,,[9],[5,6,7]],[,,"20(?:(?:(?:24|81)0|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[0147]\\d|2[5-9]|32|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}",,,,"312345678",,,,[5,6,7]],[,,"7260\\d{5}|7(?:[0157-9]\\d|20|36|4[0-4])\\d{6}",,,,"712345678"],[,,"800[1-3]\\d{5}",,,,"800123456"],[,,"90[1-3]\\d{6}",,,,"901123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UG",256,"00[057]","0",,,"0",,,,[[,"(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],[,"(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],US:[,[,,"[2-9]\\d{9}",,,,,,,[10],[7]],[,,"(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[0179]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[0179]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}
306",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"US",1,"011","1",,,"1",,,1,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-9]"]],[,"(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],,,1]],[[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[2-9]"]]],[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UY:[,[,,"(?:(?:4\\d{3}|9)\\d|80)\\d{5}|[249]\\d{7}",,,,,,,[7,8,10]],[,,"(?:2\\d|4[2-7])\\d{6}",,,,"21231234",,,[8],[7]],[,,"9[1-9]\\d{6}",,,,"94231234",,,[8]],[,,"(?:4\\d{5}|80[05])\\d{4}",,,,"8001234",,,[7,10]],[,,"90[0-8]\\d{4}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UY",598,"0(?:0|1[3-9]\\d)","0"," int. ",,"0",,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["8|90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{4})","$1 $2",["[24]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UZ:[,[,,"55501\\d{4}|(?:33|[679]\\d|88)\\d{7}",,,,,,,[9]],[,,"(?:6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d\\d|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|8\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|6(?:22|3[12457]|4[13-8])|9(?:22|5[1-9])))\\d{5}",,,,"669050123"],[,,"(?:(?:33|88|9[0-57-9])\\d{3}|55501|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UZ",998,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VA:[,[,,"0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",,,,,,,[6,7,8,9,10,11,12]],[,,"06698\\d{1,6}",,,,"0669812345",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[6,9]],[,,"(?:0878\\d\\d|89(?:2|4[5-9]\\d))\\d{3}|89[45][0-4]\\d\\d|(?:1(?:44|6[346])|89(?:5[5-9]|9))\\d{6}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"VA",39,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"06698",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],VC:[,[,,"(?:[58]\\d\\d|784|900)\\d{7}",,,,,,,[10],[7]],[,,"784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}",,,,"7842661234",,,,[7]],[,,"784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}",,,,"7844301234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}
306",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VC",1,"011","1",,,"1|([2-7]\\d{6})$","784$1",,,,,[,,,,,,,,,[-1]],,"784",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VE:[,[,,"[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",,,,,,,[10],[7]],[,,"(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}",,,,"2121234567",,,,[7]],[,,"4(?:1[24-8]|2[46])\\d{7}",,,,"4121234567"],[,,"800\\d{7}",,,,"8001234567"],[,,"90[01]\\d{7}",,,,"9001234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"VE",58,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1","$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"501\\d{7}",,,,"5010123456",,,,[7]],,,[,,,,,,,,,[-1]]],VG:[,[,,"(?:284|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"284496[0-5]\\d{3}|284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}",,,,"2842291234",,,,[7]],[,,"284496[6-9]\\d{3}|284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|99)|5(?:4[0-7]|68|9[69]))\\d{4}",,,,"2843001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VG",1,"011","1",,,"1|([2-578]\\d{6})$","284$1",,,,,[,,,,,,,,,[-1]],,"284",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VI:[,[,,"[58]\\d{9}|(?:34|90)0\\d{7}",,,,,,,[10],[7]],[,,"340(?:2(?:0[12]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"340(?:2(?:0[12]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:35(?:[02-46-9]\\d|1[02-9]|5[0-46-9])|45(?:[034]\\d|1[02-9]|2[024-9]|5[0-46-9]))\\d{4}|52(?:3[2-46-9]|4[2-4])(?:[02-9]\\d|1[02-9])\\d{4}|5(?:00|2[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VI",1,"011","1",,,"1|([2-9]\\d{6})$","340$1",,1,,,[,,,,,,,,,[-1]],,"340",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VN:[,[,,"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",,,,,,,[7,8,9,10]],[,,"2(?:0[3-9]|1[0-689]|2[0-25-9]|3[2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|8[2-79]|9[0-4679])\\d{7}",,,,"2101234567",,,[10]],[,,"(?:5(?:2[238]|59)|89[689]|99[013-9])\\d{6}|(?:3\\d|5[689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",,,,"912345678",,,[9]],[,,"1800\\d{4,6}|12(?:03|28)\\d{4}",,,,"1800123456",,,[8,9,10]],[,,"1900\\d{4,6}",,,,"1900123456",,,[8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"672\\d{6}",,,,"672012345",,,[9]],"VN",84,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[17]99"],"0$1",,1],[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{3})(\\d{4,5})","$1 $2",["69"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",,1],[,"(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",,1]],[[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",,1],[,"(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",,1]],[,,,,,,,,,[-1]],,,[,,"[17]99\\d{4}|69\\d{5,6}",,,,,,,[7,8]],[,,"(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",,,,"1992000",,,[7,8]],,,[,,,,,,,,,[-1]]],VU:[,[,,"(?:[23]\\d|[48]8)\\d{3}|(?:[57]\\d|90)\\d{5}",,,,,,,[5,7]],[,,"(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",,,,"22123",,,[5]],[,,"(?:5\\d|7[013-7])\\d{5}",,,,"5912345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"90[1-9]\\d{4}",,,,"9010123",,,[7]],"VU",678,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[579]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:3[03]|900\\d)\\d{3}",,,,"30123"],,,[,,,,,,,,,[-1]]],WF:[,[,,"(?:[45]0|68|72|8\\d)\\d{4}",,,,,,,[6]],[,,"(?:50|68|72)\\d{4}",,,,"501234"],[,,"(?:50|68|72|8[23])\\d{4}",,,,"501234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WF",681,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[4-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"[48]0\\d{4}",,,,"401234"]],WS:[,[,,"(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",,,,,,,[5,6,7,10]],[,,"6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",,,,"22123",,,[5,6]],[,,"(?:7[235-7]|8(?:[3-7]|9\\d{3}))\\d{5}",,,,"7212345",,,[7,10]],[,,"800\\d{3}",,,,"800123",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WS",685,"0",,,,,,,,[[,"(\\d{5})","$1",["[2-5]|6[1-9]"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],XK:[,[,,"[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",,,,,,,[8,9]],[,,"(?:2[89]|39)0\\d{6}|[23][89]\\d{6}",,,,"28012345"],[,,"4[3-9]\\d{6}",,,,"43201234",,,[8]],[,,"800\\d{5}",,,,"80001234",,,[8]],[,,"900\\d{5}",,,,"90001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"XK",383,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YE:[,[,,"(?:1|7\\d)\\d{7}|[1-7]\\d{6}",,,,,,,[7,8,9],[6]],[,,"78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",,,,"1234567",,,[7,8],[6]],[,,"7[0137]\\d{7}",,,,"712345678",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YE",967,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YT:[,[,,"80\\d{7}|(?:26|63)9\\d{6}",,,,,,,[9]],[,,"269(?:0[67]|5[0-2]|6\\d|[78]0)\\d{4}",,,,"269601234"],[,,"639(?:0[0-79]|1[019]|[267]\\d|3[09]|[45]0|9[04-79])\\d{4}",,,,"639012345"],[,,"80\\d{7}",,,,"801234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YT",262,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"269|63",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZA:[,[,,"[1-79]\\d{8}|8\\d{4,9}",,,,,,,[5,6,7,8,9,10]],[,,"(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",,,,"101234567",,,[9]],[,,"(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:6\\d|7[0-46-9])\\d{3}|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",,,,"711234567",,,[5,6,7,8,9]],[,,"80\\d{7}",,,,"801234567",,,[9]],[,,"(?:86[2-9]|9[0-2]\\d)\\d{6}",,,,"862345678",,,[9]],[,,"860\\d{6}",,,,"860123456",,,[9]],[,,,,,,,,,[-1]],[,,"87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",,,,"871234567",,,[9]],"ZA",27,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"861\\d{6,7}",,,,"861123456",,,[9,10]],,,[,,,,,,,,,[-1]]],ZM:[,[,,"(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}",,,,,,,[9],[6]],[,,"21[1-8]\\d{6}",,,,"211234567",,,,[6]],[,,"(?:7[679]|9[5-8])\\d{7}",,,,"955123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"630\\d{6}",,,,"630012345"],"ZM",260,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[1-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZW:[,[,,"2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",,,,,,,[5,6,7,8,9,10],[3,4]],[,,"(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?
306:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}",,,,"1312345",,,,[3,4]],[,,"7(?:[17]\\d|[38][1-9])\\d{6}",,,,"712345678",,,[9]],[,,"80(?:[01]\\d|20|8[0-8])\\d{3}",,,,"8001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",,,,"8686123456",,,[10]],"ZW",263,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],[,"(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],[,"(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],[,"(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],800:[,[,,"[1-9]\\d{7}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1-9]\\d{7}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",800,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],808:[,[,,"[1-9]\\d{7}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1-9]\\d{7}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",808,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],870:[,[,,"[35-7]\\d{8}",,,,,,,[9]],[,,,,,,,,,[-1]],[,,"(?:[356]\\d|7[6-8])\\d{7}",,,,"301234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",870,,,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],878:[,[,,"10\\d{10}",,,,,,,[12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"10\\d{10}",,,,"101234567890"],"001",878,,,,,,,,1,[[,"(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],881:[,[,,"[0-36-9]\\d{8}",,,,,,,[9]],[,,,,,,,,,[-1]],[,,"[0-36-9]\\d{8}",,,,"612345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",881,,,,,,,,,[[,"(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],882:[,[,,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|[19]\\d{7}",,,,,,,[7,8,9,10,11,12]],[,,,,,,,,,[-1]],[,,"3(?:37\\d\\d|42)\\d{4}|3(?:2|47|7\\d{3})\\d{7}",,,,"3421234",,,[7,9,10,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}",,,,"390123456789"],"001",882,,,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["16|342"]],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],[,"(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],[,"(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"348[57]\\d{7}",,,,"34851234567",,,[11]]],883:[,[,,"51\\d{7}(?:\\d{3})?",,,,,,,[9,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"51[013]0\\d{8}|5100\\d{5}",,,,"510012345"],"001",883,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["510"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["5"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],888:[,[,,"\\d{11}",,,,,,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",888,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"\\d{11}",,,,"12345678901"],,,[,,,,,,,,,[-1]]],979:[,[,,"[1359]\\d{8}",,,,,,,[9],[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1359]\\d{8}",,,,"123456789",,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",979,,,,,,,,1,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]]};D.c=void 0,D.a=function(){return D.c?D.c:D.c=new D};var pe={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"},me={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3", 307"\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9",A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"
3076",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},ge=/^[+\uff0b]+/,ve=/([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9])/,ye=/[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]/,_e=/[\\\/] *x/,be=/[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9A-Za-z#]+$/,Te=/(?:.*?[A-Za-z]){3}.*/,Ce=/(?:;ext=([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})|[ \u00a0\t,]*(?:e?xt(?:ensi(?:o\u0301?|\u00f3))?n?|\uff45?\uff58\uff54\uff4e?|\u0434\u043e\u0431|[;,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\.\uff0e]?[ \u00a0\t,-]*([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})#?|[- ]+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,5})#)$/i,Ee=/^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]*(?:[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e*]*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]){3,}[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e*A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*(?:;ext=([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})|[ \u00a0\t,]*(?:e?xt(?:ensi(?:o\u0301?|\u00f3))?n?|\uff45?\uff58\uff54\uff4e?|\u0434\u043e\u0431|[;,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\.\uff0e]?[ \u00a0\t,-]*([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})#?|[- ]+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,5})#)?$/i,we=/(\$\d)/;e("intlTelInputUtils",{}),e("intlTelInputUtils.formatNumber",function(e,t,n){try{var i=D.a(),o=Y(i,e,t),r=W(i,o);return 0==r||4==r?K(i,o,void 0===n?0:n):e}catch(a){return e}}),e("intlTelInputUtils.getExampleNumber",function(e,t,n){try{var i=D.a();e:{if(A(e)){var o=P(B(i,e),n);try{if(null!=o.a[6]){var r=G(i,u(o,6),e,!1);break e}}catch(a){}}r=null}return K(i,r,t?2:1)}catch(a){return""}}),e("intlTelInputUtils.getExtension",function(e,t){try{return u(Y(D.a(),e,t),3)}catch(n){return""}}),e("intlTelInputUtils.getNumberType",function(e,t){try{var n=D.a(),i=Y(n,e,t),o=H(n,i),r=N(n,h(i,1),o);if(null==r)var a=-1;else a=F(L(i),r);return a}catch(s){return-99}}),e("intlTelInputUtils.getValidationError",function(e,t){try{var n=D.a();return W(n,Y(n,e,t))}catch(i){return"Invalid country calling code"==i.message?1:"The string supplied did not seem to be a phone number"==i.message?4:"Phone number too short after IDD"==i.message||"The string supplied is too short to be a phone number"==i?2:"The string supplied is too long to be a phone number"==i.message?3:-99}}),e("intlTelInputUtils.isValidNumber",function(e,t){try{var n,i=D.a(),o=Y(i,e,t),r=H(i,o),a=h(o,1),s=N(i,a,r);if(!(n=null==s)){var l;if(l="001"!=r){var d=B(i,r);if(null==d)throw Error("Invalid region code: "+r);l=a!=h(d,10)}n=l}if(n)var c=!1;else c=-1!=F(L(o),s);return c}catch(u){return!1}}),e("intlTelInputUtils.numberFormat",{E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3}),e("intlTelInputUtils.numberType",{FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1}),e("intlTelInputUtils.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,NOT_A_NUMBER:4})}(),$(document).ready(function(){$("#payout_verification_show_datatable thead tr").clone(!0).appendTo("#payout_verification_show_datatable thead"),$("#payout_verification_show_datatable thead tr:eq(1) th").each(function(t){var n=$(this).text();$(this).html('<input type="text" placeholder="Search '+n+'" />'),$("input",this).on("keyup change",function(){e.column(t).search()!==this.value&&e.column(t).search(this.value).draw()})});var e=$("#payout_verification_show_datatable").DataTable({orderCellsTop:!0,order:[],scrollX:!0,autoWidth:!1,lengthMenu:[10,50,100,500,1e3]})}),$(document).ready(function(){$("#payout_verification_credited_datatable thead tr").clone(!0).appendTo("#payout_verification_credited_datatable thead"),$("#payout_verification_credited_datatable thead tr:eq(1) th").each(function(t){var n=$(this).text();$(this).html('<input type="text" placeholder="Search '+n+'" />'),$("input",this).on("keyup change",function(){e.column(t).search()!==this.value&&e.column(t).search(this.value).draw()})});
307var e=$("#payout_verification_credited_datatable").DataTable({orderCellsTop:!0,order:[],scrollX:!0,autoWidth:!1,lengthMenu:[10,50,100,500,1e3]})}),$(document).ready(function(){ResCarouselOnInit()}),$(window).resize(function(){var e=new Date;setTimeout(function(){ResCarouselResize(e)},200)});class ScreenShareService{constructor(){this.localScreenStream=null,this.peerConnections={},this.screenViewTab=null,this.currentViewingStudentId=null,this.iceServers={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun1.l.google.com:19302"},{urls:"stun:stun2.l.google.com:19302"}]}}async startScreenShare(e){try{return this.localScreenStream=await navigator.mediaDevices.getDisplayMedia({video:{cursor:"always",width:{max:1920,ideal:1280},height:{max:1080,ideal:720},frameRate:{max:30,ideal:15}},audio:!1}),this.localScreenStream.getVideoTracks()[0].onended=(()=>{this.stopScreenShare(),this.notifyScreenShareStopped()}),await this.createStudentPeerConnection(e),!0}catch(t){return console.error("Screen share error:",t),!1}}async createStudentPeerConnection(e){var t=new RTCPeerConnection(this.iceServers);this.peerConnections["teacher_"+e]=t,this.localScreenStream.getTracks().forEach(function(e){t.addTrack(e,this.localScreenStream)}.bind(this)),t.onicecandidate=function(t){t.candidate&&this.sendSignal(e,"ice-candidate",t.candidate)}.bind(this),t.onconnectionstatechange=function(){"disconnected"!==t.connectionState&&"failed"!==t.connectionState||this.cleanupPeerConnection(e)}.bind(this);var n=await t.createOffer();await t.setLocalDescription(n),this.sendSignal(e,"offer",n)}stopScreenShare(){this.localScreenStream&&(this.localScreenStream.getTracks().forEach(function(e){e.stop()}),this.localScreenStream=null);var e=this;Object.keys(this.peerConnections).forEach(function(t){0===t.indexOf("teacher_")&&(e.peerConnections[t].close(),delete e.peerConnections[t])}),this.hideScreenShareOverlay()}openScreenViewTab(e,t){var n=new URLSearchParams(window.location.search),i="/screen_view?event_id="+n.get("event_id")+"&event_time_slot_id="+n.get("event_time_slot_id")+"&student_id="+e+"&student_name="+encodeURIComponent(t)+"&teacher_id="+$("body").data("user");this.screenViewTab=window.open(i,"screen_view_"+e),this.currentViewingStudentId=e,this.screenViewStudentInfo={id:e,name:t}}sendSignal(e,t,n){window.App&&window.App.live_event_v2&&window.App.live_event_v2.perform("webrtc_signal",{to_user_id:e,signal_type:t,signal_data:n})}handleSignal(e,t,n){this.screenViewTab&&!this.screenViewTab.closed&&this.screenViewTab.postMessage({type:"webrtc_signal",fromUserId:e,signalType:t,signalData:n},"*")}handleIncomingSignal(e,t,n){var i="teacher_"+e,o=this.peerConnections[i];o&&("answer"===t?o.setRemoteDescription(new RTCSessionDescription(n))["catch"](function(e){console.error("setRemoteDescription error:",e)}):"ice-candidate"===t&&o.addIceCandidate(new RTCIceCandidate(n))["catch"](function(e){console.error("addIceCandidate error:",e)}))}showScreenShareOverlay(){if(!document.getElementById("screen-share-active-indicator")){var e='<div id="screen-share-active-indicator" class="screen-share-indicator"><i class="fas fa-desktop"></i><span>Screen sharing active</span><button class="btn btn-sm btn-danger ml-2" onclick="screenShareService.stopScreenShareFromUI()"><i class="fas fa-stop"></i> Stop</button></div>';document.body.insertAdjacentHTML("beforeend",e)}}hideScreenShareOverlay(){var e=document.getElementById("screen-share-active-indicator");e&&e.remove()}stopScreenShareFromUI(){this.stopScreenShare(),this.notifyScreenShareStopped()}notifyScreenShareStopped(){var e=$("body").data("user");window.App&&window.App.live_event_v2&&window.App.live_event_v2.perform("stop_screen_view",{student_id:e})}getStudentInfo(e){var t=(window.currentActiveStudentsData||[]).find(function(t){return String(t.student_id||t.id)===String(e)});return{name:t?t.student_name||t.name:"Student",id:e}}cleanupPeerConnection(e){var t=this;["teacher_"+e,"student_"+e].forEach(function(e){t.peerConnections[e]&&(t.peerConnections[e].close(),delete t.peerConnections[e])})}}window.screenShareService=new ScreenShareService,navigator.serviceWorker?navigator.serviceWorker.register("/serviceworker.js").then(function(){console.log("[Companion]","Service worker registered!")})["catch"](e=>console.log("ERR",e)):console.error("Service worker is not supported in this browser");var CACHE_VERSION="v2",CACHE_NAME=CACHE_VERSION+":sw-cache-";"function"==typeof importScripts&&importScripts("https://widgets.in.webengage.com/js/service-worker.js"),self.addEventListener("install",onInstall),self.addEventListener("activate",onActivate),self.addEventListener("fetch",onFetch),self.addEventListener("push",onPush),self.addEventListener("notificationclick",onNotificationClick),"cart_page"!=localStorage.currentlyRendering&&(localStorage.currentlyRendering="prod_list");var id=0;window.onload=contentLoad,$(document).ready(function(){$("#sb_date_range_field").flatpickr({mode:"range",dateFormat:"Y-m-d",maxDate:"today",onClose:function(e,t){const n=new URL(window.location.href).searchParams.get("team_id");let i="";if(n)i+=`&team_id=${n}`;else{const e=document.getElementById("sb_team_filter");e&&(i+=`&team_id=${e.value}`)}window.location.href=`${window.location.pathname}?date_filter=${t}${i}`}}),$("#bt_date_range_field").flatpickr({mode:"range",dateFormat:"Y-m-d",maxDate:"today",onClose:function(e,t){window.location.href=`${window.location.pathname}?date_filter=${t}`}}),$("#tp_edit_date_of_birth_field").flatpickr({dateFormat:"Y-m-d"}),$("#tp_edit_last_working_date").flatpickr({dateFormat:"Y-m-d"}),$("#call_logs_table thead tr").clone(!0).appendTo("#call_logs_table thead"),$("#call_logs_table thead tr:eq(1) th").each(function(t){var n=$(this).text();$(this).html('<input type="text" placeholder="Search '+n+'" />'),$("input",this).on("keyup change",function(){e.column(t).search()!==this.value&&e.column(t).search(this.value).draw()})});
307var e=$("#call_logs_table").DataTable({orderCellsTop:!0,order:[],scrollX:!0,autoWidth:!1,lengthMenu:[30,60,90],dom:"Blfrtip",buttons:[]});$("#en_log_date_range_field").flatpickr({mode:"range",dateFormat:"Y-m-d",maxDate:"today",onClose:function(e,t){let n="";n+=`&cx_employee_id=${new URL(window.location.href).searchParams.get("cx_employee_id")}`,window.location.href=`${window.location.pathname}?date_filter=${t}${n}`},onChange:function(e,t,n){if(1===e.length){const t=new Date(e[0]),i=new Date(e[0]);t.setMonth(t.getMonth()-3),i.setMonth(i.getMonth()+3),n.set("minDate",t),n.set("maxDate",i)}}}),$("#enrolment_details_table thead tr").clone(!0).appendTo("#enrolment_details_table thead"),$("#enrolment_details_table thead tr:eq(1) th").each(function(e){var n=$(this).text();$(this).html('<input type="text" id="Search'+n+'" placeholder="Search '+n+'" />'),$("input",this).on("keyup change",function(){t.column(e).search()!==this.value&&t.column(e).search(this.value).draw()})});var t=$("#enrolment_details_table").DataTable({orderCellsTop:!0,order:[],scrollX:!0,autoWidth:!0,lengthMenu:!1,paging:!1,dom:"Blfrtip",buttons:[]});$("#audit_vc_logs_date_range").flatpickr({mode:"range",dateFormat:"Y-m-d",maxDate:"today",onClose:function(){},onChange:function(e,t,n){if(1===e.length){const t=new Date(e[0]);let i=new Date(t),o=new Date(t),r=new Date;i.setDate(t.getDate()-7),o.setDate(t.getDate()+7),o>r&&o.setDate(r.getDate()),n.set("minDate",i),n.set("maxDate",o)}}});const n=new Date;n.setMonth(n.getMonth()-3),$("#call_date_field").flatpickr({mode:"range",dateFormat:"Y-m-d",inline:!0,minDate:n,maxDate:"today",onClose:function(e,t){if(!t)return;let n;n=t.includes(" to ")?t:`${t} to ${t}`;const i=new URL(window.location.href);i.searchParams.set("call_date_filter",t),window.location.href=i.toString()}}),$("#activity_date_field").flatpickr({mode:"range",dateFormat:"Y-m-d",inline:!0,minDate:n,maxDate:"today",onClose:function(e,t){if(!t)return;let n;n=t.includes(" to ")?t:`${t} to ${t}`;const i=new URL(window.location.href);i.searchParams.set("activity_date_filter",n),window.location.href=i.toString()}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var t=window.Slick||{};(t=function(){var t=0;return function(n,i){var o,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(n),appendDots:e(n),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=e(n),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,o=e(n).data("slick")||{},r.options=e.extend({},r.defaults,i,o),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,void 0!==document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=e.proxy(r.autoPlay,r),r.autoPlayClear=e.proxy(r.autoPlayClear,r),r.autoPlayIterator=e.proxy(r.autoPlayIterator,r),r.changeSlide=e.proxy(r.changeSlide,r),r.clickHandler=e.proxy(r.clickHandler,r),r.selectHandler=e.proxy(r.selectHandler,r),r.setPosition=e.proxy(r.setPosition,r),r.swipeHandler=e.proxy(r.swipeHandler,r),r.dragHandler=e.proxy(r.dragHandler,r),r.keyHandler=e.proxy(r.keyHandler,r),r.instanceUid=t++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,n,i){var o=this;if("boolean"==typeof n)i=n,n=null;else if(n<0||n>=o.slideCount)return!1;o.unload(),"number"==typeof n?0===n&&0===o.$slides.length?e(t).appendTo(o.$slideTrack):i?e(t).insertBefore(o.$slides.eq(n)):e(t).insertAfter(o.$slides.eq(n)):!0===i?e(t).prependTo(o.$slideTrack):e(t).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(t,n){e(n).attr("data-slick-index",t)}),o.$slidesCache=o.$slides,o.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,n){var i={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(t=-t),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:t},o.options.speed,o.options.easing,n):o.$slideTrack.animate({top:t},o.options.speed,o.options.easing,n):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),e({animStart:o.currentLeft}).animate({animStart:t},{duration:o.options.speed,easing:o.options.easing,step:function(e){e=Math.ceil(e),!1===o.options.vertical?(i[o.animType]="translate("+e+"px, 0px)",o.$slideTrack.css(i)):(i[o.animType]="translate(0px,"+e+"px)",o.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(o.applyTransition(),t=Math.ceil(t),!1===o.options.vertical?i[o.animType]="translate3d("+t+"px, 0px, 0px)":i[o.animType]="translate3d(0px,"+t+"px, 0px)",o.$slideTrack.css(i),n&&setTimeout(function(){o.disableTransition(),n.call()},o.options.speed))},t.prototype.getNavTarget=function(){var t=this,n=t.options.asNavFor;return n&&null!==n&&(n=e(n).not(t.$slider)),n},t.prototype.asNavFor=function(t){var n=this.getNavTarget();null!==n&&"object"==typeof n&&n.each(function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)})},t.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,n,i=this;if(!0===i.options.dots){for(i.$slider.addClass("slick-dotted"),n=e("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)n.append(e("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=n.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,n,i,o,r,a,s=this;if(i=document.createDocumentFragment(),r=s.$slider.children(),s.options.rows>1){for(a=s.options.slidesPerRow*s.options.rows,o=Math.ceil(r.length/a),e=0;e<o;e++){var l=document.createElement("div");for(t=0;t<s.options.rows;t++){var d=document.createElement("div");for(n=0;n<s.options.slidesPerRow;n++){var c=e*a+(t*s.options.slidesPerRow+n);r.get(c)&&d.appendChild(r.get(c))}l.appendChild(d)}i.appendChild(l)}s.$slider.empty().append(i),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,n){var i,o,r,a=this,s=!1,l=a.$slider.width(),d=window.innerWidth||e(window).width();if("window"===a.respondTo?r=d:"slider"===a.respondTo?r=l:"min"===a.respondTo&&(r=Math.min(d,l)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){for(i in o=null,a.breakpoints)a.breakpoints.hasOwnProperty(i)&&(!1===a.originalSettings.mobileFirst?r<a.breakpoints[i]&&(o=a.breakpoints[i]):r>a.breakpoints[i]&&(o=a.breakpoints[i]));null!==o?null!==a.activeBreakpoint?(o!==a.activeBreakpoint||n)&&(a.activeBreakpoint=o,"unslick"===a.breakpointSettings[o]?a.unslick(o):(a.options=e.extend({},a.originalSettings,a.breakpointSettings[o]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),s=o):(a.activeBreakpoint=o,"unslick"===a.breakpointSettings[o]?a.unslick(o):(a.options=e.extend({},a.originalSettings,a.breakpointSettings[o]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),s=o):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t),s=o),t||!1===s||a.$slider.trigger("breakpoint",[a,s])}},t.prototype.changeSlide=function(t,n){var i,o,r=this,a=e(t.currentTarget);switch(a.is("a")&&t.preventDefault(),a.is("li")||(a=a.closest("li")),i=r.slideCount%r.options.slidesToScroll!=0?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":o=0===i?r.options.slidesToScroll:r.o
307ptions.slidesToShow-i,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-o,!1,n);break;case"next":o=0===i?r.options.slidesToScroll:i,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+o,!1,n);break;case"index":var s=0===t.data.index?0:t.data.index||a.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(s),!1,n),a.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,n;if(n=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var i in t){if(e<t[i]){e=n;break}n=t[i]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.
307slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>1&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},t.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(n){n.stopImmediatePropagation();var i=e(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=i.is(":focus"),t.autoPlay())},0)})},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++i;else for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},t.prototype.getLeft=function(e){var t,n,i,o,r=this,a=0;return r.slideOffset=0,n=r.$slides.first().outerHeight(!0),!0===r.options.infinite?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,o=-1,!0===r.options.vertical&&!0===r.options.centerMode&&(2===r.options.slidesToShow?o=-1.5:1===r.options.slidesToShow&&(o=-2)),a=n*r.options.slidesToShow*o),r.slideCount%r.options.slidesToScroll!=0&&e+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(e>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(e-r.slideCount))*r.slideWidth*-1,a=(r.options.slidesToShow-(e-r.slideCount))*n*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,a=r.slideCount%r.options.slidesToScroll*n*-1))):e+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(e+r.options.slidesToShow-r.slideCount)*r.slideWidth,a=(e+r.options.slidesToShow-r.slideCount)*n),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,a=0),!0===r.options.centerMode&&r.slideCount<=r.options.slidesToShow?r.slideOffset=r.slideWidth*Math.floor(r.options.slidesToShow)/2-r.slideWidth*r.slideCount/2:!0===r.options.centerMode&&!0===r.options.infinite?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:!0===r.options.centerMode&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),t=!1===r.options.vertical?e*r.slideWidth*-1+r.slideOffset:e*n*-1+a,!0===r.options.variableWidth&&(i=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(e):r.$slideTrack.children(".slick-slide").eq(e+r.options.slidesToShow),t=!0===r.options.rtl?i[0]?-1*(r.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===r.options.centerMode&&(i=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(e):r.$slideTrack.children(".slick-slide").eq(e+r.options.slidesToShow+1),t=!0===r.options.rtl?i[0]?-1*(r.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(r.$list.width()-i.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,n=0,i=0,o=[];for(!1===t.options.infinite?e=t.slideCount:(n=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,e=2*t.slideCount);n<e;)o.push(n),n=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return o},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,n,i=this;return n=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0,!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each(function(o,r){if(r.offsetLeft-n+e(r).outerWidth()/2>-1*i.swipeLeft)return t=r,!1}),Math.abs(e(t).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:
307parseInt(e)}},t)},t.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},t.prototype.initADA=function(){var t=this,n=Math.ceil(t.slideCount/t.options.slidesToShow),i=t.getNavigableIndexes().filter(function(e){return e>=0&&e<t.slideCount});t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(n){var o=i.indexOf(n);e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+n,tabindex:-1}),-1!==o&&e(this).attr({"aria-describedby":"slick-slide-control"+t.instanceUid+o})}),t.$dots.attr("role","tablist").find("li").each(function(o){var r=i[o];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+o,"aria-controls":"slick-slide"+t.instanceUid+r,"aria-label":o+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=t.currentSlide,r=o+t.options.slidesToShow;o<r;o++)t.$slides.eq(o).attr("tabindex",0);t.activateADA()},t.prototype.initArrowEvents=function(){var e=this 308;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
308,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each(function(){var t=e(this),n=e(this).attr("data-lazy"),i=e(this).attr("data-srcset"),o=e(this).attr("data-sizes")||r.$slider.attr("data-sizes"),a=document.createElement("img");a.onload=function(){t.animate({opacity:0}
vendor: 7,112 bytes, line 308
308,100,function(){i&&(t.attr("srcset",i),o&&t.attr("sizes",o)),t.attr("src",n).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,t,n])})},a.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,n])},a.src=n})}var n,i,o,r=this;if(!0===r.options.centerMode?!0===r.options.infinite?o=(i=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(i=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),o=r.options.slidesToShow/2+1+2+r.currentSlide):(i=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,o=Math.ceil(i+r.options.slidesToShow),!0===r.options.fade&&(i>0&&i--,o<=r.slideCount&&o++)),n=r.$slider.find(".slick-slide").slice(i,o),"anticipated"===r.options.lazyLoad)for(var a=i-1,s=o,l=r.$slider.find(".slick-slide"),d=0;d<r.options.slidesToScroll;d++)a<0&&(a=r.slideCount-1),n=(n=n.add(l.eq(a))).add(l.eq(s)),a--,s++;t(n),r.slideCount<=r.options.slidesToShow?t(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?t(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&t(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var n=this;n.unslicked||(n.$slider.trigger("afterChange",[n,t]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),!0===n.options.accessibility&&(n.initADA(),n.options.focusOnChange&&e(n.$slides.get(n.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var n,i,o,r,a,s=this,l=e("img[data-lazy]",s.$slider);l.length?(n=l.first(),i=n.attr("data-lazy"),o=n.attr("data-srcset"),r=n.attr("data-sizes")||s.$slider.attr("data-sizes"),(a=document.createElement("img")).onload=function(){o&&(n.attr("srcset",o),r&&n.attr("sizes",r)),n.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===s.options.adaptiveHeight&&s.setPosition(),s.$slider.trigger("lazyLoaded",[s,n,i]),s.progressiveLazyLoad()},a.onerror=function(){t<3?setTimeout(function(){s.progressiveLazyLoad(t+1)},500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,n,i]),s.progressiveLazyLoad())},a.src=i):s.$slider.trigger("allImagesLoaded",[s])},t.prototype.refresh=function(t){var n,i,o=this;i=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>i&&(o.currentSlide=i),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),n=o.currentSlide,o.destroy(!0),e.extend(o,o.initials,{currentSlide:n}),o.init(),t||o.changeSlide({data:{message:"index",index:n}},!1)},t.prototype.registerBreakpoints=function(){var t,n,i,o=this,r=o.options.responsive||null;if("array"===e.type(r)&&r.length){for(t in o.respondTo=o.options.respondTo||"window",r)if(i=o.breakpoints.length-1,r.hasOwnProperty(t)){for(n=r[t].breakpoint;i>=0;)o.breakpoints[i]&&o.breakpoints[i]===n&&o.breakpoints.splice(i,1),i--;o.breakpoints.push(n),o.breakpointSettings[n]=r[t].settings}o.breakpoints.sort(function(e,t){return o.options.mobileFirst?e-t:t-e})}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,n){var i=this;if(e="boolean"==typeof e?!0===(t=e)?0:i.slideCount-1:!0===t?--e:e,i.slideCount<1||e<0||e>i.slideCount-1)return!1;i.unload(),!0===n?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(e).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},t.prototype.setCSS=function(e){var t,n,i=this,o={};!0===i.options.rtl&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",o[i.positionProp]=e,!1===i.transformsEnabled?i.$slideTrack.css(o):(o={},!1===i.cssTransitions?(o[i.animType]="translate("+t+", "+n+")",i.$slideTrack.css(o)):(o[i.animType]="translate3d("+t+", "+n+", 0px)",i.$slideTrack.css(o)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,n=this;n.$slides.each(function(i,o){t=n.slideWidth*i*-1,!0===n.options.rtl?e(o).css({position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}
308):e(o).css({position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,n,i,o,r,a=this,s=!1;if("object"===e.type(arguments[0])?(i=arguments[0],s=arguments[1],r="multiple"):"string"===e.type(arguments[0])&&(i=arguments[0],o=arguments[1],s=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)a.options[i]=o;else if("multiple"===r)e.each(i,function(e,t){a.options[e]=t});else if("responsive"===r)for(n in o)if("array"!==e.type(a.options.responsive))a.options.responsive=[o[n]];else{for(t=a.options.responsive.length-1;t>=0;)a.options.responsive[t].breakpoint===o[n].breakpoint&&a.options.responsive.splice(t,1),t--;a.options.responsive.push(o[n])}s&&(a.unload(),a.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,n,i,o,r=this;if(n=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(e).addClass("slick-current"),!0===r.options.centerMode){var a=r.options.slidesToShow%2==0?1:0;t=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&(e>=t&&e<=r.slideCount-1-t?r.$slides.slice(e-t+a,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(i=r.options.slidesToShow+e,n.slice(i-t+1+a,i+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-r.options.slidesToShow).addClass("slick-center"):e===r.slideCount-1&&n.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=r.slideCount-r.options.slidesToShow?r.$slides.slice(e,e+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=r.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(o=r.slideCount%r.options.slidesToShow,i=!0===r.options.infinite?r.options.slidesToShow+e:e,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-e<r.options.slidesToShow?n.slice(i-(r.options.slidesToShow-o),i+o).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},t.prototype.setupInfinite=function(){var t,n,i,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(n=null,o.slideCount>o.options.slidesToShow)){for(i=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,t=o.slideCount;t>o.slideCount-i;t-=1)n=t-1,e(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(t=0;t<i+o.slideCount;t+=1)n=t,e(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},t.prototype.interrupt=function(e){var t=this;e||t.autoPlay(),t.interrupted=e},t.prototype.selectHandler=function(t){var n=this,i=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),o=parseInt(i.attr("data-slick-index"));o||(o=0),n.slideCount<=n.options.slidesToShow?n.slideHandler(o,!1,!0):n.slideHandler(o)},t.prototype.slideHandler=function(e,t,n){var i,o,r,a,s,l=null,d=this;if(t=t||!1,!(!0===d.animating&&!0===d.options.waitForAnimate||!0===d.options.fade&&d.currentSlide===e))if(!1===t&&d.asNavFor(e),i=e,l=d.getLeft(i),a=d.getLeft(d.currentSlide),d.currentLeft=null===d.swipeLeft?a:d.swipeLeft,!1===d.options.infinite&&!1===d.options.centerMode&&(e<0||e>d.getDotCount()*d.options.slidesToScroll))!1===d.options.fade&&(i=d.currentSlide,!0!==n?d.animateSlide(a,function(){d.postSlide(i)}):d.postSlide(i));else if(!1===d.options.infinite&&!0===d.options.centerMode&&(e<0||e>d.slideCount-d.options.slidesToScroll))!1===d.options.fade&&(i=d.currentSlide,!0!==n?d.animateSlide(a,function(){d.postSlide(i)}):d.postSlide(i));else{if(d.options.autoplay&&clearInterval(d.autoPlayTimer),o=i<0?d.slideCount%d.options.slidesToScroll!=0?d.slideCount-d.slideCount%d.options.slidesToScroll:d.slideCount+i:i>=d.slideCount?d.slideCount%d.options.slidesToScroll!=0?0:i-d.slideCount:i,d.animating=!0,d.$slider.trigger("beforeChange",[d,d.currentSlide,o]),r=d.currentSlide,d.currentSlide=o,d.setSlideClasses(d.currentSlide),d.options.asNavFor&&(s=(s=d.getNavTarget()).slick("getSlick")).slideCount<=s.options.slidesToShow&&s.setSlideClasses(d.currentSlide),d.updateDots(),d.updateArrows(),!0===d.options.fade)return!0!==n?(d.fadeSlideOut(r),d.fadeSlide(o,function(){d.postSlide(o)})):d.postSlide(o),void d.animateHeight();!0!==n?d.animateSlide(l,function(){d.postSlide(o)}):d.postSlide(o)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,n,i,o=this;return e=o.touchObject.startX-o.touchObject.curX,t=o.touchObject.startY-o.touchObject.curY,n=Math.atan2(t,e),(i=Math.round(180*n/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0?!1===o.options.rtl?"left":"right":i<=360&&i>=315?!1===o.options.rtl?"left":"right":i>=135&&i<=225?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?i>=35&&i<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(){var e,t,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(t=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=t&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,t]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mou
308se")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,n,i,o,r,a,s=this;return r=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!s.dragging||s.scrolling||r&&1!==r.length)&&(t=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==r?r[0].pageX:e.clientX,s.touchObject.curY=void 0!==r?r[0].pageY:e.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),a=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2))),!s.options.verticalSwiping&&!s.swiping&&a>4?(s.scrolling=!0,!1):(!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=a),n=s.swipeDirection(),void 0!==e.originalEvent&&s.touchObject.swipeLength>4&&(s.swiping=!0,e.preventDefault()),o=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(o=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,!1===s.options.infinite&&(0===s.currentSlide&&"right"===n||s.currentSlide>=s.getDotCount()&&"left"===n)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=t+i*o:s.swipeLeft=t+i*(s.$list.height()/s.listWidth)*o,!0===s.options.verticalSwiping&&(s.swipeLeft=t+i*o),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))))},t.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,n.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,n,i=this,o=arguments[0],r=Array.prototype.slice.call(arguments,1
308),a=i.length;for(e=0;e<a;e++)if("object"==typeof o||void 0===o?i[e].slick=new t(i[e],o):n=i[e].slick[o].apply(i[e].slick,r),void 0!==n)return n;return i}}),$(document).ready(function(){var e=0,t=0,n=0,i=0;$("#teacher_profile_form").on("click",".addExperienceButton",function(){e++;var t=$("#experienceTemplate");t.clone().removeClass("hide").removeAttr("id").attr("data-experience-index",e).insertBefore(t).find('[name="name"]').attr("name","profile[experiences][][name]").end().find('[name="type"]').attr("name","profile[experiences][][type]").end().find('[name="years"]').attr("name","profile[experiences][][years]").end()}).on("click",".removeExperienceButton",function(){$(this).parents(".form-group").remove()}).on("click",".addCourseButton",function(){t++;var e=$("#courseTemplate");e.clone().removeClass("hide").removeAttr("id").attr("data-course-index",t).insertBefore(e).find('[name="name"]').attr("name","profile[courses][][name]").end().find('[name="institute"]').attr("name","profile[courses][][institute]").end().find('[name="level"]').attr("name","profile[courses][][level]").end()}).on("click",".removeCourseButton",function(){$(this).parents(".form-group").remove()}).on("click",".addAchievementButton",function(){n++;
308var e=$("#achievementTemplate");e.clone().removeClass("hide").removeAttr("id").attr("data-achievement-index",n).insertBefore(e)}).on("click",".removeAchievementButton",function(){$(this).parents(".form-group").remove()}).on("click",".addHobbyButton",function(){i++;var e=$("#hobbyTemplate");e.clone().removeClass("hide").removeAttr("id").attr("data-hobby-index",i).insertBefore(e)}).on("click",".removeHobbyButton",function(){$(this).parents(".form-group").remove()}),$(".evaluation-objective-answer").on("click tap",function(){$(this).siblings().removeClass("clicked"),$(this).toggleClass("clicked"),$(this).parents().eq(0).find("input#answer").val($(this).html())}),$(".js-fee-slider").on("change input",function(){var e=$(this).val();$(".js-fees-single-monthly").html(e),$(".js-fees-double-monthly").html(50*Math.ceil(3e3*Number(e)/9e4)),$(".js-fees-single-quarterly").html(50*Math.ceil(5e3*Number(e)/9e4)),$(".js-fees-double-quarterly").html(50*Math.ceil(8400*Number(e)/9e4)),$("#teacher_action_expected_attendance").val(e)}),$(".js-fee-society").on("change",function(){var e=Number($(".js-fee-slider").data("base-price"));e-=$("input.js-fee-society:not(:disabled):checked").data("fee-diff")||0,$(".js-fee-min-fee").html(e-300),$(".js-fee-base-fee").html(e),$(".js-fee-max-fee").html(e+300),$(".js-fee-slider").attr("min",e-300),$(".js-fee-slider").val(e),$(".js-fee-slider").attr("value",e),$(".js-fee-slider").attr("max",e+300),$(".js-fees-single-monthly").html(e),$(".js-fees-double-monthly").html(50*Math.ceil(3e3*Number(e)/9e4)),$(".js-fees-single-quarterly").html(50*Math.ceil(5e3*Number(e)/9e4)),$(".js-fees-double-quarterly").html(50*Math.ceil(8400*Number(e)/9e4))})}),$(document).ready(function(){$("#teacher_emp_index_datatable thead tr").clone(!0).appendTo("#teacher_emp_index_datatable thead"),$("#teacher_emp_index_datatable thead tr:eq(1) th").each(function(t){var n=$(this).text();$(this).html('<input type="text" placeholder="Search '+n+'" />'),$("input",this).on("keyup change",function(){e.column(t).search()!==this.value&&e.column(t).search(this.value).draw()})});var e=$("#teacher_emp_index_datatable").DataTable({orderCellsTop:!0,scrollY:550,scrollX:!0,scroller:!0,columnDefs:[{type:"num"}],language:{decimal:",",thousands:"."},sType:"numeric",order:[],scrollX:!0,autoWidth:!1,lengthMenu:[500,1e3,1500],dom:"Blfrtip",buttons:["csvHtml5"]})}),$(document).ready(function(){$("#teacher_student_index_datatable thead tr").clone(!0).appendTo("#teacher_student_index_datatable thead"),$("#teacher_student_index_datatable thead tr:eq(1) th").each(function(t){var n=$(this).text();$(this).html('<input type="text" placeholder="Search '+n+'" />'),$("input",this).on("keyup change",function(){e.column(t).search()!==this.value&&e.column(t).search(this.value).draw()})});var e=$("#teacher_student_index_datatable").DataTable({orderCellsTop:!0,scrollY:550,scrollX:!0,scroller:!0,columnDefs:[{type:"num"}],language:{decimal:",",thousands:"."},sType:"numeric",order:[],scrollX:!0,autoWidth:!1,lengthMenu:[500,1e3,1500],dom:"Blfrtip",buttons:["csvHtml5"]})});var tns=function(){function e(){for(var e,t,n,i=arguments[0]||{},o=1,r=arguments.length;o<r;o++)if(null!==(e=arguments[o]))for(t in e)i!==(n=e[t])&&void 0!==n&&(i[t]=n);return i}function t(e){return 0<=["true","false"].indexOf(e)?JSON.parse(e):e}function n(e,t,n,i){if(i)try{e.setItem(t,n)}catch(e){}return n}function i(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}function o(e){var t="";return e.fake&&(t=x.style.overflow,e.style.background="",e.style.overflow=x.style.overflow="hidden",x.appendChild(e)),t}function r(e,t){e.fake&&(e.remove(),x.style.overflow=t,x.offsetHeight)}function a(e,t,n,i){"insertRule"in e?e.insertRule(t+"{"+n+"}",i):e.addRule(t,n,i)}function s(e){return("insertRule"in e?e.cssRules:e.rules).length}function l(e,t,n){for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i)}function d(e,t){return e.hasAttribute(t)}function c(e,t){return e.getAttribute(t)}function u(e){return void 0!==e.item}function h(e,t){if(e=u(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var n=e.length;n--;)for(var i in t)e[n].setAttribute(i,t[i])}function f(e,t){e=u(e)||e instanceof Array?e:[e];for(var n=(t=t instanceof Array?t:[t]).length,i=e.length;i--;)for(var o=n;o--;)e[i].removeAttribute(t[o])}function p(e){for(var t=[],n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function m(e){"none"!==e.style.display&&(e.style.display="none")}function g(e){"none"===e.style.display&&(e.style.display="")}function v(e){return"none"!==window.getComputedStyle(e).display}function y(e){if("string"==typeof e){var t=[e],n=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach(function(i){"ms"===i&&"transform"!==e||t.push(i+n)}),e=t}for(var i=document.createElement("fakeelement"),o=(e.length,0);o<e.length;o++){var r=e[o];if(void 0!==i.style[r])return r}return!1}function _(e,t){var n=!1;return/^Webkit/.test(e)?n="webkit"+t+"End":/^O/.test(e)?n="o"+t+"End":e&&(n=t.toLowerCase()+"end"),n}function b(e,t,n){for(var i in t){var o=0<=["touchstart","touchmove"].indexOf(i)&&!n&&K;e.addEventListener(i,t[i],o)}}function T(e,t){for(var n in t){var i=0<=["touchstart","touchmove"].indexOf(n)&&K;e.removeEventListener(n,t[n],i)}}function C(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var n=0;n<this.topics[e].length;n++)if(this.topics[e][n]===t){this.topics[e].splice(n,1);break}},emit:function(e,t){t.type=e,this.topics[e]&&this.topics[e].forEach(function(n){n(t,e)})}}}Object.keys||(Object.keys=function(e){var t=[];
vendor: 20,048 bytes, lines 308-309
308for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var E=window,w=E.requestAnimationFrame||E.webkitRequestAnimationFrame||E.mozRequestAnimationFrame||E.msRequestAnimationFrame||function(e){return setTimeout(e,16)},I=window,D=I.cancelAnimationFrame||I.mozCancelAnimationFrame||function(e){clearTimeout(e)},x=document.documentElement,O="classList"in document.createElement("_"),k=O?function(e,t){return e.classList.contains(t)}:function(e,t){return 0<=e.className.indexOf(t)},S=O?function(e,t){k(e,t)||e.classList.add(t)}:function(e,t){k(e,t)||(e.className+=" "+t)},R=O?function(e,t){k(e,t)&&e.classList.remove(t)}:function(e,t){k(e,t)&&(e.className=e.className.replace(t,""))},$=!1;try{var A=Object.defineProperty({},"passive",{get:function(){$=!0}});window.addEventListener("test",null,A)}catch(E){}var K=!!$&&{passive:!0},N=function(u){function E(e){e&&(Tn=En=wn=In=gn=Dn=kn=Sn=!1)}function I(){for(var e=$t?zn-Kn:zn;e<0;)e+=Gt;return e%Gt+1}function x(e){return e=e?Math.max(0,Math.min(_n?Gt-1:Gt-fn,e)):0,$t?e+Kn:e}function O(e){for(null==e&&(e=zn),$t&&(e-=Kn);e<0;)e+=Gt;return Math.floor(e%Gt)}function $(){var e,t=O();return e=mi?t:ln||sn?Math.ceil((t+1)*Ki/Gt-1):Math.floor(t/fn),!_n&&$t&&zn===Un&&(e=Ki-1),e}function A(){return it.innerWidth||nt.documentElement.clientWidth||nt.body.clientWidth}function K(e){return"top"===e?"afterbegin":"beforeend"}function L(){var e=dn?2*dn-cn:0;return function t(e){var n,i,o=nt.createElement("div");return e.appendChild(o),i=(n=o.getBoundingClientRect()).right-n.left,o.remove(),i||t(e.parentNode)}(Ut)-e}function M(e){if(u[e])return!0;if(St)for(var t in St)if(St[t][e])return!0;return!1}function P(e,t){if(null==t&&(t=Xt),"items"===e&&ln)return Math.floor((un+cn)/(ln+cn))||1;var n=u[e];if(St)for(var i in St)t>=parseInt(i)&&e in St[i]&&(n=St[i][e]);return"slideBy"===e&&"page"===n&&(n=P("items")),$t||"slideBy"!==e&&"items"!==e||(n=Math.floor(n)),n}function F(e,t,n,i,o){var r="";if(void 0!==e){var a=e;t&&(a-=t),r=Ht?"margin: 0 "+a+"px 0 "+e+"px;":"margin: "+e+"px 0 "+a+"px 0;"}else if(t&&!n){var s="-"+t+"px";r="margin: 0 "+(Ht?s+" 0 0":"0 "+s+" 0")+";"}return!$t&&o&&Tt&&i&&(r+=q(i)),r}function B(e,t,n){return e?(e+t)*Nn+"px":gt?gt+"("+100*Nn+"% / "+n+")":100*Nn/n+"%"}function j(e,t,n){var i;if(e)i=e+t+"px";else{$t||(n=Math.floor(n));var o=$t?Nn:n;i=gt?gt+"(100% / "+o+")":100/o+"%"}return i="width:"+i,"inner"!==Rt?i+";":i+" !important;"}function H(e){var t="";return!1!==e&&(t=(Ht?"padding-":"margin-")+(Ht?"right":"bottom")+": "+e+"px;"),t}function z(e,t){var n=e.substring(0,e.length-t).toLowerCase();return n&&(n="-"+n+"-"),n}function q(e){return z(Tt,18)+"transition-duration:"+e/1e3+"s;"}function W(e){return z(Et,17)+"animation-duration:"+e/1e3+"s;"}function U(){if(M("autoHeight")||sn||!Ht){var e=Wt.querySelectorAll("img");l(e,function(e){var t=e.src;t&&t.indexOf("data:image")<0?(b(e,Ti),e.src="",e.src=t,S(e,"loading")):$n||de(e)}),w(function(){fe(p(e),function(){Jt=!0})}),!sn&&Ht&&(e=ue(zn,Math.min(zn+fn-1,Nn-1))),$n?V():w(function(){fe(p(e),V)})}else $t&&ke(),G(),X()}function V(){if(sn){var e=_n?zn:Gt-1;!function t(){Yt[e-1].getBoundingClientRect().right.toFixed(2)===Yt[e].getBoundingClientRect().left.toFixed(2)?Y():setTimeout(function(){t()},16)}()}else Y()}function Y(){Ht&&!sn||(ye(),sn?(Mn=xe(),ii&&(oi=J()),Un=Hn(),E(ti||oi)):Ze()),$t&&ke(), 309G(),X()}function G(){if(_e(),zt.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+ae()+"</span> of "+Gt+"</div>"),en=zt.querySelector(".tns-liveregion .current"),gi){var e=Dn?"stop":"start";Yi?h(Yi,{"data-action":e}):u.autoplayButtonOutput&&(zt.insertAdjacentHTML(K(u.autoplayPosition),'<button data-action="'+e+'">'+Xi[0]+e+Xi[1]+On[0]+"</button>"),Yi=zt.querySelector("[data-action]")),Yi&&b(Yi,{click:He}),Dn&&(Be(),kn&&b(Wt,li),Sn&&b(Wt,di))}if(pi){if($i)h($i,{"aria-label":"Carousel Pagination"}),l(Ri=$i.children,function(e,t){h(e,{"data-nav":t,tabindex:"-1","aria-label":Bi+(t+1),"aria-controls":ei})});else{for(var t="",n=mi?"":'style="display:none"',i=0;i<Gt;i++)t+='<button data-nav="'+i+'" tabindex="-1" aria-controls="'+ei+'" '+n+' aria-label="'+Bi+(i+1)+'"></button>';t='<div class="tns-nav" aria-label="Carousel Pagination">'+t+"</div>",zt.insertAdjacentHTML(K(u.navPosition),t),$i=zt.querySelector(".tns-nav"),Ri=$i.children}if(et(),Tt){var o=Tt.substring(0,Tt.length-18).toLowerCase(),r="transition: all "+vn/1e3+"s";o&&(r="-"+o+"-"+r),a(Rn,"[aria-controls^="+ei+"-item]",r,s(Rn))}h(Ri[Mi],{"aria-label":Bi+(Mi+1)+ji}),f(Ri[Mi],"tabindex"),S(Ri[Mi],Fi),b($i,si)}fi&&(Ii||xi&&Oi||(zt.insertAdjacentHTML(K(u.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button data-controls="prev" tabindex="-1" aria-controls="'+ei+'">'+Cn[0]+'</button><button data-controls="next" tabindex="-1" aria-controls="'+ei+'">'+Cn[1]+"</button></div>"),Ii=zt.querySelector(".tns-controls")),xi&&Oi||(xi=Ii.children[0],Oi=Ii.children[1]),u.controlsContainer&&h(Ii,{"aria-label":"Carousel Navigation",tabindex:"0"}),(u.controlsContainer||u.prevButton&&u.nextButton)&&h([xi,Oi],{"aria-controls":ei,tabindex:"-1"}),(u.controlsContainer||u.prevButton&&u.nextButton)&&(h(xi,{"data-controls":"prev"}),h(Oi,{"data-controls":"next"})),Ei=Te(xi),wi=Te(Oi),we(),Ii?b(Ii,ai):(b(xi,ai),b(Oi,ai))),te()}function X(){if($t&&It){var e={};e[It]=Ke,b(Wt,e)}wn&&b(Wt,ui,u.preventScrollOnTouch),In&&b(Wt,hi),gn&&b(nt,ci),"inner"===Rt?Zn.on("outerResized",function(){Z(),Zn.emit("innerLoaded",tt())}):(St||ln||sn||bn||!Ht)&&b(it,{resize:Q}),bn&&("outer"===Rt?Zn.on("innerLoaded",he):ti||he()),le(),ti?oe():oi&&ie(),Zn.on("indexChanged",pe),"inner"===Rt&&Zn.emit("innerLoaded",tt()),"function"==typeof Qn&&Qn(tt()),Qt=!0}function Q(e){w(function(){Z(qe(e))})}function Z(e){if(Qt){"outer"===Rt&&Zn.emit("outerResized",tt(e)),Xt=A();var t,n=jt,i=!1;St&&(ee(),(t=n!==jt)&&Zn.emit("newBreakpointStart",tt(e)));var o,r,d,c,h=fn,f=ti,p=oi,v=gn,y=Tn,_=En,C=wn,w=In,I=Dn,D=kn,O=Sn,k=zn;if(t){var $=ln,K=bn,N=Cn,M=hn,z=On;if(!yt)var q=cn,W=dn}if(gn=P("arrowKeys"),Tn=P("controls"),En=P("nav"),wn=P("touch"),hn=P("center"),In=P("mouseDrag"),Dn=P("autoplay"),kn=P("autoplayHoverPause"),Sn=P("autoplayResetOnVisibility"),t&&(ti=P("disable"),ln=P("fixedWidth"),vn=P("speed"),bn=P("autoHeight"),Cn=P("controlsText"),On=P("autoplayText"),xn=P("autoplayTimeout"),yt||(dn=P("edgePadding"),cn=P("gutter"))),E(ti),un=L(),Ht&&!sn||ti||(ye(),Ht||(Ze(),i=!0)),(ln||sn)&&(Mn=xe(),Un=Hn()),(t||ln)&&(fn=P("items"),pn=P("slideBy"),(r=fn!==h)&&(ln||sn||(Un=Hn()),io())),t&&ti!==f&&(ti?oe():function(){if(ni){if(Rn.disabled=!1,Wt.className+=Jn,ke(),_n)for(var e=Kn;e--;)$t&&g(Yt[e]),g(Yt[Nn-e-1]);if(!$t)for(var t=zn,n=zn+Gt;t<n;t++){var i=Yt[t],o=t<zn+fn?Lt:Ft;i.style.left=100*(t-zn)/fn+"%",S(i,o)}ne(),ni=!1}}()),ii&&(t||ln||sn)&&(oi=J())!==p&&(oi?(Se(Oe(x(0))),ie()):(function(){if(ri){if(dn&&yt&&(qt.style.margin=""),Kn)for(var e="tns-transparent",t=Kn;t--;)$t&&R(Yt[t],e),R(Yt[Nn-t-1],e);ne(),ri=!1}}(),i=!0)),E(ti||oi),Dn||(kn=Sn=!1),gn!==v&&(gn?b(nt,ci):T(nt,ci)),Tn!==y&&(Tn?Ii?g(Ii):(xi&&g(xi),Oi&&g(Oi)):Ii?m(Ii):(xi&&m(xi),Oi&&m(Oi))),En!==_&&(En?g($i):m($i)),wn!==C&&(wn?b(Wt,ui,u.preventScrollOnTouch):T(Wt,ui)),In!==w&&(In?b(Wt,hi):T(Wt,hi)),Dn!==I&&(Dn?(Yi&&g(Yi),zi||Wi||Be()):(Yi&&m(Yi),zi&&je())),kn!==D&&(kn?b(Wt,li):T(Wt,li)),Sn!==O&&(Sn?b(nt,di):T(nt,di)),t){if(ln===$&&hn===M||(i=!0),bn!==K&&(bn||(qt.style.height="")),Tn&&Cn!==N&&(xi.innerHTML=Cn[0],Oi.innerHTML=Cn[1]),Yi&&On!==z){var U=Dn?1:0,V=Yi.innerHTML,Y=V.length-z[U].length;V.substring(Y)===z[U]&&(Yi.innerHTML=V.substring(0,Y)+On[U])}}else hn&&(ln||sn)&&(i=!0);if((r||ln&&!sn)&&(Ki=Je(),et()),(o=zn!==k)?(Zn.emit("indexChanged",tt()),i=!0):r?o||pe():(ln||sn)&&(le(),_e(),re()),r&&!$t&&function(){for(var e=zn+Math.min(Gt,fn),t=Nn;t--;){var n=Yt[t];zn<=t&&t<e?(S(n,"tns-moving"),n.style.left=100*(t-zn)/fn+"%",S(n,Lt),R(n,Ft)):n.style.left&&(n.style.left="",S(n,Ft),R(n,Lt)),R(n,Mt)}setTimeout(function(){l(Yt,function(e){R(e,"tns-moving")})},300)}(),!ti&&!oi){if(t&&!yt&&(bn===autoheightTem&&vn===speedTem||me(),dn===W&&cn===q||(qt.style.cssText=F(dn,cn,ln,vn,bn)),Ht)){$t&&(Wt.style.width=B(ln,cn,fn));var G=j(ln,cn,fn)+H(cn);c=s(d=Rn)-1,"deleteRule"in d?d.deleteRule(c):d.removeRule(c),a(Rn,"#"+ei+" > .tns-item",G,s(Rn))}bn&&he(),i&&(ke(),qn=zn)}t&&Zn.emit("newBreakpointEnd",tt(e))}}function J(){if(!ln&&!sn)return Gt<=(hn?fn-(fn-1)/2:fn);var e=ln?(ln+cn)*Gt:Zt[Gt],t=dn?un+2*dn:un+cn;return hn&&(t-=ln?(un-ln)/2:(un-(Zt[zn+1]-Zt[zn]-cn))/2),e<=t}function ee(){for(var e in jt=0,St)(e=parseInt(e))<=Xt&&(jt=e)}function te(){!Dn&&Yi&&m(Yi),!En&&$i&&m($i),Tn||(Ii?m(Ii):(xi&&m(xi),Oi&&m(Oi)))}function ne(){Dn&&Yi&&g(Yi),En&&$i&&g($i),Tn&&(Ii?g(Ii):(xi&&g(xi),Oi&&g(Oi)))}function ie(){if(!ri){if(dn&&(qt.style.margin="0px"),Kn)for(var e="tns-transparent",t=Kn;t--;)$t&&S(Yt[t],e),S(Yt[Nn-t-1],e);te(),ri=!0}}function oe(){if(!ni){if(Rn.disabled=!0,Wt.className=Wt.className.replace(Jn.substring(1),""),f(Wt,["style"]),_n)for(var e=Kn;e--;)$t&&m(Yt[e]),m(Yt[Nn-e-1]);if(Ht&&$t||f(qt,["style"]),!$t)for(var t=zn,n=zn+Gt;t<n;t++){var i=Yt[t];f(i,["style"]),R(i,Lt),R(i,Ft)}te(),ni=!0}}function re(){var e=ae();en.innerHTML!==e&&(en.innerHTML=e)}function ae(){var e=se(),t=e[0]+1,n=e[1]+1;return t===n?t+"":t+" to "+n}function se(e){null==e&&(e=Oe());var t,n,i,o=zn;if(hn||dn?(sn||ln)&&(n=-(parseFloat(e)+dn),i=n+un+2*dn):sn&&(n=Zt[zn],i=n+un),sn)Zt.forEach(function(e,r){r<Nn&&((hn||dn)&&e<=n+.5&&(o=r),.5<=i-e&&(t=r))});else{if(ln){var r=ln+cn;hn||dn?(o=Math.floor(n/r),t=Math.ceil(i/r-1)):t=o+Math.ceil(un/r)-1}else if(hn||dn){var a=fn-1;if(hn?(o-=a/2,t=zn+a/2):t=zn+a,dn){var s=dn*fn/un;o-=s,t+=s}o=Math.floor(o),t=Math.ceil(t)}else t=o+fn-1;o=Math.max(o,0),t=Math.min(t,Nn-1)}return[o,t]}function le(){$n&&!ti&&ue.apply(null,se()).forEach(function(e){if(!k(e,bi)){var t={};t[It]=function(e){e.stopPropagation()},b(e,t),b(e,Ti),e.src=c(e,"data-src");var n=c(e,"data-srcset");n&&(e.srcset=n),S(e,"loading")}})}function de(e){S(e,"loaded"),ce(e)}function ce(e){S(e,"tns-complete"),R(e,"loading"),T(e,Ti)}function ue(e,t){for(var n=[];e<=t;)l(Yt[e].querySelectorAll("img"),function(e){n.push(e)}),e++;return n}function he(){var e=ue.apply(null,se());w(function(){fe(e,ve)})}function fe(e,t){return Jt?t():(e.forEach(function(t,n){k(t,bi)&&e.splice(n,1)}),e.length?void w(function(){fe(e,t)}):t())}function pe(){le(),_e(),re(),we(),function(){if(En&&(Mi=0<=Li?Li:$(),Li=-1,Mi!==Pi)){var e=Ri[Pi],t=Ri[Mi];h(e,{tabindex:"-1","aria-label":Bi+(Pi+1)}),R(e,Fi),h(t,{"aria-label":Bi+(Mi+1)+ji}),f(t,"tabindex"),S(t,Fi),Pi=Mi}}()}function me(){$t&&bn&&(Bt.style[Tt]=vn/1e3+"s")}function ge(e,t){for(var n=[],i=e,o=Math.min(e+t,Nn);i<o;i++)n.push(Yt[i].offsetHeight);return Math.max.apply(null,n)}function ve(){var e=bn?ge(zn,fn):ge(Kn,Gt),t=Bt||qt;t.style.height!==e&&(t.style.height=e+"px")}function ye(){Zt=[0];var e=Ht?"left":"top",t=Ht?"right":"bottom",n=Yt[0].getBoundingClientRect()[e];l(Yt,function(i,o){o&&Zt.push(i.getBoundingClientRect()[e]-n),o===Nn-1&&Zt.push(i.getBoundingClientRect()[t]-n)})}function _e(){var e=se(),t=e[0],n=e[1];l(Yt,function(e,i){t<=i&&i<=n?d(e,"aria-hidden")&&(f(e,["aria-hidden","tabindex"]),S(e,_i)):d(e,"aria-hidden")||(h(e,{"aria-hidden":"true",tabindex:"-1"}),R(e,_i))})}function be(e){return e.nodeName.toLowerCase()}function Te(e){return"button"===be(e)}function Ce(e){return"true"===e.getAttribute("aria-disabled")}function Ee(e,t,n){e?t.disabled=n:t.setAttribute("aria-disabled",n.toString())}function we(){if(Tn&&!yn&&!_n){var e=Ei?xi.disabled:Ce(xi),t=wi?Oi.disabled:Ce(Oi),n=zn<=Wn,i=!yn&&Un<=zn;n&&!e&&Ee(Ei,xi,!0),!n&&e&&Ee(Ei,xi,!1),i&&!t&&Ee(wi,Oi,!0),!i&&t&&Ee(wi,Oi,!1)}}function Ie(e,t){Tt&&(e.style[Tt]=t)}function De(e){return null==e&&(e=zn),sn?(un-(dn?cn:0)-(Zt[e+1]-Zt[e]-cn))/2:ln?(un-ln)/2:(fn-1)/2}function xe(){var e=un+(dn?cn:0)-(ln?(ln+cn)*Nn:Zt[Nn]);return hn&&!_n&&(e=ln?-(ln+cn)*(Nn-1)-De():De(Nn-1)-Zt[Nn-1]),0<e&&(e=0),e}function Oe(e){var t;if(null==e&&(e=zn),Ht&&!sn)if(ln)t=-(ln+cn)*e,hn&&(t+=De());else{var n=_t?Nn:fn;hn&&(e-=De()),t=100*-e/n}else t=-Zt[e],hn&&sn&&(t+=De());return Ln&&(t=Math.max(t,Mn)),t+(!Ht||sn||ln?"px":"%")}function ke(e){Ie(Wt,"0s"),Se(e)}function Se(e){null==e&&(e=Oe()),Wt.style[Fn]=Bn+e+jn}function Re(e,t,n,i){var o=e+fn;_n||(o=Math.min(o,Nn));for(var r=e;r<o;r++){var a=Yt[r];i||(a.style.left=100*(r-zn)/fn+"%"),Pt&&Ct&&(a.style[Ct]=a.style[wt]=Pt*(r-e)/1e3+"s"),R(a,t),S(a,n),i&&An.push(a)}}function $e(e,t){Pn&&io(),(zn!==qn||t)&&(Zn.emit("indexChanged",tt()),Zn.emit("transitionStart",tt()),bn&&he(),zi&&e&&0<=["click","keydown"].indexOf(e.type)&&je(),Xn=!0,oo())}function Ae(e){return e.toLowerCase().replace(/-/g,"")}function Ke(e){if($t||Xn){if(Zn.emit("transitionEnd",tt(e)),!$t&&0<An.length)for(var t=0;t<An.length;t++){var n=An[t];n.style.left="",wt&&Ct&&(n.style[wt]="",n.style[Ct]=""),R(n,Mt),S(n,Ft)}if(!e||!$t&&e.target.parentNode===Wt||e.target===Wt&&Ae(e.propertyName)===Ae(Fn)){if(!Pn){var i=zn;io(),zn!==i&&(Zn.emit("indexChanged",tt()),ke())}"inner"===Rt&&Zn.emit("innerLoaded",tt()),Xn=!1,qn=zn}}}function Ne(e,t){if(!oi)if("prev"===e)Le(t,-1);else if("next"===e)Le(t,1);else{if(Xn){if(Vn)return;Ke()}var n=O(),i=0;if("first"===e?i=-n:"last"===e?i=$t?Gt-fn-n:Gt-1-n:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(Gt-1,e))),i=e-n)),!$t&&i&&Math.abs(i)<fn){var o=0<i?1:-1;i+=Wn<=zn+i-Gt?Gt*o:2*Gt*o*-1}zn+=i,$t&&_n&&(zn<Wn&&(zn+=Gt),Un<zn&&(zn-=Gt)),O(zn)!==O(qn)&&$e(t)}}function Le(e,t){if(Xn){if(Vn)return;Ke()}var n;if(!t){for(var i=We(e=qe(e));i!==Ii&&[xi,Oi].indexOf(i)<0;)i=i.parentNode;var o=[xi,Oi].indexOf(i);0<=o&&(n=!0,t=0===o?-1:1)}if(yn){if(zn===Wn&&-1===t)return void Ne("last",e);if(zn===Un&&1===t)return void Ne("first",e)}t&&(zn+=pn*t,sn&&(zn=Math.floor(zn)),$e(n||e&&"keydown"===e.type?e:null))}function Me(){Hi=setInterval(function(){Le(null,Vi)},xn),zi=!0}function Pe(){clearInterval(Hi),zi=!1}function Fe(e,t){h(Yi,{"data-action":e}),Yi.innerHTML=Xi[0]+e+Xi[1]+t}function Be(){Me(),Yi&&Fe("stop",On[1])}function je(){Pe(),Yi&&Fe("start",On[0])}function He(){zi?(je(),Wi=!0):(Be(),Wi=!1)}function ze(e){e.focus()}function qe(e){return Ue(e=e||it.event)?e.changedTouches[0]:e}function We(e){return e.target||it.event.srcElement}function Ue(e){return 0<=e.type.indexOf("touch")}function Ve(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ye(){return o=eo.y-Ji.y,r=eo.x-Ji.x,e=Math.atan2(o,r)*(180/Math.PI),n=!1,90-(t=Yn)<=(i=Math.abs(90-Math.abs(e)))?n="horizontal":i<=t&&(n="vertical"),n===u.axis;var e,t,n,i,o,r}function Ge(e){if(Xn){if(Vn)return;Ke()}Dn&&zi&&Pe(),to=!0,Zi&&(D(Zi),Zi=null);var t=qe(e);Zn.emit(Ue(e)?"touchStart":"dragStart",tt(e)),!Ue(e)&&0<=["img","a"].indexOf(be(We(e)))&&Ve(e),eo.x=Ji.x=t.clientX,eo.y=Ji.y=t.clientY,$t&&(Qi=parseFloat(Wt.style[Fn].replace(Bn,"")),Ie(Wt,"0s"))}function Xe(e){if(to){var t=qe(e);eo.x=t.clientX,eo.y=t.clientY,$t?Zi||(Zi=w(function(){!function t(e){if(Gn){if(D(Zi),to&&(Zi=w(function(){t(e)})),"?"===Gn&&(Gn=Ye()),Gn){!Ci&&Ue(e)&&(Ci=!0);try{e.type&&Zn.emit(Ue(e)?"touchMove":"dragMove",tt(e))}catch(t){}var n=Qi,i=no(eo,Ji);if(!Ht||ln||sn)n+=i,n+="px";else n+=_t?i*fn*100/((un+cn)*Nn):100*i/(un+cn),n+="%";Wt.style[Fn]=Bn+n+jn}}else to=!1}(e)})):("?"===Gn&&(Gn=Ye()),Gn&&(Ci=!0)),Ci&&e.preventDefault()}}function Qe(e){if(to){Zi&&(D(Zi),Zi=null),$t&&Ie(Wt,""),to=!1;var t=qe(e);eo.x=t.clientX,eo.y=t.clientY;var n=no(eo,Ji);if(Math.abs(n)){if(!Ue(e)){var i=We(e);b(i,{click:function t(e){Ve(e),T(i,{click:t})}})}$t?Zi=w(function(){if(Ht&&!sn){var t=-n*fn/(un+cn);t=0<n?Math.floor(t):Math.ceil(t),zn+=t}else{var i=-(Qi+n);if(i<=0)zn=Wn;else if(i>=Zt[Nn-1])zn=Un;else for(var o=0;o<Nn&&i>=Zt[o];)i>Zt[zn=o]&&n<0&&(zn+=1),o++}$e(e,n),Zn.emit(Ue(e)?"touchEnd":"dragEnd",tt(e))}):Gn&&Le(e,0<n?-1:1)}}"auto"===u.preventScrollOnTouch&&(Ci=!1),Yn&&(Gn="?"),Dn&&!zi&&Me()}function Ze(){(Bt||qt).style.height=Zt[zn+fn]-Zt[zn]+"px"}function Je(){var e=ln?(ln+cn)*Gt/un:Gt/fn;return Math.min(Math.ceil(e),Gt)}function et(){if(En&&!mi&&Ki!==Ni){var e=Ni,t=Ki,n=g;for(Ki<Ni&&(e=Ki,t=Ni,n=m);e<t;)n(Ri[e]),e++;Ni=Ki}}function tt(e){return{container:Wt,slideItems:Yt,navContainer:$i,navItems:Ri,controlsContainer:Ii,hasControls:fi,prevButton:xi,nextButton:Oi,items:fn,slideBy:pn,cloneCount:Kn,slideCount:Gt,slideCountNew:Nn,index:zn,indexCached:qn,displayIndex:I(),navCurrentIndex:Mi,navCurrentIndexCached:Pi,pages:Ki,pagesCached:Ni,sheet:Rn,isOn:Qt,event:e||{}}}u=e({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0},u||{});var nt=document,it=window,ot={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},rt={},at=u.useLocalStorage;if(at){var st=navigator.userAgent,lt=new Date;try{(rt=it.localStorage)?(rt.setItem(lt,lt),at=rt.getItem(lt)==lt,rt.removeItem(lt)):at=!1,at||(rt={})}catch(st){at=!1}at&&(rt.tnsApp&&rt.tnsApp!==st&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(e){rt.removeItem(e)}),localStorage.tnsApp=st)}var dt,ct,ut,ht,ft,pt,mt,gt=rt.tC?t(rt.tC):n(rt,"tC",function(){var e=document,t=i(),n=o(t),a=e.createElement("div"),s=!1;t.appendChild(a);try{for(var l,d="(10px * 10)",c=["calc"+d,"-moz-calc"+d,"-webkit-calc"+d],u=0;u<3;u++)if(l=c[u],a.style.width=l,100===a.offsetWidth){s=l.replace(d,"");break}}catch(e){}return t.fake?r(t,n):a.remove(),s}(),at),vt=rt.tPL?t(rt.tPL):n(rt,"tPL",function(){var e,t=document,n=i(),a=o(n),s=t.createElement("div"),l=t.createElement("div"),d="";s.className="tns-t-subp2",l.className="tns-t-ct";for(var c=0;c<70;c++)d+="<div></div>";return l.innerHTML=d,s.appendChild(l),n.appendChild(s),e=Math.abs(s.getBoundingClientRect().left-l.children[67].getBoundingClientRect().left)<2,n.fake?r(n,a):s.remove(),e}(),at),yt=rt.tMQ?t(rt.tMQ):n(rt,"tMQ",(ct=document,ht=o(ut=i()),ft=ct.createElement("div"),mt="@media all and (min-width:1px){.tns-mq-test{position:absolute}}",(pt=ct.createElement("style")).type="text/css",ft.className="tns-mq-test",ut.appendChild(pt),ut.appendChild(ft),pt.styleSheet?pt.styleSheet.cssText=mt:pt.appendChild(ct.createTextNode(mt)),dt=window.getComputedStyle?window.getComputedStyle(ft).position:ft.currentStyle.position,ut.fake?r(ut,ht):ft.remove(),"absolute"===dt),at),_t=rt.tTf?t(rt.tTf):n(rt,"tTf",y("transform"),at),bt=rt.t3D?t(rt.t3D):n(rt,"t3D",function(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,n=document,a=i(),s=o(a),l=n.createElement("p"),d=9<e.length?"-"+e.slice(0,-9).toLowerCase()+"-":"";return d+="transform",a.insertBefore(l,null),l.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(l).getPropertyValue(d),a.fake?r(a,s):l.remove(),void 0!==t&&0<t.length&&"none"!==t}(_t),at),Tt=rt.tTDu?t(rt.tTDu):n(rt,"tTDu",y("transitionDuration"),at),Ct=rt.tTDe?t(rt.tTDe):n(rt,"tTDe",y("transitionDelay"),at),Et=rt.tADu?t(rt.tADu):n(rt,"tADu",y("animationDuration"),at),wt=rt.tADe?t(rt.tADe):n(rt,"tADe",y("animationDelay"),at),It=rt.tTE?t(rt.tTE):n(rt,"tTE",_(Tt,"Transition"),at),Dt=rt.tAE?t(rt.tAE):n(rt,"tAE",_(Et,"Animation"),at),xt=it.console&&"function"==typeof it.console.warn,Ot=["container","controlsContainer","prevButton","
309nextButton","navContainer","autoplayButton"],kt={};if(Ot.forEach(function(e){if("string"==typeof u[e]){var t=u[e],n=nt.querySelector(t);if(kt[e]=t,!n||!n.nodeName)return void(xt&&console.warn("Can't find",u[e]));u[e]=n}}),!(u.container.children.length<1)){var St=u.responsive,Rt=u.nested,$t="carousel"===u.mode;if(St){0 in St&&(u=e(u,St[0]),delete St[0]);var At={};for(var Kt in St){var Nt=St[Kt];Nt="number"==typeof Nt?{items:Nt}:Nt,At[Kt]=Nt}St=At,At=null}if($t||function t(e){for(var n in e)$t||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}(u),!$t){u.axis="horizontal",u.slideBy="page",u.edgePadding=!1;var Lt=u.animateIn,Mt=u.animateOut,Pt=u.animateDelay,Ft=u.animateNormal}var Bt,jt,Ht="horizontal"===u.axis,zt=nt.createElement("div"),qt=nt.createElement("div"),Wt=u.container,Ut=Wt.parentNode,Vt=Wt.outerHTML,Yt=Wt.children,Gt=Yt.length,Xt=A(),Qt=!1;St&&ee(),$t&&(Wt.className+=" tns-vpfix");var Zt,Jt,en,tn,nn,on,rn,an,sn=u.autoWidth,ln=P("fixedWidth"),dn=P("edgePadding"),cn=P("gutter"),un=L(),hn=P("center"),fn=sn?1:Math.floor(P("items")),pn=P("slideBy"),mn=u.viewportMax||u.fixedWidthViewportWidth,gn=P("arrowKeys"),vn=P("speed"),yn=u.rewind,_n=!yn&&u.loop,bn=P("autoHeight"),Tn=P("controls"),Cn=P("controlsText"),En=P("nav"),wn=P("touch"),In=P("mouseDrag"),Dn=P("autoplay"),xn=P("autoplayTimeout"),On=P("autoplayText"),kn=P("autoplayHoverPause"),Sn=P("autoplayResetOnVisibility"),Rn=(an=document.createElement("style"),rn&&an.setAttribute("media",rn),document.querySelector("head").appendChild(an),an.sheet?an.sheet:an.styleSheet),$n=u.lazyload,An=(u.lazyloadSelector,[]),Kn=_n?(nn=function(){if(sn||ln&&!mn)return Gt-1;var e=ln?"fixedWidth":"items",t=[];if((ln||u[e]<Gt)&&t.push(u[e]),St)for(var n in St){var i=St[n][e];i&&(ln||i<Gt)&&t.push(i)}return t.length||t.push(0),Math.ceil(ln?mn/Math.min.apply(null,t):Math.max.apply(null,t))}(),on=$t?Math.ceil((5*nn-Gt)/2):4*nn-Gt,on=Math.max(nn,on),M("edgePadding")?on+1:on):0,Nn=$t?Gt+2*Kn:Gt+Kn,Ln=!(!ln&&!sn||_n),Mn=ln?xe():null,Pn=!$t||!_n,Fn=Ht?"left":"top",Bn="",jn="",Hn=ln?function(){return hn&&!_n?Gt-1:Math.ceil(-Mn/(ln+cn))}:sn?function(){for(var e=Nn;e--;)if(Zt[e]>=-Mn)return e}:function(){return hn&&$t&&!_n?Gt-1:_n||$t?Math.max(0,Nn-Math.ceil(fn)):Nn-1},zn=x(P("startIndex")),qn=zn,Wn=(I(),0),Un=sn?null:Hn(),Vn=u.preventActionWhenRunning,Yn=u.swipeAngle,Gn=!Yn||"?",Xn=!1,Qn=u.onInit,Zn=new C,Jn=" tns-slider tns-"+u.mode,ei=Wt.id||(tn=window.tnsId,window.tnsId=tn?tn+1:1,"tns"+window.tnsId),ti=P("disable"),ni=!1,ii=u.freezable,oi=!(!ii||sn)&&J(),ri=!1,ai={click:Le,keydown:function(e){e=qe(e);var t=[ot.LEFT,ot.RIGHT].indexOf(e.keyCode);0<=t&&(0===t?xi.disabled||Le(e,-1):Oi.disabled||Le(e,1))}},si={click:function(e){if(Xn){if(Vn)return;Ke()}for(var t=We(e=qe(e));t!==$i&&!d(t,"data-nav");)t=t.parentNode;if(d(t,"data-nav")){var n=Li=Number(c(t,"data-nav")),i=ln||sn?n*Gt/Ki:n*fn;Ne(mi?n:Math.min(Math.ceil(i),Gt-1),e),Mi===n&&(zi&&je(),Li=-1)}},keydown:function(e){e=qe(e);var t=nt.activeElement;
vendor: 4,304 bytes, line 309
309if(d(t,"data-nav")){var n=[ot.LEFT,ot.RIGHT,ot.ENTER,ot.SPACE].indexOf(e.keyCode),i=Number(c(t,"data-nav"));0<=n&&(0===n?0<i&&ze(Ri[i-1]):1===n?i<Ki-1&&ze(Ri[i+1]):Ne(Li=i,e))}}},li={mouseover:function(){zi&&(Pe(),qi=!0)},mouseout:function(){qi&&(Me(),qi=!1)}},di={visibilitychange:function(){nt.hidden?zi&&(Pe(),Ui=!0):Ui&&(Me(),Ui=!1)}},ci={keydown:function(e){e=qe(e);var t=[ot.LEFT,ot.RIGHT].indexOf(e.keyCode);0<=t&&Le(e,0===t?-1:1)}},ui={touchstart:Ge,touchmove:Xe,touchend:Qe,touchcancel:Qe},hi={mousedown:Ge,mousemove:Xe,mouseup:Qe,mouseleave:Qe},fi=M("controls"),pi=M("nav"),mi=!!sn||u.navAsThumbnails,gi=M("autoplay"),vi=M("touch"),yi=M("mouseDrag"),_i="tns-slide-active",bi="tns-complete",Ti={load:function(e){de(We(e))},error:function(e){var t;t=We(e),S(t,"failed"),ce(t)}},Ci="force"===u.preventScrollOnTouch;if(fi)var Ei,wi,Ii=u.controlsContainer,Di=u.controlsContainer?u.controlsContainer.outerHTML:"",xi=u.prevButton,Oi=u.nextButton,ki=u.prevButton?u.prevButton.outerHTML:"",Si=u.nextButton?u.nextButton.outerHTML:"";if(pi)var Ri,$i=u.navContainer,Ai=u.navContainer?u.navContainer.outerHTML:"",Ki=sn?Gt:Je(),Ni=0,Li=-1,Mi=$(),Pi=Mi,Fi="tns-nav-active",Bi="Carousel Page ",ji=" (Current Slide)";if(gi)var Hi,zi,qi,Wi,Ui,Vi="forward"===u.autoplayDirection?1:-1,Yi=u.autoplayButton,Gi=u.autoplayButton?u.autoplayButton.outerHTML:"",Xi=["<span class='tns-visually-hidden'>"," animation</span>"];if(vi||yi)var Qi,Zi,Ji={},eo={},to=!1,no=Ht?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};sn||E(ti||oi),_t&&(Fn=_t,Bn="translate",bt?(Bn+=Ht?"3d(":"3d(0px, ",jn=Ht?", 0px, 0px)":", 0px)"):(Bn+=Ht?"X(":"Y(",jn=")")),$t&&(Wt.className=Wt.className.replace("tns-vpfix","")),function(){(M("gutter"),zt.className="tns-outer",qt.className="tns-inner",zt.id=ei+"-ow",qt.id=ei+"-iw",""===Wt.id&&(Wt.id=ei),Jn+=vt||sn?" tns-subpixel":" tns-no-subpixel",Jn+=gt?" tns-calc":" tns-no-calc",sn&&(Jn+=" tns-autowidth"),Jn+=" tns-"+u.axis,Wt.className+=Jn,$t?((Bt=nt.createElement("div")).id=ei+"-mw",Bt.className="tns-ovh",zt.appendChild(Bt),Bt.appendChild(qt)):zt.appendChild(qt),bn)&&((Bt||qt).className+=" tns-ah");if(Ut.insertBefore(zt,Wt),qt.appendChild(Wt),l(Yt,function(e,t){S(e,"tns-item"),e.id||(e.id=ei+"-item"+t),!$t&&Ft&&S(e,Ft),h(e,{"aria-hidden":"true",tabindex:"-1"})}),Kn){for(var e=nt.createDocumentFragment(),t=nt.createDocumentFragment(),n=Kn;n--;){var i=n%Gt,o=Yt[i].cloneNode(!0);if(f(o,"id"),t.insertBefore(o,t.firstChild),$t){var r=Yt[Gt-1-i].cloneNode(!0);f(r,"id"),e.appendChild(r)}}Wt.insertBefore(e,Wt.firstChild),Wt.appendChild(t),Yt=Wt.children}}(),function(){if(!$t)for(var e=zn,t=zn+Math.min(Gt,fn);e<t;e++){var n=Yt[e];n.style.left=100*(e-zn)/fn+"%",S(n,Lt),R(n,Ft)}if(Ht&&(vt||sn?(a(Rn,"#"+ei+" > .tns-item","font-size:"+it.getComputedStyle(Yt[0]).fontSize+";",s(Rn)),a(Rn,"#"+ei,"font-size:0;",s(Rn))):$t&&l(Yt,function(e,t){var n;e.style.marginLeft=(n=t,gt?gt+"("+100*n+"% / "+Nn+")":100*n/Nn+"%")})),yt){if(Tt){var i=Bt&&u.autoHeight?q(u.speed):"";a(Rn,"#"+ei+"-mw",i,s(Rn))}i=F(u.edgePadding,u.gutter,u.fixedWidth,u.speed,u.autoHeight),a(Rn,"#"+ei+"-iw",i,s(Rn)),$t&&(i=Ht&&!sn?"width:"+B(u.fixedWidth,u.gutter,u.items)+";":"",Tt&&(i+=q(vn)),a(Rn,"#"+ei,i,s(Rn))),i=Ht&&!sn?j(u.fixedWidth,u.gutter,u.items):"",u.gutter&&(i+=H(u.gutter)),$t||(Tt&&(i+=q(vn)),Et&&(i+=W(vn))),i&&a(Rn,"#"+ei+" > .tns-item",i,s(Rn))}else{me(),qt.style.cssText=F(dn,cn,ln,bn),$t&&Ht&&!sn&&(Wt.style.width=B(ln,cn,fn));i=Ht&&!sn?j(ln,cn,fn):"";cn&&(i+=H(cn)),i&&a(Rn,"#"+ei+" > .tns-item",i,s(Rn))}if(St&&yt)for(var o in St){o=parseInt(o);var r=St[o],d=(i="",""),c="",h="",f="",p=sn?null:P("items",o),m=P("fixedWidth",o),g=P("speed",o),v=P("edgePadding",o),y=P("autoHeight",o),_=P("gutter",o);Tt&&Bt&&P("autoHeight",o)&&"speed"in r&&(d="#"+ei+"-mw{"+q(g)+"}"),("edgePadding"in r||"gutter"in r)&&(c="#"+ei+"-iw{"+F(v,_,m,g,y)+"}"),$t&&Ht&&!sn&&("fixedWidth"in r||"items"in r||ln&&"gutter"in r)&&(h="width:"+B(m,_,p)+";"),Tt&&"speed"in r&&(h+=q(g)),h&&(h="#"+ei+"{"+h+"}"),("fixedWidth"in r||ln&&"gutter"in r||!$t&&"items"in r)&&(f+=j(m,_,p)),"gutter"in r&&(f+=H(_)),!$t&&"speed"in r&&(Tt&&(f+=q(g)),Et&&(f+=W(g))),f&&(f="#"+ei+" > .tns-item{"+f+"}"),(i=d+c+h+f)&&Rn.insertRule("@media (min-width: "+o/16+"em) {"+i+"}",Rn.cssRules.length)}}(),U();var io=_n?$t?function(){var e=Wn,t=Un;
309e+=pn,t-=pn,dn?(e+=1,t-=1):ln&&(un+cn)%(ln+cn)&&(t-=1),Kn&&(t<zn?zn-=Gt:zn<e&&(zn+=Gt))}:function(){if(Un<zn)for(;Wn+Gt<=zn;)zn-=Gt;else if(zn<Wn)for(;zn<=Un-Gt;)zn+=Gt}:function(){zn=Math.max(Wn,Math.min(Un,zn))},oo=$t?function(){var e,t,n,i,o,r,a,s,l,d,c;Ie(Wt,""),Tt||!vn?(Se(),vn&&v(Wt)||Ke()):(e=Wt,t=Fn,n=Bn,i=jn,o=Oe(),r=vn,a=Ke,s=Math.min(r,10),l=0<=o.indexOf("%")?"%":"px",o=o.replace(l,""),d=Number(e.style[t].replace(n,"").replace(i,"").replace(l,"")),c=(o-d)/r*s,setTimeout(function u(){r-=s,d+=c,e.style[t]=n+d+l+i,0<r?setTimeout(u,s):a()},s)),Ht||Ze()}:function(){An=[];var e={};e[It]=e[Dt]=Ke,T(Yt[qn],e),b(Yt[zn],e),Re(qn,Lt,Mt,!0),Re(zn,Ft,Lt),It&&Dt&&vn&&v(Wt)||Ke()};return{version:"2.9.2",getInfo:tt,events:Zn,goTo:Ne,play:function(){Dn&&!zi&&(Be(),Wi=!1)},pause:function(){zi&&(je(),Wi=!0)},isOn:Qt,updateSliderHeight:ve,refresh:U,destroy:function(){if(Rn.disabled=!0,Rn.ownerNode&&Rn.ownerNode.remove(),T(it,{resize:Q}),gn&&T(nt,ci),Ii&&T(Ii,ai),$i&&T($i,si),T(Wt,li),T(Wt,di),Yi&&T(Yi,{click:He}),Dn&&clearInterval(Hi),$t&&It){var e={};e[It]=Ke,T(Wt,e)}wn&&T(Wt,ui),In&&T(Wt,hi);var t=[Vt,Di,ki,Si,Ai,Gi];for(var n in Ot.forEach(function(e,n){var i="container"===e?zt:u[e];if("object"==typeof i){var o=!!i.previousElementSibling&&i.previousElementSibling,r=i.parentNode;i.outerHTML=t[n],u[e]=o?o.nextElementSibling:r.firstElementChild}}),Ot=Lt=Mt=Pt=Ft=Ht=zt=qt=Wt=Ut=Vt=Yt=Gt=jt=Xt=sn=ln=dn=cn=un=fn=pn=mn=gn=vn=yn=_n=bn=Rn=$n=Zt=An=Kn=Nn=Ln=Mn=Pn=Fn=Bn=jn=Hn=zn=qn=Wn=Un=Yn=Gn=Xn=Qn=Zn=Jn=ei=ti=ni=ii=oi=ri=ai=si=li=di=ci=ui=hi=fi=pi=mi=gi=vi=yi=_i=bi=Ti=Jt=Tn=Cn=Ii=Di=xi=Oi=Ei=wi=En=$i=Ai=Ri=Ki=Ni=Li=Mi=Pi=Fi=Bi=ji=Dn=xn=Vi=On=kn=Yi=Gi=Sn=Xi=Hi=zi=qi=Wi=Ui=Ji=eo=Qi=to=Zi=no=wn=In=null,this)"rebuild"!==n&&(this[n]=null);Qt=!1},rebuild:function(){return N(e(u,kt))}}}xt&&console.warn("No slides found in",u.container)};return N}();$(document).ready(function(){$(".chosen-select").chosen();var e=new Date;$(".submit").on("change",function(){$(this).closest("form").submit()}),$("form").submit(function(){return $(this).find(".sbmtbtn").attr("disabled","disabled"),$(this).find(".teacher-selection-form-btn").addClass("btn--primary"),!0}),$(".sbmtbtns").click(function(){return $(".sbmtbtns").attr("disabled","disabled"),$(this).closest("form").submit(),!1}),$(".datetime-picker-demo").datetimepicker({allowTimes:["16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30"]}),default_time=e.getHours()+1+":00",0==e.getDay()?default_date=moment().add(1,"days").format("YYYY/MM/DD"):default_date=moment(e).format("YYYY/MM/DD"),$(".datetime-picker-demo-limited").datetimepicker({allowTimes:["16:00","16:30","17:00","17:30","18:00","18:30","19:00","19:30","20:00","20:30"],minDate:"0",maxDate:moment().add(21,"days").format("YYYY/MM/DD"),defaultTime:default_time}),$(".datetime-picker-teacher-lead").datetimepicker({allowTimes:["10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00"],minDate:"0",maxDate:moment().add(4,"days").format("YYYY/MM/DD"),defaultDate:default_date,defaultTime:e.getHours()+2+":00",disabledWeekDays:[0]}),$(".datetime-picker-parent-callback").datetimepicker({allowTimes:["11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30","19:00"],minDate:moment().add(2,"days").format("YYYY/MM/DD"),maxDate:moment().add(3,"days").format("YYYY/MM/DD"),defaultDate:moment().add(2,"days").format("YYYY/MM/DD"),defaultTime:e.getHours()+2+":00",beforeShowDay:function(e){return 0===e.getDay()?[!1,"disabled-sunday","Sunday is disabled"]:[!0,"",""]},disabledWeekDays:[0]}),$(".datetime-picker-teacher-lead-planned-time").datetimepicker({allowTimes:["10:00","10:15","10:30","10:45","11:00","11:15","11:30","11:45","12:00","12:15","12:30","12:45","13:00","13:15","13:30","13:45","14:00","14:15","14:30","14:45","15:00","15:15","15:30","15:45","16:00","16:15","16:30","16:45","17:00","17:15","17:30","17:45","18:00","18:15","18:30","18:45","19:00"],minDate:"0",maxDate:moment().add(7,"days").format("YYYY/MM/DD"),defaultDate:default_date,defaultTime:e.getHours()+2+":00",disabledWeekDays:[0]}),$(".datetime-picker-employee").datetimepicker({allowTimes:["10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00"],minDate:"0",maxDate:moment().add(4,"days").format("YYYY/MM/DD"),defaultDate:default_date,defaultTime:default_time,disabledWeekDays:[0]}),$(".datetime-picker-starter-kit").datetimepicker({allowTimes:["10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00"],minDate:moment().add(3,"days").format("YYYY/MM/DD"),maxDate:moment().add(30,"days").format("YYYY/MM/DD"),defaultDate:moment().add(3,"days").format("YYYY/MM/DD"),defaultTime:"11:00",disabledWeekDays:[0]}),$(".datepicker-default").datetimepicker({minDate:"0",defaultDate:moment().add(1,"days").format("YYYY/MM/DD"),timepicker:!1}
309),$("#filter-tiles").on("keyup",function(){var e=$(this).val();for(filter=e.toUpperCase(),tiles=document.getElementsByClassName("filter-tile"),i=0;i<tiles.length;i++)tiles[i]&&(tiles[i].getAttribute("data-filter-content").toUpperCase().indexOf(filter)>-1?tiles[i].style.display="":tiles[i].style.display="none")}),$(".cal-date").click(function(){return $("#galaxy_cal").val($(this).data("date")),!0}),$(".cal-time").click(function(){return $("#galaxy_cal").val($(".tabs li.active").data("date")+" "+$(this).data("time")),$(".tab__content > div.btn").removeClass("btn-primary"),$(this).removeClass("btn-white"),$(this).addClass("btn-primary"),$(".sbmtbtn").attr("disabled",!1),!0}),$(".cal-time-luma").click(function(){return $("#galaxy_cal").val($("a.card-body.active").data("date")+" "+$(this).data("time")),$(".cal-time-luma.btn-primary").removeClass("btn-primary").addClass("btn-secondary"),$(this).removeClass("btn-secondary").addClass("btn-primary"),$(".sbmtbtn").attr("disabled",!1),!0}),$(".tabs .cal-date").click(function(e){$(".sbmtbtn").attr("disabled",!0),$(".tab__content > div.btn").removeClass("btn--primary"),$(".tabs li.active").removeClass("active"),$(this).addClass("active"),$("#galaxy_cal").val(e.currentTarget.dataset.date)}),$(".keypad-li").click(e=>{$(".phone_input_id").focus();let t=$(".phone_input_id").val();""===e.currentTarget.innerText?t=t.slice(0,-1):t+=e.currentTarget.innerText}),$(".keypad-li").click(e=>{$(".phone_input_id").focus();let t=$(".phone_input_id").val();""===e.currentTarget.innerText?t=t.slice(0,-1):t+=e.currentTarget.innerText,$(".phone_input_id").val(t)});$(".testimonial-wrapper p")}),"complete"===document.readyState||"interactive"===document.readyState?initSlick():$(document).on("ready",()=>{initSlick()}),$(document).on("turbolinks:load",function(){initSlick(),$(".cal-date").click(function(){return $("#galaxy_cal").val($(this).data("date")),!0}),$(".cal-time").click(function(){return $("#galaxy_cal").val($(".tabs li.active").data("date")+" "+$(this).data("time")),$(".tab__content > div.btn").removeClass("btn-primary"),$(this).removeClass("btn-white"),$(this).addClass("btn-primary"),$(".sbmtbtn").attr("disabled",!1),!0}),$(".tabs .cal-date").click(function(e){$(".sbmtbtn").attr("disabled",!0),$(".tab__content > div.btn").removeClass("btn--primary"),$(".tabs li.active").removeClass("active"),$(this).addClass("active"),$("#galaxy_cal").val(e.currentTarget.dataset.date)})}),window.lumaToast&&(window.toastr[window.lumaToast.type](window.lumaToast.message,window.lumaToast.title,{showMethod:"slideDown",hideMethod:"slideUp",progressBar:!0,closeButton:!0}),window.lumaToast=null);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.