PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/myvideomania.com/wp-content/themes/neve/assets/apps/metabox/build/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/myvideomania.com/wp-content/themes/neve/assets/apps/metabox/build/index.js |
(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var l in n)o.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},941:(e,t,n)=>{var o=p(n(177)),r=n(196),a=r.Children,i=r.cloneElement,l=r.Component,s=r.createElement,c=r.createRef,u=p(n(184)),d=n(474),h=p(d);function p(e){return e&&e.__esModule?e.default:e}function m(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function w(e){e.forEach((function(e){return _(e.element)}))}function y(e){e.forEach((function(e){var t,n,o,r;t=e.parentElement,n=e.element,o=e.oldIndex,r=t.children[o]||null,t.insertBefore(n,r)}))}function A(e,t){var n=C(e),o={parentElement:e.from},r=[];switch(n){case"normal":r=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":r=[v({element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex},o),v({element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex},o)];break;case"multidrag":r=e.oldIndicies.map((function(t,n){return v({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index},o)}))}return function(e,t){return e.map((function(e){return v(v({},e),{},{item:t[e.oldIndex]})})).sort((function(e,t){return e.oldIndex-t.oldIndex}))}(r,t)}function E(e,t){var n=m(t);return e.concat().reverse().forEach((function(e){return n.splice(e.oldIndex,1)})),n}function S(e,t,n,o){var r=m(t);return e.forEach((function(e){var t=o&&n&&o(e.item,n);r.splice(e.newIndex,0,t||e.item)})),r}function C(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}d.Direction,d.DOMRect,d.GroupOptions,d.MoveEvent,d.Options,d.PullResult,d.PutResult,d.SortableEvent,d.SortableOptions,d.Utils;var B={dragging:null},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(r,l);var t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=k(e);if(t){var r=k(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return I(this,n)}}(r);function r(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).ref=c();var a=e.list.map((function(e){return T(T({},e),{},{chosen:!1,selected:!1})}));return e.setList(a,t.sortable,B),o(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n '),t}return(t=[{key:"componentDidMount",value:function(){if(null!==this.ref.current){var e=this.makeOptions();h.create(this.ref.current,e)}}},{key:"render",value:function(){var e=this.props,t=e.tag,n={style:e.style,className:e.className,id:e.id};return s(t&&null!==t?t:"div",T({ref:this.ref},n),this.getChildren())}},{key:"getChildren",value:function(){var e=this.props,t=e.children,n=e.dataIdAttr,o=e.selectedClass,r=void 0===o?"sortable-selected":o,l=e.chosenClass,s=void 0===l?"sortable-chosen":l,c=(e.dragClass,e.fallbackClass,e.ghostClass,e.swapClass,e.filter),d=void 0===c?"sortable-filter":c,h=e.list;if(!t||null==t)return null;var p=n||"data-id";return a.map(t,(function(e,t){var n,o,a=h[t],l=e.props.className,c="string"==typeof d&&N({},d.replace(".",""),!!a.filtered),m=u(l,T((N(n={},r,a.selected),N(n,s,a.chosen),n),c));return i(e,(N(o={},p,e.key),N(o,"className",m),o))}))}},{key:"makeOptions",value:function(){var e,t=this,n=((e=this.props).list,e.setList,e.children,e.tag,e.style,e.className,e.clone,e.onAdd,e.onChange,e.onChoose,e.onClone,e.onEnd,e.onFilter,e.onRemove,e.onSort,e.onStart,e.onUnchoose,e.onUpdate,e.onMove,e.onSpill,e.onSelect,e.onDeselect,function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["list","setList","children","tag","style","className","clone","onAdd","onChange","onChoose","onClone","onEnd","onFilter","onRemove","onSort","onStart","onUnchoose","onUpdate","onMove","onSpill","onSelect","onDeselect"]));return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((function(e){return n[e]=t.prepareOnHandlerPropAndDOM(e)})),["onChange","onClone","onFilter","onSort"].forEach((function(e){return n[e]=t.prepareOnHandlerProp(e)})),T(T({},n),{},{onMove:function(e,n){var o=t.props.onMove,r=e.willInsertAfter||-1;if(!o)return r;var a=o(e,n,t.sortable,B);return void 0!==a&&a}})}},{key:"prepareOnHandlerPropAndDOM",value:function(e){var t=this;return function(n){t.callOnHandlerProp(n,e),t[e](n)}}},{key:"prepareOnHandlerProp",value:function(e){var t=this;return function(n){t.callOnHandlerProp(n,e)}}},{key:"callOnHandlerProp",value:function(e,t){var n=this.props[t];n&&n(e,this.sortable,B)}},{key:"onAdd",value:function(e){var t=this.props,n=t.list,o=t.setList,r=t.clone,a=A(e,O(B.dragging.props.list));w(a),o(S(a,n,e,r).map((function(e){return T(T({},e),{},{selected:!1})})),this.sortable,B)}},{key:"onRemove",value:function(e){var t=this,n=this.props,r=n.list,a=n.setList,i=C(e),l=A(e,r);y(l);var s=O(r);if("clone"!==e.pullMode)s=E(l,s);else{var c=l;switch(i){case"multidrag":c=l.map((function(t,n){return T(T({},t),{},{element:e.clones[n]})}));break;case"normal":c=l.map((function(t){return T(T({},t),{},{element:e.clone})}));break;default:o(!0,'mode "'.concat(i,'" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "').concat(i,'" plugin'))}w(c),l.forEach((function(n){var o=n.oldIndex,r=t.props.clone(n.item,e);s.splice(o,1,r)}))}a(s=s.map((function(e){return T(T({},e),{},{selected:!1})})),this.sortable,B)}},{key:"onUpdate",value:function(e){var t=this.props,n=t.list,o=t.setList,r=A(e,n);return w(r),y(r),o(function(e,t){return S(e,E(e,t))}(r,n),this.sortable,B)}},{key:"onStart",value:function(){B.dragging=this}},{key:"onEnd",value:function(){B.dragging=null}},{key:"onChoose",value:function(e){var t=this.props,n=t.list;(0,t.setList)(n.map((function(t,n){return n===e.oldIndex?T(T({},t),{},{chosen:!0}):t})),this.sortable,B)}},{key:"onUnchoose",value:function(e){var t=this.props,n=t.list;(0,t.setList)(n.map((function(t,n){return n===e.oldIndex?T(T({},t),{},{chosen:!1}):t})),this.sortable,B)}},{key:"onSpill",value:function(e){var t=this.props,n=t.removeOnSpill,o=t.revertOnSpill;n&&!o&&_(e.item)}},{key:"onSelect",value:function(e){var t=this.props,n=t.list,o=t.setList,r=n.map((function(e){return T(T({},e),{},{selected:!1})}));e.newIndicies.forEach((function(t){var n=t.index;if(-1===n)return console.log('"'.concat(e.type,'" had indice of "').concat(t.index,"\", which is probably -1 and doesn't usually happen here.")),void console.log(e);r[n].selected=!0})),o(r,this.sortable,B)}},{key:"onDeselect",value:function(e){var t=this.props,n=t.list,o=t.setList,r=n.map((function(e){return T(T({},e),{},{selected:!1})}));e.newIndicies.forEach((function(e){var t=e.index;-1!==t&&(r[t].selected=!0)})),o(r,this.sortable,B)}},{key:"sortable",get:function(){var e=this.ref.current;if(null===e)return null;var t=Object.keys(e).find((function(e){return e.includes("Sortable")}));return t?e[t]:null}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(r.prototype,t),r}();t._O=j,N(j,"defaultProps",{clone:function(e){return e}})},474:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function l(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{default:()=>wt,MultiDrag:()=>vt,Sortable:()=>Ye,Swap:()=>it});var c=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=s(/Edge/i),d=s(/firefox/i),h=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i),p=s(/iP(ad|od|hone)/i),m=s(/chrome/i)&&s(/android/i),f={capture:!1,passive:!1};function g(e,t,n){e.addEventListener(t,n,!c&&f)}function v(e,t,n){e.removeEventListener(t,n,!c&&f)}function b(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function _(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&b(e,t):b(e,t))||o&&e===n)return e;if(e===n)break}while(e=_(e))}return null}var y,A=/\s+/g;function E(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(A," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(A," ")}}function S(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function C(e,t){var n="";if("string"==typeof e)n=e;else do{var o=S(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function D(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,a=o.length;if(n)for(;r<a;r++)n(o[r],r);return o}return[]}function O(){return document.scrollingElement||document.documentElement}function M(e,t,n,o,r){if(e.getBoundingClientRect||e===window){var a,i,l,s,u,d,h;if(e!==window&&e.parentNode&&e!==O()?(i=(a=e.getBoundingClientRect()).top,l=a.left,s=a.bottom,u=a.right,d=a.height,h=a.width):(i=0,l=0,s=window.innerHeight,u=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!c))do{if(r&&r.getBoundingClientRect&&("none"!==S(r,"transform")||n&&"static"!==S(r,"position"))){var p=r.getBoundingClientRect();i-=p.top+parseInt(S(r,"border-top-width")),l-=p.left+parseInt(S(r,"border-left-width")),s=i+a.height,u=l+a.width;break}}while(r=r.parentNode);if(o&&e!==window){var m=C(r||e),f=m&&m.a,g=m&&m.d;m&&(s=(i/=g)+(d/=g),u=(l/=f)+(h/=f))}return{top:i,left:l,bottom:s,right:u,width:h,height:d}}}function x(e,t,n){for(var o=N(e,!0),r=M(e)[t];o;){var a=M(o)[n];if(!("top"===n||"left"===n?r>=a:r<=a))return o;if(o===O())break;o=N(o,!1)}return!1}function T(e,t,n){for(var o=0,r=0,a=e.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==Ye.ghost&&a[r]!==Ye.dragged&&w(a[r],n.draggable,e,!1)){if(o===t)return a[r];o++}r++}return null}function P(e,t){for(var n=e.lastElementChild;n&&(n===Ye.ghost||"none"===S(n,"display")||t&&!b(n,t));)n=n.previousElementSibling;return n||null}function I(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ye.clone||t&&!b(e,t)||n++;return n}function k(e){var t=0,n=0,o=O();if(e)do{var r=C(e),a=r.a,i=r.d;t+=e.scrollLeft*a,n+=e.scrollTop*i}while(e!==o&&(e=e.parentNode));return[t,n]}function N(e,t){if(!e||!e.getBoundingClientRect)return O();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=S(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return O();if(o||t)return n;o=!0}}}while(n=n.parentNode);return O()}function B(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function j(e,t){return function(){if(!y){var n=arguments,o=this;1===n.length?e.call(o,n[0]):e.apply(o,n),y=setTimeout((function(){y=void 0}),t)}}}function R(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Y(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function V(e,t){S(e,"position","absolute"),S(e,"top",t.top),S(e,"left",t.left),S(e,"width",t.width),S(e,"height",t.height)}function G(e){S(e,"position",""),S(e,"top",""),S(e,"left",""),S(e,"width",""),S(e,"height","")}var U="Sortable"+(new Date).getTime();var F=[],K={initializeByDefault:!0},L={mount:function(e){for(var t in K)K.hasOwnProperty(t)&&!(t in e)&&(e[t]=K[t]);F.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),F.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=e+"Global";F.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](i({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](i({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var r in F.forEach((function(o){var r=o.pluginName;if(e.options[r]||o.initializeByDefault){var i=new o(e,t,e.options);i.sortable=e,i.options=e.options,e[r]=i,a(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);void 0!==i&&(e.options[r]=i)}},getEventProperties:function(e,t){var n={};return F.forEach((function(o){"function"==typeof o.eventProperties&&a(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return F.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(o=r.optionListeners[t].call(e[r.pluginName],n))})),o}};function X(e){var t=e.sortable,n=e.rootEl,o=e.name,r=e.targetEl,a=e.cloneEl,l=e.toEl,s=e.fromEl,d=e.oldIndex,h=e.newIndex,p=e.oldDraggableIndex,m=e.newDraggableIndex,f=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[U]){var b,_=t.options,w="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||c||u?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=r||n,b.clone=a,b.oldIndex=d,b.newIndex=h,b.oldDraggableIndex=p,b.newDraggableIndex=m,b.originalEvent=f,b.pullMode=g?g.lastPutMode:void 0;var y=i({},v,L.getEventProperties(o,t));for(var A in y)b[A]=y[A];n&&n.dispatchEvent(b),_[w]&&_[w].call(t,b)}}var H=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=l(n,["evt"]);L.pluginEvent.bind(Ye)(e,t,i({dragEl:Q,parentEl:J,ghostEl:z,rootEl:q,nextEl:Z,lastDownEl:$,cloneEl:ee,cloneHidden:te,dragStarted:me,putSortable:le,activeSortable:Ye.active,originalEvent:o,oldIndex:ne,oldDraggableIndex:re,newIndex:oe,newDraggableIndex:ae,hideGhostForTarget:Ne,unhideGhostForTarget:Be,cloneNowHidden:function(){te=!0},cloneNowShown:function(){te=!1},dispatchSortableEvent:function(e){W({sortable:t,name:e,originalEvent:o})}},r))};function W(e){X(i({putSortable:le,cloneEl:ee,targetEl:Q,rootEl:q,oldIndex:ne,oldDraggableIndex:re,newIndex:oe,newDraggableIndex:ae},e))}var Q,J,z,q,Z,$,ee,te,ne,oe,re,ae,ie,le,se,ce,ue,de,he,pe,me,fe,ge,ve,be,_e=!1,we=!1,ye=[],Ae=!1,Ee=!1,Se=[],Ce=!1,De=[],Oe="undefined"!=typeof document,Me=p,xe=u||c?"cssFloat":"float",Te=Oe&&!m&&!p&&"draggable"in document.createElement("div"),Pe=function(){if(Oe){if(c)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ie=function(e,t){var n=S(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=T(e,0,t),a=T(e,1,t),i=r&&S(r),l=a&&S(a),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+M(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+M(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=o&&"none"===n[xe]||a&&"none"===n[xe]&&s+c>o)?"vertical":"horizontal"},ke=function(e){function t(e,n){return function(o,r,a,i){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,r,a,i),n)(o,r,a,i);var s=(n?o:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ne=function(){!Pe&&z&&S(z,"display","none")},Be=function(){!Pe&&z&&S(z,"display","")};Oe&&document.addEventListener("click",(function(e){if(we)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),we=!1,!1}),!0);var je=function(e){if(Q){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,a=e.clientY,ye.some((function(e){if(!P(e)){var t=M(e),n=e[U].options.emptyInsertThreshold,o=r>=t.left-n&&r<=t.right+n,l=a>=t.top-n&&a<=t.bottom+n;return n&&o&&l?i=e:void 0}})),i);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[U]._onDragOver(n)}}var r,a,i},Re=function(e){Q&&Q.parentNode[U]._isOutsideThisEl(e.target)};function Ye(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=a({},t),e[U]=this;var n,o,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ie(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ye.supportPointer&&"PointerEvent"in window&&!h,emptyInsertThreshold:5};for(var l in L.initializePlugins(this,e,r),r)!(l in t)&&(t[l]=r[l]);for(var s in ke(t),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!t.forceFallback&&Te,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?g(e,"pointerdown",this._onTapStart):(g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),ye.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==S(e,"display")&&e!==Ye.ghost){o.push({target:e,rect:M(e)});var t=i({},o[o.length-1].rect);if(e.thisAnimationDuration){var n=C(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){o.push(e)},removeAnimationState:function(e){o.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(o,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var r=!1,a=0;o.forEach((function(e){var n=0,o=e.target,i=o.fromRect,l=M(o),s=o.prevFromRect,c=o.prevToRect,u=e.rect,d=C(o,!0);d&&(l.top-=d.f,l.left-=d.e),o.toRect=l,o.thisAnimationDuration&&B(s,l)&&!B(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(n=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(u,s,c,t.options)),B(l,i)||(o.prevFromRect=i,o.prevToRect=l,n||(n=t.options.animation),t.animate(o,u,l,n)),n&&(r=!0,a=Math.max(a,n),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),n),o.thisAnimationDuration=n)})),clearTimeout(n),r?n=setTimeout((function(){"function"==typeof e&&e()}),a):"function"==typeof e&&e(),o=[]},animate:function(e,t,n,o){if(o){S(e,"transition",""),S(e,"transform","");var r=C(this.el),a=r&&r.a,i=r&&r.d,l=(t.left-n.left)/(a||1),s=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,S(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),S(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),S(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){S(e,"transition",""),S(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}))}function Ve(e,t,n,o,r,a,i,l){var s,d,h=e[U],p=h.options.onMove;return!window.CustomEvent||c||u?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=r||t,s.relatedRect=a||M(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),p&&(d=p.call(h,s,i)),d}function Ge(e){e.draggable=!1}function Ue(){Ce=!1}function Fe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Ke(e){return setTimeout(e,0)}function Le(e){return clearTimeout(e)}Ye.prototype={constructor:Ye,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(fe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=o.filter;if(function(e){De.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&De.push(o)}}(n),!Q&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!h||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=w(l,o.draggable,n,!1))&&l.animated||$===l)){if(ne=I(l),re=I(l,o.draggable),"function"==typeof c){if(c.call(this,e,l,this))return W({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),H("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=w(s,o.trim(),n,!1))return W({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),H("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());o.handle&&!w(s,o.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var o,r=this,a=r.el,i=r.options,l=a.ownerDocument;if(n&&!Q&&n.parentNode===a){var s=M(n);if(q=a,J=(Q=n).parentNode,Z=Q.nextSibling,$=n,ie=i.group,Ye.dragged=Q,se={target:Q,clientX:(t||e).clientX,clientY:(t||e).clientY},he=se.clientX-s.left,pe=se.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Q.style["will-change"]="all",o=function(){H("delayEnded",r,{evt:e}),Ye.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!d&&r.nativeDraggable&&(Q.draggable=!0),r._triggerDragStart(e,t),W({sortable:r,name:"choose",originalEvent:e}),E(Q,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){D(Q,e.trim(),Ge)})),g(l,"dragover",je),g(l,"mousemove",je),g(l,"touchmove",je),g(l,"mouseup",r._onDrop),g(l,"touchend",r._onDrop),g(l,"touchcancel",r._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),H("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(u||c))o();else{if(Ye.eventCanceled)return void this._onDrop();g(l,"mouseup",r._disableDelayedDrag),g(l,"touchend",r._disableDelayedDrag),g(l,"touchcancel",r._disableDelayedDrag),g(l,"mousemove",r._delayedDragTouchMoveHandler),g(l,"touchmove",r._delayedDragTouchMoveHandler),i.supportPointer&&g(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&Ge(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,t?"touchmove":"mousemove",this._onTouchMove):(g(Q,"dragend",this),g(q,"dragstart",this._onDragStart));try{document.selection?Ke((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(_e=!1,q&&Q){H("dragStarted",this,{evt:t}),this.nativeDraggable&&g(document,"dragover",Re);var n=this.options;!e&&E(Q,n.dragClass,!1),E(Q,n.ghostClass,!0),Ye.active=this,e&&this._appendGhost(),W({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ce){this._lastX=ce.clientX,this._lastY=ce.clientY,Ne();for(var e=document.elementFromPoint(ce.clientX,ce.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ce.clientX,ce.clientY))!==t;)t=e;if(Q.parentNode[U]._isOutsideThisEl(e),t)do{if(t[U]&&t[U]._onDragOver({clientX:ce.clientX,clientY:ce.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Be()}},_onTouchMove:function(e){if(se){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,a=z&&C(z,!0),i=z&&a&&a.a,l=z&&a&&a.d,s=Me&&be&&k(be),c=(r.clientX-se.clientX+o.x)/(i||1)+(s?s[0]-Se[0]:0)/(i||1),u=(r.clientY-se.clientY+o.y)/(l||1)+(s?s[1]-Se[1]:0)/(l||1);if(!Ye.active&&!_e){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(z){a?(a.e+=c-(ue||0),a.f+=u-(de||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");S(z,"webkitTransform",d),S(z,"mozTransform",d),S(z,"msTransform",d),S(z,"transform",d),ue=c,de=u,ce=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!z){var e=this.options.fallbackOnBody?document.body:q,t=M(Q,!0,Me,!0,e),n=this.options;if(Me){for(be=e;"static"===S(be,"position")&&"none"===S(be,"transform")&&be!==document;)be=be.parentNode;be!==document.body&&be!==document.documentElement?(be===document&&(be=O()),t.top+=be.scrollTop,t.left+=be.scrollLeft):be=O(),Se=k(be)}E(z=Q.cloneNode(!0),n.ghostClass,!1),E(z,n.fallbackClass,!0),E(z,n.dragClass,!0),S(z,"transition",""),S(z,"transform",""),S(z,"box-sizing","border-box"),S(z,"margin",0),S(z,"top",t.top),S(z,"left",t.left),S(z,"width",t.width),S(z,"height",t.height),S(z,"opacity","0.8"),S(z,"position",Me?"absolute":"fixed"),S(z,"zIndex","100000"),S(z,"pointerEvents","none"),Ye.ghost=z,e.appendChild(z),S(z,"transform-origin",he/parseInt(z.style.width)*100+"% "+pe/parseInt(z.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,r=n.options;H("dragStart",this,{evt:e}),Ye.eventCanceled?this._onDrop():(H("setupClone",this),Ye.eventCanceled||((ee=Y(Q)).draggable=!1,ee.style["will-change"]="",this._hideClone(),E(ee,this.options.chosenClass,!1),Ye.clone=ee),n.cloneId=Ke((function(){H("clone",n),Ye.eventCanceled||(n.options.removeCloneOnHide||q.insertBefore(ee,Q),n._hideClone(),W({sortable:n,name:"clone"}))})),!t&&E(Q,r.dragClass,!0),t?(we=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,Q)),g(document,"drop",n),S(Q,"transform","translateZ(0)")),_e=!0,n._dragStartId=Ke(n._dragStarted.bind(n,t,e)),g(document,"selectstart",n),me=!0,h&&S(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,r,a=this.el,l=e.target,s=this.options,c=s.group,u=Ye.active,d=ie===c,h=s.sort,p=le||u,m=this,f=!1;if(!Ce){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=w(l,s.draggable,a,!0),j("dragOver"),Ye.eventCanceled)return f;if(Q.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||m._ignoreWhileAnimating===l)return V(!1);if(we=!1,u&&!s.disabled&&(d?h||(o=!q.contains(Q)):le===this||(this.lastPutMode=ie.checkPull(this,u,Q,e))&&c.checkPut(this,u,Q,e))){if(r="vertical"===this._getDirection(e,l),t=M(Q),j("dragOverValid"),Ye.eventCanceled)return f;if(o)return J=q,Y(),this._hideClone(),j("revert"),Ye.eventCanceled||(Z?q.insertBefore(Q,Z):q.appendChild(Q)),V(!0);var g=P(a,s.draggable);if(!g||function(e,t,n){var o=M(P(n.el,n.options.draggable));return t?e.clientX>o.right+10||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+10}(e,r,this)&&!g.animated){if(g===Q)return V(!1);if(g&&a===e.target&&(l=g),l&&(n=M(l)),!1!==Ve(q,a,Q,t,l,n,e,!!l))return Y(),a.appendChild(Q),J=a,G(),V(!0)}else if(l.parentNode===a){n=M(l);var v,b,_,y=Q.parentNode!==a,A=!function(e,t,n){var o=n?e.left:e.top,r=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===i||r===l||o+a/2===i+s/2}(Q.animated&&Q.toRect||t,l.animated&&l.toRect||n,r),C=r?"top":"left",D=x(l,"top","top")||x(Q,"top","top"),O=D?D.scrollTop:void 0;if(fe!==l&&(b=n[C],Ae=!1,Ee=!A&&s.invertSwap||y),v=function(e,t,n,o,r,a,i,l){var s=o?e.clientY:e.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!i)if(l&&ve<c*r){if(!Ae&&(1===ge?s>u+c*a/2:s<d-c*a/2)&&(Ae=!0),Ae)h=!0;else if(1===ge?s<u+ve:s>d-ve)return-ge}else if(s>u+c*(1-r)/2&&s<d-c*(1-r)/2)return function(e){return I(Q)<I(e)?1:-1}(t);return(h=h||i)&&(s<u+c*a/2||s>d-c*a/2)?s>u+c/2?1:-1:0}(e,l,n,r,A?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ee,fe===l),0!==v){var T=I(Q);do{T-=v,_=J.children[T]}while(_&&("none"===S(_,"display")||_===z))}if(0===v||_===l)return V(!1);fe=l,ge=v;var k=l.nextElementSibling,N=!1,B=Ve(q,a,Q,t,l,n,e,N=1===v);if(!1!==B)return 1!==B&&-1!==B||(N=1===B),Ce=!0,setTimeout(Ue,30),Y(),N&&!k?a.appendChild(Q):l.parentNode.insertBefore(Q,N?k:l),D&&R(D,0,O-D.scrollTop),J=Q.parentNode,void 0===b||Ee||(ve=Math.abs(b-M(l)[C])),G(),V(!0)}if(a.contains(Q))return V(!1)}return!1}function j(s,c){H(s,m,i({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:h,fromSortable:p,target:l,completed:V,onMove:function(n,o){return Ve(q,a,Q,t,n,M(n),e,o)},changed:G},c))}function Y(){j("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function V(t){return j("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(m),m!==p&&(E(Q,le?le.options.ghostClass:u.options.ghostClass,!1),E(Q,s.ghostClass,!0)),le!==m&&m!==Ye.active?le=m:m===Ye.active&&le&&(le=null),p===m&&(m._ignoreWhileAnimating=l),m.animateAll((function(){j("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===Q&&!Q.animated||l===a&&!l.animated)&&(fe=null),s.dragoverBubble||e.rootEl||l===document||(Q.parentNode[U]._isOutsideThisEl(e.target),!t&&je(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function G(){oe=I(Q),ae=I(Q,s.draggable),W({sortable:m,name:"change",toEl:a,newIndex:oe,newDraggableIndex:ae,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",je),v(document,"mousemove",je),v(document,"touchmove",je)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;oe=I(Q),ae=I(Q,n.draggable),H("drop",this,{evt:e}),J=Q&&Q.parentNode,oe=I(Q),ae=I(Q,n.draggable),Ye.eventCanceled||(_e=!1,Ee=!1,Ae=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Le(this.cloneId),Le(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),h&&S(document.body,"user-select",""),S(Q,"transform",""),e&&(me&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),z&&z.parentNode&&z.parentNode.removeChild(z),(q===J||le&&"clone"!==le.lastPutMode)&&ee&&ee.parentNode&&ee.parentNode.removeChild(ee),Q&&(this.nativeDraggable&&v(Q,"dragend",this),Ge(Q),Q.style["will-change"]="",me&&!_e&&E(Q,le?le.options.ghostClass:this.options.ghostClass,!1),E(Q,this.options.chosenClass,!1),W({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),q!==J?(oe>=0&&(W({rootEl:J,name:"add",toEl:J,fromEl:q,originalEvent:e}),W({sortable:this,name:"remove",toEl:J,originalEvent:e}),W({rootEl:J,name:"sort",toEl:J,fromEl:q,originalEvent:e}),W({sortable:this,name:"sort",toEl:J,originalEvent:e})),le&&le.save()):oe!==ne&&oe>=0&&(W({sortable:this,name:"update",toEl:J,originalEvent:e}),W({sortable:this,name:"sort",toEl:J,originalEvent:e})),Ye.active&&(null!=oe&&-1!==oe||(oe=ne,ae=re),W({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){H("nulling",this),q=Q=J=z=Z=ee=$=te=se=ce=me=oe=ae=ne=re=fe=ge=le=ie=Ye.dragged=Ye.ghost=Ye.clone=Ye.active=null,De.forEach((function(e){e.checked=!0})),De.length=ue=de=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,r=n.length,a=this.options;o<r;o++)w(e=n[o],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Fe(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var r=o.children[t];w(r,this.options.draggable,o,!1)&&(n[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=L.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&ke(n)},destroy:function(){H("destroy",this);var e=this.el;e[U]=null,v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart),v(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ye.splice(ye.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!te){if(H("hideClone",this),Ye.eventCanceled)return;S(ee,"display","none"),this.options.removeCloneOnHide&&ee.parentNode&&ee.parentNode.removeChild(ee),te=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(te){if(H("showClone",this),Ye.eventCanceled)return;Q.parentNode!=q||this.options.group.revertClone?Z?q.insertBefore(ee,Z):q.appendChild(ee):q.insertBefore(ee,Q),this.options.group.revertClone&&this.animate(Q,ee),S(ee,"display",""),te=!1}}else this._hideClone()}},Oe&&g(document,"touchmove",(function(e){(Ye.active||_e)&&e.cancelable&&e.preventDefault()})),Ye.utils={on:g,off:v,css:S,find:D,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:j,closest:w,toggleClass:E,clone:Y,index:I,nextTick:Ke,cancelNextTick:Le,detectDirection:Ie,getChild:T},Ye.get=function(e){return e[U]},Ye.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ye.utils=i({},Ye.utils,e.utils)),L.mount(e)}))},Ye.create=function(e,t){return new Ye(e,t)},Ye.version="1.13.0";var Xe,He,We,Qe,Je,ze,qe=[],Ze=!1;function $e(){qe.forEach((function(e){clearInterval(e.pid)})),qe=[]}function et(){clearInterval(ze)}var tt,nt=j((function(e,t,n,o){if(t.scroll){var r,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=O(),u=!1;He!==n&&(He=n,$e(),Xe=t.scroll,r=t.scrollFn,!0===Xe&&(Xe=N(n,!0)));var d=0,h=Xe;do{var p=h,m=M(p),f=m.top,g=m.bottom,v=m.left,b=m.right,_=m.width,w=m.height,y=void 0,A=void 0,E=p.scrollWidth,C=p.scrollHeight,D=S(p),x=p.scrollLeft,T=p.scrollTop;p===c?(y=_<E&&("auto"===D.overflowX||"scroll"===D.overflowX||"visible"===D.overflowX),A=w<C&&("auto"===D.overflowY||"scroll"===D.overflowY||"visible"===D.overflowY)):(y=_<E&&("auto"===D.overflowX||"scroll"===D.overflowX),A=w<C&&("auto"===D.overflowY||"scroll"===D.overflowY));var P=y&&(Math.abs(b-a)<=l&&x+_<E)-(Math.abs(v-a)<=l&&!!x),I=A&&(Math.abs(g-i)<=l&&T+w<C)-(Math.abs(f-i)<=l&&!!T);if(!qe[d])for(var k=0;k<=d;k++)qe[k]||(qe[k]={});qe[d].vx==P&&qe[d].vy==I&&qe[d].el===p||(qe[d].el=p,qe[d].vx=P,qe[d].vy=I,clearInterval(qe[d].pid),0==P&&0==I||(u=!0,qe[d].pid=setInterval(function(){o&&0===this.layer&&Ye.active._onTouchMove(Je);var t=qe[this.layer].vy?qe[this.layer].vy*s:0,n=qe[this.layer].vx?qe[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(Ye.dragged.parentNode[U],n,t,e,Je,qe[this.layer].el)||R(qe[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=N(h,!1)));Ze=u}}),30),ot=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||r;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(a("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function rt(){}function at(){}function it(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;tt=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,r=e.activeSortable,a=e.changed,i=e.cancel;if(r.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=tt;!1!==o(n)?(E(n,s.swapClass,!0),tt=n):tt=null,c&&c!==tt&&E(c,s.swapClass,!1)}a(),t(!0),i()}},drop:function(e){var t,n,o,r,a,i,l=e.activeSortable,s=e.putSortable,c=e.dragEl,u=s||this.sortable,d=this.options;tt&&E(tt,d.swapClass,!1),tt&&(d.swap||s&&s.options.swap)&&c!==tt&&(u.captureAnimationState(),u!==l&&l.captureAnimationState(),n=tt,a=(t=c).parentNode,i=n.parentNode,a&&i&&!a.isEqualNode(n)&&!i.isEqualNode(t)&&(o=I(t),r=I(n),a.isEqualNode(i)&&o<r&&r++,a.insertBefore(n,a.children[o]),i.insertBefore(t,i.children[r])),u.animateAll(),u!==l&&l.animateAll())},nulling:function(){tt=null}},a(e,{pluginName:"swap",eventProperties:function(){return{swapItem:tt}}})}rt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=T(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ot},a(rt,{pluginName:"revertOnSpill"}),at.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ot},a(at,{pluginName:"removeOnSpill"});var lt,st,ct,ut,dt,ht=[],pt=[],mt=!1,ft=!1,gt=!1;function vt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?g(document,"pointerup",this._deselectMultiDrag):(g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag)),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var o="";ht.length&&st===e?ht.forEach((function(e,t){o+=(t?", ":"")+e.textContent})):o=n.textContent,t.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;ct=t},delayEnded:function(){this.isMultiDrag=~ht.indexOf(ct)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var o=0;o<ht.length;o++)pt.push(Y(ht[o])),pt[o].sortableIndex=ht[o].sortableIndex,pt[o].draggable=!1,pt[o].style["will-change"]="",E(pt[o],this.options.selectedClass,!1),ht[o]===ct&&E(pt[o],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,o=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ht.length&&st===t&&(bt(!0,n),o("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,o=e.cancel;this.isMultiDrag&&(bt(!1,n),pt.forEach((function(e){S(e,"display","")})),t(),dt=!1,o())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),o=e.cancel;this.isMultiDrag&&(pt.forEach((function(e){S(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),dt=!0,o())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&st&&st.multiDrag._deselectMultiDrag(),ht.forEach((function(e){e.sortableIndex=I(e)})),ht=ht.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),gt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){ht.forEach((function(e){e!==ct&&S(e,"position","absolute")}));var o=M(ct,!1,!0,!0);ht.forEach((function(e){e!==ct&&V(e,o)})),ft=!0,mt=!0}n.animateAll((function(){ft=!1,mt=!1,t.options.animation&&ht.forEach((function(e){G(e)})),t.options.sort&&_t()}))}},dragOver:function(e){var t=e.target,n=e.completed,o=e.cancel;ft&&~ht.indexOf(t)&&(n(!1),o())},revert:function(e){var t=e.fromSortable,n=e.rootEl,o=e.sortable,r=e.dragRect;ht.length>1&&(ht.forEach((function(e){o.addAnimationState({target:e,rect:ft?M(e):r}),G(e),e.fromRect=r,t.removeAnimationState(e)})),ft=!1,function(e,t){ht.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,r=e.activeSortable,a=e.parentEl,i=e.putSortable,l=this.options;if(o){if(n&&r._hideClone(),mt=!1,l.animation&&ht.length>1&&(ft||!n&&!r.options.sort&&!i)){var s=M(ct,!1,!0,!0);ht.forEach((function(e){e!==ct&&(V(e,s),a.appendChild(e))})),ft=!0}if(!n)if(ft||_t(),ht.length>1){var c=dt;r._showClone(t),r.options.animation&&!dt&&c&&pt.forEach((function(e){r.addAnimationState({target:e,rect:ut}),e.fromRect=ut,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(ht.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){ut=a({},t);var r=C(ct,!0);ut.top-=r.f,ut.left-=r.e}},dragOverAnimationComplete:function(){ft&&(ft=!1,_t())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,r=e.sortable,a=e.dispatchSortableEvent,i=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var c=this.options,u=o.children;if(!gt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),E(ct,c.selectedClass,!~ht.indexOf(ct)),~ht.indexOf(ct))ht.splice(ht.indexOf(ct),1),lt=null,X({sortable:r,rootEl:n,name:"deselect",targetEl:ct,originalEvt:t});else{if(ht.push(ct),X({sortable:r,rootEl:n,name:"select",targetEl:ct,originalEvt:t}),t.shiftKey&<&&r.el.contains(lt)){var d,h,p=I(lt),m=I(ct);if(~p&&~m&&p!==m)for(m>p?(h=p,d=m):(h=m,d=p+1);h<d;h++)~ht.indexOf(u[h])||(E(u[h],c.selectedClass,!0),ht.push(u[h]),X({sortable:r,rootEl:n,name:"select",targetEl:u[h],originalEvt:t}))}else lt=ct;st=s}if(gt&&this.isMultiDrag){if((o[U].options.sort||o!==n)&&ht.length>1){var f=M(ct),g=I(ct,":not(."+this.options.selectedClass+")");if(!mt&&c.animation&&(ct.thisAnimationDuration=null),s.captureAnimationState(),!mt&&(c.animation&&(ct.fromRect=f,ht.forEach((function(e){if(e.thisAnimationDuration=null,e!==ct){var t=ft?M(e):f;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),_t(),ht.forEach((function(e){u[g]?o.insertBefore(e,u[g]):o.appendChild(e),g++})),i===I(ct))){var v=!1;ht.forEach((function(e){e.sortableIndex===I(e)||(v=!0)})),v&&a("update")}ht.forEach((function(e){G(e)})),s.animateAll()}st=s}(n===o||l&&"clone"!==l.lastPutMode)&&pt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=gt=!1,pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==gt&>||st!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;ht.length;){var t=ht[0];E(t,this.options.selectedClass,!1),ht.shift(),X({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[U];t&&t.options.multiDrag&&!~ht.indexOf(e)&&(st&&st!==t&&(st.multiDrag._deselectMultiDrag(),st=t),E(e,t.options.selectedClass,!0),ht.push(e))},deselect:function(e){var t=e.parentNode[U],n=ht.indexOf(e);t&&t.options.multiDrag&&~n&&(E(e,t.options.selectedClass,!1),ht.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],o=[];return ht.forEach((function(e){var r;n.push({multiDragElement:e,index:e.sortableIndex}),r=ft&&e!==ct?-1:ft?I(e,":not(."+t.options.selectedClass+")"):I(e),o.push({multiDragElement:e,index:r})})),{items:(e=ht,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),clones:[].concat(pt),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function bt(e,t){pt.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function _t(){ht.forEach((function(e){e!==ct&&e.parentNode&&e.parentNode.removeChild(e)}))}Ye.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):this.options.supportPointer?g(document,"pointermove",this._handleFallbackAutoScroll):t.touches?g(document,"touchmove",this._handleFallbackAutoScroll):g(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),et(),$e(),clearTimeout(y),y=void 0},nulling:function(){Je=He=Xe=Ze=ze=We=Qe=null,qe.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(o,r);if(Je=e,t||u||c||h){nt(e,this.options,a,t);var i=N(a,!0);!Ze||ze&&o===We&&r===Qe||(ze&&et(),ze=setInterval((function(){var a=N(document.elementFromPoint(o,r),!0);a!==i&&(i=a,$e()),nt(e,n.options,a,t)}),10),We=o,Qe=r)}else{if(!this.options.bubbleScroll||N(a,!0)===O())return void $e();nt(e,this.options,N(a,!1),!1)}}},a(e,{pluginName:"scroll",initializeByDefault:!0})}),Ye.mount(at,rt);const wt=Ye},177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o=function(e,t){if(!e)throw new Error("Invariant failed")}},196:e=>{"use strict";e.exports=window.React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=window.wp.element,t=window.wp.plugins,o=window.wp.components,r=window.wp.editPost,a=window.wp.i18n,i=window.wp.keyboardShortcuts,l=window.wp.compose,s=window.wp.data;var c=n(941);const u=(0,s.withDispatch)(((e,t)=>{const{stateUpdate:n,id:o}=t;return{updateElement(r){const a=r.filter((function(e){return!0===e.visible})).map((e=>e.id));n(o,JSON.stringify(a)),e("core/editor").editPost({meta:{[t.id]:JSON.stringify(a)}})},toggle(e){const{value:n}=t,o=n.map((function(t){return t.id===e&&(t.visible=!t.visible),t}));this.updateElement(o)}}}))((t=>{const{value:n,elements:r,updateElement:i,toggle:l}=t;return(0,e.createElement)("div",null,(0,e.createElement)(c._O,{className:"neve-meta-control neve-meta-sortable-items",list:n,setList:i,handle:".ti-sortable-handle",animation:"300"},n.map((t=>{const{id:n,visible:i}=t;return(0,e.createElement)("div",{className:`ti-sortable-item-area ti-sortable-item-area-${n}`,key:n},(0,e.createElement)("div",{className:i?"ti-sortable-item":"ti-sortable-item hidden"},(0,e.createElement)(o.Button,{isTertiary:!0,icon:i?"visibility":"hidden",label:(0,a.__)("Toggle","neve"),showTooltip:!0,className:"ti-sortable-item-toggle",onClick:()=>{l(n)}}),(0,e.createElement)("div",{className:"ti-sortable-item-label"},r[n]),(0,e.createElement)("div",{className:"ti-sortable-handle"},(0,e.createElement)(o.Button,{isTertiary:!0,icon:"menu"}))))}))))}));var d=n(184),h=n.n(d);const p=()=>(0,e.createElement)(o.SVG,{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(o.Path,{d:"M16.5 1.25H7.61111M16.5 9H0.5M16.5 16.75H7.61111",strokeWidth:"1.5"})),m=()=>(0,e.createElement)(o.SVG,{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(o.Path,{d:"M12.9444 1.25H4.05556M16.5 9H0.5M12.9444 16.75H4.05556",strokeWidth:"1.5"})),f=()=>(0,e.createElement)(o.SVG,{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(o.Path,{d:"M0.5 1.25H9.38889M0.5 9H16.5M0.5 16.75H9.38889",strokeWidth:"1.5"})),g=window.wp.neve.components;class v extends e.Component{constructor(e){super(e),this.defaultState={neve_meta_sidebar:"default",neve_meta_container:"default",neve_meta_enable_content_width:"off",neve_meta_content_width:70,neve_meta_title_alignment:"left",neve_meta_author_avatar:metaSidebar.avatarDefaultState?"on":"off",neve_meta_reading_time:metaSidebar.readingTimeDefaultState?"on":"off",neve_post_elements_order:JSON.stringify(["title","meta","thumbnail","content","tags","comments","post-navigation"]),neve_meta_disable_header:"off",neve_meta_disable_footer:"off",neve_meta_disable_title:"off"},this.defaultSortables=JSON.stringify(["title","meta","thumbnail","content","tags","comments","post-navigation"]),this.updateValues=this.updateValues.bind(this),this.resetAll=this.resetAll.bind(this),this.updateBlockWidth=this.updateBlockWidth.bind(this),this.updateTitleVisibility=this.updateTitleVisibility.bind(this)}componentDidUpdate(){const e=(0,s.select)("core/editor").getEditedPostAttribute("meta"),t=e=>(Object.keys(e).filter((t=>""===e[t]||0===e[t])).forEach((t=>delete e[t])),e),n={...t(this.defaultState),...t(e)};for(const e in n)Object.keys(this.defaultState).includes(e)||delete n[e];this.updateBlockWidth(),this.updateTitleVisibility()}updateValues(e,t){this.props.setMetaValue(e,t)}resetAll(){const e={...this.props.allMeta},t={};Object.keys(this.defaultState).map((e=>{let n="";return"neve_meta_content_width"===e&&(n=0),t[e]=n,e}));for(const n in t)Object.keys(e).includes(n)||delete t[n];this.props.setAllMetas({...e,...t})}addCSSToHead(e,t="neve-meta-editor-style"){const n=document.head,o=document.getElementById(t);if(o)return o.innerHTML=e,!1;const r=document.createElement("style");r.setAttribute("id",t),r.innerHTML=e,n.appendChild(r)}updateTitleVisibility(){let e=1;"on"===this.props.metaValue("neve_meta_disable_title")&&(e=.5);const t="h1.editor-post-title { opacity: "+e+"; }";this.addCSSToHead(t,"neve-meta-title-visibility-style")}updateBlockWidth(){const e=this.props.metaValue("neve_meta_enable_content_width");let t=this.props.metaValue("neve_meta_container");"default"!==t&&""!==t&&void 0!==t||(t=metaSidebar.actions.neve_meta_content_width.container);const n=this.props.metaValue("neve_meta_content_width"),o=metaSidebar.actions.neve_meta_content_width.content;let r=o+"%",a=n+"%";"contained"===t&&(r=Math.round(o/100*metaSidebar.actions.neve_meta_content_width.editor)+"px",a=Math.round(n/100*metaSidebar.actions.neve_meta_content_width.editor)+"px");const i='.wp-block:not([data-align="full"]) { max-width: '+("on"===e?a:r)+"; }";this.addCSSToHead(i)}renderPageLayoutGroup(){return"elementor_header_footer"!==(0,s.select)("core/editor").getEditedPostAttribute("template")&&(0,e.createElement)("div",{className:"nv-option-category"},(0,e.createElement)(o.PanelBody,{title:`${metaSidebar.postTypeLabel} `+(0,a.__)("Layout","neve"),intialOpen:!0},(0,e.createElement)(o.BaseControl,{id:"neve_meta_sidebar",label:(0,a.__)("Sidebar","neve"),className:"neve-meta-control neve-meta-radio-image neve_meta_sidebar"},(0,e.createElement)(o.RadioControl,{selected:this.props.metaValue("neve_meta_sidebar")||"default",options:[{label:(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{alt:(0,a.__)("Inherit","neve"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABXCAYAAAC9UeOHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAN6SURBVHgB7ZrfThpREMZn1SgUWiwkFi6gtol3mnjhi/QJmj5C36SP1gsvTGir0Rb/Baop20UL3fJtugaH3QXKzlLj90s2G5Rlc37MmTNnFqfreW/9weCDiLMujxjHkSPx/TdO13UPfV82hUDKxyXKuMf6kpB7UIiCQhQUoqAQBYUoKERBIQoKUVCIgkIUFKKgEAWFKChEQSEKClFQiIJCFBSioBAFhSgoREEhCgpRUIiCQhQrsgAGg4F0Om3peZ54wwOvwerqqiwvL8uzUkmKxafB66zJVEi325Xzs9PgHMXt7W1wvr6+Ds7lclleVGuZinF+dF1fjEEEQMTl5aX8C9VqNRBjDX4jYi4E3/rR4ZdgasxDsViUzVevgyllBYSYJlVExudPzbllAEwzfFaYb6wwFdL69vUuL6QBxGLqWWImBKtIp9OZ6Zq1tTVZWUnO88hDcUk5DcyEnJ+dyazs7OzI9vb2xPdZRonJsovoSJoqiIJCoTD2dyy3GxsbsrW1Jc1mM/Z6RAgOJNq0MRHyPWGq1Ot1aTQakgSkXFxc3NUjUUD6gxESt6ogR0BGu92W09PxsK/ValKpVOTk5CRRBnCN8kjqQkZLcU34jUJG1IARGZBxfHwsk8CUxH3SrktSF5JUJ4QluOu6kf8fzRvIMyjdIe7m5ib2XmkLyXS3iwFggP1+f+J7MVAk19JwoxdHmjVOSKabOyRKHCHhShMVMblcLjjHRQewKONTj5Bpd6aQgZoDURAFkivo9Xoy771mIfUICXsaSbkklBFWpXt7e2PvwYqEaIqLkHw+bxIhJlMGDZ6kWmQ0hyCnRMmDiKTVJjcUYoGJkHK5kigEg93f35fd3d0gSg4ODmRWqkb9ERMhqDdwJG3CkEixzE7azEXxfLgcW3XRzJbdaTpcyBGtVktmpWrYPTMTggixaPtZ91hNCzP0QlFtpgVk4DMtMa9U642XqURKFjJAJpUqBoIwR2Nn1nIb10GqxVY/ikweQ4yCtuI0YgpDAaXSejDlLDvto2TyGCIO7+9TO8/7eVeYYeD5/JMgGhbx1G6hQv5HzJ/LPEQoREEhCgpRUIiCQhQUoqAQBYUoKERBIQoKUVCIgkIUFKKgEAWFKChEQSEKClFQiIJCFBSioBAFhSgoREEhCgi5EhLg+3K15P/23/viHMkjBzL6v/x3fwDAqWHdPm8hRQAAAABJRU5ErkJggg=="}),(0,e.createElement)("span",{className:"option-label"},(0,a.__)("Inherit","neve"))),value:"default"},{label:(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{alt:(0,a.__)("None","neve"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABYCAYAAACjxTpsAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFISURBVHgB7dWxSsNgGEbht6UEgnGpg3HrUGf1DrxTL0yFutXBToFAsK3WoYtnMIVgW84zZwiHl/8btW07i/bKslxMPtfrp2T0GP1ot9vZOPrFKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKGCSnpqmyevLc07JRVVlPr/98/cuBfReSvVd/e7+IefMpQCjAKMAowBPMnApwJMMXAowCjAKMArwJAOXAjzJwKUAowCjAKMATzJwKcCTDFwKMAowCuj9pnRdl9XqI0OYTq9SFEX+20FR3pfLDKGqLk8zyu6nr+s6QziGIDsHRanrm5wzH1pgFGAUYBRgFGAUYBRgFGAUYBRgFGAUYBRgFGAUYBRgFGAUYBRgFGAUYBRgFGAUYBRgFGAUYBQw2WzyNhpnEe19AbO4NutQ2DJ9AAAAAElFTkSuQmCC"}),(0,e.createElement)("span",{className:"option-label"},(0,a.__)("None","neve"))),value:"full-width"},{label:(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{alt:(0,a.__)("Left","neve"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABXCAYAAABSk4i5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFDSURBVHgB7dUtT8NQFIfxM0ouYkWwUBLMMEMAiu/v+A6AQLH5+jVr9qL3iCZNTrPl+emrnuSe/+zrb7uPET6fd3FN7uv57CZ0xijAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjgNhL8/nzH1B6bJprmadDblChd18XU+r4f/DYlytv7R0ytqqrBb1OilFLiknhogVGAUYCTDJxk4CQDJxl4aIFRgFGAkwycZOAkAycZeGiBUYBRgJMMnGTgJAMnGXhogVFAyvdp2zbGOH2/uq4jS0qUzfo/xpgfg6xWr5ElJcrDYhFjlHIXmVKiLJcvcUk8tMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAowCjAKMAo4ABQ0jKnFSWXOgAAAABJRU5ErkJggg=="}),(0,e.createElement)("span",{className:"option-label"},(0,a.__)("Left","neve"))),value:"left"},{label:(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{alt:(0,a.__)("Right","neve"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABXCAYAAAC5pDO6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFVSURBVHgB7dlBSsNQFEbhWyORSCDYFajYgboH9z9zDerAOrMYCQSCmo498MqjCW3PB9nAIbn/IIv489V+/8QReX4/jxxPq4vFWehfhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgHJ/zLbto2315eY2/XNbVRVFfu200/evu9jbsMwxBSSw9R1HfcPjzG3oihiCju9MWVZxqnw+ALDAMMA5xo418C5Bs418PgCwwDDAOcaONfAuQbONfD4AsMAwwDnGjjXwLkGzjXw+ALDgORPqeu67ZOjaZrJbkSu5DCbzWd8rNeRo7xbbY/4IUgOU1WXcbVcRo5DeVtGyWHGz2B8ToXHFxgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgGGAYYBhgG/AIdeUYQlOqQ4AAAAABJRU5ErkJggg=="}),(0,e.createElement)("span",{className:"option-label"},(0,a.__)("Right","neve"))),value:"right"}],onChange:e=>{this.updateValues("neve_meta_sidebar",e),"left"!==e&&"right"!==e||this.updateValues("neve_meta_content_width",this.defaultState.neve_meta_content_width)}})),(0,e.createElement)(o.BaseControl,{label:(0,a.__)("Container","neve"),id:"neve_meta_container",className:"neve-meta-control neve-meta-button-group neve_meta_container"},(0,e.createElement)(o.ButtonGroup,null,(0,e.createElement)(o.Button,{isPrimary:"default"===(this.props.metaValue("neve_meta_container")||"default"),isSecondary:"default"!==(this.props.metaValue("neve_meta_container")||"default"),onClick:()=>{this.updateValues("neve_meta_container","default")}}," ",(0,a.__)("Default","neve")," "),(0,e.createElement)(o.Button,{isPrimary:"contained"===this.props.metaValue("neve_meta_container"),isSecondary:"contained"!==this.props.metaValue("neve_meta_container"),onClick:()=>{this.updateValues("neve_meta_container","contained")}}," ",(0,a.__)("Contained","neve")," "),(0,e.createElement)(o.Button,{isPrimary:"full-width"===this.props.metaValue("neve_meta_container"),isSecondary:"full-width"!==this.props.metaValue("neve_meta_container"),onClick:()=>{this.updateValues("neve_meta_container","full-width")}}," ",(0,a.__)("Full Width","neve")," "))),(0,e.createElement)(o.BaseControl,{id:"neve_meta_enable_content_width",className:"neve-meta-control neve-meta-checkbox neve_meta_enable_content_width"},(0,e.createElement)(o.ToggleControl,{label:(0,a.__)("Custom Content Width (%)","neve"),checked:"on"===this.props.metaValue("neve_meta_enable_content_width"),onChange:e=>{this.updateValues("neve_meta_enable_content_width",e?"on":"off"),this.updateValues("neve_meta_content_width",this.props.metaValue("neve_meta_content_width")||70)}})),"on"===this.props.metaValue("neve_meta_enable_content_width")?(0,e.createElement)(o.BaseControl,{id:"neve_meta_content_width",className:"neve-meta-control neve-meta-range neve_meta_content_width"},(0,e.createElement)(o.RangeControl,{value:this.props.metaValue("neve_meta_content_width"),onChange:e=>{this.updateValues("neve_meta_content_width",e)},min:0,max:100,step:"1"}),this.props.metaValue("neve_meta_content_width")&&this.props.metaValue("neve_meta_content_width")>80&&("left"===this.props.metaValue("neve_meta_sidebar")||"right"===this.props.metaValue("neve_meta_sidebar"))&&(0,e.createElement)(o.Notice,{isDismissible:!1},(0,e.createElement)("small",null,(0,a.__)("Note: Setting the content width over 80% might affect the sidebar width. Sidebar will ultimately disappear at 95%.","neve")))):""))}renderPageTitleGroup(){if("elementor_header_footer"===(0,s.select)("core/editor").getEditedPostAttribute("template"))return!1;const t=metaSidebar.isCoverLayout||JSON.parse(this.props.metaValue("neve_post_elements_order")||this.defaultSortables).includes("meta"),n=(0,s.select)("core/editor").getCurrentPostType();return(0,e.createElement)("div",{className:"nv-option-category"},(0,e.createElement)(o.PanelBody,{title:`${metaSidebar.postTypeLabel} `+(0,a.__)("Title","neve"),intialOpen:!0},(0,e.createElement)(o.BaseControl,{label:(0,a.__)("Title alignment","neve"),id:"neve_meta_title_alignment",className:"neve-meta-control neve-meta-button-group neve_meta_title_alignment"},(0,e.createElement)(o.ButtonGroup,null,(0,e.createElement)(o.Button,{icon:f,className:"nv-align-left",isPrimary:"left"===(this.props.metaValue("neve_meta_title_alignment")||"left"),isSecondary:"left"!==(this.props.metaValue("neve_meta_title_alignment")||"left"),onClick:()=>{this.updateValues("neve_meta_title_alignment","left")}}),(0,e.createElement)(o.Button,{icon:m,className:"nv-align-center",isPrimary:"center"===this.props.metaValue("neve_meta_title_alignment"),isSecondary:"center"!==this.props.metaValue("neve_meta_title_alignment"),onClick:()=>{this.updateValues("neve_meta_title_alignment","center")}}),(0,e.createElement)(o.Button,{icon:p,className:"nv-align-right",isPrimary:"right"===this.props.metaValue("neve_meta_title_alignment"),isSecondary:"right"!==this.props.metaValue("neve_meta_title_alignment"),onClick:()=>{this.updateValues("neve_meta_title_alignment","right")}}))),t&&"page"!==n?(0,e.createElement)(o.BaseControl,{id:"neve_meta_author_avatar",className:"neve-meta-control neve-meta-checkbox neve_meta_author_avatar"},(0,e.createElement)(o.ToggleControl,{label:(0,a.__)("Author Avatar","neve"),checked:this.props.metaValue("neve_meta_author_avatar")?"on"===this.props.metaValue("neve_meta_author_avatar"):metaSidebar.avatarDefaultState,onChange:e=>{this.updateValues("neve_meta_author_avatar",e?"on":"off")}})):"",metaSidebar.enable_pro&&t&&("post"===n||metaSidebar.supported_types&&metaSidebar.supported_types.includes(n))?(0,e.createElement)(o.BaseControl,{id:"neve_meta_reading_time",className:"neve-meta-control neve-meta-checkbox neve_meta_reading_time"},(0,e.createElement)(o.ToggleControl,{label:(0,a.__)("Reading Time","neve"),checked:this.props.metaValue("neve_meta_reading_time")?"on"===this.props.metaValue("neve_meta_reading_time"):metaSidebar.readingTimeDefaultState,onChange:e=>{this.updateValues("neve_meta_reading_time",e?"on":"off")}})):""))}renderElementsGroup(){const t=metaSidebar.isCoverLayout?{content:(0,a.__)("Content","neve"),tags:(0,a.__)("Tags","neve"),comments:(0,a.__)("Comments","neve"),"post-navigation":(0,a.__)("Post Navigation","neve")}:{title:(0,a.__)("Post Title","neve"),meta:(0,a.__)("Post Meta","neve"),thumbnail:(0,a.__)("Featured Image","neve"),content:(0,a.__)("Content","neve"),tags:(0,a.__)("Tags","neve"),comments:(0,a.__)("Comments","neve"),"post-navigation":(0,a.__)("Post Navigation","neve")},n=t;metaSidebar.enable_pro&&(n["author-biography"]=(0,a.__)("Author Biography","neve"),n["related-posts"]=(0,a.__)("Related Posts","neve"),n["sharing-icons"]=(0,a.__)("Sharing Icons","neve"));const r=(0,s.select)("core/editor").getEditedPostAttribute("template"),i=(0,s.select)("core/editor").getCurrentPostType(),l=(0,s.select)("core/editor").getEditedPostAttribute("meta").neve_post_elements_order||metaSidebar.elementsDefaultOrder;return(0,e.createElement)("div",{className:"nv-option-category"},(0,e.createElement)(o.PanelBody,{title:(0,a.__)("Elements","neve"),intialOpen:!0},"elementor_header_footer"!==r&&"page"!==i?(0,e.createElement)(o.BaseControl,{id:"neve_post_elements_order",className:"neve-meta-control neve-meta-sortable"},(0,e.createElement)(u,{stateUpdate:this.updateValues,id:"neve_post_elements_order",elements:t,value:(c=(0,g.maybeParseJson)(l),[...c.filter((e=>n.hasOwnProperty(e))).map((e=>({id:e,visible:!0}))),...Object.keys(t).filter((e=>!c.includes(e))).map((e=>({id:e,visible:!1})))])})):"",(0,e.createElement)(o.BaseControl,{id:"neve_meta_disable_header",className:"neve-meta-control neve-meta-checkbox neve_meta_disable_header"},(0,e.createElement)(o.ToggleControl,{label:(0,a.__)("Disable Header","neve"),checked:"on"===this.props.metaValue("neve_meta_disable_header"),onChange:e=>{this.updateValues("neve_meta_disable_header",e?"on":"off")}})),(0,e.createElement)(o.BaseControl,{id:"neve_meta_disable_footer",className:"neve-meta-control neve-meta-checkbox neve_meta_disable_footer"},(0,e.createElement)(o.ToggleControl,{label:(0,a.__)("Disable Footer","neve"),checked:"on"===this.props.metaValue("neve_meta_disable_footer"),onChange:e=>{this.updateValues("neve_meta_disable_footer",e?"on":"off")}})),"elementor_header_footer"!==r&&"page"===i?(0,e.createElement)(o.BaseControl,{id:"neve_meta_disable_title",className:"neve-meta-control neve-meta-checkbox neve_meta_disable_title"},(0,e.createElement)(o.ToggleControl,{label:(0,a.__)("Disable Title","neve"),checked:"on"===this.props.metaValue("neve_meta_disable_title"),onChange:e=>{this.updateValues("neve_meta_disable_title",e?"on":"off")}})):""));var c}renderResetButton(){return(0,e.createElement)(o.BaseControl,{label:(0,a.__)("Reset all options to default","neve"),id:"neve_reset_all",className:"nv-reset-all components-panel__body is-opened"},(0,e.createElement)(o.Button,{icon:"image-rotate",className:"nv-reset-meta",onClick:()=>{this.resetAll()},label:(0,a.__)("Return to customizer settings","neve"),showTooltip:!0}))}render(){return(0,e.createElement)(e.Fragment,null,this.renderPageLayoutGroup(),this.renderPageTitleGroup(),this.renderElementsGroup(),this.renderResetButton())}}const b=(0,l.compose)([(0,s.withDispatch)((e=>({setMetaValue:(t,n)=>{e("core/editor").editPost({meta:{[t]:n}})},setAllMetas:t=>{e("core/editor").editPost({meta:t})}}))),(0,s.withSelect)((e=>({metaValue:t=>e("core/editor").getEditedPostAttribute("meta")[t],allMeta:e("core/editor").getEditedPostAttribute("meta")})))])(v),_=(0,l.compose)((0,s.withDispatch)((e=>e("core/keyboard-shortcuts").registerShortcut({name:"neve/open-meta-sidebar",category:"block",description:(0,a.__)("Open Neve meta sidebar","neve"),keyCombination:{modifier:"access",character:"s"}}))),(0,s.withSelect)((e=>({template:e("core/editor").getEditedPostAttribute("template")}))))((function(t){(0,i.useShortcut)("neve/open-meta-sidebar",(0,e.useCallback)((()=>{const e=(0,s.select)("core/edit-post").getActiveGeneralSidebarName();e?((0,s.dispatch)("core/edit-post").closeGeneralSidebar(e),"meta-sidebar/neve-meta-sidebar"!==e&&(0,s.dispatch)("core/edit-post").openGeneralSidebar("meta-sidebar/neve-meta-sidebar")):(0,s.dispatch)("core/edit-post").openGeneralSidebar("meta-sidebar/neve-meta-sidebar")}),[]));const n=document.getElementById("neve-page-settings-notice");if("elementor_canvas"===t.template&&n)return n.style.display="none",!1;n&&(n.style.display="block");//translators: %s - Theme name let o=(0,a.sprintf)((0,a.__)("%s Options","neve"),(0,a.__)("Neve","neve"));return metaSidebar.whiteLabeled&&(o=metaSidebar.whiteLabelThemeName?metaSidebar.whiteLabelThemeName+" "+(0,a.__)("Options","neve"):(0,a.__)("Options","neve")),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.PluginSidebarMoreMenuItem,{target:"neve-meta-sidebar"},o),(0,e.createElement)(r.PluginSidebar,{name:"neve-meta-sidebar",title:o},(0,e.createElement)(b,null)))})),w=metaSidebar.whiteLabeled?"hammer":({className:t})=>(0,e.createElement)(o.SVG,{width:"17",height:"24",viewBox:"0 0 17 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:h()(["neve-icon",t])},(0,e.createElement)(o.Path,{d:"M4.77822 10.2133V19.3287H0.118347V0.802224C0.118347 0.712594 0.145598 0.649854 0.200099 0.614002C0.254601 0.578149 0.354519 0.622964 0.499857 0.748446L12.1359 10.2133V1.04422H16.7958V19.5976C16.7958 19.7051 16.7685 19.7724 16.714 19.7992C16.6595 19.8261 16.5596 19.7768 16.4143 19.6514L4.77822 10.2133Z"}),(0,e.createElement)(o.Rect,{x:"0.118347",y:"22.3334",width:"16.6774",height:"1.51613"}));(0,t.registerPlugin)("meta-sidebar",{icon:(0,e.createElement)(o.Icon,{icon:w}),render:_})})()})();