!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var a=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})})),a}var i,n={};function r(){return i||(i=1,(e=jQuery).fn.emulateTransitionEnd=function(t){var a=!1,i=this;return e(this).one("wpcomTransitionEnd",(function(){a=!0})),setTimeout((function(){a||e(i).trigger(e.__transition.end)}),t),this},e((function(){e.__transition=function(){var e=document.createElement("wpcom"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var a in t)if(void 0!==e.style[a])return{end:t[a]};return!1}(),e.__transition&&(e.event.special.wpcomTransitionEnd={bindType:e.__transition.end,delegateType:e.__transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))),n;var e}var o;function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a=0;--n){var r=this.tryEntries[n],o=r[4],s=this.prev,l=r[1],c=r[2];if(-1===r[0])return i("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=r[0]&&r[0]<=s){if(s=0;--a){var i=this.tryEntries[a];if(i[0]>-1&&i[0]<=this.prev&&this.prev=0;--t){var a=this.tryEntries[t];if(a[2]===e)return this.complete(a[4],a[3]),_(a),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a[0]===e){var i=a[4];if("throw"===i.type){var n=i.arg;_(a)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,a,i){return this.delegate={i:C(t),r:a,n:i},"next"===this.method&&(this.arg=e),u}},t}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,n,r,o,s=[],l=!0,c=!1;try{if(r=(a=a.call(e)).next,0===t);else for(;!(l=(i=r.call(a)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function g(e){return g="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},g(e)}function w(e,t){if(e){if("string"==typeof e)return s(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(e,t):void 0}}var y;var b;var x;var E,T,_;function S(){var e=this.getMeta("url");e.match(/^http/i)||(e=location.href),this.defaults={url:e,origin:location.origin,source:this.getMeta("site_name")||document.title,title:this.getMeta("title")||document.title,description:this.getMeta("description")||"",image:this.getMeta("image")}}T||(T=1,r(),o||(o=1,function(e){var t='[data-dismiss="alert"], [data-wpcom-dismiss="alert"]',a=function(a){e(a).on("click",t,this.close)};a.TRANSITION_DURATION=150,a.prototype.close=function(t){var i=e(this),n=i.attr("data-target");n||(n=(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),n="#"===n?[]:n;var r=e(document).find(n);function o(){r.detach().trigger("closed.wpcom.alert").remove()}t&&t.preventDefault(),r.length||(r=i.closest(".wpcom-alert")),r.trigger(t=e.Event("close.wpcom.alert")),t.isDefaultPrevented()||(r.removeClass("in"),e.__transition&&r.hasClass("fade")?r.one("wpcomTransitionEnd",o).emulateTransitionEnd(a.TRANSITION_DURATION):o())};var i=e.fn._alert;e.fn._alert=function(t){return this.each((function(){var i=e(this),n=i.data("wpcom.alert");n||i.data("wpcom.alert",n=new a(this)),"string"==typeof t&&n[t].call(i)}))},e.fn._alert.Constructor=a,e.fn._alert.noConflict=function(){return e.fn._alert=i,this},e(document).on("click.wpcom.alert.data-api",t,a.prototype.close)}(jQuery)),y||(y=1,function(e){var t=function(a,i){this.$element=e(a),this.options=e.extend({},t.DEFAULTS,i),this.$trigger=e('[data-toggle="collapse"][href="#'+a.id+'"],[data-toggle="collapse"][data-target="#'+a.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function a(t){var a,i=t.attr("data-target")||(a=t.attr("href"))&&a.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(i)}function i(a){return this.each((function(){var i=e(this),n=i.data("bs.collapse"),r=e.extend({},t.DEFAULTS,i.data(),"object"==g(a)&&a);!n&&r.toggle&&/show|hide/.test(a)&&(r.toggle=!1),n||i.data("bs.collapse",n=new t(this,r)),"string"==typeof a&&n[a]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var a,n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(n&&n.length&&(a=n.data("bs.collapse"))&&a.transitioning)){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){n&&n.length&&(i.call(n,"hide"),a||n.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](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")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[o](this.$element[0][l])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=e.Event("hide.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[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 n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return n.call(this);this.$element[i](0).one("bsTransitionEnd",e.proxy(n,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,i){var n=e(i);this.addAriaAndCollapsedClass(a(n),n)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var a=e.hasClass("in");e.attr("aria-expanded",a),t.toggleClass("collapsed",!a).attr("aria-expanded",a)};var n=e.fn.collapse;e.fn.collapse=i,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var n=e(this);n.attr("data-target")||t.preventDefault();var r=a(n),o=r.data("bs.collapse")?"toggle":n.data();i.call(r,o)}))}(jQuery)),b||(b=1,function(e){var t=function(t,a){this.options=a,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy((function(){this.$element.trigger("loaded.wpcom.modal")}),this))};function a(a,i){return this.each((function(){var n=e(this),r=n.data("wpcom.modal"),o=e.extend({},t.DEFAULTS,n.data(),"object"==g(a)&&a);r||n.data("wpcom.modal",r=new t(this,o)),"string"==typeof a?r[a](i):o.show&&r.show(i)}))}t.TRANSITION_DURATION=250,t.BACKDROP_TRANSITION_DURATION=120,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(a){var i=this,n=e.Event("show.wpcom.modal",{relatedTarget:a});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.wpcom.modal",'[data-dismiss="modal"], [data-wpcom-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.wpcom.modal",(function(){i.$element.one("mouseup.dismiss.wpcom.modal",(function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var n=e.__transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),n&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var r=e.Event("shown.wpcom.modal",{relatedTarget:a});n?i.$dialog.one("wpcomTransitionEnd",(function(){i.$element.trigger("focus").trigger(r)})).emulateTransitionEnd(t.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)})))},t.prototype.hide=function(a){a&&a.preventDefault(),a=e.Event("hide.wpcom.modal"),this.$element.trigger(a),this.isShown&&!a.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.wpcom.modal"),this.$element.removeClass("in").off("click.dismiss.wpcom.modal").off("mouseup.dismiss.wpcom.modal"),this.$dialog.off("mousedown.dismiss.wpcom.modal"),e.__transition&&this.$element.hasClass("fade")?this.$element.one("wpcomTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.wpcom.modal").on("focusin.wpcom.modal",e.proxy((function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")}),this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.wpcom.modal",e.proxy((function(e){27==e.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.wpcom.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.wpcom.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.wpcom.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop((function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.wpcom.modal")}))},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(a){var i=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.__transition&&n;if(this.$backdrop=e(document.createElement("div")).addClass("wpcom-modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.wpcom.modal",e.proxy((function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!a)return;r?this.$backdrop.one("wpcomTransitionEnd",a).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):a()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){i.removeBackdrop(),a&&a()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("wpcomTransitionEnd",o).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):o()}else a&&a()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},l.prototype.init=function(t,a,i){if(this.enabled=!0,this.type=t,this.$element=e(a),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(document).find(e.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(" "),r=n.length;r--;){var o=n[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=o){var s="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(a){var i=this.$element.data();for(var n in i)i.hasOwnProperty(n)&&-1!==e.inArray(n,t)&&delete i[n];return(a=e.extend({},this.getDefaults(),i,a)).delay&&"number"==typeof a.delay&&(a.delay={show:a.delay,hide:a.delay}),a.sanitize&&(a.template=s(a.template,a.whiteList,a.sanitizeFn)),a},l.prototype.getDelegateOptions=function(){var t={},a=this.getDefaults();return this._options&&e.each(this._options,(function(e,i){a[e]!=i&&(t[e]=i)})),t},l.prototype.enter=function(t){var a=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(a||(a=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,a)),t instanceof e.Event&&(a.inState["focusin"==t.type?"focus":"hover"]=!0),a.tip().hasClass("in")||"in"==a.hoverState)a.hoverState="in";else{if(clearTimeout(a.timeout),a.hoverState="in",!a.options.delay||!a.options.delay.show)return a.show();a.timeout=setTimeout((function(){"in"==a.hoverState&&a.show()}),a.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},l.prototype.leave=function(t){var a=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(a||(a=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,a)),t instanceof e.Event&&(a.inState["focusout"==t.type?"focus":"hover"]=!1),!a.isInStateTrue()){if(clearTimeout(a.timeout),a.hoverState="out",!a.options.delay||!a.options.delay.hide)return a.hide();a.timeout=setTimeout((function(){"out"==a.hoverState&&a.hide()}),a.options.delay.hide)}},l.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var a=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!a)return;var i=this,n=this.tip(),r=this.getUID(this.type);this.setContent(),n.attr("id",r),this.$element.attr("aria-describedby",r),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,s=/\s?auto?\s?/i,c=s.test(o);c&&(o=o.replace(s,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?n.appendTo(e(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),u=n[0].offsetWidth,p=n[0].offsetHeight;if(c){var h=o,f=this.getPosition(this.$viewport);o="bottom"==o&&d.bottom+p>f.bottom?"top":"top"==o&&d.top-pf.width?"left":"left"==o&&d.left-uo.top+o.height&&(n.top=o.top+o.height-l)}else{var c=t.left-r,d=t.left+r+a;co.right&&(n.left=o.left+o.width-d)}return n},l.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},l.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(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},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var a=this;t&&((a=e(t.currentTarget).data("bs."+this.type))||(a=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,a))),t?(a.inState.click=!a.inState.click,a.isInStateTrue()?a.enter(a):a.leave(a)):a.tip().hasClass("in")?a.leave(a):a.enter(a)},l.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},l.prototype.sanitizeHtml=function(e){return s(e,this.options.whiteList,this.options.sanitizeFn)};var c=e.fn.tooltip;e.fn.tooltip=function(t){return this.each((function(){var a=e(this),i=a.data("bs.tooltip"),n="object"==g(t)&&t;!i&&/destroy|hide/.test(t)||(i||a.data("bs.tooltip",i=new l(this,n)),"string"==typeof t&&i[t]())}))},e.fn.tooltip.Constructor=l,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=c,this}}(jQuery)),E||(E=1,function(e){var t=function(t){this.element=e(t)};function a(a){return this.each((function(){var i=e(this),n=i.data("bs.tab");n||i.data("bs.tab",n=new t(this)),"string"==typeof a&&n[a]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,a=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=a.find(".active:last a"),r=e.Event("hide.bs.tab",{relatedTarget:t[0]}),o=e.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(r),t.trigger(o),!o.isDefaultPrevented()&&!r.isDefaultPrevented()){var s=e(document).find(i);this.activate(t.closest("li"),a),this.activate(s,s.parent(),(function(){n.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:n[0]})}))}}},t.prototype.activate=function(a,i,n){var r=i.find("> .active"),o=n&&e.__transition&&(r.length&&r.hasClass("fade")||!!i.find("> .fade").length);function s(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),a.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}r.length&&o?r.one("wpcomTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),r.removeClass("in")};var i=e.fn.tab;e.fn.tab=a,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var n=function(t){t.preventDefault(),a.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery))),(_=jQuery).fn.qrcode=function(e){var t;function a(e){this.mode=t,this.data=e}function i(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function n(e,t){if(null==e.length)throw Error(e.length+"/"+t);for(var a=0;ae||this.moduleCount<=e||0>t||this.moduleCount<=t)throw Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){var e=1;for(e=1;40>e;e++){for(var t=r.getRSBlocks(e,this.errorCorrectLevel),a=new o,i=0,n=0;n=a;a++)if(!(-1>=e+a||this.moduleCount<=e+a))for(var i=-1;7>=i;i++)-1>=t+i||this.moduleCount<=t+i||(this.modules[e+a][t+i]=0<=a&&6>=a&&(0==i||6==i)||0<=i&&6>=i&&(0==a||6==a)||2<=a&&4>=a&&2<=i&&4>=i)},getBestMaskPattern:function(){for(var e=0,t=0,a=0;8>a;a++){this.makeImpl(!0,a);var i=s.getLostPoint(this);(0==a||e>i)&&(e=i,t=a)}return t},createMovieClip:function(e,t,a){for(e=e.createEmptyMovieClip(t,a),this.make(),t=0;t=r;r++)for(var o=-2;2>=o;o++)this.modules[i+r][n+o]=-2==r||2==r||-2==o||2==o||0==r&&0==o}},setupTypeNumber:function(e){for(var t=s.getBCHTypeNumber(this.typeNumber),a=0;18>a;a++){var i=!e&&1==(t>>a&1);this.modules[Math.floor(a/3)][a%3+this.moduleCount-8-3]=i}for(a=0;18>a;a++)i=!e&&1==(t>>a&1),this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=i},setupTypeInfo:function(e,t){for(var a=s.getBCHTypeInfo(this.errorCorrectLevel<<3|t),i=0;15>i;i++){var n=!e&&1==(a>>i&1);6>i?this.modules[i][8]=n:8>i?this.modules[i+1][8]=n:this.modules[this.moduleCount-15+i][8]=n}for(i=0;15>i;i++)n=!e&&1==(a>>i&1),8>i?this.modules[8][this.moduleCount-i-1]=n:9>i?this.modules[8][15-i-1+1]=n:this.modules[8][15-i-1]=n;this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var a=-1,i=this.moduleCount-1,n=7,r=0,o=this.moduleCount-1;0l;l++)if(null==this.modules[i][o-l]){var c=!1;r>>n&1)),s.getMask(t,i,o-l)&&(c=!c),this.modules[i][o-l]=c,-1==--n&&(r++,n=7)}if(0>(i+=a)||this.moduleCount<=i){i-=a,a=-a;break}}}},i.PAD0=236,i.PAD1=17,i.createData=function(e,t,a){t=r.getRSBlocks(e,t);for(var n=new o,l=0;l8*e)throw Error("code length overflow. ("+n.getLengthInBits()+">"+8*e+")");for(n.getLengthInBits()+4<=8*e&&n.put(0,4);0!=n.getLengthInBits()%8;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*e||(n.put(i.PAD0,8),n.getLengthInBits()>=8*e));)n.put(i.PAD1,8);return i.createBytes(n,t)},i.createBytes=function(e,t){for(var a=0,i=0,r=0,o=Array(t.length),l=Array(t.length),c=0;c>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,a){switch(e){case 0:return 0==(t+a)%2;case 1:return 0==t%2;case 2:return 0==a%3;case 3:return 0==(t+a)%3;case 4:return 0==(Math.floor(t/2)+Math.floor(a/3))%2;case 5:return 0==t*a%2+t*a%3;case 6:return 0==(t*a%2+t*a%3)%2;case 7:return 0==(t*a%3+(t+a)%2)%2;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new n([1],0),a=0;aa)switch(e){case 1:return 10;case 2:return 9;case t:case 8:return 8;default:throw Error("mode:"+e)}else if(27>a)switch(e){case 1:return 12;case 2:return 11;case t:return 16;case 8:return 10;default:throw Error("mode:"+e)}else{if(!(41>a))throw Error("type:"+a);switch(e){case 1:return 14;case 2:return 13;case t:return 16;case 8:return 12;default:throw Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),a=0,i=0;i=s;s++)if(!(0>i+s||t<=i+s))for(var l=-1;1>=l;l++)0>n+l||t<=n+l||0==s&&0==l||o==e.isDark(i+s,n+l)&&r++;5e)throw Error("glog("+e+")");return l.LOG_TABLE[e]},gexp:function(e){for(;0>e;)e+=255;for(;256<=e;)e-=255;return l.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},c=0;8>c;c++)l.EXP_TABLE[c]=1<c;c++)l.EXP_TABLE[c]=l.EXP_TABLE[c-4]^l.EXP_TABLE[c-5]^l.EXP_TABLE[c-6]^l.EXP_TABLE[c-8];for(c=0;255>c;c++)l.LOG_TABLE[l.EXP_TABLE[c]]=c;return n.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),a=0;athis.getLength()-e.getLength())return this;for(var t=l.glog(this.get(0))-l.glog(e.get(0)),a=Array(this.getLength()),i=0;i>>7-e%8&1)},put:function(e,t){for(var a=0;a>>t-a-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},"string"==typeof e&&(e={text:e}),e=_.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:2,background:"#ffffff",foreground:"#000000"},e),this.each((function(){var t;if("canvas"==e.render){(t=new i(e.typeNumber,e.correctLevel)).addData(e.text),t.make();var a=document.createElement("canvas");a.width=e.width,a.height=e.height;for(var n=a.getContext("2d"),r=e.width/t.getModuleCount(),o=e.height/t.getModuleCount(),s=0;s").css("width",e.width+"px").css("height",e.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",e.background),n=e.width/t.getModuleCount(),r=e.height/t.getModuleCount(),o=0;o").css("height",r+"px").appendTo(a),l=0;l").css("width",n+"px").css("background-color",t.isDark(o,l)?e.foreground:e.background).appendTo(s);t=a,jQuery(t).appendTo(this)}))},"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t