Site Reviews - Version 5.23.3

Version Description

(2022-04-10) =

  • Reverted build tool used to generate javascript files (as it seems to be causing problems with Divi and Oxygen Builder)
Download this release

Release Info

Developer geminilabs
Plugin Icon 128x128 Site Reviews
Version 5.23.3
Comparing to
See all releases

Code changes from version 5.23.2 to 5.23.3

assets/scripts/site-reviews-admin.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see site-reviews-admin.js.LICENSE.txt */
2
- !function(){var e,t={633:function(e,t,n){"use strict";var i=function(e){return this.data={},this.form=jQuery(e),this.pushes={},this.init()};i.prototype={patterns:{validate:/^[a-z_-][a-z0-9_-]*(?:\[(?:\d*|[a-z0-9_-]+)\])*$/i,key:/[a-z0-9_-]+|(?=\[\])/gi,named:/^[a-z0-9_-]+$/i,push:/^$/,fixed:/^\d+$/},addPair:function(e){this.patterns.validate.test(e.name)&&(this.data=jQuery.extend(!0,this.data,this.makeObject(e.name,this.encode(e))))},build:function(e,t,n){return e[t]=n,e},encode:function(e){return"checkbox"===jQuery('[name="'+e.name+'"]',this.form).attr("type")&&"on"===e.value||e.value},incrementPush:function(e){return void 0===this.pushes[e]&&(this.pushes[e]=0),this.pushes[e]++},init:function(){var e=this.form.serializeArray();if(jQuery.isArray(e))for(var t=0,n=e.length;t<n;t++)this.addPair(e[t]);return this.data},makeObject:function(e,t){for(var n,i=e.match(this.patterns.key);void 0!==(n=i.pop());)if(this.patterns.push.test(n)){var r=this.incrementPush(e.replace(/\[\]$/,""));t=this.build([],r,t)}else this.patterns.fixed.test(n)?t=this.build([],n,t):this.patterns.named.test(n)&&(t=this.build({},n,t));return t}};var r=i,s=function(e,t,n){this.event=t||null,this.form=n||null,this.notice=null,this.request=e||{}};s.prototype={post:function(e){this.event?this.postFromEvent_(e):this.doPost_(e)},buildData_:function(e){var t={action:GLSR.action,_ajax_request:!0};if(this.form){var n=new r(this.form);n[GLSR.nameprefix]&&(this.request=n[GLSR.nameprefix])}return this.buildNonce_(e),t[GLSR.nameprefix]=this.request,t},buildNonce_:function(e){this.request._nonce||(GLSR.nonce[this.request._action]?this.request._nonce=GLSR.nonce[this.request._action]:e&&(this.request._nonce=e.closest("form").find("#_wpnonce").val()))},doPost_:function(e,t){jQuery.post(GLSR.ajaxurl,this.buildData_(t)).done((function(n){"function"==typeof e&&e(n.data,n.success),t&&t.prop("disabled",!1)})).always((function(e){e.data?e.data.notices&&GLSR.notices.add(e.data.notices):GLSR.notices.error("Unknown error.")}))},postFromEvent_:function(e){this.event.preventDefault();var t=jQuery(this.event.currentTarget);t.is(":disabled")||(t.prop("disabled",!0),this.doPost_(e,t))}};var o,a,l=s,c="function"==typeof Map?new Map:(o=[],a=[],{has:function(e){return o.indexOf(e)>-1},get:function(e){return a[o.indexOf(e)]},set:function(e,t){-1===o.indexOf(e)&&(o.push(e),a.push(t))},delete:function(e){var t=o.indexOf(e);t>-1&&(o.splice(t,1),a.splice(t,1))}}),u=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(o){u=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function d(e){var t=c.get(e);t&&t.destroy()}function p(e){var t=c.get(e);t&&t.update()}var f=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((f=function(e){return e}).destroy=function(e){return e},f.update=function(e){return e}):((f=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!c.has(e)){var t,n=null,i=null,r=null,s=function(){e.clientWidth!==i&&d()},o=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",o,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),c.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",c.set(e,{destroy:o,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function a(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",i=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i<t?"hidden"===n.overflowY&&(a("scroll"),l(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(a("hidden"),l(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==i){r=i;var s=u("autosize:resized");try{e.dispatchEvent(s)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],d),e},f.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],p),e});var h=f;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)}var v=function(){"object"===g(jQuery.wp)&&"function"==typeof jQuery.wp.wpColorPicker&&jQuery(document).find("input[type=text].color-picker-hex").each((function(){var e=jQuery(this),t=jQuery.extend({},e.data("colorpicker")||{},{change:function(e,t){jQuery(e.target).val(t.color.toString()).trigger("change")},mode:"hsl",palettes:!1,width:180});e.wpColorPicker(t)}))},m={},y=function(e,t){var n=m[e]||[],i=[];t&&[].forEach.call(n,(function(e){t!==e.fn&&t!==e.fn.once&&i.push(e)})),i.length?m[e]=i:delete m[e]},b=function(e,t,n){(m[e]||(m[e]=[])).push({fn:t,context:n})},w={events:m,off:y,on:b,once:function(e,t,n){var i=arguments,r=function r(){y(e,r),t.apply(n,i)};r.once=t,b(e,r,n)},trigger:function(e){var t=[].slice.call(arguments,1),n=(m[e]||[]).slice();[].forEach.call(n,(function(e){return e.fn.apply(e.context,t)}))}};function x(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var k=function(e,t,n){return e.attr("aria-".concat(t),n?"true":"false")},E={classes:{active:"is-active",selected:"is-selected"},onInit:null,onDestroy:null,onSelect:null,selectors:{results:".glsr-filter__results",search:".glsr-filter__search",selected:".glsr-filter__selected",value:".glsr-filter__value"}},S=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=jQuery(t),this.options=jQuery.extend(!0,E,n||{}),this.resultsEl=this.el.find(this.options.selectors.results),this.selectedEl=this.el.find(this.options.selectors.selected),this.searchEl=this.el.find(this.options.selectors.search),this.valueEl=this.el.find(this.options.selectors.value),this.el.length&&this.searchEl.length&&this.selectedEl.length&&this.valueEl.length&&this.resultsEl.length&&(this.action=this.el.data("action"),this.events={document:{mousedown:this.onDocumentClick.bind(this)},search:{blur:_.debounce(this.onSearchBlur.bind(this),10),input:_.debounce(this.onSearchInput.bind(this),200),keydown:this.onSearchKeydown.bind(this)},selected:{keydown:this.onSelectedKeydown.bind(this),mousedown:this.onSelectedClick.bind(this)}},this.init())}var t,n,i;return t=e,n=[{key:"defaults",value:function(){return _.sortBy(_.map(GLSR.filters[this.valueEl.attr("name")],(function(e,t){return{id:t,name:e}})),"name")}},{key:"init",value:function(){this.eventHandler("on"),this.data=[],"function"==typeof this.options.onInit&&this.options.onInit.call(this)}},{key:"destroy",value:function(){this.eventHandler("off"),this.data=[],"function"==typeof this.options.onDestroy&&this.options.onDestroy.call(this)}},{key:"eventHandler",value:function(e){this.eventListener(document,e,this.events.document),this.eventListener(this.searchEl,e,this.events.search),this.eventListener(this.selectedEl,e,this.events.selected)}},{key:"eventListener",value:function(e,t,n){_.each(n,(function(n,i){return jQuery(e)[t](i,n)}))}},{key:"onDocumentClick",value:function(e){var t=this;jQuery(e.target).find(this.el).length&&(this.requestAbort(),this.el.hasClass(this.options.classes.active)&&(this.resultsHide(),_.debounce((function(){return t.selectedEl.focus()}),10)()))}},{key:"onSearchBlur",value:function(){this.el.find(document.activeElement).length||this.resultsHide()}},{key:"onSearchInput",value:function(){var e=this;this.requestAbort(),""!==this.searchEl.val()?(this.resultsEl.html(this.templateSearching()),this.xhr=this.request().done((function(t){e.data=t.items,e.resultsShow()}))):this.resultsShow()}},{key:"onSearchKeydown",value:function(e){var t=this;if(GLSR.keys.ENTER===e.which){e.preventDefault();var n=this.resultsEl.find(".".concat(this.options.classes.selected));n&&n.trigger("mousedown")}else GLSR.keys.ESC===e.which?(this.resultsHide(),_.debounce((function(){return t.selectedEl.focus()}),10)()):GLSR.keys.DOWN===e.which?this.resultsNavigate(1):GLSR.keys.UP===e.which?this.resultsNavigate(-1):GLSR.keys.TAB===e.which&&e.preventDefault()}},{key:"onSelect",value:function(e){var t=this;"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,e);var n=jQuery(e.currentTarget),i=n.data("id");this.selectedEl.attr("title",~["","0",0].indexOf(i)?n.data("name"):"ID: "+i),this.selectedEl.text(n.data("name")),this.valueEl.val(i),this.resultsHide(),_.debounce((function(){return t.selectedEl.focus()}),10)()}},{key:"onSelectedClick",value:function(){this.resultsShow()}},{key:"onSelectedKeydown",value:function(e){~[GLSR.keys.DOWN,GLSR.keys.SPACE,GLSR.keys.UP].indexOf(e.which)?(e.preventDefault(),this.resultsShow()):GLSR.keys.ESC===e.which&&this.selectedEl.blur()}},{key:"request",value:function(){var e=this,t={};return t[GLSR.nameprefix]={_action:this.action,_nonce:GLSR.nonce[this.action],exclude:this.options.exclude,search:this.searchEl.val()},wp.ajax.post(GLSR.action,t).always((function(){return delete e.xhr}))}},{key:"requestAbort",value:function(){void 0!==this.xhr&&this.xhr.abort()}},{key:"results",value:function(){var e=jQuery.merge(this.defaults(),this.data),t=this.valueEl.val(),n=this.selectedEl.text();return-1===_.findIndex(e,{id:t})&&-1===_.findIndex(e,{name:n})?jQuery.merge(e,[{id:t,name:n}]):e}},{key:"resultsHide",value:function(){this.requestAbort(),this.el.removeClass(this.options.classes.active),this.searchEl.val(""),this.selected=-1,k(this.el,"expanded",0),k(this.resultsEl,"expanded",0),k(this.resultsEl,"hidden",1)}},{key:"resultsNavigate",value:function(e){this.selected+=e;var t=this.resultsEl.children();if(t.attr("aria-selected","false").removeClass(this.options.classes.selected),this.selected<0&&(this.selected=-1),this.selected>=t.length&&(this.selected=t.length-1),this.selected>=0){var n=t.eq(this.selected);n.addClass(this.options.classes.selected),k(n,"selected",1),this.resultsScrollIntoView()}}},{key:"resultsScrollIntoView",value:function(){var e=this.resultsEl.children().eq(this.selected)[0].getBoundingClientRect(),t=this.resultsEl[0].getBoundingClientRect(),n=e.top<t.top,i=e.bottom>t.top+t.height,r=this.resultsEl.scrollTop();if(n){var s=t.top-e.top;this.resultsEl.scrollTop(r-s)}else if(i){var o=e.bottom-(t.top+t.height);this.resultsEl.scrollTop(r+o)}}},{key:"resultsShow",value:function(){var e=this;this.resultsEl.empty(),this.selected=-1,_.each(this.results(),(function(t){return e.resultsEl.append(e.templateResult(t))})),this.resultsEl.children().on("mousedown",this.onSelect.bind(this)),this.el.addClass(this.options.classes.active),k(this.el,"expanded",1),k(this.resultsEl,"expanded",1),k(this.resultsEl,"hidden",0),_.debounce((function(){e.resultsEl.scrollTop(0),e.searchEl.focus()}),10)()}},{key:"templateResult",value:function(e){var t=_.template('<span aria-selected="false" data-id="<%= id %>" data-name="<%= name %>" title="<% if (!~["","0",0].indexOf(id)) { %>ID: <%= id %><% } else { %><%= name %><% } %>"><span><%= name %></span></span>');return jQuery(t(e))}},{key:"templateSearching",value:function(){var e=_.template('<span data-searching><span><%= text %></span><span class="spinner"></span></span>');return jQuery(e({text:GLSR.text.searching}))}}],n&&x(t.prototype,n),i&&x(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),j=S,C=function(){this.request=null,jQuery(".enable-filter-tog","#adv-settings").on("click",this.onClick_.bind(this))};C.prototype={enabled_:function(){return jQuery(".enable-filter-tog:checked").map((function(e,t){return t.value})).get()},onClick_:function(e){var t=jQuery(e.currentTarget),n=t.prop("checked")?"removeClass":"addClass";jQuery("#glsr-filter-by-"+t.val())[n]("hidden"),jQuery("#glsr-filter-by-"+t.val())[n]("is-hidden"),this.saveState_()},saveState_:_.debounce((function(){this.request&&this.request.abort();var e={_ajax_request:!0};e[GLSR.nameprefix]={_action:"toggle-filters",_nonce:GLSR.nonce["toggle-filters"],enabled:this.enabled_()},this.request=wp.ajax.post(GLSR.action,e),this.request.always(function(){this.request=null}.bind(this))}),500)};var O=C,A=function(e){this.el=document.querySelector(e),this.el&&(this.depends=this.el.querySelectorAll("[data-depends]"),this.depends.length&&this.init_())};A.prototype={getDependsData_:function(e){var t=e.getAttribute("data-depends");if(t)try{return JSON.parse(t)}catch(e){return console.error(e)}},init_:function(){for(var e=this.el.elements,t=0;t<e.length;t++)~["INPUT","SELECT"].indexOf(e[t].nodeName)&&e[t].addEventListener("change",this.onChange_.bind(this))},isFieldSelected_:function(e,t){var n=!1;t=[].concat(t);var i=this.el.querySelectorAll('[name="'+e+'"]');return[].map.call(i,function(e){var i=~this.normalizeValues_(t).indexOf(this.normalizeValue_(e.value));~["checkbox","radio"].indexOf(e.type)?e.checked&&i&&(n=!0):i&&(n=!0)}.bind(this)),n},normalizeValue_:function(e){return!!~["true","on","yes","1"].indexOf(e)||!~["false","off","no","0"].indexOf(e)&&e},normalizeValues_:function(e){return e.map(this.normalizeValue_)},onChange_:function(e){this.depends.forEach(function(t){var n=this.getDependsData_(t);if(n&&~n.map((function(e){return e.name})).indexOf(e.currentTarget.name)){var i=!0;n.forEach(function(e){this.isFieldSelected_(e.name,e.value)||(i=!1)}.bind(this)),this.toggleHiddenField_(t,i)}}.bind(this))},toggleHiddenField_:function(e,t){var n=e.closest(".glsr-setting-field");n&&n.classList[t?"remove":"add"]("hidden")}};var L=A,T=function(){jQuery(".glsr-metabox-field input[data-edit-review]").on("change",this.onToggleInput_.bind(this)),jQuery(".glsr-metabox-field input[type=url]").on("change",this.onChangeImage_.bind(this))};T.prototype={onChangeImage_:function(e){var t=jQuery(e.currentTarget);this.switchImage_(t.parent().find("img"),t.val())},onToggleInput_:function(e){var t=e.currentTarget.checked;jQuery(".glsr-input-value").each(function(e,n){if(t)jQuery(n).data("value",n.value);else{if(n.value=jQuery(n).data("value"),"url"!==n.type)return;this.switchImage_(jQuery(n).parent().find("img"),n.value)}}.bind(this)),jQuery(".glsr-input-value").prop("disabled",!t),GLSR.stars.rebuild()},switchImage_:function(e,t){if(e){var n=new Image;n.src=t,n.onerror=function(){e.attr("src",e.data("fallback"))},n.onload=function(){e.attr("src",n.src)}}}};var R=T,P=function(){this.init_()};P.prototype={add:function(e){e&&(jQuery("#glsr-notices").length||(jQuery("#message.notice").remove(),jQuery("hr.wp-header-end").after('<div id="glsr-notices" />')),jQuery("#glsr-notices").html(e),jQuery(document).trigger("wp-updates-notice-added"),jQuery("html").animate({scrollTop:0},500))},error:function(e){this.add('<div class="notice notice-error inline is-dismissible"><p>'+e+"</p></div>")},init_:function(){jQuery(".glsr-notice[data-dismiss]").on("click.wp-dismiss-notice",this.onClick_);var e=jQuery(".glsr-notice-top-of-page");if(e){var t=e.detach();jQuery("#wpbody-content").prepend(t),e.delay(1e3).slideDown()}},onClick_:function(e){var t=jQuery(this);if(t.hasClass("glsr-notice-top-of-page")){if(!jQuery(e.target).hasClass("notice-dismiss"))return;t.slideUp()}var n={};n[GLSR.nameprefix]={_action:"dismiss-notice",notice:jQuery(e.currentTarget).data("dismiss")},wp.ajax.post(GLSR.action,n)}};var F=P,Q=function(){this.el=jQuery("#pinned-status-select"),this.el&&(this.cancel=jQuery("a.cancel-pinned-status"),this.cancel.on("click",this.onClickCancel_.bind(this)),this.edit=jQuery("a.edit-pinned-status"),this.edit.on("click",this.onClickEdit_.bind(this)),this.save=jQuery("a.save-pinned-status"),this.save.on("click",this.onClickSave_.bind(this))),jQuery("td.column-is_pinned i.pin-review").on("click",this.onClickToggle_.bind(this))};Q.prototype={restoreEditLink_:function(){this.el.slideUp("fast"),this.edit.show().focus()},onClickCancel_:function(e){e.preventDefault(),this.restoreEditLink_(),this.el.find("select").val("0"===jQuery("#hidden-pinned-status").val()?1:0)},onClickEdit_:function(e){e.preventDefault(),this.el.is(":hidden")&&(this.el.slideDown("fast",function(){this.el.find("select").focus()}.bind(this)),this.edit.hide())},onClickSave_:function(e){e.preventDefault(),this.restoreEditLink_(),this.target=e.currentTarget;var t={_action:"toggle-pinned",id:jQuery("#post_ID").val(),pinned:jQuery("#pinned-status").val()};new l(t).post(this.save_.bind(this))},onClickToggle_:function(e){e.preventDefault(),this.target=e.currentTarget;var t={_action:"toggle-pinned",id:e.currentTarget.getAttribute("data-id"),pinned:-1};jQuery(this.target).addClass("spinner is-active").removeClass("dashicons-sticky"),new l(t).post(this.togglePinned_.bind(this))},save_:function(e){jQuery("#pinned-status").val(0|!e.pinned),jQuery("#hidden-pinned-status").val(0|e.pinned),jQuery("#pinned-status-text").text(e.pinned?this.target.dataset.yes:this.target.dataset.no),GLSR.notices.add(e.notices)},togglePinned_:function(e){this.target.classList[e.pinned?"add":"remove"]("pinned"),jQuery(this.target).removeClass("spinner is-active").addClass("dashicons-sticky")}};var D=Q,z=function(){jQuery.each(GLSR.pointers,function(e,t){this.init_(t)}.bind(this))};z.prototype={close_:function(e){jQuery.post(GLSR.ajaxurl,{action:"dismiss-wp-pointer",pointer:e})},init_:function(e){jQuery(e.target).pointer({content:e.options.content,position:e.options.position,close:this.close_.bind(null,e.id)}).pointer("open").pointer("sendToTop"),jQuery(document).on("wp-window-resized",(function(){jQuery(e.target).pointer("reposition")}))}};var q=z,I=n(325),N=n.n(I),$=(n(433),n(335),n(980),n(854),n(945),n(251),n(759),function(e,t){this.el=jQuery(e),this.options=t,this.searchTerm=null,this.init_()});$.prototype={defaults:{action:null,exclude:[],onInit:null,onResultClick:null,results:{},selected:-1,selectedClass:"glsr-selected-result",selectorEntries:".glsr-strings-table tbody",selectorResults:".glsr-search-results",selectorSearch:".glsr-search-input"},init_:function(){this.options=jQuery.extend({},this.defaults,this.options),this.el.length&&(this.options.entriesEl=this.el.parent().find(this.options.selectorEntries),this.options.resultsEl=this.el.find(this.options.selectorResults),this.options.searchEl=this.el.find(this.options.selectorSearch),this.options.searchEl.attr("aria-describedby","live-search-desc"),"function"==typeof this.options.onInit&&this.options.onInit.call(this),this.initEvents_())},initEvents_:function(){this.options.searchEl.on("input",_.debounce(this.onSearchInput_.bind(this),500)),this.options.searchEl.on("keyup",this.onSearchKeyup_.bind(this)),this.options.searchEl.on("keydown keypress",(function(e){GLSR.keys.ENTER===e.which&&e.preventDefault()})),jQuery(document).on("click",this.onDocumentClick_.bind(this)),jQuery(document).on("keydown",this.onDocumentKeydown_.bind(this))},abort_:function(){void 0!==this.searchRequest&&this.searchRequest.abort()},clearResults_:function(){this.abort_(),this.options.resultsEl.empty(),this.options.resultsEl.removeClass("is-active"),this.el.removeClass("is-active"),jQuery("body").removeClass("glsr-focus")},deleteEntry_:function(e){var t=this.options.entriesEl.children("tr").eq(e),n=this;t.find("td").css({backgroundColor:"#faafaa"}),t.fadeOut(350,(function(){jQuery(this).remove(),n.options.results={},n.reindexRows_(),n.setVisibility_()}))},displayResults_:function(e){jQuery("body").addClass("glsr-focus"),this.options.resultsEl.append(e),this.options.resultsEl.children("span").on("click",this.onResultClick_.bind(this))},makeSortable_:function(){this.options.entriesEl.on("click","a.delete",this.onEntryDelete_.bind(this)),this.options.entriesEl.sortable({items:"tr",tolerance:"pointer",start:function(e,t){t.placeholder.height(t.helper[0].scrollHeight)},sort:function(e,t){var n=e.pageY-jQuery(this).offsetParent().offset().top-t.helper.outerHeight(!0)/2;t.helper.css({top:n+"px"})}})},navigateResults_:function(e){this.options.selected+=e,this.options.results.removeClass(this.options.selectedClass),this.options.selected<0&&(this.options.selected=-1,this.options.searchEl.focus()),this.options.selected>=this.options.results.length&&(this.options.selected=this.options.results.length-1),this.options.selected>=0&&this.options.results.eq(this.options.selected).addClass(this.options.selectedClass).focus()},onDocumentClick_:function(e){jQuery(e.target).find(this.el).length&&jQuery("body").hasClass("glsr-focus")&&this.clearResults_()},onDocumentKeydown_:function(e){if(!jQuery.isEmptyObject(this.options.results)){if(GLSR.keys.ESC===e.which&&this.clearResults_(),GLSR.keys.ENTER===e.which||GLSR.keys.SPACE===e.which){var t=this.options.resultsEl.find("."+this.options.selectedClass);t&&t.trigger("click")}GLSR.keys.UP===e.which&&(e.preventDefault(),this.navigateResults_(-1)),GLSR.keys.DOWN===e.which&&(e.preventDefault(),this.navigateResults_(1))}},onEntryDelete_:function(e){e.preventDefault(),this.deleteEntry_(jQuery(e.currentTarget).closest("tr").index())},onResultClick_:function(e){e.preventDefault(),"function"==typeof this.options.onResultClick&&this.options.onResultClick.call(this,e),this.clearResults_()},onSearchInput_:function(e){if(this.abort_(),this.searchTerm===e.currentTarget.value&&this.options.results.length)return this.displayResults_(this.options.results);if(this.options.resultsEl.empty(),this.options.selected=-1,this.searchTerm=e.currentTarget.value,""===this.searchTerm)return this.reset_();this.el.addClass("is-active");var t={};t[GLSR.nameprefix]={_action:this.options.action,_nonce:GLSR.nonce[this.options.action],exclude:this.options.exclude,search:this.searchTerm},this.searchRequest=wp.ajax.post(GLSR.action,t).done(function(e){this.el.removeClass("is-active"),this.displayResults_(e.items?e.items:e.empty),this.options.results=this.options.resultsEl.children(),this.options.resultsEl.addClass("is-active"),delete this.searchRequest}.bind(this))},onSearchKeyup_:function(e){GLSR.keys.ESC===e.which&&this.reset_(),GLSR.keys.ENTER===e.which&&(this.onSearchInput_(e),e.preventDefault())},onUnassign_:function(e){e.preventDefault();var t=jQuery(e.currentTarget).closest(".glsr-multibox-entry");t.find("a").css({color:"#c00"}),t.fadeOut("fast",(function(){t.remove()}))},reindexRows_:function(){var e=this;this.options.exclude=[],this.options.entriesEl.children("tr").each((function(t){jQuery(this).find(".glsr-string-td2").children().filter(":input").each((function(){var n=jQuery(this),i=n.attr("name").replace(/\[\d+\]/i,"["+t+"]");n.attr("name",i),n.is("[data-id]")&&e.options.exclude.push({id:n.val()})}))}))},reset_:function(){this.clearResults_(),this.options.results={},this.options.searchEl.val("")},setVisibility_:function(){var e=this.options.entriesEl.children().length>0?"remove":"add";this.options.entriesEl.parent()[e+"Class"]("glsr-hidden")}};var H=$,M=function(e){var t=this;this.options=jQuery.extend({},this.defaults,e),this.tabs=document.querySelectorAll(this.options.tabSelector),this.tabs&&(this.init_(),jQuery((function(){return t.scrollIntoView_(jQuery(localStorage.getItem("glsr-expand")))})))};M.prototype={defaults:{expandSelectors:".glsr-nav-view, .glsr-notice",tabSelector:".glsr-nav-tab"},init_:function(){var e=this;[].forEach.call(e.tabs,function(t,n){t.addEventListener("click",e.onClick_.bind(e)),t.addEventListener("touchend",e.onClick_.bind(e))}.bind(e)),jQuery(e.options.expandSelectors).on("click","a",(function(){var t=this.dataset.expand;localStorage.setItem("glsr-expand",t),e.scrollIntoView_(jQuery(t))}))},onClick_:function(e){e.preventDefault(),this.toggleCollapsibleViewSections_(e.currentTarget)},scrollIntoView_:function(e){if(e.length){var t=e.closest(".glsr-nav-view"),n=e.closest(".glsr-card");t.removeClass("collapsed"),this.toggleCollapsibleSections_(t),t.removeClass("collapsed"),n.removeClass("closed").find(".glsr-accordion-trigger").attr("aria-expanded",!0),window.setTimeout((function(){localStorage.removeItem("glsr-expand"),jQuery("#glsr-notices .notice").length||n[0].scrollIntoView({behavior:"smooth",block:n.outerHeight()>=window.innerHeight?"start":"center"})}),10)}},toggleCollapsibleSections_:function(e){var t=e.hasClass("collapsed")?"remove":"add";e[t+"Class"]("collapsed").find(".glsr-card.postbox")[t+"Class"]("closed").find(".glsr-accordion-trigger").attr("aria-expanded","add"!==t)},toggleCollapsibleViewSections_:function(e){if(e.classList.contains("nav-tab-active")){var t=jQuery("#"+e.dataset.id);this.toggleCollapsibleSections_(t)}}};var G=M,V=function(e){this.current=null,this.editor=null,this.create=function(e){if(this.editor=tinymce.get(e),this.editor){var t={_action:"mce-shortcode",shortcode:this.current};new l(t).post(this.handleResponse_.bind(this))}};var t=document.querySelectorAll(e);t.length&&t.forEach(function(e){var t=e.querySelector("button"),n=e.querySelectorAll(".mce-menu-item");t&&n.length&&this.init_(e,t,n)}.bind(this))};V.prototype={attributes_:{},hiddenKeys_:[],init_:function(e,t,n){document.addEventListener("click",this.onClose_.bind(this,e,t)),t.addEventListener("click",this.onToggle_.bind(this,e,t)),n.forEach(function(n){n.addEventListener("click",this.onTrigger_.bind(this,e,t))}.bind(this))},initTinymceEditor_:function(){tinymce.execCommand("GLSR_Shortcode")},initQuicktagsEditor_:function(){jQuery("#scTemp").length?this.initTinymceEditor_():(jQuery("body").append('<textarea id="scTemp" style="display:none!important;"/>'),tinymce.init({elements:"scTemp",external_plugins:GLSR.tinymce,mode:"exact",plugins:["glsr_shortcode","wplink"]}),setTimeout(function(){this.initTinymceEditor_()}.bind(this),200))},close_:function(e,t){jQuery(t).removeClass("active"),jQuery(e).find(".glsr-mce-menu").hide()},destroy_:function(){var e=jQuery("#scTemp");e.length&&(tinymce.get("scTemp").remove(),e.remove()),this.attributes_={},this.hiddenKeys_=[]},handleResponse_:function(e){if(e){if(0===e.body.length)return window.send_to_editor("["+e.shortcode+"]"),void this.destroy_();var t=this.responsePopup_(e);e.ok.constructor===Array&&(t.buttons[0].text=e.ok[0],t.buttons[0].onclick="close",delete t.buttons[1]),this.editor.windowManager.open(t)}},normalize_:function(e){for(var t in this.attributes_=e,this.hiddenKeys_=[],e)e.hasOwnProperty(t)&&(this.normalizeDisplay_(t),this.normalizeHide_(t),this.normalizeId_(t));this.attributes_.hide=this.hiddenKeys_.join(",")},normalizeDisplay_:function(e){"display"!==e||jQuery.isNumeric(this.attributes_[e])||(this.attributes_[e]="")},normalizeHide_:function(e){if(GLSR.hideoptions.hasOwnProperty(this.current)){var t=e.substring("hide_".length);-1!==Object.keys(GLSR.hideoptions[this.current]).indexOf(t)&&(this.attributes_[e]&&this.hiddenKeys_.push(t),delete this.attributes_[e])}},normalizeId_:function(e){"id"===e&&(this.attributes_[e]=(+new Date).toString(36))},onClose_:function(e,t,n){jQuery(n.target).closest(jQuery(e)).length||this.close_(e,t)},onToggle_:function(e,t,n){n.preventDefault(),n.currentTarget.classList.contains("active")?this.close_(e,t):this.open_(e,t)},onTrigger_:function(e,t,n){n.preventDefault(),this.current=n.currentTarget.dataset.shortcode,this.current&&(tinymce.get(window.wpActiveEditor)?this.initTinymceEditor_():this.initQuicktagsEditor_(),setTimeout(function(){this.close_(e,t)}.bind(this),100))},open_:function(e,t){jQuery(t).addClass("active"),jQuery(e).find(".glsr-mce-menu").show()},responseButtons_:function(e){return[{classes:"btn glsr-btn primary",onclick:this.submitShortcode_.bind(this),text:e.ok},{onclick:"close",text:e.close}]},responsePopup_:function(e){return{title:e.title,body:e.body,classes:"glsr-mce-popup",minWidth:320,buttons:this.responseButtons_(e),onsubmit:this.sendToEditor_.bind(this,e),onclose:this.destroy_.bind(this)}},sendToEditor_:function(e,t){var n="";for(var i in this.normalize_(t.data),this.attributes_)this.attributes_.hasOwnProperty(i)&&""!==this.attributes_[i]&&(n+=" "+i+'="'+this.attributes_[i]+'"');window.send_to_editor("["+e.shortcode+n+"]")},submitShortcode_:function(){var e=this.editor.windowManager.getWindows()[0];this.validateAttributes_(e)&&e.submit()},validateAttributes_:function(e){var t,n=!0,i=GLSR.shortcodes[this.current];for(var r in i)if(i.hasOwnProperty(r)&&void 0!==(t=e.find("#"+r)[0])&&""===t.state.data.value){n=!1,alert(i[r]);break}return n}};var W=V,B=n(449),U=n.n(B),K=function(e){var t=document.querySelectorAll(e);t.length&&t.forEach(function(e){e.addEventListener("click",this.onClick_)}.bind(this))};K.prototype={onClick_:function(e){var t=e.currentTarget.href.match(/post=([0-9]+)/),n=e.currentTarget.href.match(/action=([a-z]+)/);if(null!==t&&null!==n){var i={_action:"toggle-status",_nonce:GLSR.nonce["toggle-status"],post_id:t[1],status:n[1]};jQuery(e.target).closest("tr").find(".locked-indicator").addClass("spinner is-active"),new l(i,e).post((function(t){if(t.class){var n=jQuery(e.target);n.closest("tr").find(".locked-indicator").removeClass("spinner is-active"),n.closest("tr").removeClass("status-pending status-publish").addClass(t.class),n.closest("td.column-title").find("strong").html(t.link),t.counts&&(n.closest(".wrap").find("ul.subsubsub").html(t.counts),jQuery("#menu-posts-site-review").find(".awaiting-mod").removeClass().addClass("awaiting-mod count-"+t.pending).find(".unapproved-count").html(t.pending))}}))}}};var Y=K,X=function(){this.button=jQuery("button#sync-reviews"),this.progressbar=jQuery(".glsr-progress"),this.service=null,jQuery("form.glsr-form-sync").on("click","#sync-reviews",this.onSync_.bind(this)),jQuery(document).on("wp-window-resized",this.onWindowResize_),jQuery(window).on("hashchange",this.onWindowResize_),this.onWindowResize_()};X.prototype={finishSync_:function(e){jQuery(".service-"+this.service+" td.column-last_sync").text(e.last_sync),jQuery(".service-"+this.service+" td.column-total_fetched a").text(e.total),this.watchSyncStatus_(!1)},onSync_:function(e){e.preventDefault(),this.service=jQuery('[name="'+GLSR.nameprefix+'[service]"]').val(),this.service&&(this.watchSyncStatus_(!0),this.syncFetch_())},onWindowResize_:function(){var e=jQuery(".glsr-progress").width();e&&jQuery(".glsr-progress span").width(e)},syncFetch_:function(){var e={_action:"sync-reviews",service:this.service,stage:"fetch"};new l(e).post(this.syncProgress_.bind(this))},syncProgress_:function(e){var t={_action:"sync-reviews",job_id:e.job_id,service:this.service,stage:"progress"},n=e.finished?this.syncReviews_.bind(this,e):this.syncProgress_.bind(this);this.updateMessage_(e.message),this.updateProgress_(e.percent),setTimeout((function(){new l(t).post(n)}),1500)},syncReviews_:function(e){var t=0;try{t=e.meta.pagination.current_page}catch(e){}var n={_action:"sync-reviews",page:t+1,service:this.service,stage:"reviews"};this.updateMessage_(e.message),e.percent_synced&&e.percent_synced>=100?this.finishSync_(e):new l(n).post(this.syncReviews_.bind(this))},updateMessage_:function(e){jQuery(".glsr-progress-status",this.progressbar).text(e)},updateProgress_:function(e){e=(e||0)+"%",jQuery(".glsr-progress-bar",this.progressbar).outerWidth(e)},watchSyncStatus_:function(e){if(!0===e&&(this.updateMessage_(this.progressbar.data("active-text")),this.updateProgress_(),this.button.prop("disabled",!0),window.requestAnimationFrame(function(){this.progressbar.addClass("active")}.bind(this))),!1===e)return this.service=null,this.button.prop("disabled",!1),void this.progressbar.removeClass("active");window.requestAnimationFrame(this.watchSyncStatus_.bind(this))}};var Z=X,J=function(e){this.options=jQuery.extend({},this.defaults,e),this.active=document.querySelector("input[name=_active_tab]"),this.refererInputs=jQuery("input[name=_wp_http_referer]"),this.sections=document.querySelectorAll(this.options.viewSectionSelector),this.subsubsub=document.querySelectorAll(this.options.viewSubsubsub),this.tabs=document.querySelectorAll(this.options.tabSelector),this.views=document.querySelectorAll(this.options.viewSelector),this.active&&this.refererInputs.length&&this.tabs&&this.views&&this.init_()};J.prototype={defaults:{smartLinks:".glsr-card a, #glsr-notices a",tabSelector:".glsr-nav-tab",viewSelector:".glsr-nav-view",viewSectionSelector:".glsr-nav-view-section",viewSubsubsub:".glsr-subsubsub a"},init_:function(){var e=this;jQuery(this.options.tabSelector).each((function(t,n){var i=n.getAttribute("href"),r=e.queryHref_(n,"tab"),s=e.queryLocation_("tab");null===s&&0===t&&(s=r,history.replaceState({href:i,tab:r},"",i),e.refererInputs.val(i)),s===r&&e.setActiveTab_(r)})),jQuery(window).on("popstate",this.onPopstate_.bind(this)),jQuery(this.options.smartLinks).on("click",this.onClickLink_.bind(this)),jQuery(this.options.tabSelector+","+this.options.viewSubsubsub).on("click",this.onClick_.bind(this))},onClick_:function(e){var t=e.currentTarget,n=t.getAttribute("href"),i=this.queryHref_(t,"tab");i&&(history.pushState({href:n,tab:i},"",n),this.refererInputs.val(n),this.setActiveTab_(i),e.preventDefault(),t.blur())},onClickLink_:function(e){var t=e.currentTarget,n=this.queryLocation_("page"),i=this.queryLocation_("postType"),r=this.queryLocation_("tab"),s=this.queryHref_(t,"page"),o=this.queryHref_(t,"postType"),a=this.queryHref_(t,"tab");if(s===n&&o===i&&a){var l=t.getAttribute("href");history.pushState({href:l,tab:a},"",l),this.refererInputs.val(l),this.setActiveTab_(a),a!==r&&window.scrollTo(0,0),e.preventDefault()}},onPopstate_:function(e){var t=e.originalEvent.state;t&&t.tab&&t.href&&(this.refererInputs.val(t.href),this.setActiveTab_(t.tab))},getAction_:function(e){return e?"add":"remove"},queryHref_:function(e,t){return new URLSearchParams(e.getAttribute("href")).get(t)},queryLocation_:function(e){return new URLSearchParams(location.search).get(e)},setActiveTab_:function(e){for(var t=0;t<this.views.length;t++)if(e===this.views[t].id){this.setTab_(this.tabs[t]);break}},setSubsubsub_:function(){var e=this,t=0;[].forEach.call(this.subsubsub,(function(n,i){n.classList.remove("current"),e.queryHref_(n,"sub")===e.queryLocation_("sub")&&(t=i)})),this.subsubsub[t]&&this.subsubsub[t].classList.add("current"),[].forEach.call(this.sections,(function(n,i){var r=e.getAction_(i!==t);n.classList[r]("ui-tabs-hide")}))},setTab_:function(e){var t=this;[].forEach.call(this.tabs,(function(n,i){var r=t.getAction_(n===e);"add"===r&&(t.active.value=t.views[i].id,t.setView_(i)),n.classList[r]("nav-tab-active")}))},setView_:function(e){var t=this;[].forEach.call(this.views,(function(n,i){var r=t.getAction_(i!==e);n.classList[r]("ui-tabs-hide"),t.setSubsubsub_()}))}};var ee=J,te=function(){var e=document.querySelector("#contentdiv > textarea");e&&(this.resize_(e),jQuery(document).on("wp-window-resized.editor-expand",function(){this.resize_(e)}.bind(this)))};te.prototype={resize_:function(e){var t=e.scrollHeight>320?e.scrollHeight:320;e.style.height="auto",e.style.height=t+"px"}};var ne=te,ie=function(){jQuery("form").on("click","#glsr-clear-console",this.loadConsole_,this.onClick_.bind(this)),jQuery("form").on("click","#glsr-fetch-console",this.loadConsole_,this.onClick_.bind(this)),jQuery("form").on("click","[data-ajax-click]",this.onClick_.bind(this)),jQuery(".glsr-button").on("click",this.setExpand_);var e=jQuery("input[data-alt]");e.length&&(jQuery(document).on("keydown",this.onKeyDown_.bind(this,e)),jQuery(document).on("keyup",this.onKeyUp_.bind(this,e)))};ie.prototype={loadConsole_:function(e,t){t&&jQuery("#glsr-log-file").val(e.console)},onClick_:function(e){var t=jQuery(e.currentTarget),n=this;t.addClass("is-busy"),new l({},e,t.closest("form")).post((function(i,r){"function"==typeof e.data&&e.data(i,r),t.get(0).hasAttribute("data-ajax-scroll")&&jQuery("html, body").animate({scrollTop:0},500),t.removeClass("is-busy"),t.closest("[data-ajax-hide]").css({backgroundColor:"rgba(74,184,102,.25)"}).fadeOut("normal",(function(){jQuery(this).remove()})),jQuery("#glsr-notices").on("click","a",n.setExpand_),jQuery('.glsr-notice[data-notice="'+t.data("remove-notice")+'"]').remove()}))},onKeyDown_:function(e,t){GLSR.keys.ALT!==t.keyCode||t.repeat||(e.closest("form").find("[data-alt-text]").addClass("alt"),e.val(1))},onKeyUp_:function(e,t){GLSR.keys.ALT===t.keyCode&&(e.closest("form").find("[data-alt-text]").removeClass("alt"),e.val(0))},setExpand_:function(e){var t=jQuery(e.currentTarget).data("expand");t&&localStorage.setItem("glsr-expand",t)}};var re=ie;function se(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oe(e){return e instanceof se(e).Element||e instanceof Element}function ae(e){return e instanceof se(e).HTMLElement||e instanceof HTMLElement}function le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof se(e).ShadowRoot||e instanceof ShadowRoot)}var ce=Math.max,ue=Math.min,de=Math.round;function pe(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),i=1,r=1;if(ae(e)&&t){var s=e.offsetHeight,o=e.offsetWidth;o>0&&(i=de(n.width)/o||1),s>0&&(r=de(n.height)/s||1)}return{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function fe(e){var t=se(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function he(e){return e?(e.nodeName||"").toLowerCase():null}function ge(e){return((oe(e)?e.ownerDocument:e.document)||window.document).documentElement}function ve(e){return pe(ge(e)).left+fe(e).scrollLeft}function me(e){return se(e).getComputedStyle(e)}function ye(e){var t=me(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function be(e,t,n){void 0===n&&(n=!1);var i,r,s=ae(t),o=ae(t)&&function(e){var t=e.getBoundingClientRect(),n=de(t.width)/e.offsetWidth||1,i=de(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=ge(t),l=pe(e,o),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&(("body"!==he(t)||ye(a))&&(c=(i=t)!==se(i)&&ae(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:fe(i)),ae(t)?((u=pe(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=ve(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function we(e){var t=pe(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function _e(e){return"html"===he(e)?e:e.assignedSlot||e.parentNode||(le(e)?e.host:null)||ge(e)}function xe(e){return["html","body","#document"].indexOf(he(e))>=0?e.ownerDocument.body:ae(e)&&ye(e)?e:xe(_e(e))}function ke(e,t){var n;void 0===t&&(t=[]);var i=xe(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),s=se(i),o=r?[s].concat(s.visualViewport||[],ye(i)?i:[]):i,a=t.concat(o);return r?a:a.concat(ke(_e(o)))}function Ee(e){return["table","td","th"].indexOf(he(e))>=0}function Se(e){return ae(e)&&"fixed"!==me(e).position?e.offsetParent:null}function je(e){for(var t=se(e),n=Se(e);n&&Ee(n)&&"static"===me(n).position;)n=Se(n);return n&&("html"===he(n)||"body"===he(n)&&"static"===me(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&ae(e)&&"fixed"===me(e).position)return null;var n=_e(e);for(le(n)&&(n=n.host);ae(n)&&["html","body"].indexOf(he(n))<0;){var i=me(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Ce="top",Oe="bottom",Ae="right",Le="left",Te="auto",Re=[Ce,Oe,Ae,Le],Pe="start",Fe="end",Qe="viewport",De="popper",ze=Re.reduce((function(e,t){return e.concat([t+"-"+Pe,t+"-"+Fe])}),[]),qe=[].concat(Re,[Te]).reduce((function(e,t){return e.concat([t,t+"-"+Pe,t+"-"+Fe])}),[]),Ie=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ne(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var $e={placement:"bottom",modifiers:[],strategy:"absolute"};function He(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Me(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,s=void 0===r?$e:r;return function(e,t,n){void 0===n&&(n=s);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},$e,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},s,a.options,r),a.scrollParents={reference:oe(e)?ke(e):e.contextElement?ke(e.contextElement):[],popper:ke(t)};var o=function(e){var t=Ne(e);return Ie.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(i,a.options.modifiers)));return a.orderedModifiers=o.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var s=r({state:a,name:t,instance:u,options:i}),o=function(){};l.push(s||o)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(He(t,n)){a.rects={reference:be(t,je(n),"fixed"===a.options.strategy),popper:we(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],s=r.fn,o=r.options,l=void 0===o?{}:o,d=r.name;"function"==typeof s&&(a=s({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(r())}))}))),o}),destroy:function(){d(),c=!0}};if(!He(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Ge={passive:!0};function Ve(e){return e.split("-")[0]}function We(e){return e.split("-")[1]}function Be(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ue(e){var t,n=e.reference,i=e.element,r=e.placement,s=r?Ve(r):null,o=r?We(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case Ce:t={x:a,y:n.y-i.height};break;case Oe:t={x:a,y:n.y+n.height};break;case Ae:t={x:n.x+n.width,y:l};break;case Le:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Be(s):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Pe:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Fe:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}var Ke={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ye(e){var t,n=e.popper,i=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=o.x,f=void 0===p?0:p,h=o.y,g=void 0===h?0:h,v="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=v.x,g=v.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Le,w=Ce,_=window;if(c){var x=je(n),k="clientHeight",E="clientWidth";if(x===se(n)&&"static"!==me(x=ge(n)).position&&"absolute"===a&&(k="scrollHeight",E="scrollWidth"),x=x,r===Ce||(r===Le||r===Ae)&&s===Fe)w=Oe,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[k])-i.height,g*=l?1:-1;if(r===Le||(r===Ce||r===Oe)&&s===Fe)b=Ae,f-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[E])-i.width,f*=l?1:-1}var S,j=Object.assign({position:a},c&&Ke),C=!0===u?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:de(t*i)/i||0,y:de(n*i)/i||0}}({x:f,y:g}):{x:f,y:g};return f=C.x,g=C.y,l?Object.assign({},j,((S={})[w]=y?"0":"",S[b]=m?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",S)):Object.assign({},j,((t={})[w]=y?g+"px":"",t[b]=m?f+"px":"",t.transform="",t))}var Xe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];ae(r)&&he(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ae(i)&&he(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Ze={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=void 0===r?[0,0]:r,o=qe.reduce((function(e,n){return e[n]=function(e,t,n){var i=Ve(e),r=[Le,Ce].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[Le,Ae].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,s),e}),{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},Je={left:"right",right:"left",bottom:"top",top:"bottom"};function et(e){return e.replace(/left|right|bottom|top/g,(function(e){return Je[e]}))}var tt={start:"end",end:"start"};function nt(e){return e.replace(/start|end/g,(function(e){return tt[e]}))}function it(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&le(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function rt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function st(e,t){return t===Qe?rt(function(e){var t=se(e),n=ge(e),i=t.visualViewport,r=n.clientWidth,s=n.clientHeight,o=0,a=0;return i&&(r=i.width,s=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,a=i.offsetTop)),{width:r,height:s,x:o+ve(e),y:a}}(e)):oe(t)?function(e){var t=pe(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):rt(function(e){var t,n=ge(e),i=fe(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=ce(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=ce(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+ve(e),l=-i.scrollTop;return"rtl"===me(r||n).direction&&(a+=ce(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}(ge(e)))}function ot(e,t,n){var i="clippingParents"===t?function(e){var t=ke(_e(e)),n=["absolute","fixed"].indexOf(me(e).position)>=0&&ae(e)?je(e):e;return oe(n)?t.filter((function(e){return oe(e)&&it(e,n)&&"body"!==he(e)})):[]}(e):[].concat(t),r=[].concat(i,[n]),s=r[0],o=r.reduce((function(t,n){var i=st(e,n);return t.top=ce(i.top,t.top),t.right=ue(i.right,t.right),t.bottom=ue(i.bottom,t.bottom),t.left=ce(i.left,t.left),t}),st(e,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function at(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ct(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,s=n.boundary,o=void 0===s?"clippingParents":s,a=n.rootBoundary,l=void 0===a?Qe:a,c=n.elementContext,u=void 0===c?De:c,d=n.altBoundary,p=void 0!==d&&d,f=n.padding,h=void 0===f?0:f,g=at("number"!=typeof h?h:lt(h,Re)),v=u===De?"reference":De,m=e.rects.popper,y=e.elements[p?v:u],b=ot(oe(y)?y:y.contextElement||ge(e.elements.popper),o,l),w=pe(e.elements.reference),_=Ue({reference:w,element:m,strategy:"absolute",placement:r}),x=rt(Object.assign({},m,_)),k=u===De?x:w,E={top:b.top-k.top+g.top,bottom:k.bottom-b.bottom+g.bottom,left:b.left-k.left+g.left,right:k.right-b.right+g.right},S=e.modifiersData.offset;if(u===De&&S){var j=S[r];Object.keys(E).forEach((function(e){var t=[Ae,Oe].indexOf(e)>=0?1:-1,n=[Ce,Oe].indexOf(e)>=0?"y":"x";E[e]+=j[n]*t}))}return E}var ut={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=void 0===r||r,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,g=n.allowedAutoPlacements,v=t.options.placement,m=Ve(v),y=l||(m===v||!h?[et(v)]:function(e){if(Ve(e)===Te)return[];var t=et(e);return[nt(e),t,nt(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(Ve(n)===Te?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?qe:l,u=We(i),d=u?a?ze:ze.filter((function(e){return We(e)===u})):Re,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=ct(e,{placement:n,boundary:r,rootBoundary:s,padding:o})[Ve(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,k=!0,E=b[0],S=0;S<b.length;S++){var j=b[S],C=Ve(j),O=We(j)===Pe,A=[Ce,Oe].indexOf(C)>=0,L=A?"width":"height",T=ct(t,{placement:j,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=A?O?Ae:Le:O?Oe:Ce;w[L]>_[L]&&(R=et(R));var P=et(R),F=[];if(s&&F.push(T[C]<=0),a&&F.push(T[R]<=0,T[P]<=0),F.every((function(e){return e}))){E=j,k=!1;break}x.set(j,F)}if(k)for(var Q=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},D=h?3:1;D>0;D--){if("break"===Q(D))break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function dt(e,t,n){return ce(e,ue(t,n))}var pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,s=void 0===r||r,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,g=void 0===h?0:h,v=ct(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=Ve(t.placement),y=We(t.placement),b=!y,w=Be(m),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,E=t.rects.popper,S="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,j="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(x){if(s){var A,L="y"===w?Ce:Le,T="y"===w?Oe:Ae,R="y"===w?"height":"width",P=x[w],F=P+v[L],Q=P-v[T],D=f?-E[R]/2:0,z=y===Pe?k[R]:E[R],q=y===Pe?-E[R]:-k[R],I=t.elements.arrow,N=f&&I?we(I):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[L],M=$[T],G=dt(0,k[R],N[R]),V=b?k[R]/2-D-G-H-j.mainAxis:z-G-H-j.mainAxis,W=b?-k[R]/2+D+G+M+j.mainAxis:q+G+M+j.mainAxis,B=t.elements.arrow&&je(t.elements.arrow),U=B?"y"===w?B.clientTop||0:B.clientLeft||0:0,K=null!=(A=null==C?void 0:C[w])?A:0,Y=P+W-K,X=dt(f?ue(F,P+V-K-U):F,P,f?ce(Q,Y):Q);x[w]=X,O[w]=X-P}if(a){var Z,J="x"===w?Ce:Le,ee="x"===w?Oe:Ae,te=x[_],ne="y"===_?"height":"width",ie=te+v[J],re=te-v[ee],se=-1!==[Ce,Le].indexOf(m),oe=null!=(Z=null==C?void 0:C[_])?Z:0,ae=se?ie:te-k[ne]-E[ne]-oe+j.altAxis,le=se?te+k[ne]+E[ne]-oe-j.altAxis:re,de=f&&se?function(e,t,n){var i=dt(e,t,n);return i>n?n:i}(ae,te,le):dt(f?ae:ie,te,f?le:re);x[_]=de,O[_]=de-te}t.modifiersData[i]=O}},requiresIfExists:["offset"]};var ft={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Ve(n.placement),l=Be(a),c=[Le,Ae].indexOf(a)>=0?"height":"width";if(s&&o){var u=function(e,t){return at("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lt(e,Re))}(r.padding,n),d=we(s),p="y"===l?Ce:Le,f="y"===l?Oe:Ae,h=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],v=je(s),m=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-g/2,b=u[p],w=m-d[c]-u[f],_=m/2-d[c]/2+y,x=dt(b,_,w),k=l;n.modifiersData[i]=((t={})[k]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&it(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ht(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function gt(e){return[Ce,Ae,Oe,Le].some((function(t){return e[t]>=0}))}var vt=Me({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,s=void 0===r||r,o=i.resize,a=void 0===o||o,l=se(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",n.update,Ge)})),a&&l.addEventListener("resize",n.update,Ge),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Ge)})),a&&l.removeEventListener("resize",n.update,Ge)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ue({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,s=n.adaptive,o=void 0===s||s,a=n.roundOffsets,l=void 0===a||a,c={placement:Ve(t.placement),variation:We(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ye(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ye(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Xe,Ze,ut,pt,ft,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=ct(t,{elementContext:"reference"}),a=ct(t,{altBoundary:!0}),l=ht(o,i),c=ht(a,r,s),u=gt(l),d=gt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),mt="tippy-content",yt="tippy-backdrop",bt="tippy-arrow",wt="tippy-svg-arrow",_t={passive:!0,capture:!0},xt=function(){return document.body};function kt(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function Et(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function St(e,t){return"function"==typeof e?e.apply(void 0,t):e}function jt(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function Ct(e){return[].concat(e)}function Ot(e,t){-1===e.indexOf(t)&&e.push(t)}function At(e){return e.split("-")[0]}function Lt(e){return[].slice.call(e)}function Tt(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Rt(){return document.createElement("div")}function Pt(e){return["Element","Fragment"].some((function(t){return Et(e,t)}))}function Ft(e){return Et(e,"MouseEvent")}function Qt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Dt(e){return Pt(e)?[e]:function(e){return Et(e,"NodeList")}(e)?Lt(e):Array.isArray(e)?e:Lt(document.querySelectorAll(e))}function zt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function qt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function It(e){var t,n=Ct(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Nt(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function $t(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Ht={isTouch:!1},Mt=0;function Gt(){Ht.isTouch||(Ht.isTouch=!0,window.performance&&document.addEventListener("mousemove",Vt))}function Vt(){var e=performance.now();e-Mt<20&&(Ht.isTouch=!1,document.removeEventListener("mousemove",Vt)),Mt=e}function Wt(){var e=document.activeElement;if(Qt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Bt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Ut={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Kt=Object.assign({appendTo:xt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Ut,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Yt=Object.keys(Kt);function Xt(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,s=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=Kt[r])?i:s);return t}),{});return Object.assign({},e,t)}function Zt(e,t){var n=Object.assign({},t,{content:St(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Xt(Object.assign({},Kt,{plugins:t}))):Yt).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Kt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Jt(e,t){e.innerHTML=t}function en(e){var t=Rt();return!0===e?t.className=bt:(t.className=wt,Pt(e)?t.appendChild(e):Jt(t,e)),t}function tn(e,t){Pt(t.content)?(Jt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Jt(e,t.content):e.textContent=t.content)}function nn(e){var t=e.firstElementChild,n=Lt(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(mt)})),arrow:n.find((function(e){return e.classList.contains(bt)||e.classList.contains(wt)})),backdrop:n.find((function(e){return e.classList.contains(yt)}))}}function rn(e){var t=Rt(),n=Rt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Rt();function r(n,i){var r=nn(t),s=r.box,o=r.content,a=r.arrow;i.theme?s.setAttribute("data-theme",i.theme):s.removeAttribute("data-theme"),"string"==typeof i.animation?s.setAttribute("data-animation",i.animation):s.removeAttribute("data-animation"),i.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?s.setAttribute("role",i.role):s.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||tn(o,e.props),i.arrow?a?n.arrow!==i.arrow&&(s.removeChild(a),s.appendChild(en(i.arrow))):s.appendChild(en(i.arrow)):a&&s.removeChild(a)}return i.className=mt,i.setAttribute("data-state","hidden"),tn(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}rn.$$tippy=!0;var sn=1,on=[],an=[];function ln(e,t){var n,i,r,s,o,a,l,c,u=Zt(e,Object.assign({},Kt,Xt(Tt(t)))),d=!1,p=!1,f=!1,h=!1,g=[],v=jt(B,u.interactiveDebounce),m=sn++,y=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:m,reference:e,popper:Rt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(b.state.isDestroyed)return;P("onBeforeUpdate",[b,t]),V();var n=b.props,i=Zt(e,Object.assign({},n,Tt(t),{ignoreAttributes:!0}));b.props=i,G(),n.interactiveDebounce!==i.interactiveDebounce&&(D(),v=jt(B,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?Ct(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");Q(),R(),x&&x(n,i);b.popperInstance&&(X(),J().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));P("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Ht.isTouch&&!b.props.touch,r=kt(b.props.duration,0,Kt.duration);if(e||t||n||i)return;if(O().hasAttribute("disabled"))return;if(P("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,C()&&(_.style.visibility="visible");R(),N(),b.state.isMounted||(_.style.transition="none");if(C()){var s=L(),o=s.box,l=s.content;zt([o,l],0)}a=function(){var e;if(b.state.isVisible&&!h){if(h=!0,_.offsetHeight,_.style.transition=b.props.moveTransition,C()&&b.props.animation){var t=L(),n=t.box,i=t.content;zt([n,i],r),qt([n,i],"visible")}F(),Q(),Ot(an,b),null==(e=b.popperInstance)||e.forceUpdate(),P("onMount",[b]),b.props.animation&&C()&&function(e,t){H(e,t)}(r,(function(){b.state.isShown=!0,P("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=O();e=b.props.interactive&&t===xt||"parent"===t?n.parentNode:St(t,[n]);e.contains(_)||e.appendChild(_);b.state.isMounted=!0,X(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=kt(b.props.duration,1,Kt.duration);if(e||t||n)return;if(P("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,d=!1,C()&&(_.style.visibility="hidden");if(D(),$(),R(!0),C()){var r=L(),s=r.box,o=r.content;b.props.animation&&(zt([s,o],i),qt([s,o],"hidden"))}F(),Q(),b.props.animation?C()&&function(e,t){H(e,(function(){!b.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()}))}(i,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;A().addEventListener("mousemove",v),Ot(on,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Z(),J().forEach((function(e){e._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);an=an.filter((function(e){return e!==b})),b.state.isMounted=!1,P("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),V(),delete e._tippy,b.state.isDestroyed=!0,P("onDestroy",[b])}};if(!u.render)return b;var w=u.render(b),_=w.popper,x=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+b.id,b.popper=_,e._tippy=b,_._tippy=b;var k=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return G(),Q(),R(),P("onCreate",[b]),u.showOnCreate&&ee(),_.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&A().addEventListener("mousemove",v)})),b;function S(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function j(){return"hold"===S()[0]}function C(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function O(){return l||e}function A(){var e=O().parentNode;return e?It(e):document}function L(){return nn(_)}function T(e){return b.state.isMounted&&!b.state.isVisible||Ht.isTouch||s&&"focus"===s.type?0:kt(b.props.delay,e?0:1,Kt.delay)}function R(e){void 0===e&&(e=!1),_.style.pointerEvents=b.props.interactive&&!e?"":"none",_.style.zIndex=""+b.props.zIndex}function P(e,t,n){var i;(void 0===n&&(n=!0),k.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=b.props)[e].apply(i,t)}function F(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=_.id;Ct(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function Q(){!E&&b.props.aria.expanded&&Ct(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===O()?"true":"false"):e.removeAttribute("aria-expanded")}))}function D(){A().removeEventListener("mousemove",v),on=on.filter((function(e){return e!==v}))}function z(t){if(!Ht.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!$t(_,n)){if(Ct(b.props.triggerTarget||e).some((function(e){return $t(e,n)}))){if(Ht.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout((function(){p=!1})),b.state.isMounted||$())}}}function q(){f=!0}function I(){f=!1}function N(){var e=A();e.addEventListener("mousedown",z,!0),e.addEventListener("touchend",z,_t),e.addEventListener("touchstart",I,_t),e.addEventListener("touchmove",q,_t)}function $(){var e=A();e.removeEventListener("mousedown",z,!0),e.removeEventListener("touchend",z,_t),e.removeEventListener("touchstart",I,_t),e.removeEventListener("touchmove",q,_t)}function H(e,t){var n=L().box;function i(e){e.target===n&&(Nt(n,"remove",i),t())}if(0===e)return t();Nt(n,"remove",o),Nt(n,"add",i),o=i}function M(t,n,i){void 0===i&&(i=!1),Ct(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),g.push({node:e,eventType:t,handler:n,options:i})}))}function G(){var e;j()&&(M("touchstart",W,{passive:!0}),M("touchend",U,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(M(e,W),e){case"mouseenter":M("mouseleave",U);break;case"focus":M(Bt?"focusout":"blur",K);break;case"focusin":M("focusout",K)}}))}function V(){g.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),g=[]}function W(e){var t,n=!1;if(b.state.isEnabled&&!Y(e)&&!p){var i="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,Q(),!b.state.isVisible&&Ft(e)&&on.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!i&&te(e)}}function B(e){var t=e.target,n=O().contains(t)||_.contains(t);if("mousemove"!==e.type||!n){var i=J().concat(_).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,s=e.props.interactiveBorder,o=At(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===o?a.top.y:0,c="top"===o?a.bottom.y:0,u="right"===o?a.left.x:0,d="left"===o?a.right.x:0,p=t.top-i+l>s,f=i-t.bottom-c>s,h=t.left-n+u>s,g=n-t.right-d>s;return p||f||h||g}))})(i,e)&&(D(),te(e))}}function U(e){Y(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==O()||b.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function Y(e){return!!Ht.isTouch&&j()!==e.type.indexOf("touch")>=0}function X(){Z();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,s=t.getReferenceClientRect,o=t.moveTransition,l=C()?nn(_).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||O()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(C()){var n=L().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},u];C()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=vt(c,_,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:d}))}function Z(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function J(){return Lt(_.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&P("onTrigger",[b,e]),N();var t=T(!0),i=S(),r=i[0],s=i[1];Ht.isTouch&&"hold"===r&&s&&(t=s),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),P("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=T(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else $()}}function cn(e,t){void 0===t&&(t={});var n=Kt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Gt,_t),window.addEventListener("blur",Wt);var i=Object.assign({},t,{plugins:n}),r=Dt(e).reduce((function(e,t){var n=t&&ln(t,i);return n&&e.push(n),e}),[]);return Pt(e)?r[0]:r}cn.defaultProps=Kt,cn.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Kt[t]=e[t]}))},cn.currentInput=Ht;Object.assign({},Xe,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});var un={clientX:0,clientY:0},dn=[];function pn(e){var t=e.clientX,n=e.clientY;un={clientX:t,clientY:n}}var fn={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=It(e.props.triggerTarget||t),i=!1,r=!1,s=!0,o=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",d)}function c(){n.removeEventListener("mousemove",d)}function u(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function d(n){var i=!n.target||t.contains(n.target),r=e.props.followCursor,s=n.clientX,o=n.clientY,a=t.getBoundingClientRect(),l=s-a.left,c=o-a.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=s,i=o;"initial"===r&&(n=e.left+l,i=e.top+c);var a="horizontal"===r?e.top:i,u="vertical"===r?e.right:n,d="horizontal"===r?e.bottom:i,p="vertical"===r?e.left:n;return{width:u-p,height:d-a,top:a,right:u,bottom:d,left:p}}})}function p(){e.props.followCursor&&(dn.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",pn)}(n))}function f(){0===(dn=dn.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",pn)}(n)}return{onCreate:p,onDestroy:f,onBeforeUpdate:function(){o=e.props},onAfterUpdate:function(t,n){var s=n.followCursor;i||void 0!==s&&o.followCursor!==s&&(f(),s?(p(),!e.state.isMounted||r||a()||l()):(c(),u()))},onMount:function(){e.props.followCursor&&!r&&(s&&(d(un),s=!1),a()||l())},onTrigger:function(e,t){Ft(t)&&(un={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),c(),s=!0)}}}};cn.setDefaultProps({render:rn});var hn=cn;GLSR.autosize=h,GLSR.keys={ALT:18,DOWN:40,ENTER:13,ESC:27,SPACE:32,TAB:9,UP:38},GLSR.Event=w,GLSR.Tippy={tippy:hn,plugins:{followCursor:fn}},jQuery((function(e){N().highlightAll(),GLSR.notices=new F,GLSR.shortcode=new W(".glsr-mce"),GLSR.stars=new(U())("select.glsr-star-rating",{tooltip:!1}),GLSR.Tippy.tippy(".glsr-tooltip",{appendTo:function(){return document.body}}),e(".glsr-tooltip").each((function(e,t){var n=t.dataset.tippyContent,i=t.dataset.syntax;t._tippy&&n&&i&&N().languages[i]&&t._tippy.setContent('<pre class="language-'+i+'"><code>'+N().highlight(n,N().languages[i],i)+"</code></pre>")})),v(),new O,e(".glsr-filter").each((function(e,t){new j(t)})),new L("form.glsr-form"),new R,new D,new q,new H("#glsr-search-posts",{action:"search-posts",onInit:function(){this.el.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this))},onResultClick:function(t){var n=e(t.currentTarget),i=wp.template("glsr-assigned-posts"),r={id:n.data("id"),name:"post_ids[]",url:n.data("url"),title:n.text()};if(i){var s=e(i(r));s.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this)),this.el.find(".glsr-selected-entries").append(s),this.reset_()}this.options.searchEl.focus()}}),new H("#glsr-search-translations",{action:"search-translations",onInit:function(){this.makeSortable_()},onResultClick:function(t){var n=e(t.currentTarget),i=n.data("entry"),r=wp.template("glsr-string-"+(i.p1?"plural":"single"));i.index=this.options.entriesEl.children().length,i.prefix=this.options.resultsEl.data("prefix"),r&&(this.options.entriesEl.append(r(i)),this.options.exclude.push({id:i.id}),this.options.results=this.options.results.filter((function(e,t){return t!==n.get(0)}))),this.setVisibility_()}}),new H("#glsr-search-users",{action:"search-users",onInit:function(){this.el.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this))},onResultClick:function(t){var n=e(t.currentTarget),i=wp.template("glsr-assigned-users"),r={id:n.data("id"),name:"user_ids[]",url:n.data("url"),title:n.text()};if(i){var s=e(i(r));s.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this)),this.el.find(".glsr-selected-entries").append(s),this.reset_()}this.options.searchEl.focus()}}),new Y("a.glsr-toggle-status"),new G,new ee,new ne,new re,new Z;var t=function(){this.dataset.glsrTrack=this.value};e("select[data-glsr-track]").each(t),e("select[data-glsr-track]").on("change",t),e(".glsr-card.postbox:not(.open)").addClass("closed").find(".glsr-accordion-trigger").attr("aria-expanded",!1).closest(".glsr-nav-view").addClass("collapsed"),e(".glsr-support-step").not(":checked").length<1&&e(".glsr-card-result").removeClass("hidden"),e(".glsr-support-step").on("change",(function(){var t=e(".glsr-support-step").not(":checked").length>0?"add":"remove";e(".glsr-card-result")[t+"Class"]("hidden")})),e(".glsr-card.postbox .glsr-card-heading").on("click",(function(){var t=e(this).parent(),n=t.closest(".glsr-nav-view"),i=t.hasClass("closed")?"remove":"add";t[i+"Class"]("closed").find(".glsr-accordion-trigger").attr("aria-expanded","add"!==i),i=n.find(".glsr-card.postbox").not(".closed").length>0?"remove":"add",n[i+"Class"]("collapsed")})),e(".post-type-site-review #the-list").on("click",".editinline",(function(){var t=e(this).closest("tr");e(':input[data-name="post_content"]').val(""),e(':input[name="_response"]').val(""),setTimeout((function(){e(':input[data-name="post_content"]').val(t.find("._post_content").text()),e(':input[name="_response"]').val(t.find("._response").text())}),50)}));var n,i=e("#glsr-notices .bulk-action-notice").on("click","button.button-link",(function(){e(this).toggleClass("bulk-action-errors-collapsed").attr("aria-expanded",!e(this).hasClass("bulk-action-errors-collapsed")),i.find(".bulk-action-errors").toggleClass("hidden")}));"no"===GLSR.isLicensed&&jQuery(".post-type-site-review.edit-php .page-title-action").after('<a href="'+GLSR.premiumurl+'" target="_blank" id="glsr-premium-button" class="button button-primary">'+GLSR.text.premium+"</a>"),n=GLSR.text.rate,jQuery("#footer-left",".post-type-site-review, .post-type-site-review-form, .post-type-site-review-theme, .dashboard_page_site-reviews-welcome").html(n.replace("%s",'<strong>Site Reviews</strong> <a href="https://wordpress.org/support/view/plugin-reviews/site-reviews?filter=5#new-post" target="_blank">&#9733;&#9733;&#9733;&#9733;&#9733;</a>').replace("%s",'<a href="https://wordpress.org/support/view/plugin-reviews/site-reviews?filter=5#new-post" target="_blank">wordpress.org</a>')),e(".glsr-youtube-button").on("click",(function(){var t=this.dataset.id,n=e(document.createElement("iframe"));n.attr("frameborder","0"),n.attr("allowfullscreen",""),n.attr("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"),t.length>12?n.attr("src","https://www.youtube-nocookie.com/embed/videoseries?list="+t+"&rel=0&showinfo=0&autoplay=1"):n.attr("src","https://www.youtube-nocookie.com/embed/"+t+"?rel=0&showinfo=0&autoplay=1"),e(this).parent().prepend(n)}))}));var gn=function(e){[].forEach.call(document.querySelectorAll('[data-type="site-reviews/'.concat(e,'"] .glsr')),(function(e){var t="glsr-"+window.getComputedStyle(e,null).getPropertyValue("direction");e.classList.add(t)}))};w.on("site-reviews/form",(function(e,t){_.isEmpty(e)||e.error||(gn("form"),GLSR.stars=new(U())("select.glsr-star-rating",{tooltip:!1}))})),w.on("site-reviews/reviews",(function(e,t){_.isEmpty(e)||e.error||gn("reviews")})),w.on("site-reviews/summary",(function(e,t){_.isEmpty(e)||e.error||gn("summary")}))},113:function(){},30:function(){},966:function(){},83:function(){},649:function(){},408:function(){},529:function(){},275:function(){},872:function(){},865:function(){},774:function(){},625:function(){},193:function(){},644:function(){},651:function(){},344:function(){},753:function(){},189:function(){},832:function(){},345:function(){},974:function(){},511:function(){},894:function(){},474:function(){},688:function(){},522:function(){},167:function(){},406:function(){},829:function(){},273:function(){},518:function(){},963:function(){},433:function(){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},325:function(e,t,n){var i=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof s?new s(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var i,s;switch(n=n||{},r.util.type(t)){case"Object":if(s=r.util.objId(t),n[s])return n[s];for(var o in i={},n[s]=i,t)t.hasOwnProperty(o)&&(i[o]=e(t[o],n));return i;case"Array":return s=r.util.objId(t),n[s]?n[s]:(i=[],n[s]=i,t.forEach((function(t,r){i[r]=e(t,n)})),i);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var i="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(i))return!1;e=e.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var s=(i=i||r.languages)[e],o={};for(var a in s)if(s.hasOwnProperty(a)){if(a==t)for(var l in n)n.hasOwnProperty(l)&&(o[l]=n[l]);n.hasOwnProperty(a)||(o[a]=s[a])}var c=i[e];return i[e]=o,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,i,s){s=s||{};var o=r.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],i||a);var l=t[a],c=r.util.type(l);"Object"!==c||s[o(l)]?"Array"!==c||s[o(l)]||(s[o(l)]=!0,e(l,n,a,s)):(s[o(l)]=!0,e(l,n,null,s))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var i={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),r.hooks.run("before-all-elements-highlight",i);for(var s,o=0;s=i.elements[o++];)r.highlightElement(s,!0===t,i.callback)},highlightElement:function(t,n,i){var s=r.util.getLanguage(t),o=r.languages[s];r.util.setLanguage(t,s);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&r.util.setLanguage(a,s);var l={element:t,language:s,grammar:o,code:t.textContent};function c(e){l.highlightedCode=e,r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r.hooks.run("after-highlight",l),r.hooks.run("complete",l),i&&i.call(l.element)}if(r.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return r.hooks.run("complete",l),void(i&&i.call(l.element));if(r.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(r.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(r.highlight(l.code,l.grammar,l.language));else c(r.util.encode(l.code))},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),s.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var i in n)t[i]=n[i];delete t.rest}var r=new l;return c(r,r.head,e),a(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var i,s=0;i=n[s++];)i(t)}},Token:s};function s(e,t,n,i){this.type=e,this.content=t,this.alias=n,this.length=0|(i||"").length}function o(e,t,n,i){e.lastIndex=t;var r=e.exec(n);if(r&&i&&r[1]){var s=r[1].length;r.index+=s,r[0]=r[0].slice(s)}return r}function a(e,t,n,i,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var g=f[h],v=g.inside,m=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var _=g.pattern||g,x=i.next,k=l;x!==t.tail&&!(d&&k>=d.reach);k+=x.value.length,x=x.next){var E=x.value;if(t.length>e.length)return;if(!(E instanceof s)){var S,j=1;if(y){if(!(S=o(_,k,e,m))||S.index>=e.length)break;var C=S.index,O=S.index+S[0].length,A=k;for(A+=x.value.length;C>=A;)A+=(x=x.next).value.length;if(k=A-=x.value.length,x.value instanceof s)continue;for(var L=x;L!==t.tail&&(A<O||"string"==typeof L.value);L=L.next)j++,A+=L.value.length;j--,E=e.slice(k,A),S.index-=k}else if(!(S=o(_,0,E,m)))continue;C=S.index;var T=S[0],R=E.slice(0,C),P=E.slice(C+T.length),F=k+E.length;d&&F>d.reach&&(d.reach=F);var Q=x.prev;if(R&&(Q=c(t,Q,R),k+=R.length),u(t,Q,j),x=c(t,Q,new s(p,v?r.tokenize(T,v):T,b,T)),P&&c(t,x,P),j>1){var D={cause:p+","+h,reach:F};a(e,t,n,x.prev,k,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var i=t.next,r={value:n,prev:t,next:i};return t.next=r,i.prev=r,e.length++,r}function u(e,t,n){for(var i=t.next,r=0;r<n&&i!==e.tail;r++)i=i.next;t.next=i,i.prev=t,e.length-=r}if(e.Prism=r,s.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach((function(t){i+=e(t,n)})),i}var s={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(s.classes,o):s.classes.push(o)),r.hooks.run("wrap",s);var a="";for(var l in s.attributes)a+=" "+l+'="'+(s.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+a+">"+s.content+"</"+s.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),i=n.language,s=n.code,o=n.immediateClose;e.postMessage(r.highlight(s,r.languages[i],i)),o&&e.close()}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll()}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=i),void 0!==n.g&&(n.g.Prism=i)},251:function(){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},980:function(){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},854:function(){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,i,r,s){if(n.language===i){var o=n.tokenStack=[];n.code=n.code.replace(r,(function(e){if("function"==typeof s&&!s(e))return e;for(var r,a=o.length;-1!==n.code.indexOf(r=t(i,a));)++a;return o[a]=e,r})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,i){if(n.language===i&&n.tokenStack){n.grammar=e.languages[i];var r=0,s=Object.keys(n.tokenStack);!function o(a){for(var l=0;l<a.length&&!(r>=s.length);l++){var c=a[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=s[r],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(i,u),h=p.indexOf(f);if(h>-1){++r;var g=p.substring(0,h),v=new e.Token(i,e.tokenize(d,n.grammar),"language-"+i,d),m=p.substring(h+f.length),y=[];g&&y.push.apply(y,o([g])),y.push(v),m&&y.push.apply(y,o([m])),"string"==typeof c?a.splice.apply(a,[l,1].concat(y)):c.content=y}}else c.content&&o(c.content)}return a}(n.tokens)}}}})}(Prism)},335:function(){Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var r={};r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},945:function(){!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,r=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:r,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},a=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:a,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:i,operator:r,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},759:function(){!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var i=t.querySelector(".line-numbers-rows");if(i){var r=parseInt(t.getAttribute("data-start"),10)||1,s=r+(i.children.length-1);n<r&&(n=r),n>s&&(n=s);var o=n-r;return i.children[o]}}},resize:function(e){r([e])},assumeViewportIndependence:!0},i=void 0;window.addEventListener("resize",(function(){n.assumeViewportIndependence&&i===window.innerWidth||(i=window.innerWidth,r(Array.prototype.slice.call(document.querySelectorAll("pre.line-numbers"))))})),Prism.hooks.add("complete",(function(n){if(n.code){var i=n.element,s=i.parentNode;if(s&&/pre/i.test(s.nodeName)&&!i.querySelector(".line-numbers-rows")&&Prism.util.isActive(i,e)){i.classList.remove(e),s.classList.add(e);var o,a=n.code.match(t),l=a?a.length+1:1,c=new Array(l+1).join("<span></span>");(o=document.createElement("span")).setAttribute("aria-hidden","true"),o.className="line-numbers-rows",o.innerHTML=c,s.hasAttribute("data-start")&&(s.style.counterReset="linenumber "+(parseInt(s.getAttribute("data-start"),10)-1)),n.element.appendChild(o),r([s]),Prism.hooks.run("line-numbers",n)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}function r(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var n=e.map((function(e){var n=e.querySelector("code"),i=e.querySelector(".line-numbers-rows");if(n&&i){var r=e.querySelector(".line-numbers-sizer"),s=n.textContent.split(t);r||((r=document.createElement("span")).className="line-numbers-sizer",n.appendChild(r)),r.innerHTML="0",r.style.display="block";var o=r.getBoundingClientRect().height;return r.innerHTML="",{element:e,lines:s,lineHeights:[],oneLinerHeight:o,sizer:r}}})).filter(Boolean);n.forEach((function(e){var t=e.sizer,n=e.lines,i=e.lineHeights,r=e.oneLinerHeight;i[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var s=t.appendChild(document.createElement("span"));s.style.display="block",s.textContent=e}else i[n]=r}))})),n.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,i=0,r=0;r<n.length;r++)void 0===n[r]&&(n[r]=t.children[i++].getBoundingClientRect().height)})),n.forEach((function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach((function(e,t){n.children[t].style.height=e+"px"}))}))}}}()},449:function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}var r={classNames:{active:"gl-active",base:"gl-star-rating",selected:"gl-selected"},clearable:!0,maxStars:10,prebuilt:!1,stars:null,tooltip:"Select a Rating"},s=function(e,t,n){e.classList[t?"add":"remove"](n)},o=function(e){var t=document.createElement("span");for(var n in e=e||{})t.setAttribute(n,e[n]);return t},a=function(e,t,n){var i=o(n);return e.parentNode.insertBefore(i,t?e.nextSibling:e),i},l=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r={};return n.forEach((function(t){Object.keys(t||{}).forEach((function(i){if(void 0!==n[0][i]){var s=t[i];"Object"!==c(s)||"Object"!==c(r[i])?r[i]=s:r[i]=e(r[i],s)}}))})),r},c=function(e){return{}.toString.call(e).slice(8,-1)},u=function(){function e(n,i){var r,s;t(this,e),this.direction=window.getComputedStyle(n,null).getPropertyValue("direction"),this.el=n,this.events={change:this.onChange.bind(this),keydown:this.onKeyDown.bind(this),mousedown:this.onPointerDown.bind(this),mouseleave:this.onPointerLeave.bind(this),mousemove:this.onPointerMove.bind(this),reset:this.onReset.bind(this),touchend:this.onPointerDown.bind(this),touchmove:this.onPointerMove.bind(this)},this.indexActive=null,this.indexSelected=null,this.props=i,this.tick=null,this.ticking=!1,this.values=function(e){var t=[];return[].forEach.call(e.options,(function(e){var n=parseInt(e.value,10)||0;n>0&&t.push({index:e.index,text:e.text,value:n})})),t.sort((function(e,t){return e.value-t.value}))}(n),this.widgetEl=null,this.el.widget&&this.el.widget.destroy(),r=this.values.length,s=this.props.maxStars,/^\d+$/.test(r)&&1<=r&&r<=s?this.build():this.destroy()}return i(e,[{key:"build",value:function(){this.destroy(),this.buildWidget(),this.selectValue(this.indexSelected=this.selected(),!1),this.handleEvents("add"),this.el.widget=this}},{key:"buildWidget",value:function(){var e,t,n=this;this.props.prebuilt?(e=this.el.parentNode,t=e.querySelector("."+this.props.classNames.base+"--stars")):((e=a(this.el,!1,{class:this.props.classNames.base})).appendChild(this.el),t=a(this.el,!0,{class:this.props.classNames.base+"--stars"}),this.values.forEach((function(e,i){var r=o({"data-index":i,"data-value":e.value});"function"==typeof n.props.stars&&n.props.stars.call(n,r,e,i),[].forEach.call(r.children,(function(e){return e.style.pointerEvents="none"})),t.innerHTML+=r.outerHTML}))),e.dataset.starRating="",e.classList.add(this.props.classNames.base+"--"+this.direction),this.props.tooltip&&t.setAttribute("role","tooltip"),this.widgetEl=t}},{key:"changeIndexTo",value:function(e,t){var n=this;if(this.indexActive!==e||t){if([].forEach.call(this.widgetEl.children,(function(t,i){s(t,i<=e,n.props.classNames.active),s(t,i===n.indexSelected,n.props.classNames.selected)})),this.widgetEl.setAttribute("data-rating",e+1),"function"==typeof this.props.stars||this.props.prebuilt||(this.widgetEl.classList.remove("s"+10*(this.indexActive+1)),this.widgetEl.classList.add("s"+10*(e+1))),this.props.tooltip){var i,r=e<0?this.props.tooltip:null===(i=this.values[e])||void 0===i?void 0:i.text;this.widgetEl.setAttribute("aria-label",r)}this.indexActive=e}this.ticking=!1}},{key:"destroy",value:function(){this.indexActive=null,this.indexSelected=this.selected();var e=this.el.parentNode;e.classList.contains(this.props.classNames.base)&&(this.props.prebuilt?(this.widgetEl=e.querySelector("."+this.props.classNames.base+"--stars"),e.classList.remove(this.props.classNames.base+"--"+this.direction),delete e.dataset.starRating):e.parentNode.replaceChild(this.el,e),this.handleEvents("remove")),delete this.el.widget}},{key:"eventListener",value:function(e,t,n,i){var r=this;n.forEach((function(n){return e[t+"EventListener"](n,r.events[n],i||!1)}))}},{key:"handleEvents",value:function(e){var t=this.el.closest("form");t&&"FORM"===t.tagName&&this.eventListener(t,e,["reset"]),this.eventListener(this.el,e,["change"]),"add"===e&&this.el.disabled||(this.eventListener(this.el,e,["keydown"]),this.eventListener(this.widgetEl,e,["mousedown","mouseleave","mousemove","touchend","touchmove"],!1))}},{key:"indexFromEvent",value:function(e){var t,n,i=(null===(t=e.touches)||void 0===t?void 0:t[0])||(null===(n=e.changedTouches)||void 0===n?void 0:n[0])||e,r=document.elementFromPoint(i.clientX,i.clientY);return[].slice.call(r.parentNode.children).indexOf(r)}},{key:"onChange",value:function(){this.changeIndexTo(this.selected(),!0)}},{key:"onKeyDown",value:function(e){var t=e.key.slice(5);if(~["Left","Right"].indexOf(t)){var n="Left"===t?-1:1;"rtl"===this.direction&&(n*=-1);var i=this.values.length-1,r=Math.min(Math.max(this.selected()+n,-1),i);this.selectValue(r,!0)}}},{key:"onPointerDown",value:function(e){e.preventDefault();var t=this.indexFromEvent(e);this.props.clearable&&t===this.indexSelected&&(t=-1),this.selectValue(t,!0)}},{key:"onPointerLeave",value:function(e){var t=this;e.preventDefault(),cancelAnimationFrame(this.tick),requestAnimationFrame((function(){return t.changeIndexTo(t.indexSelected)}))}},{key:"onPointerMove",value:function(e){var t=this;e.preventDefault(),this.ticking||(this.tick=requestAnimationFrame((function(){return t.changeIndexTo(t.indexFromEvent(e))})),this.ticking=!0)}},{key:"onReset",value:function(){var e,t=this.valueIndex(null===(e=this.el.querySelector("[selected]"))||void 0===e?void 0:e.value);this.selectValue(t||-1,!1)}},{key:"selected",value:function(){return this.valueIndex(this.el.value)}},{key:"selectValue",value:function(e,t){var n;this.el.value=(null===(n=this.values[e])||void 0===n?void 0:n.value)||"",this.indexSelected=this.selected(),!1===t?this.changeIndexTo(this.selected(),!0):this.el.dispatchEvent(new Event("change"))}},{key:"valueIndex",value:function(e){return this.values.findIndex((function(t){return t.value===+e}))}}]),e}(),d=function(){function e(n,i){t(this,e),this.destroy=this.destroy.bind(this),this.props=i,this.rebuild=this.rebuild.bind(this),this.selector=n,this.widgets=[],this.build()}return i(e,[{key:"build",value:function(){var e=this;this.queryElements(this.selector).forEach((function(t){var n=l(r,e.props,JSON.parse(t.getAttribute("data-options")));"SELECT"!==t.tagName||t.widget||(!n.prebuilt&&t.parentNode.classList.contains(n.classNames.base)&&e.unwrap(t),e.widgets.push(new u(t,n)))}))}},{key:"destroy",value:function(){this.widgets.forEach((function(e){return e.destroy()})),this.widgets=[]}},{key:"queryElements",value:function(e){return"HTMLSelectElement"===c(e)?[e]:"NodeList"===c(e)?[].slice.call(e):"String"===c(e)?[].slice.call(document.querySelectorAll(e)):[]}},{key:"rebuild",value:function(){this.destroy(),this.build()}},{key:"unwrap",value:function(e){var t=e.parentNode,n=t.parentNode;n.insertBefore(e,t),n.removeChild(t)}}]),e}();e.exports=d}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,i),s.exports}i.m=t,e=[],i.O=function(t,n,r,s){if(!n){var o=1/0;for(u=0;u<e.length;u++){n=e[u][0],r=e[u][1],s=e[u][2];for(var a=!0,l=0;l<n.length;l++)(!1&s||o>=s)&&Object.keys(i.O).every((function(e){return i.O[e](n[l])}))?n.splice(l--,1):(a=!1,s<o&&(o=s));if(a){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[n,r,s]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={995:0,884:0,320:0,974:0,570:0,184:0,979:0,444:0,224:0,384:0,81:0,877:0,691:0,931:0,192:0,77:0,753:0,540:0,69:0,16:0,831:0,181:0,337:0,193:0,994:0,232:0,896:0,737:0,612:0,554:0,483:0,49:0,985:0};i.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,s,o=n[0],a=n[1],l=n[2],c=0;if(o.some((function(t){return 0!==e[t]}))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(l)var u=l(i)}for(t&&t(n);c<o.length;c++)s=o[c],i.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return i.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(633)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(406)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(829)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(273)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(518)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(963)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(113)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(30)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(966)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(83)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(649)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(408)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(529)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(275)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(872)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(865)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(774)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(625)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(193)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(644)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(651)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(344)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(753)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(189)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(832)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(345)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(974)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(511)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(894)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(474)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(688)})),i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(522)}));var r=i.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return i(167)}));r=i.O(r)}();
1
  /*! For license information please see site-reviews-admin.js.LICENSE.txt */
2
+ !function(){var e={433:function(){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},325:function(e,t,n){var i=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},s={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof r?new r(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var i,r;switch(n=n||{},s.util.type(t)){case"Object":if(r=s.util.objId(t),n[r])return n[r];for(var o in i={},n[r]=i,t)t.hasOwnProperty(o)&&(i[o]=e(t[o],n));return i;case"Array":return r=s.util.objId(t),n[r]?n[r]:(i=[],n[r]=i,t.forEach((function(t,s){i[s]=e(t,n)})),i);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var i="no-"+t;e;){var s=e.classList;if(s.contains(t))return!0;if(s.contains(i))return!1;e=e.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,t){var n=s.util.clone(s.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var r=(i=i||s.languages)[e],o={};for(var a in r)if(r.hasOwnProperty(a)){if(a==t)for(var l in n)n.hasOwnProperty(l)&&(o[l]=n[l]);n.hasOwnProperty(a)||(o[a]=r[a])}var c=i[e];return i[e]=o,s.languages.DFS(s.languages,(function(t,n){n===c&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,i,r){r=r||{};var o=s.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],i||a);var l=t[a],c=s.util.type(l);"Object"!==c||r[o(l)]?"Array"!==c||r[o(l)]||(r[o(l)]=!0,e(l,n,a,r)):(r[o(l)]=!0,e(l,n,null,r))}}},plugins:{},highlightAll:function(e,t){s.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var i={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),s.hooks.run("before-all-elements-highlight",i);for(var r,o=0;r=i.elements[o++];)s.highlightElement(r,!0===t,i.callback)},highlightElement:function(t,n,i){var r=s.util.getLanguage(t),o=s.languages[r];s.util.setLanguage(t,r);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&s.util.setLanguage(a,r);var l={element:t,language:r,grammar:o,code:t.textContent};function c(e){l.highlightedCode=e,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),i&&i.call(l.element)}if(s.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return s.hooks.run("complete",l),void(i&&i.call(l.element));if(s.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(s.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(s.highlight(l.code,l.grammar,l.language));else c(s.util.encode(l.code))},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(s.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=s.tokenize(i.code,i.grammar),s.hooks.run("after-tokenize",i),r.stringify(s.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var i in n)t[i]=n[i];delete t.rest}var s=new l;return c(s,s.head,e),a(e,s,t,s.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(s)},hooks:{all:{},add:function(e,t){var n=s.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=s.hooks.all[e];if(n&&n.length)for(var i,r=0;i=n[r++];)i(t)}},Token:r};function r(e,t,n,i){this.type=e,this.content=t,this.alias=n,this.length=0|(i||"").length}function o(e,t,n,i){e.lastIndex=t;var s=e.exec(n);if(s&&i&&s[1]){var r=s[1].length;s.index+=r,s[0]=s[0].slice(r)}return s}function a(e,t,n,i,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var h=n[p];h=Array.isArray(h)?h:[h];for(var f=0;f<h.length;++f){if(d&&d.cause==p+","+f)return;var g=h[f],v=g.inside,m=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var _=g.pattern||g,x=i.next,k=l;x!==t.tail&&!(d&&k>=d.reach);k+=x.value.length,x=x.next){var E=x.value;if(t.length>e.length)return;if(!(E instanceof r)){var S,j=1;if(y){if(!(S=o(_,k,e,m))||S.index>=e.length)break;var C=S.index,A=S.index+S[0].length,L=k;for(L+=x.value.length;C>=L;)L+=(x=x.next).value.length;if(k=L-=x.value.length,x.value instanceof r)continue;for(var T=x;T!==t.tail&&(L<A||"string"==typeof T.value);T=T.next)j++,L+=T.value.length;j--,E=e.slice(k,L),S.index-=k}else if(!(S=o(_,0,E,m)))continue;C=S.index;var O=S[0],R=E.slice(0,C),P=E.slice(C+O.length),F=k+E.length;d&&F>d.reach&&(d.reach=F);var Q=x.prev;if(R&&(Q=c(t,Q,R),k+=R.length),u(t,Q,j),x=c(t,Q,new r(p,v?s.tokenize(O,v):O,b,O)),P&&c(t,x,P),j>1){var D={cause:p+","+f,reach:F};a(e,t,n,x.prev,k,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var i=t.next,s={value:n,prev:t,next:i};return t.next=s,i.prev=s,e.length++,s}function u(e,t,n){for(var i=t.next,s=0;s<n&&i!==e.tail;s++)i=i.next;t.next=i,i.prev=t,e.length-=s}if(e.Prism=s,r.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach((function(t){i+=e(t,n)})),i}var r={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(r.classes,o):r.classes.push(o)),s.hooks.run("wrap",r);var a="";for(var l in r.attributes)a+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+a+">"+r.content+"</"+r.tag+">"},!e.document)return e.addEventListener?(s.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),i=n.language,r=n.code,o=n.immediateClose;e.postMessage(s.highlight(r,s.languages[i],i)),o&&e.close()}),!1),s):s;var d=s.util.currentScript();function p(){s.manual||s.highlightAll()}if(d&&(s.filename=d.src,d.hasAttribute("data-manual")&&(s.manual=!0)),!s.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return s}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=i),void 0!==n.g&&(n.g.Prism=i)},251:function(){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},980:function(){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},854:function(){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,i,s,r){if(n.language===i){var o=n.tokenStack=[];n.code=n.code.replace(s,(function(e){if("function"==typeof r&&!r(e))return e;for(var s,a=o.length;-1!==n.code.indexOf(s=t(i,a));)++a;return o[a]=e,s})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,i){if(n.language===i&&n.tokenStack){n.grammar=e.languages[i];var s=0,r=Object.keys(n.tokenStack);!function o(a){for(var l=0;l<a.length&&!(s>=r.length);l++){var c=a[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=r[s],d=n.tokenStack[u],p="string"==typeof c?c:c.content,h=t(i,u),f=p.indexOf(h);if(f>-1){++s;var g=p.substring(0,f),v=new e.Token(i,e.tokenize(d,n.grammar),"language-"+i,d),m=p.substring(f+h.length),y=[];g&&y.push.apply(y,o([g])),y.push(v),m&&y.push.apply(y,o([m])),"string"==typeof c?a.splice.apply(a,[l,1].concat(y)):c.content=y}}else c.content&&o(c.content)}return a}(n.tokens)}}}})}(Prism)},335:function(){Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},945:function(){!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,r=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:r};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},a=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:a,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:i,operator:s,punctuation:r}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},759:function(){!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var i=t.querySelector(".line-numbers-rows");if(i){var s=parseInt(t.getAttribute("data-start"),10)||1,r=s+(i.children.length-1);n<s&&(n=s),n>r&&(n=r);var o=n-s;return i.children[o]}}},resize:function(e){s([e])},assumeViewportIndependence:!0},i=void 0;window.addEventListener("resize",(function(){n.assumeViewportIndependence&&i===window.innerWidth||(i=window.innerWidth,s(Array.prototype.slice.call(document.querySelectorAll("pre.line-numbers"))))})),Prism.hooks.add("complete",(function(n){if(n.code){var i=n.element,r=i.parentNode;if(r&&/pre/i.test(r.nodeName)&&!i.querySelector(".line-numbers-rows")&&Prism.util.isActive(i,e)){i.classList.remove(e),r.classList.add(e);var o,a=n.code.match(t),l=a?a.length+1:1,c=new Array(l+1).join("<span></span>");(o=document.createElement("span")).setAttribute("aria-hidden","true"),o.className="line-numbers-rows",o.innerHTML=c,r.hasAttribute("data-start")&&(r.style.counterReset="linenumber "+(parseInt(r.getAttribute("data-start"),10)-1)),n.element.appendChild(o),s([r]),Prism.hooks.run("line-numbers",n)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}function s(e){if(0!=(e=e.filter((function(e){var t=function(e){if(!e)return null;return window.getComputedStyle?getComputedStyle(e):e.currentStyle||null}(e)["white-space"];return"pre-wrap"===t||"pre-line"===t}))).length){var n=e.map((function(e){var n=e.querySelector("code"),i=e.querySelector(".line-numbers-rows");if(n&&i){var s=e.querySelector(".line-numbers-sizer"),r=n.textContent.split(t);s||((s=document.createElement("span")).className="line-numbers-sizer",n.appendChild(s)),s.innerHTML="0",s.style.display="block";var o=s.getBoundingClientRect().height;return s.innerHTML="",{element:e,lines:r,lineHeights:[],oneLinerHeight:o,sizer:s}}})).filter(Boolean);n.forEach((function(e){var t=e.sizer,n=e.lines,i=e.lineHeights,s=e.oneLinerHeight;i[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var r=t.appendChild(document.createElement("span"));r.style.display="block",r.textContent=e}else i[n]=s}))})),n.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,i=0,s=0;s<n.length;s++)void 0===n[s]&&(n[s]=t.children[i++].getBoundingClientRect().height)})),n.forEach((function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach((function(e,t){n.children[t].style.height=e+"px"}))}))}}}()},449:function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}var s={classNames:{active:"gl-active",base:"gl-star-rating",selected:"gl-selected"},clearable:!0,maxStars:10,prebuilt:!1,stars:null,tooltip:"Select a Rating"},r=function(e,t,n){e.classList[t?"add":"remove"](n)},o=function(e){var t=document.createElement("span");for(var n in e=e||{})t.setAttribute(n,e[n]);return t},a=function(e,t,n){var i=o(n);return e.parentNode.insertBefore(i,t?e.nextSibling:e),i},l=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var s={};return n.forEach((function(t){Object.keys(t||{}).forEach((function(i){if(void 0!==n[0][i]){var r=t[i];"Object"!==c(r)||"Object"!==c(s[i])?s[i]=r:s[i]=e(s[i],r)}}))})),s},c=function(e){return{}.toString.call(e).slice(8,-1)},u=function(){function e(n,i){var s,r;t(this,e),this.direction=window.getComputedStyle(n,null).getPropertyValue("direction"),this.el=n,this.events={change:this.onChange.bind(this),keydown:this.onKeyDown.bind(this),mousedown:this.onPointerDown.bind(this),mouseleave:this.onPointerLeave.bind(this),mousemove:this.onPointerMove.bind(this),reset:this.onReset.bind(this),touchend:this.onPointerDown.bind(this),touchmove:this.onPointerMove.bind(this)},this.indexActive=null,this.indexSelected=null,this.props=i,this.tick=null,this.ticking=!1,this.values=function(e){var t=[];return[].forEach.call(e.options,(function(e){var n=parseInt(e.value,10)||0;n>0&&t.push({index:e.index,text:e.text,value:n})})),t.sort((function(e,t){return e.value-t.value}))}(n),this.widgetEl=null,this.el.widget&&this.el.widget.destroy(),s=this.values.length,r=this.props.maxStars,/^\d+$/.test(s)&&1<=s&&s<=r?this.build():this.destroy()}return i(e,[{key:"build",value:function(){this.destroy(),this.buildWidget(),this.selectValue(this.indexSelected=this.selected(),!1),this.handleEvents("add"),this.el.widget=this}},{key:"buildWidget",value:function(){var e,t,n=this;this.props.prebuilt?(e=this.el.parentNode,t=e.querySelector("."+this.props.classNames.base+"--stars")):((e=a(this.el,!1,{class:this.props.classNames.base})).appendChild(this.el),t=a(this.el,!0,{class:this.props.classNames.base+"--stars"}),this.values.forEach((function(e,i){var s=o({"data-index":i,"data-value":e.value});"function"==typeof n.props.stars&&n.props.stars.call(n,s,e,i),[].forEach.call(s.children,(function(e){return e.style.pointerEvents="none"})),t.innerHTML+=s.outerHTML}))),e.dataset.starRating="",e.classList.add(this.props.classNames.base+"--"+this.direction),this.props.tooltip&&t.setAttribute("role","tooltip"),this.widgetEl=t}},{key:"changeIndexTo",value:function(e,t){var n=this;if(this.indexActive!==e||t){if([].forEach.call(this.widgetEl.children,(function(t,i){r(t,i<=e,n.props.classNames.active),r(t,i===n.indexSelected,n.props.classNames.selected)})),this.widgetEl.setAttribute("data-rating",e+1),"function"==typeof this.props.stars||this.props.prebuilt||(this.widgetEl.classList.remove("s"+10*(this.indexActive+1)),this.widgetEl.classList.add("s"+10*(e+1))),this.props.tooltip){var i,s=e<0?this.props.tooltip:null===(i=this.values[e])||void 0===i?void 0:i.text;this.widgetEl.setAttribute("aria-label",s)}this.indexActive=e}this.ticking=!1}},{key:"destroy",value:function(){this.indexActive=null,this.indexSelected=this.selected();var e=this.el.parentNode;e.classList.contains(this.props.classNames.base)&&(this.props.prebuilt?(this.widgetEl=e.querySelector("."+this.props.classNames.base+"--stars"),e.classList.remove(this.props.classNames.base+"--"+this.direction),delete e.dataset.starRating):e.parentNode.replaceChild(this.el,e),this.handleEvents("remove")),delete this.el.widget}},{key:"eventListener",value:function(e,t,n,i){var s=this;n.forEach((function(n){return e[t+"EventListener"](n,s.events[n],i||!1)}))}},{key:"handleEvents",value:function(e){var t=this.el.closest("form");t&&"FORM"===t.tagName&&this.eventListener(t,e,["reset"]),this.eventListener(this.el,e,["change"]),"add"===e&&this.el.disabled||(this.eventListener(this.el,e,["keydown"]),this.eventListener(this.widgetEl,e,["mousedown","mouseleave","mousemove","touchend","touchmove"],!1))}},{key:"indexFromEvent",value:function(e){var t,n,i=(null===(t=e.touches)||void 0===t?void 0:t[0])||(null===(n=e.changedTouches)||void 0===n?void 0:n[0])||e,s=document.elementFromPoint(i.clientX,i.clientY);return[].slice.call(s.parentNode.children).indexOf(s)}},{key:"onChange",value:function(){this.changeIndexTo(this.selected(),!0)}},{key:"onKeyDown",value:function(e){var t=e.key.slice(5);if(~["Left","Right"].indexOf(t)){var n="Left"===t?-1:1;"rtl"===this.direction&&(n*=-1);var i=this.values.length-1,s=Math.min(Math.max(this.selected()+n,-1),i);this.selectValue(s,!0)}}},{key:"onPointerDown",value:function(e){e.preventDefault();var t=this.indexFromEvent(e);this.props.clearable&&t===this.indexSelected&&(t=-1),this.selectValue(t,!0)}},{key:"onPointerLeave",value:function(e){var t=this;e.preventDefault(),cancelAnimationFrame(this.tick),requestAnimationFrame((function(){return t.changeIndexTo(t.indexSelected)}))}},{key:"onPointerMove",value:function(e){var t=this;e.preventDefault(),this.ticking||(this.tick=requestAnimationFrame((function(){return t.changeIndexTo(t.indexFromEvent(e))})),this.ticking=!0)}},{key:"onReset",value:function(){var e,t=this.valueIndex(null===(e=this.el.querySelector("[selected]"))||void 0===e?void 0:e.value);this.selectValue(t||-1,!1)}},{key:"selected",value:function(){return this.valueIndex(this.el.value)}},{key:"selectValue",value:function(e,t){var n;this.el.value=(null===(n=this.values[e])||void 0===n?void 0:n.value)||"",this.indexSelected=this.selected(),!1===t?this.changeIndexTo(this.selected(),!0):this.el.dispatchEvent(new Event("change"))}},{key:"valueIndex",value:function(e){return this.values.findIndex((function(t){return t.value===+e}))}}]),e}(),d=function(){function e(n,i){t(this,e),this.destroy=this.destroy.bind(this),this.props=i,this.rebuild=this.rebuild.bind(this),this.selector=n,this.widgets=[],this.build()}return i(e,[{key:"build",value:function(){var e=this;this.queryElements(this.selector).forEach((function(t){var n=l(s,e.props,JSON.parse(t.getAttribute("data-options")));"SELECT"!==t.tagName||t.widget||(!n.prebuilt&&t.parentNode.classList.contains(n.classNames.base)&&e.unwrap(t),e.widgets.push(new u(t,n)))}))}},{key:"destroy",value:function(){this.widgets.forEach((function(e){return e.destroy()})),this.widgets=[]}},{key:"queryElements",value:function(e){return"HTMLSelectElement"===c(e)?[e]:"NodeList"===c(e)?[].slice.call(e):"String"===c(e)?[].slice.call(document.querySelectorAll(e)):[]}},{key:"rebuild",value:function(){this.destroy(),this.build()}},{key:"unwrap",value:function(e){var t=e.parentNode,n=t.parentNode;n.insertBefore(e,t),n.removeChild(t)}}]),e}();e.exports=d}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=function(e){return this.data={},this.form=jQuery(e),this.pushes={},this.init()};e.prototype={patterns:{validate:/^[a-z_-][a-z0-9_-]*(?:\[(?:\d*|[a-z0-9_-]+)\])*$/i,key:/[a-z0-9_-]+|(?=\[\])/gi,named:/^[a-z0-9_-]+$/i,push:/^$/,fixed:/^\d+$/},addPair:function(e){this.patterns.validate.test(e.name)&&(this.data=jQuery.extend(!0,this.data,this.makeObject(e.name,this.encode(e))))},build:function(e,t,n){return e[t]=n,e},encode:function(e){return"checkbox"===jQuery('[name="'+e.name+'"]',this.form).attr("type")&&"on"===e.value||e.value},incrementPush:function(e){return void 0===this.pushes[e]&&(this.pushes[e]=0),this.pushes[e]++},init:function(){var e=this.form.serializeArray();if(jQuery.isArray(e))for(var t=0,n=e.length;t<n;t++)this.addPair(e[t]);return this.data},makeObject:function(e,t){for(var n,i=e.match(this.patterns.key);void 0!==(n=i.pop());)if(this.patterns.push.test(n)){var s=this.incrementPush(e.replace(/\[\]$/,""));t=this.build([],s,t)}else this.patterns.fixed.test(n)?t=this.build([],n,t):this.patterns.named.test(n)&&(t=this.build({},n,t));return t}};var t=e,i=function(e,t,n){this.event=t||null,this.form=n||null,this.notice=null,this.request=e||{}};i.prototype={post:function(e){this.event?this.postFromEvent_(e):this.doPost_(e)},buildData_:function(e){var n={action:GLSR.action,_ajax_request:!0};if(this.form){var i=new t(this.form);i[GLSR.nameprefix]&&(this.request=i[GLSR.nameprefix])}return this.buildNonce_(e),n[GLSR.nameprefix]=this.request,n},buildNonce_:function(e){this.request._nonce||(GLSR.nonce[this.request._action]?this.request._nonce=GLSR.nonce[this.request._action]:e&&(this.request._nonce=e.closest("form").find("#_wpnonce").val()))},doPost_:function(e,t){jQuery.post(GLSR.ajaxurl,this.buildData_(t)).done((function(n){"function"==typeof e&&e(n.data,n.success),t&&t.prop("disabled",!1)})).always((function(e){e.data?e.data.notices&&GLSR.notices.add(e.data.notices):GLSR.notices.error("Unknown error.")}))},postFromEvent_:function(e){this.event.preventDefault();var t=jQuery(this.event.currentTarget);t.is(":disabled")||(t.prop("disabled",!0),this.doPost_(e,t))}};var s,r,o=i,a="function"==typeof Map?new Map:(s=[],r=[],{has:function(e){return s.indexOf(e)>-1},get:function(e){return r[s.indexOf(e)]},set:function(e,t){-1===s.indexOf(e)&&(s.push(e),r.push(t))},delete:function(e){var t=s.indexOf(e);t>-1&&(s.splice(t,1),r.splice(t,1))}}),l=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(s){l=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){var t=a.get(e);t&&t.destroy()}function u(e){var t=a.get(e);t&&t.update()}var d=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((d=function(e){return e}).destroy=function(e){return e},d.update=function(e){return e}):((d=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!a.has(e)){var t,n=null,i=null,s=null,r=function(){e.clientWidth!==i&&d()},o=function(t){window.removeEventListener("resize",r,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",o,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),a.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",r,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",a.set(e,{destroy:o,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function c(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),s=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",i=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),s&&(document.documentElement.scrollTop=s)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i<t?"hidden"===n.overflowY&&(c("scroll"),u(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),u(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),s!==i){s=i;var r=l("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],c),e},d.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],u),e});var p=d;function h(e){return h="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},h(e)}var f=function(){"object"===h(jQuery.wp)&&"function"==typeof jQuery.wp.wpColorPicker&&jQuery(document).find("input[type=text].color-picker-hex").each((function(){var e=jQuery(this),t=jQuery.extend({},e.data("colorpicker")||{},{change:function(e,t){jQuery(e.target).val(t.color.toString()).trigger("change")},mode:"hsl",palettes:!1,width:180});e.wpColorPicker(t)}))},g={},v=function(e,t){var n=g[e]||[],i=[];t&&[].forEach.call(n,(function(e){t!==e.fn&&t!==e.fn.once&&i.push(e)})),i.length?g[e]=i:delete g[e]},m=function(e,t,n){(g[e]||(g[e]=[])).push({fn:t,context:n})},y={events:g,off:v,on:m,once:function(e,t,n){var i=arguments,s=function s(){v(e,s),t.apply(n,i)};s.once=t,m(e,s,n)},trigger:function(e){var t=[].slice.call(arguments,1),n=(g[e]||[]).slice();[].forEach.call(n,(function(e){return e.fn.apply(e.context,t)}))}};function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var w=function(e,t,n){return e.attr("aria-".concat(t),n?"true":"false")},x={classes:{active:"is-active",selected:"is-selected"},onInit:null,onDestroy:null,onSelect:null,selectors:{results:".glsr-filter__results",search:".glsr-filter__search",selected:".glsr-filter__selected",value:".glsr-filter__value"}},k=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=jQuery(t),this.options=jQuery.extend(!0,x,n||{}),this.resultsEl=this.el.find(this.options.selectors.results),this.selectedEl=this.el.find(this.options.selectors.selected),this.searchEl=this.el.find(this.options.selectors.search),this.valueEl=this.el.find(this.options.selectors.value),this.el.length&&this.searchEl.length&&this.selectedEl.length&&this.valueEl.length&&this.resultsEl.length&&(this.action=this.el.data("action"),this.events={document:{mousedown:this.onDocumentClick.bind(this)},search:{blur:_.debounce(this.onSearchBlur.bind(this),10),input:_.debounce(this.onSearchInput.bind(this),200),keydown:this.onSearchKeydown.bind(this)},selected:{keydown:this.onSelectedKeydown.bind(this),mousedown:this.onSelectedClick.bind(this)}},this.init())}var t,n,i;return t=e,n=[{key:"defaults",value:function(){return _.sortBy(_.map(GLSR.filters[this.valueEl.attr("name")],(function(e,t){return{id:t,name:e}})),"name")}},{key:"init",value:function(){this.eventHandler("on"),this.data=[],"function"==typeof this.options.onInit&&this.options.onInit.call(this)}},{key:"destroy",value:function(){this.eventHandler("off"),this.data=[],"function"==typeof this.options.onDestroy&&this.options.onDestroy.call(this)}},{key:"eventHandler",value:function(e){this.eventListener(document,e,this.events.document),this.eventListener(this.searchEl,e,this.events.search),this.eventListener(this.selectedEl,e,this.events.selected)}},{key:"eventListener",value:function(e,t,n){_.each(n,(function(n,i){return jQuery(e)[t](i,n)}))}},{key:"onDocumentClick",value:function(e){var t=this;jQuery(e.target).find(this.el).length&&(this.requestAbort(),this.el.hasClass(this.options.classes.active)&&(this.resultsHide(),_.debounce((function(){return t.selectedEl.focus()}),10)()))}},{key:"onSearchBlur",value:function(){this.el.find(document.activeElement).length||this.resultsHide()}},{key:"onSearchInput",value:function(){var e=this;this.requestAbort(),""!==this.searchEl.val()?(this.resultsEl.html(this.templateSearching()),this.xhr=this.request().done((function(t){e.data=t.items,e.resultsShow()}))):this.resultsShow()}},{key:"onSearchKeydown",value:function(e){var t=this;if(GLSR.keys.ENTER===e.which){e.preventDefault();var n=this.resultsEl.find(".".concat(this.options.classes.selected));n&&n.trigger("mousedown")}else GLSR.keys.ESC===e.which?(this.resultsHide(),_.debounce((function(){return t.selectedEl.focus()}),10)()):GLSR.keys.DOWN===e.which?this.resultsNavigate(1):GLSR.keys.UP===e.which?this.resultsNavigate(-1):GLSR.keys.TAB===e.which&&e.preventDefault()}},{key:"onSelect",value:function(e){var t=this;"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,e);var n=jQuery(e.currentTarget),i=n.data("id");this.selectedEl.attr("title",~["","0",0].indexOf(i)?n.data("name"):"ID: "+i),this.selectedEl.text(n.data("name")),this.valueEl.val(i),this.resultsHide(),_.debounce((function(){return t.selectedEl.focus()}),10)()}},{key:"onSelectedClick",value:function(){this.resultsShow()}},{key:"onSelectedKeydown",value:function(e){~[GLSR.keys.DOWN,GLSR.keys.SPACE,GLSR.keys.UP].indexOf(e.which)?(e.preventDefault(),this.resultsShow()):GLSR.keys.ESC===e.which&&this.selectedEl.blur()}},{key:"request",value:function(){var e=this,t={};return t[GLSR.nameprefix]={_action:this.action,_nonce:GLSR.nonce[this.action],exclude:this.options.exclude,search:this.searchEl.val()},wp.ajax.post(GLSR.action,t).always((function(){return delete e.xhr}))}},{key:"requestAbort",value:function(){void 0!==this.xhr&&this.xhr.abort()}},{key:"results",value:function(){var e=jQuery.merge(this.defaults(),this.data),t=this.valueEl.val(),n=this.selectedEl.text();return-1===_.findIndex(e,{id:t})&&-1===_.findIndex(e,{name:n})?jQuery.merge(e,[{id:t,name:n}]):e}},{key:"resultsHide",value:function(){this.requestAbort(),this.el.removeClass(this.options.classes.active),this.searchEl.val(""),this.selected=-1,w(this.el,"expanded",0),w(this.resultsEl,"expanded",0),w(this.resultsEl,"hidden",1)}},{key:"resultsNavigate",value:function(e){this.selected+=e;var t=this.resultsEl.children();if(t.attr("aria-selected","false").removeClass(this.options.classes.selected),this.selected<0&&(this.selected=-1),this.selected>=t.length&&(this.selected=t.length-1),this.selected>=0){var n=t.eq(this.selected);n.addClass(this.options.classes.selected),w(n,"selected",1),this.resultsScrollIntoView()}}},{key:"resultsScrollIntoView",value:function(){var e=this.resultsEl.children().eq(this.selected)[0].getBoundingClientRect(),t=this.resultsEl[0].getBoundingClientRect(),n=e.top<t.top,i=e.bottom>t.top+t.height,s=this.resultsEl.scrollTop();if(n){var r=t.top-e.top;this.resultsEl.scrollTop(s-r)}else if(i){var o=e.bottom-(t.top+t.height);this.resultsEl.scrollTop(s+o)}}},{key:"resultsShow",value:function(){var e=this;this.resultsEl.empty(),this.selected=-1,_.each(this.results(),(function(t){return e.resultsEl.append(e.templateResult(t))})),this.resultsEl.children().on("mousedown",this.onSelect.bind(this)),this.el.addClass(this.options.classes.active),w(this.el,"expanded",1),w(this.resultsEl,"expanded",1),w(this.resultsEl,"hidden",0),_.debounce((function(){e.resultsEl.scrollTop(0),e.searchEl.focus()}),10)()}},{key:"templateResult",value:function(e){var t=_.template('<span aria-selected="false" data-id="<%= id %>" data-name="<%= name %>" title="<% if (!~["","0",0].indexOf(id)) { %>ID: <%= id %><% } else { %><%= name %><% } %>"><span><%= name %></span></span>');return jQuery(t(e))}},{key:"templateSearching",value:function(){var e=_.template('<span data-searching><span><%= text %></span><span class="spinner"></span></span>');return jQuery(e({text:GLSR.text.searching}))}}],n&&b(t.prototype,n),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),E=k,S=function(){this.request=null,jQuery(".enable-filter-tog","#adv-settings").on("click",this.onClick_.bind(this))};S.prototype={enabled_:function(){return jQuery(".enable-filter-tog:checked").map((function(e,t){return t.value})).get()},onClick_:function(e){var t=jQuery(e.currentTarget),n=t.prop("checked")?"removeClass":"addClass";jQuery("#glsr-filter-by-"+t.val())[n]("hidden"),jQuery("#glsr-filter-by-"+t.val())[n]("is-hidden"),this.saveState_()},saveState_:_.debounce((function(){this.request&&this.request.abort();var e={_ajax_request:!0};e[GLSR.nameprefix]={_action:"toggle-filters",_nonce:GLSR.nonce["toggle-filters"],enabled:this.enabled_()},this.request=wp.ajax.post(GLSR.action,e),this.request.always(function(){this.request=null}.bind(this))}),500)};var j=S,C=function(e){this.el=document.querySelector(e),this.el&&(this.depends=this.el.querySelectorAll("[data-depends]"),this.depends.length&&this.init_())};C.prototype={getDependsData_:function(e){var t=e.getAttribute("data-depends");if(t)try{return JSON.parse(t)}catch(e){return console.error(e)}},init_:function(){for(var e=this.el.elements,t=0;t<e.length;t++)~["INPUT","SELECT"].indexOf(e[t].nodeName)&&e[t].addEventListener("change",this.onChange_.bind(this))},isFieldSelected_:function(e,t){var n=!1;t=[].concat(t);var i=this.el.querySelectorAll('[name="'+e+'"]');return[].map.call(i,function(e){var i=~this.normalizeValues_(t).indexOf(this.normalizeValue_(e.value));~["checkbox","radio"].indexOf(e.type)?e.checked&&i&&(n=!0):i&&(n=!0)}.bind(this)),n},normalizeValue_:function(e){return!!~["true","on","yes","1"].indexOf(e)||!~["false","off","no","0"].indexOf(e)&&e},normalizeValues_:function(e){return e.map(this.normalizeValue_)},onChange_:function(e){this.depends.forEach(function(t){var n=this.getDependsData_(t);if(n&&~n.map((function(e){return e.name})).indexOf(e.currentTarget.name)){var i=!0;n.forEach(function(e){this.isFieldSelected_(e.name,e.value)||(i=!1)}.bind(this)),this.toggleHiddenField_(t,i)}}.bind(this))},toggleHiddenField_:function(e,t){var n=e.closest(".glsr-setting-field");n&&n.classList[t?"remove":"add"]("hidden")}};var A=C,L=function(){jQuery(".glsr-metabox-field input[data-edit-review]").on("change",this.onToggleInput_.bind(this)),jQuery(".glsr-metabox-field input[type=url]").on("change",this.onChangeImage_.bind(this))};L.prototype={onChangeImage_:function(e){var t=jQuery(e.currentTarget);this.switchImage_(t.parent().find("img"),t.val())},onToggleInput_:function(e){var t=e.currentTarget.checked;jQuery(".glsr-input-value").each(function(e,n){if(t)jQuery(n).data("value",n.value);else{if(n.value=jQuery(n).data("value"),"url"!==n.type)return;this.switchImage_(jQuery(n).parent().find("img"),n.value)}}.bind(this)),jQuery(".glsr-input-value").prop("disabled",!t),GLSR.stars.rebuild()},switchImage_:function(e,t){if(e){var n=new Image;n.src=t,n.onerror=function(){e.attr("src",e.data("fallback"))},n.onload=function(){e.attr("src",n.src)}}}};var T=L,O=function(){this.init_()};O.prototype={add:function(e){e&&(jQuery("#glsr-notices").length||(jQuery("#message.notice").remove(),jQuery("hr.wp-header-end").after('<div id="glsr-notices" />')),jQuery("#glsr-notices").html(e),jQuery(document).trigger("wp-updates-notice-added"),jQuery("html").animate({scrollTop:0},500))},error:function(e){this.add('<div class="notice notice-error inline is-dismissible"><p>'+e+"</p></div>")},init_:function(){jQuery(".glsr-notice[data-dismiss]").on("click.wp-dismiss-notice",this.onClick_);var e=jQuery(".glsr-notice-top-of-page");if(e){var t=e.detach();jQuery("#wpbody-content").prepend(t),e.delay(1e3).slideDown()}},onClick_:function(e){var t=jQuery(this);if(t.hasClass("glsr-notice-top-of-page")){if(!jQuery(e.target).hasClass("notice-dismiss"))return;t.slideUp()}var n={};n[GLSR.nameprefix]={_action:"dismiss-notice",notice:jQuery(e.currentTarget).data("dismiss")},wp.ajax.post(GLSR.action,n)}};var R=O,P=function(){this.el=jQuery("#pinned-status-select"),this.el&&(this.cancel=jQuery("a.cancel-pinned-status"),this.cancel.on("click",this.onClickCancel_.bind(this)),this.edit=jQuery("a.edit-pinned-status"),this.edit.on("click",this.onClickEdit_.bind(this)),this.save=jQuery("a.save-pinned-status"),this.save.on("click",this.onClickSave_.bind(this))),jQuery("td.column-is_pinned i.pin-review").on("click",this.onClickToggle_.bind(this))};P.prototype={restoreEditLink_:function(){this.el.slideUp("fast"),this.edit.show().focus()},onClickCancel_:function(e){e.preventDefault(),this.restoreEditLink_(),this.el.find("select").val("0"===jQuery("#hidden-pinned-status").val()?1:0)},onClickEdit_:function(e){e.preventDefault(),this.el.is(":hidden")&&(this.el.slideDown("fast",function(){this.el.find("select").focus()}.bind(this)),this.edit.hide())},onClickSave_:function(e){e.preventDefault(),this.restoreEditLink_(),this.target=e.currentTarget;var t={_action:"toggle-pinned",id:jQuery("#post_ID").val(),pinned:jQuery("#pinned-status").val()};new o(t).post(this.save_.bind(this))},onClickToggle_:function(e){e.preventDefault(),this.target=e.currentTarget;var t={_action:"toggle-pinned",id:e.currentTarget.getAttribute("data-id"),pinned:-1};jQuery(this.target).addClass("spinner is-active").removeClass("dashicons-sticky"),new o(t).post(this.togglePinned_.bind(this))},save_:function(e){jQuery("#pinned-status").val(0|!e.pinned),jQuery("#hidden-pinned-status").val(0|e.pinned),jQuery("#pinned-status-text").text(e.pinned?this.target.dataset.yes:this.target.dataset.no),GLSR.notices.add(e.notices)},togglePinned_:function(e){this.target.classList[e.pinned?"add":"remove"]("pinned"),jQuery(this.target).removeClass("spinner is-active").addClass("dashicons-sticky")}};var F=P,Q=function(){jQuery.each(GLSR.pointers,function(e,t){this.init_(t)}.bind(this))};Q.prototype={close_:function(e){jQuery.post(GLSR.ajaxurl,{action:"dismiss-wp-pointer",pointer:e})},init_:function(e){jQuery(e.target).pointer({content:e.options.content,position:e.options.position,close:this.close_.bind(null,e.id)}).pointer("open").pointer("sendToTop"),jQuery(document).on("wp-window-resized",(function(){jQuery(e.target).pointer("reposition")}))}};var D=Q,z=n(325),q=n.n(z),I=(n(433),n(335),n(980),n(854),n(945),n(251),n(759),function(e,t){this.el=jQuery(e),this.options=t,this.searchTerm=null,this.init_()});I.prototype={defaults:{action:null,exclude:[],onInit:null,onResultClick:null,results:{},selected:-1,selectedClass:"glsr-selected-result",selectorEntries:".glsr-strings-table tbody",selectorResults:".glsr-search-results",selectorSearch:".glsr-search-input"},init_:function(){this.options=jQuery.extend({},this.defaults,this.options),this.el.length&&(this.options.entriesEl=this.el.parent().find(this.options.selectorEntries),this.options.resultsEl=this.el.find(this.options.selectorResults),this.options.searchEl=this.el.find(this.options.selectorSearch),this.options.searchEl.attr("aria-describedby","live-search-desc"),"function"==typeof this.options.onInit&&this.options.onInit.call(this),this.initEvents_())},initEvents_:function(){this.options.searchEl.on("input",_.debounce(this.onSearchInput_.bind(this),500)),this.options.searchEl.on("keyup",this.onSearchKeyup_.bind(this)),this.options.searchEl.on("keydown keypress",(function(e){GLSR.keys.ENTER===e.which&&e.preventDefault()})),jQuery(document).on("click",this.onDocumentClick_.bind(this)),jQuery(document).on("keydown",this.onDocumentKeydown_.bind(this))},abort_:function(){void 0!==this.searchRequest&&this.searchRequest.abort()},clearResults_:function(){this.abort_(),this.options.resultsEl.empty(),this.options.resultsEl.removeClass("is-active"),this.el.removeClass("is-active"),jQuery("body").removeClass("glsr-focus")},deleteEntry_:function(e){var t=this.options.entriesEl.children("tr").eq(e),n=this;t.find("td").css({backgroundColor:"#faafaa"}),t.fadeOut(350,(function(){jQuery(this).remove(),n.options.results={},n.reindexRows_(),n.setVisibility_()}))},displayResults_:function(e){jQuery("body").addClass("glsr-focus"),this.options.resultsEl.append(e),this.options.resultsEl.children("span").on("click",this.onResultClick_.bind(this))},makeSortable_:function(){this.options.entriesEl.on("click","a.delete",this.onEntryDelete_.bind(this)),this.options.entriesEl.sortable({items:"tr",tolerance:"pointer",start:function(e,t){t.placeholder.height(t.helper[0].scrollHeight)},sort:function(e,t){var n=e.pageY-jQuery(this).offsetParent().offset().top-t.helper.outerHeight(!0)/2;t.helper.css({top:n+"px"})}})},navigateResults_:function(e){this.options.selected+=e,this.options.results.removeClass(this.options.selectedClass),this.options.selected<0&&(this.options.selected=-1,this.options.searchEl.focus()),this.options.selected>=this.options.results.length&&(this.options.selected=this.options.results.length-1),this.options.selected>=0&&this.options.results.eq(this.options.selected).addClass(this.options.selectedClass).focus()},onDocumentClick_:function(e){jQuery(e.target).find(this.el).length&&jQuery("body").hasClass("glsr-focus")&&this.clearResults_()},onDocumentKeydown_:function(e){if(!jQuery.isEmptyObject(this.options.results)){if(GLSR.keys.ESC===e.which&&this.clearResults_(),GLSR.keys.ENTER===e.which||GLSR.keys.SPACE===e.which){var t=this.options.resultsEl.find("."+this.options.selectedClass);t&&t.trigger("click")}GLSR.keys.UP===e.which&&(e.preventDefault(),this.navigateResults_(-1)),GLSR.keys.DOWN===e.which&&(e.preventDefault(),this.navigateResults_(1))}},onEntryDelete_:function(e){e.preventDefault(),this.deleteEntry_(jQuery(e.currentTarget).closest("tr").index())},onResultClick_:function(e){e.preventDefault(),"function"==typeof this.options.onResultClick&&this.options.onResultClick.call(this,e),this.clearResults_()},onSearchInput_:function(e){if(this.abort_(),this.searchTerm===e.currentTarget.value&&this.options.results.length)return this.displayResults_(this.options.results);if(this.options.resultsEl.empty(),this.options.selected=-1,this.searchTerm=e.currentTarget.value,""===this.searchTerm)return this.reset_();this.el.addClass("is-active");var t={};t[GLSR.nameprefix]={_action:this.options.action,_nonce:GLSR.nonce[this.options.action],exclude:this.options.exclude,search:this.searchTerm},this.searchRequest=wp.ajax.post(GLSR.action,t).done(function(e){this.el.removeClass("is-active"),this.displayResults_(e.items?e.items:e.empty),this.options.results=this.options.resultsEl.children(),this.options.resultsEl.addClass("is-active"),delete this.searchRequest}.bind(this))},onSearchKeyup_:function(e){GLSR.keys.ESC===e.which&&this.reset_(),GLSR.keys.ENTER===e.which&&(this.onSearchInput_(e),e.preventDefault())},onUnassign_:function(e){e.preventDefault();var t=jQuery(e.currentTarget).closest(".glsr-multibox-entry");t.find("a").css({color:"#c00"}),t.fadeOut("fast",(function(){t.remove()}))},reindexRows_:function(){var e=this;this.options.exclude=[],this.options.entriesEl.children("tr").each((function(t){jQuery(this).find(".glsr-string-td2").children().filter(":input").each((function(){var n=jQuery(this),i=n.attr("name").replace(/\[\d+\]/i,"["+t+"]");n.attr("name",i),n.is("[data-id]")&&e.options.exclude.push({id:n.val()})}))}))},reset_:function(){this.clearResults_(),this.options.results={},this.options.searchEl.val("")},setVisibility_:function(){var e=this.options.entriesEl.children().length>0?"remove":"add";this.options.entriesEl.parent()[e+"Class"]("glsr-hidden")}};var N=I,$=function(e){var t=this;this.options=jQuery.extend({},this.defaults,e),this.tabs=document.querySelectorAll(this.options.tabSelector),this.tabs&&(this.init_(),jQuery((function(){return t.scrollIntoView_(jQuery(localStorage.getItem("glsr-expand")))})))};$.prototype={defaults:{expandSelectors:".glsr-nav-view, .glsr-notice",tabSelector:".glsr-nav-tab"},init_:function(){var e=this;[].forEach.call(e.tabs,function(t,n){t.addEventListener("click",e.onClick_.bind(e)),t.addEventListener("touchend",e.onClick_.bind(e))}.bind(e)),jQuery(e.options.expandSelectors).on("click","a",(function(){var t=this.dataset.expand;localStorage.setItem("glsr-expand",t),e.scrollIntoView_(jQuery(t))}))},onClick_:function(e){e.preventDefault(),this.toggleCollapsibleViewSections_(e.currentTarget)},scrollIntoView_:function(e){if(e.length){var t=e.closest(".glsr-nav-view"),n=e.closest(".glsr-card");t.removeClass("collapsed"),this.toggleCollapsibleSections_(t),t.removeClass("collapsed"),n.removeClass("closed").find(".glsr-accordion-trigger").attr("aria-expanded",!0),window.setTimeout((function(){localStorage.removeItem("glsr-expand"),jQuery("#glsr-notices .notice").length||n[0].scrollIntoView({behavior:"smooth",block:n.outerHeight()>=window.innerHeight?"start":"center"})}),10)}},toggleCollapsibleSections_:function(e){var t=e.hasClass("collapsed")?"remove":"add";e[t+"Class"]("collapsed").find(".glsr-card.postbox")[t+"Class"]("closed").find(".glsr-accordion-trigger").attr("aria-expanded","add"!==t)},toggleCollapsibleViewSections_:function(e){if(e.classList.contains("nav-tab-active")){var t=jQuery("#"+e.dataset.id);this.toggleCollapsibleSections_(t)}}};var H=$,M=function(e){this.current=null,this.editor=null,this.create=function(e){if(this.editor=tinymce.get(e),this.editor){var t={_action:"mce-shortcode",shortcode:this.current};new o(t).post(this.handleResponse_.bind(this))}};var t=document.querySelectorAll(e);t.length&&t.forEach(function(e){var t=e.querySelector("button"),n=e.querySelectorAll(".mce-menu-item");t&&n.length&&this.init_(e,t,n)}.bind(this))};M.prototype={attributes_:{},hiddenKeys_:[],init_:function(e,t,n){document.addEventListener("click",this.onClose_.bind(this,e,t)),t.addEventListener("click",this.onToggle_.bind(this,e,t)),n.forEach(function(n){n.addEventListener("click",this.onTrigger_.bind(this,e,t))}.bind(this))},initTinymceEditor_:function(){tinymce.execCommand("GLSR_Shortcode")},initQuicktagsEditor_:function(){jQuery("#scTemp").length?this.initTinymceEditor_():(jQuery("body").append('<textarea id="scTemp" style="display:none!important;"/>'),tinymce.init({elements:"scTemp",external_plugins:GLSR.tinymce,mode:"exact",plugins:["glsr_shortcode","wplink"]}),setTimeout(function(){this.initTinymceEditor_()}.bind(this),200))},close_:function(e,t){jQuery(t).removeClass("active"),jQuery(e).find(".glsr-mce-menu").hide()},destroy_:function(){var e=jQuery("#scTemp");e.length&&(tinymce.get("scTemp").remove(),e.remove()),this.attributes_={},this.hiddenKeys_=[]},handleResponse_:function(e){if(e){if(0===e.body.length)return window.send_to_editor("["+e.shortcode+"]"),void this.destroy_();var t=this.responsePopup_(e);e.ok.constructor===Array&&(t.buttons[0].text=e.ok[0],t.buttons[0].onclick="close",delete t.buttons[1]),this.editor.windowManager.open(t)}},normalize_:function(e){for(var t in this.attributes_=e,this.hiddenKeys_=[],e)e.hasOwnProperty(t)&&(this.normalizeDisplay_(t),this.normalizeHide_(t),this.normalizeId_(t));this.attributes_.hide=this.hiddenKeys_.join(",")},normalizeDisplay_:function(e){"display"!==e||jQuery.isNumeric(this.attributes_[e])||(this.attributes_[e]="")},normalizeHide_:function(e){if(GLSR.hideoptions.hasOwnProperty(this.current)){var t=e.substring("hide_".length);-1!==Object.keys(GLSR.hideoptions[this.current]).indexOf(t)&&(this.attributes_[e]&&this.hiddenKeys_.push(t),delete this.attributes_[e])}},normalizeId_:function(e){"id"===e&&(this.attributes_[e]=(+new Date).toString(36))},onClose_:function(e,t,n){jQuery(n.target).closest(jQuery(e)).length||this.close_(e,t)},onToggle_:function(e,t,n){n.preventDefault(),n.currentTarget.classList.contains("active")?this.close_(e,t):this.open_(e,t)},onTrigger_:function(e,t,n){n.preventDefault(),this.current=n.currentTarget.dataset.shortcode,this.current&&(tinymce.get(window.wpActiveEditor)?this.initTinymceEditor_():this.initQuicktagsEditor_(),setTimeout(function(){this.close_(e,t)}.bind(this),100))},open_:function(e,t){jQuery(t).addClass("active"),jQuery(e).find(".glsr-mce-menu").show()},responseButtons_:function(e){return[{classes:"btn glsr-btn primary",onclick:this.submitShortcode_.bind(this),text:e.ok},{onclick:"close",text:e.close}]},responsePopup_:function(e){return{title:e.title,body:e.body,classes:"glsr-mce-popup",minWidth:320,buttons:this.responseButtons_(e),onsubmit:this.sendToEditor_.bind(this,e),onclose:this.destroy_.bind(this)}},sendToEditor_:function(e,t){var n="";for(var i in this.normalize_(t.data),this.attributes_)this.attributes_.hasOwnProperty(i)&&""!==this.attributes_[i]&&(n+=" "+i+'="'+this.attributes_[i]+'"');window.send_to_editor("["+e.shortcode+n+"]")},submitShortcode_:function(){var e=this.editor.windowManager.getWindows()[0];this.validateAttributes_(e)&&e.submit()},validateAttributes_:function(e){var t,n=!0,i=GLSR.shortcodes[this.current];for(var s in i)if(i.hasOwnProperty(s)&&void 0!==(t=e.find("#"+s)[0])&&""===t.state.data.value){n=!1,alert(i[s]);break}return n}};var G=M,V=n(449),W=n.n(V),B=function(e){var t=document.querySelectorAll(e);t.length&&t.forEach(function(e){e.addEventListener("click",this.onClick_)}.bind(this))};B.prototype={onClick_:function(e){var t=e.currentTarget.href.match(/post=([0-9]+)/),n=e.currentTarget.href.match(/action=([a-z]+)/);if(null!==t&&null!==n){var i={_action:"toggle-status",_nonce:GLSR.nonce["toggle-status"],post_id:t[1],status:n[1]};jQuery(e.target).closest("tr").find(".locked-indicator").addClass("spinner is-active"),new o(i,e).post((function(t){if(t.class){var n=jQuery(e.target);n.closest("tr").find(".locked-indicator").removeClass("spinner is-active"),n.closest("tr").removeClass("status-pending status-publish").addClass(t.class),n.closest("td.column-title").find("strong").html(t.link),t.counts&&(n.closest(".wrap").find("ul.subsubsub").html(t.counts),jQuery("#menu-posts-site-review").find(".awaiting-mod").removeClass().addClass("awaiting-mod count-"+t.pending).find(".unapproved-count").html(t.pending))}}))}}};var U=B,K=function(){this.button=jQuery("button#sync-reviews"),this.progressbar=jQuery(".glsr-progress"),this.service=null,jQuery("form.glsr-form-sync").on("click","#sync-reviews",this.onSync_.bind(this)),jQuery(document).on("wp-window-resized",this.onWindowResize_),jQuery(window).on("hashchange",this.onWindowResize_),this.onWindowResize_()};K.prototype={finishSync_:function(e){jQuery(".service-"+this.service+" td.column-last_sync").text(e.last_sync),jQuery(".service-"+this.service+" td.column-total_fetched a").text(e.total),this.watchSyncStatus_(!1)},onSync_:function(e){e.preventDefault(),this.service=jQuery('[name="'+GLSR.nameprefix+'[service]"]').val(),this.service&&(this.watchSyncStatus_(!0),this.syncFetch_())},onWindowResize_:function(){var e=jQuery(".glsr-progress").width();e&&jQuery(".glsr-progress span").width(e)},syncFetch_:function(){var e={_action:"sync-reviews",service:this.service,stage:"fetch"};new o(e).post(this.syncProgress_.bind(this))},syncProgress_:function(e){var t={_action:"sync-reviews",job_id:e.job_id,service:this.service,stage:"progress"},n=e.finished?this.syncReviews_.bind(this,e):this.syncProgress_.bind(this);this.updateMessage_(e.message),this.updateProgress_(e.percent),setTimeout((function(){new o(t).post(n)}),1500)},syncReviews_:function(e){var t=0;try{t=e.meta.pagination.current_page}catch(e){}var n={_action:"sync-reviews",page:t+1,service:this.service,stage:"reviews"};this.updateMessage_(e.message),e.percent_synced&&e.percent_synced>=100?this.finishSync_(e):new o(n).post(this.syncReviews_.bind(this))},updateMessage_:function(e){jQuery(".glsr-progress-status",this.progressbar).text(e)},updateProgress_:function(e){e=(e||0)+"%",jQuery(".glsr-progress-bar",this.progressbar).outerWidth(e)},watchSyncStatus_:function(e){if(!0===e&&(this.updateMessage_(this.progressbar.data("active-text")),this.updateProgress_(),this.button.prop("disabled",!0),window.requestAnimationFrame(function(){this.progressbar.addClass("active")}.bind(this))),!1===e)return this.service=null,this.button.prop("disabled",!1),void this.progressbar.removeClass("active");window.requestAnimationFrame(this.watchSyncStatus_.bind(this))}};var Y=K,X=function(e){this.options=jQuery.extend({},this.defaults,e),this.active=document.querySelector("input[name=_active_tab]"),this.refererInputs=jQuery("input[name=_wp_http_referer]"),this.sections=document.querySelectorAll(this.options.viewSectionSelector),this.subsubsub=document.querySelectorAll(this.options.viewSubsubsub),this.tabs=document.querySelectorAll(this.options.tabSelector),this.views=document.querySelectorAll(this.options.viewSelector),this.active&&this.refererInputs.length&&this.tabs&&this.views&&this.init_()};X.prototype={defaults:{smartLinks:".glsr-card a, #glsr-notices a",tabSelector:".glsr-nav-tab",viewSelector:".glsr-nav-view",viewSectionSelector:".glsr-nav-view-section",viewSubsubsub:".glsr-subsubsub a"},init_:function(){var e=this;jQuery(this.options.tabSelector).each((function(t,n){var i=n.getAttribute("href"),s=e.queryHref_(n,"tab"),r=e.queryLocation_("tab");null===r&&0===t&&(r=s,history.replaceState({href:i,tab:s},"",i),e.refererInputs.val(i)),r===s&&e.setActiveTab_(s)})),jQuery(window).on("popstate",this.onPopstate_.bind(this)),jQuery(this.options.smartLinks).on("click",this.onClickLink_.bind(this)),jQuery(this.options.tabSelector+","+this.options.viewSubsubsub).on("click",this.onClick_.bind(this))},onClick_:function(e){var t=e.currentTarget,n=t.getAttribute("href"),i=this.queryHref_(t,"tab");i&&(history.pushState({href:n,tab:i},"",n),this.refererInputs.val(n),this.setActiveTab_(i),e.preventDefault(),t.blur())},onClickLink_:function(e){var t=e.currentTarget,n=this.queryLocation_("page"),i=this.queryLocation_("postType"),s=this.queryLocation_("tab"),r=this.queryHref_(t,"page"),o=this.queryHref_(t,"postType"),a=this.queryHref_(t,"tab");if(r===n&&o===i&&a){var l=t.getAttribute("href");history.pushState({href:l,tab:a},"",l),this.refererInputs.val(l),this.setActiveTab_(a),a!==s&&window.scrollTo(0,0),e.preventDefault()}},onPopstate_:function(e){var t=e.originalEvent.state;t&&t.tab&&t.href&&(this.refererInputs.val(t.href),this.setActiveTab_(t.tab))},getAction_:function(e){return e?"add":"remove"},queryHref_:function(e,t){return new URLSearchParams(e.getAttribute("href")).get(t)},queryLocation_:function(e){return new URLSearchParams(location.search).get(e)},setActiveTab_:function(e){for(var t=0;t<this.views.length;t++)if(e===this.views[t].id){this.setTab_(this.tabs[t]);break}},setSubsubsub_:function(){var e=this,t=0;[].forEach.call(this.subsubsub,(function(n,i){n.classList.remove("current"),e.queryHref_(n,"sub")===e.queryLocation_("sub")&&(t=i)})),this.subsubsub[t]&&this.subsubsub[t].classList.add("current"),[].forEach.call(this.sections,(function(n,i){var s=e.getAction_(i!==t);n.classList[s]("ui-tabs-hide")}))},setTab_:function(e){var t=this;[].forEach.call(this.tabs,(function(n,i){var s=t.getAction_(n===e);"add"===s&&(t.active.value=t.views[i].id,t.setView_(i)),n.classList[s]("nav-tab-active")}))},setView_:function(e){var t=this;[].forEach.call(this.views,(function(n,i){var s=t.getAction_(i!==e);n.classList[s]("ui-tabs-hide"),t.setSubsubsub_()}))}};var Z=X,J=function(){var e=document.querySelector("#contentdiv > textarea");e&&(this.resize_(e),jQuery(document).on("wp-window-resized.editor-expand",function(){this.resize_(e)}.bind(this)))};J.prototype={resize_:function(e){var t=e.scrollHeight>320?e.scrollHeight:320;e.style.height="auto",e.style.height=t+"px"}};var ee=J,te=function(){jQuery("form").on("click","#glsr-clear-console",this.loadConsole_,this.onClick_.bind(this)),jQuery("form").on("click","#glsr-fetch-console",this.loadConsole_,this.onClick_.bind(this)),jQuery("form").on("click","[data-ajax-click]",this.onClick_.bind(this)),jQuery(".glsr-button").on("click",this.setExpand_);var e=jQuery("input[data-alt]");e.length&&(jQuery(document).on("keydown",this.onKeyDown_.bind(this,e)),jQuery(document).on("keyup",this.onKeyUp_.bind(this,e)))};te.prototype={loadConsole_:function(e,t){t&&jQuery("#glsr-log-file").val(e.console)},onClick_:function(e){var t=jQuery(e.currentTarget),n=this;t.addClass("is-busy"),new o({},e,t.closest("form")).post((function(i,s){"function"==typeof e.data&&e.data(i,s),t.get(0).hasAttribute("data-ajax-scroll")&&jQuery("html, body").animate({scrollTop:0},500),t.removeClass("is-busy"),t.closest("[data-ajax-hide]").css({backgroundColor:"rgba(74,184,102,.25)"}).fadeOut("normal",(function(){jQuery(this).remove()})),jQuery("#glsr-notices").on("click","a",n.setExpand_),jQuery('.glsr-notice[data-notice="'+t.data("remove-notice")+'"]').remove()}))},onKeyDown_:function(e,t){GLSR.keys.ALT!==t.keyCode||t.repeat||(e.closest("form").find("[data-alt-text]").addClass("alt"),e.val(1))},onKeyUp_:function(e,t){GLSR.keys.ALT===t.keyCode&&(e.closest("form").find("[data-alt-text]").removeClass("alt"),e.val(0))},setExpand_:function(e){var t=jQuery(e.currentTarget).data("expand");t&&localStorage.setItem("glsr-expand",t)}};var ne=te;function ie(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function se(e){return e instanceof ie(e).Element||e instanceof Element}function re(e){return e instanceof ie(e).HTMLElement||e instanceof HTMLElement}function oe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ie(e).ShadowRoot||e instanceof ShadowRoot)}var ae=Math.max,le=Math.min,ce=Math.round;function ue(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),i=1,s=1;if(re(e)&&t){var r=e.offsetHeight,o=e.offsetWidth;o>0&&(i=ce(n.width)/o||1),r>0&&(s=ce(n.height)/r||1)}return{width:n.width/i,height:n.height/s,top:n.top/s,right:n.right/i,bottom:n.bottom/s,left:n.left/i,x:n.left/i,y:n.top/s}}function de(e){var t=ie(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pe(e){return e?(e.nodeName||"").toLowerCase():null}function he(e){return((se(e)?e.ownerDocument:e.document)||window.document).documentElement}function fe(e){return ue(he(e)).left+de(e).scrollLeft}function ge(e){return ie(e).getComputedStyle(e)}function ve(e){var t=ge(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function me(e,t,n){void 0===n&&(n=!1);var i,s,r=re(t),o=re(t)&&function(e){var t=e.getBoundingClientRect(),n=ce(t.width)/e.offsetWidth||1,i=ce(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=he(t),l=ue(e,o),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==pe(t)||ve(a))&&(c=(i=t)!==ie(i)&&re(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:de(i)),re(t)?((u=ue(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=fe(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function ye(e){var t=ue(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function be(e){return"html"===pe(e)?e:e.assignedSlot||e.parentNode||(oe(e)?e.host:null)||he(e)}function we(e){return["html","body","#document"].indexOf(pe(e))>=0?e.ownerDocument.body:re(e)&&ve(e)?e:we(be(e))}function _e(e,t){var n;void 0===t&&(t=[]);var i=we(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),r=ie(i),o=s?[r].concat(r.visualViewport||[],ve(i)?i:[]):i,a=t.concat(o);return s?a:a.concat(_e(be(o)))}function xe(e){return["table","td","th"].indexOf(pe(e))>=0}function ke(e){return re(e)&&"fixed"!==ge(e).position?e.offsetParent:null}function Ee(e){for(var t=ie(e),n=ke(e);n&&xe(n)&&"static"===ge(n).position;)n=ke(n);return n&&("html"===pe(n)||"body"===pe(n)&&"static"===ge(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&re(e)&&"fixed"===ge(e).position)return null;var n=be(e);for(oe(n)&&(n=n.host);re(n)&&["html","body"].indexOf(pe(n))<0;){var i=ge(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Se="top",je="bottom",Ce="right",Ae="left",Le="auto",Te=[Se,je,Ce,Ae],Oe="start",Re="end",Pe="viewport",Fe="popper",Qe=Te.reduce((function(e,t){return e.concat([t+"-"+Oe,t+"-"+Re])}),[]),De=[].concat(Te,[Le]).reduce((function(e,t){return e.concat([t,t+"-"+Oe,t+"-"+Re])}),[]),ze=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function qe(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||s(e)})),i}var Ie={placement:"bottom",modifiers:[],strategy:"absolute"};function Ne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function $e(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,r=void 0===s?Ie:s;return function(e,t,n){void 0===n&&(n=r);var s,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ie,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},r,a.options,s),a.scrollParents={reference:se(e)?_e(e):e.contextElement?_e(e.contextElement):[],popper:_e(t)};var o=function(e){var t=qe(e);return ze.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(i,a.options.modifiers)));return a.orderedModifiers=o.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var r=s({state:a,name:t,instance:u,options:i}),o=function(){};l.push(r||o)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(Ne(t,n)){a.rects={reference:me(t,Ee(n),"fixed"===a.options.strategy),popper:ye(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],r=s.fn,o=s.options,l=void 0===o?{}:o,d=s.name;"function"==typeof r&&(a=r({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(s())}))}))),o}),destroy:function(){d(),c=!0}};if(!Ne(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var He={passive:!0};function Me(e){return e.split("-")[0]}function Ge(e){return e.split("-")[1]}function Ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function We(e){var t,n=e.reference,i=e.element,s=e.placement,r=s?Me(s):null,o=s?Ge(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Se:t={x:a,y:n.y-i.height};break;case je:t={x:a,y:n.y+n.height};break;case Ce:t={x:n.x+n.width,y:l};break;case Ae:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?Ve(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Oe:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Re:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}var Be={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ue(e){var t,n=e.popper,i=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=o.x,h=void 0===p?0:p,f=o.y,g=void 0===f?0:f,v="function"==typeof u?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Ae,w=Se,_=window;if(c){var x=Ee(n),k="clientHeight",E="clientWidth";if(x===ie(n)&&"static"!==ge(x=he(n)).position&&"absolute"===a&&(k="scrollHeight",E="scrollWidth"),x=x,s===Se||(s===Ae||s===Ce)&&r===Re)w=je,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[k])-i.height,g*=l?1:-1;if(s===Ae||(s===Se||s===je)&&r===Re)b=Ce,h-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[E])-i.width,h*=l?1:-1}var S,j=Object.assign({position:a},c&&Be),C=!0===u?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:ce(t*i)/i||0,y:ce(n*i)/i||0}}({x:h,y:g}):{x:h,y:g};return h=C.x,g=C.y,l?Object.assign({},j,((S={})[w]=y?"0":"",S[b]=m?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",S)):Object.assign({},j,((t={})[w]=y?g+"px":"",t[b]=m?h+"px":"",t.transform="",t))}var Ke={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];re(s)&&pe(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});re(i)&&pe(i)&&(Object.assign(i.style,r),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Ye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,r=void 0===s?[0,0]:s,o=De.reduce((function(e,n){return e[n]=function(e,t,n){var i=Me(e),s=[Ae,Se].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Ae,Ce].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,r),e}),{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},Xe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e){return e.replace(/left|right|bottom|top/g,(function(e){return Xe[e]}))}var Je={start:"end",end:"start"};function et(e){return e.replace(/start|end/g,(function(e){return Je[e]}))}function tt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&oe(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function nt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function it(e,t){return t===Pe?nt(function(e){var t=ie(e),n=he(e),i=t.visualViewport,s=n.clientWidth,r=n.clientHeight,o=0,a=0;return i&&(s=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,a=i.offsetTop)),{width:s,height:r,x:o+fe(e),y:a}}(e)):se(t)?function(e){var t=ue(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):nt(function(e){var t,n=he(e),i=de(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=ae(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ae(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+fe(e),l=-i.scrollTop;return"rtl"===ge(s||n).direction&&(a+=ae(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(he(e)))}function st(e,t,n){var i="clippingParents"===t?function(e){var t=_e(be(e)),n=["absolute","fixed"].indexOf(ge(e).position)>=0&&re(e)?Ee(e):e;return se(n)?t.filter((function(e){return se(e)&&tt(e,n)&&"body"!==pe(e)})):[]}(e):[].concat(t),s=[].concat(i,[n]),r=s[0],o=s.reduce((function(t,n){var i=it(e,n);return t.top=ae(i.top,t.top),t.right=le(i.right,t.right),t.bottom=le(i.bottom,t.bottom),t.left=ae(i.left,t.left),t}),it(e,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ot(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function at(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,r=n.boundary,o=void 0===r?"clippingParents":r,a=n.rootBoundary,l=void 0===a?Pe:a,c=n.elementContext,u=void 0===c?Fe:c,d=n.altBoundary,p=void 0!==d&&d,h=n.padding,f=void 0===h?0:h,g=rt("number"!=typeof f?f:ot(f,Te)),v=u===Fe?"reference":Fe,m=e.rects.popper,y=e.elements[p?v:u],b=st(se(y)?y:y.contextElement||he(e.elements.popper),o,l),w=ue(e.elements.reference),_=We({reference:w,element:m,strategy:"absolute",placement:s}),x=nt(Object.assign({},m,_)),k=u===Fe?x:w,E={top:b.top-k.top+g.top,bottom:k.bottom-b.bottom+g.bottom,left:b.left-k.left+g.left,right:k.right-b.right+g.right},S=e.modifiersData.offset;if(u===Fe&&S){var j=S[s];Object.keys(E).forEach((function(e){var t=[Ce,je].indexOf(e)>=0?1:-1,n=[Se,je].indexOf(e)>=0?"y":"x";E[e]+=j[n]*t}))}return E}var lt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,g=n.allowedAutoPlacements,v=t.options.placement,m=Me(v),y=l||(m===v||!f?[Ze(v)]:function(e){if(Me(e)===Le)return[];var t=Ze(e);return[et(e),t,et(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(Me(n)===Le?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?De:l,u=Ge(i),d=u?a?Qe:Qe.filter((function(e){return Ge(e)===u})):Te,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=at(e,{placement:n,boundary:s,rootBoundary:r,padding:o})[Me(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,_=t.rects.popper,x=new Map,k=!0,E=b[0],S=0;S<b.length;S++){var j=b[S],C=Me(j),A=Ge(j)===Oe,L=[Se,je].indexOf(C)>=0,T=L?"width":"height",O=at(t,{placement:j,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=L?A?Ce:Ae:A?je:Se;w[T]>_[T]&&(R=Ze(R));var P=Ze(R),F=[];if(r&&F.push(O[C]<=0),a&&F.push(O[R]<=0,O[P]<=0),F.every((function(e){return e}))){E=j,k=!1;break}x.set(j,F)}if(k)for(var Q=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},D=f?3:1;D>0;D--){if("break"===Q(D))break}t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ct(e,t,n){return ae(e,le(t,n))}var ut={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,r=void 0===s||s,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,g=void 0===f?0:f,v=at(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=Me(t.placement),y=Ge(t.placement),b=!y,w=Ve(m),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,E=t.rects.popper,S="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,j="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(r){var L,T="y"===w?Se:Ae,O="y"===w?je:Ce,R="y"===w?"height":"width",P=x[w],F=P+v[T],Q=P-v[O],D=h?-E[R]/2:0,z=y===Oe?k[R]:E[R],q=y===Oe?-E[R]:-k[R],I=t.elements.arrow,N=h&&I?ye(I):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=$[T],M=$[O],G=ct(0,k[R],N[R]),V=b?k[R]/2-D-G-H-j.mainAxis:z-G-H-j.mainAxis,W=b?-k[R]/2+D+G+M+j.mainAxis:q+G+M+j.mainAxis,B=t.elements.arrow&&Ee(t.elements.arrow),U=B?"y"===w?B.clientTop||0:B.clientLeft||0:0,K=null!=(L=null==C?void 0:C[w])?L:0,Y=P+W-K,X=ct(h?le(F,P+V-K-U):F,P,h?ae(Q,Y):Q);x[w]=X,A[w]=X-P}if(a){var Z,J="x"===w?Se:Ae,ee="x"===w?je:Ce,te=x[_],ne="y"===_?"height":"width",ie=te+v[J],se=te-v[ee],re=-1!==[Se,Ae].indexOf(m),oe=null!=(Z=null==C?void 0:C[_])?Z:0,ce=re?ie:te-k[ne]-E[ne]-oe+j.altAxis,ue=re?te+k[ne]+E[ne]-oe-j.altAxis:se,de=h&&re?function(e,t,n){var i=ct(e,t,n);return i>n?n:i}(ce,te,ue):ct(h?ce:ie,te,h?ue:se);x[_]=de,A[_]=de-te}t.modifiersData[i]=A}},requiresIfExists:["offset"]};var dt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Me(n.placement),l=Ve(a),c=[Ae,Ce].indexOf(a)>=0?"height":"width";if(r&&o){var u=function(e,t){return rt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ot(e,Te))}(s.padding,n),d=ye(r),p="y"===l?Se:Ae,h="y"===l?je:Ce,f=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],v=Ee(r),m=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=f/2-g/2,b=u[p],w=m-d[c]-u[h],_=m/2-d[c]/2+y,x=ct(b,_,w),k=l;n.modifiersData[i]=((t={})[k]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&tt(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ht(e){return[Se,Ce,je,Ae].some((function(t){return e[t]>=0}))}var ft=$e({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,r=void 0===s||s,o=i.resize,a=void 0===o||o,l=ie(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,He)})),a&&l.addEventListener("resize",n.update,He),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,He)})),a&&l.removeEventListener("resize",n.update,He)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=We({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,r=n.adaptive,o=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:Me(t.placement),variation:Ge(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ue(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ue(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ke,Ye,lt,ut,dt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=at(t,{elementContext:"reference"}),a=at(t,{altBoundary:!0}),l=pt(o,i),c=pt(a,s,r),u=ht(l),d=ht(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),gt="tippy-content",vt="tippy-backdrop",mt="tippy-arrow",yt="tippy-svg-arrow",bt={passive:!0,capture:!0},wt=function(){return document.body};function _t(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function xt(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function kt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Et(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function St(e){return[].concat(e)}function jt(e,t){-1===e.indexOf(t)&&e.push(t)}function Ct(e){return e.split("-")[0]}function At(e){return[].slice.call(e)}function Lt(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Tt(){return document.createElement("div")}function Ot(e){return["Element","Fragment"].some((function(t){return xt(e,t)}))}function Rt(e){return xt(e,"MouseEvent")}function Pt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Ft(e){return Ot(e)?[e]:function(e){return xt(e,"NodeList")}(e)?At(e):Array.isArray(e)?e:At(document.querySelectorAll(e))}function Qt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Dt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function zt(e){var t,n=St(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function qt(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function It(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Nt={isTouch:!1},$t=0;function Ht(){Nt.isTouch||(Nt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Mt))}function Mt(){var e=performance.now();e-$t<20&&(Nt.isTouch=!1,document.removeEventListener("mousemove",Mt)),$t=e}function Gt(){var e=document.activeElement;if(Pt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Vt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Wt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Bt=Object.assign({appendTo:wt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Wt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ut=Object.keys(Bt);function Kt(e){var t=(e.plugins||[]).reduce((function(t,n){var i,s=n.name,r=n.defaultValue;s&&(t[s]=void 0!==e[s]?e[s]:null!=(i=Bt[s])?i:r);return t}),{});return Object.assign({},e,t)}function Yt(e,t){var n=Object.assign({},t,{content:kt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Kt(Object.assign({},Bt,{plugins:t}))):Ut).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Bt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Xt(e,t){e.innerHTML=t}function Zt(e){var t=Tt();return!0===e?t.className=mt:(t.className=yt,Ot(e)?t.appendChild(e):Xt(t,e)),t}function Jt(e,t){Ot(t.content)?(Xt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Xt(e,t.content):e.textContent=t.content)}function en(e){var t=e.firstElementChild,n=At(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(gt)})),arrow:n.find((function(e){return e.classList.contains(mt)||e.classList.contains(yt)})),backdrop:n.find((function(e){return e.classList.contains(vt)}))}}function tn(e){var t=Tt(),n=Tt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Tt();function s(n,i){var s=en(t),r=s.box,o=s.content,a=s.arrow;i.theme?r.setAttribute("data-theme",i.theme):r.removeAttribute("data-theme"),"string"==typeof i.animation?r.setAttribute("data-animation",i.animation):r.removeAttribute("data-animation"),i.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Jt(o,e.props),i.arrow?a?n.arrow!==i.arrow&&(r.removeChild(a),r.appendChild(Zt(i.arrow))):r.appendChild(Zt(i.arrow)):a&&r.removeChild(a)}return i.className=gt,i.setAttribute("data-state","hidden"),Jt(i,e.props),t.appendChild(n),n.appendChild(i),s(e.props,e.props),{popper:t,onUpdate:s}}tn.$$tippy=!0;var nn=1,sn=[],rn=[];function on(e,t){var n,i,s,r,o,a,l,c,u=Yt(e,Object.assign({},Bt,Kt(Lt(t)))),d=!1,p=!1,h=!1,f=!1,g=[],v=Et(B,u.interactiveDebounce),m=nn++,y=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:m,reference:e,popper:Tt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(s)},setProps:function(t){0;if(b.state.isDestroyed)return;P("onBeforeUpdate",[b,t]),V();var n=b.props,i=Yt(e,Object.assign({},n,Lt(t),{ignoreAttributes:!0}));b.props=i,G(),n.interactiveDebounce!==i.interactiveDebounce&&(D(),v=Et(B,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?St(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");Q(),R(),x&&x(n,i);b.popperInstance&&(X(),J().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));P("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Nt.isTouch&&!b.props.touch,s=_t(b.props.duration,0,Bt.duration);if(e||t||n||i)return;if(A().hasAttribute("disabled"))return;if(P("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,C()&&(_.style.visibility="visible");R(),N(),b.state.isMounted||(_.style.transition="none");if(C()){var r=T(),o=r.box,l=r.content;Qt([o,l],0)}a=function(){var e;if(b.state.isVisible&&!f){if(f=!0,_.offsetHeight,_.style.transition=b.props.moveTransition,C()&&b.props.animation){var t=T(),n=t.box,i=t.content;Qt([n,i],s),Dt([n,i],"visible")}F(),Q(),jt(rn,b),null==(e=b.popperInstance)||e.forceUpdate(),P("onMount",[b]),b.props.animation&&C()&&function(e,t){H(e,t)}(s,(function(){b.state.isShown=!0,P("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=A();e=b.props.interactive&&t===wt||"parent"===t?n.parentNode:kt(t,[n]);e.contains(_)||e.appendChild(_);b.state.isMounted=!0,X(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=_t(b.props.duration,1,Bt.duration);if(e||t||n)return;if(P("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,f=!1,d=!1,C()&&(_.style.visibility="hidden");if(D(),$(),R(!0),C()){var s=T(),r=s.box,o=s.content;b.props.animation&&(Qt([r,o],i),Dt([r,o],"hidden"))}F(),Q(),b.props.animation?C()&&function(e,t){H(e,(function(){!b.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()}))}(i,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;L().addEventListener("mousemove",v),jt(sn,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Z(),J().forEach((function(e){e._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);rn=rn.filter((function(e){return e!==b})),b.state.isMounted=!1,P("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),V(),delete e._tippy,b.state.isDestroyed=!0,P("onDestroy",[b])}};if(!u.render)return b;var w=u.render(b),_=w.popper,x=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+b.id,b.popper=_,e._tippy=b,_._tippy=b;var k=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return G(),Q(),R(),P("onCreate",[b]),u.showOnCreate&&ee(),_.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",v)})),b;function S(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function j(){return"hold"===S()[0]}function C(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function A(){return l||e}function L(){var e=A().parentNode;return e?zt(e):document}function T(){return en(_)}function O(e){return b.state.isMounted&&!b.state.isVisible||Nt.isTouch||r&&"focus"===r.type?0:_t(b.props.delay,e?0:1,Bt.delay)}function R(e){void 0===e&&(e=!1),_.style.pointerEvents=b.props.interactive&&!e?"":"none",_.style.zIndex=""+b.props.zIndex}function P(e,t,n){var i;(void 0===n&&(n=!0),k.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=b.props)[e].apply(i,t)}function F(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=_.id;St(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var s=t&&t.replace(i,"").trim();s?e.setAttribute(n,s):e.removeAttribute(n)}}))}}function Q(){!E&&b.props.aria.expanded&&St(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function D(){L().removeEventListener("mousemove",v),sn=sn.filter((function(e){return e!==v}))}function z(t){if(!Nt.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!It(_,n)){if(St(b.props.triggerTarget||e).some((function(e){return It(e,n)}))){if(Nt.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout((function(){p=!1})),b.state.isMounted||$())}}}function q(){h=!0}function I(){h=!1}function N(){var e=L();e.addEventListener("mousedown",z,!0),e.addEventListener("touchend",z,bt),e.addEventListener("touchstart",I,bt),e.addEventListener("touchmove",q,bt)}function $(){var e=L();e.removeEventListener("mousedown",z,!0),e.removeEventListener("touchend",z,bt),e.removeEventListener("touchstart",I,bt),e.removeEventListener("touchmove",q,bt)}function H(e,t){var n=T().box;function i(e){e.target===n&&(qt(n,"remove",i),t())}if(0===e)return t();qt(n,"remove",o),qt(n,"add",i),o=i}function M(t,n,i){void 0===i&&(i=!1),St(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),g.push({node:e,eventType:t,handler:n,options:i})}))}function G(){var e;j()&&(M("touchstart",W,{passive:!0}),M("touchend",U,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(M(e,W),e){case"mouseenter":M("mouseleave",U);break;case"focus":M(Vt?"focusout":"blur",K);break;case"focusin":M("focusout",K)}}))}function V(){g.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,s=e.options;t.removeEventListener(n,i,s)})),g=[]}function W(e){var t,n=!1;if(b.state.isEnabled&&!Y(e)&&!p){var i="focus"===(null==(t=r)?void 0:t.type);r=e,l=e.currentTarget,Q(),!b.state.isVisible&&Rt(e)&&sn.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!i&&te(e)}}function B(e){var t=e.target,n=A().contains(t)||_.contains(t);if("mousemove"!==e.type||!n){var i=J().concat(_).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,s=e.popperState,r=e.props.interactiveBorder,o=Ct(s.placement),a=s.modifiersData.offset;if(!a)return!0;var l="bottom"===o?a.top.y:0,c="top"===o?a.bottom.y:0,u="right"===o?a.left.x:0,d="left"===o?a.right.x:0,p=t.top-i+l>r,h=i-t.bottom-c>r,f=t.left-n+u>r,g=n-t.right-d>r;return p||h||f||g}))})(i,e)&&(D(),te(e))}}function U(e){Y(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==A()||b.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function Y(e){return!!Nt.isTouch&&j()!==e.type.indexOf("touch")>=0}function X(){Z();var t=b.props,n=t.popperOptions,i=t.placement,s=t.offset,r=t.getReferenceClientRect,o=t.moveTransition,l=C()?en(_).arrow:null,c=r?{getBoundingClientRect:r,contextElement:r.contextElement||A()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(C()){var n=T().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},u];C()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=ft(c,_,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:d}))}function Z(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function J(){return At(_.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&P("onTrigger",[b,e]),N();var t=O(!0),i=S(),s=i[0],r=i[1];Nt.isTouch&&"hold"===s&&r&&(t=r),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),P("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=O(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):s=requestAnimationFrame((function(){b.hide()}))}}else $()}}function an(e,t){void 0===t&&(t={});var n=Bt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ht,bt),window.addEventListener("blur",Gt);var i=Object.assign({},t,{plugins:n}),s=Ft(e).reduce((function(e,t){var n=t&&on(t,i);return n&&e.push(n),e}),[]);return Ot(e)?s[0]:s}an.defaultProps=Bt,an.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Bt[t]=e[t]}))},an.currentInput=Nt;Object.assign({},Ke,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});var ln={clientX:0,clientY:0},cn=[];function un(e){var t=e.clientX,n=e.clientY;ln={clientX:t,clientY:n}}var dn={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=zt(e.props.triggerTarget||t),i=!1,s=!1,r=!0,o=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",d)}function c(){n.removeEventListener("mousemove",d)}function u(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function d(n){var i=!n.target||t.contains(n.target),s=e.props.followCursor,r=n.clientX,o=n.clientY,a=t.getBoundingClientRect(),l=r-a.left,c=o-a.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=r,i=o;"initial"===s&&(n=e.left+l,i=e.top+c);var a="horizontal"===s?e.top:i,u="vertical"===s?e.right:n,d="horizontal"===s?e.bottom:i,p="vertical"===s?e.left:n;return{width:u-p,height:d-a,top:a,right:u,bottom:d,left:p}}})}function p(){e.props.followCursor&&(cn.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",un)}(n))}function h(){0===(cn=cn.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",un)}(n)}return{onCreate:p,onDestroy:h,onBeforeUpdate:function(){o=e.props},onAfterUpdate:function(t,n){var r=n.followCursor;i||void 0!==r&&o.followCursor!==r&&(h(),r?(p(),!e.state.isMounted||s||a()||l()):(c(),u()))},onMount:function(){e.props.followCursor&&!s&&(r&&(d(ln),r=!1),a()||l())},onTrigger:function(e,t){Rt(t)&&(ln={clientX:t.clientX,clientY:t.clientY}),s="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),c(),r=!0)}}}};an.setDefaultProps({render:tn});var pn=an;GLSR.autosize=p,GLSR.keys={ALT:18,DOWN:40,ENTER:13,ESC:27,SPACE:32,TAB:9,UP:38},GLSR.Event=y,GLSR.Tippy={tippy:pn,plugins:{followCursor:dn}},jQuery((function(e){q().highlightAll(),GLSR.notices=new R,GLSR.shortcode=new G(".glsr-mce"),GLSR.stars=new(W())("select.glsr-star-rating",{tooltip:!1}),GLSR.Tippy.tippy(".glsr-tooltip",{appendTo:function(){return document.body}}),e(".glsr-tooltip").each((function(e,t){var n=t.dataset.tippyContent,i=t.dataset.syntax;t._tippy&&n&&i&&q().languages[i]&&t._tippy.setContent('<pre class="language-'+i+'"><code>'+q().highlight(n,q().languages[i],i)+"</code></pre>")})),f(),new j,e(".glsr-filter").each((function(e,t){new E(t)})),new A("form.glsr-form"),new T,new F,new D,new N("#glsr-search-posts",{action:"search-posts",onInit:function(){this.el.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this))},onResultClick:function(t){var n=e(t.currentTarget),i=wp.template("glsr-assigned-posts"),s={id:n.data("id"),name:"post_ids[]",url:n.data("url"),title:n.text()};if(i){var r=e(i(s));r.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this)),this.el.find(".glsr-selected-entries").append(r),this.reset_()}this.options.searchEl.focus()}}),new N("#glsr-search-translations",{action:"search-translations",onInit:function(){this.makeSortable_()},onResultClick:function(t){var n=e(t.currentTarget),i=n.data("entry"),s=wp.template("glsr-string-"+(i.p1?"plural":"single"));i.index=this.options.entriesEl.children().length,i.prefix=this.options.resultsEl.data("prefix"),s&&(this.options.entriesEl.append(s(i)),this.options.exclude.push({id:i.id}),this.options.results=this.options.results.filter((function(e,t){return t!==n.get(0)}))),this.setVisibility_()}}),new N("#glsr-search-users",{action:"search-users",onInit:function(){this.el.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this))},onResultClick:function(t){var n=e(t.currentTarget),i=wp.template("glsr-assigned-users"),s={id:n.data("id"),name:"user_ids[]",url:n.data("url"),title:n.text()};if(i){var r=e(i(s));r.find(".glsr-remove-button").on("click",this.onUnassign_.bind(this)),this.el.find(".glsr-selected-entries").append(r),this.reset_()}this.options.searchEl.focus()}}),new U("a.glsr-toggle-status"),new H,new Z,new ee,new ne,new Y;var t=function(){this.dataset.glsrTrack=this.value};e("select[data-glsr-track]").each(t),e("select[data-glsr-track]").on("change",t),e(".glsr-card.postbox:not(.open)").addClass("closed").find(".glsr-accordion-trigger").attr("aria-expanded",!1).closest(".glsr-nav-view").addClass("collapsed"),e(".glsr-support-step").not(":checked").length<1&&e(".glsr-card-result").removeClass("hidden"),e(".glsr-support-step").on("change",(function(){var t=e(".glsr-support-step").not(":checked").length>0?"add":"remove";e(".glsr-card-result")[t+"Class"]("hidden")})),e(".glsr-card.postbox .glsr-card-heading").on("click",(function(){var t=e(this).parent(),n=t.closest(".glsr-nav-view"),i=t.hasClass("closed")?"remove":"add";t[i+"Class"]("closed").find(".glsr-accordion-trigger").attr("aria-expanded","add"!==i),i=n.find(".glsr-card.postbox").not(".closed").length>0?"remove":"add",n[i+"Class"]("collapsed")})),e(".post-type-site-review #the-list").on("click",".editinline",(function(){var t=e(this).closest("tr");e(':input[data-name="post_content"]').val(""),e(':input[name="_response"]').val(""),setTimeout((function(){e(':input[data-name="post_content"]').val(t.find("._post_content").text()),e(':input[name="_response"]').val(t.find("._response").text())}),50)}));var n,i=e("#glsr-notices .bulk-action-notice").on("click","button.button-link",(function(){e(this).toggleClass("bulk-action-errors-collapsed").attr("aria-expanded",!e(this).hasClass("bulk-action-errors-collapsed")),i.find(".bulk-action-errors").toggleClass("hidden")}));"no"===GLSR.isLicensed&&jQuery(".post-type-site-review.edit-php .page-title-action").after('<a href="'+GLSR.premiumurl+'" target="_blank" id="glsr-premium-button" class="button button-primary">'+GLSR.text.premium+"</a>"),n=GLSR.text.rate,jQuery("#footer-left",".post-type-site-review, .post-type-site-review-form, .post-type-site-review-theme, .dashboard_page_site-reviews-welcome").html(n.replace("%s",'<strong>Site Reviews</strong> <a href="https://wordpress.org/support/view/plugin-reviews/site-reviews?filter=5#new-post" target="_blank">&#9733;&#9733;&#9733;&#9733;&#9733;</a>').replace("%s",'<a href="https://wordpress.org/support/view/plugin-reviews/site-reviews?filter=5#new-post" target="_blank">wordpress.org</a>')),e(".glsr-youtube-button").on("click",(function(){var t=this.dataset.id,n=e(document.createElement("iframe"));n.attr("frameborder","0"),n.attr("allowfullscreen",""),n.attr("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"),t.length>12?n.attr("src","https://www.youtube-nocookie.com/embed/videoseries?list="+t+"&rel=0&showinfo=0&autoplay=1"):n.attr("src","https://www.youtube-nocookie.com/embed/"+t+"?rel=0&showinfo=0&autoplay=1"),e(this).parent().prepend(n)}))}));var hn=function(e){[].forEach.call(document.querySelectorAll('[data-type="site-reviews/'.concat(e,'"] .glsr')),(function(e){var t="glsr-"+window.getComputedStyle(e,null).getPropertyValue("direction");e.classList.add(t)}))};y.on("site-reviews/form",(function(e,t){_.isEmpty(e)||e.error||(hn("form"),GLSR.stars=new(W())("select.glsr-star-rating",{tooltip:!1}))})),y.on("site-reviews/reviews",(function(e,t){_.isEmpty(e)||e.error||hn("reviews")})),y.on("site-reviews/summary",(function(e,t){_.isEmpty(e)||e.error||hn("summary")}))}()}();
assets/scripts/site-reviews.js CHANGED
@@ -1 +1,2 @@
1
- var e,t=function(e){return"json"===this.responseType||!0===this.json?e({message:this.statusText},!1):"text"===this.responseType?e(this.statusText):void console.error(this)},i=function(e){if(0===this.status||this.status>=200&&this.status<300||304===this.status){if("json"===this.responseType)return e(this.response.data,this.response.success);if("text"===this.responseType)return e(this.responseText);if(!0===this.json){var i=JSON.parse(this.response);return e(i.data,i.success)}console.info(this)}else t.bind(this,e)},n=function(e){var t=new FormData,i=Object.prototype.toString.call(e);return"[object FormData]"===i&&(t=e),"[object HTMLFormElement]"===i&&(t=new FormData(e)),"[object Object]"===i&&Object.keys(e).forEach((function(i){return t.append(i,e[i])})),t.append("action",GLSR.action),t.append("_ajax_request",!0),t},s=function(n){(e=new XMLHttpRequest).addEventListener("load",i.bind(e,n)),e.addEventListener("error",t.bind(e,n))},r=function(t){for(var i in(t=t||{})["X-Requested-With"]="XMLHttpRequest",t)t.hasOwnProperty(i)&&e.setRequestHeader(i,t[i])},o={get:function(t,i,n){s(i),e.open("GET",t,!0),e.responseType="text",r(n),e.send()},post:function(t,i,o){s(i),e.open("POST",GLSR.ajaxurl,!0),e.responseType="json",e.json=!0,r(o),e.send(n(t))}},a={},l=function(e,t){var i=a[e]||[],n=[];t&&[].forEach.call(i,(function(e){t!==e.fn&&t!==e.fn.once&&n.push(e)})),n.length?a[e]=n:delete a[e]},c=function(e,t,i){(a[e]||(a[e]=[])).push({fn:t,context:i})},u={events:a,off:l,on:c,once:function(e,t,i){var n=arguments,s=function s(){l(e,s),t.apply(i,n)};s.once=t,c(e,s,i)},trigger:function(e){var t=[].slice.call(arguments,1),i=(a[e]||[]).slice();[].forEach.call(i,(function(e){return e.fn.apply(e.context,t)}))}};function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,i){return t&&h(e.prototype,t),i&&h(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}var f="glsr-hidden",p="glsr-read-more",g="glsr-visible",m=".glsr-hidden-text",y=function(){function e(t){var i=this;d(this,e),(t||document).querySelectorAll(m).forEach((function(e){return i.init(e)}))}return v(e,[{key:"init",value:function(e){if(!e.parentNode.querySelector("."+p)){var t=e.dataset.trigger,i=document.createElement("span"),n=document.createElement("a");n.setAttribute("href","#"),n.innerHTML=e.dataset.showMore,"excerpt"===t&&(n.addEventListener("click",this._onClick.bind(this)),n.setAttribute("data-text",e.dataset.showLess)),"modal"===t&&n.setAttribute("data-excerpt-trigger","glsr-modal"),i.setAttribute("class",p),i.appendChild(n),e.parentNode.insertBefore(i,e.nextSibling)}}},{key:"_onClick",value:function(e){e.preventDefault();var t=e.currentTarget,i=t.parentNode.previousSibling,n=t.dataset.text;i.classList.toggle(f),i.classList.toggle(g),t.dataset.text=t.innerText,t.innerText=n}}]),e}(),b=function(){function e(t){var i=this;d(this,e),this.Form=t,this.counter=0,this.id=-1,this.is_submitting=!1,this.recaptchaEl=t.form.querySelector(".glsr-recaptcha-holder"),this.observer=new MutationObserver((function(e){var t=e.pop();t.target&&"visible"!==t.target.style.visibility&&(i.observer.disconnect(),setTimeout((function(){i.is_submitting||i.Form.enableButton()}),250))}))}return v(e,[{key:"destroy",value:function(){this.counter=0,this.id=-1,this.is_submitting=!1,this.recaptchaEl&&(this.recaptchaEl.innerHTML="")}},{key:"execute",value:function(){var e=this;if(-1!==this.id)return this.counter=0,this._observeMutations(this.id),void grecaptcha.execute(this.id);setTimeout((function(){e.counter++,e._submitForm.call(e.Form,e.counter)}),1e3)}},{key:"render",value:function(){this.Form.form.onsubmit=null,this.destroy(),this._renderWait()}},{key:"reset",value:function(){this.counter=0,this.is_submitting=!1,-1!==this.id&&grecaptcha.reset(this.id)}},{key:"_observeMutations",value:function(e){var t=window.___grecaptcha_cfg.clients[e];for(var i in t)if(t.hasOwnProperty(i)&&"[object String]"===Object.prototype.toString.call(t[i])){var n=document.querySelector("iframe[name=c-"+t[i]+"]");if(n){this.observer.observe(n.parentElement.parentElement,{attributeFilter:["style"],attributes:!0});break}}}},{key:"_renderWait",value:function(){var e=this;this.recaptchaEl&&setTimeout((function(){if("undefined"==typeof grecaptcha||void 0===grecaptcha.render)return e._renderWait();e.id=grecaptcha.render(e.recaptchaEl,{callback:e._submitForm.bind(e.Form,e.counter),"expired-callback":e.reset.bind(e),isolated:!0},!0)}),250)}},{key:"_submitForm",value:function(e){if(this.recaptcha.is_submitting=!0,!this.useAjax)return this.disableButton(),void this.form.submit();this.submitForm(e)}}]),e}(),w={classNames:{active:"gl-active",base:"gl-star-rating",selected:"gl-selected"},clearable:!0,maxStars:10,prebuilt:!1,stars:null,tooltip:"Select a Rating"},E=function(e,t,i){e.classList[t?"add":"remove"](i)},_=function(e){var t=document.createElement("span");for(var i in e=e||{})t.setAttribute(i,e[i]);return t},L=function(e,t,i){var n=_(i);return e.parentNode.insertBefore(n,t?e.nextSibling:e),n},k=function e(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var s={};return i.forEach((function(t){Object.keys(t||{}).forEach((function(n){if(void 0!==i[0][n]){var r=t[n];"Object"!==S(r)||"Object"!==S(s[n])?s[n]=r:s[n]=e(s[n],r)}}))})),s},S=function(e){return{}.toString.call(e).slice(8,-1)},x="undefined"!=typeof window?window:{screen:{},navigator:{}},T=(x.matchMedia||function(){return{matches:!1}}).bind(x),R=!1,A={get passive(){return R=!0}},M=function(){};x.addEventListener&&x.addEventListener("p",M,A),x.removeEventListener&&x.removeEventListener("p",M,!1);var F=R,N="ontouchstart"in x;N||"TouchEvent"in x&&T("(any-pointer: coarse)").matches;x.navigator.maxTouchPoints;var G=x.navigator.userAgent||"";T("(pointer: coarse)").matches&&/iPad|Macintosh/.test(G)&&Math.min(x.screen.width||0,x.screen.height||0);(T("(pointer: coarse)").matches||!T("(pointer: fine)").matches&&N)&&/Windows.*Firefox/.test(G),T("(any-pointer: fine)").matches||T("(any-hover: hover)").matches;var P=function(){function e(t,i){var n,s,r;d(this,e),this.direction=window.getComputedStyle(t,null).getPropertyValue("direction"),this.el=t,this.events={change:this.onChange.bind(this),keydown:this.onKeyDown.bind(this),mousedown:this.onPointerDown.bind(this),mouseleave:this.onPointerLeave.bind(this),mousemove:this.onPointerMove.bind(this),reset:this.onReset.bind(this),touchend:this.onPointerDown.bind(this),touchmove:this.onPointerMove.bind(this)},this.indexActive=null,this.indexSelected=null,this.props=i,this.tick=null,this.ticking=!1,this.values=function(e){var t=[];return[].forEach.call(e.options,(function(e){var i=parseInt(e.value,10)||0;i>0&&t.push({index:e.index,text:e.text,value:i})})),t.sort((function(e,t){return e.value-t.value}))}(t),this.widgetEl=null,this.el.widget&&this.el.widget.destroy(),n=this.values.length,s=1,r=this.props.maxStars,/^\d+$/.test(n)&&s<=n&&n<=r?this.build():this.destroy()}return v(e,[{key:"build",value:function(){this.destroy(),this.buildWidget(),this.selectValue(this.indexSelected=this.selected(),!1),this.handleEvents("add"),this.el.widget=this}},{key:"buildWidget",value:function(){var e,t,i=this;this.props.prebuilt?(e=this.el.parentNode,t=e.querySelector("."+this.props.classNames.base+"--stars")):((e=L(this.el,!1,{class:this.props.classNames.base})).appendChild(this.el),t=L(this.el,!0,{class:this.props.classNames.base+"--stars"}),this.values.forEach((function(e,n){var s=_({"data-index":n,"data-value":e.value});"function"==typeof i.props.stars&&i.props.stars.call(i,s,e,n),[].forEach.call(s.children,(function(e){return e.style.pointerEvents="none"})),t.innerHTML+=s.outerHTML}))),e.dataset.starRating="",e.classList.add(this.props.classNames.base+"--"+this.direction),this.props.tooltip&&t.setAttribute("role","tooltip"),this.widgetEl=t}},{key:"changeIndexTo",value:function(e,t){var i=this;if(this.indexActive!==e||t){if([].forEach.call(this.widgetEl.children,(function(t,n){E(t,n<=e,i.props.classNames.active),E(t,n===i.indexSelected,i.props.classNames.selected)})),this.widgetEl.setAttribute("data-rating",e+1),"function"==typeof this.props.stars||this.props.prebuilt||(this.widgetEl.classList.remove("s"+10*(this.indexActive+1)),this.widgetEl.classList.add("s"+10*(e+1))),this.props.tooltip){var n,s=e<0?this.props.tooltip:null===(n=this.values[e])||void 0===n?void 0:n.text;this.widgetEl.setAttribute("aria-label",s)}this.indexActive=e}this.ticking=!1}},{key:"destroy",value:function(){this.indexActive=null,this.indexSelected=this.selected();var e=this.el.parentNode;e.classList.contains(this.props.classNames.base)&&(this.props.prebuilt?(this.widgetEl=e.querySelector("."+this.props.classNames.base+"--stars"),e.classList.remove(this.props.classNames.base+"--"+this.direction),delete e.dataset.starRating):e.parentNode.replaceChild(this.el,e),this.handleEvents("remove")),delete this.el.widget}},{key:"eventListener",value:function(e,t,i,n){var s=this;i.forEach((function(i){return e[t+"EventListener"](i,s.events[i],n||!1)}))}},{key:"handleEvents",value:function(e){var t=this.el.closest("form");t&&"FORM"===t.tagName&&this.eventListener(t,e,["reset"]),this.eventListener(this.el,e,["change"]),"add"===e&&this.el.disabled||(this.eventListener(this.el,e,["keydown"]),this.eventListener(this.widgetEl,e,["mousedown","mouseleave","mousemove","touchend","touchmove"],!!F&&{passive:!1}))}},{key:"indexFromEvent",value:function(e){var t,i,n=(null===(t=e.touches)||void 0===t?void 0:t[0])||(null===(i=e.changedTouches)||void 0===i?void 0:i[0])||e,s=document.elementFromPoint(n.clientX,n.clientY);return[].slice.call(s.parentNode.children).indexOf(s)}},{key:"onChange",value:function(){this.changeIndexTo(this.selected(),!0)}},{key:"onKeyDown",value:function(e){var t=e.key.slice(5);if(~["Left","Right"].indexOf(t)){var i="Left"===t?-1:1;"rtl"===this.direction&&(i*=-1);var n=this.values.length-1,s=Math.min(Math.max(this.selected()+i,-1),n);this.selectValue(s,!0)}}},{key:"onPointerDown",value:function(e){e.preventDefault();var t=this.indexFromEvent(e);this.props.clearable&&t===this.indexSelected&&(t=-1),this.selectValue(t,!0)}},{key:"onPointerLeave",value:function(e){var t=this;e.preventDefault(),cancelAnimationFrame(this.tick),requestAnimationFrame((function(){return t.changeIndexTo(t.indexSelected)}))}},{key:"onPointerMove",value:function(e){var t=this;e.preventDefault(),this.ticking||(this.tick=requestAnimationFrame((function(){return t.changeIndexTo(t.indexFromEvent(e))})),this.ticking=!0)}},{key:"onReset",value:function(){var e,t=this.valueIndex(null===(e=this.el.querySelector("[selected]"))||void 0===e?void 0:e.value);this.selectValue(t||-1,!1)}},{key:"selected",value:function(){return this.valueIndex(this.el.value)}},{key:"selectValue",value:function(e,t){var i;this.el.value=(null===(i=this.values[e])||void 0===i?void 0:i.value)||"",this.indexSelected=this.selected(),!1===t?this.changeIndexTo(this.selected(),!0):this.el.dispatchEvent(new Event("change"))}},{key:"valueIndex",value:function(e){return this.values.findIndex((function(t){return t.value===+e}))}}]),e}(),q=function(){function e(t,i){d(this,e),this.destroy=this.destroy.bind(this),this.props=i,this.rebuild=this.rebuild.bind(this),this.selector=t,this.widgets=[],this.build()}return v(e,[{key:"build",value:function(){var e=this;this.queryElements(this.selector).forEach((function(t){var i=k(w,e.props,JSON.parse(t.getAttribute("data-options")));"SELECT"!==t.tagName||t.widget||(!i.prebuilt&&t.parentNode.classList.contains(i.classNames.base)&&e.unwrap(t),e.widgets.push(new P(t,i)))}))}},{key:"destroy",value:function(){this.widgets.forEach((function(e){return e.destroy()})),this.widgets=[]}},{key:"queryElements",value:function(e){return"HTMLSelectElement"===S(e)?[e]:"NodeList"===S(e)?[].slice.call(e):"String"===S(e)?[].slice.call(document.querySelectorAll(e)):[]}},{key:"rebuild",value:function(){this.destroy(),this.build()}},{key:"unwrap",value:function(e){var t=e.parentNode,i=t.parentNode;i.insertBefore(e,t),i.removeChild(t)}}]),e}();"undefined"==typeof arguments||arguments;var O=function(e,t,i){e&&t.split(" ").forEach((function(t){e.classList[i?"add":"remove"](t)}))},j=function(e){return"."+e.trim().split(" ").join(".")},C=function(e){var t='input[name="'+e.getAttribute("name")+'"]:checked';return e.validation.form.querySelectorAll(t).length},H={email:{fn:function(e){return!e||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}},max:{fn:function(e,t){return!e||("checkbox"===this.type?C(this)<=parseInt(t):parseFloat(e)<=parseFloat(t))}},maxlength:{fn:function(e,t){return!e||e.length<=parseInt(t)}},min:{fn:function(e,t){return!e||("checkbox"===this.type?C(this)>=parseInt(t):parseFloat(e)>=parseFloat(t))}},minlength:{fn:function(e,t){return!e||e.length>=parseInt(t)}},number:{fn:function(e){return!e||!isNaN(parseFloat(e))},priority:2},pattern:{fn:function(e,t){var i=t.match(new RegExp("^/(.*?)/([gimy]*)$"));return!e||new RegExp(i[1],i[2]).test(e)}},required:{fn:function(e){return"radio"===this.type||"checkbox"===this.type?C(this):void 0!==e&&""!==e},priority:99,halt:!0},tel:{fn:function(e){var t=e.replace(/[^0-9]/g,"").length;return!e||4<=t&&15>=t&&new RegExp("^[+]?[\\d\\s()-]*$").test(e)}},url:{fn:function(e){return!e||new RegExp("^(https?)://([\\p{L}\\p{N}\\p{S}\\-_.])+(.?([\\p{L}\\p{N}]|xn--[\\p{L}\\p{N}\\-]+)+.?)(:[0-9]+)?(?:/(?:[\\p{L}\\p{N}\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*(?:\\?(?:[\\p{L}\\p{N}\\-._~!$&'\\[\\]()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?(?:#(?:[\\p{L}\\p{N}\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?$","iu").test(e)}}},I=["required","max","maxlength","min","minlength","pattern"],D=function(){function e(t){d(this,e),this.config=GLSR.validationconfig,this.fields=[],this.form=t,this.form.setAttribute("novalidate",""),this.strings=GLSR.validationstrings,this.validateEvent=this._onChange.bind(this)}return v(e,[{key:"destroy",value:function(){for(this.reset();this.fields.length;){var e=this.fields.shift();this._removeEvent(e.input),delete e.input.validation}}},{key:"init",value:function(){var e=this;this.form.querySelectorAll("input:not([type^=hidden]):not([type^=submit]), select, textarea, [data-glsr-validate]").forEach((function(t){e.fields.find((function(e){return e.input.name===t.name&&!t.name.endsWith("[]")}))||"none"!==t.closest(j(e.config.field)).style.display&&e.fields.push(e._initField(t))}))}},{key:"reset",value:function(){for(var e in this.fields)if(this.fields.hasOwnProperty(e)){this.fields[e].errorElements=null;var t=this.fields[e].input.closest(j(this.config.field));O(this.fields[e].input,this.config.input_error,!1),O(this.fields[e].input,this.config.input_valid,!1),O(t,this.config.field_error,!1),O(t,this.config.field_valid,!1)}}},{key:"setErrors",value:function(e,t){e.hasOwnProperty("validation")&&this._initField(e),e.validation.errors=t}},{key:"toggleError",value:function(e,t){var i=e.input.closest(j(this.config.field));if(O(e.input,this.config.input_error,t),O(e.input,this.config.input_valid,!t),i){O(i,this.config.field_error,t),O(i,this.config.field_valid,!t);var n=i.querySelector(j(this.config.field_message));n.innerHTML=t?e.errors.join("<br>"):"",n.style.display=t?"":"none"}}},{key:"validate",value:function(e){var t=!0,i=this.fields;for(var n in e instanceof HTMLElement&&(i=[e.validation]),i)if(i.hasOwnProperty(n)){var s=i[n];this._validateField(s)?this.toggleError(s,!1):(t=!1,this.toggleError(s,!0))}return t}},{key:"_addEvent",value:function(e){e.addEventListener(this._getEventName(e),this.validateEvent)}},{key:"_addValidators",value:function(e,t,i){var n=this;[].forEach.call(e,(function(e){var s=e.name.replace("data-","");~I.indexOf(s)?n._addValidatorToField(t,i,s,e.value):"type"===e.name&&n._addValidatorToField(t,i,e.value)}))}},{key:"_addValidatorToField",value:function(e,t,i,n){if(H[i]&&(H[i].name=i,e.push(H[i]),n)){var s="pattern"===i?[n]:n.split(",");s.unshift(null),t[i]=s}}},{key:"_onChange",value:function(e){this.validate(e.currentTarget)}},{key:"_removeEvent",value:function(e){e.removeEventListener(this._getEventName(e),this.validateEvent)}},{key:"_getEventName",value:function(e){return~["radio","checkbox"].indexOf(e.getAttribute("type"))||"SELECT"===e.nodeName?"change":"input"}},{key:"_initField",value:function(e){var t=this,i={},n=[];return null!==e.offsetParent&&(this._addValidators(e.attributes,n,i),this._sortValidators(n),this._addEvent(e)),e.validation={form:this.form,input:e,params:i,validate:function(){return t.validate(e)},validators:n}}},{key:"_sortValidators",value:function(e){e.sort((function(e,t){return(t.priority||1)-(e.priority||1)}))}},{key:"_validateField",value:function(e){var t=[],i=!0;for(var n in e.validators)if(e.validators.hasOwnProperty(n)){var s=e.validators[n],r=e.params[s.name]?e.params[s.name]:[];if(r[0]=e.input.value,!s.fn.apply(e.input,r)){i=!1;var o=this.strings[s.name];if(t.push(o.replace(/(\%s)/g,r[1])),!0===s.halt)break}}return e.errors=t,i}}]),e}(),B=function(){function e(t,i){d(this,e),this.button=i,this.config=GLSR.validationconfig,this.events={submit:this._onSubmit.bind(this)},this.form=t,this.isActive=!1,this.recaptcha=new b(this),this.stars=null,this.strings=GLSR.validationstrings,this.useAjax=!t.classList.contains("no-ajax"),this.validation=new D(t)}return v(e,[{key:"destroy",value:function(){this._destroyForm(),this._destroyRecaptcha(),this._destroyStarRatings(),this.isActive=!1}},{key:"disableButton",value:function(){this.button.setAttribute("aria-busy","true"),this.button.setAttribute("disabled","")}},{key:"enableButton",value:function(){this.button.setAttribute("aria-busy","false"),this.button.removeAttribute("disabled")}},{key:"init",value:function(){this.isActive||(this._initForm(),this._initStarRatings(),this._initRecaptcha(),this.isActive=!0)}},{key:"submitForm",value:function(e){this.disableButton(),this.form[GLSR.nameprefix+"[_counter]"].value=e||0,GLSR.ajax.post(this.form,this._handleResponse.bind(this))}},{key:"_destroyForm",value:function(){this.form.removeEventListener("submit",this.events.submit),this._resetErrors(),this.validation.destroy()}},{key:"_destroyRecaptcha",value:function(){this.recaptcha.destroy()}},{key:"_destroyStarRatings",value:function(){this.stars&&this.stars.destroy()}},{key:"_handleResponse",value:function(e,t){var i=!0===t;"unset"!==e.recaptcha?("reset"===e.recaptcha&&this.recaptcha.reset(),i&&(this.recaptcha.reset(),this.form.reset()),this._showFieldErrors(e.errors),this._showResults(e.message,i),this.enableButton(),GLSR.Event.trigger("site-reviews/form/handle",e,this.form),e.form=this.form,document.dispatchEvent(new CustomEvent("site-reviews/after/submission",{detail:e})),i&&""!==e.redirect&&(window.location=e.redirect)):this.recaptcha.execute()}},{key:"_initForm",value:function(){this._destroyForm(),this.form.addEventListener("submit",this.events.submit),this.validation.init()}},{key:"_initRecaptcha",value:function(){this.recaptcha.render()}},{key:"_initStarRatings",value:function(){null!==this.stars?this.stars.rebuild():this.stars=new q(this.form.querySelectorAll(".glsr-field-rating select"),GLSR.stars)}},{key:"_onSubmit",value:function(e){if(!this.validation.validate())return e.preventDefault(),void this._showResults(this.strings.errors,!1);this._resetErrors(),(this.form["g-recaptcha-response"]&&""===this.form["g-recaptcha-response"].value||this.useAjax)&&(e.preventDefault(),this.submitForm())}},{key:"_resetErrors",value:function(){O(this.form,this.config.form_error,!1),this._showResults("",null),this.validation.reset()}},{key:"_showFieldErrors",value:function(e){if(e)for(var t in e)if(e.hasOwnProperty(t)){var i=GLSR.nameprefix?GLSR.nameprefix+"["+t+"]":t,n=this.form.querySelector('[name="'+i+'"]');n&&(this.validation.setErrors(n,e[t]),this.validation.toggleError(n.validation,"add"))}}},{key:"_showResults",value:function(e,t){var i=this.form.querySelector(j(this.config.form_message));null!==i&&(O(this.form,this.config.form_error,!1===t),O(i,this.config.form_message_failed,!1===t),O(i,this.config.form_message_success,!0===t),i.innerHTML=e)}}]),e}();var V=!1;if("undefined"!=typeof window){var W={get passive(){V=!0}};window.addEventListener("testPassive",null,W),window.removeEventListener("testPassive",null,W)}var Y="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),$=[],K=!1,J=-1,X=void 0,z=void 0,Q=function(e){return $.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},U=function(e){var t=e||window.event;return!!Q(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Z=function(e,t){if(e){if(!$.some((function(t){return t.targetElement===e}))){var i={targetElement:e,options:t||{}};$=[].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}($),[i]),Y?(e.ontouchstart=function(e){1===e.targetTouches.length&&(J=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var i=e.targetTouches[0].clientY-J;!Q(e.target)&&(t&&0===t.scrollTop&&i>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&i<0?U(e):e.stopPropagation())}(t,e)},K||(document.addEventListener("touchmove",U,V?{passive:!1}:void 0),K=!0)):function(e){if(void 0===z){var t=!!e&&!0===e.reserveScrollBarGap,i=window.innerWidth-document.documentElement.clientWidth;t&&i>0&&(z=document.body.style.paddingRight,document.body.style.paddingRight=i+"px")}void 0===X&&(X=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},ee=function(){Y?($.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),K&&(document.removeEventListener("touchmove",U,V?{passive:!1}:void 0),K=!1),J=-1):(void 0!==z&&(document.body.style.paddingRight=z,z=void 0),void 0!==X&&(document.body.style.overflow=X,X=void 0)),$=[]},te=["[contenteditable]",'[tabindex]:not([tabindex^="-"])',"a[href]","button:not([disabled]):not([aria-hidden])",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])"],ie=function(){function e(t){var i=t.closeTrigger,n=void 0===i?"data-glsr-close":i,s=t.onClose,r=void 0===s?function(){}:s,o=t.onOpen,a=void 0===o?function(){}:o,l=t.openClass,c=void 0===l?"is-open":l,u=t.openTrigger,h=void 0===u?"data-glsr-trigger":u,v=t.targetModalId,f=void 0===v?"glsr-modal":v,p=t.triggers,g=void 0===p?[]:p;d(this,e),this.modal=document.getElementById(f),this.config={openTrigger:h,closeTrigger:n,openClass:c,onOpen:a,onClose:r},this.events={mouseup:this._onClick.bind(this),keydown:this._onKeydown.bind(this),touchstart:this._onClick.bind(this)},g.length>0&&this._registerTriggers(g)}return v(e,[{key:"_closeModal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(t.preventDefault(),t.stopPropagation()),this.modal.setAttribute("aria-hidden","true"),this._eventHandler("remove"),ee(),this.activeElement&&this.activeElement.focus&&this.activeElement.focus();var i=function i(){e.modal.classList.remove(e.config.openClass),e.modal.removeEventListener("animationend",i,!1),e.config.onClose(e.modal,e.activeElement,t)};this.modal.addEventListener("animationend",i,!1),GLSR.Event.trigger("site-reviews/modal/close",this.modal,this.activeElement,t)}},{key:"_closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this._closeModal()}},{key:"_eventHandler",value:function(e){this._eventListener(this.modal,e,["mouseup","touchstart"]),this._eventListener(document,e,["keydown"])}},{key:"_eventListener",value:function(e,t,i){var n=this;i.forEach((function(i){return e[t+"EventListener"](i,n.events[i])}))}},{key:"_getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(te);return Array.prototype.slice.call(e)}},{key:"_onClick",value:function(e){e.target.hasAttribute(this.config.closeTrigger)&&this._closeModal(e)}},{key:"_onKeydown",value:function(e){27===e.keyCode&&this._closeModal(e),9===e.keyCode&&this._retainFocus(e)}},{key:"_openModal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.activeElement=document.activeElement,t&&(t.preventDefault(),this.activeElement=t.currentTarget),this.config.onOpen(this.modal,this.activeElement,t),this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),Z(this.modal.querySelector("[data-glsr-modal]")),this._eventHandler("add");var i=function t(){e.modal.removeEventListener("animationend",t,!1),e._setFocusToFirstNode()};this.modal.addEventListener("animationend",i,!1),GLSR.Event.trigger("site-reviews/modal/open",this.modal,this.activeElement,t)}},{key:"_registerTriggers",value:function(e){var t=this;e.filter(Boolean).forEach((function(e){e.triggerModal&&e.removeEventListener("click",e.triggerModal),e.triggerModal=t._openModal.bind(t),e.addEventListener("click",e.triggerModal)}))}},{key:"_retainFocus",value:function(e){var t=this._getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var i=t.indexOf(document.activeElement);e.shiftKey&&0===i&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&i===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}},{key:"_setFocusToFirstNode",value:function(){var e=this,t=this._getFocusableNodes();if(0!==t.length){var i=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));i.length>0&&i[0].focus(),0===i.length&&t[0].focus()}}}]),e}(),ne={},se=function(e,t){var i={};return e.forEach((function(e){var n=e.attributes[t].value;void 0===i[n]&&(i[n]=[]),i[n].push(e)})),i},re={init:function(e){var t=Object.assign({},{openTrigger:"data-glsr-trigger"},e),i=Array.prototype.slice.call(document.querySelectorAll("[".concat(t.openTrigger,"]"))),n=se(i,t.openTrigger);return Object.keys(n).forEach((function(e){t.targetModalId=e,t.triggers=n[e],ne[e]=new ie(t)})),ne},open:function(e,t){var i=t||{};i.targetModalId=e,ne[e]&&ne[e]._eventHandler("remove"),ne[e]=new ie(i),ne[e]._openModal()},close:function(e){if(e)ne[e]._closeModalById(e);else for(var t in ne)ne[t].closeModal()}},oe="glsr-hide",ae=16,le=468,ce="button.glsr-button-loadmore",ue=".glsr-pagination a.page-numbers",de=".glsr-reviews, [data-reviews]",he=function(){function e(t,i){d(this,e),this.events={button:{click:this._onLoadMore.bind(this)},link:{click:this._onPaginate.bind(this)},window:{popstate:this._onPopstate.bind(this)}},this.paginationEl=i,this.reviewsEl=t.querySelector(de),this.wrapperEl=t}return v(e,[{key:"destroy",value:function(){this._eventHandler("remove")}},{key:"init",value:function(){this._eventHandler("add");var e=this.paginationEl.querySelector(".current");if(e){var t=this._data(e),i=e.nextElementSibling;t&&i&&2==+i.dataset.page&&GLSR.urlparameter&&window.history.replaceState(t,"",window.location)}}},{key:"_data",value:function(e){try{for(var t=JSON.parse(JSON.stringify(this.paginationEl.dataset)),i={},n=0,s=Object.keys(t);n<s.length;n++){var r=s[n],o=void 0;try{o=JSON.parse(t[r])}catch(e){o=t[r]}i["".concat(GLSR.nameprefix,"[atts][").concat(r,"]")]=o}return i["".concat(GLSR.nameprefix,"[_action]")]="fetch-paged-reviews",i["".concat(GLSR.nameprefix,"[page]")]=e.dataset.page||1,i["".concat(GLSR.nameprefix,"[schema]")]=!1,i["".concat(GLSR.nameprefix,"[url]")]=e.href||location.href,i}catch(e){return console.error("Invalid pagination config."),!1}}},{key:"_eventHandler",value:function(e){var t=this;this._eventListener(window,e,this.events.window),this.wrapperEl.querySelectorAll(ce).forEach((function(i){t._eventListener(i,e,t.events.button)})),this.wrapperEl.querySelectorAll(ue).forEach((function(i){t._eventListener(i,e,t.events.link)}))}},{key:"_eventListener",value:function(e,t,i){Object.keys(i).forEach((function(n){return e[t+"EventListener"](n,i[n])}))}},{key:"_handleLoadMore",value:function(e,t,i,n){n?(e.setAttribute("aria-busy","false"),e.removeAttribute("disabled"),this.destroy(),this.paginationEl.innerHTML=i.pagination,this.reviewsEl.insertAdjacentHTML("beforeend",i.reviews),this.init(),GLSR.Event.trigger("site-reviews/pagination/handle",i,this)):window.location=location}},{key:"_handlePagination",value:function(e,t,i,n){n?(this._paginate(i),GLSR.urlparameter&&window.history.pushState(t,"",e.href)):window.location=e.href}},{key:"_handlePopstate",value:function(e,t,i){i?this._paginate(t):console.error(t)}},{key:"_onLoadMore",value:function(e){var t=e.currentTarget,i=this._data(t);i&&(t.setAttribute("aria-busy","true"),t.setAttribute("disabled",""),e.preventDefault(),GLSR.ajax.post(i,this._handleLoadMore.bind(this,t,i)))}},{key:"_onPaginate",value:function(e){var t=e.currentTarget,i=this._data(t);i&&(this.wrapperEl.classList.add(oe),e.preventDefault(),GLSR.ajax.post(i,this._handlePagination.bind(this,t,i)))}},{key:"_onPopstate",value:function(e){GLSR.Event.trigger("site-reviews/pagination/popstate",e,this),e.state&&e.state["".concat(GLSR.nameprefix,"[_action]")]&&(this.wrapperEl.classList.add(oe),GLSR.ajax.post(e.state,this._handlePopstate.bind(this,e.state)))}},{key:"_paginate",value:function(e){this.destroy(),this.paginationEl.innerHTML=e.pagination,this.reviewsEl.innerHTML=e.reviews,this.init(),this._scrollToTop(),this.wrapperEl.classList.remove(oe),GLSR.Event.trigger("site-reviews/pagination/handle",e,this)}},{key:"_scrollStep",value:function(e){var t=Math.min(1,(window.performance.now()-e.startTime)/le),i=.5*(1-Math.cos(Math.PI*t)),n=e.startY+(e.endY-e.startY)*i;window.scroll(0,e.offset+n),n!==e.endY&&window.requestAnimationFrame(this._scrollStep.bind(this,e))}},{key:"_scrollToTop",value:function(){var e=ae;[].forEach.call(GLSR.ajaxpagination,(function(t){var i=document.querySelector(t);i&&"fixed"===window.getComputedStyle(i).getPropertyValue("position")&&(e+=i.clientHeight)}));var t=this.reviewsEl.getBoundingClientRect().top-e;t>0||this._scrollStep({endY:t,offset:window.pageYOffset,startTime:window.performance.now(),startY:this.reviewsEl.scrollTop})}}]),e}(),ve="site-reviews/excerpts/init",fe="site-reviews/forms/init",pe="site-reviews/init",ge="site-reviews/modal/init",me="site-reviews/pagination/init";window.hasOwnProperty("GLSR")||(window.GLSR={}),window.GLSR.ajax=o,window.GLSR.forms=[],window.GLSR.pagination=[],window.GLSR.Event=u,window.GLSR.Modal=re,u.on(ve,(function(e){new y(e)})),u.on(fe,(function(){GLSR.forms.forEach((function(e){return e.destroy()})),GLSR.forms=[],document.querySelectorAll("form.glsr-review-form").forEach((function(e){var t=e.querySelector("[type=submit]");if(t){var i=new B(e,t);i.init(),GLSR.forms.push(i)}}))})),u.on(ge,(function(){var e="glsr-modal__content",t="glsr-modal__review";window.GLSR.Modal.init({onClose:function(i,n,s){i.querySelector("."+e).innerHTML="",i.classList.remove(t)},onOpen:function(i,n,s){var r=n.closest(".glsr").cloneNode(!0),o=n.closest(".glsr-review").cloneNode(!0);r.innerHTML="",r.appendChild(o),i.querySelector("."+e).appendChild(r),i.classList.add(t)},openTrigger:"data-excerpt-trigger"})})),u.on(me,(function(){GLSR.pagination.forEach((function(e){return e.destroy()})),GLSR.pagination=[],document.querySelectorAll(".glsr").forEach((function(e){var t=e.querySelector(".glsr-pagination");if(t&&(t.classList.contains("glsr-ajax-loadmore")||t.classList.contains("glsr-ajax-pagination"))){var i=new he(e,t);i.init(),GLSR.pagination.push(i)}}))})),u.on(pe,(function(){document.querySelectorAll(".glsr").forEach((function(e){var t="glsr-"+window.getComputedStyle(e,null).getPropertyValue("direction");e.classList.add(t)})),u.trigger(ve),u.trigger(fe),u.trigger(ge),u.trigger(me)})),u.on("site-reviews/pagination/handle",(function(e,t){u.trigger(ve,t.wrapperEl),u.trigger(ge)})),document.addEventListener("DOMContentLoaded",(function(){u.trigger(pe)}));
 
1
+ /*! For license information please see site-reviews.js.LICENSE.txt */
2
+ !function(){"use strict";var t,e={533:function(){var t,e=function(e,i,n){o(i),t.open("GET",e,!0),t.responseType="text",a(n),t.send()},i=function(e,i,n){o(i),t.open("POST",GLSR.ajaxurl,!0),t.responseType="json",t.json=!0,a(n),t.send(r(e))},n=function(t){return"json"===this.responseType||!0===this.json?t({message:this.statusText},!1):"text"===this.responseType?t(this.statusText):void console.error(this)},s=function(t){if(0===this.status||this.status>=200&&this.status<300||304===this.status){if("json"===this.responseType)return t(this.response.data,this.response.success);if("text"===this.responseType)return t(this.responseText);if(!0===this.json){var e=JSON.parse(this.response);return t(e.data,e.success)}console.info(this)}else n.bind(this,t)},r=function(t){var e=new FormData,i=Object.prototype.toString.call(t);return"[object FormData]"===i&&(e=t),"[object HTMLFormElement]"===i&&(e=new FormData(t)),"[object Object]"===i&&Object.keys(t).forEach((function(i){return e.append(i,t[i])})),e.append("action",GLSR.action),e.append("_ajax_request",!0),e},o=function(e){(t=new XMLHttpRequest).addEventListener("load",s.bind(t,e)),t.addEventListener("error",n.bind(t,e))},a=function(e){for(var i in(e=e||{})["X-Requested-With"]="XMLHttpRequest",e)e.hasOwnProperty(i)&&t.setRequestHeader(i,e[i])},l={get:e,post:i},c={},u=function(t,e){var i=c[t]||[],n=[];e&&[].forEach.call(i,(function(t){e!==t.fn&&e!==t.fn.once&&n.push(t)})),n.length?c[t]=n:delete c[t]},d=function(t,e,i){(c[t]||(c[t]=[])).push({fn:e,context:i})},h=function(t,e,i){var n=arguments,s=function s(){u(t,s),e.apply(i,n)};s.once=e,d(t,s,i)},f=function(t){var e=[].slice.call(arguments,1),i=(c[t]||[]).slice();[].forEach.call(i,(function(t){return t.fn.apply(t.context,e)}))},v={events:c,off:u,on:d,once:h,trigger:f};function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e,i){return e&&g(t.prototype,e),i&&g(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var y={hidden:"glsr-hidden",readmore:"glsr-read-more",visible:"glsr-visible"},b={hiddenText:".glsr-hidden-text"},w=function(){function t(e){var i=this;p(this,t),(e||document).querySelectorAll(b.hiddenText).forEach((function(t){return i.init(t)}))}return m(t,[{key:"init",value:function(t){if(!t.parentNode.querySelector("."+y.readmore)){var e=t.dataset.trigger,i=document.createElement("span"),n=document.createElement("a");n.setAttribute("href","#"),n.innerHTML=t.dataset.showMore,"excerpt"===e&&(n.addEventListener("click",this._onClick.bind(this)),n.setAttribute("data-text",t.dataset.showLess)),"modal"===e&&n.setAttribute("data-excerpt-trigger","glsr-modal"),i.setAttribute("class",y.readmore),i.appendChild(n),t.parentNode.insertBefore(i,t.nextSibling)}}},{key:"_onClick",value:function(t){t.preventDefault();var e=t.currentTarget,i=e.parentNode.previousSibling,n=e.dataset.text;i.classList.toggle(y.hidden),i.classList.toggle(y.visible),e.dataset.text=e.innerText,e.innerText=n}}]),t}(),E=w,_=function(){function t(e){var i=this;p(this,t),this.Form=e,this.counter=0,this.id=-1,this.is_submitting=!1,this.recaptchaEl=e.form.querySelector(".glsr-recaptcha-holder"),this.observer=new MutationObserver((function(t){var e=t.pop();e.target&&"visible"!==e.target.style.visibility&&(i.observer.disconnect(),setTimeout((function(){i.is_submitting||i.Form.enableButton()}),250))}))}return m(t,[{key:"destroy",value:function(){this.counter=0,this.id=-1,this.is_submitting=!1,this.recaptchaEl&&(this.recaptchaEl.innerHTML="")}},{key:"execute",value:function(){var t=this;if(-1!==this.id)return this.counter=0,this._observeMutations(this.id),void grecaptcha.execute(this.id);setTimeout((function(){t.counter++,t._submitForm.call(t.Form,t.counter)}),1e3)}},{key:"render",value:function(){this.Form.form.onsubmit=null,this.destroy(),this._renderWait()}},{key:"reset",value:function(){this.counter=0,this.is_submitting=!1,-1!==this.id&&grecaptcha.reset(this.id)}},{key:"_observeMutations",value:function(t){var e=window.___grecaptcha_cfg.clients[t];for(var i in e)if(e.hasOwnProperty(i)&&"[object String]"===Object.prototype.toString.call(e[i])){var n=document.querySelector("iframe[name=c-"+e[i]+"]");if(n){this.observer.observe(n.parentElement.parentElement,{attributeFilter:["style"],attributes:!0});break}}}},{key:"_renderWait",value:function(){var t=this;this.recaptchaEl&&setTimeout((function(){if("undefined"==typeof grecaptcha||void 0===grecaptcha.render)return t._renderWait();t.id=grecaptcha.render(t.recaptchaEl,{callback:t._submitForm.bind(t.Form,t.counter),"expired-callback":t.reset.bind(t),isolated:!0},!0)}),250)}},{key:"_submitForm",value:function(t){if(this.recaptcha.is_submitting=!0,!this.useAjax)return this.disableButton(),void this.form.submit();this.submitForm(t)}}]),t}(),L=_;const S={classNames:{active:"gl-active",base:"gl-star-rating",selected:"gl-selected"},clearable:!0,maxStars:10,prebuilt:!1,stars:null,tooltip:"Select a Rating"},x=(t,e,i)=>{t.classList[e?"add":"remove"](i)},k=t=>{const e=document.createElement("span");t=t||{};for(let i in t)e.setAttribute(i,t[i]);return e},O=(t,e,i)=>/^\d+$/.test(t)&&e<=t&&t<=i,T=(t,e,i)=>{const n=k(i);return t.parentNode.insertBefore(n,e?t.nextSibling:t),n},R=(...t)=>{const e={};return t.forEach((i=>{Object.keys(i||{}).forEach((n=>{if(void 0===t[0][n])return;const s=i[n];"Object"!==A(s)||"Object"!==A(e[n])?e[n]=s:e[n]=R(e[n],s)}))})),e},A=t=>({}.toString.call(t).slice(8,-1)),M=t=>{const e=[];return[].forEach.call(t.options,(t=>{const i=parseInt(t.value,10)||0;i>0&&e.push({index:t.index,text:t.text,value:i})})),e.sort(((t,e)=>t.value-e.value))};var F="undefined"!=typeof window?window:{screen:{},navigator:{}},N=(F.matchMedia||function(){return{matches:!1}}).bind(F),G=!1,j={get passive(){return G=!0}},P=function(){};F.addEventListener&&F.addEventListener("p",P,j),F.removeEventListener&&F.removeEventListener("p",P,!1);var q=G,C="ontouchstart"in F,H="TouchEvent"in F,I=C||H&&N("(any-pointer: coarse)").matches,D=(F.navigator.maxTouchPoints,F.navigator.userAgent||""),B=N("(pointer: coarse)").matches&&/iPad|Macintosh/.test(D)&&Math.min(F.screen.width||0,F.screen.height||0)>=768;(N("(pointer: coarse)").matches||!N("(pointer: fine)").matches&&C)&&/Windows.*Firefox/.test(D),N("(any-pointer: fine)").matches||N("(any-hover: hover)").matches;class V{constructor(t,e){this.direction=window.getComputedStyle(t,null).getPropertyValue("direction"),this.el=t,this.events={change:this.onChange.bind(this),keydown:this.onKeyDown.bind(this),mousedown:this.onPointerDown.bind(this),mouseleave:this.onPointerLeave.bind(this),mousemove:this.onPointerMove.bind(this),reset:this.onReset.bind(this),touchend:this.onPointerDown.bind(this),touchmove:this.onPointerMove.bind(this)},this.indexActive=null,this.indexSelected=null,this.props=e,this.tick=null,this.ticking=!1,this.values=M(t),this.widgetEl=null,this.el.widget&&this.el.widget.destroy(),O(this.values.length,1,this.props.maxStars)?this.build():this.destroy()}build(){this.destroy(),this.buildWidget(),this.selectValue(this.indexSelected=this.selected(),!1),this.handleEvents("add"),this.el.widget=this}buildWidget(){let t,e;this.props.prebuilt?(t=this.el.parentNode,e=t.querySelector("."+this.props.classNames.base+"--stars")):(t=T(this.el,!1,{class:this.props.classNames.base}),t.appendChild(this.el),e=T(this.el,!0,{class:this.props.classNames.base+"--stars"}),this.values.forEach(((t,i)=>{const n=k({"data-index":i,"data-value":t.value});"function"==typeof this.props.stars&&this.props.stars.call(this,n,t,i),[].forEach.call(n.children,(t=>t.style.pointerEvents="none")),e.innerHTML+=n.outerHTML}))),t.dataset.starRating="",t.classList.add(this.props.classNames.base+"--"+this.direction),this.props.tooltip&&e.setAttribute("role","tooltip"),this.widgetEl=e}changeIndexTo(t,e){if(this.indexActive!==t||e){if([].forEach.call(this.widgetEl.children,((e,i)=>{x(e,i<=t,this.props.classNames.active),x(e,i===this.indexSelected,this.props.classNames.selected)})),this.widgetEl.setAttribute("data-rating",t+1),"function"==typeof this.props.stars||this.props.prebuilt||(this.widgetEl.classList.remove("s"+10*(this.indexActive+1)),this.widgetEl.classList.add("s"+10*(t+1))),this.props.tooltip){const e=t<0?this.props.tooltip:this.values[t]?.text;this.widgetEl.setAttribute("aria-label",e)}this.indexActive=t}this.ticking=!1}destroy(){this.indexActive=null,this.indexSelected=this.selected();const t=this.el.parentNode;t.classList.contains(this.props.classNames.base)&&(this.props.prebuilt?(this.widgetEl=t.querySelector("."+this.props.classNames.base+"--stars"),t.classList.remove(this.props.classNames.base+"--"+this.direction),delete t.dataset.starRating):t.parentNode.replaceChild(this.el,t),this.handleEvents("remove")),delete this.el.widget}eventListener(t,e,i,n){i.forEach((i=>t[e+"EventListener"](i,this.events[i],n||!1)))}handleEvents(t){const e=this.el.closest("form");e&&"FORM"===e.tagName&&this.eventListener(e,t,["reset"]),this.eventListener(this.el,t,["change"]),"add"===t&&this.el.disabled||(this.eventListener(this.el,t,["keydown"]),this.eventListener(this.widgetEl,t,["mousedown","mouseleave","mousemove","touchend","touchmove"],!!q&&{passive:!1}))}indexFromEvent(t){const e=t.touches?.[0]||t.changedTouches?.[0]||t,i=document.elementFromPoint(e.clientX,e.clientY);return[].slice.call(i.parentNode.children).indexOf(i)}onChange(){this.changeIndexTo(this.selected(),!0)}onKeyDown(t){const e=t.key.slice(5);if(!~["Left","Right"].indexOf(e))return;let i="Left"===e?-1:1;"rtl"===this.direction&&(i*=-1);const n=this.values.length-1,s=Math.min(Math.max(this.selected()+i,-1),n);this.selectValue(s,!0)}onPointerDown(t){t.preventDefault();let e=this.indexFromEvent(t);this.props.clearable&&e===this.indexSelected&&(e=-1),this.selectValue(e,!0)}onPointerLeave(t){t.preventDefault(),cancelAnimationFrame(this.tick),requestAnimationFrame((()=>this.changeIndexTo(this.indexSelected)))}onPointerMove(t){t.preventDefault(),this.ticking||(this.tick=requestAnimationFrame((()=>this.changeIndexTo(this.indexFromEvent(t)))),this.ticking=!0)}onReset(){const t=this.valueIndex(this.el.querySelector("[selected]")?.value);this.selectValue(t||-1,!1)}selected(){return this.valueIndex(this.el.value)}selectValue(t,e){this.el.value=this.values[t]?.value||"",this.indexSelected=this.selected(),!1===e?this.changeIndexTo(this.selected(),!0):this.el.dispatchEvent(new Event("change"))}valueIndex(t){return this.values.findIndex((e=>e.value===+t))}}class W{constructor(t,e){this.destroy=this.destroy.bind(this),this.props=e,this.rebuild=this.rebuild.bind(this),this.selector=t,this.widgets=[],this.build()}build(){this.queryElements(this.selector).forEach((t=>{const e=R(S,this.props,JSON.parse(t.getAttribute("data-options")));"SELECT"!==t.tagName||t.widget||(!e.prebuilt&&t.parentNode.classList.contains(e.classNames.base)&&this.unwrap(t),this.widgets.push(new V(t,e)))}))}destroy(){this.widgets.forEach((t=>t.destroy())),this.widgets=[]}queryElements(t){return"HTMLSelectElement"===A(t)?[t]:"NodeList"===A(t)?[].slice.call(t):"String"===A(t)?[].slice.call(document.querySelectorAll(t)):[]}rebuild(){this.destroy(),this.build()}unwrap(t){const e=t.parentNode,i=e.parentNode;i.insertBefore(t,e),i.removeChild(e)}}var Y=W,$=function(t,e,i){t&&e.split(" ").forEach((function(e){t.classList[i?"add":"remove"](e)}))},K=function(t){return"."+t.trim().split(" ").join(".")},J=function(t){var e='input[name="'+t.getAttribute("name")+'"]:checked';return t.validation.form.querySelectorAll(e).length},X={email:{fn:function(t){return!t||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}},max:{fn:function(t,e){return!t||("checkbox"===this.type?J(this)<=parseInt(e):parseFloat(t)<=parseFloat(e))}},maxlength:{fn:function(t,e){return!t||t.length<=parseInt(e)}},min:{fn:function(t,e){return!t||("checkbox"===this.type?J(this)>=parseInt(e):parseFloat(t)>=parseFloat(e))}},minlength:{fn:function(t,e){return!t||t.length>=parseInt(e)}},number:{fn:function(t){return!t||!isNaN(parseFloat(t))},priority:2},pattern:{fn:function(t,e){var i=e.match(new RegExp("^/(.*?)/([gimy]*)$"));return!t||new RegExp(i[1],i[2]).test(t)}},required:{fn:function(t){return"radio"===this.type||"checkbox"===this.type?J(this):void 0!==t&&""!==t},priority:99,halt:!0},tel:{fn:function(t){var e=t.replace(/[^0-9]/g,"").length;return!t||4<=e&&15>=e&&new RegExp("^[+]?[\\d\\s()-]*$").test(t)}},url:{fn:function(t){return!t||new RegExp("^(https?)://([\\p{L}\\p{N}\\p{S}\\-_.])+(.?([\\p{L}\\p{N}]|xn--[\\p{L}\\p{N}\\-]+)+.?)(:[0-9]+)?(?:/(?:[\\p{L}\\p{N}\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*(?:\\?(?:[\\p{L}\\p{N}\\-._~!$&'\\[\\]()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?(?:#(?:[\\p{L}\\p{N}\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?$","iu").test(t)}}},z=["required","max","maxlength","min","minlength","pattern"],Q="input:not([type^=hidden]):not([type^=submit]), select, textarea, [data-glsr-validate]",U=function(){function t(e){p(this,t),this.config=GLSR.validationconfig,this.fields=[],this.form=e,this.form.setAttribute("novalidate",""),this.strings=GLSR.validationstrings,this.validateEvent=this._onChange.bind(this)}return m(t,[{key:"destroy",value:function(){for(this.reset();this.fields.length;){var t=this.fields.shift();this._removeEvent(t.input),delete t.input.validation}}},{key:"init",value:function(){var t=this;this.form.querySelectorAll(Q).forEach((function(e){t.fields.find((function(t){return t.input.name===e.name&&!e.name.endsWith("[]")}))||"none"!==e.closest(K(t.config.field)).style.display&&t.fields.push(t._initField(e))}))}},{key:"reset",value:function(){for(var t in this.fields)if(this.fields.hasOwnProperty(t)){this.fields[t].errorElements=null;var e=this.fields[t].input.closest(K(this.config.field));$(this.fields[t].input,this.config.input_error,!1),$(this.fields[t].input,this.config.input_valid,!1),$(e,this.config.field_error,!1),$(e,this.config.field_valid,!1)}}},{key:"setErrors",value:function(t,e){t.hasOwnProperty("validation")&&this._initField(t),t.validation.errors=e}},{key:"toggleError",value:function(t,e){var i=t.input.closest(K(this.config.field));if($(t.input,this.config.input_error,e),$(t.input,this.config.input_valid,!e),i){$(i,this.config.field_error,e),$(i,this.config.field_valid,!e);var n=i.querySelector(K(this.config.field_message));n.innerHTML=e?t.errors.join("<br>"):"",n.style.display=e?"":"none"}}},{key:"validate",value:function(t){var e=!0,i=this.fields;for(var n in t instanceof HTMLElement&&(i=[t.validation]),i)if(i.hasOwnProperty(n)){var s=i[n];this._validateField(s)?this.toggleError(s,!1):(e=!1,this.toggleError(s,!0))}return e}},{key:"_addEvent",value:function(t){t.addEventListener(this._getEventName(t),this.validateEvent)}},{key:"_addValidators",value:function(t,e,i){var n=this;[].forEach.call(t,(function(t){var s=t.name.replace("data-","");~z.indexOf(s)?n._addValidatorToField(e,i,s,t.value):"type"===t.name&&n._addValidatorToField(e,i,t.value)}))}},{key:"_addValidatorToField",value:function(t,e,i,n){if(X[i]&&(X[i].name=i,t.push(X[i]),n)){var s="pattern"===i?[n]:n.split(",");s.unshift(null),e[i]=s}}},{key:"_onChange",value:function(t){this.validate(t.currentTarget)}},{key:"_removeEvent",value:function(t){t.removeEventListener(this._getEventName(t),this.validateEvent)}},{key:"_getEventName",value:function(t){return~["radio","checkbox"].indexOf(t.getAttribute("type"))||"SELECT"===t.nodeName?"change":"input"}},{key:"_initField",value:function(t){var e=this,i={},n=[];return null!==t.offsetParent&&(this._addValidators(t.attributes,n,i),this._sortValidators(n),this._addEvent(t)),t.validation={form:this.form,input:t,params:i,validate:function(){return e.validate(t)},validators:n}}},{key:"_sortValidators",value:function(t){t.sort((function(t,e){return(e.priority||1)-(t.priority||1)}))}},{key:"_validateField",value:function(t){var e=[],i=!0;for(var n in t.validators)if(t.validators.hasOwnProperty(n)){var s=t.validators[n],r=t.params[s.name]?t.params[s.name]:[];if(r[0]=t.input.value,!s.fn.apply(t.input,r)){i=!1;var o=this.strings[s.name];if(e.push(o.replace(/(\%s)/g,r[1])),!0===s.halt)break}}return t.errors=e,i}}]),t}(),Z=U,tt=function(){function t(e,i){p(this,t),this.button=i,this.config=GLSR.validationconfig,this.events={submit:this._onSubmit.bind(this)},this.form=e,this.isActive=!1,this.recaptcha=new L(this),this.stars=null,this.strings=GLSR.validationstrings,this.useAjax=!e.classList.contains("no-ajax"),this.validation=new Z(e)}return m(t,[{key:"destroy",value:function(){this._destroyForm(),this._destroyRecaptcha(),this._destroyStarRatings(),this.isActive=!1}},{key:"disableButton",value:function(){this.button.setAttribute("aria-busy","true"),this.button.setAttribute("disabled","")}},{key:"enableButton",value:function(){this.button.setAttribute("aria-busy","false"),this.button.removeAttribute("disabled")}},{key:"init",value:function(){this.isActive||(this._initForm(),this._initStarRatings(),this._initRecaptcha(),this.isActive=!0)}},{key:"submitForm",value:function(t){this.disableButton(),this.form[GLSR.nameprefix+"[_counter]"].value=t||0,GLSR.ajax.post(this.form,this._handleResponse.bind(this))}},{key:"_destroyForm",value:function(){this.form.removeEventListener("submit",this.events.submit),this._resetErrors(),this.validation.destroy()}},{key:"_destroyRecaptcha",value:function(){this.recaptcha.destroy()}},{key:"_destroyStarRatings",value:function(){this.stars&&this.stars.destroy()}},{key:"_handleResponse",value:function(t,e){var i=!0===e;"unset"!==t.recaptcha?("reset"===t.recaptcha&&this.recaptcha.reset(),i&&(this.recaptcha.reset(),this.form.reset()),this._showFieldErrors(t.errors),this._showResults(t.message,i),this.enableButton(),GLSR.Event.trigger("site-reviews/form/handle",t,this.form),t.form=this.form,document.dispatchEvent(new CustomEvent("site-reviews/after/submission",{detail:t})),i&&""!==t.redirect&&(window.location=t.redirect)):this.recaptcha.execute()}},{key:"_initForm",value:function(){this._destroyForm(),this.form.addEventListener("submit",this.events.submit),this.validation.init()}},{key:"_initRecaptcha",value:function(){this.recaptcha.render()}},{key:"_initStarRatings",value:function(){null!==this.stars?this.stars.rebuild():this.stars=new Y(this.form.querySelectorAll(".glsr-field-rating select"),GLSR.stars)}},{key:"_onSubmit",value:function(t){if(!this.validation.validate())return t.preventDefault(),void this._showResults(this.strings.errors,!1);this._resetErrors(),(this.form["g-recaptcha-response"]&&""===this.form["g-recaptcha-response"].value||this.useAjax)&&(t.preventDefault(),this.submitForm())}},{key:"_resetErrors",value:function(){$(this.form,this.config.form_error,!1),this._showResults("",null),this.validation.reset()}},{key:"_showFieldErrors",value:function(t){if(t)for(var e in t)if(t.hasOwnProperty(e)){var i=GLSR.nameprefix?GLSR.nameprefix+"["+e+"]":e,n=this.form.querySelector('[name="'+i+'"]');n&&(this.validation.setErrors(n,t[e]),this.validation.toggleError(n.validation,"add"))}}},{key:"_showResults",value:function(t,e){var i=this.form.querySelector(K(this.config.form_message));null!==i&&($(this.form,this.config.form_error,!1===e),$(i,this.config.form_message_failed,!1===e),$(i,this.config.form_message_success,!0===e),i.innerHTML=t)}}]),t}(),et=tt;function it(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}var nt=!1;if("undefined"!=typeof window){var st={get passive(){nt=!0}};window.addEventListener("testPassive",null,st),window.removeEventListener("testPassive",null,st)}var rt="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),ot=[],at=!1,lt=-1,ct=void 0,ut=void 0,dt=function(t){return ot.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},ht=function(t){var e=t||window.event;return!!dt(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},ft=function(t){if(void 0===ut){var e=!!t&&!0===t.reserveScrollBarGap,i=window.innerWidth-document.documentElement.clientWidth;e&&i>0&&(ut=document.body.style.paddingRight,document.body.style.paddingRight=i+"px")}void 0===ct&&(ct=document.body.style.overflow,document.body.style.overflow="hidden")},vt=function(){void 0!==ut&&(document.body.style.paddingRight=ut,ut=void 0),void 0!==ct&&(document.body.style.overflow=ct,ct=void 0)},pt=function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight},gt=function(t,e){var i=t.targetTouches[0].clientY-lt;return!dt(t.target)&&(e&&0===e.scrollTop&&i>0||pt(e)&&i<0?ht(t):(t.stopPropagation(),!0))},mt=function(t,e){if(t){if(!ot.some((function(e){return e.targetElement===t}))){var i={targetElement:t,options:e||{}};ot=[].concat(it(ot),[i]),rt?(t.ontouchstart=function(t){1===t.targetTouches.length&&(lt=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&gt(e,t)},at||(document.addEventListener("touchmove",ht,nt?{passive:!1}:void 0),at=!0)):ft(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},yt=function(){rt?(ot.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),at&&(document.removeEventListener("touchmove",ht,nt?{passive:!1}:void 0),at=!1),lt=-1):vt(),ot=[]},bt=["[contenteditable]",'[tabindex]:not([tabindex^="-"])',"a[href]","button:not([disabled]):not([aria-hidden])",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])"],wt=function(){function t(e){var i=e.closeTrigger,n=void 0===i?"data-glsr-close":i,s=e.onClose,r=void 0===s?function(){}:s,o=e.onOpen,a=void 0===o?function(){}:o,l=e.openClass,c=void 0===l?"is-open":l,u=e.openTrigger,d=void 0===u?"data-glsr-trigger":u,h=e.targetModalId,f=void 0===h?"glsr-modal":h,v=e.triggers,g=void 0===v?[]:v;p(this,t),this.modal=document.getElementById(f),this.config={openTrigger:d,closeTrigger:n,openClass:c,onOpen:a,onClose:r},this.events={mouseup:this._onClick.bind(this),keydown:this._onKeydown.bind(this),touchstart:this._onClick.bind(this)},g.length>0&&this._registerTriggers(g)}return m(t,[{key:"_closeModal",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(e.preventDefault(),e.stopPropagation()),this.modal.setAttribute("aria-hidden","true"),this._eventHandler("remove"),yt(),this.activeElement&&this.activeElement.focus&&this.activeElement.focus();var i=function i(){t.modal.classList.remove(t.config.openClass),t.modal.removeEventListener("animationend",i,!1),t.config.onClose(t.modal,t.activeElement,e)};this.modal.addEventListener("animationend",i,!1),GLSR.Event.trigger("site-reviews/modal/close",this.modal,this.activeElement,e)}},{key:"_closeModalById",value:function(t){this.modal=document.getElementById(t),this.modal&&this._closeModal()}},{key:"_eventHandler",value:function(t){this._eventListener(this.modal,t,["mouseup","touchstart"]),this._eventListener(document,t,["keydown"])}},{key:"_eventListener",value:function(t,e,i){var n=this;i.forEach((function(i){return t[e+"EventListener"](i,n.events[i])}))}},{key:"_getFocusableNodes",value:function(){var t=this.modal.querySelectorAll(bt);return Array.prototype.slice.call(t)}},{key:"_onClick",value:function(t){t.target.hasAttribute(this.config.closeTrigger)&&this._closeModal(t)}},{key:"_onKeydown",value:function(t){27===t.keyCode&&this._closeModal(t),9===t.keyCode&&this._retainFocus(t)}},{key:"_openModal",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.activeElement=document.activeElement,e&&(e.preventDefault(),this.activeElement=e.currentTarget),this.config.onOpen(this.modal,this.activeElement,e),this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),mt(this.modal.querySelector("[data-glsr-modal]")),this._eventHandler("add");var i=function e(){t.modal.removeEventListener("animationend",e,!1),t._setFocusToFirstNode()};this.modal.addEventListener("animationend",i,!1),GLSR.Event.trigger("site-reviews/modal/open",this.modal,this.activeElement,e)}},{key:"_registerTriggers",value:function(t){var e=this;t.filter(Boolean).forEach((function(t){t.triggerModal&&t.removeEventListener("click",t.triggerModal),t.triggerModal=e._openModal.bind(e),t.addEventListener("click",t.triggerModal)}))}},{key:"_retainFocus",value:function(t){var e=this._getFocusableNodes();if(0!==e.length)if(e=e.filter((function(t){return null!==t.offsetParent})),this.modal.contains(document.activeElement)){var i=e.indexOf(document.activeElement);t.shiftKey&&0===i&&(e[e.length-1].focus(),t.preventDefault()),!t.shiftKey&&e.length>0&&i===e.length-1&&(e[0].focus(),t.preventDefault())}else e[0].focus()}},{key:"_setFocusToFirstNode",value:function(){var t=this,e=this._getFocusableNodes();if(0!==e.length){var i=e.filter((function(e){return!e.hasAttribute(t.config.closeTrigger)}));i.length>0&&i[0].focus(),0===i.length&&e[0].focus()}}}]),t}(),Et={},_t=function(t){if(t)Et[t]._closeModalById(t);else for(var e in Et)Et[e].closeModal()},Lt=function(t){var e=Object.assign({},{openTrigger:"data-glsr-trigger"},t),i=Array.prototype.slice.call(document.querySelectorAll("[".concat(e.openTrigger,"]"))),n=xt(i,e.openTrigger);return Object.keys(n).forEach((function(t){e.targetModalId=t,e.triggers=n[t],Et[t]=new wt(e)})),Et},St=function(t,e){var i=e||{};i.targetModalId=t,Et[t]&&Et[t]._eventHandler("remove"),Et[t]=new wt(i),Et[t]._openModal()},xt=function(t,e){var i={};return t.forEach((function(t){var n=t.attributes[e].value;void 0===i[n]&&(i[n]=[]),i[n].push(t)})),i},kt={init:Lt,open:St,close:_t},Ot={hide:"glsr-hide"},Tt={scrollOffset:16,scrollTime:468},Rt={button:"button.glsr-button-loadmore",link:".glsr-pagination a.page-numbers",pagination:".glsr-pagination",reviews:".glsr-reviews, [data-reviews]"},At=function(){function t(e,i){p(this,t),this.events={button:{click:this._onLoadMore.bind(this)},link:{click:this._onPaginate.bind(this)},window:{popstate:this._onPopstate.bind(this)}},this.paginationEl=i,this.reviewsEl=e.querySelector(Rt.reviews),this.wrapperEl=e}return m(t,[{key:"destroy",value:function(){this._eventHandler("remove")}},{key:"init",value:function(){this._eventHandler("add");var t=this.paginationEl.querySelector(".current");if(t){var e=this._data(t),i=t.nextElementSibling;e&&i&&2==+i.dataset.page&&GLSR.urlparameter&&window.history.replaceState(e,"",window.location)}}},{key:"_data",value:function(t){try{for(var e=JSON.parse(JSON.stringify(this.paginationEl.dataset)),i={},n=0,s=Object.keys(e);n<s.length;n++){var r=s[n],o=void 0;try{o=JSON.parse(e[r])}catch(t){o=e[r]}i["".concat(GLSR.nameprefix,"[atts][").concat(r,"]")]=o}return i["".concat(GLSR.nameprefix,"[_action]")]="fetch-paged-reviews",i["".concat(GLSR.nameprefix,"[page]")]=t.dataset.page||1,i["".concat(GLSR.nameprefix,"[schema]")]=!1,i["".concat(GLSR.nameprefix,"[url]")]=t.href||location.href,i}catch(t){return console.error("Invalid pagination config."),!1}}},{key:"_eventHandler",value:function(t){var e=this;this._eventListener(window,t,this.events.window),this.wrapperEl.querySelectorAll(Rt.button).forEach((function(i){e._eventListener(i,t,e.events.button)})),this.wrapperEl.querySelectorAll(Rt.link).forEach((function(i){e._eventListener(i,t,e.events.link)}))}},{key:"_eventListener",value:function(t,e,i){Object.keys(i).forEach((function(n){return t[e+"EventListener"](n,i[n])}))}},{key:"_handleLoadMore",value:function(t,e,i,n){n?(t.setAttribute("aria-busy","false"),t.removeAttribute("disabled"),this.destroy(),this.paginationEl.innerHTML=i.pagination,this.reviewsEl.insertAdjacentHTML("beforeend",i.reviews),this.init(),GLSR.Event.trigger("site-reviews/pagination/handle",i,this)):window.location=location}},{key:"_handlePagination",value:function(t,e,i,n){n?(this._paginate(i),GLSR.urlparameter&&window.history.pushState(e,"",t.href)):window.location=t.href}},{key:"_handlePopstate",value:function(t,e,i){i?this._paginate(e):console.error(e)}},{key:"_onLoadMore",value:function(t){var e=t.currentTarget,i=this._data(e);i&&(e.setAttribute("aria-busy","true"),e.setAttribute("disabled",""),t.preventDefault(),GLSR.ajax.post(i,this._handleLoadMore.bind(this,e,i)))}},{key:"_onPaginate",value:function(t){var e=t.currentTarget,i=this._data(e);i&&(this.wrapperEl.classList.add(Ot.hide),t.preventDefault(),GLSR.ajax.post(i,this._handlePagination.bind(this,e,i)))}},{key:"_onPopstate",value:function(t){GLSR.Event.trigger("site-reviews/pagination/popstate",t,this),t.state&&t.state["".concat(GLSR.nameprefix,"[_action]")]&&(this.wrapperEl.classList.add(Ot.hide),GLSR.ajax.post(t.state,this._handlePopstate.bind(this,t.state)))}},{key:"_paginate",value:function(t){this.destroy(),this.paginationEl.innerHTML=t.pagination,this.reviewsEl.innerHTML=t.reviews,this.init(),this._scrollToTop(),this.wrapperEl.classList.remove(Ot.hide),GLSR.Event.trigger("site-reviews/pagination/handle",t,this)}},{key:"_scrollStep",value:function(t){var e=Math.min(1,(window.performance.now()-t.startTime)/Tt.scrollTime),i=.5*(1-Math.cos(Math.PI*e)),n=t.startY+(t.endY-t.startY)*i;window.scroll(0,t.offset+n),n!==t.endY&&window.requestAnimationFrame(this._scrollStep.bind(this,t))}},{key:"_scrollToTop",value:function(){var t=Tt.scrollOffset;[].forEach.call(GLSR.ajaxpagination,(function(e){var i=document.querySelector(e);i&&"fixed"===window.getComputedStyle(i).getPropertyValue("position")&&(t+=i.clientHeight)}));var e=this.reviewsEl.getBoundingClientRect().top-t;e>0||this._scrollStep({endY:e,offset:window.pageYOffset,startTime:window.performance.now(),startY:this.reviewsEl.scrollTop})}}]),t}(),Mt=At,Ft={excerpts:"site-reviews/excerpts/init",forms:"site-reviews/forms/init",init:"site-reviews/init",modal:"site-reviews/modal/init",pagination:"site-reviews/pagination/init"},Nt=function(t){new E(t)},Gt=function(){GLSR.forms.forEach((function(t){return t.destroy()})),GLSR.forms=[],document.querySelectorAll("form.glsr-review-form").forEach((function(t){var e=t.querySelector("[type=submit]");if(e){var i=new et(t,e);i.init(),GLSR.forms.push(i)}}))},jt=function(){var t="glsr-modal__content",e="glsr-modal__review";window.GLSR.Modal.init({onClose:function(i,n,s){i.querySelector("."+t).innerHTML="",i.classList.remove(e)},onOpen:function(i,n,s){var r=n.closest(".glsr").cloneNode(!0),o=n.closest(".glsr-review").cloneNode(!0);r.innerHTML="",r.appendChild(o),i.querySelector("."+t).appendChild(r),i.classList.add(e)},openTrigger:"data-excerpt-trigger"})},Pt=function(){GLSR.pagination.forEach((function(t){return t.destroy()})),GLSR.pagination=[],document.querySelectorAll(".glsr").forEach((function(t){var e=t.querySelector(".glsr-pagination");if(e&&(e.classList.contains("glsr-ajax-loadmore")||e.classList.contains("glsr-ajax-pagination"))){var i=new Mt(t,e);i.init(),GLSR.pagination.push(i)}}))},qt=function(){document.querySelectorAll(".glsr").forEach((function(t){var e="glsr-"+window.getComputedStyle(t,null).getPropertyValue("direction");t.classList.add(e)})),v.trigger(Ft.excerpts),v.trigger(Ft.forms),v.trigger(Ft.modal),v.trigger(Ft.pagination)};window.hasOwnProperty("GLSR")||(window.GLSR={}),window.GLSR.ajax=l,window.GLSR.forms=[],window.GLSR.pagination=[],window.GLSR.Event=v,window.GLSR.Modal=kt,v.on(Ft.excerpts,Nt),v.on(Ft.forms,Gt),v.on(Ft.modal,jt),v.on(Ft.pagination,Pt),v.on(Ft.init,qt),v.on("site-reviews/pagination/handle",(function(t,e){v.trigger(Ft.excerpts,e.wrapperEl),v.trigger(Ft.modal)})),document.addEventListener("DOMContentLoaded",(function(){v.trigger(Ft.init)}))},113:function(){},30:function(){},966:function(){},83:function(){},649:function(){},408:function(){},529:function(){},275:function(){},872:function(){},865:function(){},774:function(){},625:function(){},193:function(){},644:function(){},651:function(){},344:function(){},753:function(){},189:function(){},832:function(){},345:function(){},974:function(){},511:function(){},894:function(){},474:function(){},688:function(){},522:function(){},167:function(){},406:function(){},829:function(){},273:function(){},518:function(){},963:function(){}},i={};function n(t){var s=i[t];if(void 0!==s)return s.exports;var r=i[t]={exports:{}};return e[t](r,r.exports,n),r.exports}n.m=e,t=[],n.O=function(e,i,s,r){if(!i){var o=1/0;for(u=0;u<t.length;u++){i=t[u][0],s=t[u][1],r=t[u][2];for(var a=!0,l=0;l<i.length;l++)(!1&r||o>=r)&&Object.keys(n.O).every((function(t){return n.O[t](i[l])}))?i.splice(l--,1):(a=!1,r<o&&(o=r));if(a){t.splice(u--,1);var c=s();void 0!==c&&(e=c)}}return e}r=r||0;for(var u=t.length;u>0&&t[u-1][2]>r;u--)t[u]=t[u-1];t[u]=[i,s,r]},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t={341:0,884:0,320:0,974:0,570:0,184:0,979:0,444:0,224:0,384:0,81:0,877:0,691:0,931:0,192:0,77:0,753:0,540:0,69:0,16:0,831:0,181:0,337:0,193:0,994:0,232:0,896:0,737:0,612:0,554:0,483:0,49:0,985:0};n.O.j=function(e){return 0===t[e]};var e=function(e,i){var s,r,o=i[0],a=i[1],l=i[2],c=0;if(o.some((function(e){return 0!==t[e]}))){for(s in a)n.o(a,s)&&(n.m[s]=a[s]);if(l)var u=l(n)}for(e&&e(i);c<o.length;c++)r=o[c],n.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return n.O(u)},i=self.webpackChunk=self.webpackChunk||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))}(),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(533)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(406)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(829)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(273)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(518)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(963)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(113)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(30)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(966)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(83)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(649)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(408)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(529)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(275)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(872)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(865)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(774)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(625)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(193)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(644)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(651)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(344)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(753)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(189)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(832)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(345)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(974)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(511)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(894)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(474)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(688)})),n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(522)}));var s=n.O(void 0,[884,320,974,570,184,979,444,224,384,81,877,691,931,192,77,753,540,69,16,831,181,337,193,994,232,896,737,612,554,483,49,985],(function(){return n(167)}));s=n.O(s)}();
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: reviews, ratings, testimonials, woocommerce, product reviews, business rev
5
  Tested up to: 5.9
6
  Requires at least: 5.5
7
  Requires PHP: 5.6.20
8
- Stable tag: 5.23.2
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -142,6 +142,10 @@ All documentation can be found in the "Help" page of the plugin. If your questio
142
 
143
  ## Changelog
144
 
 
 
 
 
145
  = 5.23.2 (2022-04-10) =
146
 
147
  - Fixed admin notices
5
  Tested up to: 5.9
6
  Requires at least: 5.5
7
  Requires PHP: 5.6.20
8
+ Stable tag: 5.23.3
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
142
 
143
  ## Changelog
144
 
145
+ = 5.23.3 (2022-04-10) =
146
+
147
+ - Reverted build tool used to generate javascript files (as it seems to be causing problems with Divi and Oxygen Builder)
148
+
149
  = 5.23.2 (2022-04-10) =
150
 
151
  - Fixed admin notices
site-reviews.php CHANGED
@@ -7,7 +7,7 @@
7
  * Plugin Name: Site Reviews
8
  * Plugin URI: https://wordpress.org/plugins/site-reviews
9
  * Description: Receive and display reviews on your website
10
- * Version: 5.23.2
11
  * Author: Paul Ryley
12
  * Author URI: https://geminilabs.io
13
  * License: GPL2
7
  * Plugin Name: Site Reviews
8
  * Plugin URI: https://wordpress.org/plugins/site-reviews
9
  * Description: Receive and display reviews on your website
10
+ * Version: 5.23.3
11
  * Author: Paul Ryley
12
  * Author URI: https://geminilabs.io
13
  * License: GPL2