tocco-devcon 1.0.83-hotfix34.21 → 1.0.83-hotfix34.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +6 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -61,4 +61,4 @@ object-assign
|
|
|
61
61
|
* LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case p:case a:case c:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}function x(e){return k(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=c,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||k(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===m},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=k},51976:(e,t,n)=>{"use strict";e.exports=n(9734)},94842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:()=>h,default:()=>g});var r=n(1024),o=n(30314);function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var s,u,l=(void 0===s&&(s=0),function(){return++s}),p={},d={},f=["touchstart","touchmove"],h="ignore-react-onclickoutside";function m(e,t){var n=null;return-1!==f.indexOf(t)&&u&&(n={passive:!e.props.preventDefault}),n}const g=function(e,t){var n,s,f=e.displayName||e.name||"Component";return s=n=function(n){var s,h;function g(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,o.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!d[r._uid]){void 0===u&&(u=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),d[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),p[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&c(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,p[r._uid],m(i(r),e))}))}},r.disableOnClickOutside=function(){delete d[r._uid];var e=p[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,m(i(r),t))})),delete p[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=l(),r}h=n,(s=g).prototype=Object.create(h.prototype),s.prototype.constructor=s,a(s,h);var v=g.prototype;return v.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},v.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+f+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},v.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},v.componentWillUnmount=function(){this.disableOnClickOutside()},v.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,r.createElement)(e,n)},g}(r.Component),n.displayName="OnClickOutside("+f+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:h,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},s}},28384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Manager:()=>i,Popper:()=>d,Reference:()=>m,usePopper:()=>s.D});var r=n(1024),o=r.createContext(),a=r.createContext();function i(e){var t=e.children,n=r.useState(null),i=n[0],c=n[1],s=r.useRef(!1);r.useEffect((function(){return function(){s.current=!0}}),[]);var u=r.useCallback((function(e){s.current||c(e)}),[]);return r.createElement(o.Provider,{value:i},r.createElement(a.Provider,{value:u},t))}var c=n(87568),s=n(32654),u=function(){},l=function(){return Promise.resolve(null)},p=[];function d(e){var t=e.placement,n=void 0===t?"bottom":t,a=e.strategy,i=void 0===a?"absolute":a,d=e.modifiers,f=void 0===d?p:d,h=e.referenceElement,m=e.onFirstUpdate,g=e.innerRef,v=e.children,y=r.useContext(o),b=r.useState(null),w=b[0],k=b[1],x=r.useState(null),O=x[0],_=x[1];r.useEffect((function(){(0,c.k$)(g,w)}),[g,w]);var A=r.useMemo((function(){return{placement:n,strategy:i,onFirstUpdate:m,modifiers:[].concat(f,[{name:"arrow",enabled:null!=O,options:{element:O}}])}}),[n,i,m,f,O]),E=(0,s.D)(h||y,w,A),S=E.state,C=E.styles,P=E.forceUpdate,j=E.update,D=r.useMemo((function(){return{ref:k,style:C.popper,placement:S?S.placement:n,hasPopperEscaped:S&&S.modifiersData.hide?S.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:S&&S.modifiersData.hide?S.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:C.arrow,ref:_},forceUpdate:P||u,update:j||l}}),[k,_,n,S,C,j,P]);return(0,c.$p)(v)(D)}var f=n(99874),h=n.n(f);function m(e){var t=e.children,n=e.innerRef,o=r.useContext(a),i=r.useCallback((function(e){(0,c.k$)(n,e),(0,c.DL)(o,e)}),[n,o]);return r.useEffect((function(){return function(){return(0,c.k$)(n,null)}}),[]),r.useEffect((function(){h()(Boolean(o),"`Reference` should not be used outside of a `Manager` component.")}),[o]),(0,c.$p)(t)({ref:i})}},32654:(e,t,n)=>{"use strict";n.d(t,{D:()=>be});var r=n(1024),o=n(30314);function a(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof a(e).Element||e instanceof Element}function c(e){return e instanceof a(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof a(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.max,l=Math.min,p=Math.round;function d(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(c(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=p(n.width)/i||1),a>0&&(o=p(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function f(e){var t=a(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return d(m(e)).left+f(e).scrollLeft}function v(e){return a(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var r,o,i=c(t),s=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=m(t),l=d(e,s),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(i||!i&&!n)&&(("body"!==h(t)||y(u))&&(v=(r=t)!==a(r)&&c(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:f(r)),c(t)?((b=d(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=g(u))),{x:l.left+v.scrollLeft-b.x,y:l.top+v.scrollTop-b.y,width:l.width,height:l.height}}function w(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function x(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:c(e)&&y(e)?e:x(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=x(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=a(r),c=o?[i].concat(i.visualViewport||[],y(r)?r:[]):r,s=t.concat(c);return o?s:s.concat(O(k(c)))}function _(e){return["table","td","th"].indexOf(h(e))>=0}function A(e){return c(e)&&"fixed"!==v(e).position?e.offsetParent:null}function E(e){for(var t=a(e),n=A(e);n&&_(n)&&"static"===v(n).position;)n=A(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&c(e)&&"fixed"===v(e).position)return null;var n=k(e);for(s(n)&&(n=n.host);c(n)&&["html","body"].indexOf(h(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var S="top",C="bottom",P="right",j="left",D="auto",T=[S,C,P,j],M="start",I="end",N="viewport",Z="popper",R=T.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+I])}),[]),B=[].concat(T,[D]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+I])}),[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var H={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){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 W(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?H:o;return function(e,t,n){void 0===n&&(n=a);var o,c,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},H,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,p={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,o),s.scrollParents={reference:i(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var c=function(e){var t=F(e);return L.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(r,s.options.modifiers)));return s.orderedModifiers=c.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:p,options:r}),i=function(){};u.push(a||i)}})),p.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(U(t,n)){s.rects={reference:b(t,E(n),"fixed"===s.options.strategy),popper:w(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,c=void 0===i?{}:i,u=o.name;"function"==typeof a&&(s=a({state:s,options:c,name:u,instance:p})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(s)}))},function(){return c||(c=new Promise((function(e){Promise.resolve().then((function(){c=void 0,e(o())}))}))),c}),destroy:function(){d(),l=!0}};if(!U(e,t))return p;function d(){u.forEach((function(e){return e()})),u=[]}return p.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var z={passive:!0};function q(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?q(o):null,i=o?V(o):null,c=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case S:t={x:c,y:n.y-r.height};break;case C:t={x:c,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:s};break;case j:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?Y(a):null;if(null!=u){var l="y"===u?"height":"width";switch(i){case M:t[u]=t[u]-(n[l]/2-r[l]/2);break;case I:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}var $={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=c.x,g=void 0===h?0:h,y=c.y,b=void 0===y?0:y,w="function"==typeof d?d({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var k=c.hasOwnProperty("x"),x=c.hasOwnProperty("y"),O=j,_=S,A=window;if(l){var D=E(n),T="clientHeight",M="clientWidth";if(D===a(n)&&"static"!==v(D=m(n)).position&&"absolute"===s&&(T="scrollHeight",M="scrollWidth"),D=D,o===S||(o===j||o===P)&&i===I)_=C,b-=(f&&D===A&&A.visualViewport?A.visualViewport.height:D[T])-r.height,b*=u?1:-1;if(o===j||(o===S||o===C)&&i===I)O=P,g-=(f&&D===A&&A.visualViewport?A.visualViewport.width:D[M])-r.width,g*=u?1:-1}var N,Z=Object.assign({position:s},l&&$),R=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:p(t*r)/r||0,y:p(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=R.x,b=R.y,u?Object.assign({},Z,((N={})[_]=x?"0":"",N[O]=k?"0":"",N.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",N)):Object.assign({},Z,((t={})[_]=x?b+"px":"",t[O]=k?g+"px":"",t.transform="",t))}const X={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=B.reduce((function(e,n){return e[n]=function(e,t,n){var r=q(e),o=[j,S].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],c=a[1];return i=i||0,c=(c||0)*o,[j,P].indexOf(r)>=0?{x:c,y:i}:{x:i,y:c}}(n,t.rects,a),e}),{}),c=i[t.placement],s=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}};var Q={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,(function(e){return Q[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t){return t===N?re(function(e){var t=a(e),n=m(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,c=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:c+g(e),y:s}}(e)):i(t)?function(e){var t=d(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):re(function(e){var t,n=m(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=u(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=u(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+g(e),s=-r.scrollTop;return"rtl"===v(o||n).direction&&(c+=u(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:c,y:s}}(m(e)))}function ae(e,t,n){var r="clippingParents"===t?function(e){var t=O(k(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&c(e)?E(e):e;return i(n)?t.filter((function(e){return i(e)&&ne(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(t,n){var r=oe(e,n);return t.top=u(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=u(r.left,t.left),t}),oe(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,c=void 0===a?"clippingParents":a,s=n.rootBoundary,u=void 0===s?N:s,l=n.elementContext,p=void 0===l?Z:l,f=n.altBoundary,h=void 0!==f&&f,g=n.padding,v=void 0===g?0:g,y=ie("number"!=typeof v?v:ce(v,T)),b=p===Z?"reference":Z,w=e.rects.popper,k=e.elements[h?b:p],x=ae(i(k)?k:k.contextElement||m(e.elements.popper),c,u),O=d(e.elements.reference),_=G({reference:O,element:w,strategy:"absolute",placement:o}),A=re(Object.assign({},w,_)),E=p===Z?A:O,j={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},D=e.modifiersData.offset;if(p===Z&&D){var M=D[o];Object.keys(j).forEach((function(e){var t=[P,C].indexOf(e)>=0?1:-1,n=[S,C].indexOf(e)>=0?"y":"x";j[e]+=M[n]*t}))}return j}function ue(e,t,n){return u(e,l(t,n))}const le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0!==i&&i,s=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=se(t,{boundary:s,rootBoundary:p,padding:f,altBoundary:d}),b=q(t.placement),k=V(t.placement),x=!k,O=Y(b),_="x"===O?"y":"x",A=t.modifiersData.popperOffsets,D=t.rects.reference,T=t.rects.popper,I="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,N="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(A){if(a){var B,L="y"===O?S:j,F="y"===O?C:P,H="y"===O?"height":"width",U=A[O],W=U+y[L],z=U-y[F],G=m?-T[H]/2:0,$=k===M?D[H]:T[H],K=k===M?-T[H]:-D[H],X=t.elements.arrow,Q=m&&X?w(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[L],te=J[F],ne=ue(0,D[H],Q[H]),re=x?D[H]/2-G-ne-ee-N.mainAxis:$-ne-ee-N.mainAxis,oe=x?-D[H]/2+G+ne+te+N.mainAxis:K+ne+te+N.mainAxis,ae=t.elements.arrow&&E(t.elements.arrow),ie=ae?"y"===O?ae.clientTop||0:ae.clientLeft||0:0,ce=null!=(B=null==Z?void 0:Z[O])?B:0,le=U+oe-ce,pe=ue(m?l(W,U+re-ce-ie):W,U,m?u(z,le):z);A[O]=pe,R[O]=pe-U}if(c){var de,fe="x"===O?S:j,he="x"===O?C:P,me=A[_],ge="y"===_?"height":"width",ve=me+y[fe],ye=me-y[he],be=-1!==[S,j].indexOf(b),we=null!=(de=null==Z?void 0:Z[_])?de:0,ke=be?ve:me-D[ge]-T[ge]-we+N.altAxis,xe=be?me+D[ge]+T[ge]-we-N.altAxis:ye,Oe=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(ke,me,xe):ue(m?ke:ve,me,m?xe:ye);A[_]=Oe,R[_]=Oe-me}t.modifiersData[r]=R}},requiresIfExists:["offset"]};const pe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,c=q(n.placement),s=Y(c),u=[j,P].indexOf(c)>=0?"height":"width";if(a&&i){var l=function(e,t){return ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,T))}(o.padding,n),p=w(a),d="y"===s?S:j,f="y"===s?C:P,h=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],m=i[s]-n.rects.reference[s],g=E(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[d],k=v-p[u]-l[f],x=v/2-p[u]/2+y,O=ue(b,x,k),_=s;n.modifiersData[r]=((t={})[_]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function de(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 fe(e){return[S,P,C,j].some((function(t){return e[t]>=0}))}var he=W({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,c=r.resize,s=void 0===c||c,u=a(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",n.update,z)})),s&&u.addEventListener("resize",n.update,z),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",n.update,z)})),s&&u.removeEventListener("resize",n.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G({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,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,c=n.roundOffsets,s=void 0===c||c,u={placement:q(t.placement),variation:V(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{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]||{},r=t.attributes[e]||{},o=t.elements[e];c(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.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 r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},X,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,c=void 0===i||i,s=n.fallbackPlacements,u=n.padding,l=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=q(g),y=s||(v===g||!h?[J(g)]:function(e){if(q(e)===D)return[];var t=J(e);return[te(e),t,te(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(q(n)===D?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?B:s,l=V(r),p=l?c?R:R.filter((function(e){return V(e)===l})):T,d=p.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=p);var f=d.reduce((function(t,n){return t[n]=se(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[q(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:l,rootBoundary:p,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,k=t.rects.popper,x=new Map,O=!0,_=b[0],A=0;A<b.length;A++){var E=b[A],I=q(E),N=V(E)===M,Z=[S,C].indexOf(I)>=0,L=Z?"width":"height",F=se(t,{placement:E,boundary:l,rootBoundary:p,altBoundary:d,padding:u}),H=Z?N?P:j:N?C:S;w[L]>k[L]&&(H=J(H));var U=J(H),W=[];if(a&&W.push(F[I]<=0),c&&W.push(F[H]<=0,F[U]<=0),W.every((function(e){return e}))){_=E,O=!1;break}x.set(E,W)}if(O)for(var z=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 _=t,"break"},Y=h?3:1;Y>0;Y--){if("break"===z(Y))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},le,pe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=se(t,{elementContext:"reference"}),c=se(t,{altBoundary:!0}),s=de(i,r),u=de(c,o,a),l=fe(s),p=fe(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}]}),me=n(98836),ge=n.n(me),ve=n(87568),ye=[],be=function(e,t,n){void 0===n&&(n={});var a=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ye},c=r.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=c[0],u=c[1],l=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);o.flushSync((function(){u({styles:(0,ve.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,ve.sq)(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),p=r.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[l,{name:"applyStyles",enabled:!1}])};return ge()(a.current,e)?a.current||e:(a.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),d=r.useRef();return(0,ve.LI)((function(){d.current&&d.current.setOptions(p)}),[p]),(0,ve.LI)((function(){if(null!=e&&null!=t){var r=(n.createPopper||he)(e,t,p);return d.current=r,function(){r.destroy(),d.current=null}}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}},87568:(e,t,n)=>{"use strict";n.d(t,{$p:()=>o,DL:()=>a,LI:()=>s,k$:()=>i,sq:()=>c});var r=n(1024),o=function(e){return Array.isArray(e)?e[0]:e},a=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},i=function(e,t){if("function"==typeof e)return a(e,t);null!=e&&(e.current=t)},c=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},s="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},12864:(e,t,n)=>{"use strict";n.d(t,{A:()=>M,B:()=>I,C:()=>U,D:()=>H,E:()=>F,F:()=>_,G:()=>Re,H:()=>L,I:()=>S,J:()=>A,K:()=>T,L:()=>x,M:()=>G,_:()=>w,a:()=>v,b:()=>he,c:()=>Ze,d:()=>oe,e:()=>we,f:()=>fe,g:()=>xe,h:()=>Oe,i:()=>ie,j:()=>me,k:()=>Ae,l:()=>ve,m:()=>Q,n:()=>V,o:()=>$,p:()=>ne,q:()=>Pe,r:()=>W,s:()=>B,t:()=>je,u:()=>De,v:()=>X,w:()=>Me,x:()=>Ie,y:()=>Ne,z:()=>ae});var r=n(3640),o=n(82765),a=n(91411),i=n(56315),c=n(68957),s=n(73891),u=n(11259),l=n(44822),p=n(32208),d=n(46927),f=n(1024),h=n(30314);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}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){m(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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}var k=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],x=function(){};function O(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function _(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(O(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var A=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,s.Z)(e)&&null!==e?[e]:[];var t},E=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,v({},(0,i.Z)(e,k))};function S(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function C(e){return S(e)?window.pageYOffset:e.scrollTop}function P(e,t){S(e)?window.scrollTo(0,t):e.scrollTop=t}function j(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x,o=C(e),a=t-o,i=10,c=0;function s(){var t=j(c+=i,o,a,n);P(e,t),c<n?window.requestAnimationFrame(s):r(e)}s()}function T(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?P(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&P(e,Math.max(t.offsetTop-o,0))}function M(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function I(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var N=!1,Z={get passive(){return N=!0}},R="undefined"!=typeof window?window:{};R.addEventListener&&R.removeEventListener&&(R.addEventListener("p",x,Z),R.removeEventListener("p",x,!1));var B=N;function L(e){return null!=e}function F(e,t,n){return e?t:n}function H(e){return e}function U(e){return e}var W=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=(0,c.Z)(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=(0,c.Z)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})};function z(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,c=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,p=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,g=n.offsetParent.getBoundingClientRect().top,v=i?window.innerHeight:S(l=s)?window.innerHeight:l.clientHeight,y=C(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),k=g-w,x=v-m,O=k+y,_=p-y-m,A=f-v+y+b,E=y+m-w,j=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(_>=h&&!i)return a&&D(s,A,j),{placement:"bottom",maxHeight:t};if(!i&&_>=r||i&&x>=r)return a&&D(s,A,j),{placement:"bottom",maxHeight:i?x-b:_-b};if("auto"===o||i){var T=t,M=i?k:O;return M>=r&&(T=Math.min(M-b-c.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return a&&P(s,A),{placement:"bottom",maxHeight:t};break;case"top":if(k>=h)return{placement:"top",maxHeight:t};if(O>=h&&!i)return a&&D(s,E,j),{placement:"top",maxHeight:t};if(!i&&O>=r||i&&k>=r){var I=t;return(!i&&O>=r||i&&k>=r)&&(I=i?k-w:O-w),a&&D(s,E,j),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var q=function(e){return"auto"===e?"bottom":e},V=function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return t={label:"menu"},(0,d.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,d.Z)(t,"backgroundColor",i.neutral0),(0,d.Z)(t,"borderRadius",o),(0,d.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,d.Z)(t,"marginBottom",a.menuGutter),(0,d.Z)(t,"marginTop",a.menuGutter),(0,d.Z)(t,"position","absolute"),(0,d.Z)(t,"width","100%"),(0,d.Z)(t,"zIndex",1),t},Y=(0,f.createContext)({getPortalPlacement:null}),G=function(e){(0,p.Z)(n,e);var t=w(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,c=n.menuShouldScrollIntoView,s=n.theme;if(t){var u="fixed"===i,l=z({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:c&&!u,isFixedPosition:u,theme:s}),p=e.context.getPortalPlacement;p&&p(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||q(t);return v(v({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return(0,l.Z)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(f.Component);G.contextType=Y;var $=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},K=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},X=K,Q=K,J=function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:i("noOptionsMessage",e),className:a({"menu-notice":!0,"menu-notice--no-options":!0},n)},c),t)};J.defaultProps={children:"No options"};var ee=function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:i("loadingMessage",e),className:a({"menu-notice":!0,"menu-notice--loading":!0},n)},c),t)};ee.defaultProps={children:"Loading..."};var te,ne=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},re=function(e){(0,p.Z)(n,e);var t=w(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==q(e.props.menuPlacement)&&e.setState({placement:n})},e}return(0,l.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,a=e.className,i=e.controlElement,c=e.cx,s=e.innerProps,u=e.menuPlacement,l=e.menuPosition,p=e.getStyles,d="fixed"===l;if(!t&&!d||!i)return null;var f=this.state.placement||q(u),m=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),g=d?0:window.pageYOffset,v={offset:m[f]+g,position:l,rect:m},y=(0,o.tZ)("div",(0,r.Z)({css:p("menuPortal",v),className:c({"menu-portal":!0},a)},s),n);return(0,o.tZ)(Y.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,h.createPortal)(y,t):y)}}]),n}(f.Component),oe=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},ae=function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ie=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ce=["size"];var se={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ue=function(e){var t=e.size,n=(0,i.Z)(e,ce);return(0,o.tZ)("svg",(0,r.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:se},n))},le=function(e){return(0,o.tZ)(ue,(0,r.Z)({size:20},e),(0,o.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},pe=function(e){return(0,o.tZ)(ue,(0,r.Z)({size:20},e),(0,o.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},de=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},fe=de,he=de,me=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},ge=(0,o.F4)(te||(te=(0,a.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),ve=function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},ye=function(e){var t=e.delay,n=e.offset;return(0,o.tZ)("span",{css:(0,o.iv)({animation:"".concat(ge," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},be=function(e){var t=e.className,n=e.cx,a=e.getStyles,i=e.innerProps,c=e.isRtl;return(0,o.tZ)("div",(0,r.Z)({css:a("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},i),(0,o.tZ)(ye,{delay:0,offset:c}),(0,o.tZ)(ye,{delay:160,offset:!0}),(0,o.tZ)(ye,{delay:320,offset:!c}))};be.defaultProps={size:4};var we=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},ke=["data"],xe=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},Oe=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},_e=["innerRef","isDisabled","isHidden","inputClassName"],Ae=function(e){var t=e.isDisabled,n=e.value,r=e.theme,o=r.spacing,a=r.colors;return v({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80,transform:n?"translateZ(0)":""},Se)},Ee={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Se={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":v({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ee)},Ce=function(e){return v({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ee)},Pe=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},je=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},De=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},Te=function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",n,t)};var Me=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?i.primary:i.primary50}}},Ie=function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},Ne=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},Ze={ClearIndicator:function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:i("clearIndicator",e),className:a({indicator:!0,"clear-indicator":!0},n)},c),t||(0,o.tZ)(le,null))},Control:function(e){var t=e.children,n=e.cx,a=e.getStyles,i=e.className,c=e.isDisabled,s=e.isFocused,u=e.innerRef,l=e.innerProps,p=e.menuIsOpen;return(0,o.tZ)("div",(0,r.Z)({ref:u,css:a("control",e),className:n({control:!0,"control--is-disabled":c,"control--is-focused":s,"control--menu-is-open":p},i)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:i("dropdownIndicator",e),className:a({indicator:!0,"dropdown-indicator":!0},n)},c),t||(0,o.tZ)(pe,null))},DownChevron:pe,CrossIcon:le,Group:function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.Heading,s=e.headingProps,u=e.innerProps,l=e.label,p=e.theme,d=e.selectProps;return(0,o.tZ)("div",(0,r.Z)({css:i("group",e),className:a({group:!0},n)},u),(0,o.tZ)(c,(0,r.Z)({},s,{selectProps:d,theme:p,getStyles:i,cx:a}),l),(0,o.tZ)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,a=e.className,c=E(e);c.data;var s=(0,i.Z)(c,ke);return(0,o.tZ)("div",(0,r.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},a)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,a=e.cx,i=e.innerProps,c=e.getStyles;return(0,o.tZ)("div",(0,r.Z)({css:c("indicatorsContainer",e),className:a({indicators:!0},n)},i),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,a=e.getStyles,i=e.innerProps;return(0,o.tZ)("span",(0,r.Z)({},i,{css:a("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,a=e.getStyles,c=e.value,s=E(e),u=s.innerRef,l=s.isDisabled,p=s.isHidden,d=s.inputClassName,f=(0,i.Z)(s,_e);return(0,o.tZ)("div",{className:n({"input-container":!0},t),css:a("input",e),"data-value":c||""},(0,o.tZ)("input",(0,r.Z)({className:n({input:!0},d),ref:u,style:Ce(p),disabled:l},f)))},LoadingIndicator:be,Menu:function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.innerRef,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:i("menu",e),className:a({menu:!0},n),ref:c},s),t)},MenuList:function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.innerProps,s=e.innerRef,u=e.isMulti;return(0,o.tZ)("div",(0,r.Z)({css:i("menuList",e),className:a({"menu-list":!0,"menu-list--is-multi":u},n),ref:s},c),t)},MenuPortal:re,LoadingMessage:ee,NoOptionsMessage:J,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,a=e.cx,i=e.data,c=e.getStyles,s=e.innerProps,u=e.isDisabled,l=e.removeProps,p=e.selectProps,d=r.Container,f=r.Label,h=r.Remove;return(0,o.tZ)(o.ms,null,(function(r){var m=r.css,g=r.cx;return(0,o.tZ)(d,{data:i,innerProps:v({className:g(m(c("multiValue",e)),a({"multi-value":!0,"multi-value--is-disabled":u},n))},s),selectProps:p},(0,o.tZ)(f,{data:i,innerProps:{className:g(m(c("multiValueLabel",e)),a({"multi-value__label":!0},n))},selectProps:p},t),(0,o.tZ)(h,{data:i,innerProps:v({className:g(m(c("multiValueRemove",e)),a({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},l),selectProps:p}))}))},MultiValueContainer:Te,MultiValueLabel:Te,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({role:"button"},n),t||(0,o.tZ)(le,{size:14}))},Option:function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.isDisabled,s=e.isFocused,u=e.isSelected,l=e.innerRef,p=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:i("option",e),className:a({option:!0,"option--is-disabled":c,"option--is-focused":s,"option--is-selected":u},n),ref:l,"aria-disabled":c},p),t)},Placeholder:function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:i("placeholder",e),className:a({placeholder:!0},n)},c),t)},SelectContainer:function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.innerProps,s=e.isDisabled,u=e.isRtl;return(0,o.tZ)("div",(0,r.Z)({css:i("container",e),className:a({"--is-disabled":s,"--is-rtl":u},n)},c),t)},SingleValue:function(e){var t=e.children,n=e.className,a=e.cx,i=e.getStyles,c=e.isDisabled,s=e.innerProps;return(0,o.tZ)("div",(0,r.Z)({css:i("singleValue",e),className:a({"single-value":!0,"single-value--is-disabled":c},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,a=e.cx,i=e.innerProps,c=e.isMulti,s=e.getStyles,u=e.hasValue;return(0,o.tZ)("div",(0,r.Z)({css:s("valueContainer",e),className:a({"value-container":!0,"value-container--is-multi":c,"value-container--has-value":u},n)},i),t)}},Re=function(e){return v(v({},Ze),e.components)}},44066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(1024),o=n.n(r),a=n(46444),i=n.n(a),c=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},l={outline:"none"},p=function(e){function t(){var n,r;c(this,t);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=r=u(this,e.call.apply(e,[this].concat(i))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=o().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?o().cloneElement(e({focused:t,getRef:this.ref}),n):o().createElement("div",s({ref:this.ref,style:l},n),e)},t}(o().Component);p.propTypes={children:i().oneOfType([i().node,i().func]).isRequired,onBlur:i().func,onFocus:i().func},p.defaultProps={onBlur:function(){},onFocus:function(){}};const d=p},99430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1024)),o=c(n(46444)),a=c(n(30314)),i=c(n(83109));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){return 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")}()}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?g(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}i.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var y=[o.default.string,o.default.shape({appendChild:o.default.func.isRequired})],b=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],w=function(e){function t(){var e,n;p(this,t);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return v(g(g(n=f(this,(e=h(t)).call.apply(e,[this].concat(a))))),"_targetNode",r.default.createRef()),v(g(g(n)),"_elementNode",r.default.createRef()),v(g(g(n)),"_elementParentNode",null),v(g(g(n)),"_tetherInstance",null),n}var n,o,c;return 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&&m(e,t)}(t,e),n=t,o=[{key:"componentDidMount",value:function(){this._createContainer(),this.forceUpdate()}},{key:"componentDidUpdate",value:function(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){var t,n,r=(e.className||"").split(" ").filter((function(e){return e.length>0})),o=(this.props.className||"").split(" ").filter((function(e){return e.length>0}));(t=this._elementParentNode.classList).remove.apply(t,l(r)),(n=this._elementParentNode.classList).add.apply(n,l(o))}this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tetherInstance}},{key:"disable",value:function(){this._tetherInstance.disable()}},{key:"enable",value:function(){this._tetherInstance.enable()}},{key:"on",value:function(e,t,n){this._tetherInstance.on(e,t,n)}},{key:"once",value:function(e,t,n){this._tetherInstance.once(e,t,n)}},{key:"off",value:function(e,t){this._tetherInstance.off(e,t)}},{key:"position",value:function(){this._tetherInstance.position()}},{key:"_runRenders",value:function(){var e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}},{key:"_createTetherInstance",value:function(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new i.default(e),this._registerEventListeners()}},{key:"_destroyTetherInstance",value:function(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onUpdate&&e.props.onUpdate.apply(e,n)})),this.on("repositioned",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,n)}))}},{key:"_destroy",value:function(){this._destroyTetherInstance(),this._removeContainer()}},{key:"_createContainer",value:function(){this._removeContainer();var e=this.props,t=e.renderElementTag,n=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=n||""}},{key:"_addContainerToDOM",value:function(){this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.appendChild(this._elementParentNode)}},{key:"_removeContainer",value:function(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.parentNode.removeChild(this._elementParentNode)}},{key:"_update",value:function(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),n=(e.className,e.style),r=(e.renderTarget,e.renderElement,u(e,["children","renderElementTag","renderElementTo","id","className","style","renderTarget","renderElement"])),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}({target:this._targetNode.current,element:this._elementParentNode},r),a=t||"";if(this._elementParentNode.id!==a&&(this._elementParentNode.id=a),n){var i=this._elementParentNode.style;Object.keys(n).forEach((function(e){i[e]!==n[e]&&(i[e]=n[e])}))}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(o):this._createTetherInstance(o),this._tetherInstance.position()}},{key:"render",value:function(){var e=this._runRenders(),t=e.targetComponent,n=e.elementComponent;return t?r.default.createElement(r.default.Fragment,null,t,n&&this._elementParentNode&&a.default.createPortal(n,this._elementParentNode)):null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}],o&&d(n.prototype,o),c&&d(n,c),t}(r.Component);v(w,"propTypes",{renderElementTag:o.default.string,renderElementTo:o.default.oneOfType(y),attachment:o.default.oneOf(b).isRequired,targetAttachment:o.default.oneOf(b),offset:o.default.string,targetOffset:o.default.string,targetModifier:o.default.string,enabled:o.default.bool,classes:o.default.object,classPrefix:o.default.string,optimizations:o.default.object,constraints:o.default.array,id:o.default.string,className:o.default.string,style:o.default.object,onUpdate:o.default.func,onRepositioned:o.default.func,renderTarget:o.default.func,renderElement:o.default.func,children:function(e,t,n){var o=e.children;if(r.Children.count(o)>0)return new Error("".concat(n," no longer uses children to render components. Please use renderTarget and renderElement instead."))}}),v(w,"defaultProps",{renderElementTag:"div",renderElementTo:null});var k=w;t.default=k},50855:(e,t,n)=>{"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(99430))&&r.__esModule?r:{default:r}},77208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a,i=n(6663),c=(a=i)&&a.__esModule?a:{default:a},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),a=n[0],i=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var u=n.map((function(e){return a[e]})).filter(s);return"string"==typeof u[0]||"function"==typeof i?{key:e,className:i?i.apply(void 0,o(u)):u.join(" ")}:{key:e,style:c.default.apply(void 0,[{}].concat(o(u)))}}},e.exports=t.default},6663:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var o,a,i=n(e),c=1;c<arguments.length;c++){o=arguments[c],a=r(Object(o));for(var s=0;s<a.length;s++)i[a[s]]=o[a[s]]}return i}},59211:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r=p;return function(o,a){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=A(i,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var s=l(e,t,n);if("normal"===s.type){if(r=n.done?h:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",d="suspendedYield",f="executing",h="completed",m={};function g(){}function v(){}function y(){}var b={};b[a]=function(){return this};var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&r.call(k,a)&&(b=k);var x=y.prototype=g.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,a,i,c){var s=l(e[o],e,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(p).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,c)}))}c(s.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function A(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function P(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:j}}function j(){return{value:t,done:!0}}return v.prototype=x.constructor=y,y.constructor=v,v.displayName=s(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},O(_.prototype),_.prototype[i]=function(){return this},e.AsyncIterator=_,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new _(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(x),s(x,c,"Generator"),x[a]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},53090:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),a=o[0],i=o[1];return r?null===i||i===n[a]-1?null===(a=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(a))?[null,null]:[a,0]:[a,i+1]:0===n||i===n-1?[null,null]:null===i?[null,0]:[null,i+1]}return{next:o,prev:function(e){var o=t(e,2),a=o[0],i=o[1];return r?null===i||0===i?null===(a=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(a))?[null,null]:[a,n[a]-1]:[a,i-1]:0===n||0===i?[null,null]:null===i?[null,n-1]:[null,i-1]},isLast:function(e){return null===o(e)[1]}}}},78858:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},83109:function(e,t){var n,r,o;/*! tether 1.4.7 */r=[],n=function(){"use strict";var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=void 0;void 0===n&&(n={modules:[]});var r=null;function o(e){var t=e.getBoundingClientRect(),n={};for(var r in t)n[r]=t[r];try{if(e.ownerDocument!==document){var a=e.ownerDocument.defaultView.frameElement;if(a){var i=o(a);n.top+=i.top,n.bottom+=i.top,n.left+=i.left,n.right+=i.left}}}catch(e){}return n}function a(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(e){}if(null==o)return n.push(r),n;var a=o,i=a.overflow,c=a.overflowX,s=a.overflowY;/(auto|scroll|overlay)/.test(i+s+c)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var i,c=(i=0,function(){return++i}),s={},u=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",c()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===s[t]&&(s[t]=o(e),O((function(){delete s[t]}))),s[t]};function l(){r&&document.body.removeChild(r),r=null}function p(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=o(e),a=u();return r.top-=a.top,r.left-=a.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function d(e){return e.offsetParent||document.documentElement}var f=null;function h(){if(f)return f;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var o=n-r;return f={width:o,height:o}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=b(e).replace(n," ");w(e,r)}}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{g(e,t);var n=b(e)+" "+t;w(e,n)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=b(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function b(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function w(e,t){e.setAttribute("class",t)}function k(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&y(e,n)&&g(e,n)})),t.forEach((function(t){y(e,t)||v(e,t)}))}var x=[],O=function(e){x.push(e)},_=function(){for(var e=void 0;e=x.pop();)e()},A=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n<this.bindings[e].length;)this.bindings[e][n].handler===t?this.bindings[e].splice(n,1):++n}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(;t<this.bindings[e].length;){var a=this.bindings[e][t],i=a.handler,c=a.ctx,s=a.once,u=c;void 0===u&&(u=this),i.apply(u,r),s?this.bindings[e].splice(t,1):++t}}}}]),n}();n.Utils={getActualBoundingClientRect:o,getScrollParents:a,getBounds:p,getOffsetParent:d,extend:m,addClass:v,removeClass:g,hasClass:y,updateClasses:k,defer:O,flush:_,uniqueId:c,Evented:A,getScrollBarSize:h,removeUtilElements:l};var E=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=(e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;r=!1,null===o&&(o=Function.prototype);var c=Object.getOwnPropertyDescriptor(o,a);if(void 0!==c){if("value"in c)return c.value;var s=c.get;if(void 0===s)return;return s.call(i)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=a,n=i,r=!0,c=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}if(void 0===n)throw new Error("You must include the utils.js file before tether.js");var a=(X=n.Utils).getScrollParents,d=(p=X.getBounds,X.getOffsetParent),v=(m=X.extend,X.addClass),g=X.removeClass,h=(k=X.updateClasses,O=X.defer,_=X.flush,X.getScrollBarSize),l=X.removeUtilElements;function P(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+n>=t&&t>=e-n}var j,D,T,M,I=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n){var r=t[n];if(void 0!==e.style[r])return r}}(),N=[],Z=function(){N.forEach((function(e){e.position(!1)})),_()};function R(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}j=null,D=null,T=null,M=function e(){if(void 0!==D&&D>16)return D=Math.min(D-16,250),void(T=setTimeout(e,250));void 0!==j&&R()-j<10||(null!=T&&(clearTimeout(T),T=null),j=R(),Z(),D=R()-j)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,M)}));var B={center:"center",left:"right",right:"left"},L={middle:"middle",top:"bottom",bottom:"top"},F={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},H=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=B[t.left]),"auto"===r&&(r=L[t.top]),{left:n,top:r}},U=function(e){var t=e.left,n=e.top;return void 0!==F[e.left]&&(t=F[e.left]),void 0!==F[e.top]&&(n=F[e.top]),{left:t,top:n}};function W(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){var n=t.top,r=t.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof r&&(r=parseFloat(r,10)),e.top+=n,e.left+=r})),e}function z(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var q=function(e){var t=e.split(" "),n=E(t,2);return{top:n[0],left:n[1]}},V=q,Y=function(r){function o(e){var r=this;t(this,o),S(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),N.push(this),this.history=[],this.setOptions(e,!1),n.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(r)})),this.position()}return C(o,r),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=m(r,e);var o=this.options,i=o.element,c=o.target,s=o.targetModifier;if(this.element=i,this.target=c,this.targetModifier=s,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),v(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=V(this.options.targetAttachment),this.attachment=V(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=a(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return p(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((a={height:(e=p(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(a.height,e.height-(pageYOffset-e.top)),a.height=Math.min(a.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),a.height=Math.min(innerHeight,a.height),a.height-=2,a.width=Math.min(a.width,e.width-(pageXOffset-e.left)),a.width=Math.min(a.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),a.width=Math.min(innerWidth,a.width),a.width-=2,a.top<pageYOffset&&(a.top=pageYOffset),a.left<pageXOffset&&(a.left=pageXOffset),a);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=p(t);var n=getComputedStyle(t),r=0;(t.scrollWidth>t.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var o=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,a={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},i=0;o<408&&this.target===document.body&&(i=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(a.height=Math.max(a.height,24));var c=this.target.scrollTop/(t.scrollHeight-o);return a.top=c*(o-a.height-i)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(a.height=Math.max(a.height,24)),a}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),N.forEach((function(t,n){t===e&&N.splice(n,1)})),0===N.length&&l()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;e.top&&o.push(this.getClass("element-attached")+"-"+e.top),e.left&&o.push(this.getClass("element-attached")+"-"+e.left),t.top&&o.push(this.getClass("target-attached")+"-"+t.top),t.left&&o.push(this.getClass("target-attached")+"-"+t.left);var a=[];r.forEach((function(e){a.push(n.getClass("element-attached")+"-"+e),a.push(n.getClass("target-attached")+"-"+e)})),O((function(){void 0!==n._addAttachClasses&&(k(n.element,n._addAttachClasses,a),!1!==n.options.addTargetClasses&&k(n.target,n._addAttachClasses,a),delete n._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=H(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",(function(){return p(e.element)})),a=o.width,i=o.height;if(0===a&&0===i&&void 0!==this.lastSize){var c=this.lastSize;a=c.width,i=c.height}else this.lastSize={width:a,height:i};var s=this.cache("target-bounds",(function(){return e.getTargetBounds()})),u=s,l=z(U(this.attachment),{width:a,height:i}),f=z(U(r),u),m=z(this.offset,{width:a,height:i}),g=z(this.targetOffset,u);l=W(l,m),f=W(f,g);for(var v=s.left+f.left-l.left,y=s.top+f.top-l.top,b=0;b<n.modules.length;++b){var w=n.modules[b].position.call(this,{left:v,top:y,targetAttachment:r,targetPos:s,elementPos:o,offset:l,targetOffset:f,manualOffset:m,manualTargetOffset:g,scrollbarSize:A,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(y=w.top,v=w.left)}var k={page:{top:y,left:v},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-i+innerHeight,left:v-pageXOffset,right:pageXOffset-v-a+innerWidth}},x=this.target.ownerDocument,O=x.defaultView,A=void 0;return O.innerHeight>x.documentElement.clientHeight&&(A=this.cache("scrollbar-size",h),k.viewport.bottom-=A.height),O.innerWidth>x.documentElement.clientWidth&&(A=this.cache("scrollbar-size",h),k.viewport.right-=A.width),-1!==["","static"].indexOf(x.body.style.position)&&-1!==["","static"].indexOf(x.body.parentElement.style.position)||(k.page.bottom=x.body.scrollHeight-y-i,k.page.right=x.body.scrollWidth-v-a),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return d(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return p(t)})),r=getComputedStyle(t),o=n,a={};if(["Top","Left","Bottom","Right"].forEach((function(e){a[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=x.body.scrollWidth-n.left-o.width+a.right,n.bottom=x.body.scrollHeight-n.top-o.height+a.bottom,k.page.top>=n.top+a.top&&k.page.bottom>=n.bottom&&k.page.left>=n.left+a.left&&k.page.right>=n.right){var i=t.scrollTop,c=t.scrollLeft;k.offset={top:k.page.top-n.top+i-a.top,left:k.page.left-n.left+c-a.left}}}(),this.move(k),this.history.unshift(k),this.history.length>3&&this.history.pop(),t&&_(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var o in n[r]={},e[r]){for(var a=!1,i=0;i<this.history.length;++i){var c=this.history[i];if(void 0!==c[r]&&!P(c[r][o],e[r][o])){a=!0;break}}a||(n[r][o]=!0)}var s={top:"",left:"",right:"",bottom:""},u=function(e,n){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var r=void 0,o=void 0;e.top?(s.top=0,r=n.top):(s.bottom=0,r=-n.bottom),e.left?(s.left=0,o=n.left):(s.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),s[I]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==I&&(s[I]+=" translateZ(0)")}else e.top?s.top=n.top+"px":s.bottom=n.bottom+"px",e.left?s.left=n.left+"px":s.right=n.right+"px"},l=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(s.position="absolute",u(n.page,e.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(s.position="fixed",u(n.viewport,e.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){s.position="absolute";var r=t.cache("target-offsetparent",(function(){return d(t.target)}));d(t.element)!==r&&O((function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)})),u(n.offset,e.offset),l=!0}():(s.position="absolute",u({top:!0,left:!0},e.page)),!l)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var p=function(e){var t=e.ownerDocument;return(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)===e},f=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName&&!p(h);){if("static"!==getComputedStyle(h).position){f=!1;break}h=h.parentNode}f||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},v=!1;for(var o in s){var y=s[o];this.element.style[o]!==y&&(v=!0,g[o]=y)}v&&O((function(){m(t.element.style,g),t.trigger("repositioned")}))}}}]),o}(A);Y.modules=[],n.position=Z;var G=m(Y,n);E=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=(X=n.Utils).getBounds;var m=X.extend,$=(k=X.updateClasses,O=X.defer,["left","top","right","bottom"]);function K(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=p(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var a=e.ownerDocument.defaultView;t[0]+=a.pageXOffset,t[1]+=a.pageYOffset,t[2]+=a.pageXOffset,t[3]+=a.pageYOffset}$.forEach((function(e,n){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[n]+=parseFloat(o["border"+e+"Width"]):t[n]-=parseFloat(o["border"+e+"Width"])}))}(),t}n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var a=this.cache("element-bounds",(function(){return p(t.element)})),i=a.height,c=a.width;if(0===c&&0===i&&void 0!==this.lastSize){var s=this.lastSize;c=s.width,i=s.height}var u=this.cache("target-bounds",(function(){return t.getTargetBounds()})),l=u.height,d=u.width,f=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&f.push(t),n&&f.push(n)})),f.forEach((function(e){["left","top","right","bottom"].forEach((function(t){f.push(e+"-"+t)}))}));var h=[],g=m({},o),v=m({},this.attachment);return this.options.constraints.forEach((function(e){var a=e.to,s=e.attachment,u=e.pin;void 0===s&&(s="");var p=void 0,f=void 0;if(s.indexOf(" ")>=0){var m=s.split(" "),y=E(m,2);f=y[0],p=y[1]}else p=f=s;var b=K(t,a);"target"!==f&&"both"!==f||(n<b[1]&&"top"===g.top&&(n+=l,g.top="bottom"),n+i>b[3]&&"bottom"===g.top&&(n-=l,g.top="top")),"together"===f&&("top"===g.top&&("bottom"===v.top&&n<b[1]?(n+=l,g.top="bottom",n+=i,v.top="top"):"top"===v.top&&n+i>b[3]&&n-(i-l)>=b[1]&&(n-=i-l,g.top="bottom",v.top="bottom")),"bottom"===g.top&&("top"===v.top&&n+i>b[3]?(n-=l,g.top="top",n-=i,v.top="bottom"):"bottom"===v.top&&n<b[1]&&n+(2*i-l)<=b[3]&&(n+=i-l,g.top="top",v.top="top")),"middle"===g.top&&(n+i>b[3]&&"top"===v.top?(n-=i,v.top="bottom"):n<b[1]&&"bottom"===v.top&&(n+=i,v.top="top"))),"target"!==p&&"both"!==p||(r<b[0]&&"left"===g.left&&(r+=d,g.left="right"),r+c>b[2]&&"right"===g.left&&(r-=d,g.left="left")),"together"===p&&(r<b[0]&&"left"===g.left?"right"===v.left?(r+=d,g.left="right",r+=c,v.left="left"):"left"===v.left&&(r+=d,g.left="right",r-=c,v.left="right"):r+c>b[2]&&"right"===g.left?"left"===v.left?(r-=d,g.left="left",r-=c,v.left="right"):"right"===v.left&&(r-=d,g.left="left",r+=c,v.left="left"):"center"===g.left&&(r+c>b[2]&&"left"===v.left?(r-=c,v.left="right"):r<b[0]&&"right"===v.left&&(r+=c,v.left="left"))),"element"!==f&&"both"!==f||(n<b[1]&&"bottom"===v.top&&(n+=i,v.top="top"),n+i>b[3]&&"top"===v.top&&(n-=i,v.top="bottom")),"element"!==p&&"both"!==p||(r<b[0]&&("right"===v.left?(r+=c,v.left="left"):"center"===v.left&&(r+=c/2,v.left="left")),r+c>b[2]&&("left"===v.left?(r-=c,v.left="right"):"center"===v.left&&(r-=c/2,v.left="right"))),"string"==typeof u?u=u.split(",").map((function(e){return e.trim()})):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var w,k,x=[],O=[];n<b[1]&&(u.indexOf("top")>=0?(n=b[1],x.push("top")):O.push("top")),n+i>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-i,x.push("bottom")):O.push("bottom")),r<b[0]&&(u.indexOf("left")>=0?(r=b[0],x.push("left")):O.push("left")),r+c>b[2]&&(u.indexOf("right")>=0?(r=b[2]-c,x.push("right")):O.push("right")),x.length&&(w=void 0,w=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(w),x.forEach((function(e){h.push(w+"-"+e)}))),O.length&&(k=void 0,k=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(k),O.forEach((function(e){h.push(k+"-"+e)}))),(x.indexOf("left")>=0||x.indexOf("right")>=0)&&(v.left=g.left=!1),(x.indexOf("top")>=0||x.indexOf("bottom")>=0)&&(v.top=g.top=!1),g.top===o.top&&g.left===o.left&&v.top===t.attachment.top&&v.left===t.attachment.left||(t.updateAttachClasses(v,g),t.trigger("update",{attachment:v,targetAttachment:g}))})),O((function(){!1!==t.options.addTargetClasses&&k(t.target,h,f),k(t.element,h,f)})),{top:n,left:r}}});var X,p=(X=n.Utils).getBounds,k=X.updateClasses;return O=X.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",(function(){return p(t.element)})),a=o.height,i=o.width,c=this.getTargetBounds(),s=n+a,u=r+i,l=[];n<=c.bottom&&s>=c.top&&["left","right"].forEach((function(e){var t=c[e];t!==r&&t!==u||l.push(e)})),r<=c.right&&u>=c.left&&["top","bottom"].forEach((function(e){var t=c[e];t!==n&&t!==s||l.push(e)}));var d=[],f=[],h=["left","top","right","bottom"];return d.push(this.getClass("abutted")),h.forEach((function(e){d.push(t.getClass("abutted")+"-"+e)})),l.length&&f.push(this.getClass("abutted")),l.forEach((function(e){f.push(t.getClass("abutted")+"-"+e)})),O((function(){!1!==t.options.addTargetClasses&&k(t.target,f,d),k(t.element,f,d)})),!0}}),E=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,a=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var i=E(r,2);o=i[0],a=i[1],o=parseFloat(o,10),a=parseFloat(a,10)}else o=r.top,a=r.left;return{top:t+=o,left:n+=a}}}}),G},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},99874:e=>{"use strict";var t=function(){};e.exports=t},13615:function(e){
|
|
63
63
|
/*! @license DOMPurify 2.3.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.10/LICENSE */
|
|
64
|
-
e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},r.apply(null,arguments)}function o(e){return a(e)||i(e)||c(e)||u()}function a(e){if(Array.isArray(e))return s(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,p=Object.setPrototypeOf,d=Object.isFrozen,f=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var k=D(Array.prototype.forEach),x=D(Array.prototype.pop),O=D(Array.prototype.push),_=D(String.prototype.toLowerCase),A=D(String.prototype.match),E=D(String.prototype.replace),S=D(String.prototype.indexOf),C=D(String.prototype.trim),P=D(RegExp.prototype.test),j=T(TypeError);function D(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function T(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function M(e,t,n){n=n||_,p&&p(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(d(t)||(t[r]=a),o=a)}e[o]=!0}return e}function I(e){var t,n=v(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function N(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var Z=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),H=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=m(["#text"]),W=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=g(/<%[\w\W]*|[\w\W]*%>/gm),$=g(/^data-[\-\w.\u00B7-\uFFFF]/),K=g(/^aria-[\-\w]+$/),X=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=g(/^(?:\w+script|data):/i),J=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.3.10",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,i=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,p=t.NamedNodeMap,d=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,f=t.HTMLFormElement,h=t.DOMParser,g=t.trustedTypes,v=u.prototype,y=N(v,"cloneNode"),b=N(v,"nextSibling"),w=N(v,"childNodes"),D=N(v,"parentNode");if("function"==typeof c){var T=a.createElement("template");T.content&&T.content.ownerDocument&&(a=T.content.ownerDocument)}var oe=ne(g,r),ae=oe?oe.createHTML(""):"",ie=a,ce=ie.implementation,se=ie.createNodeIterator,ue=ie.createDocumentFragment,le=ie.getElementsByTagName,pe=r.importNode,de={};try{de=I(a).documentMode?a.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof D&&ce&&void 0!==ce.createHTMLDocument&&9!==de;var he,me,ge=Y,ve=G,ye=$,be=K,we=Q,ke=J,xe=X,Oe=null,_e=M({},[].concat(o(Z),o(R),o(B),o(F),o(U))),Ae=null,Ee=M({},[].concat(o(W),o(z),o(q),o(V))),Se=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Pe=null,je=!0,De=!0,Te=!1,Me=!1,Ie=!1,Ne=!1,Ze=!1,Re=!1,Be=!1,Le=!1,Fe=!0,He=!0,Ue=!1,We={},ze=null,qe=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ye=M({},["audio","video","img","source","image","track"]),Ge=null,$e=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Je=Qe,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ot=a.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},it=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=I(t),he=he=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:_,Oe="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,me):_e,Ae="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,me):Ee,Ge="ADD_URI_SAFE_ATTR"in t?M(I($e),t.ADD_URI_SAFE_ATTR,me):$e,Ve="ADD_DATA_URI_TAGS"in t?M(I(Ye),t.ADD_DATA_URI_TAGS,me):Ye,ze="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,me):qe,Ce="FORBID_TAGS"in t?M({},t.FORBID_TAGS,me):{},Pe="FORBID_ATTR"in t?M({},t.FORBID_ATTR,me):{},We="USE_PROFILES"in t&&t.USE_PROFILES,je=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=t.SAFE_FOR_TEMPLATES||!1,Ie=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Le=t.RETURN_TRUSTED_TYPE||!1,Ze=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,He=!1!==t.KEEP_CONTENT,Ue=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,Je=t.NAMESPACE||Qe,t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(De=!1),Be&&(Re=!0),We&&(Oe=M({},o(U)),Ae=[],!0===We.html&&(M(Oe,Z),M(Ae,W)),!0===We.svg&&(M(Oe,R),M(Ae,z),M(Ae,V)),!0===We.svgFilters&&(M(Oe,B),M(Ae,z),M(Ae,V)),!0===We.mathMl&&(M(Oe,F),M(Ae,q),M(Ae,V))),t.ADD_TAGS&&(Oe===_e&&(Oe=I(Oe)),M(Oe,t.ADD_TAGS,me)),t.ADD_ATTR&&(Ae===Ee&&(Ae=I(Ae)),M(Ae,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&M(Ge,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(ze===qe&&(ze=I(ze)),M(ze,t.FORBID_CONTENTS,me)),He&&(Oe["#text"]=!0),Ie&&M(Oe,["html","head","body"]),Oe.table&&(M(Oe,["tbody"]),delete Ce.tbody),m&&m(t),rt=t)},ct=M({},["mi","mo","mn","ms","mtext"]),st=M({},["foreignobject","desc","title","annotation-xml"]),ut=M({},["title","style","font","a","script"]),lt=M({},R);M(lt,B),M(lt,L);var pt=M({},F);M(pt,H);var dt=function(e){var t=D(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return e.namespaceURI===Xe?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(lt[n]):e.namespaceURI===Ke?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Xe?"math"===n&&st[r]:Boolean(pt[n]):e.namespaceURI===Qe&&!(t.namespaceURI===Xe&&!st[r])&&!(t.namespaceURI===Ke&&!ct[r])&&!pt[n]&&(ut[n]||!lt[n])},ft=function(e){O(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},ht=function(e,t){try{O(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){O(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(Re||Be)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,n;if(Ze)e="<remove></remove>"+e;else{var r=A(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(Je===Qe)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),Je===Qe?le.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},gt=function(e){return se.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},vt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,r){fe[e]&&k(fe[e],(function(e){e.call(n,t,r,rt)}))},wt=function(e){var t;if(bt("beforeSanitizeElements",e,null),vt(e))return ft(e),!0;if(P(/[\u0080-\uFFFF]/,e.nodeName))return ft(e),!0;var r=me(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&P(/<template/i,e.innerHTML))return ft(e),!0;if(!Oe[r]||Ce[r]){if(!Ce[r]&&xt(r)){if(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(He&&!ze[r]){var o=D(e)||e.parentNode,a=w(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(y(a[i],!0),b(e))}return ft(e),!0}return e instanceof u&&!dt(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r||!P(/<\/no(script|embed)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=E(t,ge," "),t=E(t,ve," "),e.textContent!==t&&(O(n.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(ft(e),!0)},kt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in a||n in ot))return!1;if(De&&!Pe[t]&&P(ye,t));else if(je&&P(be,t));else if(!Ae[t]||Pe[t]){if(!(xt(e)&&(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&P(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ge[t]);else if(P(xe,E(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Ve[e])if(Te&&!P(we,E(n,ke,"")));else if(n)return!1;return!0},xt=function(e){return e.indexOf("-")>0},Ot=function(t){var r,o,a,i;bt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(i=c.length;i--;){var u=r=c[i],l=u.name,p=u.namespaceURI;if(o="value"===l?r.value:C(r.value),a=me(l),s.attrName=a,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,bt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(ht(l,t),s.keepAttr))if(P(/\/>/i,o))ht(l,t);else{Me&&(o=E(o,ge," "),o=E(o,ve," "));var d=me(t.nodeName);if(kt(d,a,o)){if(oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(p);else switch(g.getAttributeType(d,a)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{p?t.setAttributeNS(p,l,o):t.setAttribute(l,o),x(n.removed)}catch(e){}}}}bt("afterSanitizeAttributes",t,null)}},_t=function e(t){var n,r=gt(t);for(bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)bt("uponSanitizeShadowNode",n,null),wt(n)||(n.content instanceof i&&e(n.content),Ot(n));bt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o,a){var c,u,l,p,d;if((et=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!yt(o)){if("function"!=typeof o.toString)throw j("toString is not a function");if("string"!=typeof(o=o.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(yt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Ne||it(a),n.removed=[],"string"==typeof o&&(Ue=!1),Ue){if(o.nodeName){var f=me(o.nodeName);if(!Oe[f]||Ce[f])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof s)1===(u=(c=mt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?c=u:c.appendChild(u);else{if(!Re&&!Me&&!Ie&&-1===o.indexOf("<"))return oe&&Le?oe.createHTML(o):o;if(!(c=mt(o)))return Re?null:Le?ae:""}c&&Ze&&ft(c.firstChild);for(var h=gt(Ue?o:c);l=h.nextNode();)3===l.nodeType&&l===p||wt(l)||(l.content instanceof i&&_t(l.content),Ot(l),p=l);if(p=null,Ue)return o;if(Re){if(Be)for(d=ue.call(c.ownerDocument);c.firstChild;)d.appendChild(c.firstChild);else d=c;return Ae.shadowroot&&(d=pe.call(r,d,!0)),d}var m=Ie?c.outerHTML:c.innerHTML;return Ie&&Oe["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&P(ee,c.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+c.ownerDocument.doctype.name+">\n"+m),Me&&(m=E(m,ge," "),m=E(m,ve," ")),oe&&Le?oe.createHTML(m):m},n.setConfig=function(e){it(e),Ne=!0},n.clearConfig=function(){rt=null,Ne=!1},n.isValidAttribute=function(e,t,n){rt||it({});var r=me(e),o=me(t);return kt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],O(fe[e],t))},n.removeHook=function(e){if(fe[e])return x(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}return re()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";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}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(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&&r(e,t)}n.d(t,{Z:()=>o})},72753:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83029);var o=n(61917),a=n(56265);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(88911);var o=n(72753),a=n(61917);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(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.")}()}},73891:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(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.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"49b48e9106b94d9dfbb3",198:"7c2af778b99282c30521",594:"993ea433d608fe9a10a4",607:"23f2484a241da8b2d66f",817:"e7577ad831ed74a7f633",877:"3c5f70337374f5294be7"}[e]+".js",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.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-devcon:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",(()=>{var e={179:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(59713),t=i.n(e),n=i(30670),r=i.n(n),o=i(41143),a=i.n(o);function s(e){return"/"===e.charAt(0)}function u(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&s(e),a=t&&s(t),i=o||a;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var l=r[r.length-1];c="."===l||".."===l||""===l}else c=!1;for(var p=0,d=r.length;d>=0;d--){var f=r[d];"."===f?u(r,d):".."===f?(u(r,d),p++):p&&(u(r,d),p--)}if(!i)for(;p--;p)r.unshift("..");!i||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var p=function(e){return"/"===e.charAt(0)?e:"/"+e},d=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},f=function(e,t){return d(e,t)?e.substr(t.length):e},h=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=g({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o};const y=function(){var e=null,t=[];return{setPrompt:function(t){return r()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,a):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}};var b=!("undefined"==typeof window||!window.document||!window.document.createElement),w=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},k=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},x=function(e,t){return t(window.confirm(e))},O=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},_=function(){return-1===window.navigator.userAgent.indexOf("Trident")},A=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C="popstate",P="hashchange",j=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(b,"Browser history needs a DOM");var t=window.history,n=O(),o=!_(),i=e.forceRefresh,c=void 0!==i&&i,s=e.getUserConfirmation,u=void 0===s?x:s,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(p(e.basename)):"",T=function(e){var t=e||{},n=t.key,o=t.state,a=window.location,i=a.pathname+a.search+a.hash;return r()(!D||d(i,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+D+'".'),D&&(i=f(i,D)),v(i,o,n)},M=function(){return Math.random().toString(36).substr(2,g)},I=y(),N=function(e){S(ee,e),ee.length=t.length,I.notifyListeners(ee.location,ee.action)},Z=function(e){A(e)||L(T(e.state))},R=function(){L(T(j()))},B=!1,L=function(e){if(B)B=!1,N();else{I.confirmTransitionTo(e,"POP",u,(function(t){t?N({action:"POP",location:e}):F(e)}))}},F=function(e){var t=ee.location,n=U.indexOf(t.key);-1===n&&(n=0);var r=U.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(B=!0,V(o))},H=T(j()),U=[H.key],W=function(e){return D+m(e)},z=function(e,o){r()(!("object"===(void 0===e?"undefined":E(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a="PUSH",i=v(e,o,M(),ee.location);I.confirmTransitionTo(i,a,u,(function(e){if(e){var o=W(i),s=i.key,u=i.state;if(n)if(t.pushState({key:s,state:u},null,o),c)window.location.href=o;else{var l=U.indexOf(ee.location.key),p=U.slice(0,-1===l?0:l+1);p.push(i.key),U=p,N({action:a,location:i})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},q=function(e,o){r()(!("object"===(void 0===e?"undefined":E(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a="REPLACE",i=v(e,o,M(),ee.location);I.confirmTransitionTo(i,a,u,(function(e){if(e){var o=W(i),s=i.key,u=i.state;if(n)if(t.replaceState({key:s,state:u},null,o),c)window.location.replace(o);else{var l=U.indexOf(ee.location.key);-1!==l&&(U[l]=i.key),N({action:a,location:i})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},V=function(e){t.go(e)},Y=function(){return V(-1)},G=function(){return V(1)},$=0,K=function(e){1===($+=e)?(w(window,C,Z),o&&w(window,P,R)):0===$&&(k(window,C,Z),o&&k(window,P,R))},X=!1,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=I.setPrompt(e);return X||(K(1),X=!0),function(){return X&&(X=!1,K(-1)),t()}},J=function(e){var t=I.appendListener(e);return K(1),function(){K(-1),t()}},ee={length:t.length,action:"POP",location:H,createHref:W,push:z,replace:q,go:V,goBack:Y,goForward:G,block:Q,listen:J};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var T,M,I=i(1024),N=i.n(I),Z=i(80467),R="tocco-util/LOG_ERROR",B=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:R,payload:{title:e,description:t,error:n,dateTime:r}}},L=i(74806),F=i(50558),H=i(34575),U=i.n(H),W=i(93913),z=i.n(W),q=i(2205),V=i.n(q),Y=i(78585),G=i.n(Y),$=i(29754),K=i.n($),X=i(44012),Q=i(91411),J=i(58804),ee=i(24875),te=i(30759),ne=i(7281),re=J.ZP.div.withConfig({displayName:"StyledWrapper"})(T||(T=(0,Q.Z)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,te.Z)(),(function(e){return e.theme.colors.signal.danger.text}),ee.FS.color("paper"),ne.Z.space(-.5)),oe=i(85893);const ae=function(){return M||(M=(0,oe.jsx)(re,{children:(0,oe.jsx)(X.Z,{id:"client.component.errorBoundary.text"})}))};var ie;function ce(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K()(e);if(t){var o=K()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return G()(this,n)}}var se=function(e){V()(n,e);var t=ce(n);function n(e){var r;return U()(this,n),(r=t.call(this,e)).state={hasError:!1,error:null},r}return z()(n,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?ie||(ie=(0,oe.jsx)(ae,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(I.Component);const ue=se;var le={logError:B};(0,F.connect)(null,le)((0,L.ZP)(ue));var pe=i(81770),de=i(319),fe=i.n(de);function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?he(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=t()({},R,(function(e,t){var n=t.payload,r=n.title,o=n.description,a=n.error,i=n.dateTime;return me(me({},e),{},{messages:[{title:r,description:o,error:a,dateTime:i}].concat(fe()(e.messages)).slice(0,100)})})),ve={messages:[]};function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve,t=arguments.length>1?arguments[1]:void 0,n=ge[t.type];return n?n(e,t):e}var be=i(87757),we=i.n(be),ke=i(34857),xe=i(50600),Oe=i(44759),_e=we().mark(Ae);function Ae(e,t,n){return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.RE)(Oe.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),_e)}var Ee=i(26881),Se=we().mark(Ce);function Ce(e,t,n){var r;return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,ke.RE)(Ee.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,ke.gz)(r);case 5:case"end":return n.stop()}}),Se)}var Pe=i(48926),je=i.n(Pe),De=i(54159),Te="error",Me=function(){var e=je()(we().mark((function e(t){var n;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),Oe.Z.logError(n),e.next=4,Ne(Te,n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){var e=je()(we().mark((function e(t){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Oe.Z.logError(t),e.next=3,Ne(Te,t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=je()(we().mark((function e(t,n){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,De.Z.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n){return e.apply(this,arguments)}}();const Ze={logError:Ie,logException:Me};var Re=we().mark(Be);function Be(e,t,n){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.RE)(Ze.logException,n);case 2:case"end":return e.stop()}}),Re)}const Le={console:Ae,notification:Ce,remote:Be};var Fe=we().mark(We),He=we().mark(ze),Ue=we().mark(qe);function We(e,t){return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,ke.ib)(R,ze,t);case 3:n.next=7;break;case 5:return n.next=7,(0,ke.ib)(R,qe);case 7:case"end":return n.stop()}}),Fe)}function ze(e,t){var n,r,o,a;return we().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.payload,r=n.title,o=n.description,a=n.error,i.next=4,(0,ke.$6)(e.map((function(e){return(0,ke.RE)(Le[e],r,o,a)})));case 4:case"end":return i.stop()}}),He)}function qe(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(xe.Z.emitAction(e));case 2:case"end":return t.stop()}}),Ue)}const Ve=B,Ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&pe.Z.injectReducers(e,{errorLogging:ye}),e.sagaMiddleware.run(We,t,n)};var Ge=i(93386),$e=i.n(Ge),Ke=(i(30314),i(21101)),Xe=i(5435);const Qe={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",secondary:"#333",secondaryLight:"#7c7c7c",text:"#000",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",signal:{danger:{paper:"#EF9A9A",text:"#961b1b"},info:{paper:"#81D4FA",text:"#027cc1"},success:{paper:"#A5D6A7",text:"#337f37"},warning:{paper:"#FFF59D",text:"#d54300"}}},fontFamily:{monospace:"inherit",regular:"inherit"},fontSize:{base:1,factor:1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{regular:"0px",medium:"2px",large:"4px"},space:{base:1,factor:2}};var Je=i(85743),et="keyDown/SET_CONFIG",tt="keyDown/KEY_DOWN",nt=function(e){return{type:et,payload:{config:e}}},rt=function(e){return{type:tt,payload:{config:e}}},ot=t()({},et,pe.Z.singleTransferReducer("config")),at={config:[]};function it(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:at,t=arguments.length>1?arguments[1]:void 0,n=ot[t.type];return n?n(e,t):e}var ct=we().mark(lt),st=we().mark(pt),ut=we().mark(dt);function lt(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.$6)([(0,ke.RE)(pt,e),(0,ke.ib)(tt,dt)]);case 2:case"end":return t.stop()}}),ct)}function pt(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(nt(e));case 2:case"end":return t.stop()}}),st)}function dt(e){var t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload,!(n=t.config)){r.next=5;break}return r.next=5,(0,ke.$6)(n.actions.map((function(e){return(0,ke.gz)(e)})));case 5:case"end":return r.stop()}}),ut)}var ft,ht=i(28655),mt=i.n(ht),gt=J.ZP.div.withConfig({displayName:"StyledDiv"})(ft||(ft=mt()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const vt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,I.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),a=(0,I.useCallback)((function(e){return o(e,!0)}),[o]);return(0,I.useEffect)((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[a]),(0,oe.jsx)(gt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var yt={keyDownHandler:rt};const bt={keyDown:rt,addToStore:function(e,t){pe.Z.injectReducers(e,{keyDown:it}),e.sagaMiddleware.run(lt,t)},KeyDownWatcher:(0,F.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),yt)(vt)};var wt,kt,xt,Ot,_t=i(68957),At=i(93235),Et=i(34206),St=i(69829),Ct=(0,J.F4)(wt||(wt=(0,Q.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Pt=(0,J.iv)(kt||(kt=(0,Q.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),Ct),jt=J.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(xt||(xt=(0,Q.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),ne.Z.space(-1),Pt,St.Fe,ne.Z.space(-1));const Dt=J.ZP.div.withConfig({displayName:"StyledLoadMask"})(Ot||(Ot=(0,Q.Z)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var Tt;const Mt=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,I.useState)(!1),c=(0,_t.Z)(i,2),s=c[0],u=c[1],l=(0,I.useState)(!0),p=(0,_t.Z)(l,2),d=p[0],f=p[1];(0,I.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){d&&u(e)}(!0)})),function(){f(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,oe.jsx)(Dt,{className:a,children:h?r:(0,oe.jsxs)(jt,{children:[Tt||(Tt=(0,oe.jsx)(At.Z,{size:"30px"},"loading-spinner")),o&&(0,oe.jsx)(Et.ZP.Span,{children:o},"loadingText")]})})};const It=function(e){var t=e.children,n=e.intlInitialised,r=e.cacheInitialised;return(0,oe.jsx)(Mt,{required:[r,n],children:t})};const Nt=(0,F.connect)((function(e){return{intlInitialised:!e.app||e.app.intlInitialised,cacheInitialised:!e.app||e.app.cacheInitialised}}))(It);var Zt,Rt,Bt,Lt=J.ZP.div.withConfig({displayName:"StyledApp"})(Zt||(Zt=mt()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),Ft=i(82492),Ht=i.n(Ft),Ut=i(76538),Wt=(0,J.vJ)(Rt||(Rt=mt()(["\n // Legacy (display expression) icons styling\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n"])),ee.FS.color("signal.success.text"),ee.FS.color("signal.info.text"),ee.FS.color("signal.warning.text"),ee.FS.color("signal.danger.text"),(function(e){var t=e.theme;return(0,Ut._j)(.4,t.colors.paper)})),zt=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,a=(0,I.useMemo)((function(){return Ht()({},t,n)}),[t,n]);return(0,oe.jsxs)(J.f6,{theme:o||a,children:[Bt||(Bt=(0,oe.jsx)(Wt,{})),r]})};zt.defaultProps={defaultTheme:Xe.Z};const qt=(0,J.Zz)(zt);var Vt=i(93379),Yt=i.n(Vt),Gt=i(7795),$t=i.n(Gt),Kt=i(90569),Xt=i.n(Kt),Qt=i(3565),Jt=i.n(Qt),en=i(19216),tn=i.n(en),nn=i(44589),rn=i.n(nn),on=i(36420),an={};an.styleTagTransform=rn(),an.setAttributes=Jt(),an.insert=Xt().bind(null,"head"),an.domAPI=$t(),an.insertStyleElement=tn();Yt()(on.Z,an);on.Z&&on.Z.locals&&on.Z.locals;var cn=function(e){return"widget"===e?Qe:Xe.Z};const sn=function(e){var t=e.store,n=e.content,r=e.theme,o=(0,I.useCallback)((function(e){e&&i.e(198).then(i.bind(i,78947)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),a=Je.Z.getEmbedType();return(0,oe.jsx)(qt,{customTheme:r,defaultTheme:cn(a),children:(0,oe.jsx)(F.Provider,{store:t,children:(0,oe.jsx)(bt.KeyDownWatcher,{children:(0,oe.jsx)(Nt,{children:(0,oe.jsx)(Ke.Pj,{children:(0,oe.jsx)(Lt,{ref:o,children:n})})})})})})};var un="app/SETUP_INTL",ln="app/CHANGE_LOCALE",pn="app/SET_TEXT_RESOURCE_MODULES",dn="app/SET_INTL_INITIALISED",fn="app/INITIALISE_CACHE",hn="app/SET_CACHE_INITIALISED",mn=function(e){return{type:un,payload:{locale:e}}},gn=function(e){return{type:ln,payload:{locale:e}}},vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.shouldSetupIntl,n=void 0!==t&&t,r=e.locale;return{type:fn,payload:{shouldSetupIntl:n,locale:r}}},yn=function(e){return{type:hn,payload:{cacheInitialised:e}}},bn="input/SET_INPUT",wn="input/INPUT_INITIALIZED",kn=function(e,t){e.forEach((function(e){t.dispatch(e)}))},xn=function(e){i.p=e},On=i(2100),_n=i(79311),An=i(63094),En=we().mark(Pn),Sn=we().mark(jn),Cn=we().mark(Dn);function Pn(){var e,t,n,r,o,a,i,c,s,u,l,p,d,f,h,m,g,v=arguments;return we().wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return e=v.length>0&&void 0!==v[0]?v[0]:{},t=e.locale,y.next=3,(0,ke.RE)(An.Z.fetchServerRevision);case 3:return n=y.sent,y.next=6,(0,ke.RE)(On.Z.loadUserWithLocale);case 6:return r=y.sent,o=r.locale,a=r.username,i=r.businessUnitId,c=t||o,s=_n.Z.getMetaInfo(),u=s.revision,l=s.locale,p=s.businessUnitId,d=s.username,f=!l||l!==c,h=p!==i,m=d!==a,g=u!==n,y.abrupt("return",{invalidCache:f||h||m||g,cache:{locale:c,businessUnitId:i,username:a,revision:n}});case 15:case"end":return y.stop()}}),En)}function jn(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_n.Z.clearObjectCache(),_n.Z.clearLongTerm();case 2:case"end":return e.stop()}}),Sn)}function Dn(e){var t,n,r,o;return we().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=e.locale,n=e.businessUnitId,r=e.username,o=e.revision,_n.Z.setMetaInfo({locale:t,revision:o,businessUnitId:n,username:r});case 2:case"end":return a.stop()}}),Cn)}var Tn=we().mark(Hn),Mn=we().mark(Un),In=we().mark(Wn),Nn=we().mark(zn),Zn=we().mark(qn),Rn=we().mark(Vn),Bn=function(e){return e.app},Ln=!1,Fn=function(){Ln=!1};function Hn(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(un,Wn),(0,ke.Fm)(ln,zn),(0,ke.Fm)(fn,qn)]);case 2:case"end":return e.stop()}}),Tn)}function Un(e){var t,n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ke.Ys)(Bn);case 2:return t=o.sent,n=t.textResourceModules,o.next=6,(0,ke.RE)(On.Z.getChangeLocaleAction,n,e);case 6:return r=o.sent,o.next=9,(0,ke.gz)(r);case 9:case"end":return o.stop()}}),Mn)}function Wn(e){var t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload.locale,n=t){r.next=6;break}return r.next=5,(0,ke.RE)(On.Z.getUserLocale);case 5:n=r.sent;case 6:return r.next=8,(0,ke.RE)(Un,n);case 8:return r.next=10,(0,ke.gz)({type:dn,payload:{intlInitialised:!0}});case 10:case"end":return r.stop()}}),In)}function zn(e){var t;return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload.locale,n.next=3,(0,ke.RE)(Vn,{locale:t});case 3:return n.next=5,(0,ke.RE)(Un,t);case 5:case"end":return n.stop()}}),Nn)}function qn(e){var t,n,r,o,a,i;return we().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(t=e.payload,n=t.shouldSetupIntl,r=t.locale,!Ln){c.next=8;break}return c.next=4,(0,ke.gz)(yn(!0));case 4:if(!n){c.next=7;break}return c.next=7,(0,ke.gz)(mn(r));case 7:return c.abrupt("return");case 8:return c.next=10,(0,ke.RE)(Pn,{locale:r});case 10:if(o=c.sent,a=o.invalidCache,i=o.cache,!a){c.next=18;break}return c.next=16,(0,ke.RE)(jn);case 16:return c.next=18,(0,ke.RE)(Dn,i);case 18:return Ln=!0,c.next=21,(0,ke.gz)(yn(!0));case 21:if(!n){c.next=24;break}return c.next=24,(0,ke.gz)(mn(r));case 24:case"end":return c.stop()}}),Zn)}function Vn(){var e,t,n=arguments;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t=e.locale,r.next=3,(0,ke.RE)(Fn);case 3:return r.next=5,(0,ke.gz)(vn({shouldSetupIntl:!1,locale:t}));case 5:return r.next=7,(0,ke.qn)(hn);case 7:case"end":return r.stop()}}),Rn)}var Yn=i(15857),Gn=(i(28500),i(44422));function $n(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Kn=$n();Kn.withExtraArgument=$n;const Xn=Kn;var Qn,Jn=i(24688),er=(Qn={},t()(Qn,pn,pe.Z.singleTransferReducer("textResourceModules")),t()(Qn,dn,pe.Z.singleTransferReducer("intlInitialised")),t()(Qn,hn,pe.Z.singleTransferReducer("cacheInitialised")),Qn),tr={textResourceModules:[],intlInitialised:!1,cacheInitialised:!1};const nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tr,t=arguments.length>1?arguments[1]:void 0,n=er[t.type];return n?n(e,t):e};function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?rr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ar=t()({},bn,(function(e,t){var n=t.payload;return or(or({},e),n)})),ir={};const cr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ir,t=arguments.length>1?arguments[1]:void 0,n=ar[t.type];return n?n(e,t):e};function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?sr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var lr=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};i(63038),i(41609),i(18446),i(35937),i(35997);const pr=function(e,t,n,r){var o=r.input,a=void 0===o?{}:o,i=r.actions,c=void 0===i?void 0:i,s=r.publicPath,u=void 0===s?void 0:s,l=r.textResourceModules,p=void 0===l?[]:l;try{var d=a.customTheme;u&&xn(u),c&&kn(c,n),n.dispatch({type:wn});var f=a?a.locale:null,h=$e()([e],p);n.dispatch(function(e){return{type:pn,payload:{textResourceModules:e}}}(h)),n.dispatch(vn({shouldSetupIntl:!0,locale:f}));var m=function(){var e=je()(we().mark((function e(t){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.dispatch(gn(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{component:(0,oe.jsx)(sn,{store:n,content:t,theme:d}),store:n,methods:{setLocale:m}}}catch(e){try{n.dispatch(Ve("Error","Error creating react application: ",e))}catch(t){Oe.Z.logError("Error creating react application: ",e),Oe.Z.logError("Unable to log error: ",t)}}},dr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=lr(n),o=(0,Gn.ZP)(),a=(0,Yn.md)(Xn,o),i=ur(ur({},e),{},{input:cr,app:nr,intl:Ke._8});e=(0,Yn.UY)(i);var c=[Hn].concat(fe()(t)),s=(0,Yn.MT)(e,r,a);if(s.allReducers=i,s.sagas=c,s.sagaMiddleware=o,s.hotReloadReducers=pe.Z.hotReloadReducers,c&&c.length>0){var u=Jn.Z.createGenerator(c.map((function(e){return(0,ke.rM)(e)})));o.run(Jn.Z.autoRestartSaga(u,null,Ve))}return s},fr=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var hr,mr=i(48479);function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?gr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yr=function(e,n){return function(r,o){return vr(vr({},r),{},t()({},n||o.payload.path,vr(vr({},r[n||o.payload.path]),{},{running:e})))}},br=(hr={},t()(hr,mr.b0,pe.Z.singleTransferReducer("version","dbRefactoring")),t()(hr,mr.FX,pe.Z.singleTransferReducer("modules","dbRefactoring")),t()(hr,mr._2,pe.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(hr,mr.ZD,pe.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(hr,mr.Pt,(function(e,t){return vr(vr({},e),{},{dbRefactoring:vr(vr({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(hr,mr.Hx,(function(e,t){return vr(vr({},e),{},{dbRefactoring:vr(vr({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(fe()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(hr,mr.X7,yr(!0,"dbRefactoring")),t()(hr,mr.DN,yr(!1)),t()(hr,mr.AF,pe.Z.singleTransferReducer("language","languageUpgrade")),t()(hr,mr.Bw,yr(!0,"languageUpgrade")),hr),wr={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var kr=we().mark(jr),xr=we().mark(Dr),Or=we().mark(Tr),_r=we().mark(Mr),Ar=we().mark(Ir),Er=we().mark(Nr),Sr=we().mark(Zr),Cr=function(e){return e.dbRefactoring.dbRefactoring},Pr=function(e){return e.dbRefactoring.languageUpgrade};function jr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(mr.VQ,Dr),(0,ke.Fm)(mr.Tf,Tr),(0,ke.Fm)(mr.X7,Mr),(0,ke.Fm)(mr.Bw,Ir)]);case 2:case"end":return e.stop()}}),kr)}function Dr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(An.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,ke.gz)(mr.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),xr)}function Tr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(An.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,ke.gz)(mr.Rg(e.body));case 5:case"end":return t.stop()}}),Or)}function Mr(){var e,t,n,r,o,a;return we().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,ke.Ys)(Cr);case 2:return e=i.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,a={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},i.next=10,(0,ke.RE)(Nr,a,"dbRefactoring");case 10:case"end":return i.stop()}}),_r)}function Ir(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(Pr);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,ke.RE)(Nr,n,"languageUpgrade");case 7:case"end":return r.stop()}}),Ar)}function Nr(e,t){var n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,ke.RE)(An.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,ke.Cs)(Zr,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),Oe.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),Er,null,[[1,9]])}function Zr(e,t){var n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ke.gw)(3e3);case 2:return o.next=4,(0,ke.RE)(An.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,ke.gz)(mr.zL(t));case 9:return o.next=11,(0,ke.gz)(Ee.Z.toaster({type:"success",title:"DB refactoring execution completed"}));case 11:case 18:o.next=22;break;case 13:if("failed"!==r){o.next=20;break}return o.next=16,(0,ke.gz)(mr.zL(t));case 16:return o.next=18,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,ke.RE)(Zr,e);case 22:case"end":return o.stop()}}),Sr)}var Rr=we().mark(Br);function Br(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(jr)]);case 2:case"end":return e.stop()}}),Rr)}const Lr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wr,t=arguments.length>1?arguments[1]:void 0,n=br[t.type];return n?n(e,t):e};var Fr=i(44586),Hr="log/RECEIVE_ENTRY",Ur=function(e){return{type:Hr,payload:{data:e}}};function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Wr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var qr=t()({},Hr,(function(e,t){var n=t.payload;return zr(zr({},e),{},{entries:[zr(zr({},n.data),{},{key:(0,Fr.Z)()})].concat(fe()(e.entries))})})),Vr={entries:[]};var Yr=i(47979),Gr=we().mark(Kr),$r=we().mark(Xr);function Kr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(Xr)]);case 2:case"end":return e.stop()}}),Gr)}function Xr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:Ur},t.next=3,(0,ke.RE)(Yr.Z.connectSocket,e);case 3:case"end":return t.stop()}}),$r)}var Qr=we().mark(Jr);function Jr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Kr)]);case 2:case"end":return e.stop()}}),Qr)}const eo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr,t=arguments.length>1?arguments[1]:void 0,n=qr[t.type];return n?n(e,t):e};var to,no=i(49478);function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oo(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ro(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ro(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ao=(to={},t()(to,no.MW,(function(){return oo(oo({},io),{},{state:oo(oo({},io.state),{},{running:!0})})})),t()(to,no.LU,(function(e,t){var n=t.payload;return oo(oo({},e),{},{state:oo(oo({},e.state),{},{total:n.total})})})),t()(to,no.pe,(function(e,t){var n=t.payload;return oo(oo({},e),{},{state:oo(oo({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(to,no.HM,(function(e,n){var r=n.payload,o=r.id,a=r.type,i=r.label,c=e.checkEvents[a]||[],s=[].concat(fe()(c),[{id:o,type:a,label:i}]),u=oo(oo({},e.checkEvents),{},t()({},a,s));return oo(oo({},e),{},{checkEvents:u})})),t()(to,no.iK,(function(e,t){var n=t.payload;return oo(oo({},e),{},{state:oo(oo({},e.state),{},{running:!1,result:n.result})})})),t()(to,no.sF,(function(e,t){var n,r=t.payload,o=r.ids;return r.selected?(n=new Set(e.selection),o.forEach(n.add,n)):(n=new Set,e.selection.forEach((function(e){o.includes(e)||n.add(e)}))),oo(oo({},e),{},{selection:n})})),t()(to,no.VD,pe.Z.singleTransferReducer("sql")),t()(to,no.g6,pe.Z.singleTransferReducer("changelog")),to),io={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var co,so,uo=i(65035),lo=i(70696),po=i(58129),fo=J.ZP.div.withConfig({displayName:"StyledButtons"})(co||(co=mt()(["\n bottom: 0;\n padding: "," 0;\n display: flex;\n justify-content: flex-end;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),ne.Z.space(0),po.Z),ho=(0,J.ZP)(St.Vg).withConfig({displayName:"StyledChangelogCode"})(so||(so=mt()(["\n && {\n max-width: calc(100% - 2 * ","); // subtract side paddings to prevent cut off inside modal\n white-space: pre;\n overflow: auto;\n padding: ",";\n margin-bottom: ",";\n text-overflow: unset;\n }\n"])),ne.Z.space(.3),ne.Z.space(.3),ne.Z.space(.3));const mo=function(e){var t=e.changelog;return(0,oe.jsxs)("div",{children:[(0,oe.jsx)(ho,{children:t}),(0,oe.jsxs)(fo,{children:[(0,oe.jsx)(uo.Z,{look:"raised",onClick:function(){lo.Z.copyToClipboard(function(e){return e.split("\n").slice(2,-1).join("\n")}(t))},label:"Copy only Changesets to Clipboard"}),(0,oe.jsx)(uo.Z,{look:"raised",ink:"primary",onClick:function(){lo.Z.copyToClipboard(t)},label:"Copy Changelog to Clipboard"})]})]})};const go=(0,F.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(mo);var vo,yo=i(2678),bo=i(15103),wo=i(88601),ko=J.ZP.div.withConfig({displayName:"StyledButtons"})(vo||(vo=mt()(["\n bottom: 0;\n padding: "," 0;\n background-color: ",";\n z-index: 1;\n display: flex;\n justify-content: flex-end;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),ne.Z.space(0),wo.Z.color("paper"),po.Z);const xo=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,oe.jsxs)("div",{children:[(0,oe.jsx)(yo.Z,{label:"SQL Statement",children:(0,oe.jsx)(bo.Z,{type:"text",value:t,events:{onChange:n}})}),(0,oe.jsx)(ko,{children:(0,oe.jsx)(uo.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})})]})};var Oo={executeSql:no.Rj,setSql:no.fq};const _o=(0,F.connect)((function(e){return{sql:e.modelValidation.sql}}),Oo)(xo);var Ao=we().mark(Io),Eo=we().mark(No),So=we().mark(Zo),Co=we().mark(Ro),Po=we().mark(Bo),jo=we().mark(Lo),Do=we().mark(Fo),To=function(e){return e.modelValidation.selection},Mo=function(e){return e.modelValidation.sql};function Io(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(No),(0,ke.ib)(no.MW,Zo),(0,ke.ib)(no.EJ,Ro),(0,ke.ib)(no.es,Bo),(0,ke.ib)(no.dQ,Lo),(0,ke.ib)(no.Ge,Fo)]);case 2:case"end":return e.stop()}}),Ao)}function No(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:no.QM},t.next=3,(0,ke.RE)(Yr.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Eo)}function Zo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,ke.RE)(An.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),Oe.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),So,null,[[0,5]])}function Ro(e){var t;return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.payload,n.t0=t.message.type,n.next="validation_ended"===n.t0?4:"entering_checks"===n.t0?7:"entering_check"===n.t0?10:"check_event"===n.t0?13:16;break;case 4:return n.next=6,(0,ke.gz)(no.ag(t.message.params.result));case 6:case 9:case 12:case 15:return n.abrupt("break",16);case 7:return n.next=9,(0,ke.gz)(no.o1(t.message.params.total));case 10:return n.next=12,(0,ke.gz)(no.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,ke.gz)(no.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),Co)}function Bo(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(To);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(An.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(no.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("sql","SQL",null,_o,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),Oe.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),Po,null,[[4,14]])}function Lo(e){var t,n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,ke.Ys)(Mo);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,ke.RE)(An.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,ke.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),Oe.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),jo,null,[[5,14]])}function Fo(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(To);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(An.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(no.EL(n.body.statements[0]));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("changelog","Changelog",null,go,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),Oe.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),Do,null,[[4,14]])}var Ho=we().mark(Uo);function Uo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Io)]);case 2:case"end":return e.stop()}}),Ho)}const Wo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:io,t=arguments.length>1?arguments[1]:void 0,n=ao[t.type];return n?n(e,t):e};var zo,qo=i(22541);function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Vo(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Go=(zo={},t()(zo,qo.Z9,(function(e,t){var n=t.payload;return e.active?Yo(Yo({},e),{},{entries:[Yo(Yo({},n.data),{},{key:(0,Fr.Z)()})].concat(fe()(e.entries))}):e})),t()(zo,qo.HI,pe.Z.singleTransferReducer("active")),t()(zo,qo.Zm,pe.Z.singleTransferReducer("elapsed")),zo),$o={entries:[],active:!1,elapsed:null};var Ko=we().mark(Qo),Xo=we().mark(Jo);function Qo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(Jo)]);case 2:case"end":return e.stop()}}),Ko)}function Jo(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:qo.oS},t.next=3,(0,ke.RE)(Yr.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Xo)}var ea=we().mark(ta);function ta(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Qo)]);case 2:case"end":return e.stop()}}),ea)}const na={log:eo,dbRefactoring:Lr,modelValidation:Wo,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$o,t=arguments.length>1?arguments[1]:void 0,n=Go[t.type];return n?n(e,t):e}};var ra,oa,aa=[Br,Jr,Uo,ta];function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ca="devcon",sa=N().lazy((function(){return i.e(85).then(i.bind(i,74232))})),ua=function(){return ra||(ra=(0,oe.jsx)("div",{children:(0,oe.jsx)(I.Suspense,{fallback:"",children:(0,oe.jsx)(sa,{})})}))},la=function(e,n,r,o){var a=dr(na,aa,n,ca);Ye(a,!0,["console","remote","notification"]),Ee.Z.addToStore(a,!0);var i=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ia(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ia(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),c=(0,oe.jsx)(Z.F0,{history:i,children:oa||(oa=(0,oe.jsx)(ua,{}))});return pr(ca,c,a,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",ca]})};fr(ca,la)})(),c})()));
|
|
64
|
+
e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},r.apply(null,arguments)}function o(e){return a(e)||i(e)||c(e)||u()}function a(e){if(Array.isArray(e))return s(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,p=Object.setPrototypeOf,d=Object.isFrozen,f=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var k=D(Array.prototype.forEach),x=D(Array.prototype.pop),O=D(Array.prototype.push),_=D(String.prototype.toLowerCase),A=D(String.prototype.match),E=D(String.prototype.replace),S=D(String.prototype.indexOf),C=D(String.prototype.trim),P=D(RegExp.prototype.test),j=T(TypeError);function D(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function T(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function M(e,t,n){n=n||_,p&&p(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(d(t)||(t[r]=a),o=a)}e[o]=!0}return e}function I(e){var t,n=v(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function N(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var Z=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),H=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=m(["#text"]),W=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Y=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=g(/<%[\w\W]*|[\w\W]*%>/gm),$=g(/^data-[\-\w.\u00B7-\uFFFF]/),K=g(/^aria-[\-\w]+$/),X=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=g(/^(?:\w+script|data):/i),J=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.3.10",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,i=t.DocumentFragment,c=t.HTMLTemplateElement,s=t.Node,u=t.Element,l=t.NodeFilter,p=t.NamedNodeMap,d=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,f=t.HTMLFormElement,h=t.DOMParser,g=t.trustedTypes,v=u.prototype,y=N(v,"cloneNode"),b=N(v,"nextSibling"),w=N(v,"childNodes"),D=N(v,"parentNode");if("function"==typeof c){var T=a.createElement("template");T.content&&T.content.ownerDocument&&(a=T.content.ownerDocument)}var oe=ne(g,r),ae=oe?oe.createHTML(""):"",ie=a,ce=ie.implementation,se=ie.createNodeIterator,ue=ie.createDocumentFragment,le=ie.getElementsByTagName,pe=r.importNode,de={};try{de=I(a).documentMode?a.documentMode:{}}catch(e){}var fe={};n.isSupported="function"==typeof D&&ce&&void 0!==ce.createHTMLDocument&&9!==de;var he,me,ge=Y,ve=G,ye=$,be=K,we=Q,ke=J,xe=X,Oe=null,_e=M({},[].concat(o(Z),o(R),o(B),o(F),o(U))),Ae=null,Ee=M({},[].concat(o(W),o(z),o(q),o(V))),Se=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Pe=null,je=!0,De=!0,Te=!1,Me=!1,Ie=!1,Ne=!1,Ze=!1,Re=!1,Be=!1,Le=!1,Fe=!0,He=!0,Ue=!1,We={},ze=null,qe=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ye=M({},["audio","video","img","source","image","track"]),Ge=null,$e=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml",Je=Qe,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ot=a.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},it=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=I(t),he=he=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:_,Oe="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,me):_e,Ae="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,me):Ee,Ge="ADD_URI_SAFE_ATTR"in t?M(I($e),t.ADD_URI_SAFE_ATTR,me):$e,Ve="ADD_DATA_URI_TAGS"in t?M(I(Ye),t.ADD_DATA_URI_TAGS,me):Ye,ze="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,me):qe,Ce="FORBID_TAGS"in t?M({},t.FORBID_TAGS,me):{},Pe="FORBID_ATTR"in t?M({},t.FORBID_ATTR,me):{},We="USE_PROFILES"in t&&t.USE_PROFILES,je=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=t.SAFE_FOR_TEMPLATES||!1,Ie=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Le=t.RETURN_TRUSTED_TYPE||!1,Ze=t.FORCE_BODY||!1,Fe=!1!==t.SANITIZE_DOM,He=!1!==t.KEEP_CONTENT,Ue=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,Je=t.NAMESPACE||Qe,t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(De=!1),Be&&(Re=!0),We&&(Oe=M({},o(U)),Ae=[],!0===We.html&&(M(Oe,Z),M(Ae,W)),!0===We.svg&&(M(Oe,R),M(Ae,z),M(Ae,V)),!0===We.svgFilters&&(M(Oe,B),M(Ae,z),M(Ae,V)),!0===We.mathMl&&(M(Oe,F),M(Ae,q),M(Ae,V))),t.ADD_TAGS&&(Oe===_e&&(Oe=I(Oe)),M(Oe,t.ADD_TAGS,me)),t.ADD_ATTR&&(Ae===Ee&&(Ae=I(Ae)),M(Ae,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&M(Ge,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(ze===qe&&(ze=I(ze)),M(ze,t.FORBID_CONTENTS,me)),He&&(Oe["#text"]=!0),Ie&&M(Oe,["html","head","body"]),Oe.table&&(M(Oe,["tbody"]),delete Ce.tbody),m&&m(t),rt=t)},ct=M({},["mi","mo","mn","ms","mtext"]),st=M({},["foreignobject","desc","title","annotation-xml"]),ut=M({},["title","style","font","a","script"]),lt=M({},R);M(lt,B),M(lt,L);var pt=M({},F);M(pt,H);var dt=function(e){var t=D(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return e.namespaceURI===Xe?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(lt[n]):e.namespaceURI===Ke?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Xe?"math"===n&&st[r]:Boolean(pt[n]):e.namespaceURI===Qe&&!(t.namespaceURI===Xe&&!st[r])&&!(t.namespaceURI===Ke&&!ct[r])&&!pt[n]&&(ut[n]||!lt[n])},ft=function(e){O(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},ht=function(e,t){try{O(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){O(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(Re||Be)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,n;if(Ze)e="<remove></remove>"+e;else{var r=A(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(Je===Qe)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),Je===Qe?le.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},gt=function(e){return se.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},vt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},yt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,r){fe[e]&&k(fe[e],(function(e){e.call(n,t,r,rt)}))},wt=function(e){var t;if(bt("beforeSanitizeElements",e,null),vt(e))return ft(e),!0;if(P(/[\u0080-\uFFFF]/,e.nodeName))return ft(e),!0;var r=me(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&P(/<[/\w]/g,e.innerHTML)&&P(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&P(/<template/i,e.innerHTML))return ft(e),!0;if(!Oe[r]||Ce[r]){if(!Ce[r]&&xt(r)){if(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(He&&!ze[r]){var o=D(e)||e.parentNode,a=w(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(y(a[i],!0),b(e))}return ft(e),!0}return e instanceof u&&!dt(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r||!P(/<\/no(script|embed)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=E(t,ge," "),t=E(t,ve," "),e.textContent!==t&&(O(n.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(ft(e),!0)},kt=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in a||n in ot))return!1;if(De&&!Pe[t]&&P(ye,t));else if(je&&P(be,t));else if(!Ae[t]||Pe[t]){if(!(xt(e)&&(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&P(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&P(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Ge[t]);else if(P(xe,E(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Ve[e])if(Te&&!P(we,E(n,ke,"")));else if(n)return!1;return!0},xt=function(e){return e.indexOf("-")>0},Ot=function(t){var r,o,a,i;bt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(i=c.length;i--;){var u=r=c[i],l=u.name,p=u.namespaceURI;if(o="value"===l?r.value:C(r.value),a=me(l),s.attrName=a,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,bt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(ht(l,t),s.keepAttr))if(P(/\/>/i,o))ht(l,t);else{Me&&(o=E(o,ge," "),o=E(o,ve," "));var d=me(t.nodeName);if(kt(d,a,o)){if(oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(p);else switch(g.getAttributeType(d,a)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{p?t.setAttributeNS(p,l,o):t.setAttribute(l,o),x(n.removed)}catch(e){}}}}bt("afterSanitizeAttributes",t,null)}},_t=function e(t){var n,r=gt(t);for(bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)bt("uponSanitizeShadowNode",n,null),wt(n)||(n.content instanceof i&&e(n.content),Ot(n));bt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o,a){var c,u,l,p,d;if((et=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!yt(o)){if("function"!=typeof o.toString)throw j("toString is not a function");if("string"!=typeof(o=o.toString()))throw j("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(yt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Ne||it(a),n.removed=[],"string"==typeof o&&(Ue=!1),Ue){if(o.nodeName){var f=me(o.nodeName);if(!Oe[f]||Ce[f])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof s)1===(u=(c=mt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?c=u:c.appendChild(u);else{if(!Re&&!Me&&!Ie&&-1===o.indexOf("<"))return oe&&Le?oe.createHTML(o):o;if(!(c=mt(o)))return Re?null:Le?ae:""}c&&Ze&&ft(c.firstChild);for(var h=gt(Ue?o:c);l=h.nextNode();)3===l.nodeType&&l===p||wt(l)||(l.content instanceof i&&_t(l.content),Ot(l),p=l);if(p=null,Ue)return o;if(Re){if(Be)for(d=ue.call(c.ownerDocument);c.firstChild;)d.appendChild(c.firstChild);else d=c;return Ae.shadowroot&&(d=pe.call(r,d,!0)),d}var m=Ie?c.outerHTML:c.innerHTML;return Ie&&Oe["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&P(ee,c.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+c.ownerDocument.doctype.name+">\n"+m),Me&&(m=E(m,ge," "),m=E(m,ve," ")),oe&&Le?oe.createHTML(m):m},n.setConfig=function(e){it(e),Ne=!0},n.clearConfig=function(){rt=null,Ne=!1},n.isValidAttribute=function(e,t,n){rt||it({});var r=me(e),o=me(t);return kt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],O(fe[e],t))},n.removeHook=function(e){if(fe[e])return x(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}return re()}()},1024:t=>{"use strict";t.exports=e},30314:e=>{"use strict";e.exports=t},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";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}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(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&&r(e,t)}n.d(t,{Z:()=>o})},72753:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83029);var o=n(61917),a=n(56265);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(88911);var o=n(72753),a=n(61917);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(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.")}()}},73891:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(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.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"49b48e9106b94d9dfbb3",198:"7c2af778b99282c30521",594:"993ea433d608fe9a10a4",607:"23f2484a241da8b2d66f",817:"e7577ad831ed74a7f633",877:"3c5f70337374f5294be7"}[e]+".js",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.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-devcon:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="/",(()=>{var e={179:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(59713),t=i.n(e),n=i(30670),r=i.n(n),o=i(41143),a=i.n(o);function s(e){return"/"===e.charAt(0)}function u(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&s(e),a=t&&s(t),i=o||a;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var l=r[r.length-1];c="."===l||".."===l||""===l}else c=!1;for(var p=0,d=r.length;d>=0;d--){var f=r[d];"."===f?u(r,d):".."===f?(u(r,d),p++):p&&(u(r,d),p--)}if(!i)for(;p--;p)r.unshift("..");!i||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var p=function(e){return"/"===e.charAt(0)?e:"/"+e},d=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},f=function(e,t){return d(e,t)?e.substr(t.length):e},h=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(e,t,n,r){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=g({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o};const y=function(){var e=null,t=[];return{setPrompt:function(t){return r()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof o?o(i,a):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}};var b=!("undefined"==typeof window||!window.document||!window.document.createElement),w=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},k=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},x=function(e,t){return t(window.confirm(e))},O=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},_=function(){return-1===window.navigator.userAgent.indexOf("Trident")},A=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C="popstate",P="hashchange",j=function(){try{return window.history.state||{}}catch(e){return{}}};const D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(b,"Browser history needs a DOM");var t=window.history,n=O(),o=!_(),i=e.forceRefresh,c=void 0!==i&&i,s=e.getUserConfirmation,u=void 0===s?x:s,l=e.keyLength,g=void 0===l?6:l,D=e.basename?h(p(e.basename)):"",T=function(e){var t=e||{},n=t.key,o=t.state,a=window.location,i=a.pathname+a.search+a.hash;return r()(!D||d(i,D),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+D+'".'),D&&(i=f(i,D)),v(i,o,n)},M=function(){return Math.random().toString(36).substr(2,g)},I=y(),N=function(e){S(ee,e),ee.length=t.length,I.notifyListeners(ee.location,ee.action)},Z=function(e){A(e)||L(T(e.state))},R=function(){L(T(j()))},B=!1,L=function(e){if(B)B=!1,N();else{I.confirmTransitionTo(e,"POP",u,(function(t){t?N({action:"POP",location:e}):F(e)}))}},F=function(e){var t=ee.location,n=U.indexOf(t.key);-1===n&&(n=0);var r=U.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(B=!0,V(o))},H=T(j()),U=[H.key],W=function(e){return D+m(e)},z=function(e,o){r()(!("object"===(void 0===e?"undefined":E(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a="PUSH",i=v(e,o,M(),ee.location);I.confirmTransitionTo(i,a,u,(function(e){if(e){var o=W(i),s=i.key,u=i.state;if(n)if(t.pushState({key:s,state:u},null,o),c)window.location.href=o;else{var l=U.indexOf(ee.location.key),p=U.slice(0,-1===l?0:l+1);p.push(i.key),U=p,N({action:a,location:i})}else r()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}}))},q=function(e,o){r()(!("object"===(void 0===e?"undefined":E(e))&&void 0!==e.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a="REPLACE",i=v(e,o,M(),ee.location);I.confirmTransitionTo(i,a,u,(function(e){if(e){var o=W(i),s=i.key,u=i.state;if(n)if(t.replaceState({key:s,state:u},null,o),c)window.location.replace(o);else{var l=U.indexOf(ee.location.key);-1!==l&&(U[l]=i.key),N({action:a,location:i})}else r()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}}))},V=function(e){t.go(e)},Y=function(){return V(-1)},G=function(){return V(1)},$=0,K=function(e){1===($+=e)?(w(window,C,Z),o&&w(window,P,R)):0===$&&(k(window,C,Z),o&&k(window,P,R))},X=!1,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=I.setPrompt(e);return X||(K(1),X=!0),function(){return X&&(X=!1,K(-1)),t()}},J=function(e){var t=I.appendListener(e);return K(1),function(){K(-1),t()}},ee={length:t.length,action:"POP",location:H,createHref:W,push:z,replace:q,go:V,goBack:Y,goForward:G,block:Q,listen:J};return ee};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign;var T,M,I=i(1024),N=i.n(I),Z=i(80467),R="tocco-util/LOG_ERROR",B=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Date.now();return{type:R,payload:{title:e,description:t,error:n,dateTime:r}}},L=i(74806),F=i(50558),H=i(34575),U=i.n(H),W=i(93913),z=i.n(W),q=i(2205),V=i.n(q),Y=i(78585),G=i.n(Y),$=i(29754),K=i.n($),X=i(44012),Q=i(91411),J=i(58804),ee=i(24875),te=i(30759),ne=i(7281),re=J.ZP.div.withConfig({displayName:"StyledWrapper"})(T||(T=(0,Q.Z)(["\n ",";\n background-color: ",";\n color: ",";\n padding: ",";\n"])),(0,te.Z)(),(function(e){return e.theme.colors.signal.danger.text}),ee.FS.color("paper"),ne.Z.space(-.5)),oe=i(85893);const ae=function(){return M||(M=(0,oe.jsx)(re,{children:(0,oe.jsx)(X.Z,{id:"client.component.errorBoundary.text"})}))};var ie;function ce(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K()(e);if(t){var o=K()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return G()(this,n)}}var se=function(e){V()(n,e);var t=ce(n);function n(e){var r;return U()(this,n),(r=t.call(this,e)).state={hasError:!1,error:null},r}return z()(n,[{key:"componentDidCatch",value:function(e){var t=this.props,n=t.logError,r=t.intl;n(r.formatMessage({id:"client.component.errorBoundary.notificationTitle"}),r.formatMessage({id:"client.component.errorBoundary.notificationDescription"}),e)}},{key:"render",value:function(){return this.state.hasError?ie||(ie=(0,oe.jsx)(ae,{})):this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(I.Component);const ue=se;var le={logError:B};(0,F.connect)(null,le)((0,L.ZP)(ue));var pe=i(81770),de=i(319),fe=i.n(de);function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?he(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=t()({},R,(function(e,t){var n=t.payload,r=n.title,o=n.description,a=n.error,i=n.dateTime;return me(me({},e),{},{messages:[{title:r,description:o,error:a,dateTime:i}].concat(fe()(e.messages)).slice(0,100)})})),ve={messages:[]};function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve,t=arguments.length>1?arguments[1]:void 0,n=ge[t.type];return n?n(e,t):e}var be=i(87757),we=i.n(be),ke=i(34857),xe=i(50600),Oe=i(44759),_e=we().mark(Ae);function Ae(e,t,n){return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.RE)(Oe.Z.logError,"".concat(e,": \n").concat(t,"\n"),n);case 2:case"end":return r.stop()}}),_e)}var Ee=i(26881),Se=we().mark(Ce);function Ce(e,t,n){var r;return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,ke.RE)(Ee.Z.toaster,{type:"error",title:e,body:t});case 2:return r=n.sent,n.next=5,(0,ke.gz)(r);case 5:case"end":return n.stop()}}),Se)}var Pe=i(48926),je=i.n(Pe),De=i(54159),Te="error",Me=function(){var e=je()(we().mark((function e(t){var n;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ERROR MESSAGE: ".concat(t.message," \nSTACK: ").concat(t.stack?t.stack.substring(0,1e3):"-"),Oe.Z.logError(n),e.next=4,Ne(Te,n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){var e=je()(we().mark((function e(t){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Oe.Z.logError(t),e.next=3,Ne(Te,t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=je()(we().mark((function e(t,n){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,De.Z.executeRequest("log?level=".concat(t,"&message=").concat(encodeURI(n)),{method:"POST"});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n){return e.apply(this,arguments)}}();const Ze={logError:Ie,logException:Me};var Re=we().mark(Be);function Be(e,t,n){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.RE)(Ze.logException,n);case 2:case"end":return e.stop()}}),Re)}const Le={console:Ae,notification:Ce,remote:Be};var Fe=we().mark(We),He=we().mark(ze),Ue=we().mark(qe);function We(e,t){return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=5;break}return n.next=3,(0,ke.ib)(R,ze,t);case 3:n.next=7;break;case 5:return n.next=7,(0,ke.ib)(R,qe);case 7:case"end":return n.stop()}}),Fe)}function ze(e,t){var n,r,o,a;return we().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.payload,r=n.title,o=n.description,a=n.error,i.next=4,(0,ke.$6)(e.map((function(e){return(0,ke.RE)(Le[e],r,o,a)})));case 4:case"end":return i.stop()}}),He)}function qe(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(xe.Z.emitAction(e));case 2:case"end":return t.stop()}}),Ue)}const Ve=B,Ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&pe.Z.injectReducers(e,{errorLogging:ye}),e.sagaMiddleware.run(We,t,n)};var Ge=i(93386),$e=i.n(Ge),Ke=(i(30314),i(21101)),Xe=i(5435);const Qe={name:"widget",colors:{paper:"#FFFFFF",primary:"#000000",secondary:"#333",secondaryLight:"#7c7c7c",text:"#000",backgroundBody:"#EDF1F5",backgroundBreadcrumbs:"#DEE6ED",backgroundPopover:"#424242",signal:{danger:{paper:"#EF9A9A",text:"#961b1b"},info:{paper:"#81D4FA",text:"#027cc1"},success:{paper:"#A5D6A7",text:"#337f37"},warning:{paper:"#FFF59D",text:"#d54300"}}},fontFamily:{monospace:"inherit",regular:"inherit"},fontSize:{base:1,factor:1},fontWeights:{regular:300,bold:500},lineHeights:{dense:1,light:1.2,regular:1.4},radii:{regular:"0px",medium:"2px",large:"4px"},space:{base:1,factor:2}};var Je=i(85743),et="keyDown/SET_CONFIG",tt="keyDown/KEY_DOWN",nt=function(e){return{type:et,payload:{config:e}}},rt=function(e){return{type:tt,payload:{config:e}}},ot=t()({},et,pe.Z.singleTransferReducer("config")),at={config:[]};function it(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:at,t=arguments.length>1?arguments[1]:void 0,n=ot[t.type];return n?n(e,t):e}var ct=we().mark(lt),st=we().mark(pt),ut=we().mark(dt);function lt(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.$6)([(0,ke.RE)(pt,e),(0,ke.ib)(tt,dt)]);case 2:case"end":return t.stop()}}),ct)}function pt(e){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.gz)(nt(e));case 2:case"end":return t.stop()}}),st)}function dt(e){var t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload,!(n=t.config)){r.next=5;break}return r.next=5,(0,ke.$6)(n.actions.map((function(e){return(0,ke.gz)(e)})));case 5:case"end":return r.stop()}}),ut)}var ft,ht=i(28655),mt=i.n(ht),gt=J.ZP.div.withConfig({displayName:"StyledDiv"})(ft||(ft=mt()(["\n display: contents;\n\n :focus {\n outline: none;\n }\n"])));const vt=function(e){var t=e.config,n=e.children,r=e.keyDownHandler,o=(0,I.useCallback)((function(e,n){var o=function(e,t,n){return e.find((function(e){return(e.code===t.code||e.key===t.key)&&(e.ctrl?e.ctrl===t.ctrlKey||e.ctrl===t.metaKey:e.ctrl===t.ctrlKey&&e.ctrl===t.metaKey)&&e.alt===t.altKey&&n===e.global}))}(t,e,n);o&&(e.preventDefault(),e.stopPropagation()),r(o)}),[t,r]),a=(0,I.useCallback)((function(e){return o(e,!0)}),[o]);return(0,I.useEffect)((function(){return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}}),[a]),(0,oe.jsx)(gt,{tabIndex:"0",onKeyDown:function(e){return o(e)},children:n})};var yt={keyDownHandler:rt};const bt={keyDown:rt,addToStore:function(e,t){pe.Z.injectReducers(e,{keyDown:it}),e.sagaMiddleware.run(lt,t)},KeyDownWatcher:(0,F.connect)((function(e){var t;return{config:(null===(t=e.keyDown)||void 0===t?void 0:t.config)||[]}}),yt)(vt)};var wt,kt,xt,Ot,_t=i(68957),At=i(93235),Et=i(34206),St=i(69829),Ct=(0,J.F4)(wt||(wt=(0,Q.Z)(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"]))),Pt=(0,J.iv)(kt||(kt=(0,Q.Z)(["\n animation: "," 400ms ease-in-out both;\n"])),Ct),jt=J.ZP.div.withConfig({displayName:"StyledLoadingIconAndTest"})(xt||(xt=(0,Q.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: ",";\n ",";\n\n > "," {\n margin-top: ",";\n z-index: 1;\n }\n"])),ne.Z.space(-1),Pt,St.Fe,ne.Z.space(-1));const Dt=J.ZP.div.withConfig({displayName:"StyledLoadMask"})(Ot||(Ot=(0,Q.Z)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n z-index: 0; // prevent interference with StyledPageOverlay when implemented as widget\n"])));var Tt;const Mt=function(e){var t=e.promises,n=e.required,r=e.children,o=e.loadingText,a=e.className,i=(0,I.useState)(!1),c=(0,_t.Z)(i,2),s=c[0],u=c[1],l=(0,I.useState)(!0),p=(0,_t.Z)(l,2),d=p[0],f=p[1];(0,I.useEffect)((function(){return t&&Promise.all(t).then((function(){!function(e){d&&u(e)}(!0)})),function(){f(!1)}}),[]);var h=n&&Array.isArray(n)?!n.some((function(e){return!e})):!!t&&s;return(0,oe.jsx)(Dt,{className:a,children:h?r:(0,oe.jsxs)(jt,{children:[Tt||(Tt=(0,oe.jsx)(At.Z,{size:"30px"},"loading-spinner")),o&&(0,oe.jsx)(Et.ZP.Span,{children:o},"loadingText")]})})};const It=function(e){var t=e.children,n=e.intlInitialised,r=e.cacheInitialised;return(0,oe.jsx)(Mt,{required:[r,n],children:t})};const Nt=(0,F.connect)((function(e){return{intlInitialised:!e.app||e.app.intlInitialised,cacheInitialised:!e.app||e.app.cacheInitialised}}))(It);var Zt,Rt,Bt,Lt=J.ZP.div.withConfig({displayName:"StyledApp"})(Zt||(Zt=mt()(["\n display: flex;\n flex-direction: column;\n height: 100%;\n"]))),Ft=i(82492),Ht=i.n(Ft),Ut=i(76538),Wt=(0,J.vJ)(Rt||(Rt=mt()(["\n // Legacy (display expression) icons styling\n .text-success {\n color: ",";\n }\n\n .text-info {\n color: ",";\n }\n\n .text-warning {\n color: ",";\n }\n\n .text-danger {\n color: ",";\n }\n\n .text-muted {\n color: ",";\n }\n"])),ee.FS.color("signal.success.text"),ee.FS.color("signal.info.text"),ee.FS.color("signal.warning.text"),ee.FS.color("signal.danger.text"),(function(e){var t=e.theme;return(0,Ut._j)(.4,t.colors.paper)})),zt=function(e){var t=e.defaultTheme,n=e.customTheme,r=e.children,o=e.theme,a=(0,I.useMemo)((function(){return Ht()({},t,n)}),[t,n]);return(0,oe.jsxs)(J.f6,{theme:o||a,children:[Bt||(Bt=(0,oe.jsx)(Wt,{})),r]})};zt.defaultProps={defaultTheme:Xe.Z};const qt=(0,J.Zz)(zt);var Vt=i(93379),Yt=i.n(Vt),Gt=i(7795),$t=i.n(Gt),Kt=i(90569),Xt=i.n(Kt),Qt=i(3565),Jt=i.n(Qt),en=i(19216),tn=i.n(en),nn=i(44589),rn=i.n(nn),on=i(36420),an={};an.styleTagTransform=rn(),an.setAttributes=Jt(),an.insert=Xt().bind(null,"head"),an.domAPI=$t(),an.insertStyleElement=tn();Yt()(on.Z,an);on.Z&&on.Z.locals&&on.Z.locals;var cn=function(e){return"widget"===e?Qe:Xe.Z};const sn=function(e){var t=e.store,n=e.content,r=e.theme,o=(0,I.useCallback)((function(e){e&&i.e(198).then(i.bind(i,78947)).then((function(t){t.dom.watch({autoReplaceSvgRoot:e,observeMutationsRoot:e})}))}),[]),a=Je.Z.getEmbedType();return(0,oe.jsx)(qt,{customTheme:r,defaultTheme:cn(a),children:(0,oe.jsx)(F.Provider,{store:t,children:(0,oe.jsx)(bt.KeyDownWatcher,{children:(0,oe.jsx)(Nt,{children:(0,oe.jsx)(Ke.Pj,{children:(0,oe.jsx)(Lt,{ref:o,children:n})})})})})})};var un="app/SETUP_INTL",ln="app/CHANGE_LOCALE",pn="app/SET_TEXT_RESOURCE_MODULES",dn="app/SET_INTL_INITIALISED",fn="app/INITIALISE_CACHE",hn="app/SET_CACHE_INITIALISED",mn=function(e){return{type:un,payload:{locale:e}}},gn=function(e){return{type:ln,payload:{locale:e}}},vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.shouldSetupIntl,n=void 0!==t&&t,r=e.locale;return{type:fn,payload:{shouldSetupIntl:n,locale:r}}},yn=function(e){return{type:hn,payload:{cacheInitialised:e}}},bn="input/SET_INPUT",wn="input/INPUT_INITIALIZED",kn=function(e,t){e.forEach((function(e){t.dispatch(e)}))},xn=function(e){i.p=e},On=i(2100),_n=i(79311),An=i(63094),En=we().mark(Pn),Sn=we().mark(jn),Cn=we().mark(Dn);function Pn(){var e,t,n,r,o,a,i,c,s,u,l,p,d,f,h,m,g,v=arguments;return we().wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return e=v.length>0&&void 0!==v[0]?v[0]:{},t=e.locale,y.next=3,(0,ke.RE)(An.Z.fetchServerRevision);case 3:return n=y.sent,y.next=6,(0,ke.RE)(On.Z.loadUserWithLocale);case 6:return r=y.sent,o=r.locale,a=r.username,i=r.businessUnitId,c=t||o,s=_n.Z.getMetaInfo(),u=s.revision,l=s.locale,p=s.businessUnitId,d=s.username,f=!l||l!==c,h=p!==i,m=d!==a,g=u!==n,y.abrupt("return",{invalidCache:f||h||m||g,cache:{locale:c,businessUnitId:i,username:a,revision:n}});case 15:case"end":return y.stop()}}),En)}function jn(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_n.Z.clearObjectCache(),_n.Z.clearLongTerm();case 2:case"end":return e.stop()}}),Sn)}function Dn(e){var t,n,r,o;return we().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=e.locale,n=e.businessUnitId,r=e.username,o=e.revision,_n.Z.setMetaInfo({locale:t,revision:o,businessUnitId:n,username:r});case 2:case"end":return a.stop()}}),Cn)}var Tn=we().mark(Hn),Mn=we().mark(Un),In=we().mark(Wn),Nn=we().mark(zn),Zn=we().mark(qn),Rn=we().mark(Vn),Bn=function(e){return e.app},Ln=!1,Fn=function(){Ln=!1};function Hn(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(un,Wn),(0,ke.Fm)(ln,zn),(0,ke.Fm)(fn,qn)]);case 2:case"end":return e.stop()}}),Tn)}function Un(e){var t,n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ke.Ys)(Bn);case 2:return t=o.sent,n=t.textResourceModules,o.next=6,(0,ke.RE)(On.Z.getChangeLocaleAction,n,e);case 6:return r=o.sent,o.next=9,(0,ke.gz)(r);case 9:case"end":return o.stop()}}),Mn)}function Wn(e){var t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.payload.locale,n=t){r.next=6;break}return r.next=5,(0,ke.RE)(On.Z.getUserLocale);case 5:n=r.sent;case 6:return r.next=8,(0,ke.RE)(Un,n);case 8:return r.next=10,(0,ke.gz)({type:dn,payload:{intlInitialised:!0}});case 10:case"end":return r.stop()}}),In)}function zn(e){var t;return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload.locale,n.next=3,(0,ke.RE)(Vn,{locale:t});case 3:return n.next=5,(0,ke.RE)(Un,t);case 5:case"end":return n.stop()}}),Nn)}function qn(e){var t,n,r,o,a,i;return we().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(t=e.payload,n=t.shouldSetupIntl,r=t.locale,!Ln){c.next=8;break}return c.next=4,(0,ke.gz)(yn(!0));case 4:if(!n){c.next=7;break}return c.next=7,(0,ke.gz)(mn(r));case 7:return c.abrupt("return");case 8:return c.next=10,(0,ke.RE)(Pn,{locale:r});case 10:if(o=c.sent,a=o.invalidCache,i=o.cache,!a){c.next=18;break}return c.next=16,(0,ke.RE)(jn);case 16:return c.next=18,(0,ke.RE)(Dn,i);case 18:return Ln=!0,c.next=21,(0,ke.gz)(yn(!0));case 21:if(!n){c.next=24;break}return c.next=24,(0,ke.gz)(mn(r));case 24:case"end":return c.stop()}}),Zn)}function Vn(){var e,t,n=arguments;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t=e.locale,r.next=3,(0,ke.RE)(Fn);case 3:return r.next=5,(0,ke.gz)(vn({shouldSetupIntl:!1,locale:t}));case 5:return r.next=7,(0,ke.qn)(hn);case 7:case"end":return r.stop()}}),Rn)}var Yn=i(15857),Gn=(i(28500),i(44422));function $n(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Kn=$n();Kn.withExtraArgument=$n;const Xn=Kn;var Qn,Jn=i(24688),er=(Qn={},t()(Qn,pn,pe.Z.singleTransferReducer("textResourceModules")),t()(Qn,dn,pe.Z.singleTransferReducer("intlInitialised")),t()(Qn,hn,pe.Z.singleTransferReducer("cacheInitialised")),Qn),tr={textResourceModules:[],intlInitialised:!1,cacheInitialised:!1};const nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tr,t=arguments.length>1?arguments[1]:void 0,n=er[t.type];return n?n(e,t):e};function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?rr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ar=t()({},bn,(function(e,t){var n=t.payload;return or(or({},e),n)})),ir={};const cr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ir,t=arguments.length>1?arguments[1]:void 0,n=ar[t.type];return n?n(e,t):e};function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?sr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var lr=function(e){var t=window.__INITIAL_STATE__||{};return e&&(t.input=e,t.intl={locale:e.locale}),t};i(63038),i(41609),i(18446),i(35937),i(35997);const pr=function(e,t,n,r){var o=r.input,a=void 0===o?{}:o,i=r.actions,c=void 0===i?void 0:i,s=r.publicPath,u=void 0===s?void 0:s,l=r.textResourceModules,p=void 0===l?[]:l;try{var d=a.customTheme;u&&xn(u),c&&kn(c,n),n.dispatch({type:wn});var f=a?a.locale:null,h=$e()([e],p);n.dispatch(function(e){return{type:pn,payload:{textResourceModules:e}}}(h)),n.dispatch(vn({shouldSetupIntl:!0,locale:f}));var m=function(){var e=je()(we().mark((function e(t){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.dispatch(gn(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{component:(0,oe.jsx)(sn,{store:n,content:t,theme:d}),store:n,methods:{setLocale:m}}}catch(e){try{n.dispatch(Ve("Error","Error creating react application: ",e))}catch(t){Oe.Z.logError("Error creating react application: ",e),Oe.Z.logError("Unable to log error: ",t)}}},dr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=lr(n),o=(0,Gn.ZP)(),a=(0,Yn.md)(Xn,o),i=ur(ur({},e),{},{input:cr,app:nr,intl:Ke._8});e=(0,Yn.UY)(i);var c=[Hn].concat(fe()(t)),s=(0,Yn.MT)(e,r,a);if(s.allReducers=i,s.sagas=c,s.sagaMiddleware=o,s.hotReloadReducers=pe.Z.hotReloadReducers,c&&c.length>0){var u=Jn.Z.createGenerator(c.map((function(e){return(0,ke.rM)(e)})));o.run(Jn.Z.autoRestartSaga(u,null,Ve))}return s},fr=function(e,t){window.reactRegistry&&window.reactRegistry.register(e,t)};var hr,mr=i(48479);function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?gr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yr=function(e,n){return function(r,o){return vr(vr({},r),{},t()({},n||o.payload.path,vr(vr({},r[n||o.payload.path]),{},{running:e})))}},br=(hr={},t()(hr,mr.b0,pe.Z.singleTransferReducer("version","dbRefactoring")),t()(hr,mr.FX,pe.Z.singleTransferReducer("modules","dbRefactoring")),t()(hr,mr._2,pe.Z.singleTransferReducer("selectedModules","dbRefactoring")),t()(hr,mr.ZD,pe.Z.singleTransferReducer("ignoreErrors","dbRefactoring")),t()(hr,mr.Pt,(function(e,t){return vr(vr({},e),{},{dbRefactoring:vr(vr({},e.dbRefactoring),{},{fragments:t.payload.fragments,selectedFragments:t.payload.fragments.filter((function(e){return!0===e.selected})).map((function(e){return e.id}))})})})),t()(hr,mr.Hx,(function(e,t){return vr(vr({},e),{},{dbRefactoring:vr(vr({},e.dbRefactoring),{},{selectedFragments:!0===t.payload.selected?[].concat(fe()(e.dbRefactoring.selectedFragments),[t.payload.fragment]):e.dbRefactoring.selectedFragments.filter((function(n,r){return r!==e.dbRefactoring.selectedFragments.indexOf(t.payload.fragment)}))})})})),t()(hr,mr.X7,yr(!0,"dbRefactoring")),t()(hr,mr.DN,yr(!1)),t()(hr,mr.AF,pe.Z.singleTransferReducer("language","languageUpgrade")),t()(hr,mr.Bw,yr(!0,"languageUpgrade")),hr),wr={dbRefactoring:{version:"",modules:[],selectedModules:[],fragments:[],selectedFragments:[],ignoreErrors:!1,running:!1},languageUpgrade:{language:"",running:!1}};var kr=we().mark(jr),xr=we().mark(Dr),Or=we().mark(Tr),_r=we().mark(Mr),Ar=we().mark(Ir),Er=we().mark(Nr),Sr=we().mark(Zr),Cr=function(e){return e.dbRefactoring.dbRefactoring},Pr=function(e){return e.dbRefactoring.languageUpgrade};function jr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.Fm)(mr.VQ,Dr),(0,ke.Fm)(mr.Tf,Tr),(0,ke.Fm)(mr.X7,Mr),(0,ke.Fm)(mr.Bw,Ir)]);case 2:case"end":return e.stop()}}),kr)}function Dr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(An.Z.requestSaga,"devcon/dbrefactoring/modules");case 2:return e=t.sent,t.next=5,(0,ke.gz)(mr.rm(e.body.map((function(e){return{key:e,display:e}}))));case 5:case"end":return t.stop()}}),xr)}function Tr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ke.RE)(An.Z.requestSaga,"devcon/dbrefactoring/fragments");case 2:return e=t.sent,t.next=5,(0,ke.gz)(mr.Rg(e.body));case 5:case"end":return t.stop()}}),Or)}function Mr(){var e,t,n,r,o,a;return we().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,ke.Ys)(Cr);case 2:return e=i.sent,t=e.selectedModules,n=e.selectedFragments,r=e.version,o=e.ignoreErrors,a={modules:t.map((function(e){return e.key})),fragments:n,version:r,ignoreErrors:o},i.next=10,(0,ke.RE)(Nr,a,"dbRefactoring");case 10:case"end":return i.stop()}}),_r)}function Ir(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(Pr);case 2:return e=r.sent,t=e.language,n={language:t},r.next=7,(0,ke.RE)(Nr,n,"languageUpgrade");case 7:case"end":return r.stop()}}),Ar)}function Nr(e,t){var n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n={method:"POST",body:e},o.prev=1,o.next=4,(0,ke.RE)(An.Z.requestSaga,"devcon/dbrefactoring/executions",n);case 4:return r=o.sent,o.next=7,(0,ke.Cs)(Zr,r.headers.get("Location"),t);case 7:o.next=14;break;case 9:return o.prev=9,o.t0=o.catch(1),Oe.Z.logError("DB refactoring execution failed",o.t0),o.next=14,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 14:case"end":return o.stop()}}),Er,null,[[1,9]])}function Zr(e,t){var n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,ke.gw)(3e3);case 2:return o.next=4,(0,ke.RE)(An.Z.requestSaga,e);case 4:if(n=o.sent,"completed"!==(r=n.body.state.toLowerCase())){o.next=13;break}return o.next=9,(0,ke.gz)(mr.zL(t));case 9:return o.next=11,(0,ke.gz)(Ee.Z.toaster({type:"success",title:"DB refactoring execution completed"}));case 11:case 18:o.next=22;break;case 13:if("failed"!==r){o.next=20;break}return o.next=16,(0,ke.gz)(mr.zL(t));case 16:return o.next=18,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"DB refactoring execution failed"}));case 20:return o.next=22,(0,ke.RE)(Zr,e,t);case 22:case"end":return o.stop()}}),Sr)}var Rr=we().mark(Br);function Br(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(jr)]);case 2:case"end":return e.stop()}}),Rr)}const Lr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wr,t=arguments.length>1?arguments[1]:void 0,n=br[t.type];return n?n(e,t):e};var Fr=i(44586),Hr="log/RECEIVE_ENTRY",Ur=function(e){return{type:Hr,payload:{data:e}}};function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Wr(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var qr=t()({},Hr,(function(e,t){var n=t.payload;return zr(zr({},e),{},{entries:[zr(zr({},n.data),{},{key:(0,Fr.Z)()})].concat(fe()(e.entries))})})),Vr={entries:[]};var Yr=i(47979),Gr=we().mark(Kr),$r=we().mark(Xr);function Kr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(Xr)]);case 2:case"end":return e.stop()}}),Gr)}function Xr(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"logging",messageReceivedAction:Ur},t.next=3,(0,ke.RE)(Yr.Z.connectSocket,e);case 3:case"end":return t.stop()}}),$r)}var Qr=we().mark(Jr);function Jr(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Kr)]);case 2:case"end":return e.stop()}}),Qr)}const eo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr,t=arguments.length>1?arguments[1]:void 0,n=qr[t.type];return n?n(e,t):e};var to,no=i(49478);function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oo(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ro(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ro(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ao=(to={},t()(to,no.MW,(function(){return oo(oo({},io),{},{state:oo(oo({},io.state),{},{running:!0})})})),t()(to,no.LU,(function(e,t){var n=t.payload;return oo(oo({},e),{},{state:oo(oo({},e.state),{},{total:n.total})})})),t()(to,no.pe,(function(e,t){var n=t.payload;return oo(oo({},e),{},{state:oo(oo({},e.state),{},{running:!0,total:n.total,currentIndex:n.currentIndex,currentName:n.currentName})})})),t()(to,no.HM,(function(e,n){var r=n.payload,o=r.id,a=r.type,i=r.label,c=e.checkEvents[a]||[],s=[].concat(fe()(c),[{id:o,type:a,label:i}]),u=oo(oo({},e.checkEvents),{},t()({},a,s));return oo(oo({},e),{},{checkEvents:u})})),t()(to,no.iK,(function(e,t){var n=t.payload;return oo(oo({},e),{},{state:oo(oo({},e.state),{},{running:!1,result:n.result})})})),t()(to,no.sF,(function(e,t){var n,r=t.payload,o=r.ids;return r.selected?(n=new Set(e.selection),o.forEach(n.add,n)):(n=new Set,e.selection.forEach((function(e){o.includes(e)||n.add(e)}))),oo(oo({},e),{},{selection:n})})),t()(to,no.VD,pe.Z.singleTransferReducer("sql")),t()(to,no.g6,pe.Z.singleTransferReducer("changelog")),to),io={checkEvents:{},state:{running:!1,currentIndex:null,currentName:null,total:null,result:null},selection:new Set,sql:null,changelog:null};var co,so,uo=i(65035),lo=i(70696),po=i(58129),fo=J.ZP.div.withConfig({displayName:"StyledButtons"})(co||(co=mt()(["\n bottom: 0;\n padding: "," 0;\n display: flex;\n justify-content: flex-end;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),ne.Z.space(0),po.Z),ho=(0,J.ZP)(St.Vg).withConfig({displayName:"StyledChangelogCode"})(so||(so=mt()(["\n && {\n max-width: calc(100% - 2 * ","); // subtract side paddings to prevent cut off inside modal\n white-space: pre;\n overflow: auto;\n padding: ",";\n margin-bottom: ",";\n text-overflow: unset;\n }\n"])),ne.Z.space(.3),ne.Z.space(.3),ne.Z.space(.3));const mo=function(e){var t=e.changelog;return(0,oe.jsxs)("div",{children:[(0,oe.jsx)(ho,{children:t}),(0,oe.jsxs)(fo,{children:[(0,oe.jsx)(uo.Z,{look:"raised",onClick:function(){lo.Z.copyToClipboard(function(e){return e.split("\n").slice(2,-1).join("\n")}(t))},label:"Copy only Changesets to Clipboard"}),(0,oe.jsx)(uo.Z,{look:"raised",ink:"primary",onClick:function(){lo.Z.copyToClipboard(t)},label:"Copy Changelog to Clipboard"})]})]})};const go=(0,F.connect)((function(e){return{changelog:e.modelValidation.changelog}}),{})(mo);var vo,yo=i(2678),bo=i(15103),wo=i(88601),ko=J.ZP.div.withConfig({displayName:"StyledButtons"})(vo||(vo=mt()(["\n bottom: 0;\n padding: "," 0;\n background-color: ",";\n z-index: 1;\n display: flex;\n justify-content: flex-end;\n\n ",":last-child {\n margin-right: 0;\n }\n"])),ne.Z.space(0),wo.Z.color("paper"),po.Z);const xo=function(e){var t=e.sql,n=e.setSql,r=e.executeSql,o=e.close;return(0,oe.jsxs)("div",{children:[(0,oe.jsx)(yo.Z,{label:"SQL Statement",children:(0,oe.jsx)(bo.Z,{type:"text",value:t,events:{onChange:n}})}),(0,oe.jsx)(ko,{children:(0,oe.jsx)(uo.Z,{look:"raised",onClick:function(){r(o)},label:"Run Statements"})})]})};var Oo={executeSql:no.Rj,setSql:no.fq};const _o=(0,F.connect)((function(e){return{sql:e.modelValidation.sql}}),Oo)(xo);var Ao=we().mark(Io),Eo=we().mark(No),So=we().mark(Zo),Co=we().mark(Ro),Po=we().mark(Bo),jo=we().mark(Lo),Do=we().mark(Fo),To=function(e){return e.modelValidation.selection},Mo=function(e){return e.modelValidation.sql};function Io(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(No),(0,ke.ib)(no.MW,Zo),(0,ke.ib)(no.EJ,Ro),(0,ke.ib)(no.es,Bo),(0,ke.ib)(no.dQ,Lo),(0,ke.ib)(no.Ge,Fo)]);case 2:case"end":return e.stop()}}),Ao)}function No(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"modelvalidation",messageReceivedAction:no.QM},t.next=3,(0,ke.RE)(Yr.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Eo)}function Zo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,ke.RE)(An.Z.requestSaga,"devcon/modelvalidation/validation",{method:"POST"});case 3:e.next=10;break;case 5:return e.prev=5,e.t0=e.catch(0),Oe.Z.logError("Failed to start model validation",e.t0),e.next=10,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to start model validation"}));case 10:case"end":return e.stop()}}),So,null,[[0,5]])}function Ro(e){var t;return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.payload,n.t0=t.message.type,n.next="validation_ended"===n.t0?4:"entering_checks"===n.t0?7:"entering_check"===n.t0?10:"check_event"===n.t0?13:16;break;case 4:return n.next=6,(0,ke.gz)(no.ag(t.message.params.result));case 6:case 9:case 12:case 15:return n.abrupt("break",16);case 7:return n.next=9,(0,ke.gz)(no.o1(t.message.params.total));case 10:return n.next=12,(0,ke.gz)(no.c(t.message.params.total,t.message.params.num,t.message.params.model));case 13:return n.next=15,(0,ke.gz)(no.R6(t.message.params.id,t.message.params.type,t.message.params.label));case 16:case"end":return n.stop()}}),Co)}function Bo(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(To);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(An.Z.requestSaga,"devcon/modelvalidation/sql",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(no.fq(n.body.statements.map((function(e){return e+";"})).join("\n")));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("sql","SQL",null,_o,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),Oe.Z.logError("Failed to generate SQL",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate SQL"}));case 19:case"end":return r.stop()}}),Po,null,[[4,14]])}function Lo(e){var t,n,r;return we().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload,o.next=3,(0,ke.Ys)(Mo);case 3:return n=o.sent,r={method:"POST",body:{statements:n.split(";")}},o.prev=5,o.next=8,(0,ke.RE)(An.Z.requestSaga,"devcon/modelvalidation/execute/sql",r);case 8:if(200!==o.sent.status){o.next=12;break}return o.next=12,(0,ke.RE)(t.close);case 12:o.next=19;break;case 14:return o.prev=14,o.t0=o.catch(5),Oe.Z.logError("Failed to execute SQL",o.t0),o.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to execute SQL"}));case 19:case"end":return o.stop()}}),jo,null,[[5,14]])}function Fo(){var e,t,n;return we().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,ke.Ys)(To);case 2:return e=r.sent,t={method:"POST",body:{uuids:Array.from(e)}},r.prev=4,r.next=7,(0,ke.RE)(An.Z.requestSaga,"devcon/modelvalidation/changelog",t);case 7:return n=r.sent,r.next=10,(0,ke.gz)(no.EL(n.body.statements[0]));case 10:return r.next=12,(0,ke.gz)(Ee.Z.modal("changelog","Changelog",null,go,!0));case 12:r.next=19;break;case 14:return r.prev=14,r.t0=r.catch(4),Oe.Z.logError("Failed to generate Changelog",r.t0),r.next=19,(0,ke.gz)(Ee.Z.toaster({type:"error",title:"Failed to generate changelog"}));case 19:case"end":return r.stop()}}),Do,null,[[4,14]])}var Ho=we().mark(Uo);function Uo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Io)]);case 2:case"end":return e.stop()}}),Ho)}const Wo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:io,t=arguments.length>1?arguments[1]:void 0,n=ao[t.type];return n?n(e,t):e};var zo,qo=i(22541);function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Vo(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Go=(zo={},t()(zo,qo.Z9,(function(e,t){var n=t.payload;return e.active?Yo(Yo({},e),{},{entries:[Yo(Yo({},n.data),{},{key:(0,Fr.Z)()})].concat(fe()(e.entries))}):e})),t()(zo,qo.HI,pe.Z.singleTransferReducer("active")),t()(zo,qo.Zm,pe.Z.singleTransferReducer("elapsed")),zo),$o={entries:[],active:!1,elapsed:null};var Ko=we().mark(Qo),Xo=we().mark(Jo);function Qo(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.RE)(Jo)]);case 2:case"end":return e.stop()}}),Ko)}function Jo(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={name:"sqllogging",messageReceivedAction:qo.oS},t.next=3,(0,ke.RE)(Yr.Z.connectSocket,e);case 3:case"end":return t.stop()}}),Xo)}var ea=we().mark(ta);function ta(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ke.$6)([(0,ke.rM)(Qo)]);case 2:case"end":return e.stop()}}),ea)}const na={log:eo,dbRefactoring:Lr,modelValidation:Wo,sqlLog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$o,t=arguments.length>1?arguments[1]:void 0,n=Go[t.type];return n?n(e,t):e}};var ra,oa,aa=[Br,Jr,Uo,ta];function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ca="devcon",sa=N().lazy((function(){return i.e(85).then(i.bind(i,74232))})),ua=function(){return ra||(ra=(0,oe.jsx)("div",{children:(0,oe.jsx)(I.Suspense,{fallback:"",children:(0,oe.jsx)(sa,{})})}))},la=function(e,n,r,o){var a=dr(na,aa,n,ca);Ye(a,!0,["console","remote","notification"]),Ee.Z.addToStore(a,!0);var i=D(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ia(Object(r),!0).forEach((function(n){t()(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ia(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.baseRoute&&{basename:n.baseRoute})),c=(0,oe.jsx)(Z.F0,{history:i,children:oa||(oa=(0,oe.jsx)(ua,{}))});return pr(ca,c,a,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",ca]})};fr(ca,la)})(),c})()));
|