File: /var/www/gosurya-id/wp-content/cache/autoptimize/js/autoptimize_b4c9bd933d7f323fed046da658bec0aa.js
/*! jQuery Migrate v3.3.2 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],i=1;i<=3;i++){if(+o[i]<+n[i])return 1;if(+n[i]<+o[i])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.3.2",n.console&&n.console.log&&(s&&e("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var r={};function u(e){var t=n.console;s.migrateDeduplicateWarnings&&r[e]||(r[e]=!0,s.migrateWarnings.push(e),t&&t.warn&&!s.migrateMute&&(t.warn("JQMIGRATE: "+e),s.migrateTrace&&t.trace&&t.trace()))}function t(e,t,r,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n),r},set:function(e){u(n),r=e}})}function o(e,t,r,n){e[t]=function(){return u(n),r.apply(this,arguments)}}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){r={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("jQuery is not compatible with Quirks Mode");var i,a,c,d={},l=s.fn.init,p=s.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,y=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(i in s.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(u("jQuery( '#' ) is not a valid selector"),t[0]=[]),l.apply(this,t)},s.fn.init.prototype=s.fn,s.find=function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&f.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(y,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("Attribute selector with '#' was not fixed: "+r[0])}}return p.apply(this,r)},p)Object.prototype.hasOwnProperty.call(p,i)&&(s.find[i]=p[i]);o(s.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),o(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),o(s,"holdReady",s.holdReady,"jQuery.holdReady is deprecated"),o(s,"unique",s.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),t(s.expr,"filters",s.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),t(s.expr,":",s.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&o(s,"trim",function(e){return null==e?"":(e+"").replace(m,"")},"jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(o(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),o(s,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(o(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()}),o(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[Object.prototype.toString.call(e)]||"object":typeof e},"jQuery.type is deprecated"),o(s,"isFunction",function(e){return"function"==typeof e},"jQuery.isFunction() is deprecated"),o(s,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated")),s.ajax&&(a=s.ajax,c=/(=)\?(?=&|$)|\?\?/,s.ajax=function(){var e=a.apply(this,arguments);return e.promise&&(o(e,"success",e.done,"jQXHR.success is deprecated and removed"),o(e,"error",e.fail,"jQXHR.error is deprecated and removed"),o(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e},e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(c.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&c.test(e.data))&&u("JSON-to-JSONP auto-promotion is deprecated")}));var g=s.fn.removeAttr,h=s.fn.toggleClass,v=/\S+/g;function j(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}s.fn.removeAttr=function(e){var r=this;return s.each(e.match(v),function(e,t){s.expr.match.bool.test(t)&&(u("jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),g.apply(this,arguments)};var Q,b=!(s.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?h.apply(this,arguments):(u("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))}),w=/^[a-z]/,x=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return b=!0,e=r.apply(this,arguments),b=!1,e})}),s.swap=function(e,t,r,n){var o,i,a={};for(i in b||u("jQuery.swap() is undocumented and deprecated"),t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=r.apply(e,n||[]),t)e.style[i]=a[i];return o},e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),s.cssNumber||(s.cssNumber={}),Q=s.fn.css,s.fn.css=function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=j(e),n=r,w.test(n)&&x.test(n[0].toUpperCase()+n.slice(1))||s.cssNumber[r]||u('Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))};var A,k,S,M,N=s.data;s.data=function(e,t,r){var n,o,i;if(t&&"object"==typeof t&&2===arguments.length){for(i in n=s.hasData(e)&&N.call(this,e),o={},t)i!==j(i)?(u("jQuery.data() always sets/gets camelCased names: "+i),n[i]=t[i]):o[i]=t[i];return N.call(this,e,o),t}return t&&"string"==typeof t&&t!==j(t)&&(n=s.hasData(e)&&N.call(this,e))&&t in n?(u("jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):N.apply(this,arguments)},s.fx&&(S=s.Tween.prototype.run,M=function(e){return e},s.Tween.prototype.run=function(){1<s.easing[this.easing].length&&(u("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=M),S.apply(this,arguments)},A=s.fx.interval||13,k="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u(k),A},set:function(e){u(k),A=e}}));var R=s.fn.load,H=s.event.add,C=s.event.fix;s.event.props=[],s.event.fixHooks={},t(s.event.props,"concat",s.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),s.event.fix=function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=C.call(this,e),n&&n.filter?n.filter(t,e):t},s.event.add=function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("jQuery(window).on('load'...) called after load event occurred"),H.apply(this,arguments)},s.each(["load","unload","error"],function(e,t){s.fn[t]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?R.apply(this,e):(u("jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){s.fn[r]=function(e,t){return u("jQuery.fn."+r+"() event shorthand is deprecated"),0<arguments.length?this.on(r,null,e,t):this.trigger(r)}}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("'ready' event is deprecated")}},s.fn.extend({bind:function(e,t,r){return u("jQuery.fn.bind() is deprecated"),this.on(e,null,t,r)},unbind:function(e,t){return u("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,r,n){return u("jQuery.fn.delegate() is deprecated"),this.on(t,e,r,n)},undelegate:function(e,t,r){return u("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},hover:function(e,t){return u("jQuery.fn.hover() is deprecated"),this.on("mouseenter",e).on("mouseleave",t||e)}});function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}function P(e){var t=e.replace(O,"<$1></$2>");t!==e&&T(e)!==T(t)&&u("HTML tags must be properly nested and closed: "+e)}var O=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,q=s.htmlPrefilter;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.htmlPrefilter=function(e){return P(e),e.replace(O,"<$1></$2>")}},s.htmlPrefilter=function(e){return P(e),q(e)};var D,_=s.fn.offset;s.fn.offset=function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments):(u("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},s.ajax&&(D=s.param,s.param=function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)});var E,F,J=s.fn.andSelf||s.fn.addBack;return s.fn.andSelf=function(){return u("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),J.apply(this,arguments)},s.Deferred&&(E=s.Deferred,F=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],s.Deferred=function(e){var i=E(),a=i.promise();return i.pipe=a.pipe=function(){var o=arguments;return u("deferred.pipe() is deprecated"),s.Deferred(function(n){s.each(F,function(e,t){var r="function"==typeof o[e]&&o[e];i[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===a?n.promise():this,r?[e]:arguments)})}),o=null}).promise()},e&&e.call(i,i),i},s.Deferred.exceptionHook=E.exceptionHook),s});
!function(root,factory){"function"==typeof define&&define.amd?define([],factory):"object"==typeof module&&module.exports?module.exports=factory():root.PDFObject=factory()}(this,function(){"use strict";if("undefined"==typeof window||"undefined"==typeof navigator)return!1;var supportsPDFs,supportsPdfActiveX,createAXO,buildFragmentString,log,embedError,embed,getTargetElement,generatePDFJSiframe,generateEmbedElement,ua=window.navigator.userAgent,supportsPdfMimeType=void 0!==navigator.mimeTypes&&void 0!==navigator.mimeTypes["application/pdf"],isModernBrowser=void 0!==window.Promise,isFirefoxWithPDFJS=-1!==ua.indexOf("irefox")&&18<parseInt(ua.split("rv:")[1].split(".")[0],10),isIOS=/iphone|ipad|ipod/i.test(ua.toLowerCase());return createAXO=function(type){var ax;try{ax=new ActiveXObject(type)}catch(e){ax=null}return ax},supportsPdfActiveX=function(){return!(!createAXO("AcroPDF.PDF")&&!createAXO("PDF.PdfCtrl"))},supportsPDFs=!isIOS&&(isFirefoxWithPDFJS||supportsPdfMimeType||function(){return!!(window.ActiveXObject||"ActiveXObject"in window)}()&&supportsPdfActiveX()),buildFragmentString=function(pdfParams){var prop,string="";if(pdfParams){for(prop in pdfParams)pdfParams.hasOwnProperty(prop)&&(string+=encodeURIComponent(prop)+"="+encodeURIComponent(pdfParams[prop])+"&");string=string&&(string="#"+string).slice(0,string.length-1)}return string},log=function(msg){"undefined"!=typeof console&&console.log&&console.log("[PDFObject] "+msg)},embedError=function(msg){return log(msg),!1},getTargetElement=function(targetSelector){var targetNode=document.body;return"string"==typeof targetSelector?targetNode=document.querySelector(targetSelector):"undefined"!=typeof jQuery&&targetSelector instanceof jQuery&&targetSelector.length?targetNode=targetSelector.get(0):void 0!==targetSelector.nodeType&&1===targetSelector.nodeType&&(targetNode=targetSelector),targetNode},generatePDFJSiframe=function(targetNode,url,pdfOpenFragment,PDFJS_URL,id){var fullURL=PDFJS_URL+"?file="+encodeURIComponent(url)+pdfOpenFragment,iframe="<div style='"+(isIOS?"-webkit-overflow-scrolling: touch; overflow-y: scroll; ":"overflow: hidden; ")+"position: absolute; top: 0; right: 0; bottom: 0; left: 0;'><iframe "+id+" src='"+fullURL+"' style='border: none; width: 100%; height: 100%;' frameborder='0'></iframe></div>";return targetNode.className+=" pdfobject-container",targetNode.style.position="relative",targetNode.style.overflow="auto",targetNode.innerHTML=iframe,targetNode.getElementsByTagName("iframe")[0]},generateEmbedElement=function(targetNode,targetSelector,url,pdfOpenFragment,width,height,id){var style="";return style=targetSelector&&targetSelector!==document.body?"width: "+width+"; height: "+height+";":"position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;",targetNode.className+=" pdfobject-container",targetNode.innerHTML="<embed "+id+" class='pdfobject' src='"+url+pdfOpenFragment+"' type='application/pdf' style='overflow: auto; "+style+"'/>",targetNode.getElementsByTagName("embed")[0]},embed=function(url,targetSelector,options){if("string"!=typeof url)return embedError("URL is not valid");targetSelector=void 0!==targetSelector&&targetSelector;var pdfOpenFragment,id=(options=void 0!==options?options:{}).id&&"string"==typeof options.id?"id='"+options.id+"'":"",page=!!options.page&&options.page,pdfOpenParams=options.pdfOpenParams?options.pdfOpenParams:{},fallbackLink=void 0===options.fallbackLink||options.fallbackLink,width=options.width?options.width:"100%",height=options.height?options.height:"100%",assumptionMode="boolean"!=typeof options.assumptionMode||options.assumptionMode,forcePDFJS="boolean"==typeof options.forcePDFJS&&options.forcePDFJS,PDFJS_URL=!!options.PDFJS_URL&&options.PDFJS_URL,targetNode=getTargetElement(targetSelector),fallbackHTML="";return targetNode?(page&&(pdfOpenParams.page=page),pdfOpenFragment=buildFragmentString(pdfOpenParams),forcePDFJS&&PDFJS_URL?generatePDFJSiframe(targetNode,url,pdfOpenFragment,PDFJS_URL,id):supportsPDFs||assumptionMode&&isModernBrowser&&!isIOS?generateEmbedElement(targetNode,targetSelector,url,pdfOpenFragment,width,height,id):PDFJS_URL?generatePDFJSiframe(targetNode,url,pdfOpenFragment,PDFJS_URL,id):(fallbackLink&&(fallbackHTML="string"==typeof fallbackLink?fallbackLink:"<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href='[url]'>Download PDF</a></p>",targetNode.innerHTML=fallbackHTML.replace(/\[url\]/g,url)),embedError("This browser does not support embedded PDFs"))):embedError("Target element cannot be determined")},{embed:function(a,b,c){return embed(a,b,c)},pdfobjectversion:"2.1.1",supportsPDFs:supportsPDFs}});
(function($){$(function(){if($(".wpfm-nav-strech-trigger")[0]&&($(".wpfm-nav-strech-trigger").attr('id')=='right'||$(".wpfm-nav-strech-trigger").attr('id')=='left')){$('.wpfm-nav-strech-trigger').click(function(e){$this=$(this);var template_type=$(this).closest('.wpfm-menu-wrapper').attr('template-type');$(this).closest('.wpfm-menu-wrapper').toggleClass('wpfm-nav-div-open wpfm-nav-div-closed');if(template_type=='template-16'){if($(this).closest('.wpfm-menu-wrapper').hasClass('wpfm-nav-div-open')){$(this).closest('.wpfm-menu-wrapper').find('ul.wpfm-nav-show-hide').css({"visibility":"visible","opacity":"1"});}else if($(this).closest('.wpfm-menu-wrapper').hasClass('wpfm-nav-div-closed')){$(this).closest('.wpfm-menu-wrapper').find('ul.wpfm-nav-show-hide').css({"visibility":"hidden","opacity":"0"});}}else{$(this).closest('.wpfm-floating-wh-wrapper').find('.wpfm-nav-strech-trigger').fadeOut();$(this).closest('.wpfm-floating-wh-wrapper').find('ul.wpfm-nav-show-hide').animate({height:"toggle",opacity:"toggle"},"slow");}});}else if($(".wpfm-nav-strech-trigger")[0]&&($(".wpfm-nav-strech-trigger").attr('id')!='right'||$(".wpfm-nav-strech-trigger").attr('id')!='left')){$('.wpfm-nav-strech-trigger').click(function(e){$this=$(this);var template_type=$(this).closest('.wpfm-menu-wrapper').attr('template-type');$(this).closest('.wpfm-menu-wrapper').toggleClass('wpfm-nav-div-open wpfm-nav-div-closed');if(template_type=='template-16'){if($(this).closest('.wpfm-menu-wrapper').hasClass('wpfm-nav-div-open')){$(this).closest('.wpfm-menu-wrapper').find('ul.wpfm-nav-show-hide').css({"visibility":"visible","opacity":"1"});}else if($(this).closest('.wpfm-menu-wrapper').hasClass('wpfm-nav-div-closed')){$(this).closest('.wpfm-menu-wrapper').find('ul.wpfm-nav-show-hide').css({"visibility":"hidden","opacity":"0"});}}else{$(this).closest('.wpfm-floating-wh-wrapper').find('ul.wpfm-nav-show-hide').animate({height:"toggle",opacity:"toggle"},"slow");}
if($(this).attr('data-expand-default')=='block'){$(this).closest('.wpfm-floating-wh-wrapper').find('.wpfm-nav-strech-trigger').fadeOut();}});}
if($(".wpfm-nav-close-trigger")[0]&&($(".wpfm-nav-close-trigger").attr('id')=='right'||$(".wpfm-nav-close-trigger").attr('id')=='left')){$('.wpfm-nav-close-trigger').click(function(e){e.preventDefault();var template_type=$(this).closest('.wpfm-menu-wrapper').attr('template-type');$(this).closest('.wpfm-menu-wrapper').removeClass('wpfm-nav-div-open');$(this).closest('.wpfm-floating-wh-wrapper').find('.wpfm-nav-strech-trigger').fadeIn();if(template_type=='template-16'){if($(this).closest('.wpfm-menu-wrapper').hasClass('wpfm-nav-div-open')){$(this).closest('.wpfm-menu-wrapper').find('ul.wpfm-nav-show-hide').css({"visibility":"visible","opacity":"1"});}else if($(this).closest('.wpfm-menu-wrapper').hasClass('wpfm-nav-div-closed')){$(this).closest('.wpfm-menu-wrapper').find('ul.wpfm-nav-show-hide').css({"visibility":"hidden","opacity":"0"});}}else{$(this).closest('.wpfm-floating-wh-wrapper').find('ul.wpfm-nav-show-hide').animate({"height":"hide",opacity:"hide"},"slow");}});}else if($(".wpfm-nav-close-trigger")[0]&&($(".wpfm-nav-close-trigger").attr('id')!='right'||$(".wpfm-nav-close-trigger").attr('id')!='left')){$('.wpfm-nav-close-trigger').click(function(e){e.preventDefault();var template_type=$(this).closest('.wpfm-menu-wrapper').attr('template-type');$(this).closest('.wpfm-menu-wrapper').removeClass('wpfm-nav-div-open');if(template_type=='template-16'){if($(this).closest('.wpfm-menu-wrapper').hasClass('wpfm-nav-div-open')){$(this).closest('.wpfm-menu-wrapper').find('ul.wpfm-nav-show-hide').css({"visibility":"hidden","opacity":"0"});}else if($(this).closest('.wpfm-menu-wrapper').hasClass('wpfm-nav-div-closed')){$(this).closest('.wpfm-menu-wrapper').find('ul.wpfm-nav-show-hide').css({"visibility":"visible","opacity":"1"});}}else{$(this).closest('.wpfm-floating-wh-wrapper').find('ul.wpfm-nav-show-hide').animate({"height":"hide",opacity:"hide"},"slow");}
if($(this).attr('data-expand-default')=='block'){$(this).closest('.wpfm-floating-wh-wrapper').find('.wpfm-nav-strech-trigger').fadeIn();}});}
$(".wpfm-menu-name").hover(function(){$(this).find('.wpfm-tootltip-title').css('opacity','1');});var clickBtn=true;if("ontouchstart"in document.documentElement){document.documentElement.className+=" wpfm-touch";var container=$('#wpfm-floating-menu-nav ul li a, #wpfm-floating-menu-nav ul li.wpfm-modal-popup-link a, #wpfm-floating-menu-nav ul li a[href^="#"]');$(document).on('click','#wpfm-floating-menu-nav ul li a, #wpfm-floating-menu-nav ul li.wpfm-modal-popup-link a, #wpfm-floating-menu-nav ul li a[href^="#"]',function(e){container.not(this).removeClass('wpfm_hover_effect');$(this).toggleClass('wpfm_hover_effect')
if($(this).hasClass('wpfm_hover_effect')){e.preventDefault();}else{}});$(document).mouseup(function(e)
{if(!container.is(e.target)&&container.has(e.target).length===0)
{container.removeClass('wpfm_hover_effect');}});}
if($('.wpfm-floating-wh-wrapper a[href^="#"]').length>0){$(document).on("scroll",onScroll);}
$('.wpfm-floating-wh-wrapper a[href^="#"]').on('click',function(e){e.preventDefault();var target=$(this).attr('href');if($(target).length>0){$('html, body').stop().animate({'scrollTop':$(target).offset().top+1},900,'swing',function(){$(document).on("scroll",onScroll);});}});function onScroll(event){var scrollPos=$(document).scrollTop();$('.wpfm-menu-wrapper a[href^="#"]').each(function(){var currLink=$(this);var refElement=$(currLink.attr("href"));var positon_offset_var=$(this).data("pos-offset-var");if(positon_offset_var=='1'){if(refElement!='#'&&$(refElement).length>0){if(refElement.offset().top){if(refElement.offset().top<=scrollPos&&refElement.offset().top+refElement.height()>scrollPos){$('.wpfm-menu-wrapper ul li').removeClass("wpfm-active-nav");currLink.parent("li").addClass("wpfm-active-nav");}else{currLink.parent("li").removeClass("wpfm-active-nav");}}}}else{if(refElement!='#'&&$(refElement).length>0){if(refElement.position().top){if(refElement.position().top<=scrollPos&&refElement.position().top+refElement.height()>scrollPos){$('.wpfm-menu-wrapper ul li').removeClass("wpfm-active-nav");currLink.parent("li").addClass("wpfm-active-nav");}else{currLink.parent("li").removeClass("wpfm-active-nav");}}}}});}
$('.wpfm-menu-wrapper').each(function(){$this=$(this);var scroll_call=$this.data('scroll-call');var scroll_pos_val=$this.data('scroll-value');if(scroll_call===1){$(document).scroll(function(){var y=$(this).scrollTop();if(y>=scroll_pos_val){$('[data-scroll-call="1"]').show();}else{$('[data-scroll-call="1"]').hide();}});}});$('.wpfm-menu-wrapper ul li.wpfm-modal-popup-link a').on('click',function(e){if($(this).closest('li').hasClass('wpfm-modal-popup-link')){e.preventDefault();var menu_id=$(this).closest('.wpfm-menu-wrapper').attr('menu-id');var section_id=$(this).closest('li').data('li-key');$('.wpfm-menu-additional-content-inner').fadeOut();$('.wpfm-menu-additional-content-overlay').fadeOut();$(this).closest('.wpfm-menu-wrapper').find('#wpfm-id-'+menu_id+'-key-'+section_id+'-content').fadeToggle();$(this).closest('.wpfm-menu-wrapper').find('#wpfm-menu-additional-content-overlay-'+menu_id).fadeToggle();}else{e.preventDefault();}});$('.wpfm-menu-additional-content-close, .wpfm-menu-additional-content-overlay').on('click',function(e){$('.wpfm-menu-additional-content-inner').hide();$('.wpfm-menu-additional-content-overlay').hide();});});}(jQuery));
/*!
* Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
var l,a;l=this,a=function(){"use strict";var l={},a={};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(a=document)}catch(l){}var e=(l.navigator||{}).userAgent,r=void 0===e?"":e,n=l,o=a,u=(n.document,!!o.documentElement&&!!o.head&&"function"==typeof o.addEventListener&&o.createElement,~r.indexOf("MSIE")||r.indexOf("Trident/"),"___FONT_AWESOME___"),t=function(){try{return"production"===process.env.NODE_ENV}catch(l){return!1}}();var f=n||{};f[u]||(f[u]={}),f[u].styles||(f[u].styles={}),f[u].hooks||(f[u].hooks={}),f[u].shims||(f[u].shims=[]);var i=f[u],s=[["glass",null,"glass-martini"],["meetup","fab",null],["star-o","far","star"],["remove",null,"times"],["close",null,"times"],["gear",null,"cog"],["trash-o","far","trash-alt"],["file-o","far","file"],["clock-o","far","clock"],["arrow-circle-o-down","far","arrow-alt-circle-down"],["arrow-circle-o-up","far","arrow-alt-circle-up"],["play-circle-o","far","play-circle"],["repeat",null,"redo"],["rotate-right",null,"redo"],["refresh",null,"sync"],["list-alt","far",null],["dedent",null,"outdent"],["video-camera",null,"video"],["picture-o","far","image"],["photo","far","image"],["image","far","image"],["pencil",null,"pencil-alt"],["map-marker",null,"map-marker-alt"],["pencil-square-o","far","edit"],["share-square-o","far","share-square"],["check-square-o","far","check-square"],["arrows",null,"arrows-alt"],["times-circle-o","far","times-circle"],["check-circle-o","far","check-circle"],["mail-forward",null,"share"],["expand",null,"expand-alt"],["compress",null,"compress-alt"],["eye","far",null],["eye-slash","far",null],["warning",null,"exclamation-triangle"],["calendar",null,"calendar-alt"],["arrows-v",null,"arrows-alt-v"],["arrows-h",null,"arrows-alt-h"],["bar-chart","far","chart-bar"],["bar-chart-o","far","chart-bar"],["twitter-square","fab",null],["facebook-square","fab",null],["gears",null,"cogs"],["thumbs-o-up","far","thumbs-up"],["thumbs-o-down","far","thumbs-down"],["heart-o","far","heart"],["sign-out",null,"sign-out-alt"],["linkedin-square","fab","linkedin"],["thumb-tack",null,"thumbtack"],["external-link",null,"external-link-alt"],["sign-in",null,"sign-in-alt"],["github-square","fab",null],["lemon-o","far","lemon"],["square-o","far","square"],["bookmark-o","far","bookmark"],["twitter","fab",null],["facebook","fab","facebook-f"],["facebook-f","fab","facebook-f"],["github","fab",null],["credit-card","far",null],["feed",null,"rss"],["hdd-o","far","hdd"],["hand-o-right","far","hand-point-right"],["hand-o-left","far","hand-point-left"],["hand-o-up","far","hand-point-up"],["hand-o-down","far","hand-point-down"],["arrows-alt",null,"expand-arrows-alt"],["group",null,"users"],["chain",null,"link"],["scissors",null,"cut"],["files-o","far","copy"],["floppy-o","far","save"],["navicon",null,"bars"],["reorder",null,"bars"],["pinterest","fab",null],["pinterest-square","fab",null],["google-plus-square","fab",null],["google-plus","fab","google-plus-g"],["money","far","money-bill-alt"],["unsorted",null,"sort"],["sort-desc",null,"sort-down"],["sort-asc",null,"sort-up"],["linkedin","fab","linkedin-in"],["rotate-left",null,"undo"],["legal",null,"gavel"],["tachometer",null,"tachometer-alt"],["dashboard",null,"tachometer-alt"],["comment-o","far","comment"],["comments-o","far","comments"],["flash",null,"bolt"],["clipboard","far",null],["paste","far","clipboard"],["lightbulb-o","far","lightbulb"],["exchange",null,"exchange-alt"],["cloud-download",null,"cloud-download-alt"],["cloud-upload",null,"cloud-upload-alt"],["bell-o","far","bell"],["cutlery",null,"utensils"],["file-text-o","far","file-alt"],["building-o","far","building"],["hospital-o","far","hospital"],["tablet",null,"tablet-alt"],["mobile",null,"mobile-alt"],["mobile-phone",null,"mobile-alt"],["circle-o","far","circle"],["mail-reply",null,"reply"],["github-alt","fab",null],["folder-o","far","folder"],["folder-open-o","far","folder-open"],["smile-o","far","smile"],["frown-o","far","frown"],["meh-o","far","meh"],["keyboard-o","far","keyboard"],["flag-o","far","flag"],["mail-reply-all",null,"reply-all"],["star-half-o","far","star-half"],["star-half-empty","far","star-half"],["star-half-full","far","star-half"],["code-fork",null,"code-branch"],["chain-broken",null,"unlink"],["shield",null,"shield-alt"],["calendar-o","far","calendar"],["maxcdn","fab",null],["html5","fab",null],["css3","fab",null],["ticket",null,"ticket-alt"],["minus-square-o","far","minus-square"],["level-up",null,"level-up-alt"],["level-down",null,"level-down-alt"],["pencil-square",null,"pen-square"],["external-link-square",null,"external-link-square-alt"],["compass","far",null],["caret-square-o-down","far","caret-square-down"],["toggle-down","far","caret-square-down"],["caret-square-o-up","far","caret-square-up"],["toggle-up","far","caret-square-up"],["caret-square-o-right","far","caret-square-right"],["toggle-right","far","caret-square-right"],["eur",null,"euro-sign"],["euro",null,"euro-sign"],["gbp",null,"pound-sign"],["usd",null,"dollar-sign"],["dollar",null,"dollar-sign"],["inr",null,"rupee-sign"],["rupee",null,"rupee-sign"],["jpy",null,"yen-sign"],["cny",null,"yen-sign"],["rmb",null,"yen-sign"],["yen",null,"yen-sign"],["rub",null,"ruble-sign"],["ruble",null,"ruble-sign"],["rouble",null,"ruble-sign"],["krw",null,"won-sign"],["won",null,"won-sign"],["btc","fab",null],["bitcoin","fab","btc"],["file-text",null,"file-alt"],["sort-alpha-asc",null,"sort-alpha-down"],["sort-alpha-desc",null,"sort-alpha-down-alt"],["sort-amount-asc",null,"sort-amount-down"],["sort-amount-desc",null,"sort-amount-down-alt"],["sort-numeric-asc",null,"sort-numeric-down"],["sort-numeric-desc",null,"sort-numeric-down-alt"],["youtube-square","fab",null],["youtube","fab",null],["xing","fab",null],["xing-square","fab",null],["youtube-play","fab","youtube"],["dropbox","fab",null],["stack-overflow","fab",null],["instagram","fab",null],["flickr","fab",null],["adn","fab",null],["bitbucket","fab",null],["bitbucket-square","fab","bitbucket"],["tumblr","fab",null],["tumblr-square","fab",null],["long-arrow-down",null,"long-arrow-alt-down"],["long-arrow-up",null,"long-arrow-alt-up"],["long-arrow-left",null,"long-arrow-alt-left"],["long-arrow-right",null,"long-arrow-alt-right"],["apple","fab",null],["windows","fab",null],["android","fab",null],["linux","fab",null],["dribbble","fab",null],["skype","fab",null],["foursquare","fab",null],["trello","fab",null],["gratipay","fab",null],["gittip","fab","gratipay"],["sun-o","far","sun"],["moon-o","far","moon"],["vk","fab",null],["weibo","fab",null],["renren","fab",null],["pagelines","fab",null],["stack-exchange","fab",null],["arrow-circle-o-right","far","arrow-alt-circle-right"],["arrow-circle-o-left","far","arrow-alt-circle-left"],["caret-square-o-left","far","caret-square-left"],["toggle-left","far","caret-square-left"],["dot-circle-o","far","dot-circle"],["vimeo-square","fab",null],["try",null,"lira-sign"],["turkish-lira",null,"lira-sign"],["plus-square-o","far","plus-square"],["slack","fab",null],["wordpress","fab",null],["openid","fab",null],["institution",null,"university"],["bank",null,"university"],["mortar-board",null,"graduation-cap"],["yahoo","fab",null],["google","fab",null],["reddit","fab",null],["reddit-square","fab",null],["stumbleupon-circle","fab",null],["stumbleupon","fab",null],["delicious","fab",null],["digg","fab",null],["pied-piper-pp","fab",null],["pied-piper-alt","fab",null],["drupal","fab",null],["joomla","fab",null],["spoon",null,"utensil-spoon"],["behance","fab",null],["behance-square","fab",null],["steam","fab",null],["steam-square","fab",null],["automobile",null,"car"],["envelope-o","far","envelope"],["spotify","fab",null],["deviantart","fab",null],["soundcloud","fab",null],["file-pdf-o","far","file-pdf"],["file-word-o","far","file-word"],["file-excel-o","far","file-excel"],["file-powerpoint-o","far","file-powerpoint"],["file-image-o","far","file-image"],["file-photo-o","far","file-image"],["file-picture-o","far","file-image"],["file-archive-o","far","file-archive"],["file-zip-o","far","file-archive"],["file-audio-o","far","file-audio"],["file-sound-o","far","file-audio"],["file-video-o","far","file-video"],["file-movie-o","far","file-video"],["file-code-o","far","file-code"],["vine","fab",null],["codepen","fab",null],["jsfiddle","fab",null],["life-ring","far",null],["life-bouy","far","life-ring"],["life-buoy","far","life-ring"],["life-saver","far","life-ring"],["support","far","life-ring"],["circle-o-notch",null,"circle-notch"],["rebel","fab",null],["ra","fab","rebel"],["resistance","fab","rebel"],["empire","fab",null],["ge","fab","empire"],["git-square","fab",null],["git","fab",null],["hacker-news","fab",null],["y-combinator-square","fab","hacker-news"],["yc-square","fab","hacker-news"],["tencent-weibo","fab",null],["qq","fab",null],["weixin","fab",null],["wechat","fab","weixin"],["send",null,"paper-plane"],["paper-plane-o","far","paper-plane"],["send-o","far","paper-plane"],["circle-thin","far","circle"],["header",null,"heading"],["sliders",null,"sliders-h"],["futbol-o","far","futbol"],["soccer-ball-o","far","futbol"],["slideshare","fab",null],["twitch","fab",null],["yelp","fab",null],["newspaper-o","far","newspaper"],["paypal","fab",null],["google-wallet","fab",null],["cc-visa","fab",null],["cc-mastercard","fab",null],["cc-discover","fab",null],["cc-amex","fab",null],["cc-paypal","fab",null],["cc-stripe","fab",null],["bell-slash-o","far","bell-slash"],["trash",null,"trash-alt"],["copyright","far",null],["eyedropper",null,"eye-dropper"],["area-chart",null,"chart-area"],["pie-chart",null,"chart-pie"],["line-chart",null,"chart-line"],["lastfm","fab",null],["lastfm-square","fab",null],["ioxhost","fab",null],["angellist","fab",null],["cc","far","closed-captioning"],["ils",null,"shekel-sign"],["shekel",null,"shekel-sign"],["sheqel",null,"shekel-sign"],["meanpath","fab","font-awesome"],["buysellads","fab",null],["connectdevelop","fab",null],["dashcube","fab",null],["forumbee","fab",null],["leanpub","fab",null],["sellsy","fab",null],["shirtsinbulk","fab",null],["simplybuilt","fab",null],["skyatlas","fab",null],["diamond","far","gem"],["intersex",null,"transgender"],["facebook-official","fab","facebook"],["pinterest-p","fab",null],["whatsapp","fab",null],["hotel",null,"bed"],["viacoin","fab",null],["medium","fab",null],["y-combinator","fab",null],["yc","fab","y-combinator"],["optin-monster","fab",null],["opencart","fab",null],["expeditedssl","fab",null],["battery-4",null,"battery-full"],["battery",null,"battery-full"],["battery-3",null,"battery-three-quarters"],["battery-2",null,"battery-half"],["battery-1",null,"battery-quarter"],["battery-0",null,"battery-empty"],["object-group","far",null],["object-ungroup","far",null],["sticky-note-o","far","sticky-note"],["cc-jcb","fab",null],["cc-diners-club","fab",null],["clone","far",null],["hourglass-o","far","hourglass"],["hourglass-1",null,"hourglass-start"],["hourglass-2",null,"hourglass-half"],["hourglass-3",null,"hourglass-end"],["hand-rock-o","far","hand-rock"],["hand-grab-o","far","hand-rock"],["hand-paper-o","far","hand-paper"],["hand-stop-o","far","hand-paper"],["hand-scissors-o","far","hand-scissors"],["hand-lizard-o","far","hand-lizard"],["hand-spock-o","far","hand-spock"],["hand-pointer-o","far","hand-pointer"],["hand-peace-o","far","hand-peace"],["registered","far",null],["creative-commons","fab",null],["gg","fab",null],["gg-circle","fab",null],["tripadvisor","fab",null],["odnoklassniki","fab",null],["odnoklassniki-square","fab",null],["get-pocket","fab",null],["wikipedia-w","fab",null],["safari","fab",null],["chrome","fab",null],["firefox","fab",null],["opera","fab",null],["internet-explorer","fab",null],["television",null,"tv"],["contao","fab",null],["500px","fab",null],["amazon","fab",null],["calendar-plus-o","far","calendar-plus"],["calendar-minus-o","far","calendar-minus"],["calendar-times-o","far","calendar-times"],["calendar-check-o","far","calendar-check"],["map-o","far","map"],["commenting",null,"comment-dots"],["commenting-o","far","comment-dots"],["houzz","fab",null],["vimeo","fab","vimeo-v"],["black-tie","fab",null],["fonticons","fab",null],["reddit-alien","fab",null],["edge","fab",null],["credit-card-alt",null,"credit-card"],["codiepie","fab",null],["modx","fab",null],["fort-awesome","fab",null],["usb","fab",null],["product-hunt","fab",null],["mixcloud","fab",null],["scribd","fab",null],["pause-circle-o","far","pause-circle"],["stop-circle-o","far","stop-circle"],["bluetooth","fab",null],["bluetooth-b","fab",null],["gitlab","fab",null],["wpbeginner","fab",null],["wpforms","fab",null],["envira","fab",null],["wheelchair-alt","fab","accessible-icon"],["question-circle-o","far","question-circle"],["volume-control-phone",null,"phone-volume"],["asl-interpreting",null,"american-sign-language-interpreting"],["deafness",null,"deaf"],["hard-of-hearing",null,"deaf"],["glide","fab",null],["glide-g","fab",null],["signing",null,"sign-language"],["viadeo","fab",null],["viadeo-square","fab",null],["snapchat","fab",null],["snapchat-ghost","fab",null],["snapchat-square","fab",null],["pied-piper","fab",null],["first-order","fab",null],["yoast","fab",null],["themeisle","fab",null],["google-plus-official","fab","google-plus"],["google-plus-circle","fab","google-plus"],["font-awesome","fab",null],["fa","fab","font-awesome"],["handshake-o","far","handshake"],["envelope-open-o","far","envelope-open"],["linode","fab",null],["address-book-o","far","address-book"],["vcard",null,"address-card"],["address-card-o","far","address-card"],["vcard-o","far","address-card"],["user-circle-o","far","user-circle"],["user-o","far","user"],["id-badge","far",null],["drivers-license",null,"id-card"],["id-card-o","far","id-card"],["drivers-license-o","far","id-card"],["quora","fab",null],["free-code-camp","fab",null],["telegram","fab",null],["thermometer-4",null,"thermometer-full"],["thermometer",null,"thermometer-full"],["thermometer-3",null,"thermometer-three-quarters"],["thermometer-2",null,"thermometer-half"],["thermometer-1",null,"thermometer-quarter"],["thermometer-0",null,"thermometer-empty"],["bathtub",null,"bath"],["s15",null,"bath"],["window-maximize","far",null],["window-restore","far",null],["times-rectangle",null,"window-close"],["window-close-o","far","window-close"],["times-rectangle-o","far","window-close"],["bandcamp","fab",null],["grav","fab",null],["etsy","fab",null],["imdb","fab",null],["ravelry","fab",null],["eercast","fab","sellcast"],["snowflake-o","far","snowflake"],["superpowers","fab",null],["wpexplorer","fab",null],["cab",null,"taxi"]];return function(l){try{l()}catch(l){if(!t)throw l}}(function(){var l;"function"==typeof i.hooks.addShims?i.hooks.addShims(s):(l=i.shims).push.apply(l,s)}),s},"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):l["fontawesome-free-shims"]=a();
(function($){'use strict';$(document).ready(function(){var selector=$('.embedpress-embed-document-pdf');if(selector.length){selector.each(function(index,value){var $this=$(this),id=$this.data('emid'),src=$this.data('emsrc');PDFObject.embed(src,"."+id);});}});function embedPressResponsiveEmbeds(){var proportion,parentWidth;document.querySelectorAll('iframe').forEach(function(iframe){if(iframe.width&&iframe.height){proportion=parseFloat(iframe.width)/parseFloat(iframe.height);parentWidth=parseFloat(window.getComputedStyle(iframe.parentElement,null).width.replace('px',''));iframe.style.maxWidth='100%';iframe.style.maxHeight=Math.round(parentWidth/proportion).toString()+'px';}});}
embedPressResponsiveEmbeds();window.onresize=embedPressResponsiveEmbeds;})(jQuery);
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o="1.6.0",i={},l={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var o=[],i=!1,l=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){var e=t(this);return this!==document&&this!==window?!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(e[l]()>0?o.push(this):(e[l](1),i=e[l]()>0,i&&o.push(this),e[l](0))):(o.push(document.scrollingElement),!1):void 0}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,i){if(o=o||{},"options"===o)return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var l=t.extend({},t.fn.smoothScroll.defaults,o),s=function(o){var i=this,s=t(this),n=t.extend({},l,s.data("ssOpts")||{}),c=l.exclude,a=n.excludeWithin,r=0,h=0,u=!0,d={},p=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(i.pathname),m=location.hostname===i.hostname||!i.hostname,g=n.scrollTarget||f===p,v=e(i.hash);if(n.scrollTarget||m&&g&&v){for(;u&&r<c.length;)s.is(e(c[r++]))&&(u=!1);for(;u&&h<a.length;)s.closest(a[h++]).length&&(u=!1)}else u=!1;u&&(n.preventDefault&&o.preventDefault(),t.extend(d,n,{scrollTarget:n.scrollTarget||v,link:i}),t.smoothScroll(d))};return null!==o.delegateSelector?this.undelegate(o.delegateSelector,"click.smoothscroll").delegate(o.delegateSelector,"click.smoothscroll",s):this.unbind("click.smoothscroll").bind("click.smoothscroll",s),this}}),t.smoothScroll=function(e,o){if("options"===e&&"object"==typeof o)return t.extend(i,o);var l,s,n,c,a,r=0,h="offset",u="scrollTop",d={},p={};"number"==typeof e?(l=t.extend({link:null},t.fn.smoothScroll.defaults,i),n=e):(l=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},i),l.scrollElement&&(h="position","static"===l.scrollElement.css("position")&&l.scrollElement.css("position","relative"))),u="left"===l.direction?"scrollLeft":u,l.scrollElement?(s=l.scrollElement,/^(?:HTML|BODY)$/.test(s[0].nodeName)||(r=s[u]())):s=t("html, body").firstScrollable(l.direction),l.beforeScroll.call(s,l),n="number"==typeof e?e:o||t(l.scrollTarget)[h]()&&t(l.scrollTarget)[h]()[l.direction]||0,d[u]=n+r+l.offset,c=l.speed,"auto"===c&&(a=Math.abs(d[u]-s[u]()),c=a/l.autoCoefficient),p={duration:c,easing:l.easing,complete:function(){l.afterScroll.call(l.link,l)}},l.step&&(p.step=l.step),s.length?s.stop().animate(d,p):l.afterScroll.call(l.link,l)},t.smoothScroll.version=o,t.smoothScroll.filterPath=function(t){return t=t||"",t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=l}),jQuery.cookie=function(t,e,o){if(arguments.length>1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),(null===e||void 0===e)&&(o.expires=-1),"number"==typeof o.expires){var i=o.expires,l=o.expires=new Date;l.setDate(l.getDate()+i)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=e||{};var s,n=o.raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?n(s[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t("body a").click(function(){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var o=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(o).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),offset="undefined"!=typeof tocplus.smooth_scroll_offset?-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?-30:0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if("undefined"!=typeof tocplus.visibility_show){var o="undefined"!=typeof tocplus.visibility_hide_by_default?!0:!1;if(t.cookie)var i=t.cookie("tocplus_hidetoc")?tocplus.visibility_show:tocplus.visibility_hide;else var i=tocplus.visibility_hide;o&&(i=i==tocplus.visibility_hide?tocplus.visibility_show:tocplus.visibility_hide),t("#toc_container p.toc_title").append(' <span class="toc_toggle">[<a href="#">'+i+"</a>]</span>"),i==tocplus.visibility_show&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){switch(e.preventDefault(),t(this).html()){case t("<div/>").html(tocplus.visibility_hide).text():t(this).html(tocplus.visibility_show),t.cookie&&(o?t.cookie("tocplus_hidetoc",null,{path:"/"}):t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"})),t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth();break;case t("<div/>").html(tocplus.visibility_show).text():default:t(this).html(tocplus.visibility_hide),t.cookie&&(o?t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"}):t.cookie("tocplus_hidetoc",null,{path:"/"})),t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast")}})}}});
/*!
* jQuery blockUI plugin
* Version 2.70.0-2014.11.23
* Requires jQuery v1.7 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2013 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
*/
!function(){"use strict";function e(p){p.fn._fadeIn=p.fn.fadeIn;var b=p.noop||function(){},h=/MSIE/.test(navigator.userAgent),k=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),y=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);p.blockUI=function(e){o(window,e)},p.unblockUI=function(e){v(window,e)},p.growlUI=function(e,t,o,n){var i=p('<div class="growlUI"></div>');e&&i.append("<h1>"+e+"</h1>"),t&&i.append("<h2>"+t+"</h2>"),o===undefined&&(o=3e3);var s=function(e){e=e||{},p.blockUI({message:i,fadeIn:"undefined"!=typeof e.fadeIn?e.fadeIn:700,fadeOut:"undefined"!=typeof e.fadeOut?e.fadeOut:1e3,timeout:"undefined"!=typeof e.timeout?e.timeout:o,centerY:!1,showOverlay:!1,onUnblock:n,css:p.blockUI.defaults.growlCSS})};s();i.css("opacity");i.on("mouseover",function(){s({fadeIn:0,timeout:3e4});var e=p(".blockMsg");e.stop(),e.fadeTo(300,1)}).on("mouseout",function(){p(".blockMsg").fadeOut(1e3)})},p.fn.block=function(e){if(this[0]===window)return p.blockUI(e),this;var t=p.extend({},p.blockUI.defaults,e||{});return this.each(function(){var e=p(this);t.ignoreIfBlocked&&e.data("blockUI.isBlocked")||e.unblock({fadeOut:0})}),this.each(function(){"static"==p.css(this,"position")&&(this.style.position="relative",p(this).data("blockUI.static",!0)),this.style.zoom=1,o(this,e)})},p.fn.unblock=function(e){return this[0]===window?(p.unblockUI(e),this):this.each(function(){v(this,e)})},p.blockUI.version=2.7,p.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var m=null,g=[];function o(e,o){var t,n,i,s,l,d,a,c,r,u=e==window,f=o&&o.message!==undefined?o.message:undefined;(o=p.extend({},p.blockUI.defaults,o||{})).ignoreIfBlocked&&p(e).data("blockUI.isBlocked")||(o.overlayCSS=p.extend({},p.blockUI.defaults.overlayCSS,o.overlayCSS||{}),i=p.extend({},p.blockUI.defaults.css,o.css||{}),o.onOverlayClick&&(o.overlayCSS.cursor="pointer"),s=p.extend({},p.blockUI.defaults.themedCSS,o.themedCSS||{}),f=f===undefined?o.message:f,u&&m&&v(window,{fadeOut:0}),f&&"string"!=typeof f&&(f.parentNode||f.jquery)&&(t=f.jquery?f[0]:f,a={},p(e).data("blockUI.history",a),a.el=t,a.parent=t.parentNode,a.display=t.style.display,a.position=t.style.position,a.parent&&a.parent.removeChild(t)),p(e).data("blockUI.onUnblock",o.onUnblock),r=o.baseZ,a=h||o.forceIframe?p('<iframe class="blockUI" style="z-index:'+r+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+o.iframeSrc+'"></iframe>'):p('<div class="blockUI" style="display:none"></div>'),t=o.theme?p('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+r+++';display:none"></div>'):p('<div class="blockUI blockOverlay" style="z-index:'+r+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),o.theme&&u?(c='<div class="blockUI '+o.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(r+10)+';display:none;position:fixed">',o.title&&(c+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(o.title||" ")+"</div>"),c+='<div class="ui-widget-content ui-dialog-content"></div>',c+="</div>"):o.theme?(c='<div class="blockUI '+o.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(r+10)+';display:none;position:absolute">',o.title&&(c+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(o.title||" ")+"</div>"),c+='<div class="ui-widget-content ui-dialog-content"></div>',c+="</div>"):c=u?'<div class="blockUI '+o.blockMsgClass+' blockPage" style="z-index:'+(r+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+o.blockMsgClass+' blockElement" style="z-index:'+(r+10)+';display:none;position:absolute"></div>',r=p(c),f&&(o.theme?(r.css(s),r.addClass("ui-widget-content")):r.css(i)),o.theme||t.css(o.overlayCSS),t.css("position",u?"fixed":"absolute"),(h||o.forceIframe)&&a.css("opacity",0),c=[a,t,r],n=p(u?"body":e),p.each(c,function(){this.appendTo(n)}),o.theme&&o.draggable&&p.fn.draggable&&r.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),s=y&&(!p.support.boxModel||0<p("object,embed",u?null:e).length),(k||s)&&(u&&o.allowBodyStretch&&p.support.boxModel&&p("html,body").css("height","100%"),!k&&p.support.boxModel||u||(i=U(e,"borderTopWidth"),s=U(e,"borderLeftWidth"),l=i?"(0 - "+i+")":0,d=s?"(0 - "+s+")":0),p.each(c,function(e,t){t=t[0].style;t.position="absolute",e<2?(u?t.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+o.quirksmodeOffsetHack+') + "px"'):t.setExpression("height",'this.parentNode.offsetHeight + "px"'),u?t.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):t.setExpression("width",'this.parentNode.offsetWidth + "px"'),d&&t.setExpression("left",d),l&&t.setExpression("top",l)):o.centerY?(u&&t.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),t.marginTop=0):!o.centerY&&u&&(e="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(o.css&&o.css.top?parseInt(o.css.top,10):0)+') + "px"',t.setExpression("top",e))})),f&&((o.theme?r.find(".ui-widget-content"):r).append(f),(f.jquery||f.nodeType)&&p(f).show()),(h||o.forceIframe)&&o.showOverlay&&a.show(),o.fadeIn?(c=o.onBlock?o.onBlock:b,a=o.showOverlay&&!f?c:b,c=f?c:b,o.showOverlay&&t._fadeIn(o.fadeIn,a),f&&r._fadeIn(o.fadeIn,c)):(o.showOverlay&&t.show(),f&&r.show(),o.onBlock&&o.onBlock.bind(r)()),I(1,e,o),u?(m=r[0],g=p(o.focusableElements,m),o.focusInput&&setTimeout(w,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-U(n,"borderLeftWidth"),n=(n.offsetHeight-e.offsetHeight)/2-U(n,"borderTopWidth");t&&(i.left=0<s?s+"px":"0");o&&(i.top=0<n?n+"px":"0")}(r[0],o.centerX,o.centerY),o.timeout&&(r=setTimeout(function(){u?p.unblockUI(o):p(e).unblock(o)},o.timeout),p(e).data("blockUI.timeout",r)))}function v(e,t){var o,n,i=e==window,s=p(e),l=s.data("blockUI.history"),d=s.data("blockUI.timeout");d&&(clearTimeout(d),s.removeData("blockUI.timeout")),t=p.extend({},p.blockUI.defaults,t||{}),I(0,e,t),null===t.onUnblock&&(t.onUnblock=s.data("blockUI.onUnblock"),s.removeData("blockUI.onUnblock")),n=i?p(document.body).children().filter(".blockUI").add("body > .blockUI"):s.find(">.blockUI"),t.cursorReset&&(1<n.length&&(n[1].style.cursor=t.cursorReset),2<n.length&&(n[2].style.cursor=t.cursorReset)),i&&(m=g=null),t.fadeOut?(o=n.length,n.stop().fadeOut(t.fadeOut,function(){0==--o&&a(n,l,t,e)})):a(n,l,t,e)}function a(e,t,o,n){var i=p(n);i.data("blockUI.isBlocked")||(e.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),t&&t.el&&(t.el.style.display=t.display,t.el.style.position=t.position,t.el.style.cursor="default",t.parent&&t.parent.appendChild(t.el),i.removeData("blockUI.history")),i.data("blockUI.static")&&i.css("position","static"),"function"==typeof o.onUnblock&&o.onUnblock(n,o),n=(i=p(document.body)).width(),o=i[0].style.width,i.width(n-1).width(n),i[0].style.width=o)}function I(e,t,o){var n=t==window,t=p(t);!e&&(n&&!m||!n&&!t.data("blockUI.isBlocked"))||(t.data("blockUI.isBlocked",e),n&&o.bindEvents&&(!e||o.showOverlay)&&(n="mousedown mouseup keydown keypress keyup touchstart touchend touchmove",e?p(document).on(n,o,i):p(document).off(n,i)))}function i(e){if("keydown"===e.type&&e.keyCode&&9==e.keyCode&&m&&e.data.constrainTabKey){var t=!e.shiftKey&&e.target===g[g.length-1],o=e.shiftKey&&e.target===g[0];if(t||o)return setTimeout(function(){w(o)},10),!1}var n=e.data,t=p(e.target);return t.hasClass("blockOverlay")&&n.onOverlayClick&&n.onOverlayClick(e),0<t.parents("div."+n.blockMsgClass).length||0===t.parents().children().filter("div.blockUI").length}function w(e){!g||(e=g[!0===e?g.length-1:0])&&e.trigger("focus")}function U(e,t){return parseInt(p.css(e,t),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
jQuery(function(d){if("undefined"==typeof wc_add_to_cart_params)return!1;var t=function(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),d(document.body).on("click",".add_to_cart_button",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",this.updateButton).on("ajax_request_not_sent.adding_to_cart",this.updateButton).on("added_to_cart removed_from_cart",{addToCartHandler:this},this.updateFragments)};t.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},t.prototype.run=function(){var t=this,a=t.requests[0].complete;t.requests[0].complete=function(){"function"==typeof a&&a(),t.requests.shift(),0<t.requests.length&&t.run()},d.ajax(this.requests[0])},t.prototype.onAddToCart=function(t){var a=d(this);if(a.is(".ajax_add_to_cart")){if(!a.attr("data-product_id"))return!0;if(t.preventDefault(),a.removeClass("added"),a.addClass("loading"),!1===d(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[a]))return d(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,a]),!0;var e={};d.each(a.data(),function(t,a){e[t]=a}),d.each(a[0].dataset,function(t,a){e[t]=a}),d(document.body).trigger("adding_to_cart",[a,e]),t.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:e,success:function(t){t&&(t.error&&t.product_url?window.location=t.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?d(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,a]):window.location=wc_add_to_cart_params.cart_url)},dataType:"json"})}},t.prototype.onRemoveFromCart=function(t){var a=d(this),e=a.closest(".woocommerce-mini-cart-item");t.preventDefault(),e.block({message:null,overlayCSS:{opacity:.6}}),t.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:a.data("cart_item_key")},success:function(t){t&&t.fragments?d(document.body).trigger("removed_from_cart",[t.fragments,t.cart_hash,a]):window.location=a.attr("href")},error:function(){window.location=a.attr("href")},dataType:"json"})},t.prototype.updateButton=function(t,a,e,r){(r=void 0!==r&&r)&&(r.removeClass("loading"),a&&r.addClass("added"),a&&!wc_add_to_cart_params.is_cart&&0===r.parent().find(".added_to_cart").length&&r.after('<a href="'+wc_add_to_cart_params.cart_url+'" class="added_to_cart wc-forward" title="'+wc_add_to_cart_params.i18n_view_cart+'">'+wc_add_to_cart_params.i18n_view_cart+"</a>"),d(document.body).trigger("wc_cart_button_updated",[r]))},t.prototype.updateFragments=function(t,a){a&&(d.each(a,function(t){d(t).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),d.each(a,function(t,a){d(t).replaceWith(a),d(t).stop(!0).css("opacity","1").unblock()}),d(document.body).trigger("wc_fragments_loaded"))},new t});
/*!
* JavaScript Cookie v2.1.4
* https://github.com/js-cookie/js-cookie
*
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
* Released under the MIT license
*/
!function(e){var n,o,t=!1;"function"==typeof define&&define.amd&&(define(e),t=!0),"object"==typeof exports&&(module.exports=e(),t=!0),t||(n=window.Cookies,(o=window.Cookies=e()).noConflict=function(){return window.Cookies=n,o})}(function(){function m(){for(var e=0,n={};e<arguments.length;e++){var o,t=arguments[e];for(o in t)n[o]=t[o]}return n}return function e(C){function g(e,n,o){var t,r;if("undefined"!=typeof document){if(1<arguments.length){"number"==typeof(o=m({path:"/"},g.defaults,o)).expires&&((r=new Date).setMilliseconds(r.getMilliseconds()+864e5*o.expires),o.expires=r),o.expires=o.expires?o.expires.toUTCString():"";try{t=JSON.stringify(n),/^[\{\[]/.test(t)&&(n=t)}catch(l){}n=C.write?C.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var i,c="";for(i in o)o[i]&&(c+="; "+i,!0!==o[i]&&(c+="="+o[i]));return document.cookie=e+"="+n+c}e||(t={});for(var s=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,p=0;p<s.length;p++){var a=s[p].split("=");'"'===(u=a.slice(1).join("=")).charAt(0)&&(u=u.slice(1,-1));try{var d=a[0].replace(f,decodeURIComponent),u=C.read?C.read(u,d):C(u,d)||u.replace(f,decodeURIComponent);if(this.json)try{u=JSON.parse(u)}catch(l){}if(e===d){t=u;break}e||(t[d]=u)}catch(l){}}return t}}return(g.set=g).get=function(e){return g.call(g,e)},g.getJSON=function(){return g.apply({json:!0},[].slice.call(arguments))},g.defaults={},g.remove=function(e,n){g(e,"",m(n,{expires:-1}))},g.withConverter=e,g}(function(){})});
jQuery(function(s){s(".woocommerce-ordering").on("change","select.orderby",function(){s(this).closest("form").trigger("submit")}),s("input.qty:not(.product-quantity input.qty)").each(function(){var o=parseFloat(s(this).attr("min"));0<=o&&parseFloat(s(this).val())<o&&s(this).val(o)});var e="store_notice"+(s(".woocommerce-store-notice").data("noticeId")||"");"hidden"===Cookies.get(e)?s(".woocommerce-store-notice").hide():s(".woocommerce-store-notice").show(),s(".woocommerce-store-notice__dismiss-link").on("click",function(o){Cookies.set(e,"hidden",{path:"/"}),s(".woocommerce-store-notice").hide(),o.preventDefault()}),s(".woocommerce-input-wrapper span.description").length&&s(document.body).on("click",function(){s(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),s(".woocommerce-input-wrapper").on("click",function(o){o.stopPropagation()}),s(".woocommerce-input-wrapper :input").on("keydown",function(o){var e=s(this).parent().find("span.description");if(27===o.which&&e.length&&e.is(":visible"))return e.prop("aria-hidden",!0).slideUp(250),o.preventDefault(),!1}).on("click focus",function(){var o=s(this).parent(),e=o.find("span.description");o.addClass("currentTarget"),s(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),e.length&&e.is(":hidden")&&e.prop("aria-hidden",!1).slideDown(250),o.removeClass("currentTarget")}),s.scroll_to_notices=function(o){o.length&&s("html, body").animate({scrollTop:o.offset().top-100},1e3)},s('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),s(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),s(".password-input").append('<span class="show-password-input"></span>'),s(".show-password-input").on("click",function(){s(this).hasClass("display-password")?s(this).removeClass("display-password"):s(this).addClass("display-password"),s(this).hasClass("display-password")?s(this).siblings(['input[type="password"]']).prop("type","text"):s(this).siblings('input[type="text"]').prop("type","password")})});
jQuery(function(r){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,o=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(w){t=!1}function a(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function s(e){t&&(localStorage.setItem(o,e),sessionStorage.setItem(o,e))}var e={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(e){e&&e.fragments&&(r.each(e.fragments,function(e,t){r(e).replaceWith(t)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e.fragments)),s(e.cart_hash),e.cart_hash&&a()),r(document.body).trigger("wc_fragments_refreshed"))},error:function(){r(document.body).trigger("wc_fragments_ajax_error")}};function n(){r.ajax(e)}if(t){var i=null;r(document.body).on("wc_fragment_refresh updated_wc_div",function(){n()}),r(document.body).on("added_to_cart removed_from_cart",function(e,t,r){var n=sessionStorage.getItem(o);null!==n&&n!==undefined&&""!==n||a(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),s(r)}),r(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(n,864e5)}),r(window).on("storage onstorage",function(e){o===e.originalEvent.key&&localStorage.getItem(o)!==sessionStorage.getItem(o)&&n()}),r(window).on("pageshow",function(e){e.originalEvent.persisted&&(r(".widget_shopping_cart_content").empty(),r(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(o),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=+m+864e5,m=(new Date).getTime();if(d<m)throw"Fragment expired";i=setTimeout(n,d-m)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";r.each(c,function(e,t){r(e).replaceWith(t)}),r(document.body).trigger("wc_fragments_loaded")}catch(w){n()}}else n();0<Cookies.get("woocommerce_items_in_cart")?r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),r(document.body).on("adding_to_cart",function(){r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){n()})});
"use strict";function _readOnlyError(a){throw new Error("\""+a+"\" is read-only")}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}(function(){function b(d,e,g){function a(j,i){if(!e[j]){if(!d[j]){var f="function"==typeof require&&require;if(!i&&f)return f(j,!0);if(h)return h(j,!0);var c=new Error("Cannot find module '"+j+"'");throw c.code="MODULE_NOT_FOUND",c}var k=e[j]={exports:{}};d[j][0].call(k.exports,function(b){var c=d[j][1][b];return a(c||b)},k,k.exports,b,d,e,g)}return e[j].exports}for(var h="function"==typeof require&&require,c=0;c<g.length;c++)a(g[c]);return a}return b})()({1:[function(a){a("./lightbox")},{"./lightbox":2}],2:[function(a){var b=a("./lightbox/Lightbox");(function(a){a.fn.lightbox={},a.fn.lightbox.parseJsonData=function(b){var c=[];return a.each(b,function(){c.push([this.url,this.title])}),c},a.fn.lightbox.defaults={adminBarHeight:28,overlayOpacity:.8,borderSize:10,imageArray:[],activeImage:null,inprogress:!1,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:!0,disableNavbarLinks:!0,loopImages:!0,imageClickClose:!0,jsonData:null,jsonDataParser:null,followScroll:!1,isIE8:!1},a(document).ready(function(a){var c="object"==("undefined"==typeof JQLBSettings?"undefined":_typeof(JQLBSettings));c&&JQLBSettings.resizeSpeed&&(JQLBSettings.resizeSpeed=parseInt(JQLBSettings.resizeSpeed)),c&&JQLBSettings.marginSize&&(JQLBSettings.marginSize=parseInt(JQLBSettings.marginSize));new b(a("a[rel^=\"lightbox\"]"),{adminBarHeight:a("#wpadminbar").height()||0,linkTarget:c&&JQLBSettings.linkTarget.length?JQLBSettings.linkTarget:"_self",displayHelp:!!(c&&JQLBSettings.help.length),marginSize:c&&JQLBSettings.marginSize?JQLBSettings.marginSize:0,fitToScreen:!!(c&&"1"==JQLBSettings.fitToScreen),resizeSpeed:c&&0<=JQLBSettings.resizeSpeed?JQLBSettings.resizeSpeed:400,displayDownloadLink:!(c&&"0"==JQLBSettings.displayDownloadLink),navbarOnTop:!(c&&"0"==JQLBSettings.navbarOnTop),strings:c&&"string"==typeof JQLBSettings.help?JQLBSettings:{help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",prevLinkText:"« Previous",nextLinkText:"Next »",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download"}})})})(jQuery)},{"./lightbox/Lightbox":6}],3:[function(a,b){var c=window.jQuery,d=function(){function a(b,c){_classCallCheck(this,a),this.config=b,this.helper=c}return _createClass(a,[{key:"changeImage",value:function changeImage(a){if(!1==this.config.inprogress){this.config.inprogress=!0,this.config.activeImage=a;var b=document.getElementById("loading"),c=document.getElementById("lightboxImage"),d=document.getElementById("hoverNav"),e=document.getElementById("prevLink"),f=document.getElementById("nextLink");b&&this.helper.show(b),c&&this.helper.hide(c),d&&this.helper.hide(d),e&&this.helper.hide(e),f&&this.helper.hide(f),this.doChangeImage()}}},{key:"doChangeImage",value:function doChangeImage(){var a=this;this.config.imgPreloader=new Image,this.config.imgPreloader.onload=function(){var b=document.getElementById("lightboxImage");b&&(b.src=a.config.imageArray[a.config.activeImage][0]),a.doScale(),a.preloadNeighborImages()},this.config.imgPreloader.src=this.config.imageArray[this.config.activeImage][0]}},{key:"doScale",value:function doScale(){var a=Math.round;this.updateDetails();var b=document.getElementById("overlay");if(b&&this.config.imgPreloader){var c=this.config.imgPreloader.width,d=this.config.imgPreloader.height,e=this.helper.getPageSize(),f=e.pageWindowWidth<e.pageDocumentWidth?e.pageDocumentWidth:e.pageWindowWidth;b.style.width=f+"px",b.style.height=e.pageDocumentHeight+"px";var g=document.getElementById("imageDataContainer"),h=e.viewportHeight-(g.offsetHeight+2*this.config.borderSize),i=e.pageWindowWidth-2*this.config.borderSize;if(this.config.fitToScreen){var j=h-this.config.marginSize,k=i-this.config.marginSize,l=1;d>j&&(l=j/d),c*=l,d*=l,l=1,c>k&&(l=k/c),c=a(c*l),d=a(d*l)}var m=this.helper.getPageScroll(),n=m.yScroll+.5*h,o=n-.5*d,p=m.xScroll,q=document.getElementById("lightboxImage");q.style.width=c,q.style.height=d,this.resizeImageContainer(c,d,o,p)}}},{key:"resizeImageContainer",value:function resizeImageContainer(a,b,d,e){var f=Math.max,g=this,h=document.getElementById("outerImageContainer"),i=document.getElementById("imageDataContainer");if(h&&i){this.config.widthCurrent=h.offsetWidth,this.config.heightCurrent=h.offsetHeight;var j=f(350,a+2*(this.config.borderSize||0)),k=b+2*(this.config.borderSize||0);this.config.xScale=100*(j/this.config.widthCurrent),this.config.yScale=100*(k/this.config.heightCurrent),this.helper.setLightBoxPos(d,e),c("#imageDataContainer").animate({width:j},this.config.resizeSpeed,"linear"),c("#outerImageContainer").animate({width:j},this.config.resizeSpeed,"linear",function(){c("#outerImageContainer").animate({height:k},g.config.resizeSpeed,"linear",function(){g.showImage()})}),this.showNavigationElements(),document.getElementById("prevLink")&&(document.getElementById("prevLink").style.height=b),document.getElementById("nextLink")&&(document.getElementById("nextLink").style.height=b)}}},{key:"showImage",value:function showImage(){this.helper.show(document.getElementById("imageData")),this.helper.show(document.getElementById("caption")),this.helper.hide(document.getElementById("loading")),0<this.config.resizeSpeed?c("#lightboxImage").fadeIn("fast"):this.helper.show(document.getElementById("lightboxImage")),this.config.inprogress=!1}},{key:"preloadNeighborImages",value:function preloadNeighborImages(){if(this.config.loopImages&&1<this.config.imageArray.length){var a=new Image;a.src=this.config.imageArray[this.config.activeImage==this.config.imageArray.length-1?0:this.config.activeImage+1][0];var b=new Image;b.src=this.config.imageArray[0==this.config.activeImage?this.config.imageArray.length-1:this.config.activeImage-1][0]}else{if(this.config.imageArray.length-1>this.config.activeImage){var c=new Image;c.src=this.config.imageArray[this.config.activeImage+1][0]}if(0<this.config.activeImage){var d=new Image;d.src=this.config.imageArray[this.config.activeImage-1][0]}}}},{key:"updateDetails",value:function updateDetails(){var a=document.getElementById("numberDisplay");a&&(a.innerHTML="");var b=document.getElementById("caption");b&&(b.innerHTML="",this.helper.hide(b),this.config.imageArray[this.config.activeImage][1]&&(b.innerHTML=this.config.imageArray[this.config.activeImage][1],this.helper.show()));var c="",d="",e=1<this.config.imageArray.length?this.config.strings.image+(this.config.activeImage+1)+this.config.strings.of+this.config.imageArray.length:"",f=this.config.displayDownloadLink?"<a href=\""+this.config.imageArray[this.config.activeImage][0]+"\" id=\"downloadLink\" target=\""+this.config.linkTarget+"\">"+this.config.strings.download+"</a>":"",g="";1<this.config.imageArray.length&&!this.config.disableNavbarLinks&&((0<this.config.activeImage||this.config.loopImages)&&(d="<a title=\""+this.config.strings.prevLinkTitle+"\" href=\"#\" id=\"prevLinkText\">"+this.config.strings.prevLinkText+"</a>"),(this.config.activeImage+1<this.config.imageArray.length||this.config.loopImages)&&(g+="<a title=\""+this.config.strings.nextLinkTitle+"\" href=\"#\" id=\"nextLinkText\">"+this.config.strings.nextLinkText+"</a>")),c=d+c+e+f+g,""!=c&&document.getElementById("numberDisplay")&&(document.getElementById("numberDisplay").innerHTML=c,this.helper.show(document.getElementById("numberDisplay")))}},{key:"showNavigationElements",value:function showNavigationElements(){var a=document.getElementById("prevLink"),b=document.getElementById("prevLinkText"),c=document.getElementById("nextLink"),d=document.getElementById("nextLinkText");1<this.config.imageArray.length&&(this.helper.show(document.getElementById("hoverNav")),this.config.loopImages?(this.helper.show(a),this.helper.show(b),this.helper.show(c),this.helper.show(d)):(0!=this.config.activeImage&&(this.helper.show(a),this.helper.show(b)),this.config.activeImage!=this.config.imageArray.length-1&&(this.helper.show(c),this.helper.show(c))))}}]),a}();b.exports=d},{}],4:[function(a,b){var c=function(){function a(b,c){_classCallCheck(this,a),this.config=b,this.parent=c}return _createClass(a,[{key:"bindNavigationButtons",value:function bindNavigationButtons(a){var b=document.getElementById("prevLink"),c=document.getElementById("prevLinkText"),d=document.getElementById("nextLink"),e=document.getElementById("nextLinkText");b&&b.addEventListener("click",this.onNavigationButtonClick.bind(this,a,"prev")),c&&c.addEventListener("click",this.onNavigationButtonClick.bind(this,a,"prev")),d&&d.addEventListener("click",this.onNavigationButtonClick.bind(this,a,"next")),e&&e.addEventListener("click",this.onNavigationButtonClick.bind(this,a,"next"))}},{key:"onNavigationButtonClick",value:function onNavigationButtonClick(a,b,c){if(c.stopPropagation(),c.preventDefault(),"prev"===b){var d=0==this.config.activeImage?this.config.imageArray.length-1:this.config.activeImage-1;a(d)}if("next"===b){var e=this.config.activeImage==this.config.imageArray.length-1?0:this.config.activeImage+1;a(e)}}},{key:"enableKeyboardNav",value:function enableKeyboardNav(a){document.addEventListener("keydown",this.keyboardAction.bind(this,a))}},{key:"keyboardAction",value:function keyboardAction(a,b){var c=String.fromCharCode,d=this.config,e=b.keyCode,f=c(e).toLowerCase();return"x"==f||"o"==f||"c"==f||e==27?this.parent.end():"p"==f||37==e?d.loopImages?a(0==d.activeImage?d.imageArray.length-1:d.activeImage-1):0!=d.activeImage&&a(d.activeImage-1):("n"==f||39==e)&&(this.config.loopImages?a(d.activeImage==d.imageArray.length-1?0:d.activeImage+1):d.activeImage!=d.imageArray.length-1&&a(d.activeImage+1)),!1}}]),a}();b.exports=c},{}],5:[function(a,b){var c=window.jQuery,d=function(){function a(b){_classCallCheck(this,a),this.config=b}return _createClass(a,[{key:"hide",value:function hide(a){a&&(a.style.display="none")}},{key:"show",value:function show(a){a&&(a.style.display="block")}},{key:"getPageSize",value:function getPageSize(){var a=document.documentElement.scrollHeight,b=document.documentElement.scrollWidth;this.config.isIE8&&4096<a&&(a=(_readOnlyError("pageDocumentHeight"),4096));var c=document.documentElement.clientHeight-this.config.adminBarHeight,d=document.documentElement.clientWidth,e={pageDocumentWidth:b,pageDocumentHeight:a,pageWindowWidth:d,viewportHeight:c,documentScrollHeight:document.documentElement.scrollHeight};return e}},{key:"isIE8",value:function isIE8(){var a=!1;if(document.createElement){var b=document.createElement("div");b&&b.querySelectorAll&&(b.innerHTML="<object><param name=\"\"></object>",a=1!=b.querySelectorAll("param").length),b=null}return a}},{key:"getPageScroll",value:function getPageScroll(){var a=0,b=0;self.pageYOffset?(b=self.pageYOffset,a=self.pageXOffset):document.documentElement&&document.documentElement.scrollTop?(b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft):document.body&&(b=document.body.scrollTop,a=document.body.scrollLeft);var c=document.getElementById("wpadminbar");if(c){var d=window.getComputedStyle(c),e=d.getPropertyValue("top");this.config.adminBarHeight&&0===parseInt(e,10)&&(b+=this.config.adminBarHeight)}return{xScroll:a,yScroll:b}}},{key:"setLightBoxPos",value:function setLightBoxPos(a,b){return 0<this.config.resizeSpeed?(c("#lightbox").animate({top:a},250,"linear"),c("#lightbox").animate({left:b},250,"linear").show()):c("#lightbox").css({top:a+"px",left:b+"px"}).show()}}]),a}();b.exports=d},{}],6:[function(a,b){var c=window.jQuery,d=a("./Helper"),e=a("./Display"),f=a("./Events"),g=function(){function a(b,g){_classCallCheck(this,a),this.config=c.extend({},c.fn.lightbox.defaults,g),this.helper=new d(this.config),this.display=new e(this.config,this.helper),this.events=new f(this.config,this),this.loader(b)}return _createClass(a,[{key:"loader",value:function loader(a){for(var b=0;b<a.length;b++)a[b].addEventListener("click",this.onClick.bind(this,a[b]))}},{key:"onClick",value:function onClick(a,b){b.preventDefault(),this.initialize(),this.start(a)}},{key:"initialize",value:function initialize(){var a=this;if(window.addEventListener("orientationchange",this.resizeListener.bind(this)),window.addEventListener("resize",this.resizeListener.bind(this)),!document.getElementById("overlay")||document.getElementById("overlay").remove(),!document.getElementById("lightbox")||document.getElementById("lightbox").remove(),this.config.isIE8=this.helper.isIE8(),this.config.inprogress=!1,this.config.jsonData&&0<this.config.jsonData.length){var b=this.config.jsonDataParser?this.config.jsonDataParser:c.fn.lightbox.parseJsonData;this.config.imageArray=[],this.config.imageArray=b(this.config.jsonData)}var d="<div id=\"outerImageContainer\"><div id=\"imageContainer\"><img id=\"lightboxImage\"><div id=\"hoverNav\"><a href=\"javascript:void(0);\" title=\""+this.config.strings.prevLinkTitle+"\" id=\"prevLink\"></a><a href=\"javascript:void(0);\" id=\"nextLink\" title=\""+this.config.strings.nextLinkTitle+"\"></a></div><div id=\"loading\"><a href=\"javascript:void(0);\" id=\"loadingLink\"><div id=\"jqlb_loading\"></div></a></div></div></div>",e="<div id=\"imageDataContainer\" class=\"clearfix\"><div id=\"imageData\"><div id=\"imageDetails\"><span id=\"caption\"></span><span id=\"numberDisplay\"></span></div><div id=\"bottomNav\">";this.config.displayHelp&&(e+="<span id=\"helpDisplay\">"+this.config.strings.help+"</span>"),e+="<a href=\"javascript:void(0);\" id=\"bottomNavClose\" title=\""+this.config.strings.closeTitle+"\"><div id=\"jqlb_closelabel\"></div></a></div></div></div>";var f;this.config.navbarOnTop?(f="<div id=\"overlay\"></div><div id=\"lightbox\">"+e+d+"</div>",c("body").append(f),c("#imageDataContainer").addClass("ontop")):(f="<div id=\"overlay\"></div><div id=\"lightbox\">"+d+e+"</div>",c("body").append(f));var g=document.getElementById("overlay"),h=document.getElementById("lightbox"),i=document.getElementById("loadingLink"),j=document.getElementById("bottomNavClose"),k=document.getElementById("outerImageContainer"),l=document.getElementById("imageDataContainer"),m=document.getElementById("lightboxImage"),n=document.getElementById("hoverNav");g&&(g.addEventListener("click",function(){return a.end()}),this.helper.hide(g)),h&&(h.addEventListener("click",function(){return a.end()}),this.helper.hide(h)),i&&i.addEventListener("click",function(){return a.end()}),j&&j.addEventListener("click",function(){return a.end()}),this.events.bindNavigationButtons(this.display.changeImage.bind(this.display)),this.events.enableKeyboardNav(this.display.changeImage.bind(this.display)),k&&(k.style.width=this.config.widthCurrent+"px",k.style.height=this.config.heightCurrent+"px"),l&&(l.style.width=this.config.widthCurrent+"px")}},{key:"resizeListener",value:function resizeListener(){var a=this;this.config.resizeTimeout&&(clearTimeout(this.config.resizeTimeout),this.config.resizeTimeout=!1),this.config.resizeTimeout=setTimeout(function(){a.display.doScale(!1)},50)}},{key:"start",value:function start(b){var d=this;document.querySelectorAll("select, embed, object").forEach(function(a){d.helper.hide(a)});var e=this.helper.getPageSize(),f=this.helper.getPageScroll(),g=0,h=document.getElementById("overlay");c("#overlay").hide().css({width:e.pageDocumentWidth+"px",height:e.pageDocumentHeight+"px",opacity:this.config.overlayOpacity}).fadeIn(400),this.config.isIE8&&4096==e.pageDocumentHeight&&1e3<=f.yScroll&&(g=f.yScroll-1e3,0>e.documentScrollHeight-(f.yScroll+3096)&&(g-=f.yScroll+3096-e.documentScrollHeight),h.style.top=g+"px");var k=0;if(!this.config.jsonData)if(this.config.imageArray=[],!b.rel||""==b.rel){var l=b.title||b.parentElement.firstChild.title||"";console.log(b),this.config.imageArray.push([b.href,this.config.displayTitle?l:""])}else document.querySelectorAll("a").forEach(function(c){if(c.href&&c.rel===b.rel){var a="",e=c.parentElement.querySelector("img:first-of-type");c.title?a=c.title:e&&(a=e.title);var f="",g="",h=c.parentElement.parentElement.querySelector(".gallery-caption"),i=c.parentElement.querySelector(".wp-caption-text");h?(f=h.textContent,g=h.innerHTML):i&&(f=i.textContent,g=i.innerHTML),a=a.trim(),g=g.trim(),a.toLowerCase()===g.toLowerCase()&&(a=g,f="");var j="";""!=a&&(j="<span id=\"titleText\">"+a+"</span>"),""!=f&&(""!=a&&(j+="<br />"),j+="<span id=\"captionText\">"+f+"</span>"),d.config.imageArray.push([c.href,d.config.displayTitle?j:""])}});if(1<this.config.imageArray.length){for(var a=0;a<this.config.imageArray.length;a++)for(var i=this.config.imageArray.length-1;i>a;i--)this.config.imageArray[a][0]==this.config.imageArray[i][0]&&this.config.imageArray.splice(i,1);for(;this.config.imageArray[k][0]!=b.href;)k++}this.helper.setLightBoxPos(f[1],f[0]),this.display.changeImage(k)}},{key:"end",value:function end(){var a=this;document.getElementById("lightbox").remove(),c("#overlay").fadeOut(function(){document.getElementById("overlay").remove()}),document.querySelectorAll("select, embed, object").forEach(function(b){a.helper.show(b)})}}]),a}();b.exports=g},{"./Display":3,"./Events":4,"./Helper":5}]},{},[1]);
!function(t){"function"==typeof define&&define.amd?define("mapbox",t):t()}(function(){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function e(t){if(t=Object.assign({},t),!(this instanceof e))throw new Error("MapboxLanguage needs to be called with the new keyword");this.setLanguage=this.setLanguage.bind(this),this._initialStyleUpdate=this._initialStyleUpdate.bind(this),this._defaultLanguage=t.defaultLanguage,this._isLanguageField=t.languageField||/^\{name/,this._getLanguageField=t.getLanguageField||function(t){return"mul"===t?"{name}":"{name_"+t+"}"},this._languageSource=t.languageSource||null,this._languageTransform=t.languageTransform||function(t,e){return"ar"===e?function(t){var e=t.layers.map(function(t){if(!(t.layout||{})["text-field"])return t;return Object.assign({},t,{layout:Object.assign({},t.layout,{"text-letter-spacing":0})})});return Object.assign({},t,{layers:e})}(t):function(t){var e=t.layers.map(function(t){if(!(t.layout||{})["text-field"])return t;var e=0;return"state_label"===t["source-layer"]&&(e=.15),"marine_label"===t["source-layer"]&&(/-lg/.test(t.id)&&(e=.25),/-md/.test(t.id)&&(e=.15),/-sm/.test(t.id)&&(e=.1)),"place_label"===t["source-layer"]&&(/-suburb/.test(t.id)&&(e=.15),/-neighbour/.test(t.id)&&(e=.1),/-islet/.test(t.id)&&(e=.01)),"airport_label"===t["source-layer"]&&(e=.01),"rail_station_label"===t["source-layer"]&&(e=.01),"poi_label"===t["source-layer"]&&/-scalerank/.test(t.id)&&(e=.01),"road_label"===t["source-layer"]&&(/-label-/.test(t.id)&&(e=.01),/-shields/.test(t.id)&&(e=.05)),Object.assign({},t,{layout:Object.assign({},t.layout,{"text-letter-spacing":e})})});return Object.assign({},t,{layers:e})}(t)},this._excludedLayerIds=t.excludedLayerIds||[],this.supportedLanguages=t.supportedLanguages||["ar","en","es","fr","de","ja","ko","mul","pt","ru","zh"]}function p(t,e,i,o){return e.layout&&e.layout["text-field"]&&-1===o.indexOf(e.id)?Object.assign({},e,{layout:Object.assign({},e.layout,{"text-field":function(e,t,i){if(function(t,e){return"string"==typeof e&&t.test(e)}(e,t))return i;if(function(e,t){return t.stops&&0<t.stops.filter(function(t){return e.test(t[1])}).length}(e,t)){var o=t.stops.map(function(t){return e.test(t[1])?[t[0],i]:t});return Object.assign({},t,{stops:o})}return t}(t,e.layout["text-field"],i)})}):e}function i(t){var e=navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage,i=e.split("-"),o=e;return 1<i.length&&(o=i[0]),-1<t.indexOf(o)?o:null}var t,n;MyListing.Maps={options:{locations:[],zoom:12,minZoom:0,maxZoom:30,skin:"skin1",marker_type:"basic",gestureHandling:"greedy",cluster_markers:!0,draggable:!0,scrollwheel:!1},instances:[],skins:[],init:function(){},loaded:!1,getInstance:function(e){var t=MyListing.Maps.instances.filter(function(t){return t.id==e});return!(!t||!t.length)&&t[0]}},jQuery(document).on("maps:loaded",function(){jQuery('.form-location-autocomplete, input[name="job_location"], input[name="_job_location"]').each(function(t,e){new MyListing.Maps.Autocomplete(e)}),MyListing.Geocoder=new MyListing.Maps.Geocoder,jQuery(".cts-get-location").click(function(t){t.preventDefault();var e=jQuery(jQuery(this).data("input")),i=jQuery(this).data("map"),o=null;e.length&&(i.length&&(o=MyListing.Maps.getInstance(i))&&MyListing.Geocoder.setMap(o.instance),MyListing.Geocoder.getUserLocation({receivedAddress:function(t){if(e.val(t.address),e.data("autocomplete"))return e.data("autocomplete").fireChangeEvent(t)}}))})}),jQuery(function(l){l(document).on("maps:loaded",function(){if(document.getElementById("location-picker-map")){var i=MyListing.Maps.getInstance("location-picker-map").instance,t=l(".location-field-wrapper"),e=t.data("options"),o=t.find(".location-coords"),n=t.find(".latitude-input"),s=t.find(".longitude-input"),a=t.find(".address-input"),r=t.find('.lock-pin input[type="checkbox"]'),p=t.find(".enter-coordinates-toggle > span"),u=new MyListing.Maps.Marker({position:g(),map:i,template:{type:"traditional"}});i.addListener("click",function(t){if(!r.prop("checked")){var e=i.getClickPosition(t);u.setPosition(e),n.val(e.getLatitude()),s.val(e.getLongitude()),MyListing.Geocoder.geocode(e.toGeocoderFormat(),function(t){t&&a.val(t.address)})}}),a.on("autocomplete:change",function(t){if(!r.prop("checked")&&t.detail.place&&t.detail.place.latitude&&t.detail.place.longitude){var e=new MyListing.Maps.LatLng(t.detail.place.latitude,t.detail.place.longitude);u.setPosition(e),n.val(t.detail.place.latitude),s.val(t.detail.place.longitude),i.panTo(e)}}),i.addListenerOnce("idle",function(t){i.setZoom(e["default-zoom"])}),r.on("change",function(t){i.trigger("resize"),i.setCenter(g())}).change(),p.click(function(t){o.toggleClass("hide")}),n.blur(c),s.blur(c)}function c(){var t=g();u.setPosition(t),i.panTo(t),""!==n.val().trim()&&""!==s.val().trim()&&(n.val(t.getLatitude()),s.val(t.getLongitude()))}function g(){return n.val().trim()&&s.val().trim()?new MyListing.Maps.LatLng(n.val(),s.val()):new MyListing.Maps.LatLng(e["default-lat"],e["default-lng"])}})}),MyListing.Maps.Autocomplete=function(t){jQuery(t).data("autocomplete",this),this.init(t)},MyListing.Maps.Autocomplete.prototype.init=function(t){},MyListing.Maps.Autocomplete.prototype.fireChangeEvent=function(t){var e=document.createEvent("CustomEvent");e.initCustomEvent("autocomplete:change",!1,!0,{place:t||!1}),this.el.dispatchEvent(e)},MyListing.Maps.Clusterer=function(t){this.init(t)},MyListing.Maps.Clusterer.prototype.init=function(t){},MyListing.Maps.Geocoder=function(){this.init()},MyListing.Maps.Geocoder.prototype.init=function(){},MyListing.Maps.Geocoder.prototype.geocode=function(t,e,i){},MyListing.Maps.Geocoder.prototype.formatFeature=function(t){},MyListing.Maps.Geocoder.prototype.getUserLocation=function(i){i=jQuery.extend({shouldFetchAddress:!0,receivedCoordinates:function(){},receivedAddress:function(){},geolocationFailed:function(){}},i);if(!navigator.geolocation)return i.geolocationFailed();navigator.geolocation.getCurrentPosition(function(t){if(i.receivedCoordinates(t),!1!==i.shouldFetchAddress){var e=new MyListing.Maps.LatLng(t.coords.latitude,t.coords.longitude);MyListing.Geocoder.geocode(e.toGeocoderFormat(),function(t){return t?i.receivedAddress(t):(console.log("Couldn't determine your location."),i.geolocationFailed())})}},function(){i.geolocationFailed()})},MyListing.Maps.Geocoder.prototype.setMap=function(t){this.map=t},MyListing.Maps.Map=function(t){this.$el=jQuery(t),this.init(t)},MyListing.Maps.Map.prototype.init=function(){},MyListing.Maps.Map.prototype.setZoom=function(t){},MyListing.Maps.Map.prototype.getZoom=function(){},MyListing.Maps.Map.prototype.getMinZoom=function(){},MyListing.Maps.Map.prototype.getMaxZoom=function(){},MyListing.Maps.Map.prototype.setCenter=function(t){},MyListing.Maps.Map.prototype.fitBounds=function(t){},MyListing.Maps.Map.prototype.panTo=function(t){},MyListing.Maps.Map.prototype.getClickPosition=function(t){},MyListing.Maps.Map.prototype.addListener=function(t,e){},MyListing.Maps.Map.prototype.addListenerOnce=function(t,e){},MyListing.Maps.Map.prototype.trigger=function(t){},MyListing.Maps.Map.prototype.addControl=function(t){},MyListing.Maps.Map.prototype.getSourceObject=function(){return this.map},MyListing.Maps.Map.prototype.getSourceEvent=function(t){return void 0!==this.events[t]?this.events[t]:t},MyListing.Maps.Map.prototype.closePopups=function(){this.trigger("mylisting:closing_popups");for(var t=0;t<this.markers.length;t++)"object"===o(this.markers[t].options.popup)&&this.markers[t].options.popup.hide()},MyListing.Maps.Map.prototype.removeMarkers=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].remove();this.markers.length=0,this.markers=[]},MyListing.Maps.Map.prototype._maybeAddMarkers=function(){var i=this;if(i.markers=[],i.trigger("updating_markers"),"custom-locations"==i.options.items_type&&i.options.locations.length){"basic"==i.options.marker_type&&i.options.locations.forEach(function(t){i._addBasicMarker(t)}),"advanced"==i.options.marker_type&&i.options.locations.forEach(function(t){var e=new MyListing.Maps.Marker({position:new MyListing.Maps.LatLng(t.marker_lat,t.marker_lng),map:i,popup:new MyListing.Maps.Popup,template:{type:"advanced",thumbnail:t.marker_image.url}});i.markers.push(e),i.bounds.extend(e.getPosition())});var t=function(t){15<this.getZoom()&&this.setZoom(this.options.zoom)};i.addListenerOnce("zoom_changed",t.bind(i)),i.addListenerOnce("bounds_changed",t.bind(i)),i.fitBounds(i.bounds),i.trigger("updated_markers")}"listings"==i.options.items_type&&i.options.listings_query.lat&&i.options.listings_query.lng&&i.options.listings_query.radius&&i.options.listings_query.listing_type&&i.options._section_id&&this._addMarkersThroughQuery()},MyListing.Maps.Map.prototype._addBasicMarker=function(i){var o=this;if(i.marker_lat&&i.marker_lng){var t=new MyListing.Maps.Marker({position:new MyListing.Maps.LatLng(i.marker_lat,i.marker_lng),map:o,template:{type:"basic",thumbnail:i.marker_image.url}});o.markers.push(t),o.bounds.extend(t.getPosition())}else i.address&&MyListing.Geocoder.geocode(i.address,function(t){if(!t)return!1;var e=new MyListing.Maps.Marker({position:new MyListing.Maps.LatLng(t.latitude,t.longitude),map:o,template:{type:"basic",thumbnail:i.marker_image.url}});o.markers.push(e),o.bounds.extend(e.getPosition()),o.fitBounds(o.bounds),o.setZoom(o.options.zoom)})},MyListing.Maps.Map.prototype._addMarkersThroughQuery=function(){var n=this;n.$el.addClass("mylisting-map-loading"),jQuery.ajax({url:CASE27.mylisting_ajax_url+"&action=get_listings&security="+CASE27.ajax_nonce,type:"GET",dataType:"json",data:{listing_type:n.options.listings_query.listing_type,form_data:{proximity:n.options.listings_query.radius,lat:n.options.listings_query.lat,lng:n.options.listings_query.lng,search_location:"radius search",per_page:n.options.listings_query.count}},success:function(t){jQuery("#"+n.options._section_id).find(".c27-map-listings").html(t.html),jQuery("#"+n.options._section_id).find(".c27-map-listings .lf-item-container").each(function(t,e){var i=jQuery(e);if(i.data("latitude")&&i.data("longitude")){var o=new MyListing.Maps.Marker({position:new MyListing.Maps.LatLng(i.data("latitude"),i.data("longitude")),map:n,popup:new MyListing.Maps.Popup({content:'<div class="lf-item-container lf-type-2">'+i.html()+"</div>"}),template:{type:"advanced",thumbnail:i.data("thumbnail"),icon_name:i.data("category-icon"),icon_color:i.data("category-text-color"),icon_background_color:i.data("category-color"),listing_id:i.data("id")}});n.markers.push(o),n.bounds.extend(o.getPosition())}}),jQuery(".lf-background-carousel").owlCarousel({margin:20,items:1,loop:!0}),n.fitBounds(n.bounds),n.trigger("updated_markers"),n.$el.removeClass("mylisting-map-loading")}})},MyListing.Maps.Marker=function(t){this.options=jQuery.extend(!0,{position:!1,map:!1,popup:!1,template:{type:"basic",icon_name:"",icon_color:"",icon_background_color:"",listing_id:"",thumbnail:""}},t),this.init(t)},MyListing.Maps.Marker.prototype.init=function(t){},MyListing.Maps.Marker.prototype.getPosition=function(){},MyListing.Maps.Marker.prototype.setPosition=function(t){},MyListing.Maps.Marker.prototype.setMap=function(t){},MyListing.Maps.Marker.prototype.remove=function(){},MyListing.Maps.Marker.prototype.getTemplate=function(){var t=document.createElement("div");t.className="marker-container",t.style.position="absolute",t.style.cursor="pointer",t.style.zIndex=10;var e="";return"basic"==this.options.template.type&&(e=jQuery("#case27-basic-marker-template").html().replace("{{marker-bg}}",this.options.template.thumbnail)),"traditional"==this.options.template.type&&(e=jQuery("#case27-traditional-marker-template").html()),"user-location"==this.options.template.type&&(e=jQuery("#case27-user-location-marker-template").html()),"advanced"==this.options.template.type&&(e=jQuery("#case27-marker-template").html().replace("{{icon}}",this.options.template.icon_name).replace("{{icon-bg}}",this.options.template.icon_background_color).replace("{{listing-id}}",this.options.template.listing_id).replace("{{marker-bg}}",this.options.template.thumbnail).replace("{{icon-color}}",this.options.template.icon_color)),jQuery(t).append(e),t},MyListing.Maps.Popup=function(t){this.options=jQuery.extend(!0,{content:"",classes:"cts-map-popup cts-listing-popup infoBox cts-popup-hidden",position:!1,map:!1},t),this.init(t)},MyListing.Maps.Popup.prototype.init=function(t){},MyListing.Maps.Popup.prototype.setContent=function(t){},MyListing.Maps.Popup.prototype.setPosition=function(t){},MyListing.Maps.Popup.prototype.setMap=function(t){},MyListing.Maps.Popup.prototype.remove=function(){},MyListing.Maps.Popup.prototype.show=function(){},MyListing.Maps.Popup.prototype.hide=function(){},MyListing.Maps.LatLng=function(t,e){this.init(t,e)},MyListing.Maps.LatLng.prototype.init=function(t,e){},MyListing.Maps.LatLng.prototype.getLatitude=function(){},MyListing.Maps.LatLng.prototype.getLongitude=function(){},MyListing.Maps.LatLng.prototype.toGeocoderFormat=function(){},MyListing.Maps.LatLng.prototype.getSourceObject=function(){return this.latlng},MyListing.Maps.LatLngBounds=function(t,e){this.init(t,e)},MyListing.Maps.LatLngBounds.prototype.init=function(t,e){},MyListing.Maps.LatLngBounds.prototype.extend=function(t){},MyListing.Maps.LatLngBounds.prototype.empty=function(){},MyListing.Maps.LatLngBounds.prototype.getSourceObject=function(){return this.bounds},e.prototype.setLanguage=function(t,e){if(this.supportedLanguages.indexOf(e)<0)throw new Error("Language "+e+" is not supported");var i=this._languageSource||function(i){return Object.keys(i.sources).filter(function(t){var e=i.sources[t];return/mapbox-streets-v\d/.test(e.url)})[0]}(t);if(!i)return t;var o=this._getLanguageField(e),n=this._isLanguageField,s=this._excludedLayerIds,a=t.layers.map(function(t){return t.source===i?p(n,t,o,s):t}),r=Object.assign({},t,{layers:a});return this._languageTransform(r,e)},e.prototype._initialStyleUpdate=function(){var t=this._map.getStyle(),e=this._defaultLanguage||i(this.supportedLanguages);this._map.off("styledata",this._initialStyleUpdate),this._map.setStyle(this.setLanguage(t,e))},e.prototype.onAdd=function(t){return this._map=t,this._map.on("styledata",this._initialStyleUpdate),this._container=document.createElement("div"),this._container},e.prototype.onRemove=function(){this._map.off("styledata",this._initialStyleUpdate),this._map=void 0},"undefined"!=typeof module&&void 0!==module.exports?module.exports=e:("function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null===t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),o=1;o<arguments.length;o++){var n=arguments[o];if(null!==n)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},writable:!0,configurable:!0}),window.MapboxLanguage=e),MyListing.Maps.Marker.prototype.init=function(t){this.options=jQuery.extend(!0,{position:!1,map:!1,popup:!1,template:{type:"basic",icon_name:"",icon_color:"",icon_background_color:"",listing_id:"",thumbnail:""}},t),this.marker=new mapboxgl.Marker(this.template()),this.options.position&&this.setPosition(this.options.position),this.options.map&&this.setMap(this.options.map)},MyListing.Maps.Marker.prototype.getPosition=function(){return this.options.position},MyListing.Maps.Marker.prototype.setPosition=function(t){return this.marker.setLngLat(t.getSourceObject()),this},MyListing.Maps.Marker.prototype.setMap=function(t){return this.marker.addTo(t.getSourceObject()),this},MyListing.Maps.Marker.prototype.remove=function(){return this.options.popup&&this.options.popup.remove(),this.marker.remove(),this},MyListing.Maps.Marker.prototype.template=function(){var t=this.getTemplate();return t.addEventListener("click",function(t){t.preventDefault(),this.options.popup&&this.options.map&&this.options.position&&(this.options.popup.setPosition(this.options.position),setTimeout(function(){this.options.popup.setMap(this.options.map),this.options.popup.show(),this.options.popup.fitToScreen()}.bind(this),10))}.bind(this)),t},MyListing.Maps.Popup.prototype.init=function(t){this.options=jQuery.extend(!0,{content:"",classes:"cts-map-popup cts-listing-popup infoBox cts-popup-hidden listing-preview",position:!1,map:!1},t),this.popup=new mapboxgl.Popup({className:this.options.classes,closeButton:!1,closeOnClick:!1,anchor:"left"}),this.timeout=null,this.options.position&&this.setPosition(this.options.position),this.options.content&&this.setContent(this.options.content),this.options.map&&this.setMap(this.options.map)},MyListing.Maps.Popup.prototype.setContent=function(t){return this.options.content=t,this.popup.setHTML(t),this},MyListing.Maps.Popup.prototype.setPosition=function(t){return this.options.position=t,this.popup.setLngLat(t.getSourceObject()),this},MyListing.Maps.Popup.prototype.setMap=function(t){return this.options.map=t,this},MyListing.Maps.Popup.prototype.remove=function(){return this.popup.remove(),this},MyListing.Maps.Popup.prototype.show=function(){var t=this;return clearTimeout(t.timeout),t.popup.addTo(t.options.map.getSourceObject()),setTimeout(function(){t.popup._container.className=t.popup._container.className.replace("cts-popup-hidden","cts-popup-visible"),t._addTemplateClass()},10),t},MyListing.Maps.Popup.prototype.hide=function(){var t=this;return clearTimeout(t.timeout),void 0!==t.popup._container&&(t.popup._container.className=t.popup._container.className.replace("cts-popup-visible","cts-popup-hidden"),t._addTemplateClass()),t.timeout=setTimeout(function(){t.remove()},250),t},MyListing.Maps.Popup.prototype.fitToScreen=function(t){var e=jQuery.extend({top:130,right:360,bottom:130},t||{}),i=this.options.map.getSourceObject(),o=i.getCanvas().getBoundingClientRect(),n=i.project(i.getCenter()),s=n.x,a=n.y,r=i.project(this.popup.getLngLat());return o.width-r.x<e.right-1&&(n.x+=e.right-(o.width-r.x)),r.y<e.top-1&&(n.y-=e.top-r.y),o.height-r.y<e.bottom-1&&(n.y+=e.bottom-(o.height-r.y)),n.x===s&&n.y===a||i.panTo(i.unproject(n),{duration:200}),this},MyListing.Maps.Popup.prototype._addTemplateClass=function(){if(jQuery(this.options.content).find(".lf-item")){var t="tpl-"+jQuery(this.options.content).find(".lf-item").data("template");t&&void 0!==this.popup._container&&-1===this.popup._container.className.indexOf(t)&&(this.popup._container.className+=" "+t)}},MyListing.Maps.LatLng.prototype.init=function(t,e){this.latitude=t,this.longitude=e,this.latlng=new mapboxgl.LngLat(e,t)},MyListing.Maps.LatLng.prototype.getLatitude=function(){return this.latlng.lat},MyListing.Maps.LatLng.prototype.getLongitude=function(){return this.latlng.lng},MyListing.Maps.LatLng.prototype.toGeocoderFormat=function(){return[this.getLongitude(),this.getLatitude()].join(",")},MyListing.Maps.LatLngBounds.prototype.init=function(t,e){this.southwest=t,this.northeast=e,this.bounds=new mapboxgl.LngLatBounds(t,e)},MyListing.Maps.LatLngBounds.prototype.extend=function(t){this.bounds.extend(t.getSourceObject())},MyListing.Maps.LatLngBounds.prototype.empty=function(){return this.bounds.isEmpty()},t=window,n=function(){function y(t,e,i,o){n(t,i,o),n(e,2*i,2*o),n(e,2*i+1,2*o+1)}function n(t,e,i){var o=t[e];t[e]=t[i],t[i]=o}function M(t,e,i,o){var n=t-i,s=e-o;return n*n+s*s}function u(t){return t[0]}function c(t){return t[1]}function m(t,e,i,o,n){void 0===e&&(e=u),void 0===i&&(i=c),void 0===o&&(o=64),void 0===n&&(n=Float64Array),this.nodeSize=o;for(var s=(this.points=t).length<65536?Uint16Array:Uint32Array,a=this.ids=new s(t.length),r=this.coords=new n(2*t.length),p=0;p<t.length;p++)r[2*(a[p]=p)]=e(t[p]),r[2*p+1]=i(t[p]);!function t(e,i,o,n,s,a){if(!(s-n<=o)){var r=n+s>>1;!function t(e,i,o,n,s,a){for(;n<s;){if(600<s-n){var r=s-n+1,p=o-n+1,u=Math.log(r),c=.5*Math.exp(2*u/3),g=.5*Math.sqrt(u*c*(r-c)/r)*(p-r/2<0?-1:1);t(e,i,o,Math.max(n,Math.floor(o-p*c/r+g)),Math.min(s,Math.floor(o+(r-p)*c/r+g)),a)}var l=i[2*o+a],d=n,h=s;for(y(e,i,n,o),i[2*s+a]>l&&y(e,i,n,s);d<h;){for(y(e,i,d,h),d++,h--;i[2*d+a]<l;)d++;for(;i[2*h+a]>l;)h--}i[2*n+a]===l?y(e,i,n,h):y(e,i,++h,s),h<=o&&(n=h+1),o<=h&&(s=h-1)}}(e,i,r,n,s,a%2),t(e,i,o,n,r-1,a+1),t(e,i,o,1+r,s,a+1)}}(a,r,o,0,a.length-1,0)}m.prototype.range=function(t,e,i,o){return function(t,e,i,o,n,s,a){for(var r,p,u=[0,t.length-1,0],c=[];u.length;){var g=u.pop(),l=u.pop(),d=u.pop();if(l-d<=a)for(var h=d;h<=l;h++)r=e[2*h],p=e[2*h+1],i<=r&&r<=n&&o<=p&&p<=s&&c.push(t[h]);else{var y=Math.floor((d+l)/2);r=e[2*y],p=e[2*y+1],i<=r&&r<=n&&o<=p&&p<=s&&c.push(t[y]);var m=(g+1)%2;(0===g?i<=r:o<=p)&&(u.push(d),u.push(y-1),u.push(m)),(0===g?r<=n:p<=s)&&(u.push(y+1),u.push(l),u.push(m))}}return c}(this.ids,this.coords,t,e,i,o,this.nodeSize)};function t(t){this.options=s(Object.create(e),t),this.trees=new Array(this.options.maxZoom+1)}var e={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!(m.prototype.within=function(t,e,i){return function(t,e,i,o,n,s){for(var a=[0,t.length-1,0],r=[],p=n*n;a.length;){var u=a.pop(),c=a.pop(),g=a.pop();if(c-g<=s)for(var l=g;l<=c;l++)M(e[2*l],e[2*l+1],i,o)<=p&&r.push(t[l]);else{var d=Math.floor((g+c)/2),h=e[2*d],y=e[2*d+1];M(h,y,i,o)<=p&&r.push(t[d]);var m=(u+1)%2;(0===u?i-n<=h:o-n<=y)&&(a.push(g),a.push(d-1),a.push(m)),(0===u?h<=i+n:y<=o+n)&&(a.push(d+1),a.push(c),a.push(m))}}return r}(this.ids,this.coords,t,e,i,this.nodeSize)}),reduce:null,map:function(t){return t}};function h(t){return{type:"Feature",id:t.id,properties:g(t),geometry:{type:"Point",coordinates:[(o=t.x,360*(o-.5)),(e=t.y,i=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(i))/Math.PI-90)]}};var e,i,o}function g(t){var e=t.numPoints,i=1e4<=e?Math.round(e/1e3)+"k":1e3<=e?Math.round(e/100)/10+"k":e;return s(s({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:i})}function f(t){return t/360+.5}function L(t){var e=Math.sin(t*Math.PI/180),i=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return i<0?0:1<i?1:i}function s(t,e){for(var i in e)t[i]=e[i];return t}function v(t){return t.x}function b(t){return t.y}return t.prototype.load=function(t){var e=this.options,i=e.log,o=e.minZoom,n=e.maxZoom,s=e.nodeSize;i&&console.time("total time");var a,r,p,u,c,g="prepare "+t.length+" points";i&&console.time(g),this.points=t;for(var l=[],d=0;d<t.length;d++)t[d].geometry&&l.push((a=t[d],r=d,void 0,p=a.geometry.coordinates,u=p[0],c=p[1],{x:f(u),y:L(c),zoom:1/0,index:r,parentId:-1}));this.trees[n+1]=new m(l,v,b,s,Float32Array),i&&console.timeEnd(g);for(var h=n;o<=h;h--){var y=+Date.now();l=this._cluster(l,h),this.trees[h]=new m(l,v,b,s,Float32Array),i&&console.log("z%d: %d clusters in %dms",h,l.length,+Date.now()-y)}return i&&console.timeEnd("total time"),this},t.prototype.getClusters=function(t,e){var i=((t[0]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[1])),n=180===t[2]?180:((t[2]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,t[3]));if(360<=t[2]-t[0])i=-180,n=180;else if(n<i){var a=this.getClusters([i,o,180,s],e),r=this.getClusters([-180,o,n,s],e);return a.concat(r)}for(var p=this.trees[this._limitZoom(e)],u=[],c=0,g=p.range(f(i),L(s),f(n),L(o));c<g.length;c+=1){var l=g[c],d=p.points[l];u.push(d.numPoints?h(d):this.points[d.index])}return u},t.prototype.getChildren=function(t){var e=t>>5,i=t%32,o="No cluster with the specified id.",n=this.trees[i];if(!n)throw new Error(o);var s=n.points[e];if(!s)throw new Error(o);for(var a=this.options.radius/(this.options.extent*Math.pow(2,i-1)),r=[],p=0,u=n.within(s.x,s.y,a);p<u.length;p+=1){var c=u[p],g=n.points[c];g.parentId===t&&r.push(g.numPoints?h(g):this.points[g.index])}if(0===r.length)throw new Error(o);return r},t.prototype.getLeaves=function(t,e,i){e=e||10,i=i||0;var o=[];return this._appendLeaves(o,t,e,i,0),o},t.prototype.getTile=function(t,e,i){var o=this.trees[this._limitZoom(t)],n=Math.pow(2,t),s=this.options,a=s.extent,r=s.radius/a,p=(i-r)/n,u=(i+1+r)/n,c={features:[]};return this._addTileFeatures(o.range((e-r)/n,p,(e+1+r)/n,u),o.points,e,i,n,c),0===e&&this._addTileFeatures(o.range(1-r/n,p,1,u),o.points,n,i,n,c),e===n-1&&this._addTileFeatures(o.range(0,p,r/n,u),o.points,-1,i,n,c),c.features.length?c:null},t.prototype.getClusterExpansionZoom=function(t){for(var e=t%32-1;e<=this.options.maxZoom;){var i=this.getChildren(t);if(e++,1!==i.length)break;t=i[0].properties.cluster_id}return e},t.prototype._appendLeaves=function(t,e,i,o,n){for(var s=0,a=this.getChildren(e);s<a.length;s+=1){var r=a[s],p=r.properties;if(p&&p.cluster?n+p.point_count<=o?n+=p.point_count:n=this._appendLeaves(t,p.cluster_id,i,o,n):n<o?n++:t.push(r),t.length===i)break}return n},t.prototype._addTileFeatures=function(t,e,i,o,n,s){for(var a=0,r=t;a<r.length;a+=1){var p=e[r[a]],u={type:1,geometry:[[Math.round(this.options.extent*(p.x*n-i)),Math.round(this.options.extent*(p.y*n-o))]],tags:p.numPoints?g(p):this.points[p.index].properties},c=p.numPoints?p.id:this.points[p.index].id;void 0!==c&&(u.id=c),s.features.push(u)}},t.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},t.prototype._cluster=function(t,e){for(var i=[],o=this.options,n=o.radius,s=o.extent,a=o.reduce,r=n/(s*Math.pow(2,e)),p=0;p<t.length;p++){var u=t[p];if(!(u.zoom<=e)){u.zoom=e;for(var c=this.trees[e+1],g=c.within(u.x,u.y,r),l=u.numPoints||1,d=u.x*l,h=u.y*l,y=a&&1<l?this._map(u,!0):null,m=(p<<5)+(e+1),M=0,f=g;M<f.length;M+=1){var L=f[M],v=c.points[L];if(!(v.zoom<=e)){v.zoom=e;var b=v.numPoints||1;d+=v.x*b,h+=v.y*b,l+=b,v.parentId=m,a&&a(y=y||this._map(u,!0),this._map(v))}}1===l?i.push(u):(u.parentId=m,i.push({x:d/l,y:h/l,zoom:1/0,id:m,parentId:-1,numPoints:l,properties:y}))}}return i},t.prototype._map=function(t,e){if(t.numPoints)return e?s({},t.properties):t.properties;var i=this.points[t.index].properties,o=this.options.map(i);return e&&o===i?s({},o):o},t},"object"==("undefined"==typeof exports?"undefined":o(exports))&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).Supercluster=n(),MyListing.Maps.Clusterer.prototype.init=function(t){this.map=t,this.clusters={},this.clusterer=!1,this.clusterGroupPopup=new MyListing.Maps.Popup({map:this.map}),this.map.addListener("mylisting:closing_popups",function(){this.clusterGroupPopup.hide()}.bind(this))},MyListing.Maps.Clusterer.prototype.load=function(){this.clusterer=new Supercluster({radius:MyListing.MapConfig.ClusterSize,maxZoom:20}).load(this.getGeoJSON()),this.update()},MyListing.Maps.Clusterer.prototype.destroy=function(){this.clusterer=!1},MyListing.Maps.Clusterer.prototype.getGeoJSON=function(){return this.map.markers.map(function(t,e){return{type:"Feature",geometry:{type:"Point",coordinates:[t.getPosition().longitude,t.getPosition().latitude]},properties:{sID:e+1,scID:0,marker:{template:jQuery.extend(!0,{},t.options.template),popup:!!t.options.popup&&t.options.popup.options.content}}}})},MyListing.Maps.Clusterer.prototype.removeFeatures=function(){this.map.removeMarkers(),Object.keys(this.clusters).forEach(function(t){this.clusters[t].remove()}.bind(this))},MyListing.Maps.Clusterer.prototype.update=function(){var t=this;if(!t.clusterer)return!1;var e=t.map.getSourceObject().getBounds(),i=t.clusterer.getClusters([e.getWest(),e.getSouth(),e.getEast(),e.getNorth()],Math.floor(t.map.getSourceObject().getZoom()));this.removeFeatures(),t.displayFeatures(i)},MyListing.Maps.Clusterer.prototype.displayFeatures=function(t){var n=this;t.forEach(function(o){if(o.properties.cluster){var t=document.createElement("div");t.className="cts-marker-cluster",t.innerHTML=o.properties.point_count_abbreviated;var e=new mapboxgl.Marker(t);e.setLngLat(o.geometry.coordinates),e.addTo(n.map.getSourceObject()),n.clusters[o.properties.cluster_id]=e,t.addEventListener("click",function(t){if(t.preventDefault(),n.map.getZoom()>=n.map.getMaxZoom()){var e=n.clusterer.getLeaves(o.properties.cluster_id),i='<div class="marker-cluster-popup"><div class="lf-item marker-cluster-wrapper" data-template="marker-cluster-popup">';e.forEach(function(t){i+=t.properties.marker.popup}),i+="</div></div>",n.clusterGroupPopup.setPosition(new MyListing.Maps.LatLng(o.geometry.coordinates[1],o.geometry.coordinates[0])).setContent(i),n.map.addListenerOnce("click",function(t){n.clusterGroupPopup.show().fitToScreen({bottom:400})})}else n.map.getSourceObject().easeTo({center:o.geometry.coordinates,zoom:n.clusterer.getClusterExpansionZoom(o.properties.cluster_id)})})}else n.map.markers.push(new MyListing.Maps.Marker({map:n.map,popup:!!o.properties.marker.popup&&new MyListing.Maps.Popup({content:o.properties.marker.popup}),position:new MyListing.Maps.LatLng(o.geometry.coordinates[1],o.geometry.coordinates[0]),template:o.properties.marker.template}))})},MyListing.Maps.Geocoder.prototype.init=function(){},MyListing.Maps.Geocoder.prototype.geocode=function(t,i,e){var o=this,n=!1;if("function"==typeof i)e=i,i={};var s={access_token:MyListing.MapConfig.AccessToken,limit:1,language:MyListing.MapConfig.Language};MyListing.MapConfig.TypeRestrictions.length&&MyListing.MapConfig.TypeRestrictions.join(",").length&&(i.types=MyListing.MapConfig.TypeRestrictions.join(",")),MyListing.MapConfig.CountryRestrictions.length&&MyListing.MapConfig.CountryRestrictions.join(",").length&&(i.country=MyListing.MapConfig.CountryRestrictions.join(","));i=jQuery.extend(!0,{},s,i);if(!encodeURIComponent(t).length)return e(n);jQuery.get({url:"https://api.mapbox.com/geocoding/v5/mapbox.places/{query}.json".replace("{query}",encodeURIComponent(t)),data:i,dataType:"json",success:function(t,e){"success"===e&&t&&t.features.length&&(n=1!==i.limit?t.features.map(o.formatFeature):o.formatFeature(t.features[0]))},complete:function(){e(n)}})},MyListing.Maps.Geocoder.prototype.formatFeature=function(t){return{latitude:t.geometry.coordinates[1],longitude:t.geometry.coordinates[0],address:t.place_name}},MyListing.Maps.Autocomplete.prototype.init=function(t){if(!t instanceof Element)return!1;var e=this;this.el=t,this.input=jQuery(this.el),this.focusedItem=0,this.hasQueried=!1,this.attachDropdown(),this.input.on("input",MyListing.Helpers.debounce(this.querySuggestions.bind(this),300)),this.input.on("focusin",this.showDropdown.bind(this)),this.input.on("focusout",this.hideDropdown.bind(this)),this.input.on("keydown click",this.navigateDropdown.bind(this)),this.dropdown.on("click",".suggestion",function(t){e.selectItem(jQuery(this).index())})},MyListing.Maps.Autocomplete.prototype.querySuggestions=function(t){this.resetFocus(),this.showDropdown(),this.fireChangeEvent();MyListing.Geocoder.geocode(t.target.value,{limit:5},function(t){if(this.hasQueried=!0,this.removeSuggestions(),!t)return!1;t.forEach(this.addSuggestion.bind(this))}.bind(this))},MyListing.Maps.Autocomplete.prototype.navigateDropdown=function(t){this.hasQueried||this.input.trigger("input"),this.showDropdown(),40===t.keyCode&&(this.focusedItem++,this.focusItem()),38===t.keyCode&&(this.focusedItem--,this.focusItem()),13===t.keyCode&&(t.preventDefault(),0!==this.focusedItem&&this.selectItem(this.focusedItem-1))},MyListing.Maps.Autocomplete.prototype.focusItem=function(){this.dropdown.find(".suggestions-list .suggestion").removeClass("active");var t=this.dropdown.find(".suggestions-list .suggestion");this.focusedItem<0&&(this.focusedItem=t.length),this.focusedItem>t.length&&(this.focusedItem=0),0!==this.focusedItem&&this.dropdown.find(".suggestions-list .suggestion").eq(this.focusedItem-1).addClass("active")},MyListing.Maps.Autocomplete.prototype.resetFocus=function(t){this.focusedItem=0,this.dropdown.find(".suggestions-list .suggestion").removeClass("active")},MyListing.Maps.Autocomplete.prototype.showDropdown=function(t){this.dropdown.addClass("active");var e=this.input.get(0).getBoundingClientRect(),i=this.input.offset();this.dropdown.css({top:i.top+e.height+"px",left:i.left+"px",width:e.width+"px"})},MyListing.Maps.Autocomplete.prototype.hideDropdown=function(t){this.dropdown.removeClass("active")},MyListing.Maps.Autocomplete.prototype.selectItem=function(t){var e=this.dropdown.find(".suggestions-list .suggestion").eq(t).data("place");this.input.val(e.address),this.resetFocus(),this.hideDropdown(),this.fireChangeEvent(e)},MyListing.Maps.Autocomplete.prototype.attachDropdown=function(){this.dropdown=jQuery('<div class="cts-autocomplete-dropdown"><div class="suggestions-list"></div></div>'),this.input.addClass("cts-autocomplete-input").attr("autocomplete","off"),jQuery("body").append(this.dropdown)},MyListing.Maps.Autocomplete.prototype.removeSuggestions=function(){this.dropdown.find(".suggestions-list").html("")},MyListing.Maps.Autocomplete.prototype.addSuggestion=function(t){var e=jQuery(['<div class="suggestion">','<i class="mi location_on"></i>','<span class="suggestion--address"></span>',"</div>"].join(""));e.data("place",t),e.find(".suggestion--address").text(t.address),this.dropdown.find(".suggestions-list").append(e)},MyListing.Maps.Map.prototype.init=function(t){var e=this;this.options=jQuery.extend({},MyListing.Maps.options,jQuery(t).data("options"));this.markers=[],this.bounds=new MyListing.Maps.LatLngBounds,this.id=!!jQuery(t).attr("id")&&jQuery(t).attr("id"),this.events={zoom_changed:"zoomstart",bounds_changed:"moveend"},24<this.options.maxZoom&&(this.options.maxZoom=24),this.map=new mapboxgl.Map({container:t,zoom:this.options.zoom,minZoom:this.options.minZoom,maxZoom:this.options.maxZoom,interactive:this.options.draggable,style:MyListing.Maps.skins[this.options.skin]?MyListing.Maps.skins[this.options.skin]:MyListing.Maps.skins.skin1,scrollZoom:this.options.scrollwheel}),this.map.addControl(new mapboxgl.NavigationControl({showCompass:!1})),this.map.addControl(new mapboxgl.FullscreenControl),this.addListenerOnce("load",function(){MyListing.Maps.MapboxSetLanguage(this)}.bind(this)),this.setZoom(3),this.setCenter(new MyListing.Maps.LatLng(0,0)),this.options.cluster_markers&&0<MyListing.MapConfig.ClusterSize&&(this.clusterer=new MyListing.Maps.Clusterer(this),this.addListener("updating_markers",function(){this.clusterer.destroy()}.bind(this)),this.addListener("updated_markers",function(){this.clusterer.load()}.bind(this)),this.addListener("zoomend",function(){return e.clusterer.update()}),this.addListener("dragend",function(){return e.clusterer.update()})),this._maybeAddMarkers(),this.addListener("zoom_changed",this.closePopups.bind(this)),this.addListener("click",this.closePopups.bind(this)),this.addListener("refresh",this.refresh.bind(this)),MyListing.Maps.instances.push({id:this.id,map:this.map,instance:this})},MyListing.Maps.Map.prototype.setZoom=function(t){this.map.setZoom(t)},MyListing.Maps.Map.prototype.getZoom=function(){return this.map.getZoom()},MyListing.Maps.Map.prototype.getMinZoom=function(){return this.map.getMinZoom()},MyListing.Maps.Map.prototype.getMaxZoom=function(){return this.map.getMaxZoom()},MyListing.Maps.Map.prototype.setCenter=function(t){this.map.setCenter(t.getSourceObject())},MyListing.Maps.Map.prototype.fitBounds=function(t){t.getSourceObject().isEmpty()||this.map.fitBounds(t.getSourceObject(),{padding:85,animate:!1})},MyListing.Maps.Map.prototype.panTo=function(t){this.map.panTo(t.getSourceObject())},MyListing.Maps.Map.prototype.getClickPosition=function(t){return new MyListing.Maps.LatLng(t.lngLat.lat,t.lngLat.lng)},MyListing.Maps.Map.prototype.addListener=function(t,e){this.map.on(this.getSourceEvent(t),function(t){e(t)})},MyListing.Maps.Map.prototype.addListenerOnce=function(t,e){this.map.once(this.getSourceEvent(t),function(t){e(t)})},MyListing.Maps.Map.prototype.trigger=function(t){this.map.fire(this.getSourceEvent(t))},MyListing.Maps.Map.prototype.refresh=function(){this.map.resize(),this.options.cluster_markers&&this.clusterer.update()},MyListing.Maps.Map.prototype.addControl=function(e){function t(){}t.prototype.onAdd=function(t){return this._map=t,this._container=e,this._container.className+=" mapboxgl-ctrl ",this._container},t.prototype.onRemove=function(){this._container.parentNode.removeChild(this._container),this._map=void 0},this.map.addControl(new t)},MyListing.Maps.skins={skin1:"mapbox://styles/mapbox/streets-v10",skin2:"mapbox://styles/mapbox/outdoors-v10",skin3:"mapbox://styles/mapbox/light-v9",skin4:"mapbox://styles/mapbox/dark-v9",skin6:"mapbox://styles/mapbox/satellite-streets-v10",skin7:"mapbox://styles/mapbox/navigation-preview-day-v4",skin8:"mapbox://styles/mapbox/navigation-preview-night-v4",skin9:"mapbox://styles/mapbox/navigation-guidance-day-v4",skin10:"mapbox://styles/mapbox/navigation-guidance-night-v4",skin12:""},function(){if("object"===o(MyListing.MapConfig.CustomSkins)){var i={};Object.keys(MyListing.MapConfig.CustomSkins).forEach(function(t){if(MyListing.MapConfig.CustomSkins[t])if("mapbox://"!==MyListing.MapConfig.CustomSkins[t].trim().substring(0,9))try{var e=JSON.parse(MyListing.MapConfig.CustomSkins[t]);e&&"object"===o(e)&&(i[t]=e)}catch(t){}else i[t]=MyListing.MapConfig.CustomSkins[t].trim()}),jQuery.extend(MyListing.Maps.skins,i)}}(),MyListing.Maps.init=function(){MyListing.Maps.MapboxLanguage=new e,MyListing.MapConfig.Language&&-1<MyListing.Maps.MapboxLanguage.supportedLanguages.indexOf(MyListing.MapConfig.Language)||(i(MyListing.Maps.MapboxLanguage.supportedLanguages)?MyListing.MapConfig.Language=i(MyListing.Maps.MapboxLanguage.supportedLanguages):MyListing.MapConfig.Language="en"),"ar"===MyListing.MapConfig.Language&&mapboxgl.setRTLTextPlugin("https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js",null,!0),MyListing.Maps.MapboxSetLanguage=function(t){var e=t.getSourceObject();e.setStyle(MyListing.Maps.MapboxLanguage.setLanguage(e.getStyle(),MyListing.MapConfig.Language))},MyListing.Geocoder=new MyListing.Maps.Geocoder,jQuery(function(t){function e(){MyListing.Maps.instances.length&&MyListing.Maps.instances.forEach(function(t){t.map.resize()})}MyListing.MapConfig.AccessToken.length||(MyListing.MapConfig.AccessToken="invalid_token"),mapboxgl.accessToken=MyListing.MapConfig.AccessToken,t(".c27-map:not(.delay-init)").each(function(t,e){new MyListing.Maps.Map(e)}),t("#c27-explore-listings").length&&MyListing.Explore.setupMap(),MyListing.Maps.loaded=!0,t(document).trigger("maps:loaded"),t("#c27-single-listing .listing-tab").on("mylisting:single:tab-switched",function(){MyListing.Maps.instances.forEach(function(t){t.instance.map.resize()})}),t(".mapboxgl-ctrl-icon.mapboxgl-ctrl-fullscreen").on("click",function(t){setTimeout(e,250)})})},MyListing.Maps.init()});
/*! jQuery UI - v1.12.1 - 2020-09-25
* http://jqueryui.com
* Includes: data.js, disable-selection.js, escape-selector.js, focusable.js, form-reset-mixin.js, form.js, ie.js, jquery-1-7.js, keycode.js, labels.js, plugin.js, position.js, safe-active-element.js, safe-blur.js, scroll-parent.js, tabbable.js, unique-id.js, version.js, widget.js
* Copyright jQuery Foundation and other contributors; Licensed */
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){var t,e,n,W,C,o,s,r,l,a,i,h;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function H(t,e){return parseInt(x.css(t,e),10)||0}x.ui=x.ui||{},x.ui.version="1.12.1",
/*!
* jQuery UI :data 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
x.extend(x.expr[":"],{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
/*!
* jQuery UI Disable Selection 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),x.ui.escapeSelector=(e=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(e,"\\$1")}),
/*!
* jQuery UI Focusable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
x.ui.focusable=function(t,e){var i,n,o,s,r=t.nodeName.toLowerCase();return"area"===r?(n=(i=t.parentNode).name,!(!t.href||!n||"map"!==i.nodeName.toLowerCase())&&(0<(n=x("img[usemap='#"+n+"']")).length&&n.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(o=!t.disabled)&&(s=x(t).closest("fieldset")[0])&&(o=!s.disabled):o="a"===r&&t.href||e,o&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}(x(t)))},x.extend(x.expr[":"],{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
/*!
* jQuery UI Form Reset Mixin 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element.form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
/*!
* jQuery UI Support for jQuery core 1.7.x 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
"1.7"===x.fn.jquery.substring(0,3)&&(x.each(["Width","Height"],function(t,i){var o="Width"===i?["Left","Right"]:["Top","Bottom"],n=i.toLowerCase(),s={innerWidth:x.fn.innerWidth,innerHeight:x.fn.innerHeight,outerWidth:x.fn.outerWidth,outerHeight:x.fn.outerHeight};function r(t,e,i,n){return x.each(o,function(){e-=parseFloat(x.css(t,"padding"+this))||0,i&&(e-=parseFloat(x.css(t,"border"+this+"Width"))||0),n&&(e-=parseFloat(x.css(t,"margin"+this))||0)}),e}x.fn["inner"+i]=function(t){return void 0===t?s["inner"+i].call(this):this.each(function(){x(this).css(n,r(this,t)+"px")})},x.fn["outer"+i]=function(t,e){return"number"!=typeof t?s["outer"+i].call(this,t):this.each(function(){x(this).css(n,r(this,t,!0,e)+"px")})}}),x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),
/*!
* jQuery UI Keycode 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
/*!
* jQuery UI Labels 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
x.fn.labels=function(){var t,e,i;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.ui.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e))},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
/*!
* jQuery UI Position 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/position/
*/
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,i=x.fn.position,x.position={scrollbarWidth:function(){if(void 0!==n)return n;var t,e=x("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=x.isWindow(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){if(!f||!f.of)return i.apply(this,arguments);f=x.extend({},f);var u,d,p,g,m,t,v=x(f.of),b=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(b),y=(f.collision||"flip").split(" "),_={},e=9===(t=(e=v)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:x.isWindow(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===y.length&&(y[1]=y[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),u=E(_.at,d,p),m.left+=u[0],m.top+=u[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=H(this,"marginLeft"),n=H(this,"marginTop"),o=l+e+H(this,"marginRight")+w.width,s=a+n+H(this,"marginBottom")+w.height,h=x.extend({},m),c=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=c[0],h.top+=c[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[y[t]]&&x.ui.position[y[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[u[0]+c[0],u[1]+c[1]],my:f.my,at:f.at,within:b,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i=e.within,n=i.isWindow?i.scrollLeft:i.offset.left,o=i.width,s=t.left-e.collisionPosition.marginLeft,r=n-s,l=s+e.collisionWidth-o-n;e.collisionWidth>o?0<r&&l<=0?(i=t.left+r+e.collisionWidth-o-n,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?n+o-e.collisionWidth:n:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i=e.within,n=i.isWindow?i.scrollTop:i.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;e.collisionHeight>o?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,s=i.isWindow?i.scrollLeft:i.offset.left,r=t.left-e.collisionPosition.marginLeft,l=r-s,a=r+e.collisionWidth-o-s,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,r=-2*e.offset[0];l<0?((n=t.left+h+i+r+e.collisionWidth-o-n)<0||n<C(l))&&(t.left+=h+i+r):0<a&&(0<(s=t.left-e.collisionPosition.marginLeft+h+i+r-s)||C(s)<a)&&(t.left+=h+i+r)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,s=i.isWindow?i.scrollTop:i.offset.top,r=t.top-e.collisionPosition.marginTop,l=r-s,a=r+e.collisionHeight-o-s,h="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,r=-2*e.offset[1];l<0?((n=t.top+h+i+r+e.collisionHeight-o-n)<0||n<C(l))&&(t.top+=h+i+r):0<a&&(0<(s=t.top-e.collisionPosition.marginTop+h+i+r-s)||C(s)<a)&&(t.top+=h+i+r)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=!(i=i||e.body).nodeName?e.body:i},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
/*!
* jQuery UI Scroll Parent 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
/*!
* jQuery UI Tabbable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
x.extend(x.expr[":"],{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
/*!
* jQuery UI Unique ID 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
x.fn.extend({uniqueId:(h=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++h)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
/*!
* jQuery UI Widget 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var c,f=0,u=Array.prototype.slice;x.cleanData=(c=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)try{(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove")}catch(t){}c(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),x.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr[":"][a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}x.isFunction(n)?r[e]=function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}:r[e]=n}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=u.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],n[o].hasOwnProperty(e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=u.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?x.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("no such method '"+i+"' for "+s+" widget instance"):x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=f++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?x(x.unique(i.get().concat(o.element.get()))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return o=x.extend({element:this.element,classes:this.options.classes||{}},o),this._on(o.element,{remove:"_untrackClassesElement"}),o.keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,i={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return i.element.toggleClass(this._classes(i),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var n=t.match(/^([\w:-]*)\s*(.*)$/),t=n[1]+l.eventNamespace,n=n[2];n?r.on(t,n,i):s.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!(x.isFunction(s)&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s,o=!x.isEmptyObject(t="number"==typeof(t=t||{})?{duration:t}:t);t.complete=i,t.delay&&e.delay(t.delay),o&&x.effects&&x.effects.effect[n]?e[s](t):n!==s&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});
/*!
* jQuery UI Mouse 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(o){var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!n){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,i=1===e.which,s=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length;return i&&!s&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
/*!
* jQuery UI Sortable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],t):t(jQuery)}(function(u){return u.widget("ui.sortable",u.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),u.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),u(t.target).parents().each(function(){if(u.data(this,o.widgetName+"-item")===o)return i=u(this),!1}),!!(i=u.data(t.target,o.widgetName+"-item")===o?u(t.target):i)&&(!(this.options.handle&&!e&&(u(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,e,i){var s,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},u.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=u("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return u.ui.ddmanager&&(u.ui.ddmanager.current=this),u.ui.ddmanager&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,i,s,o,r=this.options,n=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+r.scrollSpeed:t.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+r.scrollSpeed:t.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(t.pageY-this.document.scrollTop()<r.scrollSensitivity?n=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<r.scrollSensitivity&&(n=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),t.pageX-this.document.scrollLeft()<r.scrollSensitivity?n=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(n=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),!1!==n&&u.ui.ddmanager&&!r.dropBehaviour&&u.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||u.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&u.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),u.ui.ddmanager&&u.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,o,r;if(t)return u.ui.ddmanager&&!this.options.dropBehaviour&&u.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),r={},(o=this.options.axis)&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,u(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new u.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),u.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?u(this.domPosition.prev).after(this.currentItem):u(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},u(t).each(function(){var t=(u(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(u(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,o=s+this.helperProportions.height,r=t.left,n=r+t.width,h=t.top,a=h+t.height,l=this.offset.click.top,c=this.offset.click.left,l="x"===this.options.axis||h<s+l&&s+l<a,c="y"===this.options.axis||r<e+c&&e+c<n;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?l&&c:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<n&&h<s+this.helperProportions.height/2&&o-this.helperProportions.height/2<a},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this._getDragVerticalDirection(),t=this._getDragHorizontalDirection(),this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),t=this._getDragHorizontalDirection();return this.floating&&t?"right"===t&&i||"left"===t&&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,o,r=[],n=[],h=this._connectWith();if(h&&t)for(e=h.length-1;0<=e;e--)for(i=(s=u(h[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&n.push([u.isFunction(o.options.items)?o.options.items.call(o.element):u(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function a(){r.push(this)}for(n.push([u.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):u(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=n.length-1;0<=e;e--)n[e][0].each(a);return u(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=u.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,o,r,n,h,a,l=this.items,c=[[u.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):u(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(e=p.length-1;0<=e;e--)for(i=(s=u(p[e],this.document[0])).length-1;0<=i;i--)(o=u.data(s[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(c.push([u.isFunction(o.options.items)?o.options.items.call(o.element[0],t,{item:this.currentItem}):u(o.options.items,o.element),o]),this.containers.push(o));for(e=c.length-1;0<=e;e--)for(r=c[e][1],a=(n=c[e][i=0]).length;i<a;i++)(h=u(n[i])).data(this.widgetName+"-item",r),l.push({item:h,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var e,i,s,o;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),e=this.items.length-1;0<=e;e--)(i=this.items[e]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?u(this.options.toleranceElement,i.item):i.item,t||(i.width=s.outerWidth(),i.height=s.outerHeight()),o=s.offset(),i.left=o.left,i.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)o=this.containers[e].element.offset(),this.containers[e].containerCache.left=o.left,this.containers[e].containerCache.top=o.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,o=(i=i||this).options;o.placeholder&&o.placeholder.constructor!==String||(s=o.placeholder,o.placeholder={element:function(){var t=i.currentItem[0].nodeName.toLowerCase(),e=u("<"+t+">",i.document[0]);return i._addClass(e,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(e,"ui-sortable-helper"),"tbody"===t?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),u("<tr>",i.document[0]).appendTo(e)):"tr"===t?i._createTrPlaceholder(i.currentItem,e):"img"===t&&e.attr("src",i.currentItem.attr("src")),s||e.css("visibility","hidden"),e},update:function(t,e){s&&!o.forcePlaceholderSize||(e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=u(o.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),o.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){u("<td> </td>",i.document[0]).attr("colspan",u(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,o,r,n,h,a,l,c=null,p=null,f=this.containers.length-1;0<=f;f--)u.contains(this.currentItem[0],this.containers[f].element[0])||(this._intersectsWith(this.containers[f].containerCache)?c&&u.contains(this.containers[f].element[0],c.element[0])||(c=this.containers[f],p=f):this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",t,this._uiHash(this)),this.containers[f].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(i=1e4,s=null,o=(a=c.floating||this._isFloating(this.currentItem))?"left":"top",r=a?"width":"height",l=a?"pageX":"pageY",e=this.items.length-1;0<=e;e--)u.contains(this.containers[p].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(n=this.items[e].item.offset()[o],h=!1,t[l]-n>this.items[e][r]/2&&(h=!0),Math.abs(t[l]-n)<i&&(i=Math.abs(t[l]-n),s=this.items[e],this.direction=h?"up":"down"));(s||this.options.dropOnEmpty)&&(this.currentContainer!==this.containers[p]?(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1):this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1))}},_createHelper:function(t){var e=this.options,t=u.isFunction(e.helper)?u(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||u("parent"!==e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=u.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&u.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=u(i.containment)[0],e=u(i.containment).offset(),i="hidden"!==u(t).css("overflow"),this.containment=[e.left+(parseInt(u(t).css("borderLeftWidth"),10)||0)+(parseInt(u(t).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(u(t).css("borderTopWidth"),10)||0)+(parseInt(u(t).css("paddingTop"),10)||0)-this.margins.top,e.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(u(t).css("borderLeftWidth"),10)||0)-(parseInt(u(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(u(t).css("borderTopWidth"),10)||0)-(parseInt(u(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,t=/(html|body)/i.test(s[0].tagName);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():t?0:s.scrollTop())*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():t?0:s.scrollLeft())*i}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&u.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),e.grid&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0])),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;0<=i;i--)e||s.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===u.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||u([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}})});
/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(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?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,r=c(e),i=r[0],o=t[1];return e=r[1],i&&(n=D(i=l(i,o))),i?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return l(e,t)}}(o)):l(e,o):(i=(r=c(e=l(e,o)))[0],e=r[1],i&&(n=D(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(w(m,o)||w(v,o)||w(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&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."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.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)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,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("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.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 r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.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)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.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}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){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.addClass("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(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$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"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.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 r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=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){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">×</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.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===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?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(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.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)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=r.option(t);n.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([n])}!function(e){r.trigger("select",{data:e})}(t)});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.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}),e.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}),e.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 r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}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),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.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())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.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}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.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)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._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}),e.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…"},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…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./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","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,b,w,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n: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"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[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.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[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."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.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 r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.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)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(e),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(r._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.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)},d.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 t=[];return this.dataAdapter.current(function(e){t=e}),t},d.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];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.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},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.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."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});
/*!
* Vue.js v2.6.11
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Vue=t()}(this,function(){"use strict";var e=Object.freeze({});function t(e){return null==e}function n(e){return null!=e}function r(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function o(e){return null!==e&&"object"==typeof e}var a=Object.prototype.toString;function s(e){return"[object Object]"===a.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function l(e){return null==e?"":Array.isArray(e)||s(e)&&e.toString===a?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var d=p("slot,component",!0),v=p("key,ref,slot,slot-scope,is");function h(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function y(e,t){return m.call(e,t)}function g(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var _=/-(\w)/g,b=g(function(e){return e.replace(_,function(e,t){return t?t.toUpperCase():""})}),$=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),w=/\B([A-Z])/g,C=g(function(e){return e.replace(w,"-$1").toLowerCase()});var x=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function k(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function A(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n<e.length;n++)e[n]&&A(t,e[n]);return t}function S(e,t,n){}var T=function(e,t,n){return!1},E=function(e){return e};function N(e,t){if(e===t)return!0;var n=o(e),r=o(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every(function(e,n){return N(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var s=Object.keys(e),c=Object.keys(t);return s.length===c.length&&s.every(function(n){return N(e[n],t[n])})}catch(e){return!1}}function j(e,t){for(var n=0;n<e.length;n++)if(N(e[n],t))return n;return-1}function D(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var L="data-server-rendered",M=["component","directive","filter"],I=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],F={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:T,isReservedAttr:T,isUnknownElement:T,getTagNamespace:S,parsePlatformTagName:E,mustUseProp:T,async:!0,_lifecycleHooks:I},P=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function R(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var H=new RegExp("[^"+P.source+".$_\\d]");var B,U="__proto__"in{},z="undefined"!=typeof window,V="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,K=V&&WXEnvironment.platform.toLowerCase(),J=z&&window.navigator.userAgent.toLowerCase(),q=J&&/msie|trident/.test(J),W=J&&J.indexOf("msie 9.0")>0,Z=J&&J.indexOf("edge/")>0,G=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),X=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),Y={}.watch,Q=!1;if(z)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===B&&(B=!z&&!V&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),B},ne=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,oe="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);ie="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ae=S,se=0,ce=function(){this.id=se++,this.subs=[]};ce.prototype.addSub=function(e){this.subs.push(e)},ce.prototype.removeSub=function(e){h(this.subs,e)},ce.prototype.depend=function(){ce.target&&ce.target.addDep(this)},ce.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},ce.target=null;var ue=[];function le(e){ue.push(e),ce.target=e}function fe(){ue.pop(),ce.target=ue[ue.length-1]}var pe=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},de={child:{configurable:!0}};de.child.get=function(){return this.componentInstance},Object.defineProperties(pe.prototype,de);var ve=function(e){void 0===e&&(e="");var t=new pe;return t.text=e,t.isComment=!0,t};function he(e){return new pe(void 0,void 0,void 0,String(e))}function me(e){var t=new pe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ye=Array.prototype,ge=Object.create(ye);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=ye[e];R(ge,e,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var _e=Object.getOwnPropertyNames(ge),be=!0;function $e(e){be=e}var we=function(e){var t;this.value=e,this.dep=new ce,this.vmCount=0,R(e,"__ob__",this),Array.isArray(e)?(U?(t=ge,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];R(e,o,t[o])}}(e,ge,_e),this.observeArray(e)):this.walk(e)};function Ce(e,t){var n;if(o(e)&&!(e instanceof pe))return y(e,"__ob__")&&e.__ob__ instanceof we?n=e.__ob__:be&&!te()&&(Array.isArray(e)||s(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new we(e)),t&&n&&n.vmCount++,n}function xe(e,t,n,r,i){var o=new ce,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Ce(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ce.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,u=!i&&Ce(t),o.notify())}})}}function ke(e,t,n){if(Array.isArray(e)&&c(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(xe(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Ae(e,t){if(Array.isArray(e)&&c(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||y(e,t)&&(delete e[t],n&&n.dep.notify())}}we.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)xe(e,t[n])},we.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ce(e[t])};var Oe=F.optionMergeStrategies;function Se(e,t){if(!t)return e;for(var n,r,i,o=oe?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],y(e,n)?r!==i&&s(r)&&s(i)&&Se(r,i):ke(e,n,i));return e}function Te(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Se(r,i):i}:t?e?function(){return Se("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Ee(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ne(e,t,n,r){var i=Object.create(e||null);return t?A(i,t):i}Oe.data=function(e,t,n){return n?Te(e,t,n):t&&"function"!=typeof t?e:Te(e,t)},I.forEach(function(e){Oe[e]=Ee}),M.forEach(function(e){Oe[e+"s"]=Ne}),Oe.watch=function(e,t,n,r){if(e===Y&&(e=void 0),t===Y&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in A(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Oe.props=Oe.methods=Oe.inject=Oe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return A(i,e),t&&A(i,t),i},Oe.provide=Te;var je=function(e,t){return void 0===t?e:t};function De(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[b(i)]={type:null});else if(s(n))for(var a in n)i=n[a],o[b(a)]=s(i)?i:{type:i};e.props=o}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(s(n))for(var o in n){var a=n[o];r[o]=s(a)?A({from:o},a):{from:a}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=De(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=De(e,t.mixins[r],n);var o,a={};for(o in e)c(o);for(o in t)y(e,o)||c(o);function c(r){var i=Oe[r]||je;a[r]=i(e[r],t[r],n,r)}return a}function Le(e,t,n,r){if("string"==typeof n){var i=e[t];if(y(i,n))return i[n];var o=b(n);if(y(i,o))return i[o];var a=$(o);return y(i,a)?i[a]:i[n]||i[o]||i[a]}}function Me(e,t,n,r){var i=t[e],o=!y(n,e),a=n[e],s=Pe(Boolean,i.type);if(s>-1)if(o&&!y(i,"default"))a=!1;else if(""===a||a===C(e)){var c=Pe(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!y(t,"default"))return;var r=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Ie(t.type)?r.call(e):r}(r,i,e);var u=be;$e(!0),Ce(a),$e(u)}return a}function Ie(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Fe(e,t){return Ie(e)===Ie(t)}function Pe(e,t){if(!Array.isArray(t))return Fe(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Fe(t[n],e))return n;return-1}function Re(e,t,n){le();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Be(e,r,"errorCaptured hook")}}Be(e,t,n)}finally{fe()}}function He(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&u(o)&&!o._handled&&(o.catch(function(e){return Re(e,r,i+" (Promise/async)")}),o._handled=!0)}catch(e){Re(e,r,i)}return o}function Be(e,t,n){if(F.errorHandler)try{return F.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Ue(t,null,"config.errorHandler")}Ue(e,t,n)}function Ue(e,t,n){if(!z&&!V||"undefined"==typeof console)throw e;console.error(e)}var ze,Ve=!1,Ke=[],Je=!1;function qe(){Je=!1;var e=Ke.slice(0);Ke.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&re(Promise)){var We=Promise.resolve();ze=function(){We.then(qe),G&&setTimeout(S)},Ve=!0}else if(q||"undefined"==typeof MutationObserver||!re(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ze="undefined"!=typeof setImmediate&&re(setImmediate)?function(){setImmediate(qe)}:function(){setTimeout(qe,0)};else{var Ze=1,Ge=new MutationObserver(qe),Xe=document.createTextNode(String(Ze));Ge.observe(Xe,{characterData:!0}),ze=function(){Ze=(Ze+1)%2,Xe.data=String(Ze)},Ve=!0}function Ye(e,t){var n;if(Ke.push(function(){if(e)try{e.call(t)}catch(e){Re(e,t,"nextTick")}else n&&n(t)}),Je||(Je=!0,ze()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Qe=new ie;function et(e){!function e(t,n){var r,i;var a=Array.isArray(t);if(!a&&!o(t)||Object.isFrozen(t)||t instanceof pe)return;if(t.__ob__){var s=t.__ob__.dep.id;if(n.has(s))return;n.add(s)}if(a)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,Qe),Qe.clear()}var tt=g(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function nt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return He(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)He(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function rt(e,n,i,o,a,s){var c,u,l,f;for(c in e)u=e[c],l=n[c],f=tt(c),t(u)||(t(l)?(t(u.fns)&&(u=e[c]=nt(u,s)),r(f.once)&&(u=e[c]=a(f.name,u,f.capture)),i(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l));for(c in n)t(e[c])&&o((f=tt(c)).name,n[c],f.capture)}function it(e,i,o){var a;e instanceof pe&&(e=e.data.hook||(e.data.hook={}));var s=e[i];function c(){o.apply(this,arguments),h(a.fns,c)}t(s)?a=nt([c]):n(s.fns)&&r(s.merged)?(a=s).fns.push(c):a=nt([s,c]),a.merged=!0,e[i]=a}function ot(e,t,r,i,o){if(n(t)){if(y(t,r))return e[r]=t[r],o||delete t[r],!0;if(y(t,i))return e[r]=t[i],o||delete t[i],!0}return!1}function at(e){return i(e)?[he(e)]:Array.isArray(e)?function e(o,a){var s=[];var c,u,l,f;for(c=0;c<o.length;c++)t(u=o[c])||"boolean"==typeof u||(l=s.length-1,f=s[l],Array.isArray(u)?u.length>0&&(st((u=e(u,(a||"")+"_"+c))[0])&&st(f)&&(s[l]=he(f.text+u[0].text),u.shift()),s.push.apply(s,u)):i(u)?st(f)?s[l]=he(f.text+u):""!==u&&s.push(he(u)):st(u)&&st(f)?s[l]=he(f.text+u.text):(r(o._isVList)&&n(u.tag)&&t(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+c+"__"),s.push(u)));return s}(e):void 0}function st(e){return n(e)&&n(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var n=Object.create(null),r=oe?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&y(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}}}return n}}function ut(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(lt)&&delete n[u];return n}function lt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ft(t,n,r){var i,o=Object.keys(n).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==e&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=pt(n,c,t[c]))}else i={};for(var u in n)u in i||(i[u]=dt(n,u));return t&&Object.isExtensible(t)&&(t._normalized=i),R(i,"$stable",a),R(i,"$key",s),R(i,"$hasNormal",o),i}function pt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:at(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function dt(e,t){return function(){return e[t]}}function vt(e,t){var r,i,a,s,c;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),i=0,a=e.length;i<a;i++)r[i]=t(e[i],i);else if("number"==typeof e)for(r=new Array(e),i=0;i<e;i++)r[i]=t(i+1,i);else if(o(e))if(oe&&e[Symbol.iterator]){r=[];for(var u=e[Symbol.iterator](),l=u.next();!l.done;)r.push(t(l.value,r.length)),l=u.next()}else for(s=Object.keys(e),r=new Array(s.length),i=0,a=s.length;i<a;i++)c=s[i],r[i]=t(e[c],c,i);return n(r)||(r=[]),r._isVList=!0,r}function ht(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=A(A({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function mt(e){return Le(this.$options,"filters",e)||E}function yt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function gt(e,t,n,r,i){var o=F.keyCodes[t]||n;return i&&r&&!F.keyCodes[t]?yt(i,r):o?yt(o,e):r?C(r)!==t:void 0}function _t(e,t,n,r,i){if(n)if(o(n)){var a;Array.isArray(n)&&(n=O(n));var s=function(o){if("class"===o||"style"===o||v(o))a=e;else{var s=e.attrs&&e.attrs.type;a=r||F.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=b(o),u=C(o);c in a||u in a||(a[o]=n[o],i&&((e.on||(e.on={}))["update:"+o]=function(e){n[o]=e}))};for(var c in n)s(c)}else;return e}function bt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:(wt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function $t(e,t,n){return wt(e,"__once__"+t+(n?"_"+n:""),!0),e}function wt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Ct(e[r],t+"_"+r,n);else Ct(e,t,n)}function Ct(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function xt(e,t){if(t)if(s(t)){var n=e.on=e.on?A({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function kt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?kt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function At(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Ot(e,t){return"string"==typeof e?t+e:e}function St(e){e._o=$t,e._n=f,e._s=l,e._l=vt,e._t=ht,e._q=N,e._i=j,e._m=bt,e._f=mt,e._k=gt,e._b=_t,e._v=he,e._e=ve,e._u=kt,e._g=xt,e._d=At,e._p=Ot}function Tt(t,n,i,o,a){var s,c=this,u=a.options;y(o,"_uid")?(s=Object.create(o))._original=o:(s=o,o=o._original);var l=r(u._compiled),f=!l;this.data=t,this.props=n,this.children=i,this.parent=o,this.listeners=t.on||e,this.injections=ct(u.inject,o),this.slots=function(){return c.$slots||ft(t.scopedSlots,c.$slots=ut(i,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ft(t.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=ft(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var i=Pt(s,e,t,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=u._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Pt(s,e,t,n,r,f)}}function Et(e,t,n,r,i){var o=me(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Nt(e,t){for(var n in t)e[b(n)]=t[n]}St(Tt.prototype);var jt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var r=e;jt.prepatch(r,r)}else{(e.componentInstance=function(e,t){var r={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;n(i)&&(r.render=i.render,r.staticRenderFns=i.staticRenderFns);return new e.componentOptions.Ctor(r)}(e,Wt)).$mount(t?e.elm:void 0,t)}},prepatch:function(t,n){var r=n.componentOptions;!function(t,n,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,c=!!(a&&!a.$stable||s!==e&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),u=!!(o||t.$options._renderChildren||c);t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i);if(t.$options._renderChildren=o,t.$attrs=i.data.attrs||e,t.$listeners=r||e,n&&t.$options.props){$e(!1);for(var l=t._props,f=t.$options._propKeys||[],p=0;p<f.length;p++){var d=f[p],v=t.$options.props;l[d]=Me(d,v,n,t)}$e(!0),t.$options.propsData=n}r=r||e;var h=t.$options._parentListeners;t.$options._parentListeners=r,qt(t,r,h),u&&(t.$slots=ut(o,i.context),t.$forceUpdate())}(n.componentInstance=t.componentInstance,r.propsData,r.listeners,n,r.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,Yt(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,en.push(t)):Xt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Gt(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Yt(t,"deactivated")}}(t,!0):t.$destroy())}},Dt=Object.keys(jt);function Lt(i,a,s,c,l){if(!t(i)){var f=s.$options._base;if(o(i)&&(i=f.extend(i)),"function"==typeof i){var p;if(t(i.cid)&&void 0===(i=function(e,i){if(r(e.error)&&n(e.errorComp))return e.errorComp;if(n(e.resolved))return e.resolved;var a=Ht;a&&n(e.owners)&&-1===e.owners.indexOf(a)&&e.owners.push(a);if(r(e.loading)&&n(e.loadingComp))return e.loadingComp;if(a&&!n(e.owners)){var s=e.owners=[a],c=!0,l=null,f=null;a.$on("hook:destroyed",function(){return h(s,a)});var p=function(e){for(var t=0,n=s.length;t<n;t++)s[t].$forceUpdate();e&&(s.length=0,null!==l&&(clearTimeout(l),l=null),null!==f&&(clearTimeout(f),f=null))},d=D(function(t){e.resolved=Bt(t,i),c?s.length=0:p(!0)}),v=D(function(t){n(e.errorComp)&&(e.error=!0,p(!0))}),m=e(d,v);return o(m)&&(u(m)?t(e.resolved)&&m.then(d,v):u(m.component)&&(m.component.then(d,v),n(m.error)&&(e.errorComp=Bt(m.error,i)),n(m.loading)&&(e.loadingComp=Bt(m.loading,i),0===m.delay?e.loading=!0:l=setTimeout(function(){l=null,t(e.resolved)&&t(e.error)&&(e.loading=!0,p(!1))},m.delay||200)),n(m.timeout)&&(f=setTimeout(function(){f=null,t(e.resolved)&&v(null)},m.timeout)))),c=!1,e.loading?e.loadingComp:e.resolved}}(p=i,f)))return function(e,t,n,r,i){var o=ve();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}(p,a,s,c,l);a=a||{},$n(i),n(a.model)&&function(e,t){var r=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[r]=t.model.value;var o=t.on||(t.on={}),a=o[i],s=t.model.callback;n(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[i]=[s].concat(a)):o[i]=s}(i.options,a);var d=function(e,r,i){var o=r.options.props;if(!t(o)){var a={},s=e.attrs,c=e.props;if(n(s)||n(c))for(var u in o){var l=C(u);ot(a,c,u,l,!0)||ot(a,s,u,l,!1)}return a}}(a,i);if(r(i.options.functional))return function(t,r,i,o,a){var s=t.options,c={},u=s.props;if(n(u))for(var l in u)c[l]=Me(l,u,r||e);else n(i.attrs)&&Nt(c,i.attrs),n(i.props)&&Nt(c,i.props);var f=new Tt(i,c,a,o,t),p=s.render.call(null,f._c,f);if(p instanceof pe)return Et(p,i,f.parent,s);if(Array.isArray(p)){for(var d=at(p)||[],v=new Array(d.length),h=0;h<d.length;h++)v[h]=Et(d[h],i,f.parent,s);return v}}(i,d,a,s,c);var v=a.on;if(a.on=a.nativeOn,r(i.options.abstract)){var m=a.slot;a={},m&&(a.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Dt.length;n++){var r=Dt[n],i=t[r],o=jt[r];i===o||i&&i._merged||(t[r]=i?Mt(o,i):o)}}(a);var y=i.options.name||l;return new pe("vue-component-"+i.cid+(y?"-"+y:""),a,void 0,void 0,void 0,s,{Ctor:i,propsData:d,listeners:v,tag:l,children:c},p)}}}function Mt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}var It=1,Ft=2;function Pt(e,a,s,c,u,l){return(Array.isArray(s)||i(s))&&(u=c,c=s,s=void 0),r(l)&&(u=Ft),function(e,i,a,s,c){if(n(a)&&n(a.__ob__))return ve();n(a)&&n(a.is)&&(i=a.is);if(!i)return ve();Array.isArray(s)&&"function"==typeof s[0]&&((a=a||{}).scopedSlots={default:s[0]},s.length=0);c===Ft?s=at(s):c===It&&(s=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(s));var u,l;if("string"==typeof i){var f;l=e.$vnode&&e.$vnode.ns||F.getTagNamespace(i),u=F.isReservedTag(i)?new pe(F.parsePlatformTagName(i),a,s,void 0,void 0,e):a&&a.pre||!n(f=Le(e.$options,"components",i))?new pe(i,a,s,void 0,void 0,e):Lt(f,a,e,s,i)}else u=Lt(i,a,e,s);return Array.isArray(u)?u:n(u)?(n(l)&&function e(i,o,a){i.ns=o;"foreignObject"===i.tag&&(o=void 0,a=!0);if(n(i.children))for(var s=0,c=i.children.length;s<c;s++){var u=i.children[s];n(u.tag)&&(t(u.ns)||r(a)&&"svg"!==u.tag)&&e(u,o,a)}}(u,l),n(a)&&function(e){o(e.style)&&et(e.style);o(e.class)&&et(e.class)}(a),u):ve()}(e,a,s,c,u)}var Rt,Ht=null;function Bt(e,t){return(e.__esModule||oe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),o(e)?t.extend(e):e}function Ut(e){return e.isComment&&e.asyncFactory}function zt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var r=e[t];if(n(r)&&(n(r.componentOptions)||Ut(r)))return r}}function Vt(e,t){Rt.$on(e,t)}function Kt(e,t){Rt.$off(e,t)}function Jt(e,t){var n=Rt;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function qt(e,t,n){Rt=e,rt(t,n||{},Vt,Kt,Jt,e),Rt=void 0}var Wt=null;function Zt(e){var t=Wt;return Wt=e,function(){Wt=t}}function Gt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Xt(e,t){if(t){if(e._directInactive=!1,Gt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Xt(e.$children[n]);Yt(e,"activated")}}function Yt(e,t){le();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)He(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),fe()}var Qt=[],en=[],tn={},nn=!1,rn=!1,on=0;var an=0,sn=Date.now;if(z&&!q){var cn=window.performance;cn&&"function"==typeof cn.now&&sn()>document.createEvent("Event").timeStamp&&(sn=function(){return cn.now()})}function un(){var e,t;for(an=sn(),rn=!0,Qt.sort(function(e,t){return e.id-t.id}),on=0;on<Qt.length;on++)(e=Qt[on]).before&&e.before(),t=e.id,tn[t]=null,e.run();var n=en.slice(),r=Qt.slice();on=Qt.length=en.length=0,tn={},nn=rn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Xt(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Yt(r,"updated")}}(r),ne&&F.devtools&&ne.emit("flush")}var ln=0,fn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ln,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ie,this.newDepIds=new ie,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!H.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=S)),this.value=this.lazy?void 0:this.get()};fn.prototype.get=function(){var e;le(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Re(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&et(e),fe(),this.cleanupDeps()}return e},fn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},fn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},fn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==tn[t]){if(tn[t]=!0,rn){for(var n=Qt.length-1;n>on&&Qt[n].id>e.id;)n--;Qt.splice(n+1,0,e)}else Qt.push(e);nn||(nn=!0,Ye(un))}}(this)},fn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||o(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Re(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:S,set:S};function dn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}function vn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&$e(!1);var o=function(o){i.push(o);var a=Me(o,t,n,e);xe(r,o,a),o in e||dn(e,"_props",o)};for(var a in t)o(a);$e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?S:x(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;s(t=e._data="function"==typeof t?function(e,t){le();try{return e.call(t,t)}catch(e){return Re(e,t,"data()"),{}}finally{fe()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&y(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&dn(e,"_data",o))}var a;Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=te();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new fn(e,a||S,S,hn)),i in e||mn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)_n(e,n,r[i]);else _n(e,n,r)}}(e,t.watch)}var hn={lazy:!0};function mn(e,t,n){var r=!te();"function"==typeof n?(pn.get=r?yn(t):gn(n),pn.set=S):(pn.get=n.get?r&&!1!==n.cache?yn(t):gn(n.get):S,pn.set=n.set||S),Object.defineProperty(e,t,pn)}function yn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ce.target&&t.depend(),t.value}}function gn(e){return function(){return e.call(this,this)}}function _n(e,t,n,r){return s(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var bn=0;function $n(e){var t=e.options;if(e.super){var n=$n(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&A(e.extendOptions,r),(t=e.options=De(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function wn(e){this._init(e)}function Cn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=De(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)dn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)mn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,M.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=A({},a.options),i[r]=a,a}}function xn(e){return e&&(e.Ctor.options.name||e.tag)}function kn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===a.call(n)&&e.test(t));var n}function An(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=xn(a.componentOptions);s&&!t(s)&&On(n,o,r,i)}}}function On(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,h(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=bn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=De($n(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&qt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=ut(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,r,i){return Pt(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Pt(t,e,n,r,i,!0)};var o=r&&r.data;xe(t,"$attrs",o&&o.attrs||e,null,!0),xe(t,"$listeners",n._parentListeners||e,null,!0)}(n),Yt(n,"beforeCreate"),function(e){var t=ct(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach(function(n){xe(e,n,t[n])}),$e(!0))}(n),vn(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),Yt(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(wn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ke,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){if(s(t))return _n(this,e,t,n);(n=n||{}).user=!0;var r=new fn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Re(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(wn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this._events[e];if(t){t=t.length>1?k(t):t;for(var n=k(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;i<o;i++)He(t[i],this,n,this,r)}return this}}(wn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Zt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Yt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||h(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Yt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(wn),function(e){St(e.prototype),e.prototype.$nextTick=function(e){return Ye(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=ft(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Ht=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){Re(n,t,"render"),e=t._vnode}finally{Ht=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof pe||(e=ve()),e.parent=i,e}}(wn);var Sn=[String,RegExp,Array],Tn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Sn,exclude:Sn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)On(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){An(e,function(e){return kn(t,e)})}),this.$watch("exclude",function(t){An(e,function(e){return!kn(t,e)})})},render:function(){var e=this.$slots.default,t=zt(e),n=t&&t.componentOptions;if(n){var r=xn(n),i=this.include,o=this.exclude;if(i&&(!r||!kn(i,r))||o&&r&&kn(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,h(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&On(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:ae,extend:A,mergeOptions:De,defineReactive:xe},e.set=ke,e.delete=Ae,e.nextTick=Ye,e.observable=function(e){return Ce(e),e},e.options=Object.create(null),M.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,A(e.options.components,Tn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),Cn(e),function(e){M.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(wn),Object.defineProperty(wn.prototype,"$isServer",{get:te}),Object.defineProperty(wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wn,"FunctionalRenderContext",{value:Tt}),wn.version="2.6.11";var En=p("style,class"),Nn=p("input,textarea,option,select,progress"),jn=function(e,t,n){return"value"===n&&Nn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Dn=p("contenteditable,draggable,spellcheck"),Ln=p("events,caret,typing,plaintext-only"),Mn=function(e,t){return Hn(t)||"false"===t?"false":"contenteditable"===e&&Ln(t)?t:"true"},In=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Fn="http://www.w3.org/1999/xlink",Pn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Rn=function(e){return Pn(e)?e.slice(6,e.length):""},Hn=function(e){return null==e||!1===e};function Bn(e){for(var t=e.data,r=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Un(i.data,t));for(;n(r=r.parent);)r&&r.data&&(t=Un(t,r.data));return function(e,t){if(n(e)||n(t))return zn(e,Vn(t));return""}(t.staticClass,t.class)}function Un(e,t){return{staticClass:zn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function zn(e,t){return e?t?e+" "+t:e:t||""}function Vn(e){return Array.isArray(e)?function(e){for(var t,r="",i=0,o=e.length;i<o;i++)n(t=Vn(e[i]))&&""!==t&&(r&&(r+=" "),r+=t);return r}(e):o(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Kn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Jn=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),qn=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Wn=function(e){return Jn(e)||qn(e)};function Zn(e){return qn(e)?"svg":"math"===e?"math":void 0}var Gn=Object.create(null);var Xn=p("text,number,password,search,email,tel,url");function Yn(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var Qn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Kn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),er={create:function(e,t){tr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(tr(e,!0),tr(t))},destroy:function(e){tr(e,!0)}};function tr(e,t){var r=e.data.ref;if(n(r)){var i=e.context,o=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[r])?h(a[r],o):a[r]===o&&(a[r]=void 0):e.data.refInFor?Array.isArray(a[r])?a[r].indexOf(o)<0&&a[r].push(o):a[r]=[o]:a[r]=o}}var nr=new pe("",{},[]),rr=["create","activate","update","remove","destroy"];function ir(e,i){return e.key===i.key&&(e.tag===i.tag&&e.isComment===i.isComment&&n(e.data)===n(i.data)&&function(e,t){if("input"!==e.tag)return!0;var r,i=n(r=e.data)&&n(r=r.attrs)&&r.type,o=n(r=t.data)&&n(r=r.attrs)&&r.type;return i===o||Xn(i)&&Xn(o)}(e,i)||r(e.isAsyncPlaceholder)&&e.asyncFactory===i.asyncFactory&&t(i.asyncFactory.error))}function or(e,t,r){var i,o,a={};for(i=t;i<=r;++i)n(o=e[i].key)&&(a[o]=i);return a}var ar={create:sr,update:sr,destroy:function(e){sr(e,nr)}};function sr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,o=e===nr,a=t===nr,s=ur(e.data.directives,e.context),c=ur(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,fr(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(fr(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)fr(u[n],"inserted",t,e)};o?it(t,"insert",f):f()}l.length&&it(t,"postpatch",function(){for(var n=0;n<l.length;n++)fr(l[n],"componentUpdated",t,e)});if(!o)for(n in s)c[n]||fr(s[n],"unbind",e,e,a)}(e,t)}var cr=Object.create(null);function ur(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=cr),i[lr(r)]=r,r.def=Le(t.$options,"directives",r.name);return i}function lr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function fr(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(r){Re(r,n.context,"directive "+e.name+" "+t+" hook")}}var pr=[er,ar];function dr(e,r){var i=r.componentOptions;if(!(n(i)&&!1===i.Ctor.options.inheritAttrs||t(e.data.attrs)&&t(r.data.attrs))){var o,a,s=r.elm,c=e.data.attrs||{},u=r.data.attrs||{};for(o in n(u.__ob__)&&(u=r.data.attrs=A({},u)),u)a=u[o],c[o]!==a&&vr(s,o,a);for(o in(q||Z)&&u.value!==c.value&&vr(s,"value",u.value),c)t(u[o])&&(Pn(o)?s.removeAttributeNS(Fn,Rn(o)):Dn(o)||s.removeAttribute(o))}}function vr(e,t,n){e.tagName.indexOf("-")>-1?hr(e,t,n):In(t)?Hn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Dn(t)?e.setAttribute(t,Mn(t,n)):Pn(t)?Hn(n)?e.removeAttributeNS(Fn,Rn(t)):e.setAttributeNS(Fn,t,n):hr(e,t,n)}function hr(e,t,n){if(Hn(n))e.removeAttribute(t);else{if(q&&!W&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var mr={create:dr,update:dr};function yr(e,r){var i=r.elm,o=r.data,a=e.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=Bn(r),c=i._transitionClasses;n(c)&&(s=zn(s,Vn(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var gr,_r,br,$r,wr,Cr,xr={create:yr,update:yr},kr=/[\w).+\-_$\]]/;function Ar(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(u)47===t&&92!==n&&(u=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||l||f||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===t){for(var v=r-1,h=void 0;v>=0&&" "===(h=e.charAt(v));v--);h&&kr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=Or(i,o[r]);return i}function Or(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Sr(e,t){console.error("[Vue compiler]: "+e)}function Tr(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Er(e,t,n,r,i){(e.props||(e.props=[])).push(Rr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Nr(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Rr({name:t,value:n,dynamic:i},r)),e.plain=!1}function jr(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Rr({name:t,value:n},r))}function Dr(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Rr({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Lr(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Mr(t,n,r,i,o,a,s,c){var u;(i=i||e).right?c?n="("+n+")==='click'?'contextmenu':("+n+")":"click"===n&&(n="contextmenu",delete i.right):i.middle&&(c?n="("+n+")==='click'?'mouseup':("+n+")":"click"===n&&(n="mouseup")),i.capture&&(delete i.capture,n=Lr("!",n,c)),i.once&&(delete i.once,n=Lr("~",n,c)),i.passive&&(delete i.passive,n=Lr("&",n,c)),i.native?(delete i.native,u=t.nativeEvents||(t.nativeEvents={})):u=t.events||(t.events={});var l=Rr({value:r.trim(),dynamic:c},s);i!==e&&(l.modifiers=i);var f=u[n];Array.isArray(f)?o?f.unshift(l):f.push(l):u[n]=f?o?[l,f]:[f,l]:l,t.plain=!1}function Ir(e,t,n){var r=Fr(e,":"+t)||Fr(e,"v-bind:"+t);if(null!=r)return Ar(r);if(!1!==n){var i=Fr(e,t);if(null!=i)return JSON.stringify(i)}}function Fr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Pr(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Rr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Hr(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=Br(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function Br(e,t){var n=function(e){if(e=e.trim(),gr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<gr-1)return($r=e.lastIndexOf("."))>-1?{exp:e.slice(0,$r),key:'"'+e.slice($r+1)+'"'}:{exp:e,key:null};_r=e,$r=wr=Cr=0;for(;!zr();)Vr(br=Ur())?Jr(br):91===br&&Kr(br);return{exp:e.slice(0,wr),key:e.slice(wr+1,Cr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Ur(){return _r.charCodeAt(++$r)}function zr(){return $r>=gr}function Vr(e){return 34===e||39===e}function Kr(e){var t=1;for(wr=$r;!zr();)if(Vr(e=Ur()))Jr(e);else if(91===e&&t++,93===e&&t--,0===t){Cr=$r;break}}function Jr(e){for(var t=e;!zr()&&(e=Ur())!==t;);}var qr,Wr="__r",Zr="__c";function Gr(e,t,n){var r=qr;return function i(){null!==t.apply(null,arguments)&&Qr(e,i,n,r)}}var Xr=Ve&&!(X&&Number(X[1])<=53);function Yr(e,t,n,r){if(Xr){var i=an,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}qr.addEventListener(e,t,Q?{capture:n,passive:r}:n)}function Qr(e,t,n,r){(r||qr).removeEventListener(e,t._wrapper||t,n)}function ei(e,r){if(!t(e.data.on)||!t(r.data.on)){var i=r.data.on||{},o=e.data.on||{};qr=r.elm,function(e){if(n(e[Wr])){var t=q?"change":"input";e[t]=[].concat(e[Wr],e[t]||[]),delete e[Wr]}n(e[Zr])&&(e.change=[].concat(e[Zr],e.change||[]),delete e[Zr])}(i),rt(i,o,Yr,Qr,Gr,r.context),qr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,r){if(!t(e.data.domProps)||!t(r.data.domProps)){var i,o,a=r.elm,s=e.data.domProps||{},c=r.data.domProps||{};for(i in n(c.__ob__)&&(c=r.data.domProps=A({},c)),s)i in c||(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(r.children&&(r.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=o;var u=t(o)?"":String(o);ii(a,u)&&(a.value=u)}else if("innerHTML"===i&&qn(a.tagName)&&t(a.innerHTML)){(ti=ti||document.createElement("div")).innerHTML="<svg>"+o+"</svg>";for(var l=ti.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[i])try{a[i]=o}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var r=e.value,i=e._vModifiers;if(n(i)){if(i.number)return f(r)!==f(t);if(i.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var oi={create:ri,update:ri},ai=g(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function si(e){var t=ci(e.style);return e.staticStyle?A(e.staticStyle,t):t}function ci(e){return Array.isArray(e)?O(e):"string"==typeof e?ai(e):e}var ui,li=/^--/,fi=/\s*!important$/,pi=function(e,t,n){if(li.test(t))e.style.setProperty(t,n);else if(fi.test(n))e.style.setProperty(C(t),n.replace(fi,""),"important");else{var r=vi(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},di=["Webkit","Moz","ms"],vi=g(function(e){if(ui=ui||document.createElement("div").style,"filter"!==(e=b(e))&&e in ui)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<di.length;n++){var r=di[n]+t;if(r in ui)return r}});function hi(e,r){var i=r.data,o=e.data;if(!(t(i.staticStyle)&&t(i.style)&&t(o.staticStyle)&&t(o.style))){var a,s,c=r.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=ci(r.data.style)||{};r.data.normalizedStyle=n(p.__ob__)?A({},p):p;var d=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=si(i.data))&&A(r,n);(n=si(e.data))&&A(r,n);for(var o=e;o=o.parent;)o.data&&(n=si(o.data))&&A(r,n);return r}(r,!0);for(s in f)t(d[s])&&pi(c,s,"");for(s in d)(a=d[s])!==f[s]&&pi(c,s,null==a?"":a)}}var mi={create:hi,update:hi},yi=/\s+/;function gi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(yi).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function _i(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(yi).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function bi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&A(t,$i(e.name||"v")),A(t,e),t}return"string"==typeof e?$i(e):void 0}}var $i=g(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),wi=z&&!W,Ci="transition",xi="animation",ki="transition",Ai="transitionend",Oi="animation",Si="animationend";wi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ki="WebkitTransition",Ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oi="WebkitAnimation",Si="webkitAnimationEnd"));var Ti=z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ei(e){Ti(function(){Ti(e)})}function Ni(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),gi(e,t))}function ji(e,t){e._transitionClasses&&h(e._transitionClasses,t),_i(e,t)}function Di(e,t,n){var r=Mi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ci?Ai:Si,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),e.addEventListener(s,l)}var Li=/\b(transform|all)(,|$)/;function Mi(e,t){var n,r=window.getComputedStyle(e),i=(r[ki+"Delay"]||"").split(", "),o=(r[ki+"Duration"]||"").split(", "),a=Ii(i,o),s=(r[Oi+"Delay"]||"").split(", "),c=(r[Oi+"Duration"]||"").split(", "),u=Ii(s,c),l=0,f=0;return t===Ci?a>0&&(n=Ci,l=a,f=o.length):t===xi?u>0&&(n=xi,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ci:xi:null)?n===Ci?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ci&&Li.test(r[ki+"Property"])}}function Ii(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return Fi(t)+Fi(e[n])}))}function Fi(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Pi(e,r){var i=e.elm;n(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var a=bi(e.data.transition);if(!t(a)&&!n(i._enterCb)&&1===i.nodeType){for(var s=a.css,c=a.type,u=a.enterClass,l=a.enterToClass,p=a.enterActiveClass,d=a.appearClass,v=a.appearToClass,h=a.appearActiveClass,m=a.beforeEnter,y=a.enter,g=a.afterEnter,_=a.enterCancelled,b=a.beforeAppear,$=a.appear,w=a.afterAppear,C=a.appearCancelled,x=a.duration,k=Wt,A=Wt.$vnode;A&&A.parent;)k=A.context,A=A.parent;var O=!k._isMounted||!e.isRootInsert;if(!O||$||""===$){var S=O&&d?d:u,T=O&&h?h:p,E=O&&v?v:l,N=O&&b||m,j=O&&"function"==typeof $?$:y,L=O&&w||g,M=O&&C||_,I=f(o(x)?x.enter:x),F=!1!==s&&!W,P=Bi(j),R=i._enterCb=D(function(){F&&(ji(i,E),ji(i,T)),R.cancelled?(F&&ji(i,S),M&&M(i)):L&&L(i),i._enterCb=null});e.data.show||it(e,"insert",function(){var t=i.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),j&&j(i,R)}),N&&N(i),F&&(Ni(i,S),Ni(i,T),Ei(function(){ji(i,S),R.cancelled||(Ni(i,E),P||(Hi(I)?setTimeout(R,I):Di(i,c,R)))})),e.data.show&&(r&&r(),j&&j(i,R)),F||P||R()}}}function Ri(e,r){var i=e.elm;n(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var a=bi(e.data.transition);if(t(a)||1!==i.nodeType)return r();if(!n(i._leaveCb)){var s=a.css,c=a.type,u=a.leaveClass,l=a.leaveToClass,p=a.leaveActiveClass,d=a.beforeLeave,v=a.leave,h=a.afterLeave,m=a.leaveCancelled,y=a.delayLeave,g=a.duration,_=!1!==s&&!W,b=Bi(v),$=f(o(g)?g.leave:g),w=i._leaveCb=D(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),_&&(ji(i,l),ji(i,p)),w.cancelled?(_&&ji(i,u),m&&m(i)):(r(),h&&h(i)),i._leaveCb=null});y?y(C):C()}function C(){w.cancelled||(!e.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),d&&d(i),_&&(Ni(i,u),Ni(i,p),Ei(function(){ji(i,u),w.cancelled||(Ni(i,l),b||(Hi($)?setTimeout(w,$):Di(i,c,w)))})),v&&v(i,w),_||b||w())}}function Hi(e){return"number"==typeof e&&!isNaN(e)}function Bi(e){if(t(e))return!1;var r=e.fns;return n(r)?Bi(Array.isArray(r)?r[0]:r):(e._length||e.length)>1}function Ui(e,t){!0!==t.data.show&&Pi(t)}var zi=function(e){var o,a,s={},c=e.modules,u=e.nodeOps;for(o=0;o<rr.length;++o)for(s[rr[o]]=[],a=0;a<c.length;++a)n(c[a][rr[o]])&&s[rr[o]].push(c[a][rr[o]]);function l(e){var t=u.parentNode(e);n(t)&&u.removeChild(t,e)}function f(e,t,i,o,a,c,l){if(n(e.elm)&&n(c)&&(e=c[l]=me(e)),e.isRootInsert=!a,!function(e,t,i,o){var a=e.data;if(n(a)){var c=n(e.componentInstance)&&a.keepAlive;if(n(a=a.hook)&&n(a=a.init)&&a(e,!1),n(e.componentInstance))return d(e,t),v(i,e.elm,o),r(c)&&function(e,t,r,i){for(var o,a=e;a.componentInstance;)if(a=a.componentInstance._vnode,n(o=a.data)&&n(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](nr,a);t.push(a);break}v(r,e.elm,i)}(e,t,i,o),!0}}(e,t,i,o)){var f=e.data,p=e.children,m=e.tag;n(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),g(e),h(e,p,t),n(f)&&y(e,t),v(i,e.elm,o)):r(e.isComment)?(e.elm=u.createComment(e.text),v(i,e.elm,o)):(e.elm=u.createTextNode(e.text),v(i,e.elm,o))}}function d(e,t){n(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,m(e)?(y(e,t),g(e)):(tr(e),t.push(e))}function v(e,t,r){n(e)&&(n(r)?u.parentNode(r)===e&&u.insertBefore(e,t,r):u.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)f(t[r],n,e.elm,null,!0,t,r);else i(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function m(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return n(e.tag)}function y(e,t){for(var r=0;r<s.create.length;++r)s.create[r](nr,e);n(o=e.data.hook)&&(n(o.create)&&o.create(nr,e),n(o.insert)&&t.push(e))}function g(e){var t;if(n(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var r=e;r;)n(t=r.context)&&n(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),r=r.parent;n(t=Wt)&&t!==e.context&&t!==e.fnContext&&n(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function _(e,t,n,r,i,o){for(;r<=i;++r)f(n[r],o,e,t,!1,n,r)}function b(e){var t,r,i=e.data;if(n(i))for(n(t=i.hook)&&n(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(n(t=e.children))for(r=0;r<e.children.length;++r)b(e.children[r])}function $(e,t,r){for(;t<=r;++t){var i=e[t];n(i)&&(n(i.tag)?(w(i),b(i)):l(i.elm))}}function w(e,t){if(n(t)||n(e.data)){var r,i=s.remove.length+1;for(n(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&l(e)}return n.listeners=t,n}(e.elm,i),n(r=e.componentInstance)&&n(r=r._vnode)&&n(r.data)&&w(r,t),r=0;r<s.remove.length;++r)s.remove[r](e,t);n(r=e.data.hook)&&n(r=r.remove)?r(e,t):t()}else l(e.elm)}function C(e,t,r,i){for(var o=r;o<i;o++){var a=t[o];if(n(a)&&ir(e,a))return o}}function x(e,i,o,a,c,l){if(e!==i){n(i.elm)&&n(a)&&(i=a[c]=me(i));var p=i.elm=e.elm;if(r(e.isAsyncPlaceholder))n(i.asyncFactory.resolved)?O(e.elm,i,o):i.isAsyncPlaceholder=!0;else if(r(i.isStatic)&&r(e.isStatic)&&i.key===e.key&&(r(i.isCloned)||r(i.isOnce)))i.componentInstance=e.componentInstance;else{var d,v=i.data;n(v)&&n(d=v.hook)&&n(d=d.prepatch)&&d(e,i);var h=e.children,y=i.children;if(n(v)&&m(i)){for(d=0;d<s.update.length;++d)s.update[d](e,i);n(d=v.hook)&&n(d=d.update)&&d(e,i)}t(i.text)?n(h)&&n(y)?h!==y&&function(e,r,i,o,a){for(var s,c,l,p=0,d=0,v=r.length-1,h=r[0],m=r[v],y=i.length-1,g=i[0],b=i[y],w=!a;p<=v&&d<=y;)t(h)?h=r[++p]:t(m)?m=r[--v]:ir(h,g)?(x(h,g,o,i,d),h=r[++p],g=i[++d]):ir(m,b)?(x(m,b,o,i,y),m=r[--v],b=i[--y]):ir(h,b)?(x(h,b,o,i,y),w&&u.insertBefore(e,h.elm,u.nextSibling(m.elm)),h=r[++p],b=i[--y]):ir(m,g)?(x(m,g,o,i,d),w&&u.insertBefore(e,m.elm,h.elm),m=r[--v],g=i[++d]):(t(s)&&(s=or(r,p,v)),t(c=n(g.key)?s[g.key]:C(g,r,p,v))?f(g,o,e,h.elm,!1,i,d):ir(l=r[c],g)?(x(l,g,o,i,d),r[c]=void 0,w&&u.insertBefore(e,l.elm,h.elm)):f(g,o,e,h.elm,!1,i,d),g=i[++d]);p>v?_(e,t(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(r,p,v)}(p,h,y,o,l):n(y)?(n(e.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,o)):n(h)?$(h,0,h.length-1):n(e.text)&&u.setTextContent(p,""):e.text!==i.text&&u.setTextContent(p,i.text),n(v)&&n(d=v.hook)&&n(d=d.postpatch)&&d(e,i)}}}function k(e,t,i){if(r(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o<t.length;++o)t[o].data.hook.insert(t[o])}var A=p("attrs,class,staticClass,staticStyle,key");function O(e,t,i,o){var a,s=t.tag,c=t.data,u=t.children;if(o=o||c&&c.pre,t.elm=e,r(t.isComment)&&n(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(n(c)&&(n(a=c.hook)&&n(a=a.init)&&a(t,!0),n(a=t.componentInstance)))return d(t,i),!0;if(n(s)){if(n(u))if(e.hasChildNodes())if(n(a=c)&&n(a=a.domProps)&&n(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,p=0;p<u.length;p++){if(!f||!O(f,u[p],i,o)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else h(t,u,i);if(n(c)){var v=!1;for(var m in c)if(!A(m)){v=!0,y(t,i);break}!v&&c.class&&et(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,i,o,a){if(!t(i)){var c,l=!1,p=[];if(t(e))l=!0,f(i,p);else{var d=n(e.nodeType);if(!d&&ir(e,i))x(e,i,p,null,null,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(L)&&(e.removeAttribute(L),o=!0),r(o)&&O(e,i,p))return k(i,p,!0),e;c=e,e=new pe(u.tagName(c).toLowerCase(),{},[],void 0,c)}var v=e.elm,h=u.parentNode(v);if(f(i,p,v._leaveCb?null:h,u.nextSibling(v)),n(i.parent))for(var y=i.parent,g=m(i);y;){for(var _=0;_<s.destroy.length;++_)s.destroy[_](y);if(y.elm=i.elm,g){for(var w=0;w<s.create.length;++w)s.create[w](nr,y);var C=y.data.hook.insert;if(C.merged)for(var A=1;A<C.fns.length;A++)C.fns[A]()}else tr(y);y=y.parent}n(h)?$([e],0,0):n(e.tag)&&b(e)}}return k(i,p,l),i.elm}n(e)&&b(e)}}({nodeOps:Qn,modules:[mr,xr,ni,oi,mi,z?{create:Ui,activate:Ui,remove:function(e,t){!0!==e.data.show?Ri(e,t):t()}}:{}].concat(pr)});W&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Xi(e,"input")});var Vi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?it(n,"postpatch",function(){Vi.componentUpdated(e,t,n)}):Ki(e,t,n.context),e._vOptions=[].map.call(e.options,Wi)):("textarea"===n.tag||Xn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Zi),e.addEventListener("compositionend",Gi),e.addEventListener("change",Gi),W&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ki(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Wi);if(i.some(function(e,t){return!N(e,r[t])}))(e.multiple?t.value.some(function(e){return qi(e,i)}):t.value!==t.oldValue&&qi(t.value,i))&&Xi(e,"change")}}};function Ki(e,t,n){Ji(e,t,n),(q||Z)&&setTimeout(function(){Ji(e,t,n)},0)}function Ji(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=j(r,Wi(a))>-1,a.selected!==o&&(a.selected=o);else if(N(Wi(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function qi(e,t){return t.every(function(t){return!N(t,e)})}function Wi(e){return"_value"in e?e._value:e.value}function Zi(e){e.target.composing=!0}function Gi(e){e.target.composing&&(e.target.composing=!1,Xi(e.target,"input"))}function Xi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Yi(e){return!e.componentInstance||e.data&&e.data.transition?e:Yi(e.componentInstance._vnode)}var Qi={model:Vi,show:{bind:function(e,t,n){var r=t.value,i=(n=Yi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Pi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Yi(n)).data&&n.data.transition?(n.data.show=!0,r?Pi(n,function(){e.style.display=e.__vOriginalDisplay}):Ri(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},eo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function to(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?to(zt(t.children)):e}function no(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[b(o)]=i[o];return t}function ro(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var io=function(e){return e.tag||Ut(e)},oo=function(e){return"show"===e.name},ao={name:"transition",props:eo,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(io)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var a=to(o);if(!a)return o;if(this._leaving)return ro(e,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=no(this),u=this._vnode,l=to(u);if(a.data.directives&&a.data.directives.some(oo)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!Ut(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=A({},c);if("out-in"===r)return this._leaving=!0,it(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ro(e,o);if("in-out"===r){if(Ut(a))return u;var p,d=function(){p()};it(c,"afterEnter",d),it(c,"enterCancelled",d),it(f,"delayLeave",function(e){p=e})}}return o}}},so=A({tag:String,moveClass:String},eo);function co(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function uo(e){e.data.newPos=e.elm.getBoundingClientRect()}function lo(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete so.mode;var fo={Transition:ao,TransitionGroup:{props:so,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Zt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=no(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a)}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?u.push(p):l.push(p)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(co),e.forEach(uo),e.forEach(lo),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;Ni(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ai,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ai,e),n._moveCb=null,ji(n,t))})}}))},methods:{hasMove:function(e,t){if(!wi)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){_i(n,e)}),gi(n,t),n.style.display="none",this.$el.appendChild(n);var r=Mi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};wn.config.mustUseProp=jn,wn.config.isReservedTag=Wn,wn.config.isReservedAttr=En,wn.config.getTagNamespace=Zn,wn.config.isUnknownElement=function(e){if(!z)return!0;if(Wn(e))return!1;if(e=e.toLowerCase(),null!=Gn[e])return Gn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Gn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Gn[e]=/HTMLUnknownElement/.test(t.toString())},A(wn.options.directives,Qi),A(wn.options.components,fo),wn.prototype.__patch__=z?zi:S,wn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ve),Yt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new fn(e,r,S,{before:function(){e._isMounted&&!e._isDestroyed&&Yt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Yt(e,"mounted")),e}(this,e=e&&z?Yn(e):void 0,t)},z&&setTimeout(function(){F.devtools&&ne&&ne.emit("init",wn)},0);var po=/\{\{((?:.|\r?\n)+?)\}\}/g,vo=/[-.*+?^${}()|[\]\/\\]/g,ho=g(function(e){var t=e[0].replace(vo,"\\$&"),n=e[1].replace(vo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var mo={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Fr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Ir(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var yo,go={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Fr(e,"style");n&&(e.staticStyle=JSON.stringify(ai(n)));var r=Ir(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},_o=function(e){return(yo=yo||document.createElement("div")).innerHTML=e,yo.textContent},bo=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),$o=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),wo=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Co=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+P.source+"]*",Ao="((?:"+ko+"\\:)?"+ko+")",Oo=new RegExp("^<"+Ao),So=/^\s*(\/?)>/,To=new RegExp("^<\\/"+Ao+"[^>]*>"),Eo=/^<!DOCTYPE [^>]+>/i,No=/^<!\--/,jo=/^<!\[/,Do=p("script,style,textarea",!0),Lo={},Mo={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Io=/&(?:lt|gt|quot|amp|#39);/g,Fo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Po=p("pre,textarea",!0),Ro=function(e,t){return e&&Po(e)&&"\n"===t[0]};function Ho(e,t){var n=t?Fo:Io;return e.replace(n,function(e){return Mo[e]})}var Bo,Uo,zo,Vo,Ko,Jo,qo,Wo,Zo=/^@|^v-on:/,Go=/^v-|^@|^:|^#/,Xo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Qo=/^\(|\)$/g,ea=/^\[.*\]$/,ta=/:(.*)$/,na=/^:|^\.|^v-bind:/,ra=/\.[^.\]]+(?=[^\]]*$)/g,ia=/^v-slot(:|$)|^#/,oa=/[\r\n]/,aa=/\s+/g,sa=g(_o),ca="_empty_";function ua(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ma(t),rawAttrsMap:{},parent:n,children:[]}}function la(e,t){Bo=t.warn||Sr,Jo=t.isPreTag||T,qo=t.mustUseProp||T,Wo=t.getTagNamespace||T;t.isReservedTag;zo=Tr(t.modules,"transformNode"),Vo=Tr(t.modules,"preTransformNode"),Ko=Tr(t.modules,"postTransformNode"),Uo=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,c=!1;function u(e){if(l(e),s||e.processed||(e=fa(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&da(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(u=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&u.if&&da(u,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,u;e.children=e.children.filter(function(e){return!e.slotScope}),l(e),e.pre&&(s=!1),Jo(e.tag)&&(c=!1);for(var f=0;f<Ko.length;f++)Ko[f](e,t)}function l(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||T,s=t.canBeLeftOpenTag||T,c=0;e;){if(n=e,r&&Do(r)){var u=0,l=r.toLowerCase(),f=Lo[l]||(Lo[l]=new RegExp("([\\s\\S]*?)(</"+l+"[^>]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,Do(l)||"noscript"===l||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Ro(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(No.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),C(v+3);continue}}if(jo.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(Eo);if(m){C(m[0].length);continue}var y=e.match(To);if(y){var g=c;C(y[0].length),A(y[1],g,c);continue}var _=x();if(_){k(_),Ro(_.tagName,e)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(To.test($)||Oo.test($)||No.test($)||jo.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&C(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function x(){var t=e.match(Oo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(So))&&(r=e.match(xo)||e.match(Co));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&wo(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p<l;p++){var d=e.attrs[p],v=d[3]||d[4]||d[5]||"",h="a"===n&&"href"===d[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;f[p]={name:d[1],value:Ho(v,h)}}u||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:e.start,end:e.end}),r=n),t.start&&t.start(n,f,u,e.start,e.end)}function A(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:Bo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,l,f){var p=r&&r.ns||Wo(e);q&&"svg"===p&&(o=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];ya.test(r.name)||(r.name=r.name.replace(ga,""),t.push(r))}return t}(o));var d,v=ua(e,o,r);p&&(v.ns=p),"style"!==(d=v).tag&&("script"!==d.tag||d.attrsMap.type&&"text/javascript"!==d.attrsMap.type)||te()||(v.forbidden=!0);for(var h=0;h<Vo.length;h++)v=Vo[h](v,t)||v;s||(!function(e){null!=Fr(e,"v-pre")&&(e.pre=!0)}(v),v.pre&&(s=!0)),Jo(v.tag)&&(c=!0),s?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(v):v.processed||(pa(v),function(e){var t=Fr(e,"v-if");if(t)e.if=t,da(e,{exp:t,block:e});else{null!=Fr(e,"v-else")&&(e.else=!0);var n=Fr(e,"v-else-if");n&&(e.elseif=n)}}(v),function(e){null!=Fr(e,"v-once")&&(e.once=!0)}(v)),n||(n=v),a?u(v):(r=v,i.push(v))},end:function(e,t,n){var o=i[i.length-1];i.length-=1,r=i[i.length-1],u(o)},chars:function(e,t,n){if(r&&(!q||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var i,u,l,f=r.children;if(e=c||e.trim()?"script"===(i=r).tag||"style"===i.tag?e:sa(e):f.length?a?"condense"===a&&oa.test(e)?"":" ":o?" ":"":"")c||"condense"!==a||(e=e.replace(aa," ")),!s&&" "!==e&&(u=function(e,t){var n=t?ho(t):po;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Ar(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Uo))?l={type:2,expression:u.expression,tokens:u.tokens,text:e}:" "===e&&f.length&&" "===f[f.length-1].text||(l={type:3,text:e}),l&&f.push(l)}},comment:function(e,t,n){if(r){var i={type:3,text:e,isComment:!0};r.children.push(i)}}}),n}function fa(e,t){var n,r;(r=Ir(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Ir(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=Fr(e,"scope"),e.slotScope=t||Fr(e,"slot-scope")):(t=Fr(e,"slot-scope"))&&(e.slotScope=t);var n=Ir(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Nr(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){var r=Pr(e,ia);if(r){var i=va(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||ca}}else{var s=Pr(e,ia);if(s){var c=e.scopedSlots||(e.scopedSlots={}),u=va(s),l=u.name,f=u.dynamic,p=c[l]=ua("template",[],e);p.slotTarget=l,p.slotTargetDynamic=f,p.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=p,!0}),p.slotScope=s.value||ca,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Ir(e,"name"))}(e),function(e){var t;(t=Ir(e,"is"))&&(e.component=t);null!=Fr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var i=0;i<zo.length;i++)e=zo[i](e,t)||e;return function(e){var t,n,r,i,o,a,s,c,u=e.attrsList;for(t=0,n=u.length;t<n;t++)if(r=i=u[t].name,o=u[t].value,Go.test(r))if(e.hasBindings=!0,(a=ha(r.replace(Go,"")))&&(r=r.replace(ra,"")),na.test(r))r=r.replace(na,""),o=Ar(o),(c=ea.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=b(r))&&(r="innerHTML"),a.camel&&!c&&(r=b(r)),a.sync&&(s=Br(o,"$event"),c?Mr(e,'"update:"+('+r+")",s,null,!1,0,u[t],!0):(Mr(e,"update:"+b(r),s,null,!1,0,u[t]),C(r)!==b(r)&&Mr(e,"update:"+C(r),s,null,!1,0,u[t])))),a&&a.prop||!e.component&&qo(e.tag,e.attrsMap.type,r)?Er(e,r,o,u[t],c):Nr(e,r,o,u[t],c);else if(Zo.test(r))r=r.replace(Zo,""),(c=ea.test(r))&&(r=r.slice(1,-1)),Mr(e,r,o,a,!1,0,u[t],c);else{var l=(r=r.replace(Go,"")).match(ta),f=l&&l[1];c=!1,f&&(r=r.slice(0,-(f.length+1)),ea.test(f)&&(f=f.slice(1,-1),c=!0)),Dr(e,r,i,o,f,c,a,u[t])}else Nr(e,r,JSON.stringify(o),u[t]),!e.component&&"muted"===r&&qo(e.tag,e.attrsMap.type,r)&&Er(e,r,"true",u[t])}(e),e}function pa(e){var t;if(t=Fr(e,"v-for")){var n=function(e){var t=e.match(Xo);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Qo,""),i=r.match(Yo);i?(n.alias=r.replace(Yo,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&A(e,n)}}function da(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function va(e){var t=e.name.replace(ia,"");return t||"#"!==e.name[0]&&(t="default"),ea.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function ha(e){var t=e.match(ra);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function ma(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var ya=/^xmlns:NS\d+/,ga=/^NS\d+:/;function _a(e){return ua(e.tag,e.attrsList.slice(),e.parent)}var ba=[mo,go,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Ir(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Fr(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Fr(e,"v-else",!0),s=Fr(e,"v-else-if",!0),c=_a(e);pa(c),jr(c,"type","checkbox"),fa(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,da(c,{exp:c.if,block:c});var u=_a(e);Fr(u,"v-for",!0),jr(u,"type","radio"),fa(u,t),da(c,{exp:"("+n+")==='radio'"+o,block:u});var l=_a(e);return Fr(l,"v-for",!0),jr(l,":type",n),fa(l,t),da(c,{exp:i,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}}];var $a,wa,Ca={expectHTML:!0,modules:ba,directives:{model:function(e,t,n){var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Hr(e,r,i),!1;if("select"===o)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+Br(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Mr(e,"change",r,null,!0)}(e,r,i);else if("input"===o&&"checkbox"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null",o=Ir(e,"true-value")||"true",a=Ir(e,"false-value")||"false";Er(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Mr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null";Er(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Mr(e,"change",Br(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Wr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Br(t,l);c&&(f="if($event.target.composing)return;"+f),Er(e,"value","("+t+")"),Mr(e,u,f,null,!0),(s||a)&&Mr(e,"blur","$forceUpdate()")}(e,r,i);else if(!F.isReservedTag(o))return Hr(e,r,i),!1;return!0},text:function(e,t){t.value&&Er(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Er(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:bo,mustUseProp:jn,canBeLeftOpenTag:$o,isReservedTag:Wn,getTagNamespace:Zn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(ba)},xa=g(function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function ka(e,t){e&&($a=xa(t.staticKeys||""),wa=t.isReservedTag||T,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||d(e.tag)||!wa(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every($a)))}(t);if(1===t.type){if(!wa(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}var Aa=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Oa=/\([^)]*?\);*$/,Sa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ta={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ea={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Na=function(e){return"if("+e+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Na("$event.target !== $event.currentTarget"),ctrl:Na("!$event.ctrlKey"),shift:Na("!$event.shiftKey"),alt:Na("!$event.altKey"),meta:Na("!$event.metaKey"),left:Na("'button' in $event && $event.button !== 0"),middle:Na("'button' in $event && $event.button !== 1"),right:Na("'button' in $event && $event.button !== 2")};function Da(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=La(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function La(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return La(e)}).join(",")+"]";var t=Sa.test(e.value),n=Aa.test(e.value),r=Sa.test(e.value.replace(Oa,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ja[s])o+=ja[s],Ta[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Na(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ma).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ma(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Ta[e],r=Ea[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ia={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:S},Fa=function(e){this.options=e,this.warn=e.warn||Sr,this.transforms=Tr(e.modules,"transformCode"),this.dataGenFns=Tr(e.modules,"genData"),this.directives=A(A({},Ia),e.directives);var t=e.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Pa(e,t){var n=new Fa(t);return{render:"with(this){return "+(e?Ra(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ra(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ha(e,t);if(e.once&&!e.onceProcessed)return Ba(e,t);if(e.for&&!e.forProcessed)return za(e,t);if(e.if&&!e.ifProcessed)return Ua(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=qa(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ga((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:b(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:qa(t,n,!0);return"_c("+e+","+Va(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Va(e,t));var i=e.inlineTemplate?null:qa(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return qa(e,t)||"void 0"}function Ha(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Ra(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Ba(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Ua(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Ra(e,t)+","+t.onceId+++","+n+")":Ra(e,t)}return Ha(e,t)}function Ua(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,r,i):""+a(o.block);function a(e){return r?r(e,n):e.once?Ba(e,n):Ra(e,n)}}(e.ifConditions.slice(),t,n,r)}function za(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||Ra)(e,t)+"})"}function Va(e,t){var n="{",r=function(e,t){var n=e.directives;if(!n)return;var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=t.directives[o.name];u&&(a=!!u(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(c)return s.slice(0,-1)+"]"}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+Ga(e.attrs)+","),e.props&&(n+="domProps:"+Ga(e.props)+","),e.events&&(n+=Da(e.events,!1)+","),e.nativeEvents&&(n+=Da(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some(function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Ka(n)}),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==ca||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map(function(e){return Ja(t[e],n)}).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Pa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ga(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ka(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ka))}function Ja(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ua(e,t,Ja,"null");if(e.for&&!e.forProcessed)return za(e,t,Ja);var r=e.slotScope===ca?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(qa(e,t)||"undefined")+":undefined":qa(e,t)||"undefined":Ra(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function qa(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Ra)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Wa(i)||i.ifConditions&&i.ifConditions.some(function(e){return Wa(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(o,t.maybeComponent):0,u=i||Za;return"["+o.map(function(e){return u(e,t)}).join(",")+"]"+(c?","+c:"")}}function Wa(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Za(e,t){return 1===e.type?Ra(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:Xa(JSON.stringify(n.text)))+")";var n,r}function Ga(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=Xa(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Xa(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");function Ya(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),S}}function Qa(e){var t=Object.create(null);return function(n,r,i){(r=A({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r),s={},c=[];return s.render=Ya(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(e){return Ya(e,c)}),t[o]=s}}var es,ts,ns=(es=function(e,t){var n=la(e.trim(),t);!1!==t.optimize&&ka(n,t);var r=Pa(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],o=[];if(n)for(var a in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=A(Object.create(e.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(e,t,n){(n?o:i).push(e)};var s=es(t.trim(),r);return s.errors=i,s.tips=o,s}return{compile:t,compileToFunctions:Qa(t)}})(Ca),rs=(ns.compile,ns.compileToFunctions);function is(e){return(ts=ts||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',ts.innerHTML.indexOf(" ")>0}var os=!!z&&is(!1),as=!!z&&is(!0),ss=g(function(e){var t=Yn(e);return t&&t.innerHTML}),cs=wn.prototype.$mount;return wn.prototype.$mount=function(e,t){if((e=e&&Yn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ss(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=rs(r,{outputSourceRange:!1,shouldDecodeNewlines:os,shouldDecodeNewlinesForHref:as,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return cs.call(this,e,t)},wn.compile=rs,wn});
/*!
* jQuery UI Slider 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],e):e(jQuery)}(function(o){return o.widget("ui.slider",o.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle"),s=[],a=t.values&&t.values.length||1;for(i.length>a&&(i.slice(a).remove(),i=i.slice(0,a)),e=i.length;e<a;e++)s.push("<span tabindex='0'></span>");this.handles=i.add(o(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){o(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:o.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=o("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,a,n,t,h,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),h={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(h),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t<s||s===t&&(e===l._lastChangedValue||l.values(e)===u.min))&&(s=t,a=o(this),n=e)}),!1!==this._start(e,n)&&(this._mouseSliding=!0,this._handleIndex=n,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),t=a.offset(),h=!o(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-t.left-a.width()/2,top:e.pageY-t.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,n,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},t=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),e=e/t;return(e=1<e?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),t=this._valueMin()+e*t,this._trimAlignValue(t)},_uiHash:function(e,t,i){var s={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==t?t:this.values(e),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var s,a=this.value(),n=this.values();this._hasMultipleValues()&&(s=this.values(t?0:1),a=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(s,i):Math.max(s,i)),n[t]=i),i!==a&&!1!==this._trigger("slide",e,this._uiHash(t,i,n))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var i,s,a;if(1<arguments.length)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!o.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,s=e,a=0;a<i.length;a+=1)i[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,t){var i,s=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),o.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i,s;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);if(this._hasMultipleValues()){for(i=this.options.values.slice(),s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=0<this.options.step?this.options.step:1,i=(e-this._valueMin())%t,e=e-i;return 2*Math.abs(i)>=t&&(e+=0<i?t:-t),parseFloat(e.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var t=e.toString(),e=t.indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,s,a,n=this.options.range,h=this.options,l=this,u=!this._animateOff&&h.animate,r={};this._hasMultipleValues()?this.handles.each(function(e){i=(l.values(e)-l._valueMin())/(l._valueMax()-l._valueMin())*100,r["horizontal"===l.orientation?"left":"bottom"]=i+"%",o(this).stop(1,1)[u?"animate":"css"](r,h.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===e&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:h.animate})):(0===e&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:h.animate}))),t=i}):(e=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(e-s)/(a-s)*100:0,r["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](r,h.animate),"min"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},h.animate),"max"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},h.animate),"min"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},h.animate),"max"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},h.animate))},_handleEvents:{keydown:function(e){var t,i,s,a=o(e.target).data("ui-slider-handle-index");switch(e.keyCode){case o.ui.keyCode.HOME:case o.ui.keyCode.END:case o.ui.keyCode.PAGE_UP:case o.ui.keyCode.PAGE_DOWN:case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(o(e.target),null,"ui-state-active"),!1===this._start(e,a)))return}switch(s=this.options.step,t=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case o.ui.keyCode.HOME:i=this._valueMin();break;case o.ui.keyCode.END:i=this._valueMax();break;case o.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+s);break;case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-s)}this._slide(e,a,i)},keyup:function(e){var t=o(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(o(e.target),null,"ui-state-active"))}}})});
!function(t){"function"==typeof define&&define.amd?define("vendor",t):t()}(function(){"use strict";function $(t){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");var n,t,v,a,h,r,l,e,i,s,o,u,c,d,p,f,m,g,y,w,b,x,C,E,T,S,I,z,O,D,k,A,M,N,j,L,P,R,W,H,F,B,U,q,Q,V,Y,G,Z,X,K,J,tt,et,it,nt,st,ot,rt;function at(t){return t}function ht(t){return v.isArray(t)}function lt(t){return!ht(t)&&t instanceof Object}function ut(t,e){return v.inArray(e,t)}function ct(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i,t)}function dt(t){return t[t.length-1]}function pt(){var i={};return ct(function(t){return Array.prototype.slice.call(t)}(arguments),function(t){ct(t,function(t,e){i[e]=t})}),i}function ft(t,e,i){return ht(t)?function(t,n){var s=[];return ct(t,function(t,e,i){s.push(n(t,e,i))}),s}(t,e):function(t,n,s){var o={};return ct(t,function(t,e,i){e=s?s(e,t):e,o[e]=n(t,e,i)}),o}(t,e,i)}function mt(t,i,n){return ft(t,function(t,e){return t[i].apply(t,n||[])})}function gt(t,n){var s,o=function(t){var n={};return(t=t||{}).publish=function(t,e){ct(n[t],function(t){t(e)})},t.subscribe=function(t,e){n[t]=n[t]||[],n[t].push(e)},t.unsubscribe=function(i){ct(n,function(t){var e=ut(t,i);-1!==e&&t.splice(e,1)})},t}(),e=t.$;return o.getType=function(){throw'implement me (return type. "text", "radio", etc.)'},o.$=function(t){return t?e.find(t):e},o.disable=function(){o.$().prop("disabled",!0),o.publish("isEnabled",!1)},o.enable=function(){o.$().prop("disabled",!1),o.publish("isEnabled",!0)},n.equalTo=function(t,e){return t===e},n.publishChange=function(t,e){var i=o.get();n.equalTo(i,s)||o.publish("change",{e:t,domElement:e}),s=i},o}function vt(t,e){var i=gt(t,e);return i.get=function(){return i.$().val()},i.set=function(t){i.$().val(t)},i.clear=function(){i.set("")},e.buildSetter=function(e){return function(t){e.call(i,t)}},i}function yt(t,e){t=ht(t)?t:[t],e=ht(e)?e:[e];var i=!0;return t.length!==e.length?i=!1:ct(t,function(t){!function(t,e){return-1!==ut(t,e)}(e,t)&&(i=!1)}),i}function _t(t){var e={},i=vt(t,e);return i.getType=function(){return"button"},i.$().on("change",function(t){e.publishChange(t,this)}),i}function wt(t){var e={},i=vt(t,e);return i.getType=function(){return"checkbox"},i.get=function(){var t=[];return i.$().filter(":checked").each(function(){t.push(a(this).val())}),t},i.set=function(t){t=ht(t)?t:[t],i.$().each(function(){a(this).prop("checked",!1)}),ct(t,function(t){i.$().filter('[value="'+t+'"]').prop("checked",!0)})},e.equalTo=yt,i.$().change(function(t){e.publishChange(t,this)}),i}function bt(t){var e=h(t);return e.getType=function(){return"email"},e}function xt(t){var e={},i=gt(t,e);return i.getType=function(){return"file"},i.get=function(){return dt(i.$().val().split("\\"))},i.clear=function(){this.$().each(function(){a(this).wrap("<form>").closest("form").get(0).reset(),a(this).unwrap()})},i.$().change(function(t){e.publishChange(t,this)}),i}function Ct(t){var e={},i=vt(t,e);return i.getType=function(){return"hidden"},i.$().change(function(t){e.publishChange(t,this)}),i}function $t(t){var e={},n=gt(t,e);return n.getType=function(){return"file[multiple]"},n.get=function(){var t,e=n.$().get(0).files||[],i=[];for(t=0;t<(e.length||0);t+=1)i.push(e[t].name);return i},n.clear=function(){this.$().each(function(){a(this).wrap("<form>").closest("form").get(0).reset(),a(this).unwrap()})},n.$().change(function(t){e.publishChange(t,this)}),n}function Et(t){var e={},i=vt(t,e);return i.getType=function(){return"select[multiple]"},i.get=function(){return i.$().val()||[]},i.set=function(t){i.$().val(""===t?[]:ht(t)?t:[t])},e.equalTo=yt,i.$().change(function(t){e.publishChange(t,this)}),i}function Tt(t){var e=h(t);return e.getType=function(){return"password"},e}function St(t){var e={},i=vt(t,e);return i.getType=function(){return"radio"},i.get=function(){return i.$().filter(":checked").val()||null},i.set=function(t){t?i.$().filter('[value="'+t+'"]').prop("checked",!0):i.$().each(function(){a(this).prop("checked",!1)})},i.$().change(function(t){e.publishChange(t,this)}),i}function It(t){var e={},i=vt(t,e);return i.getType=function(){return"range"},i.$().change(function(t){e.publishChange(t,this)}),i}function zt(t){var e={},i=vt(t,e);return i.getType=function(){return"select"},i.$().change(function(t){e.publishChange(t,this)}),i}function Ot(t){var e={},i=vt(t,e);return i.getType=function(){return"textarea"},i.$().on("change keyup keydown",function(t){e.publishChange(t,this)}),i}function Dt(t){var e=h(t);return e.getType=function(){return"url"},e}function kt(t){function e(e,t){(lt(t)?t:o.find(t)).each(function(){var t=a(this).attr("name");s[t]=r[e]({$:a(this)})})}function i(e,t){var i=[],n=lt(t)?t:o.find(t);lt(t)?s[n.attr("name")]=r[e]({$:n}):(n.each(function(){-1===ut(i,a(this).attr("name"))&&i.push(a(this).attr("name"))}),ct(i,function(t){s[t]=r[e]({$:o.find('input[name="'+t+'"]')})}))}var s={},o=t.$,r=t.constructorOverride||{button:_t,text:h,url:Dt,email:bt,password:Tt,range:It,textarea:Ot,select:zt,"select[multiple]":Et,radio:St,checkbox:wt,file:xt,"file[multiple]":$t,hidden:Ct};return o.is("input, select, textarea")?o.is('input[type="button"], button, input[type="submit"]')?e("button",o):o.is("textarea")?e("textarea",o):o.is('input[type="text"]')||o.is("input")&&!o.attr("type")?e("text",o):o.is('input[type="password"]')?e("password",o):o.is('input[type="email"]')?e("email",o):o.is('input[type="url"]')?e("url",o):o.is('input[type="range"]')?e("range",o):o.is("select")?o.is("[multiple]")?e("select[multiple]",o):e("select",o):o.is('input[type="file"]')?o.is("[multiple]")?e("file[multiple]",o):e("file",o):o.is('input[type="hidden"]')?e("hidden",o):o.is('input[type="radio"]')?i("radio",o):o.is('input[type="checkbox"]')?i("checkbox",o):e("text",o):(e("button",'input[type="button"], button, input[type="submit"]'),e("text",'input[type="text"]'),e("password",'input[type="password"]'),e("email",'input[type="email"]'),e("url",'input[type="url"]'),e("range",'input[type="range"]'),e("textarea","textarea"),e("select","select:not([multiple])"),e("select[multiple]","select[multiple]"),e("file",'input[type="file"]:not([multiple])'),e("file[multiple]",'input[type="file"][multiple]'),e("hidden",'input[type="hidden"]'),i("radio",'input[type="radio"]'),i("checkbox",'input[type="checkbox"]')),s}function At(t,i){var n=!1,e=t.charAt(0).toUpperCase()+t.slice(1);return N.each((t+" "+P.join(e+" ")+e).split(" "),function(t,e){return L[e]!==j?(n=!i||e,!1):void 0}),n}function Mt(t){return At(t,!0)}function Nt(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":B.proxy(function(t){t.namespace&&"URLHash"===this._core.settings.startPosition&&B(U).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":B.proxy(function(t){if(t.namespace){var e=B(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!e)return;this._hashes[e]=t.content}},this),"changed.owl.carousel":B.proxy(function(t){if(t.namespace&&"position"===t.property.name){var i=this._core.items(this._core.relative(this._core.current())),e=B.map(this._hashes,function(t,e){return t===i?e:null}).join();if(!e||U.location.hash.slice(1)===e)return;U.location.hash=e}},this)},this._core.options=B.extend({},Nt.Defaults,this._core.options),this.$element.on(this._handlers),B(U).on("hashchange.owl.navigation",B.proxy(function(t){var e=U.location.hash.substring(1),i=this._core.$stage.children(),n=this._hashes[e]&&i.index(this._hashes[e]);void 0!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))}function jt(t){this._core=t,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":q.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+q(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":q.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":q.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":q.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":q.proxy(function(t){t.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":q.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=q.extend({},jt.Defaults,this._core.options),this.$element.on(this._handlers)}function Lt(t){this._core=t,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":Q.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":Q.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":Q.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":Q.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":Q.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":Q.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":Q.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":Q.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=Q.extend({},Lt.Defaults,this._core.options)}function Pt(t){this.core=t,this.core.options=G.extend({},Pt.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":G.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":G.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":G.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}function Rt(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":Z.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":Z.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":Z.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":Z.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":Z.proxy(function(t){if(t.namespace){var e=Z(t.content).find(".owl-video");e.length&&(e.css("display","none"),this.fetch(e,Z(t.content)))}},this)},this._core.options=Z.extend({},Rt.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",Z.proxy(function(t){this.play(t)},this))}function Wt(t){this._core=t,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":K.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":K.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":K.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=K.extend({},Wt.Defaults,this._core.options),this._core.$element.on(this._handlers)}function Ht(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":J.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,n=e.center&&-1*i||0,s=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+n,o=this._core.clones().length,r=J.proxy(function(t,e){this.load(e)},this);n++<i;)this.load(o/2+this._core.relative(s)),o&&J.each(this._core.clones(this._core.relative(s)),r),s++},this)},this._core.options=J.extend({},Ht.Defaults,this._core.options),this._core.$element.on(this._handlers)}function Ft(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":et.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=et.extend({},Ft.Defaults,this._core.options),this._core.$element.on(this._handlers)}function Bt(t,e){this.settings=null,this.options=nt.extend({},Bt.Defaults,e),this.$element=nt(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"]}},nt.each(["onResize","onThrottledResize"],nt.proxy(function(t,e){this._handlers[e]=nt.proxy(this[e],this)},this)),nt.each(Bt.Plugins,nt.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),nt.each(Bt.Workers,nt.proxy(function(t,e){this._pipe.push({filter:e.filter,run:nt.proxy(e.run,this)})},this)),this.setup(),this.initialize()}!function(){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),(n=jQuery).fn.emulateTransitionEnd=function(t){var e=!1,i=this;return n(this).one("bsTransitionEnd",function(){e=!0}),setTimeout(function(){e||n(i).trigger(n.support.transition.end)},t),this},n(function(){n.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}),function(o){function r(t){o(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';r.VERSION="3.3.7",r.TRANSITION_DURATION=150,r.prototype.close=function(t){var e=o(this),i=e.attr("data-target");i=i||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"");var n=o("#"===i?[]:i);function s(){n.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),n.length||(n=e.closest(".alert")),n.trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(n.removeClass("in"),o.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",s).emulateTransitionEnd(r.TRANSITION_DURATION):s())};var t=o.fn.alert;o.fn.alert=function(i){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new r(this)),"string"==typeof i&&e[i].call(t)})},o.fn.alert.Constructor=r,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.bs.alert.data-api",e,r.prototype.close)}(jQuery),function(o){function s(t,e){this.$element=o(t),this.options=o.extend({},s.DEFAULTS,e),this.isLoading=!1}function i(n){return this.each(function(){var t=o(this),e=t.data("bs.button"),i="object"==$(n)&&n;e||t.data("bs.button",e=new s(this,i)),"toggle"==n?e.toggle():n&&e.setState(n)})}s.VERSION="3.3.7",s.DEFAULTS={loadingText:"loading..."},s.prototype.setState=function(t){var e="disabled",i=this.$element,n=i.is("input")?"val":"html",s=i.data();t+="Text",null==s.resetText&&i.data("resetText",i[n]()),setTimeout(o.proxy(function(){i[n](null==s[t]?this.options[t]:s[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},s.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var t=o.fn.button;o.fn.button=i,o.fn.button.Constructor=s,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=o(t.target).closest(".btn");i.call(e,"toggle"),o(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),e.is("input,button")?e.trigger("focus"):e.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){o(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(c){function d(t,e){this.$element=c(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",c.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",c.proxy(this.pause,this)).on("mouseleave.bs.carousel",c.proxy(this.cycle,this))}function r(s){return this.each(function(){var t=c(this),e=t.data("bs.carousel"),i=c.extend({},d.DEFAULTS,t.data(),"object"==$(s)&&s),n="string"==typeof s?s:i.slide;e||t.data("bs.carousel",e=new d(this,i)),"number"==typeof s?e.to(s):n?e[n]():i.interval&&e.pause().cycle()})}d.VERSION="3.3.7",d.TRANSITION_DURATION=600,d.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},d.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},d.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval)),this},d.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},d.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var n=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(n)},d.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",this.$items.eq(t))},d.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&c.support.transition&&(this.$element.trigger(c.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},d.prototype.next=function(){if(!this.sliding)return this.slide("next")},d.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},d.prototype.slide=function(t,e){var i=this.$element.find(".item.active"),n=e||this.getItemForDirection(t,i),s=this.interval,o="next"==t?"left":"right",r=this;if(n.hasClass("active"))return this.sliding=!1;var a=n[0],h=c.Event("slide.bs.carousel",{relatedTarget:a,direction:o});if(this.$element.trigger(h),!h.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=c(this.$indicators.children()[this.getItemIndex(n)]);l&&l.addClass("active")}var u=c.Event("slid.bs.carousel",{relatedTarget:a,direction:o});return c.support.transition&&this.$element.hasClass("slide")?(n.addClass(t),n[0].offsetWidth,i.addClass(o),n.addClass(o),i.one("bsTransitionEnd",function(){n.removeClass([t,o].join(" ")).addClass("active"),i.removeClass(["active",o].join(" ")),r.sliding=!1,setTimeout(function(){r.$element.trigger(u)},0)}).emulateTransitionEnd(d.TRANSITION_DURATION)):(i.removeClass("active"),n.addClass("active"),this.sliding=!1,this.$element.trigger(u)),s&&this.cycle(),this}};var t=c.fn.carousel;c.fn.carousel=r,c.fn.carousel.Constructor=d,c.fn.carousel.noConflict=function(){return c.fn.carousel=t,this};function e(t){var e,i=c(this),n=c(i.attr("data-target")||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""));if(n.hasClass("carousel")){var s=c.extend({},n.data(),i.data()),o=i.attr("data-slide-to");o&&(s.interval=!1),r.call(n,s),o&&n.data("bs.carousel").to(o),t.preventDefault()}}c(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var t=c(this);r.call(t,t.data())})})}(jQuery),function(r){function a(t,e){this.$element=r(t),this.options=r.extend({},a.DEFAULTS,e),this.$trigger=r('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function s(t){var e,i=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return r(i)}function h(n){return this.each(function(){var t=r(this),e=t.data("bs.collapse"),i=r.extend({},a.DEFAULTS,t.data(),"object"==$(n)&&n);!e&&i.toggle&&/show|hide/.test(n)&&(i.toggle=!1),e||t.data("bs.collapse",e=new a(this,i)),"string"==typeof n&&e[n]()})}a.VERSION="3.3.7",a.TRANSITION_DURATION=350,a.DEFAULTS={toggle:!0},a.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},a.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var i=r.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){e&&e.length&&(h.call(e,"hide"),t||e.data("bs.collapse",null));var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!r.support.transition)return s.call(this);var o=r.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",r.proxy(s,this)).emulateTransitionEnd(a.TRANSITION_DURATION)[n](this.$element[0][o])}}}},a.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=r.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!r.support.transition)return i.call(this);this.$element[e](0).one("bsTransitionEnd",r.proxy(i,this)).emulateTransitionEnd(a.TRANSITION_DURATION)}}},a.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},a.prototype.getParent=function(){return r(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(r.proxy(function(t,e){var i=r(e);this.addAriaAndCollapsedClass(s(i),i)},this)).end()},a.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=r.fn.collapse;r.fn.collapse=h,r.fn.collapse.Constructor=a,r.fn.collapse.noConflict=function(){return r.fn.collapse=t,this},r(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=r(this);e.attr("data-target")||t.preventDefault();var i=s(e),n=i.data("bs.collapse")?"toggle":e.data();h.call(i,n)})}(jQuery),function(r){function n(t){r(t).on("click.bs.dropdown",this.toggle)}var a='[data-toggle="dropdown"]';function h(t){var e=t.attr("data-target"),i=(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&r(e);return i&&i.length?i:t.parent()}function o(n){n&&3===n.which||(r(".dropdown-backdrop").remove(),r(a).each(function(){var t=r(this),e=h(t),i={relatedTarget:this};e.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&r.contains(e[0],n.target)||(e.trigger(n=r.Event("hide.bs.dropdown",i)),n.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(r.Event("hidden.bs.dropdown",i)))))}))}n.VERSION="3.3.7",n.prototype.toggle=function(t){var e=r(this);if(!e.is(".disabled, :disabled")){var i=h(e),n=i.hasClass("open");if(o(),!n){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&r(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(r(this)).on("click",o);var s={relatedTarget:this};if(i.trigger(t=r.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(r.Event("shown.bs.dropdown",s))}return!1}},n.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=r(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var i=h(e),n=i.hasClass("open");if(!n&&27!=t.which||n&&27==t.which)return 27==t.which&&i.find(a).trigger("focus"),e.trigger("click");var s=i.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var o=s.index(t.target);38==t.which&&0<o&&o--,40==t.which&&o<s.length-1&&o++,~o||(o=0),s.eq(o).trigger("focus")}}}};var t=r.fn.dropdown;r.fn.dropdown=function(i){return this.each(function(){var t=r(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new n(this)),"string"==typeof i&&e[i].call(t)})},r.fn.dropdown.Constructor=n,r.fn.dropdown.noConflict=function(){return r.fn.dropdown=t,this},r(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",a,n.prototype.toggle).on("keydown.bs.dropdown.data-api",a,n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(jQuery),function(o){function r(t,e){this.options=e,this.$body=o(document.body),this.$element=o(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function a(n,s){return this.each(function(){var t=o(this),e=t.data("bs.modal"),i=o.extend({},r.DEFAULTS,t.data(),"object"==$(n)&&n);e||t.data("bs.modal",e=new r(this,i)),"string"==typeof n?e[n](s):i.show&&e.show(s)})}r.VERSION="3.3.7",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},r.prototype.show=function(i){var n=this,t=o.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(t){o(t.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=o.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),t&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var e=o.Event("shown.bs.modal",{relatedTarget:i});t?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(r.TRANSITION_DURATION):n.$element.trigger("focus").trigger(e)}))},r.prototype.hide=function(t){t&&t.preventDefault(),t=o.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",o.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=o.support.transition&&i;if(this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;n?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){e.removeBackdrop(),t&&t()};o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):s()}else t&&t()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},r.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=a,o.fn.modal.Constructor=r,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),i=e.attr("href"),n=o(e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=n.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(i)&&i},n.data(),e.data());e.is("a")&&t.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),a.call(n,s,this)})}(jQuery),function(m){function g(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}g.VERSION="3.3.7",g.TRANSITION_DURATION=150,g.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},g.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&m(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var o=n[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=o){var r="hover"==o?"mouseenter":"focusin",a="hover"==o?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(t){return(t=m.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},g.prototype.getDelegateOptions=function(){var i={},n=this.getDefaults();return this._options&&m.each(this._options,function(t,e){n[t]!=e&&(i[t]=e)}),i},g.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},g.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},g.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var i=this,n=this.tip(),s=this.getUID(this.type);this.setContent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,a=r.test(o);a&&(o=o.replace(r,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),l=n[0].offsetWidth,u=n[0].offsetHeight;if(a){var c=o,d=this.getPosition(this.$viewport);o="bottom"==o&&h.bottom+u>d.bottom?"top":"top"==o&&h.top-u<d.top?"bottom":"right"==o&&h.right+l>d.width?"left":"left"==o&&h.left-l<d.left?"right":o,n.removeClass(c).addClass(o)}var p=this.getCalculatedOffset(o,h,l,u);this.applyPlacement(p,o);var f=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};m.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",f).emulateTransitionEnd(g.TRANSITION_DURATION):f()}},g.prototype.applyPlacement=function(t,e){var i=this.tip(),n=i[0].offsetWidth,s=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),r=parseInt(i.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(r)&&(r=0),t.top+=o,t.left+=r,m.offset.setOffset(i[0],m.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in");var a=i[0].offsetWidth,h=i[0].offsetHeight;"top"==e&&h!=s&&(t.top=t.top+s-h);var l=this.getViewportAdjustedDelta(e,t,a,h);l.left?t.left+=l.left:t.top+=l.top;var u=/top|bottom/.test(e),c=u?2*l.left-n+a:2*l.top-s+h,d=u?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(c,i[0][d],u)},g.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},g.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},g.prototype.hide=function(t){var e=this,i=m(this.$tip),n=m.Event("hide.bs."+this.type);function s(){"in"!=e.hoverState&&i.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(n),!n.isDefaultPrevented())return i.removeClass("in"),m.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",s).emulateTransitionEnd(g.TRANSITION_DURATION):s(),this.hoverState=null,this},g.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},g.prototype.hasContent=function(){return this.getTitle()},g.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,n=e.getBoundingClientRect();null==n.width&&(n=m.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=i?{top:0,left:0}:t.offset(),o={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},r=i?{width:m(window).width(),height:m(window).height()}:null;return m.extend({},n,o,r,s)},g.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},g.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-r.scroll,h=e.top+o-r.scroll+n;a<r.top?s.top=r.top-a:h>r.top+r.height&&(s.top=r.top+r.height-h)}else{var l=e.left-o,u=e.left+o+i;l<r.left?s.left=r.left-l:u>r.right&&(s.left=r.left+r.width-u)}return s},g.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},g.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(t){var e=this;t&&((e=m(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},g.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var t=m.fn.tooltip;m.fn.tooltip=function(n){return this.each(function(){var t=m(this),e=t.data("bs.tooltip"),i="object"==$(n)&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.tooltip",e=new g(this,i)),"string"==typeof n&&e[n]())})},m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=t,this}}(jQuery),function(s){function o(t,e){this.init("popover",t,e)}if(!s.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.7",o.DEFAULTS=s.extend({},s.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((o.prototype=s.extend({},s.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=s.fn.popover;s.fn.popover=function(n){return this.each(function(){var t=s(this),e=t.data("bs.popover"),i="object"==$(n)&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.popover",e=new o(this,i)),"string"==typeof n&&e[n]())})},s.fn.popover.Constructor=o,s.fn.popover.noConflict=function(){return s.fn.popover=t,this}}(jQuery),function(o){function s(t,e){this.$body=o(document.body),this.$scrollElement=o(t).is(document.body)?o(window):o(t),this.options=o.extend({},s.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function e(n){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy"),i="object"==$(n)&&n;e||t.data("bs.scrollspy",e=new s(this,i)),"string"==typeof n&&e[n]()})}s.VERSION="3.3.7",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var t=this,n="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(n="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),i=/^#./.test(e)&&o(e);return i&&i.length&&i.is(":visible")&&[[i[n]().top+s,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},s.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),n<=e)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)r!=o[t]&&e>=s[t]&&(void 0===s[t+1]||e<s[t+1])&&this.activate(o[t])},s.prototype.activate=function(t){this.activeTarget=t,this.clear();var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=o(e).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},s.prototype.clear=function(){o(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=o.fn.scrollspy;o.fn.scrollspy=e,o.fn.scrollspy.Constructor=s,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(a){function r(t){this.element=a(t)}function e(i){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new r(this)),"string"==typeof i&&e[i]()})}r.VERSION="3.3.7",r.TRANSITION_DURATION=150,r.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i=i||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""),!t.parent("li").hasClass("active")){var n=e.find(".active:last a"),s=a.Event("hide.bs.tab",{relatedTarget:t[0]}),o=a.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(s),t.trigger(o),!o.isDefaultPrevented()&&!s.isDefaultPrevented()){var r=a(i);this.activate(t.closest("li"),e),this.activate(r,r.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},r.prototype.activate=function(t,e,i){var n=e.find("> .active"),s=i&&a.support.transition&&(n.length&&n.hasClass("fade")||!!e.find("> .fade").length);function o(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}n.length&&s?n.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o(),n.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};function i(t){t.preventDefault(),e.call(a(this),"show")}a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(h){function l(t,e){this.options=h.extend({},l.DEFAULTS,e),this.$target=h(this.options.target).on("scroll.bs.affix.data-api",h.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",h.proxy(this.checkPositionWithEventLoop,this)),this.$element=h(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function i(n){return this.each(function(){var t=h(this),e=t.data("bs.affix"),i="object"==$(n)&&n;e||t.data("bs.affix",e=new l(this,i)),"string"==typeof n&&e[n]()})}l.VERSION="3.3.7",l.RESET="affix affix-top affix-bottom",l.DEFAULTS={offset:0,target:window},l.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return s<i&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=o.top)&&"bottom":!(s+r<=t-n)&&"bottom";var a=null==this.affixed,h=a?s:o.top;return null!=i&&s<=i?"top":null!=n&&t-n<=h+(a?r:e)&&"bottom"},l.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(l.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},l.prototype.checkPositionWithEventLoop=function(){setTimeout(h.proxy(this.checkPosition,this),1)},l.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,i=e.top,n=e.bottom,s=Math.max(h(document).height(),h(document.body).height());"object"!=$(e)&&(n=i=e),"function"==typeof i&&(i=e.top(this.$element)),"function"==typeof n&&(n=e.bottom(this.$element));var o=this.getState(s,t,i,n);if(this.affixed!=o){null!=this.unpin&&this.$element.css("top","");var r="affix"+(o?"-"+o:""),a=h.Event(r+".bs.affix");if(this.$element.trigger(a),a.isDefaultPrevented())return;this.affixed=o,this.unpin="bottom"==o?this.getPinnedOffset():null,this.$element.removeClass(l.RESET).addClass(r).trigger(r.replace("affix","affixed")+".bs.affix")}"bottom"==o&&this.$element.offset({top:s-t-n})}};var t=h.fn.affix;h.fn.affix=i,h.fn.affix.Constructor=l,h.fn.affix.noConflict=function(){return h.fn.affix=t,this},h(window).on("load",function(){h('[data-spy="affix"]').each(function(){var t=h(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),i.call(t,e)})})}(jQuery),t=function(u){u.ui=u.ui||{},u.ui.version="1.12.1";var s,i=0,a=Array.prototype.slice;u.cleanData=(s=u.cleanData,function(t){var e,i,n;for(n=0;null!=(i=t[n]);n++)try{(e=u._data(i,"events"))&&e.remove&&u(i).triggerHandler("remove")}catch(t){}s(t)}),u.widget=function(t,i,e){var n,s,o,r={},a=t.split(".")[0],h=a+"-"+(t=t.split(".")[1]);return e||(e=i,i=u.Widget),u.isArray(e)&&(e=u.extend.apply(null,[{}].concat(e))),u.expr[":"][h.toLowerCase()]=function(t){return!!u.data(t,h)},u[a]=u[a]||{},n=u[a][t],s=u[a][t]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new s(t,e)},u.extend(s,n,{version:e.version,_proto:u.extend({},e),_childConstructors:[]}),(o=new i).options=u.widget.extend({},o.options),u.each(e,function(e,n){return u.isFunction(n)?void(r[e]=function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}):void(r[e]=n);function s(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}}),s.prototype=u.widget.extend(o,{widgetEventPrefix:n&&o.widgetEventPrefix||t},r,{constructor:s,namespace:a,widgetName:t,widgetFullName:h}),n?(u.each(n._childConstructors,function(t,e){var i=e.prototype;u.widget(i.namespace+"."+i.widgetName,s,e._proto)}),delete n._childConstructors):i._childConstructors.push(s),u.widget.bridge(t,s),s},u.widget.extend=function(t){for(var e,i,n=a.call(arguments,1),s=0,o=n.length;s<o;s++)for(e in n[s])i=n[s][e],n[s].hasOwnProperty(e)&&void 0!==i&&(t[e]=u.isPlainObject(i)?u.isPlainObject(t[e])?u.widget.extend({},t[e],i):u.widget.extend({},i):i);return t},u.widget.bridge=function(o,e){var r=e.prototype.widgetFullName||o;u.fn[o]=function(i){var t="string"==typeof i,n=a.call(arguments,1),s=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=u.data(this,r);return"instance"===i?(s=e,!1):e?u.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,n))!==e&&void 0!==t?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:u.error("no such method '"+i+"' for "+o+" widget instance"):u.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):s=void 0:(n.length&&(i=u.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=u.data(this,r);t?(t.option(i||{}),t._init&&t._init()):u.data(this,r,new e(i,this))})),s}},u.Widget=function(){},u.Widget._childConstructors=[],u.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=u(e||this.defaultElement||this)[0],this.element=u(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=u(),this.hoverable=u(),this.focusable=u(),this.classesElementLookup={},e!==this&&(u.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=u(e.style?e.ownerDocument:e.document||e),this.window=u(this.document[0].defaultView||this.document[0].parentWindow)),this.options=u.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:u.noop,_create:u.noop,_init:u.noop,destroy:function(){var i=this;this._destroy(),u.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:u.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return u.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=u.widget.extend({},this.options[t]),s=0;i.length-1>s;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=u(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(s){function t(t,e){var i,n;for(n=0;t.length>n;n++)i=r.classesElementLookup[t[n]]||u(),i=s.add?u(u.unique(i.get().concat(s.element.get()))):u(i.not(s.element).get()),r.classesElementLookup[t[n]]=i,o.push(t[n]),e&&s.classes[t[n]]&&o.push(s.classes[t[n]])}var o=[],r=this;return s=u.extend({element:this.element,classes:this.options.classes||{}},s),this._on(s.element,{remove:"_untrackClassesElement"}),s.keys&&t(s.keys.match(/\S+/g)||[],!0),s.extra&&t(s.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var n=this;u.each(n.classesElementLookup,function(t,e){-1!==u.inArray(i.target,e)&&(n.classesElementLookup[t]=u(e.not(i.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof t||null===t,o={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(r,a,t){var h,l=this;"boolean"!=typeof r&&(t=a,a=r,r=!1),t?(a=h=u(a),this.bindings=this.bindings.add(a)):(t=a,a=this.element,h=this.widget()),u.each(t,function(t,e){function i(){return r||!0!==l.options.disabled&&!u(this).hasClass("ui-state-disabled")?("string"==typeof e?l[e]:e).apply(l,arguments):void 0}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||u.guid++);var n=t.match(/^([\w:-]*)\s*(.*)$/),s=n[1]+l.eventNamespace,o=n[2];o?h.on(s,o,i):a.on(s,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=u(this.bindings.not(t).get()),this.focusable=u(this.focusable.not(t).get()),this.hoverable=u(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(u(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(u(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(u(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(u(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,s,o=this.options[t];if(i=i||{},(e=u.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],s=e.originalEvent)for(n in s)n in e||(e[n]=s[n]);return this.element.trigger(e,i),!(u.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},u.each({show:"fadeIn",hide:"fadeOut"},function(o,r){u.Widget.prototype["_"+o]=function(e,t,i){"string"==typeof t&&(t={effect:t});var n,s=t?!0===t||"number"==typeof t?r:t.effect||r:o;"number"==typeof(t=t||{})&&(t={duration:t}),n=!u.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&u.effects&&u.effects.effect[s]?e[o](t):s!==o&&e[s]?e[s](t.duration,t.easing,i):e.queue(function(t){u(this)[o](),i&&i.call(e[0]),t()})}}),u.widget,u.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},u.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var o=!1;u(document).on("mouseup",function(){o=!1}),u.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){return!0===u.data(t.target,e.widgetName+".preventClickEvent")?(u.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!o){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,i=1===t.which,n=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&u(t.target).closest(this.options.cancel).length;return i&&!n&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===u.data(t.target,this.widgetName+".preventClickEvent")&&u.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),o=!0)),!0}},_mouseMove:function(t){if(this._mouseMoved){if(u.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&u.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,o=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),u.widget("ui.slider",u.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e,i=this.options,n=this.element.find(".ui-slider-handle"),s=[];for(e=i.values&&i.values.length||1,n.length>e&&(n.slice(e).remove(),n=n.slice(0,e)),t=n.length;t<e;t++)s.push("<span tabindex='0'></span>");this.handles=n.add(u(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){u(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:u.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=u("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var e,i,n,s,o,r,a,h=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-h.values(t));(e<n||n===e&&(t===h._lastChangedValue||h.values(t)===l.min))&&(n=e,s=u(this),o=t)}),!1!==this._start(t,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),r=s.offset(),a=!u(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:t.pageX-r.left-s.width()/2,top:t.pageY-r.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,s;return 1<(i=("horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/e)&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),n=this._valueMax()-this._valueMin(),s=this._valueMin()+i*n,this._trimAlignValue(s)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==e?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,s=this.value(),o=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),s=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(n,i):Math.max(n,i)),o[e]=i),i===s||!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var i,n,s;if(1<arguments.length)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!u.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,n=t,s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(t,e){var i,n=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),u.isArray(this.options.values)&&(n=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=n-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;i.length>n;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=0<this.options.step?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=0<i?e:-e),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,n,s,o=this.options.range,r=this.options,a=this,h=!this._animateOff&&r.animate,l={};this._hasMultipleValues()?this.handles.each(function(t){i=(a.values(t)-a._valueMin())/(a._valueMax()-a._valueMin())*100,l["horizontal"===a.orientation?"left":"bottom"]=i+"%",u(this).stop(1,1)[h?"animate":"css"](l,r.animate),!0===a.options.range&&("horizontal"===a.orientation?(0===t&&a.range.stop(1,1)[h?"animate":"css"]({left:i+"%"},r.animate),1===t&&a.range[h?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===t&&a.range.stop(1,1)[h?"animate":"css"]({bottom:i+"%"},r.animate),1===t&&a.range[h?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(t=this.value(),n=this._valueMin(),s=this._valueMax(),i=s!==n?(t-n)/(s-n)*100:0,l["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[h?"animate":"css"](l,r.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:i+"%"},r.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:100-i+"%"},r.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:i+"%"},r.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(t){var e,i,n,s=u(t.target).data("ui-slider-handle-index");switch(t.keyCode){case u.ui.keyCode.HOME:case u.ui.keyCode.END:case u.ui.keyCode.PAGE_UP:case u.ui.keyCode.PAGE_DOWN:case u.ui.keyCode.UP:case u.ui.keyCode.RIGHT:case u.ui.keyCode.DOWN:case u.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(u(t.target),null,"ui-state-active"),!1===this._start(t,s)))return}switch(n=this.options.step,e=i=this._hasMultipleValues()?this.values(s):this.value(),t.keyCode){case u.ui.keyCode.HOME:i=this._valueMin();break;case u.ui.keyCode.END:i=this._valueMax();break;case u.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case u.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case u.ui.keyCode.UP:case u.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+n);break;case u.ui.keyCode.DOWN:case u.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-n)}this._slide(t,s,i)},keyup:function(t){var e=u(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(u(t.target),null,"ui-state-active"))}}})},"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery),function(e){function i(t,e){if(!(1<t.originalEvent.touches.length)){t.preventDefault();var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}if(e.support.touch="ontouchend"in document,e.support.touch){var n,t=e.ui.mouse.prototype,s=t._mouseInit,o=t._mouseDestroy;t._touchStart=function(t){!n&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(n=!0,this._touchMoved=!1,i(t,"mouseover"),i(t,"mousemove"),i(t,"mousedown"))},t._touchMove=function(t){n&&(this._touchMoved=!0,i(t,"mousemove"))},t._touchEnd=function(t){n&&(i(t,"mouseup"),i(t,"mouseout"),this._touchMoved||i(t,"click"),n=!1)},t._mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),s.call(t)},t._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),o.call(t)}}}(jQuery),v=jQuery,a=jQuery,h=function(t){var e={},i=vt(t,e);return i.getType=function(){return"text"},i.$().on("change keyup keydown",function(t){e.publishChange(t,this)}),i},a.fn.inputVal=function(t){var e=a(this),i=kt({$:e});return e.is("input, textarea, select")?void 0===t?i[e.attr("name")].get():(i[e.attr("name")].set(t),e):void 0===t?mt(i,"get"):(ct(t,function(t,e){i[e].set(t)}),e)},a.fn.inputOnChange=function(e){var t=a(this),i=kt({$:t});return ct(i,function(t){t.subscribe("change",function(t){e.call(t.domElement,t.e)})}),t},a.fn.inputDisable=function(){var t=a(this);return mt(kt({$:t}),"disable"),t},a.fn.inputEnable=function(){var t=a(this);return mt(kt({$:t}),"enable"),t},a.fn.inputClear=function(){var t=a(this);return mt(kt({$:t}),"clear"),t},v.fn.repeaterVal=function(){var t,n;return function i(t){if(1===t.length&&(0===t[0].key.length||1===t[0].key.length&&!t[0].key[0]))return t[0].val;ct(t,function(t){t.head=t.key.shift()});var n,e,s=(e={},ct(t,function(t){e[t.head]||(e[t.head]=[]),e[t.head].push(t)}),e);return/^[0-9]+$/.test(t[0].head)?(n=[],ct(s,function(t){n.push(i(t))})):(n={},ct(s,function(t,e){n[e]=i(t)})),n}((t=v(this).inputVal(),n=[],ct(t,function(t,e){var i=[];"undefined"!==e&&(i.push(e.match(/^[^\[]*/)[0]),i=i.concat(ft(e.match(/\[[^\]]*\]/g),function(t){return t.replace(/[\[\]]/g,"")})),n.push({val:t,key:i}))}),n))},v.fn.repeater=function(m){var g;return m=m||{},v(this).each(function(){function h(t,e){return t.filter(function(){return!e||0===v(this).closest(function(t,e){return ft(t,function(t){return t[e]})}(e,"selector").join(",")).length})}function i(){return h(s.find("[data-repeater-item]"),m.repeaters)}var t=v(this),n=m.show||function(){v(this).show()},e=m.hide||function(t){t()},s=t.find("[data-repeater-list]").first(),o=s.find("[data-repeater-item]").first().clone().hide(),r=h(h(v(this).find("[data-repeater-item]"),m.repeaters).first().find("[data-repeater-delete]"),m.repeaters);function a(){var t=s.data("repeater-list");return m.$parent?m.$parent.data("item-name")+"["+t+"]":t}function l(t){m.repeaters&&t.each(function(){var e=v(this);ct(m.repeaters,function(t){e.find(t.selector).repeater(pt(t,{$parent:e}))})})}function u(t,e,i){t&&ct(t,function(t){i.call(e.find(t.selector)[0],t)})}function c(t,r,a){t.each(function(s){var o=v(this);o.data("item-name",r+"["+s+"]"),h(o.find("[name]"),a).each(function(){var t=v(this),e=t.attr("name").match(/\[[^\]]+\]/g),i=e?dt(e).replace(/\[|\]/g,""):t.attr("name"),n=r+"["+s+"]["+i+"]"+(t.is(":checkbox")||t.attr("multiple")?"[]":"");t.attr("name",n),u(a,o,function(t){var e=v(this);c(h(e.find("[data-repeater-item]"),t.repeaters||[]),r+"["+s+"]["+e.find("[data-repeater-list]").first().data("repeater-list")+"]",t.repeaters)})})}),s.find("input[name][checked]").removeAttr("checked").prop("checked",!0)}function d(t){var e=o.clone();p(e,t),m.repeaters&&l(e),n.call(e.get(0))}m.isFirstItemUndeletable&&r&&r.remove(),c(i(),a(),m.repeaters),l(i()),m.initEmpty&&i().remove(),m.ready&&m.ready(function(){c(i(),a(),m.repeaters)});var p=function(t,e){s.append(t),c(i(),a(),m.repeaters),t.find("[name]").each(function(){v(this).inputClear()}),f(t,e||m.defaultValues,m.repeaters)};function f(t,e,i){if(e||m.defaultValues){var n={};h(t.find("[name]"),i).each(function(){var t=v(this).attr("name").match(/\[([^\]]*)(\]|\]\[\])$/)[1];n[t]=v(this).attr("name")}),t.inputVal(ft(function(t,n){var s;return ht(t)?(s=[],ct(t,function(t,e,i){n(t,e,i)&&s.push(t)})):(s={},ct(t,function(t,e,i){n(t,e,i)&&(s[e]=t)})),s}(e||m.defaultValues,function(t,e){return n[e]}),at,function(t){return n[t]}))}u(i,t,function(n){var s=v(this);h(s.find("[data-repeater-item]"),n.repeaters).each(function(){var t=s.find("[data-repeater-list]").data("repeater-list");if(e&&e[t]){var i=v(this).clone();s.find("[data-repeater-item]").remove(),ct(e[t],function(t){var e=i.clone();f(e,t,n.repeaters||[]),s.find("[data-repeater-list]").append(e)})}else f(v(this),n.defaultValues,n.repeaters||[])})})}g=function(t){i().remove(),ct(t,d)},h(t.find("[data-repeater-create]"),m.repeaters).click(function(){d()}),s.on("click","[data-repeater-delete]",function(){var t=v(this).closest("[data-repeater-item]").get(0);e.call(t,function(){v(t).remove(),c(i(),a(),m.repeaters)})})}),this.setList=g,this},A=window,M=function(t,e){function i(l,s,u){(u=u||e||t.jQuery)&&(s.prototype.option||(s.prototype.option=function(t){u.isPlainObject(t)&&(this.options=u.extend(!0,this.options,t))}),u.fn[l]=function(t){return"string"!=typeof t?(function(t,n){t.each(function(t,e){var i=u.data(e,l);i?(i.option(n),i._init()):(i=new s(e,n),u.data(e,l,i))})}(this,t),this):function(t,o,r){var a,h="$()."+l+'("'+o+'")';return t.each(function(t,e){var i=u.data(e,l);if(i){var n=i[o];if(n&&"_"!=o.charAt(0)){var s=n.apply(i,r);a=void 0===a?s:a}else c(h+" is not a valid method")}else c(l+" not initialized. Cannot call methods, i.e. "+h)}),void 0!==a?a:t}(this,t,o.call(arguments,1))},n(u))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,s=t.console,c=void 0===s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i},"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return M(A,t)}):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=M(A,require("jquery")):A.jQueryBridget=M(A,A.jQuery),D=window,k=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t},"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",k):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=k():D.EvEmitter=k(),z=window,O=function(){function v(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function y(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function _(t){if(function(){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 e=document.body||document.documentElement;e.appendChild(t);var i=y(t);w=200==Math.round(v(i.width)),_.isBoxSizeOuter=w,e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==$(t)&&t.nodeType){var e=y(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<x;e++){t[b[e]]=0}return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,s=0;s<x;s++){var o=b[s],r=e[o],a=parseFloat(r);i[o]=isNaN(a)?0:a}var h=i.paddingLeft+i.paddingRight,l=i.paddingTop+i.paddingBottom,u=i.marginLeft+i.marginRight,c=i.marginTop+i.marginBottom,d=i.borderLeftWidth+i.borderRightWidth,p=i.borderTopWidth+i.borderBottomWidth,f=n&&w,m=v(e.width);!1!==m&&(i.width=m+(f?0:h+d));var g=v(e.height);return!1!==g&&(i.height=g+(f?0:l+p)),i.innerWidth=i.width-(h+d),i.innerHeight=i.height-(l+p),i.outerWidth=i.width+u,i.outerHeight=i.height+c,i}}var w,i="undefined"==typeof console?function(){}:function(t){console.error(t)},b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],x=b.length,C=!1;return _},"function"==typeof define&&define.amd?define("get-size/get-size",O):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=O():z.getSize=O(),S=window,I=function(){var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}},"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",I):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=I():S.matchesSelector=I(),E=window,T=function(l,o){var u={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice;u.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==$(t)&&"number"==typeof t.length?e.call(t):[t]},u.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},u.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,o(t,e))return t},u.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},u.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.filterFindElements=function(t,n){t=u.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void s.push(t);o(t,n)&&s.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)s.push(e[i])}}),s},u.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,i=this;this[o]=setTimeout(function(){s.apply(i,e),delete i[o]},n)}},u.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},u.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var c=l.console;return u.htmlInit=function(a,h){u.docReady(function(){var t=u.toDashed(h),s="data-"+t,e=document.querySelectorAll("["+s+"]"),i=document.querySelectorAll(".js-"+t),n=u.makeArray(e).concat(u.makeArray(i)),o=s+"-options",r=l.jQuery;n.forEach(function(e){var t,i=e.getAttribute(s)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(c&&c.error("Error parsing "+s+" on "+e.className+": "+t))}var n=new a(e,t);r&&r.data(e,h,n)})})},u},"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return T(E,t)}):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=T(E,require("desandro-matches-selector")):E.fizzyUIUtils=T(E,E.matchesSelector),x=window,C=function(t,e){function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var n=document.documentElement.style,s="string"==typeof n.transition?"transition":"WebkitTransition",o="string"==typeof n.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],a={transform:o,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},h=i.prototype=Object.create(t.prototype);h.constructor=i,h._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.getSize=function(){this.size=e(this.element)},h.css=function(t){var e=this.element.style;for(var i in t){e[a[i]||i]=t[i]}},h.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],s=t[i?"top":"bottom"],o=parseFloat(n),r=parseFloat(s),a=this.layout.size;-1!=n.indexOf("%")&&(o=o/100*a.width),-1!=s.indexOf("%")&&(r=r/100*a.height),o=isNaN(o)?0:o,r=isNaN(r)?0:r,o-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=o,this.position.y=r},h.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),s=i?"paddingLeft":"paddingRight",o=i?"left":"right",r=i?"right":"left",a=this.position.x+t[s];e[o]=this.getXValue(a),e[r]="";var h=n?"paddingTop":"paddingBottom",l=n?"top":"bottom",u=n?"bottom":"top",c=this.position.y+t[h];e[l]=this.getYValue(c),e[u]="",this.css(e),this.emitEvent("layout",[this])},h.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},h.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},h._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,s=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!s||this.isTransitioning){var o=t-i,r=e-n,a={};a.transform=this.getTranslate(o,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},h.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},h.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},h.moveTo=h._transitionTo,h.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},h._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},h.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var l="opacity,"+o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});h.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1)}},h.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},h.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};h.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=u[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!null}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},h.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},h._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return h.removeTransitionStyles=function(){this.css(c)},h.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},h.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},h.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},h.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},h.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},h.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},h.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},h.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i},"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],C):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=C(require("ev-emitter"),require("get-size")):(x.Outlayer={},x.Outlayer.Item=C(x.EvEmitter,x.getSize)),w=window,b=function(t,e,s,o,n){function r(t,e){var i=o.getQueryElement(t);if(i){this.element=i,l&&(this.$element=l(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++u;this.element.outlayerGUID=n,(c[n]=this)._create(),this._getOption("initLayout")&&this.layout()}else h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}function i(){}var h=t.console,l=t.jQuery,u=0,c={};r.namespace="outlayer",r.Item=n,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 d=r.prototype;o.extend(d,e.prototype),d.option=function(t){o.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],s=0;s<e.length;s++){var o=new i(e[s],this);n.push(o)}return n},d._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=s(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?s(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;return null==t?void(this.stagger=0):(this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];return i.length?(i=parseFloat(i))*(p[n]||1):0}(t),this.stagger)},d._positionItem=function(t,e,i,n,s){n?t.goTo(e,i):(t.stagger(s*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},d._getContainerSize=i,d._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},d._emitCompleteOnItems=function(e,t){function i(){s.dispatchEvent(e+"Complete",null,[t])}function n(){++r==o&&i()}var s=this,o=t.length;if(t&&o){var r=0;t.forEach(function(t){t.once(e,n)})}else i()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),l)if(this.$element=this.$element||l(this.element),e){var s=l.Event(e);s.type=t,this.$element.trigger(s,i)}else this.$element.trigger(t,i)},d.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},d.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),o.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,n=s(t);return{left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom}},d.handleEvent=o.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},o.debounceMethod(r,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=s(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},d.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},d.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},d.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.reveal()})}},d.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.hide()})}},d.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},d.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=o.makeArray(t);var i=[];return t.forEach(function(t){var e=this.getItem(t);e&&i.push(e)},this),i},d.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},r.data=function(t){var e=(t=o.getQueryElement(t))&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=a(r);return i.defaults=o.extend({},r.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=a(n),o.htmlInit(i,t),l&&l.bridget&&l.bridget(t,i),i};var p={ms:1,s:1e3};return r.Item=n,r},"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n){return b(w,t,e,i,n)}):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=b(w,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):w.Outlayer=b(w,w.EvEmitter,w.getSize,w.fizzyUIUtils,w.Outlayer.Item),g=window,y=function(t){function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var s=i.destroy;return i.destroy=function(){s.apply(this,arguments),this.css({display:""})},e},"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],y):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=y(require("outlayer")):(g.Isotope=g.Isotope||{},g.Isotope.Item=y(g.Outlayer)),f=window,m=function(e,i){function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var s=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){s[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),s.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},s._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},s.getColumnWidth=function(){this.getSegmentSize("column","Width")},s.getRowHeight=function(){this.getSegmentSize("row","Height")},s.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;if(this._getMeasurement(i,n),!this[i]){var s=this.getFirstItemSize();this[i]=s&&s[n]||this.isotope.size["inner"+e]}},s.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},s.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},s.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(s)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n},"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],m):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=m(require("get-size"),require("outlayer")):(f.Isotope=f.Isotope||{},f.Isotope.LayoutMode=m(f.getSize,f.Outlayer)),d=window,p=function(t,l){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],e=t&&t.element;this.columnWidth=e&&l(e).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,s=n/i,o=i-n%i;s=Math[o&&o<1?"round":"floor"](s),this.cols=Math.max(s,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=l(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),s={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,r=i+n.col,a=n.col;a<r;a++)this.colYs[a]=o;return s},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols;i=1<t&&i+t>this.cols?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var e=l(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,s=n+e.outerWidth,o=Math.floor(n/this.columnWidth);o=Math.max(0,o);var r=Math.floor(s/this.columnWidth);r-=s%this.columnWidth?0:1,r=Math.min(this.cols-1,r);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,h=o;h<=r;h++)this.colYs[h]=Math.max(a,this.colYs[h])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e},"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],p):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=p(require("outlayer"),require("get-size")):d.Masonry=p(d.Outlayer,d.getSize),u=window,c=function(t,e){var i=t.create("masonry"),n=i.prototype,s={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var o in e.prototype)s[o]||(n[o]=e.prototype[o]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i},"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],c):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=c(require("../layout-mode"),require("masonry-layout")):c(u.Isotope.LayoutMode,u.Masonry),s=window,o=function(t){var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e},"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],o):"object"==("undefined"==typeof exports?"undefined":$(exports))?module.exports=o(require("../layout-mode")):o(s.Isotope.LayoutMode),e=window,i=function(t){var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e},"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],i):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=i(require("../layout-mode")):i(e.Isotope.LayoutMode),r=window,l=function(t,i,e,n,o,s,r){var a=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},l=i.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});l.Item=s,l.LayoutMode=r;var u=l.prototype;u._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],r.modes)this._initLayoutMode(t)},u.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},u._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++){t[e].id=this.itemGUID++}return this._updateItemsSortData(t),t},u._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?o.extend(e.options,i):i,this.modes[t]=new e(this)},u.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},u._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},u.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},u._init=u.arrange,u._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},u._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e},u._bindArrangeComplete=function(){function t(){e&&i&&n&&s.dispatchEvent("arrangeComplete",null,[s.filteredItems])}var e,i,n,s=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},u._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],n=[],s=[],o=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var h=o(a);h&&i.push(a),h&&a.isHidden?n.push(a):h||a.isHidden||s.push(a)}}return{matches:i,needReveal:n,needHide:s}},u._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},u.updateSortData=function(t){var e;e=t?(t=o.makeArray(t),this.getItems(t)):this.items,this._getSorters(),this._updateItemsSortData(e)},u._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=p(i)}},u._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].updateSortData()}};var c,d,p=function(t){if("string"!=typeof t)return t;var e=h(t).split(" "),i=e[0],n=i.match(/^\[(.+)\]$/),s=function(e,i){return e?function(t){return t.getAttribute(e)}:function(t){var e=t.querySelector(i);return e&&e.textContent}}(n&&n[1],i),o=l.sortDataParsers[e[1]];return o?function(t){return t&&o(s(t))}:function(t){return t&&s(t)}};function f(t){return c.apply(this,arguments)}function m(t){return d.apply(this,arguments)}l.sortDataParsers={parseInt:(d=function(t){return parseInt(t,10)},m.toString=function(){return d.toString()},m),parseFloat:(c=function(t){return parseFloat(t)},f.toString=function(){return c.toString()},f)},u._sort=function(){if(this.options.sortBy){var t=o.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=function(r,a){return function(t,e){for(var i=0;i<r.length;i++){var n=r[i],s=t.sortData[n],o=e.sortData[n];if(o<s||s<o)return(o<s?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0}}(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},u._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},u._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},u._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},u._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},u._manageStamp=function(t){this._mode()._manageStamp(t)},u._getContainerSize=function(){return this._mode()._getContainerSize()},u.needsResizeLayout=function(){return this._mode().needsResizeLayout()},u.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},u.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},u._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},u.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,s=e.length;for(i=0;i<s;i++)n=e[i],this.element.appendChild(n.element);var o=this._filter(e).matches;for(i=0;i<s;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<s;i++)delete e[i].isLayoutInstant;this.reveal(o)}};var g=u.remove;return u.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);g.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var s=e[n];o.removeFrom(this.filteredItems,s)}},u.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},u._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},u.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},l},"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(t,e,i,n,s,o){return l(r,t,0,i,n,s,o)}):"object"==("undefined"==typeof module?"undefined":$(module))&&module.exports?module.exports=l(r,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):r.Isotope=l(r,r.Outlayer,r.getSize,r.matchesSelector,r.fizzyUIUtils,r.Isotope.Item,r.Isotope.LayoutMode),nt=window.Zepto||window.jQuery,st=window,ot=document,Bt.Defaults={items:3,loop:!1,center:!1,rewind:!1,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:st,fallbackEasing:"swing",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"},Bt.Width={Default:"default",Inner:"inner",Outer:"outer"},Bt.Type={Event:"event",State:"state"},Bt.Plugins={},Bt.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.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(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,s={width:"auto","margin-left":n?e:"","margin-right":n?"":e};i||this.$stage.children().css(s),t.css=s}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,s=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=1<i||t.items.merge,o[n]=s?e*i:this._items[n].width();this._widths=o}},{filter:["items","settings"],run:function(){var t=[],e=this._items,i=this.settings,n=Math.max(2*i.items,4),s=2*Math.ceil(e.length/2),o=i.loop&&e.length?i.rewind?n:Math.max(n,s):0,r="",a="";for(o/=2;o--;)t.push(this.normalize(t.length/2,!0)),r+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),a=e[t[t.length-1]][0].outerHTML+a;this._clones=t,nt(r).addClass("cloned").appendTo(this.$stage),nt(a).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,n=0,s=0,o=[];++i<e;)n=o[i-1]||0,s=this._widths[this.relative(i)]+this.settings.margin,o.push(n+s*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],n.eq(e).css(t.css);else i&&(t.css.width=t.items.width,n.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,s=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*s,h=[];for(i=0,n=this._coordinates.length;i<n;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*s,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],Bt.prototype.initialize=function(){var t,e,i;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:rt,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t)),this.$element.addClass(this.options.loadingClass),this.$stage=nt("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},Bt.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,n=null;t?(nt.each(t,function(t){t<=e&&i<t&&(i=Number(t))}),"function"==typeof(n=nt.extend({},this.options,t[i])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):n=nt.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=i,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},Bt.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},Bt.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=nt("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},Bt.prototype.update=function(){for(var t=0,e=this._pipe.length,i=nt.proxy(function(t){return this[t]},this._invalidated),n={};t<e;)(this._invalidated.all||0<nt.grep(this._pipe[t].filter,i).length)&&this._pipe[t].run(n),t++;this._invalidated={},this.is("valid")||this.enter("valid")},Bt.prototype.width=function(t){switch(t=t||Bt.Width.Default){case Bt.Width.Inner:case Bt.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},Bt.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")},Bt.prototype.onThrottledResize=function(){st.clearTimeout(this.resizeTimer),this.resizeTimer=st.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},Bt.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},Bt.prototype.registerEventHandlers=function(){nt.support.transition&&this.$stage.on(nt.support.transition.end+".owl.core",nt.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(st,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",nt.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",nt.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",nt.proxy(this.onDragEnd,this)))},Bt.prototype.onDragStart=function(t){var e=null;3!==t.which&&(e=nt.support.transform?{x:(e=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===e.length?12:4],y:e[16===e.length?13:5]}:(e=this.$stage.position(),{x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is("animating")&&(nt.support.transform?this.animate(e.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=nt(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),nt(ot).on("mouseup.owl.core touchend.owl.core",nt.proxy(this.onDragEnd,this)),nt(ot).one("mousemove.owl.core touchmove.owl.core",nt.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));nt(ot).on("mousemove.owl.core touchmove.owl.core",nt.proxy(this.onDragMove,this)),Math.abs(e.x)<Math.abs(e.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},Bt.prototype.onDragMove=function(t){var e=null,i=null,n=null,s=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,s);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*s.x/5:0,o.x=Math.max(Math.min(o.x,e+n),i+n)),this._drag.stage.current=o,this.animate(o.x))},Bt.prototype.onDragEnd=function(t){var e=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,n=0<e.x^this.settings.rtl?"left":"right";nt(ot).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==e.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==e.x?n:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=n,(3<Math.abs(e.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},Bt.prototype.closest=function(i,n){var s=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||nt.each(r,nt.proxy(function(t,e){return"left"===n&&e-30<i&&i<e+30?s=t:"right"===n&&e-o-30<i&&i<e-o+30?s=t+1:this.op(i,"<",e)&&this.op(i,">",r[t+1]||e-o)&&(s="left"===n?t+1:t),-1===s},this)),this.settings.loop||(this.op(i,">",r[this.minimum()])?s=i=this.minimum():this.op(i,"<",r[this.maximum()])&&(s=i=this.maximum())),s},Bt.prototype.animate=function(t){var e=0<this.speed();this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this.trigger("translate")),nt.support.transform3d&&nt.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"}):e?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,nt.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},Bt.prototype.is=function(t){return this._states.current[t]&&0<this._states.current[t]},Bt.prototype.current=function(t){if(t===rt)return this._current;if(0===this._items.length)return rt;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==rt&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},Bt.prototype.invalidate=function(t){return"string"===nt.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),nt.map(this._invalidated,function(t,e){return e})},Bt.prototype.reset=function(t){(t=this.normalize(t))!==rt&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},Bt.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=rt:(t<0||i+n<=t)&&(t=((t-n/2)%i+i)%i+n/2),t},Bt.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},Bt.prototype.maximum=function(t){var e,i,n,s=this.settings,o=this._coordinates.length;if(s.loop)o=this._clones.length/2+this._items.length-1;else if(s.autoWidth||s.merge){for(e=this._items.length,i=this._items[--e].width(),n=this.$element.width();e--&&!(n<(i+=this._items[e].width()+this.settings.margin)););o=e+1}else o=s.center?this._items.length-1:this._items.length-s.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},Bt.prototype.minimum=function(t){return t?0:this._clones.length/2},Bt.prototype.items=function(t){return t===rt?this._items.slice():(t=this.normalize(t,!0),this._items[t])},Bt.prototype.mergers=function(t){return t===rt?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},Bt.prototype.clones=function(i){function n(t){return t%2==0?s+t/2:e-(t+1)/2}var e=this._clones.length/2,s=e+this._items.length;return i===rt?nt.map(this._clones,function(t,e){return n(e)}):nt.map(this._clones,function(t,e){return t===i?n(e):null})},Bt.prototype.speed=function(t){return t!==rt&&(this._speed=t),this._speed},Bt.prototype.coordinates=function(t){var e,i=1,n=t-1;return t===rt?nt.map(this._coordinates,nt.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,n=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[n]||0))/2*i):e=this._coordinates[n]||0,e=Math.ceil(e))},Bt.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},Bt.prototype.to=function(t,e){var i=this.current(),n=null,s=t-this.relative(i),o=(0<s)-(s<0),r=this._items.length,a=this.minimum(),h=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>r/2&&(s+=-1*o*r),(n=(((t=i+s)-a)%r+r)%r+a)!==t&&n-s<=h&&0<n-s&&(i=n-s,t=n,this.reset(i))):t=this.settings.rewind?(t%(h+=1)+h)%h:Math.max(a,Math.min(h,t)),this.speed(this.duration(i,t,e)),this.current(t),this.$element.is(":visible")&&this.update()},Bt.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},Bt.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},Bt.prototype.onTransitionEnd=function(t){return(t===rt||(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)===this.$stage.get(0)))&&(this.leave("animating"),void this.trigger("translated"))},Bt.prototype.viewport=function(){var t;if(this.options.responsiveBaseElement!==st)t=nt(this.options.responsiveBaseElement).width();else if(st.innerWidth)t=st.innerWidth;else{if(!ot.documentElement||!ot.documentElement.clientWidth)throw"Can not detect viewport width.";t=ot.documentElement.clientWidth}return t},Bt.prototype.replace=function(t){this.$stage.empty(),this._items=[],t=t&&(t instanceof jQuery?t:nt(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(nt.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.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")},Bt.prototype.add=function(t,e){var i=this.relative(this._current);e=e===rt?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:nt(t),this.trigger("add",{content:t,position:e}),t=this.prepare(t),0===this._items.length||e===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:e})},Bt.prototype.remove=function(t){(t=this.normalize(t,!0))!==rt&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},Bt.prototype.preloadAutoWidthImages=function(t){t.each(nt.proxy(function(t,e){this.enter("pre-loading"),e=nt(e),nt(new Image).one("load",nt.proxy(function(t){e.attr("src",t.target.src),e.css("opacity",1),this.leave("pre-loading"),this.is("pre-loading")||this.is("initializing")||this.refresh()},this)).attr("src",e.attr("src")||e.attr("data-src")||e.attr("data-src-retina"))},this))},Bt.prototype.destroy=function(){for(var t in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),nt(ot).off(".owl.core"),!1!==this.settings.responsive&&(st.clearTimeout(this.resizeTimer),this.off(st,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),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")},Bt.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?i<t:t<i;case">":return n?t<i:i<t;case">=":return n?t<=i:i<=t;case"<=":return n?i<=t:t<=i}},Bt.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},Bt.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},Bt.prototype.trigger=function(t,e,i,n,s){var o={item:{count:this._items.length,index:this.current()}},r=nt.camelCase(nt.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),a=nt.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),nt.extend({relatedTarget:this},o,e));return this._supress[t]||(nt.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:Bt.Type.Event,name:t}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},Bt.prototype.enter=function(t){nt.each([t].concat(this._states.tags[t]||[]),nt.proxy(function(t,e){this._states.current[e]===rt&&(this._states.current[e]=0),this._states.current[e]++},this))},Bt.prototype.leave=function(t){nt.each([t].concat(this._states.tags[t]||[]),nt.proxy(function(t,e){this._states.current[e]--},this))},Bt.prototype.register=function(i){if(i.type===Bt.Type.Event){if(nt.event.special[i.name]||(nt.event.special[i.name]={}),!nt.event.special[i.name].owl){var e=nt.event.special[i.name]._default;nt.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1<t.namespace.indexOf("owl"):e.apply(this,arguments)},nt.event.special[i.name].owl=!0}}else i.type===Bt.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=nt.grep(this._states.tags[i.name],nt.proxy(function(t,e){return nt.inArray(t,this._states.tags[i.name])===e},this)))},Bt.prototype.suppress=function(t){nt.each(t,nt.proxy(function(t,e){this._supress[e]=!0},this))},Bt.prototype.release=function(t){nt.each(t,nt.proxy(function(t,e){delete this._supress[e]},this))},Bt.prototype.pointer=function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||st.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},Bt.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},Bt.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},nt.fn.owlCarousel=function(e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=nt(this),i=t.data("owl.carousel");i||(i=new Bt(this,"object"==$(e)&&e),t.data("owl.carousel",i),nt.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,e){i.register({type:Bt.Type.Event,name:e}),i.$element.on(e+".owl.carousel.core",nt.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([e]),i[e].apply(this,[].slice.call(arguments,1)),this.release([e]))},i))})),"string"==typeof e&&"_"!==e.charAt(0)&&i[e].apply(i,n)})},nt.fn.owlCarousel.Constructor=Bt,et=window.Zepto||window.jQuery,it=window,Ft.Defaults={autoRefresh:!0,autoRefreshInterval:500},Ft.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=it.setInterval(et.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},Ft.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},Ft.prototype.destroy=function(){var t,e;for(t in it.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},et.fn.owlCarousel.Constructor.Plugins.AutoRefresh=Ft,J=window.Zepto||window.jQuery,tt=window,Ht.Defaults={lazyLoad:!1},Ht.prototype.load=function(t){var e=this._core.$stage.children().eq(t),i=e&&e.find(".owl-lazy");!i||-1<J.inArray(e.get(0),this._loaded)||(i.each(J.proxy(function(t,e){var i,n=J(e),s=1<tt.devicePixelRatio&&n.attr("data-src-retina")||n.attr("data-src");this._core.trigger("load",{element:n,url:s},"lazy"),n.is("img")?n.one("load.owl.lazy",J.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:s},"lazy")},this)).attr("src",s):((i=new Image).onload=J.proxy(function(){n.css({"background-image":"url("+s+")",opacity:"1"}),this._core.trigger("loaded",{element:n,url:s},"lazy")},this),i.src=s)},this)),this._loaded.push(e.get(0)))},Ht.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},J.fn.owlCarousel.Constructor.Plugins.Lazy=Ht,K=window.Zepto||window.jQuery,Wt.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},Wt.prototype.update=function(){var t,e=this._core._current,i=e+this._core.settings.items,n=this._core.$stage.children().toArray().slice(e,i),s=[];K.each(n,function(t,e){s.push(K(e).height())}),t=Math.max.apply(null,s),this._core.$stage.parent().height(t).addClass(this._core.settings.autoHeightClass)},Wt.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},K.fn.owlCarousel.Constructor.Plugins.AutoHeight=Wt,Z=window.Zepto||window.jQuery,window,X=document,Rt.Defaults={video:!1,videoHeight:!1,videoWidth:!1},Rt.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),s=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(-1<(n=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))i="youtube";else if(-1<n[3].indexOf("vimeo"))i="vimeo";else{if(!(-1<n[3].indexOf("vzaar")))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[r]={type:i,id:n,width:s,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},Rt.prototype.thumbnail=function(e,t){function i(t){n=l.lazyLoad?'<div class="owl-video-tn '+h+'" '+a+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(n),e.after('<div class="owl-video-play-icon"></div>')}var n,s,o=t.width&&t.height?'style="width:'+t.width+"px;height:"+t.height+'px;"':"",r=e.find("img"),a="src",h="",l=this._core.settings;return e.wrap('<div class="owl-video-wrapper"'+o+"></div>"),this._core.settings.lazyLoad&&(a="data-src",h="owl-lazy"),r.length?(i(r.attr(a)),r.remove(),!1):void("youtube"===t.type?(s="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",i(s)):"vimeo"===t.type?Z.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,i(s)}}):"vzaar"===t.type&&Z.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t.framegrab_url,i(s)}}))},Rt.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")},Rt.prototype.play=function(t){var e,i=Z(t.target).closest("."+this._core.settings.itemClass),n=this._videos[i.attr("data-video")],s=n.width||"100%",o=n.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()),"youtube"===n.type?e='<iframe width="'+s+'" height="'+o+'" src="//www.youtube.com/embed/'+n.id+"?autoplay=1&v="+n.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===n.type?e='<iframe src="//player.vimeo.com/video/'+n.id+'?autoplay=1" width="'+s+'" height="'+o+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===n.type&&(e='<iframe frameborder="0"height="'+o+'"width="'+s+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+n.id+'/player?autoplay=true"></iframe>'),Z('<div class="owl-video-frame">'+e+"</div>").insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},Rt.prototype.isInFullScreen=function(){var t=X.fullscreenElement||X.mozFullScreenElement||X.webkitFullscreenElement;return t&&Z(t).parent().hasClass("owl-video-frame")},Rt.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},Z.fn.owlCarousel.Constructor.Plugins.Video=Rt,G=window.Zepto||window.jQuery,Pt.Defaults={animateOut:!1,animateIn:!1},Pt.prototype.swap=function(){if(1===this.core.settings.items&&G.support.animation&&G.support.transition){this.core.speed(0);var t,e=G.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(G.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),s&&n.one(G.support.animation.end,e).addClass("animated owl-animated-in").addClass(s))}},Pt.prototype.clear=function(t){G(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()},Pt.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},G.fn.owlCarousel.Constructor.Plugins.Animate=Pt,Q=window.Zepto||window.jQuery,V=window,Y=document,Lt.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},Lt.prototype.play=function(t,e){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},Lt.prototype._getNextTimeout=function(t,e){return this._timeout&&V.clearTimeout(this._timeout),V.setTimeout(Q.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||Y.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),t||this._core.settings.autoplayTimeout)},Lt.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},Lt.prototype.stop=function(){this._core.is("rotating")&&(V.clearTimeout(this._timeout),this._core.leave("rotating"))},Lt.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},Lt.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},Q.fn.owlCarousel.Constructor.Plugins.autoplay=Lt,q=window.Zepto||window.jQuery,jt.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",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},jt.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?q(i.navContainer):q("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=q("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",q.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=q("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",q.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[q("<div>").addClass(i.dotClass).append(q("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?q(i.dotsContainer):q("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",q.proxy(function(t){var e=q(t.target).parent().is(this._controls.$absolute)?q(t.target).index():q(t.target).parent().index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),this._overrides)this._core[t]=q.proxy(this[t],this)},jt.prototype.destroy=function(){var t,e,i,n;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},jt.prototype.update=function(){var t,e,i=this._core.clones().length/2,n=i+this._core.items().length,s=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0;t<n;t++){if(r<=e||0===e){if(this._pages.push({start:Math.min(s,t-i),end:t-i+r-1}),Math.min(s,t-i)===s)break;e=0}e+=this._core.mergers(this._core.relative(t))}},jt.prototype.draw=function(){var t,e=this._core.settings,i=this._core.items().length<=e.items,n=this._core.relative(this._core.current()),s=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||i),e.nav&&(this._controls.$previous.toggleClass("disabled",!s&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!s&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||i),e.dots&&(t=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!=t?this._controls.$absolute.html(this._templates.join("")):0<t?this._controls.$absolute.append(new Array(1+t).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(q.inArray(this.current(),this._pages)).addClass("active"))},jt.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:q.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},jt.prototype.current=function(){var i=this._core.relative(this._core.current());return q.grep(this._pages,q.proxy(function(t,e){return t.start<=i&&t.end>=i},this)).pop()},jt.prototype.getPosition=function(t){var e,i,n=this._core.settings;return"page"==n.slideBy?(e=q.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=n.slideBy:e-=n.slideBy),e},jt.prototype.next=function(t){q.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},jt.prototype.prev=function(t){q.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},jt.prototype.to=function(t,e,i){var n;!i&&this._pages.length?(n=this._pages.length,q.proxy(this._overrides.to,this._core)(this._pages[(t%n+n)%n].start,e)):q.proxy(this._overrides.to,this._core)(t,e)},q.fn.owlCarousel.Constructor.Plugins.Navigation=jt,B=window.Zepto||window.jQuery,U=window,Nt.Defaults={URLhashListener:!1},Nt.prototype.destroy=function(){var t,e;for(t in B(U).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},B.fn.owlCarousel.Constructor.Plugins.Hash=Nt,N=window.Zepto||window.jQuery,L=N("<support>").get(0).style,P="Webkit Moz O ms".split(" "),R={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},W=function(){return!!At("transform")},H=function(){return!!At("perspective")},F=function(){return!!At("animation")},At("transition")&&(N.support.transition=new String(Mt("transition")),N.support.transition.end=R.transition.end[N.support.transition]),F()&&(N.support.animation=new String(Mt("animation")),N.support.animation.end=R.animation.end[N.support.animation]),W()&&(N.support.transform=new String(Mt("transform")),N.support.transform3d=H()),function(){function t(){}function y(t){var e=$(t);return null!=t&&("object"==e||"function"==e)}function o(t){return null!=t&&"object"==$(t)}function i(t){var e;if(!(e="symbol"==$(t))&&(e=o(t))){if(null==t)t=t===b?"[object Undefined]":"[object Null]";else if(g&&g in Object(t)){e=p.call(t,g);var i=t[g];try{t[g]=b;var n=!0}catch(t){}var s=f.call(t);n&&(e?t[g]=i:delete t[g]),t=s}else t=f.call(t);e="[object Symbol]"==t}return e}function _(t){if("number"==typeof t)return t;if(i(t))return n;if(y(t)&&(t=y(t="function"==typeof t.valueOf?t.valueOf():t)?t+"":t),"string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var e=a.test(t);return e||h.test(t)?l(t.slice(2),e?2:8):r.test(t)?n:+t}function w(){return u.Date.now()}var b,n=NaN,s=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,h=/^0o[0-7]+$/i,l=parseInt,e="object"==("undefined"==typeof self?"undefined":$(self))&&self&&self.Object===Object&&self,u="object"==("undefined"==typeof global?"undefined":$(global))&&global&&global.Object===Object&&global||e||Function("return this")(),c=(e="object"==("undefined"==typeof exports?"undefined":$(exports))&&exports&&!exports.nodeType&&exports)&&"object"==("undefined"==typeof module?"undefined":$(module))&&module&&!module.nodeType&&module,d=Object.prototype,p=d.hasOwnProperty,f=d.toString,m=u._,g=(d=u.Symbol)?d.toStringTag:b,x=Math.max,C=Math.min;t.debounce=function(n,s,t){function i(t){var e=h,i=l;return h=l=b,f=t,c=n.apply(i,e)}function o(t){var e=t-p;return t-=f,p===b||s<=e||e<0||g&&u<=t}function r(){var t=w();if(o(t))return a(t);var e,i=setTimeout;e=t-f,t=s-(t-p),e=g?C(t,u-e):t,d=i(r,e)}function a(t){return d=b,v&&h?i(t):(h=l=b,c)}function e(){var t=w(),e=o(t);if(h=arguments,l=this,p=t,e){if(d===b)return f=t=p,d=setTimeout(r,s),m?i(t):c;if(g)return d=setTimeout(r,s),i(p)}return d===b&&(d=setTimeout(r,s)),c}var h,l,u,c,d,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return s=_(s)||0,y(t)&&(m=!!t.leading,u=(g="maxWait"in t)?x(_(t.maxWait)||0,s):u,v="trailing"in t?!!t.trailing:v),e.cancel=function(){d!==b&&clearTimeout(d),f=0,h=p=l=d=b},e.flush=function(){return d===b?c:a(w())},e},t.isObject=y,t.isObjectLike=o,t.isSymbol=i,t.noConflict=function(){return u._===this&&(u._=m),this},t.now=w,t.toNumber=_,t.VERSION="4.17.4","function"==typeof define&&"object"==$(define.amd)&&define.amd?(u._=t,define(function(){return t})):c?((c.exports=t)._=t,e._=t):u._=t}.call(window);var Ut,qt,Qt,Vt,Yt=_.noConflict();MyListing.Helpers.debounce=Yt.debounce,Ut=window,qt=function(){if("undefined"==typeof window)return null;var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)};function s(t,e){var i=Object.prototype.toString.call(t),n="[object Array]"===i||"[object NodeList]"===i||"[object HTMLCollection]"===i||"[object Object]"===i||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,s=0,o=t.length;if(n)for(;s<o;s++)e(t[s]);else e(t)}function x(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}function o(e,i){function w(){var i,n,s=[];this.add=function(t){s.push(t)},this.call=function(t){for(i=0,n=s.length;i<n;i++)s[i].call(this,t)},this.remove=function(t){var e=[];for(i=0,n=s.length;i<n;i++)s[i]!==t&&e.push(s[i]);s=e},this.length=function(){return s.length}}function n(e,t){if(e)if(e.resizedAttached)e.resizedAttached.add(t);else{e.resizedAttached=new w,e.resizedAttached.add(t),e.resizeSensor=document.createElement("div"),e.resizeSensor.dir="ltr",e.resizeSensor.className="resize-sensor";var i="position: absolute; left: -10px; top: -10px; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden; max-width: 100%",n="position: absolute; left: 0; top: 0; transition: 0s;";e.resizeSensor.style.cssText=i,e.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+i+'"><div style="'+n+'"></div></div><div class="resize-sensor-shrink" style="'+i+'"><div style="'+n+' width: 200%; height: 200%"></div></div>',e.appendChild(e.resizeSensor);var s=window.getComputedStyle(e),o=s?s.getPropertyValue("position"):null;"absolute"!==o&&"relative"!==o&&"fixed"!==o&&(e.style.position="relative");var r,a,h=e.resizeSensor.childNodes[0],l=h.childNodes[0],u=e.resizeSensor.childNodes[1],c=x(e),d=c.width,p=c.height,f=!0,m=0,g=function t(){if(f){if(0===e.offsetWidth&&0===e.offsetHeight)return void(m=m||b(function(){m=0,t()}));f=!1}l.style.width="100000px",l.style.height="100000px",h.scrollLeft=1e5,h.scrollTop=1e5,u.scrollLeft=1e5,u.scrollTop=1e5};e.resizeSensor.resetSensor=g;var v=function(){a=0,r&&(d=c.width,p=c.height,e.resizedAttached&&e.resizedAttached.call(c))},y=function(){c=x(e),(r=c.width!==d||c.height!==p)&&!a&&(a=b(v)),g()},_=function(t,e,i){t.attachEvent?t.attachEvent("on"+e,i):t.addEventListener(e,i)};_(h,"scroll",y),_(u,"scroll",y),b(g)}}s(e,function(t){n(t,i)}),this.detach=function(t){o.detach(e,t)},this.reset=function(){e.resizeSensor.resetSensor()}}return o.reset=function(t,e){s(t,function(t){t.resizeSensor.resetSensor()})},o.detach=function(t,e){s(t,function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))})},o},"function"==typeof define&&define.amd?define(qt):"object"===("undefined"==typeof exports?"undefined":$(exports))?module.exports=qt():Ut.ResizeSensor=qt(),Qt=window,Vt=function(g){function e(){var o,c={},r=[];function a(t){t=t||document.documentElement;var e=window.getComputedStyle(t,null).fontSize;return parseFloat(e)||16}function d(t,e){var i=e.split(/\d/),n=i[i.length-1];switch(e=parseFloat(e),n){case"px":return e;case"em":return e*a(t);case"rem":return e*a();case"vw":return e*document.documentElement.clientWidth/100;case"vh":return e*document.documentElement.clientHeight/100;case"vmin":case"vmax":var s=document.documentElement.clientWidth/100,o=document.documentElement.clientHeight/100;return e*(0,Math["vmin"===n?"min":"max"])(s,o);default:return e}}function i(t,e){var i,n,s,o,r,a,h,l;this.element=t;var u=["min-width","min-height","max-width","max-height"];this.call=function(){for(i in s=function(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}(this.element),a={},c[e])c[e].hasOwnProperty(i)&&(n=c[e][i],o=d(this.element,n.value),r="width"===n.property?s.width:s.height,l=n.mode+"-"+n.property,h="","min"===n.mode&&o<=r&&(h+=n.value),"max"===n.mode&&r<=o&&(h+=n.value),a[l]||(a[l]=""),h&&-1===(" "+a[l]+" ").indexOf(" "+h+" ")&&(a[l]+=" "+h));for(var t in u)u.hasOwnProperty(t)&&(a[u[t]]?this.element.setAttribute(u[t],a[u[t]].substr(1)):this.element.removeAttribute(u[t]))}}function h(t,e){t.elementQueriesSetupInformation||(t.elementQueriesSetupInformation=new i(t,e)),t.elementQueriesSensor||(t.elementQueriesSensor=new g(t,function(){t.elementQueriesSetupInformation.call()})),t.elementQueriesSetupInformation.call()}function l(t,e,i,n){if(void 0===c[t]){c[t]=[];var s=r.length;o.innerHTML+="\n"+t+" {animation: 0.1s element-queries;}",o.innerHTML+="\n"+t+" > .resize-sensor {min-width: "+s+"px;}",r.push(t)}c[t].push({mode:e,property:i,value:n})}function u(t){var e;if(document.querySelectorAll&&(e=t?t.querySelectorAll.bind(t):document.querySelectorAll.bind(document)),e||"undefined"==typeof $$||(e=$$),e||"undefined"==typeof jQuery||(e=jQuery),!e)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return e}function n(n){var s=[],o=[],r=[],a=0,h=-1,l=[];for(var t in n.children)if(n.children.hasOwnProperty(t)&&n.children[t].tagName&&"img"===n.children[t].tagName.toLowerCase()){s.push(n.children[t]);var e=n.children[t].getAttribute("min-width")||n.children[t].getAttribute("data-min-width"),i=n.children[t].getAttribute("data-src")||n.children[t].getAttribute("url");r.push(i);var u={minWidth:e};o.push(u),e?n.children[t].style.display="none":(a=s.length-1,n.children[t].style.display="block")}function c(){var t,e=!1;for(t in s)s.hasOwnProperty(t)&&o[t].minWidth&&n.offsetWidth>o[t].minWidth&&(e=t);if(h!==(e=e||a))if(l[e])s[h].style.display="none",s[e].style.display="block",h=e;else{var i=new Image;i.onload=function(){s[e].src=r[e],s[h].style.display="none",s[e].style.display="block",l[e]=!0,h=e},i.src=r[e]}else s[e].src=r[e]}h=a,n.resizeSensorInstance=new g(n,c),c()}var p=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,f=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function m(t){var e,i,n,s;for(t=t.replace(/'/g,'"');null!==(e=p.exec(t));)for(i=e[1]+e[3],n=e[2];null!==(s=f.exec(n));)l(i,s[1],s[2],s[3])}var s=!1;this.init=function(){var t="animationstart";void 0!==document.documentElement.style.webkitAnimationName?t="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?t="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(t="oanimationstart"),document.body.addEventListener(t,function(t){var e=t.target,i=e&&window.getComputedStyle(e,null),n=i&&i.getPropertyValue("animation-name");if(n&&-1!==n.indexOf("element-queries")){e.elementQueriesSensor=new g(e,function(){e.elementQueriesSetupInformation&&e.elementQueriesSetupInformation.call()});var s=window.getComputedStyle(e.resizeSensor,null).getPropertyValue("min-width");s=parseInt(s.replace("px","")),h(t.target,r[s])}}),s||((o=document.createElement("style")).type="text/css",o.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",o.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(o),s=!0);var e=document.getElementById("mylisting-element-queries");if(e&&e.sheet){var i=e.sheet;!function t(e){var i="";if(e)if("string"==typeof e)-1===(e=e.toLowerCase()).indexOf("min-width")&&-1===e.indexOf("max-width")||m(e);else for(var n=0,s=e.length;n<s;n++)1===e[n].type?-1!==(i=e[n].selectorText||e[n].cssText).indexOf("min-height")||-1!==i.indexOf("max-height")?m(i):-1===i.indexOf("min-width")&&-1===i.indexOf("max-width")||m(i):4===e[n].type?t(e[n].cssRules||e[n].rules):3===e[n].type&&e[n].styleSheet.hasOwnProperty("cssRules")&&t(e[n].styleSheet.cssRules)}(i.cssRules||i.rules||i.cssText)}!function(){for(var t=u()("[data-responsive-image],[responsive-image]"),e=0,i=t.length;e<i;e++)n(t[e])}()},this.findElementQueriesElements=function(t){!function(t){var e=u(t);for(var i in c)if(c.hasOwnProperty(i))for(var n=e(i,t),s=0,o=n.length;s<o;s++)h(n[s],i)}(t)},this.update=function(){this.init()}}e.update=function(){e.instance.update()},e.detach=function(t){t.elementQueriesSetupInformation?(t.elementQueriesSensor.detach(),delete t.elementQueriesSetupInformation,delete t.elementQueriesSensor):t.resizeSensorInstance&&(t.resizeSensorInstance.detach(),delete t.resizeSensorInstance)},e.init=function(){e.instance||(e.instance=new e),e.instance.init()};return e.findElementQueriesElements=function(t){e.instance.findElementQueriesElements(t)},e.listen=function(){!function(t){if(document.addEventListener)document.addEventListener("DOMContentLoaded",t,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var e=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(t(),clearInterval(e))},10);else window.onload=t}(e.init)},e},"function"==typeof define&&define.amd?define(["./ResizeSensor.js"],Vt):"object"===("undefined"==typeof exports?"undefined":$(exports))?module.exports=Vt(require("./ResizeSensor.js")):(Qt.ElementQueries=Vt(Qt.ResizeSensor),Qt.ElementQueries.listen())});
!function(e){"function"==typeof define&&define.amd?define("frontend",e):e()}(function(){"use strict";function yi(e){return(yi="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)}var e,t,i,n,a,s;function o(){a=Date.now()}!function(e,i){if("function"==typeof define&&define.amd)define(["moment","jquery"],function(e,t){return t.fn||(t.fn={}),i(e,t)});else if("object"===("undefined"==typeof module?"undefined":yi(module))&&module.exports){var t="undefined"!=typeof window?window.jQuery:void 0;t||(t=require("jquery")).fn||(t.fn={});var n="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=i(n,t)}else e.daterangepicker=i(e.moment,e.jQuery)}(window,function(O,F){function n(e,t,i){if(this.parentEl="body",this.element=F(e),this.startDate=O().startOf("day"),this.endDate=O().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=O().subtract(100,"year").locale("en").format("YYYY"),this.maxYear=O().add(100,"year").locale("en").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:O.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:O.weekdaysMin(),monthNames:O.monthsShort(),firstDay:O.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"===yi(t)&&null!==t||(t={}),"string"==typeof(t=F.extend(this.element.data(),t)).template||t.template instanceof F||(t.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=t.parentEl&&F(t.parentEl).length?F(t.parentEl):F(this.parentEl),this.container=F(t.template).appendTo(this.parentEl),"object"===yi(t.locale)&&("string"==typeof t.locale.direction&&(this.locale.direction=t.locale.direction),"string"==typeof t.locale.format&&(this.locale.format=t.locale.format),"string"==typeof t.locale.separator&&(this.locale.separator=t.locale.separator),"object"===yi(t.locale.daysOfWeek)&&(this.locale.daysOfWeek=t.locale.daysOfWeek.slice()),"object"===yi(t.locale.monthNames)&&(this.locale.monthNames=t.locale.monthNames.slice()),"number"==typeof t.locale.firstDay&&(this.locale.firstDay=t.locale.firstDay),"string"==typeof t.locale.applyLabel&&(this.locale.applyLabel=t.locale.applyLabel),"string"==typeof t.locale.cancelLabel&&(this.locale.cancelLabel=t.locale.cancelLabel),"string"==typeof t.locale.weekLabel&&(this.locale.weekLabel=t.locale.weekLabel),"string"==typeof t.locale.customRangeLabel)){(u=document.createElement("textarea")).innerHTML=t.locale.customRangeLabel;var n=u.value;this.locale.customRangeLabel=n}if(this.container.addClass(this.locale.direction),"string"==typeof t.startDate&&(this.startDate=O(t.startDate,this.locale.format)),"string"==typeof t.endDate&&(this.endDate=O(t.endDate,this.locale.format)),"string"==typeof t.minDate&&(this.minDate=O(t.minDate,this.locale.format)),"string"==typeof t.maxDate&&(this.maxDate=O(t.maxDate,this.locale.format)),"object"===yi(t.startDate)&&(this.startDate=O(t.startDate)),"object"===yi(t.endDate)&&(this.endDate=O(t.endDate)),"object"===yi(t.minDate)&&(this.minDate=O(t.minDate)),"object"===yi(t.maxDate)&&(this.maxDate=O(t.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof t.applyButtonClasses&&(this.applyButtonClasses=t.applyButtonClasses),"string"==typeof t.applyClass&&(this.applyButtonClasses=t.applyClass),"string"==typeof t.cancelButtonClasses&&(this.cancelButtonClasses=t.cancelButtonClasses),"string"==typeof t.cancelClass&&(this.cancelButtonClasses=t.cancelClass),"object"===yi(t.maxSpan)&&(this.maxSpan=t.maxSpan),"object"===yi(t.dateLimit)&&(this.maxSpan=t.dateLimit),"string"==typeof t.opens&&(this.opens=t.opens),"string"==typeof t.drops&&(this.drops=t.drops),"boolean"==typeof t.showWeekNumbers&&(this.showWeekNumbers=t.showWeekNumbers),"boolean"==typeof t.showISOWeekNumbers&&(this.showISOWeekNumbers=t.showISOWeekNumbers),"string"==typeof t.buttonClasses&&(this.buttonClasses=t.buttonClasses),"object"===yi(t.buttonClasses)&&(this.buttonClasses=t.buttonClasses.join(" ")),"boolean"==typeof t.showDropdowns&&(this.showDropdowns=t.showDropdowns),"number"==typeof t.minYear&&(this.minYear=t.minYear),"number"==typeof t.maxYear&&(this.maxYear=t.maxYear),"boolean"==typeof t.showCustomRangeLabel&&(this.showCustomRangeLabel=t.showCustomRangeLabel),"boolean"==typeof t.singleDatePicker&&(this.singleDatePicker=t.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof t.timePicker&&(this.timePicker=t.timePicker),"boolean"==typeof t.timePickerSeconds&&(this.timePickerSeconds=t.timePickerSeconds),"number"==typeof t.timePickerIncrement&&(this.timePickerIncrement=t.timePickerIncrement),"boolean"==typeof t.timePicker24Hour&&(this.timePicker24Hour=t.timePicker24Hour),"boolean"==typeof t.autoApply&&(this.autoApply=t.autoApply),"boolean"==typeof t.autoUpdateInput&&(this.autoUpdateInput=t.autoUpdateInput),"boolean"==typeof t.linkedCalendars&&(this.linkedCalendars=t.linkedCalendars),"function"==typeof t.isInvalidDate&&(this.isInvalidDate=t.isInvalidDate),"function"==typeof t.isCustomDate&&(this.isCustomDate=t.isCustomDate),"boolean"==typeof t.alwaysShowCalendars&&(this.alwaysShowCalendars=t.alwaysShowCalendars),0!=this.locale.firstDay)for(var a=this.locale.firstDay;0<a;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),a--;var s,o,r;if(void 0===t.startDate&&void 0===t.endDate&&F(this.element).is(":text")){var l=F(this.element).val(),c=l.split(this.locale.separator);s=o=null,2==c.length?(s=O(c[0],this.locale.format),o=O(c[1],this.locale.format)):this.singleDatePicker&&""!==l&&(s=O(l,this.locale.format),o=O(l,this.locale.format)),null!==s&&null!==o&&(this.setStartDate(s),this.setEndDate(o))}if("object"===yi(t.ranges)){for(r in t.ranges){s="string"==typeof t.ranges[r][0]?O(t.ranges[r][0],this.locale.format):O(t.ranges[r][0]),o="string"==typeof t.ranges[r][1]?O(t.ranges[r][1],this.locale.format):O(t.ranges[r][1]),this.minDate&&s.isBefore(this.minDate)&&(s=this.minDate.clone());var d=this.maxDate;if(this.maxSpan&&d&&s.clone().add(this.maxSpan).isAfter(d)&&(d=s.clone().add(this.maxSpan)),d&&o.isAfter(d)&&(o=d.clone()),!(this.minDate&&o.isBefore(this.minDate,this.timepicker?"minute":"day")||d&&s.isAfter(d,this.timepicker?"minute":"day"))){var u;(u=document.createElement("textarea")).innerHTML=r;n=u.value;this.ranges[n]=[s,o]}}var h="<ul>";for(r in this.ranges)h+='<li data-range-key="'+r+'">'+r+"</li>";this.showCustomRangeLabel&&(h+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),h+="</ul>",this.container.find(".ranges").prepend(h)}"function"==typeof i&&(this.callback=i),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"===yi(t.ranges)&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),this.timePicker||this.container.addClass("auto-apply")),(void 0===t.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",F.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",F.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",F.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",F.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",F.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",F.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",F.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",F.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",F.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",F.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":F.proxy(this.show,this),"focus.daterangepicker":F.proxy(this.show,this),"keyup.daterangepicker":F.proxy(this.elementChanged,this),"keydown.daterangepicker":F.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",F.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",F.proxy(this.toggle,this))),this.updateElement()}return n.prototype={constructor:n,setStartDate:function(e){"string"==typeof e&&(this.startDate=O(e,this.locale.format)),"object"===yi(e)&&(this.startDate=O(e)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(e){"string"==typeof e&&(this.endDate=O(e,this.locale.format)),"object"===yi(e)&&(this.endDate=O(e)),this.timePicker||(this.endDate=this.endDate.add(1,"d").startOf("day").subtract(1,"second")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").removeAttr("disabled").removeClass("disabled"):this.container.find(".right .calendar-time select").attr("disabled","disabled").addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var e,t,i,n;if(this.endDate){if(e=parseInt(this.container.find(".left .hourselect").val(),10),t=parseInt(this.container.find(".left .minuteselect").val(),10),i=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".left .ampmselect").val())&&e<12&&(e+=12),"AM"===n&&12===e&&(e=0)}else if(e=parseInt(this.container.find(".right .hourselect").val(),10),t=parseInt(this.container.find(".right .minuteselect").val(),10),i=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".right .ampmselect").val())&&e<12&&(e+=12),"AM"===n&&12===e&&(e=0);this.leftCalendar.month.hour(e).minute(t).second(i),this.rightCalendar.month.hour(e).minute(t).second(i)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(e){var t,i=(t="left"==e?this.leftCalendar:this.rightCalendar).month.month(),n=t.month.year(),a=t.month.hour(),s=t.month.minute(),o=t.month.second(),r=O([n,i]).daysInMonth(),l=O([n,i,1]),c=O([n,i,r]),d=O(l).subtract(1,"month").month(),u=O(l).subtract(1,"month").year(),h=O([u,d]).daysInMonth(),p=l.day();(t=[]).firstDay=l,t.lastDay=c;for(var f=0;f<6;f++)t[f]=[];var m=h-p+this.locale.firstDay+1;h<m&&(m-=7),p==this.locale.firstDay&&(m=h-6);for(var g=O([u,d,m,12,s,o]),y=(f=0,0),v=0;f<42;f++,y++,g=O(g).add(24,"hour"))0<f&&y%7==0&&(y=0,v++),t[v][y]=g.clone().hour(a).minute(s).second(o),g.hour(12),this.minDate&&t[v][y].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&t[v][y].isBefore(this.minDate)&&"left"==e&&(t[v][y]=this.minDate.clone()),this.maxDate&&t[v][y].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&t[v][y].isAfter(this.maxDate)&&"right"==e&&(t[v][y]=this.maxDate.clone());"left"==e?this.leftCalendar.calendar=t:this.rightCalendar.calendar=t;var w="left"==e?this.minDate:this.startDate,b=this.maxDate,D=("left"==e?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');D+="<thead>",D+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(D+="<th></th>"),w&&!w.isBefore(t.firstDay)||this.linkedCalendars&&"left"!=e?D+="<th></th>":D+='<th class="prev available"><span></span></th>';var k=this.locale.monthNames[t[1][1].month()]+t[1][1].format(" YYYY");if(this.showDropdowns){for(var x=t[1][1].month(),C=t[1][1].year(),S=b&&b.year()||this.maxYear,M=w&&w.year()||this.minYear,T=C==M,_=C==S,I='<select class="monthselect">',L=0;L<12;L++)(!T||L>=w.month())&&(!_||L<=b.month())?I+="<option value='"+L+"'"+(L===x?" selected='selected'":"")+">"+this.locale.monthNames[L]+"</option>":I+="<option value='"+L+"'"+(L===x?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[L]+"</option>";I+="</select>";for(var P='<select class="yearselect">',E=M;E<=S;E++)P+='<option value="'+E+'"'+(E===C?' selected="selected"':"")+">"+E+"</option>";k=I+(P+="</select>")}if(D+='<th colspan="5" class="month">'+k+"</th>",b&&!b.isAfter(t.lastDay)||this.linkedCalendars&&"right"!=e&&!this.singleDatePicker?D+="<th></th>":D+='<th class="next available"><span></span></th>',D+="</tr>",D+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(D+='<th class="week">'+this.locale.weekLabel+"</th>"),F.each(this.locale.daysOfWeek,function(e,t){D+="<th>"+t+"</th>"}),D+="</tr>",D+="</thead>",D+="<tbody>",null==this.endDate&&this.maxSpan){var A=this.startDate.clone().add(this.maxSpan).endOf("day");b&&!A.isBefore(b)||(b=A)}for(v=0;v<6;v++){D+="<tr>",this.showWeekNumbers?D+='<td class="week">'+t[v][0].week()+"</td>":this.showISOWeekNumbers&&(D+='<td class="week">'+t[v][0].isoWeek()+"</td>");for(y=0;y<7;y++){var Y=[];t[v][y].isSame(new Date,"day")&&Y.push("today"),5<t[v][y].isoWeekday()&&Y.push("weekend"),t[v][y].month()!=t[1][1].month()&&Y.push("off"),this.minDate&&t[v][y].isBefore(this.minDate,"day")&&Y.push("off","disabled"),b&&t[v][y].isAfter(b,"day")&&Y.push("off","disabled"),this.isInvalidDate(t[v][y])&&Y.push("off","disabled"),t[v][y].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Y.push("active","start-date"),null!=this.endDate&&t[v][y].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Y.push("active","end-date"),null!=this.endDate&&t[v][y]>this.startDate&&t[v][y]<this.endDate&&Y.push("in-range");var j=this.isCustomDate(t[v][y]);!1!==j&&("string"==typeof j?Y.push(j):Array.prototype.push.apply(Y,j));var $="",K=!1;for(f=0;f<Y.length;f++)$+=Y[f]+" ","disabled"==Y[f]&&(K=!0);K||($+="available"),D+='<td class="'+$.replace(/^\s+|\s+$/g,"")+'" data-title="r'+v+"c"+y+'">'+t[v][y].date()+"</td>"}D+="</tr>"}D+="</tbody>",D+="</table>",this.container.find(".drp-calendar."+e+" .calendar-table").html(D)},renderTimePicker:function(e){if("right"!=e||this.endDate){var t,i,n,a=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isAfter(this.maxDate)||(a=this.startDate.clone().add(this.maxSpan)),"left"==e)i=this.startDate.clone(),n=this.minDate;else if("right"==e){i=this.endDate.clone(),n=this.startDate;var s=this.container.find(".drp-calendar.right .calendar-time");if(""!=s.html()&&(i.hour(i.hour()||s.find(".hourselect option:selected").val()),i.minute(i.minute()||s.find(".minuteselect option:selected").val()),i.second(i.second()||s.find(".secondselect option:selected").val()),!this.timePicker24Hour)){var o=s.find(".ampmselect option:selected").val();"PM"===o&&i.hour()<12&&i.hour(i.hour()+12),"AM"===o&&12===i.hour()&&i.hour(0)}i.isBefore(this.startDate)&&(i=this.startDate.clone()),a&&i.isAfter(a)&&(i=a.clone())}t='<select class="hourselect">';for(var r=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,c=r;c<=l;c++){var d=c;this.timePicker24Hour||(d=12<=i.hour()?12==c?12:c+12:12==c?0:c);var u=i.clone().hour(d),h=!1;n&&u.minute(59).isBefore(n)&&(h=!0),a&&u.minute(0).isAfter(a)&&(h=!0),d!=i.hour()||h?t+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+c+"</option>":'<option value="'+c+'">'+c+"</option>":t+='<option value="'+c+'" selected="selected">'+c+"</option>"}t+="</select> ",t+=': <select class="minuteselect">';for(c=0;c<60;c+=this.timePickerIncrement){var p=c<10?"0"+c:c;u=i.clone().minute(c),h=!1;n&&u.second(59).isBefore(n)&&(h=!0),a&&u.second(0).isAfter(a)&&(h=!0),i.minute()!=c||h?t+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+p+"</option>":'<option value="'+c+'">'+p+"</option>":t+='<option value="'+c+'" selected="selected">'+p+"</option>"}if(t+="</select> ",this.timePickerSeconds){t+=': <select class="secondselect">';for(c=0;c<60;c++){p=c<10?"0"+c:c,u=i.clone().second(c),h=!1;n&&u.isBefore(n)&&(h=!0),a&&u.isAfter(a)&&(h=!0),i.second()!=c||h?t+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+p+"</option>":'<option value="'+c+'">'+p+"</option>":t+='<option value="'+c+'" selected="selected">'+p+"</option>"}t+="</select> "}if(!this.timePicker24Hour){t+='<select class="ampmselect">';var f="",m="";n&&i.clone().hour(12).minute(0).second(0).isBefore(n)&&(f=' disabled="disabled" class="disabled"'),a&&i.clone().hour(0).minute(0).second(0).isAfter(a)&&(m=' disabled="disabled" class="disabled"'),12<=i.hour()?t+='<option value="AM"'+f+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>":t+='<option value="AM" selected="selected"'+f+'>AM</option><option value="PM"'+m+">PM</option>",t+="</select>"}this.container.find(".drp-calendar."+e+" .calendar-time").html(t)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").removeAttr("disabled"):this.container.find("button.applyBtn").attr("disabled","disabled")},move:function(){var e,t={top:0,left:0},i=F(window).width();this.parentEl.is("body")||(t={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},i=this.parentEl[0].clientWidth+this.parentEl.offset().left),e="up"==this.drops?this.element.offset().top-this.container.outerHeight()-t.top:this.element.offset().top+this.element.outerHeight()-t.top,this.container["up"==this.drops?"addClass":"removeClass"]("drop-up"),"left"==this.opens?(this.container.css({top:e,right:i-this.element.offset().left-this.element.outerWidth(),left:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):"center"==this.opens?(this.container.css({top:e,left:this.element.offset().left-t.left+this.element.outerWidth()/2-this.container.outerWidth()/2,right:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):(this.container.css({top:e,left:this.element.offset().left-t.left,right:"auto"}),this.container.offset().left+this.container.outerWidth()>F(window).width()&&this.container.css({left:"auto",right:0}))},show:function(e){this.isShowing||(this._outsideClickProxy=F.proxy(function(e){this.outsideClick(e)},this),F(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),F(window).on("resize.daterangepicker",F.proxy(function(e){this.move(e)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(e){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),F(document).off(".daterangepicker"),F(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(e){this.isShowing?this.hide():this.show()},outsideClick:function(e){var t=F(e.target);"focusin"==e.type||t.closest(this.element).length||t.closest(this.container).length||t.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(e){var t=e.target.getAttribute("data-range-key");if((this.chosenLabel=t)==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[t];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(e){F(e.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(e){F(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(e){if(F(e.target).hasClass("available")){var t=F(e.target).attr("data-title"),i=t.substr(1,1),n=t.substr(3,1),o=F(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][n]:this.rightCalendar.calendar[i][n],r=this.leftCalendar,l=this.rightCalendar,c=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(e,t){if(!F(t).hasClass("week")){var i=F(t).attr("data-title"),n=i.substr(1,1),a=i.substr(3,1),s=F(t).parents(".drp-calendar").hasClass("left")?r.calendar[n][a]:l.calendar[n][a];s.isAfter(c)&&s.isBefore(o)||s.isSame(o,"day")?F(t).addClass("in-range"):F(t).removeClass("in-range")}})}},clickDate:function(e){if(F(e.target).hasClass("available")){var t=F(e.target).attr("data-title"),i=t.substr(1,1),n=t.substr(3,1),a=F(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][n]:this.rightCalendar.calendar[i][n];if(this.endDate||a.isBefore(this.startDate,"day")){if(this.timePicker){var s=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".left .ampmselect").val())&&s<12&&(s+=12),"AM"===l&&12===s&&(s=0);var o=parseInt(this.container.find(".left .minuteselect").val(),10),r=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;a=a.clone().hour(s).minute(o).second(r)}this.endDate=null,this.setStartDate(a.clone())}else if(!this.endDate&&a.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var l;s=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".right .ampmselect").val())&&s<12&&(s+=12),"AM"===l&&12===s&&(s=0);o=parseInt(this.container.find(".right .minuteselect").val(),10),r=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;a=a.clone().hour(s).minute(o).second(r)}this.setEndDate(a.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),this.timePicker||this.clickApply()),this.updateView(),e.stopPropagation()}},calculateChosenLabel:function(){var e=!0,t=0;for(var i in this.ranges){if(this.timePicker){var n=this.timePickerSeconds?"YYYY-MM-DD hh:mm:ss":"YYYY-MM-DD hh:mm";if(this.startDate.format(n)==this.ranges[i][0].format(n)&&this.endDate.format(n)==this.ranges[i][1].format(n)){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[i][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[i][1].format("YYYY-MM-DD")){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}t++}e&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(e){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(e){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(e){var t=F(e.target).closest(".drp-calendar").hasClass("left"),i=t?"left":"right",n=this.container.find(".drp-calendar."+i),a=parseInt(n.find(".monthselect").val(),10),s=n.find(".yearselect").val();t||(s<this.startDate.year()||s==this.startDate.year()&&a<this.startDate.month())&&(a=this.startDate.month(),s=this.startDate.year()),this.minDate&&(s<this.minDate.year()||s==this.minDate.year()&&a<this.minDate.month())&&(a=this.minDate.month(),s=this.minDate.year()),this.maxDate&&(s>this.maxDate.year()||s==this.maxDate.year()&&a>this.maxDate.month())&&(a=this.maxDate.month(),s=this.maxDate.year()),t?(this.leftCalendar.month.month(a).year(s),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(a).year(s),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(e){var t=F(e.target).closest(".drp-calendar"),i=t.hasClass("left"),n=parseInt(t.find(".hourselect").val(),10),a=parseInt(t.find(".minuteselect").val(),10),s=this.timePickerSeconds?parseInt(t.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var o=t.find(".ampmselect").val();"PM"===o&&n<12&&(n+=12),"AM"===o&&12===n&&(n=0)}if(i){var r=this.startDate.clone();r.hour(n),r.minute(a),r.second(s),this.setStartDate(r),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==r.format("YYYY-MM-DD")&&this.endDate.isBefore(r)&&this.setEndDate(r.clone())}else if(this.endDate){var l=this.endDate.clone();l.hour(n),l.minute(a),l.second(s),this.setEndDate(l)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var e=this.element.val().split(this.locale.separator),t=null,i=null;2===e.length&&(t=O(e[0],this.locale.format),i=O(e[1],this.locale.format)),!this.singleDatePicker&&null!==t&&null!==i||(i=t=O(this.element.val(),this.locale.format)),t.isValid()&&i.isValid()&&(this.setStartDate(t),this.setEndDate(i),this.updateView())}},keydown:function(e){9!==e.keyCode&&13!==e.keyCode||this.hide(),27===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var e=this.startDate.format(this.locale.format);this.singleDatePicker||(e+=this.locale.separator+this.endDate.format(this.locale.format)),e!==this.element.val()&&this.element.val(e).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},F.fn.daterangepicker=function(e,t){var i=F.extend(!0,{},F.fn.daterangepicker.defaultOptions,e);return this.each(function(){var e=F(this);e.data("daterangepicker")&&e.data("daterangepicker").remove(),e.data("daterangepicker",new n(e,i,t))}),this},n}),MyListing.Datepicker=function(e,t){this.el=jQuery(e),this.el.length&&this.el.parent().hasClass("datepicker-wrapper")&&(jQuery('<input type="text" class="display-value" readonly><i class="mi clear_all c-hide reset-value"></i>').insertAfter(this.el),this.el.attr("autocomplete","off").attr("readonly",!0).addClass("picker"),this.parent=this.el.parent(),this.value=moment(this.el.val()),this.mask=this.parent.find(".display-value"),this.reset=this.parent.find(".reset-value"),this.args=jQuery.extend({timepicker:!1},t),this.format=!0===this.args.timepicker?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD",this.displayFormat=!0===this.args.timepicker?CASE27.l10n.datepicker.dateTimeFormat:CASE27.l10n.datepicker.format,this.mask.attr("placeholder",this.el.attr("placeholder")),this.picker=this.el.daterangepicker({autoUpdateInput:!1,showDropdowns:!0,singleDatePicker:!0,timePicker24Hour:CASE27.l10n.datepicker.timePicker24Hour,locale:jQuery.extend({},CASE27.l10n.datepicker,{format:this.format}),timePicker:this.args.timepicker}),this.drp=this.picker.data("daterangepicker"),this.picker.on("apply.daterangepicker",this.apply.bind(this)),this.el.on("change",this.change.bind(this)),this.updateInputValues(),this.reset.click(function(e){this.value=moment(""),this.el.trigger("change")}.bind(this)))},MyListing.Datepicker.prototype.apply=function(e,t){this.value=t.startDate,this.el.trigger("change")},MyListing.Datepicker.prototype.change=function(){this.updateInputValues(),this.fireChangeEvent({value:this.el.val(),mask:this.mask.val()})},MyListing.Datepicker.prototype.updateInputValues=function(){var e=this.value.isValid()?this.value.clone().locale("en").format(this.format):"",t=this.value.isValid()?this.value.format(this.displayFormat):"";this.el.val(e),this.mask.val(t),""===e?this.reset.removeClass("c-show").addClass("c-hide"):this.reset.addClass("c-show").removeClass("c-hide")},MyListing.Datepicker.prototype.fireChangeEvent=function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("datepicker:change",!1,!0,e),this.el.get(0).dispatchEvent(t)},MyListing.Datepicker.prototype.setMinDate=function(e){this.drp.minDate=e,this.drp.minDate.isAfter(this.drp.startDate)&&(this.value=this.drp.startDate=this.drp.endDate=this.drp.minDate,this.el.trigger("change"))},MyListing.Datepicker.prototype.setValue=function(e){this.value=e,this.el.trigger("change")},MyListing.Datepicker.prototype.do=function(e){e(this)},MyListing.Datepicker.prototype.getValue=function(){return this.value},jQuery(function(n){n(".mylisting-datepicker").each(function(e,t){var i=n(t).data("options");"object"!==yi(i)&&(i={}),new MyListing.Datepicker(t,i)})}),e=window,t=function(){return function(p,n,e,t){var f={features:null,bind:function(e,t,i,n){var a=(n?"remove":"add")+"EventListener";t=t.split(" ");for(var s=0;s<t.length;s++)t[s]&&e[a](t[s],i,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var i=document.createElement(t||"div");return e&&(i.className=e),i},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,i){f.bind(e,t,i,!0)},removeClass:function(e,t){var i=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(i," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){f.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var i=e.firstChild;i;){if(f.hasClass(i,t))return i;i=i.nextSibling}},arraySearch:function(e,t,i){for(var n=e.length;n--;)if(e[n][i]===t)return n;return-1},extend:function(e,t,i){for(var n in t)if(t.hasOwnProperty(n)){if(i&&e.hasOwnProperty(n))continue;e[n]=t[n]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(f.features)return f.features;var e=f.createEl().style,t="",i={};if(i.oldIE=document.all&&!document.addEventListener,i.touch="ontouchstart"in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!i.pointerEvent){var n=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);a&&0<a.length&&1<=(a=parseInt(a[1],10))&&a<8&&(i.isOldIOSPhone=!0)}var s=n.match(/Android\s([0-9\.]*)/),o=s?s[1]:0;1<=(o=parseFloat(o))&&(o<4.4&&(i.isOldAndroid=!0),i.androidVersion=o),i.isMobileOpera=/opera mini|opera mobi/i.test(n)}for(var r,l,c=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],u=0;u<4;u++){t=d[u];for(var h=0;h<3;h++)r=c[h],l=t+(t?r.charAt(0).toUpperCase()+r.slice(1):r),!i[r]&&l in e&&(i[r]=l);t&&!i.raf&&(t=t.toLowerCase(),i.raf=window[t+"RequestAnimationFrame"],i.raf&&(i.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!i.raf){var p=0;i.raf=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-p)),n=window.setTimeout(function(){e(t+i)},i);return p=t+i,n},i.caf=function(e){clearTimeout(e)}}return i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,f.features=i}};f.detectFeatures(),f.features.oldIE&&(f.bind=function(e,t,i,n){t=t.split(" ");for(var a,s=(n?"detach":"attach")+"Event",o=function(){i.handleEvent.call(i)},r=0;r<t.length;r++)if(a=t[r])if("object"===yi(i)&&i.handleEvent){if(n){if(!i["oldIE"+a])return!1}else i["oldIE"+a]=o;e[s]("on"+a,i["oldIE"+a])}else e[s]("on"+a,i)});var m=this,g={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};f.extend(g,t);function i(e,t){f.extend(m,t.publicMethods),Ge.push(e)}function l(e){var t=Nt();return t-1<e?e-t:e<0?t+e:e}function s(e,t){return et[e]||(et[e]=[]),et[e].push(t)}function y(e){var t=et[e];if(t){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;n<t.length;n++)t[n].apply(m,i)}}function d(){return(new Date).getTime()}function v(e){Fe=e,m.bg.style.opacity=e*g.bgOpacity}function a(e,t,i,n,a){(!Je||a&&a!==m.currItem)&&(n/=a?a.fitRatio:m.currItem.fitRatio),e[re]=G+t+"px, "+i+"px"+X+" scale("+n+")"}function u(e,t){if(!g.loop&&t){var i=N+(qe.x*Ve-e)/qe.x,n=Math.round(e-bt.x);(i<0&&0<n||i>=Nt()-1&&n<0)&&(e=bt.x+n*g.mainScrollEndFriction)}bt.x=e,nt(e,Q)}function c(e,t){var i=Dt[e]-We[e];return Ne[e]+He[e]+i-t/Z*i}function w(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)}function h(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function o(){at&&(f.unbind(document,"mousemove",o),f.addClass(p,"pswp--has_mouse"),g.mouseUsed=!0,y("mouseUsed")),at=setTimeout(function(){at=null},100)}function b(e,t){var i=qt(m.currItem,Ue,e);return t&&(Ae=i),i}function D(e){return(e=e||m.currItem).initialZoomLevel}function k(e){return 0<(e=e||m.currItem).w?g.maxSpreadZoom:1}function x(e,t,i,n){return n===m.currItem.initialZoomLevel?(i[e]=m.currItem.initialPosition[e],!0):(i[e]=c(e,n),i[e]>t.min[e]?(i[e]=t.min[e],!0):i[e]<t.max[e]&&(i[e]=t.max[e],!0))}function r(e){var t="";g.escKey&&27===e.keyCode?t="close":g.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,m[t]()))}function C(e){e&&(Te||Me||je||ke)&&(e.preventDefault(),e.stopPropagation())}function S(){m.setScrollOffset(0,f.getScrollY())}function M(e){st[e]&&(st[e].raf&&ue(st[e].raf),ot--,delete st[e])}function T(e){st[e]&&M(e),st[e]||(ot++,st[e]={})}function _(){for(var e in st)st.hasOwnProperty(e)&&M(e)}function I(t,i,n,a,s,o,r){var l,c=d();T(t),function e(){if(st[t]){if(l=d()-c,a<=l)return M(t),o(n),void(r&&r());o((n-i)*s(l/a)+i),st[t].raf=de(e)}}()}function L(e,t){return gt.x=Math.abs(e.x-t.x),gt.y=Math.abs(e.y-t.y),Math.sqrt(gt.x*gt.x+gt.y*gt.y)}function P(e,t){return Ct.prevent=!function e(t,i){return!(!t||t===document)&&(!(t.getAttribute("class")&&-1<t.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(i(t)?t:e(t.parentNode,i)))}(e.target,g.isClickableElement),y("preventDragEvent",e,t,Ct),Ct.prevent}function E(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t}function A(e,t,i){i.x=.5*(e.x+t.x),i.y=.5*(e.y+t.y)}function Y(){var e=Qe.y-m.currItem.initialPosition.y;return 1-Math.abs(e/(Ue.y/2))}function j(e){for(;0<Tt.length;)Tt.pop();return le?(Be=0,pt.forEach(function(e){0===Be?Tt[0]=e:1===Be&&(Tt[1]=e),Be++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(Tt[0]=E(e.touches[0],St),1<e.touches.length&&(Tt[1]=E(e.touches[1],Mt))):(St.x=e.pageX,St.y=e.pageY,St.id="",Tt[0]=St),Tt}function $(e,t){var i,n,a,s,o=Qe[e]+t[e],r=0<t[e],l=bt.x+t.x,c=bt.x-ft.x;if(i=o>Ae.min[e]||o<Ae.max[e]?g.panEndFriction:1,o=Qe[e]+t[e]*i,(g.allowPanToNext||z===m.currItem.initialZoomLevel)&&(Ye?"h"!==$e||"x"!==e||Me||(r?(o>Ae.min[e]&&(i=g.panEndFriction,Ae.min[e]-o,n=Ae.min[e]-Ne[e]),(n<=0||c<0)&&1<Nt()?(s=l,c<0&&l>ft.x&&(s=ft.x)):Ae.min.x!==Ae.max.x&&(a=o)):(o<Ae.max[e]&&(i=g.panEndFriction,o-Ae.max[e],n=Ne[e]-Ae.max[e]),(n<=0||0<c)&&1<Nt()?(s=l,0<c&&l<ft.x&&(s=ft.x)):Ae.min.x!==Ae.max.x&&(a=o))):s=l,"x"===e))return void 0!==s&&(u(s,!0),Ie=s!==ft.x),Ae.min.x!==Ae.max.x&&(void 0!==a?Qe.x=a:Ie||(Qe.x+=t.x*i)),void 0!==s;je||Ie||z>m.currItem.fitRatio&&(Qe[e]+=t[e]*i)}function K(e){if(!("mousedown"===e.type&&0<e.button))if(Bt)e.preventDefault();else if(!xe||"mousedown"!==e.type){if(P(e,!0)&&e.preventDefault(),y("pointerDown"),le){var t=f.arraySearch(pt,e.pointerId,"id");t<0&&(t=pt.length),pt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var i=j(e),n=i.length;Le=null,_(),Ce&&1!==n||(Ce=Ke=!0,f.bind(window,V,m),De=Re=Oe=ke=Ie=Te=Se=Me=!1,$e=null,y("firstTouchStart",i),w(Ne,Qe),He.x=He.y=0,w(ut,i[0]),w(ht,ut),ft.x=qe.x*Ve,mt=[{x:ut.x,y:ut.y}],we=ve=d(),b(z,!0),xt(),function e(){Ce&&(_e=de(e),_t())}()),!Pe&&1<n&&!je&&!Ie&&(Z=z,Pe=Se=!(Me=!1),He.y=He.x=0,w(Ne,Qe),w(lt,i[0]),w(ct,i[1]),A(lt,ct,kt),Dt.x=Math.abs(kt.x)-Qe.x,Dt.y=Math.abs(kt.y)-Qe.y,Ee=L(lt,ct))}}function O(e){if(e.preventDefault(),le){var t=f.arraySearch(pt,e.pointerId,"id");if(-1<t){var i=pt[t];i.x=e.pageX,i.y=e.pageY}}if(Ce){var n=j(e);if($e||Te||Pe)Le=n;else if(bt.x!==qe.x*Ve)$e="h";else{var a=Math.abs(n[0].x-ut.x)-Math.abs(n[0].y-ut.y);10<=Math.abs(a)&&($e=0<a?"h":"v",Le=n)}}}function F(e){if(ge.isOldAndroid){if(xe&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(xe),xe=setTimeout(function(){xe=0},600))}var t;if(y("pointerUp"),P(e,!1)&&e.preventDefault(),le){var i=f.arraySearch(pt,e.pointerId,"id");if(-1<i)if(t=pt.splice(i,1)[0],navigator.msPointerEnabled){t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var n,a=j(e),s=a.length;if("mouseup"===e.type&&(s=0),2===s)return!(Le=null);1===s&&w(ht,a[0]),0!==s||$e||je||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),y("touchRelease",e,t));var o=-1;if(0===s&&(Ce=!1,f.unbind(window,V,m),xt(),Pe?o=0:-1!==wt&&(o=d()-wt)),wt=1===s?d():-1,n=-1!==o&&o<150?"zoom":"swipe",Pe&&s<2&&(Pe=!1,1===s&&(n="zoomPointerUp"),y("zoomGestureEnded")),Le=null,Te||Me||je||ke)if(_(),(be=be||It()).calculateSwipeSpeed("x"),ke){if(Y()<g.verticalDragRange)m.close();else{var r=Qe.y,l=Fe;I("verticalDrag",0,1,300,f.easing.cubic.out,function(e){Qe.y=(m.currItem.initialPosition.y-r)*e+r,v((1-l)*e+l),tt()}),y("onVerticalDrag",1)}}else{if((Ie||je)&&0===s){if(Pt(n,be))return;n="zoomPointerUp"}je||("swipe"===n?!Ie&&z>m.currItem.fitRatio&&Lt(be):At())}}var R,B,H,N,Q,U,V,W,q,z,Z,G,X,J,ee,te,ie,ne,ae,se,oe,re,le,ce,de,ue,he,pe,fe,me,ge,ye,ve,we,be,De,ke,xe,Ce,Se,Me,Te,_e,Ie,Le,Pe,Ee,Ae,Ye,je,$e,Ke,Oe,Fe,Re,Be,He={x:0,y:0},Ne={x:0,y:0},Qe={x:0,y:0},Ue={},Ve=0,We={},qe={x:0,y:0},ze=0,Ze=!0,Ge=[],Xe={},Je=!1,et={},tt=function(e){Ye&&(e&&(z>m.currItem.fitRatio?Je||(zt(m.currItem,!1,!0),Je=!0):Je&&(zt(m.currItem),Je=!1)),a(Ye,Qe.x,Qe.y,z))},it=function(e){e.container&&a(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},nt=function(e,t){t[re]=G+e+"px, 0px"+X},at=null,st={},ot=0,rt={shout:y,listen:s,viewportSize:Ue,options:g,isMainScrollAnimating:function(){return je},getZoomLevel:function(){return z},getCurrentIndex:function(){return N},isDragging:function(){return Ce},isZooming:function(){return Pe},setScrollOffset:function(e,t){We.x=e,me=We.y=t,y("updateScrollOffset",We)},applyZoomPan:function(e,t,i,n){Qe.x=t,Qe.y=i,z=e,tt(n)},init:function(){if(!R&&!B){var e;m.framework=f,m.template=p,m.bg=f.getChildByClass(p,"pswp__bg"),he=p.className,R=!0,ge=f.detectFeatures(),de=ge.raf,ue=ge.caf,re=ge.transform,fe=ge.oldIE,m.scrollWrap=f.getChildByClass(p,"pswp__scroll-wrap"),m.container=f.getChildByClass(m.scrollWrap,"pswp__container"),Q=m.container.style,m.itemHolders=te=[{el:m.container.children[0],wrap:0,index:-1},{el:m.container.children[1],wrap:0,index:-1},{el:m.container.children[2],wrap:0,index:-1}],te[0].el.style.display=te[2].el.style.display="none",function(){if(re){var e=ge.perspective&&!ce;return G="translate"+(e?"3d(":"("),X=ge.perspective?", 0px)":")"}re="left",f.addClass(p,"pswp--ie"),nt=function(e,t){t.left=e+"px"},it=function(e){var t=1<e.fitRatio?1:e.fitRatio,i=e.container.style,n=t*e.w,a=t*e.h;i.width=n+"px",i.height=a+"px",i.left=e.initialPosition.x+"px",i.top=e.initialPosition.y+"px"},tt=function(){if(Ye){var e=Ye,t=m.currItem,i=1<t.fitRatio?1:t.fitRatio,n=i*t.w,a=i*t.h;e.width=n+"px",e.height=a+"px",e.left=Qe.x+"px",e.top=Qe.y+"px"}}}(),q={resize:m.updateSize,orientationchange:function(){clearTimeout(ye),ye=setTimeout(function(){Ue.x!==m.scrollWrap.clientWidth&&m.updateSize()},500)},scroll:S,keydown:r,click:C};var t=ge.isOldIOSPhone||ge.isOldAndroid||ge.isMobileOpera;for(ge.animationName&&ge.transform&&!t||(g.showAnimationDuration=g.hideAnimationDuration=0),e=0;e<Ge.length;e++)m["init"+Ge[e]]();if(n)(m.ui=new n(m,f)).init();y("firstUpdate"),N=N||g.index||0,(isNaN(N)||N<0||N>=Nt())&&(N=0),m.currItem=Ht(N),(ge.isOldIOSPhone||ge.isOldAndroid)&&(Ze=!1),p.setAttribute("aria-hidden","false"),g.modal&&(Ze?p.style.position="fixed":(p.style.position="absolute",p.style.top=f.getScrollY()+"px")),void 0===me&&(y("initialLayout"),me=pe=f.getScrollY());var i="pswp--open ";for(g.mainClass&&(i+=g.mainClass+" "),g.showHideOpacity&&(i+="pswp--animate_opacity "),i+=ce?"pswp--touch":"pswp--notouch",i+=ge.animationName?" pswp--css_animation":"",i+=ge.svg?" pswp--svg":"",f.addClass(p,i),m.updateSize(),U=-1,ze=null,e=0;e<3;e++)nt((e+U)*qe.x,te[e].el.style);fe||f.bind(m.scrollWrap,W,m),s("initialZoomInEnd",function(){m.setContent(te[0],N-1),m.setContent(te[2],N+1),te[0].el.style.display=te[2].el.style.display="block",g.focus&&p.focus(),f.bind(document,"keydown",m),ge.transform&&f.bind(m.scrollWrap,"click",m),g.mouseUsed||f.bind(document,"mousemove",o),f.bind(window,"resize scroll orientationchange",m),y("bindEvents")}),m.setContent(te[1],N),m.updateCurrItem(),y("afterInit"),Ze||(J=setInterval(function(){ot||Ce||Pe||z!==m.currItem.initialZoomLevel||m.updateSize()},1e3)),f.addClass(p,"pswp--visible")}},close:function(){R&&(B=!(R=!1),y("close"),f.unbind(window,"resize scroll orientationchange",m),f.unbind(window,"scroll",q.scroll),f.unbind(document,"keydown",m),f.unbind(document,"mousemove",o),ge.transform&&f.unbind(m.scrollWrap,"click",m),Ce&&f.unbind(window,V,m),clearTimeout(ye),y("unbindEvents"),Qt(m.currItem,null,!0,m.destroy))},destroy:function(){y("destroy"),Ot&&clearTimeout(Ot),p.setAttribute("aria-hidden","true"),p.className=he,J&&clearInterval(J),f.unbind(m.scrollWrap,W,m),f.unbind(window,"scroll",m),xt(),_(),et=null},panTo:function(e,t,i){i||(e>Ae.min.x?e=Ae.min.x:e<Ae.max.x&&(e=Ae.max.x),t>Ae.min.y?t=Ae.min.y:t<Ae.max.y&&(t=Ae.max.y)),Qe.x=e,Qe.y=t,tt()},handleEvent:function(e){e=e||window.event,q[e.type]&&q[e.type](e)},goTo:function(e){var t=(e=l(e))-N;ze=t,N=e,m.currItem=Ht(N),Ve-=t,u(qe.x*Ve),_(),je=!1,m.updateCurrItem()},next:function(){m.goTo(N+1)},prev:function(){m.goTo(N-1)},updateCurrZoomItem:function(e){if(e&&y("beforeChange",0),te[1].el.children.length){var t=te[1].el.children[0];Ye=f.hasClass(t,"pswp__zoom-wrap")?t.style:null}else Ye=null;Ae=m.currItem.bounds,Z=z=m.currItem.initialZoomLevel,Qe.x=Ae.center.x,Qe.y=Ae.center.y,e&&y("afterChange")},invalidateCurrItems:function(){ee=!0;for(var e=0;e<3;e++)te[e].item&&(te[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==ze){var t,i=Math.abs(ze);if(!(e&&i<2)){m.currItem=Ht(N),Je=!1,y("beforeChange",ze),3<=i&&(U+=ze+(0<ze?-3:3),i=3);for(var n=0;n<i;n++)0<ze?(t=te.shift(),te[2]=t,nt((++U+2)*qe.x,t.el.style),m.setContent(t,N-i+n+1+1)):(t=te.pop(),te.unshift(t),nt(--U*qe.x,t.el.style),m.setContent(t,N+i-n-1-1));if(Ye&&1===Math.abs(ze)){var a=Ht(ie);a.initialZoomLevel!==z&&(qt(a,Ue),zt(a),it(a))}ze=0,m.updateCurrZoomItem(),ie=N,y("afterChange")}}},updateSize:function(e){if(!Ze&&g.modal){var t=f.getScrollY();if(me!==t&&(p.style.top=t+"px",me=t),!e&&Xe.x===window.innerWidth&&Xe.y===window.innerHeight)return;Xe.x=window.innerWidth,Xe.y=window.innerHeight,p.style.height=Xe.y+"px"}if(Ue.x=m.scrollWrap.clientWidth,Ue.y=m.scrollWrap.clientHeight,S(),qe.x=Ue.x+Math.round(Ue.x*g.spacing),qe.y=Ue.y,u(qe.x*Ve),y("beforeResize"),void 0!==U){for(var i,n,a,s=0;s<3;s++)i=te[s],nt((s+U)*qe.x,i.el.style),a=N+s-1,g.loop&&2<Nt()&&(a=l(a)),(n=Ht(a))&&(ee||n.needsUpdate||!n.bounds)?(m.cleanSlide(n),m.setContent(i,a),1===s&&(m.currItem=n,m.updateCurrZoomItem(!0)),n.needsUpdate=!1):-1===i.index&&0<=a&&m.setContent(i,a),n&&n.container&&(qt(n,Ue),zt(n),it(n));ee=!1}Z=z=m.currItem.initialZoomLevel,(Ae=m.currItem.bounds)&&(Qe.x=Ae.center.x,Qe.y=Ae.center.y,tt(!0)),y("resize")},zoomTo:function(t,e,i,n,a){e&&(Z=z,Dt.x=Math.abs(e.x)-Qe.x,Dt.y=Math.abs(e.y)-Qe.y,w(Ne,Qe));var s=b(t,!1),o={};x("x",s,o,t),x("y",s,o,t);var r=z,l=Qe.x,c=Qe.y;h(o);function d(e){1===e?(z=t,Qe.x=o.x,Qe.y=o.y):(z=(t-r)*e+r,Qe.x=(o.x-l)*e+l,Qe.y=(o.y-c)*e+c),a&&a(e),tt(1===e)}i?I("customZoomTo",0,1,i,n||f.easing.sine.inOut,d):d(1)}},lt={},ct={},dt={},ut={},ht={},pt=[],ft={},mt=[],gt={},yt=0,vt={x:0,y:0},wt=0,bt={x:0,y:0},Dt={x:0,y:0},kt={x:0,y:0},xt=function(){_e&&(ue(_e),_e=null)},Ct={},St={},Mt={},Tt=[],_t=function(){if(Le){var e=Le.length;if(0!==e)if(w(lt,Le[0]),dt.x=lt.x-ut.x,dt.y=lt.y-ut.y,Pe&&1<e){if(ut.x=lt.x,ut.y=lt.y,!dt.x&&!dt.y&&function(e,t){return e.x===t.x&&e.y===t.y}(Le[1],ct))return;w(ct,Le[1]),Me||(Me=!0,y("zoomGestureStarted"));var t=L(lt,ct),i=Et(t);i>m.currItem.initialZoomLevel+m.currItem.initialZoomLevel/15&&(Re=!0);var n=1,a=D(),s=k();if(i<a)if(g.pinchToClose&&!Re&&Z<=m.currItem.initialZoomLevel){var o=1-(a-i)/(a/1.2);v(o),y("onPinchClose",o),Oe=!0}else 1<(n=(a-i)/a)&&(n=1),i=a-n*(a/3);else s<i&&(1<(n=(i-s)/(6*a))&&(n=1),i=s+n*a);n<0&&(n=0),t,A(lt,ct,vt),He.x+=vt.x-kt.x,He.y+=vt.y-kt.y,w(kt,vt),Qe.x=c("x",i),Qe.y=c("y",i),De=z<i,z=i,tt()}else{if(!$e)return;if(Ke&&(Ke=!1,10<=Math.abs(dt.x)&&(dt.x-=Le[0].x-ht.x),10<=Math.abs(dt.y)&&(dt.y-=Le[0].y-ht.y)),ut.x=lt.x,ut.y=lt.y,0===dt.x&&0===dt.y)return;if("v"===$e&&g.closeOnVerticalDrag&&"fit"===g.scaleMode&&z===m.currItem.initialZoomLevel){He.y+=dt.y,Qe.y+=dt.y;var r=Y();return ke=!0,y("onVerticalDrag",r),v(r),void tt()}!function(e,t,i){if(50<e-we){var n=2<mt.length?mt.shift():{};n.x=t,n.y=i,mt.push(n),we=e}}(d(),lt.x,lt.y),Te=!0,Ae=m.currItem.bounds,$("x",dt)||($("y",dt),h(Qe),tt())}}},It=function(){var t,i,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){i=1<mt.length?(t=d()-we+50,mt[mt.length-2][e]):(t=d()-ve,ht[e]),n.lastFlickOffset[e]=ut[e]-i,n.lastFlickDist[e]=Math.abs(n.lastFlickOffset[e]),20<n.lastFlickDist[e]?n.lastFlickSpeed[e]=n.lastFlickOffset[e]/t:n.lastFlickSpeed[e]=0,Math.abs(n.lastFlickSpeed[e])<.1&&(n.lastFlickSpeed[e]=0),n.slowDownRatio[e]=.95,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatio[e]=1},calculateOverBoundsAnimOffset:function(t,e){n.backAnimStarted[t]||(Qe[t]>Ae.min[t]?n.backAnimDestination[t]=Ae.min[t]:Qe[t]<Ae.max[t]&&(n.backAnimDestination[t]=Ae.max[t]),void 0!==n.backAnimDestination[t]&&(n.slowDownRatio[t]=.7,n.slowDownRatioReverse[t]=1-n.slowDownRatio[t],n.speedDecelerationRatioAbs[t]<.05&&(n.lastFlickSpeed[t]=0,n.backAnimStarted[t]=!0,I("bounceZoomPan"+t,Qe[t],n.backAnimDestination[t],e||300,f.easing.sine.out,function(e){Qe[t]=e,tt()}))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,Qe[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(st.zoomPan&&(st.zoomPan.raf=de(n.panAnimLoop),n.now=d(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),tt(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return Qe.x=Math.round(Qe.x),Qe.y=Math.round(Qe.y),tt(),void M("zoomPan")}};return n},Lt=function(e){if(e.calculateSwipeSpeed("y"),Ae=m.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;T("zoomPan"),e.lastNow=d(),e.panAnimLoop()},Pt=function(e,t){var i,n,a;if(je||(yt=N),"swipe"===e){var s=ut.x-ht.x,o=t.lastFlickDist.x<10;30<s&&(o||20<t.lastFlickOffset.x)?n=-1:s<-30&&(o||t.lastFlickOffset.x<-20)&&(n=1)}n&&((N+=n)<0?(N=g.loop?Nt()-1:0,a=!0):N>=Nt()&&(N=g.loop?0:Nt()-1,a=!0),a&&!g.loop||(ze+=n,Ve-=n,i=!0));var r,l=qe.x*Ve,c=Math.abs(l-bt.x);return r=i||l>bt.x==0<t.lastFlickSpeed.x?(r=0<Math.abs(t.lastFlickSpeed.x)?c/Math.abs(t.lastFlickSpeed.x):333,r=Math.min(r,400),Math.max(r,250)):333,yt===N&&(i=!1),je=!0,y("mainScrollAnimStart"),I("mainScroll",bt.x,l,r,f.easing.cubic.out,u,function(){_(),je=!1,yt=-1,!i&&yt===N||m.updateCurrItem(),y("mainScrollAnimComplete")}),i&&m.updateCurrItem(!0),i},Et=function(e){return 1/Ee*e*Z},At=function(){var e=z,t=D(),i=k();z<t?e=t:i<z&&(e=i);var n,a=Fe;return Oe&&!De&&!Re&&z<t?m.close():(Oe&&(n=function(e){v((1-a)*e+a)}),m.zoomTo(e,0,200,f.easing.cubic.out,n)),!0};i("Gestures",{publicMethods:{initGestures:function(){function e(e,t,i,n,a){ne=e+t,ae=e+i,se=e+n,oe=a?e+a:""}(le=ge.pointerEvent)&&ge.touch&&(ge.touch=!1),le?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):ge.touch?(e("touch","start","move","end","cancel"),ce=!0):e("mouse","down","move","up"),V=ae+" "+se+" "+oe,W=ne,le&&!ce&&(ce=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),m.likelyTouchDevice=ce,q[ne]=K,q[ae]=O,q[se]=F,oe&&(q[oe]=q[se]),ge.touch&&(W+=" mousedown",V+=" mousemove mouseup",q.mousedown=q[ne],q.mousemove=q[ae],q.mouseup=q[se]),ce||(g.allowPanToNext=!1)}}});function Yt(e,t,i,n,a,s){t.loadError||n&&(t.imageAppended=!0,zt(t,n,t===m.currItem&&Je),i.appendChild(n),s&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))}function jt(e){function t(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,i.onload=i.onerror=null,i=null}e.loading=!0,e.loaded=!1;var i=e.img=f.createEl("pswp__img","img");return i.onload=t,i.onerror=function(){e.loadError=!0,t()},i.src=e.src,i}function $t(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=g.errorMsg.replace("%url%",e.src),!0}function Kt(){if(Vt.length){for(var e,t=0;t<Vt.length;t++)(e=Vt[t]).holder.index===e.index&&Yt(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Vt=[]}}var Ot,Ft,Rt,Bt,Ht,Nt,Qt=function(o,e,r,t){var l;Ot&&clearTimeout(Ot),Rt=Bt=!0,o.initialLayout?(l=o.initialLayout,o.initialLayout=null):l=g.getThumbBoundsFn&&g.getThumbBoundsFn(N);function c(){M("initialZoom"),r?(m.template.removeAttribute("style"),m.bg.removeAttribute("style")):(v(1),e&&(e.style.display="block"),f.addClass(p,"pswp--animated-in"),y("initialZoom"+(r?"OutEnd":"InEnd"))),t&&t(),Bt=!1}var d=r?g.hideAnimationDuration:g.showAnimationDuration;if(!d||!l||void 0===l.x)return y("initialZoom"+(r?"Out":"In")),z=o.initialZoomLevel,w(Qe,o.initialPosition),tt(),p.style.opacity=r?0:1,v(1),void(d?setTimeout(function(){c()},d):c());var u,h;u=H,h=!m.currItem.src||m.currItem.loadError||g.showHideOpacity,o.miniImg&&(o.miniImg.style.webkitBackfaceVisibility="hidden"),r||(z=l.w/o.w,Qe.x=l.x,Qe.y=l.y-pe,m[h?"template":"bg"].style.opacity=.001,tt()),T("initialZoom"),r&&!u&&f.removeClass(p,"pswp--animated-in"),h&&(r?f[(u?"remove":"add")+"Class"](p,"pswp--animate_opacity"):setTimeout(function(){f.addClass(p,"pswp--animate_opacity")},30)),Ot=setTimeout(function(){if(y("initialZoom"+(r?"Out":"In")),r){var t=l.w/o.w,i=Qe.x,n=Qe.y,a=z,s=Fe,e=function(e){1===e?(z=t,Qe.x=l.x,Qe.y=l.y-me):(z=(t-a)*e+a,Qe.x=(l.x-i)*e+i,Qe.y=(l.y-me-n)*e+n),tt(),h?p.style.opacity=1-e:v(s-e*s)};u?I("initialZoom",0,1,d,f.easing.cubic.out,e,c):(e(1),Ot=setTimeout(c,d+20))}else z=o.initialZoomLevel,w(Qe,o.initialPosition),tt(),v(1),h?p.style.opacity=1:v(1),Ot=setTimeout(c,d+20)},r?25:90)},Ut={},Vt=[],Wt={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Ft.length}},qt=function(e,t,i){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds;var n=!i;if(n&&(e.vGap||(e.vGap={top:0,bottom:0}),y("parseVerticalMargin",e)),Ut.x=t.x,Ut.y=t.y-e.vGap.top-e.vGap.bottom,n){var a=Ut.x/e.w,s=Ut.y/e.h;e.fitRatio=a<s?a:s;var o=g.scaleMode;"orig"===o?i=1:"fit"===o&&(i=e.fitRatio),1<i&&(i=1),e.initialZoomLevel=i,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}return i?(function(e,t,i){var n=e.bounds;n.center.x=Math.round((Ut.x-t)/2),n.center.y=Math.round((Ut.y-i)/2)+e.vGap.top,n.max.x=t>Ut.x?Math.round(Ut.x-t):n.center.x,n.max.y=i>Ut.y?Math.round(Ut.y-i)+e.vGap.top:n.center.y,n.min.x=t>Ut.x?0:n.center.x,n.min.y=i>Ut.y?e.vGap.top:n.center.y}(e,e.w*i,e.h*i),n&&i===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0},zt=function(e,t,i){if(e.src){t=t||e.container.lastChild;var n=i?e.w:Math.round(e.w*e.fitRatio),a=i?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=n+"px",e.placeholder.style.height=a+"px"),t.style.width=n+"px",t.style.height=a+"px"}};i("Controller",{publicMethods:{lazyLoadItem:function(e){e=l(e);var t=Ht(e);t&&(!t.loaded&&!t.loading||ee)&&(y("gettingData",e,t),t.src&&jt(t))},initController:function(){f.extend(g,Wt,!0),m.items=Ft=e,Ht=m.getItemAt,(Nt=g.getNumItemsFn)()<3&&(g.loop=!1),s("beforeChange",function(e){var t,i=g.preload,n=null===e||0<=e,a=Math.min(i[0],Nt()),s=Math.min(i[1],Nt());for(t=1;t<=(n?s:a);t++)m.lazyLoadItem(N+t);for(t=1;t<=(n?a:s);t++)m.lazyLoadItem(N-t)}),s("initialLayout",function(){m.currItem.initialLayout=g.getThumbBoundsFn&&g.getThumbBoundsFn(N)}),s("mainScrollAnimComplete",Kt),s("initialZoomInEnd",Kt),s("destroy",function(){for(var e,t=0;t<Ft.length;t++)(e=Ft[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Vt=null})},getItemAt:function(e){return 0<=e&&(void 0!==Ft[e]&&Ft[e])},allowProgressiveImg:function(){return g.forceProgressiveLoading||!ce||g.mouseUsed||1200<screen.width},setContent:function(t,i){g.loop&&(i=l(i));var e=m.getItemAt(t.index);e&&(e.container=null);var n,a=m.getItemAt(i);if(a){y("gettingData",i,a),t.index=i;var s=(t.item=a).container=f.createEl("pswp__zoom-wrap");if(!a.src&&a.html&&(a.html.tagName?s.appendChild(a.html):s.innerHTML=a.html),$t(a),qt(a,Ue),!a.src||a.loadError||a.loaded)a.src&&!a.loadError&&((n=f.createEl("pswp__img","img")).style.opacity=1,n.src=a.src,zt(a,n),Yt(0,a,s,n));else{if(a.loadComplete=function(e){if(R){if(t&&t.index===i){if($t(e,!0))return e.loadComplete=e.img=null,qt(e,Ue),it(e),void(t.index===N&&m.updateCurrZoomItem());e.imageAppended?!Bt&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):ge.transform&&(je||Bt)?Vt.push({item:e,baseDiv:s,img:e.img,index:i,holder:t,clearPlaceholder:!0}):Yt(0,e,s,e.img,0,!0)}e.loadComplete=null,e.img=null,y("imageLoadComplete",i,e)}},f.features.transform){var o="pswp__img pswp__img--placeholder";o+=a.msrc?"":" pswp__img--placeholder--blank";var r=f.createEl(o,a.msrc?"img":"");a.msrc&&(r.src=a.msrc),zt(a,r),s.appendChild(r),a.placeholder=r}a.loading||jt(a),m.allowProgressiveImg()&&(!Rt&&ge.transform?Vt.push({item:a,baseDiv:s,img:a.img,index:i,holder:t}):Yt(0,a,s,a.img,0,!0))}Rt||i!==N?it(a):(Ye=s.style,Qt(a,n||a.img)),t.el.innerHTML="",t.el.appendChild(s)}else t.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});function Zt(e,t,i){var n=document.createEvent("CustomEvent"),a={origEvent:e,target:e.target,releasePoint:t,pointerType:i||"touch"};n.initCustomEvent("pswpTap",!0,!0,a),e.target.dispatchEvent(n)}var Gt,Xt,Jt={};i("Tap",{publicMethods:{initTap:function(){s("firstTouchStart",m.onTapStart),s("touchRelease",m.onTapRelease),s("destroy",function(){Jt={},Gt=null})},onTapStart:function(e){1<e.length&&(clearTimeout(Gt),Gt=null)},onTapRelease:function(e,t){if(t&&!Te&&!Se&&!ot){var i=t;if(Gt&&(clearTimeout(Gt),Gt=null,function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25}(i,Jt)))return void y("doubleTap",i);if("mouse"===t.type)return void Zt(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||f.hasClass(e.target,"pswp__single-tap"))return void Zt(e,t);w(Jt,i),Gt=setTimeout(function(){Zt(e,t),Gt=null},300)}}}}),i("DesktopZoom",{publicMethods:{initDesktopZoom:function(){fe||(ce?s("mouseUsed",function(){m.setupDesktopZoom()}):m.setupDesktopZoom(!0))},setupDesktopZoom:function(e){Xt={};var t="wheel mousewheel DOMMouseScroll";s("bindEvents",function(){f.bind(p,t,m.handleMouseWheel)}),s("unbindEvents",function(){Xt&&f.unbind(p,t,m.handleMouseWheel)}),m.mouseZoomedIn=!1;function i(){m.mouseZoomedIn&&(f.removeClass(p,"pswp--zoomed-in"),m.mouseZoomedIn=!1),z<1?f.addClass(p,"pswp--zoom-allowed"):f.removeClass(p,"pswp--zoom-allowed"),a()}var n,a=function(){n&&(f.removeClass(p,"pswp--dragging"),n=!1)};s("resize",i),s("afterChange",i),s("pointerDown",function(){m.mouseZoomedIn&&(n=!0,f.addClass(p,"pswp--dragging"))}),s("pointerUp",a),e||i()},handleMouseWheel:function(e){if(z<=m.currItem.fitRatio)return g.modal&&(!g.closeOnScroll||ot||Ce?e.preventDefault():re&&2<Math.abs(e.deltaY)&&(H=!0,m.close())),!0;if(e.stopPropagation(),Xt.x=0,"deltaX"in e)1===e.deltaMode?(Xt.x=18*e.deltaX,Xt.y=18*e.deltaY):(Xt.x=e.deltaX,Xt.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Xt.x=-.16*e.wheelDeltaX),e.wheelDeltaY?Xt.y=-.16*e.wheelDeltaY:Xt.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;Xt.y=e.detail}b(z,!0);var t=Qe.x-Xt.x,i=Qe.y-Xt.y;(g.modal||t<=Ae.min.x&&t>=Ae.max.x&&i<=Ae.min.y&&i>=Ae.max.y)&&e.preventDefault(),m.panTo(t,i)},toggleDesktopZoom:function(e){e=e||{x:Ue.x/2+We.x,y:Ue.y/2+We.y};var t=g.getDoubleTapZoom(!0,m.currItem),i=z===t;m.mouseZoomedIn=!i,m.zoomTo(i?m.currItem.initialZoomLevel:t,e,333),f[(i?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}});function ei(){return fi.hash.substring(1)}function ti(){ai&&clearTimeout(ai),oi&&clearTimeout(oi)}function ii(){var e=ei(),t={};if(e.length<5)return t;var i,n=e.split("&");for(i=0;i<n.length;i++)if(n[i]){var a=n[i].split("=");a.length<2||(t[a[0]]=a[1])}if(g.galleryPIDs){var s=t.pid;for(i=t.pid=0;i<Ft.length;i++)if(Ft[i].pid===s){t.pid=i;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t}function ni(){if(oi&&clearTimeout(oi),ot||Ce)oi=setTimeout(ni,500);else{ri?clearTimeout(si):ri=!0;var e=N+1,t=Ht(N);t.hasOwnProperty("pid")&&(e=t.pid);var i=di+"&gid="+g.galleryUID+"&pid="+e;ui||-1===fi.hash.indexOf(i)&&(pi=!0);var n=fi.href.split("#")[0]+"#"+i;mi?"#"+i!==window.location.hash&&history[ui?"replaceState":"pushState"]("",document.title,n):ui?fi.replace(n):fi.hash=i,ui=!0,si=setTimeout(function(){ri=!1},60)}}var ai,si,oi,ri,li,ci,di,ui,hi,pi,fi,mi,gi={history:!0,galleryUID:1};i("History",{publicMethods:{initHistory:function(){if(f.extend(g,gi,!0),g.history){fi=window.location,ui=hi=pi=!1,di=ei(),mi="pushState"in history,-1<di.indexOf("gid=")&&(di=(di=di.split("&gid=")[0]).split("?gid=")[0]),s("afterChange",m.updateURL),s("unbindEvents",function(){f.unbind(window,"hashchange",m.onHashChange)});var e=function(){ci=!0,hi||(pi?history.back():di?fi.hash=di:mi?history.pushState("",document.title,fi.pathname+fi.search):fi.hash=""),ti()};s("unbindEvents",function(){H&&e()}),s("destroy",function(){ci||e()}),s("firstUpdate",function(){N=ii().pid});var t=di.indexOf("pid=");-1<t&&"&"===(di=di.substring(0,t)).slice(-1)&&(di=di.slice(0,-1)),setTimeout(function(){R&&f.bind(window,"hashchange",m.onHashChange)},40)}},onHashChange:function(){if(ei()===di)return hi=!0,void m.close();ri||(li=!0,m.goTo(ii().pid),li=!1)},updateURL:function(){ti(),li||(ui?ai=setTimeout(ni,800):ni())}}}),f.extend(m,rt)}},"function"==typeof define&&define.amd?define(t):"object"===("undefined"==typeof exports?"undefined":yi(exports))?module.exports=t():e.PhotoSwipe=t(),i=window,n=function(){return function(a,r){function e(e){if(M)return!0;e=e||window.event,S.timeToIdle&&S.mouseUsed&&!w&&$();for(var t,i,n=(e.target||e.srcElement).getAttribute("class")||"",a=0;a<O.length;a++)(t=O[a]).onTap&&-1<n.indexOf("pswp__"+t.name)&&(t.onTap(),i=!0);if(i){e.stopPropagation&&e.stopPropagation(),M=!0;var s=r.features.isOldAndroid?600:30;setTimeout(function(){M=!1},s)}}function i(e,t,i){r[(i?"add":"remove")+"Class"](e,"pswp__"+t)}function t(){var e=1===S.getNumItemsFn();e!==C&&(i(h,"ui--one-slide",e),C=e)}function n(){i(y,"share-modal--hidden",E)}function s(){return(E=!E)?(r.removeClass(y,"pswp__share-modal--fade-in"),setTimeout(function(){E&&n()},300)):(n(),setTimeout(function(){E||r.addClass(y,"pswp__share-modal--fade-in")},30)),E||Y(),!1}function o(e){var t=(e=e||window.event).target||e.srcElement;return a.shout("shareLinkClick",e,t),!!t.href&&(!!t.hasAttribute("download")||(window.open(t.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),E||s(),!1))}function l(e){for(var t=0;t<S.closeElClasses.length;t++)if(r.hasClass(e,"pswp__"+S.closeElClasses[t]))return!0}function c(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(_),_=setTimeout(function(){I.setIdle(!0)},S.timeToIdleOutside))}function d(e){var t=e.vGap;if(!a.likelyTouchDevice||S.mouseUsed||screen.width>S.fitControlsWidth){var i=S.barsSize;if(S.captionEl&&"auto"===i.bottom)if(f||((f=r.createEl("pswp__caption pswp__caption--fake")).appendChild(r.createEl("pswp__caption__center")),h.insertBefore(f,p),r.addClass(h,"pswp__ui--fit")),S.addCaptionHTMLFn(e,f,!0)){var n=f.clientHeight;t.bottom=parseInt(n,10)||44}else t.bottom=i.top;else t.bottom="auto"===i.bottom?0:i.bottom;t.top=i.top}else t.top=t.bottom=0}var u,h,p,f,m,g,y,v,w,b,D,k,x,C,S,M,T,_,I=this,L=!1,P=!0,E=!0,A={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return a.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return a.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},Y=function(){for(var e,t,i,n,a="",s=0;s<S.shareButtons.length;s++)e=S.shareButtons[s],t=S.getImageURLForShare(e),i=S.getPageURLForShare(e),n=S.getTextForShare(e),a+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(i)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(n))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",S.parseShareButtonOut&&(a=S.parseShareButtonOut(e,a));y.children[0].innerHTML=a,y.children[0].onclick=o},j=0,$=function(){clearTimeout(_),j=0,w&&I.setIdle(!1)},K=function(e){k!==e&&(i(D,"preloader--active",!e),k=e)},O=[{name:"caption",option:"captionEl",onInit:function(e){p=e}},{name:"share-modal",option:"shareEl",onInit:function(e){y=e},onTap:function(){s()}},{name:"button--share",option:"shareEl",onInit:function(e){g=e},onTap:function(){s()}},{name:"button--zoom",option:"zoomEl",onTap:a.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){m=e}},{name:"button--close",option:"closeEl",onTap:a.close},{name:"button--arrow--left",option:"arrowEl",onTap:a.prev},{name:"button--arrow--right",option:"arrowEl",onTap:a.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){u.isFullscreen()?u.exit():u.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){D=e}}];I.init=function(){r.extend(a.options,A,!0),S=a.options,h=r.getChildByClass(a.scrollWrap,"pswp__ui"),b=a.listen,function(){var t;b("onVerticalDrag",function(e){P&&e<.95?I.hideControls():!P&&.95<=e&&I.showControls()}),b("onPinchClose",function(e){P&&e<.9?(I.hideControls(),t=!0):t&&!P&&.9<e&&I.showControls()}),b("zoomGestureEnded",function(){(t=!1)&&!P&&I.showControls()})}(),b("beforeChange",I.update),b("doubleTap",function(e){var t=a.currItem.initialZoomLevel;a.getZoomLevel()!==t?a.zoomTo(t,e,333):a.zoomTo(S.getDoubleTapZoom(!1,a.currItem),e,333)}),b("preventDragEvent",function(e,t,i){var n=e.target||e.srcElement;n&&n.getAttribute("class")&&-1<e.type.indexOf("mouse")&&(0<n.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(n.tagName))&&(i.prevent=!1)}),b("bindEvents",function(){r.bind(h,"pswpTap click",e),r.bind(a.scrollWrap,"pswpTap",I.onGlobalTap),a.likelyTouchDevice||r.bind(a.scrollWrap,"mouseover",I.onMouseOver)}),b("unbindEvents",function(){E||s(),T&&clearInterval(T),r.unbind(document,"mouseout",c),r.unbind(document,"mousemove",$),r.unbind(h,"pswpTap click",e),r.unbind(a.scrollWrap,"pswpTap",I.onGlobalTap),r.unbind(a.scrollWrap,"mouseover",I.onMouseOver),u&&(r.unbind(document,u.eventK,I.updateFullscreen),u.isFullscreen()&&(S.hideAnimationDuration=0,u.exit()),u=null)}),b("destroy",function(){S.captionEl&&(f&&h.removeChild(f),r.removeClass(p,"pswp__caption--empty")),y&&(y.children[0].onclick=null),r.removeClass(h,"pswp__ui--over-close"),r.addClass(h,"pswp__ui--hidden"),I.setIdle(!1)}),S.showAnimationDuration||r.removeClass(h,"pswp__ui--hidden"),b("initialZoomIn",function(){S.showAnimationDuration&&r.removeClass(h,"pswp__ui--hidden")}),b("initialZoomOut",function(){r.addClass(h,"pswp__ui--hidden")}),b("parseVerticalMargin",d),function(){function e(e){if(e)for(var t=e.length,i=0;i<t;i++){a=e[i],s=a.className;for(var n=0;n<O.length;n++)o=O[n],-1<s.indexOf("pswp__"+o.name)&&(S[o.option]?(r.removeClass(a,"pswp__element--disabled"),o.onInit&&o.onInit(a)):r.addClass(a,"pswp__element--disabled"))}}var a,s,o;e(h.children);var t=r.getChildByClass(h,"pswp__top-bar");t&&e(t.children)}(),S.shareEl&&g&&y&&(E=!0),t(),S.timeToIdle&&b("mouseUsed",function(){r.bind(document,"mousemove",$),r.bind(document,"mouseout",c),T=setInterval(function(){2==++j&&I.setIdle(!0)},S.timeToIdle/2)}),S.fullscreenEl&&!r.features.isOldAndroid&&((u=u||I.getFullscreenAPI())?(r.bind(document,u.eventK,I.updateFullscreen),I.updateFullscreen(),r.addClass(a.template,"pswp--supports-fs")):r.removeClass(a.template,"pswp--supports-fs")),S.preloaderEl&&(K(!0),b("beforeChange",function(){clearTimeout(x),x=setTimeout(function(){a.currItem&&a.currItem.loading?a.allowProgressiveImg()&&(!a.currItem.img||a.currItem.img.naturalWidth)||K(!1):K(!0)},S.loadingIndicatorDelay)}),b("imageLoadComplete",function(e,t){a.currItem===t&&K(!0)}))},I.setIdle=function(e){i(h,"ui--idle",w=e)},I.update=function(){L=!(!P||!a.currItem)&&(I.updateIndexIndicator(),S.captionEl&&(S.addCaptionHTMLFn(a.currItem,p),i(p,"caption--empty",!a.currItem.title)),!0),E||s(),t()},I.updateFullscreen=function(e){e&&setTimeout(function(){a.setScrollOffset(0,r.getScrollY())},50),r[(u.isFullscreen()?"add":"remove")+"Class"](a.template,"pswp--fs")},I.updateIndexIndicator=function(){S.counterEl&&(m.innerHTML=a.getCurrentIndex()+1+S.indexIndicatorSep+S.getNumItemsFn())},I.onGlobalTap=function(e){var t=(e=e||window.event).target||e.srcElement;if(!M)if(e.detail&&"mouse"===e.detail.pointerType){if(l(t))return void a.close();r.hasClass(t,"pswp__img")&&(1===a.getZoomLevel()&&a.getZoomLevel()<=a.currItem.fitRatio?S.clickToCloseNonZoomable&&a.close():a.toggleDesktopZoom(e.detail.releasePoint))}else if(S.tapToToggleControls&&(P?I.hideControls():I.showControls()),S.tapToClose&&(r.hasClass(t,"pswp__img")||l(t)))return void a.close()},I.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;i(h,"ui--over-close",l(t))},I.hideControls=function(){r.addClass(h,"pswp__ui--hidden"),P=!1},I.showControls=function(){P=!0,L||I.update(),r.removeClass(h,"pswp__ui--hidden")},I.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},I.getFullscreenAPI=function(){var e,t=document.documentElement,i="fullscreenchange";return t.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:i}:t.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+i}:t.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+i}:t.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){if(v=S.closeOnScroll,S.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return a.template[this.enterK]();a.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return S.closeOnScroll=v,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}},"function"==typeof define&&define.amd?define(n):"object"===("undefined"==typeof exports?"undefined":yi(exports))?module.exports=n():i.PhotoSwipeUI_Default=n(),MyListing.PhotoSwipe=function(a,e){var t=document.querySelectorAll(".pswp")[0],i={index:e,showAnimationDuration:333,hideAnimationDuration:333,showHideOpacity:!0,history:!1,shareEl:!1,getThumbBoundsFn:function(e){var t=a[e].el,i=window.pageYOffset||document.documentElement.scrollTop,n=t.getBoundingClientRect();return{x:n.left,y:n.top+i,w:n.width}}};this.gallery=new PhotoSwipe(t,PhotoSwipeUI_Default,a,i),this.gallery.init(),this.gallery.listen("imageLoadComplete",this.lazyload.bind(this))},MyListing.PhotoSwipe.prototype.lazyload=function(e,t){var i=this;if(t.w<1||t.h<1){var n=new Image;n.onload=function(){t.w=this.width,t.el.dataset.fullWidth=this.width,t.h=this.height,t.el.dataset.fullHeight=this.height,i.gallery.invalidateCurrItems(),i.gallery.updateSize(!0)},n.src=t.src}},jQuery(function(t){t("body").on("click",".open-photo-swipe",function(e){e.preventDefault(),new MyListing.PhotoSwipe([{src:this.href,w:this.dataset.fullWidth||0,h:this.dataset.fullHeight||0,el:this}],0)}),t(".photoswipe-gallery .photoswipe-item").on("click",function(e){e.preventDefault();var i=[],n=this,a=0;t(this).parents(".photoswipe-gallery").find(".photoswipe-item").each(function(e,t){i.push({src:t.href||t.dataset.large_image,w:t.dataset.fullWidth||t.dataset.large_image_width||0,h:t.dataset.fullHeight||t.dataset.large_image_height||0,el:t}),t==n&&(a=e)}),new MyListing.PhotoSwipe(i,a)})}),jQuery(function(n){n(".quick-search-instance").each(function(e,t){var i={};i.el=n(this),i.input=i.el.find('input[name="search_keywords"]'),i.default=i.el.find(".default-results"),i.results=i.el.find(".ajax-results"),i.spinner=i.el.find(".loader-bg"),i.view_all=i.el.find(".all-results"),i.no_results=i.el.find(".no-results"),i.last_request=null,i.input.on("input",MyListing.Helpers.debounce(function(e){a(i)},250)).trigger("input"),"always"===i.el.data("focus")?i.el.find(".header-search").addClass("is-focused"):i.el.on("focusin",function(){i.el.find(".header-search").addClass("is-focused")}).on("focusout",function(){i.el.find(".header-search").removeClass("is-focused")})});var a=function(t){if(t.spinner.hide(),t.results.hide(),t.view_all.hide(),t.no_results.hide(),!t.input.val()||!t.input.val().trim())return t.last_request&&t.last_request.abort(),t.last_request=null,void t.default.show();t.default.hide(),t.spinner.show();var e=n.param({action:"mylisting_quick_search",security:CASE27.ajax_nonce,s:t.input.val().trim()});n.ajax({url:CASE27.mylisting_ajax_url,type:"GET",dataType:"json",data:e,beforeSend:function(e){t.last_request&&t.last_request.abort(),t.last_request=e},success:function(e){if(t.spinner.hide(),!e.content.trim().length)return t.no_results.show();t.results.html(e.content).show(),t.view_all.show()}})}}),function(m){var e=m.fn.select2.amd.require("select2/defaults");m.extend(e.defaults,{dropdownPosition:"auto"});var t=m.fn.select2.amd.require("select2/dropdown/attachBody");t.prototype._positionDropdown;t.prototype._positionDropdown=function(){var e=m(window),t=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),n=null,a=this.$container.offset();a.bottom=a.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=a.top,s.bottom=a.top+s.height;var o=this.$dropdown.outerHeight(!1),r=e.scrollTop(),l=e.scrollTop()+e.height(),c=r<a.top-o,d=l>a.bottom+o,u={left:a.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p=h.offset();u.top-=p.top,u.left-=p.left;var f=this.options.get("dropdownPosition");"above"===f||"below"===f?n=f:(t||i||(n="below"),d||!c||t?!c&&d&&t&&(n="below"):n="above"),("above"==n||t&&"below"!==n)&&(u.top=s.top-p.top-o),null!=n&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+n),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+n)),this.$dropdownContainer.css(u)}}(window.jQuery),MyListing.Select_Config={lastSearch:{},diacritics:{},stripDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return MyListing.Select_Config.diacritics[e]||e})}},MyListing.CustomSelect=function(e,t){var i=this;if(this.el=jQuery(e),this.el.length){if(this.el.addClass("mlduo-select"),this.el.data("placeholder"))var n=this.el.data("placeholder");else if(this.el.attr("placeholder"))n=this.el.attr("placeholder");else n=CASE27.l10n.selectOption;if(this.args=jQuery.extend({sortable:!0,selected:[],multiple:this.el.prop("multiple"),required:this.el.prop("required"),placeholder:n,tags:!!this.el.data("create-tags"),ajax:!!this.el.data("mylisting-ajax"),dropdownPosition:this.el.data("dropdown-position")||"auto"},t),!0===this.args.ajax)var a="object"===yi(this.el.data("mylisting-ajax-params"))?this.el.data("mylisting-ajax-params"):{},s={url:CASE27.mylisting_ajax_url+"&action="+this.el.data("mylisting-ajax-url"),dataType:"json",delay:250,cache:!0,data:function(e){return a.page=e.page||1,a.search=e.term,a.security=CASE27.ajax_nonce,a},processResults:function(e,t){return{results:e.results||[],pagination:{more:e.more}}}};this.select=jQuery(e).select2({width:"100%",minimumResultsForSearch:10,multiple:this.args.multiple,allowClear:!this.args.required,placeholder:this.args.placeholder,dropdownPosition:this.args.dropdownPosition,ajax:"object"===yi(s)?s:null,tags:this.args.tags,escapeMarkup:function(e){return e},createTag:function(e){var t=jQuery.trim(e.term);return""===t?null:{id:t,text:t}},language:{errorLoading:function(){return CASE27.l10n.errorLoading},loadingMore:function(){return CASE27.l10n.loadingMore},noResults:function(){return CASE27.l10n.noResults},removeAllItems:function(){return CASE27.l10n.removeAllItems},searching:function(e){return MyListing.Select_Config.lastSearch=e,CASE27.l10n.searching}}});var o=this.el.next(".select2-container").first("ul.select2-selection__rendered");jQuery(o).on("click touchstart",function(e){jQuery(e.target).hasClass("select2-selection__choice__remove")&&e.stopImmediatePropagation()}),o.sortable({placeholder:"ui-state-highlight",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",containment:"parent",stop:function(){jQuery(o.find(".select2-selection__choice").get().reverse()).each(function(){if(jQuery(this).data("data")){var e=jQuery(this).data("data").id,t=i.el.find('option[value="'+e+'"]')[0];i.el.prepend(t)}})}}),this.select.on("change",this.fireChangeEvent.bind(this))}},MyListing.CustomSelect.prototype.fireChangeEvent=function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("select:change",!1,!0,{value:jQuery(e.currentTarget).val()}),this.el.get(0).dispatchEvent(t)},jQuery(function(i){function e(){i([".custom-select, .single-product .variations select","#buddypress div.item-list-tabs#subnav ul li select","#buddypress #notification-select","#wc_bookings_field_resource","#buddypress #messages-select","#buddypress form#whats-new-form #whats-new-options select",".settings.privacy-settings #buddypress #item-body > form > p select",".woocommerce-ordering select",".c27-submit-listing-form select:not(.ignore-custom-select)",".ml-admin-listing-form select:not(.ignore-custom-select)"].join(", ")).each(function(e,t){new MyListing.CustomSelect(t)})}i.fn.select2.amd.require(["select2/diacritics"],function(e){return MyListing.Select_Config.diacritics=e}),i.fn.select2.defaults.defaults&&(i.fn.select2.defaults.defaults.sorter=function(e){if(""===i.trim(MyListing.Select_Config.lastSearch.term))return e;var t=e.slice(0),a=MyListing.Select_Config.lastSearch.term||"";return a=MyListing.Select_Config.stripDiacritics(a).toUpperCase(),t.sort(function(e,t){var i=MyListing.Select_Config.stripDiacritics(e.text).toUpperCase(),n=MyListing.Select_Config.stripDiacritics(t.text).toUpperCase();return i.indexOf(a)-n.indexOf(a)}),t}),e(),i(document).on("mylisting:refresh-scripts",function(){e()}),i(".repeater").each(function(e,t){i(t).repeater({initEmpty:!0,show:function(){i(this).show(),i(this).find("select").select2({minimumResultsForSearch:0})}}).setList(i(t).data("list"))})}),MyListing.TermHierarchy=function(e){this.input=jQuery(e),this.el=this.input.parent(),this.input.length&&this.el.hasClass("cts-term-hierarchy")&&(this.ajax_params=this.input.data("mylisting-ajax-params"),this.placeholder=this.input.data("placeholder"),this.selected=this.input.data("selected")||[],this.term_value="slug"===this.ajax_params["term-value"]?"slug":"id",this.label=this.el.find("> label"),this.originalLabel=this.label.length?this.label.html():"",this.labelTemplate='<span class="go-back-btn" data-index="%index%"><i class="mi keyboard_backspace"></i> %label%</span>',this.template="alternate"===this.input.data("template")?"alternate":"default",this.el.addClass("tpl-"+this.template),this.selected.length?this.handleDefaultValue():this.addChildSelect({index:0,select:null}),this.label.on("click",function(){var e=this.label.find(".go-back-btn");if(e.length){var t=parseInt(e.data("index"),10);this.el.find(".select-wrapper.term-select-"+(t-1)+" .select2-selection__clear").mousedown()}}.bind(this)),this.input.on("change",this.fireChangeEvent.bind(this)),this.addWrapperClasses())},MyListing.TermHierarchy.prototype.maybeAddChildSelect=function(t){var i=this,e=".term-select.term-select-"+t.index+", .term-select.term-select-"+t.index+" ~ .term-select";if(this.el.find(e).find("select").select2("destroy"),this.el.find(e).remove(),t.select.val()){var n=jQuery.extend({},t.select.data("mylisting-ajax-params"),{page:1,security:CASE27.ajax_nonce,search:""});n["slug"===this.term_value?"parent":"parent_id"]=t.select.val(),this.el.addClass("cts-terms-loading"),jQuery.ajax({url:CASE27.mylisting_ajax_url+"&action=mylisting_list_terms",type:"GET",dataType:"json",data:n,beforeSend:function(e){t.select.data("last_request")&&t.select.data("last_request").abort(),t.select.data("last_request",e)},success:function(e){i.el.removeClass("cts-terms-loading"),"object"===yi(e)&&e.results&&e.results.length&&i.addChildSelect(t)}})}},MyListing.TermHierarchy.prototype.addChildSelect=function(i){var e=jQuery('<div class="select-wrapper term-select term-select-'+i.index+'"> <select class="custom-select term-select" data-mylisting-ajax="true" data-mylisting-ajax-url="mylisting_list_terms"> <option></option> </select> </div>');if("alternate"===this.template&&e.find("select").data("dropdown-position","below"),0===i.index)var n=this.originalLabel,t=this.placeholder;else{var a=i.select.find('option[value="'+i.select.val()+'"]').text();t=CASE27.l10n.all_in_category.replace("%s",a),n=this.labelTemplate.replace("%index%",i.index).replace("%label%",a)}this.updateLabel(n);var s=jQuery.extend({},this.ajax_params);return s["slug"===this.term_value?"parent":"parent_id"]=0===i.index?0:i.select.val(),e.find("select").data("mylisting-ajax-params",s).attr("placeholder",t),this.el.append(e),new MyListing.CustomSelect(e.find("select")),e.find("select").on("select:change",function(e){var t=i.select?i.select.val():"";this.input.val(e.detail.value||t).trigger("change"),this.updateLabel(n),this.maybeAddChildSelect({index:i.index+1,select:jQuery(e.target)})}.bind(this)),e},MyListing.TermHierarchy.prototype.handleDefaultValue=function(){var i=0,n=null;this.selected.forEach(function(e){var t=this.addChildSelect({index:i,select:n});(n=t.find("select")).append('<option value="'+e.value+'">'+e.label+"</option>").val(e.value),i++}.bind(this)),n.trigger("change");var e=this.selected[this.selected.length-1];this.updateLabel(this.labelTemplate.replace("%index%",this.selected.length-1).replace("%label%",e.label)),this.input.val(e.value).trigger("change")},MyListing.TermHierarchy.prototype.fireChangeEvent=function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("termhierarchy:change",!1,!0,{value:this.input.val()}),this.input.get(0).dispatchEvent(t),this.addWrapperClasses()},MyListing.TermHierarchy.prototype.updateLabel=function(e){"alternate"===this.template&&this.label.length&&this.label.html(e+'<div class="spin-box"></div>')},MyListing.TermHierarchy.prototype.addWrapperClasses=function(){var e=this.input.val().trim();this.el[e?"addClass":"removeClass"]("cts-term-filled")},jQuery(function(i){i(".term-hierarchy-input").each(function(e,t){new MyListing.TermHierarchy(i(this))})}),document.addEventListener("DOMContentLoaded",function(){jQuery(".cts-carousel").each(function(e,t){function i(){10<t.scrollWidth-t.offsetWidth-t.scrollLeft?a.classList.add("cts-show"):a.classList.remove("cts-show"),10<t.scrollLeft?n.classList.add("cts-show"):n.classList.remove("cts-show")}var n=t.querySelector(".cts-prev"),a=t.querySelector(".cts-next");t.addEventListener("scroll",MyListing.Helpers.debounce(i,20)),new ResizeSensor(t,MyListing.Helpers.debounce(i,100)),i()})}),a=Date.now(),document.onmousemove=o,document.onkeydown=o,document.onmousedown=o,document.ontouchstart=o,document.onscroll=o,MyListing.Helpers.getLastActivity=function(){return Date.now()-a},jQuery.ajaxPrefilter(function(e,t,i){t&&t.data&&1===t.data.no_idle&&1e4<=MyListing.Helpers.getLastActivity()&&i.abort()}),MyListing.Handlers.Bookmark_Button=function(e,t){e.preventDefault();t=jQuery(t);if(!jQuery("body").hasClass("logged-in"))return window.location.href=CASE27.login_url;if(!t.hasClass("bookmarking")){var i=CASE27.mylisting_ajax_url+"&action=bookmark_listing";t.addClass("bookmarking").toggleClass("bookmarked"),t.find(".action-label").html(t.hasClass("bookmarked")?t.data("active-label"):t.data("label")),jQuery.get(i,{listing_id:t.data("listing-id")},function(e){t.removeClass("bookmarking")})}},jQuery(window).on("load",function(){jQuery(".galleryPreview, .section-slider.owl-carousel").trigger("refresh.owl.carousel")}),jQuery(document).ready(window.case27_ready_script=function(o){o(document).trigger("mylisting:refresh-scripts"),o([".c27-main-header",".finder-container",".add-listing-step",".hide-until-load"].join(", ")).css("opacity",1),setTimeout(function(){o("#submit-job-form .wp-editor-wrap").css("height","auto")},2500),"string"==typeof MyListing_Moment_Locale&&MyListing_Moment_Locale.length&&moment.locale(MyListing_Moment_Locale),function(){if(o("body").hasClass("add-listing-form")){document.addEventListener("invalid",function(e){jQuery(e.target).addClass("invalid"),jQuery("html, body").animate({scrollTop:jQuery(jQuery(".invalid")[0]).offset().top-150},0)},!0),document.addEventListener("change",function(e){jQuery(e.target).removeClass("invalid")},!0)}}(),jQuery("body").hasClass("elementor-editor-active")&&(jQuery.fn.parallax=function(){});var e=o("#buddypress form#whats-new-form p.activity-greeting").text();if(jQuery("#whats-new-textarea textarea").attr("placeholder",e),o(".woocommerce-MyAccount-navigation ul").length&&o(".woocommerce-MyAccount-navigation ul li.is-active, .woocommerce-MyAccount-navigation ul li.current-menu-item").length){var t=o(".woocommerce-MyAccount-navigation ul li.is-active, .woocommerce-MyAccount-navigation ul li.current-menu-item").offset().left,i=o(".woocommerce-MyAccount-navigation ul").offset().left;i<t&&o(".woocommerce-MyAccount-navigation ul").scrollLeft(t-i)}o(".ph-details").each(function(e,t){o(t).height()%2!=0&&o(t).height(o(t).height()+1)}),o(".cat-card .ac-front-side .hovering-c").each(function(e,t){o(t).height()%2!=0&&o(t).height(o(t).height()+1)}),o(".mobile-menu").click(function(e){e.preventDefault(),o(".i-nav").addClass("mobile-menu-open").css("opacity","1"),o("body").addClass("disable-scroll")}),o(".mnh-close-icon").click(function(e){e.preventDefault(),o(".i-nav").removeClass("mobile-menu-open i-nav-fixed"),o("body").removeClass("disable-scroll"),o(window).resize()}),o(".i-nav-overlay").click(function(){o(this).siblings(".i-nav").removeClass("mobile-menu-open"),o("body").removeClass("disable-scroll")}),o(".main-nav li .submenu-toggle").click(function(){if(window.matchMedia("(max-width:1200px)").matches){var e=o(this).siblings(".i-dropdown");e.hasClass("shown-menu")?e.slideUp(300):(e.slideDown(300),o(this).parent().parent().find("> li > .shown-menu").slideUp(300).removeClass("shown-menu")),e.toggleClass("shown-menu")}});var n,a,s=o(".pricing-item.featured");if(o(".pricing-item").hover(function(){o(s).removeClass("featured"),o(this).addClass("active")},function(){o(this).removeClass("active"),o(s).addClass("featured")}),o('[data-toggle="tooltip"]').tooltip({trigger:"hover"}),o("body").on("hover",".listing-feed-2",function(e){o(this).find('[data-toggle="tooltip"]').tooltip({trigger:"hover"})}),o(".card-view a").on("click",function(e){e.preventDefault(),o("body").css({overflow:"auto",height:"auto"}),o(".finder-listings").removeClass("fl-hidden"),o(".finder-map").removeClass("fm-visible")}),o(".fc-type-2 .finder-overlay").on("click",function(){o(".fc-type-2").removeClass("fc-type-2-open")}),o(".testimonial-carousel.owl-carousel").owlCarousel({mouseDrag:!1,items:1,center:!0,autoplay:!0,dotsContainer:"#customDots"}),o(".testimonial-image").click(function(e){e.preventDefault(),o(this).addClass("active").siblings().removeClass("active");var t=o(this).data("slide-no");o(".testimonial-carousel.owl-carousel").trigger("to.owl.carousel",t)}),o(".gallery-carousel").each(function(e,t){var i=o(t).data("items")?o(t).data("items"):3,n=o(t).data("items-mobile")?o(t).data("items-mobile"):2;o(t).owlCarousel({margin:10,items:i,mouseDrag:!1,responsive:{0:{items:n},600:{items:3<i?3:i},1e3:{items:i}}})}),o(".gallery-prev-btn").click(function(e){e.preventDefault(),o(this).parents(".element").find(".gallery-carousel.owl-carousel").trigger("prev.owl.carousel")}),o(".gallery-next-btn").click(function(e){e.preventDefault(),o(this).parents(".element").find(".gallery-carousel.owl-carousel").trigger("next.owl.carousel")}),o(".full-screen-carousel .owl-carousel").owlCarousel({loop:!0,margin:10,items:2,center:!0,autoWidth:!0}),o(".section-slider.owl-carousel").owlCarousel({mouseDrag:!1,loop:!0,items:1,animateOut:"fadeOut",callbacks:!0,nav:!0,autoHeight:!0,onInitialized:function(){this.refresh()}}),n=null!=navigator.userAgent.match(/Android/i),a=null!=navigator.userAgent.match(/iPhone|iPad|iPod/i),n&&o("body").addClass("smartphoneuser"),a&&o("body").addClass("smartphoneuser iOSUser"),o(".galleryPreview").owlCarousel({items:1,center:!0,dotsContainer:"#customDots",autoHeight:!0}),o(".slide-thumb").click(function(e){e.preventDefault();var t=o(this).data("slide-no");o(".galleryPreview.owl-carousel").trigger("to.owl.carousel",t)}),o(".gallery-thumb").each(function(e,t){var i=o(t).data("items")?o(t).data("items"):4,n=o(t).data("items-mobile")?o(t).data("items-mobile"):2;o(t).owlCarousel({margin:10,items:i,mouseDrag:!1,responsive:{0:{items:n},600:{items:3<i?3:i},1e3:{items:i}}})}),o(".gallerySlider .gallery-prev-btn").click(function(e){e.preventDefault(),o(".gallery-thumb.owl-carousel").trigger("prev.owl.carousel")}),o(".gallerySlider .gallery-next-btn").click(function(e){e.preventDefault(),o(".gallery-thumb.owl-carousel").trigger("next.owl.carousel")}),o("body").hasClass("rtl"))var r=o(".grid").isotope({originLeft:!1});else r=o(".grid").isotope();o(window).bind("load resize",function(){r.isotope("reloadItems").isotope()}),o(".explore-mobile-nav > ul li").on("click",function(){setTimeout(function(){r.isotope("reloadItems").isotope()},400)}),o("body").on("click",".fc-search .close-filters-27",function(){r.isotope("reloadItems").isotope()}),o(".tab-switch").click(function(e){e.preventDefault(),o(this).tab("show"),setTimeout(function(){r.isotope("reloadItems").isotope()},400)}),o(".listing-feed-carousel").owlCarousel({loop:!0,margin:20,items:3,smartSpeed:500,onDrag:function(e){o(".listing-feed-carousel > .owl-item").css("opacity","1")},onDragged:function(e){o(".listing-feed-carousel > .owl-item").css("opacity","0.4"),o(".listing-feed-carousel > .owl-item.active").css("opacity","1")},responsive:{0:{items:1,margin:0},768:{items:2},1e3:{items:3}}}),o(".listing-feed-next-btn").click(function(e){e.preventDefault(),o(this).parents(".container").find(".listing-feed-carousel.owl-carousel").trigger("next.owl.carousel"),o(this).parents(".container").find(".listing-feed-carousel > .owl-item").css("opacity","0.4"),o(this).parents(".container").find(".listing-feed-carousel > .owl-item.active").css("opacity","1")}),o(".listing-feed-prev-btn").click(function(e){e.preventDefault(),o(this).parents(".container").find(".listing-feed-carousel.owl-carousel").trigger("prev.owl.carousel"),o(this).parents(".container").find(".listing-feed-carousel > .owl-item").css("opacity","0.4"),o(this).parents(".container").find(".listing-feed-carousel > .owl-item.active").css("opacity","1")}),o(".featured-section-carousel").owlCarousel({loop:!0,margin:0,items:1,center:!0}),o(".listing-feed-next-btn").click(function(e){e.preventDefault(),o(".featured-section-carousel.owl-carousel").trigger("next.owl.carousel")}),o(".listing-feed-prev-btn").click(function(e){e.preventDefault(),o(".featured-section-carousel.owl-carousel").trigger("prev.owl.carousel")}),o(".lf-background-carousel").owlCarousel({margin:20,items:1,loop:!0}),o(".lf-background-carousel").each(function(){o(this).owlCarousel({margin:20,items:1,loop:!0}),o(this).on("prev.owl.carousel",function(e){e.stopPropagation()}),o(this).on("next.owl.carousel",function(e){e.stopPropagation()})}),o("body").on("click",".lf-item-next-btn",function(e){e.preventDefault(),o(this).parents(".lf-item").find(".lf-background-carousel.owl-carousel").trigger("next.owl.carousel")}),o("body").on("click",".lf-item-prev-btn",function(e){e.preventDefault(),o(this).parents(".lf-item").find(".lf-background-carousel.owl-carousel").trigger("prev.owl.carousel")}),o(".filter-listing-type-select, .filter-listings-select").on("change",function(e){e.preventDefault();var t=o(".filter-listing-type-select option:selected").val(),i=o(".filter-listings-select option:selected").val(),n=[];if(t){var a=new URL(t).searchParams.get("filter_by_type");a&&n.push("filter_by_type="+a)}if(i){var s=new URL(i).searchParams.get("status");s&&n.push("status="+s)}if(!n.length)return window.location.href=o(".filter-listing-type-select :first").val();window.location.href=o(".filter-listing-type-select :first").val()+"?"+n.join("&")}),o(".clients-feed-carousel").owlCarousel({loop:!0,margin:20,items:5,responsive:{0:{items:3},600:{items:3},1e3:{items:5}}}),o(".clients-feed-next-btn").click(function(e){e.preventDefault(),o(".clients-feed-carousel.owl-carousel").trigger("next.owl.carousel")}),o(".clients-feed-prev-btn").click(function(e){e.preventDefault(),o(".clients-feed-carousel.owl-carousel").trigger("prev.owl.carousel")});var l=o(".header-gallery-carousel .item").length;o(".header-gallery-carousel").owlCarousel({items:Math.min.apply(Math,[3,l]),responsive:{0:{items:Math.min.apply(Math,[1,l])},480:{items:Math.min.apply(Math,[2,l])},992:{items:Math.min.apply(Math,[3,l])}}}),o("body.logged-in .comment-info a").click(function(e){e.preventDefault(),o(this).parents().siblings(".element").toggleClass("element-visible")}),function(){var e=o("a.back-to-top");if(e.length){var t=function(){e.css("opacity","0"),setTimeout(function(){e.css("visibility","hidden")},200)};e.click(function(e){e.preventDefault(),t(),o("html, body").animate({scrollTop:0},1e3)});var i=function(){800<=o(window).scrollTop()?(e.css("visibility","visible"),e.css("opacity","1")):t()};o(window).scroll(MyListing.Helpers.debounce(i,200)),i()}}(),jQuery(".c27-quick-view-modal").on("hidden.bs.modal",function(e){o(".c27-quick-view-modal .container").css("height","auto")}),o("body").on("click",".c27-toggle-quick-view-modal",function(e){e.preventDefault(),o(".c27-quick-view-modal").modal("show"),o(".c27-quick-view-modal").addClass("loading-modal"),o.ajax({url:CASE27.mylisting_ajax_url+"&action=get_listing_quick_view&security="+CASE27.ajax_nonce,type:"GET",dataType:"json",data:{listing_id:o(this).data("id")},success:function(e){o(".c27-quick-view-modal").removeClass("loading-modal"),o(".c27-quick-view-modal .modal-content").html(e.html),o(".c27-quick-view-modal .c27-map").css("height",o(".c27-quick-view-modal .modal-content").height()),o(window).trigger("resize"),setTimeout(function(){new MyListing.Maps.Map(o(".c27-quick-view-modal .c27-map").get(0))},10),o(".lf-background-carousel").owlCarousel({margin:20,items:1,loop:!0}),o(".c27-quick-view-modal .container").each(function(e,t){o(t).height()%2!=0&&o(t).height(o(t).height()+1)});var t=o(".c27-quick-view-modal .modal-content").height();o(".c27-quick-view-modal .block-map").css("height",t)}})}),o("#ml-messages-modal, #quicksearch-mobile-modal").on("shown.bs.modal",function(){o("body").addClass("disable-scroll")}).on("hidden.bs.modal",function(){o("body").removeClass("disable-scroll")}),o(".c27-add-product-form input#_virtual").change(function(e){o(".c27-add-product-form .product_shipping_class_wrapper")["checked"==o(this).attr("checked")?"hide":"show"]()}).change(),o(".c27-add-product-form input#_sale_price").keyup(function(e){o(".c27-add-product-form ._sale_price_dates_from__wrapper")[o(this).val()?"show":"hide"](),o(".c27-add-product-form ._sale_price_dates_to__wrapper")[o(this).val()?"show":"hide"]()}).keyup(),o(".c27-add-product-form input#_manage_stock").change(function(e){o(".c27-add-product-form ._stock__wrapper")["checked"==o(this).attr("checked")?"show":"hide"](),o(".c27-add-product-form ._backorders__wrapper")["checked"==o(this).attr("checked")?"show":"hide"]()}).change(),o(".woocommerce-MyAccount-navigation > ul").each(function(){o(this).children().length<=6&&o(this).addClass("short")})}),window.cts_render_captcha=function(){jQuery(".g-recaptcha").each(function(e,t){grecaptcha.render(t,{sitekey:t.dataset.sitekey}),setTimeout(function(){return t.style.opacity=1},1e3)})},jQuery(document).ready(function(l){function t(e){var t=e.parents(".pricing-item");if(!t.length)return!1;if(void 0===t.data("selected"))return t.find('.owned-product-packages input[name="listing_package"]').first().prop("checked",!0),!0;var i=parseInt(t.data("selected"),10);return t.find('.owned-product-packages input[name="listing_package"][value="'+i+'"]').prop("checked",!0),!0}var e;l(".main-loader").addClass("loader-hidden"),setTimeout(function(){l(".main-loader").hide()},600),l("body").addClass("c27-site-loaded"),l("header.header").parents("section.elementor-element").addClass("c27-header-element"),l(".c27-open-popup-window, .cts-open-popup").click(function(e){e.preventDefault();var t=screen.height/2-200,i=screen.width/2-300;window.open(this.href,"targetWindow",["toolbar=no","location=no","status=no","menubar=no","scrollbars=yes","resizable=yes","width=600","height=400","top="+t,"left="+i].join(","))}),l(".c27-add-listing-review, .show-review-form, .pa-below-title .listing-rating").click(function(e){e.preventDefault(),l(".toggle-tab-type-comments").first().click(),setTimeout(function(){l('#commentform textarea[name="comment"]').focus()},250)}),l(".c27-book-now").click(function(e){e.preventDefault(),l(".toggle-tab-type-bookings").first().click()}),l(".modal.c27-open-on-load").modal("show"),l(".c27-open-modal").click(function(e){e.preventDefault();var t=l(this);l(".modal.in").one("hidden.bs.modal",function(){l(t.data("target")).modal("show")}).modal("hide")}),l(".featured-search .location-wrapper .geocode-location").click(function(e){var t=l(this).siblings("input");MyListing.Geocoder.getUserLocation({receivedAddress:function(e){if(!e)return!1;setTimeout(function(){t.trigger("change")},5),t.val(e.address)}})}),l("body.single-listing .tab-template-two-columns").each(function(e,t){function i(e){var t=window.matchMedia("(max-width: 991.5px)").matches?"mobile":"desktop";if(t===r&&!e)return!1;"mobile"==t?s.forEach(function(e,t){l(e).appendTo(n),o[t]&&l(o[t]).appendTo(n)}):o.forEach(function(e,t){l(e).appendTo(a)}),r=t}var n=l(this).find(".cts-column-wrapper.cts-main-column"),a=l(this).find(".cts-column-wrapper.cts-side-column"),s=n.find("> div").toArray(),o=a.find("> div").toArray(),r=window.matchMedia("(max-width: 991.5px)").matches?"mobile":"desktop";i("mobile"===r),l(window).on("resize",MyListing.Helpers.debounce(function(){i()},300))}),l('.cts-pricing-item input[name="listing_package"]').change(function(e){var t=l(this).parents(".pricing-item");if(!t.length)return!0;t.data("selected",l(this).val())}),l(".cts-pricing-item .use-package-toggle").click(function(e){t(l(this))}),l(".cts-pricing-item .select-plan:not(.cts-trigger-buy-new)").click(function(e){e.preventDefault(),t(l(this))&&l("#job_package_selection").submit()}),l(".cts-pricing-item .cts-trigger-buy-new").click(function(e){e.preventDefault();var t=l(this).parents(".pricing-item");if(!t.length)return!1;t.find("input.cts-buy-new").prop("checked",!0),l("#job_package_selection").submit()}),l(".cts-wcpl-package a.select-plan").on("click",function(e){e.preventDefault(),l(this).siblings(".c27-job-package-radio-button").prop("checked",!0),l("#job_package_selection").submit()}),function(){if(!l("#user-cart-menu").length)return;l(document.body).one("wc_fragments_loaded",function(e){l("#user-cart-menu").addClass("user-cart-updated")})}(),l(document).on("mousedown click",".c27-copy-link",function(e){e.preventDefault();var t=l(this);if(!t.hasClass("copying")){t.addClass("copying");var i=t.find("span"),n=i.html(),a=t.attr("href"),s=l("<input>");l("body").append(s),s.val(a).select(),document.execCommand("copy"),s.remove(),i.html(CASE27.l10n.copied_to_clipboard),setTimeout(function(){i.html(n),t.removeClass("copying")},1500)}}),function(){var e=l(".c27-main-header");if(e.length&&e.hasClass("header-fixed")){var t=null,i=0,n=e.outerHeight();l(window).on("scroll",MyListing.Helpers.debounce(function(){i=l(window).scrollTop(),t!==i&&(n<i||n<i&&null===t?e.addClass("header-scroll"):e.removeClass("header-scroll"),n+250<i?e.addClass("header-scroll-hide"):e.removeClass("header-scroll-hide"),n<i&&i<t||null===t?e.addClass("header-scroll-active"):e.removeClass("header-scroll-active"),t=i)},20))}}(),l(".modal-27").on("show.bs.modal",function(){l(this).addClass("show-modal")}),l(".modal-27").on("hidden.bs.modal",function(){l(this).removeClass("show-modal")}),l(".modal-27").on("hide.bs.modal",function(e){var t=l(this);t.hasClass("in")?(e.preventDefault(),t.removeClass("in"),l("body").addClass("modal-closing"),setTimeout(function(){t.modal("hide")},200)):l("body").removeClass("modal-closing")}),l(".elementor-element[data-mylisting-link-to]").each(function(){var e=l(this).data("mylisting-link-to");if("object"===yi(e)&&"undefined"!==e.url){var t=l('<a class="mylisting-link-to"></a>');t.attr("href",e.url),e.is_external&&t.attr("target","_blank"),e.nofollow&&t.attr("rel","nofollow");var i=l(this).find(".elementor-column-wrap");i.length?i.append(t):l(this).find(".elementor-widget-wrap").append(t)}}),l(".cts-open-chat").on("click",function(e){e.preventDefault();var t=l(this).data("user-id")||null,i=l(this).data("post-data");if(!l("body").hasClass("logged-in"))return window.location.href=CASE27.login_url;MyListing.Messages.open(t,i),setTimeout(function(){l(MyListing.Messages.$el).find("#ml-conv-textarea").focus()},150)}),l("#quicksearch-mobile-modal").on("shown.bs.modal",function(e){e.preventDefault(),setTimeout(function(){l('#quicksearch-mobile-modal input[name="search_keywords"]').focus().get(0).click()},800)}),l(".mobile-nav-head .user-profile-name").on("click",function(e){e.preventDefault(),l(".mobile-user-menu").slideToggle()}),(e=document.getElementById("commentform"))&&e.removeAttribute("novalidate")}),jQuery(document).ready(function(s){if(!s("#commentform").length)return!1;s("#commentform")[0].encoding="multipart/form-data",s("body").on("click",".review-gallery-image-remove",function(e){e.preventDefault(),s(this).parents(".review-gallery-image").remove()});s("#review-gallery-add-input").on("change",function(){s("#review-gallery-preview").html(""),function(e,i){if(e.files)for(var t=e.files.length,n=0;n<t;n++){var a=new FileReader;a.onload=function(e){var t=s('<div class="review-gallery-image"><span class="review-gallery-preview-icon"><i class="material-icons">file_upload</i></span></div>').css("background-image","url('"+e.target.result+"')");s(t).appendTo(i)},a.readAsDataURL(e.files[n])}}(this,"#review-gallery-preview")})}),(s=jQuery)(".profile-tab-toggle").on("click",function(e){e.preventDefault(),s(".profile-menu li.active").removeClass("active"),s(e.target).parent().addClass("active");var t=s(".listing-tab.tab-active"),i=s(e.target).data("section-id"),n=s(".listing-tab#profile_tab_"+i);if(t.attr("id")==="profile_tab_"+i)return t.addClass("tab-same"),void setTimeout(function(){return t.removeClass("tab-same")},100);t.addClass("tab-hiding"),setTimeout(function(){t.removeClass("tab-active tab-hiding").addClass("tab-hidden"),n.addClass("tab-showing"),setTimeout(function(){n.removeClass("tab-hidden tab-showing").addClass("tab-active").trigger("mylisting:single:tab-switched"),jQuery(document).trigger("mylisting/single:tab-switched")},25)},200)}),jQuery(function(t){if(void 0!==window.MyListing_Switch_Config){var i="tr.woocommerce-grouped-product-list-item.product-type-job_package_subscription";if(t(i).length){var e=window.MyListing_Switch_Config;t(".single-product "+i+"#product-"+e.current_plan+" label a").append("<span>"+e.current_plan_text+"</span>"),t(".single_add_to_cart_button").hide(),t(i).click(function(e){e.preventDefault(),t(e.target).find('input[type="checkbox"]').prop("checked",!0),t(i).parents("form").submit()})}}}),MyListing.Dialog=function(e){this.visible=!1,this.args=jQuery.extend({message:"",status:"info",dismissable:!0,spinner:!1,timeout:3e3},e),this.show(),this.setTimeout()},MyListing.Dialog.prototype.draw=function(){this.template=jQuery(jQuery("#mylisting-dialog-template").text()),this.template.addClass(this.args.status),this.insertContent(),this.template.appendTo("body")},MyListing.Dialog.prototype.refresh=function(e){this.args=jQuery.extend(this.args,e),this.setTimeout(),this.insertContent()},MyListing.Dialog.prototype.insertContent=function(){var t=this;this.template.find(".mylisting-dialog--message").html(this.args.message),this.template.find(".mylisting-dialog--dismiss")[this.args.dismissable?"removeClass":"addClass"]("hide").click(function(e){e.preventDefault(),t.hide()}),this.template.find(".mylisting-dialog--loading")[this.args.spinner?"removeClass":"addClass"]("hide")},MyListing.Dialog.prototype.setTimeout=function(){var e=this;e.timeout&&clearTimeout(e.timeout),!isNaN(e.args.timeout)&&0<e.args.timeout&&(e.timeout=setTimeout(function(){e.hide()},e.args.timeout))},MyListing.Dialog.prototype.show=function(){var e=this;e.draw(),setTimeout(function(){e.template.addClass("slide-in"),e.visible=!0},15)},MyListing.Dialog.prototype.hide=function(){var e=this;e.template.removeClass("slide-in").addClass("slide-out"),setTimeout(function(){e.template.remove(),e.visible=!1},250)},Vue.component("wp-search-filter",{props:{listingType:String,filterKey:String,location:String,label:String},mounted:function(){var e=this;this.$nextTick(function(){e.$root.$on("reset-filters:"+e.listingType,function(){e.filters[e.filterKey]=""})})},methods:{updateInput:function(){this.filters[this.filterKey]=this.$refs.input.value,this.$emit("input",this.$refs.input.value,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location})}},computed:{filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("text-filter",{props:{listingType:String,filterKey:String,location:String,label:String},mounted:function(){var e=this;this.$nextTick(function(){e.$root.$on("reset-filters:"+e.listingType,function(){e.filters[e.filterKey]=""})})},methods:{updateInput:function(){this.filters[this.filterKey]=this.$refs.input.value,this.$emit("input",this.$refs.input.value,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location})}},computed:{filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("location-filter",{props:{listingType:String,filterKey:String,location:String,label:String},data:function(){return{latitudeKey:"lat",longitudeKey:"lng"}},created:function(){this.$root.$on("request-location:"+this.listingType,this.requestALocation)},mounted:function(){var e=this;this.$nextTick(function(){MyListing.Maps&&MyListing.Maps.loaded?new MyListing.Maps.Autocomplete(e.$refs.input):jQuery(document).on("maps:loaded",function(){new MyListing.Maps.Autocomplete(e.$refs.input)}),jQuery(e.$root.$el).find(".finder-search").on("scroll",MyListing.Helpers.debounce(function(e){jQuery(".pac-container").css("display","none"),jQuery(".cts-autocomplete-dropdown").removeClass("active")},100,{leading:!0,trailing:!1})),e.$root.$on("reset-filters:"+e.listingType,function(){e.filters[e.filterKey]="",e.filters[e.latitudeKey]=!1,e.filters[e.longitudeKey]=!1})})},methods:{handleAutocomplete:function(t){var i=this,e=t.detail.place;t.target.value.length?e.address&&e.latitude&&e.longitude?this.updateInput(e):MyListing.Geocoder.geocode(t.target.value,function(e){e&&(e.address=t.target.value,i.updateInput(e))}):this.updateInput({address:"",latitude:!1,longitude:!1})},updateInput:function(e,t,i){var n=!(1<arguments.length&&void 0!==t)||t,a=2<arguments.length&&void 0!==i&&i;this.filters[this.filterKey]=e.address,this.filters[this.latitudeKey]=e.latitude,this.filters[this.longitudeKey]=e.longitude,this.$emit("input",this.filters[this.filterKey],{filterType:this.$options.name,filterKey:this.filterKey,location:this.location,shouldDebounce:n,forceGet:a})},updateWithUserLocation:MyListing.Helpers.debounce(function(){var t=this;MyListing.Geocoder.getUserLocation({receivedAddress:function(e){return t.updateInput(e)},geolocationFailed:function(){new MyListing.Dialog({message:CASE27.l10n.geolocation_failed})}})},1e3,{leading:!0,trailing:!1}),requestALocation:function(){var t=this,e=this.currentLocation;if(e.address&&e.latitude&&e.longitude)return this.updateInput(e,!1,!0);if(!e.address||e.latitude||e.longitude){var i=new MyListing.Dialog({message:CASE27.l10n.nearby_listings_retrieving_location,timeout:!1,dismissable:!1,spinner:!0});MyListing.Geocoder.getUserLocation({receivedAddress:function(e){t.updateInput(e,!0,!0),i.refresh({message:CASE27.l10n.nearby_listings_searching,timeout:2e3,spinner:!0,dismissable:!1})},geolocationFailed:function(){i.refresh({message:CASE27.l10n.nearby_listings_location_required,timeout:4e3,dismissable:!0,spinner:!1}),t.updateInput(t.currentLocation,!0,!0),jQuery(t.$refs.input).focus().one("input",function(){return i.hide()})}})}else{var n=CASE27_Explore_Settings.Cache;void 0!==n.defaultLocation?this.updateInput(n.defaultLocation,!0,!0):MyListing.Geocoder.geocode(e.address,function(e){n.defaultLocation={address:e?e.address:"",latitude:!!e&&e.latitude,longitude:!!e&&e.longitude},t.updateInput(n.defaultLocation,!0,!0)})}}},computed:{currentLocation:function(){return{address:this.filters[this.filterKey]?this.filters[this.filterKey]:"",latitude:this.filters[this.latitudeKey],longitude:this.filters[this.longitudeKey]}},filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("proximity-filter",{props:{listingType:String,filterKey:String,location:String,label:String,units:String,max:Number,step:Number,default:Number},data:function(){return{locked:!1}},mounted:function(){var e=this;this.$nextTick(function(){jQuery(e.$refs.slider).slider({range:"min",min:0,max:e.max,step:e.step,slide:e.updateInput,value:e.filters[e.filterKey]?parseFloat(e.filters[e.filterKey]):e.default}),e.$root.$on("reset-filters:"+e.listingType,function(){e.filters[e.filterKey]=e.default,e.updateUI()})})},methods:{updateInput:function(e,t){this.locked||(this.filters[this.filterKey]=t.value,this.$emit("input",t.value,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location}))},updateUI:function(){this.locked=!0;var e=this.filters[this.filterKey]?parseFloat(this.filters[this.filterKey]):this.default;jQuery(this.$refs.slider).slider("value",e),this.locked=!1}},computed:{displayValue:function(){var e=isNaN(parseFloat(this.filters[this.filterKey]))?this.filters[this.filterKey]:parseFloat(this.filters[this.filterKey]).toLocaleString();return"".concat(this.label," ").concat(e).concat(this.units)},filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("date-filter",{props:{listingType:String,filterKey:String,location:String,label:String,type:String,l10n:Object},data:function(){return{startDate:"",endDate:"",dateFormat:"YYYY-MM-DD",locked:!1,startPicker:null,endPicker:null}},created:function(){var e=this.filters[this.filterKey].split(".."),t=moment(e[0]?e[0]:""),i=moment(e[1]?e[1]:"");this.startDate=t.isValid()?t.clone().locale("en").format(this.dateFormat):"",this.endDate=i.isValid()?i.clone().locale("en").format(this.dateFormat):""},mounted:function(){var t=this;this.$nextTick(function(){t.startPicker=new MyListing.Datepicker(t.$refs.startpicker),t.endPicker=new MyListing.Datepicker(t.$refs.endpicker),jQuery(t.$root.$el).find(".finder-search").on("scroll",MyListing.Helpers.debounce(function(e){t.startPicker.drp.hide(),t.endPicker.drp&&t.endPicker.drp.hide()},100,{leading:!0,trailing:!1})),t.$root.$on("reset-filters:"+t.listingType,function(){t.locked=!0,t.startDate=t.endDate="",t.startPicker.setValue(moment("")),t.endPicker.setValue(moment("")),t.locked=!1})})},methods:{updateInput:function(){if("exact"===this.type)var e=this.startDate;else if(this.startDate||this.endDate)e="".concat(this.startDate,"..").concat(this.endDate);else e="";this.filters[this.filterKey]=e,this.locked||this.$emit("input",e,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location,shouldDebounce:!1})}},computed:{filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("date-year-filter",{props:{listingType:String,filterKey:String,location:String,choices:Array,label:String,type:String,l10n:Object},data:function(){return{startDate:"",endDate:"",dateFormat:"YYYY",locked:!1}},created:function(){var e=this.filters[this.filterKey].split(".."),t=moment(e[0]?e[0]:""),i=moment(e[1]?e[1]:"");this.startDate=t.isValid()?t.clone().locale("en").format(this.dateFormat):"",this.endDate=i.isValid()?i.clone().locale("en").format(this.dateFormat):""},mounted:function(){var e=this;this.$nextTick(function(){new MyListing.CustomSelect(e.$refs.startpicker),new MyListing.CustomSelect(e.$refs.endpicker),e.$root.$on("reset-filters:"+e.listingType,function(){e.locked=!0,e.startDate=e.endDate="",jQuery(e.$refs.startpicker).val("").trigger("change").trigger("select2:close"),jQuery(e.$refs.endpicker).val("").trigger("change").trigger("select2:close"),e.locked=!1})})},methods:{updateInput:function(){if("exact"===this.type)var e=this.startDate;else if(this.startDate||this.endDate)e="".concat(this.startDate,"..").concat(this.endDate);else e="";this.filters[this.filterKey]=e,this.locked||this.$emit("input",e,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location,shouldDebounce:!1})}},computed:{filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("recurring-date-filter",{props:{listingType:String,filterKey:String,location:String,label:String,presets:Array,enableDatepicker:Boolean,enableTimepicker:Boolean,l10n:Object},data:function(){return{selected:"@custom",startDate:"",endDate:"",dateFormat:this.enableTimepicker?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",locked:!1,startPicker:null,endPicker:null}},created:function(){var t=this.filters[this.filterKey];if(this.enableDatepicker&&-1!==t.indexOf("..")){var e=moment(t.split("..")[0]),i=moment(t.split("..")[1]);this.selected="@custom",this.startDate=e.isValid()?e.clone().locale("en").format(this.dateFormat):"",this.endDate=i.isValid()?i.clone().locale("en").format(this.dateFormat):""}else{var n=this.presets.find(function(e){return e.key===t});this.selected=n?n.key:this.presets.length?this.presets[0].key:"@custom"}},mounted:function(){var t=this;this.$nextTick(function(){var e=t.enableTimepicker;t.startPicker=new MyListing.Datepicker(t.$refs.start,{timepicker:e}),t.endPicker=new MyListing.Datepicker(t.$refs.end,{timepicker:e}),t.endPicker.do(function(e){return e.drp.minDate=moment(t.startDate)}),jQuery(t.$root.$el).find(".finder-search").on("scroll",MyListing.Helpers.debounce(function(e){t.startPicker.drp.hide(),t.endPicker.drp.hide()},100,{leading:!0,trailing:!1})),new MyListing.CustomSelect(t.$refs.select),t.$root.$on("reset-filters:"+t.listingType,function(){t.locked=!0,t.selected=t.presets.length?t.presets[0].key:"@custom",t.startPicker.setValue(moment("")),t.endPicker.setValue(moment("")),t.locked=!1})})},methods:{setPreset:function(e){this.selected!==e&&(this.selected=e,this.updateInput())},updateInput:function(){var t=this;if("@custom"===this.selected&&this.enableDatepicker){this.endPicker.do(function(e){return e.drp.minDate=moment(t.startDate)}),this.startDate||(this.endDate="",this.endPicker.do(function(e){e.value=moment(""),e.updateInputValues()}));var e=this.startDate?"".concat(this.startDate,"..").concat(this.endDate):""}else if("@custom"!==this.selected)if(this.presets.length&&this.presets[0].key===this.selected)e="";else e=this.selected;this.filters[this.filterKey]=e,this.locked||this.$emit("input",e,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location,shouldDebounce:!1})}},computed:{filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("range-filter",{props:{listingType:String,filterKey:String,location:String,label:String,value:String,type:String,prefix:String,suffix:String,behavior:String,min:Number,max:Number,step:Number,formatValue:Boolean},data:function(){return{defaultValue:"range"===this.type?"".concat(this.min,"..").concat(this.max):"upper"===this.behavior?this.min:this.max,locked:!1,debounceUIUpdate:MyListing.Helpers.debounce(this.updateUI,200)}},mounted:function(){var i=this;this.$nextTick(function(){var e={range:"single"!==i.type||"min",min:i.min,max:i.max,step:i.step,slide:i.updateInput};if("single"===i.type&&(e.value=i.value?parseFloat(i.value):"upper"===i.behavior?i.min:i.max,"upper"===i.behavior&&(e.classes={"ui-slider":"reverse-dir"})),"range"===i.type){var t=i.value.split("..");e.values=[t[0]?parseFloat(t[0]):i.min,t[1]?parseFloat(t[1]):i.max]}jQuery(i.$refs.slider).slider(e),i.$root.$on("reset-filters:"+i.listingType,function(){i.filters[i.filterKey]="",i.updateUI()})})},methods:{updateInput:function(e,t){if(!this.locked){"single"===this.type?this.step+t.value>this.max&&(this.filters[this.filterKey]=t.value=this.max,this.updateUI()):this.step+t.values[1]>this.max&&(t.values[1]=this.max,this.filters[this.filterKey]="".concat(t.values[0],"..").concat(t.values[1]),this.updateUI());var i="single"===this.type?t.value:"".concat(t.values[0],"..").concat(t.values[1]),n=i!==this.defaultValue?i:"";this.$set(this.filters,this.filterKey,n),this.$emit("input",n,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location})}},updateUI:function(){this.locked=!0;var e=this.filters[this.filterKey]?this.filters[this.filterKey]:this.defaultValue;"single"===this.type?jQuery(this.$refs.slider).slider("value",e):jQuery(this.$refs.slider).slider("values",e.split("..")),this.locked=!1}},computed:{displayValue:function(){var e=this.filters[this.filterKey]?this.filters[this.filterKey]:this.defaultValue;if("single"===this.type){e=!isNaN(parseFloat(e))&&this.formatValue?parseFloat(e).toLocaleString():e;return"".concat(this.prefix).concat(e).concat(this.suffix)}var t=e.split(".."),i=!isNaN(parseFloat(t[0]))&&this.formatValue?parseFloat(t[0]).toLocaleString():t[0],n=!isNaN(parseFloat(t[1]))&&this.formatValue?parseFloat(t[1]).toLocaleString():t[1];return jQuery("body").hasClass("rtl")?"".concat(this.prefix).concat(n).concat(this.suffix," — ").concat(this.prefix).concat(i).concat(this.suffix):"".concat(this.prefix).concat(i).concat(this.suffix," — ").concat(this.prefix).concat(n).concat(this.suffix)},targetFilter:function(){return this.filters[this.filterKey]},filters:function(){return this.$root.types[this.listingType].filters}},watch:{targetFilter:function(){this.debounceUIUpdate()}}}),Vue.component("dropdown-filter",{props:{listingType:String,filterKey:String,location:String,label:String,multiple:Boolean,choices:Array},data:function(){return{selected:this.multiple?[]:""}},created:function(){this.selected=this.multiple?this.filters[this.filterKey].split(","):this.filters[this.filterKey]},mounted:function(){var e=this;this.$nextTick(function(){new MyListing.CustomSelect(e.$refs.select),e.$root.$on("reset-filters:"+e.listingType,function(){e.selected=e.multiple?[]:"",e.filters[e.filterKey]="",jQuery(e.$refs.select).val(e.selected).trigger("change").trigger("select2:close")})})},methods:{handleChange:function(e){this.selected=this.multiple?Array.isArray(e.detail.value)?e.detail.value:[]:"string"==typeof e.detail.value?e.detail.value:"",this.updateInput()},updateInput:function(){var e=this.multiple?this.selected.filter(Boolean).join(","):this.selected;this.filters[this.filterKey]=e,this.$emit("input",e,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location})},isSelected:function(e){return this.multiple?this.selected.includes(e):e===this.selected}},computed:{filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("dropdown-terms-filter",{props:{listingType:String,filterKey:String,location:String,ajaxParams:String,label:String,preSelected:Array},data:function(){return{selected:[]}},created:function(){this.selected=this.filters[this.filterKey].split(",")},mounted:function(){var e=this;this.$nextTick(function(){new MyListing.CustomSelect(e.$refs.select),e.$root.$on("reset-filters:"+e.listingType,function(){e.selected=e.filters[e.filterKey]=[],jQuery(e.$refs.select).val([]).trigger("change").trigger("select2:close")})})},methods:{handleChange:function(e){this.selected=Array.isArray(e.detail.value)?e.detail.value:[],this.updateInput()},updateInput:function(){var e=this.selected.join(",");this.filters[this.filterKey]=e,this.$emit("input",e,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location})}},computed:{filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("dropdown-hierarchy-filter",{props:{listingType:String,filterKey:String,location:String,label:String,ajaxParams:String,preSelected:String},data:function(){return{selected:""}},created:function(){this.selected=this.filters[this.filterKey]},mounted:function(){var e=this;this.$nextTick(function(){new MyListing.TermHierarchy(e.$refs.input),e.$root.$on("reset-filters:"+e.listingType,function(){e.selected=e.filters[e.filterKey]="",jQuery(e.$el).find(".term-select-0 select").val("").trigger("change").trigger("select2:close")})})},methods:{handleChange:function(e){this.selected="string"==typeof e.detail.value?e.detail.value:"",this.updateInput()},updateInput:function(){this.filters[this.filterKey]=this.selected,this.$emit("input",this.selected,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location})}},computed:{filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("checkboxes-filter",{props:{listingType:String,filterKey:String,location:String,label:String,multiple:Boolean,choices:Array},data:function(){return{selected:this.multiple?[]:""}},created:function(){this.selected=this.multiple?this.filters[this.filterKey].split(","):this.filters[this.filterKey]},mounted:function(){var e=this;this.$nextTick(function(){e.$root.$on("reset-filters:"+e.listingType,function(){e.selected=e.multiple?[]:"",e.filters[e.filterKey]=""})})},methods:{updateInput:function(){var e=this.multiple?this.selected.filter(Boolean).join(","):this.selected;this.filters[this.filterKey]=e,this.$emit("input",e,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location})}},computed:{filters:function(){return this.$root.types[this.listingType].filters},filterId:function(){return"fid:".concat(this.listingType,"-").concat(this.filterKey,"-").concat(this._uid)}}}),Vue.component("related-listing-filter",{props:{listingType:String,filterKey:String,location:String,ajaxParams:String,label:String,preSelected:Array,multiple:Boolean},data:function(){return{selected:this.multiple?[]:""}},created:function(){this.selected=this.multiple?this.filters[this.filterKey].split(","):this.filters[this.filterKey]},mounted:function(){var e=this;this.$nextTick(function(){e.$refs.select.dataset.mylistingAjax=!0,e.$refs.select.dataset.mylistingAjaxUrl="mylisting_list_posts",e.$refs.select.dataset.mylistingAjaxParams=e.ajaxParams,new MyListing.CustomSelect(e.$refs.select),e.$root.$on("reset-filters:"+e.listingType,function(){e.selected=e.filters[e.filterKey]=e.multiple?[]:"",jQuery(e.$refs.select).val(e.selected).trigger("change").trigger("select2:close")})})},methods:{handleChange:function(e){this.selected=this.multiple?Array.isArray(e.detail.value)?e.detail.value:[]:"string"==typeof e.detail.value?e.detail.value:"",this.updateInput()},updateInput:function(){var e=this.multiple?this.selected.join(","):this.selected;this.filters[this.filterKey]=e,this.$emit("input",e,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location})}},computed:{filters:function(){return this.$root.types[this.listingType].filters}}}),Vue.component("order-filter",{props:{listingType:String,filterKey:String,choices:Array,location:String,label:String},data:function(){return{locked:!1}},mounted:function(){var i=this;this.$nextTick(function(){new MyListing.CustomSelect(i.$refs.select);var t=i.filters[i.filterKey];t&&i.choices.find(function(e){return e.key===t})||!i.choices.length||(i.filters[i.filterKey]=i.choices[0].key,i.updateUI()),i.$root.$on("reset-filters:"+i.listingType,function(){var e=i.choices.length?i.choices[0].key:null;i.filters[i.filterKey]=e,i.updateUI()})})},methods:{updateInput:function(){this.locked||(this.filters[this.filterKey]=this.$refs.select.value,this.hasNote(this.filters[this.filterKey],"has-proximity-clause")?this.$root.$emit("request-location:"+this.listingType):this.$emit("input",this.$refs.select.value,{filterType:this.$options.name,filterKey:this.filterKey,location:this.location,shouldDebounce:!1}))},updateUI:function(){this.locked=!0,jQuery(this.$refs.select).val(this.filters[this.filterKey]).trigger("change").trigger("select2:close"),this.locked=!1},hasNote:function(t,e){return!(!(t=this.choices.find(function(e){return e.key===t}))||!t.notes)&&-1!==t.notes.indexOf(e)}},computed:{wrapperClasses:function(){var e=this.currentChoice;return e&&e.notes?e.notes:[]},currentChoice:function(){var t=this;return this.choices.find(function(e){return e.key===t.filters.sort})},locationDetails:function(){return this.$root.hasValidLocation(this.listingType)?this.filters.search_location:CASE27.l10n.nearby_listings_location_required},filters:function(){return this.$root.types[this.listingType].filters}},watch:{"filters.sort":function(e){this.updateUI()}}});function r(){jQuery(".mylisting-basic-form").each(function(e,t){if(!t.dataset.inited){t.dataset.inited=!0;var i=JSON.parse(t.dataset.listingTypes),n=JSON.parse(t.dataset.config);new Vue({el:t,data:{activeType:!1,types:i,targetURL:n.target_url,tabMode:n.tabs_mode,typesDisplay:n.types_display,boxShadow:n.box_shadow,formId:n.form_id},created:function(){var e=Object.keys(this.types);e.length&&(this.activeType=this.types[e[0]])},methods:{typeDropdownChanged:function(e){this.activeType!==this.types[e]&&(this.activeType=this.types[e],jQuery(this.$refs["types-dropdown-".concat(this.activeType.id)]).val(e).trigger("change").trigger("select2:close"))},filterChanged:function(e,t){},hasValidLocation:function(e){},submit:function(){var i=this.activeType.filters,n={type:this.activeType.slug,tab:"search-form"};Object.keys(i).forEach(function(e){var t=i[e];("proximity"!==e||i.lat&&i.lng)&&(t&&void 0!==t.length&&t.length?n[e]=t:"number"==typeof t&&t&&(n[e]=t))});var e=jQuery.param(n).replace(/%2C/g,",");window.location.href="".concat(this.targetURL,"?").concat(e)}}})}})}r(),document.addEventListener("DOMContentLoaded",r),document.addEventListener("mylisting:refresh-basic-forms",r)});
/*! This file is auto-generated */
!function(c,d){"use strict";var e=!1,n=!1;if(d.querySelector)if(c.addEventListener)e=!0;if(c.wp=c.wp||{},!c.wp.receiveEmbedMessage)if(c.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,a,i,s=d.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=d.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=0;o<n.length;o++)n[o].style.display="none";for(o=0;o<s.length;o++)if(r=s[o],e.source===r.contentWindow){if(r.removeAttribute("style"),"height"===t.message){if(1e3<(i=parseInt(t.value,10)))i=1e3;else if(~~i<200)i=200;r.height=i}if("link"===t.message)if(a=d.createElement("a"),i=d.createElement("a"),a.href=r.getAttribute("src"),i.href=t.value,i.host===a.host)if(d.activeElement===r)c.top.location.href=t.value}}},e)c.addEventListener("message",c.wp.receiveEmbedMessage,!1),d.addEventListener("DOMContentLoaded",t,!1),c.addEventListener("load",t,!1);function t(){if(!n){n=!0;for(var e,t,r=-1!==navigator.appVersion.indexOf("MSIE 10"),a=!!navigator.userAgent.match(/Trident.*rv:11\./),i=d.querySelectorAll("iframe.wp-embedded-content"),s=0;s<i.length;s++){if(!(e=i[s]).getAttribute("data-secret"))t=Math.random().toString(36).substr(2,10),e.src+="#?secret="+t,e.setAttribute("data-secret",t);if(r||a)(t=e.cloneNode(!0)).removeAttribute("security"),e.parentNode.replaceChild(t,e)}}}}(window,document);
"use strict";(function(arr){arr.forEach(function(item){if(item.hasOwnProperty('remove')){return;}Object.defineProperty(item,'remove',{configurable:true,enumerable:true,writable:true,value:function remove(){this.parentNode.removeChild(this);}});});})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){W=t}function r(t){z=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof U?function(){U(a)}:c()}function s(){var t=0,e=new H(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<N;t+=2){var e=Q[t],n=Q[t+1];e(n),Q[t]=void 0,Q[t+1]=void 0}N=0}function f(){try{var t=Function("return this")().require("vertx");return U=t.runOnLoop||t.runOnContext,i()}catch(e){return c()}}function l(t,e){var n=this,r=new this.constructor(p);void 0===r[V]&&x(r);var o=n._state;if(o){var i=arguments[o-1];z(function(){return T(o,r,i,n._result)})}else j(n,r,t,e);return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return w(n,t),n}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function _(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function y(t,e,n){z(function(t){var r=!1,o=_(n,e,function(n){r||(r=!0,e!==n?w(t,n):A(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function m(t,e){e._state===Z?A(t,e._result):e._state===$?S(t,e._result):j(e,void 0,function(e){return w(t,e)},function(e){return S(t,e)})}function b(t,n,r){n.constructor===t.constructor&&r===l&&n.constructor.resolve===h?m(t,n):void 0===r?A(t,n):e(r)?y(t,n,r):A(t,n)}function w(e,n){if(e===n)S(e,v());else if(t(n)){var r=void 0;try{r=n.then}catch(o){return void S(e,o)}b(e,n,r)}else A(e,n)}function g(t){t._onerror&&t._onerror(t._result),E(t)}function A(t,e){t._state===X&&(t._result=e,t._state=Z,0!==t._subscribers.length&&z(E,t))}function S(t,e){t._state===X&&(t._state=$,t._result=e,z(g,t))}function j(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+Z]=n,o[i+$]=r,0===i&&t._state&&z(E,t)}function E(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?T(n,r,o,i):o(i);t._subscribers.length=0}}function T(t,n,r,o){var i=e(r),s=void 0,u=void 0,c=!0;if(i){try{s=r(o)}catch(a){c=!1,u=a}if(n===s)return void S(n,d())}else s=o;n._state!==X||(i&&c?w(n,s):c===!1?S(n,u):t===Z?A(n,s):t===$&&S(n,s))}function M(t,e){try{e(function(e){w(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function P(){return tt++}function x(t){t[V]=tt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function C(){return new Error("Array Methods must be provided an Array")}function O(t){return new et(this,t).promise}function k(t){var e=this;return new e(L(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function F(t){var e=this,n=new e(p);return S(n,t),n}function Y(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function D(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=nt}var K=void 0;K=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var L=K,N=0,U=void 0,W=void 0,z=function(t,e){Q[N]=t,Q[N+1]=e,N+=2,2===N&&(W?W(a):R())},B="undefined"!=typeof window?window:void 0,G=B||{},H=G.MutationObserver||G.WebKitMutationObserver,I="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),J="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Q=new Array(1e3),R=void 0;R=I?o():H?s():J?u():void 0===B&&"function"==typeof require?f():c();var V=Math.random().toString(36).substring(2),X=void 0,Z=1,$=2,tt=0,et=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[V]||x(this.promise),L(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&A(this.promise,this._result))):S(this.promise,C())}return t.prototype._enumerate=function(t){for(var e=0;this._state===X&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===h){var o=void 0,i=void 0,s=!1;try{o=t.then}catch(u){s=!0,i=u}if(o===l&&t._state!==X)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===nt){var c=new n(p);s?S(c,i):b(c,t,o),this._willSettleAt(c,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===X&&(this._remaining--,t===$?S(r,n):this._result[e]=n),0===this._remaining&&A(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;j(t,void 0,function(t){return n._settledAt(Z,e,t)},function(t){return n._settledAt($,e,t)})},t}(),nt=function(){function t(e){this[V]=P(),this._result=this._state=void 0,this._subscribers=[],p!==e&&("function"!=typeof e&&Y(),this instanceof t?M(this,e):q())}return t.prototype["catch"]=function(t){return this.then(null,t)},t.prototype["finally"]=function(t){var n=this,r=n.constructor;return e(t)?n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):n.then(t,t)},t}();return nt.prototype.then=l,nt.all=O,nt.race=k,nt.resolve=h,nt.reject=F,nt._setScheduler=n,nt._setAsap=r,nt._asap=z,nt.polyfill=D,nt.Promise=nt,nt.polyfill(),nt});if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;}
if(!Element.prototype.closest){Element.prototype.closest=function(s){var el=this;do{if(el.matches(s))return el;el=el.parentElement||el.parentNode;}while(el!==null&&el.nodeType===1);return null;};}
window.SUPER={};SUPER.files=[];SUPER.reCaptchaScriptLoaded=false;SUPER.reCaptchaverifyCallback=function($response,$version,$element){$element.attr('data-response',$response);};SUPER.add_error_status_parent_layout_element=function($,el){var index;index=$(el).parents('.super-multipart:eq(0)').index('.super-form form .super-multipart');if(el.closest('.super-form')&&el.closest('.super-form').querySelectorAll('.super-multipart-step')[index]){el.closest('.super-form').querySelectorAll('.super-multipart-step')[index].classList.add('super-error');}
if(el.closest('.super-tabs')){index=$(el.closest('.super-tabs-content')).index();if(el.closest('.super-tabs').querySelectorAll('.super-tabs-tab')[index]){el.closest('.super-tabs').querySelectorAll('.super-tabs-tab')[index].classList.add('super-error');}}
if(el.closest('.super-accordion-item')){el.closest('.super-accordion-item').classList.add('super-error');}};SUPER.remove_error_status_parent_layout_element=function($,el){var index;if(el.closest('.super-multipart')&&!el.closest('.super-multipart').querySelector('.super-error-active')){index=$(el).parents('.super-multipart:eq(0)').index('.super-form form .super-multipart');if(el.closest('.super-form')&&el.closest('.super-form').querySelectorAll('.super-multipart-step')[index]){el.closest('.super-form').querySelectorAll('.super-multipart-step')[index].classList.remove('super-error');}}
if(el.closest('.super-tabs-content')&&!el.closest('.super-tabs-content').querySelector('.super-error-active')){index=$(el.closest('.super-tabs-content')).index();if(el.closest('.super-tabs')&&el.closest('.super-tabs').querySelectorAll('.super-tabs-tab')[index]){el.closest('.super-tabs').querySelectorAll('.super-tabs-tab')[index].classList.remove('super-error');}}
if(el.closest('.super-accordion-item')&&!el.closest('.super-accordion-item').querySelector('.super-error-active')){el.closest('.super-accordion-item').classList.remove('super-error');}};function SUPERreCaptchaRender(){var $=jQuery;$('.super-shortcode.super-field.super-recaptcha:not(.super-rendered)').each(function(){var $this=$(this);var $element=$this.find('.super-recaptcha');var $form=$this.closest('.super-form');var $form_id=$form.find('input[name="hidden_form_id"]').val();$element.attr('data-form',$form_id);$element.attr('id','super-recaptcha-'+$form_id);if($form.length===0){$this.html('<i>reCAPTCHA will only be generated and visible in the Preview or Front-end</i>');}
if($this.data('sitekey')===''){$this.html('<i>reCAPTCHA API key and secret are empty, please navigate to:<br />Super Forms > Settings > Form Settings and fill out your reCAPTCHA API key and secret</i>');}else{if(typeof $form_id!=='undefined'){var checkExist=setInterval(function(){if((typeof grecaptcha!=='undefined')&&(typeof grecaptcha.render!=='undefined')){clearInterval(checkExist);$this.addClass('super-rendered');try{grecaptcha.render('super-recaptcha-'+$form_id,{sitekey:$element.data('sitekey'),theme:'light',callback:function(token){SUPER.reCaptchaverifyCallback(token,'v2',$element);}});}
catch(error){}}},100);}}});}
function SUPERreCaptcha(){var $=jQuery;if($('.super-shortcode.super-field.super-recaptcha:not(.super-rendered)').length){if((typeof grecaptcha==='undefined')||(typeof grecaptcha.render==='undefined')){if(!SUPER.reCaptchaScriptLoaded){$.getScript('https://www.google.com/recaptcha/api.js?onload=SUPERreCaptcha&render=explicit',function(){SUPER.reCaptchaScriptLoaded=true;SUPERreCaptchaRender();});}}else{if(!SUPER.reCaptchaScriptLoaded){SUPER.reCaptchaScriptLoaded=true;SUPERreCaptchaRender();}}}}
(function($){if(typeof super_common_i18n.ajaxurl==='undefined'){super_common_i18n.ajaxurl=ajaxurl;}
SUPER.debug_time=function($name){console.time($name);};SUPER.debug_time_end=function($name){console.timeEnd($name);};SUPER.debug=function($log){console.log($log);};SUPER.complete_submit=function(args){if(($(args.form).find('.g-recaptcha').length!=0)&&(typeof grecaptcha!=='undefined')){grecaptcha.ready(function(){grecaptcha.execute($(args.form).find('.g-recaptcha .super-recaptcha').attr('data-sitekey'),{action:'super_form_submit'}).then(function(token){args.token=token;SUPER.create_ajax_request(args);});});}else{SUPER.create_ajax_request(args);}};SUPER.create_ajax_request=function(args){var json_data;args.form=$(args.form);args.form0=args.form[0];args.showOverlay=args.form0.dataset.overlay;args.data=SUPER.after_form_data_collected_hook(args.data);args.data.super_hp=args.form.find('input[name="super_hp"]').val();if(args.data.super_hp!==''){return false;}
args.super_ajax_nonce=args.form.find('input[name="super_ajax_nonce"]').val();json_data=JSON.stringify(args.data);args.form.find('textarea[name="json_data"]').val(json_data);if(typeof args.token==='undefined'){if(args.form.find('.super-recaptcha:not(.g-recaptcha)').length!==0){args.version='v2';args.token=args.form.find('.super-recaptcha:not(.g-recaptcha) .super-recaptcha').attr('data-response');}}else{args.version='v3';}
args=SUPER.createLoadingOverlay(args);args.callback=function(){SUPER.submit_form(args);};SUPER.before_email_send_hook(args);};SUPER.createLoadingOverlay=function(args){args.loadingOverlay=document.createElement('div');var html='';html+='<div class="super-loading-wrapper">';html+='<div class="super-close"></div>';html+='<div class="super-loading-text">';html+='<div class="super-custom-el1"></div>';html+='<div class="super-inner-text"></div>';html+='<div class="super-progress">';html+='<div class="super-progress-bar"></div>';html+='</div>';html+='<div class="super-custom-el2"></div>';html+='</div>';html+='</div>';args.loadingOverlay.innerHTML=html;args.loadingOverlay.classList.add('super-loading-overlay');args.loadingOverlay.querySelector('.super-inner-text').innerHTML='<span>'+super_common_i18n.loadingOverlay.processing+'</span>';args.loadingOverlay.querySelector('.super-close').innerHTML='<span>'+super_common_i18n.loadingOverlay.close+'</span>';if(args.showOverlay==="true"){document.body.appendChild(args.loadingOverlay);}
var closeBtn=args.loadingOverlay.querySelector('.super-close');if(closeBtn){closeBtn.addEventListener('click',function(){SUPER.close_loading_overlay(args.loadingOverlay);});}
args.progressBar=document.querySelector('.super-loading-overlay .super-progress-bar');return args;};SUPER.submit_form=function(args){args.files=SUPER.files[args.form_id];if(args.files){args.loadingOverlay.querySelector('.super-inner-text').innerHTML='<span>'+super_common_i18n.loadingOverlay.uploading_files+'</span>';SUPER.upload_files(args,function(args){SUPER.process_form_data(args);});}else{SUPER.process_form_data(args);}};SUPER.get_single_uploaded_file_html=function(withoutHeader,uploaded,fileName,fileType,fileUrl){var html='',classes='';if(uploaded)classes=' class="super-uploaded"';if(withoutHeader){}else{html+='<div data-name="'+fileName+'" title="'+fileName+'" data-type="'+fileType+'"'+classes+'" data-url="'+fileUrl+'">';}
if(fileType&&fileType.indexOf("image/")===0){html+='<span class="super-fileupload-image super-file-type-'+fileType.replace('/','-')+'">';html+='<img src="'+fileUrl+'" />';html+='</span>';}else{html+='<span class="super-fileupload-document super-file-type-'+fileType.replace('/','-')+'"></span>';}
html+='<span class="super-fileupload-info">';var split=fileName.split('.');var filename=split[0];var ext=split[1];if(filename.length>10)filename=filename.substring(0,10)+'...';if(uploaded){html+='<a href="'+fileUrl+'" target="_blank">'+filename+'.'+ext+'</a>';}else{html+='<span class="super-fileupload-name">'+filename+'.'+ext+'</span>';html+='<span class="super-fileupload-delete"></span>';}
html+='</span>';if(withoutHeader){}else{html+='</div>';}
return html;};SUPER.upload_files=function(args,callback){args._process_form_data_callback=callback;args.formData=new FormData();var x=0;Object.keys(args.files).forEach(function(i){for(x=0;x<args.files[i].length;x++){args.formData.append('files['+i+']['+x+']',args.files[i][x]);}});if(x===0){args._process_form_data_callback(args);return true;}
args.formData.append('action','super_upload_files');if(args.form_id)args.formData.append('form_id',args.form_id);if(args.entry_id)args.formData.append('entry_id',args.entry_id);if(args.list_id)args.formData.append('list_id',args.list_id);if(args.token)args.formData.append('token',args.token);if(args.version)args.formData.append('version',args.version);$.ajax({type:'post',url:super_common_i18n.ajaxurl,data:args.formData,async:true,cache:false,contentType:false,processData:false,timeout:60000,xhr:function(){var xhr=new window.XMLHttpRequest();if(args.showOverlay==="true"){xhr.upload.addEventListener("progress",function(evt){if(evt.lengthComputable){var percentComplete=evt.loaded/evt.total;if(args.progressBar)args.progressBar.style.width=(100*percentComplete)+"%";}},false);}
return xhr;},success:function(result){result=JSON.parse(result);if(result.error===true){SUPER.form_submission_finished(args,result);}else{var i,uploadedFiles,updateHtml=[],html=[],activeFiles,fieldWrapper,filesWrapper,field,file,files=result;Object.keys(files).forEach(function(fieldName){activeFiles=args.form0.querySelector('.super-active-files[name="'+fieldName+'"]');if(!activeFiles)return true;fieldWrapper=activeFiles.closest('.super-field-wrapper');if(!fieldWrapper)return true;filesWrapper=fieldWrapper.querySelector('.super-fileupload-files');if(!filesWrapper)return true;uploadedFiles=filesWrapper.querySelectorAll('.super-uploaded');updateHtml[fieldName]={filesWrapper:filesWrapper,html:''}
for(i=0;i<uploadedFiles.length;i++){updateHtml[fieldName].html+=uploadedFiles[i].outerHTML;}});Object.keys(files).forEach(function(fieldName){if(typeof updateHtml[fieldName].filesWrapper==='undefined'){updateHtml[fieldName]={filesWrapper:filesWrapper,html:''}}
field=files[fieldName];activeFiles=args.form0.querySelector('.super-active-files[name="'+fieldName+'"]');if(!activeFiles)return true;fieldWrapper=activeFiles.closest('.super-field-wrapper');if(!fieldWrapper)return true;filesWrapper=fieldWrapper.querySelector('.super-fileupload-files');if(!filesWrapper)return true;for(i=0;i<field.files.length;i++){file=field.files[i];updateHtml[fieldName].html+=SUPER.get_single_uploaded_file_html(false,false,file.value,file.type,file.url);if(args.data[fieldName]){args.data[fieldName]['files'][i]['value']=file.value;args.data[fieldName]['files'][i]['type']=file.type;args.data[fieldName]['files'][i]['url']=file.url;if(file.subdir){args.data[fieldName]['files'][i]['subdir']=file.subdir;}
if(file.attachment){args.data[fieldName]['files'][i]['attachment']=file.attachment;}}}
filesWrapper.innerHTML=html;});Object.keys(updateHtml).forEach(function(fieldName){updateHtml[fieldName].filesWrapper.innerHTML=updateHtml[fieldName].html;});args._process_form_data_callback(args);}},error:function(xhr,ajaxOptions,thrownError){console.log(xhr,ajaxOptions,thrownError);alert(super_common_i18n.errors.failed_to_process_data);}});};SUPER.process_form_data=function(args){args.generatePdf=false;args.pdfSettings=null;if(typeof SUPER.form_js!=='undefined'&&typeof SUPER.form_js[args.form_id]!=='undefined'&&typeof SUPER.form_js[args.form_id]._pdf!=='undefined'&&SUPER.form_js[args.form_id]._pdf.generate==="true"){args.generatePdf=true;args.pdfSettings=SUPER.form_js[args.form_id]._pdf;if(args.progressBar)args.progressBar.style.width=0+'%';if(args.pdfSettings.generatingText===''){args.loadingOverlay.querySelector('.super-inner-text').innerHTML='<span>'+super_common_i18n.loadingOverlay.generating_pdf+'</span>';}else{args.loadingOverlay.querySelector('.super-inner-text').innerHTML='<span>'+args.pdfSettings.generatingText+'</span>';}}else{if(typeof SUPER.get_form_settings==='function'&&typeof SUPER.get_form_settings()._pdf!=='undefined'&&SUPER.get_form_settings()._pdf.generate==="true"){args.generatePdf=true;args.pdfSettings=SUPER.get_form_settings()._pdf;if(args.progressBar)args.progressBar.style.width=0+'%';if(args.pdfSettings.generatingText===''){args.loadingOverlay.querySelector('.super-inner-text').innerHTML='<span>'+super_common_i18n.loadingOverlay.generating_pdf+'</span>';}else{args.loadingOverlay.querySelector('.super-inner-text').innerHTML='<span>'+args.pdfSettings.generatingText+'</span>';}}}
if(args.generatePdf){SUPER.pdf_generator_init(args,function(args){if(args.pdfSettings.debug==="true"){var innerText=args.loadingOverlay.querySelector('.super-inner-text');args._pdf.save(args.pdfSettings.filename,{returnPromise:true}).then(function(){if(args.progressBar)args.progressBar.style.width=(100)+"%";if(innerText)innerText.innerHTML='<span>'+super_common_i18n.loadingOverlay.completed+'</span>';args.loadingOverlay.classList.add('super-success');if(args.pdfSettings.downloadBtn==='true'){args.loadingOverlay.classList.add('super-success');SUPER.show_pdf_download_btn(args);}
if(typeof SUPER.init_popups==='function'&&typeof SUPER.init_popups.close==='function'){SUPER.init_popups.close(true);}},function(){if(innerText)innerText.innerHTML='<span>Something went wrong while downloading the PDF</span>';args.loadingOverlay.classList.add('super-error');});}
SUPER.save_data(args);});}else{SUPER.save_data(args);}};SUPER.focusForm=function(target){if(!target)return false;if(target.tagName!=='FORM'){target=target.closest('form');}
if(target&&target.closest('.super-initialized')){target.classList.add('super-form-focussed');target.tabIndex=-1;SUPER.lastFocussedForm=target;}};SUPER.resetFocussedFields=function(){var i,nodes=document.querySelectorAll('.super-focus');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-focus');}};SUPER.focusField=function(target){if(target&&target.closest('.super-initialized')){SUPER.resetFocussedFields();if(target.classList.contains('super-field')){target.classList.add('super-focus');}else{target.closest('.super-field').classList.add('super-focus');}}};SUPER.focusNextTabField=function(e,next,form,skipNext){var i,nodes,parentTabElement,tabsElement,menuWrapper,menuNodes,contentsWrapper,contentNodes,keyCode=-1;if(e)keyCode=e.keyCode||e.which;if(typeof skipNext!=='undefined'){next=skipNext;}else{next=SUPER.nextTabField(e,next,form);}
if(!next)return false;if(next.closest('.super-preview-elements')){return false;}
if(next.classList.contains('super-item')){next=next.closest('.super-field');}
if(next.closest('.super-multipart')&&!next.closest('.super-multipart').classList.contains('super-active')){if(SUPER.lastTabKey==='shift+tab'){SUPER.switchMultipart(e,next,'prev');}else{SUPER.switchMultipart(e,next,'next');}}
parentTabElement=next.closest('.super-tabs-content');while(parentTabElement){if(!parentTabElement.classList.contains('super-active')){tabsElement=parentTabElement.closest('.super-tabs');menuWrapper=tabsElement.querySelector('.super-tabs-menu');contentsWrapper=tabsElement.querySelector('.super-tabs-contents');menuNodes=menuWrapper.querySelectorAll('.super-tabs-tab');contentNodes=contentsWrapper.querySelectorAll('.super-tabs-content');for(i=0;i<contentNodes.length;i++){if(contentNodes[i]===parentTabElement){contentNodes[i].classList.add('super-active');menuNodes[i].classList.add('super-active');}else{contentNodes[i].classList.remove('super-active');menuNodes[i].classList.remove('super-active');}}}
parentTabElement=parentTabElement.parentNode.closest('.super-tabs-content');}
parentTabElement=next.closest('.super-accordion-item');while(parentTabElement){if(!parentTabElement.classList.contains('super-active')){tabsElement=parentTabElement.closest('.super-tabs');contentNodes=tabsElement.querySelectorAll('.super-accordion-item');for(i=0;i<contentNodes.length;i++){contentNodes[i].classList.remove('super-active');if(contentNodes[i]===parentTabElement){contentNodes[i].classList.add('super-active');}}}
parentTabElement=parentTabElement.parentNode.closest('.super-accordion-item');}
if(e&&e.type!=='click'&&keyCode!=32){next.scrollIntoView({behavior:"auto",block:"center",inline:"center"});}
if(keyCode!=32){nodes=form.querySelectorAll('.super-focus');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-focus');nodes[i].classList.remove('super-open');if(nodes[i].querySelector('.super-shortcode-field')){nodes[i].querySelector('.super-shortcode-field').blur();}
if(nodes[i].classList.contains('super-button-wrap')){SUPER.init_button_colors(nodes[i]);}}}
nodes=form.querySelectorAll('.super-open');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-open');}
nodes=form.querySelectorAll('.super-color .super-shortcode-field');for(i=0;i<nodes.length;i++){$(nodes[i]).spectrum("hide");}
if(next.classList.contains('super-checkbox')||next.classList.contains('super-radio')){next.classList.add('super-focus');if((next.querySelector('.super-item.super-focus'))&&(keyCode!=32)){var current=next.querySelector('.super-item.super-focus');var nextSibling=current.nextSibling;current.classList.remove('super-focus');nextSibling.classList.add('super-focus');}else{var innerNodes=next.querySelectorAll('.super-item');if(next.classList.contains('super-radio')){var activeFound=next.querySelector('.super-item.super-active');}
if((SUPER.lastTabKey!=='tab'&&keyCode!=9)||(keyCode==1)){return true;}
if(activeFound){activeFound.classList.add('super-focus');}else{if(e.shiftKey){innerNodes[innerNodes.length-1].classList.add('super-focus');}else{innerNodes[0].classList.add('super-focus');}}}
e.preventDefault();return false;}
if(next.classList.contains('super-form-button')){next.classList.add('super-focus');SUPER.init_button_hover_colors(next);next.querySelector('.super-button-wrap').focus();e.preventDefault();return false;}
if(next.classList.contains('super-color')){next.classList.add('super-focus');$(next.querySelector('.super-shortcode-field')).spectrum('show');e.preventDefault();return false;}
if(next.classList.contains('super-keyword-tags')){next.classList.add('super-focus');next.querySelector('.super-keyword-filter').focus();e.preventDefault();return false;}
if(next.classList.contains('super-dropdown')){next.classList.add('super-focus');next.classList.add('super-open');if(next.querySelector('input[name="super-dropdown-search"]')){next.querySelector('input[name="super-dropdown-search"]').focus();e.preventDefault();return false;}}else{next.classList.add('super-focus');}
if(next.querySelector('.super-shortcode-field')){next.querySelector('.super-shortcode-field').focus();}
e.preventDefault();return false;};SUPER.field_exists=function(form,name,regex){return(SUPER.field(form,name,regex)?1:0);};SUPER.field=function(form,name,regex){if(typeof name==='undefined')name='';regex=(typeof regex==='undefined'?'':regex);if(name===''&®ex=='all')return form.querySelectorAll('.super-shortcode-field:not(.super-fileupload), .super-active-files, .super-recaptcha');if(name===''&®ex==='')return form.querySelector('.super-shortcode-field:not(.super-fileupload), .super-active-files');if(name!==''&®ex==='')return form.querySelector('.super-shortcode-field:not(.super-fileupload)[name="'+name+'"], .super-active-files[name="'+name+'"]');if(name!==''&®ex=='all')return form.querySelectorAll('.super-shortcode-field:not(.super-fileupload)[name="'+name+'"], .super-active-files[name="'+name+'"]');return form.querySelectorAll('.super-shortcode-field:not(.super-fileupload)[name'+regex+'="'+name+'"], .super-active-files[name="'+name+'"]');};SUPER.fields=function(form,selector){return form.querySelectorAll(selector);};SUPER.fieldsByName=function(form,name){if(name==='')return null;return form.querySelectorAll('.super-shortcode-field:not(.super-fileupload)[name="'+name+'"], .super-active-files[name="'+name+'"]');};SUPER.has_hidden_parent=function(changedField,includeMultiParts){if(changedField[0])changedField=changedField[0];var p,parent;parent=changedField.closest('.super-shortcode');if(parent&&(parent.style.display=='none')&&(!parent.classList.contains('super-hidden'))){return true;}
if(parent.dataset.conditionalAction){if((parent.classList.contains('super-conditional-hidden'))||(parent.dataset.conditionalAction==='hide'&&parent.classList.contains('super-conditional-hidden'))||(parent.dataset.conditionalAction==='show'&&!parent.classList.contains('super-conditional-visible'))){return true;}}
for(p=changedField&&changedField.parentElement;p;p=p.parentElement){if(p.classList.contains('super-form'))break;if(p.dataset.conditionalAction){if((p.classList.contains('super-conditional-hidden'))||(p.dataset.conditionalAction==='hide'&&p.classList.contains('super-conditional-hidden'))||(p.dataset.conditionalAction==='show'&&!p.classList.contains('super-conditional-visible'))){return true;}}}
if(typeof includeMultiParts==='undefined')includeMultiParts=false;if(includeMultiParts&&changedField.closest('.super-multipart')&&!changedField.closest('.super-multipart').classList.contains('super-active')){return true;}
return false;};SUPER.get_session_pointer=function(key){function getUrlVars(){var vars={};window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(m,key,value){vars[key]=value;});return vars;}
function getUrlParam(parameter,defaultvalue){var urlparameter=defaultvalue;if(window.location.href.indexOf(parameter)>-1){urlparameter=getUrlVars()[parameter];}
return urlparameter;}
return key+'_'+getUrlParam('id',0);};SUPER.set_session_data=function(key,data,method,raw){if(typeof method==='undefined')method='session';if(typeof raw==='undefined')raw=false;if(key!=='_super_transfer_element_html')key=SUPER.get_session_pointer(key);if(method==='session'){try{if(data===false){sessionStorage.removeItem(key);}else{sessionStorage.setItem(key,data);}}
catch(e){data=JSON.parse(data);var length=data.length/2;var i=0;while(i<length){if(typeof data[i]!=='undefined'){delete data[i];}
i++;}
SUPER.set_session_data(key,data,method);}}else{if(data===false){localStorage.removeItem(key);}else{localStorage.setItem(key,data);}}};SUPER.get_session_data=function(key,method){if(typeof method==='undefined')method='session';if(key!=='_super_transfer_element_html')key=SUPER.get_session_pointer(key);if(method==='session'){return sessionStorage.getItem(key);}else{return localStorage.getItem(key);}};SUPER.generateBarcode=function(){$('.super-barcode').each(function(){var $this=$(this).find('input');var $renderer='css';var $barcode=$this.val();var $barcodetype=$this.data('barcodetype');var $background=$this.data('background');var $barcolor=$this.data('barcolor');var $barwidth=$this.data('barwidth');var $barheight=$this.data('barheight');var $modulesize=$this.data('modulesize');var $rectangular=$this.data('rectangular');var $quietzone=false;if($this.data('quietzone')==1)$quietzone=true;var $settings={output:$renderer,bgColor:$background,color:$barcolor,barWidth:$barwidth,barHeight:$barheight,moduleSize:$modulesize,addQuietZone:$quietzone};if($rectangular==1){$barcode={code:$barcode,rect:true};}
$this.parent().find('.super-barcode-target').barcode($barcode,$barcodetype,$settings);});};SUPER.rating=function(){$('.super-rating').on('mouseleave',function(){$(this).find('.super-rating-star').removeClass('super-hover');});$('.super-rating-star').on('click',function(){SUPER.focusForm(this);SUPER.focusField(this);$(this).parent().find('.super-rating-star').removeClass('super-active');$(this).addClass('super-active');$(this).prevAll('.super-rating-star').addClass('super-active');var $rating=$(this).index()+1;$(this).parent().find('input').val($rating);SUPER.after_field_change_blur_hook({el:$(this).parent().find('input')[0]});});$('.super-rating-star').on('mouseover',function(){$(this).parent().find('.super-rating-star').removeClass('super-hover');$(this).addClass('super-hover');$(this).prevAll('.super-rating-star').addClass('super-hover');});};SUPER.init_fileupload_fields=function(){$('.super-fileupload:not(.super-rendered)').each(function(){$(this).addClass('super-rendered');var formId=0;var form=SUPER.get_frontend_or_backend_form({el:this});if(form.querySelector('input[name="hidden_form_id"]')){formId=form.querySelector('input[name="hidden_form_id"]').value;}
var field=$(this).parents('.super-field-wrapper:eq(0)').find('.super-active-files');var fieldName=field.attr('name');if(typeof SUPER.files[formId]==='undefined'){SUPER.files[formId]=[];}
if(typeof SUPER.files[formId][fieldName]==='undefined'){SUPER.files[formId][fieldName]=[];}
var i,file,fileName,fileUrl,fileType,uploadedFiles=$(this).parents('.super-field-wrapper:eq(0)').find('.super-fileupload-files > .super-uploaded');for(i=0;i<uploadedFiles.length;i++){file=uploadedFiles[i];fileName=file.dataset.name;fileUrl=file.dataset.url;fileType=file.dataset.type;SUPER.files[formId][fieldName][i]={};SUPER.files[formId][fieldName][i]['type']=fileType;SUPER.files[formId][fieldName][i]['name']=fileName;SUPER.files[formId][fieldName][i]['url']=fileUrl;}
$(this).fileupload({filesContainer:$(this).find(".super-fileupload-files"),dropZone:$(this).parent('.super-field-wrapper'),add:function(e,data){var uploadErrors=[];if(data.originalFiles[0].size>($(this).data('file-size')*1000000)){$(this).parents('.super-field-wrapper:eq(0)').find('.super-fileupload-files').children('div[data-name="'+data.originalFiles[0].name+'"]').remove();uploadErrors.push(super_common_i18n.errors.file_upload.filesize_too_big);}
if(uploadErrors.length>0){alert(uploadErrors.join("\n"));}},dataType:'json',autoUpload:false,maxFileSize:$(this).data('file-size')*1000000,progressall:function(e,data){var progress=parseInt(data.loaded/data.total*100,10);$(this).parent().children('.super-progress-bar').css('display','block').css('width',progress+'%');}}).on('fileuploadadd',function(e,data){var formId=0;var form=SUPER.get_frontend_or_backend_form({el:this});if(form.querySelector('input[name="hidden_form_id"]')){formId=form.querySelector('input[name="hidden_form_id"]').value;}
$(this).removeClass('finished');$(this).parents('.super-field-wrapper:eq(0)').find('.super-fileupload-files > div.error').remove();data.context=$('<div/>').appendTo($(this).parents('.super-field-wrapper:eq(0)').find('.super-fileupload-files'));var field=$(this).parents('.super-field-wrapper:eq(0)').find('.super-active-files')[0];var fieldName=$(this).parents('.super-field-wrapper:eq(0)').find('.super-active-files').attr("name");var el=$(this);var accepted_file_types=el.data('accept-file-types');var file_types_object=accepted_file_types.split('|');var upload_limit=$(this).data('upload-limit')*1000000;$.each(data.files,function(index,file){var total=el.data('total-file-sizes');if(typeof total==='undefined'){total=file.size;}else{total=total+file.size;}
if((total>upload_limit)&&(upload_limit!==0)){el.parents('.super-field-wrapper:eq(0)').find('.super-fileupload-files > div').last().remove();alert(super_common_i18n.errors.file_upload.upload_limit_reached);}else{var ext=file.name.split('.').pop();if((file_types_object.indexOf(ext)!=-1)||(accepted_file_types==='')){el.data('total-file-sizes',total);data.context.parent('div').children('div[data-name="'+file.name+'"]').remove();if(typeof SUPER.files[formId]==='undefined'){SUPER.files[formId]=[];}
if(typeof SUPER.files[formId][fieldName]==='undefined'){SUPER.files[formId][fieldName]=[];}
if(file.type&&file.type.indexOf("image/")===0){var src=URL.createObjectURL(file)}
var totalFiles=SUPER.files[formId][fieldName].length;SUPER.files[formId][fieldName][totalFiles]=file;SUPER.files[formId][fieldName][totalFiles]['url']=src;var html=SUPER.get_single_uploaded_file_html(true,false,file.name,file.type,src);data.context.data(data).attr('data-name',file.name).attr('title',file.name).attr('data-type',file.type).html(html);data.context.data('file-size',file.size);if(data.context[0].querySelector('img')){var img=data.context[0].querySelector('img');img.onload=function(){}}
SUPER.after_field_change_blur_hook({el:field,form:form});}else{data.context.remove();alert(super_common_i18n.errors.file_upload.incorrect_file_extension);}}});}).on('fileuploadprocessalways',function(e,data){var index=data.index;var file=data.files[index];if(file.error){$(this).parents('.super-field-wrapper:eq(0)').find('.super-fileupload-files').find("[data-name='"+file.name+"']").remove();alert(file.error);}}).on('fileuploadfail',function(e,data){var el=e.target;var form=el.closest('.super-form');SUPER.handle_errors(el);$.each(data.files,function(index){var error=$('<span class="super-error"/>').text(' (file upload failed)');$(data.context.children()[index]).children('.super-error').remove();$(data.context.children()[index]).append(error);});alert(data.errorThrown.message);SUPER.reset_submit_button_loading_state(form);SUPER.handle_validations({el:el,form:form});SUPER.scrollToError(form);}).on('fileuploadsubmit',function(e,data){data.formData={'accept_file_types':$(this).data('accept-file-types'),'max_file_size':$(this).data('file-size')*1000000,'image_library':super_common_i18n.image_library};});});};var distance_calculator_timeout=null;SUPER.calculate_distance=function(args){if(!args.el)return false;if(args.el.classList.contains('super-distance-calculator')){var form=SUPER.get_frontend_or_backend_form(args),$method=args.el.dataset.distanceMethod,$origin_field,$origin,$destination_field,$destination,$value,$units,$result,$leg,$field,$calculation_value,$html,$alert_msg;if($method=='start'){$origin_field=args.el;$origin=args.el.value;$destination=args.el.dataset.distanceDestination;if(SUPER.field_exists(form,$destination)){$destination_field=SUPER.field(form,$destination);$destination=($destination_field?$destination_field.value:'');}}else{$origin_field=SUPER.field(form,args.el.dataset.distanceStart);$origin=($origin_field?$origin_field.value:'');$destination_field=args.el;$destination=args.el.value;}
$value=$origin_field.dataset.distanceValue;$units=$origin_field.dataset.distanceUnits;if($value!='dis_text'){$units='metric';}
if(($origin==='')||($destination==='')){return true;}
if(distance_calculator_timeout!==null){clearTimeout(distance_calculator_timeout);}
distance_calculator_timeout=setTimeout(function(){args.el.closest('.super-field-wrapper').classList.add('super-calculating-distance');$.ajax({url:super_common_i18n.ajaxurl,type:'post',data:{action:'super_calculate_distance',units:$units,origin:$origin,destination:$destination},success:function(result){$result=JSON.parse(result);if($result.status=='OK'){$leg=$result.routes[0].legs[0];$field=$origin_field.dataset.distanceField;if($value=='distance'){$calculation_value=$leg.distance.value;}
if($value=='dis_text'){$calculation_value=$leg.distance.text;}
if($value=='duration'){$calculation_value=$leg.duration.value;}
if($value=='dur_text'){$calculation_value=$leg.duration.text;}
$field=SUPER.field(form,$field);$field.value=$calculation_value;if($calculation_value===''){$field.closest('.super-shortcode').classList.remove('super-filled');}else{$field.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:$field});SUPER.init_replace_html_tags({el:$field,form:form});}else{if($result.status=='ZERO_RESULTS'){$alert_msg=super_common_i18n.errors.distance_calculator.zero_results;}else{if($result.status=='OVER_QUERY_LIMIT'){$alert_msg=$result.error_message;}else{if($result.error===true){$alert_msg=$result.msg;}else{$alert_msg=super_common_i18n.errors.distance_calculator.error;}}}
$('.super-msg').remove();$result=JSON.parse(result);$html='<div class="super-msg super-error">';$origin_field.blur();if(typeof $destination_field!=='undefined')$destination_field.blur();$html+=$alert_msg;$html+='<span class="super-close"></span>';$html+='</div>';$($html).prependTo($(form));$('html, body').animate({scrollTop:$(form).offset().top-200},1000);}},complete:function(){args.el.closest('.super-field-wrapper').classList.remove('super-calculating-distance');},error:function(xhr,ajaxOptions,thrownError){console.log(xhr,ajaxOptions,thrownError);alert(super_common_i18n.errors.failed_to_process_data);}});},1000);}};SUPER.conditional_logic=function(args){var logic,didLoop=false,form=SUPER.get_frontend_or_backend_form(args);if(typeof args.el!=='undefined'){logic=form.querySelectorAll('.super-conditional-logic[data-fields*="{'+SUPER.get_field_name(args.el)+'}"]');}else{logic=form.querySelectorAll('.super-conditional-logic');}
if(typeof logic!=='undefined'){if(logic.length!==0){didLoop=true;args.conditionalLogic=logic;SUPER.conditional_logic.loop(args);}}
if(didLoop===false){SUPER.update_variable_fields(args);}};SUPER.return_dynamic_tag_value=function($parent,$value){if(typeof $value==='undefined')return'';if($value==='')return $value;if((typeof $parent!=='undefined')&&(($parent.hasClass('super-dropdown'))||($parent.hasClass('super-checkbox')))){var $values=$value.toString().split(',');var $new_values='';$.each($values,function(index,value){var $value=value.toString().split(';');$value=$value[0];if($new_values===''){$new_values+=$value;}else{$new_values+=','+$value;}});$value=$new_values;}else{$value=$value.toString().split(';');$value=$value[0];}
return $value;};SUPER.conditional_logic.match_found=function($match_found,v,$shortcode_field_value,$shortcode_field_and_value,$parent,$parent_and,$variable){var $i=0,$found,$checked,$string_value;switch(v.logic){case'equal':if(v.value==$shortcode_field_value)$i++;break;case'not_equal':if(v.value!=$shortcode_field_value)$i++;break;case'greater_than':if(parseFloat($shortcode_field_value)>parseFloat(v.value))$i++;break;case'less_than':if(parseFloat($shortcode_field_value)<parseFloat(v.value))$i++;break;case'greater_than_or_equal':if(parseFloat($shortcode_field_value)>=parseFloat(v.value))$i++;break;case'less_than_or_equal':if(parseFloat($shortcode_field_value)<=parseFloat(v.value))$i++;break;case'contains':if((typeof $parent!=='undefined')&&($parent.classList.contains('super-checkbox')||$parent.classList.contains('super-radio')||$parent.classList.contains('super-dropdown'))){$checked=$shortcode_field_value.split(',');$string_value=v.value.toString();Object.keys($checked).forEach(function(key){if($checked[key].indexOf($string_value)>=0){$i++;return false;}});}else{if($shortcode_field_value.indexOf(v.value)>=0)$i++;}
break;case'not_contains':if((typeof $parent!=='undefined')&&($parent.classList.contains('super-checkbox')||$parent.classList.contains('super-radio')||$parent.classList.contains('super-dropdown'))){$checked=$shortcode_field_value.split(',');$string_value=v.value.toString();$found=false;Object.keys($checked).forEach(function(key){if($checked[key].indexOf($string_value)>=0){$found=true;return false;}});if(!$found)$i++;}else{if($shortcode_field_value.indexOf(v.value)==-1)$i++;}
break;default:}
if(v.and_method!==''){switch(v.logic_and){case'equal':if(v.value_and==$shortcode_field_and_value)$i++;break;case'not_equal':if(v.value_and!=$shortcode_field_and_value)$i++;break;case'greater_than':if(parseFloat($shortcode_field_and_value)>parseFloat(v.value_and))$i++;break;case'less_than':if(parseFloat($shortcode_field_and_value)<parseFloat(v.value_and))$i++;break;case'greater_than_or_equal':if(parseFloat($shortcode_field_and_value)>=parseFloat(v.value_and))$i++;break;case'less_than_or_equal':if(parseFloat($shortcode_field_and_value)<=parseFloat(v.value_and))$i++;break;case'contains':if((typeof $parent_and!=='undefined')&&($parent_and.classList.contains('super-checkbox')||$parent_and.classList.contains('super-radio')||$parent_and.classList.contains('super-dropdown'))){$checked=$shortcode_field_and_value.split(',');$string_value=v.value_and.toString();Object.keys($checked).forEach(function(key){if($checked[key].indexOf($string_value)>=0){$i++;return false;}});}else{if($shortcode_field_and_value.indexOf(v.value_and)>=0)$i++;}
break;case'not_contains':if((typeof $parent_and!=='undefined')&&($parent_and.classList.contains('super-checkbox')||$parent_and.classList.contains('super-radio')||$parent_and.classList.contains('super-dropdown'))){$checked=$shortcode_field_and_value.split(',');$string_value=v.value_and.toString();$found=false;Object.keys($checked).forEach(function(key){if($checked[key].indexOf($string_value)>=0){$found=true;return false;}});if(!$found)$i++;}else{if($shortcode_field_and_value.indexOf(v.value_and)==-1)$i++;}
break;default:}}
if($variable)return $i;if(v.and_method=='and'){if($i>=2)$match_found++;}else{if($i>=1)$match_found++;}
return $match_found;};SUPER.get_conditional_validation_value=function(value,form){var conditionalParent,text_field,string_value,bracket,regex,name,element,sum,selected,checked;string_value=value.toString();bracket="{";if(string_value.indexOf(bracket)!=-1){regex=/{([^\\\/\s"'+]*?)}/g;name=regex.exec(value);name=name[1];element=SUPER.field(form,name);if(element){text_field=true;conditionalParent=element.closest('.super-field');if((conditionalParent.classList.contains('super-dropdown'))){text_field=false;sum=0;selected=conditionalParent.querySelectorAll('.super-dropdown-list .super-item.super-active:not(.super-placeholder)');Object.keys(selected).forEach(function(key){sum+=selected[key].dataset.value;});value=sum;}
if(conditionalParent.classList.contains('super-checkbox')){text_field=false;sum=0;checked=conditionalParent.querySelectorAll('input[type="checkbox"]:checked');Object.keys(checked).forEach(function(key){sum+=checked[key].value;});value=sum;}
if(conditionalParent.classList.contains('super-currency')){text_field=false;value=$(element).maskMoney('unmasked')[0];value=(value)?parseFloat(value):0;}
if(text_field===true)value=(element.value)?element.value:'';}}
return value;}
SUPER.conditional_logic.get_field_value=function($logic,$shortcode_field_value,$shortcode_field,$parent){if($logic=='greater_than'||$logic=='less_than'||$logic=='greater_than_or_equal'||$logic=='less_than_or_equal'){var $sum=0,$selected;if($parent.classList.contains('super-dropdown')){$selected=$parent.querySelectorAll('.super-dropdown-list .super-item.super-active:not(.super-placeholder)');Object.keys($selected).forEach(function(key){$sum+=parseFloat($selected[key].dataset.value);});$shortcode_field_value=$sum;}
if($parent.classList.contains('super-checkbox')){$selected=$parent.querySelectorAll('.super-active');Object.keys($selected).forEach(function(key){$sum+=parseFloat($selected[key].querySelector('input').value);});$shortcode_field_value=$sum;}
if($parent.classList.contains('super-currency')){var $value=$($shortcode_field).maskMoney('unmasked')[0];$shortcode_field_value=($value)?parseFloat($value):0;}}
return $shortcode_field_value;};SUPER.conditional_logic.loop=function(args){args.regex=/{([^\\\/\s"'+]*?)}/g;var v,$v,$this,$json,$wrapper,$field,$trigger,$action,$conditions,$total,$regex=/{([^\\\/\s"'+]*?)}/g,$shortcode_field_value,$shortcode_field_and_value,$continue,$continue_and,$skip,$skip_and,$field_name,$shortcode_field,$shortcode_field_and,$parent,$parent_and,$hide_wrappers,$show_wrappers,$changed_wrappers,$inner,$element,$data_fields,$is_variable,$is_validate,$match_found,$prev_match_found,$updated_variable_fields={},$validation_error=false;Object.keys(args.conditionalLogic).forEach(function(key){$prev_match_found=false;$this=args.conditionalLogic[key];$wrapper=$this.closest('.super-shortcode');$field=$wrapper.querySelector('.super-shortcode-field');$is_variable=false;$is_validate=false;if($this.classList.contains('super-variable-conditions')){$is_variable=true;$action=$wrapper.dataset.conditionalVariableAction;}else{if($this.classList.contains('super-validate-conditions')){$is_validate=true;$action='show';$trigger='one';}else{$trigger=$wrapper.dataset.conditionalTrigger;$action=$wrapper.dataset.conditionalAction;}}
if(($is_variable===true)&&($wrapper.classList.contains('super-text')===true)&&(args.doingSubmit===true)){return false;}
$json=$this.value;if(($action)&&($action!='disabled')){$conditions=JSON.parse($json);if($conditions){$total=0;$match_found=0;Object.keys($conditions).forEach(function(key){if(!$prev_match_found){$total++;v=$conditions[key];args.value=v.value;v.value=SUPER.update_variable_fields.replace_tags(args);args.value=v.value_and;v.value_and=SUPER.update_variable_fields.replace_tags(args);args.value=v.field;args.bwc=true;$shortcode_field_value=SUPER.update_variable_fields.replace_tags(args);args.value=v.field_and;args.bwc=true;$shortcode_field_and_value=SUPER.update_variable_fields.replace_tags(args);delete args.bwc;$continue=false;$continue_and=false;$skip=false;$skip_and=false;if(v.field!==''&&v.field.indexOf('{')===-1)v.field='{'+v.field+'}';if(typeof v.field_and!=='undefined'&&v.field_and!==''&&v.field_and.indexOf('{')===-1)v.field_and='{'+v.field_and+'}';while(($v=$regex.exec(v.field))!==null){if($v.index===$regex.lastIndex){$regex.lastIndex++;}
$field_name=$v[1].split(';')[0];$shortcode_field=SUPER.field(args.form,$field_name);if(!$shortcode_field){$continue=true;continue;}
$skip=SUPER.has_hidden_parent($shortcode_field);$parent=$shortcode_field.closest('.super-shortcode');}
if(v.and_method!==''){if(v.and_method==='and'&&$continue)return;while(($v=$regex.exec(v.field_and))!==null){if($v.index===$regex.lastIndex){$regex.lastIndex++;}
$field_name=$v[1].split(';')[0];$shortcode_field_and=SUPER.field(args.form,$field_name);if(!$shortcode_field_and){$continue_and=true;continue;}
$skip_and=SUPER.has_hidden_parent($shortcode_field_and);$parent_and=$shortcode_field_and.closest('.super-shortcode');}
if(v.and_method==='or'&&!$continue_and){$continue=false;}}
if($continue||$continue_and)return;if((v.and_method==='and'&&($skip||$skip_and)&&!$is_variable)||(v.and_method==='or'&&($skip&&$skip_and)&&!$is_variable)){}else{$shortcode_field_value=SUPER.return_dynamic_tag_value($($parent),$shortcode_field_value);$shortcode_field_and_value=SUPER.return_dynamic_tag_value($($parent_and),$shortcode_field_and_value);if(!$shortcode_field_value)$shortcode_field_value='';if(!$shortcode_field_and_value)$shortcode_field_and_value='';$shortcode_field_value=SUPER.conditional_logic.get_field_value(v.logic,$shortcode_field_value,$shortcode_field,$parent);if(v.and_method!==''){$shortcode_field_and_value=SUPER.conditional_logic.get_field_value(v.logic_and,$shortcode_field_and_value,$shortcode_field_and,$parent_and);}
if($is_variable){$match_found=SUPER.conditional_logic.match_found(0,v,$shortcode_field_value,$shortcode_field_and_value,$parent,$parent_and,true);if(v.and_method=='and'){if($match_found>=2){$prev_match_found=true;if(v.new_value!==''){args.value=v.new_value;v.new_value=SUPER.update_variable_fields.replace_tags(args);}
$field.value=v.new_value;}else{if(typeof args.el!=='undefined'){$field.value='';}}}else{if($match_found>=1){$prev_match_found=true;if(v.new_value!==''){args.value=v.new_value;v.new_value=SUPER.update_variable_fields.replace_tags(args);}
$field.value=v.new_value;}else{if(typeof args.el!=='undefined'){$field.value='';}}}
if(typeof $field.dataset.entryValue!=='undefined'){$field.value=$field.dataset.entryValue;delete $field.dataset.entryValue;}
$updated_variable_fields[$field.name]=$field;}else{$match_found=SUPER.conditional_logic.match_found($match_found,v,$shortcode_field_value,$shortcode_field_and_value,$parent,$parent_and,false);}}}});if(!$is_variable){$hide_wrappers=[];$show_wrappers=[];$changed_wrappers=[];if($trigger=='all'){if($match_found==$total){if(($action==='show')&&(!$wrapper.classList.contains('super-conditional-visible'))){$changed_wrappers.push($wrapper);$show_wrappers.push($wrapper);}
if(($action==='hide')&&($wrapper.classList.contains('super-conditional-visible'))){$changed_wrappers.push($wrapper);$hide_wrappers.push($wrapper);}
if(($action==='readonly')&&(!$wrapper.classList.contains('super-readonly'))){$hide_wrappers.push($wrapper);}}else{if(($action==='show')&&($wrapper.classList.contains('super-conditional-visible'))){$changed_wrappers.push($wrapper);$hide_wrappers.push($wrapper);}
if(($action==='hide')&&(!$wrapper.classList.contains('super-conditional-visible'))){$changed_wrappers.push($wrapper);$show_wrappers.push($wrapper);}
if(($action==='readonly')&&($wrapper.classList.contains('super-readonly'))){$show_wrappers.push($wrapper);}}}else{if($match_found!==0){if(($action==='show')&&(!$wrapper.classList.contains('super-conditional-visible'))){$changed_wrappers.push($wrapper);$show_wrappers.push($wrapper);}
if(($action==='hide')&&($wrapper.classList.contains('super-conditional-visible'))){$changed_wrappers.push($wrapper);$hide_wrappers.push($wrapper);}
if(($action==='readonly')&&(!$wrapper.classList.contains('super-readonly'))){$hide_wrappers.push($wrapper);}}else{if(($action==='show')&&($wrapper.classList.contains('super-conditional-visible'))){$changed_wrappers.push($wrapper);$hide_wrappers.push($wrapper);}
if(($action==='hide')&&(!$wrapper.classList.contains('super-conditional-visible'))){$changed_wrappers.push($wrapper);$show_wrappers.push($wrapper);}
if(($action==='readonly')&&($wrapper.classList.contains('super-readonly'))){$show_wrappers.push($wrapper);}}}
if($is_validate){Object.keys($hide_wrappers).forEach(function(){$validation_error=true;});}else{Object.keys($hide_wrappers).forEach(function(key){if($hide_wrappers[key].classList.contains('super-error-active')){$hide_wrappers[key].classList.remove('super-error-active');}
var $innerNodes=$hide_wrappers[key].querySelectorAll('.super-error-active');Object.keys($innerNodes).forEach(function(ikey){$innerNodes[ikey].classList.remove('super-error-active');});SUPER.remove_error_status_parent_layout_element($,$hide_wrappers[key]);});if($action=='readonly'){Object.keys($hide_wrappers).forEach(function(key){$hide_wrappers[key].classList.add('super-readonly');});Object.keys($show_wrappers).forEach(function(key){$show_wrappers[key].classList.remove('super-readonly');});}else{Object.keys($hide_wrappers).forEach(function(key){$hide_wrappers[key].classList.add('super-conditional-hidden');$hide_wrappers[key].classList.remove('super-conditional-visible');});Object.keys($show_wrappers).forEach(function(key){$show_wrappers[key].classList.remove('super-conditional-hidden');$show_wrappers[key].classList.add('super-conditional-visible');if(typeof SUPER.refresh_signatures==='function'){SUPER.refresh_signatures('',$show_wrappers[key]);}
if($show_wrappers[key].classList.contains('super-slider')){var $element=$($show_wrappers[key]);var $wrapper=$element.children('.super-field-wrapper');var $field=$wrapper.children('.super-shortcode-field');var $value=$field.val();if($wrapper.children('.slider').length){SUPER.reposition_slider_amount_label($field[0],$value);}}else{var $sliders=$show_wrappers[key].querySelectorAll('.super-slider');Object.keys($sliders).forEach(function(skey){var $element=$($sliders[skey]);var $wrapper=$element.children('.super-field-wrapper');var $field=$wrapper.children('.super-shortcode-field');var $value=$field.val();if($wrapper.children('.slider').length){SUPER.reposition_slider_amount_label($field[0],$value);}});}});Object.keys($changed_wrappers).forEach(function(key){$inner=$changed_wrappers[key].querySelectorAll('.super-shortcode-field');Object.keys($inner).forEach(function(key){$parent=$inner[key].closest('.super-shortcode');$element=$parent.querySelector('div[data-fields]');if($element){$data_fields=$element.dataset.fields;if($data_fields){$data_fields=$data_fields.split('}');Object.keys($data_fields).forEach(function(key){v=$data_fields[key];if(v!==''){v=v.replace('{','');$field=SUPER.field(args.form,v);if($field){SUPER.after_field_change_blur_hook({el:$field,form:args.form,skip:true});}}});}}
SUPER.after_field_change_blur_hook({el:$inner[key],form:args.form,skip:true});});});}}}}}});if($is_validate){return $validation_error;}
$.each($updated_variable_fields,function(index,field){if(field.value===''){field.closest('.super-shortcode').classList.remove('super-filled');}else{field.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:field});});if(!$is_variable){SUPER.update_variable_fields(args);}};SUPER.filter_if_statements=function($html){if($html.indexOf('endif;')===-1){return $html;}
var re=/\s*['|"]?(.*?)['|"]?\s*(==|!=|>=|<=|>|<|\?\?|!\?\?)\s*['|"]?(.*?)['|"]?\s*$/,m,v,show_counter,method,conditions,array=$html.split(''),if_index=0,skip_up_to=0,capture_elseifcontent=false,capture_conditions=false,capture_suffix=false,statements=[],prefix='',first_if_found=false,depth=0,result='',i,ci,cv,v1,v2,show,operator;Object.keys(array).forEach(function(k){k=parseInt(k,10);v=array[k];if(skip_up_to!==0&&skip_up_to>k){return;}
if(!SUPER.if_match(array,k)&&first_if_found===false){prefix+=v;}else{first_if_found=true;if(capture_conditions){if(((typeof array[k]!=='undefined')&&array[k]===')')&&((typeof array[k+1]!=='undefined')&&(array[k+1]===':'))){capture_elseifcontent=false;capture_suffix=false;capture_conditions=false;skip_up_to=k+2;return;}
if(typeof statements[if_index]==='undefined'){statements[if_index]=[];}
if(typeof statements[if_index].conditions==='undefined'){statements[if_index].conditions='';}
statements[if_index].conditions+=v;return;}
if(depth===0){if(SUPER.if_match(array,k)){if_index++;depth++;capture_elseifcontent=false;capture_suffix=false;capture_conditions=true;skip_up_to=k+3;return;}}else{if(SUPER.if_match(array,k)){depth++;}}
if(((typeof array[k]!=='undefined')&&array[k]==='e')&&((typeof array[k+1]!=='undefined')&&array[k+1]==='n')&&((typeof array[k+2]!=='undefined')&&array[k+2]==='d')&&((typeof array[k+3]!=='undefined')&&array[k+3]==='i')&&((typeof array[k+4]!=='undefined')&&array[k+4]==='f')&&((typeof array[k+5]!=='undefined')&&array[k+5]===';')){depth--;if(depth===0){capture_elseifcontent=false;capture_conditions=false;capture_suffix=true;skip_up_to=k+6;return;}}
if(depth==1){if(((typeof array[k]!=='undefined')&&array[k]==='e')&&((typeof array[k+1]!=='undefined')&&array[k+1]==='l')&&((typeof array[k+2]!=='undefined')&&array[k+2]==='s')&&((typeof array[k+3]!=='undefined')&&array[k+3]==='e')&&((typeof array[k+4]!=='undefined')&&array[k+4]==='i')&&((typeof array[k+5]!=='undefined')&&array[k+5]==='f')&&((typeof array[k+6]!=='undefined')&&array[k+6]===':')){capture_elseifcontent=true;capture_suffix=false;capture_conditions=false;skip_up_to=k+7;return;}}
if(depth===0&&capture_suffix){if(typeof statements[if_index].suffix==='undefined')statements[if_index].suffix='';statements[if_index].suffix+=v;return;}
if(depth>=1&&capture_elseifcontent){if(typeof statements[if_index].elseif_content==='undefined')statements[if_index].elseif_content='';statements[if_index].elseif_content+=v;return;}
if(depth>=1){if(typeof statements[if_index].inner_content==='undefined')statements[if_index].inner_content='';statements[if_index].inner_content+=v;return;}}});for(i=0;i<statements.length;i++){if(typeof statements[i]==='undefined')continue;v=statements[i];show_counter=0;method='&&';conditions=v.conditions.split('&&');if(conditions.length==1){conditions=v.conditions.split('||');if(conditions.length>1){method='||';}}
for(ci=0;ci<conditions.length;ci++){if(typeof conditions[ci]==='undefined')continue;cv=conditions[ci];if((m=re.exec(cv))!==null){v1=m[1];operator=m[2];v2=m[3];show=false;if(operator==='=='&&v1==v2)show=true;if(operator==='!='&&v1!=v2)show=true;if(operator==='>='&&v1>=v2)show=true;if(operator==='<='&&v1<=v2)show=true;if(operator==='>'&&v1>v2)show=true;if(operator==='<'&&v1<v2)show=true;if(operator==='??'&&v1.indexOf(v2)>-1)show=true;if(operator==='!??'&&v1.indexOf(v2)===-1)show=true;if(show){show_counter++;}}}
if(method=='||'&&show_counter>0){if(typeof v.inner_content!=='undefined'&&v.inner_content!==''){result+=SUPER.filter_if_statements(v.inner_content);}}else{if(conditions.length===show_counter){if(typeof v.inner_content!=='undefined'&&v.inner_content!==''){result+=SUPER.filter_if_statements(v.inner_content);}}else{if(typeof v.elseif_content!=='undefined'&&v.elseif_content!==''){result+=SUPER.filter_if_statements(v.elseif_content);}}}
if(typeof v.suffix!=='undefined'&&v.suffix!==''){result+=v.suffix;}}
return prefix+result;};SUPER.if_match=function($array,$k){if(((typeof $array[$k]!=='undefined')&&$array[$k]==='i')&&((typeof $array[$k+1]!=='undefined')&&$array[$k+1]==='f')&&((typeof $array[$k+2]!=='undefined')&&$array[$k+2]==='(')){return true;}
return false;};SUPER.update_variable_fields=function(args){if(typeof args.el!=='undefined'){args.conditionalLogic=args.form.querySelectorAll('.super-variable-conditions[data-fields*="{'+SUPER.get_field_name(args.el)+'}"]');}else{args.conditionalLogic=args.form.querySelectorAll('.super-variable-conditions');}
if(typeof args.conditionalLogic!=='undefined'){if(args.conditionalLogic.length!==0){SUPER.conditional_logic.loop(args);}}};SUPER.update_variable_fields.replace_tags=function(args){if(typeof args.defaultValues==='undefined')args.defaultValues=false;if(typeof args.bwc==='undefined')args.bwc=false;if(typeof args.target==='undefined')args.target=null;if(typeof args.value!=='undefined'&&args.bwc){if(args.value==='')return'';if(args.value.indexOf('{')===-1){args.value='{'+args.value+'}';}}
var $array=[],$value='',$i=0,$name,$old_name,$options,$value_type,$value_n,$default_value,$parent,$text_field,$sum,$selected,$new_value,$match,key,$values,$element,$regex=/{([^\\\/\s"'+]*?)}/g;while(($match=$regex.exec(args.value))!==null){if($match[0]==='{}')continue;$array[$i]=$match[1];$i++;}
for($i=0;$i<$array.length;$i++){$element=undefined;$name=$array[$i];if($name=='pdf_page'&&typeof SUPER.pdf_tags!=='undefined'){return SUPER.pdf_tags.pdf_page;}
if($name=='pdf_total_pages'&&typeof SUPER.pdf_tags!=='undefined'){return SUPER.pdf_tags.pdf_total_pages;}
if($name=='dynamic_column_counter'){if(args.target){args.value=$(args.target).parents('.super-duplicate-column-fields:eq(0)').index()+1;return args.value;}}
$old_name=$name;$options=$name.toString().split(';');$name=$options[0];$value_type='var';if(typeof $options[1]==='undefined'){$value_n=0;}else{$value_n=$options[1];if($value_n==1){$value_n=0;}
if(typeof $options[2]!=='undefined'){if(($options[2]!='var')&&($options[2]!='int')){$value_type='var';}else{$value_type=$options[2];}}}
$default_value='';if($value_type=='int'){$default_value=0;}
if($name.indexOf('*')>=0){$name=$name.replace('*','');$element=SUPER.field(args.form,$name,'*');}
if($name.indexOf('^')>=0){$name=$name.replace('^','');$element=SUPER.field(args.form,$name,'^');}
if($name.indexOf('$')>=0){$name=$name.replace('$','');$element=SUPER.field(args.form,$name,'$');}
if(!$element)$element=SUPER.field(args.form,$name);if($element){if($element[0])$element=$element[0];if(SUPER.has_hidden_parent($element)){args.value=args.value.replace('{'+$old_name+'}',$default_value);}else{$parent=$element.closest('.super-shortcode');if(!$element){args.value=args.value.replace('{'+$old_name+'}',$default_value);}else{$text_field=true;$parent=$element.closest('.super-field');if($parent.classList.contains('super-dropdown')){$text_field=false;$sum='';if($value_type=='int'){$sum=0;}
$selected=$parent.querySelectorAll('.super-dropdown-list .super-item.super-active:not(.super-placeholder)');for(key=0;key<$selected.length;key++){if($value_n=='label'){$new_value=$selected[key].textContent;}else{$new_value=$selected[key].dataset.value.toString().split(';');if($value_n===0){$new_value=$new_value[0];}else{if(typeof $new_value[($value_n-1)]==='undefined'){$new_value=$new_value[0];}else{$new_value=$new_value[($value_n-1)];}}}
if(typeof $new_value==='undefined'){$new_value='';}
if($value_type=='int'){$sum+=parseFloat($new_value);}else{if($sum===''){$sum+=$new_value;}else{$sum+=','+$new_value;}}}
$value=$sum;}
if($parent.classList.contains('super-checkbox')){$text_field=false;$selected=$parent.querySelectorAll('.super-field-wrapper .super-item.super-active');$values='';for(key=0;key<$selected.length;key++){if($value_n=='label'){if($values===''){$values+=$selected[key].textContent;}else{$values+=', '+$selected[key].textContent;}}else{if($values===''){$values+=$selected[key].querySelector('input').value;}else{$values+=','+$selected[key].querySelector('input').value;}}}
$sum='';if($value_type=='int'){$sum=0;}
if($value_n=='label'){$sum+=$values;}else{var $new_value_array=$values.toString().split(',');for(key=0;key<$new_value_array.length;key++){var v=$new_value_array[key].toString().split(';');if($value_n===0){$new_value=v[0];}else{$new_value=v[($value_n-1)];}
if(typeof $new_value==='undefined'){$new_value='';}
if($value_type=='int'){$sum+=parseFloat($new_value);}else{if($sum===''){$sum+=$new_value;}else{$sum+=','+$new_value;}}}}
$value=$sum;}
if($parent.classList.contains('super-radio')){$text_field=false;$new_value=$element.value.toString().split(';');if($value_n===0){$new_value=$new_value[0];}else{$new_value=$new_value[($value_n-1)];}
if(typeof $new_value==='undefined'){$new_value='';}
if($value_n=='label'){$new_value='';$selected=$element.closest('.super-field').querySelector('.super-field-wrapper .super-active');if($selected){$new_value=$selected.textContent;}}
if($value_type=='int'){$value=parseFloat($new_value);}else{$value=($new_value);}}
if($parent.classList.contains('super-hidden')){if($parent.dataset.conditionalVariableAction=='enabled'){$text_field=false;if($element.value.indexOf('"')!==-1){$value=$element.value;}else{$new_value=$element.value.toString().split(';');if($value_n===0){$new_value=$new_value[0];}else{$new_value=$new_value[($value_n-1)];}
if(typeof $new_value==='undefined'){$new_value='';}
if($value_type=='int'){$value=parseFloat($new_value);}else{$value=$new_value;}}}}
if($parent.classList.contains('super-file')){$text_field=false;$new_value='';if($value_n=='label'){$new_value=$parent.querySelector('.super-active-files').dataset.email;}else{var regex=/\[(\d*)\]/,i=0,m,totalFiles=0,files,formId=parseInt(args.form.id.replace('super-form-',''),10);if($value_n=='allFileNames'||$value_n=='allFileUrls'||$value_n=='allFileLinks'){var allFileNames='';var allFileUrls='';var allFileLinks='';if(SUPER.files[formId]){if(SUPER.files[formId][$element.name]){files=SUPER.files[formId][$element.name];for(i=0;i<files.length;i++){if($value_n=='allFileNames')allFileNames+=SUPER.html_encode(files[i].name)+'<br />';if($value_n=='allFileUrls')allFileUrls+=SUPER.html_encode(files[i].url)+'<br />';if($value_n=='allFileLinks')allFileLinks+='<a href="'+SUPER.html_encode(files[i].url)+'">'+SUPER.html_encode(files[i].name)+'</a><br />';}}}
if($value_n=='allFileNames'){$new_value=allFileNames;}
if($value_n=='allFileUrls'){$new_value=allFileUrls;}
if($value_n=='allFileLinks'){$new_value=allFileLinks;}}else{if(SUPER.files[formId]){if(SUPER.files[formId][$element.name]){files=SUPER.files[formId][$element.name]
m=regex.exec($value_n);if(m)i=parseInt(m[1],10);if($value_n.substring(0,11)==='total_files'||$value_n.substring(0,5)==='total'||$value_n.substring(0,5)==='count'){totalFiles=$parent.querySelectorAll('.super-fileupload-files > div').length;$new_value=totalFiles;}
if($value_n.substring(0,9)==='new_count'){totalFiles=$parent.querySelectorAll('.super-fileupload-files > div:not(.super-uploaded)').length;$new_value=totalFiles;}
if($value_n.substring(0,14)==='existing_count'){totalFiles=$parent.querySelectorAll('.super-fileupload-files > div.super-uploaded').length;$new_value=totalFiles;}
if(files[i]){if($value_n.substring(0,3)==='url'||$value_n.substring(0,3)==='src'){$new_value=files[i].url;}
if($value_n.substring(0,4)==='size'||$value_n.substring(0,8)==='filesize'){$new_value=files[i].size;}
if($value_n.substring(0,4)==='type'||$value_n.substring(0,4)==='mime'){$new_value=files[i].type;}
if($value_n.substring(0,8)==='basename'||$value_n.substring(0,4)==='name'){$new_value=files[i].name;}
if($value_n.substring(0,3)==='ext'){var split=files[i].name.split('.');var ext=(split[1]?split[1]:'');$new_value=ext.toLowerCase();}}}}}}
$value=$new_value;}
if($text_field===true){if($element.closest('.super-shortcode').classList.contains('super-auto-suggest')||$element.closest('.super-shortcode').classList.contains('super-wc-order-search')){if($element.closest('.super-field-wrapper').querySelector('.super-active')){$new_value=$element.closest('.super-field-wrapper').querySelector('.super-active').dataset.value;$new_value=$new_value.toString().split(';');if($value_n===0){$new_value=$new_value[0];}else{$new_value=$new_value[($value_n-1)];}
if(typeof $new_value==='undefined'){$new_value='';}
$value=$new_value;}}else{$value=$element.value;}
if(args.target){if((typeof $element.dataset.value!=='undefined')&&(args.target.classList.contains('super-html-content'))){$value=$element.dataset.value;}}
if($value_type=='int'){$value=($value)?parseFloat($value):'';}}
if(($value_type=='int')&&(isNaN($value))){$value=$default_value;}
args.value=args.value.replace('{'+$old_name+'}',$value);}}}}
return args.value;};SUPER.close_loading_overlay=function(loadingOverlay){if(loadingOverlay)loadingOverlay.remove();};SUPER.reset_submit_button_loading_state=function(form){var submitButton=form.querySelector('.super-form-button.super-loading');if(submitButton){submitButton.classList.remove('super-loading');var buttonName=submitButton.querySelector('.super-button-name');var normal=buttonName.dataset.normal;buttonName.innerHTML=normal;}};SUPER.show_pdf_download_btn=function(args){var btn=document.createElement('div');btn.classList.add('super-pdf-download-btn');btn.innerHTML=args.pdfSettings.downloadBtnText;args.loadingOverlay.querySelector('.super-loading-text').appendChild(btn);btn.addEventListener('click',function(){args._pdf.save(args.pdfSettings.filename);});};SUPER.form_submission_finished=function(args,result){if(args.showOverlay==="true"){if(args.progressBar)args.progressBar.style.width=100+"%";var innerText=args.loadingOverlay.querySelector('.super-inner-text');if(innerText){innerText.innerHTML='<span>'+super_common_i18n.loadingOverlay.completed+'</span>';}
if(result.msg!==''){if(result.error===true){args.loadingOverlay.classList.add('super-error');}else{args.loadingOverlay.classList.add('super-success');if(args.generatePdf&&args.pdfSettings.downloadBtn==='true'){SUPER.show_pdf_download_btn(args);}
if(typeof SUPER.init_popups==='function'&&typeof SUPER.init_popups.close==='function'){SUPER.init_popups.close(true);}}
if(innerText)innerText.innerHTML=result.msg;var node=innerText.querySelector('script');if(node&&node.tagName==='SCRIPT'){var script=document.createElement("script");script.text=node.innerHTML;for(var i=node.attributes.length-1;i>=0;i--){script.setAttribute(node.attributes[i].name,node.attributes[i].value);}
node.parentNode.replaceChild(script,node);}}else{if(args.generatePdf&&args.pdfSettings.downloadBtn==='true'){args.loadingOverlay.classList.add('super-success');SUPER.show_pdf_download_btn(args);}else{SUPER.close_loading_overlay(args.loadingOverlay);}
if(typeof SUPER.init_popups==='function'&&typeof SUPER.init_popups.close==='function'){SUPER.init_popups.close(true);}}}else{if(result.msg!==''){var ii,html,nodes=document.querySelectorAll('.super-msg');for(ii=0;ii<nodes.length;ii++){nodes[ii].remove();}
if(result.error===true){html='<div class="super-msg super-error">';if(typeof result.fields!=='undefined'){$.each(result.fields,function(index,value){$(value+'[name="'+index+'"]').parent().addClass('error');});}}else{html='<div class="super-msg super-success"';if(result.display===false){html+='style="display:none;">';}
html+='>';}
html+=result.msg;html+='<span class="super-close"></span>';html+='</div>';if(args.form){$(html).prependTo($(args.form));$('html, body').animate({scrollTop:$(args.form).offset().top-200},1000);}}}
if(result.redirect){window.location.href=result.redirect;}
if(result.loading!==true){if(typeof args.form!=='undefined'){SUPER.reset_submit_button_loading_state(args.form[0]);if(result.error===false){if($(args.form).data('hide')===true){$(args.form).find('.super-field, .super-multipart-progress, .super-field, .super-multipart-steps').fadeOut(500);setTimeout(function(){$(args.form).find('.super-field, .super-shortcode').remove();},500);}else{if($(args.form).data('clear')===true){SUPER.init_clear_form({form:args.form0});}}
if(result.msg===''){if(typeof SUPER.init_popups==='function'&&typeof SUPER.init_popups.close==='function'){SUPER.init_popups.close(true);}}}}}};SUPER.trim=function($this){if(typeof $this==='string'){return $this.replace(/^\s+|\s+$|\s+(?=\s)/g,"");}};SUPER.handle_validations=function(args){if(args.el.closest('[data-conditional-action="show"]')){if(args.el.closest('[data-conditional-action="show"]').classList.contains('super-conditional-hidden')){return false;}}
if(args.el.closest('.super-shortcode').classList.contains('super-hidden'))return false;var parent=args.el.closest('.super-field'),result,error=false,regex,value,numbers,pattern,attr,text_field,total,field_value,value2,counter,checked,custom_regex=(args.el.parentNode.querySelector('.super-custom-regex')?args.el.parentNode.querySelector('.super-custom-regex').value:undefined),mayBeEmpty=(typeof args.el.dataset.mayBeEmpty!=='undefined'?args.el.dataset.mayBeEmpty:'false'),allowEmpty=false,urlRegex=/^(http(s)?:\/\/)?(www\.)?[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,5}(:[0-9]{1,5})?(\/.*)?$/;if(args.el.value===''){if(typeof mayBeEmpty!=='undefined'){if(mayBeEmpty=='false'){allowEmpty=false;}
if(mayBeEmpty=='true'){allowEmpty=true;}
if(mayBeEmpty=='conditions'){allowEmpty=true;args.conditionalLogic=args.form.querySelectorAll('.super-validate-conditions');if(typeof args.conditionalLogic!=='undefined'){if(args.conditionalLogic.length!==0){result=SUPER.conditional_logic.loop(args);if(!result){allowEmpty=false;}}}}}}
regex=new RegExp(custom_regex);if(custom_regex&&args.validation=='custom'){if(!regex.test(args.el.value))error=true;}
if(args.validation=='captcha'){error=true;}
if(args.validation=='numeric'){regex=/^\d+$/;if(!regex.test(args.el.value))error=true;}
if(args.validation=='float'){regex=/^[+-]?\d+(\.\d+)?$/;if(!regex.test(args.el.value))error=true;}
if(args.validation=='email'){regex=/^([\w-.+]+@([\w-]+\.)+[\w-]{2,63})?$/;if((args.el.value.length<4)||(!regex.test(args.el.value))){error=true;}}
if(args.validation=='phone'){regex=/^((\+)?[1-9]{1,2})?([-\s.])?((\(\d{1,4}\))|\d{1,4})(([-\s.])?[0-9]{1,12}){1,2}$/;value=args.el.value;numbers=value.split("").length;if(10<=numbers&&numbers<=20&®ex.test(value)){}else{error=true;}}
if(args.validation=='website'){pattern=new RegExp(urlRegex);if(!pattern.test(args.el.value))error=true;}
if(args.validation=='iban'){if((IBAN.isValid(args.el.value)===false)&&(args.el.value!==''))error=true;}
attr=args.el.dataset.minlength;if(typeof attr!=='undefined'&&attr!==false){text_field=true;total=0;if(parent.classList.contains('super-checkbox')){text_field=false;checked=parent.querySelectorAll('.super-item.super-active');if(checked.length<attr){error=true;}}
if(parent.classList.contains('super-dropdown')){text_field=false;total=parent.querySelectorAll('.super-dropdown-list .super-item.super-active:not(.super-placeholder)').length;if(total<attr)error=true;}
if(parent.classList.contains('super-keyword-tags')){text_field=false;total=parent.querySelectorAll('.super-autosuggest-tags > div > span').length;if(total<attr)error=true;}
if(text_field===true){if(!parent.classList.contains('super-date')){if(args.el.value.length<attr)error=true;}}}
attr=args.el.dataset.maxlength;if(typeof attr!=='undefined'&&attr!==false){text_field=true;total=0;if(parent.classList.contains('super-checkbox')){text_field=false;checked=parent.querySelectorAll('.super-item.super-active');if(checked.length>attr)error=true;}
if(parent.classList.contains('super-dropdown')){text_field=false;total=parent.querySelectorAll('.super-dropdown-list .super-item.super-active:not(.super-placeholder)').length;if(total>attr)error=true;}
if(parent.classList.contains('super-keyword-tags')){text_field=false;total=parent.querySelectorAll('.super-autosuggest-tags > div > span').length;if(total>attr)error=true;}
if(text_field===true){if(!parent.classList.contains('super-date')){if(args.el.value.length>attr)error=true;}}}
attr=args.el.dataset.minnumber;if(typeof attr!=='undefined'&&attr!==false){if(parent.classList.contains('super-currency')){value=$(args.el).maskMoney('unmasked')[0];value=(value)?parseFloat(value):0;if(value<parseFloat(attr))error=true;}else{if(parseFloat(args.el.value)<parseFloat(attr))error=true;}}
attr=args.el.dataset.maxnumber;if(typeof attr!=='undefined'&&attr!==false){if(parent.classList.contains('super-currency')){value=$(args.el).maskMoney('unmasked')[0];value=(value)?parseFloat(value):0;if(value>parseFloat(attr))error=true;}else{if(parseFloat(args.el.value)>parseFloat(attr))error=true;}}
if(parent&&parent.classList.contains('super-date')){attr=args.el.dataset.minpicks;if(typeof attr!=='undefined'&&attr!==false){if(parseInt(attr,10)>0){if(args.el.value==='')error=true;total=args.el.value.split(',').length;if(total<parseFloat(attr))error=true;}}}
if(typeof args.conditionalValidation!=='undefined'&&args.conditionalValidation!='none'&&args.conditionalValidation!==''){field_value=args.el.value;if(parent.classList.contains('super-currency')){value=$(args.el).maskMoney('unmasked')[0];field_value=(value)?parseFloat(value):0;}
value=args.el.dataset.conditionalValidationValue;value2=args.el.dataset.conditionalValidationValue2;if(typeof value!=='undefined')value=SUPER.get_conditional_validation_value(value,args.form);if(typeof value2!=='undefined')value2=SUPER.get_conditional_validation_value(value2,args.form);counter=0;if(args.conditionalValidation=='equal'&&field_value==value)counter++;if(args.conditionalValidation=='not_equal'&&field_value!=value)counter++;if(args.conditionalValidation=='contains'&&field_value.indexOf(value)>=0)counter++;if(args.conditionalValidation=='not_contains'&&field_value.indexOf(value)==-1)counter++;field_value=parseFloat(field_value);value=parseFloat(value);value2=parseFloat(value2);if(args.conditionalValidation=='greater_than'&&field_value>value)counter++;if(args.conditionalValidation=='less_than'&&field_value<value)counter++;if(args.conditionalValidation=='greater_than_or_equal'&&field_value>=value)counter++;if(args.conditionalValidation=='less_than_or_equal'&&field_value<=value)counter++;if((args.conditionalValidation=='greater_than_and_less_than')&&((field_value>value)&&(field_value<value2)))counter++;if((args.conditionalValidation=='greater_than_or_less_than')&&((field_value>value)||(field_value<value2)))counter++;if((args.conditionalValidation=='greater_than_or_equal_and_less_than')&&((field_value>=value)&&(field_value<value2)))counter++;if((args.conditionalValidation=='greater_than_or_equal_or_less_than')&&((field_value>=value)||(field_value<value2)))counter++;if((args.conditionalValidation=='greater_than_and_less_than_or_equal')&&((field_value>value)&&(field_value<=value2)))counter++;if((args.conditionalValidation=='greater_than_or_less_than_or_equal')&&((field_value>value)||(field_value<=value2)))counter++;if((args.conditionalValidation=='greater_than_or_equal_and_less_than_or_equal')&&((field_value>=value)&&(field_value<=value2)))counter++;if((args.conditionalValidation=='greater_than_or_equal_or_less_than_or_equal')&&((field_value>=value)||(field_value<=value2)))counter++;if(counter===0)error=true;}
if(args.el.classList.contains('super-fileupload')){attr=args.el.parentNode.querySelector('.super-active-files').dataset.minfiles;if(typeof attr!=='undefined'&&attr!==false){total=args.el.parentNode.querySelectorAll('.super-fileupload-files > div').length;if(total<attr)error=true;}
attr=args.el.parentNode.querySelector('.super-active-files').dataset.maxfiles;if(typeof attr!=='undefined'&&attr!==false){total=args.el.parentNode.querySelectorAll('.super-fileupload-files > div').length;if(total>attr)error=true;}
if(args.el.closest('.super-shortcode').classList.contains('super-error-active')){error=true;}}
if(allowEmpty&&args.el.value==='')error=false;if(typeof args.validation!=='undefined'&&!allowEmpty&&args.el.value==='')error=true;if(error){SUPER.handle_errors(args.el);SUPER.add_error_status_parent_layout_element($,args.el);}else{if(args.el.closest('.super-field'))args.el.closest('.super-field').classList.remove('super-error-active');SUPER.remove_error_status_parent_layout_element($,args.el);}
return error;};SUPER.handle_errors=function(el){if(el.closest('.super-field'))el.closest('.super-field').classList.add('super-error-active');};SUPER.validate_form=function(args){SUPER.resetFocussedFields();SUPER.conditional_logic(args);SUPER.before_validating_form_hook(args);var i=0,nodes,action=(args.submitButton.querySelector('.super-button-name')?args.submitButton.querySelector('.super-button-name').dataset.action:''),url=(typeof args.submitButton.dataset.href!=='undefined'?decodeURIComponent(args.submitButton.dataset.href):undefined),proceed=SUPER.before_submit_button_click_hook(args.event,args.submitButton),regex=/{([^\\\/\s"'+]*?)}/g,array=[],error=false,name,field,element,target,submitButtonName,oldHtml,loading,index,total,match,value,fileError,attr,validation,conditionalValidation,textField;if(args.submitButton.classList.contains('super-next-multipart')||args.submitButton.classList.contains('super-prev-multipart')){action='';}
if(action=='clear'){SUPER.init_clear_form({form:args.form});return false;}
if(action=='print'){SUPER.init_print_form(args);return false;}
if(proceed===true){if((url!=='')&&(typeof url!=='undefined')){while((match=regex.exec(url))!==null){array[i]=match[1];i++;}
for(i=0;i<array.length;i++){name=array[i];element=SUPER.field(args.form,name);if(element){value=element.value;url=url.replace('{'+name+'}',value);}}
url=url.replace('{','').replace('}','');if(url=='#'){return false;}else{target=args.submitButton.dataset.target;if((target!=='undefined')&&(target=='_blank')){window.open(url,'_blank');}else{window.location.href=url;}
return false;}}else{if(args.submitButton.closest('.super-form-button')&&args.submitButton.closest('.super-form-button').classList.contains('super-loading')){return false;}}}
if(typeof args.validateMultipart==='undefined')args.validateMultipart='';if(typeof tinyMCE!=='undefined'){if(typeof tinyMCE.triggerSave!=='undefined'){tinyMCE.triggerSave();}}
nodes=SUPER.field(args.form,'','all');for(i=0;i<nodes.length;i++){field=nodes[i];textField=true;if(!SUPER.has_hidden_parent(field)){if(field.classList.contains('super-active-files')){textField=false;fileError=false;attr=parseFloat(field.dataset.minfiles);if(!isNaN(attr)&&typeof attr!=='undefined'&&attr!==false){total=field.parentNode.querySelectorAll('.super-fileupload-files > div').length;if(total<attr){fileError=true;}}
attr=parseFloat(field.dataset.maxfiles);if(!isNaN(attr)&&typeof attr!=='undefined'&&attr!==false){total=field.parentNode.querySelectorAll('.super-fileupload-files > div').length;if(total>attr){fileError=true;}}
if(fileError===true){error=true;SUPER.handle_errors(field);SUPER.add_error_status_parent_layout_element($,field);}else{if(field.closest('.super-field'))field.closest('.super-field').classList.remove('super-error-active');SUPER.remove_error_status_parent_layout_element($,field);}}
if(textField===true){validation=field.dataset.validation;conditionalValidation=field.dataset.conditionalValidation;if(SUPER.handle_validations({el:field,form:args.form,validation:validation,conditionalValidation:conditionalValidation})){error=true;}}}}
var tabs=args.form.querySelectorAll('.super-tabs-tab.super-error');if(tabs&&tabs[0])tabs[0].click();var accordions=args.form.querySelectorAll('.super-accordion-item.super-error');if(accordions&&accordions[0])accordions[0].querySelector('.super-accordion-header').click();if(error===false){if(args.form.querySelectorAll('.super-error-active').length){SUPER.scrollToError(args.form);return true;}
if(args.validateMultipart===true)return true;submitButtonName=args.submitButton.querySelector('.super-button-name');args.submitButton.closest('.super-form-button').classList.add('super-loading');oldHtml=submitButtonName.innerHTML;loading=args.submitButton.querySelector('.super-button-name').dataset.loading;if(super_common_i18n.loading!='Loading...'){loading=super_common_i18n.loading;}
submitButtonName.innerHTML=loading;var formData=SUPER.prepare_form_data($(args.form));args={event:args.event,form:args.form,data:formData.data,form_id:formData.form_id,entry_id:formData.entry_id,list_id:formData.list_id,oldHtml:oldHtml,};args.callback=function(){SUPER.complete_submit(args);};SUPER.before_submit_hook(args);}else{SUPER.scrollToError(args.form,args.validateMultipart);}
SUPER.after_validating_form_hook(undefined,args.form);};SUPER.scrollToError=function(form,validateMultipart){var scroll=true,step,children,index,total,progress,multipart,proceed;if(validateMultipart===true){scroll=true;if(typeof form.dataset.disableScroll!=='undefined'){scroll=false;}
if(scroll){$('html, body').animate({scrollTop:$(form).offset().top-30},1000);}
return false;}
if(form.querySelector('.super-multipart-step.super-error')){step=form.querySelector('.super-multipart-step.super-error');children=Array.prototype.slice.call(step.parentNode.children);index=children.indexOf(step);total=form.querySelectorAll('.super-multipart').length;progress=100/total;progress=progress*(index+1);multipart=form.querySelectorAll('.super-multipart')[index];scroll=true;if(typeof multipart.dataset.disableScroll!=='undefined'){scroll=false;}
form.querySelector('.super-multipart-progress-bar').style.width=progress+'%';form.querySelector('.super-multipart-step.super-active').classList.remove('super-active');form.querySelector('.super-multipart.super-active').classList.remove('super-active');multipart.classList.add('super-active');step.classList.add('super-active');proceed=SUPER.before_scrolling_to_error_hook(form,$(form).offset().top-30);if(proceed!==true)return false;if(scroll){var current=multipart.querySelector('.super-error-active');current.scrollIntoView({behavior:"auto",block:"center",inline:"center"});SUPER.focusNextTabField({keyCode:32,preventDefault:function(){}},current,form,current);}}else{proceed=SUPER.before_scrolling_to_error_hook(form,$(form).find('.super-error-active').offset().top-200);if(proceed!==true)return false;$('html, body').animate({scrollTop:$(form).find('.super-error-active').offset().top-200},1000);}};SUPER.auto_step_multipart=function(args){var activeMultipart=args.el.closest('.super-multipart.super-active');if(!activeMultipart)return false;var i,nodes,totalFields,counter;if(activeMultipart){if(activeMultipart.dataset.stepAuto=='yes'){totalFields=0;nodes=activeMultipart.querySelectorAll('.super-shortcode-field');for(i=0;i<nodes.length;++i){if(!SUPER.has_hidden_parent(nodes[i])){if(nodes[i].type=='hidden'){if(nodes[i].closest('.super-shortcode').classList.contains('super-hidden')){continue;}}
totalFields++;}}
counter=1;nodes=activeMultipart.querySelectorAll('.super-shortcode-field');for(i=0;i<nodes.length;++i){if(!SUPER.has_hidden_parent(nodes[i])){if(totalFields==counter){if(nodes[i].name==args.el.name){setTimeout(function(){var activeMultipart=args.form.querySelector('.super-multipart-step.super-active'),children=Array.prototype.slice.call(activeMultipart.parentNode.children),total=args.form.querySelectorAll('.super-multipart').length,currentStep=children.indexOf(activeMultipart);if(total===currentStep+1){}else{SUPER.switchMultipart(undefined,args.el,'next');}},200);break;}}
counter++;}}}}};SUPER.save_form_params_filter=function(params){var i,name,functions=super_common_i18n.dynamic_functions.save_form_params_filter;if(typeof functions!=='undefined'){for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]==='undefined')continue;params=SUPER[name](params);}}
return params;};SUPER.before_submit_hook=function(args){var proceed=true,i,name,functions=super_common_i18n.dynamic_functions.before_submit_hook;if(typeof functions!=='undefined'){for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]==='undefined')continue;var result=SUPER[name](args);result=JSON.parse(result);if(result.error===true){proceed=false;var ii,nodes=document.querySelectorAll('.super-msg'),html='<div class="super-msg super-error">';for(ii=0;ii<nodes.length;ii++){nodes[ii].remove();}
if(typeof result.fields!=='undefined'){$.each(result.fields,function(index,value){$(value+'[name="'+index+'"]').parent().addClass('error');});}
html+=result.msg;html+='<span class="super-close"></span>';html+='</div>';$(html).prependTo($(args.form));var btn=args.form.querySelector('.super-form-button.super-loading');if(btn){var btnName=btn.querySelector('.super-button-name');btnName.innerHTML=args.oldHtml;btn.classList.remove('super-loading');}
$('html, body').animate({scrollTop:$(args.form).offset().top-200},1000);}}}
if(proceed)args.callback();};SUPER.before_email_send_hook=function(args){var i,name,found=0,functions=super_common_i18n.dynamic_functions.before_email_send_hook;if(typeof functions!=='undefined'){for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]==='undefined')continue;found++;SUPER[name](args);}}
if(found==0)args.callback(args);};SUPER.before_validating_form_hook=function(args){var i,name,functions=super_common_i18n.dynamic_functions.before_validating_form_hook;if(typeof functions!=='undefined'){for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]==='undefined')continue;SUPER[name](args);}}};SUPER.after_validating_form_hook=function(changedField,form){var i,name,functions=super_common_i18n.dynamic_functions.after_validating_form_hook;if(typeof functions!=='undefined'){for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]==='undefined')continue;SUPER[name](changedField,form);}}};SUPER.after_initializing_forms_hook=function(args){var i,name,functions=super_common_i18n.dynamic_functions.after_initializing_forms_hook;if(typeof functions!=='undefined'){for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]==='undefined')continue;SUPER[name](args);}}
var form=SUPER.get_frontend_or_backend_form(args);var defaultValues=form.querySelectorAll('.super-replace-tags .super-shortcode-field');if(typeof defaultValues!=='undefined'){for(i=0;i<defaultValues.length;i++){var oldValue=defaultValues[i].value;defaultValues[i].value=SUPER.update_variable_fields.replace_tags({form:form,value:defaultValues[i].value,defaultValues:true});var newValue=defaultValues[i].value;if(oldValue!=newValue){SUPER.after_field_change_blur_hook({el:defaultValues[i]});}
defaultValues[i].closest('.super-replace-tags').classList.remove('super-replace-tags');}}
args.callback(args);};SUPER.get_frontend_or_backend_form=function(args){var final_form=(typeof args.form==='undefined'?undefined:args.form);if(args.el){if(args.el.closest('.super-form'))final_form=args.el.closest('.super-form');if(args.el.closest('.super-preview-elements'))final_form=args.el.closest('.super-preview-elements');}else{if(!args.form){if(document.querySelector('.super-preview-elements'))final_form=document.querySelector('.super-preview-elements');if(document.querySelector('.super-live-preview'))final_form=document.querySelector('.super-live-preview');}else{final_form=args.form;}}
if(!final_form)final_form=document.body;if(final_form&&final_form.classList.contains('super-multipart')){final_form=final_form.closest('.super-form');}
return final_form;};SUPER.after_field_change_blur_hook=function(args){args.form=SUPER.get_frontend_or_backend_form(args);var $functions=super_common_i18n.dynamic_functions.after_field_change_blur_hook;jQuery.each($functions,function(key,value){if(typeof SUPER[value.name]!=='undefined'){SUPER[value.name](args);}});if(typeof args.el!=='undefined'&&(args.skip!==true)){SUPER.auto_step_multipart(args);}
SUPER.save_form_progress(args);};SUPER.after_init_common_fields=function(){var $functions=super_common_i18n.dynamic_functions.after_init_common_fields;jQuery.each($functions,function(key,value){if(typeof SUPER[value.name]!=='undefined'){SUPER[value.name]();}});};SUPER.save_form_progress_timeout=null;SUPER.save_form_progress=function(args){if(!args.form.classList.contains('super-save-progress')){return false;}
if(SUPER.save_form_progress_timeout!==null){clearTimeout(SUPER.save_form_progress_timeout);}
SUPER.save_form_progress_timeout=setTimeout(function(){var $data=SUPER.prepare_form_data($(args.form));var $form_id=$data.form_id;$data=SUPER.after_form_data_collected_hook($data.data);$.ajax({url:super_common_i18n.ajaxurl,type:'post',data:{action:'super_save_form_progress',data:$data,form_id:$form_id}});},1000);};SUPER.after_email_send_hook=function(args){var $event,ga=window[window.GoogleAnalyticsObject||'ga'],$ga_tracking,$proceed,$values,$parameters;if(typeof ga=='function'){$ga_tracking=super_common_i18n.ga_tracking;$ga_tracking=$ga_tracking.split('\n');$($ga_tracking).each(function(index,value){$proceed=true;$values=value.split(":");if($values.length>1){$event=$values[1].split("|");if(!args.form.hasClass('super-form-'+$values[0])){$proceed=false;}}else{$event=$values[0].split("|");}
if($proceed){if(((typeof $event[1]==='undefined')||($event[1]===''))||((typeof $event[2]==='undefined')||($event[2]===''))){console.log('Seems like we are missing required ga() parameters!');}else{if(($event[0]=='send')&&($event[1]=='event')){if((typeof $event[3]==='undefined')||($event[3]==='')){console.log('ga() is missing the "eventAction" parameter (The type of interaction e.g. "play")');}else{$parameters={};$parameters.hitType=$event[1];$parameters.eventCategory=$event[2];$parameters.eventAction=$event[3];if(typeof $event[4]!=='undefined'){$parameters.eventLabel=$event[4];}
if(typeof $event[5]!=='undefined'){$parameters.eventValue=$event[5];}
ga($event[0],$parameters);}}}}});}
var $functions=super_common_i18n.dynamic_functions.after_email_send_hook;jQuery.each($functions,function(key,value){if(typeof SUPER[value.name]!=='undefined'){SUPER[value.name](args);}});};SUPER.after_responsive_form_hook=function($classes,$form,$new_class,$window_classes,$new_window_class){var $functions=super_common_i18n.dynamic_functions.after_responsive_form_hook;jQuery.each($functions,function(key,value){if(typeof SUPER[value.name]!=='undefined'){SUPER[value.name]($classes,$form,$new_class,$window_classes,$new_window_class);}});};SUPER.prepare_form_data_fields=function($form){var $data={},$field,$files;$form.find('.super-shortcode-field').each(function(){var $this=$(this),$hidden=false,$parent=$this.parents('.super-shortcode:eq(0)'),$i,$new_value,$selected_items,$email_value,$item_value;if(typeof $this.attr('name')==='undefined'){return true;}
$this.parents('.super-shortcode.super-column').each(function(){if($(this).css('display')=='none'){$hidden=true;}});if(($hidden===true)||(($parent.css('display')=='none')&&(!$parent.hasClass('super-hidden')))){}else{if($this.hasClass('super-fileupload')){$parent=$this.parents('.super-field-wrapper:eq(0)');$field=$parent.find('.super-active-files');$files=$parent.find('.super-fileupload-files > div');$data[$field.attr('name')]={'label':$field.data('email'),'type':'files','exclude':$field.data('exclude'),'exclude_entry':$field.data('exclude-entry'),'files':{}};$files.each(function($index,$file){$file=$(this);$data[$field.attr('name')].files[$index]={'name':$field.attr('name'),'value':$file.attr('data-name'),'url':$file.attr('data-url'),'label':$field.data('email'),'exclude':$field.data('exclude'),'exclude_entry':$field.data('exclude-entry'),'excludeconditional':$field.data('excludeconditional'),};});}else{$data[$this.attr('name')]={'name':$this.attr('name'),'value':$this.val(),'label':$this.data('email'),'exclude':$this.data('exclude'),'replace_commas':$this.data('replace-commas'),'exclude_entry':$this.data('exclude-entry'),'excludeconditional':$this.data('excludeconditional'),'type':'var'};if($this.attr('name')==='mailchimp_list_id'){if($this.attr('data-subscriber-tags'))$data[$this.attr('name')].subscriber_tags=$this.attr('data-subscriber-tags');if($this.attr('data-vip'))$data[$this.attr('name')].vip=$this.attr('data-vip');}
var $super_field=$this.parents('.super-field:eq(0)');if($super_field.hasClass('super-signature')){$data[$this.attr('name')].signatureLines=$super_field.find('.super-signature-lines').val();}
if($super_field.hasClass('super-date')){$data[$this.attr('name')].timestamp=$this[0].dataset.mathDiff;}
if($super_field.hasClass('super-textarea')){$data[$this.attr('name')].type='text';}
if($this.hasClass('super-address-autopopulate')){$data[$this.attr('name')].type='google_address';$data[$this.attr('name')].geometry={location:{'lat':$this.data('lat'),'lng':$this.data('lng'),}};}
if($super_field.hasClass('super-hidden')){if($this.data('code')===true){$data[$this.attr('name')].code='true';if($this.attr('data-invoice-padding')){$data[$this.attr('name')].invoice_padding=$this.attr('data-invoice-padding');}}}
if($super_field.hasClass('super-auto-suggest')||$super_field.hasClass('super-wc-order-search')){var $value=$super_field.find('.super-field-wrapper .super-dropdown-list > .super-active').attr('data-value');if(typeof $value!=='undefined'){$data[$this.attr('name')].value=$value.split(";")[0];}}
if($super_field.hasClass('super-dropdown')){$i=0;$new_value='';$selected_items=$super_field.find('.super-field-wrapper .super-dropdown-list > .super-active');$selected_items.each(function(){if($i===0){$new_value+=$(this).text();if($this.data('admin-email-value')=='both'){$new_value+=' ('+$(this).data('value')+')';}}else{$new_value+=', '+$(this).text();if($this.data('admin-email-value')=='both'){$new_value+=' ('+$(this).data('value')+')';}}
$i++;});$data[$this.attr('name')].option_label=$new_value;if(($this.data('admin-email-value')=='label')||($this.data('admin-email-value')=='both')){$data[$this.attr('name')].admin_value=$new_value;}else{$i=0;$new_value='';$selected_items.each(function(){$item_value=$(this).data('value').toString().split(';');if($i===0){$new_value+=$item_value[0];}else{$new_value+=', '+$item_value[0];}
$i++;});$data[$this.attr('name')].value=$new_value;}
$email_value=$this.data('confirm-email-value');if(($email_value=='label')||($email_value=='both')){$i=0;$new_value='';$selected_items.each(function(){$item_value=$(this).data('value').toString().split(';');if($i===0){$new_value+=$(this).text();if($email_value=='both'){$new_value+=' ('+$item_value[0]+')';}}else{$new_value+=', '+$(this).text();if($email_value=='both'){$new_value+=' ('+$item_value[0]+')';}}
$i++;});$data[$this.attr('name')].confirm_value=$new_value;}
$email_value=$this.data('contact-entry-value');if(($email_value=='label')||($email_value=='both')){$i=0;$new_value='';$selected_items.each(function(){$item_value=$(this).data('value').toString().split(';');if($i===0){$new_value+=$(this).text();if($email_value=='both'){$new_value+=' ('+$item_value[0]+')';}}else{$new_value+=', '+$(this).text();if($email_value=='both'){$new_value+=' ('+$item_value[0]+')';}}
$i++;});$data[$this.attr('name')].entry_value=$new_value;}}
if($super_field.hasClass('super-checkbox')||$super_field.hasClass('super-radio')){$i=0;$new_value='';$selected_items=$super_field.find('.super-field-wrapper .super-active');$selected_items.each(function(){$item_value=$(this).find('input').val().toString().split(';');if($i===0){$new_value+=$(this).text();if($this.data('admin-email-value')=='both'){$new_value+=' ('+$item_value[0]+')';}}else{$new_value+=', '+$(this).text();if($this.data('admin-email-value')=='both'){$new_value+=' ('+$item_value[0]+')';}}
$i++;});$data[$this.attr('name')].option_label=$new_value;if(($this.data('admin-email-value')=='label')||($this.data('admin-email-value')=='both')){$data[$this.attr('name')].admin_value=$new_value;}else{$i=0;$new_value='';$selected_items.each(function(){$item_value=$(this).find('input').val().toString().split(';');if($i===0){$new_value+=$item_value[0];}else{$new_value+=','+$item_value[0];}
$i++;});$data[$this.attr('name')].value=$new_value;}
$email_value=$this.data('confirm-email-value');if(($email_value=='label')||($email_value=='both')){$i=0;$new_value='';$selected_items.each(function(){$item_value=$(this).find('input').val().toString().split(';');if($i===0){$new_value+=$(this).text();if($email_value=='both'){$new_value+=' ('+$item_value[0]+')';}}else{$new_value+=', '+$(this).text();if($email_value=='both'){$new_value+=' ('+$item_value[0]+')';}}
$i++;});$data[$this.attr('name')].confirm_value=$new_value;}
$email_value=$this.data('contact-entry-value');if(($email_value=='label')||($email_value=='both')){$i=0;$new_value='';$selected_items.each(function(){$item_value=$(this).find('input').val().toString().split(';');if($i===0){$new_value+=$(this).text();if($email_value=='both'){$new_value+=' ('+$item_value[0]+')';}}else{$new_value+=', '+$(this).text();if($email_value=='both'){$new_value+=' ('+$item_value[0]+')';}}
$i++;});$data[$this.attr('name')].entry_value=$new_value;}}}}});return $data;};SUPER.prepare_form_data=function($form){var $data=SUPER.prepare_form_data_fields($form),$form_id='',$entry_id='',$list_id='',$dynamic_columns={},$dynamic_arrays=[],$map_key_names=[],$first_property_name,new_key,i,$dynamic_column_fields_data;$form.find('.super-column[data-duplicate-limit]').each(function(){$dynamic_arrays=[];$map_key_names=[];$first_property_name=undefined;$(this).find('.super-duplicate-column-fields').each(function(){$dynamic_column_fields_data=SUPER.prepare_form_data_fields($(this));if(typeof $first_property_name==='undefined'){$first_property_name=Object.getOwnPropertyNames($dynamic_column_fields_data)[0];}
$dynamic_arrays.push($dynamic_column_fields_data);});if($first_property_name!==undefined){Object.keys($dynamic_arrays[0]).forEach(function(key){$map_key_names.push(key);});Object.keys($dynamic_arrays).forEach(function(key){if(key>0){i=0;Object.keys($dynamic_arrays[key]).forEach(function(old_key){new_key=$map_key_names[i];if(old_key!==new_key){Object.defineProperty($dynamic_arrays[key],new_key,Object.getOwnPropertyDescriptor($dynamic_arrays[key],old_key));delete $dynamic_arrays[key][old_key];}
i++;});}});$dynamic_columns[$first_property_name]=$dynamic_arrays;}});if(Object.keys($dynamic_columns).length>0){$data._super_dynamic_data=$dynamic_columns;}
if($form.find('input[name="hidden_form_id"]').length!==0){$form_id=$form.find('input[name="hidden_form_id"]').val();}
$data.hidden_form_id={'name':'hidden_form_id','value':$form_id,'type':'form_id'};if($form.find('input[name="hidden_contact_entry_id"]').length!==0){$entry_id=$form.find('input[name="hidden_contact_entry_id"]').val();}
$data.hidden_contact_entry_id={'name':'hidden_contact_entry_id','value':$entry_id,'type':'entry_id'};if($form.find('input[name="hidden_list_id"]').length!==0){$list_id=$form.find('input[name="hidden_list_id"]').val();}
return{data:$data,form_id:$form_id,entry_id:$entry_id,list_id:$list_id};};SUPER.after_form_data_collected_hook=function(data){var i,name,functions=super_common_i18n.dynamic_functions.after_form_data_collected_hook;for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]!=='undefined'){data=SUPER[name](data);}}
return data;};SUPER.after_duplicate_column_fields_hook=function(el,field,counter,column,fieldNames,fieldLabels){var i,name,functions=super_common_i18n.dynamic_functions.after_duplicate_column_fields_hook;for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]!=='undefined'){SUPER[name](el,field,counter,column,fieldNames,fieldLabels);}}};SUPER.after_appending_duplicated_column_hook=function(form,uniqueFieldNames,clone){var i,name,functions=super_common_i18n.dynamic_functions.after_appending_duplicated_column_hook;for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]!=='undefined'){SUPER[name](form,uniqueFieldNames,clone);}}};SUPER.after_duplicating_column_hook=function(form,uniqueFieldNames,clone){var i,name,functions=super_common_i18n.dynamic_functions.after_duplicating_column_hook;for(i=0;i<functions.length;i++){name=functions[i].name;if(typeof SUPER[name]!=='undefined'){SUPER[name](form,uniqueFieldNames,clone);}}};SUPER.before_submit_button_click_hook=function(e,$submit_button){var $proceed=true;var $functions=super_common_i18n.dynamic_functions.before_submit_button_click_hook;jQuery.each($functions,function(key,value){if(typeof SUPER[value.name]!=='undefined'){$proceed=SUPER[value.name](e,$proceed,$submit_button);}});return $proceed;};SUPER.after_preview_loaded_hook=function($form_id){var $functions=super_common_i18n.dynamic_functions.after_preview_loaded_hook;jQuery.each($functions,function(key,value){if(typeof SUPER[value.name]!=='undefined'){SUPER[value.name]($form_id);}});};SUPER.after_form_cleared_hook=function(form){var functions=super_common_i18n.dynamic_functions.after_form_cleared_hook;jQuery.each(functions,function(key,value){if(typeof SUPER[value.name]!=='undefined'){SUPER[value.name](form);}});};SUPER.before_scrolling_to_error_hook=function(form,scroll){var proceed=true;var functions=super_common_i18n.dynamic_functions.before_scrolling_to_error_hook;jQuery.each(functions,function(key,value){if(typeof SUPER[value.name]!=='undefined'){proceed=SUPER[value.name](proceed,form,scroll);}});return proceed;};SUPER.before_scrolling_to_message_hook=function($form,$scroll){var $proceed=true;var $functions=super_common_i18n.dynamic_functions.before_scrolling_to_message_hook;jQuery.each($functions,function(key,value){if(typeof SUPER[value.name]!=='undefined'){$proceed=SUPER[value.name]($proceed,$form,$scroll);}});return $proceed;};SUPER.google_maps_api=function(){};SUPER.google_maps_init=function(args){if(typeof args==='undefined')args={};if(!args.form)return true;SUPER.google_maps_api.initAutocomplete(args);SUPER.google_maps_api.initMaps(args);};SUPER.get_field_name=function($field){if($field.name)return $field.name;};SUPER.strip_tags=function(input,allowed){allowed=(((allowed||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join('');var tags=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,commentsAndPhpTags=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;return input.replace(commentsAndPhpTags,'').replace(tags,function($0,$1){return allowed.indexOf('<'+$1.toLowerCase()+'>')>-1?$0:'';});}
SUPER.google_maps_api.allMaps=[];SUPER.google_maps_api.initMaps=function(args){var $form_id=0;if(args.form.querySelector('input[name="hidden_form_id"]')){$form_id=args.form.querySelector('input[name="hidden_form_id"]').value;}
if(typeof SUPER.google_maps_api.allMaps[$form_id]==='undefined'){SUPER.google_maps_api.allMaps[$form_id]=[];}
var $maps;if(!args.el){$maps=args.form.querySelectorAll('.super-google-map:not(.super-map-rendered)');}else{var field_name=SUPER.get_field_name(args.el);$maps=args.form.querySelectorAll('.super-google-map[data-fields*="{'+field_name+'}"]');}
Object.keys($maps).forEach(function(key){$maps[key].classList.add('super-map-rendered');var $data=JSON.parse($maps[key].querySelector('textarea').value);args.value=$data.address;var $address=SUPER.update_variable_fields.replace_tags(args);args.value=$data.origin;var $origin=SUPER.update_variable_fields.replace_tags(args);args.value=$data.destination;var $destination=SUPER.update_variable_fields.replace_tags(args);args.value=$data.directionsPanel;var $directionsPanel=SUPER.update_variable_fields.replace_tags(args);var $populateDistance=$data.populateDistance;var $populateDuration=$data.populateDuration;args.value=$data.travelMode;var $travelMode=SUPER.update_variable_fields.replace_tags(args);args.value=$data.unitSystem;var $unitSystem=SUPER.update_variable_fields.replace_tags(args);args.value=$data.optimizeWaypoints;var $optimizeWaypoints=SUPER.update_variable_fields.replace_tags(args);args.value=$data.provideRouteAlternatives;var $provideRouteAlternatives=SUPER.update_variable_fields.replace_tags(args);args.value=$data.avoidFerries;var $avoidFerries=SUPER.update_variable_fields.replace_tags(args);args.value=$data.avoidHighways;var $avoidHighways=SUPER.update_variable_fields.replace_tags(args);args.value=$data.avoidTolls;var $avoidTolls=SUPER.update_variable_fields.replace_tags(args);args.value=$data.region;var $region=SUPER.update_variable_fields.replace_tags(args);args.value=$data.disableDefaultUI;var $disableDefaultUI=SUPER.update_variable_fields.replace_tags(args);args.value=$data.zoom;var $zoom=SUPER.update_variable_fields.replace_tags(args);if($zoom==='')$zoom=5;$zoom=parseInt($zoom,10);var $address_marker=$data.address_marker,$polyline_stroke_weight=$data.polyline_stroke_weight,$polyline_stroke_color=$data.polyline_stroke_color,$polyline_stroke_opacity=$data.polyline_stroke_opacity,$polylines,$path=[],$coordinates,$lat,$lng,$field_name,$lat_min='',$lat_max='',$lng_min='',$lng_max='',Path,geocoder;SUPER.google_maps_api.allMaps[$form_id][key]=new google.maps.Map(document.getElementById('super-google-map-'+$form_id),{center:{lat:0,lng:0},zoom:$zoom,disableDefaultUI:('true'===$disableDefaultUI),});SUPER.google_maps_api.allMaps[$form_id][key]['super_el']=$maps[key];if($data.enable_polyline=='true'){$polylines=$data.polylines.split('\n');$($polylines).each(function(index,value){$coordinates=value.split("|");$lat=$coordinates[0];$lng=$coordinates[1];var regex=/{([^\\\/\s"'+]*?)}/g;if(regex.exec($lat)!==null){$field_name=$lat.replace('{','').replace('}','');$lat=SUPER.field(args.form,$field_name).dataset.lat;if(!$lat)$lat=0;}
if(regex.exec($lng)!==null){$field_name=$lng.replace('{','').replace('}','');$lng=SUPER.field(args.form,$field_name).dataset.lng;if(!$lng)$lng=0;}
$lat=parseFloat($lat);$lng=parseFloat($lng);if($lat!==0&&$lng!==0){new google.maps.Marker({position:{lat:$lat,lng:$lng},map:SUPER.google_maps_api.allMaps[$form_id][key]});}
$path.push({lat:$lat,lng:$lng});if($lat_min===''){$lat_min=$lat;$lat_max=$lat;$lng_min=$lng;$lng_max=$lng;}
if($lat_min>$lat)$lat_min=$lat;if($lat_max<$lat)$lat_max=$lat;if($lng_min>$lng)$lng_min=$lng;if($lng_max<$lng)$lng_max=$lng;});if($lat_min===0||$lat_max===0||$lng_min===0||$lng_max===0){SUPER.google_maps_api.allMaps[$form_id][key].setCenter(new google.maps.LatLng((($lat_max+$lat_min)/2.0),(($lng_max+$lng_min)/2.0)));}else{SUPER.google_maps_api.allMaps[$form_id][key].setCenter(new google.maps.LatLng((($lat_max+$lat_min)/2.0),(($lng_max+$lng_min)/2.0)));SUPER.google_maps_api.allMaps[$form_id][key].fitBounds(new google.maps.LatLngBounds(new google.maps.LatLng($lat_min,$lng_min),new google.maps.LatLng($lat_max,$lng_max)));Path=new google.maps.Polyline({path:$path,strokeColor:$polyline_stroke_color,strokeOpacity:$polyline_stroke_opacity,strokeWeight:$polyline_stroke_weight});Path.setMap(SUPER.google_maps_api.allMaps[$form_id][key]);}}
var target,panel=null;target=args.form.querySelector('.super-google-map-'+$form_id);if($directionsPanel=='true'){if(target.parentNode.querySelector('.super-google-map-directions')){target.parentNode.querySelector('.super-google-map-directions').remove();}
if(($origin==='')||($destination==='')){target.parentNode.classList.remove('super-has-panel');}else{target.parentNode.classList.add('super-has-panel');if(!target.parentNode.querySelector('.super-google-map-directions')){panel=document.createElement('div');panel.classList.add('super-google-map-directions');panel.style.height=target.parentNode.offsetHeight+'px';panel.style.overflowY="scroll";target.parentNode.appendChild(panel);}}}
if(($origin!=='')&&($destination!=='')){var directionsService=new google.maps.DirectionsService();var directionsRenderer=new google.maps.DirectionsRenderer({draggable:true,map:SUPER.google_maps_api.allMaps[$form_id][key],panel:($directionsPanel=='true'?SUPER.google_maps_api.allMaps[$form_id][i]['super_el'].querySelector('.super-google-map-directions'):null)});if($data.waypoints!==''){var w=$data.waypoints.split('\n');var i=0;var $xw=[];for(i=0;i<w.length;i++){var v=w[i].split('|');if(typeof v[1]==='undefined')v[1]='false';var location=v[0].replace('{','').replace('}','');var isTag=false;if(location!==v[0])isTag=true;var advancedTags=location.split(';');var fieldName=advancedTags[0];var originFieldName=fieldName;var advancedIndex="";if(advancedTags[1]){advancedIndex=advancedTags[1];}
var stopover=v[1].replace('{','').replace('}','');var stopoverIsTag=false;if(stopover!==v[1])stopoverIsTag=true;var stopoverAdvancedTags=stopover.split(';');var stopoverFieldName=stopoverAdvancedTags[0];var originStopoverFieldName=stopoverFieldName;var stopoverAdvancedIndex="";if(stopoverAdvancedTags[1]){stopoverAdvancedIndex=stopoverAdvancedTags[1];}
if(isTag||stopoverIsTag){var x=2;var dynamicFieldName=originFieldName+'_'+x;var stopoverDynamicFieldName=originStopoverFieldName+'_'+x;var found=SUPER.field_exists(args.form,dynamicFieldName);var stopoverFound=SUPER.field_exists(args.form,stopoverDynamicFieldName);var rows='';while(found||stopoverFound){var tag='';if(isTag){tag='{'+dynamicFieldName+'}';if(advancedIndex!==''){tag='{'+dynamicFieldName+';'+advancedIndex+'}';}}else{tag=location;}
rows+=tag;if(stopoverIsTag){tag='{'+stopoverDynamicFieldName+'}';if(stopoverAdvancedIndex!==''){tag='{'+stopoverDynamicFieldName+';'+stopoverAdvancedIndex+'}';}}else{tag=stopover;}
rows+="|"+tag+"\n";x++;dynamicFieldName=fieldName+'_'+x;found=SUPER.field_exists(args.form,dynamicFieldName)}}
var waypoints=w[i]+"\n"+rows;var xw=waypoints.split("\n");i=0;for(i=0;i<xw.length;i++){if(xw[i]==='')continue;var values=xw[i].split('|');args.value=values[0];location=SUPER.update_variable_fields.replace_tags(args);if(location==='')continue;args.value=values[1];stopover=SUPER.update_variable_fields.replace_tags(args);stopover=('true'===stopover);$xw.push({location:location,stopover:stopover});}}}
var request={origin:$origin,destination:$destination,travelMode:$travelMode,unitSystem:google.maps.UnitSystem[$unitSystem],waypoints:$xw,optimizeWaypoints:('true'===$optimizeWaypoints),provideRouteAlternatives:('true'===$provideRouteAlternatives),avoidFerries:('true'===$avoidFerries),avoidHighways:('true'===$avoidHighways),avoidTolls:('true'===$avoidTolls),region:$region};directionsService.route(request,function(result,status){if(status=='OK'){directionsRenderer.setDirections(result);if($directionsPanel=='true'){var totalDist=0;var totalTime=0;var myroute=result.routes[0];for(var i=0;i<myroute.legs.length;i++){totalDist+=myroute.legs[i].distance.value;totalTime+=myroute.legs[i].duration.value;}
var field;if($populateDistance!==''){if(SUPER.field_exists(args.form,$populateDistance)){field=SUPER.field(args.form,$populateDistance);field.value=totalDist;SUPER.after_field_change_blur_hook({el:field});}}
if($populateDuration!==''){if(SUPER.field_exists(args.form,$populateDuration)){field=SUPER.field(args.form,$populateDuration);field.value=totalTime;SUPER.after_field_change_blur_hook({el:field});}}}}else{result={msg:'Route was not successful for the following reason: '+status,loading:true,error:true}
SUPER.form_submission_finished(args,result);}});return true;}
if($address!==''){geocoder=new google.maps.Geocoder();geocoder.geocode({'address':$address},function(result,status){if(status=='OK'){SUPER.google_maps_api.allMaps[$form_id][key].setCenter(result[0].geometry.location);if($address_marker=='true'){new google.maps.Marker({map:SUPER.google_maps_api.allMaps[$form_id][key],position:result[0].geometry.location});}}else{result={msg:'Geocode was not successful for the following reason: '+status,loading:true,error:true}
SUPER.form_submission_finished(args,result);}});return true;}});};SUPER.google_maps_api.initAutocomplete=function(args){var url,field,items=args.form.querySelectorAll('.super-address-autopopulate:not(.super-autopopulate-init)');Object.keys(items).forEach(function(key){field=items[key];field.classList.add('super-autopopulate-init');args.el=field;if(typeof google==='undefined'){url='//maps.googleapis.com/maps/api/js?';if(field.dataset.apiRegion!=='')url+='region='+field.dataset.apiRegion+'&';if(field.dataset.apiLanguage!=='')url+='language='+field.dataset.apiLanguage+'&';url+='key='+field.dataset.apiKey+'&libraries=drawing,geometry,places,visualization&callback=SUPER.google_maps_init'
$.getScript(url,function(){SUPER.google_maps_api.initAutocompleteCallback(args);});}else{SUPER.google_maps_api.initAutocompleteCallback(args);}});};SUPER.google_maps_api.initAutocompleteCallback=function(args){var i,x,s,obj={},inputField,autocomplete=[];autocomplete[args.el.name]=new google.maps.places.Autocomplete(args.el);var mapping={street_number:'street_number',route:'street_name',locality:'city',postal_town:'city',sublocality_level_1:'city',administrative_area_level_2:'municipality',administrative_area_level_1:'state',country:'country',postal_code:'postal_code',lat:'lat',lng:'lng'};var $returnAddressComponent=false;for(var key in mapping){if($(args.el).data('map-'+mapping[key])){$returnAddressComponent=true;}}
var $returnName=false;if($(args.el).data('map-name'))$returnName=true;mapping.formatted_phone_number='formatted_phone_number';var $returnFormattedPhoneNumber=false;if($(args.el).data('map-formatted_phone_number'))$returnFormattedPhoneNumber=true;mapping.international_phone_number='international_phone_number';var $returnInternationalPhoneNumber=false;if($(args.el).data('map-international_phone_number'))$returnInternationalPhoneNumber=true;mapping.website='website';var $returnWebsite=false;if($(args.el).data('map-website'))$returnWebsite=true;var fields=['formatted_address','geometry.location'];if($returnAddressComponent)fields.push('address_components');if($returnName)fields.push('name');if($returnFormattedPhoneNumber)fields.push('formatted_phone_number');if($returnInternationalPhoneNumber)fields.push('international_phone_number');if($returnWebsite)fields.push('website');var thisAutocomplete=autocomplete[args.el.name];thisAutocomplete.setFields(fields);thisAutocomplete.el=args.el;thisAutocomplete.form=args.form;s=$(args.el).data('countries');if(s){x=s.split(',');obj.countries=[];for(i=0;i<x.length;i++){obj.countries.push(x[i].trim());}
thisAutocomplete.setComponentRestrictions({country:obj.countries,});}
s=$(args.el).data('types');if(s){x=s.split(',');obj.types=[];for(i=0;i<x.length;i++){obj.types.push(x[i].trim());}
thisAutocomplete.setTypes(obj.types);}
thisAutocomplete.addListener('place_changed',function(){var place=thisAutocomplete.getPlace();thisAutocomplete.el.value=place.formatted_address;SUPER.calculate_distance({el:thisAutocomplete.el});var street_data={number:{long:'',short:''},name:{long:'',short:''}};var lat=place.geometry.location.lat();var lng=place.geometry.location.lng();thisAutocomplete.el.dataset.lat=lat;thisAutocomplete.el.dataset.lng=lng;args.el=thisAutocomplete.el;args.form=thisAutocomplete.form;SUPER.google_maps_init(args);$(thisAutocomplete.el).trigger('keyup');var $attribute;var $val;var $address;if($returnAddressComponent){place.address_components.push({long_name:lat,short_name:lat,types:["lat"]});place.address_components.push({long_name:lng,short_name:lng,types:["lng"]});for(var i=0;i<place.address_components.length;i++){var item=place.address_components[i];var long=item.long_name;var short=item.short_name;var types=item.types;if(types.indexOf('street_number')!==-1){street_data.number.long=long;street_data.number.short=short;}
if(types.indexOf('route')!==-1){street_data.name.long=long;street_data.name.short=short;}
$attribute=$(thisAutocomplete.el).data('map-'+mapping[types[0]]);if(typeof $attribute!=='undefined'){$attribute=$attribute.split('|');inputField=SUPER.field(thisAutocomplete.form,$attribute[0]);if(inputField){if($attribute[1]==='')$attribute[1]='long';$val=place.address_components[i][$attribute[1]+'_name'];inputField.value=$val;if($val===''){inputField.closest('.super-shortcode').classList.remove('super-filled');}else{inputField.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:inputField});}}}}
$attribute=$(thisAutocomplete.el).data('map-name');if(typeof $attribute!=='undefined'){$attribute=$attribute.split('|');inputField=SUPER.field(thisAutocomplete.form,$attribute[0]);if(inputField){if($attribute[1]==='')$attribute[1]='long';$val=place.name;inputField.value=$val;if($val===''){inputField.closest('.super-shortcode').classList.remove('super-filled');}else{inputField.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:inputField});}}
$attribute=$(thisAutocomplete.el).data('map-formatted_address');if(typeof $attribute!=='undefined'){$attribute=$attribute.split('|');inputField=SUPER.field(thisAutocomplete.form,$attribute[0]);if(inputField){if($attribute[1]==='')$attribute[1]='long';$val=place.formatted_address;inputField.value=$val;if($val===''){inputField.closest('.super-shortcode').classList.remove('super-filled');}else{inputField.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:inputField});}}
$attribute=$(thisAutocomplete.el).data('map-formatted_phone_number');if(typeof $attribute!=='undefined'){$attribute=$attribute.split('|');inputField=SUPER.field(thisAutocomplete.form,$attribute[0]);if(inputField){if($attribute[1]==='')$attribute[1]='long';$val=place.formatted_phone_number;inputField.value=$val;if($val===''){inputField.closest('.super-shortcode').classList.remove('super-filled');}else{inputField.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:inputField});}}
$attribute=$(thisAutocomplete.el).data('map-international_phone_number');if(typeof $attribute!=='undefined'){$attribute=$attribute.split('|');inputField=SUPER.field(thisAutocomplete.form,$attribute[0]);if(inputField){if($attribute[1]==='')$attribute[1]='long';$val=place.international_phone_number;inputField.value=$val;if($val===''){inputField.closest('.super-shortcode').classList.remove('super-filled');}else{inputField.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:inputField});}}
$attribute=$(thisAutocomplete.el).data('map-website');if(typeof $attribute!=='undefined'){$attribute=$attribute.split('|');inputField=SUPER.field(thisAutocomplete.form,$attribute[0]);if(inputField){if($attribute[1]==='')$attribute[1]='long';$val=place.website;inputField.value=$val;if($val===''){inputField.closest('.super-shortcode').classList.remove('super-filled');}else{inputField.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:inputField});}}
$attribute=$(thisAutocomplete.el).data('map-street_name_number');if(typeof $attribute!=='undefined'){$attribute=$attribute.split('|');inputField=SUPER.field(thisAutocomplete.form,$attribute[0]);if(inputField){$address='';if(street_data.name[$attribute[1]]!=='')$address+=street_data.name[$attribute[1]];if($address!==''){$address+=' '+street_data.number[$attribute[1]];}else{$address+=street_data.number[$attribute[1]];}
inputField.value=$address;if($address===''){inputField.closest('.super-shortcode').classList.remove('super-filled');}else{inputField.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:inputField});}}
$attribute=$(thisAutocomplete.el).data('map-street_number_name');if(typeof $attribute!=='undefined'){$attribute=$attribute.split('|');inputField=SUPER.field(thisAutocomplete.form,$attribute[0]);if(inputField){$address='';if(street_data.number[$attribute[1]]!=='')$address+=street_data.number[$attribute[1]];if($address!==''){$address+=' '+street_data.name[$attribute[1]];}else{$address+=street_data.name[$attribute[1]];}
inputField.value=$address;if($address===''){inputField.closest('.super-shortcode').classList.remove('super-filled');}else{inputField.closest('.super-shortcode').classList.add('super-filled');}
SUPER.after_field_change_blur_hook({el:inputField});}}});};SUPER.checkboxes=function(){$('.super-checkbox').each(function(){var $value='';var $counter=0;var $checked=$(this).find('input[type="checkbox"]:checked');$checked.each(function(){if($counter===0)$value=$(this).val();if($counter!==0)$value=$value+','+$(this).val();$counter++;});$(this).find('input[type="hidden"]').val($value);});$('.super-radio, .super-shipping').each(function(){var $name=$(this).find('.super-shortcode-field').attr('name');$(this).find('input[type="radio"]').attr('name','group_'+$name);});$('.super-shipping').each(function(){if(!$(this).hasClass('html-finished')){var $currency=$(this).find('.super-shortcode-field').attr('data-currency');$(this).find('input[type="radio"]').each(function(){var $html=$(this).parent().html();var $value=$(this).val();$(this).parent().html($html+'<span class="super-shipping-price"> — '+$currency+''+parseFloat($value).toFixed(2)+'</span>');});$(this).addClass('html-finished');}});};SUPER.reverse_columns=function($form){$($form).find('.super-grid').each(function(){var $grid=$(this);var $columns=$grid.children('div.super-column:not(.super-not-responsive)');$grid.append($columns.get().reverse());$grid.children('div.super-column:last-child').removeClass('first-column');$grid.children('div.super-column:eq(0)').addClass('first-column');});};SUPER.handle_columns=function(){var $this,$exclusion,$fields,$width=0;$('div.super-field').each(function(){if($(this).hasClass('super-grouped')){if((!$(this).prev().hasClass('super-grouped'))||($(this).prev().hasClass('super-grouped-end'))){$(this).addClass('super-grouped-start');}}});$('.super-field > .super-label').each(function(){if($(this).parent().index());if(!$(this).parent().hasClass('super-grouped')){if($(this).outerWidth(true)>$width)$width=$(this).outerWidth(true);}});SUPER.checkboxes();SUPER.generateBarcode();SUPER.rating();var forms=document.querySelectorAll('.super-form');Object.keys(forms).forEach(function(key){$this=forms[key];if($this.classList.contains('super-rtl')){SUPER.reverse_columns($this);}
$exclusion=super_common_i18n.tab_index_exclusion;$fields=$($($this).find('.super-field:not('+$exclusion+')').get());$fields.each(function(key,value){$(value).attr('data-super-tab-index',key);});if($this.classList.contains('super-rtl')){SUPER.reverse_columns($this);}
var i=0,el,value,nodes=$this.querySelectorAll('.super-text .super-shortcode-field, .super-textarea .super-shortcode-field, .super-currency .super-shortcode-field, .super-dropdown .super-shortcode-field');for(i=0;i<nodes.length;i++){if(nodes[i].value!==''){el=nodes[i].closest('.super-shortcode');if(el.querySelector('.super-adaptive-placeholder')){el.querySelector('.super-adaptive-placeholder').children[0].innerHTML=el.querySelector('.super-adaptive-placeholder').dataset.placeholderfilled;el.classList.add('super-filled');}}}
nodes=$this.querySelectorAll('.super-signature');for(i=0;i<nodes.length;i++){value=nodes[i].querySelector('.super-signature-lines').value;if(value!==''){value=value.replace('\\"lines\\"','"lines"');$(nodes[i]).find('.super-signature-canvas').signature('enable').signature('draw',value);}}
nodes=$this.querySelectorAll('.super-toggle .super-shortcode-field');for(i=0;i<nodes.length;i++){if(nodes[i].value!==''){el=nodes[i].closest('.super-shortcode');if(nodes[i].value===el.querySelector('.super-toggle-on').dataset.value){el.querySelector('.super-toggle-switch').classList.add('super-active');}}}
nodes=$this.querySelectorAll('.super-radio .super-shortcode-field');for(i=0;i<nodes.length;i++){if(nodes[i].value!==''){el=nodes[i].closest('.super-shortcode');var items=el.querySelectorAll('.super-item');for(var ii=0;ii<items.length;ii++){var input=items[ii].querySelector('input');if(input.value==nodes[i].value){input.checked=true;items[ii].classList.add('super-active');break;}}}}
nodes=$this.querySelectorAll('.super-checkbox .super-shortcode-field');for(i=0;i<nodes.length;i++){if(nodes[i].value!==''){el=nodes[i].closest('.super-shortcode');items=el.querySelectorAll('.super-item');for(ii=0;ii<items.length;ii++){input=items[ii].querySelector('input');items[ii].classList.remove('super-active');input.checked=false;var options=nodes[i].value.split(',');if(options.indexOf(input.value)!==-1){input.checked=true;items[ii].classList.add('super-active');}}}}
var args={el:undefined,form:$this,callback:function(args){args.form.classList.add('super-rendered');if(!args.form.classList.contains('preload-disabled')){if(!args.form.classList.contains('super-initialized')){setTimeout(function(){$(args.form).fadeOut(100,function(){args.form.classList.add('super-initialized');$(args.form).fadeIn(500);});},500);}}else{args.form.classList.add('super-initialized');}}};SUPER.after_initializing_forms_hook(args);var resizeEvent=window.document.createEvent('UIEvents');resizeEvent.initUIEvent('resize',true,false,window,0);window.dispatchEvent(resizeEvent);});};SUPER.remove_super_form_classes=function($this,$classes){$.each($classes,function(k,v){$this.removeClass(v);});};SUPER.html_encode=function(value){return String(value).replace(/[^\w. ]/gi,function(c){return'&#'+c.charCodeAt(0)+';';});};SUPER.init_replace_html_tags=function(args){var $i,$v,$row_regex,$html_fields,$target,$html,$originalHtml,$splitName,$newName,$original,$field_name,$value_n,$currentField,$original_field_name,$rv,$return,$rows,$row,$regex,$array,$values,$new_value,$match,$fileLoopRows=[],formId=parseInt(args.form.id.replace('super-form-',''),10);if(args.form.classList.contains('super-preview-elements')){return false;}
if(typeof args.foundElements!=='undefined'){$html_fields=args.foundElements;}else{if(typeof args.el==='undefined'){$html_fields=args.form.querySelectorAll('.super-html-content, .super-accordion-title, super-accordion-desc');}else{$html_fields=args.form.querySelectorAll('.super-html-content[data-fields*="{'+SUPER.get_field_name(args.el)+'}"], .super-accordion-title[data-fields*="{'+SUPER.get_field_name(args.el)+'}"], .super-accordion-desc[data-fields*="{'+SUPER.get_field_name(args.el)+'}"]');}}
$regex=/{([^\\\/\s"'+]*?)}/g;Object.keys($html_fields).forEach(function(key){var $counter=0;$target=$html_fields[key];if($target.classList.contains('super-accordion-title')||$target.classList.contains('super-accordion-desc')){$html=$target.dataset.original;}else{if(!$target.parentNode.querySelector('textarea')){return true;}
$html=$target.parentNode.querySelector('textarea').value;}
if($html===''){return true;}
var $skipUpdate=true;$regex=/{([^\\\/\s"'+]*?)}/g;if($regex.exec($html)){$skipUpdate=false;}
$regex=/foreach\s?\(\s?['|"|\s|]?(.*?)['|"|\s|]?\)\s?:([\s\S]*?)(?:endforeach\s?;)/g;if($regex.exec($html)){$skipUpdate=false;}
if($html.indexOf('endif;')!==-1){$skipUpdate=false;}
if($skipUpdate)return true;if($html!==''){$regex=/foreach\s?\(\s?['|"|\s|]?(.*?)['|"|\s|]?\)\s?:([\s\S]*?)(?:endforeach\s?;)/g;$originalHtml=$html;while(($v=$regex.exec($originalHtml))!==null){if($v.index===$regex.lastIndex){$regex.lastIndex++;}
$original=$v[0];$field_name=$v[1];$splitName=$field_name.split(';');$field_name=$splitName[0];$value_n=($splitName[1]?$splitName[1]:'');$original_field_name=$field_name;$return='';if($v[2])$return=$v[2];if($return==='')continue;$i=1;$rows='';$currentField=undefined;while($currentField=SUPER.field(args.form,$field_name)){$row_regex=/<%(.*?)%>/g;$row=$return;while(($rv=$row_regex.exec($row))!==null){if($value_n==='loop'){if(SUPER.files[formId]){if(SUPER.files[formId][$field_name]){if(!$fileLoopRows[$field_name])$fileLoopRows[$field_name]=[];var x,files=SUPER.files[formId][$field_name];for(x=0;x<files.length;x++){if(!$fileLoopRows[$field_name][x])$fileLoopRows[$field_name][x]=$row;if($rv[1]==='counter'){$fileLoopRows[$field_name][x]=$fileLoopRows[$field_name][x].replace($rv[0],(x+1));continue;}
$fileLoopRows[$field_name][x]=$fileLoopRows[$field_name][x].replace($rv[0],'{'+$field_name+';'+$rv[1]+'['+(x)+']}');}}}}else{if($rv[1]==='counter'){$row=$row.replace($rv[0],$i);continue;}
if($i<2){$row=$row.replace($rv[0],'{'+$rv[1]+'}');continue;}
$splitName=$rv[1].split(';');$newName=$splitName[0]+'_'+$i;if($splitName.length>1){$newName+=';'+$splitName[1];}
$row=$row.replace($rv[0],'{'+$newName+'}');}}
if($value_n==='loop'){for(var z=0;z<$fileLoopRows[$field_name].length;z++){$rows+=$fileLoopRows[$field_name][z];}}else{$rows+=$row;}
$i++;$field_name=$original_field_name+'_'+$i;}
$html=$html.split($original).join($rows);}
$array=[];$regex=/{([^\\\/\s"'+]*?)}/g;while(($match=$regex.exec($html))!==null){$array[$counter]=$match[1];$counter++;}
if($array.length>0){for($counter=0;$counter<$array.length;$counter++){$values=$array[$counter];args.value='{'+$values+'}';args.target=$target;$new_value=SUPER.update_variable_fields.replace_tags(args);delete args.target;if(($values.indexOf('allFileNames')!==-1)||($values.indexOf('allFileUrls')!==-1)||($values.indexOf('allFileLinks')!==-1)){}else{$new_value=SUPER.html_encode($new_value);}
$html=$html.replace('{'+$values+'}',$new_value);}}
$html=SUPER.filter_if_statements($html);$target.innerHTML=$html;}});};SUPER.init_replace_post_url_tags=function(args){var $match,$target=args.form.querySelector('form'),$actiontags=($target?$target.dataset.actiontags:''),$regex=/{([^\\\/\s"'+]*?)}/g,$array=[],$counter=0,$values,$new_value;if($target){while(($match=$regex.exec($actiontags))!==null){$array[$counter]=$match[1];$counter++;}
if($array.length>0){for($counter=0;$counter<$array.length;$counter++){$values=$array[$counter];args.value='{'+$values+'}';args.target=$target;$new_value=SUPER.update_variable_fields.replace_tags(args);delete args.target;$actiontags=$actiontags.replace('{'+$values+'}',$new_value);}}
$target.action=$actiontags;}};SUPER.init_text_editors=function(){if(typeof tinyMCE!=='undefined'){$('.super-text-editor:not(.super-initialized)').each(function(){var $this=$(this),$name=$this.attr('id'),$incl_url=$this.data('incl-url');tinyMCE.execCommand('mceRemoveEditor',true,$name);var tinyMCEPreInit={baseURL:$this.data('baseurl'),suffix:'.min',mceInit:{},qtInit:{},ref:{},load_ext:function(url,lang){var sl=tinyMCE.ScriptLoader;sl.markDone(url+'/langs/'+lang+'.js');sl.markDone(url+'/langs/'+lang+'_dlg.js');}};tinyMCEPreInit.mceInit[$name]={theme:"modern",skin:"lightgray",language:"en",formats:{alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},relative_urls:false,remove_script_host:false,convert_urls:false,browser_spellcheck:true,fix_list_elements:true,entities:"38,amp,60,lt,62,gt",entity_encoding:"raw",keep_styles:false,cache_suffix:"wp-mce-4310-20160418",preview_styles:"font-family font-size font-weight font-style text-decoration text-transform",end_container_on_empty_block:true,wpeditimage_disable_captions:false,wpeditimage_html5_captions:true,plugins:"charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview",wp_lang_attr:"en-US",content_css:$incl_url+"/css/dashicons.css,"+$incl_url+"/js/tinymce/skins/wordpress/wp-content.css",selector:"#"+$name,resize:"vertical",menubar:false,wpautop:false,indent:false,toolbar1:"bold,italic,strikethrough,bullist,numlist,blockquote,hr,alignleft,aligncenter,alignright,link,unlink,wp_more,spellchecker,fullscreen,wp_adv",toolbar2:"formatselect,underline,alignjustify,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",toolbar3:"",toolbar4:"",tabfocus_elements:":prev,:next",body_class:$name+" post-type-page post-status-publish locale-en-us"};tinyMCEPreInit.qtInit[$name]={id:$name,buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,more,close"};tinyMCEPreInit.ref={plugins:"charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview",theme:"modern",language:"en"};if(($this.data('teeny')=='true')||($this.data('teeny')===true)){tinyMCEPreInit.mceInit[$name].toolbar2=false;}
if(($this.data('force-br')=='true')||($this.data('force-br')===true)){tinyMCEPreInit.mceInit[$name].forced_root_block=false;tinyMCEPreInit.mceInit[$name].force_br_newlines=true;tinyMCEPreInit.mceInit[$name].force_p_newlines=false;tinyMCEPreInit.mceInit[$name].convert_newlines_to_brs=true;}
var init,id,$wrap;for(id in tinyMCEPreInit.mceInit){init=tinyMCEPreInit.mceInit[id];$wrap=tinyMCE.$('#wp-'+id+'-wrap');if(($wrap.hasClass('tmce-active')||!Object.prototype.hasOwnProperty.call(tinyMCEPreInit.qtInit,id))&&!init.wp_skip_init){tinyMCE.init(init);if(!window.wpActiveEditor){window.wpActiveEditor=id;}}}
for(id in tinyMCEPreInit.qtInit){quicktags(tinyMCEPreInit.qtInit[id]);if(!window.wpActiveEditor){window.wpActiveEditor=id;}}});}};SUPER.init_set_dropdown_placeholder=function($form){if(typeof $form==='undefined')$form=$('.super-form');$form.find('.super-dropdown-list').each(function(){var $this=$(this);var $field=$this.parent('.super-field-wrapper').find('.super-shortcode-field');var $first_item=$this.find('.super-item:eq(1)');var $value=$field.val();if($value===''){$value=$field.data('default-value');}
if((typeof $value!=='undefined')&&($value!=='')){$field.val($value);var $new_placeholder='';$value=$value.toString().split(',');$.each($value,function(index,value){value=$.trim(value).split(';')[0];$this.find('.super-item:not(.super-placeholder)').each(function(){var $item_first_value=$(this).attr('data-value').split(';')[0];if($item_first_value==value){$(this).addClass('super-active');if($new_placeholder===''){$new_placeholder+=$(this).html();}else{$new_placeholder+=', '+$(this).html();}}});});if($new_placeholder!=='')$this.children('.super-placeholder').html($new_placeholder);}else{$field.val('');var $placeholder=$field.attr('placeholder');if((typeof $placeholder!=='undefined')&&($placeholder!=='')){$this.children('.super-placeholder').attr('data-value','').html($placeholder);}else{if($this.children('.super-placeholder').html()===''){$first_item.addClass('super-active');$this.children('.super-placeholder').attr('data-value',$first_item.attr('data-value')).html($first_item.html());}}}});};SUPER.init_print_form=function(args){var items,$data,$parent,$css,nodes,el,$items,i,ii,$file_id,win=window.open('','printwindow'),$html='',$print_file=args.submitButton.querySelector('input[name="print_file"]');if($print_file&&$print_file.value!==''&&$print_file.value!='0'){$file_id=$print_file.value;$data=SUPER.prepare_form_data($(args.form));$data=SUPER.after_form_data_collected_hook($data.data);$.ajax({url:super_common_i18n.ajaxurl,type:'post',data:{action:'super_print_custom_html',data:$data,file_id:$file_id},success:function(result){win.document.write(result);win.document.close();win.focus();setTimeout(function(){win.print();win.close();},250);return false;},error:function(xhr,ajaxOptions,thrownError){console.log(xhr,ajaxOptions,thrownError);alert(super_common_i18n.errors.failed_to_process_data);return false;}});}else{$css="<style type=\"text/css\">";$css+="body {font-family:Arial,sans-serif;color:#444;-webkit-print-color-adjust:exact;}";$css+="table {font-size:12px;}";$css+="table th{text-align:right;font-weight:bold;font-size:12px;padding-right:5px;}";$css+="table td{font-size:12px;}";$css+="</style>";$html=$css;$html+='<table>';nodes=args.form.querySelectorAll('.super-shortcode-field');for(i=0;i<nodes.length;i++){el=nodes[i];$items='';if((el.name=='hidden_form_id')||(el.name=='id'))continue;$parent=el.closest('.super-shortcode');$html+='<tr>';$html+='<th>';$html+=el.dataset.email;$html+='</th>';$html+='<td>';if($parent.classList.contains('super-radio')){$html+=($parent.querySelector('.super-active')?$parent.querySelector('.super-active').innerText:'');}else if($parent.classList.contains('super-dropdown')){items=$parent.querySelectorAll('.super-dropdown-list .super-active');for(ii=0;ii<items.length;ii++){$items+=($items===''?items[ii].innerText:', '+items[ii].innerText);}
$html+=$items;}else if($parent.classList.contains('super-checkbox')){items=$parent.querySelectorAll('.super-active');for(ii=0;ii<items.length;ii++){$items+=($items===''?items[ii].innerText:', '+items[ii].innerText);}
$html+=$items;}else{$html+=el.value;}
$html+='</td>';$html+='</tr>';}
$html+='</table>';win.document.write($html);win.document.close();win.focus();setTimeout(function(){win.print();win.close();},250);return false;}};SUPER.init_clear_form=function(args){var field,nodes,innerNodes,i,ii,children,index,element,dropdownItem,option,switchBtn,activeItem,value='',default_value,main_form=args.form,new_value='',new_placeholder='';if(typeof args.clone!=='undefined'){args.form=args.clone;nodes=args.form.querySelectorAll('.super-shortcode.super-slider > .super-field-wrapper > *:not(.super-shortcode-field)');for(i=0;i<nodes.length;i++){nodes[i].remove();}
nodes=args.form.querySelectorAll('.super-color .sp-replacer');for(i=0;i<nodes.length;i++){nodes[i].remove();}}
nodes=args.form.querySelectorAll('.super-address-autopopulate.super-autopopulate-init');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-autopopulate-init');}
nodes=args.form.querySelectorAll('.super-picker-initialized');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-picker-initialized');}
nodes=args.form.querySelectorAll('.super-auto-suggest .super-dropdown-list .super-item.super-active');for(i=0;i<nodes.length;i++){nodes[i].style.display='';nodes[i].classList.remove('super-active');}
nodes=args.form.querySelectorAll('.super-overlap');for(i=0;i<nodes.length;i++){if(args.clear===false){if(!nodes[i].closest('.super-wc-order-search')){nodes[i].classList.remove('super-overlap');}}else{nodes[i].classList.remove('super-overlap');}}
nodes=args.form.querySelectorAll('.super-keyword-tags .super-keyword-filter');for(i=0;i<nodes.length;i++){nodes[i].style.display='block';nodes[i].value='';}
nodes=args.form.querySelectorAll('.super-keyword-tags .super-autosuggest-tags > div > span');for(i=0;i<nodes.length;i++){nodes[i].remove();}
nodes=args.form.querySelectorAll('.super-keyword-tags .super-autosuggest-tags-list .super-active');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-active');}
nodes=args.form.querySelectorAll('.super-keyword-tags .super-shortcode-field');for(i=0;i<nodes.length;i++){nodes[i].value='';}
nodes=args.form.querySelectorAll('.super-keyword-tags');for(i=0;i<nodes.length;i++){field=nodes[i].querySelector('.super-keyword-filter');field.placeholder=field.dataset.placeholder;}
nodes=args.form.querySelectorAll('.super-tabs-menu .super-tabs-tab');if(nodes){if(nodes[0])nodes[0].click();}
nodes=args.form.querySelectorAll('.super-duplicate-column-fields');for(i=0;i<nodes.length;i++){children=Array.prototype.slice.call(nodes[i].parentNode.children);index=children.indexOf(nodes[i]);if(index>0)nodes[i].remove();}
nodes=args.form.querySelectorAll('.super-error, .super-error-active, .super-filled');for(i=0;i<nodes.length;i++){if(args.clear===false){if(!nodes[i].classList.contains('super-wc-order-search')){nodes[i].classList.remove('super-error');nodes[i].classList.remove('super-error-active');nodes[i].classList.remove('super-filled');}}else{nodes[i].classList.remove('super-error');nodes[i].classList.remove('super-error-active');nodes[i].classList.remove('super-filled');}}
nodes=args.form.querySelectorAll('.super-shortcode-field');for(i=0;i<nodes.length;i++){if(nodes[i].name=='hidden_form_id')continue;element=nodes[i];default_value='';default_value=element.dataset.defaultValue;if(typeof element.dataset.absoluteDefault!=='undefined'){default_value=element.dataset.absoluteDefault;}
field=element.closest('.super-field');if(!field)continue;if(args.clear===false&&field.classList.contains('super-wc-order-search')){continue;}
if(default_value!==""){field.classList.add('super-filled');}else{field.classList.remove('super-filled');}
if(field.classList.contains('super-checkbox')||field.classList.contains('super-radio')){innerNodes=field.querySelectorAll('.super-item');for(ii=0;ii<innerNodes.length;ii++){if(innerNodes[ii].classList.contains('super-default-selected')){innerNodes[ii].classList.add('super-active');innerNodes[ii].querySelector('input').checked=true;}else{innerNodes[ii].classList.remove('super-active');innerNodes[ii].querySelector('input').checked=false;}}}
if(field.classList.contains('super-quantity')){if(default_value==='')default_value=0;}
if(field.classList.contains('super-currency')){element.value=default_value;continue;}
if(field.classList.contains('super-color')){if(typeof $.fn.spectrum==="function"){if(default_value==='')default_value='#fff';$(field.querySelector('.super-shortcode-field')).spectrum('set',default_value);}
continue;}
if(field.classList.contains('super-toggle')){switchBtn=field.querySelector('.super-toggle-switch');activeItem=switchBtn.querySelector('label[data-value="'+default_value+'"]');if(!activeItem){default_value=switchBtn.querySelector('.super-toggle-off').dataset.value;activeItem=switchBtn.querySelector('label[data-value="'+default_value+'"]');}
if(activeItem.classList.contains('super-toggle-on')){switchBtn.classList.add('super-active');}else{switchBtn.classList.remove('super-active');}
element.value=activeItem.dataset.value;continue;}
if(field.classList.contains('super-dropdown')){innerNodes=field.querySelectorAll('.super-dropdown-list .super-item.super-active');for(ii=0;ii<innerNodes.length;ii++){innerNodes[ii].classList.remove('super-active');}
innerNodes=field.querySelectorAll('.super-dropdown-list .super-item.super-default-selected');for(ii=0;ii<innerNodes.length;ii++){innerNodes[ii].classList.add('super-active');}
if(innerNodes.length){field.classList.add('super-filled');}
if(typeof default_value==='undefined')default_value='';option=field.querySelector('.super-dropdown-list .super-item:not(.super-placeholder)[data-value="'+default_value+'"]:not(.super-placeholder)');if(option){field.querySelector('.super-placeholder').innerHTML=option.innerText;option.classList.add('super-active');element.value=default_value;element.value='';}else{if(field.querySelectorAll('.super-dropdown-list .super-item.super-active').length===0){if((typeof element.placeholder!=='undefined')&&(element.placeholder!=='')){field.querySelector('.super-placeholder').innerHTML=element.placeholder;dropdownItem=field.querySelector('.super-dropdown-list .super-item[data-value="'+element.placeholder+'"]');if(dropdownItem)dropdownItem.classList.add('super-active');}else{field.querySelector('.super-placeholder').innerHTML=field.querySelector('.super-dropdown-list .super-item').innerText;}
element.value='';}else{innerNodes=field.querySelectorAll('.super-dropdown-list .super-item.super-active');for(ii=0;ii<innerNodes.length;ii++){if(new_value===''){new_value+=innerNodes[ii].dataset.value;}else{new_value+=','+innerNodes[ii].dataset.value;}
if(new_placeholder===''){new_placeholder+=innerNodes[ii].innerText;}else{new_placeholder+=', '+innerNodes[ii].innerText;}}
field.querySelector('.super-placeholder').innerHTML=new_placeholder;element.value=new_value;}}
continue;}
if(field.classList.contains('super-auto-suggest')){innerNodes=field.querySelectorAll('.super-dropdown-list .super-item.super-active');for(ii=0;ii<innerNodes.length;ii++){innerNodes[ii].classList.remove('super-active');}
field.querySelector('.super-field-wrapper').classList.remove('super-overlap');element.value='';continue;}
if(field.classList.contains('super-file')){field.querySelector('.super-fileupload-files').innerHTML='';field.querySelector('.super-progress-bar').removeAttribute('style');field.querySelector('.super-active-files').value='';continue;}
if(typeof default_value!=='undefined'){value=default_value;element.value=value;if(field.classList.contains('super-slider')){if(element.parentNode.querySelector('.slider')){SUPER.reposition_slider_amount_label(element,value);}
continue;}
if(field.classList.contains('super-rating')){innerNodes=field.querySelectorAll('.super-rating-star');for(ii=0;ii<innerNodes.length;ii++){if((parseInt(value,10)-1)<ii){innerNodes[ii].classList.add('super-active');}else{innerNodes[ii].classList.remove('super-active');}}}}
element.value=value;}
SUPER.after_field_change_blur_hook({form:main_form});SUPER.after_form_cleared_hook(args.form);};SUPER.populate_form_with_entry_data=function(data,form,clear){if(typeof clear==='undefined')clear=true;var i,ii,iii,nodes,items,item,options,wrapper,input,innerNodes,firstValue,dropdown,setFieldValue,itemFirstValue,html,files,element,field,stars,currentStar,firstField,firstFieldName,switchBtn,activeItem,signatureDataUrl,fieldName,dynamicFields={},updatedFields={};data=JSON.parse(data);if(data!==false&&data.length!==0){SUPER.init_clear_form({form:form,clear:clear});nodes=form.querySelectorAll('.super-duplicate-column-fields');for(i=0;i<nodes.length;i++){firstField=SUPER.field(nodes[i]);if(firstField){firstFieldName=firstField.name;dynamicFields[firstFieldName]=firstField;}}
Object.keys(dynamicFields).forEach(function(index){i=2;while(typeof data[index+'_'+i]!=='undefined'){if(SUPER.field_exists(form,index+'_'+i)===0){dynamicFields[index].closest('.super-duplicate-column-fields').querySelector('.super-add-duplicate').click();}
i++;}});Object.keys(data).forEach(function(i){if(data[i].length===0)return true;html='';files='';fieldName=data[i].name;if(data[i].type=='files'){if((typeof data[i].files!=='undefined')&&(data[i].files.length!==0)){fieldName=data[i].files[0].name;}else{return true;}}
if(!fieldName)return true;element=SUPER.field(form,fieldName);if(!element)return true;if(element.value!=data[i].value){updatedFields[fieldName]=element;}
field=element.closest('.super-field');element.value=data[i].value;if(element.value===''){element.closest('.super-shortcode').classList.remove('super-filled');}else{element.closest('.super-shortcode').classList.add('super-filled');}
if(field.classList.contains('super-color')){if(typeof $.fn.spectrum==="function"){$(field.querySelector('.super-shortcode-field')).spectrum('set',data[i].value);}}
if(field.classList.contains('super-signature')){if(typeof $.fn.signature==="function"){signatureDataUrl=data[i].value;field.classList.add('super-filled');$(field.querySelector('.super-signature-canvas')).signature('draw',signatureDataUrl)}}
if(field.classList.contains('super-toggle')){switchBtn=field.querySelector('.super-toggle-switch');activeItem=switchBtn.querySelector('label[data-value="'+data[i].value+'"]');if(activeItem.classList.contains('super-toggle-on')){switchBtn.classList.add('super-active');}else{switchBtn.classList.remove('super-active');}
return true;}
if(data[i].type=='files'){if((typeof data[i].files!=='undefined')&&(data[i].files.length!==0)){$.each(data[i].files,function(fi,fv){if(fi===0){files+=fv.value;}else{files+=','+fv.value;}
element=form.querySelector('.super-active-files[name="'+fv.name+'"]');field=element.closest('.super-field');html+=SUPER.get_single_uploaded_file_html(false,true,fv.value,fv.type,fv.url);});element.value=files;field.querySelector('.super-fileupload-files').innerHTML=html;field.querySelector('.super-fileupload').classList.add('finished');}else{field.querySelector('.super-fileupload-files').innerHTML='';field.querySelector('.super-progress-bar').removeAttribute('style');field.querySelector('.super-active-files').value='';}
return true;}
if(field.classList.contains('super-slider')){SUPER.reposition_slider_amount_label(field,data[i].value);return true;}
if(field.classList.contains('super-auto-suggest')){if(data[i].value!==''){firstValue=data[i].value.split(';')[0];dropdown=field.querySelector('.super-dropdown-list');setFieldValue='';nodes=dropdown.querySelectorAll('.super-item.super-active');for(ii=0;ii<nodes.length;ii++){nodes[ii].classList.remove('super-active');}
nodes=dropdown.querySelectorAll('.super-item[data-value^="'+firstValue+'"]');for(ii=0;ii<nodes.length;ii++){itemFirstValue=nodes[ii].dataset.value.split(';')[0];if(itemFirstValue==firstValue){field.querySelector('.super-field-wrapper').classList.add('super-overlap');nodes[ii].classList.add('super-active');if(setFieldValue===''){setFieldValue+=nodes[ii].innerText;}else{setFieldValue+=','+nodes[ii].innerText;}}}
element.value=setFieldValue;}else{nodes=dropdown.querySelectorAll('.super-dropdown-list .super-item.super-active');for(ii=0;ii<nodes.length;ii++){nodes[ii].classList.remove('super-active');}}
return true;}
if(field.classList.contains('super-dropdown')){if(data[i].value!==''){options=data[i].value.split(',');dropdown=field.querySelector('.super-dropdown-list');setFieldValue='';nodes=dropdown.querySelectorAll('.super-item.super-active');for(ii=0;ii<nodes.length;ii++){nodes[ii].classList.remove('super-active');}
for(ii=0;ii<options.length;ii++){innerNodes=dropdown.querySelectorAll('.super-item:not(.super-placeholder)[data-value^="'+options[ii]+'"]');for(iii=0;iii<innerNodes.length;iii++){itemFirstValue=innerNodes[iii].dataset.value.split(';')[0];innerNodes[iii].classList.add('super-active');if(setFieldValue===''){setFieldValue+=itemFirstValue;}else{setFieldValue+=','+itemFirstValue;}}}
element.value=setFieldValue;}else{nodes=field.querySelectorAll('.super-dropdown-list .super-item.super-active');for(ii=0;ii<nodes.length;ii++){nodes[ii].classList.remove('super-active');}
nodes=field.querySelectorAll('.super-dropdown-list .super-item.super-default-selected');for(ii=0;ii<nodes.length;ii++){nodes[ii].classList.add('super-active');}}
SUPER.init_set_dropdown_placeholder();return true;}
if(field.classList.contains('super-radio')){wrapper=field.querySelector('.super-field-wrapper');items=wrapper.querySelectorAll('.super-item');for(ii=0;ii<items.length;ii++){input=items[ii].querySelector('input');items[ii].classList.remove('super-active');input.checked=false;}
for(ii=0;ii<items.length;ii++){input=items[ii].querySelector('input');if(data[i].value!==''&&input.value==data[i].value){input.checked=true;items[ii].classList.add('super-active');break;}}
if(data[i].value===''){item=wrapper.querySelector('.super-item.super-default-selected');item.classList.add('super-active');item.querySelector('input').checked=true;}
return true;}
if(field.classList.contains('super-checkbox')){wrapper=field.querySelector('.super-field-wrapper');items=wrapper.querySelectorAll('.super-item');for(ii=0;ii<items.length;ii++){input=items[ii].querySelector('input');items[ii].classList.remove('super-active');input.checked=false;if(data[i].value!==''){options=data[i].value.split(',');if(options.indexOf(input.value)!==-1){input.checked=true;items[ii].classList.add('super-active');}}}
if(data[i].value===''){items=wrapper.querySelectorAll('.super-item.super-default-selected');for(ii=0;ii<items.length;ii++){items[ii].classList.add('super-active');items[ii].querySelector('input').checked=true;}}
return true;}
if(field.classList.contains('super-rating')){stars=field.querySelectorAll('.super-rating-star');currentStar=parseInt(data[i].value)||0;for(ii=0;ii<stars.length;ii++){if(ii+1<=currentStar){stars[ii].classList.add('super-active');}else{stars[ii].classList.remove('super-active');}}
return true;}});Object.keys(updatedFields).forEach(function(key){SUPER.after_field_change_blur_hook({el:updatedFields[key]});});}};SUPER.populate_form_data_ajax=function(args){if(typeof args.clear==='undefined')args.clear=true;var orderId,value,skipFields,method,form=SUPER.get_frontend_or_backend_form(args);if(args.el.classList.contains('super-wc-order-search')){value=args.el.querySelector('.super-active').dataset.value;orderId=value.split(';')[0];skipFields='';if(args.el.querySelector('.super-shortcode-field')){if(args.el.querySelector('.super-shortcode-field').dataset.wcoss){skipFields=args.el.querySelector('.super-shortcode-field').dataset.wcoss;}}
args.el.querySelector('.super-field-wrapper').classList.add('super-populating');$.ajax({url:super_common_i18n.ajaxurl,type:'post',data:{action:'super_populate_form_data',order_id:orderId,skip:skipFields},success:function(data){SUPER.populate_form_with_entry_data(data,form,args.clear);},complete:function(){args.el.querySelector('.super-field-wrapper').classList.remove('super-populating');},error:function(xhr,ajaxOptions,thrownError){console.log(xhr,ajaxOptions,thrownError);alert(super_common_i18n.errors.failed_to_process_data);}});}else{args.el.dataset.typing='false';value=args.el.value;method=args.el.dataset.searchMethod;skipFields=(args.el.dataset.searchSkip?args.el.dataset.searchSkip:'');if(value.length>2){args.el.closest('.super-field-wrapper').classList.add('super-populating');$.ajax({url:super_common_i18n.ajaxurl,type:'post',data:{action:'super_populate_form_data',value:value,method:method,skip:skipFields},success:function(data){SUPER.populate_form_with_entry_data(data,form,args.clear);},complete:function(){args.el.closest('.super-field-wrapper').classList.remove('super-populating');},error:function(xhr,ajaxOptions,thrownError){console.log(xhr,ajaxOptions,thrownError);alert(super_common_i18n.errors.failed_to_process_data);}});}}};SUPER.init_super_form_frontend=function(ajaxRequest){var languageSwitcher=false;if(typeof ajaxRequest!=='undefined'&&typeof ajaxRequest.settings!=='undefined'&&typeof ajaxRequest.settings.data==='string'){if(ajaxRequest.settings.data.indexOf('super_language_switcher')!==-1){languageSwitcher=true;}}
if(document.querySelectorAll('.super-form').length===document.querySelectorAll('.super-form.super-initialized').length){return true;}
$('.super-shortcode-field[data-code="true"]:not(.super-generated)').each(function(){var el=this;$.ajax({url:super_common_i18n.ajaxurl,type:'post',data:{action:'super_update_unique_code',codesettings:el.dataset.codesettings},success:function(result){el.value=result;el.classList.add('super-generated');el.removeAttribute("data-codesettings");SUPER.after_field_change_blur_hook({el:el});},error:function(xhr,ajaxOptions,thrownError){console.log(xhr,ajaxOptions,thrownError);alert('Failed to generate unique code');}});});$('.super-shortcode-field[data-search="true"]:not(.super-dom-populated)').each(function(){var field=this;if(field.value!==''){field.classList.add('super-dom-populated');SUPER.populate_form_data_ajax({el:field});}});SUPER.init_text_editors();SUPER.init_fileupload_fields();SUPER.init_set_dropdown_placeholder($('.super-form:not(.super-rendered)'));$('.super-field.super-radio').each(function(){var field=this.querySelector('.super-shortcode-field');if(field){var fieldValue=field.value;var itemsList=field.closest('.super-field-wrapper').querySelector('.super-items-list');var i,selectedValues=fieldValue.split(',');var nodes=itemsList.querySelectorAll('input[type="radio"]');for(i=0;i<nodes.length;i++){if((fieldValue===nodes[i].value)||(fieldValue!==''&&((selectedValues.indexOf(nodes[i].value)!==-1)||(selectedValues.indexOf(nodes[i].value.trim())!==-1)))){nodes[i].closest('.super-item').classList.add('super-active');nodes[i].checked=true;}else{nodes[i].closest('.super-item').classList.remove('super-active');nodes[i].checked=false;}}}});$('.super-field.super-checkbox').each(function(){var field=this.querySelector('.super-shortcode-field');if(field){var fieldValue=field.value;var itemsList=field.closest('.super-field-wrapper').querySelector('.super-items-list');var i,selectedValues=fieldValue.split(',');var nodes=itemsList.querySelectorAll('input[type="checkbox"]');for(i=0;i<nodes.length;i++){if((fieldValue===nodes[i].value)||(fieldValue!==''&&((selectedValues.indexOf(nodes[i].value)!==-1)||(selectedValues.indexOf(nodes[i].value.trim())!==-1)))){nodes[i].closest('.super-item').classList.add('super-active');nodes[i].checked=true;}else{nodes[i].closest('.super-item').classList.remove('super-active');nodes[i].checked=false;}}}});$('.super-shortcode-field[data-mask]').each(function(){$(this).mask($(this).data('mask'));});$('.super-form').each(function(){if($(this).hasClass('super-save-progress')){$(this).find('.super-signature').each(function(){var value=$(this).find('.super-signature-lines').val();if(value!==''){value=value.replace('\\"lines\\"','"lines"');$(this).find('.super-signature-canvas').signature('enable').signature('draw',value);}});}});$('.super-form:not(.super-preview-elements)').each(function(){var form=this,$form=$(this),$multipart={},$multiparts=[],$submit_button,$button_clone,$total=$form.find('.super-multipart').length,$prev,$next,$progress,$progress_steps,$progress_bar,$clone;if($form.parent().hasClass('elementor-text-editor')){var $form_id=$form.find('input[name="hidden_form_id"]').val();$form.html('<p style="color:red;font-size:12px;"><strong>'+super_common_i18n.elementor.notice+':</strong> [Form ID: '+$form_id+'] - '+super_common_i18n.elementor.msg+'</p>');return false;}
if($total!==0){if(!$form.find('.super-multipart:eq(0)').hasClass('super-rendered')){$form.find('.super-multipart:eq(0)').addClass('super-active').addClass('super-rendered');var hasPrevNextBtns=true;if($form.find('.super-prev-multipart').length===0&&$form.find('.super-next-multipart').length===0){hasPrevNextBtns=false;}
if(!hasPrevNextBtns){$submit_button=$form.find('.super-button:last');$clone=$submit_button.clone();$($clone).appendTo($form.find('.super-multipart:last'));$button_clone=$submit_button[0].outerHTML;$submit_button.remove();$($button_clone).appendTo($form.find('.super-multipart').not(':last')).removeClass('super-button-align-left').removeClass('super-button-align-center').removeClass('super-button-align-right').removeClass('super-form-button').addClass('super-next-multipart').find('.super-button-name').html(super_common_i18n.directions.next);$($button_clone).appendTo($form.find('.super-multipart').not(':first')).removeClass('super-button-align-left').removeClass('super-button-align-center').removeClass('super-button-align-right').removeClass('super-form-button').addClass('super-prev-multipart').find('.super-button-name').html(super_common_i18n.directions.prev);}
$form.find('.super-multipart').each(function(){if(!hasPrevNextBtns){if(typeof $(this).data('prev-text')==='undefined'){$prev=super_common_i18n.directions.prev;}else{$prev=$(this).data('prev-text');}
if(typeof $(this).data('next-text')==='undefined'){$next=super_common_i18n.directions.next;}else{$next=$(this).data('next-text');}
$(this).find('.super-prev-multipart .super-button-name').html($prev);$(this).find('.super-next-multipart .super-button-name').html($next);}
$multipart={name:$(this).data('step-name'),description:$(this).data('step-description'),image:$(this).data('image'),icon:$(this).data('icon'),};$multiparts.push($multipart);});$progress_steps='<ul class="super-multipart-steps">';$.each($multiparts,function(index,value){if($total==1){$progress_steps+='<li class="super-multipart-step super-active last-step">';}else{if((index===0)&&($total!=(index+1))){$progress_steps+='<li class="super-multipart-step super-active">';}else{if($total==(index+1)){$progress_steps+='<li class="super-multipart-step last-step">';}else{$progress_steps+='<li class="super-multipart-step">';}}}
$progress_steps+='<span class="super-multipart-step-wrapper">';if(value.image){$progress_steps+='<span class="super-multipart-step-image"><img src="'+value.image+'" /></span>';}else{if(value.icon){$progress_steps+='<span class="super-multipart-step-icon"><i class="fas fa-'+value.icon+'"></i></span>';}else{$progress_steps+='<span class="super-multipart-step-count">'+(index+1)+'</span>';}}
if(value.name!==''){$progress_steps+='<span class="super-multipart-step-name">'+value.name+'</span>';}
if(value.description!==''){$progress_steps+='<span class="super-multipart-step-description">'+value.description+'</span>';}
$progress_steps+='</span>';$progress_steps+='</li>';});$progress_steps+='</ul>';$progress=100/$total;$progress_bar='<div class="super-multipart-progress">';$progress_bar+='<div class="super-multipart-progress-inner">';$progress_bar+='<div class="super-multipart-progress-bar" style="width:'+$progress+'%"></div>';$progress_bar+='</div>';$progress_bar+='</div>';if($form.find('.super-i18n-switcher').length!=0){$($progress_steps).insertAfter($form.find('.super-i18n-switcher'));$($progress_bar).insertAfter($form.find('.super-i18n-switcher'));}else{$form.prepend($progress_steps);$form.prepend($progress_bar);}}
var currentStep=window.location.hash.substring(1);if(currentStep!==''){var explodedStep=currentStep.split('-');if(explodedStep[0]==='step'){var stepFormID=explodedStep[1];var multiPart=explodedStep[2];var multiPartForm=document.querySelector('.super-form-'+stepFormID);if(multiPartForm){var nodes=multiPartForm.querySelectorAll('.super-multipart');if(nodes.length<multiPart)multiPart="1";for(var i=0;i<nodes.length;i++){if(multiPart==(i+1)){nodes[i].classList.add('super-active');}else{nodes[i].classList.remove('super-active');}}
nodes=multiPartForm.querySelectorAll('.super-multipart-step');for(i=0;i<nodes.length;i++){if(multiPart==(i+1)){nodes[i].classList.add('super-active');}else{nodes[i].classList.remove('super-active');}}
var progress=100/nodes.length;progress=progress*parseInt(multiPart,10);form.querySelector('.super-multipart-progress-bar').style.width=progress+'%';}}}}
SUPER.init_common_fields({form:form});SUPER.init_super_responsive_form_fields({form:form});});$(window).resize(function(){var i,nodes=document.querySelectorAll('.super-form');for(i=0;i<nodes.length;i++){SUPER.init_super_responsive_form_fields({form:nodes[i]});}});var $handle_columns_interval=setInterval(function(){if(($('.super-form').length!=$('.super-form.super-rendered').length)||($('.super-form').length===0)){SUPER.handle_columns();}else{clearInterval($handle_columns_interval);}},100);};SUPER.reposition_slider_amount_label=function(field,value){if(typeof value==='undefined'){value=field.value;$(field).simpleSlider("setValue",0);$(field).simpleSlider("setValue",value);}else{if(value!==field.value){$(field).simpleSlider("setValue",0);$(field).simpleSlider("setValue",value);}}};SUPER.init_slider_field=function(){$('.super-slider').each(function(){var $this=$(this),$field,$steps,$min,$max,$currency,$format,$value,$decimals,$thousand_separator,$decimal_separator,$regex,$wrapper,$number,$amount,$dragger,$slider_width,$amount_width,$dragger_margin_left,$offset_left;if($this.find('.slider').length===0){$field=$this.find('.super-shortcode-field');$steps=$field.data('steps');$min=$field.data('minnumber');$max=$field.data('maxnumber');if(typeof $min==='undefined')$min=0;if(typeof $max==='undefined')$max=100;$currency=$field.data('currency');$format=$field.data('format');$value=($field.val()===''?0:parseFloat($field.val()));$decimals=$field.data('decimals');$thousand_separator=$field.data('thousand-separator');$decimal_separator=$field.data('decimal-separator');$regex='\\d(?=(\\d{'+(3||3)+'})+'+($decimals>0?'\\D':'$')+')';if($value<$min){$value=$min;}
$value=parseFloat($value).toFixed(Math.max(0,~~$decimals));$value=($decimal_separator?$value.replace('.',$decimal_separator):$value).replace(new RegExp($regex,'g'),'$&'+($thousand_separator||''));$field.simpleSlider({snap:true,step:$steps,range:[$min,$max],animate:false});$wrapper=$field.parents('.super-field-wrapper:eq(0)');$wrapper.append('<span class="amount"><i>'+$currency+''+$value+''+$format+'</i></span>');SUPER.reposition_slider_amount_label($field[0]);$field.on("slider:changed",function($event,$data){SUPER.focusForm(this);SUPER.focusField(this);$number=parseFloat($data.value).toFixed(Math.max(0,~~$decimals));$number=($decimal_separator?$number.replace('.',$decimal_separator):$number).replace(new RegExp($regex,'g'),'$&'+($thousand_separator||''));$amount=$wrapper.children('.amount');$dragger=$data.el[0].querySelector('.dragger');$amount.children('i').html($currency+''+($number)+''+$format);setTimeout(function(){$slider_width=$data.el[0].offsetWidth;$amount_width=$amount[0].offsetWidth;$dragger_margin_left=$dragger.style.marginLeft.replace('px','');if($dragger_margin_left<0){$dragger_margin_left=-$dragger_margin_left;}
$offset_left=$dragger.offsetLeft+$dragger_margin_left;if($offset_left<0){$offset_left=0;}
if($slider_width<($offset_left+$amount_width)){$amount.css('right','0px');$amount.css('left','inherit');}else{$amount.css('right','inherit');$amount.css('left',$offset_left+'px');}},1);});}});$('.slider-field').each(function(){var $this=$(this),$field=$this.children('input'),$steps=$field.data('steps'),$min=$field.data('min'),$max=$field.data('max');if($this.children('.slider').length===0){$field.simpleSlider({snap:true,step:$steps,range:[$min,$max]});$field.show();}});};SUPER.init_carouseljs=function(){if(typeof CarouselJS!=='undefined'){CarouselJS.init();}};SUPER.init_tooltips=function(){if($.isFunction($.fn.tooltipster)){var i,form,formId,formTheme,nodes=document.querySelectorAll('.super-tooltip:not(.tooltipstered)');for(i=0;i<nodes.length;i++){formId=0;form=SUPER.get_frontend_or_backend_form({el:nodes[i]});if(form.querySelector('input[name="hidden_form_id"]')){formId=form.querySelector('input[name="hidden_form_id"]').value;}
formTheme='';if(form.classList.contains('super-default-rounded')){formTheme='tooltip-super-default-rounded';}
if(form.classList.contains('super-full-rounded')){formTheme='tooltip-super-full-rounded';}
$(nodes[i]).tooltipster({theme:'tooltip-super-form tooltip-super-form-'+formId+' '+formTheme,contentAsHTML:true,trigger:'custom',triggerOpen:{click:true,tap:true,mouseenter:true,touchstart:true},triggerClose:{click:true,tap:true,mouseleave:true,originClick:true,touchleave:true}});}}};SUPER.init_color_pickers=function(){if($.isFunction($.fn.wpColorPicker)){$('.super-color-picker').each(function(){if($(this).find('.wp-picker-container').length===0){$(this).children('input').wpColorPicker({change:function(event,ui){if(typeof SUPER.backend_setting_changed==="function"){SUPER.backend_setting_changed($(this),ui.color.toString());}},palettes:['#FFFFFF','#000000','#444444','#8E8E8E','#9A9A9A','#CDCDCD','#6E7177','#F26C68','#49B4B6']});}});}};SUPER.init_common_fields=function(){if(typeof SUPERreCaptcha==='function')SUPERreCaptcha();SUPER.after_init_common_fields();};SUPER.responsive_form_fields_timeout={};SUPER.init_super_responsive_form_fields=function(args){if(typeof $==='undefined')$=jQuery;if(typeof args==='undefined')args={};if(typeof args.form==='undefined'){args.form=document.querySelector('.super-form');}
var formId=(args.form.querySelector('input[name="hidden_form_id"]')?args.form.querySelector('input[name="hidden_form_id"]').value:0);if(SUPER.responsive_form_fields_timeout[formId]!==null){clearTimeout(SUPER.responsive_form_fields_timeout[formId]);}
SUPER.responsive_form_fields_timeout[formId]=setTimeout(function(){var $classes=['super-first-responsiveness','super-second-responsiveness','super-third-responsiveness','super-fourth-responsiveness','super-last-responsiveness'];var $window_classes=['super-window-first-responsiveness','super-window-second-responsiveness','super-window-third-responsiveness','super-window-fourth-responsiveness','super-window-last-responsiveness'];var $new_class='';var $new_window_class='';var $window_width=$(window).outerWidth(true);var $this=$(args.form);var $width=$this.outerWidth(true);if($width>0&&$width<530){SUPER.remove_super_form_classes($this,$classes);$this.addClass($classes[0]);$new_class=$classes[0];}
if($width>=530&&$width<760){SUPER.remove_super_form_classes($this,$classes);$this.addClass($classes[1]);$new_class=$classes[1];}
if($width>=760&&$width<1200){SUPER.remove_super_form_classes($this,$classes);$this.addClass($classes[2]);$new_class=$classes[2];}
if($width>=1200&&$width<1400){SUPER.remove_super_form_classes($this,$classes);$this.addClass($classes[3]);$new_class=$classes[3];}
if($width>=1400){SUPER.remove_super_form_classes($this,$classes);$this.addClass($classes[4]);$new_class=$classes[4];}
if($window_width>0&&$window_width<530){SUPER.remove_super_form_classes($this,$window_classes);$this.addClass($window_classes[0]);$new_window_class=$window_classes[0];}
if($window_width>=530&&$window_width<760){SUPER.remove_super_form_classes($this,$window_classes);$this.addClass($window_classes[1]);$new_window_class=$window_classes[1];}
if($window_width>=760&&$window_width<1200){SUPER.remove_super_form_classes($this,$window_classes);$this.addClass($window_classes[2]);$new_window_class=$window_classes[2];}
if($window_width>=1200&&$window_width<1400){SUPER.remove_super_form_classes($this,$window_classes);$this.addClass($window_classes[3]);$new_window_class=$window_classes[3];}
if($window_width>=1400){SUPER.remove_super_form_classes($this,$window_classes);$this.addClass($window_classes[4]);$new_window_class=$window_classes[4];}
if($this.hasClass('super-rtl')){if((!$this.hasClass('super-rtl-reversed'))&&($new_class=='super-first-responsiveness')){$this.find('.super-grid').each(function(){var $grid=$(this);var $columns=$grid.children('div.super-column:not(.super-not-responsive)');$grid.append($columns.get().reverse());$grid.children('div.super-column:last-child').removeClass('first-column');$grid.children('div.super-column:eq(0)').addClass('first-column');});$this.addClass('super-rtl-reversed');}else{if(($this.hasClass('super-rtl-reversed'))&&($new_class!='super-first-responsiveness')){$this.find('.super-grid').each(function(){var $grid=$(this);var $columns=$grid.children('div.super-column:not(.super-not-responsive)');$grid.append($columns.get().reverse());$grid.children('div.super-column:last-child').removeClass('first-column');$grid.children('div.super-column:eq(0)').addClass('first-column');});$this.removeClass('super-rtl-reversed');}}}
var nodes=$this[0].querySelectorAll('.super-slider');for(var i=0;i<nodes.length;i++){var $field=$(nodes[i].querySelector('.super-shortcode-field'));if(!$field)continue;var originalValue=$field.val();if(typeof $field.data("slider-object")==='undefined'){if(nodes[i].querySelector('.slider')){nodes[i].querySelector('.slider').remove();}
SUPER.init_slider_field();}else{SUPER.reposition_slider_amount_label($field[0],originalValue);}}
nodes=args.form.querySelectorAll('.super-toggle');for(i=0;i<nodes.length;i++){var sw=nodes[i].querySelector('.super-toggle-switch');var gr=nodes[i].querySelector('.super-toggle-group');var on=nodes[i].querySelector('.super-toggle-on');var ha=nodes[i].querySelector('.super-toggle-handle');var off=nodes[i].querySelector('.super-toggle-off');sw.style.width='';gr.style.width='';on.style.width='';off.style.width='';ha.style.width='';var width=0;var onWidth=on.offsetWidth+40;var offWidth=off.offsetWidth+40;var haWidth=ha.offsetWidth+4;ha.style.width=haWidth+'px';width=onWidth;if(onWidth<offWidth){width=offWidth;}
sw.style.width=width+(haWidth/2)+'px';gr.style.width=((width+(haWidth/2))*2)-2+'px';on.style.width=width+'px';off.style.width=width+'px';}
SUPER.after_responsive_form_hook($classes,args.form,$new_class,$window_classes,$new_window_class);if(typeof args.callback==='function'){args.callback();}},500);};SUPER.init_field_filter_visibility=function($this,type){if(typeof type==='undefined')type='';var $nodes,$name;if(typeof $this==='undefined'){$nodes=$('.super-elements-container .super-field.super-filter[data-filtervalue], .super-settings .super-field.super-filter[data-filtervalue]');$nodes.addClass('super-hidden');}else{$name=$this.find('.super-element-field').attr('name');$nodes=$('.super-elements-container .super-field[data-parent="'+$name+'"], .super-settings .super-field[data-parent="'+$name+'"]');}
$nodes.each(function(){var $this=$(this),$container=$this.parents('.super-elements-container:eq(0)'),$filtervalue=$this.data('filtervalue'),$parent,$value,$visibility,$filtervalues,$string_value,$match_found=false;if($container.length===0){$container=$this.parents('.super-settings:eq(0)');}
$parent=$container.find('.super-element-field[name="'+$this.data('parent')+'"]');if($parent.attr('type')=='radio'){$parent=$container.find('.super-element-field[name="'+$this.data('parent')+'"]:checked');}
$value=$parent.val();if(typeof $value==='undefined')$value='';$parent=$parent.parents('.super-field.super-filter:eq(0)');$visibility=$parent.hasClass('super-hidden');if($visibility===true){$visibility='hidden';}else{$visibility='visible';}
$filtervalues=$filtervalue.toString().split(',');$string_value=$value.toString();$.each($filtervalues,function(index,value){if(value==$string_value){$match_found=true;}});if($match_found&&($visibility!='hidden')){$this.removeClass('super-hidden');}else{$this.addClass('super-hidden');}
SUPER.init_field_filter_visibility($this,type);});if(document.querySelector('input[name="theme_rtl"]')){var theme_rtl=document.querySelector('input[name="theme_rtl"]').value;if(document.querySelector('.super-preview-elements')){if(theme_rtl==='true'){document.querySelector('.super-preview-elements').classList.add('super-rtl');}else{document.querySelector('.super-preview-elements').classList.remove('super-rtl');}}}};SUPER.init_distance_calculators=function(){var i,form,method,destination,destinationField,nodes=document.querySelectorAll('.super-form .super-distance-calculator');for(i=0;i<nodes.length;i++){form=SUPER.get_frontend_or_backend_form({el:nodes[i]});method=nodes[i].dataset.distanceMethod;if(method=='start'){destination=nodes[i].dataset.distanceDestination;destinationField=SUPER.field(form,destination);if(destinationField){destinationField.dataset.distanceStart=nodes[i].name;}}}};SUPER.pdf_generator_init=function(args,callback){args._save_data_callback=callback;args.orientation=args.pdfSettings.orientation;args.format=args.pdfSettings.format;var customFormat=args.pdfSettings.customformat;if(typeof customFormat!=='undefined'&&customFormat!==''){customFormat=customFormat.split(',');if(typeof customFormat[1]!=='undefined'){customFormat[0]=customFormat[0].trim();customFormat[1]=customFormat[1].trim();if(customFormat[0]!==''&&customFormat[1]!==''){args.format=customFormat;}}}
args._pdf=new jsPDF({orientation:args.orientation,format:args.format,putOnlyUsedFonts:false,compress:false,precision:16,userUnit:1.0,floatPrecision:16,unit:args.pdfSettings.unit});args.unitRatio=1;if(args.pdfSettings.unit=='pt')args.unitRatio=1.333333333333333;if(args.pdfSettings.unit=='mm')args.unitRatio=0.4703703703703702;if(args.pdfSettings.unit=='cm')args.unitRatio=0.04703703703703702;if(args.pdfSettings.unit=='in')args.unitRatio=0.0185185185010975;var pageWidth=args._pdf.internal.pageSize.getWidth();var pageHeight=args._pdf.internal.pageSize.getHeight();args.pageWidthPortrait=pageWidth;args.pageHeightPortrait=pageHeight;args.pageWidthLandscape=pageHeight;args.pageHeightLandscape=pageWidth;args.pageWidthInPixels=pageWidth/args.unitRatio;args.pageHeightInPixels=pageHeight/args.unitRatio;var scrollAmount=0;args.scrollAmount=scrollAmount;args.pdfSettings.filename=SUPER.update_variable_fields.replace_tags({form:args.form0,value:args.pdfSettings.filename});setTimeout(function(){SUPER.pdf_generator_prepare(args,function(args){args.currentPage=1;SUPER.pdf_generator_generate_page(args);});},5000);return false;};SUPER._pdf_generator_done_callback=function(args){SUPER.pdf_generator_reset(args.form0);var datauristring=args._pdf.output('datauristring',{filename:args.pdfSettings.filename});var exclude=0;if(args.pdfSettings.adminEmail!=='true'&&args.pdfSettings.confirmationEmail!=='true'){exclude=2;}else{if(args.pdfSettings.adminEmail==='true'&&args.pdfSettings.confirmationEmail==='true'){exclude=0;}else{if(args.pdfSettings.adminEmail==='true'){exclude=1;}
if(args.pdfSettings.confirmationEmail==='true'){exclude=3;}}}
args.data._generated_pdf_file={files:[{label:args.pdfSettings.emailLabel,name:args.pdfSettings.filename,datauristring:datauristring,value:args.pdfSettings.filename}],label:args.pdfSettings.emailLabel,type:'files',exclude:exclude};args._save_data_callback(args);};SUPER.pdf_generator_prepare=function(args,callback){var form=args.form0;SUPER.pdf_tags={pdf_page:'{pdf_page}',pdf_total_pages:'{pdf_total_pages}'};document.documentElement.classList.add('super-hide-scrollbar');form.classList.add('super-generating-pdf');var normalizeFontStylesNodesClasses='h1, h2, h3, h4, h5, h6, .super-label, .super-description, .super-heading-title, .super-heading-description, .super-text .super-shortcode-field, .super-textarea .super-shortcode-field, .super-filled .super-adaptive-placeholder > span, .super-dropdown.super-filled .super-item.super-placeholder, .super-checkbox .super-item > div, .super-radio .super-item > div, .super-quantity .super-shortcode-field, .super-toggle-switch, .super-currency .super-shortcode-field, .super-slider .amount, .super-calculator-currency-wrapper, .super-calculator-label, .super-fileupload-name, .super-fileupload-button-text, .super-toggle-prefix-label > span, .super-toggle-suffix-label > span, .super-html-title, .super-html-subtitle, .super-html-content',normalizeFontStylesNodesClassesExploded=normalizeFontStylesNodesClasses.split(','),newNormalizeFontStylesNodesClasses='';for(i=0;i<normalizeFontStylesNodesClassesExploded.length;i++){if(i>0)newNormalizeFontStylesNodesClasses+=', ';newNormalizeFontStylesNodesClasses+='.super-pdf-page-container '+normalizeFontStylesNodesClassesExploded[i];}
var css='.super-hide-scrollbar {overflow: -moz-hidden-unscrollable!important; overflow: hidden!important;}';css+='.super-pdf-page-container.super-pdf-clone .super-form *:before,';css+='.super-pdf-page-container.super-pdf-clone .super-form *:after {display:none!important;}';css+=newNormalizeFontStylesNodesClasses+'{font-family:"Helvetica", "Arial", sans-serif!important;font-weight:normal!important;line-height:1.2!important;letter-spacing:0!important;}';css+='.super-pdf-page-container .super-form.super-adaptive { padding-top: 0px!important; }';css+='.super-generating-pdf:not(.super-pdf-placeholder) *,';css+='.super-generating-pdf:not(.super-pdf-placeholder) *:after,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-accordion-header:after,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-accordion-header:before { transition: initial!important; }';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-accordion-header:before,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-accordion-header:after,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-form-button,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-multipart-progress,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-multipart-steps,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-prev-multipart,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-next-multipart,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-tabs-menu,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-duplicate-actions,';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-signature-clear { display: none!important; }';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-accordion-header { border: 1px solid #d2d2d2; }';css+='.super-generating-pdf:not(.super-pdf-placeholder) .super-accordion-header { border: 1px solid #d2d2d2; }';css+='.super-pdf-header, .super-pdf-body, .super-pdf-footer { display: block; float: left; width: 100%; overflow: hidden; }';var headerMarginBottom=parseFloat(args.pdfSettings.margins.header.bottom)+parseFloat(args.pdfSettings.margins.body.top);css+='.super-pdf-header {padding: '+args.pdfSettings.margins.header.top+args.pdfSettings.unit+' '+args.pdfSettings.margins.header.right+args.pdfSettings.unit+' '+headerMarginBottom+args.pdfSettings.unit+' '+args.pdfSettings.margins.header.left+args.pdfSettings.unit+' }';css+='.super-pdf-header .super-form, .super-pdf-header .super-form form {padding:0!important;margin:0!important;float:left!important;width:100%!important;}';css+='.super-pdf-body {padding: 0'+args.pdfSettings.unit+' '+args.pdfSettings.margins.body.right+args.pdfSettings.unit+' 0'+args.pdfSettings.unit+' '+args.pdfSettings.margins.body.left+args.pdfSettings.unit+';}';var footerMarginTop=parseFloat(args.pdfSettings.margins.footer.top)+parseFloat(args.pdfSettings.margins.body.bottom);css+='.super-pdf-footer {padding: '+footerMarginTop+args.pdfSettings.unit+' '+args.pdfSettings.margins.footer.right+args.pdfSettings.unit+' '+args.pdfSettings.margins.footer.bottom+args.pdfSettings.unit+' '+args.pdfSettings.margins.footer.left+args.pdfSettings.unit+'; }';css+='.super-pdf-footer .super-form, .super-pdf-footer .super-form form {padding:0!important;margin:0!important;float:left!important;width:100%!important;}';var head=document.head||document.getElementsByTagName('head')[0],style=document.createElement('style');style.id='super-generating-pdf';head.appendChild(style);style.type='text/css';if(style.styleSheet){style.styleSheet.cssText=css;}else{style.appendChild(document.createTextNode(css));}
var formId=form.querySelector('input[name="hidden_form_id"]').value;var placeholder=form.cloneNode(true);placeholder.id=placeholder.id+'-placeholder';placeholder.classList.add('super-pdf-placeholder');args.placeholder=placeholder;form.parentNode.insertBefore(placeholder,form.nextSibling);var clonedForm=form.cloneNode(true);var newClassName='';for(var i=0;i<clonedForm.classList.length;i++){if(clonedForm.classList[i].indexOf('responsiveness')===-1){newClassName+=clonedForm.classList[i]+' ';}}
clonedForm.className=newClassName;args.form0.className=newClassName;var headerClone=clonedForm.cloneNode(true);var footerClone=clonedForm.cloneNode(true);var pdfPageContainer=document.createElement('div');args.pdfPageContainer=pdfPageContainer;var html='<div class="super-pdf-header">';html+='</div>';html+='<div class="super-pdf-body">';html+='</div>';html+='<div class="super-pdf-footer">';html+='</div>';pdfPageContainer.innerHTML=html;pdfPageContainer.classList.add('super-pdf-page-container');document.body.appendChild(pdfPageContainer);pdfPageContainer.style.width=(args.pageWidthInPixels*2)+'px';pdfPageContainer.style.zIndex="-999999999";pdfPageContainer.style.left="-9999px";pdfPageContainer.style.top="0px";pdfPageContainer.style.position="fixed";pdfPageContainer.style.backgroundColor="#ffffff";pdfPageContainer.style.height=(args.pageHeightInPixels*2)+'px';pdfPageContainer.style.maxHeight=(args.pageHeightInPixels*2)+'px';pdfPageContainer.style.overflow="hidden";pdfPageContainer.querySelector('.super-pdf-header').appendChild(headerClone);pdfPageContainer.querySelector('.super-pdf-body').appendChild(args.form0);pdfPageContainer.querySelector('.super-pdf-footer').appendChild(footerClone);headerClone.querySelector('form').innerHTML='';var header=form.querySelector('.super-shortcode[data-pdfoption="header"]');if(header){if(header.classList.contains('super-column')){header=header.closest('.super-grid').cloneNode(true);}else{header=header.cloneNode(true);}
header.classList.add('pdf-generated-header');headerClone.querySelector('form').appendChild(header);}
footerClone.querySelector('form').innerHTML='';var footer=form.querySelector('.super-shortcode[data-pdfoption="footer"]');if(footer){if(footer.classList.contains('super-column')){footer=footer.closest('.super-grid').cloneNode(true);}else{footer=footer.cloneNode(true);}
footer.classList.add('pdf-generated-footer');footerClone.querySelector('form').appendChild(footer);}
var headerFooterHeight=0;headerFooterHeight+=pdfPageContainer.querySelector('.super-pdf-header').clientHeight;headerFooterHeight+=pdfPageContainer.querySelector('.super-pdf-footer').clientHeight;args.scrollAmount=(args.pageHeightInPixels*2)-headerFooterHeight;pdfPageContainer.querySelector('.super-pdf-body').style.height=args.scrollAmount+'px';pdfPageContainer.querySelector('.super-pdf-body').style.maxHeight=args.scrollAmount+'px';var nodes=form.querySelectorAll('.super-multipart,.super-tabs-content,.super-accordion-item');for(i=0;i<nodes.length;i++){if(nodes[i].classList.contains('super-active')){nodes[i].classList.add('super-active-origin');}else{nodes[i].classList.add('super-active');}}
nodes=pdfPageContainer.querySelectorAll(normalizeFontStylesNodesClasses);for(i=0;i<nodes.length;i++){var el=nodes[i];if(el.classList.contains('super-heading-title')){el=el.children[0];}
var fontSize=parseFloat(window.getComputedStyle(el,null).getPropertyValue('font-size'));var newFontSize=2.5*Math.ceil(fontSize/2.5);el.style.fontSize=newFontSize+'px';}
SUPER.init_super_responsive_form_fields({form:form,callback:function(){for(i=0;i<SUPER.google_maps_api.allMaps[formId].length;i++){SUPER.google_maps_api.allMaps[formId][i].setOptions({disableDefaultUI:true});nodes=SUPER.google_maps_api.allMaps[formId][i]['super_el'].querySelectorAll(':scope > div');for(var x=0;x<nodes.length;x++){nodes[x].style.width='100%';if(nodes[x].classList.contains('super-google-map-directions')){nodes[x].style.overflowY='initial';nodes[x].style.height='auto';}}}
function adjustHeight(el,minHeight){var outerHeight=parseInt(window.getComputedStyle(el).height,10);var diff=outerHeight-el.clientHeight;el.style.height=0;el.style.height=Math.max(minHeight,el.scrollHeight+diff)+'px';}
var i,el,minHeight,nodes=form.querySelectorAll('.super-textarea .super-shortcode-field');for(i=0;i<nodes.length;i++){el=nodes[i];el.style.boxSizing=el.style.mozBoxSizing='border-box';el.style.overflowY='hidden';minHeight=el.scrollHeight*1.03;el.addEventListener('input',function(){adjustHeight(el,minHeight);});window.addEventListener('resize',function(){adjustHeight(el,minHeight);});adjustHeight(el,minHeight);}
nodes=form.querySelectorAll('.super-pdf_page_break');args.pageOrientationChanges={};for(i=0;i<nodes.length;i++){var pos=nodes[i].getBoundingClientRect();var belongsToPage=Math.ceil(pos.top/args.scrollAmount)-1;var dynamicHeight=args.scrollAmount-(pos.top-(args.scrollAmount*belongsToPage));var headerHeight=pdfPageContainer.querySelector('.super-pdf-header').clientHeight;dynamicHeight=dynamicHeight+headerHeight;nodes[i].style.height=dynamicHeight+'px';args.pageOrientationChanges[belongsToPage+2]='unchanged';if(nodes[i].classList.contains('pdf-orientation-portrait')){args.pageOrientationChanges[belongsToPage+2]='portrait';}
if(nodes[i].classList.contains('pdf-orientation-landscape')){args.pageOrientationChanges[belongsToPage+2]='landscape';}
if(nodes[i].classList.contains('pdf-orientation-default')){args.pageOrientationChanges[belongsToPage+2]='default';}}
args.totalPages=Math.ceil(form.clientHeight/args.scrollAmount);args.totalPercentagePerPage=(100/args.totalPages)/3;args.pdfPercentageCompleted=0;callback(args);}});};SUPER.pdf_generator_generate_page=function(args){args.pdfPercentageCompleted+=args.totalPercentagePerPage;if(args.progressBar)args.progressBar.style.width=args.pdfPercentageCompleted+"%";var form=args.form0.closest('.super-form');if(form&&!form.classList.contains('super-generating-pdf')){return false;}
if(args.currentPage===1){if(args.orientation==='portrait'){args.pageWidth=args.pageWidthPortrait;args.pageHeight=args.pageHeightPortrait;}else{args.pageWidth=args.pageWidthLandscape;args.pageHeight=args.pageHeightLandscape;}}else{var headerFooterHeight=0;if(args.pageOrientationChanges[args.currentPage]==='portrait'){args.pdfPageContainer.style.width=(args.pageWidthInPixels*2)+'px';args.pdfPageContainer.style.height=(args.pageHeightInPixels*2)+'px';args.pdfPageContainer.style.maxHeight=(args.pageHeightInPixels*2)+'px';args.pageWidth=args.pageWidthPortrait;args.pageHeight=args.pageHeightPortrait;args.pageWidthInPixels=args.pageWidth/args.unitRatio;args.pageHeightInPixels=args.pageHeight/args.unitRatio;headerFooterHeight+=args.pdfPageContainer.querySelector('.super-pdf-header').clientHeight;headerFooterHeight+=args.pdfPageContainer.querySelector('.super-pdf-footer').clientHeight;args.scrollAmount=(args.pageHeightInPixels*2)-headerFooterHeight;}
if(args.pageOrientationChanges[args.currentPage]==='landscape'){args.pdfPageContainer.style.width=(args.pageHeightInPixels*2)+'px';args.pdfPageContainer.style.height=(args.pageWidthInPixels*2)+'px';args.pdfPageContainer.style.maxHeight=(args.pageWidthInPixels*2)+'px';args.pageWidth=args.pageWidthLandscape;args.pageHeight=args.pageHeightLandscape;args.pageWidthInPixels=args.pageWidth/args.unitRatio;args.pageHeightInPixels=args.pageHeight/args.unitRatio;headerFooterHeight+=args.pdfPageContainer.querySelector('.super-pdf-header').clientHeight;headerFooterHeight+=args.pdfPageContainer.querySelector('.super-pdf-footer').clientHeight;args.scrollAmount=(args.pageWidthInPixels*2)-headerFooterHeight;}
var i,nodes=form.querySelectorAll('.super-pdf_page_break');for(i=0;i<nodes.length;i++){nodes[i].style.height='0px';}
form.querySelector('form').style.marginTop='';nodes=form.querySelectorAll('.super-pdf_page_break');for(i=0;i<nodes.length;i++){var pos=nodes[i].getBoundingClientRect();var belongsToPage=Math.ceil(pos.top/args.scrollAmount)-1;var dynamicHeight=args.scrollAmount-(pos.top-(args.scrollAmount*belongsToPage));var headerHeight=args.pdfPageContainer.querySelector('.super-pdf-header').clientHeight;dynamicHeight=dynamicHeight+headerHeight;nodes[i].style.height=dynamicHeight+'px';}
args.pdfPageContainer.querySelector('.super-pdf-body').style.height=args.scrollAmount+'px';args.pdfPageContainer.querySelector('.super-pdf-body').style.maxHeight=args.scrollAmount+'px';form.querySelector('form').style.marginTop="-"+(args.scrollAmount*(args.currentPage-1))+'px';}
SUPER.pdf_tags={pdf_page:args.currentPage,pdf_total_pages:args.totalPages};SUPER.after_field_change_blur_hook({el:undefined,form:form});var pdfHeaderForm=document.querySelector('.super-pdf-header .super-form');SUPER.after_field_change_blur_hook({el:undefined,form:pdfHeaderForm});var pdfFooterForm=document.querySelector('.super-pdf-footer .super-form');SUPER.after_field_change_blur_hook({el:undefined,form:pdfFooterForm});var timeout=(args.currentPage===1?200:0);setTimeout(function(){try{if(form&&!form.classList.contains('super-generating-pdf')){return false;}
args.pdfPercentageCompleted+=args.totalPercentagePerPage;if(args.progressBar)args.progressBar.style.width=args.pdfPercentageCompleted+"%";html2canvas(document.querySelector('.super-pdf-page-container'),{scrollX:0,scrollY:0,scale:args.pdfSettings.renderScale,currentPage:args.currentPage,useCORS:true,allowTaint:false,backgroundColor:'#ffffff'}).then(function(canvas){if(form&&!form.classList.contains('super-generating-pdf')){return false;}
args.pdfPercentageCompleted+=args.totalPercentagePerPage;if(args.pdfPercentageCompleted>99){args.pdfPercentageCompleted=100;}
if(args.progressBar)args.progressBar.style.width=args.pdfPercentageCompleted+"%";var imgData=canvas.toDataURL("image/jpeg",1.0);args._pdf.addImage(imgData,'JPEG',0,0,args.pageWidth,args.pageHeight);if(!args.pdfSettings.textRendering)args.pdfSettings.textRendering='true';if(args.pdfSettings.textRendering==='true'){SUPER.pdf_generator_render_text(args);}
if(form.querySelector('form').clientHeight>(args.scrollAmount*args.currentPage)){args.currentPage++;if(typeof args.pageOrientationChanges[args.currentPage]!=='undefined'){if(args.pageOrientationChanges[args.currentPage]==='unchanged'){if(typeof args.lastPageOrientation==='undefined'){args.lastPageOrientation=args.pdfSettings.orientation;}
args._pdf.addPage(args.pdfSettings.format,args.lastPageOrientation);}else{if(args.pageOrientationChanges[args.currentPage]==='default'){args._pdf.addPage(args.pdfSettings.format,args.pdfSettings.orientation);args.lastPageOrientation=args.pdfSettings.orientation;}else{args._pdf.addPage(args.pdfSettings.format,args.pageOrientationChanges[args.currentPage]);args.lastPageOrientation=args.pageOrientationChanges[args.currentPage];}}}else{args._pdf.addPage(args.pdfSettings.format,args.pdfSettings.orientation);args.lastPageOrientation=args.pdfSettings.orientation;}
SUPER.pdf_generator_generate_page(args);}else{SUPER._pdf_generator_done_callback(args);}});}
catch(error){console.log("Error: ",error);}},timeout);}
SUPER.pdf_generator_render_text=function(args){var i,nodes,formWidth,pdfPageWidth,scale,lineHeight=1.194,drawRectangle=false,renderingMode='invisible',resume,el,pdfPageContainer=document.querySelector('.super-pdf-page-container'),convertToPixel=1,convertFromPixel=1,charSpaceMultiplier=0.00135;if(args.pdfSettings.unit=='pt')convertToPixel=1.333333333333333;if(args.pdfSettings.unit=='mm')convertToPixel=3.7795275591;if(args.pdfSettings.unit=='cm')convertToPixel=37.7952755906
if(args.pdfSettings.unit=='in')convertToPixel=96;if(args.pdfSettings.unit=='pt')convertFromPixel=0.75;if(args.pdfSettings.unit=='mm')convertFromPixel=0.2645833333;if(args.pdfSettings.unit=='cm')convertFromPixel=0.0264583333;if(args.pdfSettings.unit=='in')convertFromPixel=0.0104166667;if(args.pdfSettings.unit=='pt')charSpaceMultiplier=0.00200;if(args.pdfSettings.unit=='mm')charSpaceMultiplier=0.00200;if(args.pdfSettings.unit=='cm')charSpaceMultiplier=0.00200;if(args.pdfSettings.unit=='in')charSpaceMultiplier=0.00200;var topLineHeightDivider=1;if(args.pdfSettings.unit=='px')topLineHeightDivider=2;var m=args.pdfSettings.margins;var bodyMargins={top:parseFloat(m.body.top)*convertToPixel,right:parseFloat(m.body.right)*convertToPixel,bottom:parseFloat(m.body.bottom)*convertToPixel,left:parseFloat(m.body.left)*convertToPixel,};formWidth=args.form0.clientWidth;formWidth=formWidth+bodyMargins.left+bodyMargins.right;pdfPageWidth=args._pdf.internal.pageSize.getWidth()*convertToPixel;scale=formWidth/pdfPageWidth;args._pdf.setFont('Helvetica');args._pdf.setTextColor('red');args._pdf.setLineWidth(1*convertFromPixel);nodes=pdfPageContainer.querySelectorAll('.super-label, .super-description, .super-heading-title, .super-heading-description, .super-filled .super-adaptive-placeholder > span, .super-dropdown.super-filled .super-item.super-placeholder, .super-checkbox .super-item > div, .super-radio .super-item > div, .super-toggle-switch, .super-slider .amount, .super-calculator-currency-wrapper, .super-calculator-label, .super-fileupload-name, .super-fileupload-button-text, .super-toggle-prefix-label > span, .super-toggle-suffix-label > span, .super-html-title, .super-html-subtitle, .super-html-content, .super-text .super-shortcode-field, .super-textarea .super-shortcode-field, .super-quantity .super-shortcode-field, .super-currency .super-shortcode-field');for(i=0;i<nodes.length;i++){el=nodes[i];if(el.classList.contains('super-html-content')){continue;}
resume=SUPER.pdf_generator_draw_pdf_text(i,el,nodes,args,renderingMode,charSpaceMultiplier,convertFromPixel,scale,pdfPageContainer,lineHeight,topLineHeightDivider,drawRectangle);if(resume)continue;}};SUPER.pdf_generator_draw_pdf_text=function(i,el,nodes,args,renderingMode,charSpaceMultiplier,convertFromPixel,scale,pdfPageContainer,lineHeight,topLineHeightDivider,drawRectangle){args._pdf.setFontType('normal');var tmpPosTop,paddingRight,paddingLeft,paddingTop,pos,value='';if(el.classList.contains('super-heading-title')){el=nodes[i].children[0];}
if(el.classList.contains('super-toggle-switch')){if(el.classList.contains('super-active')){el=el.querySelector('.super-toggle-on');value=el.querySelector('.super-toggle-on > span').innerText;paddingRight=(parseFloat(window.getComputedStyle(el,null).getPropertyValue('padding-right'))/scale)*convertFromPixel;}else{el=el.querySelector('.super-toggle-off');value=el.querySelector('.super-toggle-off > span').innerText;paddingLeft=(parseFloat(window.getComputedStyle(el,null).getPropertyValue('padding-left'))/scale)*convertFromPixel;}}else{if(el.closest('.super-text, .super-textarea, .super-quantity, .super-currency')){if(el.value){value=el.value;}else if(el.innerText){value=el.innerText;}}else{value=el.innerText;}}
if(value==='')return true;pos=el.getBoundingClientRect();tmpPosTop=pos.top;if((!el.closest('.super-pdf-header'))&&!el.closest('.super-pdf-footer')){var headerHeight=pdfPageContainer.querySelector('.super-pdf-header').clientHeight;if((tmpPosTop-(headerHeight-1))<0||tmpPosTop>(args.scrollAmount+(headerHeight-1))){return true;}}
var posWidth=(pos.width/scale)*convertFromPixel;var posHeight=(pos.height/scale)*convertFromPixel;var posLeft=((pos.left+9999)/scale)*convertFromPixel;var posTop=((tmpPosTop)/scale)*convertFromPixel;if(el.classList.contains('super-pdf-text')){if(el.parentNode.tagName==='STRONG'||el.parentNode.tagName==='TH'){args._pdf.setFontType('bold');}
posWidth=((pos.width+1)/scale)*convertFromPixel;}
if(el.closest('.super-toggle-prefix-label')||el.closest('.super-toggle-suffix-label')){posTop=((tmpPosTop+1)/scale)*convertFromPixel;posWidth=((pos.width+1)/scale)*convertFromPixel;}
if(el.closest('.super-radio')||el.closest('.super-checkbox')||el.classList.contains('super-fileupload-button-text')){posWidth=((pos.width+1)/scale)*convertFromPixel;}
var fontSize=parseFloat(window.getComputedStyle(el,null).getPropertyValue('font-size'));var fontSizePoint=fontSize*0.67;value=args._pdf.setFontSize(fontSizePoint).splitTextToSize(value,posWidth);var charSpace=-(fontSize*charSpaceMultiplier)*convertFromPixel;var topLineHeight=(((fontSize*lineHeight)-fontSize)/topLineHeightDivider)*convertFromPixel;if(el.closest('.super-adaptive-placeholder')){posLeft=posLeft+(posWidth/2);if(drawRectangle)args._pdf.rect(posLeft,posTop+topLineHeight,posWidth,posHeight);args._pdf.text(value,posLeft,posTop+topLineHeight,{align:'center',charSpace:charSpace,lineHeightFactor:lineHeight,baseline:'hanging',renderingMode:renderingMode});return true;}
if(el.closest('.super-dropdown')){paddingLeft=(parseFloat(window.getComputedStyle(el,null).getPropertyValue('padding-left'))/scale)*convertFromPixel;args._pdf.text(value,posLeft+paddingLeft,posTop+(posHeight/2),{charSpace:charSpace,lineHeightFactor:lineHeight,baseline:'middle',renderingMode:renderingMode});return true;}
if(el.closest('.super-radio')||el.closest('.super-checkbox')){if(drawRectangle)args._pdf.rect(posLeft,posTop+topLineHeight,posWidth,posHeight);args._pdf.text(value,posLeft,posTop+topLineHeight,{charSpace:charSpace,lineHeightFactor:lineHeight,baseline:'hanging',renderingMode:renderingMode});return true;}
if(el.closest('.super-toggle-switch')){if(el.closest('.super-toggle-switch').classList.contains('super-active')){if(drawRectangle)args._pdf.rect(posLeft+((posWidth-paddingRight)/2),posTop,posWidth-paddingRight,posHeight);args._pdf.text(value,posLeft+((posWidth-paddingRight)/2),posTop+(posHeight/2),{align:'center',charSpace:charSpace,lineHeightFactor:lineHeight,baseline:'middle',renderingMode:renderingMode});}else{if(drawRectangle)args._pdf.rect(posLeft+paddingLeft+((posWidth-paddingLeft)/2),posTop,posWidth-paddingLeft,posHeight);args._pdf.text(value,posLeft+paddingLeft+((posWidth-paddingLeft)/2),posTop+(posHeight/2),{align:'center',charSpace:charSpace,lineHeightFactor:lineHeight,baseline:'middle',renderingMode:renderingMode});}
return true;}
if(el.closest('.super-quantity')){if(drawRectangle)args._pdf.rect(posLeft,posTop+(posHeight/2),posWidth,posHeight);posLeft=posLeft+(posWidth/2);args._pdf.text(value,posLeft,posTop+(posHeight/2),{align:'center',charSpace:charSpace,lineHeightFactor:lineHeight,baseline:'middle',renderingMode:renderingMode});return true;}
if(el.closest('.super-textarea')){paddingLeft=(parseFloat(window.getComputedStyle(el,null).getPropertyValue('padding-left'))/scale)*convertFromPixel;paddingTop=(parseFloat(window.getComputedStyle(el,null).getPropertyValue('padding-top'))/scale)*convertFromPixel;if(drawRectangle)args._pdf.rect(posLeft,posTop,posWidth,posHeight);args._pdf.text(value,posLeft+paddingLeft,posTop+paddingTop+topLineHeight,{charSpace:charSpace,lineHeightFactor:lineHeight,baseline:'hanging',renderingMode:renderingMode});return true;}
if(el.closest('.super-text')||el.closest('.super-currency')){paddingLeft=(parseFloat(window.getComputedStyle(el,null).getPropertyValue('padding-left'))/scale)*convertFromPixel;if(drawRectangle)args._pdf.rect(posLeft,posTop,posWidth,posHeight);args._pdf.text(value,posLeft+paddingLeft,posTop+(posHeight/2),{charSpace:charSpace,lineHeightFactor:lineHeight,baseline:'middle',renderingMode:renderingMode});return true;}
if(drawRectangle)args._pdf.rect(posLeft,posTop+topLineHeight,posWidth,posHeight);args._pdf.text(value,posLeft,posTop+topLineHeight,{charSpace:charSpace,lineHeightFactor:lineHeight,baseline:'hanging',renderingMode:renderingMode});return true;};SUPER.pdf_generator_reset=function(form){if(form&&!form.classList.contains('super-generating-pdf')){return false;}
document.documentElement.classList.remove('super-hide-scrollbar');var inlineStyle=document.querySelector('#super-generating-pdf');if(inlineStyle)inlineStyle.remove();var nodes=form.querySelectorAll('.super-multipart,.super-tabs-content,.super-accordion-item');for(var i=0;i<nodes.length;i++){if(!nodes[i].classList.contains('super-active-origin')){nodes[i].classList.remove('super-active');}else{nodes[i].classList.remove('super-active-origin');}}
nodes=form.querySelectorAll('.super-pdf_page_break');for(i=0;i<nodes.length;i++){nodes[i].style.height='0px';}
form.querySelector('form').style.marginTop='';SUPER.reset_submit_button_loading_state(form);var placeholder=document.querySelector('.super-pdf-placeholder');placeholder.parentNode.insertBefore(form,placeholder.nextSibling);form.classList.remove('super-generating-pdf');placeholder.remove();var pdfPageContainer=document.querySelector('.super-pdf-page-container');if(pdfPageContainer)pdfPageContainer.remove();SUPER.init_super_responsive_form_fields({form:form});};SUPER.save_data=function(args){if(args.progressBar)args.progressBar.style.width=0+'%';args.loadingOverlay.querySelector('.super-inner-text').innerHTML='<span>'+super_common_i18n.loadingOverlay.processing+'</span>';var formData=new FormData();formData.append('action','super_submit_form');if(args.super_ajax_nonce)formData.append('super_ajax_nonce',args.super_ajax_nonce);if(args.form_id)formData.append('form_id',args.form_id);if(args.entry_id)formData.append('entry_id',args.entry_id);if(args.list_id)formData.append('list_id',args.list_id);if(args.token)formData.append('token',args.token);if(args.version)formData.append('version',args.version);if(args.data)formData.append('data',JSON.stringify(args.data));formData.append('i18n',args.form.data('i18n'));$.ajax({type:'post',url:super_common_i18n.ajaxurl,data:formData,async:true,cache:false,contentType:false,processData:false,timeout:60000,xhr:function(){var xhr=new window.XMLHttpRequest();if(args.showOverlay==="true"){xhr.upload.addEventListener("progress",function(evt){if(evt.lengthComputable){var percentComplete=evt.loaded/evt.total;if(args.progressBar)args.progressBar.style.width=(100*percentComplete)+"%";}},false);}
return xhr;},success:function(result){result=JSON.parse(result);if(result.error===true){SUPER.form_submission_finished(args,result);}else{if(args.form[0].classList.contains('super-save-progress')){$.ajax({url:super_common_i18n.ajaxurl,type:'post',data:{action:'super_save_form_progress',data:'',form_id:args.form_id}});}
SUPER.after_email_send_hook(args);if(args.form.data('is-redirecting')){if(args.form.data('is-doing-things')){clearInterval(SUPER.submit_form_interval);SUPER.submit_form_interval=setInterval(function(){if(args.form.data('is-doing-things')){}else{clearInterval(SUPER.submit_form_interval);SUPER.form_submission_finished(args,result);}},100);}
return false;}
if((args.form.find('form').attr('method')=='post')&&(args.form.find('form').attr('action')!=='')){args.form.find('form').submit();return false;}
SUPER.form_submission_finished(args,result);}},error:function(xhr,ajaxOptions,thrownError){console.log(xhr,ajaxOptions,thrownError);alert(super_common_i18n.errors.failed_to_process_data);}});};jQuery(document).ready(function($){var $doc=$(document);var $super_hp=$doc.find('input[name="super_hp"]');window.setInterval(function(){$super_hp.each(function(){var hasValue=$(this).val().length>0;if(!hasValue){if($(this).is("\\:-webkit-autofill")){hasValue=true;}}
if(hasValue){$super_hp.val('');}});},1000);$doc.on('change keyup keydown blur','.super-form .super-text .super-distance-calculator:not(.super-address-autopopulate)',function(){var field=this;if(timeout!==null)clearTimeout(timeout);timeout=setTimeout(function(){SUPER.calculate_distance({el:field});},1000);});SUPER.init_field_filter_visibility();$doc.on('change keyup keydown blur','.super-field.super-filter',function(){if(this.closest('.super-form-settings')){SUPER.init_field_filter_visibility($(this));}else{SUPER.init_field_filter_visibility($(this),'element_settings');}});$doc.on('click','.super-field.super-currency',function(){var $field=$(this);var $form=$field.closest('.super-form');$form.find('.super-focus').removeClass('super-focus');$field.addClass('super-focus');});$doc.on('keyup','.super-icon-search input',function(){var $value=$(this).val();var $icons=$(this).parents('.super-icon-field').children('.super-icon-list').children('i');if($value===''){$icons.css('display','inline-block');}else{$icons.each(function(){if($(this).is('[class*="'+$value+'"]')){$(this).css('display','inline-block');}else{$(this).css('display','none');}});}});$doc.on('click','.super-icon-list i',function(){if($(this).hasClass('super-active')){$(this).parent().find('i').removeClass('super-active');$(this).parents('.super-icon-field').find('input').val('');}else{$(this).parent().find('i').removeClass('super-active');$(this).parents('.super-icon-field').find('input').val($(this).attr('class'));$(this).addClass('super-active');}});var timeout=null;$doc.on('keyup paste','.super-text .super-shortcode-field[data-search="true"]',function(){var field=this;if(timeout!==null)clearTimeout(timeout);timeout=setTimeout(function(){SUPER.populate_form_data_ajax({el:field});},1000);});var timeout2=null;$doc.on('keyup','.super-text .super-shortcode-field[data-wcosm]',function(){var $this=$(this);if(timeout2!==null){clearTimeout(timeout2);}
timeout2=setTimeout(function(){var $value=$this.val();var $method=$this.data('wcosm');var $filterby=$this.data('wcosfb');var $return_label=$this.data('wcosrl');var $return_value=$this.data('wcosrv');var $populate=$this.data('wcosp');var $skip=$this.data('wcoss');var $status=$this.data('wcosst');if($value.length>0){$this.parents('.super-field-wrapper:eq(0)').addClass('super-populating');$.ajax({url:super_common_i18n.ajaxurl,type:'post',data:{action:'super_search_wc_orders',value:$value,method:$method,filterby:$filterby,return_label:$return_label,return_value:$return_value,populate:$populate,skip:$skip,status:$status},success:function(result){if(result!==''){$this.parents('.super-shortcode:eq(0)').addClass('super-focus');$this.parents('.super-shortcode:eq(0)').addClass('super-string-found');}
var ul=$this.parents('.super-field-wrapper:eq(0)').children('.super-dropdown-list');if(ul.length){ul.html(result);}else{$('<ul class="super-dropdown-list">'+result+'</ul>').appendTo($this.parents('.super-field-wrapper:eq(0)'));}},complete:function(){$this.parents('.super-field-wrapper:eq(0)').removeClass('super-populating');},error:function(xhr,ajaxOptions,thrownError){console.log(xhr,ajaxOptions,thrownError);alert(super_common_i18n.errors.failed_to_process_data);}});}},1000);});SUPER.init_common_fields();});})(jQuery);
"use strict";(function($){SUPER.switchMultipart=function(e,target,dir){var i,index,validate,result,skip,progress,multipart,form=target.closest('.super-form'),nodes=form.querySelectorAll('.super-multipart'),steps=form.querySelectorAll('.super-multipart-step'),formId=form.querySelector('input[name="hidden_form_id"]').value,activeMultipart=form.querySelector('.super-multipart-step.super-active'),children=Array.prototype.slice.call(activeMultipart.parentNode.children),total=form.querySelectorAll('.super-multipart').length,currentStep=children.indexOf(activeMultipart);if(dir==='prev'){if(currentStep===0){index=nodes.length-1;}else{index=currentStep-1;}}
if(dir==='next'){if(total===currentStep+1){index=0;}else{validate=form.querySelector('.super-multipart.super-active').dataset.validate;if(validate=='true'){result=SUPER.validate_form({el:target,form:form.querySelector('.super-multipart.super-active'),submitButton:target,validateMultipart:true,event:e});if(result!==true)return false;}
index=currentStep+1;}}
for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-active');steps[i].classList.remove('super-active');if(i===index){nodes[i].classList.add('super-active');steps[i].classList.add('super-active');}}
SUPER.init_super_responsive_form_fields({form:form});window.location.hash='step-'+formId+'-'+(parseInt(index,10)+1);skip=SUPER.skipMultipart(target,form);if(skip===true)return false;progress=100/total;progress=progress*(index+1);form.querySelector('.super-multipart-progress-bar').style.width=progress+'%';index=0;nodes=form.querySelectorAll('.super-multipart');for(i=0;i<nodes.length;i++){if(!nodes[i].querySelector('.super-error-active')){form.querySelectorAll('.super-multipart-steps .super-multipart-step')[index].classList.remove('super-error');}
index++;}
multipart=form.querySelector('.super-multipart.super-active');if(typeof multipart.dataset.disableScrollPn==='undefined'){if(e&&!e.shiftKey){$('html, body').animate({scrollTop:$(form).offset().top-30},500);}}
SUPER.focusFirstTabIndexField(e,form,multipart);};SUPER.skipMultipart=function(el,form,index,activeIndex){var i,nodes,multipart,field,skip=true;nodes=form.querySelectorAll('.super-multipart.super-active .super-field:not(.super-button)');for(i=0;i<nodes.length;i++){field=nodes[i].querySelector('.super-shortcode-field');if(field){if(!SUPER.has_hidden_parent(field))skip=false;}else{if(!SUPER.has_hidden_parent(nodes[i]))skip=false;}
if(skip===false)return false;}
if(skip){multipart=form.querySelector('.super-multipart.super-active');if((el.classList.contains('super-prev-multipart'))||(el.classList.contains('super-next-multipart'))){if(el.classList.contains('super-prev-multipart')){if(multipart.querySelector('.super-prev-multipart'))multipart.querySelector('.super-prev-multipart').click();}else{if(multipart.querySelector('.super-next-multipart'))multipart.querySelector('.super-next-multipart').click();}}else{if(index<activeIndex){if(multipart.querySelector('.super-prev-multipart'))multipart.querySelector('.super-prev-multipart').click();}else{if(multipart.querySelector('.super-next-multipart'))multipart.querySelector('.super-next-multipart').click();}}}
return skip;};SUPER.focusFirstTabIndexField=function(e,form,multipart){var fields,highestIndex,lowestIndex,index,next,disableAutofocus=multipart.dataset.disableAutofocus;if(typeof disableAutofocus==='undefined'){fields=$(multipart).find('.super-field:not('+super_elements_i18n.tab_index_exclusion+')[data-super-tab-index]');highestIndex=0;fields.each(function(){index=parseFloat($(this).attr('data-super-tab-index'));if(index>highestIndex){highestIndex=index;}});lowestIndex=highestIndex;fields.each(function(){index=parseFloat($(this).attr('data-super-tab-index'));if(index<lowestIndex){lowestIndex=index;}});next=$(multipart).find('.super-field:not('+super_elements_i18n.tab_index_exclusion+')[data-super-tab-index="'+lowestIndex+'"]');SUPER.focusNextTabField(e,next[0],form,next[0]);}};SUPER.nextTabField=function(e,field,form,nextTabIndex){if(!field)return false;var nextTabIndexSmallIncrement,nextField,nextFieldSmallIncrement,nextCustomField,customTabIndex,incNext=1,incNextSmall=0.001;if(e.shiftKey){incNext=-incNext;incNextSmall=-incNextSmall;}
if(typeof nextTabIndex==='undefined'){nextTabIndexSmallIncrement=parseFloat(parseFloat(field.dataset.superTabIndex)+incNextSmall).toFixed(3);nextTabIndex=parseFloat(field.dataset.superTabIndex)+incNext;}
if(typeof field.dataset.superCustomTabIndex!=='undefined'){nextTabIndex=parseFloat(field.dataset.superCustomTabIndex)+incNext;}
nextTabIndexSmallIncrement=parseFloat(nextTabIndexSmallIncrement);nextTabIndex=parseFloat(parseFloat(nextTabIndex).toFixed(0));nextFieldSmallIncrement=form.querySelector('.super-field[data-super-tab-index="'+nextTabIndexSmallIncrement+'"]');if(nextFieldSmallIncrement){nextField=nextFieldSmallIncrement;}else{nextField=form.querySelector('.super-field[data-super-tab-index="'+nextTabIndex+'"]');}
nextCustomField=form.querySelector('.super-field[data-super-custom-tab-index="'+nextTabIndex+'"]');if((nextCustomField)&&(!nextCustomField.classList.contains('super-focus'))){nextField=nextCustomField;}
if(!nextField)return false;if(nextField.dataset.superCustomTabIndex){customTabIndex=nextField.dataset.superCustomTabIndex;if(typeof customTabIndex!=='undefined'){if(nextTabIndex<parseFloat(customTabIndex)){nextField=SUPER.nextTabField(e,field,form,nextTabIndex+incNext);}}}
if(SUPER.has_hidden_parent(nextField)){nextField=SUPER.nextTabField(e,field,form,nextTabIndex+incNext);}
return nextField;};SUPER.init_masked_input=function(){$('.super-shortcode-field[data-mask]').each(function(){$(this).mask($(this).data('mask'));});};SUPER.init_currency_input=function(){$('.super-currency .super-shortcode-field').each(function(){var $currency=$(this).data('currency');var $format=$(this).data('format');var $decimals=$(this).data('decimals');var $thousand_separator=$(this).data('thousand-separator');var $decimal_seperator=$(this).data('decimal-separator');$(this).maskMoney({prefix:$currency,suffix:$format,affixesStay:true,allowNegative:true,thousands:$thousand_separator,decimal:$decimal_seperator,precision:$decimals});if(this.dataset.defaultValue!==''){$(this).maskMoney('mask',this.dataset.defaultValue);$(this).parents('.super-currency').addClass('super-filled');}else{$(this).parents('.super-currency').removeClass('super-filled');}});};SUPER.init_colorpicker=function(){$('.super-color .super-shortcode-field').each(function(){if(typeof $.fn.spectrum==="function"){if(!$(this).hasClass('super-picker-initialized')){var $value=$(this).val();if($value==='')$value='#FFFFFF';$(this).spectrum({containerClassName:'super-forms',replacerClassName:'super-forms',color:$value,preferredFormat:"hex",showInput:true,chooseText:"Accept",cancelText:"Cancel",change:function(color){this.value=color.toHexString();},move:function(color){this.value=color.toHexString();},beforeShow:function(){SUPER.focusForm(this);SUPER.focusField(this);}}).addClass('super-picker-initialized');}}});};SUPER.init_datepicker_get_age=function(dateString,return_value){var now=new Date(),yearNow=now.getYear(),monthNow=now.getMonth(),dateNow=now.getDate(),dob=new Date(dateString.substring(6,10),dateString.substring(0,2)-1,dateString.substring(3,5)),yearDob=dob.getYear(),monthDob=dob.getMonth(),dateDob=dob.getDate(),age={},yearAge=yearNow-yearDob,monthAge,dateAge;if(monthNow>=monthDob){monthAge=monthNow-monthDob;}else{yearAge--;monthAge=12+monthNow-monthDob;}
if(dateNow>=dateDob){dateAge=dateNow-dateDob;}else{monthAge--;dateAge=31+dateNow-dateDob;if(monthAge<0){monthAge=11;yearAge--;}}
age={years:yearAge,months:monthAge,days:dateAge};if(return_value=='years'){return age.years;}
if(return_value=='months'){return age.months;}
if(return_value=='days'){return age.days;}};SUPER.init_connected_datepicker=function($this,selectedDate,$parse_format,oneDay){if(selectedDate===''){$this.closest('.super-field').classList.remove('super-filled');}else{$this.closest('.super-field').classList.add('super-filled');}
var original_selectedDate=selectedDate,$format=$this.dataset.jsformat,d,year,month,day,firstDate,$connected_min,$connected_date,$connected_min_days,min_date,$parse,$connected_max,$connected_max_days,max_date;if(original_selectedDate!==''){d=Date.parseExact(original_selectedDate,$parse_format);if(d!==null){year=d.toString('yyyy');month=d.toString('MM');day=d.toString('dd');$this.dataset.mathYear=year;$this.dataset.mathMonth=month;$this.dataset.mathDay=day;firstDate=new Date(Date.UTC(year,month-1,day));$this.dataset.mathDiff=firstDate.getTime();$this.dataset.mathAge=SUPER.init_datepicker_get_age(month+'/'+day+'/'+year,'years');$this.dataset.mathAgeMonths=SUPER.init_datepicker_get_age(month+'/'+day+'/'+year,'months');$this.dataset.mathAgeDays=SUPER.init_datepicker_get_age(month+'/'+day+'/'+year,'days');$connected_min=$this.dataset.connectedMin;if(typeof $connected_min!=='undefined'){if($connected_min!==''){$connected_date=document.querySelector('.super-shortcode-field.super-datepicker[name="'+$connected_min+'"]');if($connected_date){$format=$connected_date.dataset.jsformat;$connected_min_days=parseInt($this.dataset.connectedMinDays,10);min_date=Date.parseExact(original_selectedDate,$parse_format).add({days:$connected_min_days}).toString($format);$($connected_date).datepicker('option','minDate',min_date);var maxPicks=($this.dataset.maxpicks?parseInt($this.dataset.maxpicks,10):1);if(maxPicks<=1){if($connected_date.value===''){$connected_date.value=min_date;}
if($connected_date.value===''){$connected_date.closest('.super-field').classList.remove('super-filled');}else{$connected_date.closest('.super-field').classList.add('super-filled');}
$parse=Date.parseExact($connected_date.value,$parse_format);if($parse!==null){selectedDate=$parse.toString($format);d=Date.parseExact(selectedDate,$format);year=d.toString('yyyy');month=d.toString('MM');day=d.toString('dd');selectedDate=new Date(Date.UTC(year,month-1,day));$connected_date.dataset.mathDiff=selectedDate.getTime();SUPER.init_connected_datepicker($connected_date,$connected_date.value,$parse_format,oneDay);}}}}}
$connected_max=$this.dataset.connectedMax;if(typeof $connected_max!=='undefined'){if($connected_max!==''){$connected_date=document.querySelector('.super-shortcode-field.super-datepicker[name="'+$connected_max+'"]');if($connected_date){$format=$connected_date.dataset.jsformat;$connected_max_days=parseInt($this.dataset.connectedMaxDays,10);max_date=Date.parseExact(original_selectedDate,$parse_format).add({days:$connected_max_days}).toString($format);$($connected_date).datepicker('option','maxDate',max_date);if($connected_date.value===''){$connected_date.value=max_date;}
if($connected_date.value===''){$connected_date.closest('.super-field').classList.remove('super-filled');}else{$connected_date.closest('.super-field').classList.add('super-filled');}
$parse=Date.parseExact($connected_date.value,$parse_format);if($parse!==null){selectedDate=$parse.toString($format);d=Date.parseExact(selectedDate,$format);year=d.toString('yyyy');month=d.toString('MM');day=d.toString('dd');selectedDate=new Date(Date.UTC(year,month-1,day));$connected_date.dataset.mathDiff=selectedDate.getTime();SUPER.init_connected_datepicker($connected_date,$connected_date.value,$parse_format,oneDay);}}}}}}
SUPER.after_field_change_blur_hook({el:$this});};SUPER.init_datepicker=function(){var i;var oneDay=24*60*60*1000,nodes=document.querySelectorAll('.super-datepicker');for(i=0;i<nodes.length;++i){if(typeof datepicker==="function"){$(nodes[i]).datepicker('destroy');}}
nodes=document.querySelectorAll('.super-datepicker:not(.super-picker-initialized)');for(i=0;i<nodes.length;++i){var el=nodes[i],form=SUPER.get_frontend_or_backend_form({el:el}),format=el.dataset.format,jsformat=el.dataset.jsformat,isRTL=(el.closest('.super-form')?el.closest('.super-form').classList.contains('super-rtl'):false),min=el.dataset.minlength,max=el.dataset.maxlength,workDays,weekends,regex=/{([^\\\/\s"'+]*?)}/g,range=el.dataset.range,maxPicks=(el.dataset.maxpicks?parseInt(el.dataset.maxpicks,10):1),firstDay=el.dataset.firstDay,localization=el.dataset.localization,widget,connectedMinDays,minDate,connectedMaxDays,maxDate,parse,year,month,firstDate,$date,days,found,date,fullDate,dateFrom,dateTo,d1,d2,from,to,check,day,exclDays,exclDaysOverride,exclDaysOverrideReplaced,exclDates,exclDatesReplaced,changeMonth=(el.dataset.changeMonth==='true'?true:false),changeYear=(el.dataset.changeYear==='true'?true:false),showMonthAfterYear=(el.dataset.showMonthAfterYear==='true'?true:false),showWeek=(el.dataset.showWeek==='true'?true:false),numberOfMonths=parseInt(el.dataset.numberOfMonths,10),showOtherMonths=(el.dataset.showOtherMonths==='true'?true:false),selectOtherMonths=(el.dataset.selectOtherMonths==='true'?true:false),parseFormat=[jsformat];if(localization!==''){if(typeof $.datepicker.regional[localization]!=='undefined'){format=$.datepicker.regional[localization].dateFormat;jsformat=format;jsformat=jsformat.replace('DD','dddd');regex=/MM/i;if(regex.test(jsformat)){jsformat=jsformat.replace('MM','MMMM');}else{regex=/M/i;if(regex.test(jsformat)){jsformat=jsformat.replace('M','MMM');}}
jsformat=jsformat.replace('mm','MM');regex=/yy/i;if(regex.test(jsformat)){jsformat=jsformat.replace('yy','yyyy');}else{regex=/y/i;if(regex.test(jsformat)){jsformat=jsformat.replace('y','yy');}}
parseFormat=[jsformat];el.dataset.format=format;el.dataset.jsformat=jsformat;}}
if(range.indexOf(':')===-1){range='-100:+5';}
if(typeof min!=='undefined')min=min.toString();if(typeof max!=='undefined')max=max.toString();el.classList.add('super-picker-initialized');if(el.value!==''){parse=Date.parseExact(el.value,parseFormat);if(parse!==null){year=parse.toString('yyyy');month=parse.toString('MM');day=parse.toString('dd');el.dataset.mathYear=year;el.dataset.mathMonth=month;el.dataset.mathDay=day;firstDate=new Date(Date.UTC(year,month-1,day));el.dataset.mathDiff=firstDate.getTime();el.dataset.mathAge=SUPER.init_datepicker_get_age(month+'/'+day+'/'+year,'years');el.dataset.mathAgeMonths=SUPER.init_datepicker_get_age(month+'/'+day+'/'+year,'months');el.dataset.mathAgeDays=SUPER.init_datepicker_get_age(month+'/'+day+'/'+year,'days');$date=Date.parseExact(day+'-'+month+'-'+year,parseFormat);if($date!==null){$date=$date.toString("dd-MM-yyyy");SUPER.init_connected_datepicker(el,$date,parseFormat,oneDay);}}}else{el.dataset.mathYear='0';el.dataset.mathMonth='0';el.dataset.mathDay='0';el.dataset.mathDiff='0';el.dataset.mathAge='0';}
var multiDatesClassName='super-datepicker-multidates',singleDatesClassName='super-datepicker-singledates';var options={onClose:function(selectedDate){SUPER.init_connected_datepicker(this,selectedDate,parseFormat,oneDay);},beforeShowDay:function(dt){workDays=(this.dataset.workDays=='true');weekends=(this.dataset.weekends=='true');day=dt.getDay();exclDays=this.dataset.exclDays;exclDates=(typeof this.dataset.exclDates!=='undefined'?this.dataset.exclDates:undefined);exclDaysOverride=this.dataset.exclDaysOverride;exclDaysOverride=(typeof this.dataset.exclDaysOverride!=='undefined'?this.dataset.exclDaysOverride:undefined);if(typeof exclDays!=='undefined'){days=exclDays.split(',');found=(days.indexOf(day.toString())>-1);if(found){if(typeof exclDaysOverride!=='undefined'){regex=/{([^\\\/\s"'+]*?)}/g;exclDaysOverrideReplaced=SUPER.update_variable_fields.replace_tags({form:form,regex:regex,value:exclDaysOverride});exclDaysOverrideReplaced=exclDaysOverrideReplaced.split("\n");date=('0'+dt.getDate()).slice(-2);month=('0'+(dt.getMonth()+1)).slice(-2);fullDate=dt.getFullYear()+'-'+month+'-'+date;i;for(i=0;i<exclDaysOverrideReplaced.length;i++){if(exclDaysOverrideReplaced[i]==='')continue;if(exclDaysOverrideReplaced[i].length<=2){if(exclDaysOverrideReplaced[i]==day){return[true,""];}}
if(exclDaysOverrideReplaced[i].length===3){if(exclDaysOverrideReplaced[i].toLowerCase()==dt.toString('MMM').toLowerCase()){return[true,""];}}
if(exclDaysOverrideReplaced[i].split(';').length>1){dateFrom=exclDaysOverrideReplaced[i].split(';')[0];dateTo=exclDaysOverrideReplaced[i].split(';')[1];d1=dateFrom.split("-");d2=dateTo.split("-");from=new Date(d1[0],parseInt(d1[1],10)-1,d1[2]);to=new Date(d2[0],parseInt(d2[1],10)-1,d2[2]);check=new Date(dt.getFullYear(),parseInt(month,10)-1,date);if(check>=from&&check<=to){return[true,""];}}
if(exclDaysOverrideReplaced[i]==fullDate){return[true,""];}}
return[false,"super-disabled-day"];}else{return[false,"super-disabled-day"];}}}
if(typeof exclDates!=='undefined'){regex=/{([^\\\/\s"'+]*?)}/g;exclDatesReplaced=SUPER.update_variable_fields.replace_tags({form:form,regex:regex,value:exclDates});exclDatesReplaced=exclDatesReplaced.split("\n");date=('0'+dt.getDate()).slice(-2);month=('0'+(dt.getMonth()+1)).slice(-2);fullDate=dt.getFullYear()+'-'+month+'-'+date;i;for(i=0;i<exclDatesReplaced.length;i++){if(exclDatesReplaced[i]==='')continue;if(exclDatesReplaced[i].length<=2){if(exclDatesReplaced[i]==day){return[false,"super-disabled-day"];}}
if(exclDatesReplaced[i].length===3){if(exclDatesReplaced[i].toLowerCase()==dt.toString('MMM').toLowerCase()){return[false,"super-disabled-day"];}}
if(exclDatesReplaced[i].split(';').length>1){dateFrom=exclDatesReplaced[i].split(';')[0];dateTo=exclDatesReplaced[i].split(';')[1];d1=dateFrom.split("-");d2=dateTo.split("-");from=new Date(d1[0],parseInt(d1[1],10)-1,d1[2]);to=new Date(d2[0],parseInt(d2[1],10)-1,d2[2]);check=new Date(dt.getFullYear(),parseInt(month,10)-1,date);if(check>=from&&check<=to){return[false,"super-disabled-day"];}}
if(exclDatesReplaced[i]==fullDate){return[false,"super-disabled-day"];}}}
if((weekends===true)&&(workDays===true)){return[true,""];}else{if(weekends===true){return[day===0||day==6,""];}
if(workDays===true){return[day==1||day==2||day==3||day==4||day==5,""];}}
return[];},beforeShow:function(input,inst){var maxPicks=(inst.settings.maxPicks?inst.settings.maxPicks:1);widget=$(inst).datepicker('widget');widget[0].classList.add('super-datepicker-dialog');if(maxPicks<=1){widget[0].classList.remove(multiDatesClassName);widget[0].classList.add(singleDatesClassName);$('.super-datepicker[data-connected-min="'+$(this).attr('name')+'"]').each(function(){if($(this).val()!==''){connectedMinDays=$(this).data('connected-min-days');minDate=Date.parseExact($(this).val(),parseFormat).add({days:connectedMinDays}).toString(jsformat);$(el).datepicker('option','minDate',minDate);}});}else{widget[0].classList.add(multiDatesClassName);widget[0].classList.remove(singleDatesClassName);}
$('.super-datepicker[data-connected-max="'+$(this).attr('name')+'"]').each(function(){if($(this).val()!==''){connectedMaxDays=$(this).data('connected-max-days');maxDate=Date.parseExact($(this).val(),parseFormat).add({days:connectedMaxDays}).toString(jsformat);$(el).datepicker('option','maxDate',maxDate);}});},yearRange:range,showAnim:'',showOn:$(this).parent().find('.super-icon'),minDate:min,maxDate:max,dateFormat:format,firstDay:firstDay,isRTL:isRTL,closeText:super_elements_i18n.closeText,prevText:super_elements_i18n.prevText,nextText:super_elements_i18n.nextText,currentText:super_elements_i18n.currentText,monthNames:super_elements_i18n.monthNames,monthNamesShort:super_elements_i18n.monthNamesShort,dayNames:super_elements_i18n.dayNames,dayNamesShort:super_elements_i18n.dayNamesShort,dayNamesMin:super_elements_i18n.dayNamesMin,weekHeader:super_elements_i18n.weekHeader,changeMonth:changeMonth,changeYear:changeYear,showMonthAfterYear:showMonthAfterYear,showWeek:showWeek,numberOfMonths:numberOfMonths,yearSuffix:'',showOtherMonths:showOtherMonths,selectOtherMonths:selectOtherMonths};try{if(maxPicks>1){options.maxPicks=maxPicks;$(el).multiDatesPicker(options);$.datepicker._selectDateOverload=$.datepicker._selectDate;$.datepicker._selectDate=function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);inst.inline=true;$.datepicker._selectDateOverload(id,dateStr);inst.inline=false;if(target[0].multiDatesPicker!=null){target[0].multiDatesPicker.changed=false;}else{target.multiDatesPicker.changed=false;}
this._updateDatepicker(inst);if(typeof inst.settings.maxPicks==='undefined'||inst.settings.maxPicks<=1){$(target).datepicker('hide');}};}else{$(el).datepicker(options);}
if(localization!==''){if(typeof $.datepicker.regional[localization]!=='undefined'){$.datepicker.regional[localization].yearSuffix='';$(el).datepicker("option",$.datepicker.regional[localization]);}}}catch(error){console.log(error);alert(error);}
$(el).parent().find('.super-icon').css('cursor','pointer');}
$('.super-datepicker').parent().find('.super-icon').on('click',function(){$(this).parent().find('.super-datepicker').datepicker('show');});$('.super-datepicker').on('click focus',function(){if($('.super-timepicker').length){$('.super-timepicker').timepicker('hide');}
$(this).datepicker('show');});function set_timepicker_dif($this){var $value=$this.val(),hours,minutes,AMPM,sHours,sMinutes,$h,$m,$s,today,dd,mm,yyyy,d,$timestamp;if($this.data('format')=='h:i A'){if($value==='')$value='12:00 AM';hours=Number($value.match(/^(\d+)/)[1]);minutes=Number($value.match(/:(\d+)/)[1]);AMPM=$value.match(/\s(.*)$/)[1];if(AMPM=='PM'&&hours<12)hours=hours+12;if(AMPM=='AM'&&hours==12)hours=hours-12;sHours=hours.toString();sMinutes=minutes.toString();if(hours<10)sHours='0'+sHours;if(minutes<10)sMinutes='0'+sMinutes;$value=sHours+':'+sMinutes;}
$value=$value.split(':');if(typeof $value[0]==='undefined')$value[0]='00';if(typeof $value[1]==='undefined')$value[1]='00';$h=$value[0];$m=$value[1].split(' ');$m=$m[0];if(typeof $value[2]==='undefined'){$s='00';}else{$s=$value[2];}
today=new Date();dd=today.getDate();mm=today.getMonth();yyyy=today.getFullYear();d=new Date(Date.UTC(yyyy,mm,dd,$h,$m,$s));$timestamp=d.getTime();$this[0].dataset.mathDiff=$timestamp;SUPER.after_field_change_blur_hook({el:$this[0]});}
$('.super-timepicker:not(.ui-timepicker-input)').each(function(){if(typeof $.fn.timepicker!=='function')return false;var $this=$(this),form=SUPER.get_frontend_or_backend_form({el:this}),regex=/{([^\\\/\s"'+]*?)}/g,$is_rtl=form.classList.contains('super-rtl'),$orientation='l',format=$this.data('format'),step=$this.data('step'),range=$this.data('range'),min=$this.data('minlength'),max=$this.data('maxlength'),duration=$this.data('duration'),finalrange=[],$form_id,$form_size;if(min==='')min='00:00';if(max==='')max='23:59';if(typeof min!=='undefined'){min=min.toString();min=SUPER.update_variable_fields.replace_tags({form:form,regex:regex,value:min});if(min.indexOf(':')===-1){if(min!==parseInt(min,10)){min=parseInt(min,10);var prevMin=min-(min%(step*60));min=prevMin+1800;}}}
if(typeof max!=='undefined'){max=max.toString();max=SUPER.update_variable_fields.replace_tags({form:form,regex:regex,value:max});if(max.indexOf(':')===-1){if(max!==parseInt(max,10)){max=parseInt(max,10);var prevMax=max-(max%(step*60));max=prevMax+1800;}}}
if((range!=='')&&(typeof range!=='undefined')){range=range.split('\n');$.each(range,function(key,value){finalrange.push(value.split('|'));});}
$form_id=form.id;$form_size=form.dataset.fieldSize;if($is_rtl===true){$orientation='r';}
$this.timepicker({className:$form_id+' super-timepicker-dialog super-field-size-'+$form_size,timeFormat:format,step:step,disableTimeRanges:finalrange,minTime:min,maxTime:max,showDuration:duration,orientation:$orientation});$this.parent().find('.super-icon').css('cursor','pointer');set_timepicker_dif($this);});$('.super-timepicker').on('changeTime',function(){set_timepicker_dif($(this));if(this.value===''){this.closest('.super-field').classList.remove('super-filled');}else{this.closest('.super-field').classList.add('super-filled');}});$('.super-timepicker').parent().find('.super-icon').on('click',function(){$(this).parent().find('.super-timepicker').timepicker('show');});};SUPER.init_button_colors=function(el){var i,nodes,type,color,light,dark,font,fontHover,wrap,icon,btnName,btnNameIcon;if(!el){nodes=document.querySelectorAll('.super-button .super-button-wrap');for(i=0;i<nodes.length;i++){SUPER.init_button_colors(nodes[i]);}}else{el=el.parentNode;type=el.dataset.type;color=el.dataset.color;light=el.dataset.light;dark=el.dataset.dark;font=el.dataset.font;fontHover=el.dataset.fontHover;wrap=el.querySelector('.super-button-wrap');icon=wrap.querySelector('.super-before');btnName=wrap.querySelector('.super-button-name');btnNameIcon=btnName.querySelector('i');if(type=='diagonal'){if(typeof color!=='undefined'){wrap.style.borderColor=color;}else{wrap.style.borderColor='';}
if(typeof font!=='undefined'){if(icon)icon.style.color=font;btnName.style.color=font;if(btnNameIcon)btnNameIcon.style.color=font;}else{if(icon)icon.style.color='';btnName.style.color='';if(btnNameIcon)btnNameIcon.style.color='';}
el.querySelector('.super-button-wrap .super-after').style.backgroundColor=color;}
if(type=='outline'){if(typeof color!=='undefined'){wrap.style.borderColor=color;}else{wrap.style.borderColor='';}
wrap.style.backgroundColor='';if(typeof font!=='undefined'){if(icon)icon.style.color=font;btnName.style.color=font;if(btnNameIcon)btnNameIcon.style.color=font;}else{if(icon)icon.style.color='';btnName.style.color='';if(btnNameIcon)btnNameIcon.style.color='';}}
if(type=='2d'){wrap.style.backgroundColor=color;wrap.style.borderColor=light;if(icon)icon.style.color=font;btnName.style.color=font;if(btnNameIcon)btnNameIcon.style.color=font;}
if(type=='3d'){wrap.style.backgroundColor=color;wrap.style.color=dark;wrap.style.borderColor=light;if(typeof fontHover!=='undefined'){if(icon)icon.style.color=font;btnName.style.color=font;if(btnNameIcon)btnNameIcon.style.color=font;}else{if(typeof font!=='undefined'){if(icon)icon.style.color=font;btnName.style.color=font;if(btnNameIcon)btnNameIcon.style.color=font;}else{if(icon)icon.style.color='';btnName.style.color='';if(btnNameIcon)btnNameIcon.style.color='';}}}
if(type=='flat'){wrap.style.backgroundColor=color;if(icon)icon.style.color=font;btnName.style.color=font;if(btnNameIcon)btnNameIcon.style.color=font;}}};SUPER.init_button_hover_colors=function(el){var type=el.dataset.type,color=el.dataset.color,hoverColor=el.dataset.hoverColor,hoverLight=el.dataset.hoverLight,hoverDark=el.dataset.hoverDark,font=el.dataset.font,fontHover=el.dataset.fontHover,wrap=el.querySelector('.super-button-wrap'),icon=wrap.querySelector('.super-before'),btnName=wrap.querySelector('.super-button-name'),btnNameIcon=btnName.querySelector('i');if(type=='2d'){wrap.style.backgroundColor=hoverColor;wrap.style.borderColor=hoverLight;if(icon)icon.style.color=fontHover;btnName.style.color=fontHover;if(btnNameIcon)btnNameIcon.style.color=fontHover;}
if(type=='flat'){wrap.style.backgroundColor=hoverColor;if(icon)icon.style.color=fontHover;btnName.style.color=fontHover;if(btnNameIcon)btnNameIcon.style.color=fontHover;}
if(type=='outline'){if(typeof hoverColor!=='undefined'){wrap.style.backgroundColor=hoverColor;}else{if(typeof color!=='undefined'){wrap.style.backgroundColor=color;}else{wrap.style.backgroundColor='';}}
wrap.style.borderColor=hoverColor;if(typeof fontHover!=='undefined'){if(icon)icon.style.color=fontHover;btnName.style.color=fontHover;if(btnNameIcon)btnNameIcon.style.color=fontHover;}else{if(typeof font!=='undefined'){if(icon)icon.style.color=font;btnName.style.color=font;if(btnNameIcon)btnNameIcon.style.color=font;}else{if(icon)icon.style.color='';btnName.style.color='';if(btnNameIcon)btnNameIcon.style.color='';}}}
if(type=='diagonal'){if(typeof color!=='undefined'){wrap.style.borderColor=hoverColor;}else{wrap.style.borderColor='';}
if(typeof font!=='undefined'){if(icon)icon.style.color=fontHover;btnName.style.color=fontHover;if(btnNameIcon)btnNameIcon.style.color=fontHover;}else{if(icon)icon.style.color='';btnName.style.color='';if(btnNameIcon)btnNameIcon.style.color='';}
wrap.querySelector('.super-after').style.backgroundColor=hoverColor;return false;}
if(type=='2d'){return false;}
if(typeof hoverColor!=='undefined'){wrap.style.backgroundColor=hoverColor;if(type=='3d'){wrap.style.color=hoverDark;wrap.style.borderColor=hoverLight;if(typeof fontHover!=='undefined'){if(icon)icon.style.color=fontHover;btnName.style.color=fontHover;if(btnNameIcon)btnNameIcon.style.color=fontHover;}else{if(typeof font!=='undefined'){if(icon)icon.style.color=font;btnName.style.color=font;if(btnNameIcon)btnNameIcon.style.color=font;}else{if(icon)icon.style.color='';btnName.style.color='';if(btnNameIcon)btnNameIcon.style.color='';}}}}};SUPER.get_decimal_places=function($number){var $match=(''+$number).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);if(!$match){return 0;}
return Math.max(0,($match[1]?$match[1].length:0)-($match[2]?+$match[2]:0));};SUPER.getAllUrlParams=function(url){var queryString=url?url.split('?')[1]:window.location.search.slice(1);var obj={};if(queryString){queryString=queryString.split('#')[0];var arr=queryString.split('&');for(var i=0;i<arr.length;i++){var a=arr[i].split('=');var paramName=a[0];var paramValue=typeof(a[1])==='undefined'?true:a[1];paramName=paramName.toLowerCase();if(typeof paramValue==='string')paramValue=paramValue.toLowerCase();if(paramName.match(/\[(\d+)?\]$/)){var key=paramName.replace(/\[(\d+)?\]/,'');if(!obj[key])obj[key]=[];if(paramName.match(/\[\d+\]$/)){var index=/\[(\d+)\]/.exec(paramName)[1];obj[key][index]=paramValue;}else{obj[key].push(paramValue);}}else{if(!obj[paramName]){obj[paramName]=paramValue;}else if(obj[paramName]&&typeof obj[paramName]==='string'){obj[paramName]=[obj[paramName]];obj[paramName].push(paramValue);}else{obj[paramName].push(paramValue);}}}}
return obj;};jQuery(document).ready(function($){SUPER.init_common_fields();var $doc=$(document);$doc.on('focusin',function(e){if(e.target.closest('.super-timepicker-dialog')){SUPER.focusForm(e.relatedTarget);return true;}
if(e.target.closest('.super-datepicker-dialog')){SUPER.focusForm(e.relatedTarget);return true;}
if(SUPER.lastTabKey){if(e.target.tagName==='FORM'&&e.target.closest('.super-form')){if(e.target.classList.contains('super-form-focussed')){return true;}
SUPER.focusForm(e.target);SUPER.lastFocussedForm=e.target;var form=SUPER.lastFocussedForm;var i,field,visibleNodes=[];if(SUPER.lastTabKey==='tab'){e.target.blur();i,nodes=form.querySelectorAll('.super-field:not('+super_common_i18n.tab_index_exclusion+')');for(i=0;i<nodes.length;i++){if(SUPER.has_hidden_parent(nodes[i]))continue;visibleNodes.push(nodes[i]);break;}
field=visibleNodes[0];SUPER.focusNextTabField(e,field,form,field);}
if(SUPER.lastTabKey==='shift+tab'){if(SUPER.firstFocussedField){return true;}
e.target.blur();i,nodes=form.querySelectorAll('.super-field:not('+super_common_i18n.tab_index_exclusion+')');for(i=0;i<nodes.length;i++){if(SUPER.has_hidden_parent(nodes[i]))continue;visibleNodes.push(nodes[i]);}
field=visibleNodes[visibleNodes.length-1];SUPER.focusNextTabField(e,field,form,field);}
e.preventDefault();return false;}else{if(SUPER.lastFocussedForm&&e.target.closest('form')&&e.target.closest('form')===SUPER.lastFocussedForm){SUPER.focusForm(e.target);if(!e.target.classList.contains('super-placeholder')){SUPER.focusField(e.target);}}else{if(SUPER.lastFocussedForm){SUPER.lastFocussedForm.classList.remove('super-form-focussed');SUPER.lastFocussedForm.tabIndex=0;nodes=SUPER.lastFocussedForm.querySelectorAll('.super-focus');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-focus');nodes[i].classList.remove('super-open');}
nodes=SUPER.lastFocussedForm.querySelectorAll('.super-open');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-open');}}}}}else{if(e.target.tagName==='FORM'&&e.target.closest('.super-form')){SUPER.focusForm(e.target);SUPER.lastFocussedForm=e.target;SUPER.lastFocussedForm.tabIndex=-1;}else{if(e.target.closest('.super-form')){SUPER.focusField(e.target);SUPER.focusForm(e.target.closest('form'));}}}});$doc.keydown(function(e){SUPER.lastTabKey=undefined;var i,nodes,field,form,item,current,submitButton,nextSibling,keyCode=e.keyCode||e.which;if(keyCode==32){field=document.querySelector('.super-focus');if(field){form=field.closest('.super-form');if(field.classList.contains('super-checkbox')||field.classList.contains('super-radio')){if(field.querySelector('.super-focus')){if(field.classList.contains('super-checkbox')){SUPER.simulateCheckboxItemClicked(e,field.querySelector('.super-focus'));}else{SUPER.simulateRadioItemClicked(e,field.querySelector('.super-focus'));}}
e.preventDefault();return false;}
if(field.classList.contains('super-toggle')){field.querySelector('.super-toggle-switch').click();e.preventDefault();return false;}}}
if(keyCode==13){field=document.querySelector('.super-focus');if(field){if(field.classList.contains('super-dropdown')){item=field.querySelector('.super-focus');if(item)item.click();e.preventDefault();return false;}
if(field.classList.contains('super-file')){field.querySelector('.super-fileupload-button').click();e.preventDefault();return false;}
form=field.closest('.super-form');if(form&&form.dataset.disableEnter=='true'){e.preventDefault();return false;}
if(!field.classList.contains('super-textarea')){if(!form.querySelector('.super-form-button.super-loading')){submitButton=form.querySelector('.super-form-button .super-button-wrap .super-button-name[data-action="submit"]');if(submitButton){var args={el:undefined,form:form,submitButton:submitButton.parentNode,validateMultipart:undefined,event:e,doingSubmit:true};SUPER.validate_form(args);}}
e.preventDefault();}}}
if(keyCode==37||keyCode==38||keyCode==39||keyCode==40){field=document.querySelector('.super-focus');if(field){if(field.classList.contains('super-toggle')){field.querySelector('.super-toggle-switch').click();e.preventDefault();return false;}
if(field.classList.contains('super-slider')){var inputField=field.querySelector('.super-shortcode-field');var value=inputField.value;var steps=inputField.dataset.steps;var newValue;if(keyCode==37||keyCode==38){newValue=parseFloat(value)-parseFloat(steps);}else{newValue=parseFloat(value)+parseFloat(steps);}
SUPER.reposition_slider_amount_label(inputField,newValue);e.preventDefault();return false;}
if(field.classList.contains('super-rating')){nodes=field.querySelectorAll('.super-active');if(keyCode==37||keyCode==38){if(nodes.length)nodes[nodes.length-2].click();}else{if(nodes.length){if(nodes[nodes.length-1].nextSibling&&nodes[nodes.length-1].nextSibling.tagName==='I'){nodes[nodes.length-1].nextSibling.click();}}else{field.querySelector('i.super-rating-star').click();}}
e.preventDefault();return false;}
if(field.classList.contains('super-dropdown')){var all=field.querySelectorAll('.super-item:not(.super-placeholder)');current=field.querySelector('.super-focus');if(!current){current=field.querySelector('.super-active');}
if(keyCode==37||keyCode==38){if(current){var prev=current.previousSibling;if(prev&&!prev.classList.contains('super-placeholder')){current.classList.remove('super-focus');prev.classList.add('super-focus');}else{all[0].classList.remove('super-focus');all[all.length-1].classList.add('super-focus');}}else{all[all.length-1].classList.add('super-focus');}}else{if(current){var next=current.nextSibling;if(next){current.classList.remove('super-focus');next.classList.add('super-focus');}else{all[all.length-1].classList.remove('super-focus');all[0].classList.add('super-focus');}}else{all[0].classList.add('super-focus');}}
current=field.querySelector('.super-focus');current.scrollIntoView({behavior:"auto",block:"center",inline:"center"});e.preventDefault();return false;}
if(field.classList.contains('super-checkbox')||field.classList.contains('super-radio')){if(field.querySelector('.super-focus')){current=field.querySelector('.super-item.super-focus');if(current){if(keyCode==37||keyCode==38){nextSibling=current.previousSibling;}else{nextSibling=current.nextSibling;}
current.classList.remove('super-focus');if(nextSibling&&nextSibling.classList.contains('super-item')){nextSibling.classList.add('super-focus');if(field.classList.contains('super-radio')){nextSibling.click();}}else{var innerNodes=field.querySelectorAll('.super-item');if(keyCode==37||keyCode==38){innerNodes[innerNodes.length-1].classList.add('super-focus');if(field.classList.contains('super-radio')){innerNodes[innerNodes.length-1].click();}}else{innerNodes[0].classList.add('super-focus');if(field.classList.contains('super-radio')){innerNodes[0].click();}}}
e.preventDefault();return false;}}
e.preventDefault();return false;}}}
if((keyCode==37)||(keyCode==39)){nodes=document.querySelectorAll('.super-form .super-tabs-contents');for(i=0;i<nodes.length;i++){field=nodes[i].closest('.super-shortcode');if(!SUPER.has_hidden_parent(field,true)){var activeTab=field.querySelector('.super-tabs-contents > .super-tabs-content.super-active');var focusFound=activeTab.querySelectorAll('.super-focus').length;if(focusFound)continue;if(!field.closest('.super-tabs-contents')){if(keyCode==37)nodes[i].querySelector(':scope > .super-content-prev').click();if(keyCode==39)nodes[i].querySelector(':scope > .super-content-next').click();}}}}
if(keyCode==9){SUPER.firstFocussedField=false;SUPER.lastTabKey='tab';if(e.shiftKey){SUPER.lastTabKey='shift+tab';}
form=document.querySelector('.super-form-focussed')
if(form){field=form.querySelector('.super-field.super-focus');if(field){nodes=form.querySelectorAll('.super-field:not('+super_common_i18n.tab_index_exclusion+')');var visibleNodes=[];for(i=0;i<nodes.length;i++){if(SUPER.has_hidden_parent(nodes[i]))continue;visibleNodes.push(nodes[i]);}
if(field===visibleNodes[1]){if(SUPER.lastTabKey==='shift+tab'){form.tabIndex=-1;SUPER.focusNextTabField(e,field,form);e.preventDefault();return false;}}
if(field===visibleNodes[0]){SUPER.firstFocussedField=true;if(SUPER.lastTabKey==='shift+tab'){SUPER.resetFocussedFields();return true;}}
if(field===visibleNodes[visibleNodes.length-1]){if(SUPER.lastTabKey==='tab'){field.classList.remove('super-focus');if(field.classList.contains('super-form-button')){SUPER.init_button_colors(field.querySelector('.super-button-wrap'));}else{innerNodes=field.querySelectorAll('.super-focus');for(i=0;i<innerNodes.length;i++){innerNodes[i].classList.remove('super-focus');}}
return true;}}
SUPER.focusNextTabField(e,field,form);e.preventDefault();return false;}else{if(SUPER.lastTabKey==='tab'){SUPER.firstFocussedField=true;nodes=form.querySelectorAll('.super-field:not('+super_common_i18n.tab_index_exclusion+')');for(i=0;i<nodes.length;i++){if(SUPER.has_hidden_parent(nodes[i]))continue;SUPER.focusNextTabField(e,nodes[i],form,nodes[i]);e.preventDefault();return false;}}
if(SUPER.lastTabKey==='shift+tab'){return true;}}
e.preventDefault();return false;}else{}}});$doc.on('click','.super-content-prev, .super-content-next',function(e){e.preventDefault();var $this=$(this),$tab_menu=$this.parents('.super-shortcode:eq(0)').children('.super-tabs-menu'),$tab_content=$this.parents('.super-tabs-contents:eq(0)'),$total=$tab_menu.children('.super-tabs-tab').length,$index=$tab_content.children('.super-tabs-content.super-active').index();if($this.hasClass('super-content-next')){$index++;if($index>=$total){$index=$total-1;}
if($index>=$total-1){$tab_menu.find('.super-tab-next').hide();}else{$tab_menu.find('.super-tab-next').show();}
$tab_menu.find('.super-tab-prev').show();}
if($this.hasClass('super-content-prev')){$index--;if($index<0){$index=0;}
if($index===0){$tab_menu.find('.super-tab-prev').hide();}else{$tab_menu.find('.super-tab-prev').show();}
$tab_menu.find('.super-tab-next').show();}
$tab_menu.children('.super-tabs-tab').removeClass('super-active');$tab_menu.children('.super-tabs-tab:eq('+($index)+')').addClass('super-active');$tab_content.children('.super-tabs-content').removeClass('super-active');$tab_content.children('.super-tabs-content:eq('+($index)+')').addClass('super-active');return false;});$doc.on('click','.super-tab-prev, .super-tab-next',function(e){e.preventDefault();var $this=$(this),$tab_menu=$this.parents('.super-tabs-menu:eq(0)'),$tab_content=$tab_menu.parent().children('.super-tabs-contents'),$total=$this.parents('.super-tabs-menu:eq(0)').children('.super-tabs-tab').length,$index=$this.parents('.super-tabs-menu:eq(0)').children('.super-tabs-tab.super-active').index();if($this.hasClass('super-tab-next')){$index++;if($index>=$total){$index=$total-1;}
if($index>=$total-1){$tab_menu.find('.super-tab-next').hide();}else{$tab_menu.find('.super-tab-next').show();}
$tab_menu.find('.super-tab-prev').show();}
if($this.hasClass('super-tab-prev')){$index--;if($index<0){$index=0;}
if($index===0){$tab_menu.find('.super-tab-prev').hide();}else{$tab_menu.find('.super-tab-prev').show();}
$tab_menu.find('.super-tab-next').show();}
$tab_menu.children('.super-tabs-tab').removeClass('super-active');$tab_menu.children('.super-tabs-tab:eq('+($index)+')').addClass('super-active');$tab_content.children('.super-tabs-content').removeClass('super-active');$tab_content.children('.super-tabs-content:eq('+($index)+')').addClass('super-active');return false;});$doc.on('click','.super-shortcode .super-tabs-tab',function(e){e.preventDefault();var $this=$(this),$index=$this.index(),$tab_menu=$this.parent('.super-tabs-menu'),$tab_content=$tab_menu.parent().children('.super-tabs-contents');$tab_menu.children('.super-tabs-tab').removeClass('super-active');$this.addClass('super-active');$tab_content.children('.super-tabs-content').removeClass('super-active');$tab_content.children('.super-tabs-content:eq('+$index+')').addClass('super-active');});$doc.on('click','.super-accordion-item .super-accordion-header',function(){var $this=$(this).parent(),$parent=$this.parent();if($this.hasClass('super-active')){$parent.children('.super-accordion-item').removeClass('super-active');}else{$parent.children('.super-accordion-item').removeClass('super-active');$this.addClass('super-active');var i,nodes=$this[0].querySelectorAll('.super-shortcode.super-slider');for(i=0;i<nodes.length;i++){if(nodes[i].querySelector('.slider')){var field=nodes[i].querySelector('.super-shortcode-field');SUPER.reposition_slider_amount_label(field,field.value);}}}
SUPER.init_super_responsive_form_fields({form:$parent[0]});});$doc.on('input','.super-form .super-uppercase .super-shortcode-field',function(){$(this).val(function(_,val){return val.toUpperCase();});});var word_count_timeout=null;$doc.on('keyup blur','textarea.super-shortcode-field',function(e){var $this=$(this),$time=250,$text,$words;if(e.type!='keyup')$time=0;if(word_count_timeout!==null){clearTimeout(word_count_timeout);}
word_count_timeout=setTimeout(function(){$text=$this.val();$words=$text.match(/\S+/g);$words=$words?$words.length:0;$this.attr('data-word-count',$words);SUPER.after_field_change_blur_hook({el:$this[0]});},$time);});$doc.on('click','.super-color',function(){SUPER.focusField(this);});$doc.on('click','.super-quantity .super-minus-button, .super-quantity .super-plus-button',function(){SUPER.focusField(this);var $this=$(this),$input_field=$this.parent().find('.super-shortcode-field'),$min=parseFloat($input_field.data('minnumber')),$max=parseFloat($input_field.data('maxnumber')),$field_value=$input_field.val(),$new_value,$steps=parseFloat($input_field.data('steps')),$decimals=SUPER.get_decimal_places($steps);if($field_value==='')$field_value=0;$field_value=parseFloat($field_value);if($this.hasClass('super-plus-button')){$new_value=$field_value+$steps;$new_value=parseFloat($new_value.toFixed($decimals));if($new_value>$max)return false;}else{$new_value=$field_value-$steps;$new_value=parseFloat($new_value.toFixed($decimals));if($new_value<$min)return false;}
$input_field.val($new_value);SUPER.after_field_change_blur_hook({el:$input_field[0]});});$doc.on('input','.super-quantity .super-shortcode-field',function(){this.value=this.value.replace(/[^0-9]/g,'');});$doc.on('click','.super-toggle-switch',function(){var $this=$(this),$input_field=$this.parent().find('.super-shortcode-field'),$new_value=$this.find('.super-toggle-on').data('value');if($this.hasClass('super-active')){$new_value=$this.find('.super-toggle-off').data('value');}
$this.toggleClass('super-active');$input_field.val($new_value);SUPER.focusField(this);SUPER.after_field_change_blur_hook({el:$input_field[0]});});var $calculation_threshold=null;$doc.on('keyup blur','.super-form .super-currency .super-shortcode-field, .super-form .super-quantity .super-shortcode-field',function(e){var $this=$(this);var $threshold=0;if((typeof $this.attr('data-threshold')!=='undefined')&&(e.type=='keyup')){$threshold=parseFloat($this.attr('data-threshold'));if($calculation_threshold!==null){clearTimeout($calculation_threshold);}
$calculation_threshold=setTimeout(function(){SUPER.after_field_change_blur_hook({el:$this[0]});},$threshold);}else{SUPER.after_field_change_blur_hook({el:$this[0]});}});$doc.on('click','.super-form .super-duplicate-column-fields .super-add-duplicate',function(){var i,ii,iii,iiii,nodes,v,vv,found_field,el,parent,column,form,firstColumn,found,limit,unique_field_names={},field_names={},field_name,field_labels={},counter=0,field,clone,last_tab_index,added_fields={},added_fields_with_suffix={},added_fields_without_suffix=[],field_counter=0,element,foundElements,html_fields,data_fields,conditions,new_data_attr,new_data_fields,new_text,condition,replace_names,new_field,new_count,suffix,superMath,value_n,names,name,values,array,match,number,regex=/{([^\\\/\s"'+]*?)}/g,oldv,duplicate_dynamically;function return_replace_names(value,new_count,replace_names){regex=/{([^\\\/\s"'+]*?)}/g;while((vv=regex.exec(value))!==null){if(vv.index===regex.lastIndex){regex.lastIndex++;}
field_name=vv[1].split(';')[0];new_field=field_name+'_'+new_count;replace_names[field_name]=new_field;}
return replace_names;}
el=$(this)[0];parent=el.closest('.super-duplicate-column-fields');column=(el.parentNode.classList.contains('super-column-custom-padding')?el.closest('.super-column-custom-padding'):parent.closest('.super-column'));form=SUPER.get_frontend_or_backend_form({el:el,form:form});var duplicateColumns=column.querySelectorAll('.super-duplicate-column-fields');firstColumn=duplicateColumns[0];found=column.querySelectorAll('.super-duplicate-column-fields').length;limit=parseInt(column.dataset.duplicateLimit,10);if((limit!==0)&&(found>=limit)){return false;}
unique_field_names={};field_names={};field_labels={};counter=0;nodes=firstColumn.querySelectorAll('.super-shortcode-field[name]');for(i=0;i<nodes.length;++i){field=nodes[i];if(field.classList.contains('super-fileupload')){field=field.parentNode.querySelector('.super-active-files');}
name=field.name;unique_field_names[name]=name;field_names[counter]=name;field_labels[counter]=field.dataset.email;counter++;}
counter=column.querySelectorAll('.super-duplicate-column-fields').length;clone=firstColumn.cloneNode(true);column.appendChild(clone);SUPER.after_appending_duplicated_column_hook(form,unique_field_names,clone);SUPER.init_clear_form({form:form,clone:clone});if($(clone).find('.super-shortcode[data-super-tab-index]').last().length){last_tab_index=$(clone).find('.super-shortcode[data-super-tab-index]').last().attr('data-super-tab-index');}else{last_tab_index='';}
last_tab_index=parseFloat(last_tab_index);added_fields={};added_fields_with_suffix={};added_fields_without_suffix=[];field_counter=0;nodes=clone.querySelectorAll('.super-shortcode-field[name]');for(i=0;i<nodes.length;++i){field=nodes[i];parent=field.closest('.super-field');if(field.classList.contains('super-fileupload')){field.classList.remove('super-rendered');field=field.parentNode.querySelector('.super-active-files');}
if((typeof parent.dataset.superTabIndex!=='undefined')&&(last_tab_index!=='')){last_tab_index=parseFloat(parseFloat(last_tab_index)+0.001).toFixed(3);parent.dataset.superTabIndex=last_tab_index;}
added_fields[field.name]=field;field.name=field_names[field_counter]+'_'+(counter+1);if(typeof field_labels[field_counter]!=='undefined'){field_labels[field_counter]=field_labels[field_counter].trim();if(field_labels[field_counter].indexOf("%d")===-1){field_labels[field_counter]=field_labels[field_counter]+' '+counter;}else{field_labels[field_counter]=field_labels[field_counter].replace('%d',counter+1);}
field.dataset.email=field_labels[field_counter];}
added_fields_with_suffix[field_names[field_counter]]=field_names[field_counter]+'_'+(counter+1);added_fields_without_suffix.push(field_names[field_counter]+'_'+(counter+1));if(field.classList.contains('hasDatepicker'))field.classList.remove('hasDatepicker');field.id='';if(field.classList.contains('ui-timepicker-input'))field.classList.remove('ui-timepicker-input');field_counter++;}
foundElements=[];$.each(added_fields_with_suffix,function(index){html_fields=form.querySelectorAll('.super-google-map[data-fields*="{'+index+'}"], .super-html-content[data-fields*="{'+index+'}"], .super-accordion-title[data-fields*="{'+index+'}"], .super-accordion-desc[data-fields*="{'+index+'}"]');for(i=0;i<html_fields.length;++i){if(!html_fields[i].closest('.super-duplicate-column-fields')){found=false;for(ii=0;ii<foundElements.length;++ii){if($(foundElements[ii]).is(html_fields[i]))found=true;}
if(!found)foundElements.push(html_fields[i]);}}});for(i=0;i<foundElements.length;++i){foundElements[i].dataset.fields=foundElements[i].dataset.fields+'{'+added_fields_without_suffix.join('}{')+'}';}
nodes=clone.querySelectorAll('.super-shortcode');for(i=0;i<nodes.length;++i){element=nodes[i];duplicate_dynamically=column.dataset.duplicateDynamically;if(duplicate_dynamically=='true'){if(element.classList.contains('super-html')){data_fields=element.querySelector('.super-html-content').dataset.fields;if(typeof data_fields!=='undefined'){new_count=counter+1;data_fields=data_fields.split('}');new_data_fields={};$.each(data_fields,function(k,v){if(v!==''){v=v.replace('{','');oldv=v;v=v.toString().split(';');name=v[0];found_field=SUPER.field(form,name);if(!found_field){return;}
if(!found_field.closest('.super-duplicate-column-fields')){new_data_fields[oldv]=name;return;}
if(name=='dynamic_column_counter')return;number=v[1];if(typeof number==='undefined'){number='';}else{number=';'+number;}
new_data_fields[oldv]=name+'_'+new_count+number;}});new_data_attr='';$.each(new_data_fields,function(k,v){new_data_attr+='{'+v+'}';});element.querySelector('.super-html-content').dataset.fields=new_data_attr;new_text=element.querySelector('textarea').value;$.each(new_data_fields,function(k,v){new_text=new_text.split('{'+k+';').join('{'+v+';');new_text=new_text.split('{'+k+'}').join('{'+v+'}');});element.querySelector('textarea').value=new_text;}}
var conditionElements=element.querySelectorAll(':scope > .super-conditional-logic,:scope > .super-validate-conditions,:scope > .super-variable-conditions');for(ii=0;ii<conditionElements.length;++ii){condition=conditionElements[ii];new_count=counter+1;conditions=JSON.parse(condition.value);if(typeof conditions!=='undefined'){replace_names={};for(iii=0;iii<conditions.length;++iii){v=conditions[iii];if(v.field!==''&&v.field.indexOf('{')===-1)v.field='{'+v.field+'}';if(v.field_and!==''&&v.field_and.indexOf('{')===-1)v.field_and='{'+v.field_and+'}';replace_names=return_replace_names(v.field,new_count,replace_names);replace_names=return_replace_names(v.value,new_count,replace_names);replace_names=return_replace_names(v.field_and,new_count,replace_names);replace_names=return_replace_names(v.value_and,new_count,replace_names);if(condition.classList.contains('super-variable-conditions')){replace_names=return_replace_names(v.new_value,new_count,replace_names);}}
for(iii=0;iii<conditions.length;++iii){Object.keys(conditions[iii]).forEach(function(index){superMath=conditions[iii][index];if(superMath!==''){array=[];iiii=0;while((match=regex.exec(superMath))!==null){array[iiii]=match[1];iiii++;}
for(iiii=0;iiii<array.length;iiii++){values=array[iiii];names=values.toString().split(';');name=names[0];suffix='';if(typeof names[1]==='undefined'){value_n=0;}else{value_n=names[1];suffix=';'+value_n;}
new_field=name+'_'+new_count;if(SUPER.field_exists(form,new_field)!==0){superMath=superMath.replace('{'+name+suffix+'}','{'+new_field+suffix+'}');}}}
conditions[iii][index]=superMath;});}
data_fields=condition.dataset.fields;Object.keys(replace_names).forEach(function(index){v=replace_names[index];if(SUPER.field_exists(form,v)!==0){data_fields=data_fields.split('{'+index+';').join('{'+v+';');data_fields=data_fields.split('{'+index+'}').join('{'+v+'}');}else{found_field=SUPER.field(form,index);if(found_field)added_fields[index]=found_field;}});condition.dataset.fields=data_fields;condition.value=JSON.stringify(conditions);}}}}
SUPER.after_duplicating_column_hook(form,unique_field_names,clone);var all_data_fields=clone.querySelectorAll('[data-fields]');for(i=0;i<all_data_fields.length;++i){field=all_data_fields[i];data_fields=field.dataset.fields;data_fields=data_fields.split('}{');for(ii=0;ii<data_fields.length;++ii){if(data_fields[ii]){v=data_fields[ii];v=v.replace('{','').replace('}','');v=v.split(';')[0];found_field=SUPER.field(form,v);if(found_field)added_fields[v]=found_field;}}}
Object.keys(added_fields).forEach(function(index){SUPER.after_field_change_blur_hook({el:added_fields[index],form:form});});SUPER.init_common_fields();});$doc.on('click','.super-duplicate-column-fields .super-delete-duplicate',function(){var i,nodes,found,form=this.closest('.super-form'),removedFields={},dataFields,parent=this.closest('.super-duplicate-column-fields'),foundElements=[];nodes=parent.querySelectorAll('.super-shortcode-field');for(i=0;i<nodes.length;++i){removedFields[nodes[i].name]=nodes[i];}
Object.keys(removedFields).forEach(function(index){nodes=form.querySelectorAll('.super-google-map[data-fields*="{'+index+'}"], .super-html-content[data-fields*="{'+index+'}"], .super-accordion-title[data-fields*="{'+index+'}"], .super-accordion-desc[data-fields*="{'+index+'}"]');for(i=0;i<nodes.length;i++){if(!nodes[i].closest('.super-duplicate-column-fields')){found=false;for(var x=0;x<foundElements.length;x++){if(foundElements[i]===nodes[i]){found=true;break;}}
if(!found){foundElements.push(nodes[i]);}}}});for(i=0;i<foundElements.length;++i){dataFields=foundElements[i].dataset.fields;$.each(removedFields,function(index){dataFields=dataFields.replace('{'+index+'}','');});foundElements[i].dataset.fields=dataFields;}
parent.style.display='none';SUPER.after_duplicating_column_hook(form,removedFields);Object.keys(removedFields).forEach(function(index){SUPER.after_field_change_blur_hook({el:removedFields[index],form:form});});parent.remove();SUPER.init_replace_html_tags({el:undefined,form:form,foundElements:foundElements});SUPER.google_maps_api.initMaps({form:form});});$doc.on('click','.super-msg .super-close',function(){$(this).parents('.super-msg:eq(0)').fadeOut(500);});$doc.on('click','.super-fileupload-button',function(){SUPER.focusForm(this);SUPER.focusField(this);$(this).parents('.super-field-wrapper:eq(0)').find('.super-fileupload').trigger('click');});$doc.on('click','.super-fileupload-delete',function(){var form=SUPER.get_frontend_or_backend_form({el:this});var formId=0;if(form.querySelector('input[name="hidden_form_id"]')){formId=form.querySelector('input[name="hidden_form_id"]').value;}
var $this=$(this);var $fieldWrapper=$this.parents('.super-field-wrapper:eq(0)');var $fieldName=$fieldWrapper.find('.super-active-files').attr('name');var $index=$this.parents('div:eq(0)').index();if(SUPER.files){if(SUPER.files[formId]){if(SUPER.files[formId][$fieldName]){SUPER.files[formId][$fieldName].splice($index,1);}}}
var $parent=$this.parents('.super-fileupload-files:eq(0)');var $wrapper=$parent.parents('.super-field-wrapper:eq(0)');var total=$wrapper.children('.super-fileupload').data('total-file-sizes')-$this.parents('div:eq(0)').data('file-size');$wrapper.children('.super-fileupload').data('total-file-sizes',total);$wrapper.children('input[type="hidden"]').val('');$this.parents('div:eq(0)').remove();var field=$fieldWrapper.find('.super-active-files')[0];SUPER.after_field_change_blur_hook({el:field,form:form});});var autosuggestTimeout=null;$doc.on('keyup','.super-auto-suggest .super-shortcode-field',function(){var i,el=this,parent=el.closest('.super-field'),itemsToShow=[],itemsToHide=[],value,text='',searchValue,regex,stringBold,wrapper=el.closest('.super-field-wrapper'),nodes=wrapper.querySelectorAll('.super-dropdown-list .super-item');if(autosuggestTimeout!==null)clearTimeout(autosuggestTimeout);autosuggestTimeout=setTimeout(function(){value=el.value.toString();if(value===''){parent.classList.remove('super-string-found');return false;}
for(i=0;i<nodes.length;i++){searchValue=nodes[i].dataset.searchValue.toString();text=searchValue.split(';')[0];if(searchValue.toLowerCase().indexOf(value.toLowerCase())!==-1){itemsToShow.push(nodes[i]);regex=RegExp([value].join('|'),'gi');stringBold=text.replace(regex,'<span>$&</span>');stringBold=stringBold.replace(/ /g,'\u00a0');nodes[i].innerHTML=stringBold;}else{itemsToHide.push(nodes[i]);}}
[].forEach.call(itemsToShow,function(el){el.classList.add('super-match');});[].forEach.call(itemsToHide,function(el){el.classList.remove('super-match');});if(itemsToShow.length>0){parent.classList.add('super-string-found');parent.classList.add('super-focus');}else{parent.classList.remove('super-string-found');}},250);});$doc.on('click','.super-dropdown-list:not(.super-autosuggest-tags-list)',function(e){var i,nodes,field=e.target.closest('.super-field');if(field.classList.contains('super-auto-suggest'))return false;SUPER.focusForm(field);if(!field.classList.contains('super-open')){nodes=document.querySelectorAll('.super-focus');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-focus');nodes[i].classList.remove('super-open');}
field.classList.add('super-open');SUPER.focusField(field);var searchField=e.target.closest('.super-field-wrapper').querySelector('input[name="super-dropdown-search"]');if(searchField)searchField.focus();}else{if(e.target.classList.contains('super-placeholder')){field.classList.remove('super-open');}}});document.addEventListener('click',function(e){if(e.target.closest('.super-multipart-step'))return true;var i,nodes;if(!e.target.closest('.super-form')){if(e.target.closest('.super-timepicker-dialog')){return true;}
if(e.target.closest('.super-dropdown-search')){return true;}
nodes=document.querySelectorAll('.super-form-focussed');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-form-focussed');nodes[i].tabIndex=0;SUPER.lastTabKey=undefined;}
nodes=document.querySelectorAll('.super-focus');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-focus');nodes[i].classList.remove('super-open');}
nodes=document.querySelectorAll('.super-open');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-open');}
if(e.target.closest('.super-setting')){if(e.target.classList.contains('super-dropdown-placeholder')){e.target.parentNode.classList.add('super-focus');e.target.parentNode.classList.add('super-open');}}}else{if(!e.target.closest('.super-dropdown')){nodes=document.querySelectorAll('.super-dropdown.super-focus');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-focus');nodes[i].classList.remove('super-open');}
nodes=document.querySelectorAll('.super-dropdown.super-open');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-open');}
if(e.target.classList.contains('super-shortcode')&&!e.target.classList.contains('super-field')){SUPER.resetFocussedFields();}}}});var timeout=null;$doc.on('keyup','input[name="super-dropdown-search"]',function(e){var i,nodes,el=this,stringValue,stringValue_l,words,regex,replacement,dropdownUI,stringBold,value,field,wrapper,found=false,firstFound=null,isMatch,keyCode=e.keyCode||e.which;if((keyCode==13)||(keyCode==40)||(keyCode==38)){return false;}
if(timeout!==null)clearTimeout(timeout);timeout=setTimeout(function(){el.value='';},1000);value=el.value.toString().toLowerCase();field=el.closest('.super-field');wrapper=el.closest('.super-field-wrapper');if(value===''){field.classList.remove('super-string-found');}else{nodes=wrapper.querySelectorAll('.super-dropdown-list .super-item:not(.super-placeholder)');for(i=0;i<nodes.length;i++){stringValue=nodes[i].dataset.searchValue.toString();stringValue_l=stringValue.toLowerCase();if(el.dataset.logic=='start'){isMatch=stringValue_l.startsWith(value);}else{isMatch=stringValue_l.indexOf(value)!==-1;}
if(isMatch===true){if(firstFound===null){firstFound=nodes[i];}
found=true;words=[value];regex=RegExp(words.join('|'),'gi');replacement='<span>$&</span>';stringBold=nodes[i].dataset.searchValue.replace(regex,replacement);stringBold=stringBold.replace(/ /g,'\u00a0');nodes[i].innerHTML=stringBold;nodes[i].classList.add('super-focus');}else{nodes[i].innerHTML=stringValue;nodes[i].classList.remove('super-focus');}}
if(found===true){nodes=field.querySelectorAll('.super-dropdown-list .super-item.super-focus');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-focus');}
if(nodes.length===1){field.classList.remove('super-string-found');}else{field.classList.add('super-string-found');}
if(firstFound)firstFound.classList.add('super-focus');field.classList.add('super-focus');dropdownUI=$(field).find('.super-dropdown-list');dropdownUI.scrollTop(dropdownUI.scrollTop()-dropdownUI.offset().top+$(firstFound).offset().top-50);}else{el.value='';field.classList.remove('super-string-found');}}});$doc.on('click','.super-wc-order-search .super-field-wrapper:not(.super-overlap) .super-dropdown-list .super-item, .super-auto-suggest .super-field-wrapper:not(.super-overlap) .super-dropdown-list .super-item',function(){var i,items,wrapper=this.closest('.super-field-wrapper'),parent=this.parentNode,field=this.closest('.super-field'),value=this.innerText,populate=wrapper.querySelector('.super-shortcode-field').dataset.wcosp;items=parent.querySelectorAll('.super-item.super-active');for(i=0;i<items.length;i++){items[i].classList.remove('super-active');}
this.classList.add('super-active');wrapper.querySelector('.super-shortcode-field').value=value;field.classList.remove('super-focus');field.classList.remove('super-open');field.classList.remove('super-string-found');wrapper.classList.add('super-overlap');field.classList.add('super-filled');SUPER.after_field_change_blur_hook({el:wrapper.querySelector('.super-shortcode-field')});if(populate=='true'){SUPER.populate_form_data_ajax({el:field,clear:false});}});$doc.on('click','.super-wc-order-search .super-field-wrapper.super-overlap li, .super-auto-suggest .super-field-wrapper.super-overlap li',function(){var i,items,el=this.closest('.super-field'),wrapper=this.closest('.super-field-wrapper'),field=wrapper.querySelector('.super-shortcode-field');field.value='';items=wrapper.querySelectorAll('.super-active');for(i=0;i<items.length;i++){items[i].classList.remove('super-active');}
wrapper.classList.remove('super-overlap');el.classList.remove('super-filled');field.focus();SUPER.after_field_change_blur_hook({el:field});});$doc.on('click','.super-dropdown .super-dropdown-list .super-item:not(.super-placeholder)',function(e){SUPER.focusForm(this);SUPER.focusField(this);var i,nodes,form,field=this.closest('.super-field'),input,wrapper,parent,placeholder,value,name,validation,max,total,names,values,counter;e.stopPropagation();form=SUPER.get_frontend_or_backend_form({el:this});wrapper=this.closest('.super-field-wrapper');input=wrapper.querySelector('.super-shortcode-field');parent=this.closest('.super-dropdown-list');placeholder=parent.querySelector('.super-placeholder');if(!parent.classList.contains('multiple')){value=this.dataset.value;name=this.innerHTML;placeholder.innerHTML=name;placeholder.dataset.value=value;placeholder.classList.add('super-active');nodes=parent.querySelectorAll('.super-item');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-active');}
this.classList.add('super-active');if(input)input.value=value;field.classList.remove('super-open');}else{max=(input.dataset.maxlength?parseInt(input.dataset.maxlength,10):1);total=parent.querySelectorAll('.super-item.super-active:not(.super-placeholder').length;if(this.classList.contains('super-active')){this.classList.remove('super-active');}else{if(total>=max)return false;this.classList.add('super-active');if(total+1>=max){field.classList.remove('super-open');}}
names='';values='';nodes=parent.querySelectorAll('.super-item.super-active:not(.super-placeholder');total=nodes.length;counter=1;for(i=0;i<nodes.length;i++){if((total==counter)||(total==1)){names+=nodes[i].innerHTML;values+=nodes[i].dataset.value;}else{names+=nodes[i].innerHTML+',';values+=nodes[i].dataset.value+',';}
counter++;}
placeholder.innerHTML=names;if(input)input.value=values;}
if(field.closest('.super-i18n-switcher')){var $this=$(this),$form=$this.closest('.super-form'),$form_id=$form.find('input[name="hidden_form_id"]').val(),$i18n=$this.attr('data-value');$this.parent().children('.super-item').removeClass('super-active');$this.addClass('super-active');$this.parents('.super-dropdown').children('.super-dropdown-placeholder').html($this.html());$form.find('form').html('');$form.removeClass('super-initialized');var $queryString=window.location.search;var $parameters=SUPER.getAllUrlParams($queryString);$.ajax({url:super_elements_i18n.ajaxurl,type:'post',data:{action:'super_language_switcher',form_id:$form_id,i18n:$i18n,parameters:$parameters},success:function(result){var data=JSON.parse(result);if(data.rtl==true){$form.addClass('super-rtl');}else{$form.removeClass('super-rtl');}
$form.find('form').html(data.html);},complete:function(){$form.removeClass('super-initialized');$form.removeClass('super-rendered');$form.find('.super-multipart-progress').remove();$form.find('.super-multipart-steps').remove();},error:function(xhr,ajaxOptions,thrownError){console.log(xhr,ajaxOptions,thrownError);alert(super_elements_i18n.failed_to_process_data);}});return true;}
if(input&&input.value===''){field.classList.remove('super-filled');}else{field.classList.add('super-filled');}
validation=input.dataset.validation;if(typeof validation!=='undefined'&&validation!==false){SUPER.handle_validations({el:input,form:form,validation:validation});}
SUPER.after_field_change_blur_hook({el:input});});$doc.on('click','.super-back-to-top',function(){$('html, body').animate({scrollTop:0},1000);});$doc.on('change','.super-shortcode-field',function(e){if(this.classList.contains('super-fileupload'))return false;var keyCode=e.keyCode||e.which;if(keyCode!=9){var form=SUPER.get_frontend_or_backend_form({el:this}),validation=this.dataset.validation,conditionalValidation=this.dataset.conditionalValidation;SUPER.handle_validations({el:this,form:form,validation:validation,conditionalValidation:conditionalValidation});SUPER.after_field_change_blur_hook({el:this});}});SUPER.simulateRadioItemClicked=function(e,el){var $form,$this,$parent,$field,$active,$validation;if(e.target.localName=='a'){if(e.target.target=='_blank'){window.open(e.target.href,'_blank');}else{window.location.href=e.target.href;}}else{$form=SUPER.get_frontend_or_backend_form({el:el});SUPER.focusNextTabField(e,el,$form,el);$this=el.querySelector('input[type="radio"]');if(el.classList.contains('super-active'))return true;$parent=el.closest('.super-field-wrapper');$field=$parent.querySelector('.super-shortcode-field');$active=$parent.querySelector('.super-item.super-active');if($active){$active.classList.remove('super-active');$active.classList.remove('super-focus');}
el.classList.add('super-active');el.classList.add('super-focus');el.closest('.super-field').classList.add('super-focus');$validation=$field.dataset.validation;$field.value=$this.value;if(typeof $validation!=='undefined'&&$validation!==false){SUPER.handle_validations({el:$field,form:$form,validation:$validation});}
SUPER.after_field_change_blur_hook({el:$field});}
return false;};$doc.on('click','.super-form .super-radio > .super-field-wrapper .super-item',function(e){return SUPER.simulateRadioItemClicked(e,this);});SUPER.simulateCheckboxItemClicked=function(e,el){var i,$form,$checked,$value,$checkbox,$parent,$field,$counter,$maxlength,$validation;if(e.target.localName=='a'){if(e.target.target=='_blank'){window.open(e.target.href,'_blank');}else{window.location.href=e.target.href;}}else{$form=SUPER.get_frontend_or_backend_form({el:el});SUPER.focusNextTabField(e,el,$form,el);$checkbox=el.querySelector('input[type="checkbox"]');$parent=$checkbox.closest('.super-field-wrapper');$field=$parent.querySelector('input[type="hidden"]');$counter=0;$maxlength=$parent.querySelector('.super-shortcode-field').dataset.maxlength;$checked=$parent.querySelectorAll('label.super-active');if(el.classList.contains('super-active')){el.classList.remove('super-active');}else{if($checked.length>=parseInt($maxlength,10)){if(parseInt($maxlength,10)===1){for(i=0;i<$checked.length;++i){$checked[i].classList.remove('super-active');$checked[i].querySelector('input').checked=false;}}else{return false;}}
el.classList.add('super-active');}
$checked=$parent.querySelectorAll('label.super-active');$value='';for(i=0;i<$checked.length;++i){if($counter===0)$value=$checked[i].querySelector('input').value;if($counter!==0)$value=$value+','+$checked[i].querySelector('input').value;$counter++;}
$field.value=$value;$validation=$field.dataset.validation;if(typeof $validation!=='undefined'&&$validation!==false){SUPER.handle_validations({el:$field,form:$form,validation:$validation});}
SUPER.after_field_change_blur_hook({el:$field});}
return false;};$doc.on('click','.super-form .super-checkbox > .super-field-wrapper .super-item',function(e){return SUPER.simulateCheckboxItemClicked(e,this);});$doc.on('change','.super-form select',function(){var $form=SUPER.get_frontend_or_backend_form({el:this}),$min=this.dataset.minlength,$max=this.dataset.maxlength,$validation;if(($min>0)&&(this.value===null)){SUPER.handle_errors(this);}else if(this.value.length>$max){SUPER.handle_errors(this);}else if(this.value.length<$min){SUPER.handle_errors(this);}else{this.closest('.super-field').classList.remove('super-error-active');}
$validation=this.dataset.validation;if(typeof $validation!=='undefined'&&$validation!==false){SUPER.handle_validations({el:this,form:$form,validation:$validation});}
SUPER.after_field_change_blur_hook({el:this});});$doc.on('mouseleave','.super-button .super-button-wrap',function(){this.parentNode.classList.remove('super-focus');SUPER.init_button_colors(this);});$doc.on('mouseover','.super-button .super-button-wrap',function(){SUPER.init_button_hover_colors(this.parentNode);});$doc.on('click','.super-multipart-step',function(e){var i,nodes,el=this,form=el.closest('.super-form'),form_id=form.querySelector('input[name="hidden_form_id"]').value,currentActive=form.querySelector('.super-multipart.super-active'),currentActiveTab=form.querySelector('.super-multipart-step.super-active'),activeChildren=Array.prototype.slice.call(currentActiveTab.parentNode.children),activeIndex=activeChildren.indexOf(currentActiveTab),clickedChildren=Array.prototype.slice.call(el.parentNode.children),index=clickedChildren.indexOf(el),total=form.querySelectorAll('.super-multipart').length,validate,result,progress,multipart,skip;if(activeIndex<index){validate=currentActive.dataset.validate;if(validate=='true'){result=SUPER.validate_form({el:el,form:currentActive,submitButton:el,validateMultipart:true,event:e});if(result!==true)return false;}}
window.location.hash='step-'+form_id+'-'+(parseInt(index,10)+1);progress=100/total;progress=progress*(index+1);multipart=form.querySelectorAll('.super-multipart')[index];if(form.querySelector('.super-multipart-progress-bar')){form.querySelector('.super-multipart-progress-bar').style.width=progress+'%';}
nodes=form.querySelectorAll('.super-multipart-step');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-active');}
nodes=form.querySelectorAll('.super-multipart');for(i=0;i<nodes.length;i++){nodes[i].classList.remove('super-active');}
multipart.classList.add('super-active');el.classList.add('super-active');skip=SUPER.skipMultipart(el,form,index,activeIndex);if(skip===true)return false;SUPER.focusFirstTabIndexField(e,form,multipart);SUPER.init_replace_html_tags({form:form});SUPER.init_super_responsive_form_fields({form:form});});$doc.on('click','.super-prev-multipart, .super-next-multipart',function(e){if(this.classList.contains('super-prev-multipart')){SUPER.switchMultipart(e,this,'prev');}else{SUPER.switchMultipart(e,this,'next');}});var nodes=document.querySelectorAll('.super-adaptive-placeholder');for(var i=0;i<nodes.length;i++){var input=nodes[i].parentNode.querySelector('.super-shortcode-field');if(!input)continue;input.onclick=input.onfocus=function(){}
input.onblur=function(){}
input.addEventListener('keyup',function(){var placeholder=this.parentNode.querySelector('.super-adaptive-placeholder').dataset.placeholder;var placeholderFilled=this.parentNode.querySelector('.super-adaptive-placeholder').dataset.placeholderfilled;var span=this.parentNode.querySelector('.super-adaptive-placeholder').children[0];var filled=true,parent=this.closest('.super-field');if(parent.classList.contains('super-currency')){if($(this).maskMoney('unmasked')[0]===0){filled=false;}}
if(this.value.length===0)filled=false;if(filled){parent.classList.add('super-filled');span.innerHTML=placeholderFilled;}else{parent.classList.remove('super-filled');span.innerHTML=placeholder;}});input.oncut=input.onpaste=function(event){var placeholder=this.parentNode.querySelector('.super-adaptive-placeholder').dataset.placeholder;var placeholderFilled=this.parentNode.querySelector('.super-adaptive-placeholder').dataset.placeholderfilled;var span=this.parentNode.querySelector('.super-adaptive-placeholder').children[0];var filled=true,input=event.target,parent=event.target.closest('.super-field');if(parent.classList.contains('super-currency')){if($(input).maskMoney('unmasked')[0]===0){filled=false;}}
if(event.type=='cut'||event.type=='paste'){setTimeout(function(){if(input.value.length===0)filled=false;if(filled){parent.classList.add('super-filled');span.innerHTML=placeholderFilled;}else{parent.classList.remove('super-filled');span.innerHTML=placeholder;}},100);}}}});(function(){"use strict";var app={};app.q=function(s){return document.querySelector(s);};app.qa=function(s){return document.querySelectorAll(s);};app.qap=function(s,p){if(typeof p==='undefined')p=app.wrapper;if(typeof p==='string')p=app.wrapper.querySelector(p);return p.querySelectorAll(s);};app.remove=function(e){if(typeof e==='undefined'||!e)return true;if(e.length){for(var i=0;i<e.length;i++){e[i].remove();}}else{e.remove();}
return true;};app.removeClass=function(elements,class_name){if(elements.length===0)return true;if(elements.length){for(var key=0;key<elements.length;key++){elements[key].classList.remove(class_name);}}else{elements.classList.remove(class_name);}};app.addClass=function(elements,class_name){if(elements.length===0)return true;if(elements.length){for(var key=0;key<elements.length;key++){elements[key].classList.add(class_name);}}else{elements.classList.add(class_name);}};app.index=function(node,class_name){var index=0;while(node.previousElementSibling){node=node.previousElementSibling;if(class_name){if(node.classList.contains(class_name)){index++;}}else{index++;}}
return index;};app.inPath=function(e,class_name){if(!e.path)return false;var found=false;Object.keys(e.path).forEach(function(key){if(e.path[key].classList){if(e.path[key].classList.contains(class_name)){found=true;}}});return found;};app.autosuggestTagsTimeout=null;app.keywords={updateValue:function(field,tagsContainer,keywordField,filterField,wrapper){var i,values=[],nodes=wrapper.querySelectorAll('.super-autosuggest-tags > div > span');for(i=0;i<nodes.length;i++){values.push(nodes[i].dataset.value);}
keywordField.value=values.join(',');filterField.value='';filterField.focus();if(!app.qap('span',tagsContainer).length){field.classList.remove('super-filled');}else{field.classList.add('super-filled');}
tagsContainer.scrollTop=tagsContainer.scrollHeight;SUPER.after_field_change_blur_hook({el:keywordField});},add:function(e,target){var i,html='',field=target.closest('.super-field'),value=target.dataset.value,searchValue=target.dataset.searchValue,wrapper=target.closest('.super-field-wrapper'),keywordField=wrapper.querySelector('.super-shortcode-field'),tagsContainer=wrapper.querySelector('.super-autosuggest-tags > div'),tags=tagsContainer.querySelectorAll('.super-keyword-tag'),filterField=wrapper.querySelector('.super-keyword-filter'),maxlength=parseInt(keywordField.dataset.maxlength,10),existingTags=[];if(maxlength!==0&&tags.length>=maxlength){field.classList.add('super-filled');field.classList.remove('super-string-found');field.classList.add('super-focus');app.keywords.updateValue(field,tagsContainer,keywordField,filterField,wrapper);return false;}
for(i=0;i<tags.length;i++){existingTags.push(tags[i].dataset.value);}
if(existingTags.indexOf(value)===-1){html='<span class="super-noselect super-keyword-tag" sfevents=\'{"click":"keywords.remove"}\' data-value="'+value+'" title="remove this tag">'+searchValue+'</span>';tagsContainer.innerHTML=tagsContainer.innerHTML+html;target.classList.add('super-active');}
if(!app.qap('span',tagsContainer).length){field.classList.remove('super-filled');}else{field.classList.add('super-filled');}
field.classList.remove('super-string-found');field.classList.add('super-focus');app.keywords.updateValue(field,tagsContainer,keywordField,filterField,wrapper);},remove:function(e,target){var wrapper=target.closest('.super-field-wrapper'),keywordField=wrapper.querySelector('.super-shortcode-field'),filterField=wrapper.querySelector('.super-keyword-filter'),field=target.closest('.super-field'),tagsContainer=wrapper.querySelector('.super-autosuggest-tags > div');target.remove();filterField.focus();app.keywords.updateValue(field,tagsContainer,keywordField,filterField,wrapper);},filter:function(e,target){var i,parent=target.closest('.super-field'),counter=0,html='',tag,tags,duplicates={},method=target.dataset.method,splitMethod=target.dataset.splitMethod,itemsToShow=[],itemsToHide=[],value,text='',searchValue,regex,stringBold,wrapper=target.closest('.super-field-wrapper'),field=target.closest('.super-field'),tagsContainer=wrapper.querySelector('.super-autosuggest-tags > div'),keywordField=wrapper.querySelector('.super-shortcode-field'),max=(keywordField.dataset.maxlength?parseInt(keywordField.dataset.maxlength,10):0),nodes=wrapper.querySelectorAll('.super-dropdown-list .super-item');if(method=='free'){if(splitMethod=='both')tags=target.value.split(/[ ,]+/);if(splitMethod=='comma')tags=target.value.split(/[,]+/);if(splitMethod=='space')tags=target.value.split(/[ ]+/);if(tags.length>1){tag=tags[0];if(keywordField.value.split(',').indexOf(tag)===-1){if(typeof duplicates[tag]==='undefined'){counter++;if(max===0||counter<=max){if(splitMethod!='comma')tag=tag.replace(/ /g,'');if((tag!=='')&&(tag.length>1)){html+='<span class="super-noselect super-keyword-tag" sfevents=\'{"click":"keywords.remove"}\' data-value="'+tag+'" title="remove this tag">'+tag+'</span>';}}}
duplicates[tag]=tag;tagsContainer.innerHTML=tagsContainer.innerHTML+html;}
app.keywords.updateValue(field,tagsContainer,keywordField,target,wrapper);}}else{if(app.autosuggestTagsTimeout!==null)clearTimeout(app.autosuggestTagsTimeout);app.autosuggestTagsTimeout=setTimeout(function(){value=target.value.toString();if(value===''){parent.classList.remove('super-string-found');parent.classList.remove('super-no-match');return false;}
for(i=0;i<nodes.length;i++){searchValue=nodes[i].dataset.searchValue.toString();text=searchValue.split(';')[0];if(searchValue.toLowerCase().indexOf(value.toLowerCase())!==-1){itemsToShow.push(nodes[i]);regex=RegExp([value].join('|'),'gi');stringBold='<span class="super-wp-tag">'+text.replace(regex,'<span>$&</span>')+'</span>';stringBold=stringBold.replace(/\r?\n|\r/g,"");nodes[i].innerHTML=stringBold;}else{itemsToHide.push(nodes[i]);}}
[].forEach.call(itemsToShow,function(el){el.style.display='inline-block';el.classList.add('super-active');});[].forEach.call(itemsToHide,function(el){el.style.display='none';el.classList.remove('super-active');});if(itemsToShow.length>0){parent.classList.add('super-string-found');parent.classList.add('super-focus');parent.classList.remove('super-no-match');}else{parent.classList.remove('super-string-found');parent.classList.add('super-no-match');}},250);}}}
app.triggerEvent=function(e,target,eventType){var actions,_event,_function,_currentFunc,sfevents;try{sfevents=JSON.parse(target.attributes.sfevents.value);}catch(error){console.log(error);alert(error);}
Object.keys(sfevents).forEach(function(key){_event=key.split(',');if(_event.length>1){Object.keys(_event).forEach(function(e_key){sfevents[_event[e_key]]=sfevents[key];});delete sfevents[key];}});actions=sfevents[eventType];if(actions){if(typeof actions==='string'){_currentFunc=app;if(actions.split('.').length>1){_function=actions.split('.');for(var i=0;i<_function.length;i++){if(_function[i]=='app')continue;if(_currentFunc[_function[i]]){_currentFunc=_currentFunc[_function[i]];}else{console.log('Function '+actions+'() is undefined!');break;}}
_currentFunc(e,target,eventType,actions);}else{if(_currentFunc[actions]){_currentFunc=_currentFunc[actions];}else{console.log('Function '+actions+'() is undefined!');}
_currentFunc(e,target,eventType,actions);}}else{Object.keys(actions).forEach(function(key){_currentFunc=app;_function=key.split('.');for(var i=0;i<_function.length;i++){if(_function[i]=='app')continue;if(_currentFunc[_function[i]]){_currentFunc=_currentFunc[_function[i]];}else{console.log('Function '+key+'() is undefined!');break;}}
_currentFunc(e,target,eventType,actions[key]);});}}};app.delegate=function(element,event,elements,callback){element.addEventListener(event,function(event){var target=event.target;while(target&&target!==this){if(target.matches(elements)){callback(event,target);return false;}
target=target.parentNode;}});};app.events={click:['body','.super-keyword-filter','.super-keyword-tags .super-item','.super-keyword-tag'],mousedown:['.super-keyword-filter'],onblur:['.super-keyword-filter'],keyup:['.super-keyword-filter'],keydown:['.super-keyword-filter']};Object.keys(app.events).forEach(function(eventType){var elements=app.events[eventType].join(", ");app.delegate(document,eventType,elements,function(e,target){if(typeof target.attributes.sfevents!=='undefined')app.triggerEvent(e,target,eventType);});});})(jQuery);})(jQuery);
"use strict";(function(){jQuery(document).ready(function($){$(document).on('click','.super-form-button > .super-button-wrap',function(e){var args={el:undefined,form:this.closest('.super-form'),submitButton:this,validateMultipart:undefined,event:e,doingSubmit:true};SUPER.validate_form(args);return false;});SUPER.init_tooltips();SUPER.init_distance_calculators();SUPER.init_super_form_frontend();$(document).ajaxComplete(function(event,xhr,settings){SUPER.init_super_form_frontend({event:event,xhr:xhr,settings:settings});});if(window.elementorFrontend){if(elementorFrontend.hooks&&elementorFrontend.hooks.addAction){elementorFrontend.hooks.addAction('frontend/element_ready/widget',function(){SUPER.init_super_form_frontend();});}}});})(jQuery);
(function($){"use strict";var __slice=[].slice,__indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++){if(i in this&&this[i]===item)return i;}
return-1;};var SimpleSlider;SimpleSlider=(function(){function SimpleSlider(input,options){var ratio,_this=this;this.input=input;this.defaultOptions={animate:true,snapMid:false,classPrefix:null,classSuffix:null,theme:null,highlight:false};this.settings=$.extend({},this.defaultOptions,options);if(this.settings.theme){this.settings.classSuffix="-"+this.settings.theme;}
this.input.hide();this.slider=$("<div>").addClass("slider"+(this.settings.classSuffix||"")).css({position:"relative",userSelect:"none",boxSizing:"border-box"}).insertBefore(this.input);if(this.input.attr("id")){this.slider.attr("id",this.input.attr("id")+"-slider");}
this.track=this.createDivElement("track").css({width:"100%"});if(this.settings.highlight){this.highlightTrack=this.createDivElement("highlight-track").css({width:"0"});}
this.dragger=this.createDivElement("dragger");this.slider.css({minHeight:this.dragger.outerHeight(),marginLeft:this.dragger.outerWidth()/2,marginRight:this.dragger.outerWidth()/2});this.track.css({marginTop:this.track.outerHeight()/-2});if(this.settings.highlight){this.highlightTrack.css({marginTop:this.track.outerHeight()/-2});}
this.dragger.css({marginTop:this.dragger.outerHeight()/-2,marginLeft:this.dragger.outerWidth()/-2});this.track.mousedown(function(e){return _this.trackEvent(e);});if(this.settings.highlight){this.highlightTrack.mousedown(function(e){return _this.trackEvent(e);});}
this.dragger.mousedown(function(e){if(e.which!==1){return;}
_this.dragging=true;_this.dragger.addClass("dragging");_this.domDrag(e.pageX,e.pageY);return false;});$("body").mousemove(function(e){if(_this.dragging){_this.domDrag(e.pageX,e.pageY);return $("body").css({cursor:"pointer"});}}).mouseup(function(){if(_this.dragging){_this.dragging=false;_this.dragger.removeClass("dragging");return $("body").css({cursor:"auto"});}});this.pagePos=0;if(this.input.val()===""){this.value=this.getRange().min;this.input.val(this.value);}else{this.value=this.nearestValidValue(this.input.val());}
this.setSliderPositionFromValue(this.value);ratio=this.valueToRatio(this.value);this.input.trigger("slider:ready",{value:this.value,ratio:ratio,position:ratio*this.slider.outerWidth(),el:this.slider});this.dragger.bind('touchstart',function(e){_this.dragging=true;_this.dragger.addClass("dragging");_this.domDrag(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);return false;});$("body").bind('touchmove',function(e){if(_this.dragging){_this.domDrag(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);return false;}}).bind('touchend',function(){if(_this.dragging){_this.dragging=false;_this.dragger.removeClass("dragging");return $("body").css({cursor:"auto"});}});}
SimpleSlider.prototype.createDivElement=function(classname){var item;item=$("<div>").addClass(classname).css({position:"absolute",top:"50%",userSelect:"none",cursor:"pointer"}).appendTo(this.slider);return item;};SimpleSlider.prototype.setRatio=function(ratio){var value;ratio=Math.min(1,ratio);ratio=Math.max(0,ratio);value=this.ratioToValue(ratio);this.setSliderPositionFromValue(value);return this.valueChanged(value,ratio,"setRatio");};SimpleSlider.prototype.setValue=function(value){var ratio;value=this.nearestValidValue(value);ratio=this.valueToRatio(value);this.setSliderPositionFromValue(value);return this.valueChanged(value,ratio,"setValue");};SimpleSlider.prototype.trackEvent=function(e){if(e.which!==1){return;}
this.domDrag(e.pageX,e.pageY,true);this.dragging=true;return false;};SimpleSlider.prototype.domDrag=function(pageX,pageY,animate){var pagePos,ratio,value;if(animate==null){animate=false;}
pagePos=pageX-this.slider.offset().left;pagePos=Math.min(this.slider.outerWidth(),pagePos);pagePos=Math.max(0,pagePos);if(this.pagePos!==pagePos){this.pagePos=pagePos;ratio=pagePos/this.slider.outerWidth();value=this.ratioToValue(ratio);this.valueChanged(value,ratio,"domDrag");if(this.settings.snap){return this.setSliderPositionFromValue(value,animate);}else{return this.setSliderPosition(pagePos,animate);}}};SimpleSlider.prototype.setSliderPosition=function(position,animate){if(animate==null){animate=false;}
if(animate&&this.settings.animate){this.dragger.animate({left:position},200);if(this.settings.highlight){return this.highlightTrack.animate({width:position},200);}}else{this.dragger.css({left:position});if(this.settings.highlight){return this.highlightTrack.css({width:position});}}};SimpleSlider.prototype.setSliderPositionFromValue=function(value,animate){var ratio;if(animate==null){animate=false;}
ratio=this.valueToRatio(value);return this.setSliderPosition(ratio*this.slider.outerWidth(),animate);};SimpleSlider.prototype.getRange=function(){if(this.settings.allowedValues){return{min:Math.min.apply(Math,this.settings.allowedValues),max:Math.max.apply(Math,this.settings.allowedValues)};}else if(this.settings.range){return{min:parseFloat(this.settings.range[0]),max:parseFloat(this.settings.range[1])};}else{return{min:0,max:1};}};SimpleSlider.prototype.nearestValidValue=function(rawValue){var closest,maxSteps,range,steps;range=this.getRange();rawValue=Math.min(range.max,rawValue);rawValue=Math.max(range.min,rawValue);if(this.settings.allowedValues){closest=null;$.each(this.settings.allowedValues,function(){if(closest===null||Math.abs(this-rawValue)<Math.abs(closest-rawValue)){closest=this;return closest;}});return closest;}else if(this.settings.step){maxSteps=(range.max-range.min)/this.settings.step;steps=Math.floor((rawValue-range.min)/this.settings.step);if((rawValue-range.min)%this.settings.step>this.settings.step/2&&steps<maxSteps){steps+=1;}
return steps*this.settings.step+range.min;}else{return rawValue;}};SimpleSlider.prototype.valueToRatio=function(value){var allowedVal,closest,closestIdx,idx,range,_i,_len,_ref;if(this.settings.equalSteps){_ref=this.settings.allowedValues;for(idx=_i=0,_len=_ref.length;_i<_len;idx=++_i){allowedVal=_ref[idx];if(!(typeof closest!=="undefined"&&closest!==null)||Math.abs(allowedVal-value)<Math.abs(closest-value)){closest=allowedVal;closestIdx=idx;}}
if(this.settings.snapMid){return(closestIdx+0.5)/this.settings.allowedValues.length;}else{return closestIdx/(this.settings.allowedValues.length-1);}}else{range=this.getRange();return(value-range.min)/(range.max-range.min);}};SimpleSlider.prototype.ratioToValue=function(ratio){var idx,range,rawValue,step,steps;if(this.settings.equalSteps){steps=this.settings.allowedValues.length;step=Math.round(ratio*steps-0.5);idx=Math.min(step,this.settings.allowedValues.length-1);return this.settings.allowedValues[idx];}else{range=this.getRange();rawValue=ratio*(range.max-range.min)+range.min;return this.nearestValidValue(rawValue);}};SimpleSlider.prototype.valueChanged=function(value,ratio,trigger){var eventData;if(value.toString()===this.value.toString()){return;}
value=parseFloat(value.toFixed(2));this.value=value;eventData={value:value,ratio:ratio,position:ratio*this.slider.outerWidth(),trigger:trigger,el:this.slider};return this.input.val(value).trigger($.Event("change",eventData)).trigger("slider:changed",eventData);};return SimpleSlider;})();$.extend($.fn,{simpleSlider:function(){var publicMethods=["setRatio","setValue"],settingsOrMethod=arguments[0],params=2<=arguments.length?__slice.call(arguments,1):[];return $(this).each(function(){var obj,settings;if(settingsOrMethod&&__indexOf.call(publicMethods,settingsOrMethod)>=0){obj=$(this).data("slider-object");return obj[settingsOrMethod].apply(obj,params);}else{settings=settingsOrMethod;return $(this).data("slider-object",new SimpleSlider($(this),settings));}});}});return $(function(){return $("[data-slider]").each(function(){var $el,allowedValues,settings,x;$el=$(this);settings={};allowedValues=$el.data("slider-values");if(allowedValues){settings.allowedValues=(function(){var _i,_len,_ref,_results;_ref=allowedValues.split(",");_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){x=_ref[_i];_results.push(parseFloat(x));}
return _results;})();}
if($el.data("slider-range")){settings.range=$el.data("slider-range").split(",");}
if($el.data("slider-step")){settings.step=$el.data("slider-step");}
settings.snap=$el.data("slider-snap");settings.equalSteps=$el.data("slider-equal-steps");if($el.data("slider-theme")){settings.theme=$el.data("slider-theme");}
if($el.attr("data-slider-highlight")){settings.highlight=$el.data("slider-highlight");}
if($el.data("slider-animate")!=null){settings.animate=$el.data("slider-animate");}
return $el.simpleSlider(settings);});});})(this.jQuery||this.Zepto,this);
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.math=t():e.math=t()}(this,function(){return n={},i.m=r=[function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return i}),r.d(t,"c",function(){return o});r(2);var a=r(4);function n(r,n,i,e){function t(e){var t=Object(a.j)(e,n.map(o));return function(e,t,r){if(!t.filter(function(e){return!function(e){return e&&"?"===e[0]}(e)}).every(function(e){return void 0!==r[e]})){var n=t.filter(function(e){return void 0===r[e]});throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(n.map(function(e){return'"'.concat(e,'"')}).join(", "),"."))}}(r,n,e),i(t)}return t.isFactory=!0,t.fn=r,t.dependencies=n.slice().sort(),e&&(t.meta=e),t}function i(e){return"function"==typeof e&&"string"==typeof e.fn&&Array.isArray(e.dependencies)}function o(e){return e&&"?"===e[0]?e.slice(1):e}},function(e,t,r){"use strict";function n(e){return(n="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 i(e){return"number"==typeof e}function a(e){return e&&!0===e.constructor.prototype.isBigNumber||!1}function o(e){return e&&"object"===n(e)&&!0===Object.getPrototypeOf(e).isComplex||!1}function s(e){return e&&"object"===n(e)&&!0===Object.getPrototypeOf(e).isFraction||!1}function u(e){return e&&!0===e.constructor.prototype.isUnit||!1}function c(e){return"string"==typeof e}r.d(t,"y",function(){return i}),r.d(t,"e",function(){return a}),r.d(t,"j",function(){return o}),r.d(t,"o",function(){return s}),r.d(t,"L",function(){return u}),r.d(t,"I",function(){return c}),r.d(t,"b",function(){return f}),r.d(t,"v",function(){return l}),r.d(t,"i",function(){return p}),r.d(t,"n",function(){return m}),r.d(t,"H",function(){return h}),r.d(t,"D",function(){return d}),r.d(t,"t",function(){return y}),r.d(t,"g",function(){return g}),r.d(t,"G",function(){return v}),r.d(t,"s",function(){return b}),r.d(t,"p",function(){return x}),r.d(t,"m",function(){return w}),r.d(t,"F",function(){return N}),r.d(t,"z",function(){return O}),r.d(t,"x",function(){return M}),r.d(t,"K",function(){return E}),r.d(t,"a",function(){return S}),r.d(t,"c",function(){return j}),r.d(t,"d",function(){return A}),r.d(t,"f",function(){return C}),r.d(t,"k",function(){return T}),r.d(t,"l",function(){return _}),r.d(t,"q",function(){return I}),r.d(t,"r",function(){return q}),r.d(t,"u",function(){return B}),r.d(t,"w",function(){return k}),r.d(t,"A",function(){return z}),r.d(t,"B",function(){return D}),r.d(t,"C",function(){return R}),r.d(t,"E",function(){return P}),r.d(t,"J",function(){return F}),r.d(t,"h",function(){return U}),r.d(t,"M",function(){return L});var f=Array.isArray;function l(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function p(e){return Array.isArray(e)||l(e)}function m(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function h(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function d(e){return e&&!0===e.constructor.prototype.isRange||!1}function y(e){return e&&!0===e.constructor.prototype.isIndex||!1}function g(e){return"boolean"==typeof e}function v(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function b(e){return e&&!0===e.constructor.prototype.isHelp||!1}function x(e){return"function"==typeof e}function w(e){return e instanceof Date}function N(e){return e instanceof RegExp}function O(e){return!(!e||"object"!==n(e)||e.constructor!==Object||o(e)||s(e))}function M(e){return null===e}function E(e){return void 0===e}function S(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function j(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function A(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function C(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function T(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function _(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function I(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function q(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function B(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function k(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function z(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function D(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function R(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function P(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function F(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function U(e){return e&&!0===e.constructor.prototype.isChain||!1}function L(e){var t=n(e);return"object"===t?null===e?"null":Array.isArray(e)?"Array":e instanceof Date?"Date":e instanceof RegExp?"RegExp":a(e)?"BigNumber":o(e)?"Complex":s(e)?"Fraction":l(e)?"Matrix":u(e)?"Unit":y(e)?"Index":d(e)?"Range":v(e)?"ResultSet":k(e)?e.type:U(e)?"Chain":b(e)?"Help":"Object":"function"===t?"Function":t}},function(e,t,r){"use strict";r.d(t,"a",function(){return s}),r.d(t,"r",function(){return c}),r.d(t,"s",function(){return f}),r.d(t,"o",function(){return l}),r.d(t,"n",function(){return p}),r.d(t,"p",function(){return m}),r.d(t,"q",function(){return h}),r.d(t,"e",function(){return d}),r.d(t,"m",function(){return y}),r.d(t,"f",function(){return g}),r.d(t,"c",function(){return v}),r.d(t,"d",function(){return b}),r.d(t,"k",function(){return x}),r.d(t,"i",function(){return w}),r.d(t,"g",function(){return N}),r.d(t,"h",function(){return O}),r.d(t,"l",function(){return M}),r.d(t,"j",function(){return E}),r.d(t,"b",function(){return S});var n=r(3),i=r(1),a=r(5),u=r(6),o=r(10);function s(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function c(e,t){if(0===t.length){if(Array.isArray(e))throw new u.a(e.length,0)}else!function e(t,r,n){var i,a=t.length;if(a!==r[n])throw new u.a(a,r[n]);if(n<r.length-1){var o=n+1;for(i=0;i<a;i++){var s=t[i];if(!Array.isArray(s))throw new u.a(r.length-1,r.length,"<");e(t[i],r,o)}}else for(i=0;i<a;i++)if(Array.isArray(t[i]))throw new u.a(r.length+1,r.length,">")}(e,t,0)}function f(e,t){if(!Object(i.y)(e)||!Object(n.i)(e))throw new TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"==typeof t&&t<=e)throw new o.a(e,t)}function l(e,t,r){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Array expected");if(0===t.length)throw new Error("Resizing to scalar is not supported");return t.forEach(function(e){if(!Object(i.y)(e)||!Object(n.i)(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Object(a.d)(t)+")")}),function e(t,r,n,i){var a;var o;var s=t.length;var u=r[n];var c=Math.min(s,u);t.length=u;if(n<r.length-1){var f=n+1;for(a=0;a<c;a++)o=t[a],Array.isArray(o)||(o=[o],t[a]=o),e(o,r,f,i);for(a=c;a<u;a++)o=[],t[a]=o,e(o,r,f,i)}else{for(a=0;a<c;a++)for(;Array.isArray(t[a]);)t[a]=t[a][0];for(a=c;a<u;a++)t[a]=i}}(e,t,0,void 0!==r?r:0),e}function p(t,r){var e,n=d(t);function i(e){return e.reduce(function(e,t){return e*t})}if(!Array.isArray(t)||!Array.isArray(r))throw new TypeError("Array expected");if(0===r.length)throw new u.a(0,i(s(t)),"!=");for(var a=1,o=0;o<r.length;o++)a*=r[o];if(n.length!==a)throw new u.a(i(r),i(s(t)),"!=");try{e=function(e,t){for(var r,n=e,i=t.length-1;0<i;i--){var a=t[i];r=[];for(var o=n.length/a,s=0;s<o;s++)r.push(n.slice(s*a,(s+1)*a));n=r}return n}(n,r)}catch(e){if(e instanceof u.a)throw new u.a(i(r),i(s(t)),"!=");throw e}return e}function m(e,t){for(var r=t||s(e);Array.isArray(e)&&1===e.length;)e=e[0],r.shift();for(var n=r.length;1===r[n-1];)n--;return n<r.length&&(e=function e(t,r,n){var i,a;if(n<r){var o=n+1;for(i=0,a=t.length;i<a;i++)t[i]=e(t[i],r,o)}else for(;Array.isArray(t);)t=t[0];return t}(e,n,0),r.length=n),e}function h(e,t,r,n){var i=n||s(e);if(r)for(var a=0;a<r;a++)e=[e],i.unshift(1);for(e=function e(t,r,n){var i,a;if(Array.isArray(t)){var o=n+1;for(i=0,a=t.length;i<a;i++)t[i]=e(t[i],r,o)}else for(var s=n;s<r;s++)t=[t];return t}(e,t,0);i.length<t;)i.push(1);return e}function d(e){if(!Array.isArray(e))return e;var r=[];return e.forEach(function e(t){Array.isArray(t)?t.forEach(e):r.push(t)}),r}function y(e,t){return Array.prototype.map.call(e,t)}function g(e,t){Array.prototype.forEach.call(e,t)}function v(e,t){if(1!==s(e).length)throw new Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,t)}function b(e,t){if(1!==s(e).length)throw new Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,function(e){return t.test(e)})}function x(e,t){return Array.prototype.join.call(e,t)}function w(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(0===e.length)return e;var t=[],r=0;t[0]={value:e[0],identifier:0};for(var n=1;n<e.length;n++)e[n]===e[n-1]?r++:r=0,t.push({value:e[n],identifier:r});return t}function N(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(0===e.length)return e;for(var t=[],r=0;r<e.length;r++)t.push(e[r].value);return t}function O(e,t){for(var r,n=0,i=0;i<e.length;i++){var a=e[i],o=Array.isArray(a);if(0===i&&o&&(n=a.length),o&&a.length!==n)return;var s=o?O(a,t):t(a);if(void 0===r)r=s;else if(r!==s)return"mixed"}return r}function M(e){return e[e.length-1]}function E(e){return e.slice(0,e.length-1)}function S(e,t){return-1!==e.indexOf(t)}},function(e,t,r){"use strict";r.d(t,"i",function(){return n}),r.d(t,"n",function(){return i}),r.d(t,"l",function(){return o}),r.d(t,"j",function(){return s}),r.d(t,"k",function(){return u}),r.d(t,"d",function(){return c}),r.d(t,"g",function(){return f}),r.d(t,"h",function(){return l}),r.d(t,"q",function(){return h}),r.d(t,"f",function(){return b}),r.d(t,"m",function(){return w}),r.d(t,"a",function(){return N}),r.d(t,"b",function(){return O}),r.d(t,"c",function(){return M}),r.d(t,"e",function(){return E}),r.d(t,"o",function(){return S}),r.d(t,"p",function(){return j});var a=r(4),p=r(1);function n(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}var i=Math.sign||function(e){return 0<e?1:e<0?-1:0},o=Math.log2||function(e){return Math.log(e)/Math.LN2},s=Math.log10||function(e){return Math.log(e)/Math.LN10},u=Math.log1p||function(e){return Math.log(e+1)},c=Math.cbrt||function(e){if(0===e)return e;var t,r=e<0;return r&&(e=-e),t=isFinite(e)?(e/((t=Math.exp(Math.log(e)/3))*t)+2*t)/3:e,r?-t:t},f=Math.expm1||function(e){return 2e-4<=e||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function l(e,t){if("function"==typeof t)return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var r,n="auto";switch(t&&(t.notation&&(n=t.notation),Object(p.y)(t)?r=t:Object(p.y)(t.precision)&&(r=t.precision)),n){case"fixed":return h(e,r);case"exponential":return d(e,r);case"engineering":return function(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=g(m(e),t),n=r.exponent,i=r.coefficients,a=n%3==0?n:n<0?n-3-n%3:n-n%3;if(Object(p.y)(t))for(;t>i.length||n-a+1>i.length;)i.push(0);else for(var o=0<=n?n:Math.abs(a);i.length-1<o;)i.push(0);var s=Math.abs(n-a),u=1;for(;0<s;)u++,s--;var c=i.slice(u).join(""),f=Object(p.y)(t)&&c.length||c.match(/[1-9]/)?"."+c:"",l=i.slice(0,u).join("")+f+"e"+(0<=n?"+":"")+a.toString();return r.sign+l}(e,r);case"auto":if(!t||!t.exponential||void 0===t.exponential.lower&&void 0===t.exponential.upper)return y(e,r,t&&t).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});var i=Object(a.i)(t,function(e){return e});return(i.exponential=void 0)!==t.exponential.lower&&(i.lowerExp=Math.round(Math.log(t.exponential.lower)/Math.LN10)),void 0!==t.exponential.upper&&(i.upperExp=Math.round(Math.log(t.exponential.upper)/Math.LN10)),console.warn("Deprecation warning: Formatting options exponential.lower and exponential.upper (minimum and maximum value) are replaced with exponential.lowerExp and exponential.upperExp (minimum and maximum exponent) since version 4.0.0. Replace "+JSON.stringify(t)+" with "+JSON.stringify(i)),y(e,r,i);default:throw new Error('Unknown notation "'+n+'". Choose "auto", "exponential", or "fixed".')}}function m(e){var t=String(e).toLowerCase().match(/^0*?(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw new SyntaxError("Invalid number "+e);var r=t[1],n=t[2],i=parseFloat(t[4]||"0"),a=n.indexOf(".");i+=-1!==a?a-1:n.length-1;var o=n.replace(".","").replace(/^0*/,function(e){return i-=e.length,""}).replace(/0*$/,"").split("").map(function(e){return parseInt(e)});return 0===o.length&&(o.push(0),i++),{sign:r,coefficients:o,exponent:i}}function h(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=m(e),n="number"==typeof t?g(r,r.exponent+1+t):r,i=n.coefficients,a=n.exponent+1,o=a+(t||0);return i.length<o&&(i=i.concat(v(o-i.length))),a<0&&(i=v(1-a).concat(i),a=1),a<i.length&&i.splice(a,0,0===a?"0.":"."),n.sign+i.join("")}function d(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=m(e),n=t?g(r,t):r,i=n.coefficients,a=n.exponent;i.length<t&&(i=i.concat(v(t-i.length)));var o=i.shift();return n.sign+o+(0<i.length?"."+i.join(""):"")+"e"+(0<=a?"+":"")+a}function y(e,t,r){if(isNaN(e)||!isFinite(e))return String(e);var n=r&&void 0!==r.lowerExp?r.lowerExp:-3,i=r&&void 0!==r.upperExp?r.upperExp:5,a=m(e),o=t?g(a,t):a;if(o.exponent<n||o.exponent>=i)return d(e,t);var s=o.coefficients,u=o.exponent;s.length<t&&(s=s.concat(v(t-s.length))),s=s.concat(v(u-s.length+1+(s.length<t?t-s.length:0)));var c=0<u?u:0;return c<(s=v(-u).concat(s)).length-1&&s.splice(c+1,0,"."),o.sign+s.join("")}function g(e,t){for(var r={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},n=r.coefficients;t<=0;)n.unshift(0),r.exponent++,t++;if(n.length>t&&5<=n.splice(t,n.length-t)[0]){var i=t-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),n[--i]++}return r}function v(e){for(var t=[],r=0;r<e;r++)t.push(0);return t}function b(e){return e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}var x=Number.EPSILON||2220446049250313e-31;function w(e,t,r){if(null==r)return e===t;if(e===t)return!0;if(isNaN(e)||isNaN(t))return!1;if(isFinite(e)&&isFinite(t)){var n=Math.abs(e-t);return n<x||n<=Math.max(Math.abs(e),Math.abs(t))*r}return!1}var N=Math.acosh||function(e){return Math.log(Math.sqrt(e*e-1)+e)},O=Math.asinh||function(e){return Math.log(Math.sqrt(e*e+1)+e)},M=Math.atanh||function(e){return Math.log((1+e)/(1-e))/2},E=Math.cosh||function(e){return(Math.exp(e)+Math.exp(-e))/2},S=Math.sinh||function(e){return(Math.exp(e)-Math.exp(-e))/2},j=Math.tanh||function(e){var t=Math.exp(2*e);return(t-1)/(t+1)}},function(e,t,r){"use strict";r.d(t,"a",function(){return i}),r.d(t,"i",function(){return o}),r.d(t,"e",function(){return s}),r.d(t,"b",function(){return u}),r.d(t,"d",function(){return c}),r.d(t,"c",function(){return f}),r.d(t,"h",function(){return l}),r.d(t,"k",function(){return p}),r.d(t,"f",function(){return m}),r.d(t,"g",function(){return h}),r.d(t,"j",function(){return d}),r.d(t,"l",function(){return y});var n=r(1);function a(e){return(a="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 i(e){var t=a(e);if("number"===t||"string"===t||"boolean"===t||null==e)return e;if("function"==typeof e.clone)return e.clone();if(Array.isArray(e))return e.map(function(e){return i(e)});if(e instanceof Date)return new Date(e.valueOf());if(Object(n.e)(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return o(e,i)}function o(e,t){var r={};for(var n in e)m(e,n)&&(r[n]=t(e[n]));return r}function s(e,t){for(var r in t)m(t,r)&&(e[r]=t[r]);return e}function u(e,t){if(Array.isArray(t))throw new TypeError("Arrays are not supported by deepExtend");for(var r in t)if(m(t,r))if(t[r]&&t[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r]&&e[r].constructor===Object?u(e[r],t[r]):e[r]=t[r];else{if(Array.isArray(t[r]))throw new TypeError("Arrays are not supported by deepExtend");e[r]=t[r]}return e}function c(e,t){var r,n,i;if(Array.isArray(e)){if(!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(n=0,i=e.length;n<i;n++)if(!c(e[n],t[n]))return!1;return!0}if("function"==typeof e)return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(r in e)if(!(r in t&&c(e[r],t[r])))return!1;for(r in t)if(!(r in e&&c(e[r],t[r])))return!1;return!0}return e===t}function f(e){var t={};return function e(t,r){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===a(i)&&null!==i?e(i,r):r[n]=i}}(e,t),t}function l(e,t,r){var n,i=!0;Object.defineProperty(e,t,{get:function(){return i&&(n=r(),i=!1),n},set:function(e){n=e,i=!1},configurable:!0,enumerable:!0})}function p(e,t){if(t&&"string"==typeof t)return p(e,t.split("."));var r=e;if(t)for(var n=0;n<t.length;n++){var i=t[n];i in r||(r[i]={}),r=r[i]}return r}function m(e,t){return e&&Object.hasOwnProperty.call(e,t)}function h(e){return e&&"function"==typeof e.factory}function d(e,t){for(var r={},n=0;n<t.length;n++){var i=t[n],a=e[i];void 0!==a&&(r[i]=a)}return r}function y(t){return Object.keys(t).map(function(e){return t[e]})}},function(e,t,r){"use strict";var i=r(1),a=r(3),c=r(4);function f(e,t){if("function"==typeof t)return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var r,n="auto";switch(void 0!==t&&(t.notation&&(n=t.notation),"number"==typeof t?r=t:t.precision&&(r=t.precision)),n){case"fixed":return function(e,t){return e.toFixed(t)}(e,r);case"exponential":return l(e,r);case"engineering":return function(e,t){var r=e.e,n=r%3==0?r:r<0?r-3-r%3:r-r%3,i=e.mul(Math.pow(10,-n)),a=i.toPrecision(t);-1!==a.indexOf("e")&&(a=i.toString());return a+"e"+(0<=r?"+":"")+n.toString()}(e,r);case"auto":if(t&&t.exponential&&(void 0!==t.exponential.lower||void 0!==t.exponential.upper)){var i=Object(c.i)(t,function(e){return e});return(i.exponential=void 0)!==t.exponential.lower&&(i.lowerExp=Math.round(Math.log(t.exponential.lower)/Math.LN10)),void 0!==t.exponential.upper&&(i.upperExp=Math.round(Math.log(t.exponential.upper)/Math.LN10)),console.warn("Deprecation warning: Formatting options exponential.lower and exponential.upper (minimum and maximum value) are replaced with exponential.lowerExp and exponential.upperExp (minimum and maximum exponent) since version 4.0.0. Replace "+JSON.stringify(t)+" with "+JSON.stringify(i)),f(e,i)}var a=t&&void 0!==t.lowerExp?t.lowerExp:-3,o=t&&void 0!==t.upperExp?t.upperExp:5;if(e.isZero())return"0";var s=e.toSignificantDigits(r),u=s.e;return(a<=u&&u<o?s.toFixed():l(e,r)).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw new Error('Unknown notation "'+n+'". Choose "auto", "exponential", or "fixed".')}}function l(e,t){return void 0!==t?e.toExponential(t-1):e.toExponential()}function o(e){return(o="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(e,t){var r=e.length-t.length,n=e.length;return e.substring(r,n)===t}function s(e,t){if("number"==typeof e)return Object(a.h)(e,t);if(Object(i.e)(e))return f(e,t);if(function(e){return e&&"object"===o(e)&&"number"==typeof e.s&&"number"==typeof e.n&&"number"==typeof e.d||!1}(e))return t&&"decimal"===t.fraction?e.toString():e.s*e.n+"/"+e.d;if(Array.isArray(e))return function e(t,r){{if(Array.isArray(t)){for(var n="[",i=t.length,a=0;a<i;a++)0!==a&&(n+=", "),n+=e(t[a],r);return n+="]"}return s(t,r)}}(e,t);if(Object(i.I)(e))return'"'+e+'"';if("function"==typeof e)return e.syntax?String(e.syntax):"function";if(e&&"object"===o(e)){if("function"==typeof e.format)return e.format(t);if(e&&e.toString()!=={}.toString())return e.toString();var r=[];for(var n in e)e.hasOwnProperty(n)&&r.push('"'+n+'": '+s(e[n],t));return"{"+r.join(", ")+"}"}return String(e)}function u(e){for(var t=String(e),r="",n=0;n<t.length;){var i=t.charAt(n);"\\"===i?(r+=i,n++,""!==(i=t.charAt(n))&&-1!=='"\\/bfnrtu'.indexOf(i)||(r+="\\"),r+=i):r+='"'===i?'\\"':i,n++}return'"'+r+'"'}function p(e){var t=String(e);return t=t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function m(e,t){if(!Object(i.I)(e))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+Object(i.M)(e)+", index: 0)");if(!Object(i.I)(t))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+Object(i.M)(t)+", index: 1)");return e===t?0:t<e?1:-1}r.d(t,"b",function(){return n}),r.d(t,"d",function(){return s}),r.d(t,"e",function(){return u}),r.d(t,"c",function(){return p}),r.d(t,"a",function(){return m})},function(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=r,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=(new Error).stack}r.d(t,"a",function(){return n}),(n.prototype=new RangeError).constructor=RangeError,n.prototype.name="DimensionError",n.prototype.isDimensionError=!0},,function(e,t,r){"use strict";r.d(t,"a",function(){return n});var a,n=(a={},function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=t.join(", ");a[i]||(a[i]=!0,(n=console).warn.apply(n,["Warning:"].concat(t)))})},function(e,t,r){var o;
/**
* @license Complex.js v2.0.11 11/02/2016
*
* Copyright (c) 2016, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
**/
/**
* @license Complex.js v2.0.11 11/02/2016
*
* Copyright (c) 2016, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
**/
!function(){"use strict";function n(e){return.5*(Math.exp(e)+Math.exp(-e))}function i(e){return.5*(Math.exp(e)-Math.exp(-e))}function u(){throw SyntaxError("Invalid Param")}function c(e,t){var r=Math.abs(e),n=Math.abs(t);return 0===e?Math.log(n):0===t?Math.log(r):r<3e3&&n<3e3?.5*Math.log(e*e+t*t):Math.log(e/Math.cos(Math.atan2(t,e)))}var a=function(e,t){var r={re:0,im:0};if(null==e)r.re=r.im=0;else if(void 0!==t)r.re=e,r.im=t;else switch(typeof e){case"object":if("im"in e&&"re"in e)r.re=e.re,r.im=e.im;else if("abs"in e&&"arg"in e){if(!Number.isFinite(e.abs)&&Number.isFinite(e.arg))return f.INFINITY;r.re=e.abs*Math.cos(e.arg),r.im=e.abs*Math.sin(e.arg)}else if("r"in e&&"phi"in e){if(!Number.isFinite(e.r)&&Number.isFinite(e.phi))return f.INFINITY;r.re=e.r*Math.cos(e.phi),r.im=e.r*Math.sin(e.phi)}else 2===e.length?(r.re=e[0],r.im=e[1]):u();break;case"string":r.im=r.re=0;var n=e.match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),i=1,a=0;null===n&&u();for(var o=0;o<n.length;o++){var s=n[o];" "===s||"\t"===s||"\n"===s||("+"===s?i++:"-"===s?a++:i=a=("i"===s||"I"===s?(i+a===0&&u()," "===n[o+1]||isNaN(n[o+1])?r.im+=parseFloat((a%2?"-":"")+"1"):(r.im+=parseFloat((a%2?"-":"")+n[o+1]),o++)):(i+a!==0&&!isNaN(s)||u(),"i"===n[o+1]||"I"===n[o+1]?(r.im+=parseFloat((a%2?"-":"")+s),o++):r.re+=parseFloat((a%2?"-":"")+s)),0))}0<i+a&&u();break;case"number":r.im=0,r.re=e;break;default:u()}return isNaN(r.re)||isNaN(r.im),r};function f(e,t){if(!(this instanceof f))return new f(e,t);var r=a(e,t);this.re=r.re,this.im=r.im}f.prototype={re:0,im:0,sign:function(){var e=this.abs();return new f(this.re/e,this.im/e)},add:function(e,t){var r=new f(e,t);return this.isInfinite()&&r.isInfinite()?f.NAN:this.isInfinite()||r.isInfinite()?f.INFINITY:new f(this.re+r.re,this.im+r.im)},sub:function(e,t){var r=new f(e,t);return this.isInfinite()&&r.isInfinite()?f.NAN:this.isInfinite()||r.isInfinite()?f.INFINITY:new f(this.re-r.re,this.im-r.im)},mul:function(e,t){var r=new f(e,t);return this.isInfinite()&&r.isZero()||this.isZero()&&r.isInfinite()?f.NAN:this.isInfinite()||r.isInfinite()?f.INFINITY:0===r.im&&0===this.im?new f(this.re*r.re,0):new f(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(e,t){var r=new f(e,t);if(this.isZero()&&r.isZero()||this.isInfinite()&&r.isInfinite())return f.NAN;if(this.isInfinite()||r.isZero())return f.INFINITY;if(this.isZero()||r.isInfinite())return f.ZERO;e=this.re,t=this.im;var n,i,a=r.re,o=r.im;return 0===o?new f(e/a,t/a):Math.abs(a)<Math.abs(o)?new f((e*(i=a/o)+t)/(n=a*i+o),(t*i-e)/n):new f((e+t*(i=o/a))/(n=o*i+a),(t-e*i)/n)},pow:function(e,t){var r=new f(e,t);if(e=this.re,t=this.im,r.isZero())return f.ONE;if(0===r.im){if(0===t&&0<=e)return new f(Math.pow(e,r.re),0);if(0===e)switch((r.re%4+4)%4){case 0:return new f(Math.pow(t,r.re),0);case 1:return new f(0,Math.pow(t,r.re));case 2:return new f(-Math.pow(t,r.re),0);case 3:return new f(0,-Math.pow(t,r.re))}}if(0===e&&0===t&&0<r.re&&0<=r.im)return f.ZERO;var n=Math.atan2(t,e),i=c(e,t);return e=Math.exp(r.re*i-r.im*n),t=r.im*i+r.re*n,new f(e*Math.cos(t),e*Math.sin(t))},sqrt:function(){var e,t,r=this.re,n=this.im,i=this.abs();if(0<=r){if(0===n)return new f(Math.sqrt(r),0);e=.5*Math.sqrt(2*(i+r))}else e=Math.abs(n)/Math.sqrt(2*(i-r));return t=r<=0?.5*Math.sqrt(2*(i-r)):Math.abs(n)/Math.sqrt(2*(i+r)),new f(e,n<0?-t:t)},exp:function(){var e=Math.exp(this.re);return this.im,new f(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){var e=this.re,t=this.im;return new f(Math.expm1(e)*Math.cos(t)+function(e){var t=Math.PI/4;if(e<-t||t<e)return Math.cos(e)-1;var r=e*e;return r*(r*(1/24+r*(-1/720+r*(1/40320+r*(-1/3628800+r*(1/4790014600+r*(-1/87178291200+1/20922789888e3*r))))))-.5)}(t),Math.exp(e)*Math.sin(t))},log:function(){var e=this.re,t=this.im;return new f(c(e,t),Math.atan2(t,e))},abs:function(){return function(e,t){var r=Math.abs(e),n=Math.abs(t);return r<3e3&&n<3e3?Math.sqrt(r*r+n*n):(n=r<n?(r=n,e/t):t/e,r*Math.sqrt(1+n*n))}(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var e=this.re,t=this.im;return new f(Math.sin(e)*n(t),Math.cos(e)*i(t))},cos:function(){var e=this.re,t=this.im;return new f(Math.cos(e)*n(t),-Math.sin(e)*i(t))},tan:function(){var e=2*this.re,t=2*this.im,r=Math.cos(e)+n(t);return new f(Math.sin(e)/r,i(t)/r)},cot:function(){var e=2*this.re,t=2*this.im,r=Math.cos(e)-n(t);return new f(-Math.sin(e)/r,i(t)/r)},sec:function(){var e=this.re,t=this.im,r=.5*n(2*t)+.5*Math.cos(2*e);return new f(Math.cos(e)*n(t)/r,Math.sin(e)*i(t)/r)},csc:function(){var e=this.re,t=this.im,r=.5*n(2*t)-.5*Math.cos(2*e);return new f(Math.sin(e)*n(t)/r,-Math.cos(e)*i(t)/r)},asin:function(){var e=this.re,t=this.im,r=new f(t*t-e*e+1,-2*e*t).sqrt(),n=new f(r.re-t,r.im+e).log();return new f(n.im,-n.re)},acos:function(){var e=this.re,t=this.im,r=new f(t*t-e*e+1,-2*e*t).sqrt(),n=new f(r.re-t,r.im+e).log();return new f(Math.PI/2-n.im,n.re)},atan:function(){var e=this.re,t=this.im;if(0===e){if(1===t)return new f(0,1/0);if(-1===t)return new f(0,-1/0)}var r=e*e+(1-t)*(1-t),n=new f((1-t*t-e*e)/r,-2*e/r).log();return new f(-.5*n.im,.5*n.re)},acot:function(){var e=this.re,t=this.im;if(0===t)return new f(Math.atan2(1,e),0);var r=e*e+t*t;return 0!=r?new f(e/r,-t/r).atan():new f(0!==e?e/0:0,0!==t?-t/0:0).atan()},asec:function(){var e=this.re,t=this.im;if(0===e&&0===t)return new f(0,1/0);var r=e*e+t*t;return 0!=r?new f(e/r,-t/r).acos():new f(0!==e?e/0:0,0!==t?-t/0:0).acos()},acsc:function(){var e=this.re,t=this.im;if(0===e&&0===t)return new f(Math.PI/2,1/0);var r=e*e+t*t;return 0!=r?new f(e/r,-t/r).asin():new f(0!==e?e/0:0,0!==t?-t/0:0).asin()},sinh:function(){var e=this.re,t=this.im;return new f(i(e)*Math.cos(t),n(e)*Math.sin(t))},cosh:function(){var e=this.re,t=this.im;return new f(n(e)*Math.cos(t),i(e)*Math.sin(t))},tanh:function(){var e=2*this.re,t=2*this.im,r=n(e)+Math.cos(t);return new f(i(e)/r,Math.sin(t)/r)},coth:function(){var e=2*this.re,t=2*this.im,r=n(e)-Math.cos(t);return new f(i(e)/r,-Math.sin(t)/r)},csch:function(){var e=this.re,t=this.im,r=Math.cos(2*t)-n(2*e);return new f(-2*i(e)*Math.cos(t)/r,2*n(e)*Math.sin(t)/r)},sech:function(){var e=this.re,t=this.im,r=Math.cos(2*t)+n(2*e);return new f(2*n(e)*Math.cos(t)/r,-2*i(e)*Math.sin(t)/r)},asinh:function(){var e=this.im;this.im=-this.re,this.re=e;var t=this.asin();return this.re=-this.im,this.im=e,e=t.re,t.re=-t.im,t.im=e,t},acosh:function(){var e=this.acos();if(e.im<=0){var t=e.re;e.re=-e.im,e.im=t}else{t=e.im;e.im=-e.re,e.re=t}return e},atanh:function(){var e=this.re,t=this.im,r=1<e&&0===t,n=1-e,i=1+e,a=n*n+t*t,o=0!=a?new f((i*n-t*t)/a,(t*n+i*t)/a):new f(-1!==e?e/0:0,0!==t?t/0:0),s=o.re;return o.re=c(o.re,o.im)/2,o.im=Math.atan2(o.im,s)/2,r&&(o.im=-o.im),o},acoth:function(){var e=this.re,t=this.im;if(0===e&&0===t)return new f(0,Math.PI/2);var r=e*e+t*t;return 0!=r?new f(e/r,-t/r).atanh():new f(0!==e?e/0:0,0!==t?-t/0:0).atanh()},acsch:function(){var e=this.re,t=this.im;if(0===t)return new f(0!==e?Math.log(e+Math.sqrt(e*e+1)):1/0,0);var r=e*e+t*t;return 0!=r?new f(e/r,-t/r).asinh():new f(0!==e?e/0:0,0!==t?-t/0:0).asinh()},asech:function(){var e=this.re,t=this.im;if(this.isZero())return f.INFINITY;var r=e*e+t*t;return 0!=r?new f(e/r,-t/r).acosh():new f(0!==e?e/0:0,0!==t?-t/0:0).acosh()},inverse:function(){if(this.isZero())return f.INFINITY;if(this.isInfinite())return f.ZERO;var e=this.re,t=this.im,r=e*e+t*t;return new f(e/r,-t/r)},conjugate:function(){return new f(this.re,-this.im)},neg:function(){return new f(-this.re,-this.im)},ceil:function(e){return e=Math.pow(10,e||0),new f(Math.ceil(this.re*e)/e,Math.ceil(this.im*e)/e)},floor:function(e){return e=Math.pow(10,e||0),new f(Math.floor(this.re*e)/e,Math.floor(this.im*e)/e)},round:function(e){return e=Math.pow(10,e||0),new f(Math.round(this.re*e)/e,Math.round(this.im*e)/e)},equals:function(e,t){var r=new f(e,t);return Math.abs(r.re-this.re)<=f.EPSILON&&Math.abs(r.im-this.im)<=f.EPSILON},clone:function(){return new f(this.re,this.im)},toString:function(){var e=this.re,t=this.im,r="";return this.isNaN()?"NaN":this.isZero()?"0":this.isInfinite()?"Infinity":(0!==e&&(r+=e),0!==t&&(0!==e?r+=t<0?" - ":" + ":t<0&&(r+="-"),1!==(t=Math.abs(t))&&(r+=t),r+="i"),r||"0")},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return!(0!==this.re&&-0!==this.re||0!==this.im&&-0!==this.im)},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!(this.isNaN()||this.isFinite())}},f.ZERO=new f(0,0),f.ONE=new f(1,0),f.I=new f(0,1),f.PI=new f(Math.PI,0),f.E=new f(Math.E,0),f.INFINITY=new f(1/0,1/0),f.NAN=new f(NaN,NaN),f.EPSILON=1e-16,void 0===(o=function(){return f}.apply(t,[]))||(e.exports=o)}()},function(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=r),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=(new Error).stack}r.d(t,"a",function(){return n}),(n.prototype=new RangeError).constructor=RangeError,n.prototype.name="IndexError",n.prototype.isIndexError=!0},function(r,i,e){var a;
/**
* @license Fraction.js v4.0.12 09/09/2015
* http://www.xarg.org/2014/03/rational-numbers-in-javascript/
*
* Copyright (c) 2015, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
**/
/**
* @license Fraction.js v4.0.12 09/09/2015
* http://www.xarg.org/2014/03/rational-numbers-in-javascript/
*
* Copyright (c) 2015, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
**/
!function(){"use strict";var d={s:1,n:0,d:1};function e(t){function e(){var e=Error.apply(this,arguments);e.name=this.name=t,this.stack=e.stack,this.message=e.message}function r(){}return r.prototype=Error.prototype,e.prototype=new r,e}var y=c.DivisionByZero=e("DivisionByZero"),t=c.InvalidParameter=e("InvalidParameter");function g(e,t){return isNaN(e=parseInt(e,10))&&v(),e*t}function v(){throw new t}var n=function(e,t){var r,n=0,i=1,a=1,o=0,s=0,u=0,c=1,f=1,l=0,p=1,m=1,h=1;if(null==e);else if(void 0!==t)a=(n=e)*(i=t);else switch(typeof e){case"object":"d"in e&&"n"in e?(n=e.n,i=e.d,"s"in e&&(n*=e.s)):0 in e?(n=e[0],1 in e&&(i=e[1])):v(),a=n*i;break;case"number":if(e<0&&(e=-(a=e)),e%1==0)n=e;else if(0<e){for(1<=e&&(e/=f=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)));p<=1e7&&h<=1e7;){if(e===(r=(l+m)/(p+h))){i=p+h<=1e7?(n=l+m,p+h):p<h?(n=m,h):(n=l,p);break}r<e?(l+=m,p+=h):(m+=l,h+=p),i=1e7<p?(n=m,h):(n=l,p)}n*=f}else(isNaN(e)||isNaN(t))&&(i=n=NaN);break;case"string":if(null===(p=e.match(/\d+|./g))&&v(),"-"===p[l]?(a=-1,l++):"+"===p[l]&&l++,p.length===l+1?s=g(p[l++],a):"."===p[l+1]||"."===p[l]?("."!==p[l]&&(o=g(p[l++],a)),(++l+1===p.length||"("===p[l+1]&&")"===p[l+3]||"'"===p[l+1]&&"'"===p[l+3])&&(s=g(p[l],a),c=Math.pow(10,p[l].length),l++),("("===p[l]&&")"===p[l+2]||"'"===p[l]&&"'"===p[l+2])&&(u=g(p[l+1],a),f=Math.pow(10,p[l+1].length)-1,l+=3)):"/"===p[l+1]||":"===p[l+1]?(s=g(p[l],a),c=g(p[l+2],1),l+=3):"/"===p[l+3]&&" "===p[l+1]&&(o=g(p[l],a),s=g(p[l+2],a),c=g(p[l+4],1),l+=5),p.length<=l){a=n=u+(i=c*f)*o+f*s;break}default:v()}if(0===i)throw new y;d.s=a<0?-1:1,d.n=Math.abs(n),d.d=Math.abs(i)};function u(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function c(e,t){if(!(this instanceof c))return new c(e,t);n(e,t),e=c.REDUCE?u(d.d,d.n):1,this.s=d.s,this.n=d.n/e,this.d=d.d/e}c.REDUCE=1,c.prototype={s:1,n:0,d:1,abs:function(){return new c(this.n,this.d)},neg:function(){return new c(-this.s*this.n,this.d)},add:function(e,t){return n(e,t),new c(this.s*this.n*d.d+d.s*this.d*d.n,this.d*d.d)},sub:function(e,t){return n(e,t),new c(this.s*this.n*d.d-d.s*this.d*d.n,this.d*d.d)},mul:function(e,t){return n(e,t),new c(this.s*d.s*this.n*d.n,this.d*d.d)},div:function(e,t){return n(e,t),new c(this.s*d.s*this.n*d.d,this.d*d.n)},clone:function(){return new c(this)},mod:function(e,t){return isNaN(this.n)||isNaN(this.d)?new c(NaN):void 0===e?new c(this.s*this.n%this.d,1):(n(e,t),0===d.n&&0===this.d&&c(0,0),new c(this.s*(d.d*this.n)%(d.n*this.d),d.d*this.d))},gcd:function(e,t){return n(e,t),new c(u(d.n,this.n)*u(d.d,this.d),d.d*this.d)},lcm:function(e,t){return n(e,t),0===d.n&&0===this.n?new c:new c(d.n*this.n,u(d.n,this.n)*u(d.d,this.d))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):new c(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):new c(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):new c(Math.round(e*this.s*this.n/this.d),e)},inverse:function(){return new c(this.s*this.d,this.n)},pow:function(e){return e<0?new c(Math.pow(this.s*this.d,-e),Math.pow(this.n,-e)):new c(Math.pow(this.s*this.n,e),Math.pow(this.d,e))},equals:function(e,t){return n(e,t),this.s*this.n*d.d==d.s*d.n*this.d},compare:function(e,t){n(e,t);var r=this.s*this.n*d.d-d.s*d.n*this.d;return(0<r)-(r<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;var t=this.abs().toContinued();function r(e){return 1===e.length?new c(e[0]):r(e.slice(1)).inverse().add(e[0])}e=e||.001;for(var n=0;n<t.length;n++){var i=r(t.slice(0,n+1));if(i.sub(this.abs()).abs().valueOf()<e)return i.mul(this.s)}return this},divisible:function(e,t){return n(e,t),!(!(d.n*this.d)||this.n*d.d%(d.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,r="",n=this.n,i=this.d;return this.s<0&&(r+="-"),1===i?r+=n:(e&&0<(t=Math.floor(n/i))&&(r+=t,r+=" ",n%=i),r+=n,r+="/",r+=i),r},toLatex:function(e){var t,r="",n=this.n,i=this.d;return this.s<0&&(r+="-"),1===i?r+=n:(e&&0<(t=Math.floor(n/i))&&(r+=t,n%=i),r+="\\frac{",r+=n,r+="}{",r+=i,r+="}"),r},toContinued:function(){var e,t=this.n,r=this.d,n=[];if(isNaN(this.n)||isNaN(this.d))return n;for(;n.push(Math.floor(t/r)),e=t%r,t=r,r=e,1!==t;);return n},toString:function(e){var t,r=this.n,n=this.d;if(isNaN(r)||isNaN(n))return"NaN";c.REDUCE||(r/=t=u(r,n),n/=t),e=e||15;var i=function(e,t){for(;t%2==0;t/=2);for(;t%5==0;t/=5);if(1===t)return 0;for(var r=10%t,n=1;1!==r;n++)if(r=10*r%t,2e3<n)return 0;return n}(0,n),a=function(e,t,r){for(var n=1,i=function(e,t,r){for(var n=1;0<t;e=e*e%r,t>>=1)1&t&&(n=n*e%r);return n}(10,r,t),a=0;a<300;a++){if(n===i)return a;n=10*n%t,i=10*i%t}return 0}(0,n,i),o=-1===this.s?"-":"";if(o+=r/n|0,r%=n,(r*=10)&&(o+="."),i){for(var s=a;s--;)o+=r/n|0,r%=n,r*=10;o+="(";for(s=i;s--;)o+=r/n|0,r%=n,r*=10;o+=")"}else for(s=e;r&&s--;)o+=r/n|0,r%=n,r*=10;return o}},void 0===(a=function(){return c}.apply(i,[]))||(r.exports=a)}()},function(e,t){e.exports=function t(e,r){"use strict";function n(e){return t.insensitive&&(""+e).toLowerCase()||""+e}var i,a,o=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,s=/(^[ ]*|[ ]*$)/g,u=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,c=/^0x[0-9a-f]+$/i,f=/^0/,l=n(e).replace(s,"")||"",p=n(r).replace(s,"")||"",m=l.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),h=p.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),d=parseInt(l.match(c),16)||1!==m.length&&l.match(u)&&Date.parse(l),y=parseInt(p.match(c),16)||d&&p.match(u)&&Date.parse(p)||null;if(y){if(d<y)return-1;if(y<d)return 1}for(var g=0,v=Math.max(m.length,h.length);g<v;g++){if(i=!(m[g]||"").match(f)&&parseFloat(m[g])||m[g]||0,a=!(h[g]||"").match(f)&&parseFloat(h[g])||h[g]||0,isNaN(i)!==isNaN(a))return isNaN(i)?1:-1;if(typeof i!=typeof a&&(i+="",a+=""),i<a)return-1;if(a<i)return 1}return 0}},function(e,t,r){"use strict";function i(e,t,r,n){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=r,this.max=n,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+r+(null!=n?"-"+n:"")+" expected)",this.stack=(new Error).stack}r.d(t,"a",function(){return i}),(i.prototype=new Error).constructor=Error,i.prototype.name="ArgumentsError",i.prototype.isArgumentsError=!0},function(e,t,r){"use strict";var n,i,a;i=[],void 0===(a="function"==typeof(n=function(){function k(){return!0}function re(){return!1}function ne(){}return function e(){var t=[{name:"number",test:function(e){return"number"==typeof e}},{name:"string",test:function(e){return"string"==typeof e}},{name:"boolean",test:function(e){return"boolean"==typeof e}},{name:"Function",test:function(e){return"function"==typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:function(e){return"object"==typeof e&&e.constructor===Object}},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}];var n={name:"any",test:k};var r=[];var i=[];var U={types:t,conversions:i,ignore:r};function u(t){var e=ee(U.types,function(e){return e.name===t});if(e)return e;if("any"===t)return n;var r=ee(U.types,function(e){return e.name.toLowerCase()===t.toLowerCase()});throw new TypeError('Unknown type "'+t+'"'+(r?'. Did you mean "'+r.name+'"?':""))}function c(e){return e===n?999:U.types.indexOf(e)}function p(t){var e=ee(U.types,function(e){return e.test(t)});if(e)return e.name;throw new TypeError("Value has unknown type. Value: "+t)}function a(e,t){if(!e.signatures)throw new TypeError("Function is no typed-function");var r;if("string"==typeof t){r=t.split(",");for(var n=0;n<r.length;n++)r[n]=r[n].trim()}else{if(!Array.isArray(t))throw new TypeError("String array or a comma separated string expected");r=t}var i=r.join(","),a=e.signatures[i];if(a)return a;throw new TypeError("Signature not found (signature: "+(e.name||"unnamed")+"("+r.join(", ")+"))")}function o(e,t){var r=p(e);if(t===r)return e;for(var n=0;n<U.conversions.length;n++){var i=U.conversions[n];if(i.from===r&&i.to===t)return i.convert(e)}throw new Error("Cannot convert from "+r+" to "+t)}function L(e){return e.map(function(e){var t=e.types.map(h);return(e.restParam?"...":"")+t.join("|")}).join(",")}function s(e,r){var t=0===e.indexOf("..."),n=t?3<e.length?e.slice(3):"any":e,i=n.split("|").map(M).filter(E).filter(O),a=x(r,i),o=i.map(function(e){var t=u(e);return{name:e,typeIndex:c(t),test:t.test,conversion:null,conversionIndex:-1}}),s=a.map(function(e){var t=u(e.from);return{name:e.from,typeIndex:c(t),test:t.test,conversion:e,conversionIndex:r.indexOf(e)}});return{types:o.concat(s),restParam:t}}function H(e,t,i){var r=[];return""!==e.trim()&&(r=e.split(",").map(M).map(function(e,t,r){var n=s(e,i);if(n.restParam&&t!==r.length-1)throw new SyntaxError('Unexpected rest parameter "'+e+'": only allowed for the last parameter');return n})),r.some(S)?null:{params:r,fn:t}}function $(e){var t=A(e);return!!t&&t.restParam}function f(e){return e.types.some(function(e){return null!=e.conversion})}function G(e){if(e&&0!==e.types.length){if(1===e.types.length)return u(e.types[0].name).test;if(2===e.types.length){var t=u(e.types[0].name).test,r=u(e.types[1].name).test;return function(e){return t(e)||r(e)}}var n=e.types.map(function(e){return u(e.name).test});return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}}return k}function Z(e){var r,t,n;if($(e)){var i=(r=j(e).map(G)).length,a=G(A(e)),o=function(e){for(var t=i;t<e.length;t++)if(!a(e[t]))return!1;return!0};return function(e){for(var t=0;t<r.length;t++)if(!r[t](e[t]))return!1;return o(e)&&e.length>=i+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(t=G(e[0]),function(e){return t(e[0])&&1===e.length}):2===e.length?(t=G(e[0]),n=G(e[1]),function(e){return t(e[0])&&n(e[1])&&2===e.length}):(r=e.map(G),function(e){for(var t=0;t<r.length;t++)if(!r[t](e[t]))return!1;return e.length===r.length})}function m(e,t){return t<e.params.length?e.params[t]:$(e.params)?A(e.params):null}function l(e,t,r){var n=m(e,t),i=n?r?n.types.filter(d):n.types:[];return i.map(h)}function h(e){return e.name}function d(e){return null===e.conversion||void 0===e.conversion}function y(e,t){var r=I(te(e,function(e){return l(e,t,!1)}));return-1!==r.indexOf("any")?["any"]:r}function V(e,r,t){var n,i,a,o=e||"unnamed",s=t;for(a=0;a<r.length;a++){var u=s.filter(function(e){var t=G(m(e,a));return(a<e.params.length||$(e.params))&&t(r[a])});if(0===u.length){if(0<(i=y(s,a)).length){var c=p(r[a]);return(n=new TypeError("Unexpected type of argument in function "+o+" (expected: "+i.join(" or ")+", actual: "+c+", index: "+a+")")).data={category:"wrongType",fn:o,index:a,actual:c,expected:i},n}}else s=u}var f=s.map(function(e){return $(e.params)?1/0:e.params.length});if(r.length<Math.min.apply(null,f))return i=y(s,a),(n=new TypeError("Too few arguments in function "+o+" (expected: "+i.join(" or ")+", index: "+r.length+")")).data={category:"tooFewArgs",fn:o,index:r.length,expected:i},n;var l=Math.max.apply(null,f);return r.length>l?(n=new TypeError("Too many arguments in function "+o+" (expected: "+l+", actual: "+r.length+")")).data={category:"tooManyArgs",fn:o,index:r.length,expectedLength:l}:(n=new TypeError('Arguments of type "'+r.join(", ")+'" do not match any of the defined signatures of function '+o+".")).data={category:"mismatch",actual:r.map(p)},n}function g(e){for(var t=999,r=0;r<e.types.length;r++)d(e.types[r])&&(t=Math.min(t,e.types[r].typeIndex));return t}function v(e){for(var t=999,r=0;r<e.types.length;r++)d(e.types[r])||(t=Math.min(t,e.types[r].conversionIndex));return t}function b(e,t){var r;return 0!==(r=e.restParam-t.restParam)?r:0!==(r=f(e)-f(t))?r:0!==(r=g(e)-g(t))?r:v(e)-v(t)}function J(e,t){var r,n,i=Math.min(e.params.length,t.params.length);if(0!==(n=e.params.some(f)-t.params.some(f)))return n;for(r=0;r<i;r++)if(0!==(n=f(e.params[r])-f(t.params[r])))return n;for(r=0;r<i;r++)if(0!==(n=b(e.params[r],t.params[r])))return n;return e.params.length-t.params.length}function x(e,t){var r={};return e.forEach(function(e){-1!==t.indexOf(e.from)||-1===t.indexOf(e.to)||r[e.from]||(r[e.from]=e)}),Object.keys(r).map(function(e){return r[e]})}function W(e,n){var t=n;if(e.some(f)){var i=$(e),a=e.map(w);t=function(){for(var e=[],t=i?arguments.length-1:arguments.length,r=0;r<t;r++)e[r]=a[r](arguments[r]);return i&&(e[t]=arguments[t].map(a[t])),n.apply(null,e)}}var r=t;if($(e)){var o=e.length-1;r=function(){return t.apply(null,C(arguments,0,o).concat([C(arguments,o)]))}}return r}function w(e){var t,r,n,i,a=[],o=[];switch(e.types.forEach(function(e){e.conversion&&(a.push(u(e.conversion.from).test),o.push(e.conversion.convert))}),o.length){case 0:return function(e){return e};case 1:return t=a[0],n=o[0],function(e){return t(e)?n(e):e};case 2:return t=a[0],r=a[1],n=o[0],i=o[1],function(e){return t(e)?n(e):r(e)?i(e):e};default:return function(e){for(var t=0;t<o.length;t++)if(a[t](e))return o[t](e);return e}}}function Y(e){var r={};return e.forEach(function(t){t.params.some(f)||X(t.params,!0).forEach(function(e){r[L(e)]=t.fn})}),r}function X(e,u){function c(r,t,n){if(t<r.length){var e,i=r[t],a=u?i.types.filter(d):i.types;if(i.restParam){var o=a.filter(d);e=o.length<a.length?[o,a]:[a]}else e=a.map(function(e){return[e]});return te(e,function(e){return c(r,t+1,n.concat([e]))})}var s=n.map(function(e,t){return{types:e,restParam:t===r.length-1&&$(r)}});return[s]}return c(e,0,[])}function Q(e,t){for(var r=Math.max(e.params.length,t.params.length),n=0;n<r;n++){var i=l(e,n,!0),a=l(t,n,!0);if(!_(i,a))return!1}var o=e.params.length,s=t.params.length,u=$(e.params),c=$(t.params);return u?c?o===s:o<=s:c?s<=o:o===s}function N(t,r){if(0===Object.keys(r).length)throw new SyntaxError("No signatures provided");var n=[];Object.keys(r).map(function(e){return H(e,r[e],U.conversions)}).filter(K).forEach(function(t){var e=ee(n,function(e){return Q(e,t)});if(e)throw new TypeError('Conflicting signatures "'+L(e.params)+'" and "'+L(t.params)+'".');n.push(t)});var i=te(n,function(t){var e=t?X(t.params,!1):[];return e.map(function(e){return{params:e,fn:t.fn}})}).filter(K);i.sort(J);var e=i[0]&&i[0].params.length<=2&&!$(i[0].params),a=i[1]&&i[1].params.length<=2&&!$(i[1].params),o=i[2]&&i[2].params.length<=2&&!$(i[2].params),s=i[3]&&i[3].params.length<=2&&!$(i[3].params),u=i[4]&&i[4].params.length<=2&&!$(i[4].params),c=i[5]&&i[5].params.length<=2&&!$(i[5].params),f=e&&a&&o&&s&&u&&c,l=i.map(function(e){return Z(e.params)}),p=e?G(i[0].params[0]):re,m=a?G(i[1].params[0]):re,h=o?G(i[2].params[0]):re,d=s?G(i[3].params[0]):re,y=u?G(i[4].params[0]):re,g=c?G(i[5].params[0]):re,v=e?G(i[0].params[1]):re,b=a?G(i[1].params[1]):re,x=o?G(i[2].params[1]):re,w=s?G(i[3].params[1]):re,N=u?G(i[4].params[1]):re,O=c?G(i[5].params[1]):re,M=i.map(function(e){return W(e.params,e.fn)}),E=e?M[0]:ne,S=a?M[1]:ne,j=o?M[2]:ne,A=s?M[3]:ne,C=u?M[4]:ne,T=c?M[5]:ne,_=e?i[0].params.length:-1,I=a?i[1].params.length:-1,q=o?i[2].params.length:-1,B=s?i[3].params.length:-1,k=u?i[4].params.length:-1,z=c?i[5].params.length:-1,D=f?6:0,R=i.length,P=function(){for(var e=D;e<R;e++)if(l[e](arguments))return M[e].apply(null,arguments);throw V(t,arguments,i)},F=function(e,t){return arguments.length===_&&p(e)&&v(t)?E.apply(null,arguments):arguments.length===I&&m(e)&&b(t)?S.apply(null,arguments):arguments.length===q&&h(e)&&x(t)?j.apply(null,arguments):arguments.length===B&&d(e)&&w(t)?A.apply(null,arguments):arguments.length===k&&y(e)&&N(t)?C.apply(null,arguments):arguments.length===z&&g(e)&&O(t)?T.apply(null,arguments):P.apply(null,arguments)};try{Object.defineProperty(F,"name",{value:t})}catch(e){}return F.signatures=Y(i),F}function O(e){return-1===U.ignore.indexOf(e)}function M(e){return e.trim()}function E(e){return!!e}function K(e){return null!==e}function S(e){return 0===e.types.length}function j(e){return e.slice(0,e.length-1)}function A(e){return e[e.length-1]}function C(e,t,r){return Array.prototype.slice.call(e,t,r)}function T(e,t){return-1!==e.indexOf(t)}function _(e,t){for(var r=0;r<e.length;r++)if(T(t,e[r]))return!0;return!1}function ee(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function I(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return Object.keys(t)}function te(e,t){return Array.prototype.concat.apply([],e.map(t))}function q(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(("object"==typeof n.signatures||"string"==typeof n.signature)&&""!==n.name)if(""===t)t=n.name;else if(t!==n.name){var i=new Error("Function names do not match (expected: "+t+", actual: "+n.name+")");throw i.data={actual:n.name,expected:t},i}}return t}function B(e){var r,n={};function t(e,t){if(n.hasOwnProperty(e)&&t!==n[e])throw(r=new Error('Signature "'+e+'" is defined twice')).data={signature:e},r}for(var i=0;i<e.length;i++){var a=e[i];if("object"==typeof a.signatures)for(var o in a.signatures)a.signatures.hasOwnProperty(o)&&(t(o,a.signatures[o]),n[o]=a.signatures[o]);else{if("string"!=typeof a.signature)throw(r=new TypeError("Function is no typed-function (index: "+i+")")).data={index:i},r;t(a.signature,a),n[a.signature]=a}}return n}U=N("typed",{"string, Object":N,Object:function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);var n=q(t);return N(n,e)},"...Function":function(e){return N(q(e),B(e))},"string, ...Function":function(e,t){return N(e,B(t))}});U.create=e;U.types=t;U.conversions=i;U.ignore=r;U.convert=o;U.find=a;U.addType=function(e,t){if(!e||"string"!=typeof e.name||"function"!=typeof e.test)throw new TypeError("Object with properties {name: string, test: function} expected");if(!1!==t)for(var r=0;r<U.types.length;r++)if("Object"===U.types[r].name)return void U.types.splice(r,0,e);U.types.push(e)};U.addConversion=function(e){if(!e||"string"!=typeof e.from||"string"!=typeof e.to||"function"!=typeof e.convert)throw new TypeError("Object with properties {from: string, to: string, convert: function} expected");U.conversions.push(e)};return U}()})?n.apply(t,i):n)||(e.exports=a)},function(m,e,t){"use strict";(function(e){var s=256,i=[],a=void 0===e?window:e,o=Math.pow(s,6),u=Math.pow(2,52),c=2*u,t=Math.random;function f(e){var t,r=e.length,o=this,n=0,i=o.i=o.j=0,a=o.S=[];for(r||(e=[r++]);n<s;)a[n]=n++;for(n=0;n<s;n++)a[n]=a[i=255&i+e[n%r]+(t=a[n])],a[i]=t;(o.g=function(e){for(var t,r=0,n=o.i,i=o.j,a=o.S;e--;)t=a[n=255&n+1],r=r*s+a[255&(a[n]=a[i=255&i+t])+(a[i]=t)];return o.i=n,o.j=i,r})(s)}function l(e,t){for(var r,n=e+"",i=0;i<n.length;)t[255&i]=255&(r^=19*t[255&i])+n.charCodeAt(i++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}m.exports=function(e,t){if(t&&!0===t.global)return t.global=!1,Math.random=m.exports(e,t),t.global=!0,Math.random;var r=[],n=(l(function e(t,r){var n,i=[],a=(typeof t)[0];if(r&&"o"==a)for(n in t)try{i.push(e(t[n],r-1))}catch(e){}return i.length?i:"s"==a?t:t+"\0"}(t&&t.entropy||!1?[e,p(i)]:0 in arguments?e:function(e){try{return a.crypto.getRandomValues(e=new Uint8Array(s)),p(e)}catch(e){return[+new Date,a,a.navigator&&a.navigator.plugins,a.screen,p(i)]}}(),3),r),new f(r));return l(p(n.S),i),function(){for(var e=n.g(6),t=o,r=0;e<u;)e=(e+r)*s,t*=s,r=n.g(1);for(;c<=e;)e/=2,t/=2,r>>>=1;return(e+r)/t}},m.exports.resetGlobal=function(){Math.random=t},l(Math.random(),i)}).call(this,t(20))},function(t,De,Re){var Pe;!function(){"use strict";var l,T,o,s=9e15,d=1e9,y="0123456789abcdef",n="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",i="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",u={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-s,maxE:s,crypto:!1},b=!0,c="[DecimalError] ",g=c+"Invalid argument: ",a=c+"Precision limit exceeded",f=c+"crypto unavailable",_=Math.floor,v=Math.pow,p=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,m=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,h=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,x=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,I=1e7,q=7,w=n.length-1,N=i.length-1,O={name:"[object Decimal]"};function M(e){var t,r,n,i=e.length-1,a="",o=e[0];if(0<i){for(a+=o,t=1;t<i;t++)n=e[t]+"",(r=q-n.length)&&(a+=L(r)),a+=n;o=e[t],(r=q-(n=o+"").length)&&(a+=L(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}function E(e,t,r){if(e!==~~e||e<t||r<e)throw Error(g+e)}function S(e,t,r,n){var i,a,o;for(a=e[0];10<=a;a/=10)--t;return--t<0?(t+=q,i=0):(i=Math.ceil((t+1)/q),t%=q),a=v(10,q-t),o=e[i]%a|0,null==n?t<3?(0==t?o=o/100|0:1==t&&(o=o/10|0),r<4&&99999==o||3<r&&49999==o||5e4==o||0==o):(r<4&&o+1==a||3<r&&o+1==a/2)&&(e[i+1]/a/100|0)==v(10,t-2)-1||(o==a/2||0==o)&&0==(e[i+1]/a/100|0):t<4?(0==t?o=o/1e3|0:1==t?o=o/100|0:2==t&&(o=o/10|0),(n||r<4)&&9999==o||!n&&3<r&&4999==o):((n||r<4)&&o+1==a||!n&&3<r&&o+1==a/2)&&(e[i+1]/a/1e3|0)==v(10,t-3)-1}function j(e,t,r){for(var n,i,a=[0],o=0,s=e.length;o<s;){for(i=a.length;i--;)a[i]*=t;for(a[0]+=y.indexOf(e.charAt(o++)),n=0;n<a.length;n++)a[n]>r-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}O.absoluteValue=O.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),D(e)},O.ceil=function(){return D(new this.constructor(this),this.e+1,2)},O.comparedTo=O.cmp=function(e){var t,r,n,i,a=this,o=a.d,s=(e=new a.constructor(e)).d,u=a.s,c=e.s;if(!o||!s)return u&&c?u!==c?u:o===s?0:!o^u<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?u:s[0]?-c:0;if(u!==c)return u;if(a.e!==e.e)return a.e>e.e^u<0?1:-1;for(t=0,r=(n=o.length)<(i=s.length)?n:i;t<r;++t)if(o[t]!==s[t])return o[t]>s[t]^u<0?1:-1;return n===i?0:i<n^u<0?1:-1},O.cosine=O.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+q,n.rounding=1,r=function(e,t){var r,n,i=t.d.length;n=i<32?(r=Math.ceil(i/3),(1/Y(4,r)).toString()):(r=16,"2.3283064365386962890625e-10");e.precision+=r,t=W(e,1,t.times(n),new e(1));for(var a=r;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=r,t}(n,X(n,r)),n.precision=e,n.rounding=t,D(2==o||3==o?r.neg():r,e,t,!0)):new n(1):new n(NaN)},O.cubeRoot=O.cbrt=function(){var e,t,r,n,i,a,o,s,u,c,f=this,l=f.constructor;if(!f.isFinite()||f.isZero())return new l(f);for(b=!1,(a=f.s*v(f.s*f,1/3))&&Math.abs(a)!=1/0?n=new l(a.toString()):(r=M(f.d),(a=((e=f.e)-r.length+1)%3)&&(r+=1==a||-2==a?"0":"00"),a=v(r,1/3),e=_((e+1)/3)-(e%3==(e<0?-1:2)),(n=new l(r=a==1/0?"5e"+e:(r=a.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=f.s),o=(e=l.precision)+3;;)if(c=(u=(s=n).times(s).times(s)).plus(f),n=A(c.plus(f).times(s),c.plus(u),o+2,1),M(s.d).slice(0,o)===(r=M(n.d)).slice(0,o)){if("9999"!=(r=r.slice(o-3,o+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(D(n,e+1,1),t=!n.times(n).times(n).eq(f));break}if(!i&&(D(s,e+1,0),s.times(s).times(s).eq(f))){n=s;break}o+=4,i=1}return b=!0,D(n,e,l.rounding,t)},O.decimalPlaces=O.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-_(this.e/q))*q,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},O.dividedBy=O.div=function(e){return A(this,new this.constructor(e))},O.dividedToIntegerBy=O.divToInt=function(e){var t=this.constructor;return D(A(this,new t(e),0,1,1),t.precision,t.rounding)},O.equals=O.eq=function(e){return 0===this.cmp(e)},O.floor=function(){return D(new this.constructor(this),this.e+1,3)},O.greaterThan=O.gt=function(e){return 0<this.cmp(e)},O.greaterThanOrEqualTo=O.gte=function(e){var t=this.cmp(e);return 1==t||0===t},O.hyperbolicCosine=O.cosh=function(){var e,t,r,n,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;r=o.precision,n=o.rounding,o.precision=r+Math.max(a.e,a.sd())+4,o.rounding=1,t=(i=a.d.length)<32?(1/Y(4,e=Math.ceil(i/3))).toString():(e=16,"2.3283064365386962890625e-10"),a=W(o,1,a.times(t),new o(1),!0);for(var u,c=e,f=new o(8);c--;)u=a.times(a),a=s.minus(u.times(f.minus(u.times(f))));return D(a,o.precision=r,o.rounding=n,!0)},O.hyperbolicSine=O.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,(n=i.d.length)<3)i=W(a,2,i,i,!0);else{e=16<(e=1.4*Math.sqrt(n))?16:0|e,i=W(a,2,i=i.times(1/Y(5,e)),i,!0);for(var o,s=new a(5),u=new a(16),c=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(u.times(o).plus(c))))}return D(i,a.precision=t,a.rounding=r,!0)},O.hyperbolicTangent=O.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,A(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},O.inverseCosine=O.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,a=r.rounding;return-1!==n?0===n?t.isNeg()?F(r,i,a):new r(0):new r(NaN):t.isZero()?F(r,i+4,a).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=F(r,i+4,a).times(.5),r.precision=i,r.rounding=a,e.minus(t))},O.inverseHyperbolicCosine=O.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,b=!1,r=r.times(r).minus(1).sqrt().plus(r),b=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},O.inverseHyperbolicSine=O.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,b=!1,r=r.times(r).plus(1).sqrt().plus(r),b=!0,n.precision=e,n.rounding=t,r.ln())},O.inverseHyperbolicTangent=O.atanh=function(){var e,t,r,n,i=this,a=i.constructor;return i.isFinite()?0<=i.e?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?D(new a(i),e,t,!0):(a.precision=r=n-i.e,i=A(i.plus(1),new a(1).minus(i),r+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)},O.inverseSine=O.asin=function(){var e,t,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),r=a.precision,n=a.rounding,-1!==t?0===t?((e=F(a,r+4,n).times(.5)).s=i.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2)))},O.inverseTangent=O.atan=function(){var e,t,r,n,i,a,o,s,u,c=this,f=c.constructor,l=f.precision,p=f.rounding;if(c.isFinite()){if(c.isZero())return new f(c);if(c.abs().eq(1)&&l+4<=N)return(o=F(f,l+4,p).times(.25)).s=c.s,o}else{if(!c.s)return new f(NaN);if(l+4<=N)return(o=F(f,l+4,p).times(.5)).s=c.s,o}for(f.precision=s=l+10,f.rounding=1,e=r=Math.min(28,s/q+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(b=!1,t=Math.ceil(s/q),n=1,u=c.times(c),o=new f(c),i=c;-1!==e;)if(i=i.times(u),a=o.minus(i.div(n+=2)),i=i.times(u),void 0!==(o=a.plus(i.div(n+=2))).d[t])for(e=t;o.d[e]===a.d[e]&&e--;);return r&&(o=o.times(2<<r-1)),b=!0,D(o,f.precision=l,f.rounding=p,!0)},O.isFinite=function(){return!!this.d},O.isInteger=O.isInt=function(){return!!this.d&&_(this.e/q)>this.d.length-2},O.isNaN=function(){return!this.s},O.isNegative=O.isNeg=function(){return this.s<0},O.isPositive=O.isPos=function(){return 0<this.s},O.isZero=function(){return!!this.d&&0===this.d[0]},O.lessThan=O.lt=function(e){return this.cmp(e)<0},O.lessThanOrEqualTo=O.lte=function(e){return this.cmp(e)<1},O.logarithm=O.log=function(e){var t,r,n,i,a,o,s,u,c=this,f=c.constructor,l=f.precision,p=f.rounding;if(null==e)e=new f(10),t=!0;else{if(r=(e=new f(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new f(NaN);t=e.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new f(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(t)if(1<r.length)a=!0;else{for(i=r[0];i%10==0;)i/=10;a=1!==i}if(b=!1,o=Z(c,s=l+5),n=t?P(f,s+10):Z(e,s),S((u=A(o,n,s,1)).d,i=l,p))do{if(o=Z(c,s+=10),n=t?P(f,s+10):Z(e,s),u=A(o,n,s,1),!a){+M(u.d).slice(i+1,i+15)+1==1e14&&(u=D(u,l+1,0));break}}while(S(u.d,i+=10,p));return b=!0,D(u,l,p)},O.minus=O.sub=function(e){var t,r,n,i,a,o,s,u,c,f,l,p,m=this,h=m.constructor;if(e=new h(e),!m.d||!e.d)return m.s&&e.s?m.d?e.s=-e.s:e=new h(e.d||m.s!==e.s?m:NaN):e=new h(NaN),e;if(m.s!=e.s)return e.s=-e.s,m.plus(e);if(c=m.d,p=e.d,s=h.precision,u=h.rounding,!c[0]||!p[0]){if(p[0])e.s=-e.s;else{if(!c[0])return new h(3===u?-0:0);e=new h(m)}return b?D(e,s,u):e}if(r=_(e.e/q),f=_(m.e/q),c=c.slice(),a=f-r){for(o=(l=a<0)?(t=c,a=-a,p.length):(t=p,r=f,c.length),(n=Math.max(Math.ceil(s/q),o)+2)<a&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for((l=(n=c.length)<(o=p.length))&&(o=n),n=0;n<o;n++)if(c[n]!=p[n]){l=c[n]<p[n];break}a=0}for(l&&(t=c,c=p,p=t,e.s=-e.s),o=c.length,n=p.length-o;0<n;--n)c[o++]=0;for(n=p.length;a<n;){if(c[--n]<p[n]){for(i=n;i&&0===c[--i];)c[i]=I-1;--c[i],c[n]+=I}c[n]-=p[n]}for(;0===c[--o];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=R(c,r),b?D(e,s,u):e):new h(3===u?-0:0)},O.modulo=O.mod=function(e){var t,r=this,n=r.constructor;return e=new n(e),!r.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||r.d&&!r.d[0]?D(new n(r),n.precision,n.rounding):(b=!1,9==n.modulo?(t=A(r,e.abs(),0,3,1)).s*=e.s:t=A(r,e,0,n.modulo,1),t=t.times(e),b=!0,r.minus(t))},O.naturalExponential=O.exp=function(){return G(this)},O.naturalLogarithm=O.ln=function(){return Z(this)},O.negated=O.neg=function(){var e=new this.constructor(this);return e.s=-e.s,D(e)},O.plus=O.add=function(e){var t,r,n,i,a,o,s,u,c,f,l=this,p=l.constructor;if(e=new p(e),!l.d||!e.d)return l.s&&e.s?l.d||(e=new p(e.d||l.s===e.s?l:NaN)):e=new p(NaN),e;if(l.s!=e.s)return e.s=-e.s,l.minus(e);if(c=l.d,f=e.d,s=p.precision,u=p.rounding,!c[0]||!f[0])return f[0]||(e=new p(l)),b?D(e,s,u):e;if(a=_(l.e/q),n=_(e.e/q),c=c.slice(),i=a-n){for((o=(o=i<0?(r=c,i=-i,f.length):(r=f,n=a,c.length))<(a=Math.ceil(s/q))?a+1:o+1)<i&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=c.length)-(i=f.length)<0&&(i=o,r=f,f=c,c=r),t=0;i;)t=(c[--i]=c[i]+f[i]+t)/I|0,c[i]%=I;for(t&&(c.unshift(t),++n),o=c.length;0==c[--o];)c.pop();return e.d=c,e.e=R(c,n),b?D(e,s,u):e},O.precision=O.sd=function(e){var t;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(g+e);return this.d?(t=U(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},O.round=function(){var e=this.constructor;return D(new e(this),this.e+1,e.rounding)},O.sine=O.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+q,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return W(e,2,t,t);r=16<(r=1.4*Math.sqrt(n))?16:0|r,t=t.times(1/Y(5,r)),t=W(e,2,t,t);for(var i,a=new e(5),o=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}(n,X(n,r)),n.precision=e,n.rounding=t,D(2<o?r.neg():r,e,t,!0)):new n(NaN)},O.squareRoot=O.sqrt=function(){var e,t,r,n,i,a,o=this,s=o.d,u=o.e,c=o.s,f=o.constructor;if(1!==c||!s||!s[0])return new f(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);for(b=!1,n=0==(c=Math.sqrt(+o))||c==1/0?(((t=M(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(t),u=_((u+1)/2)-(u<0||u%2),new f(t=c==1/0?"1e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):new f(c.toString()),r=(u=f.precision)+3;;)if(n=(a=n).plus(A(o,a,r+2,1)).times(.5),M(a.d).slice(0,r)===(t=M(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(D(n,u+1,1),e=!n.times(n).eq(o));break}if(!i&&(D(a,u+1,0),a.times(a).eq(o))){n=a;break}r+=4,i=1}return b=!0,D(n,u,f.rounding,e)},O.tangent=O.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=A(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,D(2==o||4==o?r.neg():r,e,t,!0)):new n(NaN)},O.times=O.mul=function(e){var t,r,n,i,a,o,s,u,c,f=this.constructor,l=this.d,p=(e=new f(e)).d;if(e.s*=this.s,!(l&&l[0]&&p&&p[0]))return new f(!e.s||l&&!l[0]&&!p||p&&!p[0]&&!l?NaN:l&&p?0*e.s:e.s/0);for(r=_(this.e/q)+_(e.e/q),(u=l.length)<(c=p.length)&&(a=l,l=p,p=a,o=u,u=c,c=o),a=[],n=o=u+c;n--;)a.push(0);for(n=c;0<=--n;){for(t=0,i=u+n;n<i;)s=a[i]+p[n]*l[i-n-1]+t,a[i--]=s%I|0,t=s/I|0;a[i]=(a[i]+t)%I|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=R(a,r),b?D(e,f.precision,f.rounding):e},O.toBinary=function(e,t){return r(this,2,e,t)},O.toDecimalPlaces=O.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(E(e,0,d),void 0===t?t=n.rounding:E(t,0,8),D(r,e+r.e+1,t))},O.toExponential=function(e,t){var r,n=this,i=n.constructor;return r=void 0===e?C(n,!0):(E(e,0,d),void 0===t?t=i.rounding:E(t,0,8),C(n=D(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},O.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return r=void 0===e?C(i):(E(e,0,d),void 0===t?t=a.rounding:E(t,0,8),C(n=D(new a(i),e+i.e+1,t),!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},O.toFraction=function(e){var t,r,n,i,a,o,s,u,c,f,l,p,m=this,h=m.d,d=m.constructor;if(!h)return new d(m);if(c=r=new d(1),o=(a=(t=new d(n=u=new d(0))).e=U(h)-m.e-1)%q,t.d[0]=v(10,o<0?q+o:o),null==e)e=0<a?t:c;else{if(!(s=new d(e)).isInt()||s.lt(c))throw Error(g+s);e=s.gt(t)?0<a?t:c:s}for(b=!1,s=new d(M(h)),f=d.precision,d.precision=a=h.length*q*2;l=A(s,t,0,1,1),1!=(i=r.plus(l.times(n))).cmp(e);)r=n,n=i,i=c,c=u.plus(l.times(i)),u=i,i=t,t=s.minus(l.times(i)),s=i;return i=A(e.minus(r),n,0,1,1),u=u.plus(i.times(c)),r=r.plus(i.times(n)),u.s=c.s=m.s,p=A(c,n,a,1).minus(m).abs().cmp(A(u,r,a,1).minus(m).abs())<1?[c,n]:[u,r],d.precision=f,b=!0,p},O.toHexadecimal=O.toHex=function(e,t){return r(this,16,e,t)},O.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:E(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(b=!1,r=A(r,e,0,t,1).times(e),b=!0,D(r)):(e.s=r.s,r=e),r},O.toNumber=function(){return+this},O.toOctal=function(e,t){return r(this,8,e,t)},O.toPower=O.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,c=+(e=new u(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new u(v(+s,c));if((s=new u(s)).eq(1))return s;if(n=u.precision,a=u.rounding,e.eq(1))return D(s,n,a);if((t=_(e.e/q))>=e.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return i=H(u,s,r,n),e.s<0?new u(1).div(i):D(i,n,a);if((o=s.s)<0){if(t<e.d.length-1)return new u(NaN);if(0==(1&e.d[t])&&(o=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=o,s}return(t=0!=(r=v(+s,c))&&isFinite(r)?new u(r+"").e:_(c*(Math.log("0."+M(s.d))/Math.LN10+s.e+1)))>u.maxE+1||t<u.minE-1?new u(0<t?o/0:0):(b=!1,u.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=G(e.times(Z(s,n+r)),n)).d&&S((i=D(i,n+5,1)).d,n,a)&&(t=n+10,+M((i=D(G(e.times(Z(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=D(i,n+1,0))),i.s=o,b=!0,D(i,n,u.rounding=a))},O.toPrecision=function(e,t){var r,n=this,i=n.constructor;return r=void 0===e?C(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(E(e,1,d),void 0===t?t=i.rounding:E(t,0,8),C(n=D(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},O.toSignificantDigits=O.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(E(e,1,d),void 0===t?t=r.rounding:E(t,0,8)),D(new r(this),e,t)},O.toString=function(){var e=this,t=e.constructor,r=C(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},O.truncated=O.trunc=function(){return D(new this.constructor(this),this.e+1,1)},O.valueOf=O.toJSON=function(){var e=this,t=e.constructor,r=C(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var A=function(e,t,r,n,i,a){var o,s,u,c,f,l,p,m,h,d,y,g,v,b,x,w,N,O,M,E,S=e.constructor,j=e.s==t.s?1:-1,A=e.d,C=t.d;if(!(A&&A[0]&&C&&C[0]))return new S(e.s&&t.s&&(A?!C||A[0]!=C[0]:C)?A&&0==A[0]||!C?0*j:j/0:NaN);for(s=a?(f=1,e.e-t.e):(a=I,f=q,_(e.e/f)-_(t.e/f)),M=C.length,N=A.length,d=(h=new S(j)).d=[],u=0;C[u]==(A[u]||0);u++);if(C[u]>(A[u]||0)&&s--,null==r?(b=r=S.precision,n=S.rounding):b=i?r+(e.e-t.e)+1:r,b<0)d.push(1),l=!0;else{if(b=b/f+2|0,u=0,1==M){for(C=C[c=0],b++;(u<N||c)&&b--;u++)x=c*a+(A[u]||0),d[u]=x/C|0,c=x%C|0;l=c||u<N}else{for(1<(c=a/(C[0]+1)|0)&&(C=B(C,c,a),A=B(A,c,a),M=C.length,N=A.length),w=M,g=(y=A.slice(0,M)).length;g<M;)y[g++]=0;for((E=C.slice()).unshift(0),O=C[0],C[1]>=a/2&&++O;c=0,(o=k(C,y,M,g))<0?(v=y[0],M!=g&&(v=v*a+(y[1]||0)),1<(c=v/O|0)?(a<=c&&(c=a-1),1==(o=k(p=B(C,c,a),y,m=p.length,g=y.length))&&(c--,z(p,M<m?E:C,m,a))):(0==c&&(o=c=1),p=C.slice()),(m=p.length)<g&&p.unshift(0),z(y,p,g,a),-1==o&&(o=k(C,y,M,g=y.length))<1&&(c++,z(y,M<g?E:C,g,a)),g=y.length):0===o&&(c++,y=[0]),d[u++]=c,o&&y[0]?y[g++]=A[w]||0:(y=[A[w]],g=1),(w++<N||void 0!==y[0])&&b--;);l=void 0!==y[0]}d[0]||d.shift()}if(1==f)h.e=s,T=l;else{for(u=1,c=d[0];10<=c;c/=10)u++;h.e=u+s*f-1,D(h,i?r+h.e+1:r,n,l)}return h};function B(e,t,r){var n,i=0,a=e.length;for(e=e.slice();a--;)n=e[a]*t+i,e[a]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function k(e,t,r,n){var i,a;if(r!=n)a=n<r?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function z(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&1<e.length;)e.shift()}function D(e,t,r,n){var i,a,o,s,u,c,f,l,p,m=e.constructor;e:if(null!=t){if(!(l=e.d))return e;for(i=1,s=l[0];10<=s;s/=10)i++;if((a=t-i)<0)a+=q,o=t,u=(f=l[p=0])/v(10,i-o-1)%10|0;else if(p=Math.ceil((a+1)/q),(s=l.length)<=p){if(!n)break e;for(;s++<=p;)l.push(0);f=u=0,o=(a%=q)-q+(i=1)}else{for(f=s=l[p],i=1;10<=s;s/=10)i++;u=(o=(a%=q)-q+i)<0?0:f/v(10,i-o-1)%10|0}if(n=n||t<0||void 0!==l[p+1]||(o<0?f:f%v(10,i-o-1)),c=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):5<u||5==u&&(4==r||n||6==r&&(0<a?0<o?f/v(10,i-o):0:l[p-1])%10&1||r==(e.s<0?8:7)),t<1||!l[0])return l.length=0,c?(t-=e.e+1,l[0]=v(10,(q-t%q)%q),e.e=-t||0):l[0]=e.e=0,e;if(0==a?(l.length=p,s=1,p--):(l.length=p+1,s=v(10,q-a),l[p]=0<o?(f/v(10,i-o)%v(10,o)|0)*s:0),c)for(;;){if(0==p){for(a=1,o=l[0];10<=o;o/=10)a++;for(o=l[0]+=s,s=1;10<=o;o/=10)s++;a!=s&&(e.e++,l[0]==I&&(l[0]=1));break}if(l[p]+=s,l[p]!=I)break;l[p--]=0,s=1}for(a=l.length;0===l[--a];)l.pop()}return b&&(e.e>m.maxE?(e.d=null,e.e=NaN):e.e<m.minE&&(e.e=0,e.d=[0])),e}function C(e,t,r){if(!e.isFinite())return V(e);var n,i=e.e,a=M(e.d),o=a.length;return t?(r&&0<(n=r-o)?a=a.charAt(0)+"."+a.slice(1)+L(n):1<o&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+L(-i-1)+a,r&&0<(n=r-o)&&(a+=L(n))):o<=i?(a+=L(i+1-o),r&&0<(n=r-i-1)&&(a=a+"."+L(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&0<(n=r-o)&&(i+1===o&&(a+="."),a+=L(n))),a}function R(e,t){var r=e[0];for(t*=q;10<=r;r/=10)t++;return t}function P(e,t,r){if(w<t)throw b=!0,r&&(e.precision=r),Error(a);return D(new e(n),t,1,!0)}function F(e,t,r){if(N<t)throw Error(a);return D(new e(i),t,r,!0)}function U(e){var t=e.length-1,r=t*q+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];10<=t;t/=10)r++}return r}function L(e){for(var t="";e--;)t+="0";return t}function H(e,t,r,n){var i,a=new e(1),o=Math.ceil(n/q+4);for(b=!1;;){if(r%2&&Q((a=a.times(t)).d,o)&&(i=!0),0===(r=_(r/2))){r=a.d.length-1,i&&0===a.d[r]&&++a.d[r];break}Q((t=t.times(t)).d,o)}return b=!0,a}function $(e){return 1&e.d[e.d.length-1]}function e(e,t,r){for(var n,i=new e(t[0]),a=0;++a<t.length;){if(!(n=new e(t[a])).s){i=n;break}i[r](n)&&(i=n)}return i}function G(e,t){var r,n,i,a,o,s,u,c=0,f=0,l=0,p=e.constructor,m=p.rounding,h=p.precision;if(!e.d||!e.d[0]||17<e.e)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(u=null==t?(b=!1,h):t,s=new p(.03125);-2<e.e;)e=e.times(s),l+=5;for(u+=n=Math.log(v(2,l))/Math.LN10*2+5|0,r=a=o=new p(1),p.precision=u;;){if(a=D(a.times(e),u,1),r=r.times(++f),M((s=o.plus(A(a,r,u,1))).d).slice(0,u)===M(o.d).slice(0,u)){for(i=l;i--;)o=D(o.times(o),u,1);if(null!=t)return p.precision=h,o;if(!(c<3&&S(o.d,u-n,m,c)))return D(o,p.precision=h,m,b=!0);p.precision=u+=10,r=a=s=new p(1),f=0,c++}o=s}}function Z(e,t){var r,n,i,a,o,s,u,c,f,l,p,m=1,h=e,d=h.d,y=h.constructor,g=y.rounding,v=y.precision;if(h.s<0||!d||!d[0]||!h.e&&1==d[0]&&1==d.length)return new y(d&&!d[0]?-1/0:1!=h.s?NaN:d?0:h);if(f=null==t?(b=!1,v):t,y.precision=f+=10,n=(r=M(d)).charAt(0),!(Math.abs(a=h.e)<15e14))return c=P(y,f+2,v).times(a+""),h=Z(new y(n+"."+r.slice(1)),f-10).plus(c),y.precision=v,null==t?D(h,v,g,b=!0):h;for(;n<7&&1!=n||1==n&&3<r.charAt(1);)n=(r=M((h=h.times(e)).d)).charAt(0),m++;for(a=h.e,1<n?(h=new y("0."+r),a++):h=new y(n+"."+r.slice(1)),u=o=h=A((l=h).minus(1),h.plus(1),f,1),p=D(h.times(h),f,1),i=3;;){if(o=D(o.times(p),f,1),M((c=u.plus(A(o,new y(i),f,1))).d).slice(0,f)===M(u.d).slice(0,f)){if(u=u.times(2),0!==a&&(u=u.plus(P(y,f+2,v).times(a+""))),u=A(u,new y(m),f,1),null!=t)return y.precision=v,u;if(!S(u.d,f-10,g,s))return D(u,y.precision=v,g,b=!0);y.precision=f+=10,c=o=h=A(l.minus(1),l.plus(1),f,1),p=D(h.times(h),f,1),i=s=1}u=c,i+=2}}function V(e){return String(e.s*e.s/0)}function J(e,t){var r,n,i;for(-1<(r=t.indexOf("."))&&(t=t.replace(".","")),0<(n=t.search(/e/i))?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%q,r<0&&(n+=q),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=q;n<i;)e.d.push(+t.slice(n,n+=q));t=t.slice(n),n=q-t.length}else n-=i;for(;n--;)t+="0";e.d.push(+t),b&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function W(e,t,r,n,i){var a,o,s,u,c=e.precision,f=Math.ceil(c/q);for(b=!1,u=r.times(r),s=new e(n);;){if(o=A(s.times(u),new e(t++*t++),c,1),s=i?n.plus(o):n.minus(o),n=A(o.times(u),new e(t++*t++),c,1),void 0!==(o=s.plus(n)).d[f]){for(a=f;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=n,n=o,o=a,0}return b=!0,o.d.length=f+1,o}function Y(e,t){for(var r=e;--t;)r*=e;return r}function X(e,t){var r,n=t.s<0,i=F(e,e.precision,1),a=i.times(.5);if((t=t.abs()).lte(a))return o=n?4:1,t;if((r=t.divToInt(i)).isZero())o=n?3:2;else{if((t=t.minus(r.times(i))).lte(a))return o=$(r)?n?2:3:n?4:1,t;o=$(r)?n?1:4:n?3:2}return t.minus(i).abs()}function r(e,t,r,n){var i,a,o,s,u,c,f,l,p,m=e.constructor,h=void 0!==r;if(h?(E(r,1,d),void 0===n?n=m.rounding:E(n,0,8)):(r=m.precision,n=m.rounding),e.isFinite()){for(h?(i=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):i=t,0<=(o=(f=C(e)).indexOf("."))&&(f=f.replace(".",""),(p=new m(1)).e=f.length-o,p.d=j(C(p),10,i),p.e=p.d.length),a=u=(l=j(f,10,i)).length;0==l[--u];)l.pop();if(l[0]){if(o<0?a--:((e=new m(e)).d=l,e.e=a,l=(e=A(e,p,r,n,0,i)).d,a=e.e,c=T),o=l[r],s=i/2,c=c||void 0!==l[r+1],c=n<4?(void 0!==o||c)&&(0===n||n===(e.s<0?3:2)):s<o||o===s&&(4===n||c||6===n&&1&l[r-1]||n===(e.s<0?8:7)),l.length=r,c)for(;++l[--r]>i-1;)l[r]=0,r||(++a,l.unshift(1));for(u=l.length;!l[u-1];--u);for(o=0,f="";o<u;o++)f+=y.charAt(l[o]);if(h){if(1<u)if(16==t||8==t){for(o=16==t?4:3,--u;u%o;u++)f+="0";for(u=(l=j(f,i,t)).length;!l[u-1];--u);for(o=1,f="1.";o<u;o++)f+=y.charAt(l[o])}else f=f.charAt(0)+"."+f.slice(1);f=f+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)f="0"+f;f="0."+f}else if(++a>u)for(a-=u;a--;)f+="0";else a<u&&(f=f.slice(0,a)+"."+f.slice(a))}else f=h?"0p+0":"0";f=(16==t?"0x":2==t?"0b":8==t?"0o":"")+f}else f=V(e);return e.s<0?"-"+f:f}function Q(e,t){if(e.length>t)return e.length=t,!0}function K(e){return new this(e).abs()}function ee(e){return new this(e).acos()}function te(e){return new this(e).acosh()}function re(e,t){return new this(e).plus(t)}function ne(e){return new this(e).asin()}function ie(e){return new this(e).asinh()}function ae(e){return new this(e).atan()}function oe(e){return new this(e).atanh()}function se(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?F(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=F(this,a,1).times(.5)).s=e.s:r=t.s<0?(this.precision=a,this.rounding=1,r=this.atan(A(e,t,a,1)),t=F(this,a,1),this.precision=n,this.rounding=i,e.s<0?r.minus(t):r.plus(t)):this.atan(A(e,t,a,1)):(r=F(this,a,1).times(0<t.s?.25:.75)).s=e.s:r=new this(NaN),r}function ue(e){return new this(e).cbrt()}function ce(e){return D(e=new this(e),e.e+1,2)}function fe(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,r,n,i=!0===e.defaults,a=["precision",1,d,"rounding",0,8,"toExpNeg",-s,0,"toExpPos",0,s,"maxE",0,s,"minE",-s,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(r=a[t],i&&(this[r]=u[r]),void 0!==(n=e[r])){if(!(_(n)===n&&a[t+1]<=n&&n<=a[t+2]))throw Error(g+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=u[r]),void 0!==(n=e[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(g+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(f);this[r]=!0}else this[r]=!1}return this}function le(e){return new this(e).cos()}function pe(e){return new this(e).cosh()}function me(e,t){return new this(e).div(t)}function he(e){return new this(e).exp()}function de(e){return D(e=new this(e),e.e+1,3)}function ye(){var e,t,r=new this(0);for(b=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return b=!0,new this(1/0);r=t}return b=!0,r.sqrt()}function ge(e){return e instanceof l||e&&"[object Decimal]"===e.name||!1}function ve(e){return new this(e).ln()}function be(e,t){return new this(e).log(t)}function xe(e){return new this(e).log(2)}function we(e){return new this(e).log(10)}function Ne(){return e(this,arguments,"lt")}function Oe(){return e(this,arguments,"gt")}function Me(e,t){return new this(e).mod(t)}function Ee(e,t){return new this(e).mul(t)}function Se(e,t){return new this(e).pow(t)}function je(e){var t,r,n,i,a=0,o=new this(1),s=[];if(void 0===e?e=this.precision:E(e,1,d),n=Math.ceil(e/q),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));a<n;)429e7<=(i=t[a])?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else{if(!crypto.randomBytes)throw Error(f);for(t=crypto.randomBytes(n*=4);a<n;)214e7<=(i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24))?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=n/4}else for(;a<n;)s[a++]=1e7*Math.random()|0;for(n=s[--a],e%=q,n&&e&&(i=v(10,q-e),s[a]=(n/i|0)*i);0===s[a];a--)s.pop();if(a<0)s=[r=0];else{for(r=-1;0===s[0];r-=q)s.shift();for(n=1,i=s[0];10<=i;i/=10)n++;n<q&&(r-=q-n)}return o.e=r,o.d=s,o}function Ae(e){return D(e=new this(e),e.e+1,this.rounding)}function Ce(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Te(e){return new this(e).sin()}function _e(e){return new this(e).sinh()}function Ie(e){return new this(e).sqrt()}function qe(e,t){return new this(e).sub(t)}function Be(e){return new this(e).tan()}function ke(e){return new this(e).tanh()}function ze(e){return D(e=new this(e),e.e+1,1)}(l=function e(t){var r,n,i;function a(e){var t,r,n,i=this;if(!(i instanceof a))return new a(e);if(e instanceof(i.constructor=a))return i.s=e.s,void(b?!e.d||e.e>a.maxE?(i.e=NaN,i.d=null):e.e<a.minE?(i.e=0,i.d=[0]):(i.e=e.e,i.d=e.d.slice()):(i.e=e.e,i.d=e.d?e.d.slice():e.d));if("number"==(n=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(i.s=e<0?(e=-e,-1):1,e===~~e&&e<1e7){for(t=0,r=e;10<=r;r/=10)t++;return void(b?a.maxE<t?(i.e=NaN,i.d=null):t<a.minE?(i.e=0,i.d=[0]):(i.e=t,i.d=[e]):(i.e=t,i.d=[e]))}return 0*e!=0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):J(i,e.toString())}if("string"!=n)throw Error(g+e);return 45===(r=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===r&&(e=e.slice(1)),i.s=1),x.test(e)?J(i,e):function(e,t){var r,n,i,a,o,s,u,c,f;if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(m.test(t))r=16,t=t.toLowerCase();else if(p.test(t))r=2;else{if(!h.test(t))throw Error(g+t);r=8}for(o=0<=(a=(t=0<(a=t.search(/p/i))?(u=+t.slice(a+1),t.substring(2,a)):t.slice(2)).indexOf(".")),n=e.constructor,o&&(a=(s=(t=t.replace(".","")).length)-a,i=H(n,new n(r),a,2*a)),a=f=(c=j(t,r,I)).length-1;0===c[a];--a)c.pop();return a<0?new n(0*e.s):(e.e=R(c,f),e.d=c,b=!1,o&&(e=A(e,i,4*s)),u&&(e=e.times(Math.abs(u)<54?v(2,u):l.pow(2,u))),b=!0,e)}(i,e)}if(a.prototype=O,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=fe,a.clone=e,a.isDecimal=ge,a.abs=K,a.acos=ee,a.acosh=te,a.add=re,a.asin=ne,a.asinh=ie,a.atan=ae,a.atanh=oe,a.atan2=se,a.cbrt=ue,a.ceil=ce,a.cos=le,a.cosh=pe,a.div=me,a.exp=he,a.floor=de,a.hypot=ye,a.ln=ve,a.log=be,a.log10=we,a.log2=xe,a.max=Ne,a.min=Oe,a.mod=Me,a.mul=Ee,a.pow=Se,a.random=je,a.round=Ae,a.sign=Ce,a.sin=Te,a.sinh=_e,a.sqrt=Ie,a.sub=qe,a.tan=Be,a.tanh=ke,a.trunc=ze,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}(u)).default=l.Decimal=l,n=new l(n),i=new l(i),void 0===(Pe=function(){return l}.call(De,Re,De,t))||(t.exports=Pe)}()},function(e,t,r){"use strict";function l(e,t){return p({},e,t)}var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m={"{":"\\{","}":"\\}","\\":"\\textbackslash{}","#":"\\#",$:"\\$","%":"\\%","&":"\\&","^":"\\textasciicircum{}",_:"\\_","~":"\\textasciitilde{}"},h={"–":"\\--","—":"\\---"," ":"~","\t":"\\qquad{}","\r\n":"\\newline{}","\n":"\\newline{}"};e.exports=function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=t.preserveFormatting,n=void 0!==r&&r,i=t.escapeMapFn,a=void 0===i?l:i,o=String(e),s="",u=a(p({},m),n?p({},h):{}),c=Object.keys(u),f=function(){var r=!1;c.forEach(function(e,t){r||o.length>=e.length&&o.slice(0,e.length)===e&&(s+=u[c[t]],o=o.slice(e.length,o.length),r=!0)}),r||(s+=o.slice(0,1),o=o.slice(1,o.length))};o;)f();return s}},function(e,t){function r(){}r.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],i=[];if(n&&t)for(var a=0,o=n.length;a<o;a++)n[a].fn!==t&&n[a].fn._!==t&&i.push(n[a]);return i.length?r[e]=i:delete r[e],this}},e.exports=r,e.exports.TinyEmitter=r},function(e,t,r){var n=r(21),i=(0,r(22).create)(n);e.exports=i},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";r.r(t);var ie=r(1),n=r(14),i=r.n(n),S=r(3),s=r(0),o=function(){return o=i.a.create,i.a},a=["?BigNumber","?Complex","?DenseMatrix","?Fraction"],u=Object(s.a)("typed",a,function(e){var r=e.BigNumber,n=e.Complex,t=e.DenseMatrix,i=e.Fraction,a=o();return a.types=[{name:"number",test:ie.y},{name:"Complex",test:ie.j},{name:"BigNumber",test:ie.e},{name:"Fraction",test:ie.o},{name:"Unit",test:ie.L},{name:"string",test:ie.I},{name:"Chain",test:ie.h},{name:"Array",test:ie.b},{name:"Matrix",test:ie.v},{name:"DenseMatrix",test:ie.n},{name:"SparseMatrix",test:ie.H},{name:"Range",test:ie.D},{name:"Index",test:ie.t},{name:"boolean",test:ie.g},{name:"ResultSet",test:ie.G},{name:"Help",test:ie.s},{name:"function",test:ie.p},{name:"Date",test:ie.m},{name:"RegExp",test:ie.F},{name:"null",test:ie.x},{name:"undefined",test:ie.K},{name:"AccessorNode",test:ie.a},{name:"ArrayNode",test:ie.c},{name:"AssignmentNode",test:ie.d},{name:"BlockNode",test:ie.f},{name:"ConditionalNode",test:ie.k},{name:"ConstantNode",test:ie.l},{name:"FunctionNode",test:ie.r},{name:"FunctionAssignmentNode",test:ie.q},{name:"IndexNode",test:ie.u},{name:"Node",test:ie.w},{name:"ObjectNode",test:ie.A},{name:"OperatorNode",test:ie.B},{name:"ParenthesisNode",test:ie.C},{name:"RangeNode",test:ie.E},{name:"SymbolNode",test:ie.J},{name:"Object",test:ie.z}],a.conversions=[{from:"number",to:"BigNumber",convert:function(e){if(r||c(e),15<Object(S.f)(e))throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new r(e)}},{from:"number",to:"Complex",convert:function(e){return n||f(e),new n(e,0)}},{from:"number",to:"string",convert:function(e){return e+""}},{from:"BigNumber",to:"Complex",convert:function(e){return n||f(e),new n(e.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(e){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return n||f(e),new n(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||l(e);var t=new i(e);if(t.valueOf()!==e)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return t}},{from:"string",to:"number",convert:function(e){var t=Number(e);if(isNaN(t))throw new Error('Cannot convert "'+e+'" to a number');return t}},{from:"string",to:"BigNumber",convert:function(t){r||c(t);try{return new r(t)}catch(e){throw new Error('Cannot convert "'+t+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(t){i||l(t);try{return new i(t)}catch(e){throw new Error('Cannot convert "'+t+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(t){n||f(t);try{return new n(t)}catch(e){throw new Error('Cannot convert "'+t+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return r||c(e),new r(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||l(e),new i(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return t||function(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new t(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}],a});function c(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function f(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function l(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var p=[],m=Object(s.a)("ResultSet",p,function(){function t(e){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");this.entries=e||[]}return t.prototype.type="ResultSet",t.prototype.isResultSet=!0,t.prototype.valueOf=function(){return this.entries},t.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},t.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},t.fromJSON=function(e){return new t(e.entries)},t},{isClass:!0}),h=r(16),d=r.n(h),y=["?on","config"],g=Object(s.a)("BigNumber",y,function(e){var t=e.on,r=e.config,n=d.a.clone({precision:r.precision});return n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(e){return new n(e.value)},t&&t("config",function(e,t){e.precision!==t.precision&&n.config({precision:e.precision})}),n},{isClass:!0}),v=r(9),b=r.n(v);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var w=[],N=Object(s.a)("Complex",w,function(){return b.a.prototype.type="Complex",b.a.prototype.isComplex=!0,b.a.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},b.a.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},b.a.prototype.format=function(e){var t=this.im,r=this.re,n=Object(S.h)(this.re,e),i=Object(S.h)(this.im,e),a=Object(ie.y)(e)?e:e?e.precision:null;if(null!==a){var o=Math.pow(10,-a);Math.abs(r/t)<o&&(r=0),Math.abs(t/r)<o&&(t=0)}return 0===t?n:0===r?1===t?"i":-1===t?"-i":i+"i":t<0?-1===t?n+" - i":n+" - "+i.substring(1)+"i":1===t?n+" + i":n+" + "+i+"i"},b.a.fromPolar=function(e){switch(arguments.length){case 1:var t=e;if("object"===x(t))return b()(t);throw new TypeError("Input has to be an object with r and phi keys.");case 2:var r=e,n=arguments[1];if(Object(ie.y)(r)){if(Object(ie.L)(n)&&n.hasBase("ANGLE")&&(n=n.toNumber("rad")),Object(ie.y)(n))return new b.a({r:r,phi:n});throw new TypeError("Phi is not a number nor an angle unit.")}throw new TypeError("Radius r is not a number.");default:throw new SyntaxError("Wrong number of arguments in function fromPolar")}},b.a.prototype.valueOf=b.a.prototype.toString,b.a.fromJSON=function(e){return new b.a(e)},b.a.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},b.a},{isClass:!0}),O=r(11),M=r.n(O),E=[],j=Object(s.a)("Fraction",E,function(){return M.a.prototype.type="Fraction",M.a.prototype.isFraction=!0,M.a.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},M.a.fromJSON=function(e){return new M.a(e)},M.a},{isClass:!0}),A=[],C=Object(s.a)("Range",A,function(){function o(e,t,r){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");var n=null!=e,i=null!=t,a=null!=r;if(n)if(Object(ie.e)(e))e=e.toNumber();else if("number"!=typeof e)throw new TypeError("Parameter start must be a number");if(i)if(Object(ie.e)(t))t=t.toNumber();else if("number"!=typeof t)throw new TypeError("Parameter end must be a number");if(a)if(Object(ie.e)(r))r=r.toNumber();else if("number"!=typeof r)throw new TypeError("Parameter step must be a number");this.start=n?parseFloat(e):0,this.end=i?parseFloat(t):0,this.step=a?parseFloat(r):1}return o.prototype.type="Range",o.prototype.isRange=!0,o.parse=function(e){if("string"!=typeof e)return null;var t=e.split(":").map(function(e){return parseFloat(e)});if(t.some(function(e){return isNaN(e)}))return null;switch(t.length){case 2:return new o(t[0],t[1]);case 3:return new o(t[0],t[2],t[1]);default:return null}},o.prototype.clone=function(){return new o(this.start,this.end,this.step)},o.prototype.size=function(){var e=0,t=this.start,r=this.step,n=this.end-t;return Object(S.n)(r)===Object(S.n)(n)?e=Math.ceil(n/r):0==n&&(e=0),isNaN(e)&&(e=0),[e]},o.prototype.min=function(){var e=this.size()[0];return 0<e?0<this.step?this.start:this.start+(e-1)*this.step:void 0},o.prototype.max=function(){var e=this.size()[0];return 0<e?0<this.step?this.start+(e-1)*this.step:this.start:void 0},o.prototype.forEach=function(e){var t=this.start,r=this.step,n=this.end,i=0;if(0<r)for(;t<n;)e(t,[i],this),t+=r,i++;else if(r<0)for(;n<t;)e(t,[i],this),t+=r,i++},o.prototype.map=function(n){var i=[];return this.forEach(function(e,t,r){i[t[0]]=n(e,t,r)}),i},o.prototype.toArray=function(){var r=[];return this.forEach(function(e,t){r[t[0]]=e}),r},o.prototype.valueOf=function(){return this.toArray()},o.prototype.format=function(e){var t=Object(S.h)(this.start,e);return 1!==this.step&&(t+=":"+Object(S.h)(this.step,e)),t+=":"+Object(S.h)(this.end,e)},o.prototype.toString=function(){return this.format()},o.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},o.fromJSON=function(e){return new o(e.start,e.end,e.step)},o},{isClass:!0}),T=[],_=Object(s.a)("Matrix",T,function(){function e(){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.storage=function(e){throw new Error("Matrix.storage is deprecated since v6.0.0. Use the factory function math.matrix instead.")},e.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(e,t){throw new Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(e,t,r){throw new Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(e){throw new Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(e,t,r){throw new Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(e,t){throw new Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(e,t){throw new Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(e,t){throw new Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(e){throw new Error("Cannot invoke forEach on a Matrix interface")},e.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(e){throw new Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0}),I=r(2),J=r(5),W=r(4),D=r(6),q=["Matrix"],B=Object(s.a)("DenseMatrix",q,function(e){var t=e.Matrix;function m(e,t){if(!(this instanceof m))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!Object(ie.I)(t))throw new Error("Invalid datatype: "+t);if(Object(ie.v)(e))"DenseMatrix"===e.type?(this._data=Object(W.a)(e._data),this._size=Object(W.a)(e._size)):(this._data=e.toArray(),this._size=e.size()),this._datatype=t||e._datatype;else if(e&&Object(ie.b)(e.data)&&Object(ie.b)(e.size))this._data=e.data,this._size=e.size,this._datatype=t||e.datatype;else if(Object(ie.b)(e))this._data=function e(t){for(var r=0,n=t.length;r<n;r++){var i=t[r];Object(ie.b)(i)?t[r]=e(i):i&&!0===i.isMatrix&&(t[r]=e(i.valueOf()))}return t}(e),this._size=Object(I.a)(this._data),Object(I.r)(this._data,this._size),this._datatype=t;else{if(e)throw new TypeError("Unsupported type of data ("+Object(ie.M)(e)+")");this._data=[],this._size=[0],this._datatype=t}}function s(e,t,r){if(0!==t.length)return e._size=t.slice(0),e._data=Object(I.o)(e._data,e._size,r),e;for(var n=e._data;Object(ie.b)(n);)n=n[0];return n}function l(e,t,r){for(var n=e._size.slice(0),i=!1;n.length<t.length;)n.push(0),i=!0;for(var a=0,o=t.length;a<o;a++)t[a]>n[a]&&(n[a]=t[a],i=!0);i&&s(e,n,r)}return(m.prototype=new t).createDenseMatrix=function(e,t){return new m(e,t)},m.prototype.type="DenseMatrix",m.prototype.isDenseMatrix=!0,m.prototype.getDataType=function(){return Object(I.h)(this._data,ie.M)},m.prototype.storage=function(){return"dense"},m.prototype.datatype=function(){return this._datatype},m.prototype.create=function(e,t){return new m(e,t)},m.prototype.subset=function(e,t,r){switch(arguments.length){case 1:return function(e,t){if(!Object(ie.t)(t))throw new TypeError("Invalid index");{if(t.isScalar())return e.get(t.min());var r=t.size();if(r.length!==e._size.length)throw new D.a(r.length,e._size.length);for(var n=t.min(),i=t.max(),a=0,o=e._size.length;a<o;a++)Object(I.s)(n[a],e._size[a]),Object(I.s)(i[a],e._size[a]);return new m(function r(n,i,a,o){var e=o===a-1;var t=i.dimension(o);return e?t.map(function(e){return Object(I.s)(e,n.length),n[e]}).valueOf():t.map(function(e){Object(I.s)(e,n.length);var t=n[e];return r(t,i,a,o+1)}).valueOf()}(e._data,t,r.length,0),e._datatype)}}(this,e);case 2:case 3:return function(e,t,r,n){if(!t||!0!==t.isIndex)throw new TypeError("Invalid index");var i,a=t.size(),o=t.isScalar();Object(ie.v)(r)?(i=r.size(),r=r.valueOf()):i=Object(I.a)(r);if(o){if(0!==i.length)throw new TypeError("Scalar expected");e.set(t.min(),r,n)}else{if(a.length<e._size.length)throw new D.a(a.length,e._size.length,"<");if(i.length<a.length){for(var s=0,u=0;1===a[s]&&1===i[s];)s++;for(;1===a[s];)u++,s++;r=Object(I.q)(r,a.length,u,i)}if(!Object(W.d)(a,i))throw new D.a(a,i,">");var c=t.max().map(function(e){return e+1});l(e,c,n);var f=a.length;!function r(n,i,a,o,s){var e=s===o-1;var t=i.dimension(s);e?t.forEach(function(e,t){Object(I.s)(e),n[e]=a[t[0]]}):t.forEach(function(e,t){Object(I.s)(e),r(n[e],i,a[t[0]],o,s+1)})}(e._data,t,r,f,0)}return e}(this,e,t,r);default:throw new SyntaxError("Wrong number of arguments")}},m.prototype.get=function(e){if(!Object(ie.b)(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new D.a(e.length,this._size.length);for(var t=0;t<e.length;t++)Object(I.s)(e[t],this._size[t]);for(var r=this._data,n=0,i=e.length;n<i;n++){var a=e[n];Object(I.s)(a,r.length),r=r[a]}return r},m.prototype.set=function(e,t,r){if(!Object(ie.b)(e))throw new TypeError("Array expected");if(e.length<this._size.length)throw new D.a(e.length,this._size.length,"<");var n,i,a;l(this,e.map(function(e){return e+1}),r);var o=this._data;for(n=0,i=e.length-1;n<i;n++)a=e[n],Object(I.s)(a,o.length),o=o[a];return a=e[e.length-1],Object(I.s)(a,o.length),o[a]=t,this},m.prototype.resize=function(e,t,r){if(!Object(ie.b)(e))throw new TypeError("Array expected");return s(r?this.clone():this,e,t)},m.prototype.reshape=function(e,t){var r=t?this.clone():this;return r._data=Object(I.n)(r._data,e),r._size=e.slice(0),r},m.prototype.clone=function(){return new m({data:Object(W.a)(this._data),size:Object(W.a)(this._size),datatype:this._datatype})},m.prototype.size=function(){return this._size.slice(0)},m.prototype.map=function(t){var i=this;return new m({data:function r(e,n){return Object(ie.b)(e)?e.map(function(e,t){return r(e,n.concat(t))}):t(e,n,i)}(this._data,[]),size:Object(W.a)(this._size),datatype:this._datatype})},m.prototype.forEach=function(t){var i=this;!function r(e,n){Object(ie.b)(e)?e.forEach(function(e,t){r(e,n.concat(t))}):t(e,n,i)}(this._data,[])},m.prototype.toArray=function(){return Object(W.a)(this._data)},m.prototype.valueOf=function(){return this._data},m.prototype.format=function(e){return Object(J.d)(this._data,e)},m.prototype.toString=function(){return Object(J.d)(this._data)},m.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},m.prototype.diagonal=function(e){if(e){if(Object(ie.e)(e)&&(e=e.toNumber()),!Object(ie.y)(e)||!Object(S.i)(e))throw new TypeError("The parameter k must be an integer number")}else e=0;for(var t=0<e?e:0,r=e<0?-e:0,n=this._size[0],i=this._size[1],a=Math.min(n-r,i-t),o=[],s=0;s<a;s++)o[s]=this._data[s+r][s+t];return new m({data:o,size:[a],datatype:this._datatype})},m.diagonal=function(e,t,r,n){if(!Object(ie.b)(e))throw new TypeError("Array expected, size parameter");if(2!==e.length)throw new Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if(Object(ie.e)(e)&&(e=e.toNumber()),!Object(ie.y)(e)||!Object(S.i)(e)||e<1)throw new Error("Size values must be positive integers");return e}),r){if(Object(ie.e)(r)&&(r=r.toNumber()),!Object(ie.y)(r)||!Object(S.i)(r))throw new TypeError("The parameter k must be an integer number")}else r=0;var i,a=0<r?r:0,o=r<0?-r:0,s=e[0],u=e[1],c=Math.min(s-o,u-a);if(Object(ie.b)(t)){if(t.length!==c)throw new Error("Invalid value array length");i=function(e){return t[e]}}else if(Object(ie.v)(t)){var f=t.size();if(1!==f.length||f[0]!==c)throw new Error("Invalid matrix length");i=function(e){return t.get([e])}}else i=function(){return t};n=n||(Object(ie.e)(i(0))?i(0).mul(0):0);var l=[];if(0<e.length){l=Object(I.o)(l,e,n);for(var p=0;p<c;p++)l[p+o][p+a]=i(p)}return new m({data:l,size:[s,u]})},m.fromJSON=function(e){return new m(e)},m.prototype.swapRows=function(e,t){if(!(Object(ie.y)(e)&&Object(S.i)(e)&&Object(ie.y)(t)&&Object(S.i)(t)))throw new Error("Row index must be positive integers");if(2!==this._size.length)throw new Error("Only two dimensional matrix is supported");return Object(I.s)(e,this._size[0]),Object(I.s)(t,this._size[0]),m._swapRows(e,t,this._data),this},m._swapRows=function(e,t,r){var n=r[e];r[e]=r[t],r[t]=n},m},{isClass:!0}),k=["typed"],z=Object(s.a)("clone",k,function(e){return(0,e.typed)("clone",{any:W.a})}),R=r(10);function P(e){for(var t=0;t<e.length;t++)if(Object(ie.i)(e[t]))return!0;return!1}function F(e,t){Object(ie.v)(e)&&(e=e.valueOf());for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?F(i,t):t(i)}}function ae(e,t,r){return e&&"function"==typeof e.map?e.map(function(e){return ae(e,t,r)}):t(e)}function U(e,t,r){var n=Array.isArray(e)?Object(I.a)(e):e.size();if(t<0||t>=n.length)throw new R.a(t,n.length);return Object(ie.v)(e)?e.create(L(e.valueOf(),t,r)):L(e,t,r)}function L(e,t,r){var n,i,a,o;if(t<=0){if(Array.isArray(e[0])){for(o=function(e){var t,r,n=e.length,i=e[0].length,a=[];for(r=0;r<i;r++){var o=[];for(t=0;t<n;t++)o.push(e[t][r]);a.push(o)}return a}(e),i=[],n=0;n<o.length;n++)i[n]=L(o[n],t-1,r);return i}for(a=e[0],n=1;n<e.length;n++)a=r(a,e[n]);return a}for(i=[],n=0;n<e.length;n++)i[n]=L(e[n],t-1,r);return i}function H(e,t,r,n,i,a,o,s,u,c,f){var l,p,m,h,d=e._values,y=e._index,g=e._ptr,v=o._index;if(n)for(p=g[t],m=g[t+1],l=p;l<m;l++)r[h=y[l]]!==a?(r[h]=a,v.push(h),c?(n[h]=u?s(d[l],f):s(f,d[l]),i[h]=a):n[h]=d[l]):(n[h]=u?s(d[l],n[h]):s(n[h],d[l]),i[h]=a);else for(p=g[t],m=g[t+1],l=p;l<m;l++)r[h=y[l]]!==a?(r[h]=a,v.push(h)):i[h]=a}var $="isInteger",G=["typed"],Z=Object(s.a)($,G,function(e){var t=(0,e.typed)($,{number:S.i,BigNumber:function(e){return e.isInt()},Fraction:function(e){return 1===e.d&&isFinite(e.n)},"Array | Matrix":function(e){return ae(e,t)}});return t}),V="number";function Y(e){return e<0}function X(e){return 0<e}function Q(e){return 0===e}function K(e){return Number.isNaN(e)}K.signature=Q.signature=X.signature=Y.signature=V;var ee="isNegative",te=["typed"],re=Object(s.a)(ee,te,function(e){var t=(0,e.typed)(ee,{number:Y,BigNumber:function(e){return e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return e.s<0},Unit:function(e){return t(e.value)},"Array | Matrix":function(e){return ae(e,t)}});return t}),ne="isNumeric",oe=["typed"],se=Object(s.a)(ne,oe,function(e){var t=(0,e.typed)(ne,{"number | BigNumber | Fraction | boolean":function(){return!0},"Complex | Unit | string | null | undefined | Node":function(){return!1},"Array | Matrix":function(e){return ae(e,t)}});return t}),ue="hasNumericValue",ce=["typed","isNumeric"],fe=Object(s.a)(ue,ce,function(e){var t=e.typed,r=e.isNumeric;return t(ue,{string:function(e){return 0<e.trim().length&&!isNaN(Number(e))},any:function(e){return r(e)}})}),le="isPositive",pe=["typed"],me=Object(s.a)(le,pe,function(e){var t=(0,e.typed)(le,{number:X,BigNumber:function(e){return!e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return 0<e.s&&0<e.n},Unit:function(e){return t(e.value)},"Array | Matrix":function(e){return ae(e,t)}});return t}),he=["typed"],de=Object(s.a)("isZero",he,function(e){var t=(0,e.typed)("isZero",{number:Q,BigNumber:function(e){return e.isZero()},Complex:function(e){return 0===e.re&&0===e.im},Fraction:function(e){return 1===e.d&&0===e.n},Unit:function(e){return t(e.value)},"Array | Matrix":function(e){return ae(e,t)}});return t}),ye=["typed"],ge=Object(s.a)("isNaN",ye,function(e){return(0,e.typed)("isNaN",{number:K,BigNumber:function(e){return e.isNaN()},Fraction:function(e){return!1},Complex:function(e){return e.isNaN()},Unit:function(e){return Number.isNaN(e.value)},"Array | Matrix":function(e){return ae(e,Number.isNaN)}})}),ve=r(8),be=["typed"],xe=Object(s.a)("typeOf",be,function(e){return(0,e.typed)("typeOf",{any:ie.M})}),we=Object(s.a)("typeof",[],function(){return function(){Object(ve.a)('Function "typeof" has been renamed to "typeOf" in v6.0.0, please use the new function instead.');for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ie.M.apply(ie.M,t)}});function Ne(e,t,r){if(null==r)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var n=e.minus(t).abs();if(n.isZero())return!0;var i=e.constructor.max(e.abs(),t.abs());return n.lte(i.times(r))}return!1}var Oe="equalScalar",Me=["typed","config"],Ee=Object(s.a)(Oe,Me,function(e){var t=e.typed,r=e.config,n=t(Oe,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return Object(S.m)(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||Ne(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){return function(e,t,r){return Object(S.m)(e.re,t.re,r)&&Object(S.m)(e.im,t.im,r)}(e,t,r.epsilon)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return n(e.value,t.value)}});return n}),Se=(Object(s.a)(Oe,["typed","config"],function(e){var t=e.typed,r=e.config;return t(Oe,{"number, number":function(e,t){return Object(S.m)(e,t,r.epsilon)}})}),["typed","equalScalar","Matrix"]),je=Object(s.a)("SparseMatrix",Se,function(e){var O=e.typed,M=e.equalScalar,t=e.Matrix;function E(e,t){if(!(this instanceof E))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!Object(ie.I)(t))throw new Error("Invalid datatype: "+t);if(Object(ie.v)(e))!function(e,t,r){"SparseMatrix"===t.type?(e._values=t._values?Object(W.a)(t._values):void 0,e._index=Object(W.a)(t._index),e._ptr=Object(W.a)(t._ptr),e._size=Object(W.a)(t._size),e._datatype=r||t._datatype):n(e,t.valueOf(),r||t._datatype)}(this,e,t);else if(e&&Object(ie.b)(e.index)&&Object(ie.b)(e.ptr)&&Object(ie.b)(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if(Object(ie.b)(e))n(this,e,t);else{if(e)throw new TypeError("Unsupported type of data ("+Object(ie.M)(e)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}}function n(e,t,r){e._values=[],e._index=[],e._ptr=[],e._datatype=r;var n=t.length,i=0,a=M,o=0;if(Object(ie.I)(r)&&(a=O.find(M,[r,r])||M,o=O.convert(0,r)),0<n){var s=0;do{e._ptr.push(e._index.length);for(var u=0;u<n;u++){var c=t[u];if(Object(ie.b)(c)){if(0===s&&i<c.length&&(i=c.length),s<c.length){var f=c[s];a(f,o)||(e._values.push(f),e._index.push(u))}}else 0===s&&i<1&&(i=1),a(c,o)||(e._values.push(c),e._index.push(u))}s++}while(s<i)}e._ptr.push(e._index.length),e._size=[n,i]}function g(e,t,r,n){if(r-t==0)return r;for(var i=t;i<r;i++)if(n[i]===e)return i;return t}function v(e,t,r,n,i,a,o){i.splice(e,0,n),a.splice(e,0,t);for(var s=r+1;s<o.length;s++)o[s]++}function f(e,t,r,n){var i=n||0,a=M,o=0;Object(ie.I)(e._datatype)&&(a=O.find(M,[e._datatype,e._datatype])||M,o=O.convert(0,e._datatype),i=O.convert(i,e._datatype));var s,u,c,f=!a(i,o),l=e._size[0],p=e._size[1];if(p<r){for(u=p;u<r;u++)if(e._ptr[u]=e._values.length,f)for(s=0;s<l;s++)e._values.push(i),e._index.push(s);e._ptr[r]=e._values.length}else r<p&&(e._ptr.splice(r+1,p-r),e._values.splice(e._ptr[r],e._values.length),e._index.splice(e._ptr[r],e._index.length));if(p=r,l<t){if(f){var m=0;for(u=0;u<p;u++){e._ptr[u]=e._ptr[u]+m,c=e._ptr[u+1]+m;var h=0;for(s=l;s<t;s++,h++)e._values.splice(c+h,0,i),e._index.splice(c+h,0,s),m++}e._ptr[p]=e._values.length}}else if(t<l){var d=0;for(u=0;u<p;u++){e._ptr[u]=e._ptr[u]-d;var y=e._ptr[u],g=e._ptr[u+1]-d;for(c=y;c<g;c++)t-1<(s=e._index[c])&&(e._values.splice(c,1),e._index.splice(c,1),d++)}e._ptr[u]=e._values.length}return e._size[0]=t,e._size[1]=r,e}function r(e,t,r,n,i){var a,o,s=n[0],u=n[1],c=[];for(a=0;a<s;a++)for(c[a]=[],o=0;o<u;o++)c[a][o]=0;for(o=0;o<u;o++)for(var f=r[o],l=r[o+1],p=f;p<l;p++)c[a=t[p]][o]=e?i?Object(W.a)(e[p]):e[p]:1;return c}return(E.prototype=new t).createSparseMatrix=function(e,t){return new E(e,t)},E.prototype.type="SparseMatrix",E.prototype.isSparseMatrix=!0,E.prototype.getDataType=function(){return Object(I.h)(this._values,ie.M)},E.prototype.storage=function(){return"sparse"},E.prototype.datatype=function(){return this._datatype},E.prototype.create=function(e,t){return new E(e,t)},E.prototype.density=function(){var e=this._size[0],t=this._size[1];return 0!==e&&0!==t?this._index.length/(e*t):0},E.prototype.subset=function(e,t,r){if(!this._values)throw new Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return function(e,t){if(!Object(ie.t)(t))throw new TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var r,n,i,a,o=t.size();if(o.length!==e._size.length)throw new D.a(o.length,e._size.length);var s=t.min(),u=t.max();for(r=0,n=e._size.length;r<n;r++)Object(I.s)(s[r],e._size[r]),Object(I.s)(u[r],e._size[r]);var c=e._values,f=e._index,l=e._ptr,p=t.dimension(0),m=t.dimension(1),h=[],d=[];p.forEach(function(e,t){d[e]=t[0],h[e]=!0});var y=c?[]:void 0,g=[],v=[];return m.forEach(function(e){for(v.push(g.length),i=l[e],a=l[e+1];i<a;i++)r=f[i],!0===h[r]&&(g.push(d[r]),y&&y.push(c[i]))}),v.push(g.length),new E({values:y,index:g,ptr:v,size:o,datatype:e._datatype})}(this,e);case 2:case 3:return function(e,t,r,n){if(!t||!0!==t.isIndex)throw new TypeError("Invalid index");var i,a=t.size(),o=t.isScalar();Object(ie.v)(r)?(i=r.size(),r=r.toArray()):i=Object(I.a)(r);if(o){if(0!==i.length)throw new TypeError("Scalar expected");e.set(t.min(),r,n)}else{if(1!==a.length&&2!==a.length)throw new D.a(a.length,e._size.length,"<");if(i.length<a.length){for(var s=0,u=0;1===a[s]&&1===i[s];)s++;for(;1===a[s];)u++,s++;r=Object(I.q)(r,a.length,u,i)}if(!Object(W.d)(a,i))throw new D.a(a,i,">");for(var c=t.min()[0],f=t.min()[1],l=i[0],p=i[1],m=0;m<l;m++)for(var h=0;h<p;h++){var d=r[m][h];e.set([m+c,h+f],d,n)}}return e}(this,e,t,r);default:throw new SyntaxError("Wrong number of arguments")}},E.prototype.get=function(e){if(!Object(ie.b)(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new D.a(e.length,this._size.length);if(!this._values)throw new Error("Cannot invoke get on a Pattern only matrix");var t=e[0],r=e[1];Object(I.s)(t,this._size[0]),Object(I.s)(r,this._size[1]);var n=g(t,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===t?this._values[n]:0},E.prototype.set=function(e,t,r){if(!Object(ie.b)(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new D.a(e.length,this._size.length);if(!this._values)throw new Error("Cannot invoke set on a Pattern only matrix");var n=e[0],i=e[1],a=this._size[0],o=this._size[1],s=M,u=0;Object(ie.I)(this._datatype)&&(s=O.find(M,[this._datatype,this._datatype])||M,u=O.convert(0,this._datatype)),(a-1<n||o-1<i)&&(f(this,Math.max(n+1,a),Math.max(i+1,o),r),a=this._size[0],o=this._size[1]),Object(I.s)(n,a),Object(I.s)(i,o);var c=g(n,this._ptr[i],this._ptr[i+1],this._index);return c<this._ptr[i+1]&&this._index[c]===n?s(t,u)?function(e,t,r,n,i){r.splice(e,1),n.splice(e,1);for(var a=t+1;a<i.length;a++)i[a]--}(c,i,this._values,this._index,this._ptr):this._values[c]=t:v(c,n,i,t,this._values,this._index,this._ptr),this},E.prototype.resize=function(t,e,r){if(!Object(ie.b)(t))throw new TypeError("Array expected");if(2!==t.length)throw new Error("Only two dimensions matrix are supported");return t.forEach(function(e){if(!Object(ie.y)(e)||!Object(S.i)(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Object(J.d)(t)+")")}),f(r?this.clone():this,t[0],t[1],e)},E.prototype.reshape=function(t,e){if(!Object(ie.b)(t))throw new TypeError("Array expected");if(2!==t.length)throw new Error("Sparse matrices can only be reshaped in two dimensions");if(t.forEach(function(e){if(!Object(ie.y)(e)||!Object(S.i)(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Object(J.d)(t)+")")}),this._size[0]*this._size[1]!=t[0]*t[1])throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var r=e?this.clone():this;if(this._size[0]===t[0]&&this._size[1]===t[1])return r;for(var n=[],i=0;i<r._ptr.length;i++)for(var a=0;a<r._ptr[i+1]-r._ptr[i];a++)n.push(i);for(var o=r._values.slice(),s=r._index.slice(),u=0;u<r._index.length;u++){var c=s[u],f=n[u],l=c*r._size[1]+f;n[u]=l%t[1],s[u]=Math.floor(l/t[1])}r._values.length=0,r._index.length=0,r._ptr.length=t[1]+1,r._size=t.slice();for(var p=0;p<r._ptr.length;p++)r._ptr[p]=0;for(var m=0;m<o.length;m++){var h=s[m],d=n[m],y=o[m];v(g(h,r._ptr[d],r._ptr[d+1],r._index),h,d,y,r._values,r._index,r._ptr)}return r},E.prototype.clone=function(){return new E({values:this._values?Object(W.a)(this._values):void 0,index:Object(W.a)(this._index),ptr:Object(W.a)(this._ptr),size:Object(W.a)(this._size),datatype:this._datatype})},E.prototype.size=function(){return this._size.slice(0)},E.prototype.map=function(n,e){if(!this._values)throw new Error("Cannot invoke map on a Pattern only matrix");var i=this;return function(e,t,r,n,i,a,o){var s=[],u=[],c=[],f=M,l=0;Object(ie.I)(e._datatype)&&(f=O.find(M,[e._datatype,e._datatype])||M,l=O.convert(0,e._datatype));for(var p=function(e,t,r){e=a(e,t,r),f(e,l)||(s.push(e),u.push(t))},m=n;m<=i;m++){c.push(s.length);var h=e._ptr[m],d=e._ptr[m+1];if(o)for(var y=h;y<d;y++){var g=e._index[y];t<=g&&g<=r&&p(e._values[y],g-t,m-n)}else{for(var v={},b=h;b<d;b++){var x=e._index[b];v[x]=e._values[b]}for(var w=t;w<=r;w++){var N=w in v?v[w]:0;p(N,w-t,m-n)}}}return c.push(s.length),new E({values:s,index:u,ptr:c,size:[r-t+1,i-n+1]})}(this,0,this._size[0]-1,0,this._size[1]-1,function(e,t,r){return n(e,[t,r],i)},e)},E.prototype.forEach=function(e,t){if(!this._values)throw new Error("Cannot invoke forEach on a Pattern only matrix");for(var r=this._size[0],n=this._size[1],i=0;i<n;i++){var a=this._ptr[i],o=this._ptr[i+1];if(t)for(var s=a;s<o;s++){var u=this._index[s];e(this._values[s],[u,i],this)}else{for(var c={},f=a;f<o;f++){c[this._index[f]]=this._values[f]}for(var l=0;l<r;l++){e(l in c?c[l]:0,[l,i],this)}}}},E.prototype.toArray=function(){return r(this._values,this._index,this._ptr,this._size,!0)},E.prototype.valueOf=function(){return r(this._values,this._index,this._ptr,this._size,!1)},E.prototype.format=function(e){for(var t=this._size[0],r=this._size[1],n=this.density(),i="Sparse Matrix ["+Object(J.d)(t,e)+" x "+Object(J.d)(r,e)+"] density: "+Object(J.d)(n,e)+"\n",a=0;a<r;a++)for(var o=this._ptr[a],s=this._ptr[a+1],u=o;u<s;u++){var c=this._index[u];i+="\n ("+Object(J.d)(c,e)+", "+Object(J.d)(a,e)+") ==> "+(this._values?Object(J.d)(this._values[u],e):"X")}return i},E.prototype.toString=function(){return Object(J.d)(this.toArray())},E.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},E.prototype.diagonal=function(e){if(e){if(Object(ie.e)(e)&&(e=e.toNumber()),!Object(ie.y)(e)||!Object(S.i)(e))throw new TypeError("The parameter k must be an integer number")}else e=0;var t=0<e?e:0,r=e<0?-e:0,n=this._size[0],i=this._size[1],a=Math.min(n-r,i-t),o=[],s=[],u=[];u[0]=0;for(var c=t;c<i&&o.length<a;c++)for(var f=this._ptr[c],l=this._ptr[c+1],p=f;p<l;p++){var m=this._index[p];if(m===c-t+r){o.push(this._values[p]),s[o.length-1]=m-r;break}}return u.push(o.length),new E({values:o,index:s,ptr:u,size:[a,1]})},E.fromJSON=function(e){return new E(e)},E.diagonal=function(e,t,r,n,i){if(!Object(ie.b)(e))throw new TypeError("Array expected, size parameter");if(2!==e.length)throw new Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if(Object(ie.e)(e)&&(e=e.toNumber()),!Object(ie.y)(e)||!Object(S.i)(e)||e<1)throw new Error("Size values must be positive integers");return e}),r){if(Object(ie.e)(r)&&(r=r.toNumber()),!Object(ie.y)(r)||!Object(S.i)(r))throw new TypeError("The parameter k must be an integer number")}else r=0;var a=M,o=0;Object(ie.I)(i)&&(a=O.find(M,[i,i])||M,o=O.convert(0,i));var s,u=0<r?r:0,c=r<0?-r:0,f=e[0],l=e[1],p=Math.min(f-c,l-u);if(Object(ie.b)(t)){if(t.length!==p)throw new Error("Invalid value array length");s=function(e){return t[e]}}else if(Object(ie.v)(t)){var m=t.size();if(1!==m.length||m[0]!==p)throw new Error("Invalid matrix length");s=function(e){return t.get([e])}}else s=function(){return t};for(var h=[],d=[],y=[],g=0;g<l;g++){y.push(h.length);var v=g-u;if(0<=v&&v<p){var b=s(v);a(b,o)||(d.push(v+c),h.push(b))}}return y.push(h.length),new E({values:h,index:d,ptr:y,size:[f,l]})},E.prototype.swapRows=function(e,t){if(!(Object(ie.y)(e)&&Object(S.i)(e)&&Object(ie.y)(t)&&Object(S.i)(t)))throw new Error("Row index must be positive integers");if(2!==this._size.length)throw new Error("Only two dimensional matrix is supported");return Object(I.s)(e,this._size[0]),Object(I.s)(t,this._size[0]),E._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},E._forEachRow=function(e,t,r,n,i){for(var a=n[e],o=n[e+1],s=a;s<o;s++)i(r[s],t[s])},E._swapRows=function(e,t,r,n,i,a){for(var o=0;o<r;o++){var s=a[o],u=a[o+1],c=g(e,s,u,i),f=g(t,s,u,i);if(c<u&&f<u&&i[c]===e&&i[f]===t){if(n){var l=n[c];n[c]=n[f],n[f]=l}}else if(c<u&&i[c]===e&&(u<=f||i[f]!==t)){var p=n?n[c]:void 0;i.splice(f,0,t),n&&n.splice(f,0,p),i.splice(f<=c?c+1:c,1),n&&n.splice(f<=c?c+1:c,1)}else if(f<u&&i[f]===t&&(u<=c||i[c]!==e)){var m=n?n[f]:void 0;i.splice(c,0,e),n&&n.splice(c,0,m),i.splice(c<=f?f+1:f,1),n&&n.splice(c<=f?f+1:f,1)}}},E},{isClass:!0}),Ae=["typed"],Ce=Object(s.a)("number",Ae,function(e){var t=(0,e.typed)("number",{"":function(){return 0},number:function(e){return e},string:function(e){if("NaN"===e)return NaN;var t=Number(e);if(isNaN(t))throw new SyntaxError('String "'+e+'" is no valid number');return t},BigNumber:function(e){return e.toNumber()},Fraction:function(e){return e.valueOf()},Unit:function(e){throw new Error("Second argument with valueless unit expected")},null:function(e){return 0},"Unit, string | Unit":function(e,t){return e.toNumber(t)},"Array | Matrix":function(e){return ae(e,t)}});return t}),Te=["typed"],_e=Object(s.a)("string",Te,function(e){var t=(0,e.typed)("string",{"":function(){return""},number:S.h,null:function(e){return"null"},boolean:function(e){return e+""},string:function(e){return e},"Array | Matrix":function(e){return ae(e,t)},any:function(e){return String(e)}});return t}),Ie="boolean",qe=["typed"],Be=Object(s.a)(Ie,qe,function(e){var t=(0,e.typed)(Ie,{"":function(){return!1},boolean:function(e){return e},number:function(e){return!!e},null:function(e){return!1},BigNumber:function(e){return!e.isZero()},string:function(e){var t=e.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;var r=Number(e);if(""!==e&&!isNaN(r))return!!r;throw new Error('Cannot convert "'+e+'" to a boolean')},"Array | Matrix":function(e){return ae(e,t)}});return t}),ke=["typed","BigNumber"],ze=Object(s.a)("bignumber",ke,function(e){var t=e.typed,r=e.BigNumber,n=t("bignumber",{"":function(){return new r(0)},number:function(e){return new r(e+"")},string:function(e){return new r(e)},BigNumber:function(e){return e},Fraction:function(e){return new r(e.n).div(e.d).times(e.s)},null:function(e){return new r(0)},"Array | Matrix":function(e){return ae(e,n)}});return n}),De=["typed","Complex"],Re=Object(s.a)("complex",De,function(e){var t=e.typed,r=e.Complex,n=t("complex",{"":function(){return r.ZERO},number:function(e){return new r(e,0)},"number, number":function(e,t){return new r(e,t)},"BigNumber, BigNumber":function(e,t){return new r(e.toNumber(),t.toNumber())},Fraction:function(e){return new r(e.valueOf(),0)},Complex:function(e){return e.clone()},string:function(e){return r(e)},null:function(e){return r(0)},Object:function(e){if("re"in e&&"im"in e)return new r(e.re,e.im);if("r"in e&&"phi"in e||"abs"in e&&"arg"in e)return new r(e);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":function(e){return ae(e,n)}});return n}),Pe=["typed","Fraction"],Fe=Object(s.a)("fraction",Pe,function(e){var t=e.typed,r=e.Fraction,n=t("fraction",{number:function(e){if(!isFinite(e)||isNaN(e))throw new Error(e+" cannot be represented as a fraction");return new r(e)},string:function(e){return new r(e)},"number, number":function(e,t){return new r(e,t)},null:function(e){return new r(0)},BigNumber:function(e){return new r(e.toString())},Fraction:function(e){return e},Object:function(e){return new r(e)},"Array | Matrix":function(e){return ae(e,n)}});return n}),Ue=["typed","Matrix","DenseMatrix","SparseMatrix"],Le=Object(s.a)("matrix",Ue,function(e){var t=e.typed,n=(e.Matrix,e.DenseMatrix),i=e.SparseMatrix;return t("matrix",{"":function(){return r([])},string:function(e){return r([],e)},"string, string":function(e,t){return r([],e,t)},Array:function(e){return r(e)},Matrix:function(e){return r(e,e.storage())},"Array | Matrix, string":r,"Array | Matrix, string, string":r});function r(e,t,r){if("dense"===t||"default"===t||void 0===t)return new n(e,r);if("sparse"===t)return new i(e,r);throw new TypeError("Unknown matrix type "+JSON.stringify(t)+".")}}),He="splitUnit",$e=["typed"],Ge=Object(s.a)(He,$e,function(e){return(0,e.typed)(He,{"Unit, Array":function(e,t){return e.splitUnit(t)}})}),Ze="number",Ve="number, number";function Je(e){return Math.abs(e)}function We(e,t){return e+t}function Ye(e,t){return e*t}function Xe(e){return-e}function Qe(e){return e}function Ke(e){return Object(S.d)(e)}function et(e){return Math.ceil(e)}function tt(e){return e*e*e}function rt(e){return Math.exp(e)}function nt(e){return Object(S.g)(e)}function it(e,t){if(!Object(S.i)(e)||!Object(S.i)(t))throw new Error("Parameters in function gcd must be integer numbers");for(var r;0!==t;)r=e%t,e=t,t=r;return e<0?-e:e}function at(e,t){if(!Object(S.i)(e)||!Object(S.i)(t))throw new Error("Parameters in function lcm must be integer numbers");if(0===e||0===t)return 0;for(var r,n=e*t;0!==t;)t=e%(r=t),e=r;return Math.abs(n/e)}function ot(e){return Math.log(e)}function st(e){return Object(S.j)(e)}function ut(e){return Object(S.l)(e)}function ct(e,t){if(0<t)return e-t*Math.floor(e/t);if(0===t)return e;throw new Error("Cannot calculate mod for a negative divisor")}function ft(e,t){var r=t<0;if(r&&(t=-t),0===t)throw new Error("Root must be non-zero");if(e<0&&Math.abs(t)%2!=1)throw new Error("Root must be odd when a is negative.");if(0===e)return r?1/0:0;if(!isFinite(e))return r?0:e;var n=Math.pow(Math.abs(e),1/t);return n=e<0?-n:n,r?1/n:n}function lt(e){return Object(S.n)(e)}function pt(e){return e*e}function mt(e,t){var r,n,i,a=0,o=1,s=1,u=0;if(!Object(S.i)(e)||!Object(S.i)(t))throw new Error("Parameters in function xgcd must be integer numbers");for(;t;)i=e-(n=Math.floor(e/t))*t,a=o-n*(r=a),o=r,s=u-n*(r=s),u=r,e=t,t=i;return e<0?[-e,-o,-u]:[e,e?o:0,u]}function ht(e,t){return e*e<1&&t===1/0||1<e*e&&t===-1/0?0:Math.pow(e,t)}function dt(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(Object(S.q)(e,t))}Je.signature=Ze,Ye.signature=We.signature=Ve,nt.signature=rt.signature=tt.signature=et.signature=Ke.signature=Qe.signature=Xe.signature=Ze,at.signature=it.signature=Ve,ut.signature=st.signature=ot.signature=Ze,ft.signature=ct.signature=Ve,pt.signature=lt.signature=Ze,dt.signature=ht.signature=mt.signature=Ve;var yt="unaryMinus",gt=["typed"],vt=Object(s.a)(yt,gt,function(e){var r=(0,e.typed)(yt,{number:Xe,Complex:function(e){return e.neg()},BigNumber:function(e){return e.neg()},Fraction:function(e){return e.neg()},Unit:function(e){var t=e.clone();return t.value=r(e.value),t},"Array | Matrix":function(e){return ae(e,r,!0)}});return r}),bt="unaryPlus",xt=["typed","config","BigNumber"],wt=Object(s.a)(bt,xt,function(e){var t=e.typed,r=e.config,n=e.BigNumber,i=t(bt,{number:Qe,Complex:function(e){return e},BigNumber:function(e){return e},Fraction:function(e){return e},Unit:function(e){return e.clone()},"Array | Matrix":function(e){return ae(e,i,!0)},"boolean | string":function(e){return"BigNumber"===r.number?new n(+e):+e}});return i}),Nt=["typed"],Ot=Object(s.a)("abs",Nt,function(e){var t=(0,e.typed)("abs",{number:Je,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},Fraction:function(e){return e.abs()},"Array | Matrix":function(e){return ae(e,t,!0)},Unit:function(e){return e.abs()}});return t}),Mt=["typed","isInteger"],Et=Object(s.a)("apply",Mt,function(e){var t=e.typed,i=e.isInteger;return t("apply",{"Array | Matrix, number | BigNumber, function":function(e,t,r){if(!i(t))throw new TypeError("Integer number expected for dimension");var n=Array.isArray(e)?Object(I.a)(e):e.size();if(t<0||t>=n.length)throw new R.a(t,n.length);return Object(ie.v)(e)?e.create(St(e.valueOf(),t,r)):St(e,t,r)}})});function St(e,t,r){var n,i,a;if(t<=0){if(Array.isArray(e[0])){for(a=function(e){var t,r,n=e.length,i=e[0].length,a=[];for(r=0;r<i;r++){var o=[];for(t=0;t<n;t++)o.push(e[t][r]);a.push(o)}return a}(e),i=[],n=0;n<a.length;n++)i[n]=St(a[n],t-1,r);return i}return r(e)}for(i=[],n=0;n<e.length;n++)i[n]=St(e[n],t-1,r);return i}var jt="addScalar",At=["typed"],Ct=Object(s.a)(jt,At,function(e){var n=(0,e.typed)(jt,{"number, number":We,"Complex, Complex":function(e,t){return e.add(t)},"BigNumber, BigNumber":function(e,t){return e.plus(t)},"Fraction, Fraction":function(e,t){return e.add(t)},"Unit, Unit":function(e,t){if(null===e.value||void 0===e.value)throw new Error("Parameter x contains a unit with undefined value");if(null===t.value||void 0===t.value)throw new Error("Parameter y contains a unit with undefined value");if(!e.equalBase(t))throw new Error("Units do not match");var r=e.clone();return r.value=n(r.value,t.value),r.fixPrefix=!1,r}});return n}),Tt=["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],_t=Object(s.a)("cbrt",Tt,function(e){var o=e.config,t=e.typed,a=e.isNegative,s=e.unaryMinus,u=e.matrix,c=e.Complex,f=e.BigNumber,l=e.Fraction,r=t("cbrt",{number:Ke,Complex:p,"Complex, boolean":p,BigNumber:function(e){return e.cbrt()},Unit:function(e){{if(e.value&&Object(ie.j)(e.value)){var t=e.clone();return t.value=1,(t=t.pow(1/3)).value=p(e.value),t}var r,n=a(e.value);n&&(e.value=s(e.value)),r=Object(ie.e)(e.value)?new f(1).div(3):Object(ie.o)(e.value)?new l(1,3):1/3;var i=e.pow(r);return n&&(i.value=s(i.value)),i}},"Array | Matrix":function(e){return ae(e,r,!0)}});function p(e,t){var r=e.arg()/3,n=e.abs(),i=new c(Ke(n),0).mul(new c(0,r).exp());if(t){var a=[i,new c(Ke(n),0).mul(new c(0,r+2*Math.PI/3).exp()),new c(Ke(n),0).mul(new c(0,r-2*Math.PI/3).exp())];return"Array"===o.matrix?a:u(a)}return i}return r}),It=["typed","config","round"],qt=Object(s.a)("ceil",It,function(e){var t=e.typed,r=e.config,n=e.round,i=t("ceil",{number:function(e){return Object(S.m)(e,n(e),r.epsilon)?n(e):et(e)},Complex:function(e){return e.ceil()},BigNumber:function(e){return Ne(e,n(e),r.epsilon)?n(e):e.ceil()},Fraction:function(e){return e.ceil()},"Array | Matrix":function(e){return ae(e,i,!0)}});return i}),Bt=["typed"],kt=Object(s.a)("cube",Bt,function(e){var t=(0,e.typed)("cube",{number:tt,Complex:function(e){return e.mul(e).mul(e)},BigNumber:function(e){return e.times(e).times(e)},Fraction:function(e){return e.pow(3)},"Array | Matrix":function(e){return ae(e,t,!0)},Unit:function(e){return e.pow(3)}});return t}),zt=["typed"],Dt=Object(s.a)("exp",zt,function(e){var t=(0,e.typed)("exp",{number:rt,Complex:function(e){return e.exp()},BigNumber:function(e){return e.exp()},"Array | Matrix":function(e){return ae(e,t)}});return t}),Rt=["typed","Complex"],Pt=Object(s.a)("expm1",Rt,function(e){var t=e.typed,r=e.Complex,n=t("expm1",{number:nt,Complex:function(e){var t=Math.exp(e.re);return new r(t*Math.cos(e.im)-1,t*Math.sin(e.im))},BigNumber:function(e){return e.exp().minus(1)},"Array | Matrix":function(e){return ae(e,n)}});return n}),Ft=["typed","Complex","ceil","floor"],Ut=Object(s.a)("fix",Ft,function(e){var t=e.typed,r=e.Complex,n=e.ceil,i=e.floor,a=t("fix",{number:function(e){return 0<e?i(e):n(e)},Complex:function(e){return new r(0<e.re?Math.floor(e.re):Math.ceil(e.re),0<e.im?Math.floor(e.im):Math.ceil(e.im))},BigNumber:function(e){return e.isNegative()?n(e):i(e)},Fraction:function(e){return e.s<0?e.ceil():e.floor()},"Array | Matrix":function(e){return ae(e,a,!0)}});return a}),Lt=["typed","config","round"],Ht=Object(s.a)("floor",Lt,function(e){var t=e.typed,r=e.config,n=e.round,i=t("floor",{number:function(e){return Object(S.m)(e,n(e),r.epsilon)?n(e):Math.floor(e)},Complex:function(e){return e.floor()},BigNumber:function(e){return Ne(e,n(e),r.epsilon)?n(e):e.floor()},Fraction:function(e){return e.floor()},"Array | Matrix":function(e){return ae(e,i,!0)}});return i}),$t=["typed"],Gt=Object(s.a)("algorithm01",$t,function(e){var E=e.typed;return function(e,t,r,n){var i=e._data,a=e._size,o=e._datatype,s=t._values,u=t._index,c=t._ptr,f=t._size,l=t._datatype;if(a.length!==f.length)throw new D.a(a.length,f.length);if(a[0]!==f[0]||a[1]!==f[1])throw new RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+f+")");if(!s)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var p,m,h=a[0],d=a[1],y="string"==typeof o&&o===l?o:void 0,g=y?E.find(r,[y,y]):r,v=[];for(p=0;p<h;p++)v[p]=[];var b=[],x=[];for(m=0;m<d;m++){for(var w=m+1,N=c[m],O=c[m+1],M=N;M<O;M++)b[p=u[M]]=n?g(s[M],i[p][m]):g(i[p][m],s[M]),x[p]=w;for(p=0;p<h;p++)x[p]===w?v[p][m]=b[p]:v[p][m]=i[p][m]}return e.createDenseMatrix({data:v,size:[h,d],datatype:y})}}),Zt=["typed","equalScalar"],Vt=Object(s.a)("algorithm04",Zt,function(e){var B=e.typed,k=e.equalScalar;return function(e,t,r){var n=e._values,i=e._index,a=e._ptr,o=e._size,s=e._datatype,u=t._values,c=t._index,f=t._ptr,l=t._size,p=t._datatype;if(o.length!==l.length)throw new D.a(o.length,l.length);if(o[0]!==l[0]||o[1]!==l[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+l+")");var m,h=o[0],d=o[1],y=k,g=0,v=r;"string"==typeof s&&s===p&&(m=s,y=B.find(k,[m,m]),g=B.convert(0,m),v=B.find(r,[m,m]));var b,x,w,N,O,M=n&&u?[]:void 0,E=[],S=[],j=e.createSparseMatrix({values:M,index:E,ptr:S,size:[h,d],datatype:m}),A=n&&u?[]:void 0,C=n&&u?[]:void 0,T=[],_=[];for(x=0;x<d;x++){S[x]=E.length;var I=x+1;for(N=a[x],O=a[x+1],w=N;w<O;w++)b=i[w],E.push(b),T[b]=I,A&&(A[b]=n[w]);for(N=f[x],O=f[x+1],w=N;w<O;w++)if(T[b=c[w]]===I){if(A){var q=v(A[b],u[w]);y(q,g)?T[b]=null:A[b]=q}}else E.push(b),_[b]=I,C&&(C[b]=u[w]);if(A&&C)for(w=S[x];w<E.length;)T[b=E[w]]===I?(M[w]=A[b],w++):_[b]===I?(M[w]=C[b],w++):E.splice(w,1)}return S[d]=E.length,j}}),Jt=["typed","DenseMatrix"],Wt=Object(s.a)("algorithm10",Jt,function(e){var M=e.typed,E=e.DenseMatrix;return function(e,t,r,n){var i=e._values,a=e._index,o=e._ptr,s=e._size,u=e._datatype;if(!i)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var c,f=s[0],l=s[1],p=r;"string"==typeof u&&(c=u,t=M.convert(t,c),p=M.find(r,[c,c]));for(var m=[],h=new E({data:m,size:[f,l],datatype:c}),d=[],y=[],g=0;g<l;g++){for(var v=g+1,b=o[g],x=o[g+1],w=b;w<x;w++){var N=a[w];d[N]=i[w],y[N]=v}for(var O=0;O<f;O++)0===g&&(m[O]=[]),y[O]===v?m[O][g]=n?p(t,d[O]):p(d[O],t):m[O][g]=t}return h}}),Yt=["typed"],Xt=Object(s.a)("algorithm13",Yt,function(e){var h=e.typed;return function(e,t,r){var n,i=e._data,a=e._size,o=e._datatype,s=t._data,u=t._size,c=t._datatype,f=[];if(a.length!==u.length)throw new D.a(a.length,u.length);for(var l=0;l<a.length;l++){if(a[l]!==u[l])throw new RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+u+")");f[l]=a[l]}var p=r;"string"==typeof o&&o===c&&(n=o,p=h.find(r,[n,n]));var m=0<f.length?function e(t,r,n,i,a,o){var s=[];if(r===n.length-1)for(var u=0;u<i;u++)s[u]=t(a[u],o[u]);else for(var c=0;c<i;c++)s[c]=e(t,r+1,n,n[r+1],a[c],o[c]);return s}(p,0,f,f[0],i,s):[];return e.createDenseMatrix({data:m,size:f,datatype:n})}}),Qt=["typed"],Kt=Object(s.a)("algorithm14",Qt,function(e){var f=e.typed;return function(e,t,r,n){var i,a=e._data,o=e._size,s=e._datatype,u=r;"string"==typeof s&&(i=s,t=f.convert(t,i),u=f.find(r,[i,i]));var c=0<o.length?function e(t,r,n,i,a,o,s){var u=[];if(r===n.length-1)for(var c=0;c<i;c++)u[c]=s?t(o,a[c]):t(a[c],o);else for(var f=0;f<i;f++)u[f]=e(t,r+1,n,n[r+1],a[f],o,s);return u}(u,0,o,o[0],a,t,n):[];return e.createDenseMatrix({data:c,size:Object(W.a)(o),datatype:i})}}),er=["typed","matrix","equalScalar","BigNumber","DenseMatrix"],tr=Object(s.a)("gcd",er,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.BigNumber,a=e.DenseMatrix,o=Gt({typed:t}),s=Vt({typed:t,equalScalar:n}),u=Wt({typed:t,DenseMatrix:a}),c=Xt({typed:t}),f=Kt({typed:t}),l=t("gcd",{"number, number":it,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw new Error("Parameters in function gcd must be integer numbers");var r=new i(0);for(;!t.isZero();){var n=e.mod(t);e=t,t=n}return e.lt(r)?e.neg():e},"Fraction, Fraction":function(e,t){return e.gcd(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,l)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,l,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,l,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,l)},"Array, Array":function(e,t){return l(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return l(r(e),t)},"Matrix, Array":function(e,t){return l(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return u(e,t,l,!1)},"DenseMatrix, number | BigNumber":function(e,t){return f(e,t,l,!1)},"number | BigNumber, SparseMatrix":function(e,t){return u(t,e,l,!0)},"number | BigNumber, DenseMatrix":function(e,t){return f(t,e,l,!0)},"Array, number | BigNumber":function(e,t){return f(r(e),t,l,!1).valueOf()},"number | BigNumber, Array":function(e,t){return f(r(t),e,l,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,r){for(var n=l(e,t),i=0;i<r.length;i++)n=l(n,r[i]);return n}});return l}),rr=["typed","equalScalar"],nr=Object(s.a)("algorithm02",rr,function(e){var j=e.typed,A=e.equalScalar;return function(e,t,r,n){var i=e._data,a=e._size,o=e._datatype,s=t._values,u=t._index,c=t._ptr,f=t._size,l=t._datatype;if(a.length!==f.length)throw new D.a(a.length,f.length);if(a[0]!==f[0]||a[1]!==f[1])throw new RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+f+")");if(!s)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var p,m=a[0],h=a[1],d=A,y=0,g=r;"string"==typeof o&&o===l&&(p=o,d=j.find(A,[p,p]),y=j.convert(0,p),g=j.find(r,[p,p]));for(var v=[],b=[],x=[],w=0;w<h;w++){x[w]=b.length;for(var N=c[w],O=c[w+1],M=N;M<O;M++){var E=u[M],S=n?g(s[M],i[E][w]):g(i[E][w],s[M]);d(S,y)||(b.push(E),v.push(S))}}return x[h]=b.length,t.createSparseMatrix({values:v,index:b,ptr:x,size:[m,h],datatype:p})}}),ir=["typed","equalScalar"],ar=Object(s.a)("algorithm06",ir,function(e){var A=e.typed,C=e.equalScalar;return function(e,t,r){var n=e._values,i=e._size,a=e._datatype,o=t._values,s=t._size,u=t._datatype;if(i.length!==s.length)throw new D.a(i.length,s.length);if(i[0]!==s[0]||i[1]!==s[1])throw new RangeError("Dimension mismatch. Matrix A ("+i+") must match Matrix B ("+s+")");var c,f=i[0],l=i[1],p=C,m=0,h=r;"string"==typeof a&&a===u&&(c=a,p=A.find(C,[c,c]),m=A.convert(0,c),h=A.find(r,[c,c]));for(var d=n&&o?[]:void 0,y=[],g=[],v=e.createSparseMatrix({values:d,index:y,ptr:g,size:[f,l],datatype:c}),b=d?[]:void 0,x=[],w=[],N=0;N<l;N++){g[N]=y.length;var O=N+1;if(H(e,N,x,b,w,O,v,h),H(t,N,x,b,w,O,v,h),b)for(var M=g[N];M<y.length;){var E=y[M];if(w[E]===O){var S=b[E];p(S,m)?y.splice(M,1):(d.push(S),M++)}else y.splice(M,1)}else for(var j=g[N];j<y.length;){w[y[j]]!==O?y.splice(j,1):j++}}return g[l]=y.length,v}}),or=["typed","equalScalar"],sr=Object(s.a)("algorithm11",or,function(e){var E=e.typed,S=e.equalScalar;return function(e,t,r,n){var i=e._values,a=e._index,o=e._ptr,s=e._size,u=e._datatype;if(!i)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var c,f=s[0],l=s[1],p=S,m=0,h=r;"string"==typeof u&&(c=u,p=E.find(S,[c,c]),m=E.convert(0,c),t=E.convert(t,c),h=E.find(r,[c,c]));for(var d=[],y=[],g=[],v=e.createSparseMatrix({values:d,index:y,ptr:g,size:[f,l],datatype:c}),b=0;b<l;b++){g[b]=y.length;for(var x=o[b],w=o[b+1],N=x;N<w;N++){var O=a[N],M=n?h(t,i[N]):h(i[N],t);p(M,m)||(y.push(O),d.push(M))}}return g[l]=y.length,v}}),ur=["typed","matrix","equalScalar"],cr=Object(s.a)("lcm",ur,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=nr({typed:t,equalScalar:n}),a=ar({typed:t,equalScalar:n}),o=sr({typed:t,equalScalar:n}),s=Xt({typed:t}),u=Kt({typed:t}),c=t("lcm",{"number, number":at,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw new Error("Parameters in function lcm must be integer numbers");if(e.isZero())return e;if(t.isZero())return t;var r=e.times(t);for(;!t.isZero();){var n=t;t=e.mod(n),e=n}return r.div(e).abs()},"Fraction, Fraction":function(e,t){return e.lcm(t)},"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,c)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,c,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,c,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,c)},"Array, Array":function(e,t){return c(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return c(r(e),t)},"Matrix, Array":function(e,t){return c(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return o(e,t,c,!1)},"DenseMatrix, number | BigNumber":function(e,t){return u(e,t,c,!1)},"number | BigNumber, SparseMatrix":function(e,t){return o(t,e,c,!0)},"number | BigNumber, DenseMatrix":function(e,t){return u(t,e,c,!0)},"Array, number | BigNumber":function(e,t){return u(r(e),t,c,!1).valueOf()},"number | BigNumber, Array":function(e,t){return u(r(t),e,c,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,r){for(var n=c(e,t),i=0;i<r.length;i++)n=c(n,r[i]);return n}});return c}),fr=["typed","config","Complex"],lr=Object(s.a)("log10",fr,function(e){var t=e.typed,r=e.config,n=e.Complex,i=t("log10",{number:function(e){return 0<=e||r.predictable?st(e):new n(e,0).log().div(Math.LN10)},Complex:function(e){return new n(e).log().div(Math.LN10)},BigNumber:function(e){return!e.isNegative()||r.predictable?e.log():new n(e.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":function(e){return ae(e,i)}});return i}),pr=["typed","config","Complex"],mr=Object(s.a)("log2",pr,function(e){var t=e.typed,r=e.config,n=e.Complex,i=t("log2",{number:function(e){return 0<=e||r.predictable?ut(e):a(new n(e,0))},Complex:a,BigNumber:function(e){return!e.isNegative()||r.predictable?e.log(2):a(new n(e.toNumber(),0))},"Array | Matrix":function(e){return ae(e,i)}});function a(e){var t=Math.sqrt(e.re*e.re+e.im*e.im);return new n(Math.log2?Math.log2(t):Math.log(t)/Math.LN2,Math.atan2(e.im,e.re)/Math.LN2)}return i}),hr=["typed"],dr=Object(s.a)("algorithm03",hr,function(e){var A=e.typed;return function(e,t,r,n){var i=e._data,a=e._size,o=e._datatype,s=t._values,u=t._index,c=t._ptr,f=t._size,l=t._datatype;if(a.length!==f.length)throw new D.a(a.length,f.length);if(a[0]!==f[0]||a[1]!==f[1])throw new RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+f+")");if(!s)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var p,m=a[0],h=a[1],d=0,y=r;"string"==typeof o&&o===l&&(p=o,d=A.convert(0,p),y=A.find(r,[p,p]));for(var g=[],v=0;v<m;v++)g[v]=[];for(var b=[],x=[],w=0;w<h;w++){for(var N=w+1,O=c[w],M=c[w+1],E=O;E<M;E++){var S=u[E];b[S]=n?y(s[E],i[S][w]):y(i[S][w],s[E]),x[S]=N}for(var j=0;j<m;j++)x[j]===N?g[j][w]=b[j]:g[j][w]=n?y(d,i[j][w]):y(i[j][w],d)}return e.createDenseMatrix({data:g,size:[m,h],datatype:p})}}),yr=["typed","equalScalar"],gr=Object(s.a)("algorithm05",yr,function(e){var k=e.typed,z=e.equalScalar;return function(e,t,r){var n=e._values,i=e._index,a=e._ptr,o=e._size,s=e._datatype,u=t._values,c=t._index,f=t._ptr,l=t._size,p=t._datatype;if(o.length!==l.length)throw new D.a(o.length,l.length);if(o[0]!==l[0]||o[1]!==l[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+l+")");var m,h=o[0],d=o[1],y=z,g=0,v=r;"string"==typeof s&&s===p&&(m=s,y=k.find(z,[m,m]),g=k.convert(0,m),v=k.find(r,[m,m]));var b,x,w,N,O=n&&u?[]:void 0,M=[],E=[],S=e.createSparseMatrix({values:O,index:M,ptr:E,size:[h,d],datatype:m}),j=O?[]:void 0,A=O?[]:void 0,C=[],T=[];for(x=0;x<d;x++){E[x]=M.length;var _=x+1;for(w=a[x],N=a[x+1];w<N;w++)b=i[w],M.push(b),C[b]=_,j&&(j[b]=n[w]);for(w=f[x],N=f[x+1];w<N;w++)C[b=c[w]]!==_&&M.push(b),T[b]=_,A&&(A[b]=u[w]);if(O)for(w=E[x];w<M.length;){var I=C[b=M[w]],q=T[b];if(I===_||q===_){var B=v(I===_?j[b]:g,q===_?A[b]:g);y(B,g)?M.splice(w,1):(O.push(B),w++)}}}return E[d]=M.length,S}}),vr=["typed","DenseMatrix"],br=Object(s.a)("algorithm12",vr,function(e){var M=e.typed,E=e.DenseMatrix;return function(e,t,r,n){var i=e._values,a=e._index,o=e._ptr,s=e._size,u=e._datatype;if(!i)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var c,f=s[0],l=s[1],p=r;"string"==typeof u&&(c=u,t=M.convert(t,c),p=M.find(r,[c,c]));for(var m=[],h=new E({data:m,size:[f,l],datatype:c}),d=[],y=[],g=0;g<l;g++){for(var v=g+1,b=o[g],x=o[g+1],w=b;w<x;w++){var N=a[w];d[N]=i[w],y[N]=v}for(var O=0;O<f;O++)0===g&&(m[O]=[]),y[O]===v?m[O][g]=n?p(t,d[O]):p(d[O],t):m[O][g]=n?p(t,0):p(0,t)}return h}}),xr=["typed","matrix","equalScalar","DenseMatrix"],wr=Object(s.a)("mod",xr,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.DenseMatrix,a=nr({typed:t,equalScalar:n}),o=dr({typed:t}),s=gr({typed:t,equalScalar:n}),u=sr({typed:t,equalScalar:n}),c=br({typed:t,DenseMatrix:i}),f=Xt({typed:t}),l=Kt({typed:t}),p=t("mod",{"number, number":ct,"BigNumber, BigNumber":function(e,t){return t.isZero()?e:e.mod(t)},"Fraction, Fraction":function(e,t){return e.mod(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,p,!1)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,p,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,p,!1)},"DenseMatrix, DenseMatrix":function(e,t){return f(e,t,p)},"Array, Array":function(e,t){return p(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return p(r(e),t)},"Matrix, Array":function(e,t){return p(e,r(t))},"SparseMatrix, any":function(e,t){return u(e,t,p,!1)},"DenseMatrix, any":function(e,t){return l(e,t,p,!1)},"any, SparseMatrix":function(e,t){return c(t,e,p,!0)},"any, DenseMatrix":function(e,t){return l(t,e,p,!0)},"Array, any":function(e,t){return l(r(e),t,p,!1).valueOf()},"any, Array":function(e,t){return l(r(t),e,p,!0).valueOf()}});return p}),Nr=["typed"],Or=Object(s.a)("multiplyScalar",Nr,function(e){var n=(0,e.typed)("multiplyScalar",{"number, number":Ye,"Complex, Complex":function(e,t){return e.mul(t)},"BigNumber, BigNumber":function(e,t){return e.times(t)},"Fraction, Fraction":function(e,t){return e.mul(t)},"number | Fraction | BigNumber | Complex, Unit":function(e,t){var r=t.clone();return r.value=null===r.value?r._normalize(e):n(r.value,e),r},"Unit, number | Fraction | BigNumber | Complex":function(e,t){var r=e.clone();return r.value=null===r.value?r._normalize(t):n(r.value,t),r},"Unit, Unit":function(e,t){return e.multiply(t)}});return n}),Mr="multiply",Er=["typed","matrix","addScalar","multiplyScalar","equalScalar"],Sr=Object(s.a)(Mr,Er,function(e){var z=e.typed,n=e.matrix,D=e.addScalar,R=e.multiplyScalar,B=e.equalScalar,r=sr({typed:z,equalScalar:B}),i=Kt({typed:z}),a=z(Mr,Object(W.e)({"Array, Array":function(e,t){o(Object(I.a)(e),Object(I.a)(t));var r=a(n(e),n(t));return Object(ie.v)(r)?r.valueOf():r},"Matrix, Matrix":function(e,t){var r=e.size(),n=t.size();return o(r,n),1===r.length?1===n.length?function(e,t,r){if(0===r)throw new Error("Cannot multiply two empty vectors");var n,i=e._data,a=e._datatype,o=t._data,s=t._datatype,u=D,c=R;a&&s&&a===s&&"string"==typeof a&&(n=a,u=z.find(D,[n,n]),c=z.find(R,[n,n]));for(var f=c(i[0],o[0]),l=1;l<r;l++)f=u(f,c(i[l],o[l]));return f}(e,t,r[0]):function(e,t){if("dense"===t.storage())return function(e,t){var r,n=e._data,i=e._size,a=e._datatype,o=t._data,s=t._size,u=t._datatype,c=i[0],f=s[1],l=D,p=R;a&&u&&a===u&&"string"==typeof a&&(r=a,l=z.find(D,[r,r]),p=z.find(R,[r,r]));for(var m=[],h=0;h<f;h++){for(var d=p(n[0],o[0][h]),y=1;y<c;y++)d=l(d,p(n[y],o[y][h]));m[h]=d}return e.createDenseMatrix({data:m,size:[f],datatype:r})}(e,t);throw new Error("Support for SparseMatrix not implemented")}(e,t):1===n.length?s(e,t):u(e,t)},"Matrix, Array":function(e,t){return a(e,n(t))},"Array, Matrix":function(e,t){return a(n(e,t.storage()),t)},"SparseMatrix, any":function(e,t){return r(e,t,R,!1)},"DenseMatrix, any":function(e,t){return i(e,t,R,!1)},"any, SparseMatrix":function(e,t){return r(t,e,R,!0)},"any, DenseMatrix":function(e,t){return i(t,e,R,!0)},"Array, any":function(e,t){return i(n(e),t,R,!1).valueOf()},"any, Array":function(e,t){return i(n(t),e,R,!0).valueOf()},"any, any":R,"any, any, ...any":function(e,t,r){for(var n=a(e,t),i=0;i<r.length;i++)n=a(n,r[i]);return n}},R.signatures));function o(e,t){switch(e.length){case 1:switch(t.length){case 1:if(e[0]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(e[0]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+e[0]+") must match Matrix rows ("+t[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;case 2:switch(t.length){case 1:if(e[1]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+e[1]+") must match Vector length ("+t[0]+")");break;case 2:if(e[1]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+e[1]+") must match Matrix B rows ("+t[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+e.length+" dimensions)")}}var s=z("_multiplyMatrixVector",{"DenseMatrix, any":function(e,t){var r,n=e._data,i=e._size,a=e._datatype,o=t._data,s=t._datatype,u=i[0],c=i[1],f=D,l=R;a&&s&&a===s&&"string"==typeof a&&(r=a,f=z.find(D,[r,r]),l=z.find(R,[r,r]));for(var p=[],m=0;m<u;m++){for(var h=n[m],d=l(h[0],o[0]),y=1;y<c;y++)d=f(d,l(h[y],o[y]));p[m]=d}return e.createDenseMatrix({data:p,size:[u],datatype:r})},"SparseMatrix, any":function(e,t){var r=e._values,n=e._index,i=e._ptr,a=e._datatype;if(!r)throw new Error("Cannot multiply Pattern only Matrix times Dense Matrix");var o,s=t._data,u=t._datatype,c=e._size[0],f=t._size[0],l=[],p=[],m=[],h=D,d=R,y=B,g=0;a&&u&&a===u&&"string"==typeof a&&(o=a,h=z.find(D,[o,o]),d=z.find(R,[o,o]),y=z.find(B,[o,o]),g=z.convert(0,o));for(var v=[],b=[],x=m[0]=0;x<f;x++){var w=s[x];if(!y(w,g))for(var N=i[x],O=i[x+1],M=N;M<O;M++){var E=n[M];b[E]?v[E]=h(v[E],d(w,r[M])):(b[E]=!0,p.push(E),v[E]=d(w,r[M]))}}for(var S=p.length,j=0;j<S;j++){var A=p[j];l[j]=v[A]}return m[1]=p.length,e.createSparseMatrix({values:l,index:p,ptr:m,size:[c,1],datatype:o})}}),u=z("_multiplyMatrixMatrix",{"DenseMatrix, DenseMatrix":function(e,t){var r,n=e._data,i=e._size,a=e._datatype,o=t._data,s=t._size,u=t._datatype,c=i[0],f=i[1],l=s[1],p=D,m=R;a&&u&&a===u&&"string"==typeof a&&(r=a,p=z.find(D,[r,r]),m=z.find(R,[r,r]));for(var h=[],d=0;d<c;d++){var y=n[d];h[d]=[];for(var g=0;g<l;g++){for(var v=m(y[0],o[0][g]),b=1;b<f;b++)v=p(v,m(y[b],o[b][g]));h[d][g]=v}}return e.createDenseMatrix({data:h,size:[c,l],datatype:r})},"DenseMatrix, SparseMatrix":function(e,t){var r=e._data,n=e._size,i=e._datatype,a=t._values,o=t._index,s=t._ptr,u=t._size,c=t._datatype;if(!a)throw new Error("Cannot multiply Dense Matrix times Pattern only Matrix");var f,l=n[0],p=u[1],m=D,h=R,d=B,y=0;i&&c&&i===c&&"string"==typeof i&&(f=i,m=z.find(D,[f,f]),h=z.find(R,[f,f]),d=z.find(B,[f,f]),y=z.convert(0,f));for(var g=[],v=[],b=[],x=t.createSparseMatrix({values:g,index:v,ptr:b,size:[l,p],datatype:f}),w=0;w<p;w++){b[w]=v.length;var N=s[w],O=s[w+1];if(N<O)for(var M=0,E=0;E<l;E++){for(var S=E+1,j=void 0,A=N;A<O;A++){var C=o[A];M!==S?(j=h(r[E][C],a[A]),M=S):j=m(j,h(r[E][C],a[A]))}M!==S||d(j,y)||(v.push(E),g.push(j))}}return b[p]=v.length,x},"SparseMatrix, DenseMatrix":function(e,t){var r=e._values,n=e._index,i=e._ptr,a=e._datatype;if(!r)throw new Error("Cannot multiply Pattern only Matrix times Dense Matrix");var o,s=t._data,u=t._datatype,c=e._size[0],f=t._size[0],l=t._size[1],p=D,m=R,h=B,d=0;a&&u&&a===u&&"string"==typeof a&&(o=a,p=z.find(D,[o,o]),m=z.find(R,[o,o]),h=z.find(B,[o,o]),d=z.convert(0,o));for(var y=[],g=[],v=[],b=e.createSparseMatrix({values:y,index:g,ptr:v,size:[c,l],datatype:o}),x=[],w=[],N=0;N<l;N++){v[N]=g.length;for(var O=N+1,M=0;M<f;M++){var E=s[M][N];if(!h(E,d))for(var S=i[M],j=i[M+1],A=S;A<j;A++){var C=n[A];w[C]!==O?(w[C]=O,g.push(C),x[C]=m(E,r[A])):x[C]=p(x[C],m(E,r[A]))}}for(var T=v[N],_=g.length,I=T;I<_;I++){var q=g[I];y[I]=x[q]}}return v[l]=g.length,b},"SparseMatrix, SparseMatrix":function(e,t){var r,n=e._values,i=e._index,a=e._ptr,o=e._datatype,s=t._values,u=t._index,c=t._ptr,f=t._datatype,l=e._size[0],p=t._size[1],m=n&&s,h=D,d=R;o&&f&&o===f&&"string"==typeof o&&(r=o,h=z.find(D,[r,r]),d=z.find(R,[r,r]));for(var y,g,v,b,x,w,N,O,M=m?[]:void 0,E=[],S=[],j=e.createSparseMatrix({values:M,index:E,ptr:S,size:[l,p],datatype:r}),A=m?[]:void 0,C=[],T=0;T<p;T++){S[T]=E.length;var _=T+1;for(x=c[T],w=c[T+1],b=x;b<w;b++)if(O=u[b],m)for(g=a[O],v=a[O+1],y=g;y<v;y++)N=i[y],C[N]!==_?(C[N]=_,E.push(N),A[N]=d(s[b],n[y])):A[N]=h(A[N],d(s[b],n[y]));else for(g=a[O],v=a[O+1],y=g;y<v;y++)N=i[y],C[N]!==_&&(C[N]=_,E.push(N));if(m)for(var I=S[T],q=E.length,B=I;B<q;B++){var k=E[B];M[B]=A[k]}}return S[p]=E.length,j}});return a}),jr="nthRoot",Ar=["typed","matrix","equalScalar","BigNumber"],Cr=Object(s.a)(jr,Ar,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,u=e.BigNumber,i=Gt({typed:t}),a=nr({typed:t,equalScalar:n}),o=ar({typed:t,equalScalar:n}),s=sr({typed:t,equalScalar:n}),c=Xt({typed:t}),f=Kt({typed:t}),l="Complex number not supported in function nthRoot. Use nthRoots instead.",p=t(jr,{number:function(e){return ft(e,2)},"number, number":ft,BigNumber:function(e){return m(e,new u(2))},Complex:function(e){throw new Error(l)},"Complex, number":function(e,t){throw new Error(l)},"BigNumber, BigNumber":m,"Array | Matrix":function(e){return p(e,2)},"SparseMatrix, SparseMatrix":function(e,t){if(1===t.density())return o(e,t,p);throw new Error("Root must be non-zero")},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,p,!0)},"DenseMatrix, SparseMatrix":function(e,t){if(1===t.density())return i(e,t,p,!1);throw new Error("Root must be non-zero")},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,p)},"Array, Array":function(e,t){return p(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return p(r(e),t)},"Matrix, Array":function(e,t){return p(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return s(e,t,p,!1)},"DenseMatrix, number | BigNumber":function(e,t){return f(e,t,p,!1)},"number | BigNumber, SparseMatrix":function(e,t){if(1===t.density())return s(t,e,p,!0);throw new Error("Root must be non-zero")},"number | BigNumber, DenseMatrix":function(e,t){return f(t,e,p,!0)},"Array, number | BigNumber":function(e,t){return p(r(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return p(e,r(t)).valueOf()}});return p;function m(e,t){var r=u.precision,n=u.clone({precision:r+2}),i=new u(0),a=new n(1),o=t.isNegative();if(o&&(t=t.neg()),t.isZero())throw new Error("Root must be non-zero");if(e.isNegative()&&!t.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");if(e.isZero())return o?new n(1/0):0;if(!e.isFinite())return o?i:e;var s=e.abs().pow(a.div(t));return s=e.isNeg()?s.neg():s,new u((o?a.div(s):s).toPrecision(r))}}),Tr=["typed","BigNumber","Fraction"],_r=Object(s.a)("sign",Tr,function(e){var t=e.typed,r=e.BigNumber,n=e.Fraction,i=t("sign",{number:lt,Complex:function(e){return e.sign()},BigNumber:function(e){return new r(e.cmp(0))},Fraction:function(e){return new n(e.s,1)},"Array | Matrix":function(e){return ae(e,i,!0)},Unit:function(e){return i(e.value)}});return i}),Ir=["config","typed","Complex"],qr=Object(s.a)("sqrt",Ir,function(e){var t=e.config,r=e.typed,n=e.Complex,i=r("sqrt",{number:a,Complex:function(e){return e.sqrt()},BigNumber:function(e){return!e.isNegative()||t.predictable?e.sqrt():a(e.toNumber())},"Array | Matrix":function(e){return ae(e,i,!0)},Unit:function(e){return e.pow(.5)}});function a(e){return isNaN(e)?NaN:0<=e||t.predictable?Math.sqrt(e):new n(e,0).sqrt()}return i}),Br=["typed"],kr=Object(s.a)("square",Br,function(e){var t=(0,e.typed)("square",{number:pt,Complex:function(e){return e.mul(e)},BigNumber:function(e){return e.times(e)},Fraction:function(e){return e.mul(e)},"Array | Matrix":function(e){return ae(e,t,!0)},Unit:function(e){return e.pow(2)}});return t}),zr="subtract",Dr=["typed","matrix","equalScalar","addScalar","unaryMinus","DenseMatrix"],Rr=Object(s.a)(zr,Dr,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.addScalar,a=e.unaryMinus,o=e.DenseMatrix,s=Gt({typed:t}),u=dr({typed:t}),c=gr({typed:t,equalScalar:n}),f=Wt({typed:t,DenseMatrix:o}),l=Xt({typed:t}),p=Kt({typed:t}),m=t(zr,{"number, number":function(e,t){return e-t},"Complex, Complex":function(e,t){return e.sub(t)},"BigNumber, BigNumber":function(e,t){return e.minus(t)},"Fraction, Fraction":function(e,t){return e.sub(t)},"Unit, Unit":function(e,t){if(null===e.value)throw new Error("Parameter x contains a unit with undefined value");if(null===t.value)throw new Error("Parameter y contains a unit with undefined value");if(!e.equalBase(t))throw new Error("Units do not match");var r=e.clone();return r.value=m(r.value,t.value),r.fixPrefix=!1,r},"SparseMatrix, SparseMatrix":function(e,t){return Pr(e,t),c(e,t,m)},"SparseMatrix, DenseMatrix":function(e,t){return Pr(e,t),u(t,e,m,!0)},"DenseMatrix, SparseMatrix":function(e,t){return Pr(e,t),s(e,t,m,!1)},"DenseMatrix, DenseMatrix":function(e,t){return Pr(e,t),l(e,t,m)},"Array, Array":function(e,t){return m(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return m(r(e),t)},"Matrix, Array":function(e,t){return m(e,r(t))},"SparseMatrix, any":function(e,t){return f(e,a(t),i)},"DenseMatrix, any":function(e,t){return p(e,t,m)},"any, SparseMatrix":function(e,t){return f(t,e,m,!0)},"any, DenseMatrix":function(e,t){return p(t,e,m,!0)},"Array, any":function(e,t){return p(r(e),t,m,!1).valueOf()},"any, Array":function(e,t){return p(r(t),e,m,!0).valueOf()}});return m});function Pr(e,t){var r=e.size(),n=t.size();if(r.length!==n.length)throw new D.a(r.length,n.length)}var Fr=["typed","config","matrix","BigNumber"],Ur=Object(s.a)("xgcd",Fr,function(e){var t=e.typed,p=e.config,m=e.matrix,h=e.BigNumber;return t("xgcd",{"number, number":function(e,t){var r=mt(e,t);return"Array"===p.matrix?r:m(r)},"BigNumber, BigNumber":function(e,t){var r,n,i,a,o=new h(0),s=new h(1),u=o,c=s,f=s,l=o;if(!e.isInt()||!t.isInt())throw new Error("Parameters in function xgcd must be integer numbers");for(;!t.isZero();)n=e.div(t).floor(),i=e.mod(t),r=u,u=c.minus(n.times(u)),c=r,r=f,f=l.minus(n.times(f)),l=r,e=t,t=i;a=e.lt(o)?[e.neg(),c.neg(),l.neg()]:[e,e.isZero()?0:c,l];return"Array"===p.matrix?a:m(a)}})}),Lr=["typed","equalScalar"],Hr=Object(s.a)("algorithm09",Lr,function(e){var q=e.typed,B=e.equalScalar;return function(e,t,r){var n=e._values,i=e._index,a=e._ptr,o=e._size,s=e._datatype,u=t._values,c=t._index,f=t._ptr,l=t._size,p=t._datatype;if(o.length!==l.length)throw new D.a(o.length,l.length);if(o[0]!==l[0]||o[1]!==l[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+l+")");var m,h=o[0],d=o[1],y=B,g=0,v=r;"string"==typeof s&&s===p&&(m=s,y=q.find(B,[m,m]),g=q.convert(0,m),v=q.find(r,[m,m]));var b,x,w,N,O,M=n&&u?[]:void 0,E=[],S=[],j=e.createSparseMatrix({values:M,index:E,ptr:S,size:[h,d],datatype:m}),A=M?[]:void 0,C=[];for(x=0;x<d;x++){S[x]=E.length;var T=x+1;if(A)for(N=f[x],O=f[x+1],w=N;w<O;w++)C[b=c[w]]=T,A[b]=u[w];for(N=a[x],O=a[x+1],w=N;w<O;w++)if(b=i[w],A){var _=C[b]===T?A[b]:g,I=v(n[w],_);y(I,g)||(E.push(b),M.push(I))}else E.push(b)}return S[d]=E.length,j}}),$r="dotMultiply",Gr=["typed","matrix","equalScalar","multiplyScalar"],Zr=Object(s.a)($r,Gr,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.multiplyScalar,a=nr({typed:t,equalScalar:n}),o=Hr({typed:t,equalScalar:n}),s=sr({typed:t,equalScalar:n}),u=Xt({typed:t}),c=Kt({typed:t}),f=t($r,{"any, any":i,"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,i,!1)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,i,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,i,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,i)},"Array, Array":function(e,t){return f(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return f(r(e),t)},"Matrix, Array":function(e,t){return f(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,i,!1)},"DenseMatrix, any":function(e,t){return c(e,t,i,!1)},"any, SparseMatrix":function(e,t){return s(t,e,i,!0)},"any, DenseMatrix":function(e,t){return c(t,e,i,!0)},"Array, any":function(e,t){return c(r(e),t,i,!1).valueOf()},"any, Array":function(e,t){return c(r(t),e,i,!0).valueOf()}});return f});function Vr(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitAnd");var r=e.constructor;if(e.isNaN()||t.isNaN())return new r(NaN);if(e.isZero()||t.eq(-1)||e.eq(t))return e;if(t.isZero()||e.eq(-1))return t;if(!e.isFinite()||!t.isFinite()){if(!e.isFinite()&&!t.isFinite())return e.isNegative()===t.isNegative()?e:new r(0);if(!e.isFinite())return t.isNegative()?e:e.isNegative()?new r(0):t;if(!t.isFinite())return e.isNegative()?t:t.isNegative()?new r(0):e}return Yr(e,t,function(e,t){return e&t})}function Jr(e){if(e.isFinite()&&!e.isInteger())throw new Error("Integer expected in function bitNot");var t=e.constructor,r=t.precision;t.config({precision:1e9});var n=e.plus(new t(1));return n.s=-n.s||null,t.config({precision:r}),n}function Wr(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitOr");var r=e.constructor;if(e.isNaN()||t.isNaN())return new r(NaN);var n=new r(-1);return e.isZero()||t.eq(n)||e.eq(t)?t:t.isZero()||e.eq(n)?e:e.isFinite()&&t.isFinite()?Yr(e,t,function(e,t){return e|t}):!e.isFinite()&&!e.isNegative()&&t.isNegative()||e.isNegative()&&!t.isNegative()&&!t.isFinite()?n:e.isNegative()&&t.isNegative()?e.isFinite()?e:t:e.isFinite()?t:e}function Yr(e,t,r){var n,i,a,o,s,u=e.constructor,c=+(e.s<0),f=+(t.s<0);if(c){n=Xr(Jr(e));for(var l=0;l<n.length;++l)n[l]^=1}else n=Xr(e);if(f){i=Xr(Jr(t));for(var p=0;p<i.length;++p)i[p]^=1}else i=Xr(t);s=n.length<=i.length?(a=n,o=i,c):(a=i,o=n,f);var m=a.length,h=o.length,d=1^r(c,f),y=new u(1^d),g=new u(1),v=new u(2),b=u.precision;for(u.config({precision:1e9});0<m;)r(a[--m],o[--h])===d&&(y=y.plus(g)),g=g.times(v);for(;0<h;)r(s,o[--h])===d&&(y=y.plus(g)),g=g.times(v);return u.config({precision:b}),0==d&&(y.s=-y.s),y}function Xr(e){for(var t=e.d,r=t[0]+"",n=1;n<t.length;++n){for(var i=t[n]+"",a=7-i.length;a--;)i="0"+i;r+=i}for(var o=r.length;"0"===r.charAt(o);)o--;var s=e.e,u=r.slice(0,o+1||1),c=u.length;if(0<s)if(++s>c)for(s-=c;s--;)u+="0";else s<c&&(u=u.slice(0,s)+"."+u.slice(s));for(var f=[0],l=0;l<u.length;){for(var p=f.length;p--;)f[p]*=10;f[0]+=parseInt(u.charAt(l++));for(var m=0;m<f.length;++m)1<f[m]&&(null!==f[m+1]&&void 0!==f[m+1]||(f[m+1]=0),f[m+1]+=f[m]>>1,f[m]&=1)}return f.reverse()}function Qr(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitXor");var r=e.constructor;if(e.isNaN()||t.isNaN())return new r(NaN);if(e.isZero())return t;if(t.isZero())return e;if(e.eq(t))return new r(0);var n=new r(-1);return e.eq(n)?Jr(t):t.eq(n)?Jr(e):e.isFinite()&&t.isFinite()?Yr(e,t,function(e,t){return e^t}):e.isFinite()||t.isFinite()?new r(e.isNegative()===t.isNegative()?1/0:-1/0):n}function Kr(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function leftShift");var r=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new r(NaN):e.isZero()||t.isZero()?e:e.isFinite()||t.isFinite()?t.lt(55)?e.times(Math.pow(2,t.toNumber())+""):e.times(new r(2).pow(t)):new r(NaN)}function en(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function rightArithShift");var r=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new r(NaN):e.isZero()||t.isZero()?e:t.isFinite()?t.lt(55)?e.div(Math.pow(2,t.toNumber())+"").floor():e.div(new r(2).pow(t)).floor():e.isNegative()?new r(-1):e.isFinite()?new r(0):new r(NaN)}var tn="number, number";function rn(e,t){if(!Object(S.i)(e)||!Object(S.i)(t))throw new Error("Integers expected in function bitAnd");return e&t}function nn(e){if(!Object(S.i)(e))throw new Error("Integer expected in function bitNot");return~e}function an(e,t){if(!Object(S.i)(e)||!Object(S.i)(t))throw new Error("Integers expected in function bitOr");return e|t}function on(e,t){if(!Object(S.i)(e)||!Object(S.i)(t))throw new Error("Integers expected in function bitXor");return e^t}function sn(e,t){if(!Object(S.i)(e)||!Object(S.i)(t))throw new Error("Integers expected in function leftShift");return e<<t}function un(e,t){if(!Object(S.i)(e)||!Object(S.i)(t))throw new Error("Integers expected in function rightArithShift");return e>>t}function cn(e,t){if(!Object(S.i)(e)||!Object(S.i)(t))throw new Error("Integers expected in function rightLogShift");return e>>>t}rn.signature=tn,nn.signature="number",cn.signature=un.signature=sn.signature=on.signature=an.signature=tn;var fn=["typed","matrix","equalScalar"],ln=Object(s.a)("bitAnd",fn,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=nr({typed:t,equalScalar:n}),a=ar({typed:t,equalScalar:n}),o=sr({typed:t,equalScalar:n}),s=Xt({typed:t}),u=Kt({typed:t}),c=t("bitAnd",{"number, number":rn,"BigNumber, BigNumber":Vr,"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,c,!1)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,c,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,c,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,c)},"Array, Array":function(e,t){return c(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return c(r(e),t)},"Matrix, Array":function(e,t){return c(e,r(t))},"SparseMatrix, any":function(e,t){return o(e,t,c,!1)},"DenseMatrix, any":function(e,t){return u(e,t,c,!1)},"any, SparseMatrix":function(e,t){return o(t,e,c,!0)},"any, DenseMatrix":function(e,t){return u(t,e,c,!0)},"Array, any":function(e,t){return u(r(e),t,c,!1).valueOf()},"any, Array":function(e,t){return u(r(t),e,c,!0).valueOf()}});return c}),pn=["typed"],mn=Object(s.a)("bitNot",pn,function(e){var t=(0,e.typed)("bitNot",{number:nn,BigNumber:Jr,"Array | Matrix":function(e){return ae(e,t)}});return t}),hn=["typed","matrix","equalScalar","DenseMatrix"],dn=Object(s.a)("bitOr",hn,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.DenseMatrix,a=Gt({typed:t}),o=Vt({typed:t,equalScalar:n}),s=Wt({typed:t,DenseMatrix:i}),u=Xt({typed:t}),c=Kt({typed:t}),f=t("bitOr",{"number, number":an,"BigNumber, BigNumber":Wr,"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,f)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,f,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,f,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,f)},"Array, Array":function(e,t){return f(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return f(r(e),t)},"Matrix, Array":function(e,t){return f(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,f,!1)},"DenseMatrix, any":function(e,t){return c(e,t,f,!1)},"any, SparseMatrix":function(e,t){return s(t,e,f,!0)},"any, DenseMatrix":function(e,t){return c(t,e,f,!0)},"Array, any":function(e,t){return c(r(e),t,f,!1).valueOf()},"any, Array":function(e,t){return c(r(t),e,f,!0).valueOf()}});return f}),yn=["typed","DenseMatrix"],gn=Object(s.a)("algorithm07",yn,function(e){var O=e.typed,M=e.DenseMatrix;return function(e,t,r){var n=e._size,i=e._datatype,a=t._size,o=t._datatype;if(n.length!==a.length)throw new D.a(n.length,a.length);if(n[0]!==a[0]||n[1]!==a[1])throw new RangeError("Dimension mismatch. Matrix A ("+n+") must match Matrix B ("+a+")");var s,u,c,f=n[0],l=n[1],p=0,m=r;"string"==typeof i&&i===o&&(s=i,p=O.convert(0,s),m=O.find(r,[s,s]));var h=[];for(u=0;u<f;u++)h[u]=[];var d=new M({data:h,size:[f,l],datatype:s}),y=[],g=[],v=[],b=[];for(c=0;c<l;c++){var x=c+1;for(E(e,c,v,y,x),E(t,c,b,g,x),u=0;u<f;u++){var w=v[u]===x?y[u]:p,N=b[u]===x?g[u]:p;h[u][c]=m(w,N)}}return d};function E(e,t,r,n,i){for(var a=e._values,o=e._index,s=e._ptr,u=s[t],c=s[t+1];u<c;u++){var f=o[u];r[f]=i,n[f]=a[u]}}}),vn=["typed","matrix","DenseMatrix"],bn=Object(s.a)("bitXor",vn,function(e){var t=e.typed,r=e.matrix,n=e.DenseMatrix,i=dr({typed:t}),a=gn({typed:t,DenseMatrix:n}),o=br({typed:t,DenseMatrix:n}),s=Xt({typed:t}),u=Kt({typed:t}),c=t("bitXor",{"number, number":on,"BigNumber, BigNumber":Qr,"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,c)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,c,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,c,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,c)},"Array, Array":function(e,t){return c(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return c(r(e),t)},"Matrix, Array":function(e,t){return c(e,r(t))},"SparseMatrix, any":function(e,t){return o(e,t,c,!1)},"DenseMatrix, any":function(e,t){return u(e,t,c,!1)},"any, SparseMatrix":function(e,t){return o(t,e,c,!0)},"any, DenseMatrix":function(e,t){return u(t,e,c,!0)},"Array, any":function(e,t){return u(r(e),t,c,!1).valueOf()},"any, Array":function(e,t){return u(r(t),e,c,!0).valueOf()}});return c}),xn=["typed"],wn=Object(s.a)("arg",xn,function(e){var t=(0,e.typed)("arg",{number:function(e){return Math.atan2(0,e)},BigNumber:function(e){return e.constructor.atan2(0,e)},Complex:function(e){return e.arg()},"Array | Matrix":function(e){return ae(e,t)}});return t}),Nn=["typed"],On=Object(s.a)("conj",Nn,function(e){var t=(0,e.typed)("conj",{number:function(e){return e},BigNumber:function(e){return e},Complex:function(e){return e.conjugate()},"Array | Matrix":function(e){return ae(e,t)}});return t}),Mn=["typed"],En=Object(s.a)("im",Mn,function(e){var t=(0,e.typed)("im",{number:function(e){return 0},BigNumber:function(e){return e.mul(0)},Complex:function(e){return e.im},"Array | Matrix":function(e){return ae(e,t)}});return t}),Sn=["typed"],jn=Object(s.a)("re",Sn,function(e){var t=(0,e.typed)("re",{number:function(e){return e},BigNumber:function(e){return e},Complex:function(e){return e.re},"Array | Matrix":function(e){return ae(e,t)}});return t}),An="number, number";function Cn(e){return!e}function Tn(e,t){return!(!e&&!t)}function _n(e,t){return!!e!=!!t}function In(e,t){return!(!e||!t)}Cn.signature="number",In.signature=_n.signature=Tn.signature=An;var qn=["typed"],Bn=Object(s.a)("not",qn,function(e){var t=(0,e.typed)("not",{number:Cn,Complex:function(e){return 0===e.re&&0===e.im},BigNumber:function(e){return e.isZero()||e.isNaN()},Unit:function(e){return null===e.value||t(e.value)},"Array | Matrix":function(e){return ae(e,t)}});return t}),kn=["typed","matrix","equalScalar","DenseMatrix"],zn=Object(s.a)("or",kn,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.DenseMatrix,a=dr({typed:t}),o=gr({typed:t,equalScalar:n}),s=br({typed:t,DenseMatrix:i}),u=Xt({typed:t}),c=Kt({typed:t}),f=t("or",{"number, number":Tn,"Complex, Complex":function(e,t){return 0!==e.re||0!==e.im||0!==t.re||0!==t.im},"BigNumber, BigNumber":function(e,t){return!e.isZero()&&!e.isNaN()||!t.isZero()&&!t.isNaN()},"Unit, Unit":function(e,t){return f(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,f)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,f,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,f,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,f)},"Array, Array":function(e,t){return f(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return f(r(e),t)},"Matrix, Array":function(e,t){return f(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,f,!1)},"DenseMatrix, any":function(e,t){return c(e,t,f,!1)},"any, SparseMatrix":function(e,t){return s(t,e,f,!0)},"any, DenseMatrix":function(e,t){return c(t,e,f,!0)},"Array, any":function(e,t){return c(r(e),t,f,!1).valueOf()},"any, Array":function(e,t){return c(r(t),e,f,!0).valueOf()}});return f}),Dn=["typed","matrix","DenseMatrix"],Rn=Object(s.a)("xor",Dn,function(e){var t=e.typed,r=e.matrix,n=e.DenseMatrix,i=dr({typed:t}),a=gn({typed:t,DenseMatrix:n}),o=br({typed:t,DenseMatrix:n}),s=Xt({typed:t}),u=Kt({typed:t}),c=t("xor",{"number, number":_n,"Complex, Complex":function(e,t){return(0!==e.re||0!==e.im)!=(0!==t.re||0!==t.im)},"BigNumber, BigNumber":function(e,t){return(!e.isZero()&&!e.isNaN())!=(!t.isZero()&&!t.isNaN())},"Unit, Unit":function(e,t){return c(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,c)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,c,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,c,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,c)},"Array, Array":function(e,t){return c(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return c(r(e),t)},"Matrix, Array":function(e,t){return c(e,r(t))},"SparseMatrix, any":function(e,t){return o(e,t,c,!1)},"DenseMatrix, any":function(e,t){return u(e,t,c,!1)},"any, SparseMatrix":function(e,t){return o(t,e,c,!0)},"any, DenseMatrix":function(e,t){return u(t,e,c,!0)},"Array, any":function(e,t){return u(r(e),t,c,!1).valueOf()},"any, Array":function(e,t){return u(r(t),e,c,!0).valueOf()}});return c}),Pn=["typed","matrix","isInteger"],Fn=Object(s.a)("concat",Pn,function(e){var t=e.typed,l=e.matrix,p=e.isInteger;return t("concat",{"...Array | Matrix | number | BigNumber":function(e){var t,r,n=e.length,i=-1,a=!1,o=[];for(t=0;t<n;t++){var s=e[t];if(Object(ie.v)(s)&&(a=!0),Object(ie.y)(s)||Object(ie.e)(s)){if(t!==n-1)throw new Error("Dimension must be specified as last argument");if(r=i,i=s.valueOf(),!p(i))throw new TypeError("Integer number expected for dimension");if(i<0||0<t&&r<i)throw new R.a(i,r+1)}else{var u=Object(W.a)(s).valueOf(),c=Object(I.a)(u);if(o[t]=u,r=i,i=c.length-1,0<t&&i!==r)throw new D.a(r+1,i+1)}}if(0===o.length)throw new SyntaxError("At least one matrix expected");for(var f=o.shift();o.length;)f=Un(f,o.shift(),i,0);return a?l(f):f},"...string":function(e){return e.join("")}})});function Un(e,t,r,n){if(n<r){if(e.length!==t.length)throw new D.a(e.length,t.length);for(var i=[],a=0;a<e.length;a++)i[a]=Un(e[a],t[a],r,n+1);return i}return e.concat(t)}var Ln=["typed","Index","matrix","range"],Hn=Object(s.a)("column",Ln,function(e){var t=e.typed,i=e.Index,r=e.matrix,a=e.range;return t("column",{"Matrix, number":n,"Array, number":function(e,t){return n(r(Object(W.a)(e)),t).valueOf()}});function n(e,t){if(2!==e.size().length)throw new Error("Only two dimensional matrix is supported");Object(I.s)(t,e.size()[1]);var r=a(0,e.size()[0]),n=new i(r,t);return e.subset(n)}}),$n=["typed","matrix","subtract","multiply"],Gn=Object(s.a)("cross",$n,function(e){var t=e.typed,r=e.matrix,o=e.subtract,s=e.multiply;return t("cross",{"Matrix, Matrix":function(e,t){return r(n(e.toArray(),t.toArray()))},"Matrix, Array":function(e,t){return r(n(e.toArray(),t))},"Array, Matrix":function(e,t){return r(n(e,t.toArray()))},"Array, Array":n});function n(e,t){var r=Math.max(Object(I.a)(e).length,Object(I.a)(t).length);e=Object(I.p)(e),t=Object(I.p)(t);var n=Object(I.a)(e),i=Object(I.a)(t);if(1!==n.length||1!==i.length||3!==n[0]||3!==i[0])throw new RangeError("Vectors with length 3 expected (Size A = ["+n.join(", ")+"], B = ["+i.join(", ")+"])");var a=[o(s(e[1],t[2]),s(e[2],t[1])),o(s(e[2],t[0]),s(e[0],t[2])),o(s(e[0],t[1]),s(e[1],t[0]))];return 1<r?[a]:a}}),Zn=["typed","matrix","DenseMatrix","SparseMatrix"],Vn=Object(s.a)("diag",Zn,function(e){var t=e.typed,f=e.matrix,u=e.DenseMatrix,c=e.SparseMatrix;return t("diag",{Array:function(e){return n(e,0,Object(I.a)(e),null)},"Array, number":function(e,t){return n(e,t,Object(I.a)(e),null)},"Array, BigNumber":function(e,t){return n(e,t.toNumber(),Object(I.a)(e),null)},"Array, string":function(e,t){return n(e,0,Object(I.a)(e),t)},"Array, number, string":function(e,t,r){return n(e,t,Object(I.a)(e),r)},"Array, BigNumber, string":function(e,t,r){return n(e,t.toNumber(),Object(I.a)(e),r)},Matrix:function(e){return n(e,0,e.size(),e.storage())},"Matrix, number":function(e,t){return n(e,t,e.size(),e.storage())},"Matrix, BigNumber":function(e,t){return n(e,t.toNumber(),e.size(),e.storage())},"Matrix, string":function(e,t){return n(e,0,e.size(),t)},"Matrix, number, string":function(e,t,r){return n(e,t,e.size(),r)},"Matrix, BigNumber, string":function(e,t,r){return n(e,t.toNumber(),e.size(),r)}});function n(e,t,r,n){if(!Object(S.i)(t))throw new TypeError("Second parameter in function diag must be an integer");var i=0<t?t:0,a=t<0?-t:0;switch(r.length){case 1:return function(e,t,r,n,i,a){var o=[n+i,n+a];if(r&&"sparse"!==r&&"dense"!==r)throw new TypeError("Unknown matrix type ".concat(r,'"'));var s="sparse"===r?c.diagonal(o,e,t):u.diagonal(o,e,t);return null!==r?s:s.valueOf()}(e,t,n,r[0],a,i);case 2:return function(e,t,r,n,i,a){if(Object(ie.v)(e)){var o=e.diagonal(t);return null!==r?r!==o.storage()?f(o,r):o:o.valueOf()}for(var s=Math.min(n[0]-i,n[1]-a),u=[],c=0;c<s;c++)u[c]=e[c+i][c+a];return null!==r?f(u):u}(e,t,n,r,a,i)}throw new RangeError("Matrix for function diag must be 2 dimensional")}}),Jn=Object(s.a)("eye",[],function(){return function(){throw new Error('Function "eye" is renamed to "identity" since mathjs version 5.0.0. To keep eye working, create an alias for it using "math.import({eye: math.identity}, {override: true})"')}});function Wn(e){return(Wn="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 Yn(i,a){return function e(){"object"!==Wn(e.cache)&&(e.cache={});for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=a?a(t):JSON.stringify(t);return n in e.cache||(e.cache[n]=i.apply(i,t)),e.cache[n]}}function Xn(e){return Object.keys(e.signatures||{}).reduce(function(e,t){var r=(t.match(/,/g)||[]).length+1;return Math.max(e,r)},-1)}var Qn=["typed"],Kn=Object(s.a)("filter",Qn,function(e){return(0,e.typed)("filter",{"Array, function":ei,"Matrix, function":function(e,t){return e.create(ei(e.toArray(),t))},"Array, RegExp":I.d,"Matrix, RegExp":function(e,t){return e.create(Object(I.d)(e.toArray(),t))}})});function ei(e,n){var i=Xn(n);return Object(I.c)(e,function(e,t,r){return 1===i?n(e):2===i?n(e,[t]):n(e,[t],r)})}var ti="flatten",ri=["typed","matrix"],ni=Object(s.a)(ti,ri,function(e){var t=e.typed,r=e.matrix;return t(ti,{Array:function(e){return Object(I.e)(Object(W.a)(e))},Matrix:function(e){var t=Object(I.e)(Object(W.a)(e.toArray()));return r(t)}})}),ii="forEach",ai=["typed"],oi=Object(s.a)(ii,ai,function(e){return(0,e.typed)(ii,{"Array, function":si,"Matrix, function":function(e,t){return e.forEach(t)}})});function si(t,i){var a=Xn(i);!function r(e,n){Array.isArray(e)?Object(I.f)(e,function(e,t){r(e,n.concat(t))}):1===a?i(e):2===a?i(e,n):i(e,n,t)}(t,[])}var ui="getMatrixDataType",ci=["typed"],fi=Object(s.a)(ui,ci,function(e){return(0,e.typed)(ui,{Array:function(e){return Object(I.h)(e,ie.M)},Matrix:function(e){return e.getDataType()}})}),li="identity",pi=["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],mi=Object(s.a)(li,pi,function(e){var t=e.typed,r=e.config,n=e.matrix,f=e.BigNumber,l=e.DenseMatrix,p=e.SparseMatrix;return t(li,{"":function(){return"Matrix"===r.matrix?n([]):[]},string:function(e){return n(e)},"number | BigNumber":function(e){return a(e,e,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber, string":function(e,t){return a(e,e,t)},"number | BigNumber, number | BigNumber":function(e,t){return a(e,t,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function(e,t,r){return a(e,t,r)},Array:function(e){return i(e)},"Array, string":function(e,t){return i(e,t)},Matrix:function(e){return i(e.valueOf(),e.storage())},"Matrix, string":function(e,t){return i(e.valueOf(),t)}});function i(e,t){switch(e.length){case 0:return t?n(t):[];case 1:return a(e[0],e[0],t);case 2:return a(e[0],e[1],t);default:throw new Error("Vector containing two values expected")}}function a(e,t,r){var n=Object(ie.e)(e)||Object(ie.e)(t)?f:null;if(Object(ie.e)(e)&&(e=e.toNumber()),Object(ie.e)(t)&&(t=t.toNumber()),!Object(S.i)(e)||e<1)throw new Error("Parameters in function identity must be positive integers");if(!Object(S.i)(t)||t<1)throw new Error("Parameters in function identity must be positive integers");var i=n?new f(1):1,a=n?new n(0):0,o=[e,t];if(r){if("sparse"===r)return p.diagonal(o,i,0,a);if("dense"===r)return l.diagonal(o,i,0,a);throw new TypeError('Unknown matrix type "'.concat(r,'"'))}for(var s=Object(I.o)([],o,a),u=e<t?e:t,c=0;c<u;c++)s[c][c]=i;return s}}),hi=["typed","matrix","multiplyScalar"],di=Object(s.a)("kron",hi,function(e){var t=e.typed,r=e.matrix,a=e.multiplyScalar;return t("kron",{"Matrix, Matrix":function(e,t){return r(n(e.toArray(),t.toArray()))},"Matrix, Array":function(e,t){return r(n(e.toArray(),t))},"Array, Matrix":function(e,t){return r(n(e,t.toArray()))},"Array, Array":n});function n(e,r){if(1===Object(I.a)(e).length&&(e=[e]),1===Object(I.a)(r).length&&(r=[r]),2<Object(I.a)(e).length||2<Object(I.a)(r).length)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(e.length)+", y = "+JSON.stringify(r.length)+")");var n=[],i=[];return e.map(function(t){return r.map(function(e){return i=[],n.push(i),t.map(function(t){return e.map(function(e){return i.push(a(t,e))})})})})&&n}}),yi=["typed"],gi=Object(s.a)("map",yi,function(e){return(0,e.typed)("map",{"Array, function":vi,"Matrix, function":function(e,t){return e.map(t)}})});function vi(t,i){var a=Xn(i);return function r(e,n){return Array.isArray(e)?e.map(function(e,t){return r(e,n.concat(t))}):1===a?i(e):2===a?i(e,n):i(e,n,t)}(t,[])}var bi=["typed","config","matrix","BigNumber"],xi=Object(s.a)("ones",bi,function(e){var t=e.typed,r=e.config,a=e.matrix,o=e.BigNumber;return t("ones",{"":function(){return"Array"===r.matrix?n([]):n([],"default")},"...number | BigNumber | string":function(e){if("string"!=typeof e[e.length-1])return"Array"===r.matrix?n(e):n(e,"default");var t=e.pop();return n(e,t)},Array:n,Matrix:function(e){var t=e.storage();return n(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return n(e.valueOf(),t)}});function n(e,t){var r=function(e){var n=!1;return e.forEach(function(e,t,r){Object(ie.e)(e)&&(n=!0,r[t]=e.toNumber())}),n}(e)?new o(1):1;if(function(e){e.forEach(function(e){if("number"!=typeof e||!Object(S.i)(e)||e<0)throw new Error("Parameters in function ones must be positive integers")})}(e),t){var n=a(t);return 0<e.length?n.resize(e,r):n}var i=[];return 0<e.length?Object(I.o)(i,e,r):i}});function wi(){throw new Error('No "bignumber" implementation available')}function Ni(){throw new Error('No "fraction" implementation available')}function Oi(){throw new Error('No "matrix" implementation available')}var Mi=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],Ei=Object(s.a)("range",Mi,function(e){var t=e.typed,n=e.config,r=e.matrix,o=e.bignumber,s=e.smaller,u=e.smallerEq,c=e.larger,f=e.largerEq;return t("range",{string:a,"string, boolean":a,"number, number":function(e,t){return i(l(e,t,1))},"number, number, number":function(e,t,r){return i(l(e,t,r))},"number, number, boolean":function(e,t,r){return i(r?p(e,t,1):l(e,t,1))},"number, number, number, boolean":function(e,t,r,n){return i(n?p(e,t,r):l(e,t,r))},"BigNumber, BigNumber":function(e,t){return i(m(e,t,new e.constructor(1)))},"BigNumber, BigNumber, BigNumber":function(e,t,r){return i(m(e,t,r))},"BigNumber, BigNumber, boolean":function(e,t,r){var n=e.constructor;return i(r?h(e,t,new n(1)):m(e,t,new n(1)))},"BigNumber, BigNumber, BigNumber, boolean":function(e,t,r,n){return i(n?h(e,t,r):m(e,t,r))}});function i(e){return"Matrix"===n.matrix?r?r(e):Oi():e}function a(e,t){var r=function(e){var t=e.split(":").map(function(e){return Number(e)});if(t.some(function(e){return isNaN(e)}))return null;switch(t.length){case 2:return{start:t[0],end:t[1],step:1};case 3:return{start:t[0],end:t[2],step:t[1]};default:return null}}(e);if(!r)throw new SyntaxError('String "'+e+'" is no valid range');return"BigNumber"===n.number?(void 0===o&&wi(),i((t?h:m)(o(r.start),o(r.end),o(r.step)))):i((t?p:l)(r.start,r.end,r.step))}function l(e,t,r){var n=[],i=e;if(0<r)for(;s(i,t);)n.push(i),i+=r;else if(r<0)for(;c(i,t);)n.push(i),i+=r;return n}function p(e,t,r){var n=[],i=e;if(0<r)for(;u(i,t);)n.push(i),i+=r;else if(r<0)for(;f(i,t);)n.push(i),i+=r;return n}function m(e,t,r){var n=o(0),i=[],a=e;if(r.gt(n))for(;s(a,t);)i.push(a),a=a.plus(r);else if(r.lt(n))for(;c(a,t);)i.push(a),a=a.plus(r);return i}function h(e,t,r){var n=o(0),i=[],a=e;if(r.gt(n))for(;u(a,t);)i.push(a),a=a.plus(r);else if(r.lt(n))for(;f(a,t);)i.push(a),a=a.plus(r);return i}}),Si="reshape",ji=["typed","isInteger","matrix"],Ai=Object(s.a)(Si,ji,function(e){var t=e.typed,r=e.isInteger,n=e.matrix;return t(Si,{"Matrix, Array":function(e,t){return e.reshape?e.reshape(t):n(Object(I.n)(e.valueOf(),t))},"Array, Array":function(e,t){return t.forEach(function(e){if(!r(e))throw new TypeError("Invalid size for dimension: "+e)}),Object(I.n)(e,t)}})}),Ci=r(13),Ti=["config","matrix"],_i=Object(s.a)("resize",Ti,function(e){var a=e.config,o=e.matrix;return function(e,t,r){if(2!==arguments.length&&3!==arguments.length)throw new Ci.a("resize",arguments.length,2,3);if(Object(ie.v)(t)&&(t=t.valueOf()),Object(ie.e)(t[0])&&(t=t.map(function(e){return Object(ie.e)(e)?e.toNumber():e})),Object(ie.v)(e))return e.resize(t,r,!0);if("string"==typeof e)return function(e,t,r){if(void 0!==r){if("string"!=typeof r||1!==r.length)throw new TypeError("Single character expected as defaultValue")}else r=" ";if(1!==t.length)throw new D.a(t.length,1);var n=t[0];if("number"!=typeof n||!Object(S.i)(n))throw new TypeError("Invalid size, must contain positive integers (size: "+Object(J.d)(t)+")");{if(e.length>n)return e.substring(0,n);if(e.length<n){for(var i=e,a=0,o=n-e.length;a<o;a++)i+=r;return i}return e}}(e,t,r);var n=!Array.isArray(e)&&"Array"!==a.matrix;if(0===t.length){for(;Array.isArray(e);)e=e[0];return Object(W.a)(e)}Array.isArray(e)||(e=[e]),e=Object(W.a)(e);var i=Object(I.o)(e,t,r);return n?o(i):i}}),Ii=["typed","Index","matrix","range"],qi=Object(s.a)("row",Ii,function(e){var t=e.typed,i=e.Index,r=e.matrix,a=e.range;return t("row",{"Matrix, number":n,"Array, number":function(e,t){return n(r(Object(W.a)(e)),t).valueOf()}});function n(e,t){if(2!==e.size().length)throw new Error("Only two dimensional matrix is supported");Object(I.s)(t,e.size()[0]);var r=a(0,e.size()[1]),n=new i(t,r);return e.subset(n)}}),Bi=["typed","config","?matrix"],ki=Object(s.a)("size",Bi,function(e){var t=e.typed,r=e.config,n=e.matrix;return t("size",{Matrix:function(e){return e.create(e.size())},Array:I.a,string:function(e){return"Array"===r.matrix?[e.length]:n([e.length])},"number | Complex | BigNumber | Unit | boolean | null":function(e){return"Array"===r.matrix?[]:n?n([]):Oi()}})}),zi="squeeze",Di=["typed","matrix"],Ri=Object(s.a)(zi,Di,function(e){var t=e.typed,r=e.matrix;return t(zi,{Array:function(e){return Object(I.p)(Object(W.a)(e))},Matrix:function(e){var t=Object(I.p)(e.toArray());return Array.isArray(t)?r(t):t},any:function(e){return Object(W.a)(e)}})});function Pi(e){return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fi(e,t){if($i(e)&&Li(e,t))return e[t];if("function"==typeof e[t]&&Hi(e,t))throw new Error('Cannot access method "'+t+'" as a property');throw new Error('No access to property "'+t+'"')}function Ui(e,t,r){if($i(e)&&Li(e,t))return e[t]=r;throw new Error('No access to property "'+t+'"')}function Li(e,t){return!(!e||"object"!==Pi(e))&&(!!Object(W.f)(Gi,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function Hi(e,t){return!(!e||"function"!=typeof e[t])&&(!(Object(W.f)(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e))&&(!!Object(W.f)(Zi,t)||!(t in Object.prototype)&&!(t in Function.prototype)))}function $i(e){return"object"===Pi(e)&&e&&e.constructor===Object}var Gi={length:!0,name:!0},Zi={toString:!0,valueOf:!0,toLocaleString:!0},Vi=["typed","matrix"],Ji=Object(s.a)("subset",Vi,function(e){var t=e.typed,i=e.matrix;return t("subset",{"Array, Index":function(e,t){var r=i(e).subset(t);return t.isScalar()?r:r.valueOf()},"Matrix, Index":function(e,t){return e.subset(t)},"Object, Index":Xi,"string, Index":Wi,"Array, Index, any":function(e,t,r){return i(Object(W.a)(e)).subset(t,r,void 0).valueOf()},"Array, Index, any, any":function(e,t,r,n){return i(Object(W.a)(e)).subset(t,r,n).valueOf()},"Matrix, Index, any":function(e,t,r){return e.clone().subset(t,r)},"Matrix, Index, any, any":function(e,t,r,n){return e.clone().subset(t,r,n)},"string, Index, string":Yi,"string, Index, string, string":Yi,"Object, Index, any":Qi})});function Wi(t,e){if(!Object(ie.t)(e))throw new TypeError("Index expected");if(1!==e.size().length)throw new D.a(e.size().length,1);var r=t.length;Object(I.s)(e.min()[0],r),Object(I.s)(e.max()[0],r);var n=e.dimension(0),i="";return n.forEach(function(e){i+=t.charAt(e)}),i}function Yi(e,t,r,n){if(!t||!0!==t.isIndex)throw new TypeError("Index expected");if(1!==t.size().length)throw new D.a(t.size().length,1);if(void 0!==n){if("string"!=typeof n||1!==n.length)throw new TypeError("Single character expected as defaultValue")}else n=" ";var i=t.dimension(0);if(i.size()[0]!==r.length)throw new D.a(i.size()[0],r.length);var a=e.length;Object(I.s)(t.min()[0]),Object(I.s)(t.max()[0]);for(var o=[],s=0;s<a;s++)o[s]=e.charAt(s);if(i.forEach(function(e,t){o[e]=r.charAt(t[0])}),o.length>a)for(var u=a-1,c=o.length;u<c;u++)o[u]||(o[u]=n);return o.join("")}function Xi(e,t){if(1!==t.size().length)throw new D.a(t.size(),1);var r=t.dimension(0);if("string"!=typeof r)throw new TypeError("String expected as index to retrieve an object property");return Fi(e,r)}function Qi(e,t,r){if(1!==t.size().length)throw new D.a(t.size(),1);var n=t.dimension(0);if("string"!=typeof n)throw new TypeError("String expected as index to retrieve an object property");var i=Object(W.a)(e);return Ui(i,n,r),i}var Ki=["typed","matrix"],ea=Object(s.a)("transpose",Ki,function(e){var t=e.typed,r=e.matrix,n=t("transpose",{Array:function(e){return n(r(e)).valueOf()},Matrix:function(e){var t,r=e.size();switch(r.length){case 1:t=e.clone();break;case 2:var n=r[0],i=r[1];if(0===i)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+Object(J.d)(r)+")");switch(e.storage()){case"dense":t=function(e,t,r){for(var n,i=e._data,a=[],o=0;o<r;o++){n=a[o]=[];for(var s=0;s<t;s++)n[s]=Object(W.a)(i[s][o])}return e.createDenseMatrix({data:a,size:[r,t],datatype:e._datatype})}(e,n,i);break;case"sparse":t=function(e,t,r){for(var n,i,a,o=e._values,s=e._index,u=e._ptr,c=o?[]:void 0,f=[],l=[],p=[],m=0;m<t;m++)p[m]=0;for(n=0,i=s.length;n<i;n++)p[s[n]]++;for(var h=0,d=0;d<t;d++)l.push(h),h+=p[d],p[d]=l[d];for(l.push(h),a=0;a<r;a++)for(var y=u[a],g=u[a+1],v=y;v<g;v++){var b=p[s[v]]++;f[b]=a,o&&(c[b]=Object(W.a)(o[v]))}return e.createSparseMatrix({values:c,index:f,ptr:l,size:[r,t],datatype:e._datatype})}(e,n,i)}break;default:throw new RangeError("Matrix must be a vector or two dimensional (size: "+Object(J.d)(this._size)+")")}return t},any:function(e){return Object(W.a)(e)}});return n}),ta="ctranspose",ra=["typed","transpose","conj"],na=Object(s.a)(ta,ra,function(e){var t=e.typed,r=e.transpose,n=e.conj;return t(ta,{any:function(e){return n(r(e))}})}),ia=["typed","config","matrix","BigNumber"],aa=Object(s.a)("zeros",ia,function(e){var t=e.typed,r=e.config,a=e.matrix,o=e.BigNumber;return t("zeros",{"":function(){return"Array"===r.matrix?n([]):n([],"default")},"...number | BigNumber | string":function(e){if("string"!=typeof e[e.length-1])return"Array"===r.matrix?n(e):n(e,"default");var t=e.pop();return n(e,t)},Array:n,Matrix:function(e){var t=e.storage();return n(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return n(e.valueOf(),t)}});function n(e,t){var r=function(e){var n=!1;return e.forEach(function(e,t,r){Object(ie.e)(e)&&(n=!0,r[t]=e.toNumber())}),n}(e)?new o(0):0;if(function(e){e.forEach(function(e){if("number"!=typeof e||!Object(S.i)(e)||e<0)throw new Error("Parameters in function zeros must be positive integers")})}(e),t){var n=a(t);return 0<e.length?n.resize(e,r):n}var i=[];return 0<e.length?Object(I.o)(i,e,r):i}}),oa=["typed"],sa=Object(s.a)("erf",oa,function(e){var t=(0,e.typed)("name",{number:function(e){var t=Math.abs(e);return pa<=t?Object(S.n)(e):t<=ua?Object(S.n)(e)*function(e){var t,r=e*e,n=fa[0][4]*r,i=r;for(t=0;t<3;t+=1)n=(n+fa[0][t])*r,i=(i+la[0][t])*r;return e*(n+fa[0][3])/(i+la[0][3])}(t):t<=4?Object(S.n)(e)*(1-function(e){var t,r=fa[1][8]*e,n=e;for(t=0;t<7;t+=1)r=(r+fa[1][t])*e,n=(n+la[1][t])*e;var i=(r+fa[1][7])/(n+la[1][7]),a=parseInt(16*e)/16,o=(e-a)*(e+a);return Math.exp(-a*a)*Math.exp(-o)*i}(t)):Object(S.n)(e)*(1-function(e){var t,r=1/(e*e),n=fa[2][5]*r,i=r;for(t=0;t<4;t+=1)n=(n+fa[2][t])*r,i=(i+la[2][t])*r;var a=r*(n+fa[2][4])/(i+la[2][4]);a=(ca-a)/e,r=parseInt(16*e)/16;var o=(e-r)*(e+r);return Math.exp(-r*r)*Math.exp(-o)*a}(t))},"Array | Matrix":function(e){return ae(e,t)}});return t}),ua=.46875,ca=.5641895835477563,fa=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,2.1531153547440383e-8],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],la=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],pa=Math.pow(2,53),ma=["typed","isNaN","isNumeric"],ha=Object(s.a)("mode",ma,function(e){var t=e.typed,o=e.isNaN,s=e.isNumeric;return t("mode",{"Array | Matrix":r,"...":function(e){return r(e)}});function r(e){if(0===(e=Object(I.e)(e.valueOf())).length)throw new Error("Cannot calculate mode of an empty array");for(var t={},r=[],n=0,i=0;i<e.length;i++){var a=e[i];if(s(a)&&o(a))throw new Error("Cannot calculate mode of an array containing NaN values");a in t||(t[a]=0),t[a]++,t[a]===n?r.push(a):t[a]>n&&(n=t[a],r=[a])}return r}});function da(e,t,r){var n;return-1!==String(e).indexOf("Unexpected type")?(n=2<arguments.length?" (type: "+Object(ie.M)(r)+", value: "+JSON.stringify(r)+")":" (type: "+e.data.actual+")",new TypeError("Cannot calculate "+t+", unexpected type of argument"+n)):-1!==String(e).indexOf("complex numbers")?(n=2<arguments.length?" (type: "+Object(ie.M)(r)+", value: "+JSON.stringify(r)+")":"",new TypeError("Cannot calculate "+t+", no ordering relation is defined for complex numbers"+n)):e}var ya=["typed","multiply"],ga=Object(s.a)("prod",ya,function(e){var t=e.typed,n=e.multiply;return t("prod",{"Array | Matrix":r,"Array | Matrix, number | BigNumber":function(e,t){throw new Error("prod(A, dim) is not yet supported")},"...":function(e){return r(e)}});function r(e){var r;if(F(e,function(t){try{r=void 0===r?t:n(r,t)}catch(e){throw da(e,"prod",t)}}),void 0===r)throw new Error("Cannot calculate prod of an empty array");return r}}),va=["typed"],ba=Object(s.a)("format",va,function(e){return(0,e.typed)("format",{any:J.d,"any, Object | function | number":J.d})}),xa=["typed"],wa=Object(s.a)("print",xa,function(e){return(0,e.typed)("print",{"string, Object | Array":Na,"string, Object | Array, number | Object":Na})});function Na(e,a,o){return e.replace(/\$([\w.]+)/g,function(e,t){for(var r=t.split("."),n=a[r.shift()];r.length&&void 0!==n;){var i=r.shift();n=i?n[i]:n+"."}return void 0!==n?Object(ie.I)(n)?n:Object(J.d)(n,o):e})}var Oa=["typed","matrix"],Ma=Object(s.a)("to",Oa,function(e){var t=e.typed,r=e.matrix,n=Xt({typed:t}),i=Kt({typed:t}),a=t("to",{"Unit, Unit | string":function(e,t){return e.to(t)},"Matrix, Matrix":function(e,t){return n(e,t,a)},"Array, Array":function(e,t){return a(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return a(r(e),t)},"Matrix, Array":function(e,t){return a(e,r(t))},"Matrix, any":function(e,t){return i(e,t,a,!1)},"any, Matrix":function(e,t){return i(t,e,a,!0)},"Array, any":function(e,t){return i(r(e),t,a,!1).valueOf()},"any, Array":function(e,t){return i(r(t),e,a,!0).valueOf()}});return a}),Ea="isPrime",Sa=["typed"],ja=Object(s.a)(Ea,Sa,function(e){var t=(0,e.typed)(Ea,{number:function(e){if(e<2)return!1;if(2===e)return!0;if(e%2==0)return!1;for(var t=3;t*t<=e;t+=2)if(e%t==0)return!1;return!0},BigNumber:function(e){if(e.lt(2))return!1;if(e.equals(2))return!0;if(e.mod(2).isZero())return!1;for(var t=new e.constructor(3);t.times(t).lte(e);t=t.plus(1))if(e.mod(t).isZero())return!1;return!0},"Array | Matrix":function(e){return ae(e,t)}});return t}),Aa=["number","?bignumber","?fraction"],Ca=Object(s.a)("numeric",Aa,function(e){var t=e.number,r=e.bignumber,n=e.fraction,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:function(e){return t(e)},BigNumber:r?function(e){return r(e)}:wi,Fraction:n?function(e){return n(e)}:Ni};return function(e,t){var r=Object(ie.M)(e);if(!(r in i))throw new TypeError("Cannot convert "+e+' of type "'+r+'"; valid input types are '+Object.keys(i).join(", "));if(!(t in a))throw new TypeError("Cannot convert "+e+' to type "'+t+'"; valid output types are '+Object.keys(a).join(", "));return t===r?e:a[t](e)}}),Ta="divideScalar",_a=["typed","numeric"],Ia=Object(s.a)(Ta,_a,function(e){var t=e.typed,i=e.numeric,a=t(Ta,{"number, number":function(e,t){return e/t},"Complex, Complex":function(e,t){return e.div(t)},"BigNumber, BigNumber":function(e,t){return e.div(t)},"Fraction, Fraction":function(e,t){return e.div(t)},"Unit, number | Fraction | BigNumber":function(e,t){var r=e.clone(),n=i(1,Object(ie.M)(t));return r.value=a(null===r.value?r._normalize(n):r.value,t),r},"number | Fraction | BigNumber, Unit":function(e,t){var r=t.clone();r=r.pow(-1);var n=i(1,Object(ie.M)(e));return r.value=a(e,null===t.value?t._normalize(n):t.value),r},"Unit, Unit":function(e,t){return e.divide(t)}});return a}),qa=["typed","config","identity","multiply","matrix","fraction","number","Complex"],Ba=Object(s.a)("pow",qa,function(e){var t=e.typed,i=e.config,a=e.identity,o=e.multiply,r=e.matrix,s=e.number,u=e.fraction,c=e.Complex;return t("pow",{"number, number":n,"Complex, Complex":function(e,t){return e.pow(t)},"BigNumber, BigNumber":function(e,t){return t.isInteger()||0<=e||i.predictable?e.pow(t):new c(e.toNumber(),0).pow(t.toNumber(),0)},"Fraction, Fraction":function(e,t){if(1===t.d)return e.pow(t);if(i.predictable)throw new Error("Function pow does not support non-integer exponents for fractions.");return n(e.valueOf(),t.valueOf())},"Array, number":f,"Array, BigNumber":function(e,t){return f(e,t.toNumber())},"Matrix, number":l,"Matrix, BigNumber":function(e,t){return l(e,t.toNumber())},"Unit, number | BigNumber":function(e,t){return e.pow(t)}});function n(e,t){if(i.predictable&&!Object(S.i)(t)&&e<0)try{var r=u(t),n=s(r);if((t===n||Math.abs((t-n)/t)<1e-14)&&r.d%2==1)return(r.n%2==0?1:-1)*Math.pow(-e,t)}catch(e){}return i.predictable&&(e<-1&&t===1/0||-1<e&&e<0&&t===-1/0)?NaN:Object(S.i)(t)||0<=e||i.predictable?ht(e,t):e*e<1&&t===1/0||1<e*e&&t===-1/0?0:new c(e,0).pow(t,0)}function f(e,t){if(!Object(S.i)(t)||t<0)throw new TypeError("For A^b, b must be a positive integer (value is "+t+")");var r=Object(I.a)(e);if(2!==r.length)throw new Error("For A^b, A must be 2 dimensional (A has "+r.length+" dimensions)");if(r[0]!==r[1])throw new Error("For A^b, A must be square (size is "+r[0]+"x"+r[1]+")");for(var n=a(r[0]).valueOf(),i=e;1<=t;)1==(1&t)&&(n=o(i,n)),t>>=1,i=o(i,i);return n}function l(e,t){return r(f(e.valueOf(),t))}});function ka(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var za="Number of decimals in function round must be an integer",Da="round",Ra=["typed","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],Pa=Object(s.a)(Da,Ra,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.zeros,a=e.BigNumber,o=e.DenseMatrix,s=sr({typed:t,equalScalar:n}),u=br({typed:t,DenseMatrix:o}),c=Kt({typed:t}),f=t(Da,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(e){ka(t,e,r[e])})}return t}({},Fa,{Complex:function(e){return e.round()},"Complex, number":function(e,t){if(t%1)throw new TypeError(za);return e.round(t)},"Complex, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(za);var r=t.toNumber();return e.round(r)},"number, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(za);return new a(e).toDecimalPlaces(t.toNumber())},BigNumber:function(e){return e.toDecimalPlaces(0)},"BigNumber, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(za);return e.toDecimalPlaces(t.toNumber())},Fraction:function(e){return e.round()},"Fraction, number":function(e,t){if(t%1)throw new TypeError(za);return e.round(t)},"Array | Matrix":function(e){return ae(e,f,!0)},"SparseMatrix, number | BigNumber":function(e,t){return s(e,t,f,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,f,!1)},"number | Complex | BigNumber, SparseMatrix":function(e,t){return n(e,0)?i(t.size(),t.storage()):u(t,e,f,!0)},"number | Complex | BigNumber, DenseMatrix":function(e,t){return n(e,0)?i(t.size(),t.storage()):c(t,e,f,!0)},"Array, number | BigNumber":function(e,t){return c(r(e),t,f,!1).valueOf()},"number | Complex | BigNumber, Array":function(e,t){return c(r(t),e,f,!0).valueOf()}}));return f}),Fa={number:dt,"number, number":function(e,t){if(!Object(S.i)(t))throw new TypeError(za);if(t<0||15<t)throw new Error("Number of decimals in function round must be in te range of 0-15");return dt(e,t)}},Ua=["config","typed","divideScalar","Complex"],La=Object(s.a)("log",Ua,function(e){var t=e.typed,r=e.config,n=e.divideScalar,i=e.Complex,a=t("log",{number:function(e){return 0<=e||r.predictable?ot(e):new i(e,0).log()},Complex:function(e){return e.log()},BigNumber:function(e){return!e.isNegative()||r.predictable?e.ln():new i(e.toNumber(),0).log()},"Array | Matrix":function(e){return ae(e,a)},"any, any":function(e,t){return n(a(e),a(t))}});return a}),Ha=["typed","config","divideScalar","log","Complex"],$a=Object(s.a)("log1p",Ha,function(e){var t=e.typed,r=e.config,n=e.divideScalar,i=e.log,a=e.Complex,o=t("log1p",{number:function(e){return-1<=e||r.predictable?Object(S.k)(e):s(new a(e,0))},Complex:s,BigNumber:function(e){var t=e.plus(1);return!t.isNegative()||r.predictable?t.ln():s(new a(e.toNumber(),0))},"Array | Matrix":function(e){return ae(e,o)},"any, any":function(e,t){return n(o(e),i(t))}});function s(e){var t=e.re+1;return new a(Math.log(Math.sqrt(t*t+e.im*e.im)),Math.atan2(e.im,t))}return o}),Ga="nthRoots",Za=["config","typed","divideScalar","Complex"],Va=Object(s.a)(Ga,Za,function(e){var t=e.typed,f=(e.config,e.divideScalar,e.Complex),r=t(Ga,{Complex:function(e){return n(e,2)},"Complex, number":n}),l=[function(e){return new f(e,0)},function(e){return new f(0,e)},function(e){return new f(-e,0)},function(e){return new f(0,-e)}];function n(e,t){if(t<0)throw new Error("Root must be greater than zero");if(0===t)throw new Error("Root must be non-zero");if(t%1!=0)throw new Error("Root must be an integer");if(0===e||0===e.abs())return[new f(0,0)];var r,n="number"==typeof e;!n&&0!==e.re&&0!==e.im||(r=n?2*+(e<0):0===e.im?2*+(e.re<0):2*+(e.im<0)+1);for(var i=e.arg(),a=e.abs(),o=[],s=Math.pow(a,1/t),u=0;u<t;u++){var c=(r+4*u)/t;c!==Math.round(c)?o.push(new f({r:s,phi:(i+2*Math.PI*u)/t})):o.push(l[c%4](s))}return o}return r}),Ja=["typed","equalScalar","matrix","pow","DenseMatrix"],Wa=Object(s.a)("dotPow",Ja,function(e){var t=e.typed,r=e.equalScalar,n=e.matrix,i=e.pow,a=e.DenseMatrix,o=dr({typed:t}),s=gn({typed:t,DenseMatrix:a}),u=sr({typed:t,equalScalar:r}),c=br({typed:t,DenseMatrix:a}),f=Xt({typed:t}),l=Kt({typed:t}),p=t("dotPow",{"any, any":i,"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,i,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,i,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,i,!1)},"DenseMatrix, DenseMatrix":function(e,t){return f(e,t,i)},"Array, Array":function(e,t){return p(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return p(n(e),t)},"Matrix, Array":function(e,t){return p(e,n(t))},"SparseMatrix, any":function(e,t){return u(e,t,p,!1)},"DenseMatrix, any":function(e,t){return l(e,t,p,!1)},"any, SparseMatrix":function(e,t){return c(t,e,p,!0)},"any, DenseMatrix":function(e,t){return l(t,e,p,!0)},"Array, any":function(e,t){return l(n(e),t,p,!1).valueOf()},"any, Array":function(e,t){return l(n(t),e,p,!0).valueOf()}});return p}),Ya="dotDivide",Xa=["typed","matrix","equalScalar","divideScalar","DenseMatrix"],Qa=Object(s.a)(Ya,Xa,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.divideScalar,a=e.DenseMatrix,o=nr({typed:t,equalScalar:n}),s=dr({typed:t}),u=gn({typed:t,DenseMatrix:a}),c=sr({typed:t,equalScalar:n}),f=br({typed:t,DenseMatrix:a}),l=Xt({typed:t}),p=Kt({typed:t}),m=t(Ya,{"any, any":i,"SparseMatrix, SparseMatrix":function(e,t){return u(e,t,i,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,i,!0)},"DenseMatrix, SparseMatrix":function(e,t){return s(e,t,i,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,i)},"Array, Array":function(e,t){return m(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return m(r(e),t)},"Matrix, Array":function(e,t){return m(e,r(t))},"SparseMatrix, any":function(e,t){return c(e,t,i,!1)},"DenseMatrix, any":function(e,t){return p(e,t,i,!1)},"any, SparseMatrix":function(e,t){return f(t,e,i,!0)},"any, DenseMatrix":function(e,t){return p(t,e,i,!0)},"Array, any":function(e,t){return p(r(e),t,i,!1).valueOf()},"any, Array":function(e,t){return p(r(t),e,i,!0).valueOf()}});return m});function Ka(e){var d=e.DenseMatrix;return function(e,t,r){var n=e.size();if(2!==n.length)throw new RangeError("Matrix must be two dimensional (size: "+Object(J.d)(n)+")");var i,a,o,s=n[0];if(s!==n[1])throw new RangeError("Matrix must be square (size: "+Object(J.d)(n)+")");if(Object(ie.v)(t)){var u=t.size();if(1===u.length){if(u[0]!==s)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(i=[],o=t._data,a=0;a<s;a++)i[a]=[o[a]];return new d({data:i,size:[s,1],datatype:t._datatype})}if(2!==u.length)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");if(u[0]!==s||1!==u[1])throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");if(Object(ie.n)(t)){if(r){for(i=[],o=t._data,a=0;a<s;a++)i[a]=[o[a][0]];return new d({data:i,size:[s,1],datatype:t._datatype})}return t}for(i=[],a=0;a<s;a++)i[a]=[0];for(var c=t._values,f=t._index,l=t._ptr,p=l[1],m=l[0];m<p;m++)i[a=f[m]][0]=c[m];return new d({data:i,size:[s,1],datatype:t._datatype})}if(Object(ie.b)(t)){var h=Object(I.a)(t);if(1===h.length){if(h[0]!==s)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(i=[],a=0;a<s;a++)i[a]=[t[a]];return new d({data:i,size:[s,1]})}if(2!==h.length)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");if(h[0]!==s||1!==h[1])throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(i=[],a=0;a<s;a++)i[a]=[t[a][0]];return new d({data:i,size:[s,1]})}}}var eo=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],to=Object(s.a)("lsolve",eo,function(e){var t=e.typed,r=e.matrix,v=e.divideScalar,b=e.multiplyScalar,x=e.subtract,w=e.equalScalar,N=e.DenseMatrix,O=Ka({DenseMatrix:N});return t("lsolve",{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r,n,i=(t=O(e,t,!0))._data,a=e._size[0],o=e._size[1],s=e._values,u=e._index,c=e._ptr,f=[],l=0;l<o;l++){var p=i[l][0]||0;if(w(p,0))f[l]=[0];else{var m=0,h=[],d=[],y=c[l+1];for(n=c[l];n<y;n++)(r=u[n])===l?m=s[n]:l<r&&(h.push(s[n]),d.push(r));if(w(m,0))throw new Error("Linear system cannot be solved since matrix is singular");var g=v(p,m);for(n=0,y=d.length;n<y;n++)r=d[n],i[r]=[x(i[r][0]||0,b(g,h[n]))];f[l]=[g]}}return new N({data:f,size:[a,1]})}(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return n(e,t)},"Array, Array | Matrix":function(e,t){return n(r(e),t).valueOf()}});function n(e,t){for(var r=(t=O(e,t,!0))._data,n=e._size[0],i=e._size[1],a=[],o=e._data,s=0;s<i;s++){var u=r[s][0]||0,c=void 0;if(w(u,0))c=0;else{var f=o[s][s];if(w(f,0))throw new Error("Linear system cannot be solved since matrix is singular");c=v(u,f);for(var l=s+1;l<n;l++)r[l]=[x(r[l][0]||0,b(c,o[l][s]))]}a[s]=[c]}return new N({data:a,size:[n,1]})}}),ro=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],no=Object(s.a)("usolve",ro,function(e){var t=e.typed,r=e.matrix,b=e.divideScalar,x=e.multiplyScalar,w=e.subtract,N=e.equalScalar,O=e.DenseMatrix,M=Ka({DenseMatrix:O});return t("usolve",{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r,n,i=(t=M(e,t,!0))._data,a=e._size[0],o=e._size[1],s=e._values,u=e._index,c=e._ptr,f=[],l=o-1;0<=l;l--){var p=i[l][0]||0;if(N(p,0))f[l]=[0];else{var m=0,h=[],d=[],y=c[l],g=c[l+1];for(n=g-1;y<=n;n--)(r=u[n])===l?m=s[n]:r<l&&(h.push(s[n]),d.push(r));if(N(m,0))throw new Error("Linear system cannot be solved since matrix is singular");var v=b(p,m);for(n=0,g=d.length;n<g;n++)r=d[n],i[r]=[w(i[r][0],x(v,h[n]))];f[l]=[v]}}return new O({data:f,size:[a,1]})}(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return n(e,t)},"Array, Array | Matrix":function(e,t){return n(r(e),t).valueOf()}});function n(e,t){for(var r=(t=M(e,t,!0))._data,n=e._size[0],i=e._size[1],a=[],o=e._data,s=i-1;0<=s;s--){var u=r[s][0]||0,c=void 0;if(N(u,0))c=0;else{var f=o[s][s];if(N(f,0))throw new Error("Linear system cannot be solved since matrix is singular");c=b(u,f);for(var l=s-1;0<=l;l--)r[l]=[w(r[l][0]||0,x(c,o[l][s]))]}a[s]=[c]}return new O({data:a,size:[n,1]})}}),io=["typed","equalScalar"],ao=Object(s.a)("algorithm08",io,function(e){var I=e.typed,q=e.equalScalar;return function(e,t,r){var n=e._values,i=e._index,a=e._ptr,o=e._size,s=e._datatype,u=t._values,c=t._index,f=t._ptr,l=t._size,p=t._datatype;if(o.length!==l.length)throw new D.a(o.length,l.length);if(o[0]!==l[0]||o[1]!==l[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+l+")");if(!n||!u)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var m,h=o[0],d=o[1],y=q,g=0,v=r;"string"==typeof s&&s===p&&(m=s,y=I.find(q,[m,m]),g=I.convert(0,m),v=I.find(r,[m,m]));for(var b,x,w,N,O=[],M=[],E=[],S=e.createSparseMatrix({values:O,index:M,ptr:E,size:[h,d],datatype:m}),j=[],A=[],C=0;C<d;C++){E[C]=M.length;var T=C+1;for(x=a[C],w=a[C+1],b=x;b<w;b++)A[N=i[b]]=T,j[N]=n[b],M.push(N);for(x=f[C],w=f[C+1],b=x;b<w;b++)A[N=c[b]]===T&&(j[N]=v(j[N],u[b]));for(b=E[C];b<M.length;){var _=j[N=M[b]];y(_,g)?M.splice(b,1):(O.push(_),b++)}}return E[d]=M.length,S}}),oo="leftShift",so=["typed","matrix","equalScalar","zeros","DenseMatrix"],uo=Object(s.a)(oo,so,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.zeros,a=e.DenseMatrix,o=Gt({typed:t}),s=nr({typed:t,equalScalar:n}),u=ao({typed:t,equalScalar:n}),c=Wt({typed:t,DenseMatrix:a}),f=sr({typed:t,equalScalar:n}),l=Xt({typed:t}),p=Kt({typed:t}),m=t(oo,{"number, number":sn,"BigNumber, BigNumber":Kr,"SparseMatrix, SparseMatrix":function(e,t){return u(e,t,m,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,m,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,m,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,m)},"Array, Array":function(e,t){return m(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return m(r(e),t)},"Matrix, Array":function(e,t){return m(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():f(e,t,m,!1)},"DenseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():p(e,t,m,!1)},"number | BigNumber, SparseMatrix":function(e,t){return n(e,0)?i(t.size(),t.storage()):c(t,e,m,!0)},"number | BigNumber, DenseMatrix":function(e,t){return n(e,0)?i(t.size(),t.storage()):p(t,e,m,!0)},"Array, number | BigNumber":function(e,t){return m(r(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return m(e,r(t)).valueOf()}});return m}),co="rightArithShift",fo=["typed","matrix","equalScalar","zeros","DenseMatrix"],lo=Object(s.a)(co,fo,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.zeros,a=e.DenseMatrix,o=Gt({typed:t}),s=nr({typed:t,equalScalar:n}),u=ao({typed:t,equalScalar:n}),c=Wt({typed:t,DenseMatrix:a}),f=sr({typed:t,equalScalar:n}),l=Xt({typed:t}),p=Kt({typed:t}),m=t(co,{"number, number":un,"BigNumber, BigNumber":en,"SparseMatrix, SparseMatrix":function(e,t){return u(e,t,m,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,m,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,m,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,m)},"Array, Array":function(e,t){return m(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return m(r(e),t)},"Matrix, Array":function(e,t){return m(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():f(e,t,m,!1)},"DenseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():p(e,t,m,!1)},"number | BigNumber, SparseMatrix":function(e,t){return n(e,0)?i(t.size(),t.storage()):c(t,e,m,!0)},"number | BigNumber, DenseMatrix":function(e,t){return n(e,0)?i(t.size(),t.storage()):p(t,e,m,!0)},"Array, number | BigNumber":function(e,t){return m(r(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return m(e,r(t)).valueOf()}});return m}),po="rightLogShift",mo=["typed","matrix","equalScalar","zeros","DenseMatrix"],ho=Object(s.a)(po,mo,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.zeros,a=e.DenseMatrix,o=Gt({typed:t}),s=nr({typed:t,equalScalar:n}),u=ao({typed:t,equalScalar:n}),c=Wt({typed:t,DenseMatrix:a}),f=sr({typed:t,equalScalar:n}),l=Xt({typed:t}),p=Kt({typed:t}),m=t(po,{"number, number":cn,"SparseMatrix, SparseMatrix":function(e,t){return u(e,t,m,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,m,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,m,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,m)},"Array, Array":function(e,t){return m(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return m(r(e),t)},"Matrix, Array":function(e,t){return m(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():f(e,t,m,!1)},"DenseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():p(e,t,m,!1)},"number | BigNumber, SparseMatrix":function(e,t){return n(e,0)?i(t.size(),t.storage()):c(t,e,m,!0)},"number | BigNumber, DenseMatrix":function(e,t){return n(e,0)?i(t.size(),t.storage()):p(t,e,m,!0)},"Array, number | BigNumber":function(e,t){return m(r(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return m(e,r(t)).valueOf()}});return m}),yo=["typed","matrix","equalScalar","zeros","not"],go=Object(s.a)("and",yo,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.zeros,a=e.not,o=nr({typed:t,equalScalar:n}),s=ar({typed:t,equalScalar:n}),u=sr({typed:t,equalScalar:n}),c=Xt({typed:t}),f=Kt({typed:t}),l=t("and",{"number, number":In,"Complex, Complex":function(e,t){return!(0===e.re&&0===e.im||0===t.re&&0===t.im)},"BigNumber, BigNumber":function(e,t){return!(e.isZero()||t.isZero()||e.isNaN()||t.isNaN())},"Unit, Unit":function(e,t){return l(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,l,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,l,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,l,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,l)},"Array, Array":function(e,t){return l(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return l(r(e),t)},"Matrix, Array":function(e,t){return l(e,r(t))},"SparseMatrix, any":function(e,t){return a(t)?i(e.size(),e.storage()):u(e,t,l,!1)},"DenseMatrix, any":function(e,t){return a(t)?i(e.size(),e.storage()):f(e,t,l,!1)},"any, SparseMatrix":function(e,t){return a(e)?i(e.size(),e.storage()):u(t,e,l,!0)},"any, DenseMatrix":function(e,t){return a(e)?i(e.size(),e.storage()):f(t,e,l,!0)},"Array, any":function(e,t){return l(r(e),t).valueOf()},"any, Array":function(e,t){return l(e,r(t)).valueOf()}});return l}),vo="compare",bo=["typed","config","matrix","equalScalar","BigNumber","Fraction","DenseMatrix"],xo=Object(s.a)(vo,bo,function(e){var t=e.typed,r=e.config,n=e.equalScalar,i=e.matrix,a=e.BigNumber,o=e.Fraction,s=e.DenseMatrix,u=dr({typed:t}),c=gr({typed:t,equalScalar:n}),f=br({typed:t,DenseMatrix:s}),l=Xt({typed:t}),p=Kt({typed:t}),m=t(vo,{"boolean, boolean":function(e,t){return e===t?0:t<e?1:-1},"number, number":function(e,t){return Object(S.m)(e,t,r.epsilon)?0:t<e?1:-1},"BigNumber, BigNumber":function(e,t){return Ne(e,t,r.epsilon)?new a(0):new a(e.cmp(t))},"Fraction, Fraction":function(e,t){return new o(e.compare(t))},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return m(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return c(e,t,m)},"SparseMatrix, DenseMatrix":function(e,t){return u(t,e,m,!0)},"DenseMatrix, SparseMatrix":function(e,t){return u(e,t,m,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,m)},"Array, Array":function(e,t){return m(i(e),i(t)).valueOf()},"Array, Matrix":function(e,t){return m(i(e),t)},"Matrix, Array":function(e,t){return m(e,i(t))},"SparseMatrix, any":function(e,t){return f(e,t,m,!1)},"DenseMatrix, any":function(e,t){return p(e,t,m,!1)},"any, SparseMatrix":function(e,t){return f(t,e,m,!0)},"any, DenseMatrix":function(e,t){return p(t,e,m,!0)},"Array, any":function(e,t){return p(i(e),t,m,!1).valueOf()},"any, Array":function(e,t){return p(i(t),e,m,!0).valueOf()}});return m}),wo=r(12),No=r.n(wo),Oo="compareNatural",Mo=["typed","compare"],Eo=Object(s.a)(Oo,Mo,function(e){var t=e.typed,a=e.compare,o=a.signatures["boolean,boolean"],s=t(Oo,{"any, any":function(e,t){var r,n=Object(ie.M)(e),i=Object(ie.M)(t);if(!("number"!==n&&"BigNumber"!==n&&"Fraction"!==n||"number"!==i&&"BigNumber"!==i&&"Fraction"!==i))return"0"!==(r=a(e,t)).toString()?0<r?1:-1:No()(n,i);if("Array"===n||"Matrix"===n||"Array"===i||"Matrix"===i)return 0!==(r=function e(t,r){if(Object(ie.H)(t)&&Object(ie.H)(r))return u(t.toJSON().values,r.toJSON().values);if(Object(ie.H)(t))return e(t.toArray(),r);if(Object(ie.H)(r))return e(t,r.toArray());if(Object(ie.n)(t))return e(t.toJSON().data,r);if(Object(ie.n)(r))return e(t,r.toJSON().data);if(!Array.isArray(t))return e([t],r);if(!Array.isArray(r))return e(t,[r]);return u(t,r)}(e,t))?r:No()(n,i);if(n!==i)return No()(n,i);if("Complex"===n)return function(e,t){if(e.re>t.re)return 1;if(e.re<t.re)return-1;if(e.im>t.im)return 1;if(e.im<t.im)return-1;return 0}(e,t);if("Unit"===n)return e.equalBase(t)?s(e.value,t.value):u(e.formatUnits(),t.formatUnits());if("boolean"===n)return o(e,t);if("string"===n)return No()(e,t);if("Object"===n)return function(e,t){var r=Object.keys(e),n=Object.keys(t);r.sort(No.a),n.sort(No.a);var i=u(r,n);if(0!==i)return i;for(var a=0;a<r.length;a++){var o=s(e[r[a]],t[n[a]]);if(0!==o)return o}return 0}(e,t);if("null"===n)return 0;if("undefined"===n)return 0;throw new TypeError('Unsupported type of value "'+n+'"')}});function u(e,t){for(var r=0,n=Math.min(e.length,t.length);r<n;r++){var i=s(e[r],t[r]);if(0!==i)return i}return e.length>t.length?1:e.length<t.length?-1:0}return s});var So="compareText",jo=["typed","matrix"],Ao=Object(s.a)(So,jo,function(e){var t=e.typed,r=e.matrix,n=Xt({typed:t}),i=Kt({typed:t}),a=t(So,{"any, any":J.a,"DenseMatrix, DenseMatrix":function(e,t){return n(e,t,J.a)},"Array, Array":function(e,t){return a(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return a(r(e),t)},"Matrix, Array":function(e,t){return a(e,r(t))},"DenseMatrix, any":function(e,t){return i(e,t,J.a,!1)},"any, DenseMatrix":function(e,t){return i(t,e,J.a,!0)},"Array, any":function(e,t){return i(r(e),t,J.a,!1).valueOf()},"any, Array":function(e,t){return i(r(t),e,J.a,!0).valueOf()}});return a}),Co="equal",To=["typed","matrix","equalScalar","DenseMatrix"],_o=Object(s.a)(Co,To,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.DenseMatrix,a=dr({typed:t}),o=gn({typed:t,DenseMatrix:i}),s=br({typed:t,DenseMatrix:i}),u=Xt({typed:t}),c=Kt({typed:t}),f=t(Co,{"any, any":function(e,t){return null===e?null===t:null===t?null===e:void 0===e?void 0===t:void 0===t?void 0===e:n(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,n)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,n,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,n,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,n)},"Array, Array":function(e,t){return f(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return f(r(e),t)},"Matrix, Array":function(e,t){return f(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,n,!1)},"DenseMatrix, any":function(e,t){return c(e,t,n,!1)},"any, SparseMatrix":function(e,t){return s(t,e,n,!0)},"any, DenseMatrix":function(e,t){return c(t,e,n,!0)},"Array, any":function(e,t){return c(r(e),t,n,!1).valueOf()},"any, Array":function(e,t){return c(r(t),e,n,!0).valueOf()}});return f}),Io=(Object(s.a)(Co,["typed","equalScalar"],function(e){var t=e.typed,r=e.equalScalar;return t(Co,{"any, any":function(e,t){return null===e?null===t:null===t?null===e:void 0===e?void 0===t:void 0===t?void 0===e:r(e,t)}})}),"equalText"),qo=["typed","compareText","isZero"],Bo=Object(s.a)(Io,qo,function(e){var t=e.typed,r=e.compareText,n=e.isZero;return t(Io,{"any, any":function(e,t){return n(r(e,t))}})}),ko="smaller",zo=["typed","config","matrix","DenseMatrix"],Do=Object(s.a)(ko,zo,function(e){var t=e.typed,r=e.config,n=e.matrix,i=e.DenseMatrix,a=dr({typed:t}),o=gn({typed:t,DenseMatrix:i}),s=br({typed:t,DenseMatrix:i}),u=Xt({typed:t}),c=Kt({typed:t}),f=t(ko,{"boolean, boolean":function(e,t){return e<t},"number, number":function(e,t){return e<t&&!Object(S.m)(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.lt(t)&&!Ne(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return-1===e.compare(t)},"Complex, Complex":function(e,t){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return f(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,f)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,f,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,f,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,f)},"Array, Array":function(e,t){return f(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return f(n(e),t)},"Matrix, Array":function(e,t){return f(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,f,!1)},"DenseMatrix, any":function(e,t){return c(e,t,f,!1)},"any, SparseMatrix":function(e,t){return s(t,e,f,!0)},"any, DenseMatrix":function(e,t){return c(t,e,f,!0)},"Array, any":function(e,t){return c(n(e),t,f,!1).valueOf()},"any, Array":function(e,t){return c(n(t),e,f,!0).valueOf()}});return f}),Ro="smallerEq",Po=["typed","config","matrix","DenseMatrix"],Fo=Object(s.a)(Ro,Po,function(e){var t=e.typed,r=e.config,n=e.matrix,i=e.DenseMatrix,a=dr({typed:t}),o=gn({typed:t,DenseMatrix:i}),s=br({typed:t,DenseMatrix:i}),u=Xt({typed:t}),c=Kt({typed:t}),f=t(Ro,{"boolean, boolean":function(e,t){return e<=t},"number, number":function(e,t){return e<=t||Object(S.m)(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.lte(t)||Ne(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return 1!==e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return f(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,f)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,f,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,f,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,f)},"Array, Array":function(e,t){return f(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return f(n(e),t)},"Matrix, Array":function(e,t){return f(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,f,!1)},"DenseMatrix, any":function(e,t){return c(e,t,f,!1)},"any, SparseMatrix":function(e,t){return s(t,e,f,!0)},"any, DenseMatrix":function(e,t){return c(t,e,f,!0)},"Array, any":function(e,t){return c(n(e),t,f,!1).valueOf()},"any, Array":function(e,t){return c(n(t),e,f,!0).valueOf()}});return f}),Uo="larger",Lo=["typed","config","matrix","DenseMatrix"],Ho=Object(s.a)(Uo,Lo,function(e){var t=e.typed,r=e.config,n=e.matrix,i=e.DenseMatrix,a=dr({typed:t}),o=gn({typed:t,DenseMatrix:i}),s=br({typed:t,DenseMatrix:i}),u=Xt({typed:t}),c=Kt({typed:t}),f=t(Uo,{"boolean, boolean":function(e,t){return t<e},"number, number":function(e,t){return t<e&&!Object(S.m)(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.gt(t)&&!Ne(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return 1===e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return f(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,f)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,f,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,f,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,f)},"Array, Array":function(e,t){return f(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return f(n(e),t)},"Matrix, Array":function(e,t){return f(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,f,!1)},"DenseMatrix, any":function(e,t){return c(e,t,f,!1)},"any, SparseMatrix":function(e,t){return s(t,e,f,!0)},"any, DenseMatrix":function(e,t){return c(t,e,f,!0)},"Array, any":function(e,t){return c(n(e),t,f,!1).valueOf()},"any, Array":function(e,t){return c(n(t),e,f,!0).valueOf()}});return f}),$o="largerEq",Go=["typed","config","matrix","DenseMatrix"],Zo=Object(s.a)($o,Go,function(e){var t=e.typed,r=e.config,n=e.matrix,i=e.DenseMatrix,a=dr({typed:t}),o=gn({typed:t,DenseMatrix:i}),s=br({typed:t,DenseMatrix:i}),u=Xt({typed:t}),c=Kt({typed:t}),f=t($o,{"boolean, boolean":function(e,t){return t<=e},"number, number":function(e,t){return t<=e||Object(S.m)(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.gte(t)||Ne(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return-1!==e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return f(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,f)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,f,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,f,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,f)},"Array, Array":function(e,t){return f(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return f(n(e),t)},"Matrix, Array":function(e,t){return f(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,f,!1)},"DenseMatrix, any":function(e,t){return c(e,t,f,!1)},"any, SparseMatrix":function(e,t){return s(t,e,f,!0)},"any, DenseMatrix":function(e,t){return c(t,e,f,!0)},"Array, any":function(e,t){return c(n(e),t,f,!1).valueOf()},"any, Array":function(e,t){return c(n(t),e,f,!0).valueOf()}});return f}),Vo="deepEqual",Jo=["typed","equal"],Wo=Object(s.a)(Vo,Jo,function(e){var t=e.typed,a=e.equal;return t(Vo,{"any, any":function(e,t){return function e(t,r){{if(Array.isArray(t)){if(Array.isArray(r)){var n=t.length;if(n!==r.length)return!1;for(var i=0;i<n;i++)if(!e(t[i],r[i]))return!1;return!0}return!1}return!Array.isArray(r)&&a(t,r)}}(e.valueOf(),t.valueOf())}})}),Yo="unequal",Xo=["typed","config","equalScalar","matrix","DenseMatrix"],Qo=Object(s.a)(Yo,Xo,function(e){var t=e.typed,r=(e.config,e.equalScalar),n=e.matrix,i=e.DenseMatrix,a=dr({typed:t}),o=gn({typed:t,DenseMatrix:i}),s=br({typed:t,DenseMatrix:i}),u=Xt({typed:t}),c=Kt({typed:t}),f=t("unequal",{"any, any":function(e,t){return null===e?null!==t:null===t?null!==e:void 0===e?void 0!==t:void 0===t?void 0!==e:l(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,l)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,l,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,l,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,l)},"Array, Array":function(e,t){return f(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return f(n(e),t)},"Matrix, Array":function(e,t){return f(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,l,!1)},"DenseMatrix, any":function(e,t){return c(e,t,l,!1)},"any, SparseMatrix":function(e,t){return s(t,e,l,!0)},"any, DenseMatrix":function(e,t){return c(t,e,l,!0)},"Array, any":function(e,t){return c(n(e),t,l,!1).valueOf()},"any, Array":function(e,t){return c(n(t),e,l,!0).valueOf()}});function l(e,t){return!r(e,t)}return f}),Ko=(Object(s.a)(Yo,["typed","equalScalar"],function(e){var t=e.typed,r=e.equalScalar;return t(Yo,{"any, any":function(e,t){return null===e?null!==t:null===t?null!==e:void 0===e?void 0!==t:void 0===t?void 0!==e:!r(e,t)}})}),"partitionSelect"),es=["typed","isNumeric","isNaN","compare"],ts=Object(s.a)(Ko,es,function(e){function n(e,t){return-r(e,t)}var t=e.typed,f=e.isNumeric,l=e.isNaN,r=e.compare,i=r;return t(Ko,{"Array | Matrix, number":function(e,t){return a(e,t,i)},"Array | Matrix, number, string":function(e,t,r){if("asc"===r)return a(e,t,i);if("desc"===r)return a(e,t,n);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":a});function a(e,t,r){if(!Object(S.i)(t)||t<0)throw new Error("k must be a non-negative integer");if(Object(ie.v)(e)){if(1<e.size().length)throw new Error("Only one dimensional matrices supported");return o(e.valueOf(),t,r)}if(Array.isArray(e))return o(e,t,r)}function o(e,t,r){if(t>=e.length)throw new Error("k out of bounds");for(var n=0;n<e.length;n++)if(f(e[n])&&l(e[n]))return e[n];for(var i=0,a=e.length-1;i<a;){for(var o=i,s=a,u=e[Math.floor(Math.random()*(a-i+1))+i];o<s;)if(0<=r(e[o],u)){var c=e[s];e[s]=e[o],e[o]=c,--s}else++o;0<r(e[o],u)&&--o,t<=o?a=o:i=o+1}return e[t]}}),rs=["typed","matrix","compare","compareNatural"],ns=Object(s.a)("sort",rs,function(e){function t(e,t){return-i(e,t)}var r=e.typed,n=e.matrix,i=e.compare,a=e.compareNatural,o=i;return r("sort",{Array:function(e){return u(e),e.sort(o)},Matrix:function(e){return c(e),n(e.toArray().sort(o),e.storage())},"Array, function":function(e,t){return u(e),e.sort(t)},"Matrix, function":function(e,t){return c(e),n(e.toArray().sort(t),e.storage())},"Array, string":function(e,t){return u(e),e.sort(s(t))},"Matrix, string":function(e,t){return c(e),n(e.toArray().sort(s(t)),e.storage())}});function s(e){if("asc"===e)return o;if("desc"===e)return t;if("natural"===e)return a;throw new Error('String "asc", "desc", or "natural" expected')}function u(e){if(1!==Object(I.a)(e).length)throw new Error("One dimensional array expected")}function c(e){if(1!==e.size().length)throw new Error("One dimensional matrix expected")}}),is=["typed","larger"],as=Object(s.a)("max",is,function(e){var t=e.typed,n=e.larger;return t("max",{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(e,t){return U(e,t.valueOf(),r)},"...":function(e){if(P(e))throw new TypeError("Scalar values expected in function max");return i(e)}});function r(e,t){try{return n(e,t)?e:t}catch(e){throw da(e,"max",t)}}function i(e){var r;if(F(e,function(t){try{isNaN(t)&&"number"==typeof t?r=NaN:void 0!==r&&!n(t,r)||(r=t)}catch(e){throw da(e,"max",t)}}),void 0===r)throw new Error("Cannot calculate max of an empty array");return r}}),os=["typed","smaller"],ss=Object(s.a)("min",os,function(e){var t=e.typed,n=e.smaller;return t("min",{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(e,t){return U(e,t.valueOf(),r)},"...":function(e){if(P(e))throw new TypeError("Scalar values expected in function min");return i(e)}});function r(e,t){try{return n(e,t)?e:t}catch(e){throw da(e,"min",t)}}function i(e){var r;if(F(e,function(t){try{isNaN(t)&&"number"==typeof t?r=NaN:void 0!==r&&!n(t,r)||(r=t)}catch(e){throw da(e,"min",t)}}),void 0===r)throw new Error("Cannot calculate min of an empty array");return r}}),us=["smaller","DenseMatrix"],cs=Object(s.a)("ImmutableDenseMatrix",us,function(e){var r=e.smaller,n=e.DenseMatrix;function i(e,t){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!Object(ie.I)(t))throw new Error("Invalid datatype: "+t);if(Object(ie.v)(e)||Object(ie.b)(e)){var r=new n(e,t);this._data=r._data,this._size=r._size,this._datatype=r._datatype,this._min=null,this._max=null}else if(e&&Object(ie.b)(e.data)&&Object(ie.b)(e.size))this._data=e.data,this._size=e.size,this._datatype=e.datatype,this._min=void 0!==e.min?e.min:null,this._max=void 0!==e.max?e.max:null;else{if(e)throw new TypeError("Unsupported type of data ("+Object(ie.M)(e)+")");this._data=[],this._size=[0],this._datatype=t,this._min=null,this._max=null}}return(i.prototype=new n).type="ImmutableDenseMatrix",i.prototype.isImmutableDenseMatrix=!0,i.prototype.subset=function(e){switch(arguments.length){case 1:var t=n.prototype.subset.call(this,e);return Object(ie.v)(t)?new i({data:t._data,size:t._size,datatype:t._datatype}):t;case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},i.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},i.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},i.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},i.prototype.clone=function(){return new i({data:Object(W.a)(this._data),size:Object(W.a)(this._size),datatype:this._datatype})},i.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},i.fromJSON=function(e){return new i(e)},i.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},i.prototype.min=function(){if(null===this._min){var t=null;this.forEach(function(e){null!==t&&!r(e,t)||(t=e)}),this._min=null!==t?t:void 0}return this._min},i.prototype.max=function(){if(null===this._max){var t=null;this.forEach(function(e){null!==t&&!r(t,e)||(t=e)}),this._max=null!==t?t:void 0}return this._max},i},{isClass:!0}),fs=["ImmutableDenseMatrix"],ls=Object(s.a)("Index",fs,function(e){var n=e.ImmutableDenseMatrix;function o(e){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._isScalar=!0;for(var t=0,r=arguments.length;t<r;t++){var n=arguments[t];if(Object(ie.D)(n))this._dimensions.push(n),this._isScalar=!1;else if(Array.isArray(n)||Object(ie.v)(n)){var i=s(n.valueOf());this._dimensions.push(i);var a=i.size();1===a.length&&1===a[0]||(this._isScalar=!1)}else if("number"==typeof n)this._dimensions.push(s([n]));else{if("string"!=typeof n)throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");this._dimensions.push(n)}}}function s(e){for(var t=0,r=e.length;t<r;t++)if("number"!=typeof e[t]||!Object(S.i)(e[t]))throw new TypeError("Index parameters must be positive integer numbers");return new n(e)}return o.prototype.type="Index",o.prototype.isIndex=!0,o.prototype.clone=function(){var e=new o;return e._dimensions=Object(W.a)(this._dimensions),e._isScalar=this._isScalar,e},o.create=function(e){var t=new o;return o.apply(t,e),t},o.prototype.size=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var n=this._dimensions[t];e[t]="string"==typeof n?1:n.size()[0]}return e},o.prototype.max=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var n=this._dimensions[t];e[t]="string"==typeof n?n:n.max()}return e},o.prototype.min=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var n=this._dimensions[t];e[t]="string"==typeof n?n:n.min()}return e},o.prototype.forEach=function(e){for(var t=0,r=this._dimensions.length;t<r;t++)e(this._dimensions[t],t,this)},o.prototype.dimension=function(e){return this._dimensions[e]||null},o.prototype.isObjectProperty=function(){return 1===this._dimensions.length&&"string"==typeof this._dimensions[0]},o.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},o.prototype.isScalar=function(){return this._isScalar},o.prototype.valueOf=o.prototype.toArray=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var n=this._dimensions[t];e.push("string"==typeof n?n:n.toArray())}return e},o.prototype.toString=function(){for(var e=[],t=0,r=this._dimensions.length;t<r;t++){var n=this._dimensions[t];"string"==typeof n?e.push(JSON.stringify(n)):e.push(n.toString())}return"["+e.join(", ")+"]"},o.prototype.toJSON=function(){return{mathjs:"Index",dimensions:this._dimensions}},o.fromJSON=function(e){return o.create(e.dimensions)},o},{isClass:!0}),ps=["smaller","larger"],ms=Object(s.a)("FibonacciHeap",ps,function(e){var l=e.smaller,p=e.larger,m=1/Math.log((1+Math.sqrt(5))/2);function t(){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}function i(e,t,r){t.left.right=t.right,t.right.left=t.left,r.degree--,r.child===t&&(r.child=t.right),0===r.degree&&(r.child=null),t.left=e,t.right=e.right,((e.right=t).right.left=t).parent=null,t.mark=!1}t.prototype.type="FibonacciHeap",t.prototype.isFibonacciHeap=!0,t.prototype.insert=function(e,t){var r={key:e,value:t,degree:0};if(this._minimum){var n=this._minimum;r.left=n,r.right=n.right,(n.right=r).right.left=r,l(e,n.key)&&(this._minimum=r)}else(r.left=r).right=r,this._minimum=r;return this._size++,r},t.prototype.size=function(){return this._size},t.prototype.clear=function(){this._minimum=null,this._size=0},t.prototype.isEmpty=function(){return 0===this._size},t.prototype.extractMinimum=function(){var e=this._minimum;if(null===e)return e;for(var t=this._minimum,r=e.degree,n=e.child;0<r;){var i=n.right;n.left.right=n.right,n.right.left=n.left,n.left=t,n.right=t.right,((t.right=n).right.left=n).parent=null,n=i,r--}return e.left.right=e.right,e.right.left=e.left,t=e===e.right?null:function(e,t){var r,n=Math.floor(Math.log(t)*m)+1,i=new Array(n),a=0,o=e;if(o)for(a++,o=o.right;o!==e;)a++,o=o.right;for(;0<a;){for(var s=o.degree,u=o.right;r=i[s];){if(p(o.key,r.key)){var c=r;r=o,o=c}h(r,o),i[s]=null,s++}i[s]=o,o=u,a--}e=null;for(var f=0;f<n;f++)(r=i[f])&&(e?(r.left.right=r.right,r.right.left=r.left,r.left=e,r.right=e.right,(e.right=r).right.left=r,l(r.key,e.key)&&(e=r)):e=r);return e}(t=e.right,this._size),this._size--,this._minimum=t,e},t.prototype.remove=function(e){this._minimum=function(e,t,r){t.key=r;var n=t.parent;n&&l(t.key,n.key)&&(i(e,t,n),function e(t,r){var n=r.parent;if(!n)return;r.mark?(i(t,r,n),e(n)):r.mark=!0}(e,n));l(t.key,e.key)&&(e=t);return e}(this._minimum,e,-1),this.extractMinimum()};var h=function(e,t){e.left.right=e.right,e.right.left=e.left,(e.parent=t).child?(e.left=t.child,e.right=t.child.right,(t.child.right=e).right.left=e):((t.child=e).right=e).left=e,t.degree++,e.mark=!1};return t},{isClass:!0}),hs=["addScalar","equalScalar","FibonacciHeap"],ds=Object(s.a)("Spa",hs,function(e){var n=e.addScalar,c=e.equalScalar,t=e.FibonacciHeap;function r(){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new t}return r.prototype.type="Spa",r.prototype.isSpa=!0,r.prototype.set=function(e,t){if(this._values[e])this._values[e].value=t;else{var r=this._heap.insert(e,t);this._values[e]=r}},r.prototype.get=function(e){var t=this._values[e];return t?t.value:0},r.prototype.accumulate=function(e,t){var r=this._values[e];r?r.value=n(r.value,t):(r=this._heap.insert(e,t),this._values[e]=r)},r.prototype.forEach=function(e,t,r){var n=this._heap,i=this._values,a=[],o=n.extractMinimum();for(o&&a.push(o);o&&o.key<=t;)o.key>=e&&(c(o.value,0)||r(o.key,o.value,this)),(o=n.extractMinimum())&&a.push(o);for(var s=0;s<a.length;s++){var u=a[s];i[(o=n.insert(u.key,u.value)).key]=o}},r.prototype.swap=function(e,t){var r=this._values[e],n=this._values[t];if(!r&&n)r=this._heap.insert(e,n.value),this._heap.remove(n),this._values[e]=r,this._values[t]=void 0;else if(r&&!n)n=this._heap.insert(t,r.value),this._heap.remove(r),this._values[t]=n,this._values[e]=void 0;else if(r&&n){var i=r.value;r.value=n.value,n.value=i}},r},{isClass:!0}),ys=Yn(function(e){return new e(1).exp()},xs),gs=Yn(function(e){return new e(1).plus(new e(5).sqrt()).div(2)},xs),vs=Yn(function(e){return e.acos(-1)},xs),bs=Yn(function(e){return vs(e).times(2)},xs);function xs(e){return e[0].precision}function ws(e){return(ws="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 Ns(){return(Ns=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Os=["?on","config","addScalar","subtract","multiplyScalar","divideScalar","pow","abs","fix","round","equal","isNumeric","format","number","Complex","BigNumber","Fraction"],Ms=Object(s.a)("Unit",Os,function(e){var y,g,v,t=e.on,b=e.config,c=e.addScalar,f=e.subtract,l=e.multiplyScalar,p=e.divideScalar,m=e.pow,h=e.abs,d=e.fix,x=e.round,w=e.equal,i=e.isNumeric,s=e.format,r=e.number,n=e.Complex,N=e.BigNumber,O=e.Fraction,a=r;function M(e,t){if(!(this instanceof M))throw new Error("Constructor must be called with the new operator");if(null!=e&&!i(e)&&!Object(ie.j)(e))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(void 0!==t&&("string"!=typeof t||""===t))throw new TypeError("Second parameter in Unit constructor must be a string");if(void 0!==t){var r=M.parse(t);this.units=r.units,this.dimensions=r.dimensions}else{this.units=[{unit:z,prefix:I.NONE,power:0}],this.dimensions=[];for(var n=0;n<q.length;n++)this.dimensions[n]=0}this.value=null!=e?this._normalize(e):null,this.fixPrefix=!1,this.skipAutomaticSimplification=!0}function E(){for(;" "===v||"\t"===v;)S()}function o(e){return"0"<=e&&e<="9"}function S(){g++,v=y.charAt(g)}function u(e){g=e,v=y.charAt(g)}function j(){var e,t="";if(e=g,"+"===v?S():"-"===v&&(t+=v,S()),!function(e){return"0"<=e&&e<="9"||"."===e}(v))return u(e),null;if("."===v){if(t+=v,S(),!o(v))return u(e),null}else{for(;o(v);)t+=v,S();"."===v&&(t+=v,S())}for(;o(v);)t+=v,S();if("E"===v||"e"===v){var r="",n=g;if(r+=v,S(),"+"!==v&&"-"!==v||(r+=v,S()),!o(v))return u(n),t;for(t+=r;o(v);)t+=v,S()}return t}function A(){for(var e="",t=y.charCodeAt(g);48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122;)e+=v,S(),t=y.charCodeAt(g);return(65<=(t=e.charCodeAt(0))&&t<=90||97<=t&&t<=122)&&e||null}function C(e){return v===e?(S(),e):null}function T(e){if(D.hasOwnProperty(e)){var t=D[e];return{unit:t,prefix:t.prefixes[""]}}for(var r in D)if(D.hasOwnProperty(r)&&Object(J.b)(e,r)){var n=D[r],i=e.length-r.length,a=e.substring(0,i),o=n.prefixes.hasOwnProperty(a)?n.prefixes[a]:void 0;if(void 0!==o)return{unit:n,prefix:o}}return null}function _(e){return e.equalBase(B.NONE)&&null!==e.value&&!b.predictable?e.value:e}M.prototype.type="Unit",M.prototype.isUnit=!0,M.parse=function(e,t){if(t=t||{},g=-1,v="","string"!=typeof(y=e))throw new TypeError("Invalid argument in Unit.parse, string expected");var r=new M,n=1,i=!(r.units=[]);S(),E();var a=j(),o=null;if(a){if("BigNumber"===b.number)o=new N(a);else if("Fraction"===b.number)try{o=new O(a)}catch(e){o=parseFloat(a)}else o=parseFloat(a);E(),C("*")?(n=1,i=!0):C("/")&&(n=-1,i=!0)}for(var s=[],u=1;;){for(E();"("===v;)s.push(n),u*=n,n=1,S(),E();var c=void 0;if(!v)break;var f=v;if(null===(c=A()))throw new SyntaxError('Unexpected "'+f+'" in "'+y+'" at index '+g.toString());var l=T(c);if(null===l)throw new SyntaxError('Unit "'+c+'" not found.');var p=n*u;if(E(),C("^")){E();var m=j();if(null===m)throw new SyntaxError('In "'+e+'", "^" must be followed by a floating-point number');p*=m}r.units.push({unit:l.unit,prefix:l.prefix,power:p});for(var h=0;h<q.length;h++)r.dimensions[h]+=(l.unit.dimensions[h]||0)*p;for(E();")"===v;){if(0===s.length)throw new SyntaxError('Unmatched ")" in "'+y+'" at index '+g.toString());u/=s.pop(),S(),E()}if(i=!1,C("*")?(n=1,i=!0):C("/")?(n=-1,i=!0):n=1,l.unit.base){var d=l.unit.base.key;F.auto[d]={unit:l.unit,prefix:l.prefix}}}if(E(),v)throw new SyntaxError('Could not parse: "'+e+'"');if(i)throw new SyntaxError('Trailing characters: "'+e+'"');if(0!==s.length)throw new SyntaxError('Unmatched "(" in "'+y+'"');if(0===r.units.length&&!t.allowNoUnits)throw new SyntaxError('"'+e+'" contains no units');return r.value=void 0!==o?r._normalize(o):null,r},M.prototype.clone=function(){var e=new M;e.fixPrefix=this.fixPrefix,e.skipAutomaticSimplification=this.skipAutomaticSimplification,e.value=Object(W.a)(this.value),e.dimensions=this.dimensions.slice(0),e.units=[];for(var t=0;t<this.units.length;t++)for(var r in e.units[t]={},this.units[t])this.units[t].hasOwnProperty(r)&&(e.units[t][r]=this.units[t][r]);return e},M.prototype._isDerived=function(){return 0!==this.units.length&&(1<this.units.length||1e-15<Math.abs(this.units[0].power-1))},M.prototype._normalize=function(e){var t,r,n,i,a;if(null==e||0===this.units.length)return e;if(this._isDerived()){var o=e;a=M._getNumberConverter(Object(ie.M)(e));for(var s=0;s<this.units.length;s++)t=a(this.units[s].unit.value),i=a(this.units[s].prefix.value),n=a(this.units[s].power),o=l(o,m(l(t,i),n));return o}return t=(a=M._getNumberConverter(Object(ie.M)(e)))(this.units[0].unit.value),r=a(this.units[0].unit.offset),i=a(this.units[0].prefix.value),l(c(e,r),l(t,i))},M.prototype._denormalize=function(e,t){var r,n,i,a,o;if(null==e||0===this.units.length)return e;if(this._isDerived()){var s=e;o=M._getNumberConverter(Object(ie.M)(e));for(var u=0;u<this.units.length;u++)r=o(this.units[u].unit.value),a=o(this.units[u].prefix.value),i=o(this.units[u].power),s=p(s,m(l(r,a),i));return s}return r=(o=M._getNumberConverter(Object(ie.M)(e)))(this.units[0].unit.value),a=o(this.units[0].prefix.value),n=o(this.units[0].unit.offset),f(p(p(e,r),null==t?a:t),n)},M.isValuelessUnit=function(e){return null!==T(e)},M.prototype.hasBase=function(e){if("string"==typeof e&&(e=B[e]),!e)return!1;for(var t=0;t<q.length;t++)if(1e-12<Math.abs((this.dimensions[t]||0)-(e.dimensions[t]||0)))return!1;return!0},M.prototype.equalBase=function(e){for(var t=0;t<q.length;t++)if(1e-12<Math.abs((this.dimensions[t]||0)-(e.dimensions[t]||0)))return!1;return!0},M.prototype.equals=function(e){return this.equalBase(e)&&w(this.value,e.value)},M.prototype.multiply=function(e){for(var t=this.clone(),r=0;r<q.length;r++)t.dimensions[r]=(this.dimensions[r]||0)+(e.dimensions[r]||0);for(var n=0;n<e.units.length;n++){var i={};for(var a in e.units[n])i[a]=e.units[n][a];t.units.push(i)}if(null!==this.value||null!==e.value){var o=null===this.value?this._normalize(1):this.value,s=null===e.value?e._normalize(1):e.value;t.value=l(o,s)}else t.value=null;return t.skipAutomaticSimplification=!1,_(t)},M.prototype.divide=function(e){for(var t=this.clone(),r=0;r<q.length;r++)t.dimensions[r]=(this.dimensions[r]||0)-(e.dimensions[r]||0);for(var n=0;n<e.units.length;n++){var i={};for(var a in e.units[n])i[a]=e.units[n][a];i.power=-i.power,t.units.push(i)}if(null!==this.value||null!==e.value){var o=null===this.value?this._normalize(1):this.value,s=null===e.value?e._normalize(1):e.value;t.value=p(o,s)}else t.value=null;return t.skipAutomaticSimplification=!1,_(t)},M.prototype.pow=function(e){for(var t=this.clone(),r=0;r<q.length;r++)t.dimensions[r]=(this.dimensions[r]||0)*e;for(var n=0;n<t.units.length;n++)t.units[n].power*=e;return null!==t.value?t.value=m(t.value,e):t.value=null,t.skipAutomaticSimplification=!1,_(t)},M.prototype.abs=function(){var e=this.clone();for(var t in e.value=null!==e.value?h(e.value):null,e.units)"VA"!==e.units[t].unit.name&&"VAR"!==e.units[t].unit.name||(e.units[t].unit=D.W);return e},M.prototype.to=function(e){var t,r=null===this.value?this._normalize(1):this.value;if("string"==typeof e){if(t=M.parse(e),!this.equalBase(t))throw new Error("Units do not match ('".concat(t.toString(),"' != '").concat(this.toString(),"')"));if(null!==t.value)throw new Error("Cannot convert to a unit with a value");return t.value=Object(W.a)(r),t.fixPrefix=!0,t.skipAutomaticSimplification=!0,t}if(Object(ie.L)(e)){if(!this.equalBase(e))throw new Error("Units do not match ('".concat(e.toString(),"' != '").concat(this.toString(),"')"));if(null!==e.value)throw new Error("Cannot convert to a unit with a value");return(t=e.clone()).value=Object(W.a)(r),t.fixPrefix=!0,t.skipAutomaticSimplification=!0,t}throw new Error("String or Unit expected as parameter")},M.prototype.toNumber=function(e){return a(this.toNumeric(e))},M.prototype.toNumeric=function(e){var t;return(t=e?this.to(e):this.clone())._isDerived()?t._denormalize(t.value):t._denormalize(t.value,t.units[0].prefix.value)},M.prototype.toString=function(){return this.format()},M.prototype.toJSON=function(){return{mathjs:"Unit",value:this._denormalize(this.value),unit:this.formatUnits(),fixPrefix:this.fixPrefix}},M.fromJSON=function(e){var t=new M(e.value,e.unit);return t.fixPrefix=e.fixPrefix||!1,t},M.prototype.valueOf=M.prototype.toString,M.prototype.simplify=function(){var e,t,r=this.clone(),n=[];for(var i in U)if(r.hasBase(B[i])){e=i;break}if("NONE"===e)r.units=[];else if(e&&U.hasOwnProperty(e)&&(t=U[e]),t)r.units=[{unit:t.unit,prefix:t.prefix,power:1}];else{for(var a=!1,o=0;o<q.length;o++){var s=q[o];1e-12<Math.abs(r.dimensions[o]||0)&&(U.hasOwnProperty(s)?n.push({unit:U[s].unit,prefix:U[s].prefix,power:r.dimensions[o]||0}):a=!0)}n.length<r.units.length&&!a&&(r.units=n)}return r},M.prototype.toSI=function(){for(var e=this.clone(),t=[],r=0;r<q.length;r++){var n=q[r];if(1e-12<Math.abs(e.dimensions[r]||0)){if(!F.si.hasOwnProperty(n))throw new Error("Cannot express custom unit "+n+" in SI units");t.push({unit:F.si[n].unit,prefix:F.si[n].prefix,power:e.dimensions[r]||0})}}return e.units=t,e.fixPrefix=!0,e.skipAutomaticSimplification=!0,e},M.prototype.formatUnits=function(){for(var e="",t="",r=0,n=0,i=0;i<this.units.length;i++)0<this.units[i].power?(r++,e+=" "+this.units[i].prefix.name+this.units[i].unit.name,1e-15<Math.abs(this.units[i].power-1)&&(e+="^"+this.units[i].power)):this.units[i].power<0&&n++;if(0<n)for(var a=0;a<this.units.length;a++)this.units[a].power<0&&(0<r?(t+=" "+this.units[a].prefix.name+this.units[a].unit.name,1e-15<Math.abs(this.units[a].power+1)&&(t+="^"+-this.units[a].power)):(t+=" "+this.units[a].prefix.name+this.units[a].unit.name,t+="^"+this.units[a].power));e=e.substr(1),t=t.substr(1),1<r&&0<n&&(e="("+e+")"),1<n&&0<r&&(t="("+t+")");var o=e;return 0<r&&0<n&&(o+=" / "),o+=t},M.prototype.format=function(e){var t=this.skipAutomaticSimplification||null===this.value?this.clone():this.simplify(),r=!1;for(var n in void 0!==t.value&&null!==t.value&&Object(ie.j)(t.value)&&(r=Math.abs(t.value.re)<1e-14),t.units)t.units[n].unit&&("VA"===t.units[n].unit.name&&r?t.units[n].unit=D.VAR:"VAR"!==t.units[n].unit.name||r||(t.units[n].unit=D.VA));1!==t.units.length||t.fixPrefix||Math.abs(t.units[0].power-Math.round(t.units[0].power))<1e-14&&(t.units[0].prefix=t._bestPrefix());var i=t._denormalize(t.value),a=null!==t.value?s(i,e||{}):"",o=t.formatUnits();return t.value&&Object(ie.j)(t.value)&&(a="("+a+")"),0<o.length&&0<a.length&&(a+=" "),a+=o},M.prototype._bestPrefix=function(){if(1!==this.units.length)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");if(1e-14<=Math.abs(this.units[0].power-Math.round(this.units[0].power)))throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var e=null!==this.value?h(this.value):0,t=h(this.units[0].unit.value),r=this.units[0].prefix;if(0===e)return r;var n=this.units[0].power,i=Math.log(e/Math.pow(r.value*t,n))/Math.LN10-1.2;if(-2.200001<i&&i<1.800001)return r;i=Math.abs(i);var a=this.units[0].unit.prefixes;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];if(s.scientific){var u=Math.abs(Math.log(e/Math.pow(s.value*t,n))/Math.LN10-1.2);(u<i||u===i&&s.name.length<r.name.length)&&(r=s,i=u)}}return r};var I={NONE:{"":{name:"",value:1,scientific:!0}},SHORT:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:10,scientific:!(M.prototype.splitUnit=function(e){for(var t=this.clone(),r=[],n=0;n<e.length&&(t=t.to(e[n]),n!==e.length-1);n++){var i=t.toNumeric(),a=x(i),o=new M(w(a,i)?a:d(t.toNumeric()),e[n].toString());r.push(o),t=f(t,o)}for(var s=0,u=0;u<r.length;u++)s=c(s,r[u].value);return w(s,this.value)&&(t.value=0),r.push(t),r})},h:{name:"h",value:100,scientific:!1},k:{name:"k",value:1e3,scientific:!0},M:{name:"M",value:1e6,scientific:!0},G:{name:"G",value:1e9,scientific:!0},T:{name:"T",value:1e12,scientific:!0},P:{name:"P",value:1e15,scientific:!0},E:{name:"E",value:1e18,scientific:!0},Z:{name:"Z",value:1e21,scientific:!0},Y:{name:"Y",value:1e24,scientific:!0},d:{name:"d",value:.1,scientific:!1},c:{name:"c",value:.01,scientific:!1},m:{name:"m",value:.001,scientific:!0},u:{name:"u",value:1e-6,scientific:!0},n:{name:"n",value:1e-9,scientific:!0},p:{name:"p",value:1e-12,scientific:!0},f:{name:"f",value:1e-15,scientific:!0},a:{name:"a",value:1e-18,scientific:!0},z:{name:"z",value:1e-21,scientific:!0},y:{name:"y",value:1e-24,scientific:!0}},LONG:{"":{name:"",value:1,scientific:!0},deca:{name:"deca",value:10,scientific:!1},hecto:{name:"hecto",value:100,scientific:!1},kilo:{name:"kilo",value:1e3,scientific:!0},mega:{name:"mega",value:1e6,scientific:!0},giga:{name:"giga",value:1e9,scientific:!0},tera:{name:"tera",value:1e12,scientific:!0},peta:{name:"peta",value:1e15,scientific:!0},exa:{name:"exa",value:1e18,scientific:!0},zetta:{name:"zetta",value:1e21,scientific:!0},yotta:{name:"yotta",value:1e24,scientific:!0},deci:{name:"deci",value:.1,scientific:!1},centi:{name:"centi",value:.01,scientific:!1},milli:{name:"milli",value:.001,scientific:!0},micro:{name:"micro",value:1e-6,scientific:!0},nano:{name:"nano",value:1e-9,scientific:!0},pico:{name:"pico",value:1e-12,scientific:!0},femto:{name:"femto",value:1e-15,scientific:!0},atto:{name:"atto",value:1e-18,scientific:!0},zepto:{name:"zepto",value:1e-21,scientific:!0},yocto:{name:"yocto",value:1e-24,scientific:!0}},SQUARED:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:100,scientific:!1},h:{name:"h",value:1e4,scientific:!1},k:{name:"k",value:1e6,scientific:!0},M:{name:"M",value:1e12,scientific:!0},G:{name:"G",value:1e18,scientific:!0},T:{name:"T",value:1e24,scientific:!0},P:{name:"P",value:1e30,scientific:!0},E:{name:"E",value:1e36,scientific:!0},Z:{name:"Z",value:1e42,scientific:!0},Y:{name:"Y",value:1e48,scientific:!0},d:{name:"d",value:.01,scientific:!1},c:{name:"c",value:1e-4,scientific:!1},m:{name:"m",value:1e-6,scientific:!0},u:{name:"u",value:1e-12,scientific:!0},n:{name:"n",value:1e-18,scientific:!0},p:{name:"p",value:1e-24,scientific:!0},f:{name:"f",value:1e-30,scientific:!0},a:{name:"a",value:1e-36,scientific:!0},z:{name:"z",value:1e-42,scientific:!0},y:{name:"y",value:1e-48,scientific:!0}},CUBIC:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:1e3,scientific:!1},h:{name:"h",value:1e6,scientific:!1},k:{name:"k",value:1e9,scientific:!0},M:{name:"M",value:1e18,scientific:!0},G:{name:"G",value:1e27,scientific:!0},T:{name:"T",value:1e36,scientific:!0},P:{name:"P",value:1e45,scientific:!0},E:{name:"E",value:1e54,scientific:!0},Z:{name:"Z",value:1e63,scientific:!0},Y:{name:"Y",value:1e72,scientific:!0},d:{name:"d",value:.001,scientific:!1},c:{name:"c",value:1e-6,scientific:!1},m:{name:"m",value:1e-9,scientific:!0},u:{name:"u",value:1e-18,scientific:!0},n:{name:"n",value:1e-27,scientific:!0},p:{name:"p",value:1e-36,scientific:!0},f:{name:"f",value:1e-45,scientific:!0},a:{name:"a",value:1e-54,scientific:!0},z:{name:"z",value:1e-63,scientific:!0},y:{name:"y",value:1e-72,scientific:!0}},BINARY_SHORT_SI:{"":{name:"",value:1,scientific:!0},k:{name:"k",value:1e3,scientific:!0},M:{name:"M",value:1e6,scientific:!0},G:{name:"G",value:1e9,scientific:!0},T:{name:"T",value:1e12,scientific:!0},P:{name:"P",value:1e15,scientific:!0},E:{name:"E",value:1e18,scientific:!0},Z:{name:"Z",value:1e21,scientific:!0},Y:{name:"Y",value:1e24,scientific:!0}},BINARY_SHORT_IEC:{"":{name:"",value:1,scientific:!0},Ki:{name:"Ki",value:1024,scientific:!0},Mi:{name:"Mi",value:Math.pow(1024,2),scientific:!0},Gi:{name:"Gi",value:Math.pow(1024,3),scientific:!0},Ti:{name:"Ti",value:Math.pow(1024,4),scientific:!0},Pi:{name:"Pi",value:Math.pow(1024,5),scientific:!0},Ei:{name:"Ei",value:Math.pow(1024,6),scientific:!0},Zi:{name:"Zi",value:Math.pow(1024,7),scientific:!0},Yi:{name:"Yi",value:Math.pow(1024,8),scientific:!0}},BINARY_LONG_SI:{"":{name:"",value:1,scientific:!0},kilo:{name:"kilo",value:1e3,scientific:!0},mega:{name:"mega",value:1e6,scientific:!0},giga:{name:"giga",value:1e9,scientific:!0},tera:{name:"tera",value:1e12,scientific:!0},peta:{name:"peta",value:1e15,scientific:!0},exa:{name:"exa",value:1e18,scientific:!0},zetta:{name:"zetta",value:1e21,scientific:!0},yotta:{name:"yotta",value:1e24,scientific:!0}},BINARY_LONG_IEC:{"":{name:"",value:1,scientific:!0},kibi:{name:"kibi",value:1024,scientific:!0},mebi:{name:"mebi",value:Math.pow(1024,2),scientific:!0},gibi:{name:"gibi",value:Math.pow(1024,3),scientific:!0},tebi:{name:"tebi",value:Math.pow(1024,4),scientific:!0},pebi:{name:"pebi",value:Math.pow(1024,5),scientific:!0},exi:{name:"exi",value:Math.pow(1024,6),scientific:!0},zebi:{name:"zebi",value:Math.pow(1024,7),scientific:!0},yobi:{name:"yobi",value:Math.pow(1024,8),scientific:!0}},BTU:{"":{name:"",value:1,scientific:!0},MM:{name:"MM",value:1e6,scientific:!0}}};I.SHORTLONG=Ns(I.SHORT,I.LONG),I.BINARY_SHORT=Ns(I.BINARY_SHORT_SI,I.BINARY_SHORT_IEC),I.BINARY_LONG=Ns(I.BINARY_LONG_SI,I.BINARY_LONG_IEC);var q=["MASS","LENGTH","TIME","CURRENT","TEMPERATURE","LUMINOUS_INTENSITY","AMOUNT_OF_SUBSTANCE","ANGLE","BIT"],B={NONE:{dimensions:[0,0,0,0,0,0,0,0,0]},MASS:{dimensions:[1,0,0,0,0,0,0,0,0]},LENGTH:{dimensions:[0,1,0,0,0,0,0,0,0]},TIME:{dimensions:[0,0,1,0,0,0,0,0,0]},CURRENT:{dimensions:[0,0,0,1,0,0,0,0,0]},TEMPERATURE:{dimensions:[0,0,0,0,1,0,0,0,0]},LUMINOUS_INTENSITY:{dimensions:[0,0,0,0,0,1,0,0,0]},AMOUNT_OF_SUBSTANCE:{dimensions:[0,0,0,0,0,0,1,0,0]},FORCE:{dimensions:[1,1,-2,0,0,0,0,0,0]},SURFACE:{dimensions:[0,2,0,0,0,0,0,0,0]},VOLUME:{dimensions:[0,3,0,0,0,0,0,0,0]},ENERGY:{dimensions:[1,2,-2,0,0,0,0,0,0]},POWER:{dimensions:[1,2,-3,0,0,0,0,0,0]},PRESSURE:{dimensions:[1,-1,-2,0,0,0,0,0,0]},ELECTRIC_CHARGE:{dimensions:[0,0,1,1,0,0,0,0,0]},ELECTRIC_CAPACITANCE:{dimensions:[-1,-2,4,2,0,0,0,0,0]},ELECTRIC_POTENTIAL:{dimensions:[1,2,-3,-1,0,0,0,0,0]},ELECTRIC_RESISTANCE:{dimensions:[1,2,-3,-2,0,0,0,0,0]},ELECTRIC_INDUCTANCE:{dimensions:[1,2,-2,-2,0,0,0,0,0]},ELECTRIC_CONDUCTANCE:{dimensions:[-1,-2,3,2,0,0,0,0,0]},MAGNETIC_FLUX:{dimensions:[1,2,-2,-1,0,0,0,0,0]},MAGNETIC_FLUX_DENSITY:{dimensions:[1,0,-2,-1,0,0,0,0,0]},FREQUENCY:{dimensions:[0,0,-1,0,0,0,0,0,0]},ANGLE:{dimensions:[0,0,0,0,0,0,0,1,0]},BIT:{dimensions:[0,0,0,0,0,0,0,0,1]}};for(var k in B)B[k].key=k;var z={name:"",base:{},value:1,offset:0,dimensions:q.map(function(e){return 0})},D={meter:{name:"meter",base:B.LENGTH,prefixes:I.LONG,value:1,offset:0},inch:{name:"inch",base:B.LENGTH,prefixes:I.NONE,value:.0254,offset:0},foot:{name:"foot",base:B.LENGTH,prefixes:I.NONE,value:.3048,offset:0},yard:{name:"yard",base:B.LENGTH,prefixes:I.NONE,value:.9144,offset:0},mile:{name:"mile",base:B.LENGTH,prefixes:I.NONE,value:1609.344,offset:0},link:{name:"link",base:B.LENGTH,prefixes:I.NONE,value:.201168,offset:0},rod:{name:"rod",base:B.LENGTH,prefixes:I.NONE,value:5.0292,offset:0},chain:{name:"chain",base:B.LENGTH,prefixes:I.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:B.LENGTH,prefixes:I.NONE,value:1e-10,offset:0},m:{name:"m",base:B.LENGTH,prefixes:I.SHORT,value:1,offset:0},in:{name:"in",base:B.LENGTH,prefixes:I.NONE,value:.0254,offset:0},ft:{name:"ft",base:B.LENGTH,prefixes:I.NONE,value:.3048,offset:0},yd:{name:"yd",base:B.LENGTH,prefixes:I.NONE,value:.9144,offset:0},mi:{name:"mi",base:B.LENGTH,prefixes:I.NONE,value:1609.344,offset:0},li:{name:"li",base:B.LENGTH,prefixes:I.NONE,value:.201168,offset:0},rd:{name:"rd",base:B.LENGTH,prefixes:I.NONE,value:5.02921,offset:0},ch:{name:"ch",base:B.LENGTH,prefixes:I.NONE,value:20.1168,offset:0},mil:{name:"mil",base:B.LENGTH,prefixes:I.NONE,value:254e-7,offset:0},m2:{name:"m2",base:B.SURFACE,prefixes:I.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:B.SURFACE,prefixes:I.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:B.SURFACE,prefixes:I.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:B.SURFACE,prefixes:I.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:B.SURFACE,prefixes:I.NONE,value:2589988.110336,offset:0},sqrd:{name:"sqrd",base:B.SURFACE,prefixes:I.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:B.SURFACE,prefixes:I.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:B.SURFACE,prefixes:I.NONE,value:6.4516e-10,offset:0},acre:{name:"acre",base:B.SURFACE,prefixes:I.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:B.SURFACE,prefixes:I.NONE,value:1e4,offset:0},m3:{name:"m3",base:B.VOLUME,prefixes:I.CUBIC,value:1,offset:0},L:{name:"L",base:B.VOLUME,prefixes:I.SHORT,value:.001,offset:0},l:{name:"l",base:B.VOLUME,prefixes:I.SHORT,value:.001,offset:0},litre:{name:"litre",base:B.VOLUME,prefixes:I.LONG,value:.001,offset:0},cuin:{name:"cuin",base:B.VOLUME,prefixes:I.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:B.VOLUME,prefixes:I.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:B.VOLUME,prefixes:I.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:B.VOLUME,prefixes:I.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:B.VOLUME,prefixes:I.NONE,value:15e-6,offset:0},drop:{name:"drop",base:B.VOLUME,prefixes:I.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:B.VOLUME,prefixes:I.NONE,value:5e-8,offset:0},minim:{name:"minim",base:B.VOLUME,prefixes:I.NONE,value:6.161152e-8,offset:0},fluiddram:{name:"fluiddram",base:B.VOLUME,prefixes:I.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:B.VOLUME,prefixes:I.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:B.VOLUME,prefixes:I.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:B.VOLUME,prefixes:I.NONE,value:1e-6,offset:0},cup:{name:"cup",base:B.VOLUME,prefixes:I.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:B.VOLUME,prefixes:I.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:B.VOLUME,prefixes:I.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:B.VOLUME,prefixes:I.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:B.VOLUME,prefixes:I.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:B.VOLUME,prefixes:I.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:B.VOLUME,prefixes:I.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:B.VOLUME,prefixes:I.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:B.VOLUME,prefixes:I.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:B.VOLUME,prefixes:I.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:B.VOLUME,prefixes:I.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:B.VOLUME,prefixes:I.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:B.VOLUME,prefixes:I.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:B.VOLUME,prefixes:I.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:B.VOLUME,prefixes:I.NONE,value:.1173478,offset:0},obl:{name:"obl",base:B.VOLUME,prefixes:I.NONE,value:.1589873,offset:0},g:{name:"g",base:B.MASS,prefixes:I.SHORT,value:.001,offset:0},gram:{name:"gram",base:B.MASS,prefixes:I.LONG,value:.001,offset:0},ton:{name:"ton",base:B.MASS,prefixes:I.SHORT,value:907.18474,offset:0},t:{name:"t",base:B.MASS,prefixes:I.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:B.MASS,prefixes:I.LONG,value:1e3,offset:0},grain:{name:"grain",base:B.MASS,prefixes:I.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:B.MASS,prefixes:I.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:B.MASS,prefixes:I.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:B.MASS,prefixes:I.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:B.MASS,prefixes:I.NONE,value:45.359237,offset:0},stick:{name:"stick",base:B.MASS,prefixes:I.NONE,value:.115,offset:0},stone:{name:"stone",base:B.MASS,prefixes:I.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:B.MASS,prefixes:I.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:B.MASS,prefixes:I.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:B.MASS,prefixes:I.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:B.MASS,prefixes:I.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:B.MASS,prefixes:I.NONE,value:45.359237,offset:0},s:{name:"s",base:B.TIME,prefixes:I.SHORT,value:1,offset:0},min:{name:"min",base:B.TIME,prefixes:I.NONE,value:60,offset:0},h:{name:"h",base:B.TIME,prefixes:I.NONE,value:3600,offset:0},second:{name:"second",base:B.TIME,prefixes:I.LONG,value:1,offset:0},sec:{name:"sec",base:B.TIME,prefixes:I.LONG,value:1,offset:0},minute:{name:"minute",base:B.TIME,prefixes:I.NONE,value:60,offset:0},hour:{name:"hour",base:B.TIME,prefixes:I.NONE,value:3600,offset:0},day:{name:"day",base:B.TIME,prefixes:I.NONE,value:86400,offset:0},week:{name:"week",base:B.TIME,prefixes:I.NONE,value:604800,offset:0},month:{name:"month",base:B.TIME,prefixes:I.NONE,value:2629800,offset:0},year:{name:"year",base:B.TIME,prefixes:I.NONE,value:31557600,offset:0},decade:{name:"decade",base:B.TIME,prefixes:I.NONE,value:315576e3,offset:0},century:{name:"century",base:B.TIME,prefixes:I.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:B.TIME,prefixes:I.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:B.FREQUENCY,prefixes:I.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:B.FREQUENCY,prefixes:I.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:B.ANGLE,prefixes:I.SHORT,value:1,offset:0},radian:{name:"radian",base:B.ANGLE,prefixes:I.LONG,value:1,offset:0},deg:{name:"deg",base:B.ANGLE,prefixes:I.SHORT,value:null,offset:0},degree:{name:"degree",base:B.ANGLE,prefixes:I.LONG,value:null,offset:0},grad:{name:"grad",base:B.ANGLE,prefixes:I.SHORT,value:null,offset:0},gradian:{name:"gradian",base:B.ANGLE,prefixes:I.LONG,value:null,offset:0},cycle:{name:"cycle",base:B.ANGLE,prefixes:I.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:B.ANGLE,prefixes:I.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:B.ANGLE,prefixes:I.NONE,value:null,offset:0},A:{name:"A",base:B.CURRENT,prefixes:I.SHORT,value:1,offset:0},ampere:{name:"ampere",base:B.CURRENT,prefixes:I.LONG,value:1,offset:0},K:{name:"K",base:B.TEMPERATURE,prefixes:I.NONE,value:1,offset:0},degC:{name:"degC",base:B.TEMPERATURE,prefixes:I.NONE,value:1,offset:273.15},degF:{name:"degF",base:B.TEMPERATURE,prefixes:I.NONE,value:1/1.8,offset:459.67},degR:{name:"degR",base:B.TEMPERATURE,prefixes:I.NONE,value:1/1.8,offset:0},kelvin:{name:"kelvin",base:B.TEMPERATURE,prefixes:I.NONE,value:1,offset:0},celsius:{name:"celsius",base:B.TEMPERATURE,prefixes:I.NONE,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:B.TEMPERATURE,prefixes:I.NONE,value:1/1.8,offset:459.67},rankine:{name:"rankine",base:B.TEMPERATURE,prefixes:I.NONE,value:1/1.8,offset:0},mol:{name:"mol",base:B.AMOUNT_OF_SUBSTANCE,prefixes:I.SHORT,value:1,offset:0},mole:{name:"mole",base:B.AMOUNT_OF_SUBSTANCE,prefixes:I.LONG,value:1,offset:0},cd:{name:"cd",base:B.LUMINOUS_INTENSITY,prefixes:I.SHORT,value:1,offset:0},candela:{name:"candela",base:B.LUMINOUS_INTENSITY,prefixes:I.LONG,value:1,offset:0},N:{name:"N",base:B.FORCE,prefixes:I.SHORT,value:1,offset:0},newton:{name:"newton",base:B.FORCE,prefixes:I.LONG,value:1,offset:0},dyn:{name:"dyn",base:B.FORCE,prefixes:I.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:B.FORCE,prefixes:I.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:B.FORCE,prefixes:I.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:B.FORCE,prefixes:I.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:B.FORCE,prefixes:I.LONG,value:4448.2216,offset:0},J:{name:"J",base:B.ENERGY,prefixes:I.SHORT,value:1,offset:0},joule:{name:"joule",base:B.ENERGY,prefixes:I.SHORT,value:1,offset:0},erg:{name:"erg",base:B.ENERGY,prefixes:I.NONE,value:1e-7,offset:0},Wh:{name:"Wh",base:B.ENERGY,prefixes:I.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:B.ENERGY,prefixes:I.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:B.ENERGY,prefixes:I.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:B.ENERGY,prefixes:I.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:B.POWER,prefixes:I.SHORT,value:1,offset:0},watt:{name:"watt",base:B.POWER,prefixes:I.LONG,value:1,offset:0},hp:{name:"hp",base:B.POWER,prefixes:I.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:B.POWER,prefixes:I.SHORT,value:n.I,offset:0},VA:{name:"VA",base:B.POWER,prefixes:I.SHORT,value:1,offset:0},Pa:{name:"Pa",base:B.PRESSURE,prefixes:I.SHORT,value:1,offset:0},psi:{name:"psi",base:B.PRESSURE,prefixes:I.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:B.PRESSURE,prefixes:I.NONE,value:101325,offset:0},bar:{name:"bar",base:B.PRESSURE,prefixes:I.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:B.PRESSURE,prefixes:I.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:B.PRESSURE,prefixes:I.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:B.PRESSURE,prefixes:I.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:B.PRESSURE,prefixes:I.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:B.ELECTRIC_CHARGE,prefixes:I.LONG,value:1,offset:0},C:{name:"C",base:B.ELECTRIC_CHARGE,prefixes:I.SHORT,value:1,offset:0},farad:{name:"farad",base:B.ELECTRIC_CAPACITANCE,prefixes:I.LONG,value:1,offset:0},F:{name:"F",base:B.ELECTRIC_CAPACITANCE,prefixes:I.SHORT,value:1,offset:0},volt:{name:"volt",base:B.ELECTRIC_POTENTIAL,prefixes:I.LONG,value:1,offset:0},V:{name:"V",base:B.ELECTRIC_POTENTIAL,prefixes:I.SHORT,value:1,offset:0},ohm:{name:"ohm",base:B.ELECTRIC_RESISTANCE,prefixes:I.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:B.ELECTRIC_INDUCTANCE,prefixes:I.LONG,value:1,offset:0},H:{name:"H",base:B.ELECTRIC_INDUCTANCE,prefixes:I.SHORT,value:1,offset:0},siemens:{name:"siemens",base:B.ELECTRIC_CONDUCTANCE,prefixes:I.LONG,value:1,offset:0},S:{name:"S",base:B.ELECTRIC_CONDUCTANCE,prefixes:I.SHORT,value:1,offset:0},weber:{name:"weber",base:B.MAGNETIC_FLUX,prefixes:I.LONG,value:1,offset:0},Wb:{name:"Wb",base:B.MAGNETIC_FLUX,prefixes:I.SHORT,value:1,offset:0},tesla:{name:"tesla",base:B.MAGNETIC_FLUX_DENSITY,prefixes:I.LONG,value:1,offset:0},T:{name:"T",base:B.MAGNETIC_FLUX_DENSITY,prefixes:I.SHORT,value:1,offset:0},b:{name:"b",base:B.BIT,prefixes:I.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:B.BIT,prefixes:I.BINARY_LONG,value:1,offset:0},B:{name:"B",base:B.BIT,prefixes:I.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:B.BIT,prefixes:I.BINARY_LONG,value:8,offset:0}},R={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole"};function P(e){if("BigNumber"===e.number){var t=vs(N);D.rad.value=new N(1),D.deg.value=t.div(180),D.grad.value=t.div(200),D.cycle.value=t.times(2),D.arcsec.value=t.div(648e3),D.arcmin.value=t.div(10800)}else D.rad.value=1,D.deg.value=Math.PI/180,D.grad.value=Math.PI/200,D.cycle.value=2*Math.PI,D.arcsec.value=Math.PI/648e3,D.arcmin.value=Math.PI/10800;D.radian.value=D.rad.value,D.degree.value=D.deg.value,D.gradian.value=D.grad.value}P(b),t&&t("config",function(e,t){e.number!==t.number&&P(e)});var F={si:{NONE:{unit:z,prefix:I.NONE[""]},LENGTH:{unit:D.m,prefix:I.SHORT[""]},MASS:{unit:D.g,prefix:I.SHORT.k},TIME:{unit:D.s,prefix:I.SHORT[""]},CURRENT:{unit:D.A,prefix:I.SHORT[""]},TEMPERATURE:{unit:D.K,prefix:I.SHORT[""]},LUMINOUS_INTENSITY:{unit:D.cd,prefix:I.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:D.mol,prefix:I.SHORT[""]},ANGLE:{unit:D.rad,prefix:I.SHORT[""]},BIT:{unit:D.bit,prefix:I.SHORT[""]},FORCE:{unit:D.N,prefix:I.SHORT[""]},ENERGY:{unit:D.J,prefix:I.SHORT[""]},POWER:{unit:D.W,prefix:I.SHORT[""]},PRESSURE:{unit:D.Pa,prefix:I.SHORT[""]},ELECTRIC_CHARGE:{unit:D.C,prefix:I.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:D.F,prefix:I.SHORT[""]},ELECTRIC_POTENTIAL:{unit:D.V,prefix:I.SHORT[""]},ELECTRIC_RESISTANCE:{unit:D.ohm,prefix:I.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:D.H,prefix:I.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:D.S,prefix:I.SHORT[""]},MAGNETIC_FLUX:{unit:D.Wb,prefix:I.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:D.T,prefix:I.SHORT[""]},FREQUENCY:{unit:D.Hz,prefix:I.SHORT[""]}}};F.cgs=JSON.parse(JSON.stringify(F.si)),F.cgs.LENGTH={unit:D.m,prefix:I.SHORT.c},F.cgs.MASS={unit:D.g,prefix:I.SHORT[""]},F.cgs.FORCE={unit:D.dyn,prefix:I.SHORT[""]},F.cgs.ENERGY={unit:D.erg,prefix:I.NONE[""]},F.us=JSON.parse(JSON.stringify(F.si)),F.us.LENGTH={unit:D.ft,prefix:I.NONE[""]},F.us.MASS={unit:D.lbm,prefix:I.NONE[""]},F.us.TEMPERATURE={unit:D.degF,prefix:I.NONE[""]},F.us.FORCE={unit:D.lbf,prefix:I.NONE[""]},F.us.ENERGY={unit:D.BTU,prefix:I.BTU[""]},F.us.POWER={unit:D.hp,prefix:I.NONE[""]},F.us.PRESSURE={unit:D.psi,prefix:I.NONE[""]},F.auto=JSON.parse(JSON.stringify(F.si));var U=F.auto;for(var L in M.setUnitSystem=function(e){if(!F.hasOwnProperty(e))throw new Error("Unit system "+e+" does not exist. Choices are: "+Object.keys(F).join(", "));U=F[e]},M.getUnitSystem=function(){for(var e in F)if(F[e]===U)return e},M.typeConverters={BigNumber:function(e){return new N(e+"")},Fraction:function(e){return new O(e)},Complex:function(e){return e},number:function(e){return e}},M._getNumberConverter=function(e){if(!M.typeConverters[e])throw new TypeError('Unsupported type "'+e+'"');return M.typeConverters[e]},D){var H=D[L];H.dimensions=H.base.dimensions}for(var $ in R)if(R.hasOwnProperty($)){var G=D[R[$]],Z={};for(var V in G)G.hasOwnProperty(V)&&(Z[V]=G[V]);Z.name=$,D[$]=Z}return M.createUnit=function(e,t){if("object"!==ws(e))throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(t&&t.override)for(var r in e)if(e.hasOwnProperty(r)&&M.deleteUnit(r),e[r].aliases)for(var n=0;n<e[r].aliases.length;n++)M.deleteUnit(e[r].aliases[n]);var i;for(var a in e)e.hasOwnProperty(a)&&(i=M.createUnitSingle(a,e[a]));return i},M.createUnitSingle=function(t,e,r){if(null==e&&(e={}),"string"!=typeof t)throw new TypeError("createUnitSingle expects first parameter to be of type 'string'");if(D.hasOwnProperty(t))throw new Error('Cannot create unit "'+t+'": a unit with that name already exists');!function(e){for(var t=0;t<e.length;t++){var r=e.charAt(t),n=function(e){return/^[a-zA-Z]$/.test(e)};if(0===t&&!n(r))throw new Error('Invalid unit name (must begin with alpha character): "'+e+'"');if(0<t&&!(n(r)||"0"<=(i=r)&&i<="9"))throw new Error('Invalid unit name (only alphanumeric characters are allowed): "'+e+'"')}var i}(t);var n,i,a=null,o=[],s=0;if(e&&"Unit"===e.type)a=e.clone();else if("string"==typeof e)""!==e&&(n=e);else{if("object"!==ws(e))throw new TypeError('Cannot create unit "'+t+'" from "'+e.toString()+'": expecting "string" or "Unit" or "Object"');n=e.definition,i=e.prefixes,s=e.offset,e.aliases&&(o=e.aliases.valueOf())}if(o)for(var u=0;u<o.length;u++)if(D.hasOwnProperty(o[u]))throw new Error('Cannot create alias "'+o[u]+'": a unit with that name already exists');if(n&&"string"==typeof n&&!a)try{a=M.parse(n,{allowNoUnits:!0})}catch(e){throw e.message='Could not create unit "'+t+'" from "'+n+'": '+e.message,e}else n&&"Unit"===n.type&&(a=n.clone());o=o||[],s=s||0,i=i&&i.toUpperCase&&I[i.toUpperCase()]||I.NONE;var c={};if(a){var f=!(c={name:t,value:a.value,dimensions:a.dimensions.slice(0),prefixes:i,offset:s});for(var l in B)if(B.hasOwnProperty(l)){for(var p=!0,m=0;m<q.length;m++)if(1e-12<Math.abs((c.dimensions[m]||0)-(B[l].dimensions[m]||0))){p=!1;break}if(p){f=!0,c.base=B[l];break}}if(!f){var h=t+"_STUFF",d={dimensions:a.dimensions.slice(0)};d.key=h,B[h]=d,U[h]={unit:c,prefix:I.NONE[""]},c.base=B[h]}}else{var y=t+"_STUFF";if(0<=q.indexOf(y))throw new Error('Cannot create new base unit "'+t+'": a base unit with that name already exists (and cannot be overridden)');for(var g in q.push(y),B)B.hasOwnProperty(g)&&(B[g].dimensions[q.length-1]=0);for(var v={dimensions:[]},b=0;b<q.length;b++)v.dimensions[b]=0;v.dimensions[q.length-1]=1,v.key=y,B[y]=v,c={name:t,value:1,dimensions:B[y].dimensions.slice(0),prefixes:i,offset:s,base:B[y]},U[y]={unit:c,prefix:I.NONE[""]}}M.UNITS[t]=c;for(var x=0;x<o.length;x++){var w=o[x],N={};for(var O in c)c.hasOwnProperty(O)&&(N[O]=c[O]);N.name=w,M.UNITS[w]=N}return new M(null,t)},M.deleteUnit=function(e){delete M.UNITS[e]},M.PREFIXES=I,M.BASE_DIMENSIONS=q,M.BASE_UNITS=B,M.UNIT_SYSTEMS=F,M.UNITS=D,M},{isClass:!0}),Es=["typed","Unit"],Ss=Object(s.a)("unit",Es,function(e){var t=e.typed,r=e.Unit,n=t("unit",{Unit:function(e){return e.clone()},string:function(e){return r.isValuelessUnit(e)?new r(null,e):r.parse(e,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string":function(e,t){return new r(e,t)},"Array | Matrix":function(e){return ae(e,n)}});return n}),js=["typed","SparseMatrix"],As=Object(s.a)("sparse",js,function(e){var t=e.typed,r=e.SparseMatrix;return t("sparse",{"":function(){return new r([])},string:function(e){return new r([],e)},"Array | Matrix":function(e){return new r(e)},"Array | Matrix, string":function(e,t){return new r(e,t)}})}),Cs="createUnit",Ts=["typed","Unit"],_s=Object(s.a)(Cs,Ts,function(e){var t=e.typed,i=e.Unit;return t(Cs,{"Object, Object":function(e,t){return i.createUnit(e,t)},Object:function(e){return i.createUnit(e,{})},"string, Unit | string | Object, Object":function(e,t,r){var n={};return n[e]=t,i.createUnit(n,r)},"string, Unit | string | Object":function(e,t){var r={};return r[e]=t,i.createUnit(r,{})},string:function(e){var t={};return t[e]={},i.createUnit(t,{})}})}),Is=["typed","config","Complex"],qs=Object(s.a)("acos",Is,function(e){var t=e.typed,r=e.config,n=e.Complex,i=t("acos",{number:function(e){return-1<=e&&e<=1||r.predictable?Math.acos(e):new n(e,0).acos()},Complex:function(e){return e.acos()},BigNumber:function(e){return e.acos()},"Array | Matrix":function(e){return ae(e,i)}});return i}),Bs="number";function ks(e){return Object(S.a)(e)}function zs(e){return Math.atan(1/e)}function Ds(e){return isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}function Rs(e){return Math.asin(1/e)}function Ps(e){var t=1/e;return Math.log(t+Math.sqrt(t*t+1))}function Fs(e){return Math.acos(1/e)}function Us(e){var t=1/e,r=Math.sqrt(t*t-1);return Math.log(r+t)}function Ls(e){return Object(S.b)(e)}function Hs(e){return Object(S.c)(e)}function $s(e){return 1/Math.tan(e)}function Gs(e){var t=Math.exp(2*e);return(t+1)/(t-1)}function Zs(e){return 1/Math.sin(e)}function Vs(e){return 0===e?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*Object(S.n)(e)}function Js(e){return 1/Math.cos(e)}function Ws(e){return 2/(Math.exp(e)+Math.exp(-e))}function Ys(e){return Object(S.o)(e)}Ys.signature=Ws.signature=Js.signature=Vs.signature=Zs.signature=Gs.signature=$s.signature=Hs.signature=Ls.signature=Us.signature=Fs.signature=Ps.signature=Rs.signature=Ds.signature=zs.signature=ks.signature=Bs;var Xs=["typed","config","Complex"],Qs=Object(s.a)("acosh",Xs,function(e){var t=e.typed,r=e.config,n=e.Complex,i=t("acosh",{number:function(e){return 1<=e||r.predictable?ks(e):e<=-1?new n(Math.log(Math.sqrt(e*e-1)-e),Math.PI):new n(e,0).acosh()},Complex:function(e){return e.acosh()},BigNumber:function(e){return e.acosh()},"Array | Matrix":function(e){return ae(e,i)}});return i}),Ks=["typed","BigNumber"],eu=Object(s.a)("acot",Ks,function(e){var t=e.typed,r=e.BigNumber,n=t("acot",{number:zs,Complex:function(e){return e.acot()},BigNumber:function(e){return new r(1).div(e).atan()},"Array | Matrix":function(e){return ae(e,n)}});return n}),tu=["typed","config","Complex","BigNumber"],ru=Object(s.a)("acoth",tu,function(e){var t=e.typed,r=e.config,n=e.Complex,i=e.BigNumber,a=t("acoth",{number:function(e){return 1<=e||e<=-1||r.predictable?Ds(e):new n(e,0).acoth()},Complex:function(e){return e.acoth()},BigNumber:function(e){return new i(1).div(e).atanh()},"Array | Matrix":function(e){return ae(e,a)}});return a}),nu=["typed","config","Complex","BigNumber"],iu=Object(s.a)("acsc",nu,function(e){var t=e.typed,r=e.config,n=e.Complex,i=e.BigNumber,a=t("acsc",{number:function(e){return e<=-1||1<=e||r.predictable?Rs(e):new n(e,0).acsc()},Complex:function(e){return e.acsc()},BigNumber:function(e){return new i(1).div(e).asin()},"Array | Matrix":function(e){return ae(e,a)}});return a}),au=["typed","BigNumber"],ou=Object(s.a)("acsch",au,function(e){var t=e.typed,r=e.BigNumber,n=t("acsch",{number:Ps,Complex:function(e){return e.acsch()},BigNumber:function(e){return new r(1).div(e).asinh()},"Array | Matrix":function(e){return ae(e,n)}});return n}),su=["typed","config","Complex","BigNumber"],uu=Object(s.a)("asec",su,function(e){var t=e.typed,r=e.config,n=e.Complex,i=e.BigNumber,a=t("asec",{number:function(e){return e<=-1||1<=e||r.predictable?Fs(e):new n(e,0).asec()},Complex:function(e){return e.asec()},BigNumber:function(e){return new i(1).div(e).acos()},"Array | Matrix":function(e){return ae(e,a)}});return a}),cu=["typed","config","Complex","BigNumber"],fu=Object(s.a)("asech",cu,function(e){var t=e.typed,n=e.config,i=e.Complex,r=e.BigNumber,a=t("asech",{number:function(e){if(e<=1&&-1<=e||n.predictable){var t=1/e;if(0<t||n.predictable)return Us(e);var r=Math.sqrt(t*t-1);return new i(Math.log(r-t),Math.PI)}return new i(e,0).asech()},Complex:function(e){return e.asech()},BigNumber:function(e){return new r(1).div(e).acosh()},"Array | Matrix":function(e){return ae(e,a)}});return a}),lu=["typed","config","Complex"],pu=Object(s.a)("asin",lu,function(e){var t=e.typed,r=e.config,n=e.Complex,i=t("asin",{number:function(e){return-1<=e&&e<=1||r.predictable?Math.asin(e):new n(e,0).asin()},Complex:function(e){return e.asin()},BigNumber:function(e){return e.asin()},"Array | Matrix":function(e){return ae(e,i,!0)}});return i}),mu=["typed"],hu=Object(s.a)("asinh",mu,function(e){var t=(0,e.typed)("asinh",{number:Ls,Complex:function(e){return e.asinh()},BigNumber:function(e){return e.asinh()},"Array | Matrix":function(e){return ae(e,t,!0)}});return t}),du=["typed"],yu=Object(s.a)("atan",du,function(e){var t=(0,e.typed)("atan",{number:function(e){return Math.atan(e)},Complex:function(e){return e.atan()},BigNumber:function(e){return e.atan()},"Array | Matrix":function(e){return ae(e,t,!0)}});return t}),gu=["typed","matrix","equalScalar","BigNumber","DenseMatrix"],vu=Object(s.a)("atan2",gu,function(e){var t=e.typed,r=e.matrix,n=e.equalScalar,i=e.BigNumber,a=e.DenseMatrix,o=nr({typed:t,equalScalar:n}),s=dr({typed:t}),u=Hr({typed:t,equalScalar:n}),c=sr({typed:t,equalScalar:n}),f=br({typed:t,DenseMatrix:a}),l=Xt({typed:t}),p=Kt({typed:t}),m=t("atan2",{"number, number":Math.atan2,"BigNumber, BigNumber":function(e,t){return i.atan2(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return u(e,t,m,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,m,!0)},"DenseMatrix, SparseMatrix":function(e,t){return s(e,t,m,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,m)},"Array, Array":function(e,t){return m(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return m(r(e),t)},"Matrix, Array":function(e,t){return m(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return c(e,t,m,!1)},"DenseMatrix, number | BigNumber":function(e,t){return p(e,t,m,!1)},"number | BigNumber, SparseMatrix":function(e,t){return f(t,e,m,!0)},"number | BigNumber, DenseMatrix":function(e,t){return p(t,e,m,!0)},"Array, number | BigNumber":function(e,t){return p(r(e),t,m,!1).valueOf()},"number | BigNumber, Array":function(e,t){return p(r(t),e,m,!0).valueOf()}});return m}),bu=["typed","config","Complex"],xu=Object(s.a)("atanh",bu,function(e){var t=e.typed,r=e.config,n=e.Complex,i=t("atanh",{number:function(e){return e<=1&&-1<=e||r.predictable?Hs(e):new n(e,0).atanh()},Complex:function(e){return e.atanh()},BigNumber:function(e){return e.atanh()},"Array | Matrix":function(e){return ae(e,i,!0)}});return i}),wu=["typed"],Nu=Object(s.a)("cos",wu,function(e){var t=(0,e.typed)("cos",{number:Math.cos,Complex:function(e){return e.cos()},BigNumber:function(e){return e.cos()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cos is no angle");return t(e.value)},"Array | Matrix":function(e){return ae(e,t)}});return t}),Ou=["typed"],Mu=Object(s.a)("cosh",Ou,function(e){var t=(0,e.typed)("cosh",{number:S.e,Complex:function(e){return e.cosh()},BigNumber:function(e){return e.cosh()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cosh is no angle");return t(e.value)},"Array | Matrix":function(e){return ae(e,t)}});return t}),Eu=["typed","BigNumber"],Su=Object(s.a)("cot",Eu,function(e){var t=e.typed,r=e.BigNumber,n=t("cot",{number:$s,Complex:function(e){return e.cot()},BigNumber:function(e){return new r(1).div(e.tan())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cot is no angle");return n(e.value)},"Array | Matrix":function(e){return ae(e,n)}});return n}),ju=["typed","BigNumber"],Au=Object(s.a)("coth",ju,function(e){var t=e.typed,r=e.BigNumber,n=t("coth",{number:Gs,Complex:function(e){return e.coth()},BigNumber:function(e){return new r(1).div(e.tanh())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function coth is no angle");return n(e.value)},"Array | Matrix":function(e){return ae(e,n)}});return n}),Cu=["typed","BigNumber"],Tu=Object(s.a)("csc",Cu,function(e){var t=e.typed,r=e.BigNumber,n=t("csc",{number:Zs,Complex:function(e){return e.csc()},BigNumber:function(e){return new r(1).div(e.sin())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function csc is no angle");return n(e.value)},"Array | Matrix":function(e){return ae(e,n)}});return n}),_u=["typed","BigNumber"],Iu=Object(s.a)("csch",_u,function(e){var t=e.typed,r=e.BigNumber,n=t("csch",{number:Vs,Complex:function(e){return e.csch()},BigNumber:function(e){return new r(1).div(e.sinh())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function csch is no angle");return n(e.value)},"Array | Matrix":function(e){return ae(e,n)}});return n}),qu=["typed","BigNumber"],Bu=Object(s.a)("sec",qu,function(e){var t=e.typed,r=e.BigNumber,n=t("sec",{number:Js,Complex:function(e){return e.sec()},BigNumber:function(e){return new r(1).div(e.cos())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sec is no angle");return n(e.value)},"Array | Matrix":function(e){return ae(e,n)}});return n}),ku=["typed","BigNumber"],zu=Object(s.a)("sech",ku,function(e){var t=e.typed,r=e.BigNumber,n=t("sech",{number:Ws,Complex:function(e){return e.sech()},BigNumber:function(e){return new r(1).div(e.cosh())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sech is no angle");return n(e.value)},"Array | Matrix":function(e){return ae(e,n)}});return n}),Du=["typed"],Ru=Object(s.a)("sin",Du,function(e){var t=(0,e.typed)("sin",{number:Math.sin,Complex:function(e){return e.sin()},BigNumber:function(e){return e.sin()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sin is no angle");return t(e.value)},"Array | Matrix":function(e){return ae(e,t,!0)}});return t}),Pu=["typed"],Fu=Object(s.a)("sinh",Pu,function(e){var t=(0,e.typed)("sinh",{number:Ys,Complex:function(e){return e.sinh()},BigNumber:function(e){return e.sinh()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sinh is no angle");return t(e.value)},"Array | Matrix":function(e){return ae(e,t,!0)}});return t}),Uu=["typed"],Lu=Object(s.a)("tan",Uu,function(e){var t=(0,e.typed)("tan",{number:Math.tan,Complex:function(e){return e.tan()},BigNumber:function(e){return e.tan()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function tan is no angle");return t(e.value)},"Array | Matrix":function(e){return ae(e,t,!0)}});return t}),Hu=["typed"],$u=Object(s.a)("tanh",Hu,function(e){var t=(0,e.typed)("tanh",{number:S.p,Complex:function(e){return e.tanh()},BigNumber:function(e){return e.tanh()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function tanh is no angle");return t(e.value)},"Array | Matrix":function(e){return ae(e,t,!0)}});return t}),Gu="setCartesian",Zu=["typed","size","subset","compareNatural","Index","DenseMatrix"],Vu=Object(s.a)(Gu,Zu,function(e){var t=e.typed,s=e.size,u=e.subset,c=e.compareNatural,f=e.Index,l=e.DenseMatrix;return t(Gu,{"Array | Matrix, Array | Matrix":function(e,t){var r=[];if(0!==u(s(e),new f(0))&&0!==u(s(t),new f(0))){var n=Object(I.e)(Array.isArray(e)?e:e.toArray()).sort(c),i=Object(I.e)(Array.isArray(t)?t:t.toArray()).sort(c);r=[];for(var a=0;a<n.length;a++)for(var o=0;o<i.length;o++)r.push([n[a],i[o]])}return Array.isArray(e)&&Array.isArray(t)?r:new l(r)}})}),Ju="setDifference",Wu=["typed","size","subset","compareNatural","Index","DenseMatrix"],Yu=Object(s.a)(Ju,Wu,function(e){var t=e.typed,u=e.size,c=e.subset,f=e.compareNatural,l=e.Index,p=e.DenseMatrix;return t(Ju,{"Array | Matrix, Array | Matrix":function(e,t){var r;if(0===c(u(e),new l(0)))r=[];else{if(0===c(u(t),new l(0)))return Object(I.e)(e.toArray());var n,i=Object(I.i)(Object(I.e)(Array.isArray(e)?e:e.toArray()).sort(f)),a=Object(I.i)(Object(I.e)(Array.isArray(t)?t:t.toArray()).sort(f));r=[];for(var o=0;o<i.length;o++){n=!1;for(var s=0;s<a.length;s++)if(0===f(i[o].value,a[s].value)&&i[o].identifier===a[s].identifier){n=!0;break}n||r.push(i[o])}}return Array.isArray(e)&&Array.isArray(t)?Object(I.g)(r):new p(Object(I.g)(r))}})}),Xu="setDistinct",Qu=["typed","size","subset","compareNatural","Index","DenseMatrix"],Ku=Object(s.a)(Xu,Qu,function(e){var t=e.typed,i=e.size,a=e.subset,o=e.compareNatural,s=e.Index,u=e.DenseMatrix;return t(Xu,{"Array | Matrix":function(e){var t;if(0===a(i(e),new s(0)))t=[];else{var r=Object(I.e)(Array.isArray(e)?e:e.toArray()).sort(o);(t=[]).push(r[0]);for(var n=1;n<r.length;n++)0!==o(r[n],r[n-1])&&t.push(r[n])}return Array.isArray(e)?t:new u(t)}})}),ec="setIntersect",tc=["typed","size","subset","compareNatural","Index","DenseMatrix"],rc=Object(s.a)(ec,tc,function(e){var t=e.typed,s=e.size,u=e.subset,c=e.compareNatural,f=e.Index,l=e.DenseMatrix;return t(ec,{"Array | Matrix, Array | Matrix":function(e,t){var r;if(0===u(s(e),new f(0))||0===u(s(t),new f(0)))r=[];else{var n=Object(I.i)(Object(I.e)(Array.isArray(e)?e:e.toArray()).sort(c)),i=Object(I.i)(Object(I.e)(Array.isArray(t)?t:t.toArray()).sort(c));r=[];for(var a=0;a<n.length;a++)for(var o=0;o<i.length;o++)if(0===c(n[a].value,i[o].value)&&n[a].identifier===i[o].identifier){r.push(n[a]);break}}return Array.isArray(e)&&Array.isArray(t)?Object(I.g)(r):new l(Object(I.g)(r))}})}),nc="setIsSubset",ic=["typed","size","subset","compareNatural","Index"],ac=Object(s.a)(nc,ic,function(e){var t=e.typed,s=e.size,u=e.subset,c=e.compareNatural,f=e.Index;return t(nc,{"Array | Matrix, Array | Matrix":function(e,t){if(0===u(s(e),new f(0)))return!0;if(0===u(s(t),new f(0)))return!1;for(var r,n=Object(I.i)(Object(I.e)(Array.isArray(e)?e:e.toArray()).sort(c)),i=Object(I.i)(Object(I.e)(Array.isArray(t)?t:t.toArray()).sort(c)),a=0;a<n.length;a++){r=!1;for(var o=0;o<i.length;o++)if(0===c(n[a].value,i[o].value)&&n[a].identifier===i[o].identifier){r=!0;break}if(!1===r)return!1}return!0}})}),oc="setMultiplicity",sc=["typed","size","subset","compareNatural","Index"],uc=Object(s.a)(oc,sc,function(e){var t=e.typed,a=e.size,o=e.subset,s=e.compareNatural,u=e.Index;return t(oc,{"number | BigNumber | Fraction | Complex, Array | Matrix":function(e,t){if(0===o(a(t),new u(0)))return 0;for(var r=Object(I.e)(Array.isArray(t)?t:t.toArray()),n=0,i=0;i<r.length;i++)0===s(r[i],e)&&n++;return n}})}),cc="setPowerset",fc=["typed","size","subset","compareNatural","Index"],lc=Object(s.a)(cc,fc,function(e){var t=e.typed,i=e.size,a=e.subset,o=e.compareNatural,s=e.Index;return t(cc,{"Array | Matrix":function(e){if(0===a(i(e),new s(0)))return[];for(var t=Object(I.e)(Array.isArray(e)?e:e.toArray()).sort(o),r=[],n=0;n.toString(2).length<=t.length;)r.push(u(t,n.toString(2).split("").reverse())),n++;return function(e){for(var t=[],r=e.length-1;0<r;r--)for(var n=0;n<r;n++)e[n].length>e[n+1].length&&(t=e[n],e[n]=e[n+1],e[n+1]=t);return e}(r)}});function u(e,t){for(var r=[],n=0;n<t.length;n++)"1"===t[n]&&r.push(e[n]);return r}}),pc="setSize",mc=["typed","compareNatural"],hc=Object(s.a)(pc,mc,function(e){var t=e.typed,a=e.compareNatural;return t(pc,{"Array | Matrix":function(e){return Array.isArray(e)?Object(I.e)(e).length:Object(I.e)(e.toArray()).length},"Array | Matrix, boolean":function(e,t){if(!1===t||0===e.length)return Array.isArray(e)?Object(I.e)(e).length:Object(I.e)(e.toArray()).length;for(var r=Object(I.e)(Array.isArray(e)?e:e.toArray()).sort(a),n=1,i=1;i<r.length;i++)0!==a(r[i],r[i-1])&&n++;return n}})}),dc="setSymDifference",yc=["typed","size","concat","subset","setDifference","Index"],gc=Object(s.a)(dc,yc,function(e){var t=e.typed,i=e.size,a=e.concat,o=e.subset,s=e.setDifference,u=e.Index;return t(dc,{"Array | Matrix, Array | Matrix":function(e,t){if(0===o(i(e),new u(0)))return Object(I.e)(t);if(0===o(i(t),new u(0)))return Object(I.e)(e);var r=Object(I.e)(e),n=Object(I.e)(t);return a(s(r,n),s(n,r))}})}),vc="setUnion",bc=["typed","size","concat","subset","setIntersect","setSymDifference","Index"],xc=Object(s.a)(vc,bc,function(e){var t=e.typed,i=e.size,a=e.concat,o=e.subset,s=e.setIntersect,u=e.setSymDifference,c=e.Index;return t(vc,{"Array | Matrix, Array | Matrix":function(e,t){if(0===o(i(e),new c(0)))return Object(I.e)(t);if(0===o(i(t),new c(0)))return Object(I.e)(e);var r=Object(I.e)(e),n=Object(I.e)(t);return a(u(r,n),s(r,n))}})}),wc=["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix"],Nc=Object(s.a)("add",wc,function(e){var t=e.typed,r=e.matrix,n=e.addScalar,i=e.equalScalar,a=e.DenseMatrix,o=(e.SparseMatrix,Gt({typed:t})),s=Vt({typed:t,equalScalar:i}),u=Wt({typed:t,DenseMatrix:a}),c=Xt({typed:t}),f=Kt({typed:t}),l=t("add",Object(W.e)({"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,n)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,n,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,n,!0)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,n)},"Array, Array":function(e,t){return l(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return l(r(e),t)},"Matrix, Array":function(e,t){return l(e,r(t))},"DenseMatrix, any":function(e,t){return f(e,t,n,!1)},"SparseMatrix, any":function(e,t){return u(e,t,n,!1)},"any, DenseMatrix":function(e,t){return f(t,e,n,!0)},"any, SparseMatrix":function(e,t){return u(t,e,n,!0)},"Array, any":function(e,t){return f(r(e),t,n,!1).valueOf()},"any, Array":function(e,t){return f(r(t),e,n,!0).valueOf()},"any, any":n,"any, any, ...any":function(e,t,r){for(var n=l(e,t),i=0;i<r.length;i++)n=l(n,r[i]);return n}},n.signatures));return l}),Oc=["typed","abs","addScalar","divideScalar","multiplyScalar","sqrt","smaller","isPositive"],Mc=Object(s.a)("hypot",Oc,function(e){var t=e.typed,a=e.abs,o=e.addScalar,s=e.divideScalar,u=e.multiplyScalar,c=e.sqrt,f=e.smaller,l=e.isPositive,r=t("hypot",{"... number | BigNumber":function(e){for(var t=0,r=0,n=0;n<e.length;n++){var i=a(e[n]);f(r,i)?(t=u(t,u(s(r,i),s(r,i))),t=o(t,1),r=i):t=o(t,l(i)?u(s(i,r),s(i,r)):i)}return u(r,c(t))},Array:function(e){return r.apply(r,Object(I.e)(e))},Matrix:function(e){return r.apply(r,Object(I.e)(e.toArray()))}});return r}),Ec=["typed","abs","add","pow","conj","sqrt","multiply","equalScalar","larger","smaller","matrix"],Sc=Object(s.a)("norm",Ec,function(e){var t=e.typed,l=e.abs,p=e.add,m=e.pow,h=e.conj,d=e.sqrt,y=e.multiply,g=e.equalScalar,v=e.larger,b=e.smaller,r=e.matrix,n=t("norm",{number:Math.abs,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},boolean:function(e){return Math.abs(e)},Array:function(e){return x(r(e),2)},Matrix:function(e){return x(e,2)},"number | Complex | BigNumber | boolean, number | BigNumber | string":function(e){return n(e)},"Array, number | BigNumber | string":function(e,t){return x(r(e),t)},"Matrix, number | BigNumber | string":function(e,t){return x(e,t)}});function x(e,t){var r=e.size();if(1===r.length){if(t===Number.POSITIVE_INFINITY||"inf"===t){var n=0;return e.forEach(function(e){var t=l(e);v(t,n)&&(n=t)},!0),n}var i;if(t===Number.NEGATIVE_INFINITY||"-inf"===t)return e.forEach(function(e){var t=l(e);i&&!b(t,i)||(i=t)},!0),i||0;if("fro"===t)return x(e,2);if("number"!=typeof t||isNaN(t))throw new Error("Unsupported parameter value");if(g(t,0))return Number.POSITIVE_INFINITY;var a=0;return e.forEach(function(e){a=p(m(l(e),t),a)},!0),m(a,1/t)}if(2===r.length){if(1===t){var o=[],s=0;return e.forEach(function(e,t){var r=t[1],n=p(o[r]||0,l(e));v(n,s)&&(s=n),o[r]=n},!0),s}if(t===Number.POSITIVE_INFINITY||"inf"===t){var u=[],c=0;return e.forEach(function(e,t){var r=t[0],n=p(u[r]||0,l(e));v(n,c)&&(c=n),u[r]=n},!0),c}if("fro"===t){var f=0;return e.forEach(function(e,t){f=p(f,y(e,h(e)))}),l(d(f))}if(2===t)throw new Error("Unsupported parameter value, missing implementation of matrix singular value decomposition");throw new Error("Unsupported parameter value")}}return n}),jc=["typed","add","multiply"],Ac=Object(s.a)("dot",jc,function(e){var t=e.typed,s=e.add,u=e.multiply;return t("dot",{"Matrix, Matrix":function(e,t){return r(e.toArray(),t.toArray())},"Matrix, Array":function(e,t){return r(e.toArray(),t)},"Array, Matrix":function(e,t){return r(e,t.toArray())},"Array, Array":r});function r(e,t){var r=Object(I.a)(e),n=Object(I.a)(t),i=r[0];if(1!==r.length||1!==n.length)throw new RangeError("Vector expected");if(r[0]!==n[0])throw new RangeError("Vectors must have equal length ("+r[0]+" != "+n[0]+")");if(0===i)throw new RangeError("Cannot calculate the dot product of empty vectors");for(var a=0,o=0;o<i;o++)a=s(a,u(e[o],t[o]));return a}}),Cc=["typed","matrix","add"],Tc=Object(s.a)("trace",Cc,function(e){var t=e.typed,r=e.matrix,m=e.add;return t("trace",{Array:function(e){return n(r(e))},SparseMatrix:function(e){var t=e._values,r=e._index,n=e._ptr,i=e._size,a=i[0],o=i[1];if(a!==o)throw new RangeError("Matrix must be square (size: "+Object(J.d)(i)+")");var s=0;if(0<t.length)for(var u=0;u<o;u++)for(var c=n[u],f=n[u+1],l=c;l<f;l++){var p=r[l];if(p===u){s=m(s,t[l]);break}if(u<p)break}return s},DenseMatrix:n,any:W.a});function n(e){var t=e._size,r=e._data;switch(t.length){case 1:if(1===t[0])return Object(W.a)(r[0]);throw new RangeError("Matrix must be square (size: "+Object(J.d)(t)+")");case 2:var n=t[0];if(n!==t[1])throw new RangeError("Matrix must be square (size: "+Object(J.d)(t)+")");for(var i=0,a=0;a<n;a++)i=m(i,r[a][a]);return i;default:throw new RangeError("Matrix must be two dimensional (size: "+Object(J.d)(t)+")")}}}),_c=["typed","Index"],Ic=Object(s.a)("index",_c,function(e){var t=e.typed,n=e.Index;return t("index",{"...number | string | BigNumber | Range | Array | Matrix":function(e){var t=e.map(function(e){return Object(ie.e)(e)?e.toNumber():Array.isArray(e)||Object(ie.v)(e)?e.map(function(e){return Object(ie.e)(e)?e.toNumber():e}):e}),r=new n;return n.apply(r,t),r}})}),qc={end:!0};function Bc(e){return(Bc="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)}var kc=["mathWithTransform"],zc=Object(s.a)("Node",kc,function(e){var a=e.mathWithTransform;function t(){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator")}return t.prototype.evaluate=function(e){return this.compile().evaluate(e)},t.prototype.eval=function(e){return Object(ve.a)("Method Node.eval is renamed to Node.evaluate. Please use the new method name."),this.evaluate(e)},t.prototype.type="Node",t.prototype.isNode=!0,t.prototype.comment="",t.prototype.compile=function(){var r=this._compile(a,{}),n={},i=null;function t(e){var t=e||{};return function(e){for(var t in e)if(Object(W.f)(e,t)&&t in qc)throw new Error('Scope contains an illegal symbol, "'+t+'" is a reserved keyword')}(t),r(t,n,i)}return{evaluate:t,eval:function(e){return Object(ve.a)("Method eval is renamed to evaluate. Please use the new method."),t(e)}}},t.prototype._compile=function(e,t){throw new Error("Method _compile should be implemented by type "+this.type)},t.prototype.forEach=function(e){throw new Error("Cannot run forEach on a Node interface")},t.prototype.map=function(e){throw new Error("Cannot run map on a Node interface")},t.prototype._ifNode=function(e){if(!Object(ie.w)(e))throw new TypeError("Callback function must return a Node");return e},t.prototype.traverse=function(e){e(this,null,null),function n(e,i){e.forEach(function(e,t,r){i(e,t,r),n(e,i)})}(this,e)},t.prototype.transform=function(a){return function e(t,r,n){var i=a(t,r,n);return i!==t?i:t.map(e)}(this,null,null)},t.prototype.filter=function(n){var i=[];return this.traverse(function(e,t,r){n(e,t,r)&&i.push(e)}),i},t.prototype.find=function(){throw new Error("Function Node.find is deprecated. Use Node.filter instead.")},t.prototype.match=function(){throw new Error("Function Node.match is deprecated. See functions Node.filter, Node.transform, Node.traverse.")},t.prototype.clone=function(){throw new Error("Cannot clone a Node interface")},t.prototype.cloneDeep=function(){return this.map(function(e){return e.cloneDeep()})},t.prototype.equals=function(e){return!!e&&Object(W.d)(this,e)},t.prototype.toString=function(e){var t;if(e&&"object"===Bc(e))switch(Bc(e.handler)){case"object":case"undefined":break;case"function":t=e.handler(this,e);break;default:throw new TypeError("Object or function expected as callback")}return void 0!==t?t:this._toString(e)},t.prototype.toJSON=function(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)},t.prototype.toHTML=function(e){var t;if(e&&"object"===Bc(e))switch(Bc(e.handler)){case"object":case"undefined":break;case"function":t=e.handler(this,e);break;default:throw new TypeError("Object or function expected as callback")}return void 0!==t?t:this.toHTML(e)},t.prototype._toString=function(){throw new Error("_toString not implemented for "+this.type)},t.prototype.toTex=function(e){var t;if(e&&"object"===Bc(e))switch(Bc(e.handler)){case"object":case"undefined":break;case"function":t=e.handler(this,e);break;default:throw new TypeError("Object or function expected as callback")}return void 0!==t?t:this._toTex(e)},t.prototype._toTex=function(e){throw new Error("_toTex not implemented for "+this.type)},t.prototype.getIdentifier=function(){return this.type},t.prototype.getContent=function(){return this},t},{isClass:!0,isNode:!0});function Dc(e){return e&&e.isIndexError?new R.a(e.index+1,e.min+1,void 0!==e.max?e.max+1:void 0):e}function Rc(e){return(Rc="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 Pc(e){var r=e.subset;return function(e,t){try{if(Array.isArray(e))return r(e,t);if(e&&"function"==typeof e.subset)return e.subset(t);if("string"==typeof e)return r(e,t);if("object"!==Rc(e))throw new TypeError("Cannot apply index: unsupported type of object");if(!t.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return Fi(e,t.getObjectProperty())}catch(e){throw Dc(e)}}}var Fc=["subset","Node"],Uc=Object(s.a)("AccessorNode",Fc,function(e){var t=e.subset,r=e.Node,s=Pc({subset:t});function n(e,t){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!Object(ie.w)(e))throw new TypeError('Node expected for parameter "object"');if(!Object(ie.u)(t))throw new TypeError('IndexNode expected for parameter "index"');this.object=e||null,this.index=t,Object.defineProperty(this,"name",{get:function(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}function i(e){return!(Object(ie.a)(e)||Object(ie.c)(e)||Object(ie.l)(e)||Object(ie.r)(e)||Object(ie.A)(e)||Object(ie.C)(e)||Object(ie.J)(e))}return(n.prototype=new r).type="AccessorNode",n.prototype.isAccessorNode=!0,n.prototype._compile=function(e,t){var a=this.object._compile(e,t),o=this.index._compile(e,t);if(this.index.isObjectProperty()){var n=this.index.getObjectProperty();return function(e,t,r){return Fi(a(e,t,r),n)}}return function(e,t,r){var n=a(e,t,r),i=o(e,t,n);return s(n,i)}},n.prototype.forEach=function(e){e(this.object,"object",this),e(this.index,"index",this)},n.prototype.map=function(e){return new n(this._ifNode(e(this.object,"object",this)),this._ifNode(e(this.index,"index",this)))},n.prototype.clone=function(){return new n(this.object,this.index)},n.prototype._toString=function(e){var t=this.object.toString(e);return i(this.object)&&(t="("+t+")"),t+this.index.toString(e)},n.prototype.toHTML=function(e){var t=this.object.toHTML(e);return i(this.object)&&(t='<span class="math-parenthesis math-round-parenthesis">(</span>'+t+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t+this.index.toHTML(e)},n.prototype._toTex=function(e){var t=this.object.toTex(e);return i(this.object)&&(t="\\left(' + object + '\\right)"),t+this.index.toTex(e)},n.prototype.toJSON=function(){return{mathjs:"AccessorNode",object:this.object,index:this.index}},n.fromJSON=function(e){return new n(e.object,e.index)},n},{isClass:!0,isNode:!0}),Lc=["Node"],Hc=Object(s.a)("ArrayNode",Lc,function(e){var t=e.Node;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(this.items=e||[],!Array.isArray(this.items)||!this.items.every(ie.w))throw new TypeError("Array containing Nodes expected");function t(){throw new Error("Property `ArrayNode.nodes` is deprecated, use `ArrayNode.items` instead")}Object.defineProperty(this,"nodes",{get:t,set:t})}return(n.prototype=new t).type="ArrayNode",n.prototype.isArrayNode=!0,n.prototype._compile=function(t,r){var e=Object(I.m)(this.items,function(e){return e._compile(t,r)});if("Array"===t.config.matrix)return function(t,r,n){return Object(I.m)(e,function(e){return e(t,r,n)})};var i=t.matrix;return function(t,r,n){return i(Object(I.m)(e,function(e){return e(t,r,n)}))}},n.prototype.forEach=function(e){for(var t=0;t<this.items.length;t++){e(this.items[t],"items["+t+"]",this)}},n.prototype.map=function(e){for(var t=[],r=0;r<this.items.length;r++)t[r]=this._ifNode(e(this.items[r],"items["+r+"]",this));return new n(t)},n.prototype.clone=function(){return new n(this.items.slice(0))},n.prototype._toString=function(t){return"["+this.items.map(function(e){return e.toString(t)}).join(", ")+"]"},n.prototype.toJSON=function(){return{mathjs:"ArrayNode",items:this.items}},n.fromJSON=function(e){return new n(e.items)},n.prototype.toHTML=function(t){return'<span class="math-parenthesis math-square-parenthesis">[</span>'+this.items.map(function(e){return e.toHTML(t)}).join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'},n.prototype._toTex=function(t){var r="\\begin{bmatrix}";return this.items.forEach(function(e){e.items?r+=e.items.map(function(e){return e.toTex(t)}).join("&"):r+=e.toTex(t),r+="\\\\"}),r+="\\end{bmatrix}"},n},{isClass:!0,isNode:!0});function $c(e){return($c="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)}var Gc=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{associativity:"left",associativeWith:[]}},{"OperatorNode:and":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{associativity:"left",associativeWith:[]},"OperatorNode:unequal":{associativity:"left",associativeWith:[]},"OperatorNode:smaller":{associativity:"left",associativeWith:[]},"OperatorNode:larger":{associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{associativity:"left",associativeWith:[]}},{"OperatorNode:to":{associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{associativity:"left",associativeWith:[]},"OperatorNode:mod":{associativity:"left",associativeWith:[]}},{"OperatorNode:unaryPlus":{associativity:"right"},"OperatorNode:unaryMinus":{associativity:"right"},"OperatorNode:bitNot":{associativity:"right"},"OperatorNode:not":{associativity:"right"}},{"OperatorNode:pow":{associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{associativity:"left"}},{"OperatorNode:transpose":{associativity:"left"}}];function Zc(e,t){var r=e;"keep"!==t&&(r=e.getContent());for(var n=r.getIdentifier(),i=0;i<Gc.length;i++)if(n in Gc[i])return i;return null}function Vc(e,t){var r=e;"keep"!==t&&(r=e.getContent());var n=r.getIdentifier(),i=Zc(r,t);if(null===i)return null;var a=Gc[i][n];if(a.hasOwnProperty("associativity")){if("left"===a.associativity)return"left";if("right"===a.associativity)return"right";throw Error("'"+n+"' has the invalid associativity '"+a.associativity+"'.")}return null}function Jc(e,t,r){var n="keep"!==r?e.getContent():e,i="keep"!==r?e.getContent():t,a=n.getIdentifier(),o=i.getIdentifier(),s=Zc(n,r);if(null===s)return null;var u=Gc[s][a];if(u.hasOwnProperty("associativeWith")&&u.associativeWith instanceof Array){for(var c=0;c<u.associativeWith.length;c++)if(u.associativeWith[c]===o)return!0;return!1}return null}var Wc=["subset","?matrix","Node"],Yc=Object(s.a)("AssignmentNode",Wc,function(e){var t=e.subset,r=e.matrix,n=e.Node,m=Pc({subset:t}),h=function(e){var n=e.subset,i=e.matrix;return function(e,t,r){try{if(Array.isArray(e))return i(e).subset(t,r).valueOf();if(e&&"function"==typeof e.subset)return e.subset(t,r);if("string"==typeof e)return n(e,t,r);if("object"!==$c(e))throw new TypeError("Cannot apply index: unsupported type of object");if(!t.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return Ui(e,t.getObjectProperty(),r),e}catch(e){throw Dc(e)}}}({subset:t,matrix:r});function i(e,t,r){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(this.object=e,this.index=r?t:null,this.value=r||t,!Object(ie.J)(e)&&!Object(ie.a)(e))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if(Object(ie.J)(e)&&"end"===e.name)throw new Error('Cannot assign to symbol "end"');if(this.index&&!Object(ie.u)(this.index))throw new TypeError('IndexNode expected as "index"');if(!Object(ie.w)(this.value))throw new TypeError('Node expected as "value"');Object.defineProperty(this,"name",{get:function(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}function a(e,t){var r=Zc(e,t=t||"keep"),n=Zc(e.value,t);return"all"===t||null!==n&&n<=r}return(i.prototype=new n).type="AssignmentNode",i.prototype.isAssignmentNode=!0,i.prototype._compile=function(e,t){var o=this.object._compile(e,t),u=this.index?this.index._compile(e,t):null,c=this.value._compile(e,t),s=this.object.name;if(this.index){if(this.index.isObjectProperty()){var a=this.index.getObjectProperty();return function(e,t,r){var n=o(e,t,r),i=c(e,t,r);return Ui(n,a,i)}}if(Object(ie.J)(this.object))return function(e,t,r){var n=o(e,t,r),i=c(e,t,r),a=u(e,t,n);return Ui(e,s,h(n,a,i)),i};var f=this.object.object._compile(e,t);if(this.object.index.isObjectProperty()){var l=this.object.index.getObjectProperty();return function(e,t,r){var n=f(e,t,r),i=Fi(n,l),a=u(e,t,i),o=c(e,t,r);return Ui(n,l,h(i,a,o)),o}}var p=this.object.index._compile(e,t);return function(e,t,r){var n=f(e,t,r),i=p(e,t,n),a=m(n,i),o=u(e,t,a),s=c(e,t,r);return h(n,i,h(a,o,s)),s}}if(!Object(ie.J)(this.object))throw new TypeError("SymbolNode expected as object");return function(e,t,r){return Ui(e,s,c(e,t,r))}},i.prototype.forEach=function(e){e(this.object,"object",this),this.index&&e(this.index,"index",this),e(this.value,"value",this)},i.prototype.map=function(e){return new i(this._ifNode(e(this.object,"object",this)),this.index?this._ifNode(e(this.index,"index",this)):null,this._ifNode(e(this.value,"value",this)))},i.prototype.clone=function(){return new i(this.object,this.index,this.value)},i.prototype._toString=function(e){var t=this.object.toString(e),r=this.index?this.index.toString(e):"",n=this.value.toString(e);return a(this,e&&e.parenthesis)&&(n="("+n+")"),t+r+" = "+n},i.prototype.toJSON=function(){return{mathjs:"AssignmentNode",object:this.object,index:this.index,value:this.value}},i.fromJSON=function(e){return new i(e.object,e.index,e.value)},i.prototype.toHTML=function(e){var t=this.object.toHTML(e),r=this.index?this.index.toHTML(e):"",n=this.value.toHTML(e);return a(this,e&&e.parenthesis)&&(n='<span class="math-paranthesis math-round-parenthesis">(</span>'+n+'<span class="math-paranthesis math-round-parenthesis">)</span>'),t+r+'<span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+n},i.prototype._toTex=function(e){var t=this.object.toTex(e),r=this.index?this.index.toTex(e):"",n=this.value.toTex(e);return a(this,e&&e.parenthesis)&&(n="\\left(".concat(n,"\\right)")),t+r+":="+n},i},{isClass:!0,isNode:!0}),Xc=["ResultSet","Node"],Qc=Object(s.a)("BlockNode",Xc,function(e){var o=e.ResultSet,t=e.Node;function a(e){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");if(!Array.isArray(e))throw new Error("Array expected");this.blocks=e.map(function(e){var t=e&&e.node,r=!e||void 0===e.visible||e.visible;if(!Object(ie.w)(t))throw new TypeError('Property "node" must be a Node');if("boolean"!=typeof r)throw new TypeError('Property "visible" must be a boolean');return{node:t,visible:r}})}return(a.prototype=new t).type="BlockNode",a.prototype.isBlockNode=!0,a.prototype._compile=function(t,r){var e=Object(I.m)(this.blocks,function(e){return{evaluate:e.node._compile(t,r),visible:e.visible}});return function(r,n,i){var a=[];return Object(I.f)(e,function(e){var t=e.evaluate(r,n,i);e.visible&&a.push(t)}),new o(a)}},a.prototype.forEach=function(e){for(var t=0;t<this.blocks.length;t++)e(this.blocks[t].node,"blocks["+t+"].node",this)},a.prototype.map=function(e){for(var t=[],r=0;r<this.blocks.length;r++){var n=this.blocks[r],i=this._ifNode(e(n.node,"blocks["+r+"].node",this));t[r]={node:i,visible:n.visible}}return new a(t)},a.prototype.clone=function(){return new a(this.blocks.map(function(e){return{node:e.node,visible:e.visible}}))},a.prototype._toString=function(t){return this.blocks.map(function(e){return e.node.toString(t)+(e.visible?"":";")}).join("\n")},a.prototype.toJSON=function(){return{mathjs:"BlockNode",blocks:this.blocks}},a.fromJSON=function(e){return new a(e.blocks)},a.prototype.toHTML=function(t){return this.blocks.map(function(e){return e.node.toHTML(t)+(e.visible?"":'<span class="math-separator">;</span>')}).join('<span class="math-separator"><br /></span>')},a.prototype._toTex=function(t){return this.blocks.map(function(e){return e.node.toTex(t)+(e.visible?"":";")}).join("\\;\\;\n")},a},{isClass:!0,isNode:!0}),Kc=["Node"],ef=Object(s.a)("ConditionalNode",Kc,function(e){var t=e.Node;function n(e,t,r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!Object(ie.w)(e))throw new TypeError("Parameter condition must be a Node");if(!Object(ie.w)(t))throw new TypeError("Parameter trueExpr must be a Node");if(!Object(ie.w)(r))throw new TypeError("Parameter falseExpr must be a Node");this.condition=e,this.trueExpr=t,this.falseExpr=r}return(n.prototype=new t).type="ConditionalNode",n.prototype.isConditionalNode=!0,n.prototype._compile=function(e,t){var n=this.condition._compile(e,t),i=this.trueExpr._compile(e,t),a=this.falseExpr._compile(e,t);return function(e,t,r){return function(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e)return!!e;if(e){if(Object(ie.e)(e))return!e.isZero();if(Object(ie.j)(e))return!(!e.re&&!e.im);if(Object(ie.L)(e))return!!e.value}if(null!=e)throw new TypeError('Unsupported type of condition "'+Object(ie.M)(e)+'"');return!1}(n(e,t,r))?i(e,t,r):a(e,t,r)}},n.prototype.forEach=function(e){e(this.condition,"condition",this),e(this.trueExpr,"trueExpr",this),e(this.falseExpr,"falseExpr",this)},n.prototype.map=function(e){return new n(this._ifNode(e(this.condition,"condition",this)),this._ifNode(e(this.trueExpr,"trueExpr",this)),this._ifNode(e(this.falseExpr,"falseExpr",this)))},n.prototype.clone=function(){return new n(this.condition,this.trueExpr,this.falseExpr)},n.prototype._toString=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=Zc(this,t),n=this.condition.toString(e),i=Zc(this.condition,t);("all"===t||"OperatorNode"===this.condition.type||null!==i&&i<=r)&&(n="("+n+")");var a=this.trueExpr.toString(e),o=Zc(this.trueExpr,t);("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=r)&&(a="("+a+")");var s=this.falseExpr.toString(e),u=Zc(this.falseExpr,t);return("all"===t||"OperatorNode"===this.falseExpr.type||null!==u&&u<=r)&&(s="("+s+")"),n+" ? "+a+" : "+s},n.prototype.toJSON=function(){return{mathjs:"ConditionalNode",condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}},n.fromJSON=function(e){return new n(e.condition,e.trueExpr,e.falseExpr)},n.prototype.toHTML=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=Zc(this,t),n=this.condition.toHTML(e),i=Zc(this.condition,t);("all"===t||"OperatorNode"===this.condition.type||null!==i&&i<=r)&&(n='<span class="math-parenthesis math-round-parenthesis">(</span>'+n+'<span class="math-parenthesis math-round-parenthesis">)</span>');var a=this.trueExpr.toHTML(e),o=Zc(this.trueExpr,t);("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=r)&&(a='<span class="math-parenthesis math-round-parenthesis">(</span>'+a+'<span class="math-parenthesis math-round-parenthesis">)</span>');var s=this.falseExpr.toHTML(e),u=Zc(this.falseExpr,t);return("all"===t||"OperatorNode"===this.falseExpr.type||null!==u&&u<=r)&&(s='<span class="math-parenthesis math-round-parenthesis">(</span>'+s+'<span class="math-parenthesis math-round-parenthesis">)</span>'),n+'<span class="math-operator math-conditional-operator">?</span>'+a+'<span class="math-operator math-conditional-operator">:</span>'+s},n.prototype._toTex=function(e){return"\\begin{cases} {"+this.trueExpr.toTex(e)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(e)+"}\\\\{"+this.falseExpr.toTex(e)+"}, &\\quad{\\text{otherwise}}\\end{cases}"},n},{isClass:!0,isNode:!0}),tf=r(17),rf=r.n(tf),nf={Alpha:"A",alpha:"\\alpha",Beta:"B",beta:"\\beta",Gamma:"\\Gamma",gamma:"\\gamma",Delta:"\\Delta",delta:"\\delta",Epsilon:"E",epsilon:"\\epsilon",varepsilon:"\\varepsilon",Zeta:"Z",zeta:"\\zeta",Eta:"H",eta:"\\eta",Theta:"\\Theta",theta:"\\theta",vartheta:"\\vartheta",Iota:"I",iota:"\\iota",Kappa:"K",kappa:"\\kappa",varkappa:"\\varkappa",Lambda:"\\Lambda",lambda:"\\lambda",Mu:"M",mu:"\\mu",Nu:"N",nu:"\\nu",Xi:"\\Xi",xi:"\\xi",Omicron:"O",omicron:"o",Pi:"\\Pi",pi:"\\pi",varpi:"\\varpi",Rho:"P",rho:"\\rho",varrho:"\\varrho",Sigma:"\\Sigma",sigma:"\\sigma",varsigma:"\\varsigma",Tau:"T",tau:"\\tau",Upsilon:"\\Upsilon",upsilon:"\\upsilon",Phi:"\\Phi",phi:"\\phi",varphi:"\\varphi",Chi:"X",chi:"\\chi",Psi:"\\Psi",psi:"\\psi",Omega:"\\Omega",omega:"\\omega",true:"\\mathrm{True}",false:"\\mathrm{False}",i:"i",inf:"\\infty",Inf:"\\infty",infinity:"\\infty",Infinity:"\\infty",oo:"\\infty",lim:"\\lim",undefined:"\\mathbf{?}"},af={transpose:"^\\top",ctranspose:"^H",factorial:"!",pow:"^",dotPow:".^\\wedge",unaryPlus:"+",unaryMinus:"-",bitNot:"\\~",not:"\\neg",multiply:"\\cdot",divide:"\\frac",dotMultiply:".\\cdot",dotDivide:".:",mod:"\\mod",add:"+",subtract:"-",to:"\\rightarrow",leftShift:"<<",rightArithShift:">>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},of={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(af.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(af.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(af.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(af.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(af.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(af.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(af.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(af.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(af.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(af.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(af.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(af.bitAnd,"${args[1]}\\right)")},bitNot:{1:af.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(af.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(af.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(af.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(af.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(af.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(af.and,"${args[1]}\\right)")},not:{1:af.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(af.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(af.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(af.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},sqrtm:{1:"{${args[0]}}".concat(af.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(af.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},factorial:{1:"\\left(${args[0]}\\right)".concat(af.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(af.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(af.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(af.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(af.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(af.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(af.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(af.to,"${args[1]}\\right)")},numeric:function(e,t){return e.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(nf.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},sf={deg:"^\\circ"};function uf(e){return rf()(e,{preserveFormatting:!0})}function cf(e,t){return(t=void 0!==t&&t)?sf.hasOwnProperty(e)?sf[e]:"\\mathrm{"+uf(e)+"}":nf.hasOwnProperty(e)?nf[e]:uf(e)}var ff=["Node"],lf=Object(s.a)("ConstantNode",ff,function(e){var t=e.Node;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(2===arguments.length)throw new SyntaxError("new ConstantNode(valueStr, valueType) is not supported anymore since math v4.0.0. Use new ConstantNode(value) instead, where value is a non-stringified value.");this.value=e}return(r.prototype=new t).type="ConstantNode",r.prototype.isConstantNode=!0,r.prototype._compile=function(e,t){var r=this.value;return function(){return r}},r.prototype.forEach=function(e){},r.prototype.map=function(e){return this.clone()},r.prototype.clone=function(){return new r(this.value)},r.prototype._toString=function(e){return Object(J.d)(this.value,e)},r.prototype.toHTML=function(e){var t=this._toString(e);switch(Object(ie.M)(this.value)){case"number":case"BigNumber":case"Fraction":return'<span class="math-number">'+t+"</span>";case"string":return'<span class="math-string">'+t+"</span>";case"boolean":return'<span class="math-boolean">'+t+"</span>";case"null":return'<span class="math-null-symbol">'+t+"</span>";case"undefined":return'<span class="math-undefined">'+t+"</span>";default:return'<span class="math-symbol">'+t+"</span>"}},r.prototype.toJSON=function(){return{mathjs:"ConstantNode",value:this.value}},r.fromJSON=function(e){return new r(e.value)},r.prototype._toTex=function(e){var t=this._toString(e);switch(Object(ie.M)(this.value)){case"string":return"\\mathtt{"+uf(t)+"}";case"number":case"BigNumber":var r=t.toLowerCase().indexOf("e");return-1!==r?t.substring(0,r)+"\\cdot10^{"+t.substring(r+1)+"}":t;case"Fraction":return this.value.toLatex();default:return t}},r},{isClass:!0,isNode:!0}),pf=["typed","Node"],mf=Object(s.a)("FunctionAssignmentNode",pf,function(e){var f=e.typed,t=e.Node;function n(e,t,r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if("string"!=typeof e)throw new TypeError('String expected for parameter "name"');if(!Array.isArray(t))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!Object(ie.w)(r))throw new TypeError('Node expected for parameter "expr"');if(e in qc)throw new Error('Illegal function name, "'+e+'" is a reserved keyword');this.name=e,this.params=t.map(function(e){return e&&e.name||e}),this.types=t.map(function(e){return e&&e.type||"any"}),this.expr=r}function a(e,t){var r=Zc(e,t),n=Zc(e.expr,t);return"all"===t||null!==n&&n<=r}return(n.prototype=new t).type="FunctionAssignmentNode",n.prototype.isFunctionAssignmentNode=!0,n.prototype._compile=function(e,t){var r=Object.create(t);Object(I.f)(this.params,function(e){r[e]=!0});var a=this.expr._compile(e,r),o=this.name,s=this.params,u=Object(I.k)(this.types,","),c=o+"("+Object(I.k)(this.params,", ")+")";return function(r,n,i){var e={};e[u]=function(){for(var e=Object.create(n),t=0;t<s.length;t++)e[s[t]]=arguments[t];return a(r,e,i)};var t=f(o,e);return t.syntax=c,Ui(r,o,t),t}},n.prototype.forEach=function(e){e(this.expr,"expr",this)},n.prototype.map=function(e){var t=this._ifNode(e(this.expr,"expr",this));return new n(this.name,this.params.slice(0),t)},n.prototype.clone=function(){return new n(this.name,this.params.slice(0),this.expr)},n.prototype._toString=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=this.expr.toString(e);return a(this,t)&&(r="("+r+")"),this.name+"("+this.params.join(", ")+") = "+r},n.prototype.toJSON=function(){var r=this.types;return{mathjs:"FunctionAssignmentNode",name:this.name,params:this.params.map(function(e,t){return{name:e,type:r[t]}}),expr:this.expr}},n.fromJSON=function(e){return new n(e.name,e.params,e.expr)},n.prototype.toHTML=function(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",r=[],n=0;n<this.params.length;n++)r.push('<span class="math-symbol math-parameter">'+Object(J.c)(this.params[n])+"</span>");var i=this.expr.toHTML(e);return a(this,t)&&(i='<span class="math-parenthesis math-round-parenthesis">(</span>'+i+'<span class="math-parenthesis math-round-parenthesis">)</span>'),'<span class="math-function">'+Object(J.c)(this.name)+'</span><span class="math-parenthesis math-round-parenthesis">(</span>'+r.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-round-parenthesis">)</span><span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+i},n.prototype._toTex=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=this.expr.toTex(e);return a(this,t)&&(r="\\left(".concat(r,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(cf).join(",")+"\\right):="+r},n},{isClass:!0,isNode:!0}),hf=["Index"],df=Object(s.a)("index",hf,function(e){var a=e.Index;return function(){for(var e=[],t=0,r=arguments.length;t<r;t++){var n=arguments[t];if(Object(ie.D)(n))n.start--,n.end-=0<n.step?0:2;else if(n&&!0===n.isSet)n=n.map(function(e){return e-1});else if(Object(ie.b)(n)||Object(ie.v)(n))n=n.map(function(e){return e-1});else if(Object(ie.y)(n))n--;else if(Object(ie.e)(n))n=n.toNumber()-1;else if("string"!=typeof n)throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");e[t]=n}var i=new a;return a.apply(i,e),i}},{isTransformFunction:!0});function yf(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var gf=["Range","Node","Index","size"],vf=Object(s.a)("IndexNode",gf,function(e){var n=e.Range,t=e.Node,r=e.Index,h=e.size,a=df({Index:r});function i(e,t){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(this.dimensions=e,this.dotNotation=t||!1,!Array.isArray(e)||!e.every(ie.w))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties");function r(){throw new Error("Property `IndexNode.object` is deprecated, use `IndexNode.fn` instead")}Object.defineProperty(this,"object",{get:r,set:r})}function d(e,t,r){return new n(Object(ie.e)(e)?e.toNumber():e,Object(ie.e)(t)?t.toNumber():t,Object(ie.e)(r)?r.toNumber():r)}return(i.prototype=new t).type="IndexNode",i.prototype.isIndexNode=!0,i.prototype._compile=function(p,m){var i=Object(I.m)(this.dimensions,function(e,a){if(Object(ie.E)(e)){if(e.needsEnd()){var t=Object.create(m);t.end=!0;var o=e.start._compile(p,t),s=e.end._compile(p,t),u=e.step?e.step._compile(p,t):function(){return 1};return function(e,t,r){var n=h(r).valueOf(),i=Object.create(t);return i.end=n[a],d(o(e,i,r),s(e,i,r),u(e,i,r))}}var n=e.start._compile(p,m),i=e.end._compile(p,m),c=e.step?e.step._compile(p,m):function(){return 1};return function(e,t,r){return d(n(e,t,r),i(e,t,r),c(e,t,r))}}if(Object(ie.J)(e)&&"end"===e.name){var r=Object.create(m);r.end=!0;var f=e._compile(p,r);return function(e,t,r){var n=h(r).valueOf(),i=Object.create(t);return i.end=n[a],f(e,i,r)}}var l=e._compile(p,m);return function(e,t,r){return l(e,t,r)}});return function(t,r,n){var e=Object(I.m)(i,function(e){return e(t,r,n)});return a.apply(void 0,yf(e))}},i.prototype.forEach=function(e){for(var t=0;t<this.dimensions.length;t++)e(this.dimensions[t],"dimensions["+t+"]",this)},i.prototype.map=function(e){for(var t=[],r=0;r<this.dimensions.length;r++)t[r]=this._ifNode(e(this.dimensions[r],"dimensions["+r+"]",this));return new i(t)},i.prototype.clone=function(){return new i(this.dimensions.slice(0))},i.prototype.isObjectProperty=function(){return 1===this.dimensions.length&&Object(ie.l)(this.dimensions[0])&&"string"==typeof this.dimensions[0].value},i.prototype.getObjectProperty=function(){return this.isObjectProperty()?this.dimensions[0].value:null},i.prototype._toString=function(e){return this.dotNotation?"."+this.getObjectProperty():"["+this.dimensions.join(", ")+"]"},i.prototype.toJSON=function(){return{mathjs:"IndexNode",dimensions:this.dimensions,dotNotation:this.dotNotation}},i.fromJSON=function(e){return new i(e.dimensions,e.dotNotation)},i.prototype.toHTML=function(e){for(var t=[],r=0;r<this.dimensions.length;r++)t[r]=this.dimensions[r].toHTML();return this.dotNotation?'<span class="math-operator math-accessor-operator">.</span><span class="math-symbol math-property">'+Object(J.c)(this.getObjectProperty())+"</span>":'<span class="math-parenthesis math-square-parenthesis">[</span>'+t.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'},i.prototype._toTex=function(t){var e=this.dimensions.map(function(e){return e.toTex(t)});return this.dotNotation?"."+this.getObjectProperty():"_{"+e.join(",")+"}"},i},{isClass:!0,isNode:!0});function bf(e){return(bf="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)}var xf=["Node"],wf=Object(s.a)("ObjectNode",xf,function(e){var t=e.Node;function n(t){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(this.properties=t||{},t&&("object"!==bf(t)||!Object.keys(t).every(function(e){return Object(ie.w)(t[e])})))throw new TypeError("Object containing Nodes expected")}return(n.prototype=new t).type="ObjectNode",n.prototype.isObjectNode=!0,n.prototype._compile=function(e,t){var a={};for(var r in this.properties)if(Object(W.f)(this.properties,r)){var n=Object(J.e)(r),i=JSON.parse(n);if(!Li(this.properties,i))throw new Error('No access to property "'+i+'"');a[i]=this.properties[r]._compile(e,t)}return function(e,t,r){var n={};for(var i in a)Object(W.f)(a,i)&&(n[i]=a[i](e,t,r));return n}},n.prototype.forEach=function(e){for(var t in this.properties)this.properties.hasOwnProperty(t)&&e(this.properties[t],"properties["+Object(J.e)(t)+"]",this)},n.prototype.map=function(e){var t={};for(var r in this.properties)this.properties.hasOwnProperty(r)&&(t[r]=this._ifNode(e(this.properties[r],"properties["+Object(J.e)(r)+"]",this)));return new n(t)},n.prototype.clone=function(){var e={};for(var t in this.properties)this.properties.hasOwnProperty(t)&&(e[t]=this.properties[t]);return new n(e)},n.prototype._toString=function(e){var t=[];for(var r in this.properties)this.properties.hasOwnProperty(r)&&t.push(Object(J.e)(r)+": "+this.properties[r].toString(e));return"{"+t.join(", ")+"}"},n.prototype.toJSON=function(){return{mathjs:"ObjectNode",properties:this.properties}},n.fromJSON=function(e){return new n(e.properties)},n.prototype.toHTML=function(e){var t=[];for(var r in this.properties)this.properties.hasOwnProperty(r)&&t.push('<span class="math-symbol math-property">'+Object(J.c)(r)+'</span><span class="math-operator math-assignment-operator math-property-assignment-operator math-binary-operator">:</span>'+this.properties[r].toHTML(e));return'<span class="math-parenthesis math-curly-parenthesis">{</span>'+t.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-curly-parenthesis">}</span>'},n.prototype._toTex=function(e){var t=[];for(var r in this.properties)this.properties.hasOwnProperty(r)&&t.push("\\mathbf{"+r+":} & "+this.properties[r].toTex(e)+"\\\\");return"\\left\\{\\begin{array}{ll}".concat(t.join("\n"),"\\end{array}\\right\\}")},n},{isClass:!0,isNode:!0}),Nf=["Node"],Of=Object(s.a)("OperatorNode",Nf,function(e){var t=e.Node;function i(e,t,r,n){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if("string"!=typeof e)throw new TypeError('string expected for parameter "op"');if("string"!=typeof t)throw new TypeError('string expected for parameter "fn"');if(!Array.isArray(r)||!r.every(ie.w))throw new TypeError('Array containing Nodes expected for parameter "args"');this.implicit=!0===n,this.op=e,this.fn=t,this.args=r||[]}function m(i,a,e,t,r){var n,o=Zc(i,a),s=Vc(i,a);if("all"===a||2<t.length&&"OperatorNode:add"!==i.getIdentifier()&&"OperatorNode:multiply"!==i.getIdentifier())return t.map(function(e){switch(e.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}});switch(t.length){case 0:n=[];break;case 1:var u=Zc(t[0],a);if(r&&null!==u){var c,f;if(f="keep"===a?(c=t[0].getIdentifier(),i.getIdentifier()):(c=t[0].getContent().getIdentifier(),i.getContent().getIdentifier()),!1===Gc[o][f].latexLeftParens){n=[!1];break}if(!1===Gc[u][c].latexParens){n=[!1];break}}if(null===u){n=[!1];break}if(u<=o){n=[!0];break}n=[!1];break;case 2:var l,p,m=Zc(t[0],a),h=Jc(i,t[0],a);l=null!==m&&(m===o&&"right"===s&&!h||m<o);var d,y,g,v=Zc(t[1],a),b=Jc(i,t[1],a);if(p=null!==v&&(v===o&&"left"===s&&!b||v<o),r)g="keep"===a?(d=i.getIdentifier(),y=i.args[0].getIdentifier(),i.args[1].getIdentifier()):(d=i.getContent().getIdentifier(),y=i.args[0].getContent().getIdentifier(),i.args[1].getContent().getIdentifier()),null!==m&&(!1===Gc[o][d].latexLeftParens&&(l=!1),!1===Gc[m][y].latexParens&&(l=!1)),null!==v&&(!1===Gc[o][d].latexRightParens&&(p=!1),!1===Gc[v][g].latexParens&&(p=!1));n=[l,p];break;default:"OperatorNode:add"!==i.getIdentifier()&&"OperatorNode:multiply"!==i.getIdentifier()||(n=t.map(function(e){var t=Zc(e,a),r=Jc(i,e,a),n=Vc(e,a);return null!==t&&(o===t&&s===n&&!r||t<o)}))}return 2<=t.length&&"OperatorNode:multiply"===i.getIdentifier()&&i.implicit&&"auto"===a&&"hide"===e&&(n=t.map(function(e,t){var r="ParenthesisNode"===e.getIdentifier();return!(!n[t]&&!r)})),n}return(i.prototype=new t).type="OperatorNode",i.prototype.isOperatorNode=!0,i.prototype._compile=function(t,r){if("string"!=typeof this.fn||!Hi(t,this.fn))throw t[this.fn]?new Error('No access to function "'+this.fn+'"'):new Error("Function "+this.fn+' missing in provided namespace "math"');var i=Fi(t,this.fn),e=Object(I.m)(this.args,function(e){return e._compile(t,r)});if(1===e.length){var n=e[0];return function(e,t,r){return i(n(e,t,r))}}if(2!==e.length)return function(t,r,n){return i.apply(null,Object(I.m)(e,function(e){return e(t,r,n)}))};var a=e[0],o=e[1];return function(e,t,r){return i(a(e,t,r),o(e,t,r))}},i.prototype.forEach=function(e){for(var t=0;t<this.args.length;t++)e(this.args[t],"args["+t+"]",this)},i.prototype.map=function(e){for(var t=[],r=0;r<this.args.length;r++)t[r]=this._ifNode(e(this.args[r],"args["+r+"]",this));return new i(this.op,this.fn,t,this.implicit)},i.prototype.clone=function(){return new i(this.op,this.fn,this.args.slice(0),this.implicit)},i.prototype.isUnary=function(){return 1===this.args.length},i.prototype.isBinary=function(){return 2===this.args.length},i.prototype._toString=function(r){var e=r&&r.parenthesis?r.parenthesis:"keep",t=r&&r.implicit?r.implicit:"hide",n=this.args,i=m(this,e,t,n,!1);if(1===n.length){var a=Vc(this,e),o=n[0].toString(r);i[0]&&(o="("+o+")");var s=/[a-zA-Z]+/.test(this.op);return"right"===a?this.op+(s?" ":"")+o:"left"===a?o+(s?" ":"")+this.op:o+this.op}if(2===n.length){var u=n[0].toString(r),c=n[1].toString(r);return i[0]&&(u="("+u+")"),i[1]&&(c="("+c+")"),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===t?u+" "+c:u+" "+this.op+" "+c}if(2<n.length&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var f=n.map(function(e,t){return e=e.toString(r),i[t]&&(e="("+e+")"),e});return this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===t?f.join(" "):f.join(" "+this.op+" ")}return this.fn+"("+this.args.join(", ")+")"},i.prototype.toJSON=function(){return{mathjs:"OperatorNode",op:this.op,fn:this.fn,args:this.args,implicit:this.implicit}},i.fromJSON=function(e){return new i(e.op,e.fn,e.args,e.implicit)},i.prototype.toHTML=function(r){var e=r&&r.parenthesis?r.parenthesis:"keep",t=r&&r.implicit?r.implicit:"hide",n=this.args,i=m(this,e,t,n,!1);if(1===n.length){var a=Vc(this,e),o=n[0].toHTML(r);return i[0]&&(o='<span class="math-parenthesis math-round-parenthesis">(</span>'+o+'<span class="math-parenthesis math-round-parenthesis">)</span>'),"right"===a?'<span class="math-operator math-unary-operator math-lefthand-unary-operator">'+Object(J.c)(this.op)+"</span>"+o:o+'<span class="math-operator math-unary-operator math-righthand-unary-operator">'+Object(J.c)(this.op)+"</span>"}if(2===n.length){var s=n[0].toHTML(r),u=n[1].toHTML(r);return i[0]&&(s='<span class="math-parenthesis math-round-parenthesis">(</span>'+s+'<span class="math-parenthesis math-round-parenthesis">)</span>'),i[1]&&(u='<span class="math-parenthesis math-round-parenthesis">(</span>'+u+'<span class="math-parenthesis math-round-parenthesis">)</span>'),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===t?s+'<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'+u:s+'<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Object(J.c)(this.op)+"</span>"+u}var c=n.map(function(e,t){return e=e.toHTML(r),i[t]&&(e='<span class="math-parenthesis math-round-parenthesis">(</span>'+e+'<span class="math-parenthesis math-round-parenthesis">)</span>'),e});return 2<n.length&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())?this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===t?c.join('<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'):c.join('<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Object(J.c)(this.op)+"</span>"):'<span class="math-function">'+Object(J.c)(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+c.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'},i.prototype._toTex=function(r){var e=r&&r.parenthesis?r.parenthesis:"keep",t=r&&r.implicit?r.implicit:"hide",n=this.args,i=m(this,e,t,n,!0),a=af[this.fn];if(a=void 0===a?this.op:a,1===n.length){var o=Vc(this,e),s=n[0].toTex(r);return i[0]&&(s="\\left(".concat(s,"\\right)")),"right"===o?a+s:s+a}if(2===n.length){var u=n[0],c=u.toTex(r);i[0]&&(c="\\left(".concat(c,"\\right)"));var f,l=n[1].toTex(r);switch(i[1]&&(l="\\left(".concat(l,"\\right)")),f="keep"===e?u.getIdentifier():u.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return a+"{"+c+"}{"+l+"}";case"OperatorNode:pow":switch(c="{"+c+"}",l="{"+l+"}",f){case"ConditionalNode":case"OperatorNode:divide":c="\\left(".concat(c,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&"hide"===t)return c+"~"+l}return c+a+l}if(2<n.length&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var p=n.map(function(e,t){return e=e.toTex(r),i[t]&&(e="\\left(".concat(e,"\\right)")),e});return"OperatorNode:multiply"===this.getIdentifier()&&this.implicit?p.join("~"):p.join(a)}return"\\mathrm{"+this.fn+"}\\left("+n.map(function(e){return e.toTex(r)}).join(",")+"\\right)"},i.prototype.getIdentifier=function(){return this.type+":"+this.fn},i},{isClass:!0,isNode:!0}),Mf=["Node"],Ef=Object(s.a)("ParenthesisNode",Mf,function(e){var t=e.Node;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!Object(ie.w)(e))throw new TypeError('Node expected for parameter "content"');this.content=e}return(r.prototype=new t).type="ParenthesisNode",r.prototype.isParenthesisNode=!0,r.prototype._compile=function(e,t){return this.content._compile(e,t)},r.prototype.getContent=function(){return this.content.getContent()},r.prototype.forEach=function(e){e(this.content,"content",this)},r.prototype.map=function(e){return new r(e(this.content,"content",this))},r.prototype.clone=function(){return new r(this.content)},r.prototype._toString=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"("+this.content.toString(e)+")":this.content.toString(e)},r.prototype.toJSON=function(){return{mathjs:"ParenthesisNode",content:this.content}},r.fromJSON=function(e){return new r(e.content)},r.prototype.toHTML=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?'<span class="math-parenthesis math-round-parenthesis">(</span>'+this.content.toHTML(e)+'<span class="math-parenthesis math-round-parenthesis">)</span>':this.content.toHTML(e)},r.prototype._toTex=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"\\left(".concat(this.content.toTex(e),"\\right)"):this.content.toTex(e)},r},{isClass:!0,isNode:!0}),Sf=["Node"],jf=Object(s.a)("RangeNode",Sf,function(e){var t=e.Node;function n(e,t,r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!Object(ie.w)(e))throw new TypeError("Node expected");if(!Object(ie.w)(t))throw new TypeError("Node expected");if(r&&!Object(ie.w)(r))throw new TypeError("Node expected");if(3<arguments.length)throw new Error("Too many arguments");this.start=e,this.end=t,this.step=r||null}function o(e,t){var r=Zc(e,t),n={},i=Zc(e.start,t);if(n.start=null!==i&&i<=r||"all"===t,e.step){var a=Zc(e.step,t);n.step=null!==a&&a<=r||"all"===t}var o=Zc(e.end,t);return n.end=null!==o&&o<=r||"all"===t,n}return(n.prototype=new t).type="RangeNode",n.prototype.isRangeNode=!0,n.prototype.needsEnd=function(){return 0<this.filter(function(e){return Object(ie.J)(e)&&"end"===e.name}).length},n.prototype._compile=function(e,t){var n=e.range,i=this.start._compile(e,t),a=this.end._compile(e,t);if(this.step){var o=this.step._compile(e,t);return function(e,t,r){return n(i(e,t,r),a(e,t,r),o(e,t,r))}}return function(e,t,r){return n(i(e,t,r),a(e,t,r))}},n.prototype.forEach=function(e){e(this.start,"start",this),e(this.end,"end",this),this.step&&e(this.step,"step",this)},n.prototype.map=function(e){return new n(this._ifNode(e(this.start,"start",this)),this._ifNode(e(this.end,"end",this)),this.step&&this._ifNode(e(this.step,"step",this)))},n.prototype.clone=function(){return new n(this.start,this.end,this.step&&this.step)},n.prototype._toString=function(e){var t,r=o(this,e&&e.parenthesis?e.parenthesis:"keep"),n=this.start.toString(e);if(r.start&&(n="("+n+")"),t=n,this.step){var i=this.step.toString(e);r.step&&(i="("+i+")"),t+=":"+i}var a=this.end.toString(e);return r.end&&(a="("+a+")"),t+=":"+a},n.prototype.toJSON=function(){return{mathjs:"RangeNode",start:this.start,end:this.end,step:this.step}},n.fromJSON=function(e){return new n(e.start,e.end,e.step)},n.prototype.toHTML=function(e){var t,r=o(this,e&&e.parenthesis?e.parenthesis:"keep"),n=this.start.toHTML(e);if(r.start&&(n='<span class="math-parenthesis math-round-parenthesis">(</span>'+n+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t=n,this.step){var i=this.step.toHTML(e);r.step&&(i='<span class="math-parenthesis math-round-parenthesis">(</span>'+i+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t+='<span class="math-operator math-range-operator">:</span>'+i}var a=this.end.toHTML(e);return r.end&&(a='<span class="math-parenthesis math-round-parenthesis">(</span>'+a+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t+='<span class="math-operator math-range-operator">:</span>'+a},n.prototype._toTex=function(e){var t=o(this,e&&e.parenthesis?e.parenthesis:"keep"),r=this.start.toTex(e);if(t.start&&(r="\\left(".concat(r,"\\right)")),this.step){var n=this.step.toTex(e);t.step&&(n="\\left(".concat(n,"\\right)")),r+=":"+n}var i=this.end.toTex(e);return t.end&&(i="\\left(".concat(i,"\\right)")),r+=":"+i},n},{isClass:!0,isNode:!0}),Af=["Node"],Cf=Object(s.a)("RelationalNode",Af,function(e){var t=e.Node;function i(e,t){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(!Array.isArray(e))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(t))throw new TypeError("Parameter params must be an array");if(e.length!==t.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=e,this.params=t}return(i.prototype=new t).type="RelationalNode",i.prototype.isRelationalNode=!0,i.prototype._compile=function(o,t){var s=this,u=this.params.map(function(e){return e._compile(o,t)});return function(e,t,r){for(var n,i=u[0](e,t,r),a=0;a<s.conditionals.length;a++){if(n=i,i=u[a+1](e,t,r),!Fi(o,s.conditionals[a])(n,i))return!1}return!0}},i.prototype.forEach=function(r){var n=this;this.params.forEach(function(e,t){return r(e,"params["+t+"]",n)},this)},i.prototype.map=function(r){var n=this;return new i(this.conditionals.slice(),this.params.map(function(e,t){return n._ifNode(r(e,"params["+t+"]",n))},this))},i.prototype.clone=function(){return new i(this.conditionals,this.params)},i.prototype._toString=function(n){for(var i=n&&n.parenthesis?n.parenthesis:"keep",a=Zc(this,i),e=this.params.map(function(e,t){var r=Zc(e,i);return"all"===i||null!==r&&r<=a?"("+e.toString(n)+")":e.toString(n)}),t={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="},r=e[0],o=0;o<this.conditionals.length;o++)r+=" "+t[this.conditionals[o]]+" "+e[o+1];return r},i.prototype.toJSON=function(){return{mathjs:"RelationalNode",conditionals:this.conditionals,params:this.params}},i.fromJSON=function(e){return new i(e.conditionals,e.params)},i.prototype.toHTML=function(n){for(var i=n&&n.parenthesis?n.parenthesis:"keep",a=Zc(this,i),e=this.params.map(function(e,t){var r=Zc(e,i);return"all"===i||null!==r&&r<=a?'<span class="math-parenthesis math-round-parenthesis">(</span>'+e.toHTML(n)+'<span class="math-parenthesis math-round-parenthesis">)</span>':e.toHTML(n)}),t={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="},r=e[0],o=0;o<this.conditionals.length;o++)r+='<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Object(J.c)(t[this.conditionals[o]])+"</span>"+e[o+1];return r},i.prototype._toTex=function(n){for(var i=n&&n.parenthesis?n.parenthesis:"keep",a=Zc(this,i),e=this.params.map(function(e,t){var r=Zc(e,i);return"all"===i||null!==r&&r<=a?"\\left("+e.toTex(n)+"\right)":e.toTex(n)}),t=e[0],r=0;r<this.conditionals.length;r++)t+=af[this.conditionals[r]]+e[r+1];return t},i},{isClass:!0,isNode:!0}),Tf=["math","?Unit","Node"],_f=Object(s.a)("SymbolNode",Tf,function(e){var n=e.math,o=e.Unit,t=e.Node;function s(e){return!!o&&o.isValuelessUnit(e)}function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if("string"!=typeof e)throw new TypeError('String expected for parameter "name"');this.name=e}return(r.prototype=new t).type="SymbolNode",r.prototype.isSymbolNode=!0,r.prototype._compile=function(n,e){var i=this.name;if(Object(W.f)(e,i))return function(e,t,r){return t[i]};if(i in n)return function(e,t,r){return Fi(i in e?e:n,i)};var a=s(i);return function(e,t,r){return i in e?Fi(e,i):a?new o(null,i):function(e){throw new Error("Undefined symbol "+e)}(i)}},r.prototype.forEach=function(e){},r.prototype.map=function(e){return this.clone()},r.prototype.clone=function(){return new r(this.name)},r.prototype._toString=function(e){return this.name},r.prototype.toHTML=function(e){var t=Object(J.c)(this.name);return"true"===t||"false"===t?'<span class="math-symbol math-boolean">'+t+"</span>":"i"===t?'<span class="math-symbol math-imaginary-symbol">'+t+"</span>":"Infinity"===t?'<span class="math-symbol math-infinity-symbol">'+t+"</span>":"NaN"===t?'<span class="math-symbol math-nan-symbol">'+t+"</span>":"null"===t?'<span class="math-symbol math-null-symbol">'+t+"</span>":"undefined"===t?'<span class="math-symbol math-undefined-symbol">'+t+"</span>":'<span class="math-symbol">'+t+"</span>"},r.prototype.toJSON=function(){return{mathjs:"SymbolNode",name:this.name}},r.fromJSON=function(e){return new r(e.name)},r.prototype._toTex=function(e){var t=!1;void 0===n[this.name]&&s(this.name)&&(t=!0);var r=cf(this.name,t);return"\\"===r[0]?r:" "+r},r},{isClass:!0,isNode:!0});function If(e){return(If="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 qf(){return(qf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Bf=["math","Node","SymbolNode"],kf=Object(s.a)("FunctionNode",Bf,function(e){var i=e.math,t=e.Node,n=e.SymbolNode;function y(e,t){if(!(this instanceof y))throw new SyntaxError("Constructor must be called with the new operator");if("string"==typeof e&&(e=new n(e)),!Object(ie.w)(e))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(t)||!t.every(ie.w))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=e,this.args=t||[],Object.defineProperty(this,"name",{get:function(){return this.fn.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}});function r(){throw new Error("Property `FunctionNode.object` is deprecated, use `FunctionNode.fn` instead")}Object.defineProperty(this,"object",{get:r,set:r})}(y.prototype=new t).type="FunctionNode",y.prototype.isFunctionNode=!0,y.prototype._compile=function(i,t){if(!(this instanceof y))throw new TypeError("No valid FunctionNode");var a=Object(I.m)(this.args,function(e){return e._compile(i,t)});if(Object(ie.J)(this.fn)){var o=this.fn.name,s=o in i?Fi(i,o):void 0;if("function"==typeof s&&!0===s.rawArgs){var n=this.args;return function(e,t,r){return(o in e?Fi(e,o):s)(n,i,qf({},e,t))}}if(1===a.length){var u=a[0];return function(e,t,r){return(o in e?Fi(e,o):s)(u(e,t,r))}}if(2!==a.length)return function(t,r,n){return(o in t?Fi(t,o):s).apply(null,Object(I.m)(a,function(e){return e(t,r,n)}))};var c=a[0],f=a[1];return function(e,t,r){return(o in e?Fi(e,o):s)(c(e,t,r),f(e,t,r))}}if(Object(ie.a)(this.fn)&&Object(ie.u)(this.fn.index)&&this.fn.index.isObjectProperty()){var l=this.fn.object._compile(i,t),p=this.fn.index.getObjectProperty(),m=this.args;return function(t,r,n){var e=l(t,r,n);return function(e,t){if(!Hi(e,t))throw new Error('No access to method "'+t+'"')}(e,p),e[p]&&e[p].rawArgs?e[p](m,i,qf({},t,r)):e[p].apply(e,Object(I.m)(a,function(e){return e(t,r,n)}))}}var h=this.fn._compile(i,t),d=this.args;return function(t,r,n){var e=h(t,r,n);return e&&e.rawArgs?e(d,i,qf({},t,r)):e.apply(e,Object(I.m)(a,function(e){return e(t,r,n)}))}},y.prototype.forEach=function(e){e(this.fn,"fn",this);for(var t=0;t<this.args.length;t++)e(this.args[t],"args["+t+"]",this)},y.prototype.map=function(e){for(var t=this._ifNode(e(this.fn,"fn",this)),r=[],n=0;n<this.args.length;n++)r[n]=this._ifNode(e(this.args[n],"args["+n+"]",this));return new y(t,r)},y.prototype.clone=function(){return new y(this.fn,this.args.slice(0))};var a=y.prototype.toString;function o(e,t,r){for(var n,i="",a=new RegExp("\\$(?:\\{([a-z_][a-z_0-9]*)(?:\\[([0-9]+)\\])?\\}|\\$)","ig"),o=0;null!==(n=a.exec(e));)if(i+=e.substring(o,n.index),o=n.index,"$$"===n[0])i+="$",o++;else{o+=n[0].length;var s=t[n[1]];if(!s)throw new ReferenceError("Template: Property "+n[1]+" does not exist.");if(void 0===n[2])switch(If(s)){case"string":i+=s;break;case"object":if(Object(ie.w)(s))i+=s.toTex(r);else{if(!Array.isArray(s))throw new TypeError("Template: "+n[1]+" has to be a Node, String or array of Nodes");i+=s.map(function(e,t){if(Object(ie.w)(e))return e.toTex(r);throw new TypeError("Template: "+n[1]+"["+t+"] is not a Node.")}).join(",")}break;default:throw new TypeError("Template: "+n[1]+" has to be a Node, String or array of Nodes")}else{if(!Object(ie.w)(s[n[2]]&&s[n[2]]))throw new TypeError("Template: "+n[1]+"["+n[2]+"] is not a Node.");i+=s[n[2]].toTex(r)}}return i+=e.slice(o)}y.prototype.toString=function(e){var t,r=this.fn.toString(e);return e&&"object"===If(e.handler)&&Object(W.f)(e.handler,r)&&(t=e.handler[r](this,e)),void 0!==t?t:a.call(this,e)},y.prototype._toString=function(t){var e=this.args.map(function(e){return e.toString(t)});return(Object(ie.q)(this.fn)?"("+this.fn.toString(t)+")":this.fn.toString(t))+"("+e.join(", ")+")"},y.prototype.toJSON=function(){return{mathjs:"FunctionNode",fn:this.fn,args:this.args}},y.fromJSON=function(e){return new y(e.fn,e.args)},y.prototype.toHTML=function(t){var e=this.args.map(function(e){return e.toHTML(t)});return'<span class="math-function">'+Object(J.c)(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+e.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'};var r=y.prototype.toTex;return y.prototype.toTex=function(e){var t;return e&&"object"===If(e.handler)&&Object(W.f)(e.handler,this.name)&&(t=e.handler[this.name](this,e)),void 0!==t?t:r.call(this,e)},y.prototype._toTex=function(t){var e,r,n=this.args.map(function(e){return e.toTex(t)});switch(of[this.name]&&(e=of[this.name]),!i[this.name]||"function"!=typeof i[this.name].toTex&&"object"!==If(i[this.name].toTex)&&"string"!=typeof i[this.name].toTex||(e=i[this.name].toTex),If(e)){case"function":r=e(this,t);break;case"string":r=o(e,this,t);break;case"object":switch(If(e[n.length])){case"function":r=e[n.length](this,t);break;case"string":r=o(e[n.length],this,t)}}return void 0!==r?r:o("\\mathrm{${name}}\\left(${args}\\right)",this,t)},y.prototype.getIdentifier=function(){return this.type+":"+this.name},y},{isClass:!0,isNode:!0});function zf(){return(zf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Df=["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],Rf=Object(s.a)("parse",Df,function(e){var t=e.typed,s=e.numeric,u=e.config,i=e.AccessorNode,c=e.ArrayNode,o=e.AssignmentNode,a=e.BlockNode,f=e.ConditionalNode,l=e.ConstantNode,p=e.FunctionAssignmentNode,m=e.FunctionNode,h=e.IndexNode,d=e.ObjectNode,y=e.OperatorNode,g=e.ParenthesisNode,n=e.RangeNode,v=e.RelationalNode,b=e.SymbolNode,x=t("parse",{string:function(e){return k(e,{})},"Array | Matrix":function(e){return r(e,{})},"string, Object":function(e,t){return k(e,void 0!==t.nodes?t.nodes:{})},"Array | Matrix, Object":r});function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=void 0!==t.nodes?t.nodes:{};return ae(e,function(e){if("string"!=typeof e)throw new TypeError("String expected");return k(e,r)})}var w={NULL:0,DELIMITER:1,NUMBER:2,SYMBOL:3,UNKNOWN:4},N={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},O={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},M={true:!0,false:!1,null:null,undefined:void 0},E=["NaN","Infinity"];function S(e,t){return e.expression.substr(e.index,t)}function j(e){return S(e,1)}function A(e){e.index++}function C(e){return e.expression.charAt(e.index-1)}function T(e){return e.expression.charAt(e.index+1)}function _(e){for(e.tokenType=w.NULL,e.token="",e.comment="";x.isWhitespace(j(e),e.nestingLevel);)A(e);if("#"===j(e))for(;"\n"!==j(e)&&""!==j(e);)e.comment+=j(e),A(e);if(""!==j(e)){if("\n"===j(e)&&!e.nestingLevel)return e.tokenType=w.DELIMITER,e.token=j(e),void A(e);var t=j(e),r=S(e,2),n=S(e,3);if(3===n.length&&N[n])return e.tokenType=w.DELIMITER,e.token=n,A(e),A(e),void A(e);if(2===r.length&&N[r])return e.tokenType=w.DELIMITER,e.token=r,A(e),void A(e);if(N[t])return e.tokenType=w.DELIMITER,e.token=t,void A(e);if(x.isDigitDot(t)){if(e.tokenType=w.NUMBER,"."===j(e))e.token+=j(e),A(e),x.isDigit(j(e))||(e.tokenType=w.DELIMITER);else{for(;x.isDigit(j(e));)e.token+=j(e),A(e);x.isDecimalMark(j(e),T(e))&&(e.token+=j(e),A(e))}for(;x.isDigit(j(e));)e.token+=j(e),A(e);if("E"===j(e)||"e"===j(e))if(x.isDigit(T(e))||"-"===T(e)||"+"===T(e)){if(e.token+=j(e),A(e),"+"!==j(e)&&"-"!==j(e)||(e.token+=j(e),A(e)),!x.isDigit(j(e)))throw re(e,'Digit expected, got "'+j(e)+'"');for(;x.isDigit(j(e));)e.token+=j(e),A(e);if(x.isDecimalMark(j(e),T(e)))throw re(e,'Digit expected, got "'+j(e)+'"')}else if("."===T(e))throw A(e),re(e,'Digit expected, got "'+j(e)+'"')}else{if(!x.isAlpha(j(e),C(e),T(e))){for(e.tokenType=w.UNKNOWN;""!==j(e);)e.token+=j(e),A(e);throw re(e,'Syntax error in part "'+e.token+'"')}for(;x.isAlpha(j(e),C(e),T(e))||x.isDigit(j(e));)e.token+=j(e),A(e);O.hasOwnProperty(e.token)?e.tokenType=w.DELIMITER:e.tokenType=w.SYMBOL}}else e.tokenType=w.DELIMITER}function I(e){for(;_(e),"\n"===e.token;);}function q(e){e.nestingLevel++}function B(e){e.nestingLevel--}function k(e,t){var r={extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:w.NULL,nestingLevel:0,conditionalLevel:null};zf(r,{expression:e,extraNodes:t}),_(r);var n=function(e){var t,r,n=[];""!==e.token&&"\n"!==e.token&&";"!==e.token&&((t=z(e)).comment=e.comment);for(;"\n"===e.token||";"===e.token;)0===n.length&&t&&(r=";"!==e.token,n.push({node:t,visible:r})),_(e),"\n"!==e.token&&";"!==e.token&&""!==e.token&&((t=z(e)).comment=e.comment,r=";"!==e.token,n.push({node:t,visible:r}));return 0<n.length?new a(n):(t||((t=new l(void 0)).comment=e.comment),t)}(r);if(""!==r.token)throw r.tokenType===w.DELIMITER?ne(r,"Unexpected operator "+r.token):re(r,'Unexpected part "'+r.token+'"');return n}function z(e){var t,r,n,i,a=function(e){var t=function(e){var t=D(e);for(;"or"===e.token;)I(e),t=new y("or","or",[t,D(e)]);return t}(e);for(;"?"===e.token;){var r=e.conditionalLevel;e.conditionalLevel=e.nestingLevel,I(e);var n=t,i=z(e);if(":"!==e.token)throw re(e,"False part of conditional expression expected");e.conditionalLevel=null,I(e);var a=z(e);t=new f(n,i,a),e.conditionalLevel=r}return t}(e);if("="!==e.token)return a;if(Object(ie.J)(a))return t=a.name,I(e),n=z(e),new o(new b(t),n);if(Object(ie.a)(a))return I(e),n=z(e),new o(a.object,a.index,n);if(Object(ie.r)(a)&&Object(ie.J)(a.fn)&&(i=!0,r=[],t=a.name,a.args.forEach(function(e,t){Object(ie.J)(e)?r[t]=e.name:i=!1}),i))return I(e),n=z(e),new p(t,r,n);throw re(e,"Invalid left hand side of assignment operator =")}function D(e){for(var t=R(e);"xor"===e.token;)I(e),t=new y("xor","xor",[t,R(e)]);return t}function R(e){for(var t=P(e);"and"===e.token;)I(e),t=new y("and","and",[t,P(e)]);return t}function P(e){for(var t=F(e);"|"===e.token;)I(e),t=new y("|","bitOr",[t,F(e)]);return t}function F(e){for(var t=U(e);"^|"===e.token;)I(e),t=new y("^|","bitXor",[t,U(e)]);return t}function U(e){for(var t=L(e);"&"===e.token;)I(e),t=new y("&","bitAnd",[t,L(e)]);return t}function L(e){for(var t=[H(e)],r=[],n={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};n.hasOwnProperty(e.token);){var i={name:e.token,fn:n[e.token]};r.push(i),I(e),t.push(H(e))}return 1===t.length?t[0]:2===t.length?new y(r[0].name,r[0].fn,t):new v(r.map(function(e){return e.fn}),t)}function H(e){var t,r,n,i,a;for(t=$(e),r={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};r.hasOwnProperty(e.token);)i=r[n=e.token],I(e),a=[t,$(e)],t=new y(n,i,a);return t}function $(e){var t,r,n,i,a;for(t=G(e),r={to:"to",in:"to"};r.hasOwnProperty(e.token);)i=r[n=e.token],I(e),t="in"===n&&""===e.token?new y("*","multiply",[t,new b("in")],!0):(a=[t,G(e)],new y(n,i,a));return t}function G(e){var t,r=[];if(t=":"===e.token?new l(1):Z(e),":"===e.token&&e.conditionalLevel!==e.nestingLevel){for(r.push(t);":"===e.token&&r.length<3;)I(e),")"===e.token||"]"===e.token||","===e.token||""===e.token?r.push(new b("end")):r.push(Z(e));t=3===r.length?new n(r[0],r[2],r[1]):new n(r[0],r[1])}return t}function Z(e){var t,r,n,i,a;for(t=V(e),r={"+":"add","-":"subtract"};r.hasOwnProperty(e.token);)i=r[n=e.token],I(e),a=[t,V(e)],t=new y(n,i,a);return t}function V(e){var t,r,n,i,a;for(r=t=J(e),n={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide","%":"mod",mod:"mod"};n.hasOwnProperty(e.token);)a=n[i=e.token],I(e),r=J(e),t=new y(i,a,[t,r]);return t}function J(e){var t,r;for(r=t=W(e);e.tokenType===w.SYMBOL||"in"===e.token&&Object(ie.l)(t)||!(e.tokenType!==w.NUMBER||Object(ie.l)(r)||Object(ie.B)(r)&&"!"!==r.op)||"("===e.token;)r=W(e),t=new y("*","multiply",[t,r],!0);return t}function W(e){for(var t=Y(e),r=t,n=[];"/"===e.token&&Object(ie.l)(r);){if(n.push(zf({},e)),I(e),e.tokenType!==w.NUMBER){zf(e,n.pop());break}if(n.push(zf({},e)),I(e),e.tokenType!==w.SYMBOL&&"("!==e.token){n.pop(),zf(e,n.pop());break}zf(e,n.pop()),n.pop(),r=Y(e),t=new y("/","divide",[t,r])}return t}function Y(e){var t,r,n,i={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return i.hasOwnProperty(e.token)?(n=i[e.token],t=e.token,I(e),r=[Y(e)],new y(t,n,r)):function(e){var t,r,n,i;t=function(e){var t,r,n,i;t=function(e){var t=[];if(e.tokenType===w.SYMBOL&&e.extraNodes.hasOwnProperty(e.token)){var r=e.extraNodes[e.token];if(_(e),"("===e.token){if(t=[],q(e),_(e),")"!==e.token)for(t.push(z(e));","===e.token;)_(e),t.push(z(e));if(")"!==e.token)throw re(e,"Parenthesis ) expected");B(e),_(e)}return new r(t)}return function(e){var t,r;if(e.tokenType===w.SYMBOL||e.tokenType===w.DELIMITER&&e.token in O)return r=e.token,_(e),t=M.hasOwnProperty(r)?new l(M[r]):-1!==E.indexOf(r)?new l(s(r,"number")):new b(r),t=X(e,t);return function(e){var t,r;return'"'!==e.token?function(e){var t,r;return"'"!==e.token?function(e){var t,r,n,i;if("["!==e.token)return function(e){if("{"!==e.token)return function(e){var t;return e.tokenType!==w.NUMBER?function(e){var t;if("("!==e.token)return function(e){throw""===e.token?re(e,"Unexpected end of expression"):re(e,"Value expected")}(e);if(q(e),_(e),t=z(e),")"===e.token)return B(e),_(e),t=new g(t),t=X(e,t);throw re(e,"Parenthesis ) expected")}(e):(t=e.token,_(e),new l(s(t,u.number)))}(e);var t;q(e);var r={};do{if(_(e),"}"!==e.token){if('"'===e.token)t=Q(e);else if("'"===e.token)t=K(e);else{if(e.tokenType!==w.SYMBOL)throw re(e,"Symbol or string expected as object key");t=e.token,_(e)}if(":"!==e.token)throw re(e,"Colon : expected after object key");_(e),r[t]=z(e)}}while(","===e.token);if("}"!==e.token)throw re(e,"Comma , or bracket } expected after object value");B(e),_(e);var n=new d(r);return n=X(e,n)}(e);if(q(e),_(e),"]"!==e.token){var a=ee(e);if(";"===e.token){for(n=1,r=[a];";"===e.token;)_(e),r[n]=ee(e),n++;if("]"!==e.token)throw re(e,"End of matrix ] expected");B(e),_(e),i=r[0].items.length;for(var o=1;o<n;o++)if(r[o].items.length!==i)throw ne(e,"Column dimensions mismatch ("+r[o].items.length+" !== "+i+")");t=new c(r)}else{if("]"!==e.token)throw re(e,"End of matrix ] expected");B(e),_(e),t=a}}else B(e),_(e),t=new c([]);return X(e,t)}(e):(r=K(e),t=new l(r),t=X(e,t))}(e):(r=Q(e),t=new l(r),t=X(e,t))}(e)}(e)}(e),r={"!":"factorial","'":"ctranspose"};for(;r.hasOwnProperty(e.token);)n=e.token,i=r[n],_(e),t=new y(n,i,[t]),t=X(e,t);return t}(e),"^"!==e.token&&".^"!==e.token||(r=e.token,n="^"===r?"pow":"dotPow",I(e),i=[t,Y(e)],t=new y(r,n,i));return t}(e)}function X(e,t,r){for(var n;!("("!==e.token&&"["!==e.token&&"."!==e.token||r&&-1===r.indexOf(e.token));)if(n=[],"("===e.token){if(!Object(ie.J)(t)&&!Object(ie.a)(t))return t;if(q(e),_(e),")"!==e.token)for(n.push(z(e));","===e.token;)_(e),n.push(z(e));if(")"!==e.token)throw re(e,"Parenthesis ) expected");B(e),_(e),t=new m(t,n)}else if("["===e.token){if(q(e),_(e),"]"!==e.token)for(n.push(z(e));","===e.token;)_(e),n.push(z(e));if("]"!==e.token)throw re(e,"Parenthesis ] expected");B(e),_(e),t=new i(t,new h(n))}else{if(_(e),e.tokenType!==w.SYMBOL)throw re(e,"Property name expected after dot");n.push(new l(e.token)),_(e);t=new i(t,new h(n,!0))}return t}function Q(e){for(var t="";""!==j(e)&&'"'!==j(e);)"\\"===j(e)&&(t+=j(e),A(e)),t+=j(e),A(e);if(_(e),'"'!==e.token)throw re(e,'End of string " expected');return _(e),JSON.parse('"'+t+'"')}function K(e){for(var t="";""!==j(e)&&"'"!==j(e);)"\\"===j(e)&&(t+=j(e),A(e)),t+=j(e),A(e);if(_(e),"'"!==e.token)throw re(e,"End of string ' expected");return _(e),JSON.parse('"'+t+'"')}function ee(e){for(var t=[z(e)],r=1;","===e.token;)_(e),t[r]=z(e),r++;return new c(t)}function te(e){return e.index-e.token.length+1}function re(e,t){var r=te(e),n=new SyntaxError(t+" (char "+r+")");return n.char=r,n}function ne(e,t){var r=te(e),n=new SyntaxError(t+" (char "+r+")");return n.char=r,n}return x.isAlpha=function(e,t,r){return x.isValidLatinOrGreek(e)||x.isValidMathSymbol(e,r)||x.isValidMathSymbol(t,e)},x.isValidLatinOrGreek=function(e){return/^[a-zA-Z_$\u00C0-\u02AF\u0370-\u03FF\u2100-\u214F]$/.test(e)},x.isValidMathSymbol=function(e,t){return/^[\uD835]$/.test(e)&&/^[\uDC00-\uDFFF]$/.test(t)&&/^[^\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDFCC\uDFCD]$/.test(t)},x.isWhitespace=function(e,t){return" "===e||"\t"===e||"\n"===e&&0<t},x.isDecimalMark=function(e,t){return"."===e&&"/"!==t&&"*"!==t&&"^"!==t},x.isDigitDot=function(e){return"0"<=e&&e<="9"||"."===e},x.isDigit=function(e){return"0"<=e&&e<="9"},x}),Pf="compile",Ff=["typed","parse"],Uf=Object(s.a)(Pf,Ff,function(e){var t=e.typed,r=e.parse;return t(Pf,{string:function(e){return r(e).compile()},"Array | Matrix":function(e){return ae(e,function(e){return r(e).compile()})}})}),Lf="evaluate",Hf=["typed","parse"],$f=Object(s.a)(Lf,Hf,function(e){var t=e.typed,r=e.parse;return t(Lf,{string:function(e){return r(e).compile().evaluate({})},"string, Object":function(e,t){return r(e).compile().evaluate(t)},"Array | Matrix":function(e){var t={};return ae(e,function(e){return r(e).compile().evaluate(t)})},"Array | Matrix, Object":function(e,t){return ae(e,function(e){return r(e).compile().evaluate(t)})}})}),Gf=Object(s.a)("eval",["evaluate"],function(e){var n=e.evaluate;return function(){Object(ve.a)('Function "eval" has been renamed to "evaluate" in v6.0.0, please use the new function instead.');for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(n,t)}}),Zf=["parse"],Vf=Object(s.a)("Parser",Zf,function(e){var t=e.parse;function r(){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");this.scope={}}return r.prototype.type="Parser",r.prototype.isParser=!0,r.prototype.parse=function(e){throw new Error("Parser.parse is deprecated. Use math.parse instead.")},r.prototype.compile=function(e){throw new Error("Parser.compile is deprecated. Use math.compile instead.")},r.prototype.evaluate=function(e){return t(e).compile().evaluate(this.scope)},r.prototype.eval=function(e){return Object(ve.a)("Method Parser.eval is renamed to Parser.evaluate. Please use the new method name."),this.evaluate(e)},r.prototype.get=function(e){return e in this.scope?Fi(this.scope,e):void 0},r.prototype.getAll=function(){return Object(W.e)({},this.scope)},r.prototype.set=function(e,t){return Ui(this.scope,e,t)},r.prototype.remove=function(e){delete this.scope[e]},r.prototype.clear=function(){for(var e in this.scope)this.scope.hasOwnProperty(e)&&delete this.scope[e]},r},{isClass:!0}),Jf=["typed","Parser"],Wf=Object(s.a)("parser",Jf,function(e){var t=e.typed,r=e.Parser;return t("parser",{"":function(){return new r}})}),Yf=["typed","matrix","abs","addScalar","divideScalar","multiplyScalar","subtract","larger","equalScalar","unaryMinus","DenseMatrix","SparseMatrix","Spa"],Xf=Object(s.a)("lup",Yf,function(e){var t=e.typed,r=e.matrix,M=e.abs,E=e.addScalar,S=e.divideScalar,j=e.multiplyScalar,A=e.subtract,C=e.larger,T=e.equalScalar,O=e.unaryMinus,_=e.DenseMatrix,I=e.SparseMatrix,q=e.Spa;return t("lup",{DenseMatrix:function(e){return n(e)},SparseMatrix:function(e){return function(e){var r,s,u,c=e._size[0],t=e._size[1],n=Math.min(c,t),f=e._values,l=e._index,p=e._ptr,m=[],h=[],d=[],y=[c,n],g=[],v=[],b=[],x=[n,t],w=[],N=[];for(r=0;r<c;r++)w[r]=r,N[r]=r;function i(){var i=new q;s<c&&(d.push(m.length),m.push(1),h.push(s)),b.push(g.length);var e=p[s],t=p[s+1];for(u=e;u<t;u++)r=l[u],i.set(w[r],f[u]);0<s&&i.forEach(0,s-1,function(r,n){I._forEachRow(r,m,h,d,function(e,t){r<e&&i.accumulate(e,O(j(t,n)))})});var n=s,a=i.get(s),o=M(a);i.forEach(s+1,c-1,function(e,t){var r=M(t);C(r,o)&&(n=e,o=r,a=t)}),s!==n&&(I._swapRows(s,n,y[1],m,h,d),I._swapRows(s,n,x[1],g,v,b),i.swap(s,n),function(e,t){var r=N[e],n=N[t];w[r]=t,w[n]=e,N[e]=n,N[t]=r}(s,n)),i.forEach(0,c-1,function(e,t){e<=s?(g.push(t),v.push(e)):(t=S(t,a),T(t,0)||(m.push(t),h.push(e)))})}for(s=0;s<t;s++)i();return b.push(g.length),d.push(m.length),{L:new I({values:m,index:h,ptr:d,size:y}),U:new I({values:g,index:v,ptr:b,size:x}),p:w,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\nP: "+this.p}}}(e)},Array:function(e){var t=n(r(e));return{L:t.L.valueOf(),U:t.U.valueOf(),p:t.p}}});function n(e){var t,r,n,i=e._size[0],a=e._size[1],o=Math.min(i,a),s=Object(W.a)(e._data),u=[],c=[i,o],f=[],l=[o,a],p=[];for(t=0;t<i;t++)p[t]=t;for(r=0;r<a;r++){if(0<r)for(t=0;t<i;t++){var m=Math.min(t,r),h=0;for(n=0;n<m;n++)h=E(h,j(s[t][n],s[n][r]));s[t][r]=A(s[t][r],h)}var d=r,y=0,g=0;for(t=r;t<i;t++){var v=s[t][r],b=M(v);C(b,y)&&(d=t,y=b,g=v)}if(r!==d&&(p[r]=[p[d],p[d]=p[r]][0],_._swapRows(r,d,s)),r<i)for(t=r+1;t<i;t++){var x=s[t][r];T(x,0)||(s[t][r]=S(s[t][r],g))}}for(r=0;r<a;r++)for(t=0;t<i;t++)0===r&&(t<a&&(f[t]=[]),u[t]=[]),t<r?(t<a&&(f[t][r]=s[t][r]),r<i&&(u[t][r]=0)):t!==r?(t<a&&(f[t][r]=0),r<i&&(u[t][r]=s[t][r])):(t<a&&(f[t][r]=s[t][r]),r<i&&(u[t][r]=1));var w=new _({data:u,size:c}),N=new _({data:f,size:l}),O=[];for(t=0,o=p.length;t<o;t++)O[p[t]]=t;return{L:w,U:N,p:O,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\nP: "+this.p}}}}),Qf=["typed","matrix","zeros","identity","isZero","unequal","sign","sqrt","conj","unaryMinus","addScalar","divideScalar","multiplyScalar","subtract"],Kf=Object(s.a)("qr",Qf,function(e){var t=e.typed,r=e.matrix,b=e.zeros,x=e.identity,w=e.isZero,N=e.unequal,O=e.sign,M=e.sqrt,E=e.conj,S=e.unaryMinus,j=e.addScalar,A=e.divideScalar,C=e.multiplyScalar,T=e.subtract;return t("qr",{DenseMatrix:function(e){return n(e)},SparseMatrix:function(e){return function(){throw new Error("qr not implemented for sparse matrices yet")}()},Array:function(e){var t=n(r(e));return{Q:t.Q.valueOf(),R:t.R.valueOf()}}});function n(e){var t,r,n,i=e._size[0],a=e._size[1],o=x([i],"dense"),s=o._data,u=e.clone(),c=u._data,f=b([i],"");for(n=0;n<Math.min(a,i);++n){var l=c[n][n],p=S(O(l)),m=E(p),h=0;for(t=n;t<i;t++)h=j(h,C(c[t][n],E(c[t][n])));var d=C(p,M(h));if(!w(d)){var y=T(l,d);for(t=n+(f[n]=1);t<i;t++)f[t]=A(c[t][n],y);var g=S(E(A(y,d))),v=void 0;for(r=n;r<a;r++){for(v=0,t=n;t<i;t++)v=j(v,C(E(f[t]),c[t][r]));for(v=C(v,g),t=n;t<i;t++)c[t][r]=C(T(c[t][r],C(f[t],v)),m)}for(t=0;t<i;t++){for(v=0,r=n;r<i;r++)v=j(v,C(s[t][r],f[r]));for(v=C(v,g),r=n;r<i;++r)s[t][r]=A(T(s[t][r],C(v,E(f[r]))),m)}}}for(t=0;t<i;++t)for(r=0;r<t&&r<a;++r){if(N(0,A(c[t][r],1e5)))throw new Error("math.qr(): unknown error - R is not lower triangular (element ("+t+", "+r+") = "+c[t][r]+")");c[t][r]=C(c[t][r],0)}return{Q:o,R:u,toString:function(){return"Q: "+this.Q.toString()+"\nR: "+this.R.toString()}}}});function el(e,t,r,n,i,a,o){var s=0;for(r[o]=e;0<=s;){var u=r[o+s],c=r[n+u];-1===c?(s--,a[t++]=u):(r[n+u]=r[i+c],r[o+ ++s]=c)}return t}function tl(e){return-e-2}var rl=["add","multiply","transpose"],nl=Object(s.a)("csAmd",rl,function(e){var K=e.add,ee=e.multiply,te=e.transpose;return function(e,t){if(!t||e<=0||3<e)return null;var r=t._size,n=r[0],i=r[1],a=0,o=Math.max(16,10*Math.sqrt(i)),s=function(e,t,r,n,i){var a=te(t);if(1===e&&n===r)return K(t,a);if(2!==e)return ee(a,t);for(var o=a._index,s=a._ptr,u=0,c=0;c<r;c++){var f=s[c];if(s[c]=u,!(s[c+1]-f>i))for(var l=s[c+1];f<l;f++)o[u++]=o[f]}return s[r]=u,t=te(a),ee(a,t)}(e,t,n,i,o=Math.min(i-2,o));!function(e,t,r){for(var n=e._values,i=e._index,a=e._ptr,o=e._size[1],s=0,u=0;u<o;u++){var c=a[u];for(a[u]=s;c<a[u+1];c++)t(i[c],u,n?n[c]:1,r)&&(i[s]=i[c],n&&(n[s]=n[c]),s++)}a[o]=s,i.splice(s,i.length-s),n&&n.splice(s,n.length-s)}(s,ne,null);for(var u,c,f,l,p,m,h,d,y,g,v,b,x,w,N,O,M=s._index,E=s._ptr,S=E[i],j=[],A=[],C=i+1,T=2*(i+1),_=3*(i+1),I=4*(i+1),q=5*(i+1),B=6*(i+1),k=7*(i+1),z=j,D=function(e,t,r,n,i,a,o,s,u,c,f,l){for(var p=0;p<e;p++)r[n+p]=t[p+1]-t[p];for(var m=r[n+e]=0;m<=e;m++)r[i+m]=-1,a[m]=-1,r[o+m]=-1,r[s+m]=-1,r[u+m]=1,r[c+m]=1,r[f+m]=0,r[l+m]=r[n+m];var h=re(0,0,r,c,e);return r[f+e]=-2,t[e]=-1,r[c+e]=0,h}(i,E,A,0,_,z,T,k,C,B,I,q),R=function(e,t,r,n,i,a,o,s,u,c,f){for(var l=0,p=0;p<e;p++){var m=r[n+p];if(0===m)r[i+p]=-2,l++,t[p]=-1,r[a+p]=0;else if(o<m)r[s+p]=0,r[i+p]=-1,l++,t[p]=tl(e),r[s+e]++;else{var h=r[u+m];-1!==h&&(c[h]=p),r[f+p]=r[u+m],r[u+m]=p}}return l}(i,E,A,q,I,B,o,C,_,z,T),P=0;R<i;){for(f=-1;P<i&&-1===(f=A[_+P]);P++);-1!==A[T+f]&&(z[A[T+f]]=-1),A[_+P]=A[T+f];var F=A[I+f],U=A[C+f];R+=U;var L=0;A[C+f]=-U;var H=E[f],$=0===F?H:S,G=$;for(l=1;l<=F+1;l++){for(d=F<l?(h=H,A[0+(m=f)]-F):(h=E[m=M[H++]],A[0+m]),p=1;p<=d;p++)(y=A[C+(u=M[h++])])<=0||(L+=y,A[C+u]=-y,-1!==A[T+(M[G++]=u)]&&(z[A[T+u]]=z[u]),-1!==z[u]?A[T+z[u]]=A[T+u]:A[_+A[q+u]]=A[T+u]);m!==f&&(E[m]=tl(f),A[B+m]=0)}for(0!==F&&(S=G),A[q+f]=L,E[f]=$,A[0+f]=G-$,A[I+f]=-2,D=re(D,a,A,B,i),g=$;g<G;g++)if(!((v=A[I+(u=M[g])])<=0)){var Z=D-(y=-A[C+u]);for(H=E[u],b=E[u]+v-1;H<=b;H++)A[B+(m=M[H])]>=D?A[B+m]-=y:0!==A[B+m]&&(A[B+m]=A[q+m]+Z)}for(g=$;g<G;g++){for(x=(b=E[u=M[g]])+A[I+u]-1,O=N=0,H=w=b;H<=x;H++)if(0!==A[B+(m=M[H])]){var V=A[B+m]-D;0<V?(O+=V,N+=M[w++]=m):(E[m]=tl(f),A[B+m]=0)}A[I+u]=w-b+1;var J=w,W=b+A[0+u];for(H=1+x;H<W;H++){var Y=A[C+(c=M[H])];Y<=0||(O+=Y,N+=M[w++]=c)}0===O?(E[u]=tl(f),L-=y=-A[C+u],U+=y,R+=y,A[C+u]=0,A[I+u]=-1):(A[q+u]=Math.min(A[q+u],O),M[w]=M[J],M[J]=M[b],M[b]=f,A[0+u]=w-b+1,N=(N<0?-N:N)%i,A[T+u]=A[k+N],z[A[k+N]=u]=N)}for(A[q+f]=L,D=re(D+(a=Math.max(a,L)),a,A,B,i),g=$;g<G;g++)if(!(0<=A[C+(u=M[g])]))for(u=A[k+(N=z[u])],A[k+N]=-1;-1!==u&&-1!==A[T+u];u=A[T+u],D++){for(d=A[0+u],v=A[I+u],H=E[u]+1;H<=E[u]+d-1;H++)A[B+M[H]]=D;var X=u;for(c=A[T+u];-1!==c;){var Q=A[0+c]===d&&A[I+c]===v;for(H=E[c]+1;Q&&H<=E[c]+d-1;H++)A[B+M[H]]!==D&&(Q=0);Q?(E[c]=tl(u),A[C+u]+=A[C+c],A[C+c]=0,A[I+c]=-1,c=A[T+c],A[T+X]=c):c=A[T+(X=c)]}}for(g=H=$;g<G;g++)(y=-A[C+(u=M[g])])<=0||(A[C+u]=y,O=A[q+u]+L-y,-1!==A[_+(O=Math.min(O,i-R-y))]&&(z[A[_+O]]=u),A[T+u]=A[_+O],z[u]=-1,A[_+O]=u,P=Math.min(P,O),A[q+u]=O,M[H++]=u);A[C+f]=U,0==(A[0+f]=H-$)&&(E[f]=-1,A[B+f]=0),0!==F&&(S=H)}for(u=0;u<i;u++)E[u]=tl(E[u]);for(c=0;c<=i;c++)A[_+c]=-1;for(c=i;0<=c;c--)0<A[C+c]||(A[T+c]=A[_+E[c]],A[_+E[c]]=c);for(m=i;0<=m;m--)A[C+m]<=0||-1!==E[m]&&(A[T+m]=A[_+E[m]],A[_+E[m]]=m);for(u=f=0;u<=i;u++)-1===E[u]&&(f=el(u,f,A,_,T,j,B));return j.splice(j.length-1,1),j};function re(e,t,r,n,i){if(e<2||e+t<0){for(var a=0;a<i;a++)0!==r[n+a]&&(r[n+a]=1);e=2}return e}function ne(e,t){return e!==t}});function il(e,t,r,n,i,a,o){var s,u,c,f,l=0;if(e<=t||r[n+t]<=r[i+e])return-1;if(r[i+e]=r[n+t],c=r[a+e],r[a+e]=t,-1===c)l=1,f=e;else{for(l=2,f=c;f!==r[o+f];f=r[o+f]);for(s=c;s!==f;s=u)u=r[o+s],r[o+s]=f}return{jleaf:l,q:f}}var al=["transpose"],ol=Object(s.a)("csCounts",al,function(e){var S=e.transpose;return function(e,t,r,n){if(!e||!t||!r)return null;var i,a,o,s,u,c,f,l=e._size,p=l[0],m=l[1],h=4*m+(n?m+p+1:0),d=[],y=m,g=2*m,v=3*m,b=4*m,x=5*m+1;for(o=0;o<h;o++)d[o]=-1;var w=[],N=S(e),O=N._index,M=N._ptr;for(o=0;o<m;o++)for(w[a=r[o]]=-1===d[v+a]?1:0;-1!==a&&-1===d[v+a];a=t[a])d[v+a]=o;if(n){for(o=0;o<m;o++)d[r[o]]=o;for(i=0;i<p;i++){for(o=m,c=M[i],f=M[i+1],u=c;u<f;u++)o=Math.min(o,d[O[u]]);d[x+i]=d[b+o],d[b+o]=i}}for(i=0;i<m;i++)d[0+i]=i;for(o=0;o<m;o++){for(-1!==t[a=r[o]]&&w[t[a]]--,s=n?d[b+o]:a;-1!==s;s=n?d[x+s]:-1)for(u=M[s];u<M[s+1];u++){var E=il(i=O[u],a,d,v,y,g,0);1<=E.jleaf&&w[a]++,2===E.jleaf&&w[E.q]--}-1!==t[a]&&(d[0+a]=t[a])}for(a=0;a<m;a++)-1!==t[a]&&(w[t[a]]+=w[a]);return w}}),sl=["add","multiply","transpose"],ul=Object(s.a)("csSqr",sl,function(e){var t=e.add,r=e.multiply,n=e.transpose,c=nl({add:t,multiply:r,transpose:n}),f=ol({transpose:n});return function(e,t,r){var n,i=t._ptr,a=t._size[1],o={};if(o.q=c(e,t),e&&!o.q)return null;if(r){var s=e?function(e,t,r,n){for(var i=e._values,a=e._index,o=e._ptr,s=e._size,u=e._datatype,c=s[0],f=s[1],l=n&&e._values?[]:null,p=[],m=[],h=0,d=0;d<f;d++){m[d]=h;for(var y=r?r[d]:d,g=o[y],v=o[y+1],b=g;b<v;b++){var x=t?t[a[b]]:a[b];p[h]=x,l&&(l[h]=i[b]),h++}}return m[f]=h,e.createSparseMatrix({values:l,index:p,ptr:m,size:[c,f],datatype:u})}(t,null,o.q,0):t;o.parent=function(e,t){if(!e)return null;var r,n,i=e._index,a=e._ptr,o=e._size,s=o[0],u=o[1],c=[],f=[],l=u;if(t)for(r=0;r<s;r++)f[l+r]=-1;for(var p=0;p<u;p++){c[p]=-1,f[0+p]=-1;for(var m=a[p],h=a[p+1],d=m;d<h;d++){var y=i[d];for(r=t?f[l+y]:y;-1!==r&&r<p;r=n)n=f[0+r],f[0+r]=p,-1===n&&(c[r]=p);t&&(f[l+y]=p)}}return c}(s,1);var u=function(e,t){if(!e)return null;var r,n=0,i=[],a=[],o=t,s=2*t;for(r=0;r<t;r++)a[0+r]=-1;for(r=t-1;0<=r;r--)-1!==e[r]&&(a[o+r]=a[0+e[r]],a[0+e[r]]=r);for(r=0;r<t;r++)-1===e[r]&&(n=el(r,n,a,0,o,i,s));return i}(o.parent,a);if(o.cp=f(s,o.parent,u,1),s&&o.parent&&o.cp&&function(e,t){var r=e._ptr,n=e._index,i=e._size,a=i[0],o=i[1];t.pinv=[],t.leftmost=[];var s,u,c,f,l,p=t.parent,m=t.pinv,h=t.leftmost,d=[],y=a,g=a+o,v=a+2*o;for(u=0;u<o;u++)d[y+u]=-1,d[g+u]=-1,d[v+u]=0;for(s=0;s<a;s++)h[s]=-1;for(u=o-1;0<=u;u--)for(f=r[u],l=r[u+1],c=f;c<l;c++)h[n[c]]=u;for(s=a-1;0<=s;s--)(m[s]=-1)!==(u=h[s])&&(0==d[v+u]++&&(d[g+u]=s),d[0+s]=d[y+u],d[y+u]=s);for(t.lnz=0,t.m2=a,u=0;u<o;u++)if(s=d[y+u],t.lnz++,s<0&&(s=t.m2++),m[s]=u,!(--v[u]<=0)){t.lnz+=d[v+u];var b=p[u];-1!==b&&(0===d[v+b]&&(d[g+b]=d[g+u]),d[0+d[g+u]]=d[y+b],d[y+b]=d[0+s],d[v+b]+=d[v+u])}for(s=0;s<a;s++)m[s]<0&&(m[s]=u++);return!0}(s,o))for(n=o.unz=0;n<a;n++)o.unz+=o.cp[n]}else o.unz=4*i[a]+a,o.lnz=o.unz;return o}});function cl(e,t){return e[t]<0}function fl(e,t){e[t]=tl(e[t])}function ll(e){return e<0?tl(e):e}function pl(e,t,r,n,i){var a,o,s,u=t._index,c=t._ptr,f=t._size[1],l=0;for(n[0]=e;0<=l;){e=n[l];var p=i?i[e]:e;cl(c,e)||(fl(c,e),n[f+l]=p<0?0:ll(c[p]));var m=1;for(o=n[f+l],s=p<0?0:ll(c[p+1]);o<s;o++)if(!cl(c,a=u[o])){n[f+l]=o,n[++l]=a,m=0;break}m&&(l--,n[--r]=e)}return r}var ml=["divideScalar","multiply","subtract"],hl=Object(s.a)("csSpsolve",ml,function(e){var O=e.divideScalar,M=e.multiply,E=e.subtract;return function(e,t,r,n,i,a,o){var s,u,c,f,l=e._values,p=e._index,m=e._ptr,h=e._size[1],d=t._values,y=t._index,g=t._ptr,v=function(e,t,r,n,i){var a,o,s,u=e._ptr,c=e._size,f=t._index,l=t._ptr,p=c[1],m=p;for(o=l[r],s=l[r+1],a=o;a<s;a++){var h=f[a];cl(u,h)||(m=pl(h,e,m,n,i))}for(a=m;a<p;a++)fl(u,n[a]);return m}(e,t,r,n,a);for(s=v;s<h;s++)i[n[s]]=0;for(u=g[r],c=g[r+1],s=u;s<c;s++)i[y[s]]=d[s];for(var b=v;b<h;b++){var x=n[b],w=a?a[x]:x;if(!(w<0))for(u=m[w],c=m[w+1],i[x]=O(i[x],l[o?u:c-1]),s=o?u+1:u,f=o?c:c-1;s<f;s++){var N=p[s];i[N]=E(i[N],M(l[s],i[x]))}}return v}}),dl=["abs","divideScalar","multiply","subtract","larger","largerEq","SparseMatrix"],yl=Object(s.a)("csLu",dl,function(e){var j=e.abs,A=e.divideScalar,C=e.multiply,t=e.subtract,T=e.larger,_=e.largerEq,I=e.SparseMatrix,q=hl({divideScalar:A,multiply:C,subtract:t});return function(e,t,r){if(!e)return null;var n,i=e._size[1],a=100,o=100;t&&(n=t.q,a=t.lnz||a,o=t.unz||o);var s,u,c=[],f=[],l=[],p=new I({values:c,index:f,ptr:l,size:[i,i]}),m=[],h=[],d=[],y=new I({values:m,index:h,ptr:d,size:[i,i]}),g=[],v=[],b=[];for(s=0;s<i;s++)v[s]=0,g[s]=-1,l[s+1]=0;for(var x=o=a=0;x<i;x++){l[x]=a,d[x]=o;var w=n?n[x]:x,N=q(p,e,w,b,v,g,1),O=-1,M=-1;for(u=N;u<i;u++)if(g[s=b[u]]<0){var E=j(v[s]);T(E,M)&&(M=E,O=s)}else h[o]=g[s],m[o++]=v[s];if(-1===O||M<=0)return null;g[w]<0&&_(j(v[w]),C(M,r))&&(O=w);var S=v[O];for(h[o]=x,m[o++]=S,g[O]=x,f[a]=O,c[a++]=1,u=N;u<i;u++)g[s=b[u]]<0&&(f[a]=s,c[a++]=A(v[s],S)),v[s]=0}for(l[i]=a,d[i]=o,u=0;u<a;u++)f[u]=g[f[u]];return c.splice(a,c.length-a),f.splice(a,f.length-a),m.splice(o,m.length-o),h.splice(o,h.length-o),{L:p,U:y,pinv:g}}}),gl=["typed","abs","add","multiply","transpose","divideScalar","subtract","larger","largerEq","SparseMatrix"],vl=Object(s.a)("slu",gl,function(e){var t=e.typed,r=e.abs,n=e.add,i=e.multiply,a=e.transpose,o=e.divideScalar,s=e.subtract,u=e.larger,c=e.largerEq,f=e.SparseMatrix,l=ul({add:n,multiply:i,transpose:a}),p=yl({abs:r,divideScalar:o,multiply:i,subtract:s,larger:u,largerEq:c,SparseMatrix:f});return t("slu",{"SparseMatrix, number, number":function(e,t,r){if(!Object(S.i)(t)||t<0||3<t)throw new Error("Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]");if(r<0||1<r)throw new Error("Partial pivoting threshold must be a number from 0 to 1");var n=l(t,e,!1),i=p(e,n,r);return{L:i.L,U:i.U,p:i.pinv,q:n.q,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\np: "+this.p.toString()+(this.q?"\nq: "+this.q.toString():"")+"\n"}}}})});function bl(e,t){var r,n=t.length,i=[];if(e)for(r=0;r<n;r++)i[e[r]]=t[r];else for(r=0;r<n;r++)i[r]=t[r];return i}var xl="lusolve",wl=["typed","matrix","lup","slu","usolve","lsolve","DenseMatrix"],Nl=Object(s.a)(xl,wl,function(e){var t=e.typed,n=e.matrix,i=e.lup,a=e.slu,s=e.usolve,u=e.lsolve,c=Ka({DenseMatrix:e.DenseMatrix});return t(xl,{"Array, Array | Matrix":function(e,t){e=n(e);var r=i(e);return o(r.L,r.U,r.p,null,t).valueOf()},"DenseMatrix, Array | Matrix":function(e,t){var r=i(e);return o(r.L,r.U,r.p,null,t)},"SparseMatrix, Array | Matrix":function(e,t){var r=i(e);return o(r.L,r.U,r.p,null,t)},"SparseMatrix, Array | Matrix, number, number":function(e,t,r,n){var i=a(e,r,n);return o(i.L,i.U,i.p,i.q,t)},"Object, Array | Matrix":function(e,t){return o(e.L,e.U,e.p,e.q,t)}});function f(e){if(Object(ie.v)(e))return e;if(Object(ie.b)(e))return n(e);throw new TypeError("Invalid Matrix LU decomposition")}function o(e,t,r,n,i){e=f(e),t=f(t),i=c(e,i,!1),r&&(i._data=bl(r,i._data));var a=u(e,i),o=s(t,a);return n&&(o._data=bl(n,o._data)),o}}),Ol=["parse"],Ml=Object(s.a)("Help",Ol,function(e){var o=e.parse;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!e)throw new Error('Argument "doc" missing');this.doc=e}return n.prototype.type="Help",n.prototype.isHelp=!0,n.prototype.toString=function(){var e=this.doc||{},t="\n";if(e.name&&(t+="Name: "+e.name+"\n\n"),e.category&&(t+="Category: "+e.category+"\n\n"),e.description&&(t+="Description:\n "+e.description+"\n\n"),e.syntax&&(t+="Syntax:\n "+e.syntax.join("\n ")+"\n\n"),e.examples){t+="Examples:\n";for(var r={},n=0;n<e.examples.length;n++){var i=e.examples[n];t+=" "+i+"\n";var a=void 0;try{a=o(i).compile().evaluate(r)}catch(e){a=e}void 0===a||Object(ie.s)(a)||(t+=" "+Object(J.d)(a,{precision:14})+"\n")}t+="\n"}return e.seealso&&e.seealso.length&&(t+="See also: "+e.seealso.join(", ")+"\n"),t},n.prototype.toJSON=function(){var e=Object(W.a)(this.doc);return e.mathjs="Help",e},n.fromJSON=function(e){var t={};for(var r in e)"mathjs"!==r&&(t[r]=e[r]);return new n(t)},n.prototype.valueOf=n.prototype.toString,n},{isClass:!0}),El=["?on","math"],Sl=Object(s.a)("Chain",El,function(e){var t=e.on,r=e.math;function i(e){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");Object(ie.h)(e)?this.value=e.value:this.value=e}function a(e,t){Object(W.h)(i.prototype,e,function(){var e=t();if("function"==typeof e)return o(e)})}function o(r){return function(){for(var e=[this.value],t=0;t<arguments.length;t++)e[t+1]=arguments[t];return new i(r.apply(r,e))}}i.prototype.type="Chain",i.prototype.isChain=!0,i.prototype.done=function(){return this.value},i.prototype.valueOf=function(){return this.value},i.prototype.toString=function(){return Object(J.d)(this.value)},i.prototype.toJSON=function(){return{mathjs:"Chain",value:this.value}},i.fromJSON=function(e){return new i(e.value)},i.createProxy=function(t,e){if("string"==typeof t)!function(e,t){"function"==typeof t&&(i.prototype[e]=o(t))}(t,e);else{var r=function(e){t.hasOwnProperty(e)&&void 0===s[e]&&a(e,function(){return t[e]})};for(var n in t)r(n)}};var s={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return i.createProxy(r),t&&t("import",function(e,t,r){r||a(e,t)}),i},{isClass:!0}),jl={name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},Al={name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate([expr1, expr2, expr3, ...])"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(" + 4 + ")")'],seealso:[]},Cl={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},Tl={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},_l={name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},Il={bignumber:{name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},boolean:{name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},complex:{name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},createUnit:{name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},fraction:{name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(num,den)"],description:"Create a fraction from a number or from a numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},index:{name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["[]","[1, 2, 3]","A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[0:2, 0:2] = ones(2, 2)"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},matrix:{name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},number:{name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},sparse:{name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},splitUnit:{name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},string:{name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},unit:{name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},e:Tl,E:Tl,false:{name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},i:{name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},Infinity:{name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},LN2:{name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},LN10:{name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},LOG2E:{name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},LOG10E:{name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},NaN:{name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},null:{name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},pi:Cl,PI:Cl,phi:{name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},SQRT1_2:{name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},SQRT2:{name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},tau:{name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},true:{name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},version:{name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:{name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},lsolve:{name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Solves the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lup","lusolve","usolve","matrix","sparse"]},lup:{name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},lusolve:{name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},simplify:{name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["derivative","parse","evaluate"]},rationalize:{name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},slu:{name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},usolve:{name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Solves the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["lup","lusolve","lsolve","matrix","sparse"]},qr:{name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},abs:{name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},add:{name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},cbrt:{name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},ceil:{name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},cube:{name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},divide:{name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},dotDivide:{name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},dotMultiply:{name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},dotPow:{name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},exp:{name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},expm:{name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},expm1:{name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},fix:{name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},floor:{name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},gcd:{name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},hypot:{name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},lcm:{name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},log:{name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},log2:{name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},log1p:{name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},log10:{name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},mod:{name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},multiply:{name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},norm:{name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},nthRoot:{name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},nthRoots:{name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},pow:{name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},round:{name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)"],seealso:["ceil","floor","fix"]},sign:{name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},sqrt:{name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},sqrtm:{name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[1, 2], [3, 4]])"],seealso:["sqrt","abs","square","multiply"]},square:{name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},subtract:{name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},unaryMinus:{name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},unaryPlus:{name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},xgcd:{name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},bitAnd:{name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitNot:{name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitOr:{name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},bitXor:{name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},leftShift:{name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},rightArithShift:{name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},rightLogShift:{name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},bellNumbers:{name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},catalan:{name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},composition:{name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},stirlingS2:{name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},config:{name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},import:{name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},typed:{name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number, number": f(x)=x+x })',"double(2)",'double("hello")'],seealso:[]},arg:{name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},conj:{name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},re:{name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},im:{name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},evaluate:Al,eval:Al,help:{name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},distance:{name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},intersect:{name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},and:{name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},not:{name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},or:{name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},xor:{name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},concat:{name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},cross:{name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},column:{name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row"]},ctranspose:{name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},det:{name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diag:{name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},dot:{name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},getMatrixDataType:{name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},identity:{name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},filter:{name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},flatten:{name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},forEach:{name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["forEach([1, 2, 3], function(val) { console.log(val) })"],seealso:["map","sort","filter"]},inv:{name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},kron:{name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},map:{name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},ones:{name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},partitionSelect:{name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1)'],seealso:["sort"]},range:{name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},resize:{name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},reshape:{name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])"],seealso:["size","squeeze","resize"]},row:{name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column"]},size:{name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},sort:{name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"])',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},squeeze:{name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},subset:{name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of a matrix or string. Indexes are one-based. Both the ranges lower-bound and upper-bound are included.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},trace:{name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},transpose:{name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},zeros:{name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},combinations:{name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["permutations","factorial"]},factorial:{name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","permutations","gamma"]},gamma:{name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},kldivergence:{name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},multinomial:{name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},permutations:{name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","factorial"]},pickRandom:{name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},random:{name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},randomInt:{name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},compare:{name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},compareNatural:{name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},compareText:{name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},deepEqual:{name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},equal:{name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},equalText:{name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},larger:{name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},largerEq:{name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},smaller:{name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},smallerEq:{name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},unequal:{name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},setCartesian:{name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},setDifference:{name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},setDistinct:{name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},setIntersect:{name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},setIsSubset:{name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},setMultiplicity:{name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},setPowerset:{name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},setSize:{name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},setSymDifference:{name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},setUnion:{name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},erf:{name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},mad:{name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},max:{name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dim)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},mean:{name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dim)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},median:{name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},min:{name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dim)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},mode:{name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},prod:{name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},quantileSeq:{name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:"Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.",examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},std:{name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","sum","variance"]},sum:{name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},variance:_l,var:_l,acos:{name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},acosh:{name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},acot:{name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},acoth:{name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},acsc:{name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},acsch:{name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},asec:{name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},asech:{name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},asin:{name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},asinh:{name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},atan:{name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},atanh:{name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},atan2:{name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},cos:{name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},cosh:{name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},cot:{name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},coth:{name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},csc:{name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},csch:{name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},sec:{name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},sech:{name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},sin:{name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},sinh:{name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},tan:{name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},tanh:{name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},to:{name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},clone:{name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},format:{name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},isNaN:{name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isInteger:{name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isNegative:{name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},isNumeric:{name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},hasNumericValue:{name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},isPositive:{name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isPrime:{name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isZero:{name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},typeOf:jl,typeof:jl,numeric:{name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction)','numeric(4, "Fraction")','numeric(fraction(2, 5), "number)'],seealso:["number","fraction","bignumber","string","format"]}},ql=["typed","mathWithTransform","Help"],Bl=Object(s.a)("help",ql,function(e){var t=e.typed,a=e.mathWithTransform,o=e.Help;return t("help",{any:function(e){var t,r=e;if("string"!=typeof e)for(t in a)if(a.hasOwnProperty(t)&&e===a[t]){r=t;break}var n=Fi(Il,r);if(n)return new o(n);var i="function"==typeof r?r.name:r;throw new Error('No documentation found on "'+i+'"')}})}),kl=["typed","Chain"],zl=Object(s.a)("chain",kl,function(e){var t=e.typed,r=e.Chain;return t("chain",{"":function(){return new r},any:function(e){return new r(e)}})}),Dl=["typed","matrix","subtract","multiply","unaryMinus","lup"],Rl=Object(s.a)("det",Dl,function(e){var t=e.typed,n=e.matrix,f=e.subtract,l=e.multiply,p=e.unaryMinus,m=e.lup;return t("det",{any:function(e){return Object(W.a)(e)},"Array | Matrix":function(e){var t;switch((t=Object(ie.v)(e)?e.size():Array.isArray(e)?(e=n(e)).size():[]).length){case 0:return Object(W.a)(e);case 1:if(1===t[0])return Object(W.a)(e.valueOf()[0]);throw new RangeError("Matrix must be square (size: "+Object(J.d)(t)+")");case 2:var r=t[0];if(r===t[1])return function(e,t){{if(1===t)return Object(W.a)(e[0][0]);if(2===t)return f(l(e[0][0],e[1][1]),l(e[1][0],e[0][1]));for(var r=m(e),n=r.U[0][0],i=1;i<t;i++)n=l(n,r.U[i][i]);for(var a=0,o=0,s=[];;){for(;s[o];)o++;if(t<=o)break;for(var u=o,c=0;!s[r.p[u]];)s[r.p[u]]=!0,u=r.p[u],c++;c%2==0&&a++}return a%2==0?n:p(n)}}(e.clone().valueOf(),r);throw new RangeError("Matrix must be square (size: "+Object(J.d)(t)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+Object(J.d)(t)+")")}}})}),Pl=["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],Fl=Object(s.a)("inv",Pl,function(e){var t=e.typed,i=e.matrix,v=e.divideScalar,b=e.addScalar,x=e.multiply,w=e.unaryMinus,N=e.det,O=e.identity,M=e.abs;return t("inv",{"Array | Matrix":function(e){var t=Object(ie.v)(e)?e.size():Object(I.a)(e);switch(t.length){case 1:if(1===t[0])return Object(ie.v)(e)?i([v(1,e.valueOf()[0])]):[v(1,e[0])];throw new RangeError("Matrix must be square (size: "+Object(J.d)(t)+")");case 2:var r=t[0],n=t[1];if(r===n)return Object(ie.v)(e)?i(a(e.valueOf(),r,n),e.storage()):a(e,r,n);throw new RangeError("Matrix must be square (size: "+Object(J.d)(t)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+Object(J.d)(t)+")")}},any:function(e){return v(1,e)}});function a(e,t,r){var n,i,a,o,s;if(1===t){if(0===(o=e[0][0]))throw Error("Cannot calculate inverse, determinant is zero");return[[v(1,o)]]}if(2===t){var u=N(e);if(0===u)throw Error("Cannot calculate inverse, determinant is zero");return[[v(e[1][1],u),v(w(e[0][1]),u)],[v(w(e[1][0]),u),v(e[0][0],u)]]}var c=e.concat();for(n=0;n<t;n++)c[n]=c[n].concat();for(var f=O(t).valueOf(),l=0;l<r;l++){var p=M(c[l][l]),m=l;for(n=l+1;n<t;)M(c[n][l])>p&&(p=M(c[n][l]),m=n),n++;if(0===p)throw Error("Cannot calculate inverse, determinant is zero");(n=m)!==l&&(s=c[l],c[l]=c[n],c[n]=s,s=f[l],f[l]=f[n],f[n]=s);var h=c[l],d=f[l];for(n=0;n<t;n++){var y=c[n],g=f[n];if(n!==l){if(0!==y[l]){for(a=v(w(y[l]),h[l]),i=l;i<r;i++)y[i]=b(y[i],x(a,h[i]));for(i=0;i<r;i++)g[i]=b(g[i],x(a,d[i]))}}else{for(a=h[l],i=l;i<r;i++)y[i]=v(y[i],a);for(i=0;i<r;i++)g[i]=v(g[i],a)}}}return f}}),Ul=["typed","abs","add","identity","inv","multiply"],Ll=Object(s.a)("expm",Ul,function(e){var t=e.typed,d=e.abs,y=e.add,g=e.identity,v=e.inv,b=e.multiply;return t("expm",{Matrix:function(e){var t=e.size();if(2!==t.length||t[0]!==t[1])throw new RangeError("Matrix must be square (size: "+Object(J.d)(t)+")");for(var r=t[0],n=function(e,t){for(var r=0;r<30;r++)for(var n=0;n<=r;n++){var i=r-n;if(x(e,n,i)<t)return{q:n,j:i}}throw new Error("Could not find acceptable parameters to compute the matrix exponential (try increasing maxSearchSize in expm.js)")}(function(e){for(var t=e.size()[0],r=0,n=0;n<t;n++){for(var i=0,a=0;a<t;a++)i+=d(e.get([n,a]));r=Math.max(i,r)}return r}(e),1e-15),i=n.q,a=n.j,o=b(e,Math.pow(2,-a)),s=g(r),u=g(r),c=1,f=o,l=-1,p=1;p<=i;p++)1<p&&(f=b(f,o),l=-l),s=y(s,b(c=c*(i-p+1)/((2*i-p+1)*p),f)),u=y(u,b(c*l,f));for(var m=b(v(u),s),h=0;h<a;h++)m=b(m,m);return Object(ie.H)(e)?e.createSparseMatrix(m):m}});function x(e,t,r){for(var n=1,i=2;i<=t;i++)n*=i;for(var a=n,o=t+1;o<=2*t;o++)a*=o;var s=a*(2*t+1);return 8*Math.pow(e/Math.pow(2,r),2*t)*n*n/(a*s)}}),Hl=["typed","abs","add","multiply","sqrt","subtract","inv","size","max","identity"],$l=Object(s.a)("sqrtm",Hl,function(e){var t=e.typed,o=e.abs,s=e.add,u=e.multiply,r=e.sqrt,c=e.subtract,f=e.inv,l=e.size,p=e.max,m=e.identity,n=t("sqrtm",{"Array | Matrix":function(e){var t=Object(ie.v)(e)?e.size():Object(I.a)(e);switch(t.length){case 1:if(1===t[0])return r(e);throw new RangeError("Matrix must be square (size: "+Object(J.d)(t)+")");case 2:if(t[0]===t[1])return function(e){var t,r=0,n=e,i=m(l(e));do{var a=n;if(n=u(.5,s(a,f(i))),i=u(.5,s(i,f(a))),t=p(o(c(n,a))),d<t&&++r>h)throw new Error("computing square root of matrix: iterative method could not converge")}while(d<t);return n}(e);throw new RangeError("Matrix must be square (size: "+Object(J.d)(t)+")")}}}),h=1e3,d=1e-6;return n}),Gl=["typed","matrix","multiply","equalScalar","divideScalar","inv"],Zl=Object(s.a)("divide",Gl,function(e){var t=e.typed,r=e.matrix,n=e.multiply,i=e.equalScalar,a=e.divideScalar,o=e.inv,s=sr({typed:t,equalScalar:i}),u=Kt({typed:t});return t("divide",Object(W.e)({"Array | Matrix, Array | Matrix":function(e,t){return n(e,o(t))},"DenseMatrix, any":function(e,t){return u(e,t,a,!1)},"SparseMatrix, any":function(e,t){return s(e,t,a,!1)},"Array, any":function(e,t){return u(r(e),t,a,!1).valueOf()},"any, Array | Matrix":function(e,t){return n(e,o(t))}},a.signatures))}),Vl="distance",Jl=["typed","addScalar","subtract","divideScalar","multiplyScalar","unaryMinus","sqrt","abs"],Wl=Object(s.a)(Vl,Jl,function(e){var t=e.typed,l=e.addScalar,p=e.subtract,m=e.multiplyScalar,h=e.divideScalar,s=e.unaryMinus,d=e.sqrt,u=e.abs;return t(Vl,{"Array, Array, Array":function(e,t,r){if(2!==e.length||2!==t.length||2!==r.length)throw new TypeError("Invalid Arguments: Try again");if(!c(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!c(t))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!c(r))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");var n=h(p(r[1],r[0]),p(t[1],t[0])),i=m(m(n,n),t[0]),a=s(m(n,t[0])),o=e[1];return f(e[0],e[1],i,a,o)},"Object, Object, Object":function(e,t,r){if(2!==Object.keys(e).length||2!==Object.keys(t).length||2!==Object.keys(r).length)throw new TypeError("Invalid Arguments: Try again");if(!c(e))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!c(t))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!c(r))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if(e.hasOwnProperty("pointX")&&e.hasOwnProperty("pointY")&&t.hasOwnProperty("lineOnePtX")&&t.hasOwnProperty("lineOnePtY")&&r.hasOwnProperty("lineTwoPtX")&&r.hasOwnProperty("lineTwoPtY")){var n=h(p(r.lineTwoPtY,r.lineTwoPtX),p(t.lineOnePtY,t.lineOnePtX)),i=m(m(n,n),t.lineOnePtX),a=s(m(n,t.lineOnePtX)),o=e.pointX;return f(e.pointX,e.pointY,i,a,o)}throw new TypeError("Key names do not match")},"Array, Array":function(e,t){if(2===e.length&&3===t.length){if(!c(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!n(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return f(e[0],e[1],t[0],t[1],t[2])}if(3===e.length&&6===t.length){if(!n(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!i(t))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return o(e[0],e[1],e[2],t[0],t[1],t[2],t[3],t[4],t[5])}if(2===e.length&&2===t.length){if(!c(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!c(t))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");return y(e[0],e[1],t[0],t[1])}if(3!==e.length||3!==t.length)throw new TypeError("Invalid Arguments: Try again");if(!n(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!n(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return g(e[0],e[1],e[2],t[0],t[1],t[2])},"Object, Object":function(e,t){if(2===Object.keys(e).length&&3===Object.keys(t).length){if(!c(e))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!n(t))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if(e.hasOwnProperty("pointX")&&e.hasOwnProperty("pointY")&&t.hasOwnProperty("xCoeffLine")&&t.hasOwnProperty("yCoeffLine")&&t.hasOwnProperty("constant"))return f(e.pointX,e.pointY,t.xCoeffLine,t.yCoeffLine,t.constant);throw new TypeError("Key names do not match")}if(3===Object.keys(e).length&&6===Object.keys(t).length){if(!n(e))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!i(t))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if(e.hasOwnProperty("pointX")&&e.hasOwnProperty("pointY")&&t.hasOwnProperty("x0")&&t.hasOwnProperty("y0")&&t.hasOwnProperty("z0")&&t.hasOwnProperty("a")&&t.hasOwnProperty("b")&&t.hasOwnProperty("c"))return o(e.pointX,e.pointY,e.pointZ,t.x0,t.y0,t.z0,t.a,t.b,t.c);throw new TypeError("Key names do not match")}if(2===Object.keys(e).length&&2===Object.keys(t).length){if(!c(e))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!c(t))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if(e.hasOwnProperty("pointOneX")&&e.hasOwnProperty("pointOneY")&&t.hasOwnProperty("pointTwoX")&&t.hasOwnProperty("pointTwoY"))return y(e.pointOneX,e.pointOneY,t.pointTwoX,t.pointTwoY);throw new TypeError("Key names do not match")}if(3!==Object.keys(e).length||3!==Object.keys(t).length)throw new TypeError("Invalid Arguments: Try again");if(!n(e))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!n(t))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if(e.hasOwnProperty("pointOneX")&&e.hasOwnProperty("pointOneY")&&e.hasOwnProperty("pointOneZ")&&t.hasOwnProperty("pointTwoX")&&t.hasOwnProperty("pointTwoY")&&t.hasOwnProperty("pointTwoZ"))return g(e.pointOneX,e.pointOneY,e.pointOneZ,t.pointTwoX,t.pointTwoY,t.pointTwoZ);throw new TypeError("Key names do not match")},Array:function(e){if(!function(e){if(2===e[0].length&&r(e[0][0])&&r(e[0][1])){if(e.some(function(e){return 2!==e.length||!r(e[0])||!r(e[1])}))return!1}else{if(!(3===e[0].length&&r(e[0][0])&&r(e[0][1])&&r(e[0][2])))return!1;if(e.some(function(e){return 3!==e.length||!r(e[0])||!r(e[1])||!r(e[2])}))return!1}return!0}(e))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return function(e){for(var t=[],r=0;r<e.length-1;r++)for(var n=r+1;n<e.length;n++)2===e[0].length?t.push(y(e[r][0],e[r][1],e[n][0],e[n][1])):3===e[0].length&&t.push(g(e[r][0],e[r][1],e[r][2],e[n][0],e[n][1],e[n][2]));return t}(e)}});function r(e){return"number"==typeof e||Object(ie.e)(e)}function c(e){return e.constructor!==Array&&(e=a(e)),r(e[0])&&r(e[1])}function n(e){return e.constructor!==Array&&(e=a(e)),r(e[0])&&r(e[1])&&r(e[2])}function i(e){return e.constructor!==Array&&(e=a(e)),r(e[0])&&r(e[1])&&r(e[2])&&r(e[3])&&r(e[4])&&r(e[5])}function a(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;n++)r.push(e[t[n]]);return r}function f(e,t,r,n,i){var a=u(l(l(m(r,e),m(n,t)),i)),o=d(l(m(r,r),m(n,n)));return h(a,o)}function o(e,t,r,n,i,a,o,s,u){var c=[p(m(p(i,t),u),m(p(a,r),s)),p(m(p(a,r),o),m(p(n,e),u)),p(m(p(n,e),s),m(p(i,t),o))];c=d(l(l(m(c[0],c[0]),m(c[1],c[1])),m(c[2],c[2])));var f=d(l(l(m(o,o),m(s,s)),m(u,u)));return h(c,f)}function y(e,t,r,n){var i=p(n,t),a=p(r,e),o=l(m(i,i),m(a,a));return d(o)}function g(e,t,r,n,i,a){var o=p(a,r),s=p(i,t),u=p(n,e),c=l(l(m(o,o),m(s,s)),m(u,u));return d(c)}}),Yl=["typed","config","abs","add","addScalar","matrix","multiply","multiplyScalar","divideScalar","subtract","smaller","equalScalar"],Xl=Object(s.a)("intersect",Yl,function(e){var t=e.typed,h=e.config,d=e.abs,y=e.add,E=e.addScalar,i=e.matrix,g=e.multiply,S=e.multiplyScalar,j=e.divideScalar,A=e.subtract,v=e.smaller,C=e.equalScalar,a=t("intersect",{"Array, Array, Array":function(e,t,r){if(!s(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!s(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!function(e){return 4===e.length&&n(e[0])&&n(e[1])&&n(e[2])&&n(e[3])}(r))throw new TypeError("Array with 4 numbers expected as third argument");return function(e,t,r,n,i,a,o,s,u,c){var f=S(e,o),l=S(n,o),p=S(t,s),m=S(i,s),h=S(r,u),d=S(a,u),y=j(A(A(A(c,f),p),h),A(A(A(E(E(l,m),d),f),p),h)),g=E(e,S(y,A(n,e))),v=E(t,S(y,A(i,t))),b=E(r,S(y,A(a,r)));return[g,v,b]}(e[0],e[1],e[2],t[0],t[1],t[2],r[0],r[1],r[2],r[3])},"Array, Array, Array, Array":function(e,t,r,n){if(2===e.length){if(!o(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!o(t))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!o(r))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!o(n))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return function(e,t,r,n){var i=e,a=r,o=A(i,t),s=A(a,n),u=A(S(o[0],s[1]),S(s[0],o[1]));if(v(d(u),h.epsilon))return null;var c=S(s[0],i[1]),f=S(s[1],i[0]),l=S(s[0],a[1]),p=S(s[1],a[0]),m=j(E(A(A(c,f),l),p),u);return y(g(o,m),i)}(e,t,r,n)}if(3!==e.length)throw new TypeError("Arrays with two or thee dimensional points expected");if(!s(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!s(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!s(r))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!s(n))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return function(e,t,r,n,i,a,o,s,u,c,f,l){var p=T(e,o,c,o,t,s,f,s,r,u,l,u),m=T(c,o,n,e,f,s,i,t,l,u,a,r),h=T(e,o,n,e,t,s,i,t,r,u,a,r),d=T(c,o,c,o,f,s,f,s,l,u,l,u),y=T(n,e,n,e,i,t,i,t,a,r,a,r),g=j(A(S(p,m),S(h,d)),A(S(y,d),S(m,m))),v=j(E(p,S(g,m)),d),b=E(e,S(g,A(n,e))),x=E(t,S(g,A(i,t))),w=E(r,S(g,A(a,r))),N=E(o,S(v,A(c,o))),O=E(s,S(v,A(f,s))),M=E(u,S(v,A(l,u)));return C(b,N)&&C(x,O)&&C(w,M)?[b,x,w]:null}(e[0],e[1],e[2],t[0],t[1],t[2],r[0],r[1],r[2],n[0],n[1],n[2])},"Matrix, Matrix, Matrix":function(e,t,r){return i(a(e.valueOf(),t.valueOf(),r.valueOf()))},"Matrix, Matrix, Matrix, Matrix":function(e,t,r,n){return i(a(e.valueOf(),t.valueOf(),r.valueOf(),n.valueOf()))}});function n(e){return"number"==typeof e||Object(ie.e)(e)}function o(e){return 2===e.length&&n(e[0])&&n(e[1])}function s(e){return 3===e.length&&n(e[0])&&n(e[1])&&n(e[2])}function T(e,t,r,n,i,a,o,s,u,c,f,l){var p=S(A(e,t),A(r,n)),m=S(A(i,a),A(o,s)),h=S(A(u,c),A(f,l));return E(E(p,m),h)}return a}),Ql=["typed","config","add","?bignumber","?fraction"],Kl=Object(s.a)("sum",Ql,function(e){var t=e.typed,n=e.config,i=e.add,a=e.bignumber,o=e.fraction;return t("sum",{"Array | Matrix":r,"Array | Matrix, number | BigNumber":function(e,t){try{return U(e,t,i)}catch(e){throw da(e,"sum")}},"...":function(e){if(P(e))throw new TypeError("Scalar values expected in function sum");return r(e)}});function r(e){var r;if(F(e,function(t){try{r=void 0===r?t:i(r,t)}catch(e){throw da(e,"sum",t)}}),void 0===r)switch(n.number){case"number":return 0;case"BigNumber":return a?a(0):wi();case"Fraction":return o?o(0):Ni();default:return 0}return r}}),ep=["typed","add","divide"],tp=Object(s.a)("mean",ep,function(e){var t=e.typed,i=e.add,a=e.divide;return t("mean",{"Array | Matrix":r,"Array | Matrix, number | BigNumber":function(e,t){try{var r=U(e,t,i),n=Array.isArray(e)?Object(I.a)(e):e.size();return a(r,n[t])}catch(e){throw da(e,"mean")}},"...":function(e){if(P(e))throw new TypeError("Scalar values expected in function mean");return r(e)}});function r(e){var r=0,n=0;if(F(e,function(t){try{r=i(r,t),n++}catch(e){throw da(e,"mean",t)}}),0===n)throw new Error("Cannot calculate mean of an empty array");return a(r,n)}}),rp=["typed","add","divide","compare","partitionSelect"],np=Object(s.a)("median",rp,function(e){var t=e.typed,r=e.add,n=e.divide,s=e.compare,u=e.partitionSelect,i=t("median",{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function(e,t){throw new Error("median(A, dim) is not yet supported")},"...":function(e){if(P(e))throw new TypeError("Scalar values expected in function median");return a(e)}});function a(e){try{var t=(e=Object(I.e)(e.valueOf())).length;if(0===t)throw new Error("Cannot calculate median of an empty array");if(t%2==0){for(var r=t/2-1,n=u(e,1+r),i=e[r],a=0;a<r;++a)0<s(e[a],i)&&(i=e[a]);return f(i,n)}var o=u(e,(t-1)/2);return c(o)}catch(e){throw da(e,"median")}}var c=t({"number | BigNumber | Complex | Unit":function(e){return e}}),f=t({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(e,t){return n(r(e,t),2)}});return i}),ip=["typed","abs","map","median","subtract"],ap=Object(s.a)("mad",ip,function(e){var t=e.typed,r=e.abs,n=e.map,i=e.median,a=e.subtract;return t("mad",{"Array | Matrix":o,"...":function(e){return o(e)}});function o(e){if(0===(e=Object(I.e)(e.valueOf())).length)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var t=i(e);return i(n(e,function(e){return r(a(e,t))}))}catch(e){throw e instanceof TypeError&&-1!==e.message.indexOf("median")?new TypeError(e.message.replace("median","mad")):da(e,"mad")}}}),op="unbiased",sp="variance",up=["typed","add","subtract","multiply","divide","apply","isNaN"],cp=Object(s.a)(sp,up,function(e){var t=e.typed,o=e.add,s=e.subtract,u=e.multiply,c=e.divide,n=e.apply,f=e.isNaN;return t(sp,{"Array | Matrix":function(e){return i(e,op)},"Array | Matrix, string":i,"Array | Matrix, number | BigNumber":function(e,t){return r(e,t,op)},"Array | Matrix, number | BigNumber, string":r,"...":function(e){return i(e,op)}});function i(e,t){var r=0,n=0;if(0===e.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(F(e,function(t){try{r=o(r,t),n++}catch(e){throw da(e,"variance",t)}}),0===n)throw new Error("Cannot calculate variance of an empty array");var i=c(r,n);if(r=0,F(e,function(e){var t=s(e,i);r=o(r,u(t,t))}),f(r))return r;switch(t){case"uncorrected":return c(r,n);case"biased":return c(r,n+1);case"unbiased":var a=Object(ie.e)(r)?r.mul(0):0;return 1===n?a:c(r,n-1);default:throw new Error('Unknown normalization "'+t+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function r(e,t,r){try{if(0===e.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return n(e,t,function(e){return i(e,r)})}catch(e){throw da(e,"variance")}}}),fp=Object(s.a)("var",["variance"],function(e){var n=e.variance;return function(){Object(ve.a)('Function "var" has been renamed to "variance" in v6.0.0, please use the new function instead.');for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(n,t)}}),lp=["typed","add","multiply","partitionSelect","compare"],pp=Object(s.a)("quantileSeq",lp,function(e){var t=e.typed,w=e.add,N=e.multiply,O=e.partitionSelect,M=e.compare;function h(e,t,r){var n=Object(I.e)(e),i=n.length;if(0===i)throw new Error("Cannot calculate quantile of an empty sequence");if(Object(ie.y)(t)){var a=t*(i-1),o=a%1;if(0==o){var s=r?n[a]:O(n,a);return E(s),s}var u,c,f=Math.floor(a);if(r)u=n[f],c=n[f+1];else{c=O(n,f+1),u=n[f];for(var l=0;l<f;++l)0<M(n[l],u)&&(u=n[l])}return E(u),E(c),w(N(u,1-o),N(c,o))}var p=t.times(i-1);if(p.isInteger()){p=p.toNumber();var m=r?n[p]:O(n,p);return E(m),m}var h,d,y=p.floor(),g=p.minus(y),v=y.toNumber();if(r)h=n[v],d=n[v+1];else{d=O(n,v+1),h=n[v];for(var b=0;b<v;++b)0<M(n[b],h)&&(h=n[b])}E(h),E(d);var x=new g.constructor(1);return w(N(h,x.minus(g)),N(d,g))}var E=t({"number | BigNumber | Unit":function(e){return e}});return function(e,t,r){var n,i,a;if(arguments.length<2||3<arguments.length)throw new SyntaxError("Function quantileSeq requires two or three parameters");if(Object(ie.i)(e)){if("boolean"!=typeof(r=r||!1))throw new TypeError("Unexpected type of argument in function quantileSeq");if(i=e.valueOf(),Object(ie.y)(t)){if(t<0)throw new Error("N/prob must be non-negative");if(t<=1)return h(i,t,r);if(1<t){if(!Object(S.i)(t))throw new Error("N must be a positive integer");var o=t+1;n=new Array(t);for(var s=0;s<t;)n[s]=h(i,++s/o,r);return n}}if(Object(ie.e)(t)){var u=t.constructor;if(t.isNegative())throw new Error("N/prob must be non-negative");if(a=new u(1),t.lte(a))return new u(h(i,t,r));if(t.gt(a)){if(!t.isInteger())throw new Error("N must be a positive integer");var c=t.toNumber();if(4294967295<c)throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var f=new u(c+1);n=new Array(c);for(var l=0;l<c;)n[l]=new u(h(i,new u(++l).div(f),r));return n}}if(Array.isArray(t)){n=new Array(t.length);for(var p=0;p<n.length;++p){var m=t[p];if(Object(ie.y)(m)){if(m<0||1<m)throw new Error("Probability must be between 0 and 1, inclusive")}else{if(!Object(ie.e)(m))throw new TypeError("Unexpected type of argument in function quantileSeq");if(a=new m.constructor(1),m.isNegative()||m.gt(a))throw new Error("Probability must be between 0 and 1, inclusive")}n[p]=h(i,m,r)}return n}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}}),mp=["typed","sqrt","variance"],hp=Object(s.a)("std",mp,function(e){var t=e.typed,r=e.sqrt,n=e.variance;return t("std",{"Array | Matrix":i,"Array | Matrix, string":i,"Array | Matrix, number | BigNumber":i,"Array | Matrix, number | BigNumber, string":i,"...":function(e){return i(e)}});function i(e,t){if(0===e.length)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{return r(n.apply(null,arguments))}catch(e){throw e instanceof TypeError&&-1!==e.message.indexOf(" variance")?new TypeError(e.message.replace(" variance"," std")):e}}});function dp(e,t){var r;return t<e?1:t===e?t:dp(e,r=t+e>>1)*dp(1+r,t)}function yp(e,t){var r;if(!Object(S.i)(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(!Object(S.i)(t)||t<0)throw new TypeError("Positive integer value expected in function combinations");if(e<t)throw new TypeError("k must be less than or equal to n");return t<(r=e-t)?dp(1+r,e)/dp(1,t):dp(t+1,e)/dp(1,r)}yp.signature="number, number";var gp="combinations",vp=["typed"],bp=Object(s.a)(gp,vp,function(e){return(0,e.typed)(gp,{"number, number":yp,"BigNumber, BigNumber":function(e,t){var r,n,i,a,o=new e.constructor(1);if(!xp(e)||!xp(t))throw new TypeError("Positive integer value expected in function combinations");if(t.gt(e))throw new TypeError("k must be less than n in function combinations");for(r=e.minus(t),t.lt(r)&&(r=t),i=n=o,a=e.minus(r);i.lte(a);i=i.plus(1))n=n.times(r.plus(i)).dividedBy(i);return n}})});function xp(e){return e.isInteger()&&e.gte(0)}function wp(e){var t,r;if(Object(S.i)(e))return e<=0?isFinite(e)?1/0:NaN:171<e?1/0:dp(1,e-1);if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*wp(1-e));if(171.35<=e)return 1/0;if(85<e){var n=e*e,i=n*e,a=i*e,o=a*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*n)-139/(51840*i)-571/(2488320*a)+163879/(209018880*o)+5246819/(75246796800*o*e))}--e,r=Op[0];for(var s=1;s<Op.length;++s)r+=Op[s]/(e+s);return t=e+Np+.5,Math.sqrt(2*Math.PI)*Math.pow(t,e+.5)*Math.exp(-t)*r}wp.signature="number";var Np=4.7421875,Op=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],Mp=["typed","config","multiplyScalar","pow","BigNumber","Complex"],Ep=Object(s.a)("gamma",Mp,function(e){var t=e.typed,i=e.config,c=e.multiplyScalar,f=e.pow,a=e.BigNumber,l=e.Complex,p=t("gamma",{number:wp,Complex:function(e){var t,r;if(0===e.im)return p(e.re);e=new l(e.re-1,e.im),r=new l(Op[0],0);for(var n=1;n<Op.length;++n){var i=e.re+n,a=i*i+e.im*e.im;0!=a?(r.re+=Op[n]*i/a,r.im+=-Op[n]*e.im/a):r.re=Op[n]<0?-1/0:1/0}t=new l(e.re+Np+.5,e.im);var o=Math.sqrt(2*Math.PI);e.re+=.5;var s=f(t,e);0===s.im?s.re*=o:(0===s.re||(s.re*=o),s.im*=o);var u=Math.exp(-t.re);return t.re=u*Math.cos(-t.im),t.im=u*Math.sin(-t.im),c(c(s,t),r)},BigNumber:function(e){if(e.isInteger())return e.isNegative()||e.isZero()?new a(1/0):function(e){if(e.isZero())return new a(1);var t=i.precision+(0|Math.log(e.toNumber())),r=new(a.clone({precision:t}))(e),n=e.toNumber()-1;for(;1<n;)r=r.times(n),n--;return new a(r.toPrecision(a.precision))}(e.minus(1));if(!e.isFinite())return new a(e.isNegative()?NaN:1/0);throw new Error("Integer BigNumber expected")},"Array | Matrix":function(e){return ae(e,p)}});return p}),Sp="factorial",jp=["typed","gamma"],Ap=Object(s.a)(Sp,jp,function(e){var t=e.typed,r=e.gamma,n=t(Sp,{number:function(e){if(e<0)throw new Error("Value must be non-negative");return r(e+1)},BigNumber:function(e){if(e.isNegative())throw new Error("Value must be non-negative");return r(e.plus(1))},"Array | Matrix":function(e){return ae(e,n)}});return n}),Cp="kldivergence",Tp=["typed","matrix","divide","sum","multiply","dotDivide","log","isNumeric"],_p=Object(s.a)(Cp,Tp,function(e){var t=e.typed,r=e.matrix,s=e.divide,u=e.sum,c=e.multiply,f=e.dotDivide,l=e.log,p=e.isNumeric;return t(Cp,{"Array, Array":function(e,t){return n(r(e),r(t))},"Matrix, Array":function(e,t){return n(e,r(t))},"Array, Matrix":function(e,t){return n(r(e),t)},"Matrix, Matrix":function(e,t){return n(e,t)}});function n(e,t){var r=t.size().length,n=e.size().length;if(1<r)throw new Error("first object must be one dimensional");if(1<n)throw new Error("second object must be one dimensional");if(r!==n)throw new Error("Length of two vectors must be equal");if(0===u(e))throw new Error("Sum of elements in first object must be non zero");if(0===u(t))throw new Error("Sum of elements in second object must be non zero");var i=s(e,u(e)),a=s(t,u(t)),o=u(c(i,l(f(i,a))));return p(o)?o:Number.NaN}}),Ip="multinomial",qp=["typed","add","divide","multiply","factorial","isInteger","isPositive"],Bp=Object(s.a)(Ip,qp,function(e){var t=e.typed,n=e.add,i=e.divide,a=e.multiply,o=e.factorial,s=e.isInteger,u=e.isPositive;return t(Ip,{"Array | Matrix":function(e){var t=0,r=1;return F(e,function(e){if(!s(e)||!u(e))throw new TypeError("Positive integer value expected in function multinomial");t=n(t,e),r=a(r,o(e))}),i(o(t),r)}})}),kp="permutations",zp=["typed","factorial"],Dp=Object(s.a)(kp,zp,function(e){var t=e.typed,r=e.factorial;return t(kp,{"number | BigNumber":r,"number, number":function(e,t){if(!Object(S.i)(e)||e<0)throw new TypeError("Positive integer value expected in function permutations");if(!Object(S.i)(t)||t<0)throw new TypeError("Positive integer value expected in function permutations");if(e<t)throw new TypeError("second argument k must be less than or equal to first argument n");return dp(e-t+1,e)},"BigNumber, BigNumber":function(e,t){var r,n;if(!Rp(e)||!Rp(t))throw new TypeError("Positive integer value expected in function permutations");if(t.gt(e))throw new TypeError("second argument k must be less than or equal to first argument n");for(r=e.mul(0).add(1),n=e.minus(t).plus(1);n.lte(e);n=n.plus(1))r=r.times(n);return r}})});function Rp(e){return e.isInteger()&&e.gte(0)}var Pp=r(15),Fp=r.n(Pp),Up=Fp()();function Lp(e){var t,r;return t=null===(r=e)?Up:Fp()(String(r)),function(){return t()}}var Hp=["typed","config","?on"],$p=Object(s.a)("pickRandom",Hp,function(e){var t=e.typed,r=e.config,n=e.on,m=Lp(r.randomSeed);return n&&n("config",function(e,t){e.randomSeed!==t.randomSeed&&(m=Lp(e.randomSeed))}),t({"Array | Matrix":function(e){return i(e)},"Array | Matrix, number":function(e,t){return i(e,t,void 0)},"Array | Matrix, Array":function(e,t){return i(e,void 0,t)},"Array | Matrix, Array | Matrix, number":function(e,t,r){return i(e,r,t)},"Array | Matrix, number, Array | Matrix":function(e,t,r){return i(e,t,r)}});function i(e,t,r){var n=void 0===t;if(n&&(t=1),e=e.valueOf(),r=r&&r.valueOf(),1<Object(I.a)(e).length)throw new Error("Only one dimensional vectors supported");var i=0;if(void 0!==r){if(r.length!==e.length)throw new Error("Weights must have the same length as possibles");for(var a=0,o=r.length;a<o;a++){if(!Object(ie.y)(r[a])||r[a]<0)throw new Error("Weights must be an array of positive numbers");i+=r[a]}}var s=e.length;if(0===s)return[];if(s<=t)return 1<t?e:e[0];for(var u,c=[];c.length<t;){if(void 0===r)u=e[Math.floor(m()*s)];else for(var f=m()*i,l=0,p=e.length;l<p;l++)if((f-=r[l])<0){u=e[l];break}-1===c.indexOf(u)&&c.push(u)}return n?c[0]:c}});function Gp(e,t){var r=[];if(1<(e=e.slice(0)).length)for(var n=0,i=e.shift();n<i;n++)r.push(Gp(e,t));else for(var a=0,o=e.shift();a<o;a++)r.push(t());return r}var Zp="random",Vp=["typed","config","?on"],Jp=Object(s.a)(Zp,Vp,function(e){var t=e.typed,r=e.config,n=e.on,i=Lp(r.randomSeed);return n&&n("config",function(e,t){e.randomSeed!==t.randomSeed&&(i=Lp(e.randomSeed))}),t(Zp,{"":function(){return o(0,1)},number:function(e){return o(0,e)},"number, number":function(e,t){return o(e,t)},"Array | Matrix":function(e){return a(e,0,1)},"Array | Matrix, number":function(e,t){return a(e,0,t)},"Array | Matrix, number, number":function(e,t,r){return a(e,t,r)}});function a(e,t,r){var n=Gp(e.valueOf(),function(){return o(t,r)});return Object(ie.v)(e)?e.create(n):n}function o(e,t){return e+i()*(t-e)}}),Wp="randomInt",Yp=["typed","config","?on"],Xp=Object(s.a)(Wp,Yp,function(e){var t=e.typed,r=e.config,n=e.on,i=Lp(r.randomSeed);return n&&n("config",function(e,t){e.randomSeed!==t.randomSeed&&(i=Lp(e.randomSeed))}),t(Wp,{"":function(){return o(0,1)},number:function(e){return o(0,e)},"number, number":function(e,t){return o(e,t)},"Array | Matrix":function(e){return a(e,0,1)},"Array | Matrix, number":function(e,t){return a(e,0,t)},"Array | Matrix, number, number":function(e,t,r){return a(e,t,r)}});function a(e,t,r){var n=Gp(e.valueOf(),function(){return o(t,r)});return Object(ie.v)(e)?e.create(n):n}function o(e,t){return Math.floor(e+i()*(t-e))}}),Qp="stirlingS2",Kp=["typed","addScalar","subtract","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","larger"],em=Object(s.a)(Qp,Kp,function(e){var t=e.typed,u=e.addScalar,c=e.subtract,f=e.multiplyScalar,l=e.divideScalar,p=e.pow,m=e.factorial,h=e.combinations,d=e.isNegative,y=e.isInteger,g=e.larger;return t(Qp,{"number | BigNumber, number | BigNumber":function(e,t){if(!y(e)||d(e)||!y(t)||d(t))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(g(t,e))throw new TypeError("k must be less than or equal to n in function stirlingS2");for(var r=m(t),n=0,i=0;i<=t;i++){var a=p(-1,c(t,i)),o=h(t,i),s=p(i,e);n=u(n,f(f(o,s),a))}return l(n,r)}})}),tm="bellNumbers",rm=["typed","addScalar","isNegative","isInteger","stirlingS2"],nm=Object(s.a)(tm,rm,function(e){var t=e.typed,n=e.addScalar,i=e.isNegative,a=e.isInteger,o=e.stirlingS2;return t(tm,{"number | BigNumber":function(e){if(!a(e)||i(e))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var t=0,r=0;r<=e;r++)t=n(t,o(e,r));return t}})}),im="catalan",am=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],om=Object(s.a)(im,am,function(e){var t=e.typed,r=e.addScalar,n=e.divideScalar,i=e.multiplyScalar,a=e.combinations,o=e.isNegative,s=e.isInteger;return t(im,{"number | BigNumber":function(e){if(!s(e)||o(e))throw new TypeError("Non-negative integer value expected in function catalan");return n(a(i(e,2),e),r(e,1))}})}),sm="composition",um=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],cm=Object(s.a)(sm,um,function(e){var t=e.typed,r=e.addScalar,n=e.combinations,i=e.isPositive,a=(e.isNegative,e.isInteger),o=e.larger;return t(sm,{"number | BigNumber, number | BigNumber":function(e,t){if(!(a(e)&&i(e)&&a(t)&&i(t)))throw new TypeError("Positive integer value expected in function composition");if(o(t,e))throw new TypeError("k must be less than or equal to n in function composition");return n(r(e,-1),r(t,-1))}})}),fm=["FunctionNode","OperatorNode","SymbolNode"],lm=Object(s.a)("simplifyUtil",fm,function(e){var r=e.FunctionNode,n=e.OperatorNode,i=e.SymbolNode,a={add:!0,multiply:!0},o={add:!0,multiply:!0};function s(e,t){if(!Object(ie.B)(e))return!1;var r=e.fn.toString();return t&&t.hasOwnProperty(r)&&t[r].hasOwnProperty("associative")?t[r].associative:o[r]||!1}function u(e){var i,a=[];return s(e)?(i=e.op,function e(t){for(var r=0;r<t.args.length;r++){var n=t.args[r];Object(ie.B)(n)&&i===n.op?e(n):a.push(n)}}(e),a):e.args}function c(t){return Object(ie.B)(t)?function(e){try{return new n(t.op,t.fn,e,t.implicit)}catch(e){return console.error(e),[]}}:function(e){return new r(new i(t.name),e)}}return{createMakeNodeFunction:c,isCommutative:function(e,t){if(!Object(ie.B)(e))return!0;var r=e.fn.toString();return t&&t.hasOwnProperty(r)&&t[r].hasOwnProperty("commutative")?t[r].commutative:a[r]||!1},isAssociative:s,flatten:function e(t){if(!t.args||0===t.args.length)return t;t.args=u(t);for(var r=0;r<t.args.length;r++)e(t.args[r])},allChildren:u,unflattenr:function e(t){if(t.args&&0!==t.args.length){for(var r=c(t),n=t.args.length,i=0;i<n;i++)e(t.args[i]);if(2<n&&s(t)){for(var a=t.args.pop();0<t.args.length;)a=r([t.args.pop(),a]);t.args=a.args}}},unflattenl:function e(t){if(t.args&&0!==t.args.length){for(var r=c(t),n=t.args.length,i=0;i<n;i++)e(t.args[i]);if(2<n&&s(t)){for(var a=t.args.shift();0<t.args.length;)a=r([a,t.args.shift()]);t.args=a.args}}}}}),pm=["equal","isZero","add","subtract","multiply","divide","pow","ConstantNode","OperatorNode","FunctionNode","ParenthesisNode"],mm=Object(s.a)("simplifyCore",pm,function(e){var f=e.equal,l=e.isZero,p=e.add,m=e.subtract,h=e.multiply,d=e.divide,y=e.pow,g=e.ConstantNode,v=e.OperatorNode,b=e.FunctionNode,x=e.ParenthesisNode,w=new g(0),N=new g(1);return function e(t){if(Object(ie.B)(t)&&t.isUnary()){var r=e(t.args[0]);if("+"===t.op)return r;if("-"===t.op){if(Object(ie.B)(r)){if(r.isUnary()&&"-"===r.op)return r.args[0];if(r.isBinary()&&"subtract"===r.fn)return new v("-","subtract",[r.args[1],r.args[0]])}return new v(t.op,t.fn,[r])}}else if(Object(ie.B)(t)&&t.isBinary()){var n=e(t.args[0]),i=e(t.args[1]);if("+"===t.op){if(Object(ie.l)(n)){if(l(n.value))return i;if(Object(ie.l)(i))return new g(p(n.value,i.value))}return Object(ie.l)(i)&&l(i.value)?n:Object(ie.B)(i)&&i.isUnary()&&"-"===i.op?new v("-","subtract",[n,i.args[0]]):new v(t.op,t.fn,i?[n,i]:[n])}if("-"===t.op){if(Object(ie.l)(n)&&i){if(Object(ie.l)(i))return new g(m(n.value,i.value));if(l(n.value))return new v("-","unaryMinus",[i])}if("subtract"===t.fn)return Object(ie.l)(i)&&l(i.value)?n:Object(ie.B)(i)&&i.isUnary()&&"-"===i.op?e(new v("+","add",[n,i.args[0]])):new v(t.op,t.fn,[n,i])}else{if("*"===t.op){if(Object(ie.l)(n)){if(l(n.value))return w;if(f(n.value,1))return i;if(Object(ie.l)(i))return new g(h(n.value,i.value))}if(Object(ie.l)(i)){if(l(i.value))return w;if(f(i.value,1))return n;if(Object(ie.B)(n)&&n.isBinary()&&n.op===t.op){var a=n.args[0];if(Object(ie.l)(a)){var o=new g(h(a.value,i.value));return new v(t.op,t.fn,[o,n.args[1]],t.implicit)}}return new v(t.op,t.fn,[i,n],t.implicit)}return new v(t.op,t.fn,[n,i],t.implicit)}if("/"===t.op){if(Object(ie.l)(n)){if(l(n.value))return w;if(Object(ie.l)(i)&&(f(i.value,1)||f(i.value,2)||f(i.value,4)))return new g(d(n.value,i.value))}return new v(t.op,t.fn,[n,i])}if("^"===t.op){if(Object(ie.l)(i)){if(l(i.value))return N;if(f(i.value,1))return n;if(Object(ie.l)(n))return new g(y(n.value,i.value));if(Object(ie.B)(n)&&n.isBinary()&&"^"===n.op){var s=n.args[1];if(Object(ie.l)(s))return new v(t.op,t.fn,[n.args[0],new g(h(s.value,i.value))])}}return new v(t.op,t.fn,[n,i])}}}else{if(Object(ie.C)(t)){var u=e(t.content);return Object(ie.C)(u)||Object(ie.J)(u)||Object(ie.l)(u)?u:new x(u)}if(Object(ie.r)(t)){var c=t.args.map(e).map(function(e){return Object(ie.C)(e)?e.content:e});return new b(e(t.fn),c)}}return t}}),hm=["typed","config","mathWithTransform","?fraction","?bignumber","ConstantNode","OperatorNode","FunctionNode","SymbolNode"],dm=Object(s.a)("simplifyConstant",hm,function(e){var t=e.typed,r=e.config,p=e.mathWithTransform,n=e.fraction,i=e.bignumber,a=e.ConstantNode,o=e.OperatorNode,m=e.FunctionNode,s=e.SymbolNode,u=lm({FunctionNode:m,OperatorNode:o,SymbolNode:s}),h=u.isCommutative,d=u.isAssociative,y=u.allChildren,g=u.createMakeNodeFunction;function v(t,r,n){try{return x(p[t].apply(null,r),n)}catch(e){return r=r.map(function(e){return Object(ie.o)(e)?e.valueOf():e}),x(p[t].apply(null,r),n)}}var b=t({Fraction:function(e){var t,r=e.s*e.n;t=r<0?new o("-","unaryMinus",[new a(-r)]):new a(r);return 1!==e.d?new o("/","divide",[t,new a(e.d)]):t},number:function(e){return e<0?f(new a(-e)):new a(e)},BigNumber:function(e){return e<0?f(new a(-e)):new a(e)},Complex:function(e){throw new Error("Cannot convert Complex number to Node")}});function c(e,t){if(t&&!1!==t.exactFractions&&isFinite(e)&&n){var r=n(e);if(r.valueOf()===e)return r}return e}var x=t({"string, Object":function(e,t){return"BigNumber"===r.number?(void 0===i&&wi(),i(e)):"Fraction"===r.number?(void 0===n&&Ni(),n(e)):c(parseFloat(e),t)},"Fraction, Object":function(e,t){return e},"BigNumber, Object":function(e,t){return e},"number, Object":function(e,t){return c(e,t)},"Complex, Object":function(e,t){return 0!==e.im?e:c(e.re,t)}});function f(e){return new o("-","unaryMinus",[e])}function w(r,e,n,i){return e.reduce(function(e,t){if(Object(ie.w)(e)||Object(ie.w)(t))Object(ie.w)(e)?Object(ie.w)(t)||(t=b(t)):e=b(e);else{try{return v(r,[e,t],i)}catch(e){}e=b(e),t=b(t)}return n([e,t])})}return function(e,t){var r=function t(e,r){switch(e.type){case"SymbolNode":return e;case"ConstantNode":return"number"!=typeof e.value&&isNaN(e.value)?e:x(e.value,r);case"FunctionNode":if(p[e.name]&&p[e.name].rawArgs)return e;var n=["add","multiply"];if(-1===n.indexOf(e.name)){var i=e.args.map(function(e){return t(e,r)});if(!i.some(ie.w))try{return v(e.name,i,r)}catch(e){}return i=i.map(function(e){return Object(ie.w)(e)?e:b(e)}),new m(e.name,i)}case"OperatorNode":var a,o,s=e.fn.toString(),u=g(e);if(Object(ie.B)(e)&&e.isUnary())a=[t(e.args[0],r)],o=Object(ie.w)(a[0])?u(a):v(s,a,r);else if(d(e))if(a=(a=y(e)).map(function(e){return t(e,r)}),h(s)){for(var c=[],f=[],l=0;l<a.length;l++)Object(ie.w)(a[l])?f.push(a[l]):c.push(a[l]);o=1<c.length?(o=w(s,c,u,r),f.unshift(o),w(s,f,u,r)):w(s,a,u,r)}else o=w(s,a,u,r);else a=e.args.map(function(e){return t(e,r)}),o=w(s,a,u,r);return o;case"ParenthesisNode":return t(e.content,r);case"AccessorNode":case"ArrayNode":case"AssignmentNode":case"BlockNode":case"FunctionAssignmentNode":case"IndexNode":case"ObjectNode":case"RangeNode":case"ConditionalNode":default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(e.type))}}(e,t);return Object(ie.w)(r)?r:b(r)}}),ym=["parse","FunctionNode","OperatorNode","ParenthesisNode"],gm=Object(s.a)("resolve",ym,function(e){var o=e.parse,s=e.FunctionNode,u=e.OperatorNode,c=e.ParenthesisNode;return function t(e,r){if(!r)return e;if(Object(ie.J)(e)){var n=r[e.name];if(Object(ie.w)(n))return t(n,r);if("number"==typeof n)return o(String(n))}else{if(Object(ie.B)(e)){var i=e.args.map(function(e){return t(e,r)});return new u(e.op,e.fn,i,e.implicit)}if(Object(ie.C)(e))return new c(t(e.content,r));if(Object(ie.r)(e)){var a=e.args.map(function(e){return t(e,r)});return new s(e.name,a)}}return e}});function vm(e){return(vm="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)}var bm=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","?fraction","?bignumber","mathWithTransform","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],xm=Object(s.a)("simplify",bm,function(e){var t=e.config,r=e.typed,c=e.parse,n=e.add,i=e.subtract,a=e.multiply,o=e.divide,s=e.pow,u=e.isZero,l=e.equal,f=e.fraction,p=e.bignumber,m=e.mathWithTransform,h=e.ConstantNode,d=e.FunctionNode,y=e.OperatorNode,g=e.ParenthesisNode,v=e.SymbolNode,b=dm({typed:r,config:t,mathWithTransform:m,fraction:f,bignumber:p,ConstantNode:h,OperatorNode:y,FunctionNode:d,SymbolNode:v}),x=mm({equal:l,isZero:u,add:n,subtract:i,multiply:a,divide:o,pow:s,ConstantNode:h,OperatorNode:y,FunctionNode:d,ParenthesisNode:g}),w=gm({parse:c,FunctionNode:d,OperatorNode:y,ParenthesisNode:g}),N=lm({FunctionNode:d,OperatorNode:y,SymbolNode:v}),O=N.isCommutative,M=N.isAssociative,E=N.flatten,S=N.unflattenr,j=N.unflattenl,A=N.createMakeNodeFunction,C=r("simplify",{string:function(e){return C(c(e),C.rules,{},{})},"string, Object":function(e,t){return C(c(e),C.rules,t,{})},"string, Object, Object":function(e,t,r){return C(c(e),C.rules,t,r)},"string, Array":function(e,t){return C(c(e),t,{},{})},"string, Array, Object":function(e,t,r){return C(c(e),t,r,{})},"string, Array, Object, Object":function(e,t,r,n){return C(c(e),t,r,n)},"Node, Object":function(e,t){return C(e,C.rules,t,{})},"Node, Object, Object":function(e,t,r){return C(e,C.rules,t,r)},Node:function(e){return C(e,C.rules,{},{})},"Node, Array":function(e,t){return C(e,t,{},{})},"Node, Array, Object":function(e,t,r){return C(e,t,r,{})},"Node, Array, Object, Object":function(e,t,r,n){t=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r],i=void 0,a=vm(n);switch(a){case"string":var o=n.split("->");if(2!==o.length)throw SyntaxError("Could not parse rule: "+n);n={l:o[0],r:o[1]};case"object":if(i={l:T(c(n.l)),r:T(c(n.r))},n.context&&(i.evaluate=n.context),n.evaluate&&(i.evaluate=c(n.evaluate)),M(i.l)){var s=A(i.l),u=new v("_p"+I++);i.expanded={},i.expanded.l=s([i.l.clone(),u]),E(i.expanded.l),S(i.expanded.l),i.expanded.r=s([i.r,u])}break;case"function":i=n;break;default:throw TypeError("Unsupported type of rule: "+a)}t.push(i)}return t}(t);for(var i=w(e,r),a={},o=(i=T(i)).toString({parenthesis:"all"});!a[o];){a[o]=!0;for(var s=I=0;s<t.length;s++)i="function"==typeof t[s]?t[s](i,n):(E(i),q(i,t[s])),j(i);o=i.toString({parenthesis:"all"})}return i}});function T(e){return e.transform(function(e,t,r){return Object(ie.C)(e)?T(e.content):e})}C.simplifyCore=x,C.resolve=w;var _={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};C.rules=[x,{l:"log(e)",r:"1"},{l:"n-n1",r:"n+-n1"},{l:"-(c*v)",r:"(-c) * v"},{l:"-v",r:"(-1) * v"},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{l:"(n ^ n1) ^ n2",r:"n ^ (n1 * n2)"},{l:"n*n",r:"n^2"},{l:"n * n^n1",r:"n^(n1+1)"},{l:"n^n1 * n^n2",r:"n^(n1+n2)"},{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},{l:"n1*n2 + n2",r:"(n1+1)*n2"},{l:"n1*n3 + n2*n3",r:"(n1+n2)*n3"},{l:"n1 + -1 * (n2 + n3)",r:"n1 + -1 * n2 + -1 * n3"},b,{l:"(-n)*n1",r:"-(n*n1)"},{l:"c+v",r:"v+c",context:{add:{commutative:!1}}},{l:"v*c",r:"c*v",context:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"n-(n1+n2)",r:"n-n1-n2"},{l:"1*n",r:"n"}];var I=0;var q=r("applyRule",{"Node, Object":function(e,t){var r=e;if(r instanceof y||r instanceof d){if(r.args)for(var n=0;n<r.args.length;n++)r.args[n]=q(r.args[n],t)}else r instanceof g&&r.content&&(r.content=q(r.content,t));var i=t.r,a=z(t.l,r)[0];if(!a&&t.expanded&&(i=t.expanded.r,a=z(t.expanded.l,r)[0]),a){var o=r.implicit;r=i.clone(),o&&"implicit"in i&&(r.implicit=!0),r=r.transform(function(e){return e.isSymbolNode&&a.placeholders.hasOwnProperty(e.name)?a.placeholders[e.name].clone():e})}return r}});function B(e,t){var r={placeholders:{}};if(!e.placeholders&&!t.placeholders)return r;if(!e.placeholders)return t;if(!t.placeholders)return e;for(var n in e.placeholders)if(r.placeholders[n]=e.placeholders[n],t.placeholders.hasOwnProperty(n)&&!D(e.placeholders[n],t.placeholders[n]))return null;for(var i in t.placeholders)r.placeholders[i]=t.placeholders[i];return r}function k(e,t){var r,n=[];if(0===e.length||0===t.length)return n;for(var i=0;i<e.length;i++)for(var a=0;a<t.length;a++)(r=B(e[i],t[a]))&&n.push(r);return n}function z(e,t,r){var n=[{placeholders:{}}];if(e instanceof y&&t instanceof y||e instanceof d&&t instanceof d){if(e instanceof y){if(e.op!==t.op||e.fn!==t.fn)return[]}else if(e instanceof d&&e.name!==t.name)return[];if((1!==t.args.length||1!==e.args.length)&&M(t)&&!r){if(2<=t.args.length&&2===e.args.length){for(var i=function(e,t){var r,n,i=[],a=A(e);if(O(e,t))for(var o=0;o<e.args.length;o++)(n=e.args.slice(0)).splice(o,1),r=1===n.length?n[0]:a(n),i.push(a([e.args[o],r]));else r=1===(n=e.args.slice(1)).length?n[0]:a(n),i.push(a([e.args[0],r]));return i}(t,e.context),a=[],o=0;o<i.length;o++){var s=z(e,i[o],!0);a=a.concat(s)}return a}if(2<e.args.length)throw Error("Unexpected non-binary associative function: "+e.toString());return[]}for(var u=[],c=0;c<e.args.length;c++){var f=z(e.args[c],t.args[c]);if(0===f.length)return[];u.push(f)}n=function(e){if(0===e.length)return e;for(var t=e.reduce(k),r=[],n={},i=0;i<t.length;i++){var a=JSON.stringify(t[i]);n[a]||(n[a]=!0,r.push(t[i]))}return r}(u)}else if(e instanceof v){if(0===e.name.length)throw new Error("Symbol in rule has 0 length...!?");if(_[e.name]){if(e.name!==t.name)return[]}else if("n"===e.name[0]||"_p"===e.name.substring(0,2))n[0].placeholders[e.name]=t;else if("v"===e.name[0]){if(Object(ie.l)(t))return[];n[0].placeholders[e.name]=t}else{if("c"!==e.name[0])throw new Error("Invalid symbol in rule: "+e.name);if(!(t instanceof h))return[];n[0].placeholders[e.name]=t}}else{if(!(e instanceof h))return[];if(!l(e.value,t.value))return[]}return n}function D(e,t){if(e instanceof h&&t instanceof h){if(!l(e.value,t.value))return!1}else if(e instanceof v&&t instanceof v){if(e.name!==t.name)return!1}else{if(!(e instanceof y&&t instanceof y||e instanceof d&&t instanceof d))return!1;if(e instanceof y){if(e.op!==t.op||e.fn!==t.fn)return!1}else if(e instanceof d&&e.name!==t.name)return!1;if(e.args.length!==t.args.length)return!1;for(var r=0;r<e.args.length;r++)if(!D(e.args[r],t.args[r]))return!1}return!0}return C}),wm=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],Nm=Object(s.a)("derivative",wm,function(e){var t=e.typed,r=e.config,n=e.parse,a=e.simplify,l=e.equal,p=e.isZero,i=e.numeric,o=e.ConstantNode,m=e.FunctionNode,h=e.OperatorNode,s=e.ParenthesisNode,f=e.SymbolNode,u=t("derivative",{"Node, SymbolNode, Object":function(e,t,r){var n={};d(n,e,t.name);var i=y(e,n);return r.simplify?a(i):i},"Node, SymbolNode":function(e,t){return u(e,t,{simplify:!0})},"string, SymbolNode":function(e,t){return u(n(e),t)},"string, SymbolNode, Object":function(e,t,r){return u(n(e),t,r)},"string, string":function(e,t){return u(n(e),n(t))},"string, string, Object":function(e,t,r){return u(n(e),n(t),r)},"Node, string":function(e,t){return u(e,n(t))},"Node, string, Object":function(e,t,r){return u(e,n(t),r)}});u._simplify=!0,u.toTex=function(e){return c.apply(null,e.args)};var c=t("_derivTex",{"Node, SymbolNode":function(e,t){return Object(ie.l)(e)&&"string"===Object(ie.M)(e.value)?c(n(e.value).toString(),t.toString(),1):c(e.toString(),t.toString(),1)},"Node, ConstantNode":function(e,t){if("string"===Object(ie.M)(t.value))return c(e,n(t.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(e,t,r){return c(e.toString(),t.name,r.value)},"string, string, number":function(e,t,r){return(1===r?"{d\\over d"+t+"}":"{d^{"+r+"}\\over d"+t+"^{"+r+"}}")+"\\left[".concat(e,"\\right]")}}),d=t("constTag",{"Object, ConstantNode, string":function(e,t){return e[t]=!0},"Object, SymbolNode, string":function(e,t,r){return t.name!==r&&(e[t]=!0)},"Object, ParenthesisNode, string":function(e,t,r){return d(e,t.content,r)},"Object, FunctionAssignmentNode, string":function(e,t,r){return-1===t.params.indexOf(r)?e[t]=!0:d(e,t.expr,r)},"Object, FunctionNode | OperatorNode, string":function(e,t,r){if(0<t.args.length){for(var n=d(e,t.args[0],r),i=1;i<t.args.length;++i)n=d(e,t.args[i],r)&&n;if(n)return e[t]=!0}return!1}}),y=t("_derivative",{"ConstantNode, Object":function(e){return g(0)},"SymbolNode, Object":function(e,t){return void 0!==t[e]?g(0):g(1)},"ParenthesisNode, Object":function(e,t){return new s(y(e.content,t))},"FunctionAssignmentNode, Object":function(e,t){return void 0!==t[e]?g(0):y(e.expr,t)},"FunctionNode, Object":function(e,t){if(1!==e.args.length&&function(e){if(("log"===e.name||"nthRoot"===e.name||"pow"===e.name)&&2===e.args.length)return;for(var t=0;t<e.args.length;++t)e.args[t]=g(0);throw e.compile().evaluate(),new Error("Expected TypeError, but none found")}(e),void 0!==t[e])return g(0);var r,n,i,a,o=e.args[0],s=!1,u=!1;switch(e.name){case"cbrt":s=!0,n=new h("*","multiply",[g(3),new h("^","pow",[o,new h("/","divide",[g(2),g(3)])])]);break;case"sqrt":case"nthRoot":if(1===e.args.length)s=!0,n=new h("*","multiply",[g(2),new m("sqrt",[o])]);else if(2===e.args.length)return t[r=new h("/","divide",[g(1),e.args[1]])]=t[e.args[1]],y(new h("^","pow",[o,r]),t);break;case"log10":r=g(10);case"log":if(r||1!==e.args.length){if(1===e.args.length&&r||2===e.args.length&&void 0!==t[e.args[1]])n=new h("*","multiply",[o.clone(),new m("log",[r||e.args[1]])]),s=!0;else if(2===e.args.length)return y(new h("/","divide",[new m("log",[o]),new m("log",[e.args[1]])]),t)}else n=o.clone(),s=!0;break;case"pow":return t[r]=t[e.args[1]],y(new h("^","pow",[o,e.args[1]]),t);case"exp":n=new m("exp",[o.clone()]);break;case"sin":n=new m("cos",[o.clone()]);break;case"cos":n=new h("-","unaryMinus",[new m("sin",[o.clone()])]);break;case"tan":n=new h("^","pow",[new m("sec",[o.clone()]),g(2)]);break;case"sec":n=new h("*","multiply",[e,new m("tan",[o.clone()])]);break;case"csc":u=!0,n=new h("*","multiply",[e,new m("cot",[o.clone()])]);break;case"cot":u=!0,n=new h("^","pow",[new m("csc",[o.clone()]),g(2)]);break;case"asin":s=!0,n=new m("sqrt",[new h("-","subtract",[g(1),new h("^","pow",[o.clone(),g(2)])])]);break;case"acos":u=s=!0,n=new m("sqrt",[new h("-","subtract",[g(1),new h("^","pow",[o.clone(),g(2)])])]);break;case"atan":s=!0,n=new h("+","add",[new h("^","pow",[o.clone(),g(2)]),g(1)]);break;case"asec":s=!0,n=new h("*","multiply",[new m("abs",[o.clone()]),new m("sqrt",[new h("-","subtract",[new h("^","pow",[o.clone(),g(2)]),g(1)])])]);break;case"acsc":u=s=!0,n=new h("*","multiply",[new m("abs",[o.clone()]),new m("sqrt",[new h("-","subtract",[new h("^","pow",[o.clone(),g(2)]),g(1)])])]);break;case"acot":u=s=!0,n=new h("+","add",[new h("^","pow",[o.clone(),g(2)]),g(1)]);break;case"sinh":n=new m("cosh",[o.clone()]);break;case"cosh":n=new m("sinh",[o.clone()]);break;case"tanh":n=new h("^","pow",[new m("sech",[o.clone()]),g(2)]);break;case"sech":u=!0,n=new h("*","multiply",[e,new m("tanh",[o.clone()])]);break;case"csch":u=!0,n=new h("*","multiply",[e,new m("coth",[o.clone()])]);break;case"coth":u=!0,n=new h("^","pow",[new m("csch",[o.clone()]),g(2)]);break;case"asinh":s=!0,n=new m("sqrt",[new h("+","add",[new h("^","pow",[o.clone(),g(2)]),g(1)])]);break;case"acosh":s=!0,n=new m("sqrt",[new h("-","subtract",[new h("^","pow",[o.clone(),g(2)]),g(1)])]);break;case"atanh":s=!0,n=new h("-","subtract",[g(1),new h("^","pow",[o.clone(),g(2)])]);break;case"asech":u=s=!0,n=new h("*","multiply",[o.clone(),new m("sqrt",[new h("-","subtract",[g(1),new h("^","pow",[o.clone(),g(2)])])])]);break;case"acsch":u=s=!0,n=new h("*","multiply",[new m("abs",[o.clone()]),new m("sqrt",[new h("+","add",[new h("^","pow",[o.clone(),g(2)]),g(1)])])]);break;case"acoth":u=s=!0,n=new h("-","subtract",[g(1),new h("^","pow",[o.clone(),g(2)])]);break;case"abs":n=new h("/","divide",[new m(new f("abs"),[o.clone()]),o.clone()]);break;case"gamma":default:throw new Error('Function "'+e.name+'" is not supported by derivative, or a wrong number of arguments is passed')}a=s?(i="/","divide"):(i="*","multiply");var c=y(o,t);return u&&(c=new h("-","unaryMinus",[c])),new h(i,a,[c,n])},"OperatorNode, Object":function(e,r){if(void 0!==r[e])return g(0);if("+"===e.op)return new h(e.op,e.fn,e.args.map(function(e){return y(e,r)}));if("-"===e.op){if(e.isUnary())return new h(e.op,e.fn,[y(e.args[0],r)]);if(e.isBinary())return new h(e.op,e.fn,[y(e.args[0],r),y(e.args[1],r)])}if("*"===e.op){var t=e.args.filter(function(e){return void 0!==r[e]});if(0<t.length){var n=e.args.filter(function(e){return void 0===r[e]}),i=1===n.length?n[0]:new h("*","multiply",n),a=t.concat(y(i,r));return new h("*","multiply",a)}return new h("+","add",e.args.map(function(t){return new h("*","multiply",e.args.map(function(e){return e===t?y(e,r):e.clone()}))}))}if("/"===e.op&&e.isBinary()){var o=e.args[0],s=e.args[1];return void 0!==r[s]?new h("/","divide",[y(o,r),s]):void 0!==r[o]?new h("*","multiply",[new h("-","unaryMinus",[o]),new h("/","divide",[y(s,r),new h("^","pow",[s.clone(),g(2)])])]):new h("/","divide",[new h("-","subtract",[new h("*","multiply",[y(o,r),s.clone()]),new h("*","multiply",[o.clone(),y(s,r)])]),new h("^","pow",[s.clone(),g(2)])])}if("^"===e.op&&e.isBinary()){var u=e.args[0],c=e.args[1];if(void 0!==r[u])return Object(ie.l)(u)&&(p(u.value)||l(u.value,1))?g(0):new h("*","multiply",[e,new h("*","multiply",[new m("log",[u.clone()]),y(c.clone(),r)])]);if(void 0===r[c])return new h("*","multiply",[new h("^","pow",[u.clone(),c.clone()]),new h("+","add",[new h("*","multiply",[y(u,r),new h("/","divide",[c.clone(),u.clone()])]),new h("*","multiply",[y(c,r),new m("log",[u.clone()])])])]);if(Object(ie.l)(c)){if(p(c.value))return g(0);if(l(c.value,1))return y(u,r)}var f=new h("^","pow",[u.clone(),new h("-","subtract",[c,g(1)])]);return new h("*","multiply",[c.clone(),new h("*","multiply",[y(u,r),f])])}throw new Error('Operator "'+e.op+'" is not supported by derivative, or a wrong number of arguments is passed')}});function g(e,t){return new o(i(e,t||r.number))}return u}),Om="rationalize",Mm=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplify","?bignumber","?fraction","mathWithTransform","ConstantNode","OperatorNode","FunctionNode","SymbolNode","ParenthesisNode"],Em=Object(s.a)(Om,Mm,function(e){var t=e.config,r=e.typed,n=e.equal,i=e.isZero,a=e.add,o=e.subtract,s=e.multiply,u=e.divide,c=e.pow,f=e.parse,m=e.simplify,l=e.fraction,p=e.bignumber,h=e.mathWithTransform,d=e.ConstantNode,y=e.OperatorNode,g=e.FunctionNode,v=e.SymbolNode,b=e.ParenthesisNode,x=dm({typed:r,config:t,mathWithTransform:h,fraction:l,bignumber:p,ConstantNode:d,OperatorNode:y,FunctionNode:g,SymbolNode:v}),w=mm({equal:n,isZero:i,add:a,subtract:o,multiply:s,divide:u,pow:c,ConstantNode:d,OperatorNode:y,FunctionNode:g,ParenthesisNode:b}),N=r(Om,{string:function(e){return N(f(e),{},!1)},"string, boolean":function(e,t){return N(f(e),{},t)},"string, Object":function(e,t){return N(f(e),t,!1)},"string, Object, boolean":function(e,t,r){return N(f(e),t,r)},Node:function(e){return N(e,{},!1)},"Node, boolean":function(e,t){return N(e,{},t)},"Node, Object":function(e,t){return N(e,t,!1)},"Node, Object, boolean":function(e,t,r){var n=function(){var e=[w,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},x,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],t=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],r=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],n={};return n.firstRules=e.concat(t,r),n.distrDivRules=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],n.sucDivRules=r,n.firstRulesAgain=e.concat(t),n.finalRules=[w,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},x,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],n}(),i=function(e,t,r,n){var o=[],i=m(e,n,t,{exactFractions:!1}),s="+-*"+((r=!!r)?"/":"");!function e(t){var r=t.type;{if("FunctionNode"===r)throw new Error("There is an unsolved function call");if("OperatorNode"===r)if("^"===t.op){if("unaryMinus"===t.args[1].fn&&(t=t.args[0]),"ConstantNode"!==t.args[1].type||!Object(S.i)(parseFloat(t.args[1].value)))throw new Error("There is a non-integer exponent");e(t.args[0])}else{if(-1===s.indexOf(t.op))throw new Error("Operator "+t.op+" invalid in polynomial expression");for(var n=0;n<t.args.length;n++)e(t.args[n])}else if("SymbolNode"===r){var i=t.name,a=o.indexOf(i);-1===a&&o.push(i)}else if("ParenthesisNode"===r)e(t.content);else if("ConstantNode"!==r)throw new Error("type "+r+" is not allowed in polynomial expression")}}(i);var a={};return a.expression=i,a.variables=o,a}(e,t,!0,n.firstRules),a=i.variables.length;if(e=i.expression,1<=a){var o,s;e=function e(t,r,n){var i=t.type;var a=1<arguments.length;if("OperatorNode"===i&&t.isBinary()){var o,s=!1;if("^"===t.op&&("ParenthesisNode"!==t.args[0].type&&"OperatorNode"!==t.args[0].type||"ConstantNode"!==t.args[1].type||(o=parseFloat(t.args[1].value),s=2<=o&&Object(S.i)(o))),s){if(2<o){var u=t.args[0],c=new y("^","pow",[t.args[0].cloneDeep(),new d(o-1)]);t=new y("*","multiply",[u,c])}else t=new y("*","multiply",[t.args[0],t.args[0].cloneDeep()]);a&&("content"===n?r.content=t:r.args[n]=t)}}if("ParenthesisNode"===i)e(t.content,t,"content");else if("ConstantNode"!==i&&"SymbolNode"!==i)for(var f=0;f<t.args.length;f++)e(t.args[f],t,f);if(!a)return t}(e);var u,c=!0,f=!1;for(e=m(e,n.firstRules,{},{exactFractions:!1});s=c?n.distrDivRules:n.sucDivRules,c=!c,(u=(e=m(e,s)).toString())!==o;)f=!0,o=u;f&&(e=m(e,n.firstRulesAgain,{},{exactFractions:!1})),e=m(e,n.finalRules,{},{exactFractions:!1})}var l=[],p={};return"OperatorNode"===e.type&&e.isBinary()&&"/"===e.op?(1===a&&(e.args[0]=O(e.args[0],l),e.args[1]=O(e.args[1])),r&&(p.numerator=e.args[0],p.denominator=e.args[1])):(1===a&&(e=O(e,l)),r&&(p.numerator=e,p.denominator=null)),r?(p.coefficients=l,p.variables=i.variables,p.expression=e,p):e}});function O(e,u){void 0===u&&(u=[]);var t={cte:1,oper:"+",fire:""},c=u[0]=0,f="";!function e(t,r,n){var i=t.type;{if("FunctionNode"===i)throw new Error("There is an unsolved function call");if("OperatorNode"===i){if(-1==="+-*^".indexOf(t.op))throw new Error("Operator "+t.op+" invalid");if(null!==r){if(("unaryMinus"===t.fn||"pow"===t.fn)&&"add"!==r.fn&&"subtract"!==r.fn&&"multiply"!==r.fn)throw new Error("Invalid "+t.op+" placing");if(("subtract"===t.fn||"add"===t.fn||"multiply"===t.fn)&&"add"!==r.fn&&"subtract"!==r.fn)throw new Error("Invalid "+t.op+" placing");if(("subtract"===t.fn||"add"===t.fn||"unaryMinus"===t.fn)&&0!==n.noFil)throw new Error("Invalid "+t.op+" placing")}"^"!==t.op&&"*"!==t.op||(n.fire=t.op);for(var a=0;a<t.args.length;a++)"unaryMinus"===t.fn&&(n.oper="-"),"+"!==t.op&&"subtract"!==t.fn||(n.fire="",n.cte=1,n.oper=0===a?"+":t.op),n.noFil=a,e(t.args[a],t,n)}else if("SymbolNode"===i){if(t.name!==f&&""!==f)throw new Error("There is more than one variable");if(f=t.name,null===r)return void(u[1]=1);if("^"===r.op&&0!==n.noFil)throw new Error("In power the variable should be the first parameter");if("*"===r.op&&1!==n.noFil)throw new Error("In multiply the variable should be the second parameter");""!==n.fire&&"*"!==n.fire||(c<1&&(u[1]=0),u[1]+=n.cte*("+"===n.oper?1:-1),c=Math.max(1,c))}else{if("ConstantNode"!==i)throw new Error("Type "+i+" is not allowed");var o=parseFloat(t.value);if(null===r)return void(u[0]=o);if("^"===r.op){if(1!==n.noFil)throw new Error("Constant cannot be powered");if(!Object(S.i)(o)||o<=0)throw new Error("Non-integer exponent is not allowed");for(var s=c+1;s<o;s++)u[s]=0;return c<o&&(u[o]=0),u[o]+=n.cte*("+"===n.oper?1:-1),void(c=Math.max(o,c))}n.cte=o,""===n.fire&&(u[0]+=n.cte*("+"===n.oper?1:-1))}}}(e,null,t);for(var r,n=!0,i=c=u.length-1;0<=i;i--)if(0!==u[i]){var a=new d(n?u[i]:Math.abs(u[i])),o=u[i]<0?"-":"+";if(0<i){var s=new v(f);if(1<i){var l=new d(i);s=new y("^","pow",[s,l])}a=-1===u[i]&&n?new y("-","unaryMinus",[s]):1===Math.abs(u[i])?s:new y("*","multiply",[a,s])}r=n?a:"+"==o?new y("+","add",[r,a]):new y("-","subtract",[r,a]),n=!1}return n?new d(0):r}return N}),Sm=["classes"],jm=Object(s.a)("reviver",Sm,function(e){var n=e.classes;return function(e,t){var r=n[t&&t.mathjs];return r&&"function"==typeof r.fromJSON?r.fromJSON(t):t}}),Am=Math.PI,Cm=2*Math.PI,Tm=Math.E,_m=Object(s.a)("true",[],function(){return!0}),Im=Object(s.a)("false",[],function(){return!1}),qm=Object(s.a)("null",[],function(){return null}),Bm=Ym("Infinity",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?new r(1/0):1/0}),km=Ym("NaN",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?new r(NaN):NaN}),zm=Ym("pi",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?vs(r):Am}),Dm=Ym("tau",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?bs(r):Cm}),Rm=Ym("e",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?ys(r):Tm}),Pm=Ym("phi",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?gs(r):1.618033988749895}),Fm=Ym("LN2",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?new r(2).ln():Math.LN2}),Um=Ym("LN10",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?new r(10).ln():Math.LN10}),Lm=Ym("LOG2E",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?new r(1).div(new r(2).ln()):Math.LOG2E}),Hm=Ym("LOG10E",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?new r(1).div(new r(10).ln()):Math.LOG10E}),$m=Ym("SQRT1_2",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?new r("0.5").sqrt():Math.SQRT1_2}),Gm=Ym("SQRT2",["config","?BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?new r(2).sqrt():Math.SQRT2}),Zm=Ym("i",["Complex"],function(e){return e.Complex.I}),Vm=Object(s.a)("PI",["pi"],function(e){return e.pi}),Jm=Object(s.a)("E",["e"],function(e){return e.e}),Wm=Object(s.a)("version",[],function(){return"6.0.2"});function Ym(e,t,r){return Object(s.a)(e,t,r,{recreateOnConfigChange:!0})}var Xm=Vh("speedOfLight","299792458","m s^-1"),Qm=Vh("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),Km=Vh("planckConstant","6.62607015e-34","J s"),eh=Vh("reducedPlanckConstant","1.0545718176461565e-34","J s"),th=Vh("magneticConstant","1.25663706212e-6","N A^-2"),rh=Vh("electricConstant","8.8541878128e-12","F m^-1"),nh=Vh("vacuumImpedance","376.730313667","ohm"),ih=Vh("coulomb","8.987551792261171e9","N m^2 C^-2"),ah=Vh("elementaryCharge","1.602176634e-19","C"),oh=Vh("bohrMagneton","9.2740100783e-24","J T^-1"),sh=Vh("conductanceQuantum","7.748091729863649e-5","S"),uh=Vh("inverseConductanceQuantum","12906.403729652257","ohm"),ch=Vh("magneticFluxQuantum","2.0678338484619295e-15","Wb"),fh=Vh("nuclearMagneton","5.0507837461e-27","J T^-1"),lh=Vh("klitzing","25812.807459304513","ohm"),ph=Vh("bohrRadius","5.29177210903e-11","m"),mh=Vh("classicalElectronRadius","2.8179403262e-15","m"),hh=Vh("electronMass","9.1093837015e-31","kg"),dh=Vh("fermiCoupling","1.1663787e-5","GeV^-2"),yh=Jh("fineStructure",.0072973525693),gh=Vh("hartreeEnergy","4.3597447222071e-18","J"),vh=Vh("protonMass","1.67262192369e-27","kg"),bh=Vh("deuteronMass","3.3435830926e-27","kg"),xh=Vh("neutronMass","1.6749271613e-27","kg"),wh=Vh("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),Nh=Vh("rydberg","10973731.568160","m^-1"),Oh=Vh("thomsonCrossSection","6.6524587321e-29","m^2"),Mh=Jh("weakMixingAngle",.2229),Eh=Jh("efimovFactor",22.7),Sh=Vh("atomicMass","1.66053906660e-27","kg"),jh=Vh("avogadro","6.02214076e23","mol^-1"),Ah=Vh("boltzmann","1.380649e-23","J K^-1"),Ch=Vh("faraday","96485.33212331001","C mol^-1"),Th=Vh("firstRadiation","3.7417718521927573e-16","W m^2"),_h=Vh("loschmidt","2.686780111798444e25","m^-3"),Ih=Vh("gasConstant","8.31446261815324","J K^-1 mol^-1"),qh=Vh("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),Bh=Vh("molarVolume","0.022413969545014137","m^3 mol^-1"),kh=Jh("sackurTetrode",-1.16487052358),zh=Vh("secondRadiation","0.014387768775039337","m K"),Dh=Vh("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),Rh=Vh("wienDisplacement","2.897771955e-3","m K"),Ph=Vh("molarMass","0.99999999965e-3","kg mol^-1"),Fh=Vh("molarMassC12","11.9999999958e-3","kg mol^-1"),Uh=Vh("gravity","9.80665","m s^-2"),Lh=Vh("planckLength","1.616255e-35","m"),Hh=Vh("planckMass","2.176435e-8","kg"),$h=Vh("planckTime","5.391245e-44","s"),Gh=Vh("planckCharge","1.87554603778e-18","C"),Zh=Vh("planckTemperature","1.416785e+32","K");function Vh(e,a,o){return Object(s.a)(e,["config","Unit","BigNumber"],function(e){var t=e.config,r=e.Unit,n=e.BigNumber,i=new r("BigNumber"===t.number?new n(a):parseFloat(a),o);return i.fixPrefix=!0,i})}function Jh(e,n){return Object(s.a)(e,["config","BigNumber"],function(e){var t=e.config,r=e.BigNumber;return"BigNumber"===t.number?new r(n):n})}var Wh=["typed","isInteger"],Yh=Object(s.a)("apply",Wh,function(e){var t=e.typed,r=e.isInteger,n=Et({typed:t,isInteger:r});return t("apply",{"...any":function(e){var t=e[1];Object(ie.y)(t)?e[1]=t-1:Object(ie.e)(t)&&(e[1]=t.minus(1));try{return n.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0}),Xh=["typed","Index","matrix","range"],Qh=Object(s.a)("column",Xh,function(e){var t=e.typed,r=e.Index,n=e.matrix,i=e.range,a=Hn({typed:t,Index:r,matrix:n,range:i});return t("column",{"...any":function(e){var t=e.length-1,r=e[t];Object(ie.y)(r)&&(e[t]=r-1);try{return a.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0});function Kh(e,t,r){var n=e.filter(function(e){return Object(ie.J)(e)&&!(e.name in t)&&!(e.name in r)})[0];if(!n)throw new Error('No undefined variable found in inline expression "'+e+'"');var i=n.name,a=Object.create(r),o=e.compile();return function(e){return a[i]=e,o.evaluate(a)}}var ed=["typed"],td=Object(s.a)("filter",ed,function(e){var t=e.typed;function r(e,t,r){var n,i;return e[0]&&(n=e[0].compile().evaluate(r)),e[1]&&(i=Object(ie.J)(e[1])||Object(ie.q)(e[1])?e[1].compile().evaluate(r):Kh(e[1],t,r)),a(n,i)}r.rawArgs=!0;var a=t("filter",{"Array, function":rd,"Matrix, function":function(e,t){return e.create(rd(e.toArray(),t))},"Array, RegExp":I.d,"Matrix, RegExp":function(e,t){return e.create(Object(I.d)(e.toArray(),t))}});return r},{isTransformFunction:!0});function rd(e,n){var i=Xn(n);return Object(I.c)(e,function(e,t,r){return 1===i?n(e):2===i?n(e,[t+1]):n(e,[t+1],r)})}var nd=["typed"],id=Object(s.a)("forEach",nd,function(e){var t=e.typed;function r(e,t,r){var n,i;return e[0]&&(n=e[0].compile().evaluate(r)),e[1]&&(i=Object(ie.J)(e[1])||Object(ie.q)(e[1])?e[1].compile().evaluate(r):Kh(e[1],t,r)),a(n,i)}r.rawArgs=!0;var a=t("forEach",{"Array | Matrix, function":function(t,i){var a=Xn(i);!function r(e,n){Array.isArray(e)?Object(I.f)(e,function(e,t){r(e,n.concat(t+1))}):1===a?i(e):2===a?i(e,n):i(e,n,t)}(t.valueOf(),[])}});return r},{isTransformFunction:!0}),ad=["typed"],od=Object(s.a)("map",ad,function(e){var t=e.typed;function r(e,t,r){var n,i;return e[0]&&(n=e[0].compile().evaluate(r)),e[1]&&(i=Object(ie.J)(e[1])||Object(ie.q)(e[1])?e[1].compile().evaluate(r):Kh(e[1],t,r)),a(n,i)}r.rawArgs=!0;var a=t("map",{"Array, function":function(e,t){return sd(e,t,e)},"Matrix, function":function(e,t){return e.create(sd(e.valueOf(),t,e))}});return r},{isTransformFunction:!0});function sd(e,t,i){var a=Xn(t);return function r(e,n){return Array.isArray(e)?Object(I.m)(e,function(e,t){return r(e,n.concat(t+1))}):1===a?t(e):2===a?t(e,n):t(e,n,i)}(e,[])}var ud=["typed","larger"],cd=Object(s.a)("max",ud,function(e){var t=e.typed,r=e.larger,n=as({typed:t,larger:r});return t("max",{"...any":function(e){if(2===e.length&&Object(ie.i)(e[0])){var t=e[1];Object(ie.y)(t)?e[1]=t-1:Object(ie.e)(t)&&(e[1]=t.minus(1))}try{return n.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0}),fd=["typed","add","divide"],ld=Object(s.a)("mean",fd,function(e){var t=e.typed,r=e.add,n=e.divide,i=tp({typed:t,add:r,divide:n});return t("mean",{"...any":function(e){if(2===e.length&&Object(ie.i)(e[0])){var t=e[1];Object(ie.y)(t)?e[1]=t-1:Object(ie.e)(t)&&(e[1]=t.minus(1))}try{return i.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0}),pd=["typed","smaller"],md=Object(s.a)("min",pd,function(e){var t=e.typed,r=e.smaller,n=ss({typed:t,smaller:r});return t("min",{"...any":function(e){if(2===e.length&&Object(ie.i)(e[0])){var t=e[1];Object(ie.y)(t)?e[1]=t-1:Object(ie.e)(t)&&(e[1]=t.minus(1))}try{return n.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0}),hd=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],dd=Object(s.a)("range",hd,function(e){var t=e.typed,r=e.config,n=e.matrix,i=e.bignumber,a=e.smaller,o=e.smallerEq,s=e.larger,u=e.largerEq,c=Ei({typed:t,config:r,matrix:n,bignumber:i,smaller:a,smallerEq:o,larger:s,largerEq:u});return t("range",{"...any":function(e){return"boolean"!=typeof e[e.length-1]&&e.push(!0),c.apply(null,e)}})},{isTransformFunction:!0}),yd=["typed","Index","matrix","range"],gd=Object(s.a)("row",yd,function(e){var t=e.typed,r=e.Index,n=e.matrix,i=e.range,a=qi({typed:t,Index:r,matrix:n,range:i});return t("row",{"...any":function(e){var t=e.length-1,r=e[t];Object(ie.y)(r)&&(e[t]=r-1);try{return a.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0}),vd=["typed","matrix"],bd=Object(s.a)("subset",vd,function(e){var t=e.typed,r=e.matrix,n=Ji({typed:t,matrix:r});return t("subset",{"...any":function(e){try{return n.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0}),xd=["typed","matrix","isInteger"],wd=Object(s.a)("concat",xd,function(e){var t=e.typed,r=e.matrix,n=e.isInteger,i=Fn({typed:t,matrix:r,isInteger:n});return t("concat",{"...any":function(e){var t=e.length-1,r=e[t];Object(ie.y)(r)?e[t]=r-1:Object(ie.e)(r)&&(e[t]=r.minus(1));try{return i.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0}),Nd=["typed","sqrt","variance"],Od=Object(s.a)("std",Nd,function(e){var t=e.typed,r=e.sqrt,n=e.variance,i=hp({typed:t,sqrt:r,variance:n});return t("std",{"...any":function(e){if(2<=e.length&&Object(ie.i)(e[0])){var t=e[1];Object(ie.y)(t)?e[1]=t-1:Object(ie.e)(t)&&(e[1]=t.minus(1))}try{return i.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0}),Md=["typed","config","add","?bignumber","?fraction"],Ed=Object(s.a)("sum",Md,function(e){var t=e.typed,r=e.config,n=e.add,i=e.bignumber,a=e.fraction,o=Kl({typed:t,config:r,add:n,bignumber:i,fraction:a});return t("sum",{"...any":function(e){if(2===e.length&&Object(ie.i)(e[0])){var t=e[1];Object(ie.y)(t)?e[1]=t-1:Object(ie.e)(t)&&(e[1]=t.minus(1))}try{return o.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0}),Sd="variance",jd=["typed","add","subtract","multiply","divide","apply","isNaN"],Ad=Object(s.a)(Sd,jd,function(e){var t=e.typed,r=e.add,n=e.subtract,i=e.multiply,a=e.divide,o=e.apply,s=e.isNaN,u=cp({typed:t,add:r,subtract:n,multiply:i,divide:a,apply:o,isNaN:s});return t(Sd,{"...any":function(e){if(2<=e.length&&Object(ie.i)(e[0])){var t=e[1];Object(ie.y)(t)?e[1]=t-1:Object(ie.e)(t)&&(e[1]=t.minus(1))}try{return u.apply(null,e)}catch(e){throw Dc(e)}}})},{isTransformFunction:!0});r.d(t,"createTyped",function(){return u}),r.d(t,"createResultSet",function(){return m}),r.d(t,"createBigNumberClass",function(){return g}),r.d(t,"createComplexClass",function(){return N}),r.d(t,"createFractionClass",function(){return j}),r.d(t,"createRangeClass",function(){return C}),r.d(t,"createMatrixClass",function(){return _}),r.d(t,"createDenseMatrixClass",function(){return B}),r.d(t,"createClone",function(){return z}),r.d(t,"createIsInteger",function(){return Z}),r.d(t,"createIsNegative",function(){return re}),r.d(t,"createIsNumeric",function(){return se}),r.d(t,"createHasNumericValue",function(){return fe}),r.d(t,"createIsPositive",function(){return me}),r.d(t,"createIsZero",function(){return de}),r.d(t,"createIsNaN",function(){return ge}),r.d(t,"createTypeOf",function(){return xe}),r.d(t,"createDeprecatedTypeof",function(){return we}),r.d(t,"createEqualScalar",function(){return Ee}),r.d(t,"createSparseMatrixClass",function(){return je}),r.d(t,"createNumber",function(){return Ce}),r.d(t,"createString",function(){return _e}),r.d(t,"createBoolean",function(){return Be}),r.d(t,"createBignumber",function(){return ze}),r.d(t,"createComplex",function(){return Re}),r.d(t,"createFraction",function(){return Fe}),r.d(t,"createMatrix",function(){return Le}),r.d(t,"createSplitUnit",function(){return Ge}),r.d(t,"createUnaryMinus",function(){return vt}),r.d(t,"createUnaryPlus",function(){return wt}),r.d(t,"createAbs",function(){return Ot}),r.d(t,"createApply",function(){return Et}),r.d(t,"createAddScalar",function(){return Ct}),r.d(t,"createCbrt",function(){return _t}),r.d(t,"createCeil",function(){return qt}),r.d(t,"createCube",function(){return kt}),r.d(t,"createExp",function(){return Dt}),r.d(t,"createExpm1",function(){return Pt}),r.d(t,"createFix",function(){return Ut}),r.d(t,"createFloor",function(){return Ht}),r.d(t,"createGcd",function(){return tr}),r.d(t,"createLcm",function(){return cr}),r.d(t,"createLog10",function(){return lr}),r.d(t,"createLog2",function(){return mr}),r.d(t,"createMod",function(){return wr}),r.d(t,"createMultiplyScalar",function(){return Or}),r.d(t,"createMultiply",function(){return Sr}),r.d(t,"createNthRoot",function(){return Cr}),r.d(t,"createSign",function(){return _r}),r.d(t,"createSqrt",function(){return qr}),r.d(t,"createSquare",function(){return kr}),r.d(t,"createSubtract",function(){return Rr}),r.d(t,"createXgcd",function(){return Ur}),r.d(t,"createDotMultiply",function(){return Zr}),r.d(t,"createBitAnd",function(){return ln}),r.d(t,"createBitNot",function(){return mn}),r.d(t,"createBitOr",function(){return dn}),r.d(t,"createBitXor",function(){return bn}),r.d(t,"createArg",function(){return wn}),r.d(t,"createConj",function(){return On}),r.d(t,"createIm",function(){return En}),r.d(t,"createRe",function(){return jn}),r.d(t,"createNot",function(){return Bn}),r.d(t,"createOr",function(){return zn}),r.d(t,"createXor",function(){return Rn}),r.d(t,"createConcat",function(){return Fn}),r.d(t,"createColumn",function(){return Hn}),r.d(t,"createCross",function(){return Gn}),r.d(t,"createDiag",function(){return Vn}),r.d(t,"createEye",function(){return Jn}),r.d(t,"createFilter",function(){return Kn}),r.d(t,"createFlatten",function(){return ni}),r.d(t,"createForEach",function(){return oi}),r.d(t,"createGetMatrixDataType",function(){return fi}),r.d(t,"createIdentity",function(){return mi}),r.d(t,"createKron",function(){return di}),r.d(t,"createMap",function(){return gi}),r.d(t,"createOnes",function(){return xi}),r.d(t,"createRange",function(){return Ei}),r.d(t,"createReshape",function(){return Ai}),r.d(t,"createResize",function(){return _i}),r.d(t,"createRow",function(){return qi}),r.d(t,"createSize",function(){return ki}),r.d(t,"createSqueeze",function(){return Ri}),r.d(t,"createSubset",function(){return Ji}),r.d(t,"createTranspose",function(){return ea}),r.d(t,"createCtranspose",function(){return na}),r.d(t,"createZeros",function(){return aa}),r.d(t,"createErf",function(){return sa}),r.d(t,"createMode",function(){return ha}),r.d(t,"createProd",function(){return ga}),r.d(t,"createFormat",function(){return ba}),r.d(t,"createPrint",function(){return wa}),r.d(t,"createTo",function(){return Ma}),r.d(t,"createIsPrime",function(){return ja}),r.d(t,"createNumeric",function(){return Ca}),r.d(t,"createDivideScalar",function(){return Ia}),r.d(t,"createPow",function(){return Ba}),r.d(t,"createRound",function(){return Pa}),r.d(t,"createLog",function(){return La}),r.d(t,"createLog1p",function(){return $a}),r.d(t,"createNthRoots",function(){return Va}),r.d(t,"createDotPow",function(){return Wa}),r.d(t,"createDotDivide",function(){return Qa}),r.d(t,"createLsolve",function(){return to}),r.d(t,"createUsolve",function(){return no}),r.d(t,"createLeftShift",function(){return uo}),r.d(t,"createRightArithShift",function(){return lo}),r.d(t,"createRightLogShift",function(){return ho}),r.d(t,"createAnd",function(){return go}),r.d(t,"createCompare",function(){return xo}),r.d(t,"createCompareNatural",function(){return Eo}),r.d(t,"createCompareText",function(){return Ao}),r.d(t,"createEqual",function(){return _o}),r.d(t,"createEqualText",function(){return Bo}),r.d(t,"createSmaller",function(){return Do}),r.d(t,"createSmallerEq",function(){return Fo}),r.d(t,"createLarger",function(){return Ho}),r.d(t,"createLargerEq",function(){return Zo}),r.d(t,"createDeepEqual",function(){return Wo}),r.d(t,"createUnequal",function(){return Qo}),r.d(t,"createPartitionSelect",function(){return ts}),r.d(t,"createSort",function(){return ns}),r.d(t,"createMax",function(){return as}),r.d(t,"createMin",function(){return ss}),r.d(t,"createImmutableDenseMatrixClass",function(){return cs}),r.d(t,"createIndexClass",function(){return ls}),r.d(t,"createFibonacciHeapClass",function(){return ms}),r.d(t,"createSpaClass",function(){return ds}),r.d(t,"createUnitClass",function(){return Ms}),r.d(t,"createUnitFunction",function(){return Ss}),r.d(t,"createSparse",function(){return As}),r.d(t,"createCreateUnit",function(){return _s}),r.d(t,"createAcos",function(){return qs}),r.d(t,"createAcosh",function(){return Qs}),r.d(t,"createAcot",function(){return eu}),r.d(t,"createAcoth",function(){return ru}),r.d(t,"createAcsc",function(){return iu}),r.d(t,"createAcsch",function(){return ou}),r.d(t,"createAsec",function(){return uu}),r.d(t,"createAsech",function(){return fu}),r.d(t,"createAsin",function(){return pu}),r.d(t,"createAsinh",function(){return hu}),r.d(t,"createAtan",function(){return yu}),r.d(t,"createAtan2",function(){return vu}),r.d(t,"createAtanh",function(){return xu}),r.d(t,"createCos",function(){return Nu}),r.d(t,"createCosh",function(){return Mu}),r.d(t,"createCot",function(){return Su}),r.d(t,"createCoth",function(){return Au}),r.d(t,"createCsc",function(){return Tu}),r.d(t,"createCsch",function(){return Iu}),r.d(t,"createSec",function(){return Bu}),r.d(t,"createSech",function(){return zu}),r.d(t,"createSin",function(){return Ru}),r.d(t,"createSinh",function(){return Fu}),r.d(t,"createTan",function(){return Lu}),r.d(t,"createTanh",function(){return $u}),r.d(t,"createSetCartesian",function(){return Vu}),r.d(t,"createSetDifference",function(){return Yu}),r.d(t,"createSetDistinct",function(){return Ku}),r.d(t,"createSetIntersect",function(){return rc}),r.d(t,"createSetIsSubset",function(){return ac}),r.d(t,"createSetMultiplicity",function(){return uc}),r.d(t,"createSetPowerset",function(){return lc}),r.d(t,"createSetSize",function(){return hc}),r.d(t,"createSetSymDifference",function(){return gc}),r.d(t,"createSetUnion",function(){return xc}),r.d(t,"createAdd",function(){return Nc}),r.d(t,"createHypot",function(){return Mc}),r.d(t,"createNorm",function(){return Sc}),r.d(t,"createDot",function(){return Ac}),r.d(t,"createTrace",function(){return Tc}),r.d(t,"createIndex",function(){return Ic}),r.d(t,"createNode",function(){return zc}),r.d(t,"createAccessorNode",function(){return Uc}),r.d(t,"createArrayNode",function(){return Hc}),r.d(t,"createAssignmentNode",function(){return Yc}),r.d(t,"createBlockNode",function(){return Qc}),r.d(t,"createConditionalNode",function(){return ef}),r.d(t,"createConstantNode",function(){return lf}),r.d(t,"createFunctionAssignmentNode",function(){return mf}),r.d(t,"createIndexNode",function(){return vf}),r.d(t,"createObjectNode",function(){return wf}),r.d(t,"createOperatorNode",function(){return Of}),r.d(t,"createParenthesisNode",function(){return Ef}),r.d(t,"createRangeNode",function(){return jf}),r.d(t,"createRelationalNode",function(){return Cf}),r.d(t,"createSymbolNode",function(){return _f}),r.d(t,"createFunctionNode",function(){return kf}),r.d(t,"createParse",function(){return Rf}),r.d(t,"createCompile",function(){return Uf}),r.d(t,"createEvaluate",function(){return $f}),r.d(t,"createDeprecatedEval",function(){return Gf}),r.d(t,"createParserClass",function(){return Vf}),r.d(t,"createParser",function(){return Wf}),r.d(t,"createLup",function(){return Xf}),r.d(t,"createQr",function(){return Kf}),r.d(t,"createSlu",function(){return vl}),r.d(t,"createLusolve",function(){return Nl}),r.d(t,"createHelpClass",function(){return Ml}),r.d(t,"createChainClass",function(){return Sl}),r.d(t,"createHelp",function(){return Bl}),r.d(t,"createChain",function(){return zl}),r.d(t,"createDet",function(){return Rl}),r.d(t,"createInv",function(){return Fl}),r.d(t,"createExpm",function(){return Ll}),r.d(t,"createSqrtm",function(){return $l}),r.d(t,"createDivide",function(){return Zl}),r.d(t,"createDistance",function(){return Wl}),r.d(t,"createIntersect",function(){return Xl}),r.d(t,"createSum",function(){return Kl}),r.d(t,"createMean",function(){return tp}),r.d(t,"createMedian",function(){return np}),r.d(t,"createMad",function(){return ap}),r.d(t,"createVariance",function(){return cp}),r.d(t,"createDeprecatedVar",function(){return fp}),r.d(t,"createQuantileSeq",function(){return pp}),r.d(t,"createStd",function(){return hp}),r.d(t,"createCombinations",function(){return bp}),r.d(t,"createGamma",function(){return Ep}),r.d(t,"createFactorial",function(){return Ap}),r.d(t,"createKldivergence",function(){return _p}),r.d(t,"createMultinomial",function(){return Bp}),r.d(t,"createPermutations",function(){return Dp}),r.d(t,"createPickRandom",function(){return $p}),r.d(t,"createRandom",function(){return Jp}),r.d(t,"createRandomInt",function(){return Xp}),r.d(t,"createStirlingS2",function(){return em}),r.d(t,"createBellNumbers",function(){return nm}),r.d(t,"createCatalan",function(){return om}),r.d(t,"createComposition",function(){return cm}),r.d(t,"createSimplify",function(){return xm}),r.d(t,"createDerivative",function(){return Nm}),r.d(t,"createRationalize",function(){return Em}),r.d(t,"createReviver",function(){return jm}),r.d(t,"createE",function(){return Rm}),r.d(t,"createUppercaseE",function(){return Jm}),r.d(t,"createFalse",function(){return Im}),r.d(t,"createI",function(){return Zm}),r.d(t,"createInfinity",function(){return Bm}),r.d(t,"createLN10",function(){return Um}),r.d(t,"createLN2",function(){return Fm}),r.d(t,"createLOG10E",function(){return Hm}),r.d(t,"createLOG2E",function(){return Lm}),r.d(t,"createNaN",function(){return km}),r.d(t,"createNull",function(){return qm}),r.d(t,"createPhi",function(){return Pm}),r.d(t,"createPi",function(){return zm}),r.d(t,"createUppercasePi",function(){return Vm}),r.d(t,"createSQRT1_2",function(){return $m}),r.d(t,"createSQRT2",function(){return Gm}),r.d(t,"createTau",function(){return Dm}),r.d(t,"createTrue",function(){return _m}),r.d(t,"createVersion",function(){return Wm}),r.d(t,"createAtomicMass",function(){return Sh}),r.d(t,"createAvogadro",function(){return jh}),r.d(t,"createBohrMagneton",function(){return oh}),r.d(t,"createBohrRadius",function(){return ph}),r.d(t,"createBoltzmann",function(){return Ah}),r.d(t,"createClassicalElectronRadius",function(){return mh}),r.d(t,"createConductanceQuantum",function(){return sh}),r.d(t,"createCoulomb",function(){return ih}),r.d(t,"createDeuteronMass",function(){return bh}),r.d(t,"createEfimovFactor",function(){return Eh}),r.d(t,"createElectricConstant",function(){return rh}),r.d(t,"createElectronMass",function(){return hh}),r.d(t,"createElementaryCharge",function(){return ah}),r.d(t,"createFaraday",function(){return Ch}),r.d(t,"createFermiCoupling",function(){return dh}),r.d(t,"createFineStructure",function(){return yh}),r.d(t,"createFirstRadiation",function(){return Th}),r.d(t,"createGasConstant",function(){return Ih}),r.d(t,"createGravitationConstant",function(){return Qm}),r.d(t,"createGravity",function(){return Uh}),r.d(t,"createHartreeEnergy",function(){return gh}),r.d(t,"createInverseConductanceQuantum",function(){return uh}),r.d(t,"createKlitzing",function(){return lh}),r.d(t,"createLoschmidt",function(){return _h}),r.d(t,"createMagneticConstant",function(){return th}),r.d(t,"createMagneticFluxQuantum",function(){return ch}),r.d(t,"createMolarMass",function(){return Ph}),r.d(t,"createMolarMassC12",function(){return Fh}),r.d(t,"createMolarPlanckConstant",function(){return qh}),r.d(t,"createMolarVolume",function(){return Bh}),r.d(t,"createNeutronMass",function(){return xh}),r.d(t,"createNuclearMagneton",function(){return fh}),r.d(t,"createPlanckCharge",function(){return Gh}),r.d(t,"createPlanckConstant",function(){return Km}),r.d(t,"createPlanckLength",function(){return Lh}),r.d(t,"createPlanckMass",function(){return Hh}),r.d(t,"createPlanckTemperature",function(){return Zh}),r.d(t,"createPlanckTime",function(){return $h}),r.d(t,"createProtonMass",function(){return vh}),r.d(t,"createQuantumOfCirculation",function(){return wh}),r.d(t,"createReducedPlanckConstant",function(){return eh}),r.d(t,"createRydberg",function(){return Nh}),r.d(t,"createSackurTetrode",function(){return kh}),r.d(t,"createSecondRadiation",function(){return zh}),r.d(t,"createSpeedOfLight",function(){return Xm}),r.d(t,"createStefanBoltzmann",function(){return Dh}),r.d(t,"createThomsonCrossSection",function(){return Oh}),r.d(t,"createVacuumImpedance",function(){return nh}),r.d(t,"createWeakMixingAngle",function(){return Mh}),r.d(t,"createWienDisplacement",function(){return Rh}),r.d(t,"createApplyTransform",function(){return Yh}),r.d(t,"createColumnTransform",function(){return Qh}),r.d(t,"createFilterTransform",function(){return td}),r.d(t,"createForEachTransform",function(){return id}),r.d(t,"createIndexTransform",function(){return df}),r.d(t,"createMapTransform",function(){return od}),r.d(t,"createMaxTransform",function(){return cd}),r.d(t,"createMeanTransform",function(){return ld}),r.d(t,"createMinTransform",function(){return md}),r.d(t,"createRangeTransform",function(){return dd}),r.d(t,"createRowTransform",function(){return gd}),r.d(t,"createSubsetTransform",function(){return bd}),r.d(t,"createConcatTransform",function(){return wd}),r.d(t,"createStdTransform",function(){return Od}),r.d(t,"createSumTransform",function(){return Ed}),r.d(t,"createVarianceTransform",function(){return Ad})},function(e,t,r){"use strict";r.r(t);var v=r(4),n=r(18),i=r.n(n);var b=r(1),x=r(0),w=r(2),N=r(13),O=r(8);function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(u,c,f,l){function s(e,t,r){if(r.wrap&&"function"==typeof t&&(t=function(i){function e(){for(var e=[],t=0,r=arguments.length;t<r;t++){var n=arguments[t];e[t]=n&&n.valueOf()}return i.apply(f,e)}i.transform&&(e.transform=i.transform);return e}(t)),function(e){return"function"==typeof e&&"string"==typeof e.signature}(t)&&(t=u(e,function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t.signature,t))),h(f[e])&&h(t))return t=r.override?u(e,t.signatures):u(f[e],t),f[e]=t,delete l[e],n(e,t),void f.emit("import",e,function(){return t});if(void 0===f[e]||r.override)return f[e]=t,delete l[e],n(e,t),void f.emit("import",e,function(){return t});if(!r.silent)throw new Error('Cannot import "'+e+'": already exists')}function n(e,t){t&&"function"==typeof t.transform?(f.expression.transform[e]=t.transform,r(e)&&(f.expression.mathWithTransform[e]=t.transform)):(delete f.expression.transform[e],r(e)&&(f.expression.mathWithTransform[e]=t))}function p(e){delete f.expression.transform[e],r(e)?f.expression.mathWithTransform[e]=f[e]:delete f.expression.mathWithTransform[e]}function m(r,n,e){var i=2<arguments.length&&void 0!==e?e:r.fn;if(Object(w.b)(i,"."))throw new Error("Factory name should not contain a nested path. Name: "+JSON.stringify(i));function t(){var t={};r.dependencies.map(x.c).forEach(function(e){if(Object(w.b)(e,"."))throw new Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(e));"math"===e?t.math=f:"mathWithTransform"===e?t.mathWithTransform=f.expression.mathWithTransform:"classes"===e?t.classes=f:t[e]=f[e]});var e=r(t);if(e&&"function"==typeof e.transform)throw new Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===s||n.override)return e;if(h(s)&&h(e))return u(s,e);if(n.silent)return s;throw new Error('Cannot import "'+i+'": already exists')}var a=g(r)?f.expression.transform:f,o=i in f.expression.transform,s=a.hasOwnProperty(i)?a[i]:void 0;r.meta&&!1===r.meta.lazy?a[i]=t():Object(v.h)(a,i,t),s&&o?p(i):(g(r)||y(r))&&Object(v.h)(f.expression.mathWithTransform,i,function(){return a[i]}),l[i]=r,f.emit("import",i,t)}function h(e){return"function"==typeof e&&"object"===M(e.signatures)}function r(e){return!t.hasOwnProperty(e)}function d(e){return void 0===e.path&&!t.hasOwnProperty(e.name)}function y(e){return!(-1!==e.fn.indexOf(".")||t.hasOwnProperty(e.fn)||e.meta&&e.meta.isClass)}function g(e){return void 0!==e&&void 0!==e.meta&&!0===e.meta.isTransformFunction||!1}var t={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(e,o){var t=arguments.length;if(1!==t&&2!==t)throw new N.a("import",t,1,2);o=o||{};var r,n={};for(var i in function t(r,e,n){if(Object(v.g)(e))!function(t,r){if(Object(O.a)("Factories of type { name, factory } are deprecated since v6. Please create your factory functions using the math.factory function."),"string"==typeof t.name){var n=t.name,e=n in f.expression.transform,i=t.path?Object(v.k)(f,t.path):f,a=i.hasOwnProperty(n)?i[n]:void 0,o=function(){var e=c(t);if(e&&"function"==typeof e.transform)throw new Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(h(a)&&h(e))return r.override||(e=u(a,e)),e;if(void 0===a||r.override)return e;if(r.silent)return a;throw new Error('Cannot import "'+n+'": already exists')};!1!==t.lazy?(Object(v.h)(i,n,o),e?p(n):"expression.transform"!==t.path&&!d(t)||Object(v.h)(f.expression.mathWithTransform,n,o)):(i[n]=o(),e?p(n):"expression.transform"!==t.path&&!d(t)||(f.expression.mathWithTransform[n]=o()));var s=t.path?t.path+"."+t.name:t.name;l[s]=t,f.emit("import",n,o,t.path)}else c(t)}(e,o);else if(Array.isArray(e))e.forEach(function(e){return t(r,e)});else if("object"===M(e))for(var i in e)e.hasOwnProperty(i)&&t(r,e[i],i);else if(Object(x.b)(e)||void 0!==n){var a=Object(x.b)(e)?g(e)?e.fn+".transform":e.fn:n;if(Object(v.f)(r,a)&&r[a]!==e&&!o.silent)throw new Error('Cannot import "'+a+'" twice');r[a]=e}else if(!o.silent)throw new TypeError("Factory, Object, or Array expected")}(n,e),n)if(n.hasOwnProperty(i)){var a=n[i];if(Object(x.b)(a))m(a,o);else if("function"==typeof(r=a)||"number"==typeof r||"string"==typeof r||"boolean"==typeof r||null===r||Object(b.L)(r)||Object(b.j)(r)||Object(b.e)(r)||Object(b.o)(r)||Object(b.v)(r)||Array.isArray(r))s(i,a,o);else if(!o.silent)throw new TypeError("Factory, Object, or Array expected")}}}var f={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null},l=["Matrix","Array"],p=["number","BigNumber","Fraction"];function m(e,t,r){if(void 0!==e[t]&&!function(e,t){return-1!==e.indexOf(t)}(r,e[t])){var n=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())}(r,e[t]);-1!==n?(console.warn('Warning: Wrong casing for configuration option "'+t+'", should be "'+r[n]+'" instead of "'+e[t]+'".'),e[t]=r[n]):console.warn('Warning: Unknown value "'+e[t]+'" for configuration option "'+t+'". Available options: '+r.map(JSON.stringify).join(", ")+".")}}var h=r(6),d=r(10);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e,t){var a=y({},f,t);if("function"!=typeof Object.create)throw new Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var o=function(e){var t=new i.a;return e.on=t.on.bind(t),e.off=t.off.bind(t),e.once=t.once.bind(t),e.emit=t.emit.bind(t),e}({isNumber:b.y,isComplex:b.j,isBigNumber:b.e,isFraction:b.o,isUnit:b.L,isString:b.I,isArray:b.b,isMatrix:b.v,isCollection:b.i,isDenseMatrix:b.n,isSparseMatrix:b.H,isRange:b.D,isIndex:b.t,isBoolean:b.g,isResultSet:b.G,isHelp:b.s,isFunction:b.p,isDate:b.m,isRegExp:b.F,isObject:b.z,isNull:b.x,isUndefined:b.K,isAccessorNode:b.a,isArrayNode:b.c,isAssignmentNode:b.d,isBlockNode:b.f,isConditionalNode:b.k,isConstantNode:b.l,isFunctionAssignmentNode:b.q,isFunctionNode:b.r,isIndexNode:b.u,isNode:b.w,isObjectNode:b.A,isOperatorNode:b.B,isParenthesisNode:b.C,isRangeNode:b.E,isSymbolNode:b.J,isChain:b.h});o.config=function(i,a){function t(e){if(e){var t=Object(v.i)(i,v.a);m(e,"matrix",l),m(e,"number",p),Object(v.b)(i,e);var r=Object(v.i)(i,v.a),n=Object(v.i)(e,v.a);return a("config",r,t,n),r}return Object(v.i)(i,v.a)}return t.MATRIX_OPTIONS=l,t.NUMBER_OPTIONS=p,Object.keys(f).forEach(function(e){Object.defineProperty(t,e,{get:function(){return i[e]},enumerable:!0,configurable:!0})}),t}(a,o.emit),o.expression={transform:{},mathWithTransform:{config:o.config}};var s=[],u=[];var r={};var n=c(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.typed.apply(o.typed,t)},function e(t){if(Object(x.b)(t))return t(o);var r=t[Object.keys(t)[0]];if(Object(x.b)(r))return r(o);if(!Object(v.g)(t))throw console.warn("Factory object with properties `type`, `name`, and `factory` expected",t),new Error("Factory object with properties `type`, `name`, and `factory` expected");var n,i=s.indexOf(t);return-1===i?(n=!0===t.math?t.factory(o.type,a,e,o.typed,o):t.factory(o.type,a,e,o.typed),s.push(t),u.push(n)):n=u[i],n},o,r);o.import=n,o.on("config",function(){Object(v.l)(r).forEach(function(e){e&&e.meta&&e.meta.recreateOnConfigChange&&n(e,{override:!0})})}),o.create=g.bind(null,e),o.factory=x.a,o.import(Object(v.l)(Object(v.c)(e)));return["type.isNumber","type.isComplex","type.isBigNumber","type.isFraction","type.isUnit","type.isString","type.isArray","type.isMatrix","type.isDenseMatrix","type.isSparseMatrix","type.isCollection","type.isRange","type.isIndex","type.isBoolean","type.isResultSet","type.isHelp","type.isFunction","type.isDate","type.isRegExp","type.isObject","type.isNull","type.isUndefined","type.isAccessorNode","type.isArrayNode","type.isAssignmentNode","type.isBlockNode","type.isConditionalNode","type.isConstantNode","type.isFunctionAssignmentNode","type.isFunctionNode","type.isIndexNode","type.isNode","type.isObjectNode","type.isOperatorNode","type.isParenthesisNode","type.isRangeNode","type.isSymbolNode","type.isChain","type.BigNumber","type.Chain","type.Complex","type.Fraction","type.Matrix","type.DenseMatrix","type.SparseMatrix","type.Spa","type.FibonacciHeap","type.ImmutableDenseMatrix","type.Index","type.Range","type.ResultSet","type.Unit","type.Help","type.Parser","expression.parse","expression.Parser","expression.node.AccessorNode","expression.node.ArrayNode","expression.node.AssignmentNode","expression.node.BlockNode","expression.node.ConditionalNode","expression.node.ConstantNode","expression.node.IndexNode","expression.node.FunctionAssignmentNode","expression.node.FunctionNode","expression.node.Node","expression.node.ObjectNode","expression.node.OperatorNode","expression.node.ParenthesisNode","expression.node.RangeNode","expression.node.RelationalNode","expression.node.SymbolNode","json.reviver","error.ArgumentsError","error.DimensionError","error.IndexError"].forEach(function(e){var t=e.split("."),r=Object(w.j)(t),n=Object(w.l)(t),i=Object(v.k)(o,r);Object(v.h)(i,n,function(){return Object(O.a)("math.".concat(e," is moved to math.").concat(n," in v6.0.0. ")+"Please use the new location instead."),o[n]})}),Object(v.h)(o.expression,"docs",function(){throw new Error("math.expression.docs has been moved. Please import via \"import { docs } from 'mathjs'\"")}),o.ArgumentsError=N.a,o.DimensionError=h.a,o.IndexError=d.a,o}r.d(t,"create",function(){return g})}],i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=19);function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var r,n});
;
(function($){"use strict";SUPER.after_init_calculator_hook=function(){var $functions=super_common_i18n.dynamic_functions.after_init_calculator_hook;jQuery.each($functions,function(key,value){if(typeof SUPER[value.name]!=='undefined')SUPER[value.name]();});};SUPER.init_calculator_strstr=function($haystack,$needle){var $pos=0;$haystack+="";$pos=$haystack.indexOf($needle);if($pos==-1){return false;}else{return true;}};SUPER.init_calculator_update_data_value=function($data){var $form_id=parseInt($data.hidden_form_id.value,10),$form=$('.super-form-'+$form_id),$field,$name;$form.find('.super-calculator').each(function(){$field=$(this).find('.super-shortcode-field');$name=$field.attr('name');if(typeof $data[$name]!=='undefined'){$data[$name].value=$field.attr('data-value');}});return $data;};SUPER.init_calculator_update_math=function(form,uniqueFieldNames,clone){var i,ii,wrapper,calculatorFields,column,counter,dataFields,superMath,regex,array,match,values,names,name,suffix,newField;if(typeof clone!=='undefined'){form=clone.closest('.super-form');column=clone.closest('.super-column');counter=column.querySelectorAll(':scope > .super-duplicate-column-fields').length-1;calculatorFields=clone.querySelectorAll('.super-shortcode.super-calculator');for(ii=0;ii<calculatorFields.length;ii++){wrapper=calculatorFields[ii].querySelector('.super-calculator-wrapper');dataFields=wrapper.dataset.fields;superMath=wrapper.dataset.superMath;if(superMath!=''){regex=/{([^\\\/\s"'+]*?)}/g;array=[];i=0;match;while((match=regex.exec(superMath))!=null){array[i]=match[1];i++;}
for(i=0;i<array.length;i++){values=array[i];names=values.toString().split(';');name=names[0];suffix='';if(typeof names[1]!=='undefined'){suffix=';'+names[1];}
newField=name+'_'+(counter+1);if(SUPER.field_exists(form,newField)!==0){superMath=superMath.replace('{'+name+suffix+'}','{'+newField+suffix+'}');dataFields=dataFields.replace('{'+name+'}','{'+newField+'}');}}}
wrapper.dataset.superMath=superMath;wrapper.dataset.fields=dataFields;}}};SUPER.init_calculator_after_duplicating_column=function(form,uniqueFieldNames){var i=0,ii,elements,calculatorFields=[];Object.keys(uniqueFieldNames).forEach(function(fieldName){elements=form.querySelectorAll('.super-calculator-wrapper[data-fields*="{'+fieldName+'}"]');for(ii=0;ii<elements.length;++ii){calculatorFields[i]=elements[ii];i++;}});SUPER.init_calculator_update_fields_attribute(form,calculatorFields);};SUPER.init_calculator_update_fields_attribute=function(form,calculatorFields){var i,ii,iii,$elements,$name,$field,dataFields,newDataFields,v,oldv;for(i=0;i<calculatorFields.length;++i){$field=calculatorFields[i];dataFields=$field.dataset.fields;if(!dataFields)continue;dataFields=dataFields.split('}');newDataFields={};for(ii=0;ii<dataFields.length;++ii){v=dataFields[ii];if(v!=''){v=v.replace('{','');v=v.toString().split(';');v=v[0];oldv=v;if(v.indexOf('*')>=0){v=v.replace('*','');$elements=SUPER.field(form,v,'*');newDataFields[oldv]='{'+oldv+'}';for(iii=0;iii<$elements.length;++iii){$name=$elements[iii].name;if($name!='hidden_form_id')newDataFields[$name]='{'+$name+'}';}}
if(v.indexOf('^')>=0){v=v.replace('^','');$elements=SUPER.field(form,v,'^');newDataFields[oldv]='{'+oldv+'}';for(iii=0;iii<$elements.length;++iii){$name=$elements[iii].name;if($name!='hidden_form_id')newDataFields[$name]='{'+$name+'}';}}
if(v.indexOf('$')>=0){v=v.replace('$','');$elements=SUPER.field(form,v,'$');newDataFields[oldv]='{'+oldv+'}';for(iii=0;iii<$elements.length;++iii){$name=$elements[iii].name;if($name!='hidden_form_id')newDataFields[$name]='{'+$name+'}';}}
newDataFields[v]='{'+v+'}';}}
dataFields='';$.each(newDataFields,function(k,v){dataFields+=v;});$field.dataset.fields=dataFields;}};SUPER.init_calculator=function(args){var form=SUPER.get_frontend_or_backend_form(args);var i,ii,iii,match,numericMath,values,names,name,oldName,elements,found,newMath,decimals,thousandSeparator,format,amount,currency,target,superMath,calculatorFields,doNotSkip,decimalSeparator,prevAmount,$jsformat,$timestamp,$parse,$field,$number,$numeric_amount,span,regex=/{([^"']*?)}/g,updatedCalculatorFields={},array=[],oldNameSuffix='';if(args.skip===false)doNotSkip=true;if(!args.el){doNotSkip=true;calculatorFields=form.querySelectorAll('.super-calculator-wrapper');SUPER.init_calculator_update_fields_attribute(form,calculatorFields);}else{calculatorFields=form.querySelectorAll('.super-calculator-wrapper[data-fields*="{'+args.el.name+'}"]');}
if(calculatorFields.length===0)return true;for(i=0;i<calculatorFields.length;++i){target=calculatorFields[i];if(typeof doNotSkip==='undefined'){if(SUPER.has_hidden_parent(target)){continue;}}
superMath=target.dataset.superMath;if(superMath=='')continue;if(!SUPER.init_calculator_strstr(target.dataset.superNumericMath,'[')){target.dataset.superNumericMath=superMath;}
array=[];ii=0;while((match=regex.exec(superMath))!=null){array[ii]=match[1];ii++;}
for(ii=0;ii<array.length;ii++){values=array[ii];names=values.toString().split(';');name=names[0];oldName=name;oldNameSuffix='';if(typeof names[1]!=='undefined'){oldNameSuffix=';'+names[1];}
found=false;if(name.indexOf('*')>=0){found=true;name=name.replace('*','');elements=SUPER.field(form,name,'*');}
if(name.indexOf('^')>=0){found=true;name=name.replace('^','');elements=SUPER.field(form,name,'^');}
if(name.indexOf('$')>=0){found=true;name=name.replace('$','');elements=SUPER.field(form,name,'$');}
if(found===true){newMath='';for(iii=0;iii<elements.length;iii++){if(!elements[iii])continue;if(elements[iii].name!='hidden_form_id'){if(iii===0){newMath+='{'+elements[iii].name+oldNameSuffix+'}';}else{newMath+='+{'+elements[iii].name+oldNameSuffix+'}';}}}
if(newMath=='')newMath=0;superMath=superMath.split('{'+oldName+oldNameSuffix+'}').join(newMath);target.dataset.superNumericMath=superMath;}}
array=[];ii=0;numericMath='';while((match=regex.exec(superMath))!=null){array[ii]=match[1];ii++;}
if(array.length===0)numericMath=superMath;for(ii=0;ii<array.length;ii++){numericMath=SUPER.init_calculator.do_calculation(form,target,array[ii],numericMath);}
if(numericMath=='')numericMath=parseFloat(superMath);decimals=target.dataset.decimals;thousandSeparator=target.dataset.thousandSeparator;decimalSeparator=target.dataset.decimalSeparator;prevAmount=target.parentNode.querySelector('.super-shortcode-field').value;if(prevAmount=='')prevAmount=(Math.ceil(0*100)/100).toFixed(decimals);if(typeof numericMath!=='number'){numericMath=numericMath.replace(/-/g,' -');}
numericMath=numericMath.toString().split('Math.').join('');try{amount=math.evaluate(numericMath);}
catch(error){alert("There is a problem with the following calculation:\n\n "+error+"\n\n"+numericMath);continue;}
$jsformat=target.dataset.jsformat;if(typeof $jsformat!=='undefined'){$timestamp=amount;if($timestamp!=''){$parse=new Date($timestamp);if($parse!=null){amount=$parse.toString($jsformat);}}}else{amount=amount.toFixed(decimals);}
$field=target.parentNode.querySelector('.super-shortcode-field');if($field.value!==amount){updatedCalculatorFields[$field.name]=$field;$field.value=amount;}
if(((typeof prevAmount==='string')&&(prevAmount=='NaN'))||((typeof prevAmount==='number')&&(prevAmount=='Infinity'))){continue;}else{if(((typeof amount==='string')&&(amount=='NaN'))||((typeof amount==='number')&&(amount=='Infinity'))){continue;}else{if(typeof $jsformat!=='undefined'){target.querySelector('.super-calculator-amount').innerText=amount;currency=target.querySelector('.super-calculator-currency').innerHTML;format=target.querySelector('.super-calculator-format').innerHTML;$number=target.querySelector('.super-calculator-amount').innerHTML;$field.dataset.value=currency+''+$number+''+format;}else{amount=parseFloat(amount).toFixed(decimals);$numeric_amount=amount;amount=(decimalSeparator?amount.replace('.',decimalSeparator):amount).replace(new RegExp('\\d(?=(\\d{'+(3||3)+'})+'+(decimals>0?'\\D':'$')+')','g'),'$&'+(thousandSeparator||''));if($numeric_amount>=0){if(target.querySelector('.super-calculator-currency .super-minus-value')){target.querySelector('.super-calculator-currency .super-minus-value').remove();}
target.querySelector('.super-calculator-amount').innerText=amount;currency=target.querySelector('.super-calculator-currency').innerHTML;format=target.querySelector('.super-calculator-format').innerHTML;$field.dataset.value=currency+''+amount+''+format;}else{if(!target.querySelector('.super-calculator-currency .super-minus-value')){span=document.createElement('span');span.classList.add('super-minus-value');span.innerHTML='-';target.querySelector('.super-calculator-currency').prepend(span);}
target.querySelector('.super-calculator-amount').innerText=amount.replace('-','');currency=target.querySelector('.super-calculator-currency').innerHTML;format=target.querySelector('.super-calculator-format').innerHTML;$field.dataset.value=currency+''+amount+''+format;}}}}}
$.each(updatedCalculatorFields,function(index,field){SUPER.after_field_change_blur_hook({el:field,form:form});});};SUPER.init_calculator.do_calculation=function(form,target,name,numericMath){var element,text_field,selected,checked,values,new_value_array,parent,value,new_value,sum,value_n,oldName=name,names=name.toString().split(';');name=names[0];if(typeof names[1]==='undefined'){value_n=0;}else{value_n=names[1];}
element=SUPER.field(form,name);if(!element){numericMath=target.dataset.superNumericMath.replace('{'+oldName+'}',0);target.dataset.superNumericMath=numericMath;return numericMath;}
if(SUPER.has_hidden_parent(element)){numericMath=target.dataset.superNumericMath.replace('{'+oldName+'}',0);target.dataset.superNumericMath=numericMath;}else{text_field=true;parent=element.closest('.super-field');if((parent.classList.contains('super-dropdown'))||(parent.classList.contains('super-auto-suggest'))){text_field=false;sum=0;selected=$(parent).find('.super-dropdown-list .super-item.super-active:not(.super-placeholder)');selected.each(function(){new_value=$(this).data('value').toString().split(';');if(value_n===0){new_value=new_value[0];}else{new_value=new_value[(value_n-1)];}
if(typeof new_value==='undefined'){new_value='';}
sum+=parseFloat(new_value);});value=sum;}
if(parent.classList.contains('super-checkbox')){text_field=false;checked=$(parent).find('.super-field-wrapper .super-item.super-active');values='';checked.each(function(){if(values==''){values+=$(this).children('input').val();}else{values+=','+$(this).children('input').val();}});sum=0;new_value_array=values.toString().split(',');$.each(new_value_array,function(k,v){v=v.toString().split(';');if(value_n==0){new_value=v[0];}else{new_value=v[(value_n-1)];}
if(typeof new_value==='undefined'){new_value='';}
sum+=parseFloat(new_value);});value=sum;}
if(parent.classList.contains('super-radio')){text_field=false;new_value=element.value.toString().split(';');if(value_n==0){new_value=new_value[0];}else{new_value=new_value[(value_n-1)];}
if(typeof new_value==='undefined'){new_value='';}
value=parseFloat(new_value);}
if(parent.classList.contains('super-date')){text_field=false;value=(element.getAttribute('data-math-diff'))?parseFloat(element.getAttribute('data-math-diff')):0;if(element.getAttribute('data-return_age')=='true'){value=(element.getAttribute('data-math-age'))?parseFloat(element.getAttribute('data-math-age')):0;}
if(target.getAttribute('data-date-math')=='years'){value=(element.getAttribute('data-math-age'))?parseFloat(element.getAttribute('data-math-age')):0;}
if(target.getAttribute('data-date-math')=='months'){value=(element.getAttribute('data-math-age-months'))?parseFloat(element.getAttribute('data-math-age-months')):0;}
if(target.getAttribute('data-date-math')=='days'){value=(element.getAttribute('data-math-age-days'))?parseFloat(element.getAttribute('data-math-age-days')):0;}}
if(parent.classList.contains('super-time')){text_field=false;value=(element.getAttribute('data-math-diff'))?parseFloat(element.getAttribute('data-math-diff')):0;}
if(parent.classList.contains('super-textarea')){text_field=false;value=(element.getAttribute('data-word-count'))?parseFloat(element.getAttribute('data-word-count')):0;}
if(parent.classList.contains('super-currency')){text_field=false;value=$(element).maskMoney('unmasked')[0];value=(value)?parseFloat(value):0;}
if(parent.classList.contains('super-hidden')){if(parent.dataset.conditionalVariableAction=='enabled'){text_field=false;new_value=element.value.toString().split(';');if(value_n==0){new_value=new_value[0];}else{new_value=new_value[(value_n-1)];}
if(typeof new_value==='undefined'){new_value='';}
value=parseFloat(new_value);}}
if(text_field===true){value=(element.value)?parseFloat(element.value):0;}
if(isNaN(value))value=0;numericMath=target.dataset.superNumericMath.replace('{'+oldName+'}',value);target.dataset.superNumericMath=numericMath;}
return numericMath;};})(jQuery);
/*! elementor-pro - v3.3.0 - 06-06-2021 */
(()=>{"use strict";var e,r,_,t,a={},n={};function __webpack_require__(e){if(n[e])return n[e].exports;var r=n[e]={exports:{}};return a[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=a,__webpack_require__.x=e=>{},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(_,t){if(1&t&&(_=this(_)),8&t)return _;if("object"==typeof _&&_){if(4&t&&_.__esModule)return _;if(16&t&&"function"==typeof _.then)return _}var a=Object.create(null);__webpack_require__.r(a);var n={};e=e||[null,r({}),r([]),r(r)];for(var i=2&t&&_;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>n[e]=()=>_[e]));return n.default=()=>_,__webpack_require__.d(a,n),a},__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((r,_)=>(__webpack_require__.f[_](e,r),r)),[])),__webpack_require__.u=e=>714===e?"code-highlight.06d7a5e9fbe8f2efe321.bundle.min.js":256===e?"paypal-button.ce9726107b3eb7048751.bundle.min.js":26===e?"animated-headline.20005a8d51d237f18661.bundle.min.js":534===e?"media-carousel.8ee12224819ea050cc42.bundle.min.js":369===e?"carousel.e80b3f4e4b78fd24fdd4.bundle.min.js":804===e?"countdown.2b0535b147c43fcf8244.bundle.min.js":888===e?"hotspot.ebe5cb56143be640857b.bundle.min.js":680===e?"form.47b0d5e6a1fd48506175.bundle.min.js":121===e?"gallery.4c2c83a64e2161749262.bundle.min.js":288===e?"lottie.5d87915e3481174579d5.bundle.min.js":42===e?"nav-menu.45545c0d5772c620c9fc.bundle.min.js":50===e?"popup.502330d9929af9beeefd.bundle.min.js":287===e?"posts.8f785f458ba247e45862.bundle.min.js":824===e?"portfolio.c54e5852cc449fe5168e.bundle.min.js":58===e?"share-buttons.c2d8b4d6b9df24794248.bundle.min.js":114===e?"slides.ea0f13fa2ea9e84a1f96.bundle.min.js":443===e?"social.5de12fdcabc2a791f24f.bundle.min.js":838===e?"table-of-contents.03f9760fade302bfc0c0.bundle.min.js":685===e?"archive-posts.b062a48bde002bd8c754.bundle.min.js":858===e?"search-form.69e3551a94b182780302.bundle.min.js":102===e?"woocommerce-menu-cart.a0ca3c5b1b1fbd100eae.bundle.min.js":{437:"elements-handlers.min",995:"preloaded-elements-handlers.min"}[e]+".js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),_={},t="elementor-pro:",__webpack_require__.l=(e,r,a)=>{if(_[e])_[e].push(r);else{var n,i;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var o=c[u];if(o.getAttribute("src")==e||o.getAttribute("data-webpack")==t+a){n=o;break}}n||(i=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,__webpack_require__.nc&&n.setAttribute("nonce",__webpack_require__.nc),n.setAttribute("data-webpack",t+a),n.src=e),_[e]=[r];var onScriptComplete=(r,t)=>{n.onerror=n.onload=null,clearTimeout(b);var a=_[e];if(delete _[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach((e=>e(t))),r)return r(t)},b=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=onScriptComplete.bind(null,n.onerror),n.onload=onScriptComplete.bind(null,n.onload),i&&document.head.appendChild(n)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var _=r.getElementsByTagName("script");_.length&&(e=_[_.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={396:0},r=[];__webpack_require__.f.j=(r,_)=>{var t=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==t)if(t)_.push(t[2]);else{var a=new Promise(((_,a)=>{t=e[r]=[_,a]}));_.push(t[2]=a);var n=__webpack_require__.p+__webpack_require__.u(r),i=new Error;__webpack_require__.l(n,(_=>{if(__webpack_require__.o(e,r)&&(0!==(t=e[r])&&(e[r]=void 0),t)){var a=_&&("load"===_.type?"missing":_.type),n=_&&_.target&&_.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+n+")",i.name="ChunkLoadError",i.type=a,i.request=n,t[1](i)}}),"chunk-"+r)}};var checkDeferredModules=e=>{},webpackJsonpCallback=(_,t)=>{for(var a,n,[i,c,u,o]=t,b=0,d=[];b<i.length;b++)n=i[b],__webpack_require__.o(e,n)&&e[n]&&d.push(e[n][0]),e[n]=0;for(a in c)__webpack_require__.o(c,a)&&(__webpack_require__.m[a]=c[a]);for(u&&u(__webpack_require__),_&&_(t);d.length;)d.shift()();return o&&r.push.apply(r,o),checkDeferredModules()},_=self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[];function checkDeferredModulesImpl(){for(var _,t=0;t<r.length;t++){for(var a=r[t],n=!0,i=1;i<a.length;i++){var c=a[i];0!==e[c]&&(n=!1)}n&&(r.splice(t--,1),_=__webpack_require__(__webpack_require__.s=a[0]))}return 0===r.length&&(__webpack_require__.x(),__webpack_require__.x=e=>{}),_}_.forEach(webpackJsonpCallback.bind(null,0)),_.push=webpackJsonpCallback.bind(null,_.push.bind(_));var t=__webpack_require__.x;__webpack_require__.x=()=>(__webpack_require__.x=t||(e=>{}),(checkDeferredModules=checkDeferredModulesImpl)())})(),__webpack_require__.x()})();
/*! elementor - v3.4.6 - 19-10-2021 */
(()=>{"use strict";var e,r,_,t,i,a={},n={};function __webpack_require__(e){var r=n[e];if(void 0!==r)return r.exports;var _=n[e]={exports:{}};return a[e](_,_.exports,__webpack_require__),_.exports}__webpack_require__.m=a,e=[],__webpack_require__.O=(r,_,t,i)=>{if(!_){var a=1/0;for(u=0;u<e.length;u++){for(var[_,t,i]=e[u],n=!0,c=0;c<_.length;c++)(!1&i||a>=i)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](_[c])))?_.splice(c--,1):(n=!1,i<a&&(a=i));if(n){e.splice(u--,1);var o=t();void 0!==o&&(r=o)}}return r}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[_,t,i]},_=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);__webpack_require__.r(i);var a={};r=r||[null,_({}),_([]),_(_)];for(var n=2&t&&e;"object"==typeof n&&!~r.indexOf(n);n=_(n))Object.getOwnPropertyNames(n).forEach((r=>a[r]=()=>e[r]));return a.default=()=>e,__webpack_require__.d(i,a),i},__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((r,_)=>(__webpack_require__.f[_](e,r),r)),[])),__webpack_require__.u=e=>723===e?"lightbox.543c64a356c981ed0346.bundle.min.js":48===e?"text-path.15daa9710b97d5cf86b9.bundle.min.js":209===e?"accordion.839112600fade8979d16.bundle.min.js":745===e?"alert.124c2442b8a696597f9e.bundle.min.js":120===e?"counter.1bf6011c2ab9506880c2.bundle.min.js":192===e?"progress.4079971c3240c226b858.bundle.min.js":520===e?"tabs.cd05b61e107cc58d1be9.bundle.min.js":181===e?"toggle.1aca60f44e355cb43256.bundle.min.js":791===e?"video.505da250f982d8f15187.bundle.min.js":268===e?"image-carousel.f9dc73796adfb21bb945.bundle.min.js":357===e?"text-editor.9efe2dca043f0f618897.bundle.min.js":52===e?"wp-audio.2332b719d144261993a3.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},i="elementor:",__webpack_require__.l=(e,r,_,a)=>{if(t[e])t[e].push(r);else{var n,c;if(void 0!==_)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var b=o[u];if(b.getAttribute("src")==e||b.getAttribute("data-webpack")==i+_){n=b;break}}n||(c=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,__webpack_require__.nc&&n.setAttribute("nonce",__webpack_require__.nc),n.setAttribute("data-webpack",i+_),n.src=e),t[e]=[r];var onScriptComplete=(r,_)=>{n.onerror=n.onload=null,clearTimeout(p);var i=t[e];if(delete t[e],n.parentNode&&n.parentNode.removeChild(n),i&&i.forEach((e=>e(_))),r)return r(_)},p=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=onScriptComplete.bind(null,n.onerror),n.onload=onScriptComplete.bind(null,n.onload),c&&document.head.appendChild(n)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var _=r.getElementsByTagName("script");_.length&&(e=_[_.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={162:0};__webpack_require__.f.j=(r,_)=>{var t=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==t)if(t)_.push(t[2]);else if(162!=r){var i=new Promise(((_,i)=>t=e[r]=[_,i]));_.push(t[2]=i);var a=__webpack_require__.p+__webpack_require__.u(r),n=new Error;__webpack_require__.l(a,(_=>{if(__webpack_require__.o(e,r)&&(0!==(t=e[r])&&(e[r]=void 0),t)){var i=_&&("load"===_.type?"missing":_.type),a=_&&_.target&&_.target.src;n.message="Loading chunk "+r+" failed.\n("+i+": "+a+")",n.name="ChunkLoadError",n.type=i,n.request=a,t[1](n)}}),"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,_)=>{var t,i,[a,n,c]=_,o=0;for(t in n)__webpack_require__.o(n,t)&&(__webpack_require__.m[t]=n[t]);if(c)var u=c(__webpack_require__);for(r&&r(_);o<a.length;o++)i=a[o],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[a[o]]=0;return __webpack_require__.O(u)},r=self.webpackChunkelementor=self.webpackChunkelementor||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})();
/*! elementor - v3.4.6 - 19-10-2021 */
(self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[354],{7914:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},8135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{elements:".elementor-element",nestedDocumentElements:".elementor .elementor-element"},classes:{editMode:"elementor-edit-mode"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}getDocumentSettings(e){let t;if(this.isEdit){t={};const e=elementor.settings.page.model;jQuery.each(e.getActiveControls(),(n=>{t[n]=e.attributes[n]}))}else t=this.$element.data("elementor-settings")||{};return this.getItems(t,e)}runElementsHandlers(){this.elements.$elements.each(((e,t)=>elementorFrontend.elementsHandler.runReadyTrigger(t)))}onInit(){this.$element=this.getSettings("$element"),super.onInit(),this.isEdit=this.$element.hasClass(this.getSettings("classes.editMode")),this.isEdit?elementor.on("document:loaded",(()=>{elementor.settings.page.model.on("change",this.onSettingsChange.bind(this))})):this.runElementsHandlers()}onSettingsChange(){}}t.default=_default},2821:(e,t,n)=>{"use strict";var s=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(3090));class SwiperHandlerBase extends i.default{getInitialSlide(){const e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0}getSlidesCount(){return this.elements.$slides.length}togglePauseOnHover(e){e?this.elements.$swiperContainer.on({mouseenter:()=>{this.swiper.autoplay.stop()},mouseleave:()=>{this.swiper.autoplay.start()}}):this.elements.$swiperContainer.off("mouseenter mouseleave")}handleKenBurns(){const e=this.getSettings();this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=jQuery(this.swiper.slides[this.activeItemIndex]).children("."+e.classes.slideBackground):this.$activeImageBg=jQuery(this.elements.$slides[0]).children("."+e.classes.slideBackground),this.$activeImageBg.addClass(e.classes.kenBurnsActive)}}t.default=SwiperHandlerBase},3090:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onPageSettingsChange:null,isEdit:null,__construct:function(e){this.isActive(e)&&(this.$element=e.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListeners())},isActive:function(){return!0},findElement:function(e){var t=this.$element;return t.find(e).filter((function(){return jQuery(this).closest(".elementor-element").is(t)}))},getUniqueHandlerID:function(e,t){return e||(e=this.getModelCID()),t||(t=this.$element),e+t.attr("data-element_type")+this.getConstructorID()},initEditorListeners:function(){var e=this;if(e.editorListeners=[{event:"element:destroy",to:elementor.channels.data,callback:function(t){t.cid===e.getModelCID()&&e.onDestroy()}}],e.onElementChange){const t=e.getWidgetType()||e.getElementType();let n="change";"global"!==t&&(n+=":"+t),e.editorListeners.push({event:n,to:elementor.channels.editor,callback:function(t,n){e.getUniqueHandlerID(n.model.cid,n.$el)===e.getUniqueHandlerID()&&e.onElementChange(t.model.get("name"),t,n)}})}e.onEditSettingsChange&&e.editorListeners.push({event:"change:editSettings",to:elementor.channels.editor,callback:function(t,n){n.model.cid===e.getModelCID()&&e.onEditSettingsChange(Object.keys(t.changed)[0])}}),["page"].forEach((function(t){var n="on"+t[0].toUpperCase()+t.slice(1)+"SettingsChange";e[n]&&e.editorListeners.push({event:"change",to:elementor.settings[t].model,callback:function(t){e[n](t.changed)}})}))},getEditorListeners:function(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners:function(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach((function(t){elementorFrontend.addListenerOnce(e,t.event,t.callback,t.to)}))},removeEditorListeners:function(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach((function(t){elementorFrontend.removeListeners(e,t.event,null,t.to)}))},getElementType:function(){return this.$element.data("element_type")},getWidgetType:function(){const e=this.$element.data("widget_type");if(e)return e.split(".")[0]},getID:function(){return this.$element.data("id")},getModelCID:function(){return this.$element.data("model-cid")},getElementSettings:function(e){let t={};const n=this.getModelCID();if(this.isEdit&&n){const e=elementorFrontend.config.elements.data[n],s=e.attributes;let i=s.widgetType||s.elType;s.isInner&&(i="inner-"+i);let r=elementorFrontend.config.elements.keys[i];r||(r=elementorFrontend.config.elements.keys[i]=[],jQuery.each(e.controls,((e,t)=>{t.frontend_available&&r.push(e)}))),jQuery.each(e.getActiveControls(),(function(e){if(-1!==r.indexOf(e)){let n=s[e];n.toJSON&&(n=n.toJSON()),t[e]=n}}))}else t=this.$element.data("settings")||{};return this.getItems(t,e)},getEditSettings:function(e){var t={};return this.isEdit&&(t=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(t,e)},getCurrentDeviceSetting:function(e){return elementorFrontend.getCurrentDeviceSetting(this.getElementSettings(),e)},onInit:function(){this.isActive(this.getSettings())&&elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},onDestroy:function(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})},6412:(e,t,n)=>{"use strict";var s=n(7914),i=s(n(5955)),r=s(n(8135)),o=s(n(5658)),l=s(n(3090)),c=s(n(2821));i.default.frontend={Document:r.default,tools:{StretchElement:o.default},handlers:{Base:l.default,SwiperBase:c.default}}},5658:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:function(){return{element:null,direction:elementorFrontend.config.is_rtl?"right":"left",selectors:{container:window}}},getDefaultElements:function(){return{$element:jQuery(this.getSettings("element"))}},stretch:function(){var e,t=this.getSettings("selectors.container");try{e=jQuery(t)}catch(e){}e&&e.length||(e=jQuery(this.getDefaultSettings().selectors.container)),this.reset();var n=this.elements.$element,s=e.innerWidth(),i=n.offset().left,r="fixed"===n.css("position"),o=r?0:i;if(window!==e[0]){var l=e.offset().left;r&&(o=l),i>l&&(o=i-l)}r||(elementorFrontend.config.is_rtl&&(o=s-(n.outerWidth()+o)),o=-o);var c={};c.width=s+"px",c[this.getSettings("direction")]=o+"px",n.css(c)},reset:function(){var e={width:""};e[this.getSettings("direction")]="",this.elements.$element.css(e)}})},2618:(e,t,n)=>{"use strict";var s=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7597));class ArgsObject extends i.default{static getInstanceType(){return"ArgsObject"}constructor(e){super(),this.args=e}requireArgument(e,t=this.args){if(!t.hasOwnProperty(e))throw Error(`${e} is required.`)}requireArgumentType(e,t,n=this.args){if(this.requireArgument(e,n),typeof n[e]!==t)throw Error(`${e} invalid type: ${t}.`)}requireArgumentInstance(e,t,n=this.args){if(this.requireArgument(e,n),!(n[e]instanceof t))throw Error(`${e} invalid instance.`)}requireArgumentConstructor(e,t,n=this.args){if(this.requireArgument(e,n),n[e].constructor!==t)throw Error(`${e} invalid constructor type.`)}}t.default=ArgsObject},869:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ForceMethodImplementation=void 0;class ForceMethodImplementation extends Error{constructor(e={}){super(`${e.isStatic?"static ":""}${e.fullName}() should be implemented, please provide '${e.functionName||e.fullName}' functionality.`),Error.captureStackTrace(this,ForceMethodImplementation)}}t.ForceMethodImplementation=ForceMethodImplementation;t.default=()=>{const e=Error().stack.split("\n")[2].trim(),t=e.startsWith("at new")?"constructor":e.split(" ")[1],n={};if(n.functionName=t,n.fullName=t,n.functionName.includes(".")){const e=n.functionName.split(".");n.className=e[0],n.functionName=e[1]}else n.isStatic=!0;throw new ForceMethodImplementation(n)}},7597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class InstanceType{static[Symbol.hasInstance](e){let t=super[Symbol.hasInstance](e);if(e&&!e.constructor.getInstanceType)return t;if(e&&(e.instanceTypes||(e.instanceTypes=[]),t||this.getInstanceType()===e.constructor.getInstanceType()&&(t=!0),t)){const t=this.getInstanceType===InstanceType.getInstanceType?"BaseInstanceType":this.getInstanceType();-1===e.instanceTypes.indexOf(t)&&e.instanceTypes.push(t)}return!t&&e&&(t=e.instanceTypes&&Array.isArray(e.instanceTypes)&&-1!==e.instanceTypes.indexOf(this.getInstanceType())),t}constructor(){let e=new.target;const t=[];for(;e.__proto__&&e.__proto__.name;)t.push(e.__proto__),e=e.__proto__;t.reverse().forEach((e=>this instanceof e))}static getInstanceType(){elementorModules.ForceMethodImplementation()}}t.default=InstanceType},1192:e=>{"use strict";const Module=function(){const e=jQuery,t=arguments,n=this,s={};let i;const ensureClosureMethods=function(){e.each(n,(function(e){const t=n[e];"function"==typeof t&&(n[e]=function(){return t.apply(n,arguments)})}))},initSettings=function(){i=n.getDefaultSettings();const s=t[0];s&&e.extend(!0,i,s)},init=function(){n.__construct.apply(n,t),ensureClosureMethods(),initSettings(),n.trigger("init")};this.getItems=function(e,t){if(t){const n=t.split("."),s=n.splice(0,1);if(!n.length)return e[s];if(!e[s])return;return this.getItems(e[s],n.join("."))}return e},this.getSettings=function(e){return this.getItems(i,e)},this.setSettings=function(t,s,r){if(r||(r=i),"object"==typeof t)return e.extend(r,t),n;const o=t.split("."),l=o.splice(0,1);return o.length?(r[l]||(r[l]={}),n.setSettings(o.join("."),s,r[l])):(r[l]=s,n)},this.getErrorMessage=function(e,t){let n;switch(e){case"forceMethodImplementation":n=`The method '${t}' must to be implemented in the inheritor child.`;break;default:n="An error occurs"}return n},this.forceMethodImplementation=function(e){throw new Error(this.getErrorMessage("forceMethodImplementation",e))},this.on=function(t,i){if("object"==typeof t)return e.each(t,(function(e){n.on(e,this)})),n;return t.split(" ").forEach((function(e){s[e]||(s[e]=[]),s[e].push(i)})),n},this.off=function(e,t){if(!s[e])return n;if(!t)return delete s[e],n;const i=s[e].indexOf(t);return-1!==i&&(delete s[e][i],s[e]=s[e].filter((e=>e))),n},this.trigger=function(t){const i="on"+t[0].toUpperCase()+t.slice(1),r=Array.prototype.slice.call(arguments,1);n[i]&&n[i].apply(n,r);const o=s[t];return o?(e.each(o,(function(e,t){t.apply(n,r)})),n):n},init()};Module.prototype.__construct=function(){},Module.prototype.getDefaultSettings=function(){return{}},Module.prototype.getConstructorID=function(){return this.constructor.name},Module.extend=function(e){const t=jQuery,n=this,child=function(){return n.apply(this,arguments)};return t.extend(child,n),(child.prototype=Object.create(t.extend({},n.prototype,e))).constructor=child,child.__super__=n.prototype,child},e.exports=Module},6516:(e,t,n)=>{"use strict";var s=n(7914)(n(2640));e.exports=s.default.extend({getDefaultSettings:function(){return{container:null,items:null,columnsCount:3,verticalSpaceBetween:30}},getDefaultElements:function(){return{$container:jQuery(this.getSettings("container")),$items:jQuery(this.getSettings("items"))}},run:function(){var e=[],t=this.elements.$container.position().top,n=this.getSettings(),s=n.columnsCount;t+=parseInt(this.elements.$container.css("margin-top"),10),this.elements.$items.each((function(i){var r=Math.floor(i/s),o=jQuery(this),l=o[0].getBoundingClientRect().height+n.verticalSpaceBetween;if(r){var c=o.position(),a=i%s,u=c.top-t-e[a];u-=parseInt(o.css("margin-top"),10),u*=-1,o.css("margin-top",u+"px"),e[a]+=l}else e.push(l)}))}})},400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Scroll{static scrollObserver(e){let t=0;const n={root:e.root||null,rootMargin:e.offset||"0px",threshold:((e=0)=>{const t=[];if(e>0&&e<=100){const n=100/e;for(let e=0;e<=100;e+=n)t.push(e/100)}else t.push(0);return t})(e.sensitivity)};return new IntersectionObserver((function handleIntersect(n,s){const i=n[0].boundingClientRect.y,r=n[0].isIntersecting,o=i<t?"down":"up",l=Math.abs(parseFloat((100*n[0].intersectionRatio).toFixed(2)));e.callback({sensitivity:e.sensitivity,isInViewport:r,scrollPercentage:l,intersectionScrollDirection:o}),t=i}),n)}static getElementViewportPercentage(e,t={}){const n=e[0].getBoundingClientRect(),s=t.start||0,i=t.end||0,r=window.innerHeight*s/100,o=window.innerHeight*i/100,l=n.top-window.innerHeight,c=0-l+r,a=n.top+r+e.height()-l+o,u=Math.max(0,Math.min(c/a,1));return parseFloat((100*u).toFixed(2))}static getPageScrollPercentage(e={},t){const n=e.start||0,s=e.end||0,i=t||document.documentElement.scrollHeight-document.documentElement.clientHeight,r=i*n/100,o=i+r+i*s/100;return(document.documentElement.scrollTop+document.body.scrollTop+r)/o*100}}},2640:(e,t,n)=>{"use strict";var s=n(7914)(n(1192));e.exports=s.default.extend({elements:null,getDefaultElements:function(){return{}},bindEvents:function(){},onInit:function(){this.initElements(),this.bindEvents()},initElements:function(){this.elements=this.getDefaultElements()}})},5955:(e,t,n)=>{"use strict";var s=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(1192)),r=s(n(2640)),o=s(n(2618)),l=s(n(6516)),c=s(n(400)),a=s(n(869)),u=window.elementorModules={Module:i.default,ViewModule:r.default,ArgsObject:o.default,ForceMethodImplementation:a.default,utils:{Masonry:l.default,Scroll:c.default}};t.default=u}},e=>{"use strict";var t;t=6412,e(e.s=t)}]);
/*! elementor-pro - v3.3.0 - 06-06-2021 */
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[819],{5453:(e,t,n)=>{e.exports=n(6802)},2009:(e,t,n)=>{e.exports=n(2771)},8401:(e,t,n)=>{e.exports=n(9043)},2937:(e,t,n)=>{e.exports=n(7841)},7394:(e,t,n)=>{e.exports=n(3679)},3587:(e,t,n)=>{e.exports=n(7092)},3774:(e,t,n)=>{e.exports=n(5966)},5315:(e,t,n)=>{e.exports=n(9406)},2055:(e,t,n)=>{e.exports=n(8473)},3452:(e,t,n)=>{e.exports=n(671)},8274:(e,t,n)=>{e.exports=n(7629)},4176:(e,t,n)=>{e.exports=n(4969)},3220:(e,t,n)=>{e.exports=n(9485)},5499:(e,t,n)=>{e.exports=n(990)},8282:(e,t,n)=>{e.exports=n(6760)},1281:(e,t,n)=>{e.exports=n(9280)},93:(e,t,n)=>{e.exports=n(2194)},8852:e=>{e.exports=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},1959:e=>{e.exports=function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},9041:(e,t,n)=>{var r=n(7394);function _defineProperties(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),r(e,i.key,i)}}e.exports=function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}},8537:(e,t,n)=>{var r=n(5499),i=n(4263),o=n(898),a=n(9771);e.exports=function _createSuper(e){var t=o();return function _createSuperInternal(){var n,o=i(e);if(t){var s=i(this).constructor;n=r(o,arguments,s)}else n=o.apply(this,arguments);return a(this,n)}}},8042:(e,t,n)=>{var r=n(7394);e.exports=function _defineProperty(e,t,n){return t in e?r(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},6700:(e,t,n)=>{var r=n(3587),i=n(8282),o=n(9445);function _get(t,n,a){return"undefined"!=typeof Reflect&&i?e.exports=_get=i:e.exports=_get=function _get(e,t,n){var i=o(e,t);if(i){var a=r(i,t);return a.get?a.get.call(n):a.value}},_get(t,n,a||t)}e.exports=_get},4263:(e,t,n)=>{var r=n(2055),i=n(8274);function _getPrototypeOf(t){return e.exports=_getPrototypeOf=i?r:function _getPrototypeOf(e){return e.__proto__||r(e)},_getPrototypeOf(t)}e.exports=_getPrototypeOf},7371:(e,t,n)=>{var r=n(8401),i=n(6870);e.exports=function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=r(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},7971:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},898:(e,t,n)=>{var r=n(5499);e.exports=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!r)return!1;if(r.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(r(Date,[],(function(){}))),!0}catch(e){return!1}}},4899:(e,t,n)=>{var r=n(7394),i=n(2937),o=n(3774),a=n(3587),s=n(5315),l=n(3452),u=n(8042);function ownKeys(e,t){var n=l(e);if(s){var r=s(e);t&&(r=r.filter((function(t){return a(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){u(e,t,n[t])})):o?i(e,o(n)):ownKeys(Object(n)).forEach((function(t){r(e,t,a(n,t))}))}return e}},9771:(e,t,n)=>{var r=n(4596),i=n(8852);e.exports=function _possibleConstructorReturn(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},6870:(e,t,n)=>{var r=n(8274);function _setPrototypeOf(t,n){return e.exports=_setPrototypeOf=r||function _setPrototypeOf(e,t){return e.__proto__=t,e},_setPrototypeOf(t,n)}e.exports=_setPrototypeOf},9445:(e,t,n)=>{var r=n(4263);e.exports=function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},4596:(e,t,n)=>{var r=n(93),i=n(1281);function _typeof(t){return e.exports=_typeof="function"==typeof i&&"symbol"==typeof r?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e},_typeof(t)}e.exports=_typeof},6802:(e,t,n)=>{n(617),n(4494),e.exports=n(7252).Array.from},2771:(e,t,n)=>{var r=n(7252),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function stringify(e){return i.stringify.apply(i,arguments)}},9043:(e,t,n)=>{n(4713);var r=n(7252).Object;e.exports=function create(e,t){return r.create(e,t)}},7841:(e,t,n)=>{n(6344);var r=n(7252).Object;e.exports=function defineProperties(e,t){return r.defineProperties(e,t)}},3679:(e,t,n)=>{n(2328);var r=n(7252).Object;e.exports=function defineProperty(e,t,n){return r.defineProperty(e,t,n)}},7092:(e,t,n)=>{n(8869);var r=n(7252).Object;e.exports=function getOwnPropertyDescriptor(e,t){return r.getOwnPropertyDescriptor(e,t)}},5966:(e,t,n)=>{n(2109),e.exports=n(7252).Object.getOwnPropertyDescriptors},9406:(e,t,n)=>{n(5638),e.exports=n(7252).Object.getOwnPropertySymbols},8473:(e,t,n)=>{n(318),e.exports=n(7252).Object.getPrototypeOf},671:(e,t,n)=>{n(3219),e.exports=n(7252).Object.keys},7629:(e,t,n)=>{n(929),e.exports=n(7252).Object.setPrototypeOf},4969:(e,t,n)=>{n(5142),e.exports=n(7252).parseInt},9485:(e,t,n)=>{n(8970),n(617),n(414),n(8949),n(8533),n(9838),e.exports=n(7252).Promise},990:(e,t,n)=>{n(7795),e.exports=n(7252).Reflect.construct},6760:(e,t,n)=>{n(7969),e.exports=n(7252).Reflect.get},9280:(e,t,n)=>{n(5638),n(8970),n(51),n(80),e.exports=n(7252).Symbol},2194:(e,t,n)=>{n(617),n(414),e.exports=n(451).f("iterator")},7370:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},5855:e=>{e.exports=function(){}},944:e=>{e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},3451:(e,t,n)=>{var r=n(9110);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},8381:(e,t,n)=>{var r=n(394),i=n(3981),o=n(7568);e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},7569:(e,t,n)=>{"use strict";var r=n(7370),i=n(9110),o=n(5808),a=[].slice,s={},construct=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function bind(e){var t=r(this),n=a.call(arguments,1),bound=function(){var r=n.concat(a.call(arguments));return this instanceof bound?construct(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(bound.prototype=t.prototype),bound}},8252:(e,t,n)=>{var r=n(1539),i=n(7861)("toStringTag"),o="Arguments"==r(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),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},1539:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},7252:e=>{var t=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=t)},2270:(e,t,n)=>{"use strict";var r=n(109),i=n(7923);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},9365:(e,t,n)=>{var r=n(7370);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},6776:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},3752:(e,t,n)=>{e.exports=!n(1785)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},2264:(e,t,n)=>{var r=n(9110),i=n(3227).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},3945:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1023:(e,t,n)=>{var r=n(1014),i=n(4529),o=n(3866);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},2570:(e,t,n)=>{var r=n(3227),i=n(7252),o=n(9365),a=n(2441),s=n(3209),$export=function(e,t,n){var l,u,c,f=e&$export.F,d=e&$export.G,p=e&$export.S,v=e&$export.P,h=e&$export.B,y=e&$export.W,g=d?i:i[t]||(i[t]={}),m=g.prototype,b=d?r:p?r[t]:(r[t]||{}).prototype;for(l in d&&(n=t),n)(u=!f&&b&&void 0!==b[l])&&s(g,l)||(c=u?b[l]:n[l],g[l]=d&&"function"!=typeof b[l]?n[l]:h&&u?o(c,r):y&&b[l]==c?function(e){var F=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return F.prototype=e.prototype,F}(c):v&&"function"==typeof c?o(Function.call,c):c,v&&((g.virtual||(g.virtual={}))[l]=c,e&$export.R&&m&&!m[l]&&a(m,l,c)))};$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,e.exports=$export},1785:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},2966:(e,t,n)=>{var r=n(9365),i=n(5224),o=n(652),a=n(3451),s=n(3981),l=n(5937),u={},c={},f=e.exports=function(e,t,n,f,d){var p,v,h,y,g=d?function(){return e}:l(e),m=r(n,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(p=s(e.length);p>b;b++)if((y=t?m(a(v=e[b])[0],v[1]):m(e[b]))===u||y===c)return y}else for(h=g.call(e);!(v=h.next()).done;)if((y=i(h,m,v.value,t))===u||y===c)return y};f.BREAK=u,f.RETURN=c},3227: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)},3209:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},2441:(e,t,n)=>{var r=n(109),i=n(7923);e.exports=n(3752)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},7955:(e,t,n)=>{var r=n(3227).document;e.exports=r&&r.documentElement},476:(e,t,n)=>{e.exports=!n(3752)&&!n(1785)((function(){return 7!=Object.defineProperty(n(2264)("div"),"a",{get:function(){return 7}}).a}))},5808:e=>{e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},4409:(e,t,n)=>{var r=n(1539);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},652:(e,t,n)=>{var r=n(8727),i=n(7861)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},5311:(e,t,n)=>{var r=n(1539);e.exports=Array.isArray||function isArray(e){return"Array"==r(e)}},9110:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},5224:(e,t,n)=>{var r=n(3451);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},3154:(e,t,n)=>{"use strict";var r=n(3502),i=n(7923),o=n(2280),a={};n(2441)(a,n(7861)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},6982:(e,t,n)=>{"use strict";var r=n(5401),i=n(2570),o=n(6931),a=n(2441),s=n(8727),l=n(3154),u=n(2280),c=n(4276),f=n(7861)("iterator"),d=!([].keys&&"next"in[].keys()),p="keys",v="values",returnThis=function(){return this};e.exports=function(e,t,n,h,y,g,m){l(n,t,h);var b,x,_,getMethod=function(e){if(!d&&e in w)return w[e];switch(e){case p:return function keys(){return new n(this,e)};case v:return function values(){return new n(this,e)}}return function entries(){return new n(this,e)}},I=t+" Iterator",k=y==v,S=!1,w=e.prototype,P=w[f]||w["@@iterator"]||y&&w[y],E=P||getMethod(y),O=y?k?getMethod("entries"):E:void 0,T="Array"==t&&w.entries||P;if(T&&(_=c(T.call(new e)))!==Object.prototype&&_.next&&(u(_,I,!0),r||"function"==typeof _[f]||a(_,f,returnThis)),k&&P&&P.name!==v&&(S=!0,E=function values(){return P.call(this)}),r&&!m||!d&&!S&&w[f]||a(w,f,E),s[t]=E,s[I]=returnThis,y)if(b={values:k?E:getMethod(v),keys:g?E:getMethod(p),entries:O},m)for(x in b)x in w||o(w,x,b[x]);else i(i.P+i.F*(d||S),t,b);return b}},694:(e,t,n)=>{var r=n(7861)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},3907:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},8727:e=>{e.exports={}},5401:e=>{e.exports=!0},9378:(e,t,n)=>{var r=n(1953)("meta"),i=n(9110),o=n(3209),a=n(109).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(1785)((function(){return l(Object.preventExtensions({}))})),setMeta=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},c=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";setMeta(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;setMeta(e)}return e[r].w},onFreeze:function(e){return u&&c.NEED&&l(e)&&!o(e,r)&&setMeta(e),e}}},7470:(e,t,n)=>{var r=n(3227),i=n(1982).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n(1539)(a);e.exports=function(){var e,t,n,flush=function(){var r,i;for(l&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(flush)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(flush)}}else n=function(){i.call(r,flush)};else{var c=!0,f=document.createTextNode("");new o(flush).observe(f,{characterData:!0}),n=function(){f.data=c=!c}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},5e3:(e,t,n)=>{"use strict";var r=n(7370);function PromiseCapability(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new PromiseCapability(e)}},3502:(e,t,n)=>{var r=n(3451),i=n(5548),o=n(3945),a=n(1283)("IE_PROTO"),Empty=function(){},createDict=function(){var e,t=n(2264)("iframe"),r=o.length;for(t.style.display="none",n(7955).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),createDict=e.F;r--;)delete createDict.prototype[o[r]];return createDict()};e.exports=Object.create||function create(e,t){var n;return null!==e?(Empty.prototype=r(e),n=new Empty,Empty.prototype=null,n[a]=e):n=createDict(),void 0===t?n:i(n,t)}},109:(e,t,n)=>{var r=n(3451),i=n(476),o=n(5749),a=Object.defineProperty;t.f=n(3752)?Object.defineProperty:function defineProperty(e,t,n){if(r(e),t=o(t,!0),r(n),i)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}},5548:(e,t,n)=>{var r=n(109),i=n(3451),o=n(1014);e.exports=n(3752)?Object.defineProperties:function defineProperties(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},3282:(e,t,n)=>{var r=n(3866),i=n(7923),o=n(394),a=n(5749),s=n(3209),l=n(476),u=Object.getOwnPropertyDescriptor;t.f=n(3752)?u:function getOwnPropertyDescriptor(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},2160:(e,t,n)=>{var r=n(394),i=n(3765).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function getOwnPropertyNames(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},3765:(e,t,n)=>{var r=n(4167),i=n(3945).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return r(e,i)}},4529:(e,t)=>{t.f=Object.getOwnPropertySymbols},4276:(e,t,n)=>{var r=n(3209),i=n(5374),o=n(1283)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},4167:(e,t,n)=>{var r=n(3209),i=n(394),o=n(8381)(!1),a=n(1283)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},1014:(e,t,n)=>{var r=n(4167),i=n(3945);e.exports=Object.keys||function keys(e){return r(e,i)}},3866:(e,t)=>{t.f={}.propertyIsEnumerable},8683:(e,t,n)=>{var r=n(2570),i=n(7252),o=n(1785);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},3767:(e,t,n)=>{var r=n(3765),i=n(4529),o=n(3451),a=n(3227).Reflect;e.exports=a&&a.ownKeys||function ownKeys(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},5111:(e,t,n)=>{var r=n(3227).parseInt,i=n(9379).trim,o=n(107),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function parseInt(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},4754:e=>{e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},7338:(e,t,n)=>{var r=n(3451),i=n(9110),o=n(5e3);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},7923:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3991:(e,t,n)=>{var r=n(2441);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},6931:(e,t,n)=>{e.exports=n(2441)},4331:(e,t,n)=>{var r=n(9110),i=n(3451),check=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(9365)(Function.call,n(3282).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function setPrototypeOf(e,n){return check(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check}},4472:(e,t,n)=>{"use strict";var r=n(3227),i=n(7252),o=n(109),a=n(3752),s=n(7861)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},2280:(e,t,n)=>{var r=n(109).f,i=n(3209),o=n(7861)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},1283:(e,t,n)=>{var r=n(1279)("keys"),i=n(1953);e.exports=function(e){return r[e]||(r[e]=i(e))}},1279:(e,t,n)=>{var r=n(7252),i=n(3227),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(5401)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},6575:(e,t,n)=>{var r=n(3451),i=n(7370),o=n(7861)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},4581:(e,t,n)=>{var r=n(7907),i=n(6776);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},9379:(e,t,n)=>{var r=n(2570),i=n(6776),o=n(1785),a=n(107),s="["+a+"]",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),exporter=function(e,t,n){var i={},s=o((function(){return!!a[e]()||"
"!="
"[e]()})),l=i[e]=s?t(c):a[e];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},c=exporter.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=exporter},107:e=>{e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},1982:(e,t,n)=>{var r,i,o,a=n(9365),s=n(5808),l=n(7955),u=n(2264),c=n(3227),f=c.process,d=c.setImmediate,p=c.clearImmediate,v=c.MessageChannel,h=c.Dispatch,y=0,g={},m="onreadystatechange",run=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},listener=function(e){run.call(e.data)};d&&p||(d=function setImmediate(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++y]=function(){s("function"==typeof e?e:Function(e),t)},r(y),y},p=function clearImmediate(e){delete g[e]},"process"==n(1539)(f)?r=function(e){f.nextTick(a(run,e,1))}:h&&h.now?r=function(e){h.now(a(run,e,1))}:v?(o=(i=new v).port2,i.port1.onmessage=listener,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",listener,!1)):r=m in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),run.call(e)}}:function(e){setTimeout(a(run,e,1),0)}),e.exports={set:d,clear:p}},7568:(e,t,n)=>{var r=n(7907),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},7907:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},394:(e,t,n)=>{var r=n(4409),i=n(6776);e.exports=function(e){return r(i(e))}},3981:(e,t,n)=>{var r=n(7907),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},5374:(e,t,n)=>{var r=n(6776);e.exports=function(e){return Object(r(e))}},5749:(e,t,n)=>{var r=n(9110);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},1953:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},1344:(e,t,n)=>{var r=n(3227).navigator;e.exports=r&&r.userAgent||""},58:(e,t,n)=>{var r=n(3227),i=n(7252),o=n(5401),a=n(451),s=n(109).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},451:(e,t,n)=>{t.f=n(7861)},7861:(e,t,n)=>{var r=n(1279)("wks"),i=n(1953),o=n(3227).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},5937:(e,t,n)=>{var r=n(8252),i=n(7861)("iterator"),o=n(8727);e.exports=n(7252).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},4494:(e,t,n)=>{"use strict";var r=n(9365),i=n(2570),o=n(5374),a=n(5224),s=n(652),l=n(3981),u=n(2270),c=n(5937);i(i.S+i.F*!n(694)((function(e){Array.from(e)})),"Array",{from:function from(e){var t,n,i,f,d=o(e),p="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,y=void 0!==h,g=0,m=c(d);if(y&&(h=r(h,v>2?arguments[2]:void 0,2)),null==m||p==Array&&s(m))for(n=new p(t=l(d.length));t>g;g++)u(n,g,y?h(d[g],g):d[g]);else for(f=m.call(d),n=new p;!(i=f.next()).done;g++)u(n,g,y?a(f,h,[i.value,g],!0):i.value);return n.length=g,n}})},4587:(e,t,n)=>{"use strict";var r=n(5855),i=n(3907),o=n(8727),a=n(394);e.exports=n(6982)(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,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},4713:(e,t,n)=>{var r=n(2570);r(r.S,"Object",{create:n(3502)})},6344:(e,t,n)=>{var r=n(2570);r(r.S+r.F*!n(3752),"Object",{defineProperties:n(5548)})},2328:(e,t,n)=>{var r=n(2570);r(r.S+r.F*!n(3752),"Object",{defineProperty:n(109).f})},8869:(e,t,n)=>{var r=n(394),i=n(3282).f;n(8683)("getOwnPropertyDescriptor",(function(){return function getOwnPropertyDescriptor(e,t){return i(r(e),t)}}))},318:(e,t,n)=>{var r=n(5374),i=n(4276);n(8683)("getPrototypeOf",(function(){return function getPrototypeOf(e){return i(r(e))}}))},3219:(e,t,n)=>{var r=n(5374),i=n(1014);n(8683)("keys",(function(){return function keys(e){return i(r(e))}}))},929:(e,t,n)=>{var r=n(2570);r(r.S,"Object",{setPrototypeOf:n(4331).set})},8970:()=>{},5142:(e,t,n)=>{var r=n(2570),i=n(5111);r(r.G+r.F*(parseInt!=i),{parseInt:i})},8949:(e,t,n)=>{"use strict";var r,i,o,a,s=n(5401),l=n(3227),u=n(9365),c=n(8252),f=n(2570),d=n(9110),p=n(7370),v=n(944),h=n(2966),y=n(6575),g=n(1982).set,m=n(7470)(),b=n(5e3),x=n(4754),_=n(1344),I=n(7338),k="Promise",S=l.TypeError,w=l.process,P=w&&w.versions,E=P&&P.v8||"",O=l.Promise,T="process"==c(w),empty=function(){},A=i=b.f,j=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n(7861)("species")]=function(e){e(empty,empty)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(empty)instanceof t&&0!==E.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),isThenable=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},notify=function(e,t){if(!e._n){e._n=!0;var n=e._c;m((function(){for(var r=e._v,i=1==e._s,o=0,run=function(t){var n,o,a,s=i?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(i||(2==e._h&&onHandleUnhandled(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),a=!0)),n===t.promise?u(S("Promise-chain cycle")):(o=isThenable(n))?o.call(n,l,u):l(n)):u(r)}catch(e){c&&!a&&c.exit(),u(e)}};n.length>o;)run(n[o++]);e._c=[],e._n=!1,t&&!e._h&&onUnhandled(e)}))}},onUnhandled=function(e){g.call(l,(function(){var t,n,r,i=e._v,o=isUnhandled(e);if(o&&(t=x((function(){T?w.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=T||isUnhandled(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},isUnhandled=function(e){return 1!==e._h&&0===(e._a||e._c).length},onHandleUnhandled=function(e){g.call(l,(function(){var t;T?w.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},$reject=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),notify(t,!0))},$resolve=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=isThenable(e))?m((function(){var r={_w:n,_d:!1};try{t.call(e,u($resolve,r,1),u($reject,r,1))}catch(e){$reject.call(r,e)}})):(n._v=e,n._s=1,notify(n,!1))}catch(e){$reject.call({_w:n,_d:!1},e)}}};j||(O=function Promise(e){v(this,O,k,"_h"),p(e),r.call(this);try{e(u($resolve,this,1),u($reject,this,1))}catch(e){$reject.call(this,e)}},(r=function Promise(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(3991)(O.prototype,{then:function then(e,t){var n=A(y(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=T?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&¬ify(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u($resolve,e,1),this.reject=u($reject,e,1)},b.f=A=function(e){return e===O||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!j,{Promise:O}),n(2280)(O,k),n(4472)(k),a=n(7252).Promise,f(f.S+f.F*!j,k,{reject:function reject(e){var t=A(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!j),k,{resolve:function resolve(e){return I(s&&this===a?O:this,e)}}),f(f.S+f.F*!(j&&n(694)((function(e){O.all(e).catch(empty)}))),k,{all:function all(e){var t=this,n=A(t),r=n.resolve,i=n.reject,o=x((function(){var n=[],o=0,a=1;h(e,!1,(function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function race(e){var t=this,n=A(t),r=n.reject,i=x((function(){h(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},7795:(e,t,n)=>{var r=n(2570),i=n(3502),o=n(7370),a=n(3451),s=n(9110),l=n(1785),u=n(7569),c=(n(3227).Reflect||{}).construct,f=l((function(){function F(){}return!(c((function(){}),[],F)instanceof F)})),d=!l((function(){c((function(){}))}));r(r.S+r.F*(f||d),"Reflect",{construct:function construct(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!f)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var l=n.prototype,p=i(s(l)?l:Object.prototype),v=Function.apply.call(e,p,t);return s(v)?v:p}})},7969:(e,t,n)=>{var r=n(3282),i=n(4276),o=n(3209),a=n(2570),s=n(9110),l=n(3451);a(a.S,"Reflect",{get:function get(e,t){var n,a,u=arguments.length<3?e:arguments[2];return l(e)===u?e[t]:(n=r.f(e,t))?o(n,"value")?n.value:void 0!==n.get?n.get.call(u):void 0:s(a=i(e))?get(a,t,u):void 0}})},617:(e,t,n)=>{"use strict";var r=n(4581)(!0);n(6982)(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=r(t,n),this._i+=e.length,{value:e,done:!1})}))},5638:(e,t,n)=>{"use strict";var r=n(3227),i=n(3209),o=n(3752),a=n(2570),s=n(6931),l=n(9378).KEY,u=n(1785),c=n(1279),f=n(2280),d=n(1953),p=n(7861),v=n(451),h=n(58),y=n(1023),g=n(5311),m=n(3451),b=n(9110),x=n(5374),_=n(394),I=n(5749),k=n(7923),S=n(3502),w=n(2160),P=n(3282),E=n(4529),O=n(109),T=n(1014),A=P.f,j=O.f,M=w.f,C=r.Symbol,D=r.JSON,V=D&&D.stringify,R=p("_hidden"),L=p("toPrimitive"),$={}.propertyIsEnumerable,H=c("symbol-registry"),B=c("symbols"),N=c("op-symbols"),X=Object.prototype,q="function"==typeof C&&!!E.f,W=r.QObject,z=!W||!W.prototype||!W.prototype.findChild,U=o&&u((function(){return 7!=S(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=A(X,t);r&&delete X[t],j(e,t,n),r&&e!==X&&j(X,t,r)}:j,wrap=function(e){var t=B[e]=S(C.prototype);return t._k=e,t},Y=q&&"symbol"==typeof C.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof C},Q=function defineProperty(e,t,n){return e===X&&Q(N,t,n),m(e),t=I(t,!0),m(n),i(B,t)?(n.enumerable?(i(e,R)&&e[R][t]&&(e[R][t]=!1),n=S(n,{enumerable:k(0,!1)})):(i(e,R)||j(e,R,k(1,{})),e[R][t]=!0),U(e,t,n)):j(e,t,n)},K=function defineProperties(e,t){m(e);for(var n,r=y(t=_(t)),i=0,o=r.length;o>i;)Q(e,n=r[i++],t[n]);return e},G=function propertyIsEnumerable(e){var t=$.call(this,e=I(e,!0));return!(this===X&&i(B,e)&&!i(N,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,R)&&this[R][e])||t)},J=function getOwnPropertyDescriptor(e,t){if(e=_(e),t=I(t,!0),e!==X||!i(B,t)||i(N,t)){var n=A(e,t);return!n||!i(B,t)||i(e,R)&&e[R][t]||(n.enumerable=!0),n}},Z=function getOwnPropertyNames(e){for(var t,n=M(_(e)),r=[],o=0;n.length>o;)i(B,t=n[o++])||t==R||t==l||r.push(t);return r},ee=function getOwnPropertySymbols(e){for(var t,n=e===X,r=M(n?N:_(e)),o=[],a=0;r.length>a;)!i(B,t=r[a++])||n&&!i(X,t)||o.push(B[t]);return o};q||(s((C=function Symbol(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),$set=function(t){this===X&&$set.call(N,t),i(this,R)&&i(this[R],e)&&(this[R][e]=!1),U(this,e,k(1,t))};return o&&z&&U(X,e,{configurable:!0,set:$set}),wrap(e)}).prototype,"toString",(function toString(){return this._k})),P.f=J,O.f=Q,n(3765).f=w.f=Z,n(3866).f=G,E.f=ee,o&&!n(5401)&&s(X,"propertyIsEnumerable",G,!0),v.f=function(e){return wrap(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:C});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=T(p.store),ie=0;re.length>ie;)h(re[ie++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(H,e+="")?H[e]:H[e]=C(e)},keyFor:function keyFor(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in H)if(H[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!q,"Object",{create:function create(e,t){return void 0===t?S(e):K(S(e),t)},defineProperty:Q,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var oe=u((function(){E.f(1)}));a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function getOwnPropertySymbols(e){return E.f(x(e))}}),D&&a(a.S+a.F*(!q||u((function(){var e=C();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))}))),"JSON",{stringify:function stringify(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,V.apply(D,r)}}),C.prototype[L]||n(2441)(C.prototype,L,C.prototype.valueOf),f(C,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},2109:(e,t,n)=>{var r=n(2570),i=n(3767),o=n(394),a=n(3282),s=n(2270);r(r.S,"Object",{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(e){for(var t,n,r=o(e),l=a.f,u=i(r),c={},f=0;u.length>f;)void 0!==(n=l(r,t=u[f++]))&&s(c,t,n);return c}})},8533:(e,t,n)=>{"use strict";var r=n(2570),i=n(7252),o=n(3227),a=n(6575),s=n(7338);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},9838:(e,t,n)=>{"use strict";var r=n(2570),i=n(5e3),o=n(4754);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},51:(e,t,n)=>{n(58)("asyncIterator")},80:(e,t,n)=>{n(58)("observable")},414:(e,t,n)=>{n(4587);for(var r=n(3227),i=n(2441),o=n(8727),a=n(7861)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],f=c&&c.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},3713:(e,t,n)=>{"use strict";var r=n(7971),i=r(n(1959)),o=r(n(9041)),a=r(n(6700)),s=r(n(4263)),l=r(n(7371)),u=r(n(8537));n(3258);var c=r(n(8442)),f=r(n(9253)),d=r(n(4552)),p=r(n(1498)),v=r(n(1336)),h=function(e){(0,l.default)(ElementorProFrontend,e);var t=(0,u.default)(ElementorProFrontend);function ElementorProFrontend(){return(0,i.default)(this,ElementorProFrontend),t.apply(this,arguments)}return(0,o.default)(ElementorProFrontend,[{key:"onInit",value:function onInit(){(0,a.default)((0,s.default)(ElementorProFrontend.prototype),"onInit",this).call(this),this.config=ElementorProFrontendConfig,this.modules={}}},{key:"bindEvents",value:function bindEvents(){jQuery(window).on("elementor/frontend/init",this.onElementorFrontendInit.bind(this))}},{key:"initModules",value:function initModules(){var e=this,t={motionFX:c.default,sticky:f.default,codeHighlight:d.default,videoPlaylist:p.default,payments:v.default};elementorProFrontend.trigger("elementor-pro/modules/init:before"),t=elementorFrontend.hooks.applyFilters("elementor-pro/frontend/handlers",t),jQuery.each(t,(function(t,n){e.modules[t]=new n})),this.modules.linkActions={addAction:function addAction(){var e;(e=elementorFrontend.utils.urlActions).addAction.apply(e,arguments)}}}},{key:"onElementorFrontendInit",value:function onElementorFrontendInit(){this.initModules()}}]),ElementorProFrontend}(elementorModules.ViewModule);window.elementorProFrontend=new h},3258:(e,t,n)=>{"use strict";n.p=ElementorProFrontendConfig.urls.assets+"js/"},4552:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959)),o=r(n(7371)),a=r(n(8537)),s=function(e){(0,o.default)(_default,e);var t=(0,a.default)(_default);function _default(){var e;return(0,i.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("code-highlight",(function(){return n.e(714).then(n.t.bind(n,3929,23))})),e}return _default}(elementorModules.Module);t.default=s},8442:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959)),o=r(n(7371)),a=r(n(8537)),s=r(n(5542)),l=function(e){(0,o.default)(_default,e);var t=(0,a.default)(_default);function _default(){var e;return(0,i.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("global",s.default,null),e}return _default}(elementorModules.Module);t.default=l},5542:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var i=r(n(3452)),o=r(n(4596));n(4828),n(5506);var a=r(n(1959)),s=r(n(9041)),l=r(n(6700)),u=r(n(4263)),c=r(n(7371)),f=r(n(8537)),d=r(n(6829)),p=function(e){(0,c.default)(_default,e);var t=(0,f.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"__construct",value:function __construct(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=(0,l.default)((0,u.default)(_default.prototype),"__construct",this)).call.apply(e,[this].concat(n)),this.toggle=elementorFrontend.debounce(this.toggle,200)}},{key:"bindEvents",value:function bindEvents(){elementorFrontend.elements.$window.on("resize",this.toggle)}},{key:"unbindEvents",value:function unbindEvents(){elementorFrontend.elements.$window.off("resize",this.toggle)}},{key:"initEffects",value:function initEffects(){this.effects={translateY:{interaction:"scroll",actions:["translateY"]},translateX:{interaction:"scroll",actions:["translateX"]},rotateZ:{interaction:"scroll",actions:["rotateZ"]},scale:{interaction:"scroll",actions:["scale"]},opacity:{interaction:"scroll",actions:["opacity"]},blur:{interaction:"scroll",actions:["blur"]},mouseTrack:{interaction:"mouseMove",actions:["translateXY"]},tilt:{interaction:"mouseMove",actions:["tilt"]}}}},{key:"prepareOptions",value:function prepareOptions(e){var t=this,n=this.getElementSettings(),r="motion_fx"===e?"element":"background",a={};jQuery.each(n,(function(r,s){var l=new RegExp("^"+e+"_(.+?)_effect"),u=r.match(l);if(u&&s){var c={},f=u[1];jQuery.each(n,(function(t,n){var r=new RegExp(e+"_"+f+"_(.+)"),a=t.match(r);a&&("effect"!==a[1]&&("object"===(0,o.default)(n)&&(n=(0,i.default)(n.sizes).length?n.sizes:n.size),c[a[1]]=n))}));var d=t.effects[f],p=d.interaction;a[p]||(a[p]={}),d.actions.forEach((function(e){return a[p][e]=c}))}}));var s,l,u=this.$element,c=this.getElementType();"element"===r&&"section"!==c&&(s=u,l="column"===c?elementorFrontend.config.legacyMode.elementWrappers?".elementor-column-wrap":".elementor-widget-wrap":".elementor-widget-container",u=u.find("> "+l));var f={type:r,interactions:a,$element:u,$dimensionsElement:s,refreshDimensions:this.isEdit,range:n[e+"_range"],classes:{element:"elementor-motion-effects-element",parent:"elementor-motion-effects-parent",backgroundType:"elementor-motion-effects-element-type-background",container:"elementor-motion-effects-container",layer:"elementor-motion-effects-layer",perspective:"elementor-motion-effects-perspective"}};return f.range||"fixed"!==this.getCurrentDeviceSetting("_position")||(f.range="page"),"fixed"===this.getCurrentDeviceSetting("_position")&&(f.isFixedPosition=!0),"background"===r&&"column"===this.getElementType()&&(f.addBackgroundLayerTo=" > .elementor-element-populated"),f}},{key:"activate",value:function activate(e){var t=this.prepareOptions(e);jQuery.isEmptyObject(t.interactions)||(this[e]=new d.default(t))}},{key:"deactivate",value:function deactivate(e){this[e]&&(this[e].destroy(),delete this[e])}},{key:"toggle",value:function toggle(){var e=this,t=elementorFrontend.getCurrentDeviceMode(),n=this.getElementSettings();["motion_fx","background_motion_fx"].forEach((function(r){var i=n[r+"_devices"];(!i||-1!==i.indexOf(t))&&(n[r+"_motion_fx_scrolling"]||n[r+"_motion_fx_mouse"])?e[r]?e.refreshInstance(r):e.activate(r):e.deactivate(r)}))}},{key:"refreshInstance",value:function refreshInstance(e){var t=this[e];if(t){var n=this.prepareOptions(e);t.setSettings(n),t.refresh()}}},{key:"onInit",value:function onInit(){(0,l.default)((0,u.default)(_default.prototype),"onInit",this).call(this),this.initEffects(),this.toggle()}},{key:"onElementChange",value:function onElementChange(e){var t=this;if(/motion_fx_((scrolling)|(mouse)|(devices))$/.test(e))this.toggle();else{var n=e.match(".*?motion_fx");if(n){var r=n[0];this.refreshInstance(r),this[r]||this.activate(r)}/^_position/.test(e)&&["motion_fx","background_motion_fx"].forEach((function(e){t.refreshInstance(e)}))}}},{key:"onDestroy",value:function onDestroy(){var e=this;(0,l.default)((0,u.default)(_default.prototype),"onDestroy",this).call(this),["motion_fx","background_motion_fx"].forEach((function(t){e.deactivate(t)}))}}]),_default}(elementorModules.frontend.handlers.Base);t.default=p},8026:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959)),o=r(n(9041)),a=r(n(7371)),s=r(n(8537)),l=function(e){(0,a.default)(_default,e);var t=(0,s.default)(_default);function _default(){return(0,i.default)(this,_default),t.apply(this,arguments)}return(0,o.default)(_default,[{key:"getMovePointFromPassedPercents",value:function getMovePointFromPassedPercents(e,t){return+(t/e*100).toFixed(2)}},{key:"getEffectValueFromMovePoint",value:function getEffectValueFromMovePoint(e,t){return e*t/100}},{key:"getStep",value:function getStep(e,t){return"element"===this.getSettings("type")?this.getElementStep(e,t):this.getBackgroundStep(e,t)}},{key:"getElementStep",value:function getElementStep(e,t){return-(e-50)*t.speed}},{key:"getBackgroundStep",value:function getBackgroundStep(e,t){var n=this.getSettings("dimensions.movable"+t.axis.toUpperCase());return-this.getEffectValueFromMovePoint(n,e)}},{key:"getDirectionMovePoint",value:function getDirectionMovePoint(e,t,n){var r;return e<n.start?"out-in"===t?r=0:"in-out"===t?r=100:(r=this.getMovePointFromPassedPercents(n.start,e),"in-out-in"===t&&(r=100-r)):e<n.end?"in-out-in"===t?r=0:"out-in-out"===t?r=100:(r=this.getMovePointFromPassedPercents(n.end-n.start,e-n.start),"in-out"===t&&(r=100-r)):"in-out"===t?r=0:"out-in"===t?r=100:(r=this.getMovePointFromPassedPercents(100-n.end,100-e),"in-out-in"===t&&(r=100-r)),r}},{key:"translateX",value:function translateX(e,t){e.axis="x",e.unit="px",this.transform("translateX",t,e)}},{key:"translateY",value:function translateY(e,t){e.axis="y",e.unit="px",this.transform("translateY",t,e)}},{key:"translateXY",value:function translateXY(e,t,n){this.translateX(e,t),this.translateY(e,n)}},{key:"tilt",value:function tilt(e,t,n){var r={speed:e.speed/10,direction:e.direction};this.rotateX(r,n),this.rotateY(r,100-t)}},{key:"rotateX",value:function rotateX(e,t){e.axis="x",e.unit="deg",this.transform("rotateX",t,e)}},{key:"rotateY",value:function rotateY(e,t){e.axis="y",e.unit="deg",this.transform("rotateY",t,e)}},{key:"rotateZ",value:function rotateZ(e,t){e.unit="deg",this.transform("rotateZ",t,e)}},{key:"scale",value:function scale(e,t){var n=this.getDirectionMovePoint(t,e.direction,e.range);this.updateRulePart("transform","scale",1+e.speed*n/1e3)}},{key:"transform",value:function transform(e,t,n){n.direction&&(t=100-t),this.updateRulePart("transform",e,this.getStep(t,n)+n.unit)}},{key:"opacity",value:function opacity(e,t){var n=this.getDirectionMovePoint(t,e.direction,e.range),r=e.level/10,opacity=1-r+this.getEffectValueFromMovePoint(r,n);this.$element.css({opacity,"will-change":"opacity"})}},{key:"blur",value:function blur(e,t){var n=this.getDirectionMovePoint(t,e.direction,e.range),blur=e.level-this.getEffectValueFromMovePoint(e.level,n);this.updateRulePart("filter","blur",blur+"px")}},{key:"updateRulePart",value:function updateRulePart(e,t,n){this.rulesVariables[e]||(this.rulesVariables[e]={}),this.rulesVariables[e][t]||(this.rulesVariables[e][t]=!0,this.updateRule(e));var r="--".concat(t);this.$element[0].style.setProperty(r,n)}},{key:"updateRule",value:function updateRule(e){var t="";jQuery.each(this.rulesVariables[e],(function(e){t+="".concat(e,"(var(--").concat(e,"))")})),this.$element.css(e,t)}},{key:"runAction",value:function runAction(e,t,n){t.affectedRange&&(t.affectedRange.start>n&&(n=t.affectedRange.start),t.affectedRange.end<n&&(n=t.affectedRange.end));for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];this[e].apply(this,[t,n].concat(i))}},{key:"refresh",value:function refresh(){this.rulesVariables={},this.$element.css({transform:"",filter:"",opacity:"","will-change":""})}},{key:"onInit",value:function onInit(){this.$element=this.getSettings("$targetElement"),this.refresh()}}]),_default}(elementorModules.Module);t.default=l},2720:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959)),o=r(n(9041)),a=r(n(8852)),s=r(n(6700)),l=r(n(4263)),u=r(n(7371)),c=r(n(8537)),f=r(n(8042)),d=function(e){(0,u.default)(_default,e);var t=(0,c.default)(_default);function _default(){var e;(0,i.default)(this,_default);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=t.call.apply(t,[this].concat(r)),(0,f.default)((0,a.default)(e),"onInsideViewport",(function(){e.run(),e.animationFrameRequest=requestAnimationFrame(e.onInsideViewport)})),e}return(0,o.default)(_default,[{key:"__construct",value:function __construct(e){this.motionFX=e.motionFX,this.intersectionObservers||this.setElementInViewportObserver()}},{key:"setElementInViewportObserver",value:function setElementInViewportObserver(){var e=this;this.intersectionObserver=elementorModules.utils.Scroll.scrollObserver({callback:function callback(t){t.isInViewport?e.onInsideViewport():e.removeAnimationFrameRequest()}}),this.intersectionObserver.observe(this.motionFX.elements.$parent[0])}},{key:"runCallback",value:function runCallback(){var e=this.getSettings("callback");e.apply(void 0,arguments)}},{key:"removeIntersectionObserver",value:function removeIntersectionObserver(){this.intersectionObserver&&this.intersectionObserver.unobserve(this.motionFX.elements.$parent[0])}},{key:"removeAnimationFrameRequest",value:function removeAnimationFrameRequest(){this.animationFrameRequest&&cancelAnimationFrame(this.animationFrameRequest)}},{key:"destroy",value:function destroy(){this.removeAnimationFrameRequest(),this.removeIntersectionObserver()}},{key:"onInit",value:function onInit(){(0,s.default)((0,l.default)(_default.prototype),"onInit",this).call(this)}}]),_default}(elementorModules.ViewModule);t.default=d},1545:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959)),o=r(n(9041)),a=r(n(6700)),s=r(n(4263)),l=r(n(7371)),u=r(n(8537)),c=function(e){(0,l.default)(MouseMoveInteraction,e);var t=(0,u.default)(MouseMoveInteraction);function MouseMoveInteraction(){return(0,i.default)(this,MouseMoveInteraction),t.apply(this,arguments)}return(0,o.default)(MouseMoveInteraction,[{key:"bindEvents",value:function bindEvents(){MouseMoveInteraction.mouseTracked||(elementorFrontend.elements.$window.on("mousemove",MouseMoveInteraction.updateMousePosition),MouseMoveInteraction.mouseTracked=!0)}},{key:"run",value:function run(){var e=MouseMoveInteraction.mousePosition,t=this.oldMousePosition;if(t.x!==e.x||t.y!==e.y){this.oldMousePosition={x:e.x,y:e.y};var n=100/innerWidth*e.x,r=100/innerHeight*e.y;this.runCallback(n,r)}}},{key:"onInit",value:function onInit(){this.oldMousePosition={},(0,a.default)((0,s.default)(MouseMoveInteraction.prototype),"onInit",this).call(this)}}]),MouseMoveInteraction}(r(n(2720)).default);t.default=c,c.mousePosition={},c.updateMousePosition=function(e){c.mousePosition={x:e.clientX,y:e.clientY}}},1791:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959)),o=r(n(9041)),a=r(n(7371)),s=r(n(8537)),l=function(e){(0,a.default)(_default,e);var t=(0,s.default)(_default);function _default(){return(0,i.default)(this,_default),t.apply(this,arguments)}return(0,o.default)(_default,[{key:"run",value:function run(){if(pageYOffset===this.windowScrollTop)return!1;this.onScrollMovement(),this.windowScrollTop=pageYOffset}},{key:"onScrollMovement",value:function onScrollMovement(){this.updateMotionFxDimensions(),this.updateAnimation()}},{key:"updateMotionFxDimensions",value:function updateMotionFxDimensions(){this.motionFX.getSettings().refreshDimensions&&this.motionFX.defineDimensions()}},{key:"updateAnimation",value:function updateAnimation(){var e;e="page"===this.motionFX.getSettings("range")?elementorModules.utils.Scroll.getPageScrollPercentage():this.motionFX.getSettings("isFixedPosition")?elementorModules.utils.Scroll.getPageScrollPercentage({},window.innerHeight):elementorModules.utils.Scroll.getElementViewportPercentage(this.motionFX.elements.$parent),this.runCallback(e)}}]),_default}(r(n(2720)).default);t.default=l},6829:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var i=r(n(1959)),o=r(n(9041)),a=r(n(6700)),s=r(n(4263)),l=r(n(7371)),u=r(n(8537)),c=r(n(1791)),f=r(n(1545)),d=r(n(8026)),p=function(e){(0,l.default)(_default,e);var t=(0,u.default)(_default);function _default(){return(0,i.default)(this,_default),t.apply(this,arguments)}return(0,o.default)(_default,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{type:"element",$element:null,$dimensionsElement:null,addBackgroundLayerTo:null,interactions:{},refreshDimensions:!1,range:"viewport",classes:{element:"motion-fx-element",parent:"motion-fx-parent",backgroundType:"motion-fx-element-type-background",container:"motion-fx-container",layer:"motion-fx-layer",perspective:"motion-fx-perspective"}}}},{key:"bindEvents",value:function bindEvents(){this.onWindowResize=this.onWindowResize.bind(this),elementorFrontend.elements.$window.on("resize",this.onWindowResize)}},{key:"unbindEvents",value:function unbindEvents(){elementorFrontend.elements.$window.off("resize",this.onWindowResize)}},{key:"addBackgroundLayer",value:function addBackgroundLayer(){var e=this.getSettings();this.elements.$motionFXContainer=jQuery("<div>",{class:e.classes.container}),this.elements.$motionFXLayer=jQuery("<div>",{class:e.classes.layer}),this.updateBackgroundLayerSize(),this.elements.$motionFXContainer.prepend(this.elements.$motionFXLayer),(e.addBackgroundLayerTo?this.$element.find(e.addBackgroundLayerTo):this.$element).prepend(this.elements.$motionFXContainer)}},{key:"removeBackgroundLayer",value:function removeBackgroundLayer(){this.elements.$motionFXContainer.remove()}},{key:"updateBackgroundLayerSize",value:function updateBackgroundLayerSize(){var e=this.getSettings(),t={x:0,y:0},n=e.interactions.mouseMove,r=e.interactions.scroll;n&&n.translateXY&&(t.x=10*n.translateXY.speed,t.y=10*n.translateXY.speed),r&&(r.translateX&&(t.x=10*r.translateX.speed),r.translateY&&(t.y=10*r.translateY.speed)),this.elements.$motionFXLayer.css({width:100+t.x+"%",height:100+t.y+"%"})}},{key:"defineDimensions",value:function defineDimensions(){var e=this.getSettings("$dimensionsElement")||this.$element,t=e.offset(),n={elementHeight:e.outerHeight(),elementWidth:e.outerWidth(),elementTop:t.top,elementLeft:t.left};n.elementRange=n.elementHeight+innerHeight,this.setSettings("dimensions",n),"background"===this.getSettings("type")&&this.defineBackgroundLayerDimensions()}},{key:"defineBackgroundLayerDimensions",value:function defineBackgroundLayerDimensions(){var e=this.getSettings("dimensions");e.layerHeight=this.elements.$motionFXLayer.height(),e.layerWidth=this.elements.$motionFXLayer.width(),e.movableX=e.layerWidth-e.elementWidth,e.movableY=e.layerHeight-e.elementHeight,this.setSettings("dimensions",e)}},{key:"initInteractionsTypes",value:function initInteractionsTypes(){this.interactionsTypes={scroll:c.default,mouseMove:f.default}}},{key:"prepareSpecialActions",value:function prepareSpecialActions(){var e=this.getSettings(),t=!(!e.interactions.mouseMove||!e.interactions.mouseMove.tilt);this.elements.$parent.toggleClass(e.classes.perspective,t)}},{key:"cleanSpecialActions",value:function cleanSpecialActions(){var e=this.getSettings();this.elements.$parent.removeClass(e.classes.perspective)}},{key:"runInteractions",value:function runInteractions(){var e=this,t=this.getSettings();this.prepareSpecialActions(),jQuery.each(t.interactions,(function(t,n){e.interactions[t]=new e.interactionsTypes[t]({motionFX:e,callback:function callback(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];jQuery.each(n,(function(t,n){var i;return(i=e.actions).runAction.apply(i,[t,n].concat(r))}))}}),e.interactions[t].run()}))}},{key:"destroyInteractions",value:function destroyInteractions(){this.cleanSpecialActions(),jQuery.each(this.interactions,(function(e,t){return t.destroy()})),this.interactions={}}},{key:"refresh",value:function refresh(){this.actions.setSettings(this.getSettings()),"background"===this.getSettings("type")&&(this.updateBackgroundLayerSize(),this.defineBackgroundLayerDimensions()),this.actions.refresh(),this.destroyInteractions(),this.runInteractions()}},{key:"destroy",value:function destroy(){this.destroyInteractions(),this.actions.refresh();var e=this.getSettings();this.$element.removeClass(e.classes.element),this.elements.$parent.removeClass(e.classes.parent),"background"===e.type&&(this.$element.removeClass(e.classes.backgroundType),this.removeBackgroundLayer())}},{key:"onInit",value:function onInit(){(0,a.default)((0,s.default)(_default.prototype),"onInit",this).call(this);var e=this.getSettings();this.$element=e.$element,this.elements.$parent=this.$element.parent(),this.$element.addClass(e.classes.element),this.elements.$parent=this.$element.parent(),this.elements.$parent.addClass(e.classes.parent),"background"===e.type&&(this.$element.addClass(e.classes.backgroundType),this.addBackgroundLayer()),this.defineDimensions(),e.$targetElement="element"===e.type?this.$element:this.elements.$motionFXLayer,this.interactions={},this.actions=new d.default(e),this.initInteractionsTypes(),this.runInteractions()}},{key:"onWindowResize",value:function onWindowResize(){this.defineDimensions()}}]),_default}(elementorModules.ViewModule);t.default=p},1336:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959)),o=r(n(7371)),a=r(n(8537)),s=function(e){(0,o.default)(_default,e);var t=(0,a.default)(_default);function _default(){var e;return(0,i.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("paypal-button",(function(){return n.e(256).then(n.t.bind(n,9593,23))})),e}return _default}(elementorModules.Module);t.default=s},9253:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959)),o=r(n(7371)),a=r(n(8537)),s=r(n(8080)),l=function(e){(0,o.default)(_default,e);var t=(0,a.default)(_default);function _default(){var e;return(0,i.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("section",s.default,null),elementorFrontend.elementsHandler.attachHandler("widget",s.default,null),e}return _default}(elementorModules.Module);t.default=l},8080:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var r=elementorModules.frontend.handlers.Base.extend({bindEvents:function bindEvents(){elementorFrontend.addListenerOnce(this.getUniqueHandlerID()+"sticky","resize",this.run)},unbindEvents:function unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID()+"sticky","resize",this.run)},isStickyInstanceActive:function isStickyInstanceActive(){return void 0!==this.$element.data("sticky")},activate:function activate(){var e=this.getElementSettings(),t={to:e.sticky,offset:e.sticky_offset,effectsOffset:e.sticky_effects_offset,classes:{sticky:"elementor-sticky",stickyActive:"elementor-sticky--active elementor-section--handles-inside",stickyEffects:"elementor-sticky--effects",spacer:"elementor-sticky__spacer"}},n=elementorFrontend.elements.$wpAdminBar;e.sticky_parent&&(t.parent=".elementor-widget-wrap"),n.length&&"top"===e.sticky&&"fixed"===n.css("position")&&(t.offset+=n.height()),this.$element.sticky(t)},deactivate:function deactivate(){this.isStickyInstanceActive()&&this.$element.sticky("destroy")},run:function run(e){if(this.getElementSettings("sticky")){var t=elementorFrontend.getCurrentDeviceMode();-1!==this.getElementSettings("sticky_on").indexOf(t)?!0===e?this.reactivate():this.isStickyInstanceActive()||this.activate():this.deactivate()}else this.deactivate()},reactivate:function reactivate(){this.deactivate(),this.activate()},onElementChange:function onElementChange(e){-1!==["sticky","sticky_on"].indexOf(e)&&this.run(!0),-1!==["sticky_offset","sticky_effects_offset","sticky_parent"].indexOf(e)&&this.reactivate()},onInit:function onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run()},onDestroy:function onDestroy(){elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this,arguments),this.deactivate()}});t.default=r},1591:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(8081),n(3777),n(1954);var i=r(n(1959)),o=r(n(9041)),a=r(n(6700)),s=r(n(4263)),l=r(n(7371)),u=r(n(8537)),c=function(e){(0,l.default)(baseTabs,e);var t=(0,u.default)(baseTabs);function baseTabs(){return(0,i.default)(this,baseTabs),t.apply(this,arguments)}return(0,o.default)(baseTabs,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{tablist:'[role="tablist"]',tabTitle:".e-tab-title",tabContent:".e-tab-content"},classes:{active:"e-active"},showTabFn:"show",hideTabFn:"hide",toggleSelf:!0,hidePrevious:!0,autoExpand:!0,keyDirection:{ArrowLeft:elementorFrontendConfig.is_rtl?1:-1,ArrowUp:-1,ArrowRight:elementorFrontendConfig.is_rtl?-1:1,ArrowDown:1}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings("selectors");return{$tabTitles:this.findElement(e.tabTitle),$tabContents:this.findElement(e.tabContent)}}},{key:"activateDefaultTab",value:function activateDefaultTab(e){var t=this.getSettings();if(t.autoExpand&&("editor"!==t.autoExpand||this.isEdit)){var n=this.getEditSettings("activeItemIndex")||e||1,r={showTabFn:t.showTabFn,hideTabFn:t.hideTabFn};this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(n),this.setSettings(r)}}},{key:"handleKeyboardNavigation",value:function handleKeyboardNavigation(e){var t=e.currentTarget,n=jQuery(t.closest(this.getSettings("selectors").tablist)),r=n.find(this.getSettings("selectors").tabTitle),i="vertical"===n.attr("aria-orientation");switch(e.key){case"ArrowLeft":case"ArrowRight":if(i)return;break;case"ArrowUp":case"ArrowDown":if(!i)return;e.preventDefault();break;case"Home":return e.preventDefault(),void r.first().focus();case"End":return e.preventDefault(),void r.last().focus();default:return}var o=t.getAttribute("data-tab")-1,a=this.getSettings("keyDirection")[e.key],s=r[o+a];s?s.focus():-1===o+a?r.last().focus():r.first().focus()}},{key:"deactivateActiveTab",value:function deactivateActiveTab(e){var t=this.getSettings(),n=t.classes.active,r=e?'[data-tab="'+e+'"]':"."+n,i=this.elements.$tabTitles.filter(r),o=this.elements.$tabContents.filter(r);i.add(o).removeClass(n),i.attr({tabindex:"-1","aria-selected":"false"}),o[t.hideTabFn](),o.attr("hidden","hidden")}},{key:"activateTab",value:function activateTab(e){var t=this.getSettings(),n=t.classes.active,r=this.elements.$tabTitles.filter('[data-tab="'+e+'"]'),i=this.elements.$tabContents.filter('[data-tab="'+e+'"]'),o="show"===t.showTabFn?0:400;r.add(i).addClass(n),r.attr({tabindex:"0","aria-selected":"true"}),i[t.showTabFn](o,(function(){return elementorFrontend.elements.$window.trigger("resize")})),i.removeAttr("hidden")}},{key:"isActiveTab",value:function isActiveTab(e){return this.elements.$tabTitles.filter('[data-tab="'+e+'"]').hasClass(this.getSettings("classes.active"))}},{key:"bindEvents",value:function bindEvents(){var e=this;this.elements.$tabTitles.on({keydown:function keydown(t){jQuery(t.target).is("a")&&"Enter"===t.key&&t.preventDefault(),["End","Home","ArrowUp","ArrowDown"].includes(t.key)&&e.handleKeyboardNavigation(t)},keyup:function keyup(t){switch(t.key){case"ArrowLeft":case"ArrowRight":e.handleKeyboardNavigation(t);break;case"Enter":case"Space":t.preventDefault(),e.changeActiveTab(t.currentTarget.getAttribute("data-tab"))}},click:function click(t){t.preventDefault(),e.changeActiveTab(t.currentTarget.getAttribute("data-tab"))}})}},{key:"onInit",value:function onInit(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=(0,a.default)((0,s.default)(baseTabs.prototype),"onInit",this)).call.apply(e,[this].concat(n))}},{key:"onEditSettingsChange",value:function onEditSettingsChange(e){"activeItemIndex"===e&&this.activateDefaultTab()}},{key:"changeActiveTab",value:function changeActiveTab(e){var t=this.isActiveTab(e),n=this.getSettings();!n.toggleSelf&&t||!n.hidePrevious||this.deactivateActiveTab(),!n.hidePrevious&&t&&this.deactivateActiveTab(e),t||this.activateTab(e)}}]),baseTabs}(elementorModules.frontend.handlers.Base);t.default=c},870:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=function triggerEvent(e,t,n){var r=new i.default({event:getEventEventObject(e,t,n),tab:getEventTabsObject(e),playlist:getEventPlaylistObject(e),video:getEventVideoObject(e)});jQuery("body").trigger("elementor-video-playList",r)},n(1954);var i=r(n(9147));function getEventTabsObject(e){var t=e.elements.$innerTabs.filter(".e-active").find(".e-inner-tabs-wrapper .e-inner-tab-title");if(t.length){var n=t.filter(".e-inner-tab-active");return{name:n.text().trim(),index:n.index()+1}}return{name:"none",index:"none"}}function getEventPlaylistObject(e){return{name:e.getElementSettings("playlist_title"),currentItem:e.currentPlaylistItemIndex,amount:e.playlistItemsArray.filter((function(e){return"section"!==e.videoType})).length}}function getEventVideoObject(e){var t=e.playlistItemsArray[e.currentPlaylistItemIndex-1];return{provider:t.videoType,url:t.videoUrl,title:t.videoTitle,duration:t.videoDuration}}function getEventEventObject(e,t,n){var r=e.playlistItemsArray[e.currentPlaylistItemIndex-1];return{type:t,time:r.playerInstance.getCurrentTime(),element:e.$element,trigger:n,watchCount:r.playerInstance.watchCount}}},1498:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959)),o=r(n(7371)),a=r(n(8537)),s=r(n(1427)),l=function(e){(0,o.default)(_default,e);var t=(0,a.default)(_default);function _default(){var e;return(0,i.default)(this,_default),e=t.call(this),elementorFrontend.hooks.addAction("frontend/element_ready/video-playlist.default",(function(e){elementorFrontend.elementsHandler.addHandler(s.default,{$element:e,toggleSelf:!1})})),e}return _default}(elementorModules.Module);t.default=l},1427:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(4176)),o=r(n(2009));n(8081),n(3777),n(1954);var a=r(n(4899)),s=r(n(1959)),l=r(n(9041)),u=r(n(6700)),c=r(n(4263)),f=r(n(7371)),d=r(n(8537)),p=r(n(1591)),v=r(n(832)),h=r(n(8803)),y=n(5721),g=n(6940),m=n(3276),b=r(n(870)),x=function(e){(0,f.default)(VideoPlaylistHandler,e);var t=(0,d.default)(VideoPlaylistHandler);function VideoPlaylistHandler(){return(0,s.default)(this,VideoPlaylistHandler),t.apply(this,arguments)}return(0,l.default)(VideoPlaylistHandler,[{key:"getDefaultSettings",value:function getDefaultSettings(){var e=(0,u.default)((0,c.default)(VideoPlaylistHandler.prototype),"getDefaultSettings",this).call(this);return(0,a.default)((0,a.default)({},e),{},{selectors:(0,a.default)((0,a.default)({},e.selectors),{tabsWrapper:".e-tabs-items-wrapper",tabsItems:".e-tabs-items",toggleVideosDisplayButton:".e-tabs-toggle-videos-display-button",videos:".e-tabs-content-wrapper .e-tab-content",innerTabs:".e-tabs-inner-tabs .e-tab-content",imageOverlay:".elementor-custom-embed-image-overlay"})})}},{key:"getDefaultElements",value:function getDefaultElements(){var e=(0,u.default)((0,c.default)(VideoPlaylistHandler.prototype),"getDefaultElements",this).call(this),t=this.getSettings("selectors");return(0,a.default)((0,a.default)({},e),{},{$tabsWrapper:this.findElement(t.tabsWrapper),$tabsItems:this.findElement(t.tabsItems),$toggleVideosDisplayButton:this.findElement(t.toggleVideosDisplayButton),$videos:this.findElement(t.videos),$innerTabs:this.findElement(t.innerTabs),$imageOverlay:this.findElement(t.imageOverlay)})}},{key:"bindEvents",value:function bindEvents(){var e=this;(0,u.default)((0,c.default)(VideoPlaylistHandler.prototype),"bindEvents",this).call(this),this.isEdit&&elementor.channels.editor.on("elementorPlaylistWidget:fetchData",(function(t){e.playlistItemsArray[e.currentPlaylistItemIndex-1].playerInstance.setVideoProviderData(),t.currentItem=e.playlistItemsArray[e.currentPlaylistItemIndex-1],elementor.channels.editor.trigger("elementorPlaylistWidget:setData",t)})),this.elements.$imageOverlay.on({click:function click(t){t.currentTarget.remove(),e.playlistItemsArray[e.currentPlaylistItemIndex-1].playerInstance.play()}}),this.elements.$tabTitles.on({click:function click(){e.getCurrentPlayer().pause(),e.currentPlayingPlaylistItemIndex=e.currentPlaylistItemIndex}}),this.elements.$innerTabs.on({click:function click(t){(0,g.handleInnerTabs)(t,e)}}),this.elements.$tabsItems.on({scroll:function scroll(t){(0,y.handleVideosPanelScroll)(e.elements,t)}}),this.elements.$toggleVideosDisplayButton.on({click:function click(t){jQuery(t.target).toggleClass("rotate-up"),jQuery(t.target).toggleClass("rotate-down"),e.elements.$tabsWrapper.slideToggle("slow")}})}},{key:"onInit",value:function onInit(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=(0,u.default)((0,c.default)(VideoPlaylistHandler.prototype),"onInit",this)).call.apply(e,[this].concat(n)),this.playlistId=this.getID(),this.storageKey="watched_videos_"+this.getID();var i=elementorFrontend.storage.get(this.storageKey);this.watchedVideosArray=i?JSON.parse(i):[],this.watchedIndication=this.getElementSettings("show_watched_indication"),(0,y.handleVideosPanelScroll)(this.elements),this.isAutoplayOnLoad="yes"===this.getElementSettings("autoplay_on_load"),this.isAutoplayNextUp="yes"===this.getElementSettings("autoplay_next"),this.isFirstVideoActivated=!0,this.createPlaylistItems(),this.isCollapsible=this.getElementSettings("inner_tab_is_content_collapsible"),this.innerTabsHeightLimit=this.getElementSettings("inner_tab_collapsible_height"),this.currentPlayingPlaylistItemIndex=1,this.activateInitialVideo(),this.activateInnerTabInEditMode()}},{key:"activateInitialVideo",value:function activateInitialVideo(){this.isPageOnLoad=!0;var e=!!this.getElementSettings("lazy_load"),t=(0,m.handleURLParams)(this.playlistId,this.playlistItemsArray),n=!1;t?(this.currentPlaylistItemIndex=t,n=!0):this.currentPlaylistItemIndex=1,this.handleFirstVideoActivation(e,n)}},{key:"handleFirstVideoActivation",value:function handleFirstVideoActivation(e,t){var n=this;if(e||(this.activateDefaultTab(this.currentPlaylistItemIndex),t)){var r=document.querySelector(".elementor-element-"+this.playlistId+" .e-tabs-main-area"),i=elementorModules.utils.Scroll.scrollObserver({callback:function callback(o){o.isInViewport?(e&&n.activateDefaultTab(n.currentPlaylistItemIndex),i.unobserve(r)):t&&setTimeout((function(){r.scrollIntoView(),e&&n.activateDefaultTab(n.currentPlaylistItemIndex),i.unobserve(r)}),500)}});i.observe(r)}}},{key:"getCurrentPlayer",value:function getCurrentPlayer(){return this.playlistItemsArray[this.currentPlayingPlaylistItemIndex-1].playerInstance}},{key:"activateInnerTabInEditMode",value:function activateInnerTabInEditMode(){if(this.isEdit&&this.getEditSettings("innerActiveIndex")){var e=this.getEditSettings("innerActiveIndex");jQuery(this.elements.$innerTabs.eq(this.currentPlaylistItemIndex-1).find(".e-inner-tab-title a"))[e].click()}}},{key:"handleVideo",value:function handleVideo(e){var t=this;if(e.playerInstance)1===this.currentPlaylistItemIndex&&this.elements.$imageOverlay&&this.elements.$imageOverlay.remove(),this.playVideoAfterCreation(e);else{var n={youtube:v.default,hosted:h.default};e.playerInstance=new n[e.videoType](e),e.playerInstance.create().then((function(){t.playVideoOnCreation(e),e.playerInstance.handleFullScreenChange((function(e){(0,b.default)(t,e?"videoFullScreen":"videoExitFullScreen","click")})),e.playerInstance.handlePlayed((function(){var n=t.playlistItemsArray[t.currentPlaylistItemIndex-1],r="click";n.isAutoplayOnLoad?(r="onLoad",e.isAutoplayOnLoad=!1):n.isAutoPlayNextUp&&(r="nextVideo"),(0,b.default)(t,n.playerInstance.isVideoPausedLocal?"videoResume":"videoStart",r)})),e.playerInstance.handleEnded((function(){(0,b.default)(t,"videoEnded","click"),t.watchedIndication&&t.elements.$tabTitles.filter(".e-active").addClass("watched-video");var e=t.playlistItemsArray[t.currentPlaylistItemIndex-1].dataItemId;if(!t.watchedVideosArray.includes(e)&&t.watchedIndication&&(t.watchedVideosArray.push(t.playlistItemsArray[t.currentPlaylistItemIndex-1].dataItemId),elementorFrontend.storage.set(t.storageKey,(0,o.default)(t.watchedVideosArray))),t.isAutoplayNextUp&&t.playlistItemsArray.length>=++t.currentPlaylistItemIndex){for(;"section"===t.playlistItemsArray[t.currentPlaylistItemIndex-1].videoType;)if(t.currentPlaylistItemIndex++,t.playlistItemsArray.length<t.currentPlaylistItemIndex)return void(t.currentPlaylistItemIndex=t.playlistItemsArray.length);t.changeActiveTab(t.currentPlaylistItemIndex,!0)}})),e.playerInstance.handlePaused((function(){(0,b.default)(t,"videoPaused","click")}))}))}}},{key:"playVideoAfterCreation",value:function playVideoAfterCreation(e){e.playerInstance.play()}},{key:"playVideoOnCreation",value:function playVideoOnCreation(e){this.isAutoplayOnLoad?(e.isAutoplayOnLoad=!0,e.playerInstance.play(),this.isAutoplayOnLoad=!1):this.isFirstVideoActivated||(e.isAutoPlayNextUp=!0,e.playerInstance.play()),this.isFirstVideoActivated=!1}},{key:"createPlaylistItems",value:function createPlaylistItems(){var e=this;this.playlistItemsArray=[],this.elements.$videos.each((function(t,n){var r={},i=jQuery(n);r.videoUrl=i.attr("data-video-url"),r.videoType=i.attr("data-video-type"),r.videoTitle=i.attr("data-video-title"),r.videoDuration=i.attr("data-video-duration"),r.tabContent=n,r.dataTab=t+1,r.dataItemId=e.getElementSettings().tabs[t]._id,e.playlistItemsArray.push(r)})),this.watchedVideosArray.length>0&&this.watchedIndication&&this.watchedVideosArray.forEach((function(t,n){var r=e.playlistItemsArray.find((function(e){return e.dataItemId===t}));e.elements.$tabTitles.filter('[data-tab="'+r.dataTab+'"]').addClass("watched-video")}))}},{key:"changeActiveTab",value:function changeActiveTab(e,t){if((0,u.default)((0,c.default)(VideoPlaylistHandler.prototype),"changeActiveTab",this).call(this,e),this.playlistItemsArray[e-1]&&"section"!==this.playlistItemsArray[e-1].videoType&&(this.currentPlaylistItemIndex=(0,i.default)(e),t&&(this.currentPlayingPlaylistItemIndex=this.currentPlaylistItemIndex),this.handleVideo(this.playlistItemsArray[this.currentPlaylistItemIndex-1],t),this.isPageOnLoad||(0,m.setVideoParams)(this.playlistId,this.playlistItemsArray,this.currentPlaylistItemIndex),this.isPageOnLoad=!1,jQuery(this.elements.$innerTabs.eq(e-1)).find(".e-inner-tab-content").length>0)){var n=this.elements.$innerTabs.filter(".e-active").find(".e-inner-tab-content");(0,g.handleInnerTabsButtonsDisplay)(n.toArray(),this.isCollapsible,this.innerTabsHeightLimit)}}}]),VideoPlaylistHandler}(p.default);t.default=x},6940:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.handleInnerTabs=function handleInnerTabs(e,t){if(e.preventDefault(),e.target.classList.contains("e-tab-mobile-title")){var n=jQuery(e.target);return void toggleInnerTabs(e,n,t)}if("A"===e.target.tagName){var r=jQuery(e.target).parent(".e-inner-tab-title");toggleInnerTabs(e,r,t)}"BUTTON"===e.target.tagName&&onTabContentButtonsClick(e,t)},t.handleInnerTabsButtonsDisplay=handleInnerTabsButtonsDisplay,t.onTabContentButtonsClick=onTabContentButtonsClick,n(1954);var i=r(n(4176)),o=r(n(5453)),a=r(n(870));function toggleInnerTabs(e,t,n){var r=e.currentTarget,i=r.querySelectorAll(".e-inner-tab-title");if(!(t.hasClass("e-inner-tab-active")||i.length<2)){var s=r.querySelectorAll(".e-inner-tab-content");i.forEach((function(e){e.classList.toggle("e-inner-tab-active")})),s.forEach((function(e){e.toggleAttribute("hidden"),e.classList.toggle("e-inner-tab-active")})),handleInnerTabsButtonsDisplay((0,o.default)(s),n.isCollapsible,n.innerTabsHeightLimit),(0,a.default)(n,"tabOpened","click")}}function handleInnerTabsButtonsDisplay(e,t,n){if(t){var r=e.filter((function(e){return e.classList.contains("e-inner-tab-active")})),o=r[0].querySelector(".e-inner-tab-text > div").offsetHeight,a=(0,i.default)(n.size);a&&o>a&&r[0].classList.add("show-inner-tab-buttons")}}function onTabContentButtonsClick(e,t){var n=jQuery(e.currentTarget).find(".e-inner-tab-content").filter(".e-inner-tab-active");n.find("button").toggleClass("show-button"),n.toggleClass("show-full-height");var r=n.hasClass("show-full-height")?"tabExpanded":"tabCollapsed";(0,a.default)(t,r,"click")}},1198:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1959));t.default=function PlayerBase(e){(0,i.default)(this,PlayerBase),this.playlistItem=e}},8803:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(9236);var i=r(n(3220)),o=r(n(1959)),a=r(n(9041)),s=r(n(7371)),l=r(n(8537)),u=function(e){(0,s.default)(playerHosted,e);var t=(0,l.default)(playerHosted);function playerHosted(e){var n;return(0,o.default)(this,playerHosted),(n=t.call(this,e)).playerObject=null,n.watchCount=0,n.isVideoPausedLocal=!1,n.isVideoSeeking=!1,n.isVideoEnded=!1,n.isReady=!1,n}return(0,a.default)(playerHosted,[{key:"create",value:function create(){var e=this;return new i.default((function(t,n){var r=document.createElement("video");r.setAttribute("controls","");var i=document.createTextNode("Sorry, your browser doesn't support embedded videos."),o=document.createElement("source");o.setAttribute("src",e.playlistItem.videoUrl),o.setAttribute("type","video/"+e.playlistItem.videoUrl.split(".").pop()),r.appendChild(o),r.appendChild(i),r.muted=!0,e.playerObject=r,e.playlistItem.tabContent.querySelector("div").replaceWith(e.playerObject),e.playerObject.addEventListener("canplay",(function(n){e.isReady=!0,t()})),e.playerObject.addEventListener("seeked",(function(t){e.isVideoSeeking=!1})),e.playerObject.addEventListener("seeking",(function(t){clearTimeout(e.seekTimeOut),e.isVideoSeeking=!0}))}))}},{key:"handleEnded",value:function handleEnded(e){var t=this;this.playerObject.addEventListener("ended",(function(n){t.watchCount++,t.isVideoEnded=!0,e(t.playlistItem)}))}},{key:"handlePaused",value:function handlePaused(e){var t=this;this.playerObject.addEventListener("pause",(function(n){t.seekTimeOut=setTimeout((function(){t.isVideoSeeking||t.isVideoEnded?t.isVideoEnded=!1:(e(),t.isVideoPausedLocal=!0)}),30)}))}},{key:"handlePlayed",value:function handlePlayed(e){var t=this;this.playerObject.addEventListener("play",(function(n){t.isVideoSeeking||e(t.playlistItem)}))}},{key:"handleFullScreenChange",value:function handleFullScreenChange(e){jQuery(this.playerObject).on("webkitfullscreenchange mozfullscreenchange fullscreenchange",(function(){e(document.fullscreenElement)}))}},{key:"getCurrentTime",value:function getCurrentTime(){return this.playerObject.currentTime}},{key:"play",value:function play(){this.isReady&&this.playerObject.play()}},{key:"pause",value:function pause(){this.isReady&&this.playerObject.pause()}}]),playerHosted}(r(n(1198)).default);t.default=u},832:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(9447),n(4321),n(6139);var i=r(n(3220)),o=r(n(1959)),a=r(n(9041)),s=r(n(7371)),l=r(n(8537)),u=function(e){(0,s.default)(playerYoutube,e);var t=(0,l.default)(playerYoutube);function playerYoutube(e){var n;return(0,o.default)(this,playerYoutube),(n=t.call(this,e)).apiProvider=elementorFrontend.utils.youtube,n.playerObject=null,n.watchCount=0,n.isVideoPausedLocal=!1,n.isVideoEnded=!1,n.seekSequenceArray=[],n.pauseCurrentTime=null,n.isReady=!1,n}return(0,a.default)(playerYoutube,[{key:"create",value:function create(){var e=this;return this.currentVideoID=this.apiProvider.getVideoIDFromURL(this.playlistItem.videoUrl),new i.default((function(t,n){e.apiProvider.onApiReady((function(n){var r={width:"773",videoId:e.currentVideoID,playerVars:{rel:0,showinfo:0,ecver:2},events:{onReady:function onReady(n){n.target.mute(),e.isReady=!0,t()}}};e.playerObject=new n.Player(e.playlistItem.tabContent.querySelector("div"),r),e.playerObject.addEventListener("onStateChange",(function(t){3===t.data&&(2===e.seekSequenceArray[e.seekSequenceArray.length-1]?e.seekSequenceArray.push(3):(e.seekSequenceArray=[],clearTimeout(e.seekTimeOut)))}))}))}))}},{key:"handleEnded",value:function handleEnded(e){var t=this;this.playerObject.addEventListener("onStateChange",(function(n){0===n.data&&(t.watchCount++,t.isVideoEnded=!0,n.target.seekTo(0),n.target.stopVideo(),e())}))}},{key:"handlePaused",value:function handlePaused(e){var t=this;this.playerObject.addEventListener("onStateChange",(function(n){2===n.data&&(t.seekSequenceArray=[],t.seekSequenceArray.push(2),t.pauseCurrentTime=t.playerObject.playerInfo.currentTime,t.seekTimeOut=setTimeout((function(){2===t.seekSequenceArray.length&&2===t.seekSequenceArray[0]&&3===t.seekSequenceArray[1]?(t.seekSequenceArray=[],clearTimeout(t.seekTimeOut)):(e(),t.isVideoPausedLocal=!0)}),1e3))}))}},{key:"handlePlayed",value:function handlePlayed(e){var t=this;this.playerObject.addEventListener("onStateChange",(function(n){1!==n.data||t.isVideoEnded?t.isVideoEnded=!1:2===t.seekSequenceArray.length&&2===t.seekSequenceArray[0]&&3===t.seekSequenceArray[1]||e()}))}},{key:"handleError",value:function handleError(e){this.playerObject.addEventListener("onError",(function(){e()}))}},{key:"handleFullScreenChange",value:function handleFullScreenChange(e){jQuery(this.playerObject.h).on("webkitfullscreenchange mozfullscreenchange fullscreenchange",(function(){e(document.fullscreenElement)}))}},{key:"getCurrentTime",value:function getCurrentTime(){var e=this.pauseCurrentTime?this.pauseCurrentTime:this.playerObject.playerInfo.currentTime;return this.pauseCurrentTime=null,e}},{key:"play",value:function play(){this.isReady&&this.playerObject.playVideo()}},{key:"pause",value:function pause(){this.isReady&&this.playerObject.pauseVideo()}},{key:"formatDuration",value:function formatDuration(e){var t=new Date(1e3*e),n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getSeconds();return 0!==n?"".concat(n.toString(),":").concat(r.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0")):"".concat(r.toString(),":").concat(i.toString().padStart(2,"0"))}},{key:"setVideoProviderData",value:function setVideoProviderData(){this.isReady&&(this.currentVideoID&&11===this.currentVideoID.length?(this.playlistItem.thumbnail={url:"http://img.youtube.com/vi/"+this.playerObject.getVideoData().video_id+"/maxresdefault.jpg"},this.playlistItem.video_title=this.playerObject.getVideoData().title,this.playlistItem.duration=this.formatDuration(this.playerObject.getDuration())):(this.playlistItem.thumbnail={url:""},this.playlistItem.video_title="",this.playlistItem.duration=""))}}]),playerYoutube}(r(n(1198)).default);t.default=u},9147:(e,t,n)=>{"use strict";var r=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(9745);var i=r(n(1959));t.default=function PlaylistEvent(e){var t=e.event,n=e.tab,r=e.playlist,o=e.video;(0,i.default)(this,PlaylistEvent),this.event={type:t.type||"",time:t.time||0,element:t.element,trigger:t.trigger||"",watchCount:t.watchCount||0},this.tab={name:n.name,index:n.index},this.playlist={name:r.name,currentItem:r.currentItem,amount:r.amount},this.video={provider:o.provider,url:o.url,title:o.title,duration:o.duration}}},5721:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.handleVideosPanelScroll=function handleVideosPanelScroll(e,t){if(!t)return void(e.$tabsItems[0].offsetHeight<e.$tabsItems[0].scrollHeight&&e.$tabsWrapper.addClass("bottom-shadow"));t.target.scrollTop>0?e.$tabsWrapper.addClass("top-shadow"):e.$tabsWrapper.removeClass("top-shadow");t.target.offsetHeight+t.target.scrollTop>=t.target.scrollHeight?e.$tabsWrapper.removeClass("bottom-shadow"):e.$tabsWrapper.addClass("bottom-shadow")}},3276:(e,t,n)=>{"use strict";function setVideoParams(e,t,n){var r=new URLSearchParams(location.search);r.set("playlist",e),r.set("video",t[n-1].dataItemId),history.replaceState({},"",location.pathname+"?"+r)}n(7394)(t,"__esModule",{value:!0}),t.handleURLParams=function handleURLParams(e,t){var n=new URLSearchParams(location.search),r=n.get("video"),i=n.get("playlist");if(!i)return setVideoParams(e,t,1),!1;if(i===e){var o=t.find((function(e){return r===e.dataItemId})),a=o?o.dataTab:1;return a||setVideoParams(e,t,1),a||!1}},t.setVideoParams=setVideoParams,n(1954),n(2679)},2761:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2094:(e,t,n)=>{var r=n(2190)("unscopables"),i=Array.prototype;null==i[r]&&n(4216)(i,r,{}),e.exports=function(e){i[r][e]=!0}},8492:(e,t,n)=>{"use strict";var r=n(2070)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},6365:(e,t,n)=>{var r=n(7334);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},9021:(e,t,n)=>{var r=n(5703),i=n(6078),o=n(8615);e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},8309:(e,t,n)=>{var r=n(1528),i=n(8467),o=n(6033),a=n(6078),s=n(3531);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,v){for(var h,y,g=o(t),m=i(g),b=r(s,v,3),x=a(m.length),_=0,I=n?p(t,x):l?p(t,0):void 0;x>_;_++)if((d||_ in m)&&(y=b(h=m[_],_,g),e))if(n)I[_]=y;else if(y)switch(e){case 3:return!0;case 5:return h;case 6:return _;case 2:I.push(h)}else if(c)return!1;return f?-1:u||c?c:I}}},1071:(e,t,n)=>{var r=n(7334),i=n(9141),o=n(2190)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},3531:(e,t,n)=>{var r=n(1071);e.exports=function(e,t){return new(r(e))(t)}},106:(e,t,n)=>{var r=n(6688),i=n(2190)("toStringTag"),o="Arguments"==r(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),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},6688:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},66:e=>{var t=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=t)},1528:(e,t,n)=>{var r=n(2761);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},1622:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},6628:(e,t,n)=>{e.exports=!n(8625)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},5050:(e,t,n)=>{var r=n(7334),i=n(8113).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},3603:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},5772:(e,t,n)=>{var r=n(8113),i=n(66),o=n(4216),a=n(7738),s=n(1528),$export=function(e,t,n){var l,u,c,f,d=e&$export.F,p=e&$export.G,v=e&$export.S,h=e&$export.P,y=e&$export.B,g=p?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,m=p?i:i[t]||(i[t]={}),b=m.prototype||(m.prototype={});for(l in p&&(n=t),n)c=((u=!d&&g&&void 0!==g[l])?g:n)[l],f=y&&u?s(c,r):h&&"function"==typeof c?s(Function.call,c):c,g&&a(g,l,c,e&$export.U),m[l]!=c&&o(m,l,f),h&&b[l]!=c&&(b[l]=c)};r.core=i,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,e.exports=$export},6570:(e,t,n)=>{var r=n(2190)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},8625:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},8897:(e,t,n)=>{"use strict";n(5846);var r=n(7738),i=n(4216),o=n(8625),a=n(1622),s=n(2190),l=n(3288),u=s("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=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 d=s(e),p=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),v=p?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!t})):void 0;if(!p||!v||"replace"===e&&!c||"split"===e&&!f){var h=/./[d],y=n(a,d,""[e],(function maybeCallNative(e,t,n,r,i){return t.exec===l?p&&!i?{done:!0,value:h.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),g=y[0],m=y[1];r(String.prototype,e,g),i(RegExp.prototype,d,2==t?function(e,t){return m.call(e,this,t)}:function(e){return m.call(e,this)})}}},4859:(e,t,n)=>{"use strict";var r=n(6365);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},646:(e,t,n)=>{e.exports=n(8655)("native-function-to-string",Function.toString)},8113: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)},4040:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},4216:(e,t,n)=>{var r=n(8558),i=n(6061);e.exports=n(6628)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},5100:(e,t,n)=>{e.exports=!n(6628)&&!n(8625)((function(){return 7!=Object.defineProperty(n(5050)("div"),"a",{get:function(){return 7}}).a}))},8938:(e,t,n)=>{var r=n(7334),i=n(6095).set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},8467:(e,t,n)=>{var r=n(6688);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},9141:(e,t,n)=>{var r=n(6688);e.exports=Array.isArray||function isArray(e){return"Array"==r(e)}},7334:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6841:(e,t,n)=>{var r=n(7334),i=n(6688),o=n(2190)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},1422:e=>{e.exports=!1},8558:(e,t,n)=>{var r=n(6365),i=n(5100),o=n(1382),a=Object.defineProperty;t.f=n(6628)?Object.defineProperty:function defineProperty(e,t,n){if(r(e),t=o(t,!0),r(n),i)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}},4662:(e,t,n)=>{var r=n(5873),i=n(6061),o=n(5703),a=n(1382),s=n(4040),l=n(5100),u=Object.getOwnPropertyDescriptor;t.f=n(6628)?u:function getOwnPropertyDescriptor(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},6604:(e,t,n)=>{var r=n(5547),i=n(3603).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return r(e,i)}},5547:(e,t,n)=>{var r=n(4040),i=n(5703),o=n(9021)(!1),a=n(8034)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},5873:(e,t)=>{t.f={}.propertyIsEnumerable},6061:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7738:(e,t,n)=>{var r=n(8113),i=n(4216),o=n(4040),a=n(5078)("src"),s=n(646),l="toString",u=(""+s).split(l);n(66).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,(function toString(){return"function"==typeof this&&this[a]||s.call(this)}))},2404:(e,t,n)=>{"use strict";var r=n(106),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},3288:(e,t,n)=>{"use strict";var r,i,o=n(4859),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,u=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec("")[1];(u||c)&&(l=function exec(e){var t,n,r,i,l=this;return c&&(n=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),u&&(t=l.lastIndex),r=a.call(l,e),u&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),c&&r&&r.length>1&&s.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=l},339:e=>{e.exports=Object.is||function is(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},6095:(e,t,n)=>{var r=n(7334),i=n(6365),check=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(1528)(Function.call,n(4662).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function setPrototypeOf(e,n){return check(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check}},9766:(e,t,n)=>{"use strict";var r=n(8113),i=n(8558),o=n(6628),a=n(2190)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},8034:(e,t,n)=>{var r=n(8655)("keys"),i=n(5078);e.exports=function(e){return r[e]||(r[e]=i(e))}},8655:(e,t,n)=>{var r=n(66),i=n(8113),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(1422)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},1987:(e,t,n)=>{var r=n(6365),i=n(2761),o=n(2190)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},2070:(e,t,n)=>{var r=n(3338),i=n(1622);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},465:(e,t,n)=>{var r=n(6841),i=n(1622);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},6283:(e,t,n)=>{var r=n(6078),i=n(7160),o=n(1622);e.exports=function(e,t,n,a){var s=String(o(e)),l=s.length,u=void 0===n?" ":String(n),c=r(t);if(c<=l||""==u)return s;var f=c-l,d=i.call(u,Math.ceil(f/u.length));return d.length>f&&(d=d.slice(0,f)),a?d+s:s+d}},7160:(e,t,n)=>{"use strict";var r=n(3338),i=n(1622);e.exports=function repeat(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},8615:(e,t,n)=>{var r=n(3338),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},3338:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},5703:(e,t,n)=>{var r=n(8467),i=n(1622);e.exports=function(e){return r(i(e))}},6078:(e,t,n)=>{var r=n(3338),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},6033:(e,t,n)=>{var r=n(1622);e.exports=function(e){return Object(r(e))}},1382:(e,t,n)=>{var r=n(7334);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},5078:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},5822:(e,t,n)=>{var r=n(8113).navigator;e.exports=r&&r.userAgent||""},2190:(e,t,n)=>{var r=n(8655)("wks"),i=n(5078),o=n(8113).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},1954:(e,t,n)=>{"use strict";var r=n(5772),i=n(8309)(5),o="find",a=!0;o in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function find(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(2094)(o)},9745:(e,t,n)=>{var r=n(8558).f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n(6628)&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},6139:(e,t,n)=>{"use strict";var r=n(106),i={};i[n(2190)("toStringTag")]="z",i+""!="[object z]"&&n(7738)(Object.prototype,"toString",(function toString(){return"[object "+r(this)+"]"}),!0)},5506:(e,t,n)=>{var r=n(8113),i=n(8938),o=n(8558).f,a=n(6604).f,s=n(6841),l=n(4859),u=r.RegExp,c=u,f=u.prototype,d=/a/g,p=/a/g,v=new u(d)!==d;if(n(6628)&&(!v||n(8625)((function(){return p[n(2190)("match")]=!1,u(d)!=d||u(p)==p||"/a/i"!=u(d,"i")})))){u=function RegExp(e,t){var n=this instanceof u,r=s(e),o=void 0===t;return!n&&r&&e.constructor===u&&o?e:i(v?new c(r&&!o?e.source:e,t):c((r=e instanceof u)?e.source:e,r&&o?l.call(e):t),n?this:f,u)};for(var proxy=function(e){e in u||o(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},h=a(c),y=0;h.length>y;)proxy(h[y++]);f.constructor=u,u.prototype=f,n(7738)(r,"RegExp",u)}n(9766)("RegExp")},5846:(e,t,n)=>{"use strict";var r=n(3288);n(5772)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},751:(e,t,n)=>{n(6628)&&"g"!=/./g.flags&&n(8558).f(RegExp.prototype,"flags",{configurable:!0,get:n(4859)})},4828:(e,t,n)=>{"use strict";var r=n(6365),i=n(6078),o=n(8492),a=n(2404);n(8897)("match",1,(function(e,t,n,s){return[function match(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),u=String(this);if(!l.global)return a(l,u);var c=l.unicode;l.lastIndex=0;for(var f,d=[],p=0;null!==(f=a(l,u));){var v=String(f[0]);d[p]=v,""===v&&(l.lastIndex=o(u,i(l.lastIndex),c)),p++}return 0===p?null:d}]}))},2679:(e,t,n)=>{"use strict";var r=n(6365),i=n(339),o=n(2404);n(8897)("search",1,(function(e,t,n,a){return[function search(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var c=o(s,l);return i(s.lastIndex,u)||(s.lastIndex=u),null===c?-1:c.index}]}))},9236:(e,t,n)=>{"use strict";var r=n(6841),i=n(6365),o=n(1987),a=n(8492),s=n(6078),l=n(2404),u=n(3288),c=n(8625),f=Math.min,d=[].push,p=4294967295,v=!c((function(){RegExp(p,"y")}));n(8897)("split",2,(function(e,t,n,c){var h;return h="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 i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,v=void 0===t?p:t>>>0,h=new RegExp(e.source,c+"g");(o=u.call(h,i))&&!((a=h.lastIndex)>f&&(l.push(i.slice(f,o.index)),o.length>1&&o.index<i.length&&d.apply(l,o.slice(1)),s=o[0].length,f=a,l.length>=v));)h.lastIndex===o.index&&h.lastIndex++;return f===i.length?!s&&h.test("")||l.push(""):l.push(i.slice(f)),l.length>v?l.slice(0,v):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function split(n,r){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i,r):h.call(String(i),n,r)},function(e,t){var r=c(h,e,this,t,h!==n);if(r.done)return r.value;var u=i(e),d=String(this),y=o(u,RegExp),g=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),b=new y(v?u:"^(?:"+u.source+")",m),x=void 0===t?p:t>>>0;if(0===x)return[];if(0===d.length)return null===l(b,d)?[d]:[];for(var _=0,I=0,k=[];I<d.length;){b.lastIndex=v?I:0;var S,w=l(b,v?d:d.slice(I));if(null===w||(S=f(s(b.lastIndex+(v?0:I)),d.length))===_)I=a(d,I,g);else{if(k.push(d.slice(_,I)),k.length===x)return k;for(var P=1;P<=w.length-1;P++)if(k.push(w[P]),k.length===x)return k;I=_=S}}return k.push(d.slice(_)),k}]}))},4321:(e,t,n)=>{"use strict";n(751);var r=n(6365),i=n(4859),o=n(6628),a="toString",s=/./.toString,define=function(e){n(7738)(RegExp.prototype,a,e,!0)};n(8625)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?define((function toString(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):s.name!=a&&define((function toString(){return s.call(this)}))},3777:(e,t,n)=>{"use strict";var r=n(5772),i=n(465),o="includes";r(r.P+r.F*n(6570)(o),"String",{includes:function includes(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},8081:(e,t,n)=>{"use strict";var r=n(5772),i=n(9021)(!0);r(r.P,"Array",{includes:function includes(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(2094)("includes")},9447:(e,t,n)=>{"use strict";var r=n(5772),i=n(6283),o=n(5822),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function padStart(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})}},0,[[3713,396]]]);
!function(){"use strict";function Waypoint(options){if(!options)throw new Error("No options passed to Waypoint constructor");if(!options.element)throw new Error("No element option passed to Waypoint constructor");if(!options.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+keyCounter,this.options=Waypoint.Adapter.extend({},Waypoint.defaults,options),this.element=this.options.element,this.adapter=new Waypoint.Adapter(this.element),this.callback=options.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=Waypoint.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=Waypoint.Context.findOrCreateByElement(this.options.context),Waypoint.offsetAliases[this.options.offset]&&(this.options.offset=Waypoint.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),allWaypoints[this.key]=this,keyCounter+=1}var keyCounter=0,allWaypoints={};Waypoint.prototype.queueTrigger=function(direction){this.group.queueTrigger(this,direction)},Waypoint.prototype.trigger=function(args){this.enabled&&this.callback&&this.callback.apply(this,args)},Waypoint.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete allWaypoints[this.key]},Waypoint.prototype.disable=function(){return this.enabled=!1,this},Waypoint.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},Waypoint.prototype.next=function(){return this.group.next(this)},Waypoint.prototype.previous=function(){return this.group.previous(this)},Waypoint.invokeAll=function(method){var allWaypointsArray=[];for(var waypointKey in allWaypoints)allWaypointsArray.push(allWaypoints[waypointKey]);for(var i=0,end=allWaypointsArray.length;i<end;i++)allWaypointsArray[i][method]()},Waypoint.destroyAll=function(){Waypoint.invokeAll("destroy")},Waypoint.disableAll=function(){Waypoint.invokeAll("disable")},Waypoint.enableAll=function(){Waypoint.Context.refreshAll();for(var waypointKey in allWaypoints)allWaypoints[waypointKey].enabled=!0;return this},Waypoint.refreshAll=function(){Waypoint.Context.refreshAll()},Waypoint.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},Waypoint.viewportWidth=function(){return document.documentElement.clientWidth},Waypoint.adapters=[],Waypoint.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},Waypoint.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=Waypoint}(),function(){"use strict";function requestAnimationFrameShim(callback){window.setTimeout(callback,1e3/60)}function Context(element){this.element=element,this.Adapter=Waypoint.Adapter,this.adapter=new this.Adapter(element),this.key="waypoint-context-"+keyCounter,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},element.waypointContextKey=this.key,contexts[element.waypointContextKey]=this,keyCounter+=1,Waypoint.windowContext||(Waypoint.windowContext=!0,Waypoint.windowContext=new Context(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var keyCounter=0,contexts={},Waypoint=window.Waypoint,oldWindowLoad=window.onload;Context.prototype.add=function(waypoint){var axis=waypoint.options.horizontal?"horizontal":"vertical";this.waypoints[axis][waypoint.key]=waypoint,this.refresh()},Context.prototype.checkEmpty=function(){var horizontalEmpty=this.Adapter.isEmptyObject(this.waypoints.horizontal),verticalEmpty=this.Adapter.isEmptyObject(this.waypoints.vertical),isWindow=this.element==this.element.window;horizontalEmpty&&verticalEmpty&&!isWindow&&(this.adapter.off(".waypoints"),delete contexts[this.key])},Context.prototype.createThrottledResizeHandler=function(){function resizeHandler(){self.handleResize(),self.didResize=!1}var self=this;this.adapter.on("resize.waypoints",function(){self.didResize||(self.didResize=!0,Waypoint.requestAnimationFrame(resizeHandler))})},Context.prototype.createThrottledScrollHandler=function(){function scrollHandler(){self.handleScroll(),self.didScroll=!1}var self=this;this.adapter.on("scroll.waypoints",function(){self.didScroll&&!Waypoint.isTouch||(self.didScroll=!0,Waypoint.requestAnimationFrame(scrollHandler))})},Context.prototype.handleResize=function(){Waypoint.Context.refreshAll()},Context.prototype.handleScroll=function(){var triggeredGroups={},axes={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var axisKey in axes){var axis=axes[axisKey],isForward=axis.newScroll>axis.oldScroll,direction=isForward?axis.forward:axis.backward;for(var waypointKey in this.waypoints[axisKey]){var waypoint=this.waypoints[axisKey][waypointKey];if(null!==waypoint.triggerPoint){var wasBeforeTriggerPoint=axis.oldScroll<waypoint.triggerPoint,nowAfterTriggerPoint=axis.newScroll>=waypoint.triggerPoint,crossedForward=wasBeforeTriggerPoint&&nowAfterTriggerPoint,crossedBackward=!wasBeforeTriggerPoint&&!nowAfterTriggerPoint;(crossedForward||crossedBackward)&&(waypoint.queueTrigger(direction),triggeredGroups[waypoint.group.id]=waypoint.group)}}}for(var groupKey in triggeredGroups)triggeredGroups[groupKey].flushTriggers();this.oldScroll={x:axes.horizontal.newScroll,y:axes.vertical.newScroll}},Context.prototype.innerHeight=function(){return this.element==this.element.window?Waypoint.viewportHeight():this.adapter.innerHeight()},Context.prototype.remove=function(waypoint){delete this.waypoints[waypoint.axis][waypoint.key],this.checkEmpty()},Context.prototype.innerWidth=function(){return this.element==this.element.window?Waypoint.viewportWidth():this.adapter.innerWidth()},Context.prototype.destroy=function(){var allWaypoints=[];for(var axis in this.waypoints)for(var waypointKey in this.waypoints[axis])allWaypoints.push(this.waypoints[axis][waypointKey]);for(var i=0,end=allWaypoints.length;i<end;i++)allWaypoints[i].destroy()},Context.prototype.refresh=function(){var axes,isWindow=this.element==this.element.window,contextOffset=isWindow?void 0:this.adapter.offset(),triggeredGroups={};this.handleScroll(),axes={horizontal:{contextOffset:isWindow?0:contextOffset.left,contextScroll:isWindow?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:isWindow?0:contextOffset.top,contextScroll:isWindow?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var axisKey in axes){var axis=axes[axisKey];for(var waypointKey in this.waypoints[axisKey]){var contextModifier,wasBeforeScroll,nowAfterScroll,triggeredBackward,triggeredForward,waypoint=this.waypoints[axisKey][waypointKey],adjustment=waypoint.options.offset,oldTriggerPoint=waypoint.triggerPoint,elementOffset=0,freshWaypoint=null==oldTriggerPoint;waypoint.element!==waypoint.element.window&&(elementOffset=waypoint.adapter.offset()[axis.offsetProp]),"function"==typeof adjustment?adjustment=adjustment.apply(waypoint):"string"==typeof adjustment&&(adjustment=parseFloat(adjustment),waypoint.options.offset.indexOf("%")>-1&&(adjustment=Math.ceil(axis.contextDimension*adjustment/100))),contextModifier=axis.contextScroll-axis.contextOffset,waypoint.triggerPoint=Math.floor(elementOffset+contextModifier-adjustment),wasBeforeScroll=oldTriggerPoint<axis.oldScroll,nowAfterScroll=waypoint.triggerPoint>=axis.oldScroll,triggeredBackward=wasBeforeScroll&&nowAfterScroll,triggeredForward=!wasBeforeScroll&&!nowAfterScroll,!freshWaypoint&&triggeredBackward?(waypoint.queueTrigger(axis.backward),triggeredGroups[waypoint.group.id]=waypoint.group):!freshWaypoint&&triggeredForward?(waypoint.queueTrigger(axis.forward),triggeredGroups[waypoint.group.id]=waypoint.group):freshWaypoint&&axis.oldScroll>=waypoint.triggerPoint&&(waypoint.queueTrigger(axis.forward),triggeredGroups[waypoint.group.id]=waypoint.group)}}return Waypoint.requestAnimationFrame(function(){for(var groupKey in triggeredGroups)triggeredGroups[groupKey].flushTriggers()}),this},Context.findOrCreateByElement=function(element){return Context.findByElement(element)||new Context(element)},Context.refreshAll=function(){for(var contextId in contexts)contexts[contextId].refresh()},Context.findByElement=function(element){return contexts[element.waypointContextKey]},window.onload=function(){oldWindowLoad&&oldWindowLoad(),Context.refreshAll()},Waypoint.requestAnimationFrame=function(callback){var requestFn=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||requestAnimationFrameShim;requestFn.call(window,callback)},Waypoint.Context=Context}(),function(){"use strict";function byTriggerPoint(a,b){return a.triggerPoint-b.triggerPoint}function byReverseTriggerPoint(a,b){return b.triggerPoint-a.triggerPoint}function Group(options){this.name=options.name,this.axis=options.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),groups[this.axis][this.name]=this}var groups={vertical:{},horizontal:{}},Waypoint=window.Waypoint;Group.prototype.add=function(waypoint){this.waypoints.push(waypoint)},Group.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},Group.prototype.flushTriggers=function(){for(var direction in this.triggerQueues){var waypoints=this.triggerQueues[direction],reverse="up"===direction||"left"===direction;waypoints.sort(reverse?byReverseTriggerPoint:byTriggerPoint);for(var i=0,end=waypoints.length;i<end;i+=1){var waypoint=waypoints[i];(waypoint.options.continuous||i===waypoints.length-1)&&waypoint.trigger([direction])}}this.clearTriggerQueues()},Group.prototype.next=function(waypoint){this.waypoints.sort(byTriggerPoint);var index=Waypoint.Adapter.inArray(waypoint,this.waypoints),isLast=index===this.waypoints.length-1;return isLast?null:this.waypoints[index+1]},Group.prototype.previous=function(waypoint){this.waypoints.sort(byTriggerPoint);var index=Waypoint.Adapter.inArray(waypoint,this.waypoints);return index?this.waypoints[index-1]:null},Group.prototype.queueTrigger=function(waypoint,direction){this.triggerQueues[direction].push(waypoint)},Group.prototype.remove=function(waypoint){var index=Waypoint.Adapter.inArray(waypoint,this.waypoints);index>-1&&this.waypoints.splice(index,1)},Group.prototype.first=function(){return this.waypoints[0]},Group.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},Group.findOrCreate=function(options){return groups[options.axis][options.name]||new Group(options)},Waypoint.Group=Group}(),function(){"use strict";function JQueryAdapter(element){this.$element=$(element)}var $=window.jQuery,Waypoint=window.Waypoint;$.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(i,method){JQueryAdapter.prototype[method]=function(){var args=Array.prototype.slice.call(arguments);return this.$element[method].apply(this.$element,args)}}),$.each(["extend","inArray","isEmptyObject"],function(i,method){JQueryAdapter[method]=$[method]}),Waypoint.adapters.push({name:"jquery",Adapter:JQueryAdapter}),Waypoint.Adapter=JQueryAdapter}(),function(){"use strict";function createExtension(framework){return function(){var waypoints=[],overrides=arguments[0];return framework.isFunction(arguments[0])&&(overrides=framework.extend({},arguments[1]),overrides.handler=arguments[0]),this.each(function(){var options=framework.extend({},overrides,{element:this});"string"==typeof options.context&&(options.context=framework(this).closest(options.context)[0]),waypoints.push(new Waypoint(options))}),waypoints}}var Waypoint=window.Waypoint;window.jQuery&&(window.jQuery.fn.elementorWaypoint=createExtension(window.jQuery)),window.Zepto&&(window.Zepto.fn.elementorWaypoint=createExtension(window.Zepto))}();
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Swiper=t()}(this,(function(){"use strict";var e="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"==typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,i=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function s(s,a){var r=[],n=0;if(s&&!a&&s instanceof i)return s;if(s)if("string"==typeof s){var o,l,d=s.trim();if(d.indexOf("<")>=0&&d.indexOf(">")>=0){var h="div";for(0===d.indexOf("<li")&&(h="ul"),0===d.indexOf("<tr")&&(h="tbody"),0!==d.indexOf("<td")&&0!==d.indexOf("<th")||(h="tr"),0===d.indexOf("<tbody")&&(h="table"),0===d.indexOf("<option")&&(h="select"),(l=e.createElement(h)).innerHTML=d,n=0;n<l.childNodes.length;n+=1)r.push(l.childNodes[n])}else for(o=a||"#"!==s[0]||s.match(/[ .<>:~]/)?(a||e).querySelectorAll(s.trim()):[e.getElementById(s.trim().split("#")[1])],n=0;n<o.length;n+=1)o[n]&&r.push(o[n])}else if(s.nodeType||s===t||s===e)r.push(s);else if(s.length>0&&s[0].nodeType)for(n=0;n<s.length;n+=1)r.push(s[n]);return new i(r)}function a(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}s.fn=i.prototype,s.Class=i,s.Dom7=i;var r={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.add(t[i]);return this},removeClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.remove(t[i]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.toggle(t[i]);return this},attr:function(e,t){var i=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var s=0;s<this.length;s+=1)if(2===i.length)this[s].setAttribute(e,t);else for(var a in e)this[s][a]=e[a],this[s].setAttribute(a,e[a]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var i;if(void 0!==t){for(var s=0;s<this.length;s+=1)(i=this[s]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var a=i.getAttribute("data-"+e);return a||void 0}},transform:function(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this},on:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var a=t[0],r=t[1],n=t[2],o=t[3];function l(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),s(t).is(r))n.apply(t,i);else for(var a=s(t).parents(),o=0;o<a.length;o+=1)s(a[o]).is(r)&&n.apply(a[o],i)}}function d(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"==typeof t[1]&&(a=(e=t)[0],n=e[1],o=e[2],r=void 0),o||(o=!1);for(var h,p=a.split(" "),c=0;c<this.length;c+=1){var u=this[c];if(r)for(h=0;h<p.length;h+=1){var v=p[h];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[v]||(u.dom7LiveListeners[v]=[]),u.dom7LiveListeners[v].push({listener:n,proxyListener:l}),u.addEventListener(v,l,o)}else for(h=0;h<p.length;h+=1){var f=p[h];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:n,proxyListener:d}),u.addEventListener(f,d,o)}}return this},off:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var s=t[0],a=t[1],r=t[2],n=t[3];"function"==typeof t[1]&&(s=(e=t)[0],r=e[1],n=e[2],a=void 0),n||(n=!1);for(var o=s.split(" "),l=0;l<o.length;l+=1)for(var d=o[l],h=0;h<this.length;h+=1){var p=this[h],c=void 0;if(!a&&p.dom7Listeners?c=p.dom7Listeners[d]:a&&p.dom7LiveListeners&&(c=p.dom7LiveListeners[d]),c&&c.length)for(var u=c.length-1;u>=0;u-=1){var v=c[u];r&&v.listener===r?(p.removeEventListener(d,v.proxyListener,n),c.splice(u,1)):r&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===r?(p.removeEventListener(d,v.proxyListener,n),c.splice(u,1)):r||(p.removeEventListener(d,v.proxyListener,n),c.splice(u,1))}}return this},trigger:function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];for(var a=i[0].split(" "),r=i[1],n=0;n<a.length;n+=1)for(var o=a[n],l=0;l<this.length;l+=1){var d=this[l],h=void 0;try{h=new t.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0})}catch(t){(h=e.createEvent("Event")).initEvent(o,!0,!0),h.detail=r}d.dom7EventData=i.filter((function(e,t){return t>0})),d.dispatchEvent(h),d.dom7EventData=[],delete d.dom7EventData}return this},transitionEnd:function(e){var t,i=["webkitTransitionEnd","transitionend"],s=this;function a(r){if(r.target===this)for(e.call(this,r),t=0;t<i.length;t+=1)s.off(i[t],a)}if(e)for(t=0;t<i.length;t+=1)s.on(i[t],a);return this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var i=this[0],s=i.getBoundingClientRect(),a=e.body,r=i.clientTop||a.clientTop||0,n=i.clientLeft||a.clientLeft||0,o=i===t?t.scrollY:i.scrollTop,l=i===t?t.scrollX:i.scrollLeft;return{top:s.top+o-r,left:s.left+l-n}}return null},css:function(e,i){var s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s<this.length;s+=1)for(var a in e)this[s].style[a]=e[a];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(s=0;s<this.length;s+=1)this[s].style[e]=i;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(a){var r,n,o=this[0];if(!o||void 0===a)return!1;if("string"==typeof a){if(o.matches)return o.matches(a);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(a);if(o.msMatchesSelector)return o.msMatchesSelector(a);for(r=s(a),n=0;n<r.length;n+=1)if(r[n]===o)return!0;return!1}if(a===e)return o===e;if(a===t)return o===t;if(a.nodeType||a instanceof i){for(r=a.nodeType?[a]:a,n=0;n<r.length;n+=1)if(r[n]===o)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,s=this.length;return new i(e>s-1?[]:e<0?(t=s+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var t,s=[],a=arguments.length;a--;)s[a]=arguments[a];for(var r=0;r<s.length;r+=1){t=s[r];for(var n=0;n<this.length;n+=1)if("string"==typeof t){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[n].appendChild(o.firstChild)}else if(t instanceof i)for(var l=0;l<t.length;l+=1)this[n].appendChild(t[l]);else this[n].appendChild(t)}return this},prepend:function(t){var s,a;for(s=0;s<this.length;s+=1)if("string"==typeof t){var r=e.createElement("div");for(r.innerHTML=t,a=r.childNodes.length-1;a>=0;a-=1)this[s].insertBefore(r.childNodes[a],this[s].childNodes[0])}else if(t instanceof i)for(a=0;a<t.length;a+=1)this[s].insertBefore(t[a],this[s].childNodes[0]);else this[s].insertBefore(t,this[s].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&s(this[0].nextElementSibling).is(e)?new i([this[0].nextElementSibling]):new i([]):this[0].nextElementSibling?new i([this[0].nextElementSibling]):new i([]):new i([])},nextAll:function(e){var t=[],a=this[0];if(!a)return new i([]);for(;a.nextElementSibling;){var r=a.nextElementSibling;e?s(r).is(e)&&t.push(r):t.push(r),a=r}return new i(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&s(t.previousElementSibling).is(e)?new i([t.previousElementSibling]):new i([]):t.previousElementSibling?new i([t.previousElementSibling]):new i([])}return new i([])},prevAll:function(e){var t=[],a=this[0];if(!a)return new i([]);for(;a.previousElementSibling;){var r=a.previousElementSibling;e?s(r).is(e)&&t.push(r):t.push(r),a=r}return new i(t)},parent:function(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?s(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return s(a(t))},parents:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var r=this[i].parentNode;r;)e?s(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return s(a(t))},closest:function(e){var t=this;return void 0===e?new i([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],s=0;s<this.length;s+=1)for(var a=this[s].querySelectorAll(e),r=0;r<a.length;r+=1)t.push(a[r]);return new i(t)},children:function(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].childNodes,o=0;o<n.length;o+=1)e?1===n[o].nodeType&&s(n[o]).is(e)&&t.push(n[o]):1===n[o].nodeType&&t.push(n[o]);return new i(a(t))},filter:function(e){for(var t=[],s=0;s<this.length;s+=1)e.call(this[s],s,this[s])&&t.push(this[s]);return new i(t)},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,a;for(i=0;i<e.length;i+=1){var r=s(e[i]);for(a=0;a<r.length;a+=1)this[this.length]=r[a],this.length+=1}return this},styles:function(){return this[0]?t.getComputedStyle(this[0],null):{}}};Object.keys(r).forEach((function(e){s.fn[e]=s.fn[e]||r[e]}));var n={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,i){var s,a,r;void 0===i&&(i="x");var n=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?((a=n.transform||n.webkitTransform).split(",").length>6&&(a=a.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new t.WebKitCSSMatrix("none"===a?"":a)):s=(r=n.MozTransform||n.OTransform||n.MsTransform||n.msTransform||n.transform||n.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(a=t.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===i&&(a=t.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),a||0},parseUrlQuery:function(e){var i,s,a,r,n={},o=e||t.location.href;if("string"==typeof o&&o.length)for(r=(s=(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,i=0;i<r;i+=1)a=s[i].replace(/#\S+/g,"").split("="),n[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return n},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),s=1;s<e.length;s+=1){var a=e[s];if(null!=a)for(var r=Object.keys(Object(a)),o=0,l=r.length;o<l;o+=1){var d=r[o],h=Object.getOwnPropertyDescriptor(a,d);void 0!==h&&h.enumerable&&(n.isObject(i[d])&&n.isObject(a[d])?n.extend(i[d],a[d]):!n.isObject(i[d])&&n.isObject(a[d])?(i[d]={},n.extend(i[d],a[d])):i[d]=a[d])}}return i}},o={touch:t.Modernizr&&!0===t.Modernizr.touch||!!(t.navigator.maxTouchPoints>0||"ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>0,observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(e){}return e}(),gestures:"ongesturestart"in t},l=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))},d={components:{configurable:!0}};l.prototype.on=function(e,t,i){var s=this;if("function"!=typeof t)return s;var a=i?"unshift":"push";return e.split(" ").forEach((function(e){s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][a](t)})),s},l.prototype.once=function(e,t,i){var s=this;if("function"!=typeof t)return s;function a(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];s.off(e,a),a.f7proxy&&delete a.f7proxy,t.apply(s,i)}return a.f7proxy=t,s.on(e,a,i)},l.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach((function(s,a){(s===t||s.f7proxy&&s.f7proxy===t)&&i.eventsListeners[e].splice(a,1)}))})),i):i},l.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,s,a,r=this;if(!r.eventsListeners)return r;"string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),a=r):(i=e[0].events,s=e[0].data,a=e[0].context||r);var n=Array.isArray(i)?i:i.split(" ");return n.forEach((function(e){if(r.eventsListeners&&r.eventsListeners[e]){var t=[];r.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(a,s)}))}})),r},l.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i];s.params&&n.extend(e,s.params)}))},l.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i],a=e[i]||{};s.instance&&Object.keys(s.instance).forEach((function(e){var i=s.instance[e];t[e]="function"==typeof i?i.bind(t):i})),s.on&&t.on&&Object.keys(s.on).forEach((function(e){t.on(e,s.on[e])})),s.create&&s.create.bind(t)(a)}))},d.components.set=function(e){this.use&&this.use(e)},l.installModule=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var s=this;s.prototype.modules||(s.prototype.modules={});var a=e.name||Object.keys(s.prototype.modules).length+"_"+n.now();return s.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach((function(t){s.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){s[t]=e.static[t]})),e.install&&e.install.apply(s,t),s},l.use=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var s=this;return Array.isArray(e)?(e.forEach((function(e){return s.installModule(e)})),s):s.installModule.apply(s,[e].concat(t))},Object.defineProperties(l,d);var h={updateSize:function(){var e,t,i=this.$el;e=void 0!==this.params.width?this.params.width:i[0].clientWidth,t=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),t=t-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),n.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,i=this.$wrapperEl,s=this.size,a=this.rtlTranslate,r=this.wrongRTL,o=this.virtual&&e.virtual.enabled,l=o?this.virtual.slides.length:this.slides.length,d=i.children("."+this.params.slideClass),h=o?this.virtual.slides.length:d.length,p=[],c=[],u=[];function v(t){return!e.cssMode||t!==d.length-1}var f=e.slidesOffsetBefore;"function"==typeof f&&(f=e.slidesOffsetBefore.call(this));var m=e.slidesOffsetAfter;"function"==typeof m&&(m=e.slidesOffsetAfter.call(this));var g=this.snapGrid.length,b=this.snapGrid.length,w=e.spaceBetween,y=-f,x=0,T=0;if(void 0!==s){var E,S;"string"==typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*s),this.virtualSize=-w,a?d.css({marginLeft:"",marginTop:""}):d.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(E=Math.floor(h/e.slidesPerColumn)===h/this.params.slidesPerColumn?h:Math.ceil(h/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(E=Math.max(E,e.slidesPerView*e.slidesPerColumn)));for(var C,M=e.slidesPerColumn,P=E/M,z=Math.floor(h/e.slidesPerColumn),k=0;k<h;k+=1){S=0;var $=d.eq(k);if(e.slidesPerColumn>1){var L=void 0,I=void 0,D=void 0;if("row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){var O=Math.floor(k/(e.slidesPerGroup*e.slidesPerColumn)),A=k-e.slidesPerColumn*e.slidesPerGroup*O,G=0===O?e.slidesPerGroup:Math.min(Math.ceil((h-O*M*e.slidesPerGroup)/M),e.slidesPerGroup);L=(I=A-(D=Math.floor(A/G))*G+O*e.slidesPerGroup)+D*E/M,$.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===e.slidesPerColumnFill?(D=k-(I=Math.floor(k/M))*M,(I>z||I===z&&D===M-1)&&(D+=1)>=M&&(D=0,I+=1)):I=k-(D=Math.floor(k/P))*P;$.css("margin-"+(this.isHorizontal()?"top":"left"),0!==D&&e.spaceBetween&&e.spaceBetween+"px")}if("none"!==$.css("display")){if("auto"===e.slidesPerView){var H=t.getComputedStyle($[0],null),B=$[0].style.transform,N=$[0].style.webkitTransform;if(B&&($[0].style.transform="none"),N&&($[0].style.webkitTransform="none"),e.roundLengths)S=this.isHorizontal()?$.outerWidth(!0):$.outerHeight(!0);else if(this.isHorizontal()){var X=parseFloat(H.getPropertyValue("width")),V=parseFloat(H.getPropertyValue("padding-left")),Y=parseFloat(H.getPropertyValue("padding-right")),F=parseFloat(H.getPropertyValue("margin-left")),W=parseFloat(H.getPropertyValue("margin-right")),R=H.getPropertyValue("box-sizing");S=R&&"border-box"===R?X+F+W:X+V+Y+F+W}else{var q=parseFloat(H.getPropertyValue("height")),j=parseFloat(H.getPropertyValue("padding-top")),K=parseFloat(H.getPropertyValue("padding-bottom")),U=parseFloat(H.getPropertyValue("margin-top")),_=parseFloat(H.getPropertyValue("margin-bottom")),Z=H.getPropertyValue("box-sizing");S=Z&&"border-box"===Z?q+U+_:q+j+K+U+_}B&&($[0].style.transform=B),N&&($[0].style.webkitTransform=N),e.roundLengths&&(S=Math.floor(S))}else S=(s-(e.slidesPerView-1)*w)/e.slidesPerView,e.roundLengths&&(S=Math.floor(S)),d[k]&&(this.isHorizontal()?d[k].style.width=S+"px":d[k].style.height=S+"px");d[k]&&(d[k].swiperSlideSize=S),u.push(S),e.centeredSlides?(y=y+S/2+x/2+w,0===x&&0!==k&&(y=y-s/2-w),0===k&&(y=y-s/2-w),Math.abs(y)<.001&&(y=0),e.roundLengths&&(y=Math.floor(y)),T%e.slidesPerGroup==0&&p.push(y),c.push(y)):(e.roundLengths&&(y=Math.floor(y)),(T-Math.min(this.params.slidesPerGroupSkip,T))%this.params.slidesPerGroup==0&&p.push(y),c.push(y),y=y+S+w),this.virtualSize+=S+w,x=S,T+=1}}if(this.virtualSize=Math.max(this.virtualSize,s)+m,a&&r&&("slide"===e.effect||"coverflow"===e.effect)&&i.css({width:this.virtualSize+e.spaceBetween+"px"}),e.setWrapperSize&&(this.isHorizontal()?i.css({width:this.virtualSize+e.spaceBetween+"px"}):i.css({height:this.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(this.virtualSize=(S+e.spaceBetween)*E,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?i.css({width:this.virtualSize+e.spaceBetween+"px"}):i.css({height:this.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){C=[];for(var Q=0;Q<p.length;Q+=1){var J=p[Q];e.roundLengths&&(J=Math.floor(J)),p[Q]<this.virtualSize+p[0]&&C.push(J)}p=C}if(!e.centeredSlides){C=[];for(var ee=0;ee<p.length;ee+=1){var te=p[ee];e.roundLengths&&(te=Math.floor(te)),p[ee]<=this.virtualSize-s&&C.push(te)}p=C,Math.floor(this.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(this.virtualSize-s)}if(0===p.length&&(p=[0]),0!==e.spaceBetween&&(this.isHorizontal()?a?d.filter(v).css({marginLeft:w+"px"}):d.filter(v).css({marginRight:w+"px"}):d.filter(v).css({marginBottom:w+"px"})),e.centeredSlides&&e.centeredSlidesBounds){var ie=0;u.forEach((function(t){ie+=t+(e.spaceBetween?e.spaceBetween:0)}));var se=(ie-=e.spaceBetween)-s;p=p.map((function(e){return e<0?-f:e>se?se+m:e}))}if(e.centerInsufficientSlides){var ae=0;if(u.forEach((function(t){ae+=t+(e.spaceBetween?e.spaceBetween:0)})),(ae-=e.spaceBetween)<s){var re=(s-ae)/2;p.forEach((function(e,t){p[t]=e-re})),c.forEach((function(e,t){c[t]=e+re}))}}n.extend(this,{slides:d,snapGrid:p,slidesGrid:c,slidesSizesGrid:u}),h!==l&&this.emit("slidesLengthChange"),p.length!==g&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),c.length!==b&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,i=[],s=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)if(this.params.centeredSlides)i.push.apply(i,this.visibleSlides);else for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var a=this.activeIndex+t;if(a>this.slides.length)break;i.push(this.slides.eq(a)[0])}else i.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var r=i[t].offsetHeight;s=r>s?r:s}s&&this.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,i=this.slides,a=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var r=-e;a&&(r=e),i.removeClass(t.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var n=0;n<i.length;n+=1){var o=i[n],l=(r+(t.centeredSlides?this.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight){var d=-(r-o.swiperSlideOffset),h=d+this.slidesSizesGrid[n];(d>=0&&d<this.size-1||h>1&&h<=this.size||d<=0&&h>=this.size)&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(n),i.eq(n).addClass(t.slideVisibleClass))}o.progress=a?-l:l}this.visibleSlides=s(this.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var i=this.params,s=this.maxTranslate()-this.minTranslate(),a=this.progress,r=this.isBeginning,o=this.isEnd,l=r,d=o;0===s?(a=0,r=!0,o=!0):(r=(a=(e-this.minTranslate())/s)<=0,o=a>=1),n.extend(this,{progress:a,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&this.updateSlidesProgress(e),r&&!l&&this.emit("reachBeginning toEdge"),o&&!d&&this.emit("reachEnd toEdge"),(l&&!r||d&&!o)&&this.emit("fromEdge"),this.emit("progress",a)},updateSlidesClasses:function(){var e,t=this.slides,i=this.params,s=this.$wrapperEl,a=this.activeIndex,r=this.realIndex,n=this.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(e=n?this.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+a+'"]'):t.eq(a)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+r+'"]').addClass(i.slideDuplicateActiveClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+r+'"]').addClass(i.slideDuplicateActiveClass));var o=e.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===o.length&&(o=t.eq(0)).addClass(i.slideNextClass);var l=e.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===l.length&&(l=t.eq(-1)).addClass(i.slidePrevClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,i=this.rtlTranslate?this.translate:-this.translate,s=this.slidesGrid,a=this.snapGrid,r=this.params,o=this.activeIndex,l=this.realIndex,d=this.snapIndex,h=e;if(void 0===h){for(var p=0;p<s.length;p+=1)void 0!==s[p+1]?i>=s[p]&&i<s[p+1]-(s[p+1]-s[p])/2?h=p:i>=s[p]&&i<s[p+1]&&(h=p+1):i>=s[p]&&(h=p);r.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if(a.indexOf(i)>=0)t=a.indexOf(i);else{var c=Math.min(r.slidesPerGroupSkip,h);t=c+Math.floor((h-c)/r.slidesPerGroup)}if(t>=a.length&&(t=a.length-1),h!==o){var u=parseInt(this.slides.eq(h).attr("data-swiper-slide-index")||h,10);n.extend(this,{snapIndex:t,realIndex:u,previousIndex:o,activeIndex:h}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),l!==u&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else t!==d&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,i=s(e.target).closest("."+t.slideClass)[0],a=!1;if(i)for(var r=0;r<this.slides.length;r+=1)this.slides[r]===i&&(a=!0);if(!i||!a)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(s(i).attr("data-swiper-slide-index"),10):this.clickedIndex=s(i).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var p={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,i=this.rtlTranslate,s=this.translate,a=this.$wrapperEl;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;var r=n.getTranslate(a[0],e);return i&&(r=-r),r||0},setTranslate:function(e,t){var i=this.rtlTranslate,s=this.params,a=this.$wrapperEl,r=this.wrapperEl,n=this.progress,o=0,l=0;this.isHorizontal()?o=i?-e:e:l=e,s.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),s.cssMode?r[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-o:-l:s.virtualTranslate||a.transform("translate3d("+o+"px, "+l+"px, 0px)"),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?o:l;var d=this.maxTranslate()-this.minTranslate();(0===d?0:(e-this.minTranslate())/d)!==n&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,a){var r;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);var n=this,o=n.params,l=n.wrapperEl;if(n.animating&&o.preventInteractionOnTransition)return!1;var d,h=n.minTranslate(),p=n.maxTranslate();if(d=s&&e>h?h:s&&e<p?p:e,n.updateProgress(d),o.cssMode){var c=n.isHorizontal();return 0===t?l[c?"scrollLeft":"scrollTop"]=-d:l.scrollTo?l.scrollTo(((r={})[c?"left":"top"]=-d,r.behavior="smooth",r)):l[c?"scrollLeft":"scrollTop"]=-d,!0}return 0===t?(n.setTransition(0),n.setTranslate(d),i&&(n.emit("beforeTransitionStart",t,a),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(d),i&&(n.emit("beforeTransitionStart",t,a),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,i&&n.emit("transitionEnd"))}),n.$wrapperEl[0].addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd))),!0}};var c={setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,s=this.params,a=this.previousIndex;if(!s.cssMode){s.autoHeight&&this.updateAutoHeight();var r=t;if(r||(r=i>a?"next":i<a?"prev":"reset"),this.emit("transitionStart"),e&&i!==a){if("reset"===r)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===r?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}}},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,s=this.previousIndex,a=this.params;if(this.animating=!1,!a.cssMode){this.setTransition(0);var r=t;if(r||(r=i>s?"next":i<s?"prev":"reset"),this.emit("transitionEnd"),e&&i!==s){if("reset"===r)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===r?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}}};var u={slideTo:function(e,t,i,s){var a;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,n=e;n<0&&(n=0);var o=r.params,l=r.snapGrid,d=r.slidesGrid,h=r.previousIndex,p=r.activeIndex,c=r.rtlTranslate,u=r.wrapperEl;if(r.animating&&o.preventInteractionOnTransition)return!1;var v=Math.min(r.params.slidesPerGroupSkip,n),f=v+Math.floor((n-v)/r.params.slidesPerGroup);f>=l.length&&(f=l.length-1),(p||o.initialSlide||0)===(h||0)&&i&&r.emit("beforeSlideChangeStart");var m,g=-l[f];if(r.updateProgress(g),o.normalizeSlideIndex)for(var b=0;b<d.length;b+=1)-Math.floor(100*g)>=Math.floor(100*d[b])&&(n=b);if(r.initialized&&n!==p){if(!r.allowSlideNext&&g<r.translate&&g<r.minTranslate())return!1;if(!r.allowSlidePrev&&g>r.translate&&g>r.maxTranslate()&&(p||0)!==n)return!1}if(m=n>p?"next":n<p?"prev":"reset",c&&-g===r.translate||!c&&g===r.translate)return r.updateActiveIndex(n),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(g),"reset"!==m&&(r.transitionStart(i,m),r.transitionEnd(i,m)),!1;if(o.cssMode){var w=r.isHorizontal();return 0===t?u[w?"scrollLeft":"scrollTop"]=-g:u.scrollTo?u.scrollTo(((a={})[w?"left":"top"]=-g,a.behavior="smooth",a)):u[w?"scrollLeft":"scrollTop"]=-g,!0}return 0===t?(r.setTransition(0),r.setTranslate(g),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,m),r.transitionEnd(i,m)):(r.setTransition(t),r.setTranslate(g),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,m),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,m))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var a=e;return this.params.loop&&(a+=this.loopedSlides),this.slideTo(a,t,i,s)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this.params,a=this.animating,r=this.activeIndex<s.slidesPerGroupSkip?1:s.slidesPerGroup;if(s.loop){if(a)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}return this.slideTo(this.activeIndex+r,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this.params,a=this.animating,r=this.snapGrid,n=this.slidesGrid,o=this.rtlTranslate;if(s.loop){if(a)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function l(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,h=l(o?this.translate:-this.translate),p=r.map((function(e){return l(e)})),c=(n.map((function(e){return l(e)})),r[p.indexOf(h)],r[p.indexOf(h)-1]);return void 0===c&&s.cssMode&&r.forEach((function(e){!c&&h>=e&&(c=e)})),void 0!==c&&(d=n.indexOf(c))<0&&(d=this.activeIndex-1),this.slideTo(d,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var a=this.activeIndex,r=Math.min(this.params.slidesPerGroupSkip,a),n=r+Math.floor((a-r)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[n]){var l=this.snapGrid[n];o-l>(this.snapGrid[n+1]-l)*s&&(a+=this.params.slidesPerGroup)}else{var d=this.snapGrid[n-1];o-d<=(this.snapGrid[n]-d)*s&&(a-=this.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,this.slidesGrid.length-1),this.slideTo(a,e,t,i)},slideToClickedSlide:function(){var e,t=this,i=t.params,a=t.$wrapperEl,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,o=t.clickedIndex;if(i.loop){if(t.animating)return;e=parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?o<t.loopedSlides-r/2||o>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),o=a.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),n.nextTick((function(){t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-r?(t.loopFix(),o=a.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),n.nextTick((function(){t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}};var v={loopCreate:function(){var t=this,i=t.params,a=t.$wrapperEl;a.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var r=a.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var n=i.slidesPerGroup-r.length%i.slidesPerGroup;if(n!==i.slidesPerGroup){for(var o=0;o<n;o+=1){var l=s(e.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);a.append(l)}r=a.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=r.length),t.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);var d=[],h=[];r.each((function(e,i){var a=s(i);e<t.loopedSlides&&h.push(i),e<r.length&&e>=r.length-t.loopedSlides&&d.push(i),a.attr("data-swiper-slide-index",e)}));for(var p=0;p<h.length;p+=1)a.append(s(h[p].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var c=d.length-1;c>=0;c-=1)a.prepend(s(d[c].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){this.emit("beforeLoopFix");var e,t=this.activeIndex,i=this.slides,s=this.loopedSlides,a=this.allowSlidePrev,r=this.allowSlideNext,n=this.snapGrid,o=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-n[t]-this.getTranslate();if(t<s)e=i.length-3*s+t,e+=s,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((o?-this.translate:this.translate)-l);else if(t>=i.length-s){e=-i.length+t+s,e+=s,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((o?-this.translate:this.translate)-l)}this.allowSlidePrev=a,this.allowSlideNext=r,this.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}};var f={setGrabCursor:function(e){if(!(o.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){o.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}};var m,g,b,w,y,x,T,E,S,C,M,P,z,k,$,L={appendSlide:function(e){var t=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var s=0;s<e.length;s+=1)e[s]&&t.append(e[s]);else t.append(e);i.loop&&this.loopCreate(),i.observer&&o.observer||this.update()},prependSlide:function(e){var t=this.params,i=this.$wrapperEl,s=this.activeIndex;t.loop&&this.loopDestroy();var a=s+1;if("object"==typeof e&&"length"in e){for(var r=0;r<e.length;r+=1)e[r]&&i.prepend(e[r]);a=s+e.length}else i.prepend(e);t.loop&&this.loopCreate(),t.observer&&o.observer||this.update(),this.slideTo(a,0,!1)},addSlide:function(e,t){var i=this.$wrapperEl,s=this.params,a=this.activeIndex;s.loop&&(a-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+s.slideClass));var r=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=r)this.appendSlide(t);else{for(var n=a>e?a+1:a,l=[],d=r-1;d>=e;d-=1){var h=this.slides.eq(d);h.remove(),l.unshift(h)}if("object"==typeof t&&"length"in t){for(var p=0;p<t.length;p+=1)t[p]&&i.append(t[p]);n=a>e?a+t.length:a}else i.append(t);for(var c=0;c<l.length;c+=1)i.append(l[c]);s.loop&&this.loopCreate(),s.observer&&o.observer||this.update(),s.loop?this.slideTo(n+this.loopedSlides,0,!1):this.slideTo(n,0,!1)}},removeSlide:function(e){var t=this.params,i=this.$wrapperEl,s=this.activeIndex;t.loop&&(s-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+t.slideClass));var a,r=s;if("object"==typeof e&&"length"in e){for(var n=0;n<e.length;n+=1)a=e[n],this.slides[a]&&this.slides.eq(a).remove(),a<r&&(r-=1);r=Math.max(r,0)}else a=e,this.slides[a]&&this.slides.eq(a).remove(),a<r&&(r-=1),r=Math.max(r,0);t.loop&&this.loopCreate(),t.observer&&o.observer||this.update(),t.loop?this.slideTo(r+this.loopedSlides,0,!1):this.slideTo(r,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},I=(m=t.navigator.platform,g=t.navigator.userAgent,b={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!t.cordova&&!t.phonegap),phonegap:!(!t.cordova&&!t.phonegap),electron:!1},w=t.screen.width,y=t.screen.height,x=g.match(/(Android);?[\s\/]+([\d.]+)?/),T=g.match(/(iPad).*OS\s([\d_]+)/),E=g.match(/(iPod)(.*OS\s([\d_]+))?/),S=!T&&g.match(/(iPhone\sOS|iOS)\s([\d_]+)/),C=g.indexOf("MSIE ")>=0||g.indexOf("Trident/")>=0,M=g.indexOf("Edge/")>=0,P=g.indexOf("Gecko/")>=0&&g.indexOf("Firefox/")>=0,z="Win32"===m,k=g.toLowerCase().indexOf("electron")>=0,$="MacIntel"===m,!T&&$&&o.touch&&(1024===w&&1366===y||834===w&&1194===y||834===w&&1112===y||768===w&&1024===y)&&(T=g.match(/(Version)\/([\d.]+)/),$=!1),b.ie=C,b.edge=M,b.firefox=P,x&&!z&&(b.os="android",b.osVersion=x[2],b.android=!0,b.androidChrome=g.toLowerCase().indexOf("chrome")>=0),(T||S||E)&&(b.os="ios",b.ios=!0),S&&!E&&(b.osVersion=S[2].replace(/_/g,"."),b.iphone=!0),T&&(b.osVersion=T[2].replace(/_/g,"."),b.ipad=!0),E&&(b.osVersion=E[3]?E[3].replace(/_/g,"."):null,b.ipod=!0),b.ios&&b.osVersion&&g.indexOf("Version/")>=0&&"10"===b.osVersion.split(".")[0]&&(b.osVersion=g.toLowerCase().split("version/")[1].split(" ")[0]),b.webView=!(!(S||T||E)||!g.match(/.*AppleWebKit(?!.*Safari)/i)&&!t.navigator.standalone)||t.matchMedia&&t.matchMedia("(display-mode: standalone)").matches,b.webview=b.webView,b.standalone=b.webView,b.desktop=!(b.ios||b.android)||k,b.desktop&&(b.electron=k,b.macos=$,b.windows=z,b.macos&&(b.os="macos"),b.windows&&(b.os="windows")),b.pixelRatio=t.devicePixelRatio||1,b);function D(i){var a=this.touchEventsData,r=this.params,o=this.touches;if(!this.animating||!r.preventInteractionOnTransition){var l=i;l.originalEvent&&(l=l.originalEvent);var d=s(l.target);if(("wrapper"!==r.touchEventsTarget||d.closest(this.wrapperEl).length)&&(a.isTouchEvent="touchstart"===l.type,(a.isTouchEvent||!("which"in l)||3!==l.which)&&!(!a.isTouchEvent&&"button"in l&&l.button>0||a.isTouched&&a.isMoved)))if(r.noSwiping&&d.closest(r.noSwipingSelector?r.noSwipingSelector:"."+r.noSwipingClass)[0])this.allowClick=!0;else if(!r.swipeHandler||d.closest(r.swipeHandler)[0]){o.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,o.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;var h=o.currentX,p=o.currentY,c=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,u=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!c||!(h<=u||h>=t.screen.width-u)){if(n.extend(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=p,a.touchStartTime=n.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,r.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==l.type){var v=!0;d.is(a.formElements)&&(v=!1),e.activeElement&&s(e.activeElement).is(a.formElements)&&e.activeElement!==d[0]&&e.activeElement.blur();var f=v&&this.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||f)&&l.preventDefault()}this.emit("touchStart",l)}}}}function O(t){var i=this.touchEventsData,a=this.params,r=this.touches,o=this.rtlTranslate,l=t;if(l.originalEvent&&(l=l.originalEvent),i.isTouched){if(!i.isTouchEvent||"mousemove"!==l.type){var d="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),h="touchmove"===l.type?d.pageX:l.pageX,p="touchmove"===l.type?d.pageY:l.pageY;if(l.preventedByNestedSwiper)return r.startX=h,void(r.startY=p);if(!this.allowTouchMove)return this.allowClick=!1,void(i.isTouched&&(n.extend(r,{startX:h,startY:p,currentX:h,currentY:p}),i.touchStartTime=n.now()));if(i.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(this.isVertical()){if(p<r.startY&&this.translate<=this.maxTranslate()||p>r.startY&&this.translate>=this.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(h<r.startX&&this.translate<=this.maxTranslate()||h>r.startX&&this.translate>=this.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&s(l.target).is(i.formElements))return i.isMoved=!0,void(this.allowClick=!1);if(i.allowTouchCallbacks&&this.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){r.currentX=h,r.currentY=p;var c=r.currentX-r.startX,u=r.currentY-r.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(c,2)+Math.pow(u,2))<this.params.threshold)){var v;if(void 0===i.isScrolling)this.isHorizontal()&&r.currentY===r.startY||this.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:c*c+u*u>=25&&(v=180*Math.atan2(Math.abs(u),Math.abs(c))/Math.PI,i.isScrolling=this.isHorizontal()?v>a.touchAngle:90-v>a.touchAngle);if(i.isScrolling&&this.emit("touchMoveOpposite",l),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){this.allowClick=!1,a.cssMode||l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation(),i.isMoved||(a.loop&&this.loopFix(),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!a.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",l)),this.emit("sliderMove",l),i.isMoved=!0;var f=this.isHorizontal()?c:u;r.diff=f,f*=a.touchRatio,o&&(f=-f),this.swipeDirection=f>0?"prev":"next",i.currentTranslate=f+i.startTranslate;var m=!0,g=a.resistanceRatio;if(a.touchReleaseOnEdges&&(g=0),f>0&&i.currentTranslate>this.minTranslate()?(m=!1,a.resistance&&(i.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+i.startTranslate+f,g))):f<0&&i.currentTranslate<this.maxTranslate()&&(m=!1,a.resistance&&(i.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-i.startTranslate-f,g))),m&&(l.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),a.threshold>0){if(!(Math.abs(f)>a.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=this.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}a.followFinger&&!a.cssMode&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),a.freeMode&&(0===i.velocities.length&&i.velocities.push({position:r[this.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:r[this.isHorizontal()?"currentX":"currentY"],time:n.now()})),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}}}}}else i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",l)}function A(e){var t=this,i=t.touchEventsData,s=t.params,a=t.touches,r=t.rtlTranslate,o=t.$wrapperEl,l=t.slidesGrid,d=t.snapGrid,h=e;if(h.originalEvent&&(h=h.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",h),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var p,c=n.now(),u=c-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(h),t.emit("tap click",h),u<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",h)),i.lastClickTime=n.now(),n.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===a.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,p=s.followFinger?r?t.translate:-t.translate:-i.currentTranslate,!s.cssMode)if(s.freeMode){if(p<-t.minTranslate())return void t.slideTo(t.activeIndex);if(p>-t.maxTranslate())return void(t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1));if(s.freeModeMomentum){if(i.velocities.length>1){var v=i.velocities.pop(),f=i.velocities.pop(),m=v.position-f.position,g=v.time-f.time;t.velocity=m/g,t.velocity/=2,Math.abs(t.velocity)<s.freeModeMinimumVelocity&&(t.velocity=0),(g>150||n.now()-v.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;var b=1e3*s.freeModeMomentumRatio,w=t.velocity*b,y=t.translate+w;r&&(y=-y);var x,T,E=!1,S=20*Math.abs(t.velocity)*s.freeModeMomentumBounceRatio;if(y<t.maxTranslate())s.freeModeMomentumBounce?(y+t.maxTranslate()<-S&&(y=t.maxTranslate()-S),x=t.maxTranslate(),E=!0,i.allowMomentumBounce=!0):y=t.maxTranslate(),s.loop&&s.centeredSlides&&(T=!0);else if(y>t.minTranslate())s.freeModeMomentumBounce?(y-t.minTranslate()>S&&(y=t.minTranslate()+S),x=t.minTranslate(),E=!0,i.allowMomentumBounce=!0):y=t.minTranslate(),s.loop&&s.centeredSlides&&(T=!0);else if(s.freeModeSticky){for(var C,M=0;M<d.length;M+=1)if(d[M]>-y){C=M;break}y=-(y=Math.abs(d[C]-y)<Math.abs(d[C-1]-y)||"next"===t.swipeDirection?d[C]:d[C-1])}if(T&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(b=r?Math.abs((-y-t.translate)/t.velocity):Math.abs((y-t.translate)/t.velocity),s.freeModeSticky){var P=Math.abs((r?-y:y)-t.translate),z=t.slidesSizesGrid[t.activeIndex];b=P<z?s.speed:P<2*z?1.5*s.speed:2.5*s.speed}}else if(s.freeModeSticky)return void t.slideToClosest();s.freeModeMomentumBounce&&E?(t.updateProgress(x),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(s.speed),t.setTranslate(x),o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(y),t.setTransition(b),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(y),t.updateActiveIndex(),t.updateSlidesClasses()}else if(s.freeModeSticky)return void t.slideToClosest();(!s.freeModeMomentum||u>=s.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,$=t.slidesSizesGrid[0],L=0;L<l.length;L+=L<s.slidesPerGroupSkip?1:s.slidesPerGroup){var I=L<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==l[L+I]?p>=l[L]&&p<l[L+I]&&(k=L,$=l[L+I]-l[L]):p>=l[L]&&(k=L,$=l[l.length-1]-l[l.length-2])}var D=(p-l[k])/$,O=k<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(u>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(D>=s.longSwipesRatio?t.slideTo(k+O):t.slideTo(k)),"prev"===t.swipeDirection&&(D>1-s.longSwipesRatio?t.slideTo(k+O):t.slideTo(k))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(h.target===t.navigation.nextEl||h.target===t.navigation.prevEl)?h.target===t.navigation.nextEl?t.slideTo(k+O):t.slideTo(k):("next"===t.swipeDirection&&t.slideTo(k+O),"prev"===t.swipeDirection&&t.slideTo(k))}}}function G(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var i=this.allowSlideNext,s=this.allowSlidePrev,a=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=s,this.allowSlideNext=i,this.params.watchOverflow&&a!==this.snapGrid&&this.checkOverflow()}}function H(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function B(){var e=this.wrapperEl;this.previousTranslate=this.translate,this.translate=this.isHorizontal()?-e.scrollLeft:-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var t=this.maxTranslate()-this.minTranslate();(0===t?0:(this.translate-this.minTranslate())/t)!==this.progress&&this.updateProgress(this.translate),this.emit("setTranslate",this.translate,!1)}var N=!1;function X(){}var V={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},Y={update:h,translate:p,transition:c,slide:u,loop:v,grabCursor:f,manipulation:L,events:{attachEvents:function(){var t=this.params,i=this.touchEvents,s=this.el,a=this.wrapperEl;this.onTouchStart=D.bind(this),this.onTouchMove=O.bind(this),this.onTouchEnd=A.bind(this),t.cssMode&&(this.onScroll=B.bind(this)),this.onClick=H.bind(this);var r=!!t.nested;if(!o.touch&&o.pointerEvents)s.addEventListener(i.start,this.onTouchStart,!1),e.addEventListener(i.move,this.onTouchMove,r),e.addEventListener(i.end,this.onTouchEnd,!1);else{if(o.touch){var n=!("touchstart"!==i.start||!o.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(i.start,this.onTouchStart,n),s.addEventListener(i.move,this.onTouchMove,o.passiveListener?{passive:!1,capture:r}:r),s.addEventListener(i.end,this.onTouchEnd,n),i.cancel&&s.addEventListener(i.cancel,this.onTouchEnd,n),N||(e.addEventListener("touchstart",X),N=!0)}(t.simulateTouch&&!I.ios&&!I.android||t.simulateTouch&&!o.touch&&I.ios)&&(s.addEventListener("mousedown",this.onTouchStart,!1),e.addEventListener("mousemove",this.onTouchMove,r),e.addEventListener("mouseup",this.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&s.addEventListener("click",this.onClick,!0),t.cssMode&&a.addEventListener("scroll",this.onScroll),t.updateOnWindowResize?this.on(I.ios||I.android?"resize orientationchange observerUpdate":"resize observerUpdate",G,!0):this.on("observerUpdate",G,!0)},detachEvents:function(){var t=this.params,i=this.touchEvents,s=this.el,a=this.wrapperEl,r=!!t.nested;if(!o.touch&&o.pointerEvents)s.removeEventListener(i.start,this.onTouchStart,!1),e.removeEventListener(i.move,this.onTouchMove,r),e.removeEventListener(i.end,this.onTouchEnd,!1);else{if(o.touch){var n=!("onTouchStart"!==i.start||!o.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};s.removeEventListener(i.start,this.onTouchStart,n),s.removeEventListener(i.move,this.onTouchMove,r),s.removeEventListener(i.end,this.onTouchEnd,n),i.cancel&&s.removeEventListener(i.cancel,this.onTouchEnd,n)}(t.simulateTouch&&!I.ios&&!I.android||t.simulateTouch&&!o.touch&&I.ios)&&(s.removeEventListener("mousedown",this.onTouchStart,!1),e.removeEventListener("mousemove",this.onTouchMove,r),e.removeEventListener("mouseup",this.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&s.removeEventListener("click",this.onClick,!0),t.cssMode&&a.removeEventListener("scroll",this.onScroll),this.off(I.ios||I.android?"resize orientationchange observerUpdate":"resize observerUpdate",G)}},breakpoints:{setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,i=this.loopedSlides;void 0===i&&(i=0);var s=this.params,a=this.$el,r=s.breakpoints;if(r&&(!r||0!==Object.keys(r).length)){var o=this.getBreakpoint(r);if(o&&this.currentBreakpoint!==o){var l=o in r?r[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var d=l||this.originalParams,h=s.slidesPerColumn>1,p=d.slidesPerColumn>1;h&&!p?a.removeClass(s.containerModifierClass+"multirow "+s.containerModifierClass+"multirow-column"):!h&&p&&(a.addClass(s.containerModifierClass+"multirow"),"column"===d.slidesPerColumnFill&&a.addClass(s.containerModifierClass+"multirow-column"));var c=d.direction&&d.direction!==s.direction,u=s.loop&&(d.slidesPerView!==s.slidesPerView||c);c&&t&&this.changeDirection(),n.extend(this.params,d),n.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=o,u&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-i+this.loopedSlides,0,!1)),this.emit("breakpoint",d)}}},getBreakpoint:function(e){if(e){var i=!1,s=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var i=parseFloat(e.substr(1));return{value:t.innerHeight*i,point:e}}return{value:e,point:e}}));s.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var a=0;a<s.length;a+=1){var r=s[a],n=r.point;r.value<=t.innerWidth&&(i=n)}return i||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.params,t=this.isLocked,i=this.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&i?this.isLocked=i<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,i=this.rtl,s=this.$el,a=[];a.push("initialized"),a.push(t.direction),t.freeMode&&a.push("free-mode"),t.autoHeight&&a.push("autoheight"),i&&a.push("rtl"),t.slidesPerColumn>1&&(a.push("multirow"),"column"===t.slidesPerColumnFill&&a.push("multirow-column")),I.android&&a.push("android"),I.ios&&a.push("ios"),t.cssMode&&a.push("css-mode"),a.forEach((function(i){e.push(t.containerModifierClass+i)})),s.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,i,s,a,r,n){var o;function l(){n&&n()}e.complete&&r?l():i?((o=new t.Image).onload=l,o.onerror=l,a&&(o.sizes=a),s&&(o.srcset=s),i&&(o.src=i)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var s=e.imagesToLoad[i];e.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,t)}}}},F={},W=function(e){function t(){for(var i,a,r,l=[],d=arguments.length;d--;)l[d]=arguments[d];1===l.length&&l[0].constructor&&l[0].constructor===Object?r=l[0]:(a=(i=l)[0],r=i[1]),r||(r={}),r=n.extend({},r),a&&!r.el&&(r.el=a),e.call(this,r),Object.keys(Y).forEach((function(e){Object.keys(Y[e]).forEach((function(i){t.prototype[i]||(t.prototype[i]=Y[e][i])}))}));var h=this;void 0===h.modules&&(h.modules={}),Object.keys(h.modules).forEach((function(e){var t=h.modules[e];if(t.params){var i=Object.keys(t.params)[0],s=t.params[i];if("object"!=typeof s||null===s)return;if(!(i in r&&"enabled"in s))return;!0===r[i]&&(r[i]={enabled:!0}),"object"!=typeof r[i]||"enabled"in r[i]||(r[i].enabled=!0),r[i]||(r[i]={enabled:!1})}}));var p=n.extend({},V);h.useModulesParams(p),h.params=n.extend({},p,F,r),h.originalParams=n.extend({},h.params),h.passedParams=n.extend({},r),h.$=s;var c=s(h.params.el);if(a=c[0]){if(c.length>1){var u=[];return c.each((function(e,i){var s=n.extend({},r,{el:i});u.push(new t(s))})),u}var v,f,m;return a.swiper=h,c.data("swiper",h),a&&a.shadowRoot&&a.shadowRoot.querySelector?(v=s(a.shadowRoot.querySelector("."+h.params.wrapperClass))).children=function(e){return c.children(e)}:v=c.children("."+h.params.wrapperClass),n.extend(h,{$el:c,el:a,$wrapperEl:v,wrapperEl:v[0],classNames:[],slides:s(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===h.params.direction},isVertical:function(){return"vertical"===h.params.direction},rtl:"rtl"===a.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===h.params.direction&&("rtl"===a.dir.toLowerCase()||"rtl"===c.css("direction")),wrongRTL:"-webkit-box"===v.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:h.params.allowSlideNext,allowSlidePrev:h.params.allowSlidePrev,touchEvents:(f=["touchstart","touchmove","touchend","touchcancel"],m=["mousedown","mousemove","mouseup"],o.pointerEvents&&(m=["pointerdown","pointermove","pointerup"]),h.touchEventsTouch={start:f[0],move:f[1],end:f[2],cancel:f[3]},h.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},o.touch||!h.params.simulateTouch?h.touchEventsTouch:h.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:n.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:h.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),h.useModules(),h.params.init&&h.init(),h}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,i=this.slidesGrid,s=this.size,a=this.activeIndex,r=1;if(e.centeredSlides){for(var n,o=t[a].swiperSlideSize,l=a+1;l<t.length;l+=1)t[l]&&!n&&(r+=1,(o+=t[l].swiperSlideSize)>s&&(n=!0));for(var d=a-1;d>=0;d-=1)t[d]&&!n&&(r+=1,(o+=t[d].swiperSlideSize)>s&&(n=!0))}else for(var h=a+1;h<t.length;h+=1)i[h]-i[a]<s&&(r+=1);return r},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,i=e.params;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(s(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||s(),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function s(){var t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e?this:(this.$el.removeClass(""+this.params.containerModifierClass+i).addClass(""+this.params.containerModifierClass+e),this.params.direction=e,this.slides.each((function(t,i){"vertical"===e?i.style.width="":i.style.height=""})),this.emit("changeDirection"),t&&this.update(),this)},t.prototype.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,s=i.params,a=i.$el,r=i.$wrapperEl,o=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),a.removeAttr("style"),r.removeAttr("style"),o&&o.length&&o.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),n.deleteProps(i)),i.destroyed=!0,null)},t.extendDefaults=function(e){n.extend(F,e)},i.extendedDefaults.get=function(){return F},i.defaults.get=function(){return V},i.Class.get=function(){return e},i.$.get=function(){return s},Object.defineProperties(t,i),t}(l),R={name:"device",proto:{device:I},static:{device:I}},q={name:"support",proto:{support:o},static:{support:o}},j={isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:function(){var e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)},K={name:"browser",proto:{browser:j},static:{browser:j}},U={name:"resize",create:function(){var e=this;n.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){t.addEventListener("resize",this.resize.resizeHandler),t.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){t.removeEventListener("resize",this.resize.resizeHandler),t.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},_={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,i){void 0===i&&(i={});var s=this,a=new(0,_.func)((function(e){if(1!==e.length){var i=function(){s.emit("observerUpdate",e[0])};t.requestAnimationFrame?t.requestAnimationFrame(i):t.setTimeout(i,0)}else s.emit("observerUpdate",e[0])}));a.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),s.observer.observers.push(a)},init:function(){if(o.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},Z={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){n.extend(this,{observer:{init:_.init.bind(this),attach:_.attach.bind(this),destroy:_.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},Q={update:function(e){var t=this,i=t.params,s=i.slidesPerView,a=i.slidesPerGroup,r=i.centeredSlides,o=t.params.virtual,l=o.addSlidesBefore,d=o.addSlidesAfter,h=t.virtual,p=h.from,c=h.to,u=h.slides,v=h.slidesGrid,f=h.renderSlide,m=h.offset;t.updateActiveIndex();var g,b,w,y=t.activeIndex||0;g=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",r?(b=Math.floor(s/2)+a+l,w=Math.floor(s/2)+a+d):(b=s+(a-1)+l,w=a+d);var x=Math.max((y||0)-w,0),T=Math.min((y||0)+b,u.length-1),E=(t.slidesGrid[x]||0)-(t.slidesGrid[0]||0);function S(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(n.extend(t.virtual,{from:x,to:T,offset:E,slidesGrid:t.slidesGrid}),p===x&&c===T&&!e)return t.slidesGrid!==v&&E!==m&&t.slides.css(g,E+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:E,from:x,to:T,slides:function(){for(var e=[],t=x;t<=T;t+=1)e.push(u[t]);return e}()}),void S();var C=[],M=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var P=p;P<=c;P+=1)(P<x||P>T)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+P+'"]').remove();for(var z=0;z<u.length;z+=1)z>=x&&z<=T&&(void 0===c||e?M.push(z):(z>c&&M.push(z),z<p&&C.push(z)));M.forEach((function(e){t.$wrapperEl.append(f(u[e],e))})),C.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(f(u[e],e))})),t.$wrapperEl.children(".swiper-slide").css(g,E+"px"),S()},renderSlide:function(e,t){var i=this.params.virtual;if(i.cache&&this.virtual.cache[t])return this.virtual.cache[t];var a=i.renderSlide?s(i.renderSlide.call(this,e,t)):s('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",t),i.cache&&(this.virtual.cache[t]=a),a},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var t=this.activeIndex,i=t+1,s=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&this.virtual.slides.unshift(e[a]);i=t+e.length,s=e.length}else this.virtual.slides.unshift(e);if(this.params.virtual.cache){var r=this.virtual.cache,n={};Object.keys(r).forEach((function(e){var t=r[e],i=t.attr("data-swiper-slide-index");i&&t.attr("data-swiper-slide-index",parseInt(i,10)+1),n[parseInt(e,10)+s]=t})),this.virtual.cache=n}this.virtual.update(!0),this.slideTo(i,0)},removeSlide:function(e){if(null!=e){var t=this.activeIndex;if(Array.isArray(e))for(var i=e.length-1;i>=0;i-=1)this.virtual.slides.splice(e[i],1),this.params.virtual.cache&&delete this.virtual.cache[e[i]],e[i]<t&&(t-=1),t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},J={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){n.extend(this,{virtual:{update:Q.update.bind(this),appendSlide:Q.appendSlide.bind(this),prependSlide:Q.prependSlide.bind(this),removeSlide:Q.removeSlide.bind(this),removeAllSlides:Q.removeAllSlides.bind(this),renderSlide:Q.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};n.extend(this.params,e),n.extend(this.originalParams,e),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},ee={handle:function(i){var s=this.rtlTranslate,a=i;a.originalEvent&&(a=a.originalEvent);var r=a.keyCode||a.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===r||this.isVertical()&&40===r||34===r))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===r||this.isVertical()&&38===r||33===r))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||e.activeElement&&e.activeElement.nodeName&&("input"===e.activeElement.nodeName.toLowerCase()||"textarea"===e.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var n=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var o=t.innerWidth,l=t.innerHeight,d=this.$el.offset();s&&(d.left-=this.$el[0].scrollLeft);for(var h=[[d.left,d.top],[d.left+this.width,d.top],[d.left,d.top+this.height],[d.left+this.width,d.top+this.height]],p=0;p<h.length;p+=1){var c=h[p];c[0]>=0&&c[0]<=o&&c[1]>=0&&c[1]<=l&&(n=!0)}if(!n)return}this.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(a.preventDefault?a.preventDefault():a.returnValue=!1),(34!==r&&39!==r||s)&&(33!==r&&37!==r||!s)||this.slideNext(),(33!==r&&37!==r||s)&&(34!==r&&39!==r||!s)||this.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(a.preventDefault?a.preventDefault():a.returnValue=!1),34!==r&&40!==r||this.slideNext(),33!==r&&38!==r||this.slidePrev()),this.emit("keyPress",r)}},enable:function(){this.keyboard.enabled||(s(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(s(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},te={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){n.extend(this,{keyboard:{enabled:!1,enable:ee.enable.bind(this),disable:ee.disable.bind(this),handle:ee.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var ie={lastScrollTime:n.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t="onwheel"in e;if(!t){var i=e.createElement("div");i.setAttribute("onwheel","return;"),t="function"==typeof i.onwheel}return!t&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(t=e.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel"},normalize:function(e){var t=0,i=0,s=0,a=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,a=10*i,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=a,a=0),(s||a)&&e.deltaMode&&(1===e.deltaMode?(s*=40,a*=40):(s*=800,a*=800)),s&&!t&&(t=s<1?-1:1),a&&!i&&(i=a<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:a}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,a=i.params.mousewheel;i.params.cssMode&&t.preventDefault();var r=i.$el;if("container"!==i.params.mousewheel.eventsTarged&&(r=s(i.params.mousewheel.eventsTarged)),!i.mouseEntered&&!r[0].contains(t.target)&&!a.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var o=0,l=i.rtlTranslate?-1:1,d=ie.normalize(t);if(a.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(d.pixelX)>Math.abs(d.pixelY)))return!0;o=d.pixelX*l}else{if(!(Math.abs(d.pixelY)>Math.abs(d.pixelX)))return!0;o=d.pixelY}else o=Math.abs(d.pixelX)>Math.abs(d.pixelY)?-d.pixelX*l:-d.pixelY;if(0===o)return!0;if(a.invert&&(o=-o),i.params.freeMode){var h={time:n.now(),delta:Math.abs(o),direction:Math.sign(o)},p=i.mousewheel.lastEventBeforeSnap,c=p&&h.time<p.time+500&&h.delta<=p.delta&&h.direction===p.direction;if(!c){i.mousewheel.lastEventBeforeSnap=void 0,i.params.loop&&i.loopFix();var u=i.getTranslate()+o*a.sensitivity,v=i.isBeginning,f=i.isEnd;if(u>=i.minTranslate()&&(u=i.minTranslate()),u<=i.maxTranslate()&&(u=i.maxTranslate()),i.setTransition(0),i.setTranslate(u),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!v&&i.isBeginning||!f&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var m=i.mousewheel.recentWheelEvents;m.length>=15&&m.shift();var g=m.length?m[m.length-1]:void 0,b=m[0];if(m.push(h),g&&(h.delta>g.delta||h.direction!==g.direction))m.splice(0);else if(m.length>=15&&h.time-b.time<500&&b.delta-h.delta>=1&&h.delta<=6){var w=o>0?.8:.2;i.mousewheel.lastEventBeforeSnap=h,m.splice(0),i.mousewheel.timeout=n.nextTick((function(){i.slideToClosest(i.params.speed,!0,void 0,w)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=n.nextTick((function(){i.mousewheel.lastEventBeforeSnap=h,m.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)}),500))}if(c||i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),u===i.minTranslate()||u===i.maxTranslate())return!0}}else{var y={time:n.now(),delta:Math.abs(o),direction:Math.sign(o),raw:e},x=i.mousewheel.recentWheelEvents;x.length>=2&&x.shift();var T=x.length?x[x.length-1]:void 0;if(x.push(y),T?(y.direction!==T.direction||y.delta>T.delta)&&i.mousewheel.animateSlider(y):i.mousewheel.animateSlider(y),i.mousewheel.releaseScroll(y))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){return e.delta>=6&&n.now()-this.mousewheel.lastScrollTime<60||(e.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",e.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",e.raw)),this.mousewheel.lastScrollTime=(new t.Date).getTime(),!1)},releaseScroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isEnd&&!this.params.loop&&t.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&t.releaseOnEdges)return!0;return!1},enable:function(){var e=ie.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=s(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=ie.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=s(this.params.mousewheel.eventsTarged)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},se={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,i=t.$nextEl,s=t.$prevEl;s&&s.length>0&&(this.isBeginning?s.addClass(e.disabledClass):s.removeClass(e.disabledClass),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=s(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&e.length>1&&1===this.$el.find(i.nextEl).length&&(e=this.$el.find(i.nextEl))),i.prevEl&&(t=s(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&t.length>1&&1===this.$el.find(i.prevEl).length&&(t=this.$el.find(i.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),n.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},ae={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,a=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,r=this.pagination.$el,n=this.params.loop?Math.ceil((a-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>a-1-2*this.loopedSlides&&(i-=a-2*this.loopedSlides),i>n-1&&(i-=n),i<0&&"bullets"!==this.params.paginationType&&(i=n+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,l,d,h=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=h.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=i-this.pagination.dynamicBulletIndex,d=((l=o+(Math.min(h.length,t.dynamicMainBullets)-1))+o)/2),h.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),r.length>1)h.each((function(e,a){var r=s(a),n=r.index();n===i&&r.addClass(t.bulletActiveClass),t.dynamicBullets&&(n>=o&&n<=l&&r.addClass(t.bulletActiveClass+"-main"),n===o&&r.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),n===l&&r.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))}));else{var p=h.eq(i),c=p.index();if(p.addClass(t.bulletActiveClass),t.dynamicBullets){for(var u=h.eq(o),v=h.eq(l),f=o;f<=l;f+=1)h.eq(f).addClass(t.bulletActiveClass+"-main");if(this.params.loop)if(c>=h.length-t.dynamicMainBullets){for(var m=t.dynamicMainBullets;m>=0;m-=1)h.eq(h.length-m).addClass(t.bulletActiveClass+"-main");h.eq(h.length-t.dynamicMainBullets-1).addClass(t.bulletActiveClass+"-prev")}else u.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),v.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next");else u.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),v.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}}if(t.dynamicBullets){var g=Math.min(h.length,t.dynamicMainBullets+4),b=(this.pagination.bulletSize*g-this.pagination.bulletSize)/2-d*this.pagination.bulletSize,w=e?"right":"left";h.css(this.isHorizontal()?w:"top",b+"px")}}if("fraction"===t.type&&(r.find("."+t.currentClass).text(t.formatFractionCurrent(i+1)),r.find("."+t.totalClass).text(t.formatFractionTotal(n))),"progressbar"===t.type){var y;y=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var x=(i+1)/n,T=1,E=1;"horizontal"===y?T=x:E=x,r.find("."+t.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+T+") scaleY("+E+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(r.html(t.renderCustom(this,i+1,n)),this.emit("paginationRender",this,r[0])):this.emit("paginationUpdate",this,r[0]),r[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===e.type){for(var a=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,r=0;r<a;r+=1)e.renderBullet?s+=e.renderBullet.call(this,r,e.bulletClass):s+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";i.html(s),this.pagination.bullets=i.find("."+e.bulletClass)}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',i.html(s)),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',i.html(s)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=s(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&1===e.$el.find(t.el).length&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,(function(t){t.preventDefault();var i=s(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),n.extend(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}}},re={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,i=this.progress,s=e.dragSize,a=e.trackSize,r=e.$dragEl,n=e.$el,o=this.params.scrollbar,l=s,d=(a-s)*i;t?(d=-d)>0?(l=s-d,d=0):-d+s>a&&(l=a+d):d<0?(l=s+d,d=0):d+s>a&&(l=a-d),this.isHorizontal()?(r.transform("translate3d("+d+"px, 0, 0)"),r[0].style.width=l+"px"):(r.transform("translate3d(0px, "+d+"px, 0)"),r[0].style.height=l+"px"),o.hide&&(clearTimeout(this.scrollbar.timeout),n[0].style.opacity=1,this.scrollbar.timeout=setTimeout((function(){n[0].style.opacity=0,n.transition(400)}),1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,i=e.$el;t[0].style.width="",t[0].style.height="";var s,a=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,r=this.size/this.virtualSize,o=r*(a/this.size);s="auto"===this.params.scrollbar.dragSize?a*r:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width=s+"px":t[0].style.height=s+"px",i[0].style.display=r>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),n.extend(e,{trackSize:a,divider:r,moveDivider:o,dragSize:s}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,i=this.scrollbar,s=this.rtlTranslate,a=i.$el,r=i.dragSize,n=i.trackSize,o=i.dragStartPos;t=(i.getPointerPosition(e)-a.offset()[this.isHorizontal()?"left":"top"]-(null!==o?o:r/2))/(n-r),t=Math.max(Math.min(t,1),0),s&&(t=1-t);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,a=i.$el,r=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===r[0]||e.target===r?i.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),r.transition(100),i.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),a.transition(0),t.hide&&a.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,i=this.$wrapperEl,s=t.$el,a=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),i.transition(0),s.transition(0),a.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperEl,a=i.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),s.transition("")),t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=n.nextTick((function(){a.css("opacity",0),a.transition(400)}),1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,a=this.params,r=t.$el[0],n=!(!o.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};o.touch?(r.addEventListener(i.start,this.scrollbar.onDragStart,n),r.addEventListener(i.move,this.scrollbar.onDragMove,n),r.addEventListener(i.end,this.scrollbar.onDragEnd,l)):(r.addEventListener(s.start,this.scrollbar.onDragStart,n),e.addEventListener(s.move,this.scrollbar.onDragMove,n),e.addEventListener(s.end,this.scrollbar.onDragEnd,l))}},disableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,i=this.touchEventsTouch,s=this.touchEventsDesktop,a=this.params,r=t.$el[0],n=!(!o.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},l=!(!o.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};o.touch?(r.removeEventListener(i.start,this.scrollbar.onDragStart,n),r.removeEventListener(i.move,this.scrollbar.onDragMove,n),r.removeEventListener(i.end,this.scrollbar.onDragEnd,l)):(r.removeEventListener(s.start,this.scrollbar.onDragStart,n),e.removeEventListener(s.move,this.scrollbar.onDragMove,n),e.removeEventListener(s.end,this.scrollbar.onDragEnd,l))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,i=this.params.scrollbar,a=s(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&a.length>1&&1===t.find(i.el).length&&(a=t.find(i.el));var r=a.find("."+this.params.scrollbar.dragClass);0===r.length&&(r=s('<div class="'+this.params.scrollbar.dragClass+'"></div>'),a.append(r)),n.extend(e,{$el:a,el:a[0],$dragEl:r,dragEl:r[0]}),i.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},ne={setTransform:function(e,t){var i=this.rtl,a=s(e),r=i?-1:1,n=a.attr("data-swiper-parallax")||"0",o=a.attr("data-swiper-parallax-x"),l=a.attr("data-swiper-parallax-y"),d=a.attr("data-swiper-parallax-scale"),h=a.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=n,l="0"):(l=n,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*t*r+"%":o*t*r+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",null!=h){var p=h-(h-1)*(1-Math.abs(t));a[0].style.opacity=p}if(null==d)a.transform("translate3d("+o+", "+l+", 0px)");else{var c=d-(d-1)*(1-Math.abs(t));a.transform("translate3d("+o+", "+l+", 0px) scale("+c+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,a=e.progress,r=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,a)})),i.each((function(t,i){var n=i.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(n+=Math.ceil(t/2)-a*(r.length-1)),n=Math.min(Math.max(n,-1),1),s(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,n)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){var a=s(i),r=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),a.transition(r)}))}},oe={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,a=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(s-t,2)+Math.pow(a-i,2))},onGestureStart:function(e){var t=this.params.zoom,i=this.zoom,a=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!o.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,a.scaleStart=oe.getDistanceBetweenTouches(e)}a.$slideEl&&a.$slideEl.length||(a.$slideEl=s(e.target).closest("."+this.params.slideClass),0===a.$slideEl.length&&(a.$slideEl=this.slides.eq(this.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),a.$imageWrapEl=a.$imageEl.parent("."+t.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl.transition(0),this.zoom.isScaling=!0):a.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(!o.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;i.fakeGestureMoved=!0,s.scaleMove=oe.getDistanceBetweenTouches(e)}s.$imageEl&&0!==s.$imageEl.length&&(o.gestures?i.scale=e.scale*i.currentScale:i.scale=s.scaleMove/s.scaleStart*i.currentScale,i.scale>s.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scale<t.minRatio&&(i.scale=t.minRatio+1-Math.pow(t.minRatio-i.scale+1,.5)),s.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(!o.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!I.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}s.$imageEl&&0!==s.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,s.maxRatio),t.minRatio),s.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(s.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,i=t.gesture,s=t.image;i.$imageEl&&0!==i.$imageEl.length&&(s.isTouched||(I.android&&e.preventDefault(),s.isTouched=!0,s.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,i=t.gesture,s=t.image,a=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(this.allowClick=!1,s.isTouched&&i.$slideEl)){s.isMoved||(s.width=i.$imageEl[0].offsetWidth,s.height=i.$imageEl[0].offsetHeight,s.startX=n.getTranslate(i.$imageWrapEl[0],"x")||0,s.startY=n.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),this.rtl&&(s.startX=-s.startX,s.startY=-s.startY));var r=s.width*t.scale,o=s.height*t.scale;if(!(r<i.slideWidth&&o<i.slideHeight)){if(s.minX=Math.min(i.slideWidth/2-r/2,0),s.maxX=-s.minX,s.minY=Math.min(i.slideHeight/2-o/2,0),s.maxY=-s.minY,s.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!s.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(s.minX)===Math.floor(s.startX)&&s.touchesCurrent.x<s.touchesStart.x||Math.floor(s.maxX)===Math.floor(s.startX)&&s.touchesCurrent.x>s.touchesStart.x))return void(s.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.y<s.touchesStart.y||Math.floor(s.maxY)===Math.floor(s.startY)&&s.touchesCurrent.y>s.touchesStart.y))return void(s.isTouched=!1)}e.preventDefault(),e.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentX<s.minX&&(s.currentX=s.minX+1-Math.pow(s.minX-s.currentX+1,.8)),s.currentX>s.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentY<s.minY&&(s.currentY=s.minY+1-Math.pow(s.minY-s.currentY+1,.8)),s.currentY>s.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),a.prevPositionX||(a.prevPositionX=s.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=s.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(s.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(s.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(s.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(s.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=s.touchesCurrent.x,a.prevPositionY=s.touchesCurrent.y,a.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,s=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var a=300,r=300,n=s.x*a,o=i.currentX+n,l=s.y*r,d=i.currentY+l;0!==s.x&&(a=Math.abs((o-i.currentX)/s.x)),0!==s.y&&(r=Math.abs((d-i.currentY)/s.y));var h=Math.max(a,r);i.currentX=o,i.currentY=d;var p=i.width*e.scale,c=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-p/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-c/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.$imageWrapEl.transition(h).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,s,a,r,n,o,l,d,h,p,c,u,v,f,m,g=this.zoom,b=this.params.zoom,w=g.gesture,y=g.image;(w.$slideEl||(w.$slideEl=this.slides.eq(this.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),w.$imageWrapEl=w.$imageEl.parent("."+b.containerClass)),w.$imageEl&&0!==w.$imageEl.length)&&(w.$slideEl.addClass(""+b.zoomedSlideClass),void 0===y.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,i="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=y.touchesStart.x,i=y.touchesStart.y),g.scale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,g.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,e?(f=w.$slideEl[0].offsetWidth,m=w.$slideEl[0].offsetHeight,s=w.$slideEl.offset().left+f/2-t,a=w.$slideEl.offset().top+m/2-i,o=w.$imageEl[0].offsetWidth,l=w.$imageEl[0].offsetHeight,d=o*g.scale,h=l*g.scale,u=-(p=Math.min(f/2-d/2,0)),v=-(c=Math.min(m/2-h/2,0)),(r=s*g.scale)<p&&(r=p),r>u&&(r=u),(n=a*g.scale)<c&&(n=c),n>v&&(n=v)):(r=0,n=0),w.$imageWrapEl.transition(300).transform("translate3d("+r+"px, "+n+"px,0)"),w.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+g.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,i=e.gesture;i.$slideEl||(i.$slideEl=this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+t.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(e.scale=1,e.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+t.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0},s="."+this.params.slideClass;o.gestures?(this.$wrapperEl.on("gesturestart",s,e.onGestureStart,t),this.$wrapperEl.on("gesturechange",s,e.onGestureChange,t),this.$wrapperEl.on("gestureend",s,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,s,e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,s,e.onGestureChange,i),this.$wrapperEl.on(this.touchEvents.end,s,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,s,e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove,i)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!o.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1},i=!o.passiveListener||{passive:!1,capture:!0},s="."+this.params.slideClass;o.gestures?(this.$wrapperEl.off("gesturestart",s,e.onGestureStart,t),this.$wrapperEl.off("gesturechange",s,e.onGestureChange,t),this.$wrapperEl.off("gestureend",s,e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,s,e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,s,e.onGestureChange,i),this.$wrapperEl.off(this.touchEvents.end,s,e.onGestureEnd,t),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,s,e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove,i)}}},le={loadInSlide:function(e,t){void 0===t&&(t=!0);var i=this,a=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),n=r.find("."+a.elementClass+":not(."+a.loadedClass+"):not(."+a.loadingClass+")");!r.hasClass(a.elementClass)||r.hasClass(a.loadedClass)||r.hasClass(a.loadingClass)||(n=n.add(r[0])),0!==n.length&&n.each((function(e,n){var o=s(n);o.addClass(a.loadingClass);var l=o.attr("data-background"),d=o.attr("data-src"),h=o.attr("data-srcset"),p=o.attr("data-sizes");i.loadImage(o[0],d||l,h,p,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(h&&(o.attr("srcset",h),o.removeAttr("data-srcset")),p&&(o.attr("sizes",p),o.removeAttr("data-sizes")),d&&(o.attr("src",d),o.removeAttr("data-src"))),o.addClass(a.loadedClass).removeClass(a.loadingClass),r.find("."+a.preloaderClass).remove(),i.params.loop&&t){var e=r.attr("data-swiper-slide-index");if(r.hasClass(i.params.slideDuplicateClass)){var s=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(s.index(),!1)}else{var n=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(n.index(),!1)}}i.emit("lazyImageReady",r[0],o[0]),i.params.autoHeight&&i.updateAutoHeight()}})),i.emit("lazyImageLoad",r[0],o[0])}))}},load:function(){var e=this,t=e.$wrapperEl,i=e.params,a=e.slides,r=e.activeIndex,n=e.virtual&&i.virtual.enabled,o=i.lazy,l=i.slidesPerView;function d(e){if(n){if(t.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(a[e])return!0;return!1}function h(e){return n?s(e).attr("data-swiper-slide-index"):s(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+i.slideVisibleClass).each((function(t,i){var a=n?s(i).attr("data-swiper-slide-index"):s(i).index();e.lazy.loadInSlide(a)}));else if(l>1)for(var p=r;p<r+l;p+=1)d(p)&&e.lazy.loadInSlide(p);else e.lazy.loadInSlide(r);if(o.loadPrevNext)if(l>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var c=o.loadPrevNextAmount,u=l,v=Math.min(r+u+Math.max(c,u),a.length),f=Math.max(r-Math.max(u,c),0),m=r+l;m<v;m+=1)d(m)&&e.lazy.loadInSlide(m);for(var g=f;g<r;g+=1)d(g)&&e.lazy.loadInSlide(g)}else{var b=t.children("."+i.slideNextClass);b.length>0&&e.lazy.loadInSlide(h(b));var w=t.children("."+i.slidePrevClass);w.length>0&&e.lazy.loadInSlide(h(w))}}},de={LinearSpline:function(e,t){var i,s,a,r,n,o=function(e,t){for(s=-1,i=e.length;i-s>1;)e[a=i+s>>1]<=t?s=a:i=a;return i};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=o(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new de.LinearSpline(this.slidesGrid,e.slidesGrid):new de.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,s,a=this,r=a.controller.control;function n(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),s=-a.controller.spline.interpolate(-t)),s&&"container"!==a.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),s=(t-a.minTranslate())*i+e.minTranslate()),a.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,a),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(var o=0;o<r.length;o+=1)r[o]!==t&&r[o]instanceof W&&n(r[o]);else r instanceof W&&t!==r&&n(r)},setTransition:function(e,t){var i,s=this,a=s.controller.control;function r(t){t.setTransition(e,s),0!==e&&(t.transitionStart(),t.params.autoHeight&&n.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){a&&(t.params.loop&&"slide"===s.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(a))for(i=0;i<a.length;i+=1)a[i]!==t&&a[i]instanceof W&&r(a[i]);else a instanceof W&&t!==a&&r(a)}},he={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var i=s(e.target);this.navigation&&this.navigation.$nextEl&&i.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&i.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&i.is("."+this.params.pagination.bulletClass)&&i[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop&&this.navigation){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;i&&i.length>0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),t&&t.length>0&&(this.isEnd?this.a11y.disableEl(t):this.a11y.enableEl(t))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(i,a){var r=s(a);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/{{index}}/,r.index()+1))}))},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},pe={init:function(){if(this.params.history){if(!t.history||!t.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var e=this.history;e.initialized=!0,e.paths=pe.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||t.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||t.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=pe.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),i=e.length;return{key:e[i-2],value:e[i-1]}},setHistory:function(e,i){if(this.history.initialized&&this.params.history.enabled){var s=this.slides.eq(i),a=pe.slugify(s.attr("data-history"));t.location.pathname.includes(e)||(a=e+"/"+a);var r=t.history.state;r&&r.value===a||(this.params.history.replaceState?t.history.replaceState({value:a},null,a):t.history.pushState({value:a},null,a))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){if(t)for(var s=0,a=this.slides.length;s<a;s+=1){var r=this.slides.eq(s);if(pe.slugify(r.attr("data-history"))===t&&!r.hasClass(this.params.slideDuplicateClass)){var n=r.index();this.slideTo(n,e,i)}}else this.slideTo(0,e,i)}},ce={onHashCange:function(){var t=e.location.hash.replace("#","");if(t!==this.slides.eq(this.activeIndex).attr("data-hash")){var i=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===i)return;this.slideTo(i)}},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||"");else{var i=this.slides.eq(this.activeIndex),s=i.attr("data-hash")||i.attr("data-history");e.location.hash=s||""}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var i=e.location.hash.replace("#","");if(i)for(var a=0,r=this.slides.length;a<r;a+=1){var n=this.slides.eq(a);if((n.attr("data-hash")||n.attr("data-history"))===i&&!n.hasClass(this.params.slideDuplicateClass)){var o=n.index();this.slideTo(o,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&s(t).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&s(t).off("hashchange",this.hashNavigation.onHashCange)}},ue={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=n.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()}),i)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},ve={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var i=this.slides.eq(t),s=-i[0].swiperSlideOffset;this.params.virtualTranslate||(s-=this.translate);var a=0;this.isHorizontal()||(a=s,s=0);var r=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:r}).transform("translate3d("+s+"px, "+a+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,s=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var a=!1;i.transitionEnd((function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)s.trigger(e[i])}}))}}},fe={setTranslate:function(){var e,t=this.$el,i=this.$wrapperEl,a=this.slides,r=this.width,n=this.height,o=this.rtlTranslate,l=this.size,d=this.params.cubeEffect,h=this.isHorizontal(),p=this.virtual&&this.params.virtual.enabled,c=0;d.shadow&&(h?(0===(e=i.find(".swiper-cube-shadow")).length&&(e=s('<div class="swiper-cube-shadow"></div>'),i.append(e)),e.css({height:r+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=s('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var u=0;u<a.length;u+=1){var v=a.eq(u),f=u;p&&(f=parseInt(v.attr("data-swiper-slide-index"),10));var m=90*f,g=Math.floor(m/360);o&&(m=-m,g=Math.floor(-m/360));var b=Math.max(Math.min(v[0].progress,1),-1),w=0,y=0,x=0;f%4==0?(w=4*-g*l,x=0):(f-1)%4==0?(w=0,x=4*-g*l):(f-2)%4==0?(w=l+4*g*l,x=l):(f-3)%4==0&&(w=-l,x=3*l+4*l*g),o&&(w=-w),h||(y=w,w=0);var T="rotateX("+(h?0:-m)+"deg) rotateY("+(h?m:0)+"deg) translate3d("+w+"px, "+y+"px, "+x+"px)";if(b<=1&&b>-1&&(c=90*f+90*b,o&&(c=90*-f-90*b)),v.transform(T),d.slideShadows){var E=h?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),S=h?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===E.length&&(E=s('<div class="swiper-slide-shadow-'+(h?"left":"top")+'"></div>'),v.append(E)),0===S.length&&(S=s('<div class="swiper-slide-shadow-'+(h?"right":"bottom")+'"></div>'),v.append(S)),E.length&&(E[0].style.opacity=Math.max(-b,0)),S.length&&(S[0].style.opacity=Math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),d.shadow)if(h)e.transform("translate3d(0px, "+(r/2+d.shadowOffset)+"px, "+-r/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")");else{var C=Math.abs(c)-90*Math.floor(Math.abs(c)/90),M=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),P=d.shadowScale,z=d.shadowScale/M,k=d.shadowOffset;e.transform("scale3d("+P+", 1, "+z+") translate3d(0px, "+(n/2+k)+"px, "+-n/2/z+"px) rotateX(-90deg)")}var $=j.isSafari||j.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+$+"px) rotateX("+(this.isHorizontal()?0:c)+"deg) rotateY("+(this.isHorizontal()?-c:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},me={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,i=0;i<e.length;i+=1){var a=e.eq(i),r=a[0].progress;this.params.flipEffect.limitRotation&&(r=Math.max(Math.min(a[0].progress,1),-1));var n=-180*r,o=0,l=-a[0].swiperSlideOffset,d=0;if(this.isHorizontal()?t&&(n=-n):(d=l,l=0,o=-n,n=0),a[0].style.zIndex=-Math.abs(Math.round(r))+e.length,this.params.flipEffect.slideShadows){var h=this.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),p=this.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===h.length&&(h=s('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),a.append(h)),0===p.length&&(p=s('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),a.append(p)),h.length&&(h[0].style.opacity=Math.max(-r,0)),p.length&&(p[0].style.opacity=Math.max(r,0))}a.transform("translate3d("+l+"px, "+d+"px, 0px) rotateX("+o+"deg) rotateY("+n+"deg)")}},setTransition:function(e){var t=this,i=t.slides,s=t.activeIndex,a=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.eq(s).transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)a.trigger(e[i])}}))}}},ge={setTranslate:function(){for(var e=this.width,t=this.height,i=this.slides,a=this.$wrapperEl,r=this.slidesSizesGrid,n=this.params.coverflowEffect,l=this.isHorizontal(),d=this.translate,h=l?e/2-d:t/2-d,p=l?n.rotate:-n.rotate,c=n.depth,u=0,v=i.length;u<v;u+=1){var f=i.eq(u),m=r[u],g=(h-f[0].swiperSlideOffset-m/2)/m*n.modifier,b=l?p*g:0,w=l?0:p*g,y=-c*Math.abs(g),x=n.stretch;"string"==typeof x&&-1!==x.indexOf("%")&&(x=parseFloat(n.stretch)/100*m);var T=l?0:x*g,E=l?x*g:0;Math.abs(E)<.001&&(E=0),Math.abs(T)<.001&&(T=0),Math.abs(y)<.001&&(y=0),Math.abs(b)<.001&&(b=0),Math.abs(w)<.001&&(w=0);var S="translate3d("+E+"px,"+T+"px,"+y+"px) rotateX("+w+"deg) rotateY("+b+"deg)";if(f.transform(S),f[0].style.zIndex=1-Math.abs(Math.round(g)),n.slideShadows){var C=l?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),M=l?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===C.length&&(C=s('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),f.append(C)),0===M.length&&(M=s('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),f.append(M)),C.length&&(C[0].style.opacity=g>0?g:0),M.length&&(M[0].style.opacity=-g>0?-g:0)}}(o.pointerEvents||o.prefixedPointerEvents)&&(a[0].style.perspectiveOrigin=h+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},be={init:function(){var e=this.params.thumbs,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,n.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),n.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):n.isObject(e.swiper)&&(this.thumbs.swiper=new t(n.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedIndex,i=e.clickedSlide;if(!(i&&s(i).hasClass(this.params.thumbs.slideThumbActiveClass)||null==t)){var a;if(a=e.params.loop?parseInt(s(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var r=this.activeIndex;this.slides.eq(r).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,r=this.activeIndex);var n=this.slides.eq(r).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),o=this.slides.eq(r).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a=void 0===n?o:void 0===o?n:o-r<r-n?o:n}this.slideTo(a)}}},update:function(e){var t=this.thumbs.swiper;if(t){var i="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView;if(this.realIndex!==t.realIndex){var s,a=t.activeIndex;if(t.params.loop){t.slides.eq(a).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,a=t.activeIndex);var r=t.slides.eq(a).prevAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index(),n=t.slides.eq(a).nextAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index();s=void 0===r?n:void 0===n?r:n-a==a-r?a:n-a<a-r?n:r}else s=this.realIndex;t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(s)<0&&(t.params.centeredSlides?s=s>a?s-Math.floor(i/2)+1:s+Math.floor(i/2)-1:s>a&&(s=s-i+1),t.slideTo(s,e?0:void 0))}var o=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(o=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(o=1),o=Math.floor(o),t.slides.removeClass(l),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var d=0;d<o;d+=1)t.$wrapperEl.children('[data-swiper-slide-index="'+(this.realIndex+d)+'"]').addClass(l);else for(var h=0;h<o;h+=1)t.slides.eq(this.realIndex+h).addClass(l)}}},we=[R,q,K,U,Z,J,te,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){n.extend(this,{mousewheel:{enabled:!1,enable:ie.enable.bind(this),disable:ie.disable.bind(this),handle:ie.handle.bind(this),handleMouseEnter:ie.handleMouseEnter.bind(this),handleMouseLeave:ie.handleMouseLeave.bind(this),animateSlider:ie.animateSlider.bind(this),releaseScroll:ie.releaseScroll.bind(this),lastScrollTime:n.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init:function(){!this.params.mousewheel.enabled&&this.params.cssMode&&this.mousewheel.disable(),this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.params.cssMode&&this.mousewheel.enable(),this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){n.extend(this,{navigation:{init:se.init.bind(this),update:se.update.bind(this),destroy:se.destroy.bind(this),onNextClick:se.onNextClick.bind(this),onPrevClick:se.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,i=this.navigation,a=i.$nextEl,r=i.$prevEl;!this.params.navigation.hideOnClick||s(e.target).is(r)||s(e.target).is(a)||(a?t=a.hasClass(this.params.navigation.hiddenClass):r&&(t=r.hasClass(this.params.navigation.hiddenClass)),!0===t?this.emit("navigationShow",this):this.emit("navigationHide",this),a&&a.toggleClass(this.params.navigation.hiddenClass),r&&r.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){n.extend(this,{pagination:{init:ae.init.bind(this),render:ae.render.bind(this),update:ae.update.bind(this),destroy:ae.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!s(e.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){n.extend(this,{scrollbar:{init:re.init.bind(this),destroy:re.destroy.bind(this),updateSize:re.updateSize.bind(this),setTranslate:re.setTranslate.bind(this),setTransition:re.setTransition.bind(this),enableDraggable:re.enableDraggable.bind(this),disableDraggable:re.disableDraggable.bind(this),setDragPosition:re.setDragPosition.bind(this),getPointerPosition:re.getPointerPosition.bind(this),onDragStart:re.onDragStart.bind(this),onDragMove:re.onDragMove.bind(this),onDragEnd:re.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){n.extend(this,{parallax:{setTransform:ne.setTransform.bind(this),setTranslate:ne.setTranslate.bind(this),setTransition:ne.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(i){t[i]=oe[i].bind(e)})),n.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var s=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,a=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,s,a)}i=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){n.extend(this,{lazy:{initialImageLoaded:!1,load:le.load.bind(this),loadInSlide:le.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){n.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:de.getInterpolateFunction.bind(this),setTranslate:de.setTranslate.bind(this),setTransition:de.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;n.extend(e,{a11y:{liveRegion:s('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(he).forEach((function(t){e.a11y[t]=he[t].bind(e)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){n.extend(this,{history:{init:pe.init.bind(this),setHistory:pe.setHistory.bind(this),setHistoryPopState:pe.setHistoryPopState.bind(this),scrollToSlide:pe.scrollToSlide.bind(this),destroy:pe.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)},slideChange:function(){this.history.initialized&&this.params.cssMode&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){n.extend(this,{hashNavigation:{initialized:!1,init:ce.init.bind(this),destroy:ce.destroy.bind(this),setHash:ce.setHash.bind(this),onHashCange:ce.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()},slideChange:function(){this.hashNavigation.initialized&&this.params.cssMode&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;n.extend(e,{autoplay:{running:!1,paused:!1,run:ue.run.bind(e),start:ue.start.bind(e),stop:ue.stop.bind(e),pause:ue.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){n.extend(this,{fadeEffect:{setTranslate:ve.setTranslate.bind(this),setTransition:ve.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};n.extend(this.params,e),n.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){n.extend(this,{cubeEffect:{setTranslate:fe.setTranslate.bind(this),setTransition:fe.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};n.extend(this.params,e),n.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){n.extend(this,{flipEffect:{setTranslate:me.setTranslate.bind(this),setTransition:me.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};n.extend(this.params,e),n.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){n.extend(this,{coverflowEffect:{setTranslate:ge.setTranslate.bind(this),setTransition:ge.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{multipleActiveThumbs:!0,swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){n.extend(this,{thumbs:{swiper:null,init:be.init.bind(this),update:be.update.bind(this),onThumbClick:be.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===W.use&&(W.use=W.Class.use,W.installModule=W.Class.installModule),W.use(we),W}));
(function(a){window.ShareLink=function(b,c){var d,e={},f=function(a){var b=a.substr(0,e.classPrefixLength);return b===e.classPrefix?a.substr(e.classPrefixLength):null},g=function(a){d.on("click",function(){h(a)})},h=function(a){var b="";if(e.width&&e.height){var c=screen.width/2-e.width/2,d=screen.height/2-e.height/2;b="toolbar=0,status=0,width="+e.width+",height="+e.height+",top="+d+",left="+c}var f=ShareLink.getNetworkLink(a,e),g=/^https?:\/\//.test(f),h=g?"":"_self";open(f,h,b)},i=function(){a.each(b.classList,function(){var a=f(this);if(a)return g(a),!1})},j=function(){a.extend(e,ShareLink.defaultSettings,c),["title","text"].forEach(function(a){e[a]=e[a].replace("#","")}),e.classPrefixLength=e.classPrefix.length},k=function(){d=a(b)};(function(){j(),k(),i()})()},ShareLink.networkTemplates={twitter:"https://twitter.com/intent/tweet?text={text}\x20{url}",pinterest:"https://www.pinterest.com/pin/create/button/?url={url}&media={image}",facebook:"https://www.facebook.com/sharer.php?u={url}",vk:"https://vkontakte.ru/share.php?url={url}&title={title}&description={text}&image={image}",linkedin:"https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={text}&source={url}",odnoklassniki:"https://connect.ok.ru/offer?url={url}&title={title}&imageUrl={image}",tumblr:"https://tumblr.com/share/link?url={url}",google:"https://plus.google.com/share?url={url}",digg:"https://digg.com/submit?url={url}",reddit:"https://reddit.com/submit?url={url}&title={title}",stumbleupon:"https://www.stumbleupon.com/submit?url={url}",pocket:"https://getpocket.com/edit?url={url}",whatsapp:"https://api.whatsapp.com/send?text=*{title}*\n{text}\n{url}",xing:"https://www.xing.com/app/user?op=share&url={url}",print:"javascript:print()",email:"mailto:?subject={title}&body={text}\n{url}",telegram:"https://telegram.me/share/url?url={url}&text={text}",skype:"https://web.skype.com/share?url={url}"},ShareLink.defaultSettings={title:"",text:"",image:"",url:location.href,classPrefix:"s_",width:640,height:480},ShareLink.getNetworkLink=function(a,b){var c=ShareLink.networkTemplates[a].replace(/{([^}]+)}/g,function(a,c){return b[c]||""});if("email"===a){if(-1<b.title.indexOf("&")||-1<b.text.indexOf("&")){var d={text:b.text.replace(/&/g,"%26"),title:b.title.replace(/&/g,"%26"),url:b.url};c=ShareLink.networkTemplates[a].replace(/{([^}]+)}/g,function(a,b){return d[b]})}return c.indexOf("?subject=&body")&&(c=c.replace("subject=&","")),c}return c},a.fn.shareLink=function(b){return this.each(function(){a(this).data("shareLink",new ShareLink(this,b))})}})(jQuery);
/*! dialogs-manager v4.8.1 | (c) Kobi Zaltzberg | https://github.com/kobizz/dialogs-manager/blob/master/LICENSE.txt
2020-08-17 18:55 */
!function(a,b){"use strict";var c={widgetsTypes:{},createWidgetType:function(b,d,e){e||(e=this.Widget);var f=function(){e.apply(this,arguments)},g=f.prototype=new e(b);return g.types=g.types.concat([b]),a.extend(g,d),g.constructor=f,f.extend=function(a,b){return c.createWidgetType(a,b,f)},f},addWidgetType:function(a,b,c){return b&&b.prototype instanceof this.Widget?this.widgetsTypes[a]=b:this.widgetsTypes[a]=this.createWidgetType(a,b,c)},getWidgetType:function(a){return this.widgetsTypes[a]}};c.Instance=function(){var b=this,d={},e={},f=function(){d.body=a("body")},g=function(b){var c={classPrefix:"dialog",effects:{show:"fadeIn",hide:"fadeOut"}};a.extend(e,c,b)};this.createWidget=function(a,d){var e=c.getWidgetType(a),f=new e(a);return d=d||{},f.init(b,d),f},this.getSettings=function(a){return a?e[a]:Object.create(e)},this.init=function(a){return g(a),f(),b},b.init()},c.Widget=function(b){var d=this,e={},f={},g={},h=0,i=["refreshPosition"],j=function(){var a=[g.window];g.iframe&&a.push(jQuery(g.iframe[0].contentWindow)),a.forEach(function(a){e.hide.onEscKeyPress&&a.on("keyup",v),e.hide.onOutsideClick&&a[0].addEventListener("click",p,!0),e.hide.onOutsideContextMenu&&a[0].addEventListener("contextmenu",p,!0),e.position.autoRefresh&&a.on("resize",d.refreshPosition)}),(e.hide.onClick||e.hide.onBackgroundClick)&&g.widget.on("click",n)},k=function(b,c){var d=e.effects[b],f=g.widget;if(a.isFunction(d))d.apply(f,c);else{if(!f[d])throw"Reference Error: The effect "+d+" not found";f[d].apply(f,c)}},l=function(){var b=i.concat(d.getClosureMethods());a.each(b,function(){var a=this,b=d[a];d[a]=function(){b.apply(d,arguments)}})},m=function(a){if(a.my){var b=/left|right/,c=/([+-]\d+)?$/,d=g.iframe.offset(),e=g.iframe[0].contentWindow,f=a.my.split(" "),h=[];1===f.length&&(b.test(f[0])?f.push("center"):f.unshift("center")),f.forEach(function(a,b){var f=a.replace(c,function(a){return a=+a||0,a+=b?d.top-e.scrollY:d.left-e.scrollX,a>=0&&(a="+"+a),a});h.push(f)}),a.my=h.join(" ")}},n=function(b){if(!t(b)){if(e.hide.onClick){if(a(b.target).closest(e.selectors.preventClose).length)return}else if(b.target!==this)return;d.hide()}},o=function(b){return!!e.hide.ignore&&!!a(b.target).closest(e.hide.ignore).length},p=function(b){t(b)||a(b.target).closest(g.widget).length||o(b)||d.hide()},q=function(){if(d.addElement("widget"),d.addElement("header"),d.addElement("message"),d.addElement("window",window),d.addElement("body",document.body),d.addElement("container",e.container),e.iframe&&d.addElement("iframe",e.iframe),e.closeButton){e.closeButtonClass&&(e.closeButtonOptions.iconClass=e.closeButtonClass);const b=a("<div>",e.closeButtonOptions.attributes),c=a("<i>",{"class":e.closeButtonOptions.iconClass});b.append(c),d.addElement("closeButton",b)}var f=d.getSettings("id");f&&d.setID(f);var h=[];a.each(d.types,function(){h.push(e.classes.globalPrefix+"-type-"+this)}),h.push(d.getSettings("className")),g.widget.addClass(h.join(" "))},r=function(c,f){var g=a.extend(!0,{},c.getSettings());e={headerMessage:"",message:"",effects:g.effects,classes:{globalPrefix:g.classPrefix,prefix:g.classPrefix+"-"+b,preventScroll:g.classPrefix+"-prevent-scroll"},selectors:{preventClose:"."+g.classPrefix+"-prevent-close"},container:"body",preventScroll:!1,iframe:null,closeButton:!1,closeButtonOptions:{iconClass:g.classPrefix+"-close-button-icon",attributes:{}},position:{element:"widget",my:"center",at:"center",enable:!0,autoRefresh:!1},hide:{auto:!1,autoDelay:5e3,onClick:!1,onOutsideClick:!0,onOutsideContextMenu:!1,onBackgroundClick:!0,onEscKeyPress:!0,ignore:""}},a.extend(!0,e,d.getDefaultSettings(),f),s()},s=function(){a.each(e,function(a){var b=a.match(/^on([A-Z].*)/);b&&(b=b[1].charAt(0).toLowerCase()+b[1].slice(1),d.on(b,this))})},t=function(a){return"click"===a.type&&2===a.button},u=function(a){return a.replace(/([a-z])([A-Z])/g,function(){return arguments[1]+"-"+arguments[2].toLowerCase()})},v=function(a){var b=27,c=a.which;b===c&&d.hide()},w=function(){var a=[g.window];g.iframe&&a.push(jQuery(g.iframe[0].contentWindow)),a.forEach(function(a){e.hide.onEscKeyPress&&a.off("keyup",v),e.hide.onOutsideClick&&a[0].removeEventListener("click",p,!0),e.hide.onOutsideContextMenu&&a[0].removeEventListener("contextmenu",p,!0),e.position.autoRefresh&&a.off("resize",d.refreshPosition)}),(e.hide.onClick||e.hide.onBackgroundClick)&&g.widget.off("click",n)};this.addElement=function(b,c,d){var f=g[b]=a(c||"<div>"),h=u(b);return d=d?d+" ":"",d+=e.classes.globalPrefix+"-"+h,d+=" "+e.classes.prefix+"-"+h,f.addClass(d),f},this.destroy=function(){return w(),g.widget.remove(),d.trigger("destroy"),d},this.getElements=function(a){return a?g[a]:g},this.getSettings=function(a){var b=Object.create(e);return a?b[a]:b},this.hide=function(){if(d.isVisible())return clearTimeout(h),k("hide",arguments),w(),e.preventScroll&&d.getElements("body").removeClass(e.classes.preventScroll),d.trigger("hide"),d},this.init=function(a,b){if(!(a instanceof c.Instance))throw"The "+d.widgetName+" must to be initialized from an instance of DialogsManager.Instance";return l(),d.trigger("init",b),r(a,b),q(),d.buildWidget(),d.attachEvents(),d.trigger("ready"),d},this.isVisible=function(){return g.widget.is(":visible")},this.on=function(b,c){if("object"==typeof b)return a.each(b,function(a){d.on(a,this)}),d;var e=b.split(" ");return e.forEach(function(a){f[a]||(f[a]=[]),f[a].push(c)}),d},this.off=function(a,b){if(!f[a])return d;if(!b)return delete f[a],d;var c=f[a].indexOf(b);return-1!==c&&f[a].splice(c,1),d},this.refreshPosition=function(){if(e.position.enable){var b=a.extend({},e.position);g[b.of]&&(b.of=g[b.of]),b.of||(b.of=window),e.iframe&&m(b),g[b.element].position(b)}},this.setID=function(a){return g.widget.attr("id",a),d},this.setHeaderMessage=function(a){return d.getElements("header").html(a),d},this.setMessage=function(a){return g.message.html(a),d},this.setSettings=function(b,c){return jQuery.isPlainObject(c)?a.extend(!0,e[b],c):e[b]=c,d},this.show=function(){return clearTimeout(h),g.widget.appendTo(g.container).hide(),k("show",arguments),d.refreshPosition(),e.hide.auto&&(h=setTimeout(d.hide,e.hide.autoDelay)),j(),e.preventScroll&&d.getElements("body").addClass(e.classes.preventScroll),d.trigger("show"),d},this.trigger=function(b,c){var e="on"+b[0].toUpperCase()+b.slice(1);d[e]&&d[e](c);var g=f[b];if(g)return a.each(g,function(a,b){b.call(d,c)}),d}},c.Widget.prototype.types=[],c.Widget.prototype.buildWidget=function(){var a=this.getElements(),b=this.getSettings();a.widget.append(a.header,a.message),this.setHeaderMessage(b.headerMessage),this.setMessage(b.message),this.getSettings("closeButton")&&a.widget.prepend(a.closeButton)},c.Widget.prototype.attachEvents=function(){var a=this;a.getSettings("closeButton")&&a.getElements("closeButton").on("click",function(){a.hide()})},c.Widget.prototype.getDefaultSettings=function(){return{}},c.Widget.prototype.getClosureMethods=function(){return[]},c.Widget.prototype.onHide=function(){},c.Widget.prototype.onShow=function(){},c.Widget.prototype.onInit=function(){},c.Widget.prototype.onReady=function(){},c.widgetsTypes.simple=c.Widget,c.addWidgetType("buttons",{activeKeyUp:function(a){var b=9;a.which===b&&a.preventDefault(),this.hotKeys[a.which]&&this.hotKeys[a.which](this)},activeKeyDown:function(a){if(this.focusedButton){var b=9;if(a.which===b){a.preventDefault();var c,d=this.focusedButton.index();a.shiftKey?(c=d-1,c<0&&(c=this.buttons.length-1)):(c=d+1,c>=this.buttons.length&&(c=0)),this.focusedButton=this.buttons[c].focus()}}},addButton:function(b){var c=this,d=c.getSettings(),e=jQuery.extend(d.button,b),f=b.classes?b.classes+" ":"";f+=d.classes.globalPrefix+"-button";var g=c.addElement(b.name,a("<"+e.tag+">").html(b.text),f);c.buttons.push(g);var h=function(){d.hide.onButtonClick&&c.hide(),a.isFunction(b.callback)&&b.callback.call(this,c)};return g.on("click",h),b.hotKey&&(this.hotKeys[b.hotKey]=h),this.getElements("buttonsWrapper").append(g),b.focus&&(this.focusedButton=g),c},bindHotKeys:function(){this.getElements("window").on({keyup:this.activeKeyUp,keydown:this.activeKeyDown})},buildWidget:function(){c.Widget.prototype.buildWidget.apply(this,arguments);var a=this.addElement("buttonsWrapper");this.getElements("widget").append(a)},getClosureMethods:function(){return["activeKeyUp","activeKeyDown"]},getDefaultSettings:function(){return{hide:{onButtonClick:!0},button:{tag:"button"}}},onHide:function(){this.unbindHotKeys()},onInit:function(){this.buttons=[],this.hotKeys={},this.focusedButton=null},onShow:function(){this.bindHotKeys(),this.focusedButton||(this.focusedButton=this.buttons[0]),this.focusedButton&&this.focusedButton.focus()},unbindHotKeys:function(){this.getElements("window").off({keyup:this.activeKeyUp,keydown:this.activeKeyDown})}}),c.addWidgetType("lightbox",c.getWidgetType("buttons").extend("lightbox",{getDefaultSettings:function(){var b=c.getWidgetType("buttons").prototype.getDefaultSettings.apply(this,arguments);return a.extend(!0,b,{contentWidth:"auto",contentHeight:"auto",position:{element:"widgetContent",of:"widget",autoRefresh:!0}})},buildWidget:function(){c.getWidgetType("buttons").prototype.buildWidget.apply(this,arguments);var a=this.addElement("widgetContent"),b=this.getElements();a.append(b.header,b.message,b.buttonsWrapper),b.widget.html(a),b.closeButton&&a.prepend(b.closeButton)},onReady:function(){var a=this.getElements(),b=this.getSettings();"auto"!==b.contentWidth&&a.message.width(b.contentWidth),"auto"!==b.contentHeight&&a.message.height(b.contentHeight)}})),c.addWidgetType("confirm",c.getWidgetType("lightbox").extend("confirm",{onReady:function(){c.getWidgetType("lightbox").prototype.onReady.apply(this,arguments);var a=this.getSettings("strings"),b="cancel"===this.getSettings("defaultOption");this.addButton({name:"cancel",text:a.cancel,callback:function(a){a.trigger("cancel")},focus:b}),this.addButton({name:"ok",text:a.confirm,callback:function(a){a.trigger("confirm")},focus:!b})},getDefaultSettings:function(){var a=c.getWidgetType("lightbox").prototype.getDefaultSettings.apply(this,arguments);return a.strings={confirm:"OK",cancel:"Cancel"},a.defaultOption="cancel",a}})),c.addWidgetType("alert",c.getWidgetType("lightbox").extend("alert",{onReady:function(){c.getWidgetType("lightbox").prototype.onReady.apply(this,arguments);var a=this.getSettings("strings");this.addButton({name:"ok",text:a.confirm,callback:function(a){a.trigger("confirm")}})},getDefaultSettings:function(){var a=c.getWidgetType("lightbox").prototype.getDefaultSettings.apply(this,arguments);return a.strings={confirm:"OK"},a}})),b.DialogsManager=c}("undefined"!=typeof jQuery?jQuery:"function"==typeof require&&require("jquery"),"undefined"!=typeof module?module.exports:window);
/*! elementor - v3.4.6 - 19-10-2021 */
(self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[819],{9220:(e,t,n)=>{"use strict";var i=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(8135));class _default extends elementorModules.ViewModule{constructor(...e){super(...e),this.documents={},this.initDocumentClasses(),this.attachDocumentsClasses()}getDefaultSettings(){return{selectors:{document:".elementor"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$documents:jQuery(e.document)}}initDocumentClasses(){this.documentClasses={base:s.default},elementorFrontend.hooks.doAction("elementor/frontend/documents-manager/init-classes",this)}addDocumentClass(e,t){this.documentClasses[e]=t}attachDocumentsClasses(){this.elements.$documents.each(((e,t)=>this.attachDocumentClass(jQuery(t))))}attachDocumentClass(e){const t=e.data(),n=t.elementorId,i=t.elementorType,s=this.documentClasses[i]||this.documentClasses.base;this.documents[n]=new s({$element:e,id:n})}}t.default=_default},9804:(e,t,n)=>{"use strict";var i=n(7914),s=i(n(6397)),o=i(n(9320)),r=i(n(7537));e.exports=function(e){const t={};this.elementsHandlers={"accordion.default":()=>n.e(209).then(n.bind(n,8470)),"alert.default":()=>n.e(745).then(n.bind(n,9269)),"counter.default":()=>n.e(120).then(n.bind(n,7884)),"progress.default":()=>n.e(192).then(n.bind(n,1351)),"tabs.default":()=>n.e(520).then(n.bind(n,9459)),"toggle.default":()=>n.e(181).then(n.bind(n,2)),"video.default":()=>n.e(791).then(n.bind(n,5363)),"image-carousel.default":()=>n.e(268).then(n.bind(n,5914)),"text-editor.default":()=>n.e(357).then(n.bind(n,1327)),"wp-widget-media_audio.default":()=>n.e(52).then(n.bind(n,7602))};const addElementsHandlers=()=>{this.elementsHandlers.section=o.default,this.elementsHandlers.column=r.default,e.each(this.elementsHandlers,((e,t)=>{const n=e.split(".");e=n[0];const i=n[1]||null;this.attachHandler(e,t,i)}))},isClassHandler=e=>{var t;return null===(t=e.prototype)||void 0===t?void 0:t.getUniqueHandlerID},addHandlerWithHook=(e,t,n="default")=>{n=n?"."+n:"",elementorFrontend.hooks.addAction(`frontend/element_ready/${e}${n}`,(e=>{if(isClassHandler(t))this.addHandler(t,{$element:e},!0);else{const n=t();n instanceof Promise?n.then((({default:t})=>{this.addHandler(t,{$element:e},!0)})):this.addHandler(n,{$element:e},!0)}}))};this.addHandler=function(e,n){const i=n.$element.data("model-cid");let s;if(i){s=e.prototype.getConstructorID(),t[i]||(t[i]={});const n=t[i][s];n&&n.onDestroy()}const o=new e(n);i&&(t[i][s]=o)},this.attachHandler=(e,t,n)=>{Array.isArray(t)||(t=[t]),t.forEach((t=>addHandlerWithHook(e,t,n)))},this.getHandler=function(e){if(!e)return;const t=this.elementsHandlers[e];return isClassHandler(t)?t:new Promise((e=>{t().then((({default:t})=>{e(t)}))}))},this.getHandlers=function(e){return elementorCommon.helpers.softDeprecated("getHandlers","3.1.0","elementorFrontend.elementsHandler.getHandler"),e?this.getHandler(e):this.elementsHandlers},this.runReadyTrigger=function(t){if(elementorFrontend.config.is_static)return;const n=jQuery(t),i=n.attr("data-element_type");if(i&&(elementorFrontend.hooks.doAction("frontend/element_ready/global",n,e),elementorFrontend.hooks.doAction(`frontend/element_ready/${i}`,n,e),"widget"===i)){const t=n.attr("data-widget_type");elementorFrontend.hooks.doAction(`frontend/element_ready/${t}`,n,e)}},this.init=()=>{elementorFrontend.hooks.addAction("frontend/element_ready/global",s.default),addElementsHandlers()}}},5654:(e,t,n)=>{"use strict";var i=n(7914);n(59);var s=i(n(9220)),o=i(n(5107)),r=i(n(3308)),a=i(n(1604)),d=i(n(1911)),l=i(n(4773)),c=i(n(2064)),u=i(n(7139)),h=i(n(8646)),g=i(n(6866)),m=i(n(4375)),p=i(n(6046)),f=n(6028);const v=n(9469),b=n(9804),y=n(3346);class Frontend extends elementorModules.ViewModule{constructor(...e){super(...e),this.config=elementorFrontendConfig,this.config.legacyMode={get elementWrappers(){return elementorFrontend.isEditMode()&&elementorCommon.helpers.hardDeprecated("elementorFrontend.config.legacyMode.elementWrappers","3.1.0","elementorFrontend.config.experimentalFeatures.e_dom_optimization"),!elementorFrontend.config.experimentalFeatures.e_dom_optimization}},this.populateActiveBreakpointsConfig()}get Module(){return this.isEditMode()&&parent.elementorCommon.helpers.hardDeprecated("elementorFrontend.Module","2.5.0","elementorModules.frontend.handlers.Base"),elementorModules.frontend.handlers.Base}getDefaultSettings(){return{selectors:{elementor:".elementor",adminBar:"#wpadminbar"}}}getDefaultElements(){const e={window,$window:jQuery(window),$document:jQuery(document),$head:jQuery(document.head),$body:jQuery(document.body),$deviceMode:jQuery("<span>",{id:"elementor-device-mode",class:"elementor-screen-only"})};return e.$body.append(e.$deviceMode),e}bindEvents(){this.elements.$window.on("resize",(()=>this.setDeviceModeData()))}getElements(e){return this.getItems(this.elements,e)}getPageSettings(e){const t=this.isEditMode()?elementor.settings.page.model.attributes:this.config.settings.page;return this.getItems(t,e)}getGeneralSettings(e){return this.isEditMode()&&parent.elementorCommon.helpers.softDeprecated("getGeneralSettings","3.0.0","getKitSettings and remove the `elementor_` prefix"),this.getKitSettings(`elementor_${e}`)}getKitSettings(e){return this.getItems(this.config.kit,e)}getCurrentDeviceMode(){return getComputedStyle(this.elements.$deviceMode[0],":after").content.replace(/"/g,"")}getDeviceSetting(e,t,n){if("widescreen"===e)return this.getWidescreenSetting(t,n);const i=elementorFrontend.breakpoints.getActiveBreakpointsList({largeToSmall:!0,withDesktop:!0});let s=i.indexOf(e);for(;s>0;){const e=t[n+"_"+i[s]];if(e||0===e)return e;s--}return t[n]}getWidescreenSetting(e,t){const n=t+"_widescreen";let i;return i=e[n]?e[n]:e[t],i}getCurrentDeviceSetting(e,t){return this.getDeviceSetting(elementorFrontend.getCurrentDeviceMode(),e,t)}isEditMode(){return this.config.environmentMode.edit}isWPPreviewMode(){return this.config.environmentMode.wpPreview}initDialogsManager(){let e;this.getDialogsManager=()=>(e||(e=new DialogsManager.Instance),e)}initOnReadyComponents(){this.utils={youtube:new a.default,vimeo:new d.default,baseVideoLoader:new l.default,anchors:new y,get lightbox(){return h.default.getLightbox()},urlActions:new c.default,swiper:u.default,environment:r.default,assetsLoader:new g.default,escapeHTML:f.escapeHTML},this.modules={StretchElement:elementorModules.frontend.tools.StretchElement,Masonry:elementorModules.utils.Masonry},this.elementsHandler.init(),this.isEditMode()?elementor.once("document:loaded",(()=>this.onDocumentLoaded())):this.onDocumentLoaded()}initOnReadyElements(){this.elements.$wpAdminBar=this.elements.$document.find(this.getSettings("selectors.adminBar"))}addUserAgentClasses(){for(const[e,t]of Object.entries(r.default))t&&this.elements.$body.addClass("e--ua-"+e)}setDeviceModeData(){this.elements.$body.attr("data-elementor-device-mode",this.getCurrentDeviceMode())}addListenerOnce(e,t,n,i){if(i||(i=this.elements.$window),this.isEditMode())if(this.removeListeners(e,t,i),i instanceof jQuery){const s=t+"."+e;i.on(s,n)}else i.on(t,n,e);else i.on(t,n)}removeListeners(e,t,n,i){if(i||(i=this.elements.$window),i instanceof jQuery){const s=t+"."+e;i.off(s,n)}else i.off(t,n,e)}debounce(e,t){let n;return function(){const i=this,s=arguments,later=()=>{n=null,e.apply(i,s)},o=!n;clearTimeout(n),n=setTimeout(later,t),o&&e.apply(i,s)}}waypoint(e,t,n){n=jQuery.extend({offset:"100%",triggerOnce:!0},n);return e.elementorWaypoint((function(){const e=this.element||this,i=t.apply(e,arguments);return n.triggerOnce&&this.destroy&&this.destroy(),i}),n)}muteMigrationTraces(){jQuery.migrateMute=!0,jQuery.migrateTrace=!1}initModules(){const e={shapes:p.default};elementorFrontend.trigger("elementor/modules/init:before"),Object.entries(e).forEach((([e,t])=>{this.modulesHandlers[e]=new t}))}populateActiveBreakpointsConfig(){this.config.responsive.activeBreakpoints={},Object.entries(this.config.responsive.breakpoints).forEach((([e,t])=>{t.is_enabled&&(this.config.responsive.activeBreakpoints[e]=t)}))}init(){this.hooks=new v,this.breakpoints=new m.default(this.config.responsive),this.storage=new o.default,this.elementsHandler=new b(jQuery),this.modulesHandlers={},this.addUserAgentClasses(),this.setDeviceModeData(),this.initDialogsManager(),this.isEditMode()&&this.muteMigrationTraces(),this.elements.$window.trigger("elementor/frontend/init"),this.initModules(),this.initOnReadyElements(),this.initOnReadyComponents()}onDocumentLoaded(){this.documentsManager=new s.default,this.trigger("components:init"),new h.default}}window.elementorFrontend=new Frontend,elementorFrontend.isEditMode()||jQuery((()=>elementorFrontend.init()))},4058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class BackgroundSlideshow extends elementorModules.frontend.handlers.SwiperBase{getDefaultSettings(){return{classes:{swiperContainer:"elementor-background-slideshow swiper-container",swiperWrapper:"swiper-wrapper",swiperSlide:"elementor-background-slideshow__slide swiper-slide",slideBackground:"elementor-background-slideshow__slide__image",kenBurns:"elementor-ken-burns",kenBurnsActive:"elementor-ken-burns--active",kenBurnsIn:"elementor-ken-burns--in",kenBurnsOut:"elementor-ken-burns--out"}}}getSwiperOptions(){const e=this.getElementSettings(),t={grabCursor:!1,slidesPerView:1,slidesPerGroup:1,loop:"yes"===e.background_slideshow_loop,speed:e.background_slideshow_transition_duration,autoplay:{delay:e.background_slideshow_slide_duration,stopOnLastSlide:!e.background_slideshow_loop},handleElementorBreakpoints:!0,on:{slideChange:()=>{e.background_slideshow_ken_burns&&this.handleKenBurns()}}};switch("yes"===e.background_slideshow_loop&&(t.loopedSlides=this.getSlidesCount()),e.background_slideshow_slide_transition){case"fade":t.effect="fade",t.fadeEffect={crossFade:!0};break;case"slide_down":t.autoplay.reverseDirection=!0;case"slide_up":t.direction="vertical"}return t}buildSwiperElements(){const e=this.getSettings("classes"),t=this.getElementSettings(),n="slide_left"===t.background_slideshow_slide_transition?"ltr":"rtl",i=jQuery("<div>",{class:e.swiperContainer,dir:n}),s=jQuery("<div>",{class:e.swiperWrapper}),o=t.background_slideshow_ken_burns;let r=e.slideBackground;if(o){r+=" "+e.kenBurns;const n="in"===t.background_slideshow_ken_burns_zoom_direction?"kenBurnsIn":"kenBurnsOut";r+=" "+e[n]}this.elements.$slides=jQuery(),t.background_slideshow_gallery.forEach((t=>{const n=jQuery("<div>",{class:e.swiperSlide}),i=jQuery("<div>",{class:r,style:'background-image: url("'+t.url+'");'});n.append(i),s.append(n),this.elements.$slides=this.elements.$slides.add(n)})),i.append(s),this.$element.prepend(i),this.elements.$backgroundSlideShowContainer=i}async initSlider(){if(1>=this.getSlidesCount())return;const e=this.getElementSettings(),t=elementorFrontend.utils.swiper;this.swiper=await new t(this.elements.$backgroundSlideShowContainer,this.getSwiperOptions()),this.elements.$backgroundSlideShowContainer.data("swiper",this.swiper),e.background_slideshow_ken_burns&&this.handleKenBurns()}activate(){this.buildSwiperElements(),this.initSlider()}deactivate(){this.swiper&&(this.swiper.destroy(),this.elements.$backgroundSlideShowContainer.remove())}run(){"slideshow"===this.getElementSettings("background_background")?this.activate():this.deactivate()}onInit(){super.onInit(),this.getElementSettings("background_slideshow_gallery")&&this.run()}onDestroy(){super.onDestroy(),this.deactivate()}onElementChange(e){"background_background"===e&&this.run()}}t.default=BackgroundSlideshow},7537:(e,t,n)=>{"use strict";var i=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=[i(n(4058)).default];t.default=s},6397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class GlobalHandler extends elementorModules.frontend.handlers.Base{getWidgetType(){return"global"}animate(){const e=this.$element,t=this.getAnimation();if("none"===t)return void e.removeClass("elementor-invisible");const n=this.getElementSettings(),i=n._animation_delay||n.animation_delay||0;e.removeClass(t),this.currentAnimation&&e.removeClass(this.currentAnimation),this.currentAnimation=t,setTimeout((()=>{e.removeClass("elementor-invisible").addClass("animated "+t)}),i)}getAnimation(){return this.getCurrentDeviceSetting("animation")||this.getCurrentDeviceSetting("_animation")}onInit(...e){if(super.onInit(...e),this.getAnimation()){const e=elementorModules.utils.Scroll.scrollObserver({callback:t=>{t.isInViewport&&(this.animate(),e.unobserve(this.$element[0]))}});e.observe(this.$element[0])}}onElementChange(e){/^_?animation/.test(e)&&this.animate()}}t.default=e=>{elementorFrontend.elementsHandler.addHandler(GlobalHandler,{$element:e})}},2987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class BackgroundVideo extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{backgroundVideoContainer:".elementor-background-video-container",backgroundVideoEmbed:".elementor-background-video-embed",backgroundVideoHosted:".elementor-background-video-hosted"}}}getDefaultElements(){const e=this.getSettings("selectors"),t={$backgroundVideoContainer:this.$element.find(e.backgroundVideoContainer)};return t.$backgroundVideoEmbed=t.$backgroundVideoContainer.children(e.backgroundVideoEmbed),t.$backgroundVideoHosted=t.$backgroundVideoContainer.children(e.backgroundVideoHosted),t}calcVideosSize(e){let t="16:9";"vimeo"===this.videoType&&(t=e[0].width+":"+e[0].height);const n=this.elements.$backgroundVideoContainer.outerWidth(),i=this.elements.$backgroundVideoContainer.outerHeight(),s=t.split(":"),o=s[0]/s[1],r=n/i>o;return{width:r?n:i*o,height:r?n/o:i}}changeVideoSize(){if("hosted"!==this.videoType&&!this.player)return;let e;if("youtube"===this.videoType?e=jQuery(this.player.getIframe()):"vimeo"===this.videoType?e=jQuery(this.player.element):"hosted"===this.videoType&&(e=this.elements.$backgroundVideoHosted),!e)return;const t=this.calcVideosSize(e);e.width(t.width).height(t.height)}startVideoLoop(e){if(!this.player.getIframe().contentWindow)return;const t=this.getElementSettings(),n=t.background_video_start||0,i=t.background_video_end;if(!t.background_play_once||e){if(this.player.seekTo(n),i){setTimeout((()=>{this.startVideoLoop(!1)}),1e3*(i-n+1))}}else this.player.stopVideo()}prepareVimeoVideo(e,t){const n=this.getElementSettings(),i=(n.background_video_start&&n.background_video_start,{id:t,width:this.elements.$backgroundVideoContainer.outerWidth().width,autoplay:!0,loop:!n.background_play_once,transparent:!1,background:!0,muted:!0});this.player=new e.Player(this.elements.$backgroundVideoContainer,i),this.handleVimeoStartEndTimes(n),this.player.ready().then((()=>{jQuery(this.player.element).addClass("elementor-background-video-embed"),this.changeVideoSize()}))}handleVimeoStartEndTimes(e){e.background_video_start&&this.player.on("play",(t=>{0===t.seconds&&this.player.setCurrentTime(e.background_video_start)})),this.player.on("timeupdate",(t=>{e.background_video_end&&e.background_video_end<t.seconds&&(e.background_play_once?this.player.pause():this.player.setCurrentTime(e.background_video_start)),this.player.getDuration().then((n=>{e.background_video_start&&!e.background_video_end&&t.seconds>n-.5&&this.player.setCurrentTime(e.background_video_start)}))}))}prepareYTVideo(e,t){const n=this.elements.$backgroundVideoContainer,i=this.getElementSettings();let s=e.PlayerState.PLAYING;window.chrome&&(s=e.PlayerState.UNSTARTED);const o={videoId:t,events:{onReady:()=>{this.player.mute(),this.changeVideoSize(),this.startVideoLoop(!0),this.player.playVideo()},onStateChange:t=>{switch(t.data){case s:n.removeClass("elementor-invisible elementor-loading");break;case e.PlayerState.ENDED:this.player.seekTo(i.background_video_start||0),i.background_play_once&&this.player.destroy()}}},playerVars:{controls:0,rel:0,playsinline:1}};i.background_privacy_mode&&(o.host="https://www.youtube-nocookie.com",o.origin=window.location.hostname),n.addClass("elementor-loading elementor-invisible"),this.player=new e.Player(this.elements.$backgroundVideoEmbed[0],o)}activate(){let e,t=this.getElementSettings("background_video_link");const n=this.getElementSettings("background_play_once");if(-1!==t.indexOf("vimeo.com")?(this.videoType="vimeo",this.apiProvider=elementorFrontend.utils.vimeo):t.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(this.videoType="youtube",this.apiProvider=elementorFrontend.utils.youtube),this.apiProvider)e=this.apiProvider.getVideoIDFromURL(t),this.apiProvider.onApiReady((t=>{"youtube"===this.videoType&&this.prepareYTVideo(t,e),"vimeo"===this.videoType&&this.prepareVimeoVideo(t,e)}));else{this.videoType="hosted";const e=this.getElementSettings("background_video_start"),i=this.getElementSettings("background_video_end");(e||i)&&(t+="#t="+(e||0)+(i?","+i:"")),this.elements.$backgroundVideoHosted.attr("src",t).one("canplay",this.changeVideoSize.bind(this)),n&&this.elements.$backgroundVideoHosted.on("ended",(()=>{this.elements.$backgroundVideoHosted.hide()}))}elementorFrontend.elements.$window.on("resize",this.changeVideoSize)}deactivate(){"youtube"===this.videoType&&this.player.getIframe()||"vimeo"===this.videoType?this.player.destroy():this.elements.$backgroundVideoHosted.removeAttr("src").off("ended"),elementorFrontend.elements.$window.off("resize",this.changeVideoSize)}run(){const e=this.getElementSettings();(e.background_play_on_mobile||"mobile"!==elementorFrontend.getCurrentDeviceMode())&&("video"===e.background_background&&e.background_video_link?this.activate():this.deactivate())}onInit(...e){super.onInit(...e),this.changeVideoSize=this.changeVideoSize.bind(this),this.run()}onElementChange(e){"background_background"===e&&this.run()}}t.default=BackgroundVideo},355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class HandlesPosition extends elementorModules.frontend.handlers.Base{isActive(){return elementorFrontend.isEditMode()}isFirstSection(){return this.$element[0]===document.querySelector(".elementor-edit-mode .elementor-top-section")}isOverflowHidden(){return"hidden"===this.$element.css("overflow")}getOffset(){if("body"===elementor.config.document.container)return this.$element.offset().top;const e=jQuery(elementor.config.document.container);return this.$element.offset().top-e.offset().top}setHandlesPosition(){const e=elementor.documents.getCurrent();if(!e||!e.container.isEditable())return;const t="elementor-section--handles-inside",n=this.$element.find("> .elementor-element-overlay > .elementor-editor-section-settings");if(elementor.settings.page.model.attributes.scroll_snap)return void this.$element.addClass(t);const i=this.isOverflowHidden();if(!i&&!this.isFirstSection())return;const s=i?0:this.getOffset();s<25?(this.$element.addClass(t),s<-5?n.css("top",-s):n.css("top","")):this.$element.removeClass(t)}onInit(){this.isActive()&&(this.setHandlesPosition(),this.$element.on("mouseenter",this.setHandlesPosition.bind(this)))}}t.default=HandlesPosition},9320:(e,t,n)=>{"use strict";var i=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(4058)),o=i(n(2987)),r=i(n(355)),a=i(n(2804)),d=i(n(3384)),l=[a.default,s.default,o.default,r.default,d.default];t.default=l},3384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Shapes extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{container:"> .elementor-shape-%s"},svgURL:elementorFrontend.config.urls.assets+"shapes/"}}getDefaultElements(){const e={},t=this.getSettings("selectors");return e.$topContainer=this.$element.find(t.container.replace("%s","top")),e.$bottomContainer=this.$element.find(t.container.replace("%s","bottom")),e}isActive(){return elementorFrontend.isEditMode()}getSvgURL(e,t){let n=this.getSettings("svgURL")+t+".svg";return elementor.config.additional_shapes&&e in elementor.config.additional_shapes&&(n=elementor.config.additional_shapes[e],-1<t.indexOf("-negative")&&(n=n.replace(".svg","-negative.svg"))),n}buildSVG(e){const t="shape_divider_"+e,n=this.getElementSettings(t),i=this.elements["$"+e+"Container"];if(i.attr("data-shape",n),!n)return void i.empty();let s=n;this.getElementSettings(t+"_negative")&&(s+="-negative");const o=this.getSvgURL(n,s);jQuery.get(o,(e=>{i.empty().append(e.childNodes[0])})),this.setNegative(e)}setNegative(e){this.elements["$"+e+"Container"].attr("data-negative",!!this.getElementSettings("shape_divider_"+e+"_negative"))}onInit(...e){this.isActive(this.getSettings())&&(super.onInit(...e),["top","bottom"].forEach((e=>{this.getElementSettings("shape_divider_"+e)&&this.buildSVG(e)})))}onElementChange(e){const t=e.match(/^shape_divider_(top|bottom)$/);if(t)return void this.buildSVG(t[1]);const n=e.match(/^shape_divider_(top|bottom)_negative$/);n&&(this.buildSVG(n[1]),this.setNegative(n[1]))}}t.default=Shapes},2804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class StretchedSection extends elementorModules.frontend.handlers.Base{bindEvents(){const e=this.getUniqueHandlerID();elementorFrontend.addListenerOnce(e,"resize",this.stretch),elementorFrontend.addListenerOnce(e,"sticky:stick",this.stretch,this.$element),elementorFrontend.addListenerOnce(e,"sticky:unstick",this.stretch,this.$element),elementorFrontend.isEditMode()&&(this.onKitChangeStretchContainerChange=this.onKitChangeStretchContainerChange.bind(this),elementor.channels.editor.on("kit:change:stretchContainer",this.onKitChangeStretchContainerChange))}unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID(),"resize",this.stretch),elementorFrontend.isEditMode()&&elementor.channels.editor.off("kit:change:stretchContainer",this.onKitChangeStretchContainerChange)}isActive(e){return elementorFrontend.isEditMode()||e.$element.hasClass("elementor-section-stretched")}initStretch(){this.stretch=this.stretch.bind(this),this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.$element,selectors:{container:this.getStretchContainer()}})}getStretchContainer(){return elementorFrontend.getKitSettings("stretched_section_container")||window}stretch(){this.getElementSettings("stretch_section")&&this.stretchElement.stretch()}onInit(...e){this.isActive(this.getSettings())&&(this.initStretch(),super.onInit(...e),this.stretch())}onElementChange(e){"stretch_section"===e&&(this.getElementSettings("stretch_section")?this.stretch():this.stretchElement.reset())}onKitChangeStretchContainerChange(){this.stretchElement.setSettings("selectors.container",this.getStretchContainer()),this.stretch()}}t.default=StretchedSection},3346:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:function(){return{scrollDuration:500,selectors:{links:'a[href*="#"]',targets:".elementor-element, .elementor-menu-anchor",scrollable:"html, body"}}},getDefaultElements:function(){return{$scrollable:jQuery(this.getSettings("selectors").scrollable)}},bindEvents:function(){elementorFrontend.elements.$document.on("click",this.getSettings("selectors.links"),this.handleAnchorLinks)},handleAnchorLinks:function(e){var t,n=e.currentTarget,i=location.pathname===n.pathname;if(location.hostname===n.hostname&&i&&!(n.hash.length<2)){try{t=jQuery(n.hash).filter(this.getSettings("selectors.targets"))}catch(e){return}if(t.length){var s=t.offset().top,o=elementorFrontend.elements.$wpAdminBar,r=jQuery(".elementor-section.elementor-sticky--active:visible");o.length>0&&(s-=o.height()),r.length>0&&(s-=Math.max.apply(null,r.map((function(){return jQuery(this).outerHeight()})).get())),e.preventDefault(),s=elementorFrontend.hooks.applyFilters("frontend/handlers/menu_anchor/scroll_top_distance",s),this.elements.$scrollable.animate({scrollTop:s},this.getSettings("scrollDuration"),"linear")}}},onInit:function(){elementorModules.ViewModule.prototype.onInit.apply(this,arguments),this.bindEvents()}})},6866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class AssetsLoader{getScriptElement(e){const t=document.createElement("script");return t.src=e,t}getStyleElement(e){const t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}load(e,t){const n=AssetsLoader.assets[e][t];return n.loader||(n.loader=new Promise((t=>{const i="style"===e?this.getStyleElement(n.src):this.getScriptElement(n.src);i.onload=()=>t(!0);const s="head"===n.parent?n.parent:"body";document[s].appendChild(i)}))),n.loader}}t.default=AssetsLoader;const n=elementorFrontendConfig.environmentMode.isScriptDebug?"":".min";AssetsLoader.assets={script:{dialog:{src:`${elementorFrontendConfig.urls.assets}lib/dialog/dialog${n}.js?ver=4.8.1`},"share-link":{src:`${elementorFrontendConfig.urls.assets}lib/share-link/share-link${n}.js?ver=${elementorFrontendConfig.version}`},swiper:{src:`${elementorFrontendConfig.urls.assets}lib/swiper/swiper${n}.js?ver=5.3.6`}},style:{}}},8646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class LightboxManager extends elementorModules.ViewModule{static getLightbox(){const e=new Promise((e=>{n.e(723).then(n.t.bind(n,3896,23)).then((({default:t})=>e(new t)))})),t=elementorFrontend.utils.assetsLoader.load("script","dialog"),i=elementorFrontend.utils.assetsLoader.load("script","share-link");return Promise.all([e,t,i]).then((()=>e))}getDefaultSettings(){return{selectors:{links:"a, [data-elementor-lightbox]"}}}getDefaultElements(){return{$links:jQuery(this.getSettings("selectors.links"))}}isLightboxLink(e){if("a"===e.tagName.toLowerCase()&&(e.hasAttribute("download")||!/^[^?]+\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i.test(e.href))&&!e.dataset.elementorLightboxVideo)return!1;const t=elementorFrontend.getKitSettings("global_image_lightbox"),n=e.dataset.elementorOpenLightbox;return"yes"===n||t&&"no"!==n}async onLinkClick(e){const t=e.currentTarget,n=jQuery(e.target),i=elementorFrontend.isEditMode(),s=i&&elementor.$previewContents.find("body").hasClass("elementor-editor__ui-state__color-picker"),o=!!n.closest(".elementor-edit-area").length;if(!this.isLightboxLink(t))return void(i&&o&&e.preventDefault());if(e.preventDefault(),i&&!elementor.getPreferences("lightbox_in_editor"))return;if(s)return;(this.isOptimizedAssetsLoading()?await LightboxManager.getLightbox():elementorFrontend.utils.lightbox).createLightbox(t)}isOptimizedAssetsLoading(){return elementorFrontend.config.experimentalFeatures.e_optimized_assets_loading}bindEvents(){elementorFrontend.elements.$document.on("click",this.getSettings("selectors.links"),(e=>this.onLinkClick(e)))}onInit(...e){super.onInit(...e),this.isOptimizedAssetsLoading()&&!elementorFrontend.isEditMode()&&this.elements.$links.each(((e,t)=>{if(this.isLightboxLink(t))return LightboxManager.getLightbox(),!1}))}}t.default=LightboxManager},7139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class SwiperBC{constructor(e,t){return this.config=t,this.config.breakpoints&&(this.config=this.adjustConfig(t)),t.legacy?this.createSwiperInstance(e,this.config):new Promise((t=>{if(!elementorFrontend.config.experimentalFeatures.e_optimized_assets_loading)return t(this.createSwiperInstance(e,this.config));elementorFrontend.utils.assetsLoader.load("script","swiper").then((()=>t(this.createSwiperInstance(e,this.config))))}))}createSwiperInstance(e,t){return!SwiperBC.isSwiperLoaded&&elementorFrontend.config.experimentalFeatures.e_optimized_assets_loading&&(n=window.Swiper,SwiperBC.isSwiperLoaded=!0,legacySwiper()),n.prototype.adjustConfig=this.adjustConfig,new n(e,t)}adjustConfig(e){if(!e.handleElementorBreakpoints)return e;const t=elementorFrontend.config.responsive.activeBreakpoints,n=elementorFrontend.breakpoints.getBreakpointValues();return Object.keys(e.breakpoints).forEach((i=>{const s=parseInt(i);let o;if(s===t.mobile.value||s+1===t.mobile.value)o=0;else if(!t.widescreen||s!==t.widescreen.value&&s+1!==t.widescreen.value){const e=n.findIndex((e=>s===e||s+1===e));o=n[e-1]}else o=s;e.breakpoints[o]=e.breakpoints[i],e.breakpoints[i]={slidesPerView:e.slidesPerView,slidesPerGroup:e.slidesPerGroup?e.slidesPerGroup:1}})),e}}function legacySwiper(){window.Swiper=class{constructor(e,t){return t.legacy=!0,new SwiperBC(e,t)}}}t.default=SwiperBC,SwiperBC.isSwiperLoaded=!1;let n=window.Swiper;n&&legacySwiper()},2064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{links:'a[href^="%23elementor-action"], a[href^="#elementor-action"]'}}}bindEvents(){elementorFrontend.elements.$document.on("click",this.getSettings("selectors.links"),this.runLinkAction.bind(this))}initActions(){this.actions={lightbox:async e=>{const t=await elementorFrontend.utils.lightbox;e.id?t.openSlideshow(e.id,e.url):t.showModal(e)}}}addAction(e,t){this.actions[e]=t}runAction(e,...t){const n=(e=decodeURIComponent(e)).match(/action=(.+?)&/),i=e.match(/settings=(.+)/);if(!n)return;const s=this.actions[n[1]];if(!s)return;let o={};i&&(o=JSON.parse(atob(i[1]))),s(o,...t)}runLinkAction(e){e.preventDefault(),this.runAction(jQuery(e.currentTarget).attr("href"),e)}runHashAction(){location.hash&&this.runAction(location.hash)}createActionHash(e,t){return encodeURIComponent(`#elementor-action:action=${e}&settings=${btoa(JSON.stringify(t))}`)}onInit(){super.onInit(),this.initActions(),elementorFrontend.on("components:init",this.runHashAction.bind(this))}}t.default=_default},6028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeHTML=void 0;t.escapeHTML=e=>{const t={"&":"&","<":"<",">":">","'":"'",'"':"""};return e.replace(/[&<>'"]/g,(e=>t[e]||e))}},4773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class BaseLoader extends elementorModules.ViewModule{getDefaultSettings(){return{isInserted:!1,selectors:{firstScript:"script:first"}}}getDefaultElements(){return{$firstScript:jQuery(this.getSettings("selectors.firstScript"))}}insertAPI(){this.elements.$firstScript.before(jQuery("<script>",{src:this.getApiURL()})),this.setSettings("isInserted",!0)}getVideoIDFromURL(e){const t=e.match(this.getURLRegex());return t&&t[1]}onApiReady(e){this.getSettings("isInserted")||this.insertAPI(),this.isApiLoaded()?e(this.getApiObject()):setTimeout((()=>{this.onApiReady(e)}),350)}getAutoplayURL(e){return e.replace("&autoplay=0","")+"&autoplay=1"}}t.default=BaseLoader},1911:(e,t,n)=>{"use strict";var i=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(4773));class VimeoLoader extends s.default{getApiURL(){return"https://player.vimeo.com/api/player.js"}getURLRegex(){return/^(?:https?:\/\/)?(?:www|player\.)?(?:vimeo\.com\/)?(?:video\/|external\/)?(\d+)([^.?&#"'>]?)/}isApiLoaded(){return window.Vimeo}getApiObject(){return Vimeo}getAutoplayURL(e){const t=(e=super.getAutoplayURL(e)).match(/#t=[^&]*/);return e.replace(t[0],"")+t}}t.default=VimeoLoader},1604:(e,t,n)=>{"use strict";var i=n(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(n(4773));class YoutubeLoader extends s.default{getApiURL(){return"https://www.youtube.com/iframe_api"}getURLRegex(){return/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?vi?=|(?:embed|v|vi|user)\/))([^?&"'>]+)/}isApiLoaded(){return window.YT&&YT.loaded}getApiObject(){return YT}}t.default=YoutubeLoader},59:(e,t,n)=>{"use strict";n.p=elementorFrontendConfig.urls.assets+"js/"},4375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Breakpoints extends elementorModules.Module{constructor(e){super(),this.responsiveConfig=e}getActiveBreakpointsList(e={}){e={largeToSmall:!1,withDesktop:!1,...e};const t=Object.keys(this.responsiveConfig.activeBreakpoints);if(e.withDesktop){const e=-1===t.indexOf("widescreen")?t.length:t.length-1;t.splice(e,0,"desktop")}return e.largeToSmall&&t.reverse(),t}getBreakpointValues(){const{activeBreakpoints:e}=this.responsiveConfig,t=[];return Object.values(e).forEach((e=>{t.push(e.value)})),t}getDesktopPreviousDeviceKey(){let e="";const{activeBreakpoints:t}=this.responsiveConfig,n=Object.keys(t),i=n.length;return e="min"===t[n[i-1]].direction?n[i-2]:n[i-1],e}getDesktopMinPoint(){const{activeBreakpoints:e}=this.responsiveConfig;return e[this.getDesktopPreviousDeviceKey()].value+1}getDeviceMinBreakpoint(e){if("desktop"===e)return this.getDesktopMinPoint();const{activeBreakpoints:t}=this.responsiveConfig,n=Object.keys(t);let i;if(n[0]===e)i=320;else if("widescreen"===e)i=t[e]?t[e].value:this.responsiveConfig.breakpoints.widescreen;else{const s=n.indexOf(e);i=t[n[s-1]].value+1}return i}getActiveMatchRegex(){return new RegExp(this.getActiveBreakpointsList().map((e=>"_"+e)).join("|")+"$")}}t.default=Breakpoints},9469:e=>{"use strict";e.exports=function(){var e,t=Array.prototype.slice,n={actions:{},filters:{}};function _removeHook(e,t,i,s){var o,r,a;if(n[e][t])if(i)if(o=n[e][t],s)for(a=o.length;a--;)(r=o[a]).callback===i&&r.context===s&&o.splice(a,1);else for(a=o.length;a--;)o[a].callback===i&&o.splice(a,1);else n[e][t]=[]}function _addHook(e,t,i,s,o){var r={callback:i,priority:s,context:o},a=n[e][t];if(a){var d=!1;if(jQuery.each(a,(function(){if(this.callback===i)return d=!0,!1})),d)return;a.push(r),a=function _hookInsertSort(e){for(var t,n,i,s=1,o=e.length;s<o;s++){for(t=e[s],n=s;(i=e[n-1])&&i.priority>t.priority;)e[n]=e[n-1],--n;e[n]=t}return e}(a)}else a=[r];n[e][t]=a}function _runHook(e,t,i){var s,o,r=n[e][t];if(!r)return"filters"===e&&i[0];if(o=r.length,"filters"===e)for(s=0;s<o;s++)i[0]=r[s].callback.apply(r[s].context,i);else for(s=0;s<o;s++)r[s].callback.apply(r[s].context,i);return"filters"!==e||i[0]}return e={removeFilter:function removeFilter(t,n){return"string"==typeof t&&_removeHook("filters",t,n),e},applyFilters:function applyFilters(){var n=t.call(arguments),i=n.shift();return"string"==typeof i?_runHook("filters",i,n):e},addFilter:function addFilter(t,n,i,s){return"string"==typeof t&&"function"==typeof n&&_addHook("filters",t,n,i=parseInt(i||10,10),s),e},removeAction:function removeAction(t,n){return"string"==typeof t&&_removeHook("actions",t,n),e},doAction:function doAction(){var n=t.call(arguments),i=n.shift();return"string"==typeof i&&_runHook("actions",i,n),e},addAction:function addAction(t,n,i,s){return"string"==typeof t&&"function"==typeof n&&_addHook("actions",t,n,i=parseInt(i||10,10),s),e}}}},3308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const matchUserAgent=e=>n.indexOf(e)>=0,n=navigator.userAgent,i=!!window.opr&&!!opr.addons||!!window.opera||matchUserAgent(" OPR/"),s=matchUserAgent("Firefox"),o=/^((?!chrome|android).)*safari/i.test(n)||/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&safari.pushNotification).toString(),r=/Trident|MSIE/.test(n)&&!!document.documentMode,a=!r&&!!window.StyleMedia||matchUserAgent("Edg"),d=!!window.chrome&&matchUserAgent("Chrome")&&!(a||i),l=matchUserAgent("Chrome")&&!!window.CSS;var c={appleWebkit:matchUserAgent("AppleWebKit")&&!l,blink:l,chrome:d,edge:a,firefox:s,ie:r,mac:matchUserAgent("Macintosh"),opera:i,safari:o,webkit:matchUserAgent("AppleWebKit")};t.default=c},5107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{get(e,t){let n;t=t||{};try{n=t.session?sessionStorage:localStorage}catch(t){return e?void 0:{}}let i=n.getItem("elementor");i=i?JSON.parse(i):{},i.__expiration||(i.__expiration={});const s=i.__expiration;let o=[];e?s[e]&&(o=[e]):o=Object.keys(s);let r=!1;return o.forEach((e=>{new Date(s[e])<new Date&&(delete i[e],delete s[e],r=!0)})),r&&this.save(i,t.session),e?i[e]:i}set(e,t,n){n=n||{};const i=this.get(null,n);if(i[e]=t,n.lifetimeInSeconds){const t=new Date;t.setTime(t.getTime()+1e3*n.lifetimeInSeconds),i.__expiration[e]=t.getTime()}this.save(i,n.session)}save(e,t){let n;try{n=t?sessionStorage:localStorage}catch(e){return}n.setItem("elementor",JSON.stringify(e))}}t.default=_default},6046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("text-path",(()=>n.e(48).then(n.bind(n,6468))))}}t.default=_default}},e=>{"use strict";e.O(0,[354],(()=>{return t=5654,e(e.s=t);var t}));e.O()}]);
/*! elementor-pro - v3.3.0 - 06-06-2021 */
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[995,26,534,369,804,888,680,121,288,42,50,287,824,58,114,443,838,685,858,102],{9117:(e,t,n)=>{var i=n(3220);function asyncGeneratorStep(e,t,n,a,s,r,o){try{var l=e[r](o),u=l.value}catch(e){return void n(e)}l.done?t(u):i.resolve(u).then(a,s)}e.exports=function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new i((function(i,a){var s=e.apply(t,n);function _next(e){asyncGeneratorStep(s,i,a,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,i,a,_next,_throw,"throw",e)}_next(void 0)}))}}},7135:(e,t,n)=>{e.exports=n(6248)},6070:(e,t,n)=>{"use strict";var i=n(7971),a=i(n(4899)),s=i(n(9459)),r=i(n(5442)),o=i(n(7950)),l=i(n(4337)),u=i(n(3786)),d=i(n(1853)),c=i(n(9698)),h=i(n(9122)),m=i(n(651)),f=i(n(4484)),g=i(n(7990)),p=i(n(5056)),v=i(n(2189)),_=i(n(4429)),y=i(n(9940)),S=i(n(9874)),k=i(n(4269)),b=function extendDefaultHandlers(e){var t={animatedText:s.default,carousel:r.default,countdown:o.default,form:l.default,gallery:u.default,hotspot:d.default,lottie:c.default,nav_menu:h.default,popup:m.default,posts:f.default,share_buttons:g.default,slides:p.default,social:v.default,themeBuilder:y.default,themeElements:S.default,woocommerce:k.default,tableOfContents:_.default};return(0,a.default)((0,a.default)({},e),t)};elementorProFrontend.on("elementor-pro/modules/init:before",(function(){elementorFrontend.hooks.addFilter("elementor-pro/frontend/handlers",b)}))},9237:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0,window.elementorCommon&&window.elementorCommon.helpers.softDeprecated('Scroll util from "/dev/js/frontend/utils/scroll"',"3.1.0","elementorModules.utils.Scroll");var i=elementorModules.utils.Scroll;t.default=i},9459:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(7750)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("animated-headline",o.default),e}return _default}(elementorModules.Module);t.default=l},7750:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(9236),n(1954);var a=i(n(9237)),s=elementorModules.frontend.handlers.Base.extend({svgPaths:{circle:["M325,18C228.7-8.3,118.5,8.3,78,21C22.4,38.4,4.6,54.6,5.6,77.6c1.4,32.4,52.2,54,142.6,63.7 c66.2,7.1,212.2,7.5,273.5-8.3c64.4-16.6,104.3-57.6,33.8-98.2C386.7-4.9,179.4-1.4,126.3,20.7"],underline_zigzag:["M9.3,127.3c49.3-3,150.7-7.6,199.7-7.4c121.9,0.4,189.9,0.4,282.3,7.2C380.1,129.6,181.2,130.6,70,139 c82.6-2.9,254.2-1,335.9,1.3c-56,1.4-137.2-0.3-197.1,9"],x:["M497.4,23.9C301.6,40,155.9,80.6,4,144.4","M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7"],strikethrough:["M3,75h493.5"],curly:["M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6"],diagonal:["M13.5,15.5c131,13.7,289.3,55.5,475,125.5"],double:["M8.4,143.1c14.2-8,97.6-8.8,200.6-9.2c122.3-0.4,287.5,7.2,287.5,7.2","M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8"],double_underline:["M5,125.4c30.5-3.8,137.9-7.6,177.3-7.6c117.2,0,252.2,4.7,312.7,7.6","M26.9,143.8c55.1-6.1,126-6.3,162.2-6.1c46.5,0.2,203.9,3.2,268.9,6.4"],underline:["M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7"]},getDefaultSettings:function getDefaultSettings(){var e=this.getElementSettings("rotate_iteration_delay"),t={animationDelay:e||2500,lettersDelay:.02*e||50,typeLettersDelay:.06*e||150,selectionDuration:.2*e||500,revealDuration:.24*e||600,revealAnimationDelay:.6*e||1500,highlightAnimationDuration:this.getElementSettings("highlight_animation_duration")||1200,highlightAnimationDelay:this.getElementSettings("highlight_iteration_delay")||8e3};return t.typeAnimationDelay=t.selectionDuration+800,t.selectors={headline:".elementor-headline",dynamicWrapper:".elementor-headline-dynamic-wrapper",dynamicText:".elementor-headline-dynamic-text"},t.classes={dynamicText:"elementor-headline-dynamic-text",dynamicLetter:"elementor-headline-dynamic-letter",textActive:"elementor-headline-text-active",textInactive:"elementor-headline-text-inactive",letters:"elementor-headline-letters",animationIn:"elementor-headline-animation-in",typeSelected:"elementor-headline-typing-selected",activateHighlight:"e-animated",hideHighlight:"e-hide-highlight"},t},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors");return{$headline:this.$element.find(e.headline),$dynamicWrapper:this.$element.find(e.dynamicWrapper),$dynamicText:this.$element.find(e.dynamicText)}},getNextWord:function getNextWord(e){return e.is(":last-child")?e.parent().children().eq(0):e.next()},switchWord:function switchWord(e,t){e.removeClass("elementor-headline-text-active").addClass("elementor-headline-text-inactive"),t.removeClass("elementor-headline-text-inactive").addClass("elementor-headline-text-active"),this.setDynamicWrapperWidth(t)},singleLetters:function singleLetters(){var e=this.getSettings("classes");this.elements.$dynamicText.each((function(){var t=jQuery(this),n=t.text().split(""),i=t.hasClass(e.textActive);t.empty(),n.forEach((function(n){var a=jQuery("<span>",{class:e.dynamicLetter}).text(n);i&&a.addClass(e.animationIn),t.append(a)})),t.css("opacity",1)}))},showLetter:function showLetter(e,t,n,i){var a=this,s=this.getSettings("classes");e.addClass(s.animationIn),e.is(":last-child")?n||setTimeout((function(){a.hideWord(t)}),a.getSettings("animationDelay")):setTimeout((function(){a.showLetter(e.next(),t,n,i)}),i)},hideLetter:function hideLetter(e,t,n,i){var a=this,s=this.getSettings();e.removeClass(s.classes.animationIn),e.is(":last-child")?n&&setTimeout((function(){a.hideWord(a.getNextWord(t))}),a.getSettings("animationDelay")):setTimeout((function(){a.hideLetter(e.next(),t,n,i)}),i)},showWord:function showWord(e,t){var n=this,i=n.getSettings(),a=n.getElementSettings("animation_type");"typing"===a?(n.showLetter(e.find("."+i.classes.dynamicLetter).eq(0),e,!1,t),e.addClass(i.classes.textActive).removeClass(i.classes.textInactive)):"clip"===a&&n.elements.$dynamicWrapper.animate({width:e.width()+10},i.revealDuration,(function(){setTimeout((function(){n.hideWord(e)}),i.revealAnimationDelay)}))},hideWord:function hideWord(e){var t=this,n=t.getSettings(),i=n.classes,a="."+i.dynamicLetter,s=t.getElementSettings("animation_type"),r=t.getNextWord(e);if(this.isLoopMode||!e.is(":last-child"))if("typing"===s)t.elements.$dynamicWrapper.addClass(i.typeSelected),setTimeout((function(){t.elements.$dynamicWrapper.removeClass(i.typeSelected),e.addClass(n.classes.textInactive).removeClass(i.textActive).children(a).removeClass(i.animationIn)}),n.selectionDuration),setTimeout((function(){t.showWord(r,n.typeLettersDelay)}),n.typeAnimationDelay);else if(t.elements.$headline.hasClass(i.letters)){var o=e.children(a).length>=r.children(a).length;t.hideLetter(e.find(a).eq(0),e,o,n.lettersDelay),t.showLetter(r.find(a).eq(0),r,o,n.lettersDelay),t.setDynamicWrapperWidth(r)}else"clip"===s?t.elements.$dynamicWrapper.animate({width:"2px"},n.revealDuration,(function(){t.switchWord(e,r),t.showWord(r)})):(t.switchWord(e,r),setTimeout((function(){t.hideWord(r)}),n.animationDelay))},setDynamicWrapperWidth:function setDynamicWrapperWidth(e){var t=this.getElementSettings("animation_type");"clip"!==t&&"typing"!==t&&this.elements.$dynamicWrapper.css("width",e.width())},animateHeadline:function animateHeadline(){var e=this,t=e.getElementSettings("animation_type"),n=e.elements.$dynamicWrapper;"clip"===t?n.width(n.width()+10):"typing"!==t&&e.setDynamicWrapperWidth(e.elements.$dynamicText),setTimeout((function(){e.hideWord(e.elements.$dynamicText.eq(0))}),e.getSettings("animationDelay"))},getSvgPaths:function getSvgPaths(e){var t=this.svgPaths[e],n=jQuery();return t.forEach((function(e){n=n.add(jQuery("<path>",{d:e}))})),n},addHighlight:function addHighlight(){var e=this.getElementSettings(),t=jQuery("<svg>",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"}).html(this.getSvgPaths(e.marker));this.elements.$dynamicWrapper.append(t[0].outerHTML)},rotateHeadline:function rotateHeadline(){var e=this.getSettings();this.elements.$headline.hasClass(e.classes.letters)&&this.singleLetters(),this.animateHeadline()},initHeadline:function initHeadline(){var e=this.getElementSettings("headline_style");"rotate"===e?this.rotateHeadline():"highlight"===e&&(this.addHighlight(),this.activateHighlightAnimation()),this.deactivateScrollListener()},activateHighlightAnimation:function activateHighlightAnimation(){var e=this,t=this.getSettings(),n=t.classes,i=this.elements.$headline;i.removeClass(n.hideHighlight).addClass(n.activateHighlight),this.isLoopMode&&(setTimeout((function(){i.removeClass(n.activateHighligh).addClass(n.hideHighlight)}),t.highlightAnimationDuration+.8*t.highlightAnimationDelay),setTimeout((function(){e.activateHighlightAnimation(!1)}),t.highlightAnimationDuration+t.highlightAnimationDelay))},activateScrollListener:function activateScrollListener(){var e=this;this.intersectionObservers.startAnimation.observer=a.default.scrollObserver({offset:"0px 0px ".concat(-100,"px"),callback:function callback(t){t.isInViewport&&e.initHeadline()}}),this.intersectionObservers.startAnimation.element=this.elements.$headline[0],this.intersectionObservers.startAnimation.observer.observe(this.intersectionObservers.startAnimation.element)},deactivateScrollListener:function deactivateScrollListener(){this.intersectionObservers.startAnimation.observer.unobserve(this.intersectionObservers.startAnimation.element)},onInit:function onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.intersectionObservers={startAnimation:{observer:null,element:null}},this.isLoopMode="yes"===this.getElementSettings("loop"),this.activateScrollListener()}});t.default=s},5442:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(7393)),l=i(n(1507)),u=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("media-carousel",o.default),elementorFrontend.elementsHandler.attachHandler("testimonial-carousel",l.default),elementorFrontend.elementsHandler.attachHandler("reviews",l.default),e}return _default}(elementorModules.Module);t.default=u},2539:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(7135));n(6248);var s=i(n(9117));n(4828),n(1954);var r=i(n(1959)),o=i(n(9041)),l=i(n(7371)),u=i(n(8537)),d=function(e){(0,l.default)(CarouselBase,e);var t,n=(0,u.default)(CarouselBase);function CarouselBase(){return(0,r.default)(this,CarouselBase),n.apply(this,arguments)}return(0,o.default)(CarouselBase,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{swiperContainer:".elementor-main-swiper",swiperSlide:".swiper-slide"},slidesPerView:{desktop:3,tablet:2,mobile:1}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.swiperContainer)};return t.$slides=t.$swiperContainer.find(e.swiperSlide),t}},{key:"getEffect",value:function getEffect(){return this.getElementSettings("effect")}},{key:"getDeviceSlidesPerView",value:function getDeviceSlidesPerView(e){var t="slides_per_view"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getElementSettings(t)||this.getSettings("slidesPerView")[e])}},{key:"getSlidesPerView",value:function getSlidesPerView(e){return"slide"===this.getEffect()?this.getDeviceSlidesPerView(e):1}},{key:"getDeviceSlidesToScroll",value:function getDeviceSlidesToScroll(e){var t="slides_to_scroll"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getElementSettings(t)||1)}},{key:"getSlidesToScroll",value:function getSlidesToScroll(e){return"slide"===this.getEffect()?this.getDeviceSlidesToScroll(e):1}},{key:"getSpaceBetween",value:function getSpaceBetween(e){var t="space_between";return e&&"desktop"!==e&&(t+="_"+e),this.getElementSettings(t).size||0}},{key:"getSwiperOptions",value:function getSwiperOptions(){var e=this.getElementSettings(),t={grabCursor:!0,initialSlide:this.getInitialSlide(),slidesPerView:this.getSlidesPerView("desktop"),slidesPerGroup:this.getSlidesToScroll("desktop"),spaceBetween:this.getSpaceBetween(),loop:"yes"===e.loop,speed:e.speed,effect:this.getEffect(),preventClicksPropagation:!1,slideToClickedSlide:!0,handleElementorBreakpoints:!0};if(e.show_arrows&&(t.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),e.pagination&&(t.pagination={el:".swiper-pagination",type:e.pagination,clickable:!0}),"cube"!==this.getEffect()){var n={},i=elementorFrontend.config.breakpoints;n[i.lg-1]={slidesPerView:this.getSlidesPerView("tablet"),slidesPerGroup:this.getSlidesToScroll("tablet"),spaceBetween:this.getSpaceBetween("tablet")},n[i.md-1]={slidesPerView:this.getSlidesPerView("mobile"),slidesPerGroup:this.getSlidesToScroll("mobile"),spaceBetween:this.getSpaceBetween("mobile")},t.breakpoints=n}return!this.isEdit&&e.autoplay&&(t.autoplay={delay:e.autoplay_speed,disableOnInteraction:!!e.pause_on_interaction}),t}},{key:"updateSpaceBetween",value:function updateSpaceBetween(e){var t=e.match("space_between_(.*)"),n=t?t[1]:"desktop",i=this.getSpaceBetween(n),a=elementorFrontend.config.breakpoints;if("desktop"!==n){var s={tablet:a.lg-1,mobile:a.md-1};this.swiper.params.breakpoints[s[n]].spaceBetween=i}else this.swiper.params.spaceBetween=i;this.swiper.params.spaceBetween=i,this.swiper.update()}},{key:"onInit",value:(t=(0,s.default)(a.default.mark((function _callee(){var e,t,n=arguments;return a.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:if(elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,n),e=this.getElementSettings(),!(1>=this.getSlidesCount())){i.next=4;break}return i.abrupt("return");case 4:return t=elementorFrontend.utils.swiper,i.next=7,new t(this.elements.$swiperContainer,this.getSwiperOptions());case 7:this.swiper=i.sent,"yes"===e.pause_on_hover&&this.togglePauseOnHover(!0),this.elements.$swiperContainer.data("swiper",this.swiper);case 10:case"end":return i.stop()}}),_callee,this)}))),function onInit(){return t.apply(this,arguments)})},{key:"getChangeableProperties",value:function getChangeableProperties(){return{autoplay:"autoplay",pause_on_hover:"pauseOnHover",pause_on_interaction:"disableOnInteraction",autoplay_speed:"delay",speed:"speed",width:"width"}}},{key:"updateSwiperOption",value:function updateSwiperOption(e){if(0!==e.indexOf("width")){var t=this.getElementSettings(),n=t[e],i=this.getChangeableProperties()[e],a=n;switch(e){case"autoplay":a=!!n&&{delay:t.autoplay_speed,disableOnInteraction:"yes"===t.pause_on_interaction};break;case"autoplay_speed":i="autoplay",a={delay:n,disableOnInteraction:"yes"===t.pause_on_interaction};break;case"pause_on_hover":this.togglePauseOnHover("yes"===n);break;case"pause_on_interaction":a="yes"===n}"pause_on_hover"!==e&&(this.swiper.params[i]=a),this.swiper.update()}else this.swiper.update()}},{key:"onElementChange",value:function onElementChange(e){if(!(1>=this.getSlidesCount())){if(0===e.indexOf("width"))return this.swiper.update(),void(this.thumbsSwiper&&this.thumbsSwiper.update());if(0!==e.indexOf("space_between"))this.getChangeableProperties().hasOwnProperty(e)&&this.updateSwiperOption(e);else this.updateSpaceBetween(e)}}},{key:"onEditSettingsChange",value:function onEditSettingsChange(e){1>=this.getSlidesCount()||"activeItemIndex"===e&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}}]),CarouselBase}(elementorModules.frontend.handlers.SwiperBase);t.default=d},7393:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(7135));n(6248);var s=i(n(9117));n(1954);var r=i(n(1959)),o=i(n(9041)),l=i(n(6700)),u=i(n(4263)),d=i(n(7371)),c=i(n(8537)),h=function(e){(0,d.default)(MediaCarousel,e);var t,n=(0,c.default)(MediaCarousel);function MediaCarousel(){return(0,r.default)(this,MediaCarousel),n.apply(this,arguments)}return(0,o.default)(MediaCarousel,[{key:"isSlideshow",value:function isSlideshow(){return"slideshow"===this.getElementSettings("skin")}},{key:"getDefaultSettings",value:function getDefaultSettings(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=(e=(0,l.default)((0,u.default)(MediaCarousel.prototype),"getDefaultSettings",this)).call.apply(e,[this].concat(n));return this.isSlideshow()&&(a.selectors.thumbsSwiper=".elementor-thumbnails-swiper",a.slidesPerView={desktop:5,tablet:4,mobile:3}),a}},{key:"getElementSettings",value:function getElementSettings(e){return-1!==["slides_per_view","slides_per_view_tablet","slides_per_view_mobile"].indexOf(e)&&this.isSlideshow()&&(e="slideshow_"+e),(0,l.default)((0,u.default)(MediaCarousel.prototype),"getElementSettings",this).call(this,e)}},{key:"getDefaultElements",value:function getDefaultElements(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=this.getSettings("selectors"),s=(e=(0,l.default)((0,u.default)(MediaCarousel.prototype),"getDefaultElements",this)).call.apply(e,[this].concat(n));return this.isSlideshow()&&(s.$thumbsSwiper=this.$element.find(a.thumbsSwiper)),s}},{key:"getEffect",value:function getEffect(){return"coverflow"===this.getElementSettings("skin")?"coverflow":(0,l.default)((0,u.default)(MediaCarousel.prototype),"getEffect",this).call(this)}},{key:"getSlidesPerView",value:function getSlidesPerView(e){return this.isSlideshow()?1:"coverflow"===this.getElementSettings("skin")?this.getDeviceSlidesPerView(e):(0,l.default)((0,u.default)(MediaCarousel.prototype),"getSlidesPerView",this).call(this,e)}},{key:"getSwiperOptions",value:function getSwiperOptions(){var e=(0,l.default)((0,u.default)(MediaCarousel.prototype),"getSwiperOptions",this).call(this);return this.isSlideshow()&&(e.loopedSlides=this.getSlidesCount(),delete e.pagination,delete e.breakpoints),e}},{key:"onInit",value:(t=(0,s.default)(a.default.mark((function _callee(){var e,t,n,i,s,r,o,d;return a.default.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:if((0,l.default)((0,u.default)(MediaCarousel.prototype),"onInit",this).call(this),e=this.getSlidesCount(),this.isSlideshow()&&!(1>=e)){a.next=4;break}return a.abrupt("return");case 4:return t=this.getElementSettings(),n="yes"===t.loop,i={},s=elementorFrontend.config.breakpoints,r=this.getDeviceSlidesPerView("desktop"),i[s.lg-1]={slidesPerView:this.getDeviceSlidesPerView("tablet"),spaceBetween:this.getSpaceBetween("tablet")},i[s.md-1]={slidesPerView:this.getDeviceSlidesPerView("mobile"),spaceBetween:this.getSpaceBetween("mobile")},o={slidesPerView:r,initialSlide:this.getInitialSlide(),centeredSlides:t.centered_slides,slideToClickedSlide:!0,spaceBetween:this.getSpaceBetween(),loopedSlides:e,loop:n,breakpoints:i,handleElementorBreakpoints:!0},d=elementorFrontend.utils.swiper,a.next=11,new d(this.elements.$thumbsSwiper,o);case 11:this.swiper.controller.control=this.thumbsSwiper=a.sent,this.elements.$thumbsSwiper.data("swiper",this.thumbsSwiper),this.thumbsSwiper.controller.control=this.swiper;case 14:case"end":return a.stop()}}),_callee,this)}))),function onInit(){return t.apply(this,arguments)})}]),MediaCarousel}(i(n(2539)).default);t.default=h},1507:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(6700)),o=i(n(4263)),l=i(n(7371)),u=i(n(8537)),d=function(e){(0,l.default)(TestimonialCarousel,e);var t=(0,u.default)(TestimonialCarousel);function TestimonialCarousel(){return(0,a.default)(this,TestimonialCarousel),t.apply(this,arguments)}return(0,s.default)(TestimonialCarousel,[{key:"getDefaultSettings",value:function getDefaultSettings(){var e=(0,r.default)((0,o.default)(TestimonialCarousel.prototype),"getDefaultSettings",this).call(this);return e.slidesPerView={desktop:1,tablet:1,mobile:1},e.loop&&(e.loopedSlides=this.getSlidesCount()),e}},{key:"getEffect",value:function getEffect(){return"slide"}}]),TestimonialCarousel}(i(n(2539)).default);t.default=d},7950:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(7097)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("countdown",o.default),e}return _default}(elementorModules.Module);t.default=l},7097:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(4176));n(4321),n(6139),n(1954);var s=elementorModules.frontend.handlers.Base.extend({cache:null,cacheElements:function cacheElements(){var e=this.$element.find(".elementor-countdown-wrapper");this.cache={$countDown:e,timeInterval:null,elements:{$countdown:e.find(".elementor-countdown-wrapper"),$daysSpan:e.find(".elementor-countdown-days"),$hoursSpan:e.find(".elementor-countdown-hours"),$minutesSpan:e.find(".elementor-countdown-minutes"),$secondsSpan:e.find(".elementor-countdown-seconds"),$expireMessage:e.parent().find(".elementor-countdown-expire--message")},data:{id:this.$element.data("id"),endTime:new Date(1e3*e.data("date")),actions:e.data("expire-actions"),evergreenInterval:e.data("evergreen-interval")}}},onInit:function onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.cacheElements(),0<this.cache.data.evergreenInterval&&(this.cache.data.endTime=this.getEvergreenDate()),this.initializeClock()},updateClock:function updateClock(){var e=this,t=this.getTimeRemaining(this.cache.data.endTime);jQuery.each(t.parts,(function(t){var n=e.cache.elements["$"+t+"Span"],i=this.toString();1===i.length&&(i=0+i),n.length&&n.text(i)})),t.total<=0&&(clearInterval(this.cache.timeInterval),this.runActions())},initializeClock:function initializeClock(){var e=this;this.updateClock(),this.cache.timeInterval=setInterval((function(){e.updateClock()}),1e3)},runActions:function runActions(){var e=this;e.$element.trigger("countdown_expire",e.$element),this.cache.data.actions&&this.cache.data.actions.forEach((function(t){switch(t.type){case"hide":e.cache.$countDown.hide();break;case"redirect":t.redirect_url&&(window.location.href=t.redirect_url);break;case"message":e.cache.elements.$expireMessage.show()}}))},getTimeRemaining:function getTimeRemaining(e){var t=e-new Date,n=Math.floor(t/1e3%60),i=Math.floor(t/1e3/60%60),a=Math.floor(t/36e5%24),s=Math.floor(t/864e5);return(s<0||a<0||i<0)&&(n=i=a=s=0),{total:t,parts:{days:s,hours:a,minutes:i,seconds:n}}},getEvergreenDate:function getEvergreenDate(){var e=this,t=this.cache.data.id,n=this.cache.data.evergreenInterval,i=t+"-evergreen_due_date",s=t+"-evergreen_interval",r={dueDate:localStorage.getItem(i),interval:localStorage.getItem(s)},o=function initEvergreen(){var t=new Date;return e.cache.data.endTime=t.setSeconds(t.getSeconds()+n),localStorage.setItem(i,e.cache.data.endTime),localStorage.setItem(s,n),e.cache.data.endTime};return null===r.dueDate&&null===r.interval||null!==r.dueDate&&n!==(0,a.default)(r.interval,10)?o():r.dueDate>0&&(0,a.default)(r.interval,10)===n?r.dueDate:void 0}});t.default=s},4337:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(9706)),l=i(n(7300)),u=i(n(611)),d=i(n(9228)),c=i(n(4610)),h=i(n(6374)),m=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;(0,a.default)(this,_default),e=t.call(this);var n=[o.default,l.default,u.default];return elementorFrontend.elementsHandler.attachHandler("form",[].concat(n,[d.default,c.default,h.default])),elementorFrontend.elementsHandler.attachHandler("subscribe",n),e}return _default}(elementorModules.Module);t.default=m},8906:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var a=i(n(1959)),s=i(n(9041)),r=i(n(6700)),o=i(n(4263)),l=i(n(7371)),u=i(n(8537)),d=function(e){(0,l.default)(DataTimeFieldBase,e);var t=(0,u.default)(DataTimeFieldBase);function DataTimeFieldBase(){return(0,a.default)(this,DataTimeFieldBase),t.apply(this,arguments)}return(0,s.default)(DataTimeFieldBase,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{fields:this.getFieldsSelector()},classes:{useNative:"elementor-use-native"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getDefaultSettings().selectors;return{$fields:this.$element.find(e.fields)}}},{key:"addPicker",value:function addPicker(e){var t=this.getDefaultSettings().classes;jQuery(e).hasClass(t.useNative)||e.flatpickr(this.getPickerOptions(e))}},{key:"onInit",value:function onInit(){for(var e,t=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(e=(0,r.default)((0,o.default)(DataTimeFieldBase.prototype),"onInit",this)).call.apply(e,[this].concat(i)),this.elements.$fields.each((function(e,n){return t.addPicker(n)}))}}]),DataTimeFieldBase}(elementorModules.frontend.handlers.Base);t.default=d},4610:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(DateField,e);var t=(0,o.default)(DateField);function DateField(){return(0,a.default)(this,DateField),t.apply(this,arguments)}return(0,s.default)(DateField,[{key:"getFieldsSelector",value:function getFieldsSelector(){return".elementor-date-field"}},{key:"getPickerOptions",value:function getPickerOptions(e){var t=jQuery(e);return{minDate:t.attr("min")||null,maxDate:t.attr("max")||null,allowInput:!0}}}]),DateField}(i(n(8906)).default);t.default=l},6374:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(TimeField,e);var t=(0,o.default)(TimeField);function TimeField(){return(0,a.default)(this,TimeField),t.apply(this,arguments)}return(0,s.default)(TimeField,[{key:"getFieldsSelector",value:function getFieldsSelector(){return".elementor-time-field"}},{key:"getPickerOptions",value:function getPickerOptions(){return{noCalendar:!0,enableTime:!0,allowInput:!0}}}]),TimeField}(i(n(8906)).default);t.default=l},611:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var i=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function getDefaultSettings(){return{selectors:{form:".elementor-form"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$form=this.$element.find(e.form),t},bindEvents:function bindEvents(){this.elements.$form.on("form_destruct",this.handleSubmit)},handleSubmit:function handleSubmit(e,t){void 0!==t.data.redirect_url&&(location.href=t.data.redirect_url)}});t.default=i},7300:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(4321),n(6139);var a=i(n(4176));n(1954);var s=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function getDefaultSettings(){return{selectors:{form:".elementor-form",submitButton:'[type="submit"]'},action:"elementor_pro_forms_send_form",ajaxUrl:elementorProFrontend.config.ajaxurl}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$form=this.$element.find(e.form),t.$submitButton=t.$form.find(e.submitButton),t},bindEvents:function bindEvents(){this.elements.$form.on("submit",this.handleSubmit);var e=this.elements.$form.find("input[type=file]");e.length&&e.on("change",this.validateFileSize)},validateFileSize:function validateFileSize(e){var t=this,n=jQuery(e.currentTarget),i=n[0].files;if(i.length){var s=1024*(0,a.default)(n.attr("data-maxsize"))*1024,r=n.attr("data-maxsize-message");Array.prototype.slice.call(i).forEach((function(e){s<e.size&&(n.parent().addClass("elementor-error").append('<span class="elementor-message elementor-message-danger elementor-help-inline elementor-form-help-inline" role="alert">'+r+"</span>").find(":input").attr("aria-invalid","true"),t.elements.$form.trigger("error"))}))}},beforeSend:function beforeSend(){var e=this.elements.$form;e.animate({opacity:"0.45"},500).addClass("elementor-form-waiting"),e.find(".elementor-message").remove(),e.find(".elementor-error").removeClass("elementor-error"),e.find("div.elementor-field-group").removeClass("error").find("span.elementor-form-help-inline").remove().end().find(":input").attr("aria-invalid","false"),this.elements.$submitButton.attr("disabled","disabled").find("> span").prepend('<span class="elementor-button-text elementor-form-spinner"><i class="fa fa-spinner fa-spin"></i> </span>')},getFormData:function getFormData(){var e=new FormData(this.elements.$form[0]);return e.append("action",this.getSettings("action")),e.append("referrer",location.toString()),e},onSuccess:function onSuccess(e){var t=this.elements.$form;this.elements.$submitButton.removeAttr("disabled").find(".elementor-form-spinner").remove(),t.animate({opacity:"1"},100).removeClass("elementor-form-waiting"),e.success?(t.trigger("submit_success",e.data),t.trigger("form_destruct",e.data),t.trigger("reset"),void 0!==e.data.message&&""!==e.data.message&&t.append('<div class="elementor-message elementor-message-success" role="alert">'+e.data.message+"</div>")):(e.data.errors&&(jQuery.each(e.data.errors,(function(e,n){t.find("#form-field-"+e).parent().addClass("elementor-error").append('<span class="elementor-message elementor-message-danger elementor-help-inline elementor-form-help-inline" role="alert">'+n+"</span>").find(":input").attr("aria-invalid","true")})),t.trigger("error")),t.append('<div class="elementor-message elementor-message-danger" role="alert">'+e.data.message+"</div>"))},onError:function onError(e,t){var n=this.elements.$form;n.append('<div class="elementor-message elementor-message-danger" role="alert">'+t+"</div>"),this.elements.$submitButton.html(this.elements.$submitButton.text()).removeAttr("disabled"),n.animate({opacity:"1"},100).removeClass("elementor-form-waiting"),n.trigger("error")},handleSubmit:function handleSubmit(e){var t=this,n=this.elements.$form;if(e.preventDefault(),n.hasClass("elementor-form-waiting"))return!1;this.beforeSend(),jQuery.ajax({url:t.getSettings("ajaxUrl"),type:"POST",dataType:"json",data:t.getFormData(),processData:!1,contentType:!1,success:t.onSuccess,error:t.onError})}});t.default=s},9706:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(4208),n(4828),n(8081),n(3777);var a=i(n(4899));n(1954);var s=i(n(1959)),r=i(n(9041)),o=i(n(6700)),l=i(n(4263)),u=i(n(7371)),d=i(n(8537)),c=function(e){(0,u.default)(FormSteps,e);var t=(0,d.default)(FormSteps);function FormSteps(){return(0,s.default)(this,FormSteps),t.apply(this,arguments)}return(0,r.default)(FormSteps,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{form:".elementor-form",fieldsWrapper:".elementor-form-fields-wrapper",fieldGroup:".elementor-field-group",stepWrapper:".elementor-field-type-step",stepField:".e-field-step",submitWrapper:".elementor-field-type-submit",submitButton:'[type="submit"]',buttons:".e-form__buttons",buttonWrapper:".e-form__buttons__wrapper",button:".e-form__buttons__wrapper__button",indicator:".e-form__indicators__indicator",indicatorProgress:".e-form__indicators__indicator__progress",indicatorProgressMeter:".e-form__indicators__indicator__progress__meter",formHelpInline:".elementor-form-help-inline"},classes:{hidden:"elementor-hidden",column:"elementor-column",fieldGroup:"elementor-field-group",elementorButton:"elementor-button",step:"e-form__step",buttons:"e-form__buttons",buttonWrapper:"e-form__buttons__wrapper",button:"e-form__buttons__wrapper__button",indicators:"e-form__indicators",indicator:"e-form__indicators__indicator",indicatorIcon:"e-form__indicators__indicator__icon",indicatorNumber:"e-form__indicators__indicator__number",indicatorLabel:"e-form__indicators__indicator__label",indicatorProgress:"e-form__indicators__indicator__progress",indicatorProgressMeter:"e-form__indicators__indicator__progress__meter",indicatorSeparator:"e-form__indicators__indicator__separator",indicatorInactive:"e-form__indicators__indicator--state-inactive",indicatorActive:"e-form__indicators__indicator--state-active",indicatorCompleted:"e-form__indicators__indicator--state-completed",indicatorShapeCircle:"e-form__indicators__indicator--shape-circle",indicatorShapeSquare:"e-form__indicators__indicator--shape-square",indicatorShapeRounded:"e-form__indicators__indicator--shape-rounded",indicatorShapeNone:"e-form__indicators__indicator--shape-none"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings().selectors,t={$form:this.$element.find(e.form)};return t.$fieldsWrapper=t.$form.children(e.fieldsWrapper),t.$stepWrapper=t.$fieldsWrapper.children(e.stepWrapper),t.$stepField=t.$stepWrapper.children(e.stepField),t.$fieldGroup=t.$fieldsWrapper.children(e.fieldGroup),t.$submitWrapper=t.$fieldsWrapper.children(e.submitWrapper),t.$submitButton=t.$submitWrapper.children(e.submitButton),t}},{key:"onInit",value:function onInit(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=(0,o.default)((0,l.default)(FormSteps.prototype),"onInit",this)).call.apply(e,[this].concat(n)),this.isStepsExist()&&(this.data={steps:[]},this.state={currentStep:0,stepsType:"",stepsShape:""},this.buildSteps(),this.elements=(0,a.default)((0,a.default)((0,a.default)({},this.elements),this.createStepsIndicators()),this.createStepsButtons()),this.initProgressBar(),this.extractResponsiveSizeFromSubmitWrapper())}},{key:"bindEvents",value:function bindEvents(){var e=this;this.isStepsExist()&&this.elements.$form.on({submit:function submit(){return e.resetForm()},keydown:function keydown(t){13!==t.keyCode||e.isLastStep()||"textarea"===t.target.localName||(t.preventDefault(),e.applyStep("next"))},error:function error(){return e.onFormError()}})}},{key:"isStepsExist",value:function isStepsExist(){return this.elements.$stepWrapper.length}},{key:"initProgressBar",value:function initProgressBar(){"progress_bar"===this.getElementSettings().step_type&&this.setProgressBar()}},{key:"buildSteps",value:function buildSteps(){var e=this;this.elements.$stepWrapper.each((function(t,n){var i=e.getSettings(),a=i.selectors,s=i.classes,r=jQuery(n);r.addClass(s.step).removeClass(s.fieldGroup,s.column),t&&r.addClass(s.hidden),e.setStepData(r.children(a.stepField)),r.append(r.nextUntil(e.elements.$stepWrapper).not(e.elements.$submitWrapper))}))}},{key:"setStepData",value:function setStepData(e){var t={};["label","previousButton","nextButton","iconUrl","iconLibrary"].forEach((function(n){var i=e.attr("data-"+n);i&&(t[n]=i)})),this.data.steps.push(t)}},{key:"createStepsIndicators",value:function createStepsIndicators(){var e=this.getElementSettings(),t={};if("none"!==e.step_type){var n=this.getSettings(),i=n.selectors,a=n.classes,s=a.indicators+"--type-"+e.step_type,r=[a.indicators,s];t.$indicatorsWrapper=jQuery("<div>",{class:r.join(" ")}),t.$indicatorsWrapper.append(this.buildIndicators()),this.elements.$fieldsWrapper.before(t.$indicatorsWrapper),"progress_bar"===e.step_type?(t.$progressBar=t.$indicatorsWrapper.find(i.indicatorProgress),t.$progressBarMeter=t.$indicatorsWrapper.find(i.indicatorProgressMeter)):(t.$indicators=t.$indicatorsWrapper.find(i.indicator),t.$currentIndicator=t.$indicators.eq(this.state.currentStep))}return this.saveIndicatorsState(),t}},{key:"buildIndicators",value:function buildIndicators(){return"progress_bar"===this.getElementSettings().step_type?this.buildProgressBar():this.buildIndicatorsFromStepsData()}},{key:"buildProgressBar",value:function buildProgressBar(){var e=this.getSettings().classes,t=jQuery("<div>",{class:e.indicatorProgress}),n=jQuery("<div>",{class:e.indicatorProgressMeter});return t.append(n),t}},{key:"getProgressBarValue",value:function getProgressBarValue(){var e=this.data.steps.length,t=this.state.currentStep,n=t?(t+1)/e*100:100/e;return Math.floor(n)+"%"}},{key:"setProgressBar",value:function setProgressBar(){var e=this.getProgressBarValue();this.updateProgressMeterCSSVariable(e),this.elements.$progressBarMeter.text(e)}},{key:"updateProgressMeterCSSVariable",value:function updateProgressMeterCSSVariable(e){this.$element[0].style.setProperty("--e-form-steps-indicator-progress-meter-width",e)}},{key:"saveIndicatorsState",value:function saveIndicatorsState(){var e=this.getElementSettings();this.state.stepsType=e.step_type,["none","text","progress_bar"].includes(e.step_type)||(this.state.stepsShape=e.step_icon_shape)}},{key:"buildIndicatorsFromStepsData",value:function buildIndicatorsFromStepsData(){var e=this,t=[];return this.data.steps.forEach((function(n,i){i&&t.push(e.getStepSeparator()),t.push(e.getStepIndicatorElement(n,i))})),t}},{key:"getStepIndicatorElement",value:function getStepIndicatorElement(e,t){var n=this.getSettings().classes,i=this.getElementSettings(),a=this.getIndicatorStateClass(t),s=[n.indicator,a],r=jQuery("<div>",{class:s.join(" ")});return i.step_type.includes("icon")&&r.append(this.getStepIconElement(e)),i.step_type.includes("number")&&r.append(this.getStepNumberElement(t)),i.step_type.includes("text")&&r.append(this.getStepLabelElement(e.label)),r}},{key:"getIndicatorStateClass",value:function getIndicatorStateClass(e){var t=this.getSettings().classes;return e<this.state.currentStep?t.indicatorCompleted:e>this.state.currentStep?t.indicatorInactive:t.indicatorActive}},{key:"getIndicatorShapeClass",value:function getIndicatorShapeClass(){var e=this.getElementSettings();return this.getSettings().classes["indicatorShape"+this.firstLetterToUppercase(e.step_icon_shape)]}},{key:"firstLetterToUppercase",value:function firstLetterToUppercase(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{key:"getStepNumberElement",value:function getStepNumberElement(e){var t=[this.getSettings().classes.indicatorNumber,this.getIndicatorShapeClass()];return jQuery("<div>",{class:t.join(" "),text:e+1})}},{key:"getStepIconElement",value:function getStepIconElement(e){var t=[this.getSettings().classes.indicatorIcon,this.getIndicatorShapeClass()],n=jQuery("<div>",{class:t.join(" ")}),i=e.iconLibrary?"<i>":"<img>",a=e.iconLibrary?{class:e.iconLibrary}:{src:e.iconUrl};return n.append(jQuery(i,a)),n}},{key:"getStepLabelElement",value:function getStepLabelElement(e){var t=this.getSettings().classes;return jQuery("<label>",{class:t.indicatorLabel,text:e})}},{key:"getStepSeparator",value:function getStepSeparator(){var e=this.getSettings().classes;return jQuery("<div>",{class:e.indicatorSeparator})}},{key:"createStepsButtons",value:function createStepsButtons(){var e=this.getSettings().selectors,t={};return this.injectButtonsToSteps(t),t.$buttonsContainer=this.elements.$stepWrapper.find(e.buttons),t.$buttonsWrappers=t.$buttonsContainer.children(e.buttonWrapper),t}},{key:"injectButtonsToSteps",value:function injectButtonsToSteps(){var e=this,t=this.elements.$stepWrapper.length;this.elements.$stepWrapper.each((function(n,i){var a,s=jQuery(i),r=e.getButtonsContainer();n?(r.append(e.getStepButton("previous",n)),a=n===t-1?e.getSubmitButton():e.getStepButton("next",n)):a=e.getStepButton("next",n),r.append(a),s.append(r)}))}},{key:"getButtonsContainer",value:function getButtonsContainer(){var e=this.getSettings().classes,t=this.getElementSettings(),n=[e.buttons,e.column,"elementor-col-"+t.button_width];return jQuery("<div>",{class:n.join(" ")})}},{key:"extractResponsiveSizeFromSubmitWrapper",value:function extractResponsiveSizeFromSubmitWrapper(){var e=[];this.elements.$submitWrapper.removeClass((function(t,n){var i;return e=null===(i=n.match(/elementor-(sm|md)-[0-9]+/g))||void 0===i?void 0:i.join(" ")})),this.elements.$buttonsContainer.addClass(e)}},{key:"getStepButton",value:function getStepButton(e,t){var n=this,i=this.getSettings().classes,a=this.getButton(e,t).on("click",(function(){return n.applyStep(e)})),s=[i.fieldGroup,i.buttonWrapper,"elementor-field-type-"+e];return jQuery("<div>",{class:s.join(" ")}).append(a)}},{key:"getSubmitButton",value:function getSubmitButton(){var e=this,t=this.getSettings().classes;return this.elements.$submitButton.addClass(t.button),this.elements.$submitWrapper.attr("class",(function(t,n){return e.replaceClassNameColSize(n,"")})).removeClass(t.column).removeClass(t.buttons).addClass(t.buttonWrapper)}},{key:"replaceClassNameColSize",value:function replaceClassNameColSize(e,t){return e.replace(/elementor-col-([0-9]+)/g,t)}},{key:"getButton",value:function getButton(e,t){var n=this.getSettings().classes,i=this.elements.$submitButton.attr("class").match(/elementor-size-([^\W\d]+)/g),a=[n.elementorButton,i,n.button,n.button+"-"+e];return jQuery("<button>",{type:"button",text:this.getButtonLabel(e,t),class:a.join(" ")})}},{key:"getButtonLabel",value:function getButtonLabel(e,t){var n=this.getElementSettings(),i=this.data.steps[t],a=e+"Button",s="step_".concat(e,"_label");return i[a]||n[s]}},{key:"applyStep",value:function applyStep(e){var t="next"===e?this.state.currentStep+1:this.state.currentStep-1;if("next"===e&&!this.isFieldsValid(this.elements.$stepWrapper))return!1;this.goToStep(t),this.state.currentStep=t,"progress_bar"===this.state.stepsType?this.setProgressBar():"none"!==this.state.stepsType&&this.updateIndicatorsState(e)}},{key:"goToStep",value:function goToStep(e){var t=this.getSettings().classes;this.elements.$stepWrapper.eq(this.state.currentStep).addClass(t.hidden),this.elements.$stepWrapper.eq(e).removeClass(t.hidden).children(this.getSettings("selectors.fieldGroup")).first().find(":input").first().trigger("focus")}},{key:"isFieldsValid",value:function isFieldsValid(e){var t=!0;return e.eq(this.state.currentStep).find(".elementor-field-group :input").each((function(e,n){if(!n.checkValidity())return n.reportValidity(),t=!1})),t}},{key:"isLastStep",value:function isLastStep(){return this.state.currentStep===this.data.steps.length-1}},{key:"resetForm",value:function resetForm(){this.state.currentStep=0,this.resetSteps(),"progress_bar"===this.state.stepsType?this.setProgressBar():"none"!==this.state.stepsType&&(this.elements.$currentIndicator=this.elements.$indicators.eq(this.state.currentStep),this.resetIndicators())}},{key:"resetSteps",value:function resetSteps(){var e=this.getSettings().classes;this.elements.$stepWrapper.addClass(e.hidden).eq(0).removeClass(e.hidden)}},{key:"resetIndicators",value:function resetIndicators(){var e=this.getSettings().classes,t=["inactive","active","completed"].map((function(t){return e.indicator+"--state-"+t}));this.elements.$indicators.removeClass(t.join(" ")).not(this.elements.$indicators.eq(0)).addClass(e.indicatorInactive),this.elements.$indicators.eq(0).addClass(e.indicatorActive)}},{key:"updateIndicatorsState",value:function updateIndicatorsState(e){var t=this.getSettings().classes,n={current:{remove:t.indicatorActive,add:"next"===e?t.indicatorCompleted:t.indicatorInactive},next:{remove:"next"===e?t.indicatorInactive:t.indicatorCompleted,add:t.indicatorActive}};this.elements.$currentIndicator.removeClass(n.current.remove).addClass(n.current.add),this.elements.$currentIndicator=this.elements.$indicators.eq(this.state.currentStep),this.elements.$currentIndicator.removeClass(n.next.remove).addClass(n.next.add)}},{key:"updateValue",value:function updateValue(e){var t=this,n={step_type:function step_type(){return t.updateStepsType()},step_icon_shape:function step_icon_shape(){return t.updateStepsShape()},step_next_label:function step_next_label(){return t.updateStepButtonsLabel("next")},step_previous_label:function step_previous_label(){return t.updateStepButtonsLabel("previous")}};n[e]&&n[e]()}},{key:"updateStepsType",value:function updateStepsType(){var e=this.getElementSettings();this.elements.$indicatorsWrapper&&this.elements.$indicatorsWrapper.remove(),"none"!==e.step_type&&this.rebuildIndicators(),this.state.stepsType=e.step_type}},{key:"rebuildIndicators",value:function rebuildIndicators(){this.elements=(0,a.default)((0,a.default)({},this.elements),this.createStepsIndicators()),this.initProgressBar()}},{key:"updateStepsShape",value:function updateStepsShape(){var e=this.getElementSettings(),t=this.getSettings(),n=t.selectors,i=t.classes.indicator+"--shape-",a=i+this.state.stepsShape,s=i+e.step_icon_shape,r="";e.step_type.includes("icon")?r="icon":e.step_type.includes("number")&&(r="number"),this.elements.$indicators.children(n.indicator+"__"+r).removeClass(a).addClass(s),this.state.stepsShape=e.step_icon_shape}},{key:"updateStepButtonsLabel",value:function updateStepButtonsLabel(e){var t=this,n=this.getSettings().selectors,i={previous:n.button+"-previous",next:n.button+"-next"};this.elements.$stepWrapper.each((function(n,a){jQuery(a).find(i[e]).text(t.getButtonLabel(e,n))}))}},{key:"onFormError",value:function onFormError(){var e=this.getSettings().selectors,t=this.elements.$form.find(e.formHelpInline).closest(e.stepWrapper);t.length&&this.goToStep(t.index())}},{key:"onElementChange",value:function onElementChange(e){this.isStepsExist()&&this.updateValue(e)}}]),FormSteps}(elementorModules.frontend.handlers.Base);t.default=c},9228:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(Recaptcha,e);var t=(0,o.default)(Recaptcha);function Recaptcha(){return(0,a.default)(this,Recaptcha),t.apply(this,arguments)}return(0,s.default)(Recaptcha,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{recaptcha:".elementor-g-recaptcha:last",submit:'button[type="submit"]',recaptchaResponse:'[name="g-recaptcha-response"]'}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getDefaultSettings().selectors,t={$recaptcha:this.$element.find(e.recaptcha)};return t.$form=t.$recaptcha.parents("form"),t.$submit=t.$form.find(e.submit),t}},{key:"bindEvents",value:function bindEvents(){this.onRecaptchaApiReady()}},{key:"isActive",value:function isActive(e){var t=this.getDefaultSettings().selectors;return e.$element.find(t.recaptcha).length}},{key:"addRecaptcha",value:function addRecaptcha(){var e=this,t=this.elements.$recaptcha.data(),n="v3"!==t.type,i=[];i.forEach((function(e){return window.grecaptcha.reset(e)}));var a=window.grecaptcha.render(this.elements.$recaptcha[0],t);this.elements.$form.on("reset error",(function(){window.grecaptcha.reset(a)})),n?this.elements.$recaptcha.data("widgetId",a):(i.push(a),this.elements.$submit.on("click",(function(t){return e.onV3FormSubmit(t,a)})))}},{key:"onV3FormSubmit",value:function onV3FormSubmit(e,t){var n=this;e.preventDefault(),window.grecaptcha.ready((function(){var e=n.elements.$form;grecaptcha.execute(t,{action:n.elements.$recaptcha.data("action")}).then((function(t){n.elements.$recaptchaResponse?n.elements.$recaptchaResponse.val(t):(n.elements.$recaptchaResponse=jQuery("<input>",{type:"hidden",value:t,name:"g-recaptcha-response"}),e.append(n.elements.$recaptchaResponse)),e.trigger("submit")}))}))}},{key:"onRecaptchaApiReady",value:function onRecaptchaApiReady(){var e=this;window.grecaptcha&&window.grecaptcha.render?this.addRecaptcha():setTimeout((function(){return e.onRecaptchaApiReady()}),350)}}]),Recaptcha}(elementorModules.frontend.handlers.Base);t.default=l},3786:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(5357)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("gallery",o.default),e}return _default}(elementorModules.Module);t.default=l},5357:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(4828),n(1954);var a=i(n(1959)),s=i(n(9041)),r=i(n(6700)),o=i(n(4263)),l=i(n(7371)),u=i(n(8537)),d=function(e){(0,l.default)(galleryHandler,e);var t=(0,u.default)(galleryHandler);function galleryHandler(){return(0,a.default)(this,galleryHandler),t.apply(this,arguments)}return(0,s.default)(galleryHandler,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{container:".elementor-gallery__container",galleryTitles:".elementor-gallery-title",galleryImages:".e-gallery-image",galleryItemOverlay:".elementor-gallery-item__overlay",galleryItemContent:".elementor-gallery-item__content"},classes:{activeTitle:"elementor-item-active"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings().selectors,t={$container:this.$element.find(e.container),$titles:this.$element.find(e.galleryTitles)};return t.$items=t.$container.children(),t.$images=t.$items.children(e.galleryImages),t.$itemsOverlay=t.$items.children(e.galleryItemOverlay),t.$itemsContent=t.$items.children(e.galleryItemContent),t.$itemsContentElements=t.$itemsContent.children(),t}},{key:"getGallerySettings",value:function getGallerySettings(){var e=this.getElementSettings(),t=elementorFrontend.config.breakpoints,n={};n[t.lg-1]={horizontalGap:elementorFrontend.getDeviceSetting("tablet",e,"gap").size,verticalGap:elementorFrontend.getDeviceSetting("tablet",e,"gap").size,columns:elementorFrontend.getDeviceSetting("tablet",e,"columns")},n[t.md-1]={horizontalGap:elementorFrontend.getDeviceSetting("mobile",e,"gap").size,verticalGap:elementorFrontend.getDeviceSetting("mobile",e,"gap").size,columns:elementorFrontend.getDeviceSetting("mobile",e,"columns")};var i=elementorFrontend.getDeviceSetting("desktop",e,"ideal_row_height"),a=elementorFrontend.getDeviceSetting("tablet",e,"ideal_row_height"),s=elementorFrontend.getDeviceSetting("mobile",e,"ideal_row_height");return n[t.lg-1].idealRowHeight=a&&a.size?a.size:null,n[t.md-1].idealRowHeight=s&&s.size?s.size:null,{type:e.gallery_layout,idealRowHeight:i&&i.size?i.size:null,container:this.elements.$container,columns:e.columns,aspectRatio:e.aspect_ratio,lastRow:"normal",horizontalGap:elementorFrontend.getDeviceSetting("desktop",e,"gap").size,verticalGap:elementorFrontend.getDeviceSetting("desktop",e,"gap").size,animationDuration:e.content_animation_duration,breakpoints:n,rtl:elementorFrontend.config.is_rtl,lazyLoad:"yes"===e.lazyload}}},{key:"initGallery",value:function initGallery(){this.gallery=new EGallery(this.getGallerySettings()),this.toggleAllAnimationsClasses()}},{key:"removeAnimationClasses",value:function removeAnimationClasses(e){e.removeClass((function(e,t){return(t.match(/elementor-animated-item-\S+/g)||[]).join(" ")}))}},{key:"toggleOverlayHoverAnimation",value:function toggleOverlayHoverAnimation(){this.removeAnimationClasses(this.elements.$itemsOverlay);var e=this.getElementSettings("background_overlay_hover_animation");e&&this.elements.$itemsOverlay.addClass("elementor-animated-item--"+e)}},{key:"toggleOverlayContentAnimation",value:function toggleOverlayContentAnimation(){this.removeAnimationClasses(this.elements.$itemsContentElements);var e=this.getElementSettings("content_hover_animation");e&&this.elements.$itemsContentElements.addClass("elementor-animated-item--"+e)}},{key:"toggleOverlayContentSequencedAnimation",value:function toggleOverlayContentSequencedAnimation(){this.elements.$itemsContent.toggleClass("elementor-gallery--sequenced-animation","yes"===this.getElementSettings("content_sequenced_animation"))}},{key:"toggleImageHoverAnimation",value:function toggleImageHoverAnimation(){var e=this.getElementSettings("image_hover_animation");this.removeAnimationClasses(this.elements.$images),e&&this.elements.$images.addClass("elementor-animated-item--"+e)}},{key:"toggleAllAnimationsClasses",value:function toggleAllAnimationsClasses(){var e=this.getElementSettings(),t=e.background_overlay_hover_animation||e.content_hover_animation||e.image_hover_animation;this.elements.$items.toggleClass("elementor-animated-content",!!t),this.toggleImageHoverAnimation(),this.toggleOverlayHoverAnimation(),this.toggleOverlayContentAnimation(),this.toggleOverlayContentSequencedAnimation()}},{key:"toggleAnimationClasses",value:function toggleAnimationClasses(e){"content_sequenced_animation"===e&&this.toggleOverlayContentSequencedAnimation(),"background_overlay_hover_animation"===e&&this.toggleOverlayHoverAnimation(),"content_hover_animation"===e&&this.toggleOverlayContentAnimation(),"image_hover_animation"===e&&this.toggleImageHoverAnimation()}},{key:"setGalleryTags",value:function setGalleryTags(e){this.gallery.setSettings("tags","all"===e?[]:[""+e])}},{key:"bindEvents",value:function bindEvents(){this.elements.$titles.on("click",this.galleriesNavigationListener.bind(this))}},{key:"galleriesNavigationListener",value:function galleriesNavigationListener(e){var t=this,n=this.getSettings("classes"),i=jQuery(e.target);this.elements.$titles.removeClass(n.activeTitle),i.addClass(n.activeTitle),this.setGalleryTags(i.data("gallery-index"));setTimeout((function updateLightboxGroup(){return t.setLightboxGalleryIndex(i.data("gallery-index"))}),1e3)}},{key:"setLightboxGalleryIndex",value:function setLightboxGalleryIndex(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";if("all"===e)return this.elements.$items.attr("data-elementor-lightbox-slideshow","all_"+this.getID());this.elements.$items.not(".e-gallery-item--hidden").attr("data-elementor-lightbox-slideshow",e+"_"+this.getID())}},{key:"onInit",value:function onInit(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=(0,r.default)((0,o.default)(galleryHandler.prototype),"onInit",this)).call.apply(e,[this].concat(n)),elementorFrontend.isEditMode()&&1<=this.$element.find(".elementor-widget-empty-icon").length&&this.$element.addClass("elementor-widget-empty"),this.elements.$container.length&&(this.initGallery(),this.elements.$titles.first().trigger("click"))}},{key:"onElementChange",value:function onElementChange(e){var t=this;if(-1===["background_overlay_hover_animation","content_hover_animation","image_hover_animation","content_sequenced_animation"].indexOf(e)){var n=elementorFrontend.config.breakpoints,i={columns:["columns"],columns_tablet:["breakpoints."+(n.lg-1)+".columns"],columns_mobile:["breakpoints."+(n.md-1)+".columns"],gap:["horizontalGap","verticalGap"],gap_tablet:["breakpoints."+(n.lg-1)+".horizontalGap","breakpoints."+(n.lg-1)+".verticalGap"],gap_mobile:["breakpoints."+(n.md-1)+".horizontalGap","breakpoints."+(n.md-1)+".verticalGap"],aspect_ratio:["aspectRatio"],ideal_row_height:["idealRowHeight"],ideal_row_height_tablet:["breakpoints."+(n.lg-1)+".idealRowHeight"],ideal_row_height_mobile:["breakpoints."+(n.md-1)+".idealRowHeight"]}[e];if(i){var a=this.getGallerySettings();i.forEach((function(e){t.gallery.setSettings(e,t.getItems(a,e))}))}}else this.toggleAnimationClasses(e)}},{key:"onDestroy",value:function onDestroy(){(0,r.default)((0,o.default)(galleryHandler.prototype),"onDestroy",this).call(this),this.gallery&&this.gallery.destroy()}}]),galleryHandler}(elementorModules.frontend.handlers.Base);t.default=d},1853:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(9556)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("hotspot",o.default),e}return _default}(elementorModules.Module);t.default=l},9556:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(5942),n(4828),n(1954);var a=i(n(1959)),s=i(n(9041)),r=i(n(6700)),o=i(n(4263)),l=i(n(7371)),u=i(n(8537)),d=function(e){(0,l.default)(Hotspot,e);var t=(0,u.default)(Hotspot);function Hotspot(){return(0,a.default)(this,Hotspot),t.apply(this,arguments)}return(0,s.default)(Hotspot,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{hotspot:".e-hotspot",tooltip:".e-hotspot__tooltip"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings("selectors");return{$hotspot:this.$element.find(e.hotspot),$hotspotsExcludesLinks:this.$element.find(e.hotspot).filter(":not(.e-hotspot--link)"),$tooltip:this.$element.find(e.tooltip)}}},{key:"bindEvents",value:function bindEvents(){var e=this,t=this.getCurrentDeviceSetting("tooltip_trigger"),n="mouseenter"===t?"mouseleave mouseenter":t;"none"!==n&&this.elements.$hotspotsExcludesLinks.on(n,(function(t){return e.onHotspotTriggerEvent(t)}))}},{key:"onDeviceModeChange",value:function onDeviceModeChange(){this.elements.$hotspotsExcludesLinks.off(),this.bindEvents()}},{key:"onHotspotTriggerEvent",value:function onHotspotTriggerEvent(e){var t=jQuery(e.target),n=t.closest(".e-hotspot__button").length,i="mouseleave"===e.type&&(t.is(".e-hotspot--tooltip-position")||t.parents(".e-hotspot--tooltip-position").length);if(n||i){var a=jQuery(e.currentTarget);this.elements.$hotspot.not(a).removeClass("e-hotspot--active"),a.toggleClass("e-hotspot--active")}}},{key:"editorAddSequencedAnimation",value:function editorAddSequencedAnimation(){this.elements.$hotspot.toggleClass("e-hotspot--sequenced","yes"===this.getElementSettings("hotspot_sequenced_animation"))}},{key:"hotspotSequencedAnimation",value:function hotspotSequencedAnimation(){var e=this,t=this.getElementSettings();if("no"!==t.hotspot_sequenced_animation){var n=elementorModules.utils.Scroll.scrollObserver({callback:function callback(i){i.isInViewport&&(n.unobserve(e.$element[0]),e.elements.$hotspot.each((function(n,i){if(0!==n){var a=t.hotspot_sequenced_animation_duration,s=n*((a?a.size:1e3)/e.elements.$hotspot.length);i.style.animationDelay=s+"ms"}})))}});n.observe(this.$element[0])}}},{key:"setTooltipPositionControl",value:function setTooltipPositionControl(){var e=this.getElementSettings();void 0!==e.tooltip_animation&&e.tooltip_animation.match(/^e-hotspot--(slide|fade)-direction/)&&(this.elements.$tooltip.removeClass("e-hotspot--tooltip-animation-from-left e-hotspot--tooltip-animation-from-top e-hotspot--tooltip-animation-from-right e-hotspot--tooltip-animation-from-bottom"),this.elements.$tooltip.addClass("e-hotspot--tooltip-animation-from-"+e.tooltip_position))}},{key:"onInit",value:function onInit(){for(var e,t=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(e=(0,r.default)((0,o.default)(Hotspot.prototype),"onInit",this)).call.apply(e,[this].concat(i)),this.hotspotSequencedAnimation(),this.setTooltipPositionControl(),window.elementor&&elementor.listenTo(elementor.channels.deviceMode,"change",(function(){return t.onDeviceModeChange()}))}},{key:"onElementChange",value:function onElementChange(e){e.startsWith("tooltip_position")&&this.setTooltipPositionControl(),e.startsWith("hotspot_sequenced_animation")&&this.editorAddSequencedAnimation()}}]),Hotspot}(elementorModules.frontend.handlers.Base);t.default=d},9698:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(4927)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("lottie",o.default),e}return _default}(elementorModules.Module);t.default=l},4927:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(4899));n(1954);var s=i(n(1959)),r=i(n(9041)),o=i(n(6700)),l=i(n(4263)),u=i(n(7371)),d=i(n(8537)),c=function(e){(0,u.default)(lottieHandler,e);var t=(0,d.default)(lottieHandler);function lottieHandler(){return(0,s.default)(this,lottieHandler),t.apply(this,arguments)}return(0,r.default)(lottieHandler,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{container:".e-lottie__container",containerLink:".e-lottie__container__link",animation:".e-lottie__animation",caption:".e-lottie__caption"},classes:{caption:"e-lottie__caption"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings().selectors;return{$widgetWrapper:this.$element,$container:this.$element.find(e.container),$containerLink:this.$element.find(e.containerLink),$animation:this.$element.find(e.animation),$caption:this.$element.find(e.caption),$sectionParent:this.$element.closest(".elementor-section"),$columnParent:this.$element.closest(".elementor-column")}}},{key:"onInit",value:function onInit(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=(0,o.default)((0,l.default)(lottieHandler.prototype),"onInit",this)).call.apply(e,[this].concat(n)),this.lottie=null,this.state={isAnimationScrollUpdateNeededOnFirstLoad:!0,isNewLoopCycle:!1,isInViewport:!1,loop:!1,animationDirection:"forward",currentAnimationTrigger:"",effectsRelativeTo:"",hoverOutMode:"",hoverArea:"",caption:"",playAnimationCount:0,animationSpeed:0,linkTimeout:0,viewportOffset:{start:0,end:100}},this.intersectionObservers={animation:{observer:null,element:null},lazyload:{observer:null,element:null}},this.animationFrameRequest={timer:null,lastScrollY:0},this.listeners={collection:[],elements:{$widgetArea:{triggerAnimationHoverIn:null,triggerAnimationHoverOut:null},$container:{triggerAnimationClick:null}}},this.initLottie()}},{key:"initLottie",value:function initLottie(){this.getLottieSettings().lazyload?this.lazyloadLottie():this.generateLottie()}},{key:"lazyloadLottie",value:function lazyloadLottie(){var e=this;this.intersectionObservers.lazyload.observer=elementorModules.utils.Scroll.scrollObserver({offset:"0px 0px ".concat(200,"px"),callback:function callback(t){t.isInViewport&&(e.generateLottie(),e.intersectionObservers.lazyload.observer.unobserve(e.intersectionObservers.lazyload.element))}}),this.intersectionObservers.lazyload.element=this.elements.$container[0],this.intersectionObservers.lazyload.observer.observe(this.intersectionObservers.lazyload.element)}},{key:"generateLottie",value:function generateLottie(){this.createLottieInstance(),this.setLottieEvents()}},{key:"createLottieInstance",value:function createLottieInstance(){var e=this.getLottieSettings();this.lottie=bodymovin.loadAnimation({container:this.elements.$animation[0],path:this.getAnimationPath(),renderer:e.renderer,autoplay:!1,name:"lottie-widget"}),this.elements.$animation.data("lottie",this.lottie)}},{key:"getAnimationPath",value:function getAnimationPath(){var e,t,n=this.getLottieSettings();return(null===(e=n.source_json)||void 0===e?void 0:e.url)&&"json"===n.source_json.url.toLowerCase().substr(-4)?n.source_json.url:(null===(t=n.source_external_url)||void 0===t?void 0:t.url)?n.source_external_url.url:elementorProFrontend.config.lottie.defaultAnimationUrl}},{key:"setCaption",value:function setCaption(){var e=this.getLottieSettings();("external_url"===e.source||"media_file"===e.source&&"custom"===e.caption_source)&&this.getCaptionElement().text(e.caption)}},{key:"getCaptionElement",value:function getCaptionElement(){if(!this.elements.$caption.length){var e=this.getSettings().classes;return this.elements.$caption=jQuery("<p>",{class:e.caption}),this.elements.$container.append(this.elements.$caption),this.elements.$caption}return this.elements.$caption}},{key:"setLottieEvents",value:function setLottieEvents(){var e=this;this.lottie.addEventListener("DOMLoaded",(function(){return e.onLottieDomLoaded()})),this.lottie.addEventListener("complete",(function(){return e.onComplete()}))}},{key:"saveInitialValues",value:function saveInitialValues(){var e,t=this.getLottieSettings();this.lottie.__initialTotalFrames=this.lottie.totalFrames,this.lottie.__initialFirstFrame=this.lottie.firstFrame,this.state.currentAnimationTrigger=t.trigger,this.state.effectsRelativeTo=t.effects_relative_to,this.state.viewportOffset.start=t.viewport?t.viewport.sizes.start:0,this.state.viewportOffset.end=t.viewport?t.viewport.sizes.end:100,this.state.animationSpeed=null===(e=t.play_speed)||void 0===e?void 0:e.size,this.state.linkTimeout=t.link_timeout,this.state.caption=t.caption,this.state.loop=t.loop}},{key:"setAnimationFirstFrame",value:function setAnimationFirstFrame(){var e=this.getAnimationFrames();e.first=e.first-this.lottie.__initialFirstFrame,this.lottie.goToAndStop(e.first,!0)}},{key:"initAnimationTrigger",value:function initAnimationTrigger(){switch(this.getLottieSettings().trigger){case"none":this.playLottie();break;case"arriving_to_viewport":this.playAnimationWhenArrivingToViewport();break;case"bind_to_scroll":this.playAnimationWhenBindToScroll();break;case"on_click":this.bindAnimationClickEvents();break;case"on_hover":this.bindAnimationHoverEvents()}}},{key:"playAnimationWhenArrivingToViewport",value:function playAnimationWhenArrivingToViewport(){var e=this,t=this.getOffset();this.intersectionObservers.animation.observer=elementorModules.utils.Scroll.scrollObserver({offset:"".concat(t.end,"% 0% ").concat(t.start,"%"),callback:function callback(t){t.isInViewport?(e.state.isInViewport=!0,e.playLottie()):(e.state.isInViewport=!1,e.lottie.pause())}}),this.intersectionObservers.animation.element=this.elements.$widgetWrapper[0],this.intersectionObservers.animation.observer.observe(this.intersectionObservers.animation.element)}},{key:"getOffset",value:function getOffset(){var e=this.getLottieSettings();return{start:-e.viewport.sizes.start||0,end:-(100-e.viewport.sizes.end)||0}}},{key:"playAnimationWhenBindToScroll",value:function playAnimationWhenBindToScroll(){var e=this,t=this.getLottieSettings(),n=this.getOffset();this.intersectionObservers.animation.observer=elementorModules.utils.Scroll.scrollObserver({offset:"".concat(n.end,"% 0% ").concat(n.start,"%"),callback:function callback(t){return e.onLottieIntersection(t)}}),this.intersectionObservers.animation.element="viewport"===t.effects_relative_to?this.elements.$widgetWrapper[0]:document.documentElement,this.intersectionObservers.animation.observer.observe(this.intersectionObservers.animation.element)}},{key:"updateAnimationByScrollPosition",value:function updateAnimationByScrollPosition(){var e;e="page"===this.getLottieSettings().effects_relative_to?this.getLottiePagePercentage():"fixed"===this.getCurrentDeviceSetting("_position")?this.getLottieViewportHeightPercentage():this.getLottieViewportPercentage();var t=this.getFrameNumberByPercent(e);t-=this.lottie.__initialFirstFrame,this.lottie.goToAndStop(t,!0)}},{key:"getLottieViewportPercentage",value:function getLottieViewportPercentage(){return elementorModules.utils.Scroll.getElementViewportPercentage(this.elements.$widgetWrapper,this.getOffset())}},{key:"getLottiePagePercentage",value:function getLottiePagePercentage(){return elementorModules.utils.Scroll.getPageScrollPercentage(this.getOffset())}},{key:"getLottieViewportHeightPercentage",value:function getLottieViewportHeightPercentage(){return elementorModules.utils.Scroll.getPageScrollPercentage(this.getOffset(),window.innerHeight)}},{key:"getFrameNumberByPercent",value:function getFrameNumberByPercent(e){var t=this.getAnimationFrames();return e=Math.min(100,Math.max(0,e)),t.first+(t.last-t.first)*e/100}},{key:"getAnimationFrames",value:function getAnimationFrames(){var e=this.getLottieSettings(),t=this.getAnimationCurrentFrame(),n=this.getAnimationRange().start,i=this.getAnimationRange().end,a=this.lottie.__initialFirstFrame,s=0===this.lottie.__initialFirstFrame?this.lottie.__initialTotalFrames:this.lottie.__initialFirstFrame+this.lottie.__initialTotalFrames;return n&&n>a&&(a=n),i&&i<s&&(s=i),this.state.isNewLoopCycle||"bind_to_scroll"===e.trigger||(a=n&&n>t?n:t),"backward"===this.state.animationDirection&&this.isReverseMode()&&(a=t,s=n&&n>this.lottie.__initialFirstFrame?n:this.lottie.__initialFirstFrame),{first:a,last:s,current:t,total:this.lottie.__initialTotalFrames}}},{key:"getAnimationRange",value:function getAnimationRange(){var e=this.getLottieSettings();return{start:this.getInitialFrameNumberByPercent(e.start_point.size),end:this.getInitialFrameNumberByPercent(e.end_point.size)}}},{key:"getInitialFrameNumberByPercent",value:function getInitialFrameNumberByPercent(e){return e=Math.min(100,Math.max(0,e)),this.lottie.__initialFirstFrame+(this.lottie.__initialTotalFrames-this.lottie.__initialFirstFrame)*e/100}},{key:"getAnimationCurrentFrame",value:function getAnimationCurrentFrame(){return 0===this.lottie.firstFrame?this.lottie.currentFrame:this.lottie.firstFrame+this.lottie.currentFrame}},{key:"setLinkTimeout",value:function setLinkTimeout(){var e,t=this,n=this.getLottieSettings();"on_click"===n.trigger&&(null===(e=n.custom_link)||void 0===e?void 0:e.url)&&n.link_timeout&&this.elements.$containerLink.on("click",(function(e){e.preventDefault(),t.isEdit||setTimeout((function(){var e="on"===n.custom_link.is_external?"_blank":"_self";window.open(n.custom_link.url,e)}),n.link_timeout)}))}},{key:"bindAnimationClickEvents",value:function bindAnimationClickEvents(){var e=this;this.listeners.elements.$container.triggerAnimationClick=function(){e.playLottie()},this.addSessionEventListener(this.elements.$container,"click",this.listeners.elements.$container.triggerAnimationClick)}},{key:"getLottieSettings",value:function getLottieSettings(){var e=this.getElementSettings();return(0,a.default)((0,a.default)({},e),{},{lazyload:"yes"===e.lazyload,loop:"yes"===e.loop})}},{key:"playLottie",value:function playLottie(){var e=this.getAnimationFrames();this.lottie.stop(),this.lottie.playSegments([e.first,e.last],!0),this.state.isNewLoopCycle=!1}},{key:"bindAnimationHoverEvents",value:function bindAnimationHoverEvents(){this.createAnimationHoverInEvents(),this.createAnimationHoverOutEvents()}},{key:"createAnimationHoverInEvents",value:function createAnimationHoverInEvents(){var e=this,t=this.getLottieSettings(),n=this.getHoverAreaElement();this.state.hoverArea=t.hover_area,this.listeners.elements.$widgetArea.triggerAnimationHoverIn=function(){e.state.animationDirection="forward",e.playLottie()},this.addSessionEventListener(n,"mouseenter",this.listeners.elements.$widgetArea.triggerAnimationHoverIn)}},{key:"addSessionEventListener",value:function addSessionEventListener(e,t,n){e.on(t,n),this.listeners.collection.push({$el:e,event:t,callback:n})}},{key:"createAnimationHoverOutEvents",value:function createAnimationHoverOutEvents(){var e=this,t=this.getLottieSettings(),n=this.getHoverAreaElement();"pause"!==t.on_hover_out&&"reverse"!==t.on_hover_out||(this.state.hoverOutMode=t.on_hover_out,this.listeners.elements.$widgetArea.triggerAnimationHoverOut=function(){"pause"===t.on_hover_out?e.lottie.pause():(e.state.animationDirection="backward",e.playLottie())},this.addSessionEventListener(n,"mouseleave",this.listeners.elements.$widgetArea.triggerAnimationHoverOut))}},{key:"getHoverAreaElement",value:function getHoverAreaElement(){var e=this.getLottieSettings();return"section"===e.hover_area?this.elements.$sectionParent:"column"===e.hover_area?this.elements.$columnParent:this.elements.$container}},{key:"setLoopOnAnimationComplete",value:function setLoopOnAnimationComplete(){var e=this.getLottieSettings();this.state.isNewLoopCycle=!0,e.loop&&!this.isReverseMode()?this.setLoopWhenNotReverse():e.loop&&this.isReverseMode()?this.setReverseAnimationOnLoop():!e.loop&&this.isReverseMode()&&this.setReverseAnimationOnSingleTrigger()}},{key:"isReverseMode",value:function isReverseMode(){var e=this.getLottieSettings();return"yes"===e.reverse_animation||"reverse"===e.on_hover_out&&"backward"===this.state.animationDirection}},{key:"setLoopWhenNotReverse",value:function setLoopWhenNotReverse(){var e=this.getLottieSettings();e.number_of_times>0?(this.state.playAnimationCount++,this.state.playAnimationCount<e.number_of_times?this.playLottie():this.state.playAnimationCount=0):this.playLottie()}},{key:"setReverseAnimationOnLoop",value:function setReverseAnimationOnLoop(){var e=this.getLottieSettings();!e.number_of_times||this.state.playAnimationCount<e.number_of_times?(this.state.animationDirection="forward"===this.state.animationDirection?"backward":"forward",this.playLottie(),"backward"===this.state.animationDirection&&this.state.playAnimationCount++):(this.state.playAnimationCount=0,this.state.animationDirection="forward")}},{key:"setReverseAnimationOnSingleTrigger",value:function setReverseAnimationOnSingleTrigger(){this.state.playAnimationCount<1?(this.state.playAnimationCount++,this.state.animationDirection="backward",this.playLottie()):this.state.playAnimationCount>=1&&"forward"===this.state.animationDirection?(this.state.animationDirection="backward",this.playLottie()):(this.state.playAnimationCount=0,this.state.animationDirection="forward")}},{key:"setAnimationSpeed",value:function setAnimationSpeed(){var e=this.getLottieSettings();e.play_speed&&this.lottie.setSpeed(e.play_speed.size)}},{key:"onElementChange",value:function onElementChange(){this.updateLottieValues(),this.resetAnimationTrigger()}},{key:"updateLottieValues",value:function updateLottieValues(){var e,t=this,n=this.getLottieSettings();[{sourceVal:null===(e=n.play_speed)||void 0===e?void 0:e.size,stateProp:"animationSpeed",callback:function callback(){return t.setAnimationSpeed()}},{sourceVal:n.link_timeout,stateProp:"linkTimeout",callback:function callback(){return t.setLinkTimeout()}},{sourceVal:n.caption,stateProp:"caption",callback:function callback(){return t.setCaption()}},{sourceVal:n.effects_relative_to,stateProp:"effectsRelativeTo",callback:function callback(){return t.updateAnimationByScrollPosition()}},{sourceVal:n.loop,stateProp:"loop",callback:function callback(){return t.onLoopStateChange()}}].forEach((function(e){void 0!==e.sourceVal&&e.sourceVal!==t.state[e.stateProp]&&(t.state[e.stateProp]=e.sourceVal,e.callback())}))}},{key:"onLoopStateChange",value:function onLoopStateChange(){var e="arriving_to_viewport"===this.state.currentAnimationTrigger&&this.state.isInViewport;this.state.loop&&(e||"none"===this.state.currentAnimationTrigger)&&this.playLottie()}},{key:"resetAnimationTrigger",value:function resetAnimationTrigger(){var e=this.getLottieSettings(),t=e.trigger!==this.state.currentAnimationTrigger,n=!!e.viewport&&this.isViewportOffsetChange(),i=!!e.on_hover_out&&this.isHoverOutModeChange(),a=!!e.hover_area&&this.isHoverAreaChange();(t||n||i||a)&&(this.removeAnimationFrameRequests(),this.removeObservers(),this.removeEventListeners(),this.initAnimationTrigger())}},{key:"isViewportOffsetChange",value:function isViewportOffsetChange(){var e=this.getLottieSettings(),t=e.viewport.sizes.start!==this.state.viewportOffset.start,n=e.viewport.sizes.end!==this.state.viewportOffset.end;return t||n}},{key:"isHoverOutModeChange",value:function isHoverOutModeChange(){return this.getLottieSettings().on_hover_out!==this.state.hoverOutMode}},{key:"isHoverAreaChange",value:function isHoverAreaChange(){return this.getLottieSettings().hover_area!==this.state.hoverArea}},{key:"removeEventListeners",value:function removeEventListeners(){this.listeners.collection.forEach((function(e){e.$el.off(e.event,null,e.callback)}))}},{key:"removeObservers",value:function removeObservers(){for(var e in this.intersectionObservers)this.intersectionObservers[e].observer&&this.intersectionObservers[e].element&&this.intersectionObservers[e].observer.unobserve(this.intersectionObservers[e].element)}},{key:"removeAnimationFrameRequests",value:function removeAnimationFrameRequests(){cancelAnimationFrame(this.animationFrameRequest.timer)}},{key:"onDestroy",value:function onDestroy(){(0,o.default)((0,l.default)(lottieHandler.prototype),"onDestroy",this).call(this),this.destroyLottie()}},{key:"destroyLottie",value:function destroyLottie(){this.removeAnimationFrameRequests(),this.removeObservers(),this.removeEventListeners(),this.elements.$animation.removeData("lottie"),this.lottie&&this.lottie.destroy()}},{key:"onLottieDomLoaded",value:function onLottieDomLoaded(){this.saveInitialValues(),this.setAnimationSpeed(),this.setLinkTimeout(),this.setCaption(),this.setAnimationFirstFrame(),this.initAnimationTrigger()}},{key:"onComplete",value:function onComplete(){this.setLoopOnAnimationComplete()}},{key:"onLottieIntersection",value:function onLottieIntersection(e){var t=this;if(e.isInViewport)this.state.isAnimationScrollUpdateNeededOnFirstLoad&&(this.state.isAnimationScrollUpdateNeededOnFirstLoad=!1,this.updateAnimationByScrollPosition()),this.animationFrameRequest.timer=requestAnimationFrame((function(){return t.onAnimationFrameRequest()}));else{var n=this.getAnimationFrames(),i="up"===e.intersectionScrollDirection?n.first:n.last;this.state.isAnimationScrollUpdateNeededOnFirstLoad=!1,cancelAnimationFrame(this.animationFrameRequest.timer),this.lottie.goToAndStop(i,!0)}}},{key:"onAnimationFrameRequest",value:function onAnimationFrameRequest(){var e=this;window.scrollY!==this.animationFrameRequest.lastScrollY&&(this.updateAnimationByScrollPosition(),this.animationFrameRequest.lastScrollY=window.scrollY),this.animationFrameRequest.timer=requestAnimationFrame((function(){return e.onAnimationFrameRequest()}))}}]),lottieHandler}(elementorModules.frontend.handlers.Base);t.default=c},9122:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(5389)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),jQuery.fn.smartmenus&&(jQuery.SmartMenus.prototype.isCSSOn=function(){return!0},elementorFrontend.config.is_rtl&&(jQuery.fn.smartmenus.defaults.rightToLeftSubMenus=!0)),elementorFrontend.elementsHandler.attachHandler("nav-menu",o.default),e}return _default}(elementorModules.Module);t.default=l},5389:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var i=elementorModules.frontend.handlers.Base.extend({stretchElement:null,getDefaultSettings:function getDefaultSettings(){return{selectors:{menu:".elementor-nav-menu",anchorLink:".elementor-nav-menu--main .elementor-item-anchor",dropdownMenu:".elementor-nav-menu__container.elementor-nav-menu--dropdown",menuToggle:".elementor-menu-toggle"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$menu=this.$element.find(e.menu),t.$anchorLink=this.$element.find(e.anchorLink),t.$dropdownMenu=this.$element.find(e.dropdownMenu),t.$dropdownMenuFinalItems=t.$dropdownMenu.find(".menu-item:not(.menu-item-has-children) > a"),t.$menuToggle=this.$element.find(e.menuToggle),t.$links=t.$dropdownMenu.find("a.elementor-item"),t},bindEvents:function bindEvents(){this.elements.$menu.length&&(this.elements.$menuToggle.on("click",this.toggleMenu.bind(this)),this.getElementSettings("full_width")&&this.elements.$dropdownMenuFinalItems.on("click",this.toggleMenu.bind(this,!1)),elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.stretchMenu))},initStretchElement:function initStretchElement(){this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.elements.$dropdownMenu})},toggleNavLinksTabIndex:function toggleNavLinksTabIndex(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.elements.$links.attr("tabindex",e?0:-1)},toggleMenu:function toggleMenu(e){var t=this.elements.$menuToggle.hasClass("elementor-active");"boolean"!=typeof e&&(e=!t),this.elements.$menuToggle.attr("aria-expanded",e),this.elements.$dropdownMenu.attr("aria-hidden",!e),this.elements.$menuToggle.toggleClass("elementor-active",e),this.toggleNavLinksTabIndex(e),e&&this.getElementSettings("full_width")&&this.stretchElement.stretch()},followMenuAnchors:function followMenuAnchors(){var e=this;e.elements.$anchorLink.each((function(){location.pathname===this.pathname&&""!==this.hash&&e.followMenuAnchor(jQuery(this))}))},followMenuAnchor:function followMenuAnchor(e){var t,n=e[0].hash,i=-300;try{t=jQuery(decodeURIComponent(n))}catch(e){return}if(t.length){if(!t.hasClass("elementor-menu-anchor")){var a=jQuery(window).height()/2;i=-t.outerHeight()+a}elementorFrontend.waypoint(t,(function(t){"down"===t?e.addClass("elementor-item-active"):e.removeClass("elementor-item-active")}),{offset:"50%",triggerOnce:!1}),elementorFrontend.waypoint(t,(function(t){"down"===t?e.removeClass("elementor-item-active"):e.addClass("elementor-item-active")}),{offset:i,triggerOnce:!1})}},stretchMenu:function stretchMenu(){this.getElementSettings("full_width")?(this.stretchElement.stretch(),this.elements.$dropdownMenu.css("top",this.elements.$menuToggle.outerHeight())):this.stretchElement.reset()},onInit:function onInit(){if(elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.elements.$menu.length){var e=this.getElementSettings(),t='<i class="'.concat(e.submenu_icon.value,'"></i>');this.elements.$menu.smartmenus({subIndicators:""!==t,subIndicatorsText:t,subIndicatorsPos:"append",subMenusMaxWidth:"1000px"}),this.initStretchElement(),this.stretchMenu(),elementorFrontend.isEditMode()||this.followMenuAnchors()}},onElementChange:function onElementChange(e){"full_width"===e&&this.stretchMenu()}});t.default=i},2731:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(3452)),s=i(n(7135));n(6248);var r=i(n(9117));n(1954);var o=i(n(1959)),l=i(n(9041)),u=i(n(6700)),d=i(n(4263)),c=i(n(7371)),h=i(n(8537)),m=i(n(9545)),f=i(n(4339)),g=function(e){(0,c.default)(_default,e);var t,n=(0,h.default)(_default);function _default(){return(0,o.default)(this,_default),n.apply(this,arguments)}return(0,l.default)(_default,[{key:"bindEvents",value:function bindEvents(){var e=this.getDocumentSettings("open_selector");e&&elementorFrontend.elements.$body.on("click",e,this.showModal.bind(this))}},{key:"startTiming",value:function startTiming(){new f.default(this.getDocumentSettings("timing"),this).check()&&this.initTriggers()}},{key:"initTriggers",value:function initTriggers(){this.triggers=new m.default(this.getDocumentSettings("triggers"),this)}},{key:"showModal",value:function showModal(e){var t=this.getDocumentSettings();if(!this.isEdit){if(!elementorFrontend.isWPPreviewMode()){if(this.getStorage("disable"))return;if(e&&elementorProFrontend.modules.popup.popupPopped&&t.avoid_multiple_popups)return}this.$element=jQuery(this.elementHTML),this.elements.$elements=this.$element.find(this.getSettings("selectors.elements"))}var n=this.getModal(),i=n.getElements("closeButton");n.setMessage(this.$element).show(),this.isEdit||(t.close_button_delay&&(i.hide(),clearTimeout(this.closeButtonTimeout),this.closeButtonTimeout=setTimeout((function(){return i.show()}),1e3*t.close_button_delay)),(0,u.default)((0,d.default)(_default.prototype),"runElementsHandlers",this).call(this)),this.setEntranceAnimation(),t.timing&&t.timing.times_count||this.countTimes(),elementorProFrontend.modules.popup.popupPopped=!0}},{key:"setEntranceAnimation",value:function setEntranceAnimation(){var e=this.getModal().getElements("widgetContent"),t=this.getDocumentSettings(),n=elementorFrontend.getCurrentDeviceSetting(t,"entrance_animation");if(this.currentAnimation&&e.removeClass(this.currentAnimation),this.currentAnimation=n,n){var i=t.entrance_animation_duration.size;e.addClass(n),setTimeout((function(){return e.removeClass(n)}),1e3*i)}}},{key:"setExitAnimation",value:function setExitAnimation(){var e=this,t=this.getModal(),n=this.getDocumentSettings(),i=t.getElements("widgetContent"),a=elementorFrontend.getCurrentDeviceSetting(n,"exit_animation"),s=a?n.entrance_animation_duration.size:0;setTimeout((function(){a&&i.removeClass(a+" reverse"),e.isEdit||(e.$element.remove(),t.getElements("widget").hide())}),1e3*s),a&&i.addClass(a+" reverse")}},{key:"initModal",value:function initModal(){var e,t=this;this.getModal=function(){if(!e){var n=t.getDocumentSettings(),i=t.getSettings("id"),a=function triggerPopupEvent(e){return elementorFrontend.elements.$document.trigger("elementor/popup/"+e,[i,t])},s="elementor-popup-modal";n.classes&&(s+=" "+n.classes),(e=elementorFrontend.getDialogsManager().createWidget("lightbox",{id:"elementor-popup-modal-"+i,className:s,closeButton:!0,closeButtonClass:"eicon-close",preventScroll:n.prevent_scroll,onShow:function onShow(){return a("show")},onHide:function onHide(){return a("hide")},effects:{hide:function hide(){n.timing&&n.timing.times_count&&t.countTimes(),t.setExitAnimation()},show:"show"},hide:{auto:!!n.close_automatically,autoDelay:1e3*n.close_automatically,onBackgroundClick:!n.prevent_close_on_background_click,onOutsideClick:!n.prevent_close_on_background_click,onEscKeyPress:!n.prevent_close_on_esc_key,ignore:".flatpickr-calendar"},position:{enable:!1}})).getElements("widgetContent").addClass("animated");var r=e.getElements("closeButton");t.isEdit&&(r.off("click"),e.hide=function(){}),t.setCloseButtonPosition()}return e}}},{key:"setCloseButtonPosition",value:function setCloseButtonPosition(){var e=this.getModal(),t=this.getDocumentSettings("close_button_position");e.getElements("closeButton").appendTo(e.getElements("outside"===t?"widget":"widgetContent"))}},{key:"disable",value:function disable(){this.setStorage("disable",!0)}},{key:"setStorage",value:function setStorage(e,t,n){elementorFrontend.storage.set("popup_".concat(this.getSettings("id"),"_").concat(e),t,n)}},{key:"getStorage",value:function getStorage(e,t){return elementorFrontend.storage.get("popup_".concat(this.getSettings("id"),"_").concat(e),t)}},{key:"countTimes",value:function countTimes(){var e=this.getStorage("times")||0;this.setStorage("times",e+1)}},{key:"runElementsHandlers",value:function runElementsHandlers(){}},{key:"onInit",value:(t=(0,r.default)(s.default.mark((function _callee(){return s.default.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:if((0,u.default)((0,d.default)(_default.prototype),"onInit",this).call(this),window.DialogsManager){e.next=4;break}return e.next=4,elementorFrontend.utils.assetsLoader.load("script","dialog");case 4:if(this.initModal(),!this.isEdit){e.next=8;break}return this.showModal(),e.abrupt("return");case 8:if(this.$element.show().remove(),this.elementHTML=this.$element[0].outerHTML,!elementorFrontend.isEditMode()){e.next=12;break}return e.abrupt("return");case 12:if(!elementorFrontend.isWPPreviewMode()||elementorFrontend.config.post.id!==this.getSettings("id")){e.next=15;break}return this.showModal(),e.abrupt("return");case 15:this.startTiming();case 16:case"end":return e.stop()}}),_callee,this)}))),function onInit(){return t.apply(this,arguments)})},{key:"onSettingsChange",value:function onSettingsChange(e){var t=(0,a.default)(e.changed)[0];-1!==t.indexOf("entrance_animation")&&this.setEntranceAnimation(),"exit_animation"===t&&this.setExitAnimation(),"close_button_position"===t&&this.setCloseButtonPosition()}}]),_default}(elementorModules.frontend.Document);t.default=g},651:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=i(n(2731)),u=i(n(3573)),d=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.hooks.addAction("elementor/frontend/documents-manager/init-classes",e.addDocumentClass),elementorFrontend.elementsHandler.attachHandler("form",u.default),elementorFrontend.on("components:init",(function(){return e.onFrontendComponentsInit()})),elementorFrontend.isEditMode()||elementorFrontend.isWPPreviewMode()||e.setViewsAndSessions(),e}return(0,s.default)(_default,[{key:"addDocumentClass",value:function addDocumentClass(e){e.addDocumentClass("popup",l.default)}},{key:"setViewsAndSessions",value:function setViewsAndSessions(){var e=elementorFrontend.storage.get("pageViews")||0;if(elementorFrontend.storage.set("pageViews",e+1),!elementorFrontend.storage.get("activeSession",{session:!0})){elementorFrontend.storage.set("activeSession",!0,{session:!0});var t=elementorFrontend.storage.get("sessions")||0;elementorFrontend.storage.set("sessions",t+1)}}},{key:"showPopup",value:function showPopup(e){var t=elementorFrontend.documentsManager.documents[e.id];if(t){var n=t.getModal();e.toggle&&n.isVisible()?n.hide():t.showModal()}}},{key:"closePopup",value:function closePopup(e,t){var n=jQuery(t.target).parents('[data-elementor-type="popup"]').data("elementorId");if(n){var i=elementorFrontend.documentsManager.documents[n];i.getModal().hide(),e.do_not_show_again&&i.disable()}}},{key:"onFrontendComponentsInit",value:function onFrontendComponentsInit(){var e=this;elementorFrontend.utils.urlActions.addAction("popup:open",(function(t){return e.showPopup(t)})),elementorFrontend.utils.urlActions.addAction("popup:close",(function(t,n){return e.closePopup(t,n)}))}}]),_default}(elementorModules.Module);t.default=d},3573:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var i=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function getDefaultSettings(){return{selectors:{form:".elementor-form"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$form=this.$element.find(e.form),t},bindEvents:function bindEvents(){this.elements.$form.on("submit_success",this.handleFormAction)},handleFormAction:function handleFormAction(e,t){if(void 0!==t.data.popup){var n=t.data.popup;if("open"===n.action)return elementorProFrontend.modules.popup.showPopup(n);setTimeout((function(){return elementorProFrontend.modules.popup.closePopup(n,e)}),1e3)}}});t.default=i},4339:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=i(n(275)),u=i(n(1795)),d=i(n(2894)),c=i(n(1306)),h=i(n(9912)),m=i(n(3245)),f=i(n(6850)),g=i(n(8937)),p=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(e,n){var i;return(0,a.default)(this,_default),(i=t.call(this,e)).document=n,i.timingClasses={page_views:l.default,sessions:u.default,url:d.default,sources:c.default,logged_in:h.default,devices:m.default,times:f.default,browsers:g.default},i}return(0,s.default)(_default,[{key:"check",value:function check(){var e=this,t=this.getSettings(),n=!0;return jQuery.each(this.timingClasses,(function(i,a){t[i]&&(new a(t,e.document).check()||(n=!1))})),n}}]),_default}(elementorModules.Module);t.default=p},3565:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(e,n){var i;return(0,a.default)(this,_default),(i=t.call(this,e)).document=n,i}return(0,s.default)(_default,[{key:"getTimingSetting",value:function getTimingSetting(e){return this.getSettings(this.getName()+"_"+e)}}]),_default}(elementorModules.Module);t.default=l},8937:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"browsers"}},{key:"check",value:function check(){if("all"===this.getTimingSetting("browsers"))return!0;var e=this.getTimingSetting("browsers_options"),t=elementorFrontend.utils.environment;return e.some((function(e){return t[e]}))}}]),_default}(i(n(3565)).default);t.default=l},3245:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"devices"}},{key:"check",value:function check(){return-1!==this.getTimingSetting("devices").indexOf(elementorFrontend.getCurrentDeviceMode())}}]),_default}(i(n(3565)).default);t.default=l},9912:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"logged_in"}},{key:"check",value:function check(){var e=elementorFrontend.config.user;return!e||"all"!==this.getTimingSetting("users")&&!this.getTimingSetting("roles").filter((function(t){return-1!==e.roles.indexOf(t)})).length}}]),_default}(i(n(3565)).default);t.default=l},275:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"page_views"}},{key:"check",value:function check(){var e=elementorFrontend.storage.get("pageViews"),t=this.getName(),n=this.document.getStorage(t+"_initialPageViews");return n||(this.document.setStorage(t+"_initialPageViews",e),n=e),e-n>=this.getTimingSetting("views")}}]),_default}(i(n(3565)).default);t.default=l},1795:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"sessions"}},{key:"check",value:function check(){var e=elementorFrontend.storage.get("sessions"),t=this.getName(),n=this.document.getStorage(t+"_initialSessions");return n||(this.document.setStorage(t+"_initialSessions",e),n=e),e-n>=this.getTimingSetting("sessions")}}]),_default}(i(n(3565)).default);t.default=l},1306:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(4208);var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"sources"}},{key:"check",value:function check(){var e=this.getTimingSetting("sources");if(3===e.length)return!0;var t=document.referrer.replace(/https?:\/\/(?:www\.)?/,"");return 0===t.indexOf(location.host.replace("www.",""))?-1!==e.indexOf("internal"):-1!==e.indexOf("external")||-1!==e.indexOf("search")&&/^(google|yahoo|bing|yandex|baidu)\./.test(t)}}]),_default}(i(n(3565)).default);t.default=l},6850:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"times"}},{key:"check",value:function check(){var e=this.document.getStorage("times")||0;return this.getTimingSetting("times")>e}}]),_default}(i(n(3565)).default);t.default=l},2894:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(5506);var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"url"}},{key:"check",value:function check(){var e,t=this.getTimingSetting("url"),n=this.getTimingSetting("action"),i=document.referrer;if("regex"!==n)return"hide"===n^-1!==i.indexOf(t);try{e=new RegExp(t)}catch(e){return!1}return e.test(i)}}]),_default}(i(n(3565)).default);t.default=l},9545:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=i(n(974)),u=i(n(8330)),d=i(n(1220)),c=i(n(9863)),h=i(n(1055)),m=i(n(9972)),f=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(e,n){var i;return(0,a.default)(this,_default),(i=t.call(this,e)).document=n,i.triggers=[],i.triggerClasses={page_load:l.default,scrolling:u.default,scrolling_to:d.default,click:c.default,inactivity:h.default,exit_intent:m.default},i.runTriggers(),i}return(0,s.default)(_default,[{key:"runTriggers",value:function runTriggers(){var e=this,t=this.getSettings();jQuery.each(this.triggerClasses,(function(n,i){if(t[n]){var a=new i(t,(function(){return e.onTriggerFired()}));a.run(),e.triggers.push(a)}}))}},{key:"destroyTriggers",value:function destroyTriggers(){this.triggers.forEach((function(e){return e.destroy()})),this.triggers=[]}},{key:"onTriggerFired",value:function onTriggerFired(){this.document.showModal(!0),this.destroyTriggers()}}]),_default}(elementorModules.Module);t.default=f},144:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(e,n){var i;return(0,a.default)(this,_default),(i=t.call(this,e)).callback=n,i}return(0,s.default)(_default,[{key:"getTriggerSetting",value:function getTriggerSetting(e){return this.getSettings(this.getName()+"_"+e)}}]),_default}(elementorModules.Module);t.default=l},9863:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(8852)),o=i(n(7371)),l=i(n(8537)),u=function(e){(0,o.default)(_default,e);var t=(0,l.default)(_default);function _default(){var e;(0,a.default)(this,_default);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).checkClick=e.checkClick.bind((0,r.default)(e)),e.clicksCount=0,e}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"click"}},{key:"checkClick",value:function checkClick(){this.clicksCount++,this.clicksCount===this.getTriggerSetting("times")&&this.callback()}},{key:"run",value:function run(){elementorFrontend.elements.$body.on("click",this.checkClick)}},{key:"destroy",value:function destroy(){elementorFrontend.elements.$body.off("click",this.checkClick)}}]),_default}(i(n(144)).default);t.default=u},9972:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(8852)),o=i(n(7371)),l=i(n(8537)),u=function(e){(0,o.default)(_default,e);var t=(0,l.default)(_default);function _default(){var e;(0,a.default)(this,_default);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).detectExitIntent=e.detectExitIntent.bind((0,r.default)(e)),e}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"exit_intent"}},{key:"detectExitIntent",value:function detectExitIntent(e){e.clientY<=0&&this.callback()}},{key:"run",value:function run(){elementorFrontend.elements.$window.on("mouseleave",this.detectExitIntent)}},{key:"destroy",value:function destroy(){elementorFrontend.elements.$window.off("mouseleave",this.detectExitIntent)}}]),_default}(i(n(144)).default);t.default=u},1055:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(8852)),o=i(n(7371)),l=i(n(8537)),u=function(e){(0,o.default)(_default,e);var t=(0,l.default)(_default);function _default(){var e;(0,a.default)(this,_default);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).restartTimer=e.restartTimer.bind((0,r.default)(e)),e}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"inactivity"}},{key:"run",value:function run(){this.startTimer(),elementorFrontend.elements.$document.on("keypress mousemove",this.restartTimer)}},{key:"startTimer",value:function startTimer(){this.timeOut=setTimeout(this.callback,1e3*this.getTriggerSetting("time"))}},{key:"clearTimer",value:function clearTimer(){clearTimeout(this.timeOut)}},{key:"restartTimer",value:function restartTimer(){this.clearTimer(),this.startTimer()}},{key:"destroy",value:function destroy(){this.clearTimer(),elementorFrontend.elements.$document.off("keypress mousemove",this.restartTimer)}}]),_default}(i(n(144)).default);t.default=u},974:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"page_load"}},{key:"run",value:function run(){this.timeout=setTimeout(this.callback,1e3*this.getTriggerSetting("delay"))}},{key:"destroy",value:function destroy(){clearTimeout(this.timeout)}}]),_default}(i(n(144)).default);t.default=l},1220:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(7371)),o=i(n(8537)),l=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){return(0,a.default)(this,_default),t.apply(this,arguments)}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"scrolling_to"}},{key:"run",value:function run(){var e;try{e=jQuery(this.getTriggerSetting("selector"))}catch(e){return}this.waypointInstance=elementorFrontend.waypoint(e,this.callback)[0]}},{key:"destroy",value:function destroy(){this.waypointInstance&&this.waypointInstance.destroy()}}]),_default}(i(n(144)).default);t.default=l},8330:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(8852)),o=i(n(7371)),l=i(n(8537)),u=function(e){(0,o.default)(_default,e);var t=(0,l.default)(_default);function _default(){var e;(0,a.default)(this,_default);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).checkScroll=e.checkScroll.bind((0,r.default)(e)),e.lastScrollOffset=0,e}return(0,s.default)(_default,[{key:"getName",value:function getName(){return"scrolling"}},{key:"checkScroll",value:function checkScroll(){var e=scrollY>this.lastScrollOffset?"down":"up",t=this.getTriggerSetting("direction");if(this.lastScrollOffset=scrollY,e===t)if("up"!==e){var n=elementorFrontend.elements.$document.height()-innerHeight;scrollY/n*100>=this.getTriggerSetting("offset")&&this.callback()}else this.callback()}},{key:"run",value:function run(){elementorFrontend.elements.$window.on("scroll",this.checkScroll)}},{key:"destroy",value:function destroy(){elementorFrontend.elements.$window.off("scroll",this.checkScroll)}}]),_default}(i(n(144)).default);t.default=u},4484:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(2926)),l=i(n(8014)),u=i(n(2763)),d=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("posts",o.default,"classic"),elementorFrontend.elementsHandler.attachHandler("posts",o.default,"full_content"),elementorFrontend.elementsHandler.attachHandler("posts",l.default,"cards"),elementorFrontend.elementsHandler.attachHandler("portfolio",u.default),e}return _default}(elementorModules.Module);t.default=d},8014:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(2926)).default.extend({getSkinPrefix:function getSkinPrefix(){return"cards_"}});t.default=a},2763:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var a=i(n(2926)),s=a.default.extend({isActive:function isActive(e){return e.$element.find(".elementor-portfolio").length},getSkinPrefix:function getSkinPrefix(){return""},getDefaultSettings:function getDefaultSettings(){var e=a.default.prototype.getDefaultSettings.apply(this,arguments);return e.transitionDuration=450,jQuery.extend(e.classes,{active:"elementor-active",item:"elementor-portfolio-item",ghostItem:"elementor-portfolio-ghost-item"}),e},getDefaultElements:function getDefaultElements(){var e=a.default.prototype.getDefaultElements.apply(this,arguments);return e.$filterButtons=this.$element.find(".elementor-portfolio__filter"),e},getOffset:function getOffset(e,t,n){var i=this.getSettings(),a=this.elements.$postsContainer.width()/i.colsCount-t;return{start:(t+(a+=a/(i.colsCount-1)))*(e%i.colsCount),top:(n+a)*Math.floor(e/i.colsCount)}},getClosureMethodsNames:function getClosureMethodsNames(){var e=a.default.prototype.getClosureMethodsNames.apply(this,arguments);return e.concat(["onFilterButtonClick"])},filterItems:function filterItems(e){var t=this.elements.$posts,n=this.getSettings("classes.active"),i=".elementor-filter-"+e;"__all"!==e?(t.not(i).removeClass(n),t.filter(i).addClass(n)):t.addClass(n)},removeExtraGhostItems:function removeExtraGhostItems(){var e=this.getSettings(),t=this.elements.$posts.filter(":visible"),n=(e.colsCount-t.length%e.colsCount)%e.colsCount;this.elements.$postsContainer.find("."+e.classes.ghostItem).slice(n).remove()},handleEmptyColumns:function handleEmptyColumns(){this.removeExtraGhostItems();for(var e=this.getSettings(),t=this.elements.$posts.filter(":visible"),n=this.elements.$postsContainer.find("."+e.classes.ghostItem),i=(e.colsCount-(t.length+n.length)%e.colsCount)%e.colsCount,a=0;a<i;a++)this.elements.$postsContainer.append(jQuery("<div>",{class:e.classes.item+" "+e.classes.ghostItem}))},showItems:function showItems(e){e.show(),setTimeout((function(){e.css({opacity:1})}))},hideItems:function hideItems(e){e.hide()},arrangeGrid:function arrangeGrid(){var e=jQuery,t=this,n=t.getSettings(),i=t.elements.$posts.filter("."+n.classes.active),a=t.elements.$posts.not("."+n.classes.active),s=t.elements.$posts.filter(":visible"),r=i.add(s),o=i.filter(":visible"),l=i.filter(":hidden"),u=a.filter(":visible"),d=s.outerWidth(),c=s.outerHeight();if(t.elements.$posts.css("transition-duration",n.transitionDuration+"ms"),t.showItems(l),t.isEdit&&t.fitImages(),t.handleEmptyColumns(),t.isMasonryEnabled())return t.hideItems(u),t.showItems(l),t.handleEmptyColumns(),void t.runMasonry();u.css({opacity:0,transform:"scale3d(0.2, 0.2, 1)"}),o.each((function(){var n=e(this),i=t.getOffset(r.index(n),d,c),a=t.getOffset(s.index(n),d,c);i.start===a.start&&i.top===a.top||(a.start-=i.start,a.top-=i.top,elementorFrontend.config.is_rtl&&(a.start*=-1),n.css({transitionDuration:"",transform:"translate3d("+a.start+"px, "+a.top+"px, 0)"}))})),setTimeout((function(){i.each((function(){var a=e(this),s=t.getOffset(r.index(a),d,c),o=t.getOffset(i.index(a),d,c);a.css({transitionDuration:n.transitionDuration+"ms"}),o.start-=s.start,o.top-=s.top,elementorFrontend.config.is_rtl&&(o.start*=-1),setTimeout((function(){a.css("transform","translate3d("+o.start+"px, "+o.top+"px, 0)")}))}))})),setTimeout((function(){t.hideItems(u),i.css({transitionDuration:"",transform:"translate3d(0px, 0px, 0px)"}),t.handleEmptyColumns()}),n.transitionDuration)},activeFilterButton:function activeFilterButton(e){var t=this.getSettings("classes.active"),n=this.elements.$filterButtons,i=n.filter('[data-filter="'+e+'"]');n.removeClass(t),i.addClass(t)},setFilter:function setFilter(e){this.activeFilterButton(e),this.filterItems(e),this.arrangeGrid()},refreshGrid:function refreshGrid(){this.setColsCountSettings(),this.arrangeGrid()},bindEvents:function bindEvents(){a.default.prototype.bindEvents.apply(this,arguments),this.elements.$filterButtons.on("click",this.onFilterButtonClick)},isMasonryEnabled:function isMasonryEnabled(){return!!this.getElementSettings("masonry")},run:function run(){a.default.prototype.run.apply(this,arguments),this.setColsCountSettings(),this.setFilter("__all"),this.handleEmptyColumns()},onFilterButtonClick:function onFilterButtonClick(e){this.setFilter(jQuery(e.currentTarget).data("filter"))},onWindowResize:function onWindowResize(){a.default.prototype.onWindowResize.apply(this,arguments),this.refreshGrid()},onElementChange:function onElementChange(e){a.default.prototype.onElementChange.apply(this,arguments),"classic_item_ratio"===e&&this.refreshGrid()}});t.default=s},2926:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(4828),n(1954);var i=elementorModules.frontend.handlers.Base.extend({getSkinPrefix:function getSkinPrefix(){return"classic_"},bindEvents:function bindEvents(){var e=this.getModelCID();elementorFrontend.addListenerOnce(e,"resize",this.onWindowResize)},getClosureMethodsNames:function getClosureMethodsNames(){return elementorModules.frontend.handlers.Base.prototype.getClosureMethodsNames.apply(this,arguments).concat(["fitImages","onWindowResize","runMasonry"])},getDefaultSettings:function getDefaultSettings(){return{classes:{fitHeight:"elementor-fit-height",hasItemRatio:"elementor-has-item-ratio"},selectors:{postsContainer:".elementor-posts-container",post:".elementor-post",postThumbnail:".elementor-post__thumbnail",postThumbnailImage:".elementor-post__thumbnail img"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors");return{$postsContainer:this.$element.find(e.postsContainer),$posts:this.$element.find(e.post)}},fitImage:function fitImage(e){var t=this.getSettings(),n=e.find(t.selectors.postThumbnail),i=n.find("img")[0];if(i){var a=n.outerHeight()/n.outerWidth(),s=i.naturalHeight/i.naturalWidth;n.toggleClass(t.classes.fitHeight,s<a)}},fitImages:function fitImages(){var e=jQuery,t=this,n=getComputedStyle(this.$element[0],":after").content,i=this.getSettings();this.elements.$postsContainer.toggleClass(i.classes.hasItemRatio,!!n.match(/\d/)),t.isMasonryEnabled()||this.elements.$posts.each((function(){var n=e(this),a=n.find(i.selectors.postThumbnailImage);t.fitImage(n),a.on("load",(function(){t.fitImage(n)}))}))},setColsCountSettings:function setColsCountSettings(){var e,t=elementorFrontend.getCurrentDeviceMode(),n=this.getElementSettings(),i=this.getSkinPrefix();switch(t){case"mobile":e=n[i+"columns_mobile"];break;case"tablet":e=n[i+"columns_tablet"];break;default:e=n[i+"columns"]}this.setSettings("colsCount",e)},isMasonryEnabled:function isMasonryEnabled(){return!!this.getElementSettings(this.getSkinPrefix()+"masonry")},initMasonry:function initMasonry(){imagesLoaded(this.elements.$posts,this.runMasonry)},runMasonry:function runMasonry(){var e=this.elements;e.$posts.css({marginTop:"",transitionDuration:""}),this.setColsCountSettings();var t=this.getSettings("colsCount"),n=this.isMasonryEnabled()&&t>=2;if(e.$postsContainer.toggleClass("elementor-posts-masonry",n),n){var i=this.getElementSettings(this.getSkinPrefix()+"row_gap.size");""===this.getSkinPrefix()&&""===i&&(i=this.getElementSettings(this.getSkinPrefix()+"item_gap.size")),new elementorModules.utils.Masonry({container:e.$postsContainer,items:e.$posts.filter(":visible"),columnsCount:this.getSettings("colsCount"),verticalSpaceBetween:i}).run()}else e.$postsContainer.height("")},run:function run(){setTimeout(this.fitImages,0),this.initMasonry()},onInit:function onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.bindEvents(),this.run()},onWindowResize:function onWindowResize(){this.fitImages(),this.runMasonry()},onElementChange:function onElementChange(){this.fitImages(),setTimeout(this.runMasonry)}});t.default=i},7990:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(9327)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("share-buttons",o.default),e}return _default}(elementorModules.Module);t.default=l},9327:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var a=i(n(7135));n(6248);var s,r=i(n(9117)),o=elementorModules.frontend.handlers.Base.extend({onInit:(s=(0,r.default)(a.default.mark((function _callee(){var e,t,n,i,s=arguments;return a.default.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:if(this.isActive()){a.next=2;break}return a.abrupt("return");case 2:if(elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,s),e=this.getElementSettings(),t=this.getSettings("classes"),n=e.share_url&&e.share_url.url,i={classPrefix:t.shareLinkPrefix},n?i.url=e.share_url.url:(i.url=location.href,i.title=elementorFrontend.config.post.title,i.text=elementorFrontend.config.post.excerpt,i.image=elementorFrontend.config.post.featuredImage),window.ShareLink||!elementorFrontend.utils.assetsLoader){a.next=8;break}return a.next=8,elementorFrontend.utils.assetsLoader.load("script","share-link");case 8:if(this.elements.$shareButton.shareLink){a.next=10;break}return a.abrupt("return");case 10:this.elements.$shareButton.shareLink(i);case 11:case"end":return a.stop()}}),_callee,this)}))),function onInit(){return s.apply(this,arguments)}),getDefaultSettings:function getDefaultSettings(){return{selectors:{shareButton:".elementor-share-btn"},classes:{shareLinkPrefix:"elementor-share-btn_"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors");return{$shareButton:this.$element.find(e.shareButton)}},isActive:function isActive(){return!elementorFrontend.isEditMode()}});t.default=o},5056:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(7956)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("slides",o.default),e}return _default}(elementorModules.Module);t.default=l},7956:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(7135));n(6248);var s=i(n(9117));n(1954);var r=i(n(1959)),o=i(n(9041)),l=i(n(7371)),u=i(n(8537)),d=function(e){(0,l.default)(SlidesHandler,e);var t,n=(0,u.default)(SlidesHandler);function SlidesHandler(){return(0,r.default)(this,SlidesHandler),n.apply(this,arguments)}return(0,o.default)(SlidesHandler,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{slider:".elementor-slides-wrapper",slide:".swiper-slide",slideInnerContents:".swiper-slide-contents",activeSlide:".swiper-slide-active",activeDuplicate:".swiper-slide-duplicate-active"},classes:{animated:"animated",kenBurnsActive:"elementor-ken-burns--active",slideBackground:"swiper-slide-bg"},attributes:{dataSliderOptions:"slider_options",dataAnimation:"animation"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.slider)};return t.$slides=t.$swiperContainer.find(e.slide),t}},{key:"getSwiperOptions",value:function getSwiperOptions(){var e=this,t=this.getElementSettings(),n={autoplay:this.getAutoplayConfig(),grabCursor:!0,initialSlide:this.getInitialSlide(),slidesPerView:1,slidesPerGroup:1,loop:"yes"===t.infinite,speed:t.transition_speed,effect:t.transition,observeParents:!0,observer:!0,handleElementorBreakpoints:!0,on:{slideChange:function slideChange(){e.handleKenBurns()}}},i="arrows"===t.navigation||"both"===t.navigation,a="dots"===t.navigation||"both"===t.navigation;return i&&(n.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),a&&(n.pagination={el:".swiper-pagination",type:"bullets",clickable:!0}),!0===n.loop&&(n.loopedSlides=this.getSlidesCount()),"fade"===n.effect&&(n.fadeEffect={crossFade:!0}),n}},{key:"getAutoplayConfig",value:function getAutoplayConfig(){var e=this.getElementSettings();return"yes"===e.autoplay&&{stopOnLastSlide:!0,delay:e.autoplay_speed,disableOnInteraction:"yes"===e.pause_on_interaction}}},{key:"initSingleSlideAnimations",value:function initSingleSlideAnimations(){var e=this.getSettings(),t=this.elements.$swiperContainer.data(e.attributes.dataAnimation);this.elements.$swiperContainer.find("."+e.classes.slideBackground).addClass(e.classes.kenBurnsActive),t&&this.elements.$swiperContainer.find(e.selectors.slideInnerContents).addClass(e.classes.animated+" "+t)}},{key:"initSlider",value:(t=(0,s.default)(a.default.mark((function _callee(){var e,t,n,i,s;return a.default.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:if(e=this.elements.$swiperContainer,t=this.getSettings(),n=this.getElementSettings(),i=e.data(t.attributes.dataAnimation),e.length){a.next=3;break}return a.abrupt("return");case 3:if(!(1>=this.getSlidesCount())){a.next=5;break}return a.abrupt("return");case 5:return s=elementorFrontend.utils.swiper,a.next=8,new s(e,this.getSwiperOptions());case 8:if(this.swiper=a.sent,e.data("swiper",this.swiper),this.handleKenBurns(),n.pause_on_hover&&this.togglePauseOnHover(!0),i){a.next=14;break}return a.abrupt("return");case 14:this.swiper.on("slideChangeTransitionStart",(function(){e.find(t.selectors.slideInnerContents).removeClass(t.classes.animated+" "+i).hide()})),this.swiper.on("slideChangeTransitionEnd",(function(){e.find(t.selectors.slideInnerContents).show().addClass(t.classes.animated+" "+i)}));case 16:case"end":return a.stop()}}),_callee,this)}))),function initSlider(){return t.apply(this,arguments)})},{key:"onInit",value:function onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),2>this.getSlidesCount()?this.initSingleSlideAnimations():this.initSlider()}},{key:"getChangeableProperties",value:function getChangeableProperties(){return{pause_on_hover:"pauseOnHover",pause_on_interaction:"disableOnInteraction",autoplay_speed:"delay",transition_speed:"speed"}}},{key:"updateSwiperOption",value:function updateSwiperOption(e){if(0!==e.indexOf("width")){var t=this.getElementSettings(),n=t[e],i=this.getChangeableProperties()[e],a=n;switch(e){case"autoplay_speed":i="autoplay",a={delay:n,disableOnInteraction:"yes"===t.pause_on_interaction};break;case"pause_on_hover":this.togglePauseOnHover("yes"===n);break;case"pause_on_interaction":a="yes"===n}"pause_on_hover"!==e&&(this.swiper.params[i]=a),this.swiper.update()}else this.swiper.update()}},{key:"onElementChange",value:function onElementChange(e){1>=this.getSlidesCount()||this.getChangeableProperties().hasOwnProperty(e)&&this.updateSwiperOption(e)}},{key:"onEditSettingsChange",value:function onEditSettingsChange(e){1>=this.getSlidesCount()||"activeItemIndex"===e&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}}]),SlidesHandler}(elementorModules.frontend.handlers.SwiperBase);t.default=d},2189:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(908)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("facebook-button",o.default),elementorFrontend.elementsHandler.attachHandler("facebook-comments",o.default),elementorFrontend.elementsHandler.attachHandler("facebook-embed",o.default),elementorFrontend.elementsHandler.attachHandler("facebook-page",o.default),e}return _default}(elementorModules.Module);t.default=l},908:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9041)),r=i(n(6700)),o=i(n(4263)),l=i(n(7371)),u=i(n(8537)),d=function(e){(0,l.default)(FacebookHandler,e);var t=(0,u.default)(FacebookHandler);function FacebookHandler(){return(0,a.default)(this,FacebookHandler),t.apply(this,arguments)}return(0,s.default)(FacebookHandler,[{key:"getConfig",value:function getConfig(){return elementorProFrontend.config.facebook_sdk}},{key:"setConfig",value:function setConfig(e,t){elementorProFrontend.config.facebook_sdk[e]=t}},{key:"parse",value:function parse(){FB.XFBML.parse(this.$element[0])}},{key:"loadSDK",value:function loadSDK(){var e=this,t=this.getConfig();t.isLoading||t.isLoaded||(this.setConfig("isLoading",!0),jQuery.ajax({url:"https://connect.facebook.net/"+t.lang+"/sdk.js",dataType:"script",cache:!0,success:function success(){FB.init({appId:t.app_id,version:"v2.10",xfbml:!1}),e.setConfig("isLoaded",!0),e.setConfig("isLoading",!1),elementorFrontend.elements.$document.trigger("fb:sdk:loaded")}}))}},{key:"onInit",value:function onInit(){for(var e,t=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(e=(0,r.default)((0,o.default)(FacebookHandler.prototype),"onInit",this)).call.apply(e,[this].concat(i)),this.loadSDK();var s=this.getConfig();s.isLoaded?this.parse():elementorFrontend.elements.$document.on("fb:sdk:loaded",(function(){return t.parse()}))}}]),FacebookHandler}(elementorModules.frontend.handlers.Base);t.default=d},4429:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(5791)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("table-of-contents",o.default),e}return _default}(elementorModules.Module);t.default=l},5791:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(3452));n(513),n(1954);var s=i(n(1959)),r=i(n(9041)),o=i(n(6700)),l=i(n(4263)),u=i(n(7371)),d=i(n(8537)),c=function(e){(0,u.default)(TOCHandler,e);var t=(0,d.default)(TOCHandler);function TOCHandler(){return(0,s.default)(this,TOCHandler),t.apply(this,arguments)}return(0,r.default)(TOCHandler,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{widgetContainer:".elementor-widget-container",postContentContainer:'.elementor:not([data-elementor-type="header"]):not([data-elementor-type="footer"]):not([data-elementor-type="popup"])',expandButton:".elementor-toc__toggle-button--expand",collapseButton:".elementor-toc__toggle-button--collapse",body:".elementor-toc__body",headerTitle:".elementor-toc__header-title"},classes:{anchor:"elementor-menu-anchor",listWrapper:"elementor-toc__list-wrapper",listItem:"elementor-toc__list-item",listTextWrapper:"elementor-toc__list-item-text-wrapper",firstLevelListItem:"elementor-toc__top-level",listItemText:"elementor-toc__list-item-text",activeItem:"elementor-item-active",headingAnchor:"elementor-toc__heading-anchor",collapsed:"elementor-toc--collapsed"},listWrapperTag:"numbers"===this.getElementSettings().marker_view?"ol":"ul"}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings();return{$pageContainer:this.getContainer(),$widgetContainer:this.$element.find(e.selectors.widgetContainer),$expandButton:this.$element.find(e.selectors.expandButton),$collapseButton:this.$element.find(e.selectors.collapseButton),$tocBody:this.$element.find(e.selectors.body),$listItems:this.$element.find("."+e.classes.listItem)}}},{key:"getContainer",value:function getContainer(){var e=this.getSettings(),t=this.getElementSettings();if(t.container)return jQuery(t.container);var n=this.$element.parents(".elementor");return"popup"===n.attr("data-elementor-type")?n:jQuery(e.selectors.postContentContainer)}},{key:"bindEvents",value:function bindEvents(){var e=this,t=this.getElementSettings();t.minimize_box&&(this.elements.$expandButton.on("click",(function(){return e.expandBox()})),this.elements.$collapseButton.on("click",(function(){return e.collapseBox()}))),t.collapse_subitems&&this.elements.$listItems.on("hover",(function(e){return jQuery(e.target).slideToggle()}))}},{key:"getHeadings",value:function getHeadings(){var e=this.getElementSettings(),t=e.headings_by_tags.join(","),n=this.getSettings("selectors"),i=e.exclude_headings_by_selector;return this.elements.$pageContainer.find(t).not(n.headerTitle).filter((function(e,t){return!jQuery(t).closest(i).length}))}},{key:"addAnchorsBeforeHeadings",value:function addAnchorsBeforeHeadings(){var e=this,t=this.getSettings("classes");this.elements.$headings.before((function(n){if(!jQuery(e.elements.$headings[n]).data("hasOwnID"))return'<span id="'.concat(t.headingAnchor,"-").concat(n,'" class="').concat(t.anchor,' "></span>')}))}},{key:"activateItem",value:function activateItem(e){var t,n=this.getSettings("classes");(this.deactivateActiveItem(e),e.addClass(n.activeItem),this.$activeItem=e,this.getElementSettings("collapse_subitems"))&&((t=e.hasClass(n.firstLevelListItem)?e.parent().next():e.parents("."+n.listWrapper).eq(-2)).length?(this.$activeList=t,this.$activeList.stop().slideDown()):delete this.$activeList)}},{key:"deactivateActiveItem",value:function deactivateActiveItem(e){if(this.$activeItem&&!this.$activeItem.is(e)){var t=this.getSettings().classes;this.$activeItem.removeClass(t.activeItem),!this.$activeList||e&&this.$activeList[0].contains(e[0])||this.$activeList.slideUp()}}},{key:"followAnchor",value:function followAnchor(e,t){var n,i=this,s=e[0].hash;try{n=jQuery(decodeURIComponent(s))}catch(e){return}elementorFrontend.waypoint(n,(function(a){if(!i.itemClicked){var s=n.attr("id");"down"===a?(i.viewportItems[s]=!0,i.activateItem(e)):(delete i.viewportItems[s],i.activateItem(i.$listItemTexts.eq(t-1)))}}),{offset:"bottom-in-view",triggerOnce:!1}),elementorFrontend.waypoint(n,(function(s){if(!i.itemClicked){var r=n.attr("id");"down"===s?(delete i.viewportItems[r],(0,a.default)(i.viewportItems).length&&i.activateItem(i.$listItemTexts.eq(t+1))):(i.viewportItems[r]=!0,i.activateItem(e))}}),{offset:0,triggerOnce:!1})}},{key:"followAnchors",value:function followAnchors(){var e=this;this.$listItemTexts.each((function(t,n){return e.followAnchor(jQuery(n),t)}))}},{key:"populateTOC",value:function populateTOC(){this.listItemPointer=0,this.getElementSettings().hierarchical_view?this.createNestedList():this.createFlatList(),this.$listItemTexts=this.$element.find(".elementor-toc__list-item-text"),this.$listItemTexts.on("click",this.onListItemClick.bind(this)),elementorFrontend.isEditMode()||this.followAnchors()}},{key:"createNestedList",value:function createNestedList(){var e=this;this.headingsData.forEach((function(t,n){t.level=0;for(var i=n-1;i>=0;i--){var a=e.headingsData[i];if(a.tag<=t.tag){t.level=a.level,a.tag<t.tag&&t.level++;break}}})),this.elements.$tocBody.html(this.getNestedLevel(0))}},{key:"createFlatList",value:function createFlatList(){this.elements.$tocBody.html(this.getNestedLevel())}},{key:"getNestedLevel",value:function getNestedLevel(e){for(var t=this.getSettings(),n=this.getElementSettings(),i=this.getElementSettings("icon"),a="<".concat(t.listWrapperTag,' class="').concat(t.classes.listWrapper,'">');this.listItemPointer<this.headingsData.length;){var s=this.headingsData[this.listItemPointer],r=t.classes.listItemText;if(0===s.level&&(r+=" "+t.classes.firstLevelListItem),e>s.level)break;if(e===s.level){a+='<li class="'.concat(t.classes.listItem,'">'),a+='<div class="'.concat(t.classes.listTextWrapper,'">');var o='<a href="#'.concat(s.anchorLink,'" class="').concat(r,'">').concat(s.text,"</a>");"bullets"===n.marker_view&&i&&(o='<i class="'.concat(i.value,'"></i>').concat(o)),a+=o,a+="</div>",this.listItemPointer++;var l=this.headingsData[this.listItemPointer];l&&e<l.level&&(a+=this.getNestedLevel(l.level)),a+="</li>"}}return a+="</".concat(t.listWrapperTag,">")}},{key:"handleNoHeadingsFound",value:function handleNoHeadingsFound(){var e=elementorProFrontend.config.i18n.toc_no_headings_found;return elementorFrontend.isEditMode()&&(e=elementorPro.translate("toc_no_headings_found")),this.elements.$tocBody.html(e)}},{key:"collapseOnInit",value:function collapseOnInit(){var e=this.getElementSettings("minimized_on"),t=elementorFrontend.getCurrentDeviceMode();("tablet"===e&&"desktop"!==t||"mobile"===e&&"mobile"===t)&&this.collapseBox()}},{key:"getHeadingAnchorLink",value:function getHeadingAnchorLink(e,t){var n=this.elements.$headings[e].id,i=this.elements.$headings[e].closest(".elementor-widget").id,a="";return n?a=n:i&&(a=i),n||i?jQuery(this.elements.$headings[e]).data("hasOwnID",!0):a="".concat(t.headingAnchor,"-").concat(e),a}},{key:"setHeadingsData",value:function setHeadingsData(){var e=this;this.headingsData=[];var t=this.getSettings("classes");this.elements.$headings.each((function(n,i){var a=e.getHeadingAnchorLink(n,t);e.headingsData.push({tag:+i.nodeName.slice(1),text:i.textContent,anchorLink:a})}))}},{key:"run",value:function run(){if(this.elements.$headings=this.getHeadings(),!this.elements.$headings.length)return this.handleNoHeadingsFound();this.setHeadingsData(),elementorFrontend.isEditMode()||this.addAnchorsBeforeHeadings(),this.populateTOC(),this.getElementSettings("minimize_box")&&this.collapseOnInit()}},{key:"expandBox",value:function expandBox(){var e=this.getCurrentDeviceSetting("min_height");this.$element.removeClass(this.getSettings("classes.collapsed")),this.elements.$tocBody.slideDown(),this.elements.$widgetContainer.css("min-height",e.size+e.unit)}},{key:"collapseBox",value:function collapseBox(){this.$element.addClass(this.getSettings("classes.collapsed")),this.elements.$tocBody.slideUp(),this.elements.$widgetContainer.css("min-height","0px")}},{key:"onInit",value:function onInit(){for(var e,t=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(e=(0,o.default)((0,l.default)(TOCHandler.prototype),"onInit",this)).call.apply(e,[this].concat(i)),this.viewportItems=[],jQuery((function(){return t.run()}))}},{key:"onListItemClick",value:function onListItemClick(e){var t=this;this.itemClicked=!0,setTimeout((function(){return t.itemClicked=!1}),2e3);var n,i=jQuery(e.target),a=i.parent().next(),s=this.getElementSettings("collapse_subitems");s&&i.hasClass(this.getSettings("classes.firstLevelListItem"))&&a.is(":visible")&&(n=!0),this.activateItem(i),s&&n&&a.slideUp()}}]),TOCHandler}(elementorModules.frontend.handlers.Base);t.default=c},9940:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(2679),n(4828);var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(3824)),l=i(n(7177)),u=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("archive-posts",o.default,"archive_classic"),elementorFrontend.elementsHandler.attachHandler("archive-posts",o.default,"archive_full_content"),elementorFrontend.elementsHandler.attachHandler("archive-posts",l.default,"archive_cards"),jQuery((function(){var e=location.search.match(/theme_template_id=(\d*)/),t=e?jQuery(".elementor-"+e[1]):[];t.length&&jQuery("html, body").animate({scrollTop:t.offset().top-window.innerHeight/2})})),e}return _default}(elementorModules.Module);t.default=u},7177:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(8014)).default.extend({getSkinPrefix:function getSkinPrefix(){return"archive_cards_"}});t.default=a},3824:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(2926)).default.extend({getSkinPrefix:function getSkinPrefix(){return"archive_classic_"}});t.default=a},9874:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(7371)),r=i(n(8537)),o=i(n(188)),l=function(e){(0,s.default)(_default,e);var t=(0,r.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("search-form",o.default),e}return _default}(elementorModules.Module);t.default=l},188:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var i=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function getDefaultSettings(){return{selectors:{wrapper:".elementor-search-form",container:".elementor-search-form__container",icon:".elementor-search-form__icon",input:".elementor-search-form__input",toggle:".elementor-search-form__toggle",submit:".elementor-search-form__submit",closeButton:".dialog-close-button"},classes:{isFocus:"elementor-search-form--focus",isFullScreen:"elementor-search-form--full-screen",lightbox:"elementor-lightbox"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$wrapper=this.$element.find(e.wrapper),t.$container=this.$element.find(e.container),t.$input=this.$element.find(e.input),t.$icon=this.$element.find(e.icon),t.$toggle=this.$element.find(e.toggle),t.$submit=this.$element.find(e.submit),t.$closeButton=this.$element.find(e.closeButton),t},bindEvents:function bindEvents(){var e=this,t=e.elements.$container,n=e.elements.$closeButton,i=e.elements.$input,a=e.elements.$wrapper,s=e.elements.$icon,r=this.getElementSettings("skin"),o=this.getSettings("classes");"full_screen"===r?(e.elements.$toggle.on("click",(function(){t.toggleClass(o.isFullScreen).toggleClass(o.lightbox),i.trigger("focus")})),t.on("click",(function(e){t.hasClass(o.isFullScreen)&&t[0]===e.target&&t.removeClass(o.isFullScreen).removeClass(o.lightbox)})),n.on("click",(function(){t.removeClass(o.isFullScreen).removeClass(o.lightbox)})),elementorFrontend.elements.$document.on("keyup",(function(e){27===e.keyCode&&t.hasClass(o.isFullScreen)&&t.trigger("click")}))):i.on({focus:function focus(){a.addClass(o.isFocus)},blur:function blur(){a.removeClass(o.isFocus)}}),"minimal"===r&&s.on("click",(function(){a.addClass(o.isFocus),i.trigger("focus")}))}});t.default=i},4269:(e,t,n)=>{"use strict";var i=n(7971);n(7394)(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1959)),s=i(n(9771)),r=i(n(7371)),o=i(n(8537)),l=i(n(9428)),u=function(e){(0,r.default)(_default,e);var t=(0,o.default)(_default);function _default(){var e;return(0,a.default)(this,_default),e=t.call(this),elementorFrontend.elementsHandler.attachHandler("woocommerce-menu-cart",l.default),elementorFrontend.isEditMode()?(0,s.default)(e):(elementorFrontend.elements.$body.on("wc_fragments_loaded wc_fragments_refreshed",(function(){jQuery("div.elementor-widget-woocommerce-menu-cart").each((function(){elementorFrontend.elementsHandler.runReadyTrigger(jQuery(this))}))})),e)}return _default}(elementorModules.Module);t.default=u},9428:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var i=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function getDefaultSettings(){return{selectors:{container:".elementor-menu-cart__container",main:".elementor-menu-cart__main",toggle:".elementor-menu-cart__toggle .elementor-button",closeButton:".elementor-menu-cart__close-button",cartLink:"#elementor-menu-cart__toggle_button"},classes:{isShown:"elementor-menu-cart--shown",lightbox:"elementor-lightbox"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$container=this.$element.find(e.container),t.$main=this.$element.find(e.main),t.$toggle=this.$element.find(e.toggle),t.$closeButton=this.$element.find(e.closeButton),t.$cartLink=this.$element.find(e.cartLink),t},toggleAriaExpanded:function toggleAriaExpanded(e){e.attr("aria-expanded",(function(e,t){return void 0===t||"true"!==t}))},removeAttributesOnHide:function removeAttributesOnHide(){var e=this.elements,t=e.$container,n=e.$main,i=this.getSettings("classes");t.removeClass(i.isShown).attr("aria-expanded",!1),n.attr("aria-expanded",!1)},bindEvents:function bindEvents(){var e=this,t=this.elements,n=t.$container,i=t.$main,a=t.$toggle,s=t.$closeButton,r=t.$cartLink,o=this.getSettings("classes");a.on("click",(function(t){var a=-1===ElementorProFrontendConfig.menu_cart.cart_page_url.indexOf("?")?window.location.origin+window.location.pathname:window.location.href,s=ElementorProFrontendConfig.menu_cart.cart_page_url===a,l=ElementorProFrontendConfig.menu_cart.checkout_page_url===a;if(s||l){var u=ElementorProFrontendConfig.menu_cart.cart_page_url;r.attr("href",u),e.removeAttributesOnHide()}else t.preventDefault(),n.toggleClass(o.isShown),e.toggleAriaExpanded(n),e.toggleAriaExpanded(i)})),n.on("click",(function(t){n.hasClass(o.isShown)&&n[0]===t.target&&e.removeAttributesOnHide()})),s.on("click",(function(){e.removeAttributesOnHide()})),elementorFrontend.elements.$document.on("keyup",(function(e){27===e.keyCode&&n.hasClass(o.isShown)&&n.trigger("click")}))}});t.default=i},5776:(e,t,n)=>{var i=n(5772),a=n(8625),s=n(1622),r=/"/g,createHTML=function(e,t,n,i){var a=String(s(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+String(i).replace(r,""")+'"'),o+">"+a+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(createHTML),i(i.P+i.F*a((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},4208:(e,t,n)=>{"use strict";var i=n(6365),a=n(6033),s=n(6078),r=n(3338),o=n(8492),l=n(2404),u=Math.max,d=Math.min,c=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,m=/\$([$&`']|\d\d?)/g;n(8897)("replace",2,(function(e,t,n,f){return[function replace(i,a){var s=e(this),r=null==i?void 0:i[t];return void 0!==r?r.call(i,s,a):n.call(String(s),i,a)},function(e,t){var a=f(n,e,this,t);if(a.done)return a.value;var c=i(e),h=String(this),m="function"==typeof t;m||(t=String(t));var g=c.global;if(g){var p=c.unicode;c.lastIndex=0}for(var v=[];;){var _=l(c,h);if(null===_)break;if(v.push(_),!g)break;""===String(_[0])&&(c.lastIndex=o(h,s(c.lastIndex),p))}for(var y,S="",k=0,b=0;b<v.length;b++){_=v[b];for(var w=String(_[0]),C=u(d(r(_.index),h.length),0),$=[],E=1;E<_.length;E++)$.push(void 0===(y=_[E])?y:String(y));var x=_.groups;if(m){var F=[w].concat($,C,h);void 0!==x&&F.push(x);var M=String(t.apply(void 0,F))}else M=getSubstitution(w,h,C,$,x,t);C>=k&&(S+=h.slice(k,C)+M,k=C+w.length)}return S+h.slice(k)}];function getSubstitution(e,t,i,s,r,o){var l=i+e.length,u=s.length,d=m;return void 0!==r&&(r=a(r),d=h),n.call(o,d,(function(n,a){var o;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":o=r[a.slice(1,-1)];break;default:var d=+a;if(0===d)return n;if(d>u){var h=c(d/10);return 0===h?n:h<=u?void 0===s[h-1]?a.charAt(1):s[h-1]+a.charAt(1):n}o=s[d-1]}return void 0===o?"":o}))}}))},513:(e,t,n)=>{"use strict";n(5776)("anchor",(function(e){return function anchor(t){return e(this,"a","name",t)}}))},5942:(e,t,n)=>{"use strict";var i=n(5772),a=n(6078),s=n(465),r="startsWith",o="".startsWith;i(i.P+i.F*n(6570)(r),"String",{startsWith:function startsWith(e){var t=s(this,e,r),n=a(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return o?o.call(t,i,n):t.slice(n,n+i.length)===i}})},6248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",r=a.asyncIterator||"@@asyncIterator",o=a.toStringTag||"@@toStringTag";function wrap(e,t,n,i){var a=t&&t.prototype instanceof Generator?t:Generator,s=Object.create(a.prototype),r=new Context(i||[]);return s._invoke=function makeInvokeMethod(e,t,n){var i=l;return function invoke(a,s){if(i===d)throw new Error("Generator is already running");if(i===c){if("throw"===a)throw s;return doneResult()}for(n.method=a,n.arg=s;;){var r=n.delegate;if(r){var o=maybeInvokeDelegate(r,n);if(o){if(o===h)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===l)throw i=c,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var m=tryCatch(e,t,n);if("normal"===m.type){if(i=n.done?c:u,m.arg===h)continue;return{value:m.arg,done:n.done}}"throw"===m.type&&(i=c,n.method="throw",n.arg=m.arg)}}}(e,n,r),s}function tryCatch(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=wrap;var l="suspendedStart",u="suspendedYield",d="executing",c="completed",h={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var m={};m[s]=function(){return this};var f=Object.getPrototypeOf,g=f&&f(f(values([])));g&&g!==n&&i.call(g,s)&&(m=g);var p=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(m);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function AsyncIterator(e,t){function invoke(n,a,s,r){var o=tryCatch(e[n],e,a);if("throw"!==o.type){var l=o.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){invoke("next",e,s,r)}),(function(e){invoke("throw",e,s,r)})):t.resolve(u).then((function(e){l.value=e,s(l)}),(function(e){return invoke("throw",e,s,r)}))}r(o.arg)}var n;this._invoke=function enqueue(e,i){function callInvokeWithMethodAndArg(){return new t((function(t,n){invoke(e,i,t,n)}))}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,maybeInvokeDelegate(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=tryCatch(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,h;var s=a.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function next(){for(;++a<e.length;)if(i.call(e,a))return next.value=e[a],next.done=!1,next;return next.value=t,next.done=!0,next};return r.next=r}}return{next:doneResult}}function doneResult(){return{value:t,done:!0}}return GeneratorFunction.prototype=p.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunctionPrototype[o]=GeneratorFunction.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===GeneratorFunction||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(p),e},e.awrap=function(e){return{__await:e}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[r]=function(){return this},e.AsyncIterator=AsyncIterator,e.async=function(t,n,i,a,s){void 0===s&&(s=Promise);var r=new AsyncIterator(wrap(t,n,i,a),s);return e.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},defineIteratorMethods(p),p[o]="Generator",p[s]=function(){return this},p.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function next(){for(;t.length;){var n=t.pop();if(n in e)return next.value=n,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function handle(i,a){return r.type="throw",r.arg=e,n.next=i,a&&(n.method="next",n.arg=t),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],r=s.completion;if("root"===s.tryLoc)return handle("end");if(s.tryLoc<=this.prev){var o=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(o&&l){if(this.prev<s.catchLoc)return handle(s.catchLoc,!0);if(this.prev<s.finallyLoc)return handle(s.finallyLoc)}else if(o){if(this.prev<s.catchLoc)return handle(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return handle(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var r=s?s.completion:{};return r.type=e,r.arg=t,s?(this.method="next",this.next=s.finallyLoc,h):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;resetTryEntry(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:values(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}},0,[[6070,396,819]]]);
/*! elementor - v3.4.6 - 19-10-2021 */
(self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[882,723,209,745,120,192,520,181,791,268,357],{8470:(e,t,s)=>{"use strict";var i=s(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(s(9728));class Accordion extends n.default{getDefaultSettings(){return{...super.getDefaultSettings(),showTabFn:"slideDown",hideTabFn:"slideUp"}}}t.default=Accordion},9269:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Alert extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{dismissButton:".elementor-alert-dismiss"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$dismissButton:this.$element.find(e.dismissButton)}}bindEvents(){this.elements.$dismissButton.on("click",this.onDismissButtonClick.bind(this))}onDismissButtonClick(){this.$element.fadeOut()}}t.default=Alert},9728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class baseTabs extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{tablist:'[role="tablist"]',tabTitle:".elementor-tab-title",tabContent:".elementor-tab-content"},classes:{active:"elementor-active"},showTabFn:"show",hideTabFn:"hide",toggleSelf:!0,hidePrevious:!0,autoExpand:!0,keyDirection:{ArrowLeft:elementorFrontendConfig.is_rtl?1:-1,ArrowUp:-1,ArrowRight:elementorFrontendConfig.is_rtl?-1:1,ArrowDown:1}}}getDefaultElements(){const e=this.getSettings("selectors");return{$tabTitles:this.findElement(e.tabTitle),$tabContents:this.findElement(e.tabContent)}}activateDefaultTab(){const e=this.getSettings();if(!e.autoExpand||"editor"===e.autoExpand&&!this.isEdit)return;const t=this.getEditSettings("activeItemIndex")||1,s={showTabFn:e.showTabFn,hideTabFn:e.hideTabFn};this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(t),this.setSettings(s)}handleKeyboardNavigation(e){const t=e.currentTarget,s=jQuery(t.closest(this.getSettings("selectors").tablist)),i=s.find(this.getSettings("selectors").tabTitle),n="vertical"===s.attr("aria-orientation");switch(e.key){case"ArrowLeft":case"ArrowRight":if(n)return;break;case"ArrowUp":case"ArrowDown":if(!n)return;e.preventDefault();break;case"Home":return e.preventDefault(),void i.first().focus();case"End":return e.preventDefault(),void i.last().focus();default:return}const o=t.getAttribute("data-tab")-1,a=this.getSettings("keyDirection")[e.key],r=i[o+a];r?r.focus():-1===o+a?i.last().focus():i.first().focus()}deactivateActiveTab(e){const t=this.getSettings(),s=t.classes.active,i=e?'[data-tab="'+e+'"]':"."+s,n=this.elements.$tabTitles.filter(i),o=this.elements.$tabContents.filter(i);n.add(o).removeClass(s),n.attr({tabindex:"-1","aria-selected":"false","aria-expanded":"false"}),o[t.hideTabFn](),o.attr("hidden","hidden")}activateTab(e){const t=this.getSettings(),s=t.classes.active,i=this.elements.$tabTitles.filter('[data-tab="'+e+'"]'),n=this.elements.$tabContents.filter('[data-tab="'+e+'"]'),o="show"===t.showTabFn?0:400;i.add(n).addClass(s),i.attr({tabindex:"0","aria-selected":"true","aria-expanded":"true"}),n[t.showTabFn](o,(()=>elementorFrontend.elements.$window.trigger("resize"))),n.removeAttr("hidden")}isActiveTab(e){return this.elements.$tabTitles.filter('[data-tab="'+e+'"]').hasClass(this.getSettings("classes.active"))}bindEvents(){this.elements.$tabTitles.on({keydown:e=>{jQuery(e.target).is("a")&&"Enter"===e.key&&e.preventDefault(),["End","Home","ArrowUp","ArrowDown"].includes(e.key)&&this.handleKeyboardNavigation(e)},keyup:e=>{switch(e.key){case"ArrowLeft":case"ArrowRight":this.handleKeyboardNavigation(e);break;case"Enter":case"Space":e.preventDefault(),this.changeActiveTab(e.currentTarget.getAttribute("data-tab"))}},click:e=>{e.preventDefault(),this.changeActiveTab(e.currentTarget.getAttribute("data-tab"))}})}onInit(...e){super.onInit(...e),this.activateDefaultTab()}onEditSettingsChange(e){"activeItemIndex"===e&&this.activateDefaultTab()}changeActiveTab(e){const t=this.isActiveTab(e),s=this.getSettings();!s.toggleSelf&&t||!s.hidePrevious||this.deactivateActiveTab(),!s.hidePrevious&&t&&this.deactivateActiveTab(e),t||this.activateTab(e)}}t.default=baseTabs},7884:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Counter extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{counterNumber:".elementor-counter-number"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$counterNumber:this.$element.find(e.counterNumber)}}onInit(){super.onInit(),this.intersectionObserver=elementorModules.utils.Scroll.scrollObserver({callback:e=>{if(e.isInViewport){this.intersectionObserver.unobserve(this.elements.$counterNumber[0]);const e=this.elements.$counterNumber.data(),t=e.toValue.toString().match(/\.(.*)/);t&&(e.rounding=t[1].length),this.elements.$counterNumber.numerator(e)}}}),this.intersectionObserver.observe(this.elements.$counterNumber[0])}}t.default=Counter},5914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class ImageCarousel extends elementorModules.frontend.handlers.SwiperBase{getDefaultSettings(){return{selectors:{carousel:".elementor-image-carousel-wrapper",slideContent:".swiper-slide"}}}getDefaultElements(){const e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.carousel)};return t.$slides=t.$swiperContainer.find(e.slideContent),t}getSwiperSettings(){const e=this.getElementSettings(),t=+e.slides_to_show||3,s=1===t,i=elementorFrontend.config.responsive.activeBreakpoints,n={mobile:1,tablet:s?1:2},o={slidesPerView:t,loop:"yes"===e.infinite,speed:e.speed,handleElementorBreakpoints:!0,breakpoints:{}};let a=t;Object.keys(i).reverse().forEach((t=>{const s=n[t]?n[t]:a;o.breakpoints[i[t].value]={slidesPerView:+e["slides_to_show_"+t]||s,slidesPerGroup:+e["slides_to_scroll_"+t]||1},a=+e["slides_to_show_"+t]||s})),"yes"===e.autoplay&&(o.autoplay={delay:e.autoplay_speed,disableOnInteraction:"yes"===e.pause_on_interaction}),s?(o.effect=e.effect,"fade"===e.effect&&(o.fadeEffect={crossFade:!0})):o.slidesPerGroup=+e.slides_to_scroll||1,e.image_spacing_custom&&(o.spaceBetween=e.image_spacing_custom.size);const r="arrows"===e.navigation||"both"===e.navigation,l="dots"===e.navigation||"both"===e.navigation;return r&&(o.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),l&&(o.pagination={el:".swiper-pagination",type:"bullets",clickable:!0}),o}async onInit(...e){super.onInit(...e);const t=this.getElementSettings();if(!this.elements.$swiperContainer.length||2>this.elements.$slides.length)return;const s=elementorFrontend.utils.swiper;this.swiper=await new s(this.elements.$swiperContainer,this.getSwiperSettings()),this.elements.$swiperContainer.data("swiper",this.swiper),"yes"===t.pause_on_hover&&this.togglePauseOnHover(!0)}updateSwiperOption(e){const t=this.getElementSettings()[e],s=this.swiper.params;switch(e){case"image_spacing_custom":s.spaceBetween=t.size||0;break;case"autoplay_speed":s.autoplay.delay=t;break;case"speed":s.speed=t}this.swiper.update()}getChangeableProperties(){return{pause_on_hover:"pauseOnHover",autoplay_speed:"delay",speed:"speed",image_spacing_custom:"spaceBetween"}}onElementChange(e){if(this.getChangeableProperties()[e])if("pause_on_hover"===e){const e=this.getElementSettings("pause_on_hover");this.togglePauseOnHover("yes"===e)}else this.updateSwiperOption(e)}onEditSettingsChange(e){"activeItemIndex"===e&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}}t.default=ImageCarousel},1351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Progress extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{progressNumber:".elementor-progress-bar"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$progressNumber:this.$element.find(e.progressNumber)}}onInit(){super.onInit(),elementorFrontend.waypoint(this.elements.$progressNumber,(()=>{const e=this.elements.$progressNumber;e.css("width",e.data("max")+"%")}))}}t.default=Progress},9459:(e,t,s)=>{"use strict";var i=s(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(s(9728));class Tabs extends n.default{getDefaultSettings(){return{...super.getDefaultSettings(),toggleSelf:!1}}}t.default=Tabs},1327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class TextEditor extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{paragraph:"p:first"},classes:{dropCap:"elementor-drop-cap",dropCapLetter:"elementor-drop-cap-letter"}}}getDefaultElements(){const e=this.getSettings("selectors"),t=this.getSettings("classes"),s=jQuery("<span>",{class:t.dropCap}),i=jQuery("<span>",{class:t.dropCapLetter});return s.append(i),{$paragraph:this.$element.find(e.paragraph),$dropCap:s,$dropCapLetter:i}}wrapDropCap(){if(!this.getElementSettings("drop_cap"))return void(this.dropCapLetter&&(this.elements.$dropCap.remove(),this.elements.$paragraph.prepend(this.dropCapLetter),this.dropCapLetter=""));const e=this.elements.$paragraph;if(!e.length)return;const t=e.html().replace(/ /g," "),s=t.match(/^ *([^ ] ?)/);if(!s)return;const i=s[1],n=i.trim();if("<"===n)return;this.dropCapLetter=i,this.elements.$dropCapLetter.text(n);const o=t.slice(i.length).replace(/^ */,(e=>new Array(e.length+1).join(" ")));e.html(o).prepend(this.elements.$dropCap)}onInit(...e){super.onInit(...e),this.wrapDropCap()}onElementChange(e){"drop_cap"===e&&this.wrapDropCap()}}t.default=TextEditor},2:(e,t,s)=>{"use strict";var i=s(7914);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(s(9728));class Toggle extends n.default{getDefaultSettings(){return{...super.getDefaultSettings(),showTabFn:"slideDown",hideTabFn:"slideUp",hidePrevious:!1,autoExpand:"editor"}}}t.default=Toggle},5363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Video extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{imageOverlay:".elementor-custom-embed-image-overlay",video:".elementor-video",videoIframe:".elementor-video-iframe"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$imageOverlay:this.$element.find(e.imageOverlay),$video:this.$element.find(e.video),$videoIframe:this.$element.find(e.videoIframe)}}handleVideo(){this.getElementSettings("lightbox")||("youtube"===this.getElementSettings("video_type")?this.apiProvider.onApiReady((e=>{this.elements.$imageOverlay.remove(),this.prepareYTVideo(e,!0)})):(this.elements.$imageOverlay.remove(),this.playVideo()))}playVideo(){if(this.elements.$video.length)return void(this.youtubePlayer?this.youtubePlayer.playVideo():this.elements.$video[0].play());const e=this.elements.$videoIframe,t=e.data("lazy-load");t&&e.attr("src",t),e[0].src=this.apiProvider.getAutoplayURL(e[0].src)}async animateVideo(){(await elementorFrontend.utils.lightbox).setEntranceAnimation(this.getCurrentDeviceSetting("lightbox_content_animation"))}async handleAspectRatio(){(await elementorFrontend.utils.lightbox).setVideoAspectRatio(this.getElementSettings("aspect_ratio"))}async hideLightbox(){(await elementorFrontend.utils.lightbox).getModal().hide()}prepareYTVideo(e,t){const s=this.getElementSettings(),i={videoId:this.videoID,events:{onReady:()=>{s.mute&&this.youtubePlayer.mute(),(s.autoplay||t)&&this.youtubePlayer.playVideo()},onStateChange:t=>{t.data===e.PlayerState.ENDED&&s.loop&&this.youtubePlayer.seekTo(s.start||0)}},playerVars:{controls:s.controls?1:0,rel:s.rel?1:0,playsinline:s.play_on_mobile?1:0,modestbranding:s.modestbranding?1:0,autoplay:s.autoplay?1:0,start:s.start,end:s.end}};s.yt_privacy&&(i.host="https://www.youtube-nocookie.com",i.origin=window.location.hostname),this.youtubePlayer=new e.Player(this.elements.$video[0],i)}bindEvents(){this.elements.$imageOverlay.on("click",this.handleVideo.bind(this))}onInit(){super.onInit();const e=this.getElementSettings();if(elementorFrontend.utils[e.video_type]?this.apiProvider=elementorFrontend.utils[e.video_type]:this.apiProvider=elementorFrontend.utils.baseVideoLoader,"youtube"===e.video_type&&(this.videoID=this.apiProvider.getVideoIDFromURL(e.youtube_url),this.videoID&&(!e.show_image_overlay||!e.image_overlay.url)))return e.lazy_load?(this.intersectionObserver=elementorModules.utils.Scroll.scrollObserver({callback:e=>{e.isInViewport&&(this.intersectionObserver.unobserve(this.elements.$video.parent()[0]),this.apiProvider.onApiReady((e=>this.prepareYTVideo(e))))}}),void this.intersectionObserver.observe(this.elements.$video.parent()[0])):void(elementorFrontend.config.experimentalFeatures.e_optimized_assets_loading?this.apiProvider.onApiReady((e=>this.prepareYTVideo(e))):setTimeout((()=>{this.apiProvider.onApiReady((e=>this.prepareYTVideo(e)))}),0))}onElementChange(e){if(0===e.indexOf("lightbox_content_animation"))return void this.animateVideo();const t=this.getElementSettings("lightbox");"lightbox"!==e||t?"aspect_ratio"===e&&t&&this.handleAspectRatio():this.hideLightbox()}}t.default=Video},1210:(e,t,s)=>{"use strict";var i=s(7914),n=i(s(8470)),o=i(s(9269)),a=i(s(7884)),r=i(s(1351)),l=i(s(9459)),d=i(s(2)),c=i(s(5363)),h=i(s(5914)),u=i(s(1327)),p=i(s(3896));elementorFrontend.elements.$window.on("elementor/frontend/init",(()=>{elementorFrontend.elementsHandler.elementsHandlers={"accordion.default":n.default,"alert.default":o.default,"counter.default":a.default,"progress.default":r.default,"tabs.default":l.default,"toggle.default":d.default,"video.default":c.default,"image-carousel.default":h.default,"text-editor.default":u.default},elementorFrontend.on("components:init",(()=>{delete elementorFrontend.utils.lightbox,elementorFrontend.utils.lightbox=new p.default}))}))},3896:(e,t,s)=>{"use strict";var i=s(7914)(s(3251));e.exports=elementorModules.ViewModule.extend({oldAspectRatio:null,oldAnimation:null,swiper:null,player:null,getDefaultSettings:function(){return{classes:{aspectRatio:"elementor-aspect-ratio-%s",item:"elementor-lightbox-item",image:"elementor-lightbox-image",videoContainer:"elementor-video-container",videoWrapper:"elementor-fit-aspect-ratio",playButton:"elementor-custom-embed-play",playButtonIcon:"fa",playing:"elementor-playing",hidden:"elementor-hidden",invisible:"elementor-invisible",preventClose:"elementor-lightbox-prevent-close",slideshow:{container:"swiper-container",slidesWrapper:"swiper-wrapper",prevButton:"elementor-swiper-button elementor-swiper-button-prev",nextButton:"elementor-swiper-button elementor-swiper-button-next",prevButtonIcon:"eicon-chevron-left",nextButtonIcon:"eicon-chevron-right",slide:"swiper-slide",header:"elementor-slideshow__header",footer:"elementor-slideshow__footer",title:"elementor-slideshow__title",description:"elementor-slideshow__description",counter:"elementor-slideshow__counter",iconExpand:"eicon-frame-expand",iconShrink:"eicon-frame-minimize",iconZoomIn:"eicon-zoom-in-bold",iconZoomOut:"eicon-zoom-out-bold",iconShare:"eicon-share-arrow",shareMenu:"elementor-slideshow__share-menu",shareLinks:"elementor-slideshow__share-links",hideUiVisibility:"elementor-slideshow--ui-hidden",shareMode:"elementor-slideshow--share-mode",fullscreenMode:"elementor-slideshow--fullscreen-mode",zoomMode:"elementor-slideshow--zoom-mode"}},selectors:{image:".elementor-lightbox-image",links:"a, [data-elementor-lightbox]",slideshow:{activeSlide:".swiper-slide-active",prevSlide:".swiper-slide-prev",nextSlide:".swiper-slide-next"}},modalOptions:{id:"elementor-lightbox",entranceAnimation:"zoomIn",videoAspectRatio:169,position:{enable:!1}}}},getModal:function(){return e.exports.modal||this.initModal(),e.exports.modal},initModal:function(){const t=e.exports.modal=elementorFrontend.getDialogsManager().createWidget("lightbox",{className:"elementor-lightbox",closeButton:!0,closeButtonOptions:{iconClass:"eicon-close",attributes:{tabindex:0,role:"button","aria-label":elementorFrontend.config.i18n.close+" (Esc)"}},selectors:{preventClose:"."+this.getSettings("classes.preventClose")},hide:{onClick:!0}});t.on("hide",(function(){t.setMessage("")}))},showModal:function(e){if(e.url&&!e.url.startsWith("http"))return;this.elements.$closeButton=this.getModal().getElements("closeButton"),this.$buttons=this.elements.$closeButton,this.focusedButton=null;const t=this,s=t.getDefaultSettings().modalOptions;t.id=e.id,t.setSettings("modalOptions",jQuery.extend(s,e.modalOptions));const n=t.getModal();switch(n.setID(t.getSettings("modalOptions.id")),n.onShow=function(){DialogsManager.getWidgetType("lightbox").prototype.onShow.apply(n,arguments),t.setEntranceAnimation()},n.onHide=function(){DialogsManager.getWidgetType("lightbox").prototype.onHide.apply(n,arguments),n.getElements("message").removeClass("animated"),i.default.isFullscreen&&t.deactivateFullscreen(),t.unbindHotKeys()},e.type){case"video":t.setVideoContent(e);break;case"image":const s=[{image:e.url,index:0,title:e.title,description:e.description}];e.slideshow={slides:s,swiper:{loop:!1,pagination:!1}};case"slideshow":t.setSlideshowContent(e.slideshow);break;default:t.setHTMLContent(e.html)}n.show()},createLightbox:function(e){let t={};if(e.dataset.elementorLightbox&&(t=JSON.parse(e.dataset.elementorLightbox)),t.type&&"slideshow"!==t.type)return void this.showModal(t);if(!e.dataset.elementorLightboxSlideshow){const t="single-img";return void this.showModal({type:"image",id:t,url:e.href,title:e.dataset.elementorLightboxTitle,description:e.dataset.elementorLightboxDescription,modalOptions:{id:"elementor-lightbox-slideshow-"+t}})}const s=e.dataset.elementorLightboxVideo||e.href;this.openSlideshow(e.dataset.elementorLightboxSlideshow,s)},setHTMLContent:function(e){window.elementorCommon&&elementorCommon.helpers.hardDeprecated("elementorFrontend.utils.lightbox.setHTMLContent","3.1.4"),this.getModal().setMessage(e)},setVideoContent:function(e){const t=jQuery,s=this.getSettings("classes"),i=t("<div>",{class:`${s.videoContainer} ${s.preventClose}`}),n=t("<div>",{class:s.videoWrapper}),o=this.getModal();let a;if("hosted"===e.videoType){const s=t.extend({src:e.url,autoplay:""},e.videoParams);a=t("<video>",s)}else{let s=elementorFrontend.utils.baseVideoLoader;-1!==e.url.indexOf("vimeo.com")?s=elementorFrontend.utils.vimeo:e.url.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(s=elementorFrontend.utils.youtube),a=t("<iframe>",{src:s.getAutoplayURL(e.url),allowfullscreen:1})}i.append(n),n.append(a),o.setMessage(i),this.setVideoAspectRatio();const r=o.onHide;o.onHide=function(){r(),this.$buttons=jQuery(),this.focusedButton=null,o.getElements("message").removeClass("elementor-fit-aspect-ratio")}},getShareLinks:function(){const{i18n:e}=elementorFrontend.config,t={facebook:e.shareOnFacebook,twitter:e.shareOnTwitter,pinterest:e.pinIt},s=jQuery,i=this.getSettings("classes"),n=this.getSettings("selectors"),o=s("<div>",{class:i.slideshow.shareLinks}),a=this.getSlide("active"),r=a.find(n.image),l=a.data("elementor-slideshow-video");let d;return d=l||r.attr("src"),s.each(t,((e,t)=>{const i=s("<a>",{href:this.createShareLink(e,d),target:"_blank"}).text(t);i.prepend(s("<i>",{class:"eicon-"+e})),o.append(i)})),l||o.append(s("<a>",{href:d,download:""}).text(e.downloadImage).prepend(s("<i>",{class:"eicon-download-bold","aria-label":e.download}))),o},createShareLink:function(e,t){const s={};if("pinterest"===e)s.image=encodeURIComponent(t);else{const e=elementorFrontend.utils.urlActions.createActionHash("lightbox",{id:this.id,url:t});s.url=encodeURIComponent(location.href.replace(/#.*/,""))+e}return ShareLink.getNetworkLink(e,s)},getSlideshowHeader:function(){const{i18n:e}=elementorFrontend.config,t=jQuery,s="yes"===elementorFrontend.getKitSettings("lightbox_enable_counter"),i="yes"===elementorFrontend.getKitSettings("lightbox_enable_fullscreen"),n="yes"===elementorFrontend.getKitSettings("lightbox_enable_zoom"),o="yes"===elementorFrontend.getKitSettings("lightbox_enable_share"),a=this.getSettings("classes"),r=a.slideshow,l=this.elements;if(s||i||n||o){if(l.$header=t("<header>",{class:r.header+" "+a.preventClose}),o){l.$iconShare=t("<i>",{class:r.iconShare,role:"button","aria-label":e.share,"aria-expanded":!1}).append(t("<span>"));const s=t("<div>");s.on("click",(e=>{e.stopPropagation()})),l.$shareMenu=t("<div>",{class:r.shareMenu}).append(s),l.$iconShare.add(l.$shareMenu).on("click",this.toggleShareMenu),l.$header.append(l.$iconShare,l.$shareMenu),this.$buttons=this.$buttons.add(l.$iconShare)}return n&&(l.$iconZoom=t("<i>",{class:r.iconZoomIn,role:"switch","aria-checked":!1,"aria-label":e.zoom}),l.$iconZoom.on("click",this.toggleZoomMode),l.$header.append(l.$iconZoom),this.$buttons=this.$buttons.add(l.$iconZoom)),i&&(l.$iconExpand=t("<i>",{class:r.iconExpand,role:"switch","aria-checked":!1,"aria-label":e.fullscreen}).append(t("<span>"),t("<span>")),l.$iconExpand.on("click",this.toggleFullscreen),l.$header.append(l.$iconExpand),this.$buttons=this.$buttons.add(l.$iconExpand)),s&&(l.$counter=t("<span>",{class:r.counter}),l.$header.append(l.$counter)),l.$header}},toggleFullscreen:function(){i.default.isFullscreen?this.deactivateFullscreen():i.default.isEnabled&&this.activateFullscreen()},toggleZoomMode:function(){1!==this.swiper.zoom.scale?this.deactivateZoom():this.activateZoom()},toggleShareMenu:function(){this.shareMode?this.deactivateShareMode():(this.elements.$shareMenu.html(this.getShareLinks()),this.activateShareMode())},activateShareMode:function(){const e=this.getSettings("classes");this.elements.$container.addClass(e.slideshow.shareMode),this.elements.$iconShare.attr("aria-expanded",!0),this.swiper.detachEvents(),this.$originalButtons=this.$buttons,this.$buttons=this.elements.$iconShare.add(this.elements.$shareMenu.find("a")),this.shareMode=!0},deactivateShareMode:function(){const e=this.getSettings("classes");this.elements.$container.removeClass(e.slideshow.shareMode),this.elements.$iconShare.attr("aria-expanded",!1),this.swiper.attachEvents(),this.$buttons=this.$originalButtons,this.shareMode=!1},activateFullscreen:function(){const e=this.getSettings("classes");i.default.request(this.elements.$container.parents(".dialog-widget")[0]),this.elements.$iconExpand.removeClass(e.slideshow.iconExpand).addClass(e.slideshow.iconShrink).attr("aria-checked","true"),this.elements.$container.addClass(e.slideshow.fullscreenMode)},deactivateFullscreen:function(){const e=this.getSettings("classes");i.default.exit(),this.elements.$iconExpand.removeClass(e.slideshow.iconShrink).addClass(e.slideshow.iconExpand).attr("aria-checked","false"),this.elements.$container.removeClass(e.slideshow.fullscreenMode)},activateZoom:function(){const e=this.swiper,t=this.elements,s=this.getSettings("classes");e.zoom.in(),e.allowSlideNext=!1,e.allowSlidePrev=!1,e.allowTouchMove=!1,t.$container.addClass(s.slideshow.zoomMode),t.$iconZoom.removeClass(s.slideshow.iconZoomIn).addClass(s.slideshow.iconZoomOut)},deactivateZoom:function(){const e=this.swiper,t=this.elements,s=this.getSettings("classes");e.zoom.out(),e.allowSlideNext=!0,e.allowSlidePrev=!0,e.allowTouchMove=!0,t.$container.removeClass(s.slideshow.zoomMode),t.$iconZoom.removeClass(s.slideshow.iconZoomOut).addClass(s.slideshow.iconZoomIn)},getSlideshowFooter:function(){const e=jQuery,t=this.getSettings("classes"),s=e("<footer>",{class:t.slideshow.footer+" "+t.preventClose}),i=e("<div>",{class:t.slideshow.title}),n=e("<div>",{class:t.slideshow.description});return s.append(i,n),s},setSlideshowContent:function(e){const{i18n:t}=elementorFrontend.config,s=jQuery,i=1===e.slides.length,n=""!==elementorFrontend.getKitSettings("lightbox_title_src"),o=""!==elementorFrontend.getKitSettings("lightbox_description_src"),a=n||o,r=this.getSettings("classes"),l=r.slideshow,d=s("<div>",{class:l.container}),c=s("<div>",{class:l.slidesWrapper});let h,u;e.slides.forEach((e=>{let i=l.slide+" "+r.item;e.video&&(i+=" "+r.video);const n=s("<div>",{class:i});if(e.video){n.attr("data-elementor-slideshow-video",e.video);const i=s("<div>",{class:r.playButton}).html(s("<i>",{class:r.playButtonIcon,"aria-label":t.playVideo}));n.append(i)}else{const t=s("<div>",{class:"swiper-zoom-container"}),i=s('<div class="swiper-lazy-preloader"></div>'),o={"data-src":e.image,class:r.image+" "+r.preventClose+" swiper-lazy"};e.title&&(o["data-title"]=e.title,o.alt=e.title),e.description&&(o["data-description"]=e.description,o.alt+=" - "+e.description);const a=s("<img>",o);t.append([a,i]),n.append(t)}c.append(n)})),this.elements.$container=d,this.elements.$header=this.getSlideshowHeader(),d.prepend(this.elements.$header).append(c),i||(h=s("<div>",{class:l.prevButton+" "+r.preventClose,"aria-label":t.previous}).html(s("<i>",{class:l.prevButtonIcon})),u=s("<div>",{class:l.nextButton+" "+r.preventClose,"aria-label":t.next}).html(s("<i>",{class:l.nextButtonIcon})),d.append(u,h),this.$buttons=this.$buttons.add(u).add(h)),a&&(this.elements.$footer=this.getSlideshowFooter(),d.append(this.elements.$footer)),this.setSettings("hideUiTimeout",""),d.on("click mousemove keypress",this.showLightboxUi);const p=this.getModal();p.setMessage(d);const m=p.onShow;p.onShow=async()=>{m();const t={pagination:{el:"."+l.counter,type:"fraction"},on:{slideChangeTransitionEnd:this.onSlideChange},lazy:{loadPrevNext:!0},zoom:!0,spaceBetween:100,grabCursor:!0,runCallbacksOnInit:!1,loop:!0,keyboard:!0,handleElementorBreakpoints:!0};i||(t.navigation={prevEl:h,nextEl:u}),e.swiper&&s.extend(t,e.swiper);const n=elementorFrontend.utils.swiper;this.swiper=await new n(d,t),d.data("swiper",this.swiper),this.setVideoAspectRatio(),this.playSlideVideo(),a&&this.updateFooterText(),this.bindHotKeys(),this.makeButtonsAccessible()}},makeButtonsAccessible:function(){this.$buttons.attr("tabindex",0).on("keypress",(e=>{13!==e.which&&32!==e.which||jQuery(e.currentTarget).trigger("click")}))},showLightboxUi:function(){const e=this.getSettings("classes").slideshow;this.elements.$container.removeClass(e.hideUiVisibility),clearTimeout(this.getSettings("hideUiTimeout")),this.setSettings("hideUiTimeout",setTimeout((()=>{this.shareMode||this.elements.$container.addClass(e.hideUiVisibility)}),3500))},bindHotKeys:function(){this.getModal().getElements("window").on("keydown",this.activeKeyDown)},unbindHotKeys:function(){this.getModal().getElements("window").off("keydown",this.activeKeyDown)},activeKeyDown:function(e){this.showLightboxUi();if(9===e.which){const t=this.$buttons;let s,i=!1,n=!1;t.each((e=>{const o=t[e];if(jQuery(o).is(":focus"))return s=o,i=0===e,n=t.length-1===e,!1})),e.shiftKey?i&&(e.preventDefault(),t.last().trigger("focus")):!n&&s||(e.preventDefault(),t.first().trigger("focus"))}},setVideoAspectRatio:function(e){e=e||this.getSettings("modalOptions.videoAspectRatio");const t=this.getModal().getElements("widgetContent"),s=this.oldAspectRatio,i=this.getSettings("classes.aspectRatio");this.oldAspectRatio=e,s&&t.removeClass(i.replace("%s",s)),e&&t.addClass(i.replace("%s",e))},getSlide:function(e){return jQuery(this.swiper.slides).filter(this.getSettings("selectors.slideshow."+e+"Slide"))},updateFooterText:function(){if(!this.elements.$footer)return;const e=this.getSettings("classes"),t=this.getSlide("active").find(".elementor-lightbox-image"),s=t.data("title"),i=t.data("description"),n=this.elements.$footer.find("."+e.slideshow.title),o=this.elements.$footer.find("."+e.slideshow.description);n.text(s||""),o.text(i||"")},playSlideVideo:function(){const e=this.getSlide("active"),t=e.data("elementor-slideshow-video");if(!t)return;const s=this.getSettings("classes"),i=jQuery("<div>",{class:s.videoContainer+" "+s.invisible}),n=jQuery("<div>",{class:s.videoWrapper}),o=e.children("."+s.playButton);let a,r;i.append(n),e.append(i),-1!==t.indexOf("vimeo.com")?(a="vimeo",r=elementorFrontend.utils.vimeo):t.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(a="youtube",r=elementorFrontend.utils.youtube);const l=r.getVideoIDFromURL(t);r.onApiReady((e=>{"youtube"===a?this.prepareYTVideo(e,l,i,n,o):"vimeo"===a&&this.prepareVimeoVideo(e,l,i,n,o)})),o.addClass(s.playing).removeClass(s.hidden)},prepareYTVideo:function(e,t,s,i,n){const o=this.getSettings("classes"),a=jQuery("<div>");let r=e.PlayerState.PLAYING;i.append(a),window.chrome&&(r=e.PlayerState.UNSTARTED),s.addClass("elementor-loading "+o.invisible),this.player=new e.Player(a[0],{videoId:t,events:{onReady:()=>{n.addClass(o.hidden),s.removeClass(o.invisible),this.player.playVideo()},onStateChange:e=>{e.data===r&&s.removeClass("elementor-loading "+o.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo:function(e,t,s,i,n){const o=this.getSettings("classes"),a={id:t,autoplay:!0,transparent:!1,playsinline:!1};this.player=new e.Player(i,a),this.player.ready().then((()=>{n.addClass(o.hidden),s.removeClass(o.invisible)}))},setEntranceAnimation:function(e){e=e||elementorFrontend.getCurrentDeviceSetting(this.getSettings("modalOptions"),"entranceAnimation");const t=this.getModal().getElements("message");this.oldAnimation&&t.removeClass(this.oldAnimation),this.oldAnimation=e,e&&t.addClass("animated "+e)},openSlideshow:function(e,t){const s=jQuery(this.getSettings("selectors.links")).filter(((t,s)=>{const i=jQuery(s);return e===s.dataset.elementorLightboxSlideshow&&!i.parent(".swiper-slide-duplicate").length&&!i.parents(".slick-cloned").length})),i=[];let n=0;s.each((function(){const e=this.dataset.elementorLightboxVideo;let o=this.dataset.elementorLightboxIndex;void 0===o&&(o=s.index(this)),(t===this.href||e&&t===e)&&(n=o);const a={image:this.href,index:o,title:this.dataset.elementorLightboxTitle,description:this.dataset.elementorLightboxDescription};e&&(a.video=e),i.push(a)})),i.sort(((e,t)=>e.index-t.index)),this.showModal({type:"slideshow",id:e,modalOptions:{id:"elementor-lightbox-slideshow-"+e},slideshow:{slides:i,swiper:{initialSlide:+n}}})},onSlideChange:function(){this.getSlide("prev").add(this.getSlide("next")).add(this.getSlide("active")).find("."+this.getSettings("classes.videoWrapper")).remove(),this.playSlideVideo(),this.updateFooterText()}})},3251:e=>{"use strict";var t,s,i,n,o;t="undefined"!=typeof window&&void 0!==window.document?window.document:{},s=e.exports,i=function(){for(var e,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,n=s.length,o={};i<n;i++)if((e=s[i])&&e[1]in t){var a=e.length;for(i=0;i<a;i++)o[s[0][i]]=e[i];return o}return!1}(),n={change:i.fullscreenchange,error:i.fullscreenerror},o={request:function(e){return new Promise(function(s,n){var o=function(){this.off("change",o),s()}.bind(this);this.on("change",o),e=e||t.documentElement,Promise.resolve(e[i.requestFullscreen]()).catch(n)}.bind(this))},exit:function(){return new Promise(function(e,s){if(this.isFullscreen){var n=function(){this.off("change",n),e()}.bind(this);this.on("change",n),Promise.resolve(t[i.exitFullscreen]()).catch(s)}else e()}.bind(this))},toggle:function(e){return this.isFullscreen?this.exit():this.request(e)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,s){var i=n[e];i&&t.addEventListener(i,s,!1)},off:function(e,s){var i=n[e];i&&t.removeEventListener(i,s,!1)},raw:i},i?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(t[i.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[i.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[i.fullscreenEnabled])}}}),s?e.exports=o:window.screenfull=o):s?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}},e=>{"use strict";e.O(0,[819,354],(()=>{return t=1210,e(e.s=t);var t}));e.O()}]);
(function($){var Sticky=function(element,userSettings){var $element,isSticky=false,isFollowingParent=false,isReachedEffectsPoint=false,elements={},settings;var defaultSettings={to:"top",offset:0,effectsOffset:0,parent:false,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"}};var initElements=function(){$element=$(element).addClass(settings.classes.sticky);elements.$window=$(window);if(settings.parent){if("parent"===settings.parent){elements.$parent=$element.parent()}else{elements.$parent=$element.closest(settings.parent)}}};var initSettings=function(){settings=jQuery.extend(true,defaultSettings,userSettings)};var bindEvents=function(){elements.$window.on({scroll:onWindowScroll,resize:onWindowResize})};var unbindEvents=function(){elements.$window.off("scroll",onWindowScroll).off("resize",onWindowResize)};var init=function(){initSettings();initElements();bindEvents();checkPosition()};var backupCSS=function($elementBackupCSS,backupState,properties){var css={},elementStyle=$elementBackupCSS[0].style;properties.forEach(function(property){css[property]=undefined!==elementStyle[property]?elementStyle[property]:""});$elementBackupCSS.data("css-backup-"+backupState,css)};var getCSSBackup=function($elementCSSBackup,backupState){return $elementCSSBackup.data("css-backup-"+backupState)};var addSpacer=function(){elements.$spacer=$element.clone().addClass(settings.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"});$element.after(elements.$spacer)};var removeSpacer=function(){elements.$spacer.remove()};var stickElement=function(){backupCSS($element,"unsticky",["position","width","margin-top","margin-bottom","top","bottom"]);var css={position:"fixed",width:getElementOuterSize($element,"width"),marginTop:0,marginBottom:0};css[settings.to]=settings.offset;css["top"===settings.to?"bottom":"top"]="";$element.css(css).addClass(settings.classes.stickyActive)};var unstickElement=function(){$element.css(getCSSBackup($element,"unsticky")).removeClass(settings.classes.stickyActive)};var followParent=function(){backupCSS(elements.$parent,"childNotFollowing",["position"]);elements.$parent.css("position","relative");backupCSS($element,"notFollowing",["position","top","bottom"]);var css={position:"absolute"};css[settings.to]="";css["top"===settings.to?"bottom":"top"]=0;$element.css(css);isFollowingParent=true};var unfollowParent=function(){elements.$parent.css(getCSSBackup(elements.$parent,"childNotFollowing"));$element.css(getCSSBackup($element,"notFollowing"));isFollowingParent=false};var getElementOuterSize=function($elementOuterSize,dimension,includeMargins){var computedStyle=getComputedStyle($elementOuterSize[0]),elementSize=parseFloat(computedStyle[dimension]),sides="height"===dimension?["top","bottom"]:["left","right"],propertiesToAdd=[];if("border-box"!==computedStyle.boxSizing){propertiesToAdd.push("border","padding")}if(includeMargins){propertiesToAdd.push("margin")}propertiesToAdd.forEach(function(property){sides.forEach(function(side){elementSize+=parseFloat(computedStyle[property+"-"+side])})});return elementSize};var getElementViewportOffset=function($elementViewportOffset){var windowScrollTop=elements.$window.scrollTop(),elementHeight=getElementOuterSize($elementViewportOffset,"height"),viewportHeight=innerHeight,elementOffsetFromTop=$elementViewportOffset.offset().top,distanceFromTop=elementOffsetFromTop-windowScrollTop,topFromBottom=distanceFromTop-viewportHeight;return{top:{fromTop:distanceFromTop,fromBottom:topFromBottom},bottom:{fromTop:distanceFromTop+elementHeight,fromBottom:topFromBottom+elementHeight}}};var stick=function(){addSpacer();stickElement();isSticky=true;$element.trigger("sticky:stick")};var unstick=function(){unstickElement();removeSpacer();isSticky=false;$element.trigger("sticky:unstick")};var checkParent=function(){var elementOffset=getElementViewportOffset($element),isTop="top"===settings.to;if(isFollowingParent){var isNeedUnfollowing=isTop?elementOffset.top.fromTop>settings.offset:elementOffset.bottom.fromBottom<-settings.offset;if(isNeedUnfollowing){unfollowParent()}}else{var parentOffset=getElementViewportOffset(elements.$parent),parentStyle=getComputedStyle(elements.$parent[0]),borderWidthToDecrease=parseFloat(parentStyle[isTop?"borderBottomWidth":"borderTopWidth"]),parentViewportDistance=isTop?parentOffset.bottom.fromTop-borderWidthToDecrease:parentOffset.top.fromBottom+borderWidthToDecrease,isNeedFollowing=isTop?parentViewportDistance<=elementOffset.bottom.fromTop:parentViewportDistance>=elementOffset.top.fromBottom;if(isNeedFollowing){followParent()}}};var checkEffectsPoint=function(distanceFromTriggerPoint){if(isReachedEffectsPoint&&-distanceFromTriggerPoint<settings.effectsOffset){$element.removeClass(settings.classes.stickyEffects);isReachedEffectsPoint=false}else if(!isReachedEffectsPoint&&-distanceFromTriggerPoint>=settings.effectsOffset){$element.addClass(settings.classes.stickyEffects);isReachedEffectsPoint=true}};var checkPosition=function(){var offset=settings.offset,distanceFromTriggerPoint;if(isSticky){var spacerViewportOffset=getElementViewportOffset(elements.$spacer);distanceFromTriggerPoint="top"===settings.to?spacerViewportOffset.top.fromTop-offset:-spacerViewportOffset.bottom.fromBottom-offset;if(settings.parent){checkParent()}if(distanceFromTriggerPoint>0){unstick()}}else{var elementViewportOffset=getElementViewportOffset($element);distanceFromTriggerPoint="top"===settings.to?elementViewportOffset.top.fromTop-offset:-elementViewportOffset.bottom.fromBottom-offset;if(distanceFromTriggerPoint<=0){stick();if(settings.parent){checkParent()}}}checkEffectsPoint(distanceFromTriggerPoint)};var onWindowScroll=function(){checkPosition()};var onWindowResize=function(){if(!isSticky){return}unstickElement();stickElement();if(settings.parent){isFollowingParent=false;checkParent()}};this.destroy=function(){if(isSticky){unstick()}unbindEvents();$element.removeClass(settings.classes.sticky)};init()};$.fn.sticky=function(settings){var isCommand="string"===typeof settings;this.each(function(){var $this=$(this);if(!isCommand){$this.data("sticky",new Sticky(this,settings));return}var instance=$this.data("sticky");if(!instance){throw Error("Trying to perform the `"+settings+"` method prior to initialization")}if(!instance[settings]){throw ReferenceError("Method `"+settings+"` not found in sticky instance")}instance[settings].apply(instance,Array.prototype.slice.call(arguments,1));if("destroy"===settings){$this.removeData("sticky")}});return this};window.Sticky=Sticky})(jQuery);