Jacks_Bastards_Website/static/wagtailadmin/js/vendor.js

2 lines
355 KiB
JavaScript

/*! For license information please see vendor.js.LICENSE.txt */
(globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[]).push([[321],{134:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(271);function i(e){var t=(0,r.A)(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}},222:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(8979);function i(e){var t=(0,r.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},246:(e,t,n)=>{"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return 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},s.apply(this,arguments)}function l(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.d(t,{Ay:()=>it});var u=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),c=l(/Edge/i),d=l(/firefox/i),f=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),p=l(/iP(ad|od|hone)/i),h=l(/chrome/i)&&l(/android/i),m={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&m)}function g(e,t,n){e.removeEventListener(t,n,!u&&m)}function b(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function y(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&b(e,t):b(e,t))||r&&e===n)return e;if(e===n)break}while(e=y(e))}return null}var E,k=/\s+/g;function x(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(k," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(k," ")}}function T(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var r=T(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function O(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function C(){return document.scrollingElement||document.documentElement}function A(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,l,c,d,f;if(e!==window&&e.parentNode&&e!==C()?(a=(o=e.getBoundingClientRect()).top,s=o.left,l=o.bottom,c=o.right,d=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!u))do{if(i&&i.getBoundingClientRect&&("none"!==T(i,"transform")||n&&"static"!==T(i,"position"))){var p=i.getBoundingClientRect();a-=p.top+parseInt(T(i,"border-top-width")),s-=p.left+parseInt(T(i,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=S(i||e),m=h&&h.a,v=h&&h.d;h&&(l=(a/=v)+(d/=v),c=(s/=m)+(f/=m))}return{top:a,left:s,bottom:l,right:c,width:f,height:d}}}function _(e,t,n){for(var r=M(e,!0),i=A(e)[t];r;){var o=A(r)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return r;if(r===C())break;r=M(r,!1)}return!1}function N(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==je.ghost&&(r||a[o]!==je.dragged)&&w(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function D(e,t){for(var n=e.lastElementChild;n&&(n===je.ghost||"none"===T(n,"display")||t&&!b(n,t));)n=n.previousElementSibling;return n||null}function I(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===je.clone||t&&!b(e,t)||n++;return n}function P(e){var t=0,n=0,r=C();if(e)do{var i=S(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function M(e,t){if(!e||!e.getBoundingClientRect)return C();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=T(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return C();if(r||t)return n;r=!0}}}while(n=n.parentNode);return C()}function F(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function L(e,t){return function(){if(!E){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),E=setTimeout(function(){E=void 0},t)}}}function j(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function R(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function $(e,t,n){var r={};return Array.from(e.children).forEach(function(i){var o,a,s,l;if(w(i,t.draggable,e,!1)&&!i.animated&&i!==n){var u=A(i);r.left=Math.min(null!==(o=r.left)&&void 0!==o?o:1/0,u.left),r.top=Math.min(null!==(a=r.top)&&void 0!==a?a:1/0,u.top),r.right=Math.max(null!==(s=r.right)&&void 0!==s?s:-1/0,u.right),r.bottom=Math.max(null!==(l=r.bottom)&&void 0!==l?l:-1/0,u.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var B="Sortable"+(new Date).getTime();var V=[],z={initializeByDefault:!0},U={mount:function(e){for(var t in z)z.hasOwnProperty(t)&&!(t in e)&&(e[t]=z[t]);V.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),V.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";V.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](i({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](i({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in V.forEach(function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,s(n,o.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);void 0!==o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return V.forEach(function(r){"function"==typeof r.eventProperties&&s(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return V.forEach(function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};var K=["evt"],W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,K);U.pluginEvent.bind(je)(e,t,i({dragEl:q,parentEl:Q,ghostEl:Y,rootEl:G,nextEl:X,lastDownEl:Z,cloneEl:J,cloneHidden:ee,dragStarted:pe,putSortable:ae,activeSortable:je.active,originalEvent:r,oldIndex:te,oldDraggableIndex:re,newIndex:ne,newDraggableIndex:ie,hideGhostForTarget:Pe,unhideGhostForTarget:Me,cloneNowHidden:function(){ee=!0},cloneNowShown:function(){ee=!1},dispatchSortableEvent:function(e){H({sortable:t,name:e,originalEvent:r})}},o))};function H(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,d=e.oldIndex,f=e.newIndex,p=e.oldDraggableIndex,h=e.newDraggableIndex,m=e.originalEvent,v=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[B]){var b,y=t.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||u||c?(b=document.createEvent("Event")).initEvent(r,!0,!0):b=new CustomEvent(r,{bubbles:!0,cancelable:!0}),b.to=s||n,b.from=l||n,b.item=o||n,b.clone=a,b.oldIndex=d,b.newIndex=f,b.oldDraggableIndex=p,b.newDraggableIndex=h,b.originalEvent=m,b.pullMode=v?v.lastPutMode:void 0;var E=i(i({},g),U.getEventProperties(r,t));for(var k in E)b[k]=E[k];n&&n.dispatchEvent(b),y[w]&&y[w].call(t,b)}}(i({putSortable:ae,cloneEl:J,targetEl:q,rootEl:G,oldIndex:te,oldDraggableIndex:re,newIndex:ne,newDraggableIndex:ie},e))}var q,Q,Y,G,X,Z,J,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,de,fe,pe,he,me,ve,ge,be=!1,ye=!1,we=[],Ee=!1,ke=!1,xe=[],Te=!1,Se=[],Oe="undefined"!=typeof document,Ce=p,Ae=c||u?"cssFloat":"float",_e=Oe&&!h&&!p&&"draggable"in document.createElement("div"),Ne=function(){if(Oe){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),De=function(e,t){var n=T(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=N(e,0,t),o=N(e,1,t),a=i&&T(i),s=o&&T(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Ae]||o&&"none"===n[Ae]&&l+u>r)?"vertical":"horizontal"},Ie=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Pe=function(){!Ne&&Y&&T(Y,"display","none")},Me=function(){!Ne&&Y&&T(Y,"display","")};Oe&&!h&&document.addEventListener("click",function(e){if(ye)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ye=!1,!1},!0);var Fe=function(e){if(q){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,o=e.clientY,we.some(function(e){var t=e[B].options.emptyInsertThreshold;if(t&&!D(e)){var n=A(e),r=i>=n.left-t&&i<=n.right+t,s=o>=n.top-t&&o<=n.bottom+t;return r&&s?a=e:void 0}}),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[B]._onDragOver(n)}}var i,o,a},Le=function(e){q&&q.parentNode[B]._isOutsideThisEl(e.target)};function je(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[B]=this;var n,r,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return De(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==je.supportPointer&&"PointerEvent"in window&&(!f||p),emptyInsertThreshold:5};for(var a in U.initializePlugins(this,e,o),o)!(a in t)&&(t[a]=o[a]);for(var l in Ie(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&_e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),we.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(e){if("none"!==T(e,"display")&&e!==je.ghost){r.push({target:e,rect:A(e)});var t=i({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=S(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}})},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var i=!1,o=0;r.forEach(function(e){var n=0,r=e.target,a=r.fromRect,s=A(r),l=r.prevFromRect,u=r.prevToRect,c=e.rect,d=S(r,!0);d&&(s.top-=d.f,s.left-=d.e),r.toRect=s,r.thisAnimationDuration&&F(l,s)&&!F(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(c,l,u,t.options)),F(s,a)||(r.prevFromRect=a,r.prevToRect=s,n||(n=t.options.animation),t.animate(r,c,s,n)),n&&(i=!0,o=Math.max(o,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout(function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null},n),r.thisAnimationDuration=n)}),clearTimeout(n),i?n=setTimeout(function(){"function"==typeof e&&e()},o):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){T(e,"transition",""),T(e,"transform","");var i=S(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,T(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),T(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),T(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){T(e,"transition",""),T(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}))}function Re(e,t,n,r,i,o,a,s){var l,d,f=e[B],p=f.options.onMove;return!window.CustomEvent||u||c?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||A(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),p&&(d=p.call(f,l,a)),d}function $e(e){e.draggable=!1}function Be(){Te=!1}function Ve(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function ze(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}je.prototype={constructor:je,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(he=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(function(e){Se.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Se.push(r)}}(n),!q&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!f||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=w(s,r.draggable,n,!1))&&s.animated||Z===s)){if(te=I(s),re=I(s,r.draggable),"function"==typeof u){if(u.call(this,e,s,this))return H({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),W("filter",t,{evt:e}),void(i&&e.preventDefault())}else if(u&&(u=u.split(",").some(function(r){if(r=w(l,r.trim(),n,!1))return H({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),W("filter",t,{evt:e}),!0})))return void(i&&e.preventDefault());r.handle&&!w(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!q&&n.parentNode===o){var l=A(n);if(G=o,Q=(q=n).parentNode,X=q.nextSibling,Z=n,oe=a.group,je.dragged=q,se={target:q,clientX:(t||e).clientX,clientY:(t||e).clientY},de=se.clientX-l.left,fe=se.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,q.style["will-change"]="all",r=function(){W("delayEnded",i,{evt:e}),je.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!d&&i.nativeDraggable&&(q.draggable=!0),i._triggerDragStart(e,t),H({sortable:i,name:"choose",originalEvent:e}),x(q,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){O(q,e.trim(),$e)}),v(s,"dragover",Fe),v(s,"mousemove",Fe),v(s,"touchmove",Fe),a.supportPointer?(v(s,"pointerup",i._onDrop),!this.nativeDraggable&&v(s,"pointercancel",i._onDrop)):(v(s,"mouseup",i._onDrop),v(s,"touchend",i._onDrop),v(s,"touchcancel",i._onDrop)),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),W("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(c||u))r();else{if(je.eventCanceled)return void this._onDrop();a.supportPointer?(v(s,"pointerup",i._disableDelayedDrag),v(s,"pointercancel",i._disableDelayedDrag)):(v(s,"mouseup",i._disableDelayedDrag),v(s,"touchend",i._disableDelayedDrag),v(s,"touchcancel",i._disableDelayedDrag)),v(s,"mousemove",i._delayedDragTouchMoveHandler),v(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&v(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&$e(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._disableDelayedDrag),g(e,"touchend",this._disableDelayedDrag),g(e,"touchcancel",this._disableDelayedDrag),g(e,"pointerup",this._disableDelayedDrag),g(e,"pointercancel",this._disableDelayedDrag),g(e,"mousemove",this._delayedDragTouchMoveHandler),g(e,"touchmove",this._delayedDragTouchMoveHandler),g(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(q,"dragend",this),v(G,"dragstart",this._onDragStart));try{document.selection?ze(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(be=!1,G&&q){W("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",Le);var n=this.options;!e&&x(q,n.dragClass,!1),x(q,n.ghostClass,!0),je.active=this,e&&this._appendGhost(),H({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(le){this._lastX=le.clientX,this._lastY=le.clientY,Pe();for(var e=document.elementFromPoint(le.clientX,le.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(le.clientX,le.clientY))!==t;)t=e;if(q.parentNode[B]._isOutsideThisEl(e),t)do{if(t[B]&&t[B]._onDragOver({clientX:le.clientX,clientY:le.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=y(t));Me()}},_onTouchMove:function(e){if(se){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=Y&&S(Y,!0),a=Y&&o&&o.a,s=Y&&o&&o.d,l=Ce&&ge&&P(ge),u=(i.clientX-se.clientX+r.x)/(a||1)+(l?l[0]-xe[0]:0)/(a||1),c=(i.clientY-se.clientY+r.y)/(s||1)+(l?l[1]-xe[1]:0)/(s||1);if(!je.active&&!be){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Y){o?(o.e+=u-(ue||0),o.f+=c-(ce||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");T(Y,"webkitTransform",d),T(Y,"mozTransform",d),T(Y,"msTransform",d),T(Y,"transform",d),ue=u,ce=c,le=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Y){var e=this.options.fallbackOnBody?document.body:G,t=A(q,!0,Ce,!0,e),n=this.options;if(Ce){for(ge=e;"static"===T(ge,"position")&&"none"===T(ge,"transform")&&ge!==document;)ge=ge.parentNode;ge!==document.body&&ge!==document.documentElement?(ge===document&&(ge=C()),t.top+=ge.scrollTop,t.left+=ge.scrollLeft):ge=C(),xe=P(ge)}x(Y=q.cloneNode(!0),n.ghostClass,!1),x(Y,n.fallbackClass,!0),x(Y,n.dragClass,!0),T(Y,"transition",""),T(Y,"transform",""),T(Y,"box-sizing","border-box"),T(Y,"margin",0),T(Y,"top",t.top),T(Y,"left",t.left),T(Y,"width",t.width),T(Y,"height",t.height),T(Y,"opacity","0.8"),T(Y,"position",Ce?"absolute":"fixed"),T(Y,"zIndex","100000"),T(Y,"pointerEvents","none"),je.ghost=Y,e.appendChild(Y),T(Y,"transform-origin",de/parseInt(Y.style.width)*100+"% "+fe/parseInt(Y.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;W("dragStart",this,{evt:e}),je.eventCanceled?this._onDrop():(W("setupClone",this),je.eventCanceled||((J=R(q)).removeAttribute("id"),J.draggable=!1,J.style["will-change"]="",this._hideClone(),x(J,this.options.chosenClass,!1),je.clone=J),n.cloneId=ze(function(){W("clone",n),je.eventCanceled||(n.options.removeCloneOnHide||G.insertBefore(J,q),n._hideClone(),H({sortable:n,name:"clone"}))}),!t&&x(q,i.dragClass,!0),t?(ye=!0,n._loopId=setInterval(n._emulateDragOver,50)):(g(document,"mouseup",n._onDrop),g(document,"touchend",n._onDrop),g(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,q)),v(document,"drop",n),T(q,"transform","translateZ(0)")),be=!0,n._dragStartId=ze(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),pe=!0,window.getSelection().removeAllRanges(),f&&T(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,a=this.el,s=e.target,l=this.options,u=l.group,c=je.active,d=oe===u,f=l.sort,p=ae||c,h=this,m=!1;if(!Te){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=w(s,l.draggable,a,!0),V("dragOver"),je.eventCanceled)return m;if(q.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return U(!1);if(ye=!1,c&&!l.disabled&&(d?f||(r=Q!==G):ae===this||(this.lastPutMode=oe.checkPull(this,c,q,e))&&u.checkPut(this,c,q,e))){if(o="vertical"===this._getDirection(e,s),t=A(q),V("dragOverValid"),je.eventCanceled)return m;if(r)return Q=G,z(),this._hideClone(),V("revert"),je.eventCanceled||(X?G.insertBefore(q,X):G.appendChild(q)),U(!0);var v=D(a,l.draggable);if(!v||function(e,t,n){var r=A(D(n.el,n.options.draggable)),i=$(n.el,n.options,Y);return t?e.clientX>i.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,o,this)&&!v.animated){if(v===q)return U(!1);if(v&&a===e.target&&(s=v),s&&(n=A(s)),!1!==Re(G,a,q,t,s,n,e,!!s))return z(),v&&v.nextSibling?a.insertBefore(q,v.nextSibling):a.appendChild(q),Q=a,K(),U(!0)}else if(v&&function(e,t,n){var r=A(N(n.el,0,n.options,!0)),i=$(n.el,n.options,Y);return t?e.clientX<i.left-10||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-10||e.clientY<r.bottom&&e.clientX<r.left}(e,o,this)){var g=N(a,0,l,!0);if(g===q)return U(!1);if(n=A(s=g),!1!==Re(G,a,q,t,s,n,e,!1))return z(),a.insertBefore(q,g),Q=a,K(),U(!0)}else if(s.parentNode===a){n=A(s);var b,y,E,k=q.parentNode!==a,S=!function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2}(q.animated&&q.toRect||t,s.animated&&s.toRect||n,o),O=o?"top":"left",C=_(s,"top","top")||_(q,"top","top"),P=C?C.scrollTop:void 0;if(he!==s&&(y=n[O],Ee=!1,ke=!S&&l.invertSwap||k),b=function(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(s&&ve<u*i){if(!Ee&&(1===me?l>c+u*o/2:l<d-u*o/2)&&(Ee=!0),Ee)f=!0;else if(1===me?l<c+ve:l>d-ve)return-me}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return function(e){return I(q)<I(e)?1:-1}(t);return(f=f||a)&&(l<c+u*o/2||l>d-u*o/2)?l>c+u/2?1:-1:0}(e,s,n,o,S?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,ke,he===s),0!==b){var M=I(q);do{M-=b,E=Q.children[M]}while(E&&("none"===T(E,"display")||E===Y))}if(0===b||E===s)return U(!1);he=s,me=b;var F=s.nextElementSibling,L=!1,R=Re(G,a,q,t,s,n,e,L=1===b);if(!1!==R)return 1!==R&&-1!==R||(L=1===R),Te=!0,setTimeout(Be,30),z(),L&&!F?a.appendChild(q):s.parentNode.insertBefore(q,L?F:s),C&&j(C,0,P-C.scrollTop),Q=q.parentNode,void 0===y||ke||(ve=Math.abs(y-A(s)[O])),K(),U(!0)}if(a.contains(q))return U(!1)}return!1}function V(l,u){W(l,h,i({evt:e,isOwner:d,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:p,target:s,completed:U,onMove:function(n,r){return Re(G,a,q,t,n,A(n),e,r)},changed:K},u))}function z(){V("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function U(t){return V("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(h),h!==p&&(x(q,ae?ae.options.ghostClass:c.options.ghostClass,!1),x(q,l.ghostClass,!0)),ae!==h&&h!==je.active?ae=h:h===je.active&&ae&&(ae=null),p===h&&(h._ignoreWhileAnimating=s),h.animateAll(function(){V("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===q&&!q.animated||s===a&&!s.animated)&&(he=null),l.dragoverBubble||e.rootEl||s===document||(q.parentNode[B]._isOutsideThisEl(e.target),!t&&Fe(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function K(){ne=I(q),ie=I(q,l.draggable),H({sortable:h,name:"change",toEl:a,newIndex:ne,newDraggableIndex:ie,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){g(document,"mousemove",this._onTouchMove),g(document,"touchmove",this._onTouchMove),g(document,"pointermove",this._onTouchMove),g(document,"dragover",Fe),g(document,"mousemove",Fe),g(document,"touchmove",Fe)},_offUpEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._onDrop),g(e,"touchend",this._onDrop),g(e,"pointerup",this._onDrop),g(e,"pointercancel",this._onDrop),g(e,"touchcancel",this._onDrop),g(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ne=I(q),ie=I(q,n.draggable),W("drop",this,{evt:e}),Q=q&&q.parentNode,ne=I(q),ie=I(q,n.draggable),je.eventCanceled||(be=!1,ke=!1,Ee=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ue(this.cloneId),Ue(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&T(document.body,"user-select",""),T(q,"transform",""),e&&(pe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Y&&Y.parentNode&&Y.parentNode.removeChild(Y),(G===Q||ae&&"clone"!==ae.lastPutMode)&&J&&J.parentNode&&J.parentNode.removeChild(J),q&&(this.nativeDraggable&&g(q,"dragend",this),$e(q),q.style["will-change"]="",pe&&!be&&x(q,ae?ae.options.ghostClass:this.options.ghostClass,!1),x(q,this.options.chosenClass,!1),H({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:e}),G!==Q?(ne>=0&&(H({rootEl:Q,name:"add",toEl:Q,fromEl:G,originalEvent:e}),H({sortable:this,name:"remove",toEl:Q,originalEvent:e}),H({rootEl:Q,name:"sort",toEl:Q,fromEl:G,originalEvent:e}),H({sortable:this,name:"sort",toEl:Q,originalEvent:e})),ae&&ae.save()):ne!==te&&ne>=0&&(H({sortable:this,name:"update",toEl:Q,originalEvent:e}),H({sortable:this,name:"sort",toEl:Q,originalEvent:e})),je.active&&(null!=ne&&-1!==ne||(ne=te,ie=re),H({sortable:this,name:"end",toEl:Q,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){W("nulling",this),G=q=Q=Y=X=J=Z=ee=se=le=pe=ne=ie=te=re=he=me=ae=oe=je.dragged=je.ghost=je.clone=je.active=null,Se.forEach(function(e){e.checked=!0}),Se.length=ue=ce=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":q&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)w(e=n[r],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||Ve(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];w(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=U.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Ie(n)},destroy:function(){W("destroy",this);var e=this.el;e[B]=null,g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart),g(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),we.splice(we.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ee){if(W("hideClone",this),je.eventCanceled)return;T(J,"display","none"),this.options.removeCloneOnHide&&J.parentNode&&J.parentNode.removeChild(J),ee=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ee){if(W("showClone",this),je.eventCanceled)return;q.parentNode!=G||this.options.group.revertClone?X?G.insertBefore(J,X):G.appendChild(J):G.insertBefore(J,q),this.options.group.revertClone&&this.animate(q,J),T(J,"display",""),ee=!1}}else this._hideClone()}},Oe&&v(document,"touchmove",function(e){(je.active||be)&&e.cancelable&&e.preventDefault()}),je.utils={on:v,off:g,css:T,find:O,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:L,closest:w,toggleClass:x,clone:R,index:I,nextTick:ze,cancelNextTick:Ue,detectDirection:De,getChild:N,expando:B},je.get=function(e){return e[B]},je.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(je.utils=i(i({},je.utils),e.utils)),U.mount(e)})},je.create=function(e,t){return new je(e,t)},je.version="1.15.6";var Ke,We,He,qe,Qe,Ye,Ge=[],Xe=!1;function Ze(){Ge.forEach(function(e){clearInterval(e.pid)}),Ge=[]}function Je(){clearInterval(Ye)}var et=L(function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=C(),c=!1;We!==n&&(We=n,Ze(),Ke=t.scroll,i=t.scrollFn,!0===Ke&&(Ke=M(n,!0)));var d=0,f=Ke;do{var p=f,h=A(p),m=h.top,v=h.bottom,g=h.left,b=h.right,y=h.width,w=h.height,E=void 0,k=void 0,x=p.scrollWidth,S=p.scrollHeight,O=T(p),_=p.scrollLeft,N=p.scrollTop;p===u?(E=y<x&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),k=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(E=y<x&&("auto"===O.overflowX||"scroll"===O.overflowX),k=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY));var D=E&&(Math.abs(b-o)<=s&&_+y<x)-(Math.abs(g-o)<=s&&!!_),I=k&&(Math.abs(v-a)<=s&&N+w<S)-(Math.abs(m-a)<=s&&!!N);if(!Ge[d])for(var P=0;P<=d;P++)Ge[P]||(Ge[P]={});Ge[d].vx==D&&Ge[d].vy==I&&Ge[d].el===p||(Ge[d].el=p,Ge[d].vx=D,Ge[d].vy=I,clearInterval(Ge[d].pid),0==D&&0==I||(c=!0,Ge[d].pid=setInterval(function(){r&&0===this.layer&&je.active._onTouchMove(Qe);var t=Ge[this.layer].vy?Ge[this.layer].vy*l:0,n=Ge[this.layer].vx?Ge[this.layer].vx*l:0;"function"==typeof i&&"continue"!==i.call(je.dragged.parentNode[B],n,t,e,Qe,Ge[this.layer].el)||j(Ge[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==u&&(f=M(f,!1)));Xe=c}},30),tt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function nt(){}function rt(){}nt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=N(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:tt},s(nt,{pluginName:"revertOnSpill"}),rt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:tt},s(rt,{pluginName:"removeOnSpill"}),je.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):t.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):(g(document,"pointermove",this._handleFallbackAutoScroll),g(document,"touchmove",this._handleFallbackAutoScroll),g(document,"mousemove",this._handleFallbackAutoScroll)),Je(),Ze(),clearTimeout(E),E=void 0},nulling:function(){Qe=We=Ke=Xe=Ye=He=qe=null,Ge.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(Qe=e,t||this.options.forceAutoScrollFallback||c||u||f){et(e,this.options,o,t);var a=M(o,!0);!Xe||Ye&&r===He&&i===qe||(Ye&&Je(),Ye=setInterval(function(){var o=M(document.elementFromPoint(r,i),!0);o!==a&&(a=o,Ze()),et(e,n.options,o,t)},10),He=r,qe=i)}else{if(!this.options.bubbleScroll||M(o,!0)===C())return void Ze();et(e,this.options,M(o,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),je.mount(rt,nt);const it=/^(114|591)$/.test(n.j)?je:null},271:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(8979);function i(e){return(0,r.A)(e).getComputedStyle(e)}},387:(e,t,n)=>{"use strict";n(2427),n(1458),n(3769)},554:(e,t,n)=>{"use strict";t.__esModule=!0,t.nameShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},i(n(2427));var r=i(n(5556));function i(e){return e&&e.__esModule?e:{default:e}}t.nameShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,leave:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterActive:r.default.string,leave:r.default.string,leaveActive:r.default.string,appear:r.default.string,appearActive:r.default.string})])},571:(e,t,n)=>{"use strict";function r(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}n.d(t,{A:()=>r})},598:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},788:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},793:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>a}),/^(114|262|591|61)$/.test(n.j))var r=n(6354);if(/^(114|262|591|61)$/.test(n.j))var i=n(9760);if(/^(114|262|591|61)$/.test(n.j))var o=n(222);function a(e){return(0,r.A)((0,i.A)(e)).left+(0,o.A)(e).scrollLeft}},844:(e,t,n)=>{"use strict";function r(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]})}n.d(t,{A:()=>r})},862:(e,t,n)=>{var r=n(1663);n(4160).CSSTransitionGroup=r,e.exports=r},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1002:(e,t,n)=>{"use strict";function r(e,t){Object.entries(t).forEach(([t,n])=>{e.setAttribute(t,`${n}`)})}n.d(t,{$:()=>r})},1003:e=>{"use strict";function t(e,r,i){return t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return r&&n(o,r.prototype),o},t.apply(null,arguments)}function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}function o(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 a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(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)}}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.constructors={}}var n,l;return n=e,(l=[{key:"register",value:function(e,t){this.constructors[e]=t}},{key:"unpack",value:function(e){var t={};return this.scanForIds(e,t),this.unpackWithRefs(e,t,{})}},{key:"scanForIds",value:function(e,t){var n=this;if(null!==e&&"object"===a(e))if(Array.isArray(e))e.forEach(function(e){return n.scanForIds(e,t)});else{var i=!1;if("_id"in e&&(i=!0,t[e._id]=e),("_type"in e||"_val"in e||"_ref"in e)&&(i=!0),"_list"in e&&(i=!0,e._list.forEach(function(e){return n.scanForIds(e,t)})),"_args"in e&&(i=!0,e._args.forEach(function(e){return n.scanForIds(e,t)})),"_dict"in e){i=!0;for(var o=0,s=Object.entries(e._dict);o<s.length;o++){var l=r(s[o],2),u=(l[0],l[1]);this.scanForIds(u,t)}}if(!i)for(var c=0,d=Object.entries(e);c<d.length;c++){var f=r(d[c],2),p=(f[0],f[1]);this.scanForIds(p,t)}}}},{key:"unpackWithRefs",value:function(e,n,s){var l,u,c=this;if(null===e||"object"!==a(e))return e;if(Array.isArray(e))return e.map(function(e){return c.unpackWithRefs(e,n,s)});if("_ref"in e)l=e._ref in s?s[e._ref]:this.unpackWithRefs(n[e._ref],n,s);else if("_val"in e)l=e._val;else if("_list"in e)l=e._list.map(function(e){return c.unpackWithRefs(e,n,s)});else if("_dict"in e){l={};for(var d=0,f=Object.entries(e._dict);d<f.length;d++){var p=r(f[d],2),h=p[0],m=p[1];l[h]=this.unpackWithRefs(m,n,s)}}else{if(!("_type"in e)){if("_id"in e)throw new Error("telepath encountered object with _id but no type specified");l={};for(var v=0,g=Object.entries(e);v<g.length;v++){var b=r(g[v],2),y=b[0],w=b[1];l[y]=this.unpackWithRefs(w,n,s)}return l}var E=e._type,k=this.constructors[E];if("function"!=typeof k)throw new Error("telepath encountered unknown object type ".concat(E));l=t(k,function(e){if(Array.isArray(e))return o(e)}(u=e._args.map(function(e){return c.unpackWithRefs(e,n,s)}))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(u)||i(u)||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.")}())}return"_id"in e&&(s[e._id]=l),l}}])&&s(n.prototype,l),e}();e.exports=l},1007:(e,t,n)=>{"use strict";function r(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}n.d(t,{A:()=>r})},1206:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>o}),/^(114|262|591|61)$/.test(n.j))var r=n(4278);function i(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function o(e){var t=i(e);return r.GM.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}},1238:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2427);const i=/^(114|125|262|445|591|61)$/.test(n.j)?({children:e,className:t,name:n,title:i,...o})=>r.createElement(r.Fragment,null,r.createElement("svg",{...o,className:["icon",`icon-${n}`,t||""].filter(Boolean).join(" "),"aria-hidden":"true"},e||r.createElement("use",{href:`#icon-${n}`})),i&&r.createElement("span",{className:"w-sr-only"},i)):null},1245:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});const r=(0,n(8667).s)((e,{preventScroll:t=!1}={})=>{if(!e.hasAttribute("tabindex")){const t=()=>{e.removeAttribute("tabindex"),e.removeEventListener("blur",t),e.removeEventListener("focusout",t)};e.setAttribute("tabindex","-1"),e.addEventListener("blur",t),e.addEventListener("focusout",t)}t||e.scrollIntoView({behavior:"smooth",block:"center"}),e.focus({preventScroll:t})},50)},1319:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(8609),i=n.n(r);const o={id:"wagtailPreview",run(e,t,n,r){const o=document.getElementById("w-preview-iframe");if(o)i().utils.sendCommandToFrame(o,{command:"run-wagtailPreview",parameter:e,action:t,options:n},e=>{r(e)});else{const i=this._registry[e];i?.[t].call(i,n,r)}},commands:[{id:"run-wagtailPreview",callback:(e,t)=>i().plugins.wagtailPreview.run(e.parameter,e.action,e.options,t)}]}},1458:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(2427),i=n.n(r),o=/^(262|61)$/.test(n.j)?i().createContext(null):null},1504:(e,t,n)=>{"use strict";if(n.d(t,{Ay:()=>y}),/^(262|61)$/.test(n.j))var r=n(7381);var i=n(2427),o=n.n(i),a=n(6931);function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var l="undefined"!=typeof window&&"undefined"!=typeof document;function u(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function c(){return l&&document.createElement("div")}function d(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!d(e[n],t[n]))return!1}return!0}return!1}function f(e){var t=[];return e.forEach(function(e){t.find(function(t){return d(e,t)})||t.push(e)}),t}var p=/^(262|61)$/.test(n.j)?l?i.useLayoutEffect:i.useEffect:null;function h(e,t,n){n.split(/\s+/).forEach(function(n){n&&e.classList[t](n)})}var m={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||h(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&h(t,"remove",e.props.className)},onAfterUpdate:r}}};function v(e){return function(t){var n,r,l=t.children,d=t.content,h=t.visible,v=t.singleton,g=t.render,b=t.reference,y=t.disabled,w=void 0!==y&&y,E=t.ignoreAttributes,k=void 0===E||E,x=(t.__source,t.__self,s(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),T=void 0!==h,S=void 0!==v,O=(0,i.useState)(!1),C=O[0],A=O[1],_=(0,i.useState)({}),N=_[0],D=_[1],I=(0,i.useState)(),P=I[0],M=I[1],F=(n=function(){return{container:c(),renders:1}},(r=(0,i.useRef)()).current||(r.current="function"==typeof n?n():n),r.current),L=Object.assign({ignoreAttributes:k},x,{content:F.container});T&&(L.trigger="manual",L.hideOnClick=!1),S&&(w=!0);var j=L,R=L.plugins||[];g&&(j=Object.assign({},L,{plugins:S&&null!=v.data?[].concat(R,[{fn:function(){return{onTrigger:function(e,t){var n=v.data.children.find(function(e){return e.instance.reference===t.currentTarget});e.state.$$activeSingletonInstance=n.instance,M(n.content)}}}}]):R,render:function(){return{popper:F.container}}}));var $=[b].concat(l?[l.type]:[]);return p(function(){var t=b;b&&b.hasOwnProperty("current")&&(t=b.current);var n=e(t||F.ref||c(),Object.assign({},j,{plugins:[m].concat(L.plugins||[])}));return F.instance=n,w&&n.disable(),h&&n.show(),S&&v.hook({instance:n,content:d,props:j,setSingletonContent:M}),A(!0),function(){n.destroy(),null==v||v.cleanup(n)}},$),p(function(){var e,t,n,r,i;if(1!==F.renders){var o=F.instance;o.setProps((t=o.props,n=j,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:f([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(i=n.popperOptions)?void 0:i.modifiers)||[]))})}))),null==(e=o.popperInstance)||e.forceUpdate(),w?o.disable():o.enable(),T&&(h?o.show():o.hide()),S&&v.hook({instance:o,content:d,props:j,setSingletonContent:M})}else F.renders++}),p(function(){var e;if(g){var t=F.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter(function(e){return"$$tippyReact"!==e.name}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;N.placement===n.placement&&N.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&N.escaped===(null==r?void 0:r.hasPopperEscaped)||D({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}},[N.placement,N.referenceHidden,N.escaped].concat($)),o().createElement(o().Fragment,null,l?(0,i.cloneElement)(l,{ref:function(e){F.ref=e,u(l.ref,e)}}):null,C&&(0,a.createPortal)(g?g(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(N),P,F.instance):d,F.container))}}var g,b=/^(262|61)$/.test(n.j)?(g=v(r.Ay),(0,i.forwardRef)(function(e,t){var n=e.children,r=s(e,["children"]);return o().createElement(g,Object.assign({},undefined,r),n?(0,i.cloneElement)(n,{ref:function(e){u(t,e),u(n.ref,e)}}):null)})):null;const y=/^(262|61)$/.test(n.j)?b:null},1663:(e,t,n)=>{"use strict";t.__esModule=!0;var 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},i=u(n(2427)),o=u(n(5556)),a=u(n(2312)),s=u(n(7241)),l=n(554);function u(e){return e&&e.__esModule?e:{default:e}}function c(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.nameShape.isRequired,o.default.bool,o.default.bool,o.default.bool,(0,l.transitionTimeout)("Appear"),(0,l.transitionTimeout)("Enter"),(0,l.transitionTimeout)("Leave");var d=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=c(this,e.call.apply(e,[this].concat(a))),r._wrapChild=function(e){return i.default.createElement(s.default,{name:r.props.transitionName,appear:r.props.transitionAppear,enter:r.props.transitionEnter,leave:r.props.transitionLeave,appearTimeout:r.props.transitionAppearTimeout,enterTimeout:r.props.transitionEnterTimeout,leaveTimeout:r.props.transitionLeaveTimeout},e)},c(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.render=function(){return i.default.createElement(a.default,r({},this.props,{childFactory:this._wrapChild}))},t}(i.default.Component);d.displayName="CSSTransitionGroup",d.propTypes={},d.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.default=d,e.exports=t.default},1688:(e,t,n)=>{var r=n(4708);n(4160).FocusTrapReact=r,e.exports=r},1815:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>s}),/^(114|262|591|61)$/.test(n.j))var r=n(2632);if(/^(114|262|591|61)$/.test(n.j))var i=n(8101);if(/^(114|262|591|61)$/.test(n.j))var o=n(9703);if(/^(114|262|591|61)$/.test(n.j))var a=n(4278);function s(e){var t,n=e.reference,s=e.element,l=e.placement,u=l?(0,r.A)(l):null,c=l?(0,i.A)(l):null,d=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2;switch(u){case a.Mn:t={x:d,y:n.y-s.height};break;case a.sQ:t={x:d,y:n.y+n.height};break;case a.pG:t={x:n.x+n.width,y:f};break;case a.kb:t={x:n.x-s.width,y:f};break;default:t={x:n.x,y:n.y}}var p=u?(0,o.A)(u):null;if(null!=p){var h="y"===p?"height":"width";switch(c){case a.ni:t[p]=t[p]-(n[h]/2-s[h]/2);break;case a._N:t[p]=t[p]+(n[h]/2-s[h]/2)}}return t}},1833:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},2063:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(7604);function i(e){return["table","td","th"].indexOf((0,r.A)(e))>=0}},2083:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>a}),/^(114|262|591|61)$/.test(n.j))var r=n(7604);if(/^(114|262|591|61)$/.test(n.j))var i=n(9760);if(/^(114|262|591|61)$/.test(n.j))var o=n(5581);function a(e){return"html"===(0,r.A)(e)?e:e.assignedSlot||e.parentNode||((0,o.Ng)(e)?e.host:null)||(0,i.A)(e)}},2178:(e,t,n)=>{"use strict";n.d(t,{$R:()=>s,ZG:()=>d,ip:()=>u,lc:()=>c});var r=n(8609),i=n.n(r);const o=e=>Array.isArray(e)?e.join(" "):e,a=(e,t)=>{if(!e||!t)return 0;const n=document.querySelector(o(e.target[0])),r=document.querySelector(o(t.target[0]));return n&&r?n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1:0},s=e=>{const t=e?.querySelector("#accessibility-axe-configuration");if(!t||!t.textContent)return null;try{return JSON.parse(t.textContent)}catch(e){console.error("Error loading Axe config"),console.error(e)}return null},l={"check-image-alt-text":(e,t)=>{const n=new RegExp(t.pattern,"i"),r=e.getAttribute("alt")||"";return!n.test(r)}},u=e=>{const t=e?.checks?.map(e=>l[e.id]?{...e,evaluate:l[e.id]}:e);return{...e,checks:t}},c=async e=>{const t=await i().run(e.context,e.options),n=t.violations.reduce((e,t)=>e+t.nodes.length,0);return n>0&&console.error("axe.run results",t.violations),{results:t,a11yErrorsNumber:n}},d=(e,t,n,r,i)=>{if(e.innerHTML="",t.violations.length){const s=t.violations.sort((e,t)=>{const n=e.nodes.sort(a)[0],r=t.nodes.sort(a)[0];return a(n,r)});let l=0;s.forEach(t=>{t.nodes.forEach(a=>{e.appendChild(r.content.cloneNode(!0));const s=e.querySelectorAll("[data-a11y-result-row]")[l];l+=1;const u=s.querySelector("[data-a11y-result-name]"),c=s.querySelector("[data-a11y-result-help]");u.id=`w-a11y-result__name-${l}`;const d=n.messages[t.id],f=("string"==typeof d?d:d?.error_name)||t.help;u.textContent=f,c.textContent=d?.help_text||t.description;const p="#w-preview-iframe"===a.target[0],h=o(a.target.filter(e=>"#w-preview-iframe"!==e)),m=s.querySelector("[data-a11y-result-selector]");m.setAttribute("aria-describedby",u.id),m.addEventListener("click",i.bind(null,h)),p&&(m.querySelector("[data-a11y-result-selector-text]").textContent=h.replace(/\[data-block-key="\w{5}"\]/,""))})})}}},2223:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(2891),i=n(6032);class o extends r.Controller{static values={keep:{default:!1,type:Boolean},reset:{default:!1,type:Boolean},target:{default:"",type:String}};connect(){this.append()}append(){const e=this.target;let t=!1;const n=()=>{t||(this.resetValue&&(e.innerHTML=""),e.append(...this.templateFragment.childNodes),this.dispatch("appended",{cancelable:!1,detail:{target:e}}),t=!0,this.keepValue||this.element.remove())};this.dispatch("append",{cancelable:!0,detail:{complete:n,target:e}}).defaultPrevented||n()}get target(){let e;const t=this.element.getRootNode();if(e=this.targetValue?t.querySelector(this.targetValue)||document.querySelector(this.targetValue):t instanceof Document?t.body:t.firstElementChild,!(e instanceof Element))throw new Error(`No valid target container found at ${this.targetValue?`'${this.targetValue}'`:"the root node"}.`);return e}get templateFragment(){const e=this.element.content.cloneNode(!0);return(0,i.v)(e),e}}},2277:(e,t,n)=>{"use strict";function r(e){return"message"===e.type&&e?.data?.wagtail?e.data.wagtail:null}n.d(t,{j:()=>r})},2312:(e,t,n)=>{"use strict";t.__esModule=!0;var 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},i=l(n(5533)),o=l(n(2427)),a=l(n(5556)),s=(l(n(8610)),n(2958));function l(e){return e&&e.__esModule?e:{default:e}}a.default.any,a.default.func,a.default.node;var u=function(e){function t(n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=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}(this,e.call(this,n,i));return o.performAppear=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillAppear?t.componentWillAppear(o._handleDoneAppearing.bind(o,e,t)):o._handleDoneAppearing(e,t)},o._handleDoneAppearing=function(e,t){t.componentDidAppear&&t.componentDidAppear(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performEnter=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillEnter?t.componentWillEnter(o._handleDoneEntering.bind(o,e,t)):o._handleDoneEntering(e,t)},o._handleDoneEntering=function(e,t){t.componentDidEnter&&t.componentDidEnter(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)||o.performLeave(e,t)},o.performLeave=function(e,t){o.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(o._handleDoneLeaving.bind(o,e,t)):o._handleDoneLeaving(e,t)},o._handleDoneLeaving=function(e,t){t.componentDidLeave&&t.componentDidLeave(),delete o.currentlyTransitioningKeys[e];var n=(0,s.getChildMapping)(o.props.children);n&&n.hasOwnProperty(e)?o.keysToEnter.push(e):o.setState(function(t){var n=r({},t.children);return delete n[e],{children:n}})},o.childRefs=Object.create(null),o.state={children:(0,s.getChildMapping)(n.children)},o}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.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t,this.childRefs[t])},t.prototype.componentWillReceiveProps=function(e){var t=(0,s.getChildMapping)(e.children),n=this.state.children;for(var r in this.setState({children:(0,s.mergeChildMappings)(n,t)}),t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(var o in n){var a=t&&t.hasOwnProperty(o);!n[o]||a||this.currentlyTransitioningKeys[o]||this.keysToLeave.push(o)}},t.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter;this.keysToEnter=[],t.forEach(function(t){return e.performEnter(t,e.childRefs[t])});var n=this.keysToLeave;this.keysToLeave=[],n.forEach(function(t){return e.performLeave(t,e.childRefs[t])})},t.prototype.render=function(){var e=this,t=[],n=function(n){var r=e.state.children[n];if(r){var a="string"!=typeof r.ref,s=e.props.childFactory(r),l=function(t){e.childRefs[n]=t};s===r&&a&&(l=(0,i.default)(r.ref,l)),t.push(o.default.cloneElement(s,{key:n,ref:l}))}};for(var a in this.state.children)n(a);var s=r({},this.props);return delete s.transitionLeave,delete s.transitionName,delete s.transitionAppear,delete s.transitionEnter,delete s.childFactory,delete s.transitionLeaveTimeout,delete s.transitionEnterTimeout,delete s.transitionAppearTimeout,delete s.component,o.default.createElement(this.props.component,s,t)},t}(o.default.Component);u.displayName="TransitionGroup",u.propTypes={},u.defaultProps={component:"span",childFactory:function(e){return e}},t.default=u,e.exports=t.default},2321:(e,t,n)=>{"use strict";n.d(t,{Bp:()=>Se});var r=n(8587),i=n(8168),o=n(5556),a=n.n(o),s=n(2427),l=n.n(s);n(4363);const u=e=>"object"==typeof e&&null!=e&&1===e.nodeType,c=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,d=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return c(n.overflowY,t)||c(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},f=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,p=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var m=0;function v(){}function g(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function b(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout(function(){n=null,e.apply(void 0,o)},t)}return i.cancel=r,i}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function E(e,t){return e&&t?Object.keys(e).reduce(function(n,r){return n[r]=k(t,r)?t[r]:e[r],n},{}):e}function k(e,t){return void 0!==e[t]}function x(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(0===o)return-1;var a=o-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=i?a:0:s>a&&(s=i?0:a);var l=T(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function T(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var s=e;s<o;s++)if(!r(n[s],s))return s;return i?T(t?o-1:0,t,n,r):-1}function S(e,t,n,r){return void 0===r&&(r=!0),n&&t.some(function(t){return t&&(g(t,e,n)||r&&g(t,n.document.activeElement,n))})}var O=b(function(e){C(e).textContent=""},500);function C(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var A={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var _=b(function(e,t){!function(e,t){e&&t&&(C(t).textContent=e,O(t))}(e,t)},200),N="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect,D="useId"in l()?function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,o=e.toggleButtonId,a=e.inputId,u="downshift-"+l().useId();return t||(t=u),(0,s.useRef)({labelId:n||t+"-label",menuId:r||t+"-menu",getItemId:i||function(e){return t+"-item-"+e},toggleButtonId:o||t+"-toggle-button",inputId:a||t+"-input"}).current}:function(e){var t=e.id,n=void 0===t?"downshift-"+String(m++):t,r=e.labelId,i=e.menuId,o=e.getItemId,a=e.toggleButtonId,l=e.inputId;return(0,s.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:o||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:l||n+"-input"}).current};function I(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function P(e){var t=(0,s.useRef)(e);return t.current=e,t}function M(e,t,n,r){var o=(0,s.useRef)(),a=(0,s.useRef)(),l=(0,s.useCallback)(function(t,n){a.current=n,t=E(t,n.props);var r=e(t,n);return n.props.stateReducer(t,(0,i.A)({},n,{changes:r}))},[e]),u=(0,s.useReducer)(l,t,n),c=u[0],d=u[1],f=P(t),p=(0,s.useCallback)(function(e){return d((0,i.A)({props:f.current},e))},[f]),h=a.current;return(0,s.useEffect)(function(){var e=E(o.current,null==h?void 0:h.props);h&&o.current&&!r(e,c)&&function(e,t,n){var r=e.props,o=e.type,a={};Object.keys(t).forEach(function(r){!function(e,t,n,r){var o=t.props,a=t.type,s="on"+I(e)+"Change";o[s]&&void 0!==r[e]&&r[e]!==n[e]&&o[s]((0,i.A)({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange((0,i.A)({type:o},a))}(h,e,c),o.current=c},[c,h,r]),[c,p]}var F={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){if(e){var n=((e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:h}=t,m="function"==typeof c?c:e=>e!==c;if(!u(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,g=[];let b=e;for(;u(b)&&m(b);){if(b=p(b),b===v){g.push(b);break}null!=b&&b===document.body&&d(b)&&!d(document.documentElement)||null!=b&&d(b,h)&&g.push(b)}const y=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,w=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:E,scrollY:k}=window,{height:x,width:T,top:S,right:O,bottom:C,left:A}=e.getBoundingClientRect(),{top:_,right:N,bottom:D,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let P="start"===s||"nearest"===s?S-_:"end"===s?C+D:S+x/2-_+D,M="center"===l?A+T/2-I+N:"end"===l?O+N:A-I;const F=[];for(let e=0;e<g.length;e++){const t=g[e],{height:n,width:r,top:i,right:o,bottom:u,left:c}=t.getBoundingClientRect();if("if-needed"===a&&S>=0&&A>=0&&C<=w&&O<=y&&(t===v&&!d(t)||S>=i&&C<=u&&A>=c&&O<=o))return F;const p=getComputedStyle(t),h=parseInt(p.borderLeftWidth,10),m=parseInt(p.borderTopWidth,10),b=parseInt(p.borderRightWidth,10),_=parseInt(p.borderBottomWidth,10);let N=0,D=0;const I="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-b:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-_:0,j="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(v===t)N="start"===s?P:"end"===s?P-w:"nearest"===s?f(k,k+w,w,m,_,k+P,k+P+x,x):P-w/2,D="start"===l?M:"center"===l?M-y/2:"end"===l?M-y:f(E,E+y,y,h,b,E+M,E+M+T,T),N=Math.max(0,N+k),D=Math.max(0,D+E);else{N="start"===s?P-i-m:"end"===s?P-u+_+L:"nearest"===s?f(i,u,n,m,_+L,P,P+x,x):P-(i+n/2)+L/2,D="start"===l?M-c-h:"center"===l?M-(c+r/2)+I/2:"end"===l?M-o+b+I:f(c,o,r,h,b+I,M,M+T,T);const{scrollLeft:e,scrollTop:a}=t;N=0===R?0:Math.max(0,Math.min(a+N/R,t.scrollHeight-n/R+L)),D=0===j?0:Math.max(0,Math.min(e+D/j,t.scrollWidth-r/j+I)),P+=a-N,M+=e-D}F.push({el:t,top:N,left:D})}return F})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})}},environment:"undefined"==typeof window?void 0:window};function L(e,t,n){void 0===n&&(n=A);var r=e["default"+I(t)];return void 0!==r?r:n[t]}function j(e,t,n){void 0===n&&(n=A);var r=e[t];if(void 0!==r)return r;var i=e["initial"+I(t)];return void 0!==i?i:L(e,t,n)}function R(e,t,n){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,a=e.isItemDisabled,s=e.itemToKey,l=t.selectedItem,u=t.highlightedIndex;return 0===r.length?-1:void 0===i||u!==i||a(r[i],i)?void 0===o||a(r[o],o)?l?r.findIndex(function(e){return s(l)===s(e)}):n<0&&!a(r[r.length-1],r.length-1)?r.length-1:n>0&&!a(r[0],0)?0:-1:o:i}var $=function(){return v};var B=v;function V(e,t,n){var r;void 0===n&&(n=!0);var o=(null==(r=e.items)?void 0:r.length)&&t>=0;return(0,i.A)({isOpen:!1,highlightedIndex:-1},o&&(0,i.A)({selectedItem:e.items[t],isOpen:L(e,"isOpen"),highlightedIndex:L(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function z(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function U(){var e=l().useRef(!0);return l().useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function K(e){var t=L(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var W={environment:a().shape({addEventListener:a().func.isRequired,removeEventListener:a().func.isRequired,document:a().shape({createElement:a().func.isRequired,getElementById:a().func.isRequired,activeElement:a().any.isRequired,body:a().any.isRequired}).isRequired,Node:a().func.isRequired}),itemToString:a().func,itemToKey:a().func,stateReducer:a().func},H=(0,i.A)({},W,{getA11yStatusMessage:a().func,highlightedIndex:a().number,defaultHighlightedIndex:a().number,initialHighlightedIndex:a().number,isOpen:a().bool,defaultIsOpen:a().bool,initialIsOpen:a().bool,selectedItem:a().any,initialSelectedItem:a().any,defaultSelectedItem:a().any,id:a().string,labelId:a().string,menuId:a().string,getItemId:a().func,toggleButtonId:a().string,onSelectedItemChange:a().func,onHighlightedIndexChange:a().func,onStateChange:a().func,onIsOpenChange:a().func,scrollIntoView:a().func});h(h({},H),{items:a().array.isRequired,isItemDisabled:a().func}),h(h({},F),{isItemDisabled:function(){return!1}});var q=0,Q=1,Y=2,G=3,X=4,Z=5,J=6,ee=7,te=8,ne=9,re=10,ie=11,oe=12,ae=13,se=14,le=15,ue=16,ce=17,de=18,fe=19,pe=20,he=21,me=22,ve=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:me,FunctionCloseMenu:ce,FunctionOpenMenu:ue,FunctionReset:he,FunctionSelectItem:fe,FunctionSetHighlightedIndex:de,FunctionSetInputValue:pe,FunctionToggleMenu:le,InputBlur:ne,InputChange:te,InputClick:re,InputKeyDownArrowDown:q,InputKeyDownArrowUp:Q,InputKeyDownEnd:X,InputKeyDownEnter:ee,InputKeyDownEscape:Y,InputKeyDownHome:G,InputKeyDownPageDown:J,InputKeyDownPageUp:Z,ItemClick:ae,ItemMouseMove:oe,MenuMouseLeave:ie,ToggleButtonClick:se});function ge(e){var t=function(e){var t=j(e,"selectedItem"),n=j(e,"isOpen"),r=function(e){var t=j(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=j(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex(function(n){return e.itemToKey(n)===e.itemToKey(t)}):r,isOpen:n,selectedItem:t,inputValue:i}}(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),(0,i.A)({},t,{inputValue:r})}(0,i.A)({},H,{items:a().array.isRequired,isItemDisabled:a().func,inputValue:a().string,defaultInputValue:a().string,initialInputValue:a().string,inputId:a().string,onInputValueChange:a().func});var be=v,ye=(0,i.A)({},F,{isItemDisabled:function(){return!1}});function we(e,t){var n,r,o=t.type,a=t.props,s=t.altKey;switch(o){case ae:r={isOpen:L(a,"isOpen"),highlightedIndex:K(a),selectedItem:a.items[t.index],inputValue:a.itemToString(a.items[t.index])};break;case q:r=e.isOpen?{highlightedIndex:x(e.highlightedIndex,1,a.items,a.isItemDisabled,!0)}:{highlightedIndex:s&&null==e.selectedItem?-1:R(a,e,1),isOpen:a.items.length>=0};break;case Q:r=e.isOpen?s?V(a,e.highlightedIndex):{highlightedIndex:x(e.highlightedIndex,-1,a.items,a.isItemDisabled,!0)}:{highlightedIndex:R(a,e,-1),isOpen:a.items.length>=0};break;case ee:r=V(a,e.highlightedIndex);break;case Y:r=(0,i.A)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Z:r={highlightedIndex:x(e.highlightedIndex,-10,a.items,a.isItemDisabled,!0)};break;case J:r={highlightedIndex:x(e.highlightedIndex,10,a.items,a.isItemDisabled,!0)};break;case G:r={highlightedIndex:T(0,!1,a.items,a.isItemDisabled)};break;case X:r={highlightedIndex:T(a.items.length-1,!0,a.items,a.isItemDisabled)};break;case ne:r=(0,i.A)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=a.items)?void 0:n.length)&&t.selectItem&&{selectedItem:a.items[e.highlightedIndex],inputValue:a.itemToString(a.items[e.highlightedIndex])});break;case te:r={isOpen:!0,highlightedIndex:K(a),inputValue:t.inputValue};break;case re:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:R(a,e,0)};break;case fe:r={selectedItem:t.selectedItem,inputValue:a.itemToString(t.selectedItem)};break;case me:r={inputValue:t.inputValue};break;default:return function(e,t,n){var r,o=t.type,a=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:R(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:R(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:a.isItemDisabled(a.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:K(a),isOpen:L(a,"isOpen"),selectedItem:L(a,"selectedItem"),inputValue:L(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return(0,i.A)({},e,r)}(e,t,ve)}return(0,i.A)({},e,r)}var Ee=["onMouseLeave","refKey","ref"],ke=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],xe=["onClick","onPress","refKey","ref"],Te=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function Se(e){void 0===e&&(e={}),be(e,Se);var t=(0,i.A)({},ye,e),n=t.items,o=t.scrollIntoView,a=t.environment,l=t.getA11yStatusMessage,u=function(e,t,n,r){var i=(0,s.useRef)(),o=M(e,t,n,r),a=o[0],l=o[1],u=U();return(0,s.useEffect)(function(){k(t,"selectedItem")&&(u||t.itemToKey(t.selectedItem)!==t.itemToKey(i.current)&&l({type:me,inputValue:t.itemToString(t.selectedItem)}),i.current=a.selectedItem===i.current?t.selectedItem:a.selectedItem)},[a.selectedItem,t.selectedItem]),[E(a,t),l]}(we,t,ge,z),c=u[0],d=u[1],f=c.isOpen,p=c.highlightedIndex,h=c.selectedItem,m=c.inputValue,g=(0,s.useRef)(null),b=(0,s.useRef)({}),x=(0,s.useRef)(null),T=(0,s.useRef)(null),O=U(),C=D(t),A=(0,s.useRef)(),I=P({state:c,props:t}),F=(0,s.useCallback)(function(e){return b.current[C.getItemId(e)]},[C]);!function(e,t,n,r){void 0===r&&(r={});var i=r.document,o=U();(0,s.useEffect)(function(){if(e&&!o&&i){var n=e(t);_(n,i)}},n),(0,s.useEffect)(function(){return function(){var e,t;_.cancel(),(t=null==(e=i)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}},[i])}(l,c,[f,p,h,m],a);var L=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,o=e.menuElement,a=e.scrollIntoView,l=(0,s.useRef)(!0);return N(function(){t<0||!n||!Object.keys(r.current).length||(!1===l.current?l.current=!0:a(i(t),o))},[t]),l}({menuElement:g.current,highlightedIndex:p,isOpen:f,itemRefs:b,scrollIntoView:o,getItemNodeFromIndex:F});B({props:t,state:c}),(0,s.useEffect)(function(){j(t,"isOpen")&&x.current&&x.current.focus()},[]),(0,s.useEffect)(function(){O||(A.current=n.length)});var R=function(e,t,n){var r=(0,s.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,s.useEffect)(function(){if(!e)return v;var i=n.map(function(e){return e.current});function o(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function a(n){r.current.isMouseDown=!1,S(n.target,i,e)||t()}function s(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function l(){r.current.isTouchMove=!0}function u(n){r.current.isTouchEnd=!0,r.current.isTouchMove||S(n.target,i,e,!1)||t()}return e.addEventListener("mousedown",o),e.addEventListener("mouseup",a),e.addEventListener("touchstart",s),e.addEventListener("touchmove",l),e.addEventListener("touchend",u),function(){e.removeEventListener("mousedown",o),e.removeEventListener("mouseup",a),e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",l),e.removeEventListener("touchend",u)}},[n,e,t]),r.current}(a,(0,s.useCallback)(function(){I.current.state.isOpen&&d({type:ne,selectItem:!1})},[d,I]),(0,s.useMemo)(function(){return[g,T,x]},[g.current,T.current,x.current])),V=$("getInputProps","getMenuProps");(0,s.useEffect)(function(){f||(b.current={})},[f]),(0,s.useEffect)(function(){var e;f&&null!=a&&a.document&&null!=x&&null!=(e=x.current)&&e.focus&&a.document.activeElement!==x.current&&x.current.focus()},[f,a]);var K=(0,s.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),d({type:q,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),d({type:Q,altKey:e.altKey})},Home:function(e){I.current.state.isOpen&&(e.preventDefault(),d({type:G}))},End:function(e){I.current.state.isOpen&&(e.preventDefault(),d({type:X}))},Escape:function(e){var t=I.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),d({type:Y}))},Enter:function(e){I.current.state.isOpen&&229!==e.which&&(e.preventDefault(),d({type:ee}))},PageUp:function(e){I.current.state.isOpen&&(e.preventDefault(),d({type:Z}))},PageDown:function(e){I.current.state.isOpen&&(e.preventDefault(),d({type:J}))}}},[d,I]),W=(0,s.useCallback)(function(e){return(0,i.A)({id:C.labelId,htmlFor:C.inputId},e)},[C]),H=(0,s.useCallback)(function(e,t){var n,o=void 0===e?{}:e,a=o.onMouseLeave,s=o.refKey,l=void 0===s?"ref":s,u=o.ref,c=(0,r.A)(o,Ee),f=(void 0===t?{}:t).suppressRefError;return V("getMenuProps",void 0!==f&&f,l,g),(0,i.A)(((n={})[l]=w(u,function(e){g.current=e}),n.id=C.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+C.labelId,n.onMouseLeave=y(a,function(){d({type:ie})}),n),c)},[d,V,C]),ve=(0,s.useCallback)(function(e){var t,n,o=void 0===e?{}:e,a=o.item,s=o.index,l=o.refKey,u=void 0===l?"ref":l,c=o.ref,f=o.onMouseMove,p=o.onMouseDown,h=o.onClick;o.onPress;var m=o.disabled,v=(0,r.A)(o,ke);void 0!==m&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var g=I.current,E=g.props,k=g.state,x=function(e,t,n,r){var i,o;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],o=t}else o=void 0===t?n.indexOf(e):t,i=e;return[i,o]}(a,s,E.items,"Pass either item or index to getItemProps!"),T=x[0],S=x[1],O=E.isItemDisabled(T,S),A=h;return(0,i.A)(((t={})[u]=w(c,function(e){e&&(b.current[C.getItemId(S)]=e)}),t["aria-disabled"]=O,t["aria-selected"]=S===k.highlightedIndex,t.id=C.getItemId(S),t.role="option",t),!O&&((n={}).onClick=y(A,function(){d({type:ae,index:S})}),n),{onMouseMove:y(f,function(){R.isTouchEnd||S===k.highlightedIndex||(L.current=!1,d({type:oe,index:S,disabled:O}))}),onMouseDown:y(p,function(e){return e.preventDefault()})},v)},[d,C,I,R,L]),Oe=(0,s.useCallback)(function(e){var t,n=void 0===e?{}:e,o=n.onClick;n.onPress;var a=n.refKey,s=void 0===a?"ref":a,l=n.ref,u=(0,r.A)(n,xe),c=I.current.state;return(0,i.A)(((t={})[s]=w(l,function(e){T.current=e}),t["aria-controls"]=C.menuId,t["aria-expanded"]=c.isOpen,t.id=C.toggleButtonId,t.tabIndex=-1,t),!u.disabled&&(0,i.A)({},{onClick:y(o,function(){d({type:se})})}),u)},[d,I,C]),Ce=(0,s.useCallback)(function(e,t){var n,o=void 0===e?{}:e,s=o.onKeyDown,l=o.onChange,u=o.onInput,c=o.onBlur;o.onChangeText;var f=o.onClick,p=o.refKey,h=void 0===p?"ref":p,m=o.ref,v=(0,r.A)(o,Te),g=(void 0===t?{}:t).suppressRefError;V("getInputProps",void 0!==g&&g,h,x);var b,E=I.current.state,k={};return v.disabled||((b={}).onChange=y(l,u,function(e){d({type:te,inputValue:e.target.value})}),b.onKeyDown=y(s,function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&K[t]&&K[t](e)}),b.onBlur=y(c,function(e){if(null!=a&&a.document&&E.isOpen&&!R.isMouseDown){var t=null===e.relatedTarget&&a.document.activeElement!==a.document.body;d({type:ne,selectItem:!t})}}),b.onClick=y(f,function(){d({type:re})}),k=b),(0,i.A)(((n={})[h]=w(m,function(e){x.current=e}),n["aria-activedescendant"]=E.isOpen&&E.highlightedIndex>-1?C.getItemId(E.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=C.menuId,n["aria-expanded"]=E.isOpen,n["aria-labelledby"]=v&&v["aria-label"]?void 0:C.labelId,n.autoComplete="off",n.id=C.inputId,n.role="combobox",n.value=E.inputValue,n),k,v)},[d,C,a,K,I,R,V]),Ae=(0,s.useCallback)(function(){d({type:le})},[d]),_e=(0,s.useCallback)(function(){d({type:ce})},[d]),Ne=(0,s.useCallback)(function(){d({type:ue})},[d]),De=(0,s.useCallback)(function(e){d({type:de,highlightedIndex:e})},[d]),Ie=(0,s.useCallback)(function(e){d({type:fe,selectedItem:e})},[d]);return{getItemProps:ve,getLabelProps:W,getMenuProps:H,getInputProps:Ce,getToggleButtonProps:Oe,toggleMenu:Ae,openMenu:Ne,closeMenu:_e,setHighlightedIndex:De,setInputValue:(0,s.useCallback)(function(e){d({type:pe,inputValue:e})},[d]),selectItem:Ie,reset:(0,s.useCallback)(function(){d({type:he})},[d]),highlightedIndex:p,isOpen:f,selectedItem:h,inputValue:m}}Se.stateChangeTypes=ve,a().array,a().array,a().array,a().func,a().number,a().number,a().number,a().func,a().func,a().string,a().string},2427:(e,t,n)=>{var r=n(6540);n(4160).React=r,e.exports=r},2551:(e,t,n)=>{"use strict";var r=n(2427),i=n(5228),o=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var l=!1,u=null,c=!1,d=null,f={onError:function(e){l=!0,u=e}};function p(e,t,n,r,i,o,a,c,d){l=!1,u=null,s.apply(f,arguments)}var h=null,m=null,v=null;function g(e,t,n){var r=e.type||"unknown-event";e.currentTarget=v(n),function(e,t,n,r,i,o,s,f,h){if(p.apply(this,arguments),l){if(!l)throw Error(a(198));var m=u;l=!1,u=null,c||(c=!0,d=m)}}(r,t,void 0,e),e.currentTarget=null}var b=null,y={};function w(){if(b)for(var e in y){var t=y[e],n=b.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!k[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in k[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,l=r;if(x.hasOwnProperty(l))throw Error(a(99,l));x[l]=o;var u=o.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&E(u[i],s,l);i=!0}else o.registrationName?(E(o.registrationName,s,l),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function E(e,t,n){if(T[e])throw Error(a(100,e));T[e]=t,S[e]=t.eventTypes[n].dependencies}var k=[],x={},T={},S={};function O(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!y.hasOwnProperty(t)||y[t]!==r){if(y[t])throw Error(a(102,t));y[t]=r,n=!0}}n&&w()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),A=null,_=null,N=null;function D(e){if(e=m(e)){if("function"!=typeof A)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),A(e.stateNode,e.type,t))}}function I(e){_?N?N.push(e):N=[e]:_=e}function P(){if(_){var e=_,t=N;if(N=_=null,D(e),t)for(e=0;e<t.length;e++)D(t[e])}}function M(e,t){return e(t)}function F(e,t,n,r,i){return e(t,n,r,i)}function L(){}var j=M,R=!1,$=!1;function B(){null===_&&null===N||(L(),P())}function V(e,t,n){if($)return e(t,n);$=!0;try{return j(e,t,n)}finally{$=!1,B()}}var z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,U=Object.prototype.hasOwnProperty,K={},W={};function H(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){q[e]=new H(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];q[t]=new H(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){q[e]=new H(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){q[e]=new H(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){q[e]=new H(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){q[e]=new H(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){q[e]=new H(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){q[e]=new H(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){q[e]=new H(e,5,!1,e.toLowerCase(),null,!1)});var Q=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Q,Y);q[t]=new H(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Q,Y);q[t]=new H(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Q,Y);q[t]=new H(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){q[e]=new H(e,1,!1,e.toLowerCase(),null,!1)}),q.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){q[e]=new H(e,1,!1,e.toLowerCase(),null,!0)});var G=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var i=q.hasOwnProperty(t)?q[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!U.call(W,e)||!U.call(K,e)&&(z.test(e)?W[e]=!0:(K[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}G.hasOwnProperty("ReactCurrentDispatcher")||(G.ReactCurrentDispatcher={current:null}),G.hasOwnProperty("ReactCurrentBatchConfig")||(G.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,ie=J?Symbol.for("react.profiler"):60114,oe=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,se=J?Symbol.for("react.concurrent_mode"):60111,le=J?Symbol.for("react.forward_ref"):60112,ue=J?Symbol.for("react.suspense"):60113,ce=J?Symbol.for("react.suspense_list"):60120,de=J?Symbol.for("react.memo"):60115,fe=J?Symbol.for("react.lazy"):60116,pe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ve(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ve(e.type);case pe:return ve(e.render);case fe:if(e=1===e._status?e._result:null)return ve(e)}return null}function ge(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=ve(e.type);n=null,r&&(n=ve(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function be(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ke(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=be(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Te(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Se(e,t){Te(e,t);var n=be(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function _e(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function De(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function Ie(e,t){var n=be(t.value),r=be(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Pe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Me(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Me(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Le,je,Re=(je=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Le=Le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return je(e,t)})}:je);function $e(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Be(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ve={animationend:Be("Animation","AnimationEnd"),animationiteration:Be("Animation","AnimationIteration"),animationstart:Be("Animation","AnimationStart"),transitionend:Be("Transition","TransitionEnd")},ze={},Ue={};function Ke(e){if(ze[e])return ze[e];if(!Ve[e])return e;var t,n=Ve[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ue)return ze[e]=n[t];return e}C&&(Ue=document.createElement("div").style,"AnimationEvent"in window||(delete Ve.animationend.animation,delete Ve.animationiteration.animation,delete Ve.animationstart.animation),"TransitionEvent"in window||delete Ve.transitionend.transition);var We=Ke("animationend"),He=Ke("animationiteration"),qe=Ke("animationstart"),Qe=Ke("transitionend"),Ye="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ge=new("function"==typeof WeakMap?WeakMap:Map);function Xe(e){var t=Ge.get(e);return void 0===t&&(t=new Map,Ge.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Ze(e)!==e)throw Error(a(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return et(i),e;if(o===r)return et(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function nt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function ot(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)g(e,t[r],n[r]);else t&&g(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(it=nt(it,e)),e=it,it=null,e){if(rt(e,ot),it)throw Error(a(95));if(c)throw e=d,c=!1,d=null,e}}function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function ct(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function dt(e,t,n,r){if(ut.length){var i=ut.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ft(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Dn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=st(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<k.length;l++){var u=k[l];u&&(u=u.extractEvents(r,t,o,i,a))&&(s=nt(s,u))}at(s)}}function pt(e,t,n){if(!n.has(e)){switch(e){case"scroll":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ye.indexOf(e)&&Ht(e,t)}n.set(e,null)}}var ht,mt,vt,gt=!1,bt=[],yt=null,wt=null,Et=null,kt=new Map,xt=new Map,Tt=[],St="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ot="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ct(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function At(e,t){switch(e){case"focus":case"blur":yt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xt.delete(t.pointerId)}}function _t(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ct(t,n,r,i,o),null!==t&&null!==(t=In(t))&&mt(t),e):(e.eventSystemFlags|=r,e)}function Nt(e){var t=Dn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Je(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,function(){vt(n)})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=In(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function It(e,t,n){Dt(e)&&n.delete(t)}function Pt(){for(gt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=In(e.blockedOn))&&ht(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==yt&&Dt(yt)&&(yt=null),null!==wt&&Dt(wt)&&(wt=null),null!==Et&&Dt(Et)&&(Et=null),kt.forEach(It),xt.forEach(It)}function Mt(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Pt)))}function Ft(e){function t(t){return Mt(t,e)}if(0<bt.length){Mt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==yt&&Mt(yt,e),null!==wt&&Mt(wt,e),null!==Et&&Mt(Et,e),kt.forEach(t),xt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Nt(n),null===n.blockedOn&&Tt.shift()}var Lt={},jt=new Map,Rt=new Map,$t=["abort","abort",We,"animationEnd",He,"animationIteration",qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qe,"transitionEnd","waiting","waiting"];function Bt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Rt.set(r,t),jt.set(r,o),Lt[i]=o}}Bt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Bt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Bt($t,2);for(var Vt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),zt=0;zt<Vt.length;zt++)Rt.set(Vt[zt],0);var Ut=o.unstable_UserBlockingPriority,Kt=o.unstable_runWithPriority,Wt=!0;function Ht(e,t){qt(t,e,!1)}function qt(e,t,n){var r=Rt.get(t);switch(void 0===r?2:r){case 0:r=Qt.bind(null,t,1,e);break;case 1:r=Yt.bind(null,t,1,e);break;default:r=Gt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Qt(e,t,n,r){R||L();var i=Gt,o=R;R=!0;try{F(i,e,t,n,r)}finally{(R=o)||B()}}function Yt(e,t,n,r){Kt(Ut,Gt.bind(null,e,t,n,r))}function Gt(e,t,n,r){if(Wt)if(0<bt.length&&-1<St.indexOf(e))e=Ct(null,e,t,n,r),bt.push(e);else{var i=Xt(e,t,n,r);if(null===i)At(e,r);else if(-1<St.indexOf(e))e=Ct(i,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return yt=_t(yt,e,t,n,r,i),!0;case"dragenter":return wt=_t(wt,e,t,n,r,i),!0;case"mouseover":return Et=_t(Et,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kt.set(o,_t(kt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,xt.set(o,_t(xt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){At(e,r),e=dt(e,r,null,t);try{V(ft,e)}finally{ct(e)}}}}function Xt(e,t,n,r){if(null!==(n=Dn(n=st(r)))){var i=Ze(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=Je(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=dt(e,r,n,t);try{V(ft,e)}finally{ct(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jt=["Webkit","ms","Moz","O"];function en(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function tn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=en(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Zt).forEach(function(e){Jt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]})});var nn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(nn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an="http://www.w3.org/1999/xhtml";function sn(e,t){var n=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)pt(t[r],e,n)}function ln(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=cn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cn(r)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn="$",vn="/$",gn="$?",bn="$!",yn=null,wn=null;function En(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function kn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var xn="function"==typeof setTimeout?setTimeout:void 0,Tn="function"==typeof clearTimeout?clearTimeout:void 0;function Sn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function On(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===mn||n===bn||n===gn){if(0===t)return e;t--}else n===vn&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),An="__reactInternalInstance$"+Cn,_n="__reactEventHandlers$"+Cn,Nn="__reactContainere$"+Cn;function Dn(e){var t=e[An];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[An]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=On(e);null!==e;){if(n=e[An])return n;e=On(e)}return t}n=(e=n).parentNode}return null}function In(e){return!(e=e[An]||e[Nn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Pn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Mn(e){return e[_n]||null}function Fn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Ln(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function jn(e,t,n){(t=Ln(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Rn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Fn(t);for(t=n.length;0<t--;)jn(n[t],"captured",e);for(t=0;t<n.length;t++)jn(n[t],"bubbled",e)}}function $n(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Ln(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Bn(e){e&&e.dispatchConfig.registrationName&&$n(e._targetInst,null,e)}function Vn(e){rt(e,Rn)}var zn=null,Un=null,Kn=null;function Wn(){if(Kn)return Kn;var e,t,n=Un,r=n.length,i="value"in zn?zn.value:zn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Kn=i.slice(e,1<t?1-t:void 0)}function Hn(){return!0}function qn(){return!1}function Qn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Hn:qn,this.isPropagationStopped=qn,this}function Yn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Gn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Xn(e){e.eventPool=[],e.getPooled=Yn,e.release=Gn}i(Qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){this.isPersistent=Hn},isPersistent:qn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),Qn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Qn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Xn(n),n},Xn(Qn);var Zn=Qn.extend({data:null}),Jn=Qn.extend({data:null}),er=[9,13,27,32],tr=C&&"CompositionEvent"in window,nr=null;C&&"documentMode"in document&&(nr=document.documentMode);var rr=C&&"TextEvent"in window&&!nr,ir=C&&(!tr||nr&&8<nr&&11>=nr),or=String.fromCharCode(32),ar={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},sr=!1;function lr(e,t){switch(e){case"keyup":return-1!==er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ur(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cr=!1,dr={eventTypes:ar,extractEvents:function(e,t,n,r){var i;if(tr)e:{switch(e){case"compositionstart":var o=ar.compositionStart;break e;case"compositionend":o=ar.compositionEnd;break e;case"compositionupdate":o=ar.compositionUpdate;break e}o=void 0}else cr?lr(e,n)&&(o=ar.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=ar.compositionStart);return o?(ir&&"ko"!==n.locale&&(cr||o!==ar.compositionStart?o===ar.compositionEnd&&cr&&(i=Wn()):(Un="value"in(zn=r)?zn.value:zn.textContent,cr=!0)),o=Zn.getPooled(o,t,n,r),(i||null!==(i=ur(n)))&&(o.data=i),Vn(o),i=o):i=null,(e=rr?function(e,t){switch(e){case"compositionend":return ur(t);case"keypress":return 32!==t.which?null:(sr=!0,or);case"textInput":return(e=t.data)===or&&sr?null:e;default:return null}}(e,n):function(e,t){if(cr)return"compositionend"===e||!tr&&lr(e,t)?(e=Wn(),Kn=Un=zn=null,cr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ir&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Jn.getPooled(ar.beforeInput,t,n,r)).data=e,Vn(t)):t=null,null===i?t:null===t?i:[i,t]}},fr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!fr[e.type]:"textarea"===t}var hr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function mr(e,t,n){return(e=Qn.getPooled(hr.change,e,t,n)).type="change",I(n),Vn(e),e}var vr=null,gr=null;function br(e){at(e)}function yr(e){if(Ee(Pn(e)))return e}function wr(e,t){if("change"===e)return t}var Er=!1;function kr(){vr&&(vr.detachEvent("onpropertychange",xr),gr=vr=null)}function xr(e){if("value"===e.propertyName&&yr(gr))if(e=mr(gr,e,st(e)),R)at(e);else{R=!0;try{M(br,e)}finally{R=!1,B()}}}function Tr(e,t,n){"focus"===e?(kr(),gr=n,(vr=t).attachEvent("onpropertychange",xr)):"blur"===e&&kr()}function Sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return yr(gr)}function Or(e,t){if("click"===e)return yr(t)}function Cr(e,t){if("input"===e||"change"===e)return yr(t)}C&&(Er=lt("input")&&(!document.documentMode||9<document.documentMode));var Ar={eventTypes:hr,_isInputEventSupported:Er,extractEvents:function(e,t,n,r){var i=t?Pn(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=wr;else if(pr(i))if(Er)a=Cr;else{a=Sr;var s=Tr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Or);if(a&&(a=a(e,t)))return mr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Ce(i,"number",i.value)}},_r=Qn.extend({view:null,detail:null}),Nr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Nr[e])&&!!t[e]}function Ir(){return Dr}var Pr=0,Mr=0,Fr=!1,Lr=!1,jr=_r.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Pr;return Pr=e.screenX,Fr?"mousemove"===e.type?e.screenX-t:0:(Fr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Mr;return Mr=e.screenY,Lr?"mousemove"===e.type?e.screenY-t:0:(Lr=!0,0)}}),Rr=jr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),$r={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Br={eventTypes:$r,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&!(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Dn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var s=jr,l=$r.mouseLeave,u=$r.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Rr,l=$r.pointerLeave,u=$r.pointerEnter,c="pointer");if(e=null==a?o:Pn(a),o=null==t?o:Pn(t),(l=s.getPooled(l,a,n,r)).type=c+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(u,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(u=c,a=0,e=s=r;e;e=Fn(e))a++;for(e=0,t=u;t;t=Fn(t))e++;for(;0<a-e;)s=Fn(s),a--;for(;0<e-a;)u=Fn(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=Fn(s),u=Fn(u)}s=null}else s=null;for(u=s,s=[];r&&r!==u&&(null===(a=r.alternate)||a!==u);)s.push(r),r=Fn(r);for(r=[];c&&c!==u&&(null===(a=c.alternate)||a!==u);)r.push(c),c=Fn(c);for(c=0;c<s.length;c++)$n(s[c],"bubbled",l);for(c=r.length;0<c--;)$n(r[c],"captured",n);return 64&i?[l,n]:[l]}},Vr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},zr=Object.prototype.hasOwnProperty;function Ur(e,t){if(Vr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!zr.call(t,n[r])||!Vr(e[n[r]],t[n[r]]))return!1;return!0}var Kr=C&&"documentMode"in document&&11>=document.documentMode,Wr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Hr=null,qr=null,Qr=null,Yr=!1;function Gr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yr||null==Hr||Hr!==un(n)?null:(n="selectionStart"in(n=Hr)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Qr&&Ur(Qr,n)?null:(Qr=n,(e=Qn.getPooled(Wr.select,qr,e,t)).type="select",e.target=Hr,Vn(e),e))}var Xr={eventTypes:Wr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Xe(i),o=S.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Pn(t):window,e){case"focus":(pr(i)||"true"===i.contentEditable)&&(Hr=i,qr=t,Qr=null);break;case"blur":Qr=qr=Hr=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,Gr(n,r);case"selectionchange":if(Kr)break;case"keydown":case"keyup":return Gr(n,r)}return null}},Zr=Qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=Qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ei=_r.extend({relatedTarget:null});function ti(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ni={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ri={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ii=_r.extend({key:function(e){if(e.key){var t=ni[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ti(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ri[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(e){return"keypress"===e.type?ti(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ti(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),oi=jr.extend({dataTransfer:null}),ai=_r.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),si=Qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),li=jr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ui={eventTypes:Lt,extractEvents:function(e,t,n,r){var i=jt.get(e);if(!i)return null;switch(e){case"keypress":if(0===ti(n))return null;case"keydown":case"keyup":e=ii;break;case"blur":case"focus":e=ei;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=jr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=oi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ai;break;case We:case He:case qe:e=Zr;break;case Qe:e=si;break;case"scroll":e=_r;break;case"wheel":e=li;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Rr;break;default:e=Qn}return Vn(t=e.getPooled(i,t,n,r)),t}};if(b)throw Error(a(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Mn,m=In,v=Pn,O({SimpleEventPlugin:ui,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Ar,SelectEventPlugin:Xr,BeforeInputEventPlugin:dr});var ci=[],di=-1;function fi(e){0>di||(e.current=ci[di],ci[di]=null,di--)}function pi(e,t){di++,ci[di]=e.current,e.current=t}var hi={},mi={current:hi},vi={current:!1},gi=hi;function bi(e,t){var n=e.type.contextTypes;if(!n)return hi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yi(e){return null!=e.childContextTypes}function wi(){fi(vi),fi(mi)}function Ei(e,t,n){if(mi.current!==hi)throw Error(a(168));pi(mi,t),pi(vi,n)}function ki(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ve(t)||"Unknown",o));return i({},n,{},r)}function xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hi,gi=mi.current,pi(mi,e),pi(vi,vi.current),!0}function Ti(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ki(e,t,gi),r.__reactInternalMemoizedMergedChildContext=e,fi(vi),fi(mi),pi(mi,e)):fi(vi),pi(vi,n)}var Si=o.unstable_runWithPriority,Oi=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,Ai=o.unstable_requestPaint,_i=o.unstable_now,Ni=o.unstable_getCurrentPriorityLevel,Di=o.unstable_ImmediatePriority,Ii=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Mi=o.unstable_LowPriority,Fi=o.unstable_IdlePriority,Li={},ji=o.unstable_shouldYield,Ri=void 0!==Ai?Ai:function(){},$i=null,Bi=null,Vi=!1,zi=_i(),Ui=1e4>zi?_i:function(){return _i()-zi};function Ki(){switch(Ni()){case Di:return 99;case Ii:return 98;case Pi:return 97;case Mi:return 96;case Fi:return 95;default:throw Error(a(332))}}function Wi(e){switch(e){case 99:return Di;case 98:return Ii;case 97:return Pi;case 96:return Mi;case 95:return Fi;default:throw Error(a(332))}}function Hi(e,t){return e=Wi(e),Si(e,t)}function qi(e,t,n){return e=Wi(e),Oi(e,t,n)}function Qi(e){return null===$i?($i=[e],Bi=Oi(Di,Gi)):$i.push(e),Li}function Yi(){if(null!==Bi){var e=Bi;Bi=null,Ci(e)}Gi()}function Gi(){if(!Vi&&null!==$i){Vi=!0;var e=0;try{var t=$i;Hi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),$i=null}catch(t){throw null!==$i&&($i=$i.slice(e+1)),Oi(Di,Yi),t}finally{Vi=!1}}}function Xi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Zi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ji={current:null},eo=null,to=null,no=null;function ro(){no=to=eo=null}function io(e){var t=Ji.current;fi(Ji),e.type._context._currentValue=t}function oo(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ao(e,t){eo=e,no=to=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ma=!0),e.firstContext=null)}function so(e,t){if(no!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(no=e,t=1073741823),t={context:e,observedBits:t,next:null},null===to){if(null===eo)throw Error(a(308));to=t,eo.dependencies={expirationTime:0,firstContext:t,responders:null}}else to=to.next=t;return e._currentValue}var lo=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function fo(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function po(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ho(e,t){var n=e.alternate;null!==n&&co(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function mo(e,t,n,r){var o=e.updateQueue;lo=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,o.shared.pending=null,null!==(l=e.alternate)&&null!==(l=l.updateQueue)&&(l.baseQueue=s)}if(null!==a){l=a.next;var u=o.baseState,c=0,d=null,f=null,p=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(f=p=m,d=u):p=p.next=m,s>c&&(c=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),wl(s,h.suspenseConfig);e:{var v=e,g=h;switch(s=t,m=n,g.tag){case 1:if("function"==typeof(v=g.payload)){u=v.call(m,u,s);break e}u=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(s="function"==typeof(v=g.payload)?v.call(m,u,s):v))break e;u=i({},u,s);break e;case 2:lo=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=l,o.baseQueue=a=s,o.shared.pending=null}}null===p?d=u:p.next=f,o.baseState=d,o.baseQueue=p,El(c),e.expirationTime=c,e.memoizedState=u}}function vo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var go=G.ReactCurrentBatchConfig,bo=(new r.Component).refs;function yo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var wo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=sl(),i=go.suspense;(i=fo(r=ll(r,e,i),i)).payload=t,null!=n&&(i.callback=n),po(e,i),ul(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=sl(),i=go.suspense;(i=fo(r=ll(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),po(e,i),ul(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=sl(),r=go.suspense;(r=fo(n=ll(n,e,r),r)).tag=2,null!=t&&(r.callback=t),po(e,r),ul(e,n)}};function Eo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&Ur(n,r)&&Ur(i,o))}function ko(e,t,n){var r=!1,i=hi,o=t.contextType;return"object"==typeof o&&null!==o?o=so(o):(i=yi(t)?gi:mi.current,o=(r=null!=(r=t.contextTypes))?bi(e,i):hi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=wo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function xo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wo.enqueueReplaceState(t,t.state,null)}function To(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=bo,uo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=so(o):(o=yi(t)?gi:mi.current,i.context=bi(e,o)),mo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(yo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&wo.enqueueReplaceState(i,i.state,null),mo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var So=Array.isArray;function Oo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===bo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Co(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ao(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Vl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Kl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Oo(e,t,n),r.return=e,r):((r=zl(n.type,n.key,n.props,null,e.mode,r)).ref=Oo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Ul(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Kl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=zl(t.type,t.key,t.props,null,e.mode,n)).ref=Oo(e,null,t),n.return=e,n;case te:return(t=Wl(t,e.mode,n)).return=e,t}if(So(t)||me(t))return(t=Ul(t,e.mode,n,null)).return=e,t;Co(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?d(e,t,n.props.children,r,i):u(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(So(n)||me(n))return null!==i?null:d(e,t,n,r,null);Co(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,i,r.key):u(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(So(r)||me(r))return d(t,e=e.get(n)||null,r,i,null);Co(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,d=a,m=a=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(i,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(i,d),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return n(i,d),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(a=o(d,a,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(i,d);m<s.length;m++)null!==(v=h(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach(function(e){return t(i,e)}),u}function v(i,s,l,u){var c=me(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=s,v=s=0,g=null,b=l.next();null!==m&&!b.done;v++,b=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var y=p(i,m,b.value,u);if(null===y){null===m&&(m=g);break}e&&m&&null===y.alternate&&t(i,m),s=o(y,s,v),null===d?c=y:d.sibling=y,d=y,m=g}if(b.done)return n(i,m),c;if(null===m){for(;!b.done;v++,b=l.next())null!==(b=f(i,b.value,u))&&(s=o(b,s,v),null===d?c=b:d.sibling=b,d=b);return c}for(m=r(i,m);!b.done;v++,b=l.next())null!==(b=h(m,i,v,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?v:b.key),s=o(b,s,v),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach(function(e){return t(i,e)}),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===ne&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case ee:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===ne){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=Oo(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===ne?((r=Ul(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=zl(o.type,o.key,o.props,null,e.mode,l)).ref=Oo(e,r,o),l.return=e,e=l)}return s(e);case te:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Wl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Kl(o,e.mode,l)).return=e,e=r),s(e);if(So(o))return m(e,r,o,l);if(me(o))return v(e,r,o,l);if(c&&Co(e,o),void 0===o&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var _o=Ao(!0),No=Ao(!1),Do={},Io={current:Do},Po={current:Do},Mo={current:Do};function Fo(e){if(e===Do)throw Error(a(174));return e}function Lo(e,t){switch(pi(Mo,t),pi(Po,e),pi(Io,Do),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,"");break;default:t=Fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}fi(Io),pi(Io,t)}function jo(){fi(Io),fi(Po),fi(Mo)}function Ro(e){Fo(Mo.current);var t=Fo(Io.current),n=Fe(t,e.type);t!==n&&(pi(Po,e),pi(Io,n))}function $o(e){Po.current===e&&(fi(Io),fi(Po))}var Bo={current:0};function Vo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===gn||n.data===bn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.effectTag)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zo(e,t){return{responder:e,props:t}}var Uo=G.ReactCurrentDispatcher,Ko=G.ReactCurrentBatchConfig,Wo=0,Ho=null,qo=null,Qo=null,Yo=!1;function Go(){throw Error(a(321))}function Xo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vr(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,i,o){if(Wo=o,Ho=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Uo.current=null===e||null===e.memoizedState?Ea:ka,e=n(r,i),t.expirationTime===Wo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Qo=qo=null,t.updateQueue=null,Uo.current=xa,e=n(r,i)}while(t.expirationTime===Wo)}if(Uo.current=wa,t=null!==qo&&null!==qo.next,Wo=0,Qo=qo=Ho=null,Yo=!1,t)throw Error(a(300));return e}function Jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qo?Ho.memoizedState=Qo=e:Qo=Qo.next=e,Qo}function ea(){if(null===qo){var e=Ho.alternate;e=null!==e?e.memoizedState:null}else e=qo.next;var t=null===Qo?Ho.memoizedState:Qo.next;if(null!==t)Qo=t,qo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(qo=e).memoizedState,baseState:qo.baseState,baseQueue:qo.baseQueue,queue:qo.queue,next:null},null===Qo?Ho.memoizedState=Qo=e:Qo=Qo.next=e}return Qo}function ta(e,t){return"function"==typeof t?t(e):t}function na(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=qo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,u=i;do{var c=u.expirationTime;if(c<Wo){var d={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,c>Ho.expirationTime&&(Ho.expirationTime=c,El(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),wl(c,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,Vr(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ra(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Vr(o,t.memoizedState)||(Ma=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ia(e){var t=Jo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e}).dispatch=ya.bind(null,Ho,e),[t.memoizedState,e]}function oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ho.updateQueue)?(t={lastEffect:null},Ho.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function aa(){return ea().memoizedState}function sa(e,t,n,r){var i=Jo();Ho.effectTag|=e,i.memoizedState=oa(1|t,n,void 0,void 0===r?null:r)}function la(e,t,n,r){var i=ea();r=void 0===r?null:r;var o=void 0;if(null!==qo){var a=qo.memoizedState;if(o=a.destroy,null!==r&&Xo(r,a.deps))return void oa(t,n,o,r)}Ho.effectTag|=e,i.memoizedState=oa(1|t,n,o,r)}function ua(e,t){return sa(516,4,e,t)}function ca(e,t){return la(516,4,e,t)}function da(e,t){return la(4,2,e,t)}function fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function pa(e,t,n){return n=null!=n?n.concat([e]):null,la(4,2,fa.bind(null,t,e),n)}function ha(){}function ma(e,t){return Jo().memoizedState=[e,void 0===t?null:t],e}function va(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ga(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ba(e,t,n){var r=Ki();Hi(98>r?98:r,function(){e(!0)}),Hi(97<r?97:r,function(){var r=Ko.suspense;Ko.suspense=void 0===t?null:t;try{e(!1),n()}finally{Ko.suspense=r}})}function ya(e,t,n){var r=sl(),i=go.suspense;i={expirationTime:r=ll(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Ho||null!==o&&o===Ho)Yo=!0,i.expirationTime=Wo,Ho.expirationTime=Wo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Vr(s,a))return}catch(e){}ul(e,r)}}var wa={readContext:so,useCallback:Go,useContext:Go,useEffect:Go,useImperativeHandle:Go,useLayoutEffect:Go,useMemo:Go,useReducer:Go,useRef:Go,useState:Go,useDebugValue:Go,useResponder:Go,useDeferredValue:Go,useTransition:Go},Ea={readContext:so,useCallback:ma,useContext:so,useEffect:ua,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,sa(4,2,fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sa(4,2,e,t)},useMemo:function(e,t){var n=Jo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ya.bind(null,Ho,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Jo().memoizedState=e},useState:ia,useDebugValue:ha,useResponder:zo,useDeferredValue:function(e,t){var n=ia(e),r=n[0],i=n[1];return ua(function(){var n=Ko.suspense;Ko.suspense=void 0===t?null:t;try{i(e)}finally{Ko.suspense=n}},[e,t]),r},useTransition:function(e){var t=ia(!1),n=t[0];return t=t[1],[ma(ba.bind(null,t,e),[t,e]),n]}},ka={readContext:so,useCallback:va,useContext:so,useEffect:ca,useImperativeHandle:pa,useLayoutEffect:da,useMemo:ga,useReducer:na,useRef:aa,useState:function(){return na(ta)},useDebugValue:ha,useResponder:zo,useDeferredValue:function(e,t){var n=na(ta),r=n[0],i=n[1];return ca(function(){var n=Ko.suspense;Ko.suspense=void 0===t?null:t;try{i(e)}finally{Ko.suspense=n}},[e,t]),r},useTransition:function(e){var t=na(ta),n=t[0];return t=t[1],[va(ba.bind(null,t,e),[t,e]),n]}},xa={readContext:so,useCallback:va,useContext:so,useEffect:ca,useImperativeHandle:pa,useLayoutEffect:da,useMemo:ga,useReducer:ra,useRef:aa,useState:function(){return ra(ta)},useDebugValue:ha,useResponder:zo,useDeferredValue:function(e,t){var n=ra(ta),r=n[0],i=n[1];return ca(function(){var n=Ko.suspense;Ko.suspense=void 0===t?null:t;try{i(e)}finally{Ko.suspense=n}},[e,t]),r},useTransition:function(e){var t=ra(ta),n=t[0];return t=t[1],[va(ba.bind(null,t,e),[t,e]),n]}},Ta=null,Sa=null,Oa=!1;function Ca(e,t){var n=$l(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Aa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function _a(e){if(Oa){var t=Sa;if(t){var n=t;if(!Aa(e,t)){if(!(t=Sn(n.nextSibling))||!Aa(e,t))return e.effectTag=-1025&e.effectTag|2,Oa=!1,void(Ta=e);Ca(Ta,n)}Ta=e,Sa=Sn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Oa=!1,Ta=e}}function Na(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ta=e}function Da(e){if(e!==Ta)return!1;if(!Oa)return Na(e),Oa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!kn(t,e.memoizedProps))for(t=Sa;t;)Ca(e,t),t=Sn(t.nextSibling);if(Na(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===vn){if(0===t){Sa=Sn(e.nextSibling);break e}t--}else n!==mn&&n!==bn&&n!==gn||t++}e=e.nextSibling}Sa=null}}else Sa=Ta?Sn(e.stateNode.nextSibling):null;return!0}function Ia(){Sa=Ta=null,Oa=!1}var Pa=G.ReactCurrentOwner,Ma=!1;function Fa(e,t,n,r){t.child=null===e?No(t,null,n,r):_o(t,e.child,n,r)}function La(e,t,n,r,i){n=n.render;var o=t.ref;return ao(t,i),r=Zo(e,t,n,r,o,i),null===e||Ma?(t.effectTag|=1,Fa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ja(e,t,i))}function ja(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Bl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zl(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ra(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Ur)(i,r)&&e.ref===t.ref)?Ja(e,t,o):(t.effectTag|=1,(e=Vl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ra(e,t,n,r,i,o){return null!==e&&Ur(e.memoizedProps,r)&&e.ref===t.ref&&(Ma=!1,i<o)?(t.expirationTime=e.expirationTime,Ja(e,t,o)):Ba(e,t,n,r,o)}function $a(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ba(e,t,n,r,i){var o=yi(n)?gi:mi.current;return o=bi(t,o),ao(t,i),n=Zo(e,t,n,r,o,i),null===e||Ma?(t.effectTag|=1,Fa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ja(e,t,i))}function Va(e,t,n,r,i){if(yi(n)){var o=!0;xi(t)}else o=!1;if(ao(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ko(t,n,r),To(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?so(u):bi(t,u=yi(n)?gi:mi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&xo(t,a,r,u),lo=!1;var f=t.memoizedState;a.state=f,mo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||vi.current||lo?("function"==typeof c&&(yo(t,n,c,r),l=t.memoizedState),(s=lo||Eo(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,co(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Zi(t.type,s),l=a.context,u="object"==typeof(u=n.contextType)&&null!==u?so(u):bi(t,u=yi(n)?gi:mi.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&xo(t,a,r,u),lo=!1,l=t.memoizedState,a.state=l,mo(t,r,a,i),f=t.memoizedState,s!==r||l!==f||vi.current||lo?("function"==typeof c&&(yo(t,n,c,r),f=t.memoizedState),(c=lo||Eo(t,n,s,r,l,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return za(e,t,n,r,o,i)}function za(e,t,n,r,i,o){$a(e,t);var a=!!(64&t.effectTag);if(!r&&!a)return i&&Ti(t,n,!1),Ja(e,t,o);r=t.stateNode,Pa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=_o(t,e.child,null,o),t.child=_o(t,null,s,o)):Fa(e,t,s,o),t.memoizedState=r.state,i&&Ti(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?Ei(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ei(0,t.context,!1),Lo(e,t.containerInfo)}var Ka,Wa,Ha,qa,Qa={dehydrated:null,retryTime:0};function Ya(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Bo.current,s=!1;if((r=!!(64&t.effectTag))||(r=!!(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),pi(Bo,1&a),null===e){if(void 0!==o.fallback&&_a(t),s){if(s=o.fallback,(o=Ul(null,i,0,null)).return=t,!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Ul(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Qa,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=No(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Vl(e,e.pendingProps)).return=t,!(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Vl(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Qa,t.child=n,i}return n=_o(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Ul(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Ul(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Qa,t.child=o,n}return t.memoizedState=null,t.child=_o(t,e,o.children,n)}function Ga(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),oo(e.return,t)}function Xa(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Za(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Fa(e,t,r.children,n),2&(r=Bo.current))r=1&r|2,t.effectTag|=64;else{if(null!==e&&64&e.effectTag)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ga(e,n);else if(19===e.tag)Ga(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pi(Bo,r),2&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Vo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xa(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Vo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xa(t,!0,n,null,o,t.lastEffect);break;case"together":Xa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ja(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&El(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Vl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function es(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ts(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yi(t.type)&&wi(),null;case 3:return jo(),fi(vi),fi(mi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Da(t)||(t.effectTag|=4),Wa(t),null;case 5:$o(t),n=Fo(Mo.current);var o=t.type;if(null!==e&&null!=t.stateNode)Ha(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Fo(Io.current),Da(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[An]=t,r[_n]=s,o){case"iframe":case"object":case"embed":Ht("load",r);break;case"video":case"audio":for(e=0;e<Ye.length;e++)Ht(Ye[e],r);break;case"source":Ht("error",r);break;case"img":case"image":case"link":Ht("error",r),Ht("load",r);break;case"form":Ht("reset",r),Ht("submit",r);break;case"details":Ht("toggle",r);break;case"input":xe(r,s),Ht("invalid",r),sn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ht("invalid",r),sn(n,"onChange");break;case"textarea":De(r,s),Ht("invalid",r),sn(n,"onChange")}for(var l in rn(o,s),e=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(e=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(e=["children",""+u]):T.hasOwnProperty(l)&&null!=u&&sn(n,l)}switch(o){case"input":we(r),Oe(r,s,!0);break;case"textarea":we(r),Pe(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===an&&(e=Me(o)),e===an?"script"===o?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(o,{is:r.is}):(e=l.createElement(o),"select"===o&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,o),e[An]=t,e[_n]=r,Ka(e,t,!1,!1),t.stateNode=e,l=on(o,r),o){case"iframe":case"object":case"embed":Ht("load",e),u=r;break;case"video":case"audio":for(u=0;u<Ye.length;u++)Ht(Ye[u],e);u=r;break;case"source":Ht("error",e),u=r;break;case"img":case"image":case"link":Ht("error",e),Ht("load",e),u=r;break;case"form":Ht("reset",e),Ht("submit",e),u=r;break;case"details":Ht("toggle",e),u=r;break;case"input":xe(e,r),u=ke(e,r),Ht("invalid",e),sn(n,"onChange");break;case"option":u=Ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=i({},r,{value:void 0}),Ht("invalid",e),sn(n,"onChange");break;case"textarea":De(e,r),u=Ne(e,r),Ht("invalid",e),sn(n,"onChange");break;default:u=r}rn(o,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?tn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Re(e,d):"children"===s?"string"==typeof d?("textarea"!==o||""!==d)&&$e(e,d):"number"==typeof d&&$e(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(T.hasOwnProperty(s)?null!=d&&sn(n,s):null!=d&&X(e,s,d,l))}switch(o){case"input":we(e),Oe(e,r,!1);break;case"textarea":we(e),Pe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+be(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?_e(e,!!r.multiple,n,!1):null!=r.defaultValue&&_e(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=ln)}En(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Fo(Mo.current),Fo(Io.current),Da(t)?(n=t.stateNode,r=t.memoizedProps,n[An]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[An]=t,t.stateNode=n)}return null;case 13:return fi(Bo),r=t.memoizedState,64&t.effectTag?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Da(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Bo.current?Vs===Ds&&(Vs=Ms):(Vs!==Ds&&Vs!==Ms||(Vs=Fs),0!==Hs&&null!==Rs&&(Ql(Rs,Bs),Yl(Rs,Hs)))),(n||r)&&(t.effectTag|=4),null);case 4:return jo(),Wa(t),null;case 10:return io(t),null;case 19:if(fi(Bo),null===(r=t.memoizedState))return null;if(o=!!(64&t.effectTag),null===(s=r.rendering)){if(o)es(r,!1);else if(Vs!==Ds||null!==e&&64&e.effectTag)for(s=t.child;null!==s;){if(null!==(e=Vo(s))){for(t.effectTag|=64,es(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return pi(Bo,1&Bo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Vo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),es(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ui()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,es(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ui()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ui(),n.sibling=null,t=Bo.current,pi(Bo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function ns(e){switch(e.tag){case 1:yi(e.type)&&wi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(jo(),fi(vi),fi(mi),64&(t=e.effectTag))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return $o(e),null;case 13:return fi(Bo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return fi(Bo),null;case 4:return jo(),null;case 10:return io(e),null;default:return null}}function rs(e,t){return{value:e,source:t,stack:ge(t)}}Ka=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wa=function(){},Ha=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,l,u=t.stateNode;switch(Fo(Io.current),e=null,n){case"input":a=ke(u,a),r=ke(u,r),e=[];break;case"option":a=Ae(u,a),r=Ae(u,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Ne(u,a),r=Ne(u,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(u.onclick=ln)}for(s in rn(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in u=a[s])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(T.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(s,c)):"children"===s?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(T.hasOwnProperty(s)?(null!=c&&sn(o,s),e||u===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},qa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var is="function"==typeof WeakSet?WeakSet:Set;function os(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ge(n)),null!==n&&ve(n.type),t=t.value,null!==e&&1===e.tag&&ve(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function as(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Pl(e,t)}else t.current=null}function ss(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function ls(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function us(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void us(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Zi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&vo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}vo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&En(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ft(n)))))}throw Error(a(163))}function ds(e,t,n){switch("function"==typeof jl&&jl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Hi(97<n?97:n,function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){Pl(i,e)}}e=e.next}while(e!==r)})}break;case 1:as(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Pl(e,t)}}(t,n);break;case 5:as(t);break;case 4:gs(e,t,n)}}function fs(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&fs(t)}function ps(e){return 5===e.tag||3===e.tag||4===e.tag}function hs(e){e:{for(var t=e.return;null!==t;){if(ps(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&($e(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ps(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?ms(e,n,t):vs(e,n,t)}function ms(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ln));else if(4!==r&&null!==(e=e.child))for(ms(e,t,n),e=e.sibling;null!==e;)ms(e,t,n),e=e.sibling}function vs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function gs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,c=n,d=u;;)if(ds(l,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===u)break e;for(;null===d.sibling;){if(null===d.return||d.return===u)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(l=r,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(ds(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function bs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ls(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[_n]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Te(n,r),on(e,i),t=on(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?tn(n,l):"dangerouslySetInnerHTML"===s?Re(n,l):"children"===s?$e(n,l):X(n,s,l,t)}switch(e){case"input":Se(n,r);break;case"textarea":Ie(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?_e(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?_e(n,!!r.multiple,r.defaultValue,!0):_e(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ft(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Qs=Ui()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=en("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ys(t);case 19:return void ys(t)}throw Error(a(163))}function ys(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new is),t.forEach(function(t){var r=Fl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}var ws="function"==typeof WeakMap?WeakMap:Map;function Es(e,t,n){(n=fo(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xs||(Xs=!0,Zs=r),os(e,t)},n}function ks(e,t,n){(n=fo(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return os(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Js?Js=new Set([this]):Js.add(this),os(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var xs,Ts=Math.ceil,Ss=G.ReactCurrentDispatcher,Os=G.ReactCurrentOwner,Cs=0,As=8,_s=16,Ns=32,Ds=0,Is=1,Ps=2,Ms=3,Fs=4,Ls=5,js=Cs,Rs=null,$s=null,Bs=0,Vs=Ds,zs=null,Us=1073741823,Ks=1073741823,Ws=null,Hs=0,qs=!1,Qs=0,Ys=500,Gs=null,Xs=!1,Zs=null,Js=null,el=!1,tl=null,nl=90,rl=null,il=0,ol=null,al=0;function sl(){return(js&(_s|Ns))!==Cs?1073741821-(Ui()/10|0):0!==al?al:al=1073741821-(Ui()/10|0)}function ll(e,t,n){if(!(2&(t=t.mode)))return 1073741823;var r=Ki();if(!(4&t))return 99===r?1073741823:1073741822;if((js&_s)!==Cs)return Bs;if(null!==n)e=Xi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Xi(e,150,100);break;case 97:case 96:e=Xi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Rs&&e===Bs&&--e,e}function ul(e,t){if(50<il)throw il=0,ol=null,Error(a(185));if(null!==(e=cl(e,t))){var n=Ki();1073741823===t?(js&As)!==Cs&&(js&(_s|Ns))===Cs?hl(e):(fl(e),js===Cs&&Yi()):fl(e),(4&js)===Cs||98!==n&&99!==n||(null===rl?rl=new Map([[e,t]]):(void 0===(n=rl.get(e))||n>t)&&rl.set(e,t))}}function cl(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Rs===i&&(El(t),Vs===Fs&&Ql(i,Bs)),Yl(i,t)),i}function dl(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!ql(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function fl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Qi(hl.bind(null,e));else{var t=dl(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=sl();if(r=1073741823===t?99:1===t||2===t?95:0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Li&&Ci(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Qi(hl.bind(null,e)):qi(r,pl.bind(null,e),{timeout:10*(1073741821-t)-Ui()}),e.callbackNode=t}}}function pl(e,t){if(al=0,t)return Gl(e,t=sl()),fl(e),null;var n=dl(e);if(0!==n){if(t=e.callbackNode,(js&(_s|Ns))!==Cs)throw Error(a(327));if(Nl(),e===Rs&&n===Bs||gl(e,n),null!==$s){var r=js;js|=_s;for(var i=yl();;)try{xl();break}catch(t){bl(e,t)}if(ro(),js=r,Ss.current=i,Vs===Is)throw t=zs,gl(e,n),Ql(e,n),fl(e),t;if(null===$s)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Vs,Rs=null,r){case Ds:case Is:throw Error(a(345));case Ps:Gl(e,2<n?2:n);break;case Ms:if(Ql(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ol(i)),1073741823===Us&&10<(i=Qs+Ys-Ui())){if(qs){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,gl(e,n);break}}if(0!==(o=dl(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=xn(Cl.bind(null,e),i);break}Cl(e);break;case Fs:if(Ql(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ol(i)),qs&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,gl(e,n);break}if(0!==(i=dl(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ks?r=10*(1073741821-Ks)-Ui():1073741823===Us?r=0:(r=10*(1073741821-Us)-5e3,0>(r=(i=Ui())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ts(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=xn(Cl.bind(null,e),r);break}Cl(e);break;case Ls:if(1073741823!==Us&&null!==Ws){o=Us;var s=Ws;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Ui()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Ql(e,n),e.timeoutHandle=xn(Cl.bind(null,e),r);break}}Cl(e);break;default:throw Error(a(329))}if(fl(e),e.callbackNode===t)return pl.bind(null,e)}}return null}function hl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(js&(_s|Ns))!==Cs)throw Error(a(327));if(Nl(),e===Rs&&t===Bs||gl(e,t),null!==$s){var n=js;js|=_s;for(var r=yl();;)try{kl();break}catch(t){bl(e,t)}if(ro(),js=n,Ss.current=r,Vs===Is)throw n=zs,gl(e,t),Ql(e,t),fl(e),n;if(null!==$s)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Rs=null,Cl(e),fl(e)}return null}function ml(e,t){var n=js;js|=1;try{return e(t)}finally{(js=n)===Cs&&Yi()}}function vl(e,t){var n=js;js&=-2,js|=As;try{return e(t)}finally{(js=n)===Cs&&Yi()}}function gl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Tn(n)),null!==$s)for(n=$s.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&wi();break;case 3:jo(),fi(vi),fi(mi);break;case 5:$o(r);break;case 4:jo();break;case 13:case 19:fi(Bo);break;case 10:io(r)}n=n.return}Rs=e,$s=Vl(e.current,null),Bs=t,Vs=Ds,zs=null,Ks=Us=1073741823,Ws=null,Hs=0,qs=!1}function bl(e,t){for(;;){try{if(ro(),Uo.current=wa,Yo)for(var n=Ho.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Wo=0,Qo=qo=Ho=null,Yo=!1,null===$s||null===$s.return)return Vs=Is,zs=t,$s=null;e:{var i=e,o=$s.return,a=$s,s=t;if(t=Bs,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(!(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=!!(1&Bo.current),d=o;do{var f;if(f=13===d.tag){var p=d.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var h=d.memoizedProps;f=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(f){var m=d.updateQueue;if(null===m){var v=new Set;v.add(l),d.updateQueue=v}else m.add(l);if(!(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=fo(1073741823,null);g.tag=2,po(a,g)}a.expirationTime=1073741823;break e}s=void 0,a=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ws,s=new Set,b.set(l,s)):void 0===(s=b.get(l))&&(s=new Set,b.set(l,s)),!s.has(a)){s.add(a);var y=Ml.bind(null,i,l,a);l.then(y,y)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((ve(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ge(a))}Vs!==Ls&&(Vs=Ps),s=rs(s,a),d=o;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,ho(d,Es(d,l,t));break e;case 1:l=s;var w=d.type,E=d.stateNode;if(!(64&d.effectTag||"function"!=typeof w.getDerivedStateFromError&&(null===E||"function"!=typeof E.componentDidCatch||null!==Js&&Js.has(E)))){d.effectTag|=4096,d.expirationTime=t,ho(d,ks(d,l,t));break e}}d=d.return}while(null!==d)}$s=Sl($s)}catch(e){t=e;continue}break}}function yl(){var e=Ss.current;return Ss.current=wa,null===e?wa:e}function wl(e,t){e<Us&&2<e&&(Us=e),null!==t&&e<Ks&&2<e&&(Ks=e,Ws=t)}function El(e){e>Hs&&(Hs=e)}function kl(){for(;null!==$s;)$s=Tl($s)}function xl(){for(;null!==$s&&!ji();)$s=Tl($s)}function Tl(e){var t=xs(e.alternate,e,Bs);return e.memoizedProps=e.pendingProps,null===t&&(t=Sl(e)),Os.current=null,t}function Sl(e){$s=e;do{var t=$s.alternate;if(e=$s.return,2048&$s.effectTag){if(null!==(t=ns($s)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=ts(t,$s,Bs),1===Bs||1!==$s.childExpirationTime){for(var n=0,r=$s.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}$s.childExpirationTime=n}if(null!==t)return t;null!==e&&!(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=$s.firstEffect),null!==$s.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=$s.firstEffect),e.lastEffect=$s.lastEffect),1<$s.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=$s:e.firstEffect=$s,e.lastEffect=$s))}if(null!==(t=$s.sibling))return t;$s=e}while(null!==$s);return Vs===Ds&&(Vs=Ls),null}function Ol(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Cl(e){var t=Ki();return Hi(99,Al.bind(null,e,t)),null}function Al(e,t){do{Nl()}while(null!==tl);if((js&(_s|Ns))!==Cs)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=Ol(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Rs&&($s=Rs=null,Bs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=js;js|=Ns,Os.current=null,yn=Wt;var s=pn();if(hn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var f=0,p=-1,h=-1,m=0,v=0,g=s,b=null;t:for(;;){for(var y;g!==l||0!==c&&3!==g.nodeType||(p=f+c),g!==d||0!==u&&3!==g.nodeType||(h=f+u),3===g.nodeType&&(f+=g.nodeValue.length),null!==(y=g.firstChild);)b=g,g=y;for(;;){if(g===s)break t;if(b===l&&++m===c&&(p=f),b===d&&++v===u&&(h=f),null!==(y=g.nextSibling))break;b=(g=b).parentNode}g=y}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;wn={activeElementDetached:null,focusedElem:s,selectionRange:l},Wt=!1,Gs=i;do{try{_l()}catch(e){if(null===Gs)throw Error(a(330));Pl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);Gs=i;do{try{for(s=e,l=t;null!==Gs;){var w=Gs.effectTag;if(16&w&&$e(Gs.stateNode,""),128&w){var E=Gs.alternate;if(null!==E){var k=E.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:hs(Gs),Gs.effectTag&=-3;break;case 6:hs(Gs),Gs.effectTag&=-3,bs(Gs.alternate,Gs);break;case 1024:Gs.effectTag&=-1025;break;case 1028:Gs.effectTag&=-1025,bs(Gs.alternate,Gs);break;case 4:bs(Gs.alternate,Gs);break;case 8:gs(s,c=Gs,l),fs(c)}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(a(330));Pl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);if(k=wn,E=pn(),w=k.focusedElem,l=k.selectionRange,E!==w&&w&&w.ownerDocument&&fn(w.ownerDocument.documentElement,w)){null!==l&&hn(w)&&(E=l.start,void 0===(k=l.end)&&(k=E),"selectionStart"in w?(w.selectionStart=E,w.selectionEnd=Math.min(k,w.value.length)):(k=(E=w.ownerDocument||document)&&E.defaultView||window).getSelection&&(k=k.getSelection(),c=w.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!k.extend&&s>l&&(c=l,l=s,s=c),c=dn(w,s),d=dn(w,l),c&&d&&(1!==k.rangeCount||k.anchorNode!==c.node||k.anchorOffset!==c.offset||k.focusNode!==d.node||k.focusOffset!==d.offset)&&((E=E.createRange()).setStart(c.node,c.offset),k.removeAllRanges(),s>l?(k.addRange(E),k.extend(d.node,d.offset)):(E.setEnd(d.node,d.offset),k.addRange(E))))),E=[];for(k=w;k=k.parentNode;)1===k.nodeType&&E.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<E.length;w++)(k=E[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Wt=!!yn,wn=yn=null,e.current=n,Gs=i;do{try{for(w=e;null!==Gs;){var x=Gs.effectTag;if(36&x&&cs(w,Gs.alternate,Gs),128&x){E=void 0;var T=Gs.ref;if(null!==T){var S=Gs.stateNode;Gs.tag,E=S,"function"==typeof T?T(E):T.current=E}}Gs=Gs.nextEffect}}catch(e){if(null===Gs)throw Error(a(330));Pl(Gs,e),Gs=Gs.nextEffect}}while(null!==Gs);Gs=null,Ri(),js=o}else e.current=n;if(el)el=!1,tl=e,nl=t;else for(Gs=i;null!==Gs;)t=Gs.nextEffect,Gs.nextEffect=null,Gs=t;if(0===(t=e.firstPendingTime)&&(Js=null),1073741823===t?e===ol?il++:(il=0,ol=e):il=0,"function"==typeof Ll&&Ll(n.stateNode,r),fl(e),Xs)throw Xs=!1,e=Zs,Zs=null,e;return(js&As)!==Cs||Yi(),null}function _l(){for(;null!==Gs;){var e=Gs.effectTag;256&e&&ss(Gs.alternate,Gs),!(512&e)||el||(el=!0,qi(97,function(){return Nl(),null})),Gs=Gs.nextEffect}}function Nl(){if(90!==nl){var e=97<nl?97:nl;return nl=90,Hi(e,Dl)}}function Dl(){if(null===tl)return!1;var e=tl;if(tl=null,(js&(_s|Ns))!==Cs)throw Error(a(331));var t=js;for(js|=Ns,e=e.current.firstEffect;null!==e;){try{var n=e;if(512&n.effectTag)switch(n.tag){case 0:case 11:case 15:case 22:ls(5,n),us(5,n)}}catch(t){if(null===e)throw Error(a(330));Pl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return js=t,Yi(),!0}function Il(e,t,n){po(e,t=Es(e,t=rs(n,t),1073741823)),null!==(e=cl(e,1073741823))&&fl(e)}function Pl(e,t){if(3===e.tag)Il(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Il(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Js||!Js.has(r))){po(n,e=ks(n,e=rs(t,e),1073741823)),null!==(n=cl(n,1073741823))&&fl(n);break}}n=n.return}}function Ml(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Rs===e&&Bs===n?Vs===Fs||Vs===Ms&&1073741823===Us&&Ui()-Qs<Ys?gl(e,Bs):qs=!0:ql(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,fl(e)))}function Fl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=ll(t=sl(),e,null)),null!==(e=cl(e,t))&&fl(e)}xs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||vi.current)Ma=!0;else{if(r<n){switch(Ma=!1,t.tag){case 3:Ua(t),Ia();break;case 5:if(Ro(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:yi(t.type)&&xi(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,pi(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ya(e,t,n):(pi(Bo,1&Bo.current),null!==(t=Ja(e,t,n))?t.sibling:null);pi(Bo,1&Bo.current);break;case 19:if(r=t.childExpirationTime>=n,64&e.effectTag){if(r)return Za(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),pi(Bo,Bo.current),!r)return null}return Ja(e,t,n)}Ma=!1}}else Ma=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=bi(t,mi.current),ao(t,n),i=Zo(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yi(r)){var o=!0;xi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,uo(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&yo(t,r,s,e),i.updater=wo,t.stateNode=i,i._reactInternalFiber=t,To(t,r,e,n),t=za(null,t,r,!0,o,n)}else t.tag=0,Fa(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Bl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===de)return 14}return 2}(i),e=Zi(i,e),o){case 0:t=Ba(null,t,i,e,n);break e;case 1:t=Va(null,t,i,e,n);break e;case 11:t=La(null,t,i,e,n);break e;case 14:t=ja(null,t,i,Zi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Zi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Va(e,t,r,i=t.elementType===r?i:Zi(r,i),n);case 3:if(Ua(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,co(e,t),mo(t,r,null,n),(r=t.memoizedState.element)===i)Ia(),t=Ja(e,t,n);else{if((i=t.stateNode.hydrate)&&(Sa=Sn(t.stateNode.containerInfo.firstChild),Ta=t,i=Oa=!0),i)for(n=No(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Fa(e,t,r,n),Ia();t=t.child}return t;case 5:return Ro(t),null===e&&_a(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,kn(r,i)?s=null:null!==o&&kn(r,o)&&(t.effectTag|=16),$a(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Fa(e,t,s,n),t=t.child),t;case 6:return null===e&&_a(t),null;case 13:return Ya(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_o(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,La(e,t,r,i=t.elementType===r?i:Zi(r,i),n);case 7:return Fa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(pi(Ji,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0==(o=Vr(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!vi.current){t=Ja(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===l.tag&&((c=fo(n,null)).tag=2,po(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),oo(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,ao(t,n),r=r(i=so(i,o.unstable_observedBits)),t.effectTag|=1,Fa(e,t,r,n),t.child;case 14:return o=Zi(i=t.type,t.pendingProps),ja(e,t,i,o=Zi(i.type,o),r,n);case 15:return Ra(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,yi(r)?(e=!0,xi(t)):e=!1,ao(t,n),ko(t,r,i),To(t,r,i,n),za(null,t,r,!0,e,n);case 19:return Za(e,t,n)}throw Error(a(156,t.tag))};var Ll=null,jl=null;function Rl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function $l(e,t,n,r){return new Rl(e,t,n,r)}function Bl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vl(e,t){var n=e.alternate;return null===n?((n=$l(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zl(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Bl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Ul(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=$l(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case ue:return(e=$l(13,n,t,i)).type=ue,e.elementType=ue,e.expirationTime=o,e;case ce:return(e=$l(19,n,t,i)).elementType=ce,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case de:s=14;break e;case fe:s=16,r=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=$l(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Ul(e,t,n,r){return(e=$l(7,e,r,t)).expirationTime=n,e}function Kl(e,t,n){return(e=$l(6,e,null,t)).expirationTime=n,e}function Wl(e,t,n){return(t=$l(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function ql(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ql(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Yl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Gl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Xl(e,t,n,r){var i=t.current,o=sl(),s=go.suspense;o=ll(o,i,s);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(yi(u)){n=ki(n,u,l);break e}}n=l}else n=hi;return null===t.context?t.context=n:t.pendingContext=n,(t=fo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),po(i,t),ul(i,o),o}function Zl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Jl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function eu(e,t){Jl(e,t),(e=e.alternate)&&Jl(e,t)}function tu(e,t,n){var r=new Hl(e,t,n=null!=n&&!0===n.hydrate),i=$l(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,uo(i),e[Nn]=r.current,n&&0!==t&&function(e,t){var n=Xe(t);St.forEach(function(e){pt(e,t,n)}),Ot.forEach(function(e){pt(e,t,n)})}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function nu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ru(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Zl(a);s.call(e)}}Xl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Zl(a);l.call(e)}}vl(function(){Xl(t,a,e,i)})}return Zl(a)}function iu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}tu.prototype.render=function(e){Xl(e,this._internalRoot,null,null)},tu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xl(null,e,null,function(){t[Nn]=null})},ht=function(e){if(13===e.tag){var t=Xi(sl(),150,100);ul(e,t),eu(e,t)}},mt=function(e){13===e.tag&&(ul(e,3),eu(e,3))},vt=function(e){if(13===e.tag){var t=sl();ul(e,t=ll(t,e,null)),eu(e,t)}},A=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Mn(r);if(!i)throw Error(a(90));Ee(r),Se(r,i)}}}break;case"textarea":Ie(e,n);break;case"select":null!=(t=n.value)&&_e(e,!!n.multiple,t,!1)}},M=ml,F=function(e,t,n,r,i){var o=js;js|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{(js=o)===Cs&&Yi()}},L=function(){(js&(1|_s|Ns))===Cs&&(function(){if(null!==rl){var e=rl;rl=null,e.forEach(function(e,t){Gl(t,e),fl(t)}),Yi()}}(),Nl())},j=function(e,t){var n=js;js|=2;try{return e(t)}finally{(js=n)===Cs&&Yi()}};var ou={Events:[In,Pn,Mn,O,x,Vn,function(e){rt(e,Bn)},I,P,Gt,at,Nl,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ll=function(e){try{t.onCommitFiberRoot(n,e,void 0,!(64&~e.current.effectTag))}catch(e){}},jl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:G.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Dn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ou,t.createPortal=iu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if((js&(_s|Ns))!==Cs)throw Error(a(187));var n=js;js|=1;try{return Hi(99,e.bind(null,t))}finally{js=n,Yi()}},t.hydrate=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!0,n)},t.render=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nu(e))throw Error(a(40));return!!e._reactRootContainer&&(vl(function(){ru(null,null,e,!1,function(){e._reactRootContainer=null,e[Nn]=null})}),!0)},t.unstable_batchedUpdates=ml,t.unstable_createPortal=function(e,t){return iu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nu(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return ru(e,t,n,!1,r)},t.version="16.14.0"},2614:(e,t,n)=>{"use strict";n.d(t,{C4:()=>u,Ch:()=>s,FF:()=>c,ZZ:()=>d});var r=n(1669),i=n.n(r),o=n(2833),a=n(2898);const s=(e,t,{errorContainerSelector:n})=>{const r=new FormData(t);i().ajax({url:t.action,data:r,processData:!1,contentType:!1,type:"POST",dataType:"text",success:e.loadResponseText,error(t,r,a){const s=(0,o.AP)("Report this error to your website administrator with the following information:")+"<br />"+a+" - "+t.status;i()(n,e.body).append('<div class="help-block help-critical"><strong>'+(0,o.AP)("Server Error")+": </strong>"+s+"</div>")}})};class l{constructor(e){this.form=e.form,this.containerElement=e.containerElement,this.onLoadResults=e.onLoadResults,this.resultsContainer=i()(e.resultsContainerSelector,this.containerElement),this.inputDelay=e.inputDelay||200,this.searchUrl=this.form.attr("action"),this.request=null,this.form.on("submit",()=>(this.searchFromForm(),!1))}attachSearchInput(e){let t;i()(e,this.containerElement).on("input",()=>{this.request&&this.request.abort(),clearTimeout(t),t=setTimeout(()=>{this.searchFromForm()},this.inputDelay)})}attachSearchFilter(e){i()(e,this.containerElement).on("change",()=>{this.searchFromForm()})}fetchResults(e,t){const n={url:e,success:e=>{this.request=null,this.resultsContainer.html(e),this.onLoadResults&&this.onLoadResults(this.resultsContainer)},error(){this.request=null}};t&&(n.data=t),this.request=i().ajax(n)}search(e){this.fetchResults(this.searchUrl,e)}searchFromForm(){this.search(this.form.serialize())}}class u{constructor(e){this.chooseStepName=e?.chooseStepName||"choose",this.chosenStepName=e?.chosenStepName||"chosen",this.reshowCreationFormStepName=e?.reshowCreationFormStepName||"reshow_creation_form",this.chosenLinkSelector=e?.chosenLinkSelector||"a[data-chooser-modal-choice]",this.paginationLinkSelector=e?.paginationLinkSelector||".pagination a",this.searchFormSelector=e?.searchFormSelector||"form[data-chooser-modal-search]",this.resultsContainerSelector=e?.resultsContainerSelector||"#search-results",this.searchInputSelectors=e?.searchInputSelectors||["#id_q"],this.searchFilterSelectors=e?.searchFilterSelectors||["[data-chooser-modal-search-filter]"],this.chosenResponseName=e?.chosenResponseName||"chosen",this.searchInputDelay=e?.searchInputDelay||200,this.creationFormSelector=e?.creationFormSelector||"form[data-chooser-modal-creation-form]",this.creationFormTabSelector=e?.creationFormTabSelector||"#tab-create",this.creationFormFileFieldSelector=e?.creationFormFileFieldSelector,this.creationFormTitleFieldSelector=e?.creationFormTitleFieldSelector,this.creationFormEventName=e?.creationFormEventName,this.searchController=null}ajaxifyLinks(e,t){if(!this.searchController)throw new Error("Cannot call ajaxifyLinks until a SearchController is set up");i()(this.chosenLinkSelector,t).on("click",t=>(e.loadUrl(t.currentTarget.href),!1)),i()(this.paginationLinkSelector,t).on("click",e=>(this.searchController.fetchResults(e.currentTarget.href),!1)),this.updateMultipleChoiceSubmitEnabledState(e),i()("[data-multiple-choice-select]",t).on("change",()=>{this.updateMultipleChoiceSubmitEnabledState(e)})}updateMultipleChoiceSubmitEnabledState(e){i()("[data-multiple-choice-select]:checked",e.body).length?i()("[data-multiple-choice-submit]",e.body).removeAttr("disabled"):i()("[data-multiple-choice-submit]",e.body).attr("disabled",!0)}ajaxifyCreationForm(e){i()(this.creationFormSelector,e.body).on("submit",t=>((e=>{let t=!1;return e.querySelectorAll("input[required]").forEach(e=>{if(!e.value&&(t=!0,!e.hasAttribute("aria-invalid"))){e.setAttribute("aria-invalid","true");const t=e.closest("[data-field]");t.classList.add("w-field--error");const n=t.querySelector("[data-field-errors]"),r=n.querySelector(".icon");r&&r.removeAttribute("hidden");const i=document.createElement("p");i.classList.add("error-message"),i.textContent=(0,o.AP)("This field is required."),n.appendChild(i)}}),t&&setTimeout(()=>{const t="data-w-progress-loading-value";e.querySelectorAll(`[${t}~="true"]`).forEach(e=>{e.removeAttribute(t)})},500),!t})(t.currentTarget)&&s(e,t.currentTarget,{errorContainerSelector:this.creationFormTabSelector}),!1)),this.creationFormFileFieldSelector&&this.creationFormTitleFieldSelector&&((e,{fileFieldSelector:t,titleFieldSelector:n,eventName:r})=>{const o=i()(t,e.body);o.on("change",()=>{const t=i()(n,e.body);if(""===t.val()){const e=o.val().split("\\"),n=e[e.length-1],i=parseInt(t.attr("maxLength")||"0",10)||null,a={title:n.replace(/\.[^.]+$/,"")},s=o.closest("form").get(0);if(r&&!s.dispatchEvent(new CustomEvent(r,{bubbles:!0,cancelable:!0,detail:{data:a,filename:n,maxTitleLength:i}})))return;t.val(a.title)}})})(e,{fileFieldSelector:this.creationFormFileFieldSelector,titleFieldSelector:this.creationFormTitleFieldSelector,eventName:this.creationFormEventName})}initSearchController(e){this.searchController=new l({form:i()(this.searchFormSelector,e.body),containerElement:e.body,resultsContainerSelector:this.resultsContainerSelector,onLoadResults:t=>{this.ajaxifyLinks(e,t)},inputDelay:this.searchInputDelay}),this.searchInputSelectors.forEach(e=>{this.searchController.attachSearchInput(e)}),this.searchFilterSelectors.forEach(e=>{this.searchController.attachSearchFilter(e)})}onLoadChooseStep(e){this.initSearchController(e),this.ajaxifyLinks(e,e.body),this.ajaxifyCreationForm(e),e.ajaxifyForm(i()("form[data-multiple-choice-form]",e.body))}onLoadChosenStep(e,t){e.respond(this.chosenResponseName,t.result),e.close()}onLoadReshowCreationFormStep(e,t){i()(this.creationFormTabSelector,e.body).replaceWith(t.htmlFragment),this.ajaxifyCreationForm(e)}getOnLoadHandlers(){return{[this.chooseStepName]:(e,t)=>{this.onLoadChooseStep(e,t)},[this.chosenStepName]:(e,t)=>{this.onLoadChosenStep(e,t)},[this.reshowCreationFormStepName]:(e,t)=>{this.onLoadReshowCreationFormStep(e,t)}}}}const c=(new u).getOnLoadHandlers();class d{onloadHandlers=c;chosenResponseName="chosen";constructor(e){this.baseUrl=e}getURL(e){return this.baseUrl}getURLParams(e){const t={};return e.multiple&&(t.multiple=1),e.linkedFieldFilters&&Object.assign(t,e.linkedFieldFilters),a.HE.ACTIVE_CONTENT_LOCALE&&(t.locale=a.HE.ACTIVE_CONTENT_LOCALE),t}open(e,t){ModalWorkflow({url:this.getURL(e||{}),urlParams:this.getURLParams(e||{}),onload:this.onloadHandlers,responses:{[this.chosenResponseName]:e=>{t(e)}}})}}},2632:(e,t,n)=>{"use strict";function r(e){return e.split("-")[0]}n.d(t,{A:()=>r})},2694:(e,t,n)=>{"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2697:(e,t,n)=>{"use strict";if(n.r(t),n.d(t,{createFocusTrap:()=>m}),/^(125|61)$/.test(n.j))var r=n(9054);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},u=function(e){return l(e)&&!e.shiftKey},c=function(e){return l(e)&&e.shiftKey},d=function(e){return setTimeout(e,0)},f=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];return"function"==typeof e?e.apply(void 0,n):e},p=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},h=/^(125|61)$/.test(n.j)?[]:null,m=function(e,t){var n,o=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||h,m=s({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:u,isKeyBackward:c},t),v={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},g=function(e,t,n){return e&&void 0!==e[t]?e[t]:m[n||t]},b=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return v.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null==n?void 0:n.includes(r))||i.find(function(t){return t===e})})},y=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.hasFallback,a=void 0!==r&&r,s=n.params,l=void 0===s?[]:s,u=m[e];if("function"==typeof u&&(u=u.apply(void 0,function(e){if(Array.isArray(e))return i(e)}(t=l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.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)?i(e,t):void 0}}(t)||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.")}())),!0===u&&(u=void 0),!u){if(void 0===u||!1===u)return u;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=u;if("string"==typeof u){try{c=o.querySelector(u)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!a)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},w=function(){var e=y("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,r.isFocusable)(e,m.tabbableOptions))if(b(o.activeElement)>=0)e=o.activeElement;else{var t=v.tabbableGroups[0];e=t&&t.firstTabbableNode||y("fallbackFocus")}else null===e&&(e=y("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},E=function(){if(v.containerGroups=v.containers.map(function(e){var t=(0,r.tabbable)(e,m.tabbableOptions),n=(0,r.focusable)(e,m.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find(function(e){return(0,r.isTabbable)(e)}),s=n.slice().reverse().find(function(e){return(0,r.isTabbable)(e)}),l=!!t.find(function(e){return(0,r.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find(function(e){return(0,r.isTabbable)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,r.isTabbable)(e)}):t[o+(i?1:-1)]}}}),v.tabbableGroups=v.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),v.tabbableGroups.length<=0&&!y("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(v.containerGroups.find(function(e){return e.posTabIndexesFound})&&v.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},k=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?k(t.shadowRoot):t},x=function(e){!1!==e&&e!==k(document)&&(e&&e.focus?(e.focus({preventScroll:!!m.preventScroll}),v.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):x(w()))},T=function(e){var t=y("setReturnFocus",{params:[e]});return t||!1!==t&&e},S=function(e){var t=e.target,n=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||p(n),E();var a=null;if(v.tabbableGroups.length>0){var s=b(t,n),u=s>=0?v.containerGroups[s]:void 0;if(s<0)a=o?v.tabbableGroups[v.tabbableGroups.length-1].lastTabbableNode:v.tabbableGroups[0].firstTabbableNode;else if(o){var c=v.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(c<0&&(u.container===t||(0,r.isFocusable)(t,m.tabbableOptions)&&!(0,r.isTabbable)(t,m.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(c=s),c>=0){var d=0===c?v.tabbableGroups.length-1:c-1,f=v.tabbableGroups[d];a=(0,r.getTabIndex)(t)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else l(n)||(a=u.nextTabbableNode(t,!1))}else{var h=v.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(h<0&&(u.container===t||(0,r.isFocusable)(t,m.tabbableOptions)&&!(0,r.isTabbable)(t,m.tabbableOptions)&&!u.nextTabbableNode(t))&&(h=s),h>=0){var g=h===v.tabbableGroups.length-1?0:h+1,w=v.tabbableGroups[g];a=(0,r.getTabIndex)(t)>=0?w.firstTabbableNode:w.firstDomTabbableNode}else l(n)||(a=u.nextTabbableNode(t))}}else a=y("fallbackFocus");return a},O=function(e){var t=p(e);b(t,e)>=0||(f(m.clickOutsideDeactivates,e)?n.deactivate({returnFocus:m.returnFocusOnDeactivate}):f(m.allowOutsideClick,e)||e.preventDefault())},C=function(e){var t=p(e),n=b(t,e)>=0;if(n||t instanceof Document)n&&(v.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var o=!0;if(v.mostRecentlyFocusedNode)if((0,r.getTabIndex)(v.mostRecentlyFocusedNode)>0){var a=b(v.mostRecentlyFocusedNode),s=v.containerGroups[a].tabbableNodes;if(s.length>0){var l=s.findIndex(function(e){return e===v.mostRecentlyFocusedNode});l>=0&&(m.isKeyForward(v.recentNavEvent)?l+1<s.length&&(i=s[l+1],o=!1):l-1>=0&&(i=s[l-1],o=!1))}}else v.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,r.getTabIndex)(e)>0})})||(o=!1);else o=!1;o&&(i=S({target:v.mostRecentlyFocusedNode,isBackward:m.isKeyBackward(v.recentNavEvent)})),x(i||v.mostRecentlyFocusedNode||w())}v.recentNavEvent=void 0},A=function(e){(m.isKeyForward(e)||m.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v.recentNavEvent=e;var n=S({event:e,isBackward:t});n&&(l(e)&&e.preventDefault(),x(n))}(e,m.isKeyBackward(e))},_=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===f(m.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},N=function(e){var t=p(e);b(t,e)>=0||f(m.clickOutsideDeactivates,e)||f(m.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},D=function(){if(v.active)return function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)}(a,n),v.delayInitialFocusTimer=m.delayInitialFocus?d(function(){x(w())}):x(w()),o.addEventListener("focusin",C,!0),o.addEventListener("mousedown",O,{capture:!0,passive:!1}),o.addEventListener("touchstart",O,{capture:!0,passive:!1}),o.addEventListener("click",N,{capture:!0,passive:!1}),o.addEventListener("keydown",A,{capture:!0,passive:!1}),o.addEventListener("keydown",_),n},I=function(){if(v.active)return o.removeEventListener("focusin",C,!0),o.removeEventListener("mousedown",O,!0),o.removeEventListener("touchstart",O,!0),o.removeEventListener("click",N,!0),o.removeEventListener("keydown",A,!0),o.removeEventListener("keydown",_),n},P="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===v.mostRecentlyFocusedNode})})&&x(w())}):void 0,M=function(){P&&(P.disconnect(),v.active&&!v.paused&&v.containers.map(function(e){P.observe(e,{subtree:!0,childList:!0})}))};return(n={get active(){return v.active},get paused(){return v.paused},activate:function(e){if(v.active)return this;var t=g(e,"onActivate"),n=g(e,"onPostActivate"),r=g(e,"checkCanFocusTrap");r||E(),v.active=!0,v.paused=!1,v.nodeFocusedBeforeActivation=o.activeElement,null==t||t();var i=function(){r&&E(),D(),M(),null==n||n()};return r?(r(v.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(e){if(!v.active)return this;var t=s({onDeactivate:m.onDeactivate,onPostDeactivate:m.onPostDeactivate,checkCanReturnFocus:m.checkCanReturnFocus},e);clearTimeout(v.delayInitialFocusTimer),v.delayInitialFocusTimer=void 0,I(),v.active=!1,v.paused=!1,M(),function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}(a,n);var r=g(t,"onDeactivate"),i=g(t,"onPostDeactivate"),o=g(t,"checkCanReturnFocus"),l=g(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var u=function(){d(function(){l&&x(T(v.nodeFocusedBeforeActivation)),null==i||i()})};return l&&o?(o(T(v.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(e){if(v.paused||!v.active)return this;var t=g(e,"onPause"),n=g(e,"onPostPause");return v.paused=!0,null==t||t(),I(),M(),null==n||n(),this},unpause:function(e){if(!v.paused||!v.active)return this;var t=g(e,"onUnpause"),n=g(e,"onPostUnpause");return v.paused=!1,null==t||t(),E(),D(),M(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return v.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),v.active&&E(),M(),this}}).updateContainerElements(e),n}},2724:(e,t,n)=>{"use strict";n.d(t,{r:()=>r.unstable_batchedUpdates});var r=n(6931)},2799:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}(e)===l}},2833:(e,t,n)=>{"use strict";function r(e){const t=window.django?.gettext;return t?t(e):e}function i(e,t,n){const r=window.django?.ngettext;return r?r(e,t,n):1===n?e:t}n.d(t,{AP:()=>r,WI:()=>i})},2883:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>b}),/^(114|262|591|61)$/.test(n.j))var r=n(4278);if(/^(114|262|591|61)$/.test(n.j))var i=n(5487);if(/^(114|262|591|61)$/.test(n.j))var o=n(8848);if(/^(114|262|591|61)$/.test(n.j))var a=n(3341);if(/^(114|262|591|61)$/.test(n.j))var s=n(5128);if(/^(114|262|591|61)$/.test(n.j))var l=n(9760);if(/^(114|262|591|61)$/.test(n.j))var u=n(271);if(/^(114|262|591|61)$/.test(n.j))var c=n(5581);if(/^(114|262|591|61)$/.test(n.j))var d=n(6354);if(/^(114|262|591|61)$/.test(n.j))var f=n(2083);if(/^(114|262|591|61)$/.test(n.j))var p=n(5446);if(/^(114|262|591|61)$/.test(n.j))var h=n(7604);if(/^(114|262|591|61)$/.test(n.j))var m=n(4426);if(/^(114|262|591|61)$/.test(n.j))var v=n(6906);function g(e,t){return t===r.R9?(0,m.A)((0,i.A)(e)):(0,c.vq)(t)?function(e){var t=(0,d.A)(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):(0,m.A)((0,o.A)((0,l.A)(e)))}function b(e,t,n){var r="clippingParents"===t?function(e){var t=(0,a.A)((0,f.A)(e)),n=["absolute","fixed"].indexOf((0,u.A)(e).position)>=0&&(0,c.sb)(e)?(0,s.A)(e):e;return(0,c.vq)(n)?t.filter(function(e){return(0,c.vq)(e)&&(0,p.A)(e,n)&&"body"!==(0,h.A)(e)}):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],l=i.reduce(function(t,n){var r=g(e,n);return t.top=(0,v.T9)(r.top,t.top),t.right=(0,v.jk)(r.right,t.right),t.bottom=(0,v.jk)(r.bottom,t.bottom),t.left=(0,v.T9)(r.left,t.left),t},g(e,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}},2891:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Application:()=>Z,AttributeObserver:()=>w,Context:()=>j,Controller:()=>le,ElementObserver:()=>y,IndexedMultimap:()=>O,Multimap:()=>S,SelectorObserver:()=>C,StringMapObserver:()=>A,TokenListObserver:()=>_,ValueListObserver:()=>N,add:()=>E,defaultSchema:()=>G,del:()=>k,fetch:()=>x,prune:()=>T});class r{constructor(e,t,n){this.eventTarget=e,this.eventName=t,this.eventOptions=n,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}bindingConnected(e){this.unorderedBindings.add(e)}bindingDisconnected(e){this.unorderedBindings.delete(e)}handleEvent(e){const t=function(e){if("immediatePropagationStopped"in e)return e;{const{stopImmediatePropagation:t}=e;return Object.assign(e,{immediatePropagationStopped:!1,stopImmediatePropagation(){this.immediatePropagationStopped=!0,t.call(this)}})}}(e);for(const e of this.bindings){if(t.immediatePropagationStopped)break;e.handleEvent(t)}}hasBindings(){return this.unorderedBindings.size>0}get bindings(){return Array.from(this.unorderedBindings).sort((e,t)=>{const n=e.index,r=t.index;return n<r?-1:n>r?1:0})}}class i{constructor(e){this.application=e,this.eventListenerMaps=new Map,this.started=!1}start(){this.started||(this.started=!0,this.eventListeners.forEach(e=>e.connect()))}stop(){this.started&&(this.started=!1,this.eventListeners.forEach(e=>e.disconnect()))}get eventListeners(){return Array.from(this.eventListenerMaps.values()).reduce((e,t)=>e.concat(Array.from(t.values())),[])}bindingConnected(e){this.fetchEventListenerForBinding(e).bindingConnected(e)}bindingDisconnected(e,t=!1){this.fetchEventListenerForBinding(e).bindingDisconnected(e),t&&this.clearEventListenersForBinding(e)}handleError(e,t,n={}){this.application.handleError(e,`Error ${t}`,n)}clearEventListenersForBinding(e){const t=this.fetchEventListenerForBinding(e);t.hasBindings()||(t.disconnect(),this.removeMappedEventListenerFor(e))}removeMappedEventListenerFor(e){const{eventTarget:t,eventName:n,eventOptions:r}=e,i=this.fetchEventListenerMapForEventTarget(t),o=this.cacheKey(n,r);i.delete(o),0==i.size&&this.eventListenerMaps.delete(t)}fetchEventListenerForBinding(e){const{eventTarget:t,eventName:n,eventOptions:r}=e;return this.fetchEventListener(t,n,r)}fetchEventListener(e,t,n){const r=this.fetchEventListenerMapForEventTarget(e),i=this.cacheKey(t,n);let o=r.get(i);return o||(o=this.createEventListener(e,t,n),r.set(i,o)),o}createEventListener(e,t,n){const i=new r(e,t,n);return this.started&&i.connect(),i}fetchEventListenerMapForEventTarget(e){let t=this.eventListenerMaps.get(e);return t||(t=new Map,this.eventListenerMaps.set(e,t)),t}cacheKey(e,t){const n=[e];return Object.keys(t).sort().forEach(e=>{n.push(`${t[e]?"":"!"}${e}`)}),n.join(":")}}const o={stop:({event:e,value:t})=>(t&&e.stopPropagation(),!0),prevent:({event:e,value:t})=>(t&&e.preventDefault(),!0),self:({event:e,value:t,element:n})=>!t||n===e.target},a=/^(?:(?:([^.]+?)\+)?(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function s(e){return e.replace(/(?:[_-])([a-z0-9])/g,(e,t)=>t.toUpperCase())}function l(e){return s(e.replace(/--/g,"-").replace(/__/g,"_"))}function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function c(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}function d(e){return null!=e}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const p=/^(114|209)$/.test(n.j)?["meta","ctrl","alt","shift"]:null;class h{constructor(e,t,n,r){this.element=e,this.index=t,this.eventTarget=n.eventTarget||e,this.eventName=n.eventName||function(e){const t=e.tagName.toLowerCase();if(t in m)return m[t](e)}(e)||v("missing event name"),this.eventOptions=n.eventOptions||{},this.identifier=n.identifier||v("missing identifier"),this.methodName=n.methodName||v("missing method name"),this.keyFilter=n.keyFilter||"",this.schema=r}static forToken(e,t){return new this(e.element,e.index,function(e){const t=e.trim().match(a)||[];let n=t[2],r=t[3];return r&&!["keydown","keyup","keypress"].includes(n)&&(n+=`.${r}`,r=""),{eventTarget:(i=t[4],"window"==i?window:"document"==i?document:void 0),eventName:n,eventOptions:t[7]?(o=t[7],o.split(":").reduce((e,t)=>Object.assign(e,{[t.replace(/^!/,"")]:!/^!/.test(t)}),{})):{},identifier:t[5],methodName:t[6],keyFilter:t[1]||r};var i,o}(e.content),t)}toString(){const e=this.keyFilter?`.${this.keyFilter}`:"",t=this.eventTargetName?`@${this.eventTargetName}`:"";return`${this.eventName}${e}${t}->${this.identifier}#${this.methodName}`}shouldIgnoreKeyboardEvent(e){if(!this.keyFilter)return!1;const t=this.keyFilter.split("+");if(this.keyFilterDissatisfied(e,t))return!0;const n=t.filter(e=>!p.includes(e))[0];return!!n&&(f(this.keyMappings,n)||v(`contains unknown key filter: ${this.keyFilter}`),this.keyMappings[n].toLowerCase()!==e.key.toLowerCase())}shouldIgnoreMouseEvent(e){if(!this.keyFilter)return!1;const t=[this.keyFilter];return!!this.keyFilterDissatisfied(e,t)}get params(){const e={},t=new RegExp(`^data-${this.identifier}-(.+)-param$`,"i");for(const{name:n,value:r}of Array.from(this.element.attributes)){const i=n.match(t),o=i&&i[1];o&&(e[s(o)]=g(r))}return e}get eventTargetName(){return(e=this.eventTarget)==window?"window":e==document?"document":void 0;var e}get keyMappings(){return this.schema.keyMappings}keyFilterDissatisfied(e,t){const[n,r,i,o]=p.map(e=>t.includes(e));return e.metaKey!==n||e.ctrlKey!==r||e.altKey!==i||e.shiftKey!==o}}const m={a:()=>"click",button:()=>"click",form:()=>"submit",details:()=>"toggle",input:e=>"submit"==e.getAttribute("type")?"click":"input",select:()=>"change",textarea:()=>"input"};function v(e){throw new Error(e)}function g(e){try{return JSON.parse(e)}catch(t){return e}}class b{constructor(e,t){this.context=e,this.action=t}get index(){return this.action.index}get eventTarget(){return this.action.eventTarget}get eventOptions(){return this.action.eventOptions}get identifier(){return this.context.identifier}handleEvent(e){const t=this.prepareActionEvent(e);this.willBeInvokedByEvent(e)&&this.applyEventModifiers(t)&&this.invokeWithEvent(t)}get eventName(){return this.action.eventName}get method(){const e=this.controller[this.methodName];if("function"==typeof e)return e;throw new Error(`Action "${this.action}" references undefined method "${this.methodName}"`)}applyEventModifiers(e){const{element:t}=this.action,{actionDescriptorFilters:n}=this.context.application,{controller:r}=this.context;let i=!0;for(const[o,a]of Object.entries(this.eventOptions))if(o in n){const s=n[o];i=i&&s({name:o,value:a,event:e,element:t,controller:r})}return i}prepareActionEvent(e){return Object.assign(e,{params:this.action.params})}invokeWithEvent(e){const{target:t,currentTarget:n}=e;try{this.method.call(this.controller,e),this.context.logDebugActivity(this.methodName,{event:e,target:t,currentTarget:n,action:this.methodName})}catch(t){const{identifier:n,controller:r,element:i,index:o}=this,a={identifier:n,controller:r,element:i,index:o,event:e};this.context.handleError(t,`invoking action "${this.action}"`,a)}}willBeInvokedByEvent(e){const t=e.target;return!(e instanceof KeyboardEvent&&this.action.shouldIgnoreKeyboardEvent(e))&&!(e instanceof MouseEvent&&this.action.shouldIgnoreMouseEvent(e))&&(this.element===t||(t instanceof Element&&this.element.contains(t)?this.scope.containsElement(t):this.scope.containsElement(this.action.element)))}get controller(){return this.context.controller}get methodName(){return this.action.methodName}get element(){return this.scope.element}get scope(){return this.context.scope}}class y{constructor(e,t){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=e,this.started=!1,this.delegate=t,this.elements=new Set,this.mutationObserver=new MutationObserver(e=>this.processMutations(e))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(e){this.started&&(this.mutationObserver.disconnect(),this.started=!1),e(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started){const e=new Set(this.matchElementsInTree());for(const t of Array.from(this.elements))e.has(t)||this.removeElement(t);for(const t of Array.from(e))this.addElement(t)}}processMutations(e){if(this.started)for(const t of e)this.processMutation(t)}processMutation(e){"attributes"==e.type?this.processAttributeChange(e.target,e.attributeName):"childList"==e.type&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))}processAttributeChange(e,t){this.elements.has(e)?this.delegate.elementAttributeChanged&&this.matchElement(e)?this.delegate.elementAttributeChanged(e,t):this.removeElement(e):this.matchElement(e)&&this.addElement(e)}processRemovedNodes(e){for(const t of Array.from(e)){const e=this.elementFromNode(t);e&&this.processTree(e,this.removeElement)}}processAddedNodes(e){for(const t of Array.from(e)){const e=this.elementFromNode(t);e&&this.elementIsActive(e)&&this.processTree(e,this.addElement)}}matchElement(e){return this.delegate.matchElement(e)}matchElementsInTree(e=this.element){return this.delegate.matchElementsInTree(e)}processTree(e,t){for(const n of this.matchElementsInTree(e))t.call(this,n)}elementFromNode(e){if(e.nodeType==Node.ELEMENT_NODE)return e}elementIsActive(e){return e.isConnected==this.element.isConnected&&this.element.contains(e)}addElement(e){this.elements.has(e)||this.elementIsActive(e)&&(this.elements.add(e),this.delegate.elementMatched&&this.delegate.elementMatched(e))}removeElement(e){this.elements.has(e)&&(this.elements.delete(e),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(e))}}class w{constructor(e,t,n){this.attributeName=t,this.delegate=n,this.elementObserver=new y(e,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(e){return e.hasAttribute(this.attributeName)}matchElementsInTree(e){const t=this.matchElement(e)?[e]:[],n=Array.from(e.querySelectorAll(this.selector));return t.concat(n)}elementMatched(e){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(e,this.attributeName)}elementUnmatched(e){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(e,this.attributeName)}elementAttributeChanged(e,t){this.delegate.elementAttributeValueChanged&&this.attributeName==t&&this.delegate.elementAttributeValueChanged(e,t)}}function E(e,t,n){x(e,t).add(n)}function k(e,t,n){x(e,t).delete(n),T(e,t)}function x(e,t){let n=e.get(t);return n||(n=new Set,e.set(t,n)),n}function T(e,t){const n=e.get(t);null!=n&&0==n.size&&e.delete(t)}class S{constructor(){this.valuesByKey=new Map}get keys(){return Array.from(this.valuesByKey.keys())}get values(){return Array.from(this.valuesByKey.values()).reduce((e,t)=>e.concat(Array.from(t)),[])}get size(){return Array.from(this.valuesByKey.values()).reduce((e,t)=>e+t.size,0)}add(e,t){E(this.valuesByKey,e,t)}delete(e,t){k(this.valuesByKey,e,t)}has(e,t){const n=this.valuesByKey.get(e);return null!=n&&n.has(t)}hasKey(e){return this.valuesByKey.has(e)}hasValue(e){return Array.from(this.valuesByKey.values()).some(t=>t.has(e))}getValuesForKey(e){const t=this.valuesByKey.get(e);return t?Array.from(t):[]}getKeysForValue(e){return Array.from(this.valuesByKey).filter(([t,n])=>n.has(e)).map(([e,t])=>e)}}class O extends S{constructor(){super(),this.keysByValue=new Map}get values(){return Array.from(this.keysByValue.keys())}add(e,t){super.add(e,t),E(this.keysByValue,t,e)}delete(e,t){super.delete(e,t),k(this.keysByValue,t,e)}hasValue(e){return this.keysByValue.has(e)}getKeysForValue(e){const t=this.keysByValue.get(e);return t?Array.from(t):[]}}class C{constructor(e,t,n,r){this._selector=t,this.details=r,this.elementObserver=new y(e,this),this.delegate=n,this.matchesByElement=new S}get started(){return this.elementObserver.started}get selector(){return this._selector}set selector(e){this._selector=e,this.refresh()}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get element(){return this.elementObserver.element}matchElement(e){const{selector:t}=this;if(t){const n=e.matches(t);return this.delegate.selectorMatchElement?n&&this.delegate.selectorMatchElement(e,this.details):n}return!1}matchElementsInTree(e){const{selector:t}=this;if(t){const n=this.matchElement(e)?[e]:[],r=Array.from(e.querySelectorAll(t)).filter(e=>this.matchElement(e));return n.concat(r)}return[]}elementMatched(e){const{selector:t}=this;t&&this.selectorMatched(e,t)}elementUnmatched(e){const t=this.matchesByElement.getKeysForValue(e);for(const n of t)this.selectorUnmatched(e,n)}elementAttributeChanged(e,t){const{selector:n}=this;if(n){const t=this.matchElement(e),r=this.matchesByElement.has(n,e);t&&!r?this.selectorMatched(e,n):!t&&r&&this.selectorUnmatched(e,n)}}selectorMatched(e,t){this.delegate.selectorMatched(e,t,this.details),this.matchesByElement.add(t,e)}selectorUnmatched(e,t){this.delegate.selectorUnmatched(e,t,this.details),this.matchesByElement.delete(t,e)}}class A{constructor(e,t){this.element=e,this.delegate=t,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(e=>this.processMutations(e))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started)for(const e of this.knownAttributeNames)this.refreshAttribute(e,null)}processMutations(e){if(this.started)for(const t of e)this.processMutation(t)}processMutation(e){const t=e.attributeName;t&&this.refreshAttribute(t,e.oldValue)}refreshAttribute(e,t){const n=this.delegate.getStringMapKeyForAttribute(e);if(null!=n){this.stringMap.has(e)||this.stringMapKeyAdded(n,e);const r=this.element.getAttribute(e);if(this.stringMap.get(e)!=r&&this.stringMapValueChanged(r,n,t),null==r){const t=this.stringMap.get(e);this.stringMap.delete(e),t&&this.stringMapKeyRemoved(n,e,t)}else this.stringMap.set(e,r)}}stringMapKeyAdded(e,t){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(e,t)}stringMapValueChanged(e,t,n){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(e,t,n)}stringMapKeyRemoved(e,t,n){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(e,t,n)}get knownAttributeNames(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}get currentAttributeNames(){return Array.from(this.element.attributes).map(e=>e.name)}get recordedAttributeNames(){return Array.from(this.stringMap.keys())}}class _{constructor(e,t,n){this.attributeObserver=new w(e,t,this),this.delegate=n,this.tokensByElement=new S}get started(){return this.attributeObserver.started}start(){this.attributeObserver.start()}pause(e){this.attributeObserver.pause(e)}stop(){this.attributeObserver.stop()}refresh(){this.attributeObserver.refresh()}get element(){return this.attributeObserver.element}get attributeName(){return this.attributeObserver.attributeName}elementMatchedAttribute(e){this.tokensMatched(this.readTokensForElement(e))}elementAttributeValueChanged(e){const[t,n]=this.refreshTokensForElement(e);this.tokensUnmatched(t),this.tokensMatched(n)}elementUnmatchedAttribute(e){this.tokensUnmatched(this.tokensByElement.getValuesForKey(e))}tokensMatched(e){e.forEach(e=>this.tokenMatched(e))}tokensUnmatched(e){e.forEach(e=>this.tokenUnmatched(e))}tokenMatched(e){this.delegate.tokenMatched(e),this.tokensByElement.add(e.element,e)}tokenUnmatched(e){this.delegate.tokenUnmatched(e),this.tokensByElement.delete(e.element,e)}refreshTokensForElement(e){const t=this.tokensByElement.getValuesForKey(e),n=this.readTokensForElement(e),r=function(e,t){const n=Math.max(e.length,t.length);return Array.from({length:n},(n,r)=>[e[r],t[r]])}(t,n).findIndex(([e,t])=>{return r=t,!((n=e)&&r&&n.index==r.index&&n.content==r.content);var n,r});return-1==r?[[],[]]:[t.slice(r),n.slice(r)]}readTokensForElement(e){const t=this.attributeName;return function(e,t,n){return e.trim().split(/\s+/).filter(e=>e.length).map((e,r)=>({element:t,attributeName:n,content:e,index:r}))}(e.getAttribute(t)||"",e,t)}}class N{constructor(e,t,n){this.tokenListObserver=new _(e,t,this),this.delegate=n,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}get started(){return this.tokenListObserver.started}start(){this.tokenListObserver.start()}stop(){this.tokenListObserver.stop()}refresh(){this.tokenListObserver.refresh()}get element(){return this.tokenListObserver.element}get attributeName(){return this.tokenListObserver.attributeName}tokenMatched(e){const{element:t}=e,{value:n}=this.fetchParseResultForToken(e);n&&(this.fetchValuesByTokenForElement(t).set(e,n),this.delegate.elementMatchedValue(t,n))}tokenUnmatched(e){const{element:t}=e,{value:n}=this.fetchParseResultForToken(e);n&&(this.fetchValuesByTokenForElement(t).delete(e),this.delegate.elementUnmatchedValue(t,n))}fetchParseResultForToken(e){let t=this.parseResultsByToken.get(e);return t||(t=this.parseToken(e),this.parseResultsByToken.set(e,t)),t}fetchValuesByTokenForElement(e){let t=this.valuesByTokenByElement.get(e);return t||(t=new Map,this.valuesByTokenByElement.set(e,t)),t}parseToken(e){try{return{value:this.delegate.parseValueForToken(e)}}catch(e){return{error:e}}}}class D{constructor(e,t){this.context=e,this.delegate=t,this.bindingsByAction=new Map}start(){this.valueListObserver||(this.valueListObserver=new N(this.element,this.actionAttribute,this),this.valueListObserver.start())}stop(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}get element(){return this.context.element}get identifier(){return this.context.identifier}get actionAttribute(){return this.schema.actionAttribute}get schema(){return this.context.schema}get bindings(){return Array.from(this.bindingsByAction.values())}connectAction(e){const t=new b(this.context,e);this.bindingsByAction.set(e,t),this.delegate.bindingConnected(t)}disconnectAction(e){const t=this.bindingsByAction.get(e);t&&(this.bindingsByAction.delete(e),this.delegate.bindingDisconnected(t))}disconnectAllActions(){this.bindings.forEach(e=>this.delegate.bindingDisconnected(e,!0)),this.bindingsByAction.clear()}parseValueForToken(e){const t=h.forToken(e,this.schema);if(t.identifier==this.identifier)return t}elementMatchedValue(e,t){this.connectAction(t)}elementUnmatchedValue(e,t){this.disconnectAction(t)}}class I{constructor(e,t){this.context=e,this.receiver=t,this.stringMapObserver=new A(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}start(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}stop(){this.stringMapObserver.stop()}get element(){return this.context.element}get controller(){return this.context.controller}getStringMapKeyForAttribute(e){if(e in this.valueDescriptorMap)return this.valueDescriptorMap[e].name}stringMapKeyAdded(e,t){const n=this.valueDescriptorMap[t];this.hasValue(e)||this.invokeChangedCallback(e,n.writer(this.receiver[e]),n.writer(n.defaultValue))}stringMapValueChanged(e,t,n){const r=this.valueDescriptorNameMap[t];null!==e&&(null===n&&(n=r.writer(r.defaultValue)),this.invokeChangedCallback(t,e,n))}stringMapKeyRemoved(e,t,n){const r=this.valueDescriptorNameMap[e];this.hasValue(e)?this.invokeChangedCallback(e,r.writer(this.receiver[e]),n):this.invokeChangedCallback(e,r.writer(r.defaultValue),n)}invokeChangedCallbacksForDefaultValues(){for(const{key:e,name:t,defaultValue:n,writer:r}of this.valueDescriptors)null==n||this.controller.data.has(e)||this.invokeChangedCallback(t,r(n),void 0)}invokeChangedCallback(e,t,n){const r=`${e}Changed`,i=this.receiver[r];if("function"==typeof i){const r=this.valueDescriptorNameMap[e];try{const e=r.reader(t);let o=n;n&&(o=r.reader(n)),i.call(this.receiver,e,o)}catch(e){throw e instanceof TypeError&&(e.message=`Stimulus Value "${this.context.identifier}.${r.name}" - ${e.message}`),e}}}get valueDescriptors(){const{valueDescriptorMap:e}=this;return Object.keys(e).map(t=>e[t])}get valueDescriptorNameMap(){const e={};return Object.keys(this.valueDescriptorMap).forEach(t=>{const n=this.valueDescriptorMap[t];e[n.name]=n}),e}hasValue(e){const t=`has${u(this.valueDescriptorNameMap[e].name)}`;return this.receiver[t]}}class P{constructor(e,t){this.context=e,this.delegate=t,this.targetsByName=new S}start(){this.tokenListObserver||(this.tokenListObserver=new _(this.element,this.attributeName,this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}tokenMatched({element:e,content:t}){this.scope.containsElement(e)&&this.connectTarget(e,t)}tokenUnmatched({element:e,content:t}){this.disconnectTarget(e,t)}connectTarget(e,t){var n;this.targetsByName.has(t,e)||(this.targetsByName.add(t,e),null===(n=this.tokenListObserver)||void 0===n||n.pause(()=>this.delegate.targetConnected(e,t)))}disconnectTarget(e,t){var n;this.targetsByName.has(t,e)&&(this.targetsByName.delete(t,e),null===(n=this.tokenListObserver)||void 0===n||n.pause(()=>this.delegate.targetDisconnected(e,t)))}disconnectAllTargets(){for(const e of this.targetsByName.keys)for(const t of this.targetsByName.getValuesForKey(e))this.disconnectTarget(t,e)}get attributeName(){return`data-${this.context.identifier}-target`}get element(){return this.context.element}get scope(){return this.context.scope}}function M(e,t){const n=F(e);return Array.from(n.reduce((e,n)=>(function(e,t){const n=e[t];return Array.isArray(n)?n:[]}(n,t).forEach(t=>e.add(t)),e),new Set))}function F(e){const t=[];for(;e;)t.push(e),e=Object.getPrototypeOf(e);return t.reverse()}class L{constructor(e,t){this.started=!1,this.context=e,this.delegate=t,this.outletsByName=new S,this.outletElementsByName=new S,this.selectorObserverMap=new Map,this.attributeObserverMap=new Map}start(){this.started||(this.outletDefinitions.forEach(e=>{this.setupSelectorObserverForOutlet(e),this.setupAttributeObserverForOutlet(e)}),this.started=!0,this.dependentContexts.forEach(e=>e.refresh()))}refresh(){this.selectorObserverMap.forEach(e=>e.refresh()),this.attributeObserverMap.forEach(e=>e.refresh())}stop(){this.started&&(this.started=!1,this.disconnectAllOutlets(),this.stopSelectorObservers(),this.stopAttributeObservers())}stopSelectorObservers(){this.selectorObserverMap.size>0&&(this.selectorObserverMap.forEach(e=>e.stop()),this.selectorObserverMap.clear())}stopAttributeObservers(){this.attributeObserverMap.size>0&&(this.attributeObserverMap.forEach(e=>e.stop()),this.attributeObserverMap.clear())}selectorMatched(e,t,{outletName:n}){const r=this.getOutlet(e,n);r&&this.connectOutlet(r,e,n)}selectorUnmatched(e,t,{outletName:n}){const r=this.getOutletFromMap(e,n);r&&this.disconnectOutlet(r,e,n)}selectorMatchElement(e,{outletName:t}){const n=this.selector(t),r=this.hasOutlet(e,t),i=e.matches(`[${this.schema.controllerAttribute}~=${t}]`);return!!n&&r&&i&&e.matches(n)}elementMatchedAttribute(e,t){const n=this.getOutletNameFromOutletAttributeName(t);n&&this.updateSelectorObserverForOutlet(n)}elementAttributeValueChanged(e,t){const n=this.getOutletNameFromOutletAttributeName(t);n&&this.updateSelectorObserverForOutlet(n)}elementUnmatchedAttribute(e,t){const n=this.getOutletNameFromOutletAttributeName(t);n&&this.updateSelectorObserverForOutlet(n)}connectOutlet(e,t,n){var r;this.outletElementsByName.has(n,t)||(this.outletsByName.add(n,e),this.outletElementsByName.add(n,t),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause(()=>this.delegate.outletConnected(e,t,n)))}disconnectOutlet(e,t,n){var r;this.outletElementsByName.has(n,t)&&(this.outletsByName.delete(n,e),this.outletElementsByName.delete(n,t),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause(()=>this.delegate.outletDisconnected(e,t,n)))}disconnectAllOutlets(){for(const e of this.outletElementsByName.keys)for(const t of this.outletElementsByName.getValuesForKey(e))for(const n of this.outletsByName.getValuesForKey(e))this.disconnectOutlet(n,t,e)}updateSelectorObserverForOutlet(e){const t=this.selectorObserverMap.get(e);t&&(t.selector=this.selector(e))}setupSelectorObserverForOutlet(e){const t=this.selector(e),n=new C(document.body,t,this,{outletName:e});this.selectorObserverMap.set(e,n),n.start()}setupAttributeObserverForOutlet(e){const t=this.attributeNameForOutletName(e),n=new w(this.scope.element,t,this);this.attributeObserverMap.set(e,n),n.start()}selector(e){return this.scope.outlets.getSelectorForOutletName(e)}attributeNameForOutletName(e){return this.scope.schema.outletAttributeForScope(this.identifier,e)}getOutletNameFromOutletAttributeName(e){return this.outletDefinitions.find(t=>this.attributeNameForOutletName(t)===e)}get outletDependencies(){const e=new S;return this.router.modules.forEach(t=>{M(t.definition.controllerConstructor,"outlets").forEach(n=>e.add(n,t.identifier))}),e}get outletDefinitions(){return this.outletDependencies.getKeysForValue(this.identifier)}get dependentControllerIdentifiers(){return this.outletDependencies.getValuesForKey(this.identifier)}get dependentContexts(){const e=this.dependentControllerIdentifiers;return this.router.contexts.filter(t=>e.includes(t.identifier))}hasOutlet(e,t){return!!this.getOutlet(e,t)||!!this.getOutletFromMap(e,t)}getOutlet(e,t){return this.application.getControllerForElementAndIdentifier(e,t)}getOutletFromMap(e,t){return this.outletsByName.getValuesForKey(t).find(t=>t.element===e)}get scope(){return this.context.scope}get schema(){return this.context.schema}get identifier(){return this.context.identifier}get application(){return this.context.application}get router(){return this.application.router}}class j{constructor(e,t){this.logDebugActivity=(e,t={})=>{const{identifier:n,controller:r,element:i}=this;t=Object.assign({identifier:n,controller:r,element:i},t),this.application.logDebugActivity(this.identifier,e,t)},this.module=e,this.scope=t,this.controller=new e.controllerConstructor(this),this.bindingObserver=new D(this,this.dispatcher),this.valueObserver=new I(this,this.controller),this.targetObserver=new P(this,this),this.outletObserver=new L(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(e){this.handleError(e,"initializing controller")}}connect(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(e){this.handleError(e,"connecting controller")}}refresh(){this.outletObserver.refresh()}disconnect(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(e){this.handleError(e,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}get application(){return this.module.application}get identifier(){return this.module.identifier}get schema(){return this.application.schema}get dispatcher(){return this.application.dispatcher}get element(){return this.scope.element}get parentElement(){return this.element.parentElement}handleError(e,t,n={}){const{identifier:r,controller:i,element:o}=this;n=Object.assign({identifier:r,controller:i,element:o},n),this.application.handleError(e,`Error ${t}`,n)}targetConnected(e,t){this.invokeControllerMethod(`${t}TargetConnected`,e)}targetDisconnected(e,t){this.invokeControllerMethod(`${t}TargetDisconnected`,e)}outletConnected(e,t,n){this.invokeControllerMethod(`${l(n)}OutletConnected`,e,t)}outletDisconnected(e,t,n){this.invokeControllerMethod(`${l(n)}OutletDisconnected`,e,t)}invokeControllerMethod(e,...t){const n=this.controller;"function"==typeof n[e]&&n[e](...t)}}const R="function"==typeof Object.getOwnPropertySymbols?e=>[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)]:Object.getOwnPropertyNames,$=(()=>{function e(e){function t(){return Reflect.construct(e,arguments,new.target)}return t.prototype=Object.create(e.prototype,{constructor:{value:t}}),Reflect.setPrototypeOf(t,e),t}try{return function(){const t=e(function(){this.a.call(this)});t.prototype.a=function(){},new t}(),e}catch(e){return e=>class extends e{}}})();class B{constructor(e,t){this.application=e,this.definition=function(e){return{identifier:e.identifier,controllerConstructor:(t=e.controllerConstructor,function(e,t){const n=$(e),r=function(e,t){return R(t).reduce((n,r)=>{const i=function(e,t,n){const r=Object.getOwnPropertyDescriptor(e,n);if(!r||!("value"in r)){const e=Object.getOwnPropertyDescriptor(t,n).value;return r&&(e.get=r.get||e.get,e.set=r.set||e.set),e}}(e,t,r);return i&&Object.assign(n,{[r]:i}),n},{})}(e.prototype,t);return Object.defineProperties(n.prototype,r),n}(t,function(e){return M(e,"blessings").reduce((t,n)=>{const r=n(e);for(const e in r){const n=t[e]||{};t[e]=Object.assign(n,r[e])}return t},{})}(t)))};var t}(t),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}get identifier(){return this.definition.identifier}get controllerConstructor(){return this.definition.controllerConstructor}get contexts(){return Array.from(this.connectedContexts)}connectContextForScope(e){const t=this.fetchContextForScope(e);this.connectedContexts.add(t),t.connect()}disconnectContextForScope(e){const t=this.contextsByScope.get(e);t&&(this.connectedContexts.delete(t),t.disconnect())}fetchContextForScope(e){let t=this.contextsByScope.get(e);return t||(t=new j(this,e),this.contextsByScope.set(e,t)),t}}class V{constructor(e){this.scope=e}has(e){return this.data.has(this.getDataKey(e))}get(e){return this.getAll(e)[0]}getAll(e){return(this.data.get(this.getDataKey(e))||"").match(/[^\s]+/g)||[]}getAttributeName(e){return this.data.getAttributeNameForKey(this.getDataKey(e))}getDataKey(e){return`${e}-class`}get data(){return this.scope.data}}class z{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get(e){const t=this.getAttributeNameForKey(e);return this.element.getAttribute(t)}set(e,t){const n=this.getAttributeNameForKey(e);return this.element.setAttribute(n,t),this.get(e)}has(e){const t=this.getAttributeNameForKey(e);return this.element.hasAttribute(t)}delete(e){if(this.has(e)){const t=this.getAttributeNameForKey(e);return this.element.removeAttribute(t),!0}return!1}getAttributeNameForKey(e){return`data-${this.identifier}-${c(e)}`}}class U{constructor(e){this.warnedKeysByObject=new WeakMap,this.logger=e}warn(e,t,n){let r=this.warnedKeysByObject.get(e);r||(r=new Set,this.warnedKeysByObject.set(e,r)),r.has(t)||(r.add(t),this.logger.warn(n,e))}}function K(e,t){return`[${e}~="${t}"]`}class W{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return null!=this.find(e)}find(...e){return e.reduce((e,t)=>e||this.findTarget(t)||this.findLegacyTarget(t),void 0)}findAll(...e){return e.reduce((e,t)=>[...e,...this.findAllTargets(t),...this.findAllLegacyTargets(t)],[])}findTarget(e){const t=this.getSelectorForTargetName(e);return this.scope.findElement(t)}findAllTargets(e){const t=this.getSelectorForTargetName(e);return this.scope.findAllElements(t)}getSelectorForTargetName(e){return K(this.schema.targetAttributeForScope(this.identifier),e)}findLegacyTarget(e){const t=this.getLegacySelectorForTargetName(e);return this.deprecate(this.scope.findElement(t),e)}findAllLegacyTargets(e){const t=this.getLegacySelectorForTargetName(e);return this.scope.findAllElements(t).map(t=>this.deprecate(t,e))}getLegacySelectorForTargetName(e){const t=`${this.identifier}.${e}`;return K(this.schema.targetAttribute,t)}deprecate(e,t){if(e){const{identifier:n}=this,r=this.schema.targetAttribute,i=this.schema.targetAttributeForScope(n);this.guide.warn(e,`target:${t}`,`Please replace ${r}="${n}.${t}" with ${i}="${t}". The ${r} attribute is deprecated and will be removed in a future version of Stimulus.`)}return e}get guide(){return this.scope.guide}}class H{constructor(e,t){this.scope=e,this.controllerElement=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return null!=this.find(e)}find(...e){return e.reduce((e,t)=>e||this.findOutlet(t),void 0)}findAll(...e){return e.reduce((e,t)=>[...e,...this.findAllOutlets(t)],[])}getSelectorForOutletName(e){const t=this.schema.outletAttributeForScope(this.identifier,e);return this.controllerElement.getAttribute(t)}findOutlet(e){const t=this.getSelectorForOutletName(e);if(t)return this.findElement(t,e)}findAllOutlets(e){const t=this.getSelectorForOutletName(e);return t?this.findAllElements(t,e):[]}findElement(e,t){return this.scope.queryElements(e).filter(n=>this.matchesElement(n,e,t))[0]}findAllElements(e,t){return this.scope.queryElements(e).filter(n=>this.matchesElement(n,e,t))}matchesElement(e,t,n){const r=e.getAttribute(this.scope.schema.controllerAttribute)||"";return e.matches(t)&&r.split(" ").includes(n)}}class q{constructor(e,t,n,r){this.targets=new W(this),this.classes=new V(this),this.data=new z(this),this.containsElement=e=>e.closest(this.controllerSelector)===this.element,this.schema=e,this.element=t,this.identifier=n,this.guide=new U(r),this.outlets=new H(this.documentScope,t)}findElement(e){return this.element.matches(e)?this.element:this.queryElements(e).find(this.containsElement)}findAllElements(e){return[...this.element.matches(e)?[this.element]:[],...this.queryElements(e).filter(this.containsElement)]}queryElements(e){return Array.from(this.element.querySelectorAll(e))}get controllerSelector(){return K(this.schema.controllerAttribute,this.identifier)}get isDocumentScope(){return this.element===document.documentElement}get documentScope(){return this.isDocumentScope?this:new q(this.schema,document.documentElement,this.identifier,this.guide.logger)}}class Q{constructor(e,t,n){this.element=e,this.schema=t,this.delegate=n,this.valueListObserver=new N(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}start(){this.valueListObserver.start()}stop(){this.valueListObserver.stop()}get controllerAttribute(){return this.schema.controllerAttribute}parseValueForToken(e){const{element:t,content:n}=e;return this.parseValueForElementAndIdentifier(t,n)}parseValueForElementAndIdentifier(e,t){const n=this.fetchScopesByIdentifierForElement(e);let r=n.get(t);return r||(r=this.delegate.createScopeForElementAndIdentifier(e,t),n.set(t,r)),r}elementMatchedValue(e,t){const n=(this.scopeReferenceCounts.get(t)||0)+1;this.scopeReferenceCounts.set(t,n),1==n&&this.delegate.scopeConnected(t)}elementUnmatchedValue(e,t){const n=this.scopeReferenceCounts.get(t);n&&(this.scopeReferenceCounts.set(t,n-1),1==n&&this.delegate.scopeDisconnected(t))}fetchScopesByIdentifierForElement(e){let t=this.scopesByIdentifierByElement.get(e);return t||(t=new Map,this.scopesByIdentifierByElement.set(e,t)),t}}class Y{constructor(e){this.application=e,this.scopeObserver=new Q(this.element,this.schema,this),this.scopesByIdentifier=new S,this.modulesByIdentifier=new Map}get element(){return this.application.element}get schema(){return this.application.schema}get logger(){return this.application.logger}get controllerAttribute(){return this.schema.controllerAttribute}get modules(){return Array.from(this.modulesByIdentifier.values())}get contexts(){return this.modules.reduce((e,t)=>e.concat(t.contexts),[])}start(){this.scopeObserver.start()}stop(){this.scopeObserver.stop()}loadDefinition(e){this.unloadIdentifier(e.identifier);const t=new B(this.application,e);this.connectModule(t);const n=e.controllerConstructor.afterLoad;n&&n.call(e.controllerConstructor,e.identifier,this.application)}unloadIdentifier(e){const t=this.modulesByIdentifier.get(e);t&&this.disconnectModule(t)}getContextForElementAndIdentifier(e,t){const n=this.modulesByIdentifier.get(t);if(n)return n.contexts.find(t=>t.element==e)}proposeToConnectScopeForElementAndIdentifier(e,t){const n=this.scopeObserver.parseValueForElementAndIdentifier(e,t);n?this.scopeObserver.elementMatchedValue(n.element,n):console.error(`Couldn't find or create scope for identifier: "${t}" and element:`,e)}handleError(e,t,n){this.application.handleError(e,t,n)}createScopeForElementAndIdentifier(e,t){return new q(this.schema,e,t,this.logger)}scopeConnected(e){this.scopesByIdentifier.add(e.identifier,e);const t=this.modulesByIdentifier.get(e.identifier);t&&t.connectContextForScope(e)}scopeDisconnected(e){this.scopesByIdentifier.delete(e.identifier,e);const t=this.modulesByIdentifier.get(e.identifier);t&&t.disconnectContextForScope(e)}connectModule(e){this.modulesByIdentifier.set(e.identifier,e),this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(t=>e.connectContextForScope(t))}disconnectModule(e){this.modulesByIdentifier.delete(e.identifier),this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(t=>e.disconnectContextForScope(t))}}const G={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:e=>`data-${e}-target`,outletAttributeForScope:(e,t)=>`data-${e}-${t}-outlet`,keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End",page_up:"PageUp",page_down:"PageDown"},X("abcdefghijklmnopqrstuvwxyz".split("").map(e=>[e,e]))),X("0123456789".split("").map(e=>[e,e])))};function X(e){return e.reduce((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n}),{})}class Z{constructor(e=document.documentElement,t=G){this.logger=console,this.debug=!1,this.logDebugActivity=(e,t,n={})=>{this.debug&&this.logFormattedMessage(e,t,n)},this.element=e,this.schema=t,this.dispatcher=new i(this),this.router=new Y(this),this.actionDescriptorFilters=Object.assign({},o)}static start(e,t){const n=new this(e,t);return n.start(),n}async start(){await new Promise(e=>{"loading"==document.readyState?document.addEventListener("DOMContentLoaded",()=>e()):e()}),this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start")}stop(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}register(e,t){this.load({identifier:e,controllerConstructor:t})}registerActionOption(e,t){this.actionDescriptorFilters[e]=t}load(e,...t){(Array.isArray(e)?e:[e,...t]).forEach(e=>{e.controllerConstructor.shouldLoad&&this.router.loadDefinition(e)})}unload(e,...t){(Array.isArray(e)?e:[e,...t]).forEach(e=>this.router.unloadIdentifier(e))}get controllers(){return this.router.contexts.map(e=>e.controller)}getControllerForElementAndIdentifier(e,t){const n=this.router.getContextForElementAndIdentifier(e,t);return n?n.controller:null}handleError(e,t,n){var r;this.logger.error("%s\n\n%o\n\n%o",t,e,n),null===(r=window.onerror)||void 0===r||r.call(window,t,"",0,0,e)}logFormattedMessage(e,t,n={}){n=Object.assign({application:this},n),this.logger.groupCollapsed(`${e} #${t}`),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}}function J(e,t,n){return e.application.getControllerForElementAndIdentifier(t,n)}function ee(e,t,n){let r=J(e,t,n);return r||(e.application.router.proposeToConnectScopeForElementAndIdentifier(t,n),r=J(e,t,n),r||void 0)}function te([e,t],n){return function(e){const{token:t,typeDefinition:n}=e,r=`${c(t)}-value`,i=function(e){const{controller:t,token:n,typeDefinition:r}=e,i=function(e){const{controller:t,token:n,typeObject:r}=e,i=d(r.type),o=d(r.default),a=i&&o,s=i&&!o,l=!i&&o,u=ne(r.type),c=re(e.typeObject.default);if(s)return u;if(l)return c;if(u!==c)throw new Error(`The specified default value for the Stimulus Value "${t?`${t}.${n}`:n}" must match the defined type "${u}". The provided default value of "${r.default}" is of type "${c}".`);return a?u:void 0}({controller:t,token:n,typeObject:r}),o=re(r),a=ne(r),s=i||o||a;if(s)return s;throw new Error(`Unknown value type "${t?`${t}.${r}`:n}" for "${n}" value`)}(e);return{type:i,key:r,name:s(r),get defaultValue(){return function(e){const t=ne(e);if(t)return ie[t];const n=f(e,"default"),r=f(e,"type"),i=e;if(n)return i.default;if(r){const{type:e}=i,t=ne(e);if(t)return ie[t]}return e}(n)},get hasCustomDefaultValue(){return void 0!==re(n)},reader:oe[i],writer:ae[i]||ae.default}}({controller:n,token:e,typeDefinition:t})}function ne(e){switch(e){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function re(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}return Array.isArray(e)?"array":"[object Object]"===Object.prototype.toString.call(e)?"object":void 0}const ie={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},oe={array(e){const t=JSON.parse(e);if(!Array.isArray(t))throw new TypeError(`expected value of type "array" but instead got value "${e}" of type "${re(t)}"`);return t},boolean:e=>!("0"==e||"false"==String(e).toLowerCase()),number:e=>Number(e.replace(/_/g,"")),object(e){const t=JSON.parse(e);if(null===t||"object"!=typeof t||Array.isArray(t))throw new TypeError(`expected value of type "object" but instead got value "${e}" of type "${re(t)}"`);return t},string:e=>e},ae={default:function(e){return`${e}`},array:se,object:se};function se(e){return JSON.stringify(e)}class le{constructor(e){this.context=e}static get shouldLoad(){return!0}static afterLoad(e,t){}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:t=this.element,detail:n={},prefix:r=this.identifier,bubbles:i=!0,cancelable:o=!0}={}){const a=new CustomEvent(r?`${r}:${e}`:e,{detail:n,bubbles:i,cancelable:o});return t.dispatchEvent(a),a}}le.blessings=[function(e){return M(e,"classes").reduce((e,t)=>{return Object.assign(e,(n=t,{[`${n}Class`]:{get(){const{classes:e}=this;if(e.has(n))return e.get(n);{const t=e.getAttributeName(n);throw new Error(`Missing attribute "${t}"`)}}},[`${n}Classes`]:{get(){return this.classes.getAll(n)}},[`has${u(n)}Class`]:{get(){return this.classes.has(n)}}}));var n},{})},function(e){return M(e,"targets").reduce((e,t)=>{return Object.assign(e,(n=t,{[`${n}Target`]:{get(){const e=this.targets.find(n);if(e)return e;throw new Error(`Missing target element "${n}" for "${this.identifier}" controller`)}},[`${n}Targets`]:{get(){return this.targets.findAll(n)}},[`has${u(n)}Target`]:{get(){return this.targets.has(n)}}}));var n},{})},function(e){const t=function(e,t){return F(e).reduce((e,n)=>(e.push(...function(e,t){const n=e[t];return n?Object.keys(n).map(e=>[e,n[e]]):[]}(n,t)),e),[])}(e,"values"),n={valueDescriptorMap:{get(){return t.reduce((e,t)=>{const n=te(t,this.identifier),r=this.data.getAttributeNameForKey(n.key);return Object.assign(e,{[r]:n})},{})}}};return t.reduce((e,t)=>Object.assign(e,function(e){const t=te(e,void 0),{key:n,name:r,reader:i,writer:o}=t;return{[r]:{get(){const e=this.data.get(n);return null!==e?i(e):t.defaultValue},set(e){void 0===e?this.data.delete(n):this.data.set(n,o(e))}},[`has${u(r)}`]:{get(){return this.data.has(n)||t.hasCustomDefaultValue}}}}(t)),n)},function(e){return M(e,"outlets").reduce((e,t)=>Object.assign(e,function(e){const t=l(e);return{[`${t}Outlet`]:{get(){const t=this.outlets.find(e),n=this.outlets.getSelectorForOutletName(e);if(t){const n=ee(this,t,e);if(n)return n;throw new Error(`The provided outlet element is missing an outlet controller "${e}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${e}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${t}Outlets`]:{get(){const t=this.outlets.findAll(e);return t.length>0?t.map(t=>{const n=ee(this,t,e);if(n)return n;console.warn(`The provided outlet element is missing an outlet controller "${e}" instance for host controller "${this.identifier}"`,t)}).filter(e=>e):[]}},[`${t}OutletElement`]:{get(){const t=this.outlets.find(e),n=this.outlets.getSelectorForOutletName(e);if(t)return t;throw new Error(`Missing outlet element "${e}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${t}OutletElements`]:{get(){return this.outlets.findAll(e)}},[`has${u(t)}Outlet`]:{get(){return this.outlets.has(e)}}}}(t)),{})}],le.targets=[],le.outlets=[],le.values={}},2898:(e,t,n)=>{"use strict";n.d(t,{HE:()=>r,KV:()=>i,kf:()=>o});const r=((e=n.g.wagtailConfig)=>{if(e)return e;try{const e=document.getElementById("wagtail-config")?.textContent||"";return JSON.parse(e)}catch(e){return console.error("Error loading Wagtail config"),console.error(e),{}}})(),i=200,o=(r.LOCALES||[]).reduce((e,{code:t,display_name:n})=>(e.set(t,n),e),new Map)},2958:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=function(e){if(!e)return e;var t={};return r.Children.map(e,function(e){return e}).forEach(function(e){t[e.key]=e}),t},t.mergeChildMappings=function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var l in t){if(r.hasOwnProperty(l))for(a=0;a<r[l].length;a++){var u=r[l][a];s[r[l][a]]=n(u)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s};var r=n(2427)},2963:(e,t,n)=>{"use strict";var r=n(4994);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(598));e.exports=t.default},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case i:return t}}}function k(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||E(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},3318:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>s}),/^(114|262|591|61)$/.test(n.j))var r=n(222);if(/^(114|262|591|61)$/.test(n.j))var i=n(8979);if(/^(114|262|591|61)$/.test(n.j))var o=n(5581);if(/^(114|262|591|61)$/.test(n.j))var a=n(6233);function s(e){return e!==(0,i.A)(e)&&(0,o.sb)(e)?(0,a.A)(e):(0,r.A)(e)}},3341:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>s}),/^(114|262|591|61)$/.test(n.j))var r=n(9970);if(/^(114|262|591|61)$/.test(n.j))var i=n(2083);if(/^(114|262|591|61)$/.test(n.j))var o=n(8979);if(/^(114|262|591|61)$/.test(n.j))var a=n(134);function s(e,t){var n;void 0===t&&(t=[]);var l=(0,r.A)(e),u=l===(null==(n=e.ownerDocument)?void 0:n.body),c=(0,o.A)(l),d=u?[c].concat(c.visualViewport||[],(0,a.A)(l)?l:[]):l,f=t.concat(d);return u?f:f.concat(s((0,i.A)(d)))}},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},3476:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r=()=>{}},4002:(e,t,n)=>{"use strict";var r=n(4994);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var i,o,a,s,l,u,c,d,f,p,h,m=r(n(1833)),v="transform";if(t.transform=v,t.animationEnd=a,t.transitionEnd=o,t.transitionDelay=c,t.transitionTiming=u,t.transitionDuration=l,t.transitionProperty=s,t.animationDelay=h,t.animationTiming=p,t.animationDuration=f,t.animationName=d,m.default){var g=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},i=Object.keys(r),o="",a=0;a<i.length;a++){var s=i[a];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:o}}();i=g.prefix,t.transitionEnd=o=g.transitionEnd,t.animationEnd=a=g.animationEnd,t.transform=v=i+"-"+v,t.transitionProperty=s=i+"-transition-property",t.transitionDuration=l=i+"-transition-duration",t.transitionDelay=c=i+"-transition-delay",t.transitionTiming=u=i+"-transition-timing-function",t.animationName=d=i+"-animation-name",t.animationDuration=f=i+"-animation-duration",t.animationTiming=p=i+"-animation-delay",t.animationDelay=h=i+"-animation-timing-function"}var b={transform:v,end:o,property:s,timing:u,delay:c,duration:l};t.default=b},4072:(e,t,n)=>{"use strict";n.d(t,{KX:()=>i});const r=":w:";function i(e){const t=e||new URLSearchParams(function(){const e=window.location.hash,t=e.indexOf(r);return-1===t?"":e.slice(t+r.length)}()).get("contentpath");return t?document.querySelector(function(e){return e.split(".").reduce((e,t)=>{if(!t)return e;const n=`[data-contentpath="${t}"]`;return e?`${e} ${n}`:n},"")}(t)):null}},4146:(e,t,n)=>{"use strict";var r=n(3404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var g=a[v];if(!(o[g]||r&&r[g]||m&&m[g]||s&&s[g])){var b=f(n,g);try{u(t,g,b)}catch(e){}}}}return t}},4160:(e,t,n)=>{"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return e}()},4188:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});const r=(e,t)=>!!e&&Object.prototype.hasOwnProperty.call(e,t)},4278:(e,t,n)=>{"use strict";n.d(t,{DD:()=>v,GM:()=>g,Mn:()=>r,OM:()=>l,Ol:()=>m,R9:()=>f,WY:()=>d,_N:()=>c,ir:()=>h,kb:()=>a,ni:()=>u,pG:()=>o,qZ:()=>s,sQ:()=>i,xf:()=>p});var r="top",i="bottom",o="right",a="left",s="auto",l=[r,i,o,a],u="start",c="end",d="clippingParents",f="viewport",p="popper",h="reference",m=/^(114|262|591|61)$/.test(n.j)?l.reduce(function(e,t){return e.concat([t+"-"+u,t+"-"+c])},[]):null,v=/^(114|262|591|61)$/.test(n.j)?[].concat(l,[s]).reduce(function(e,t){return e.concat([t,t+"-"+u,t+"-"+c])},[]):null,g=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},4318:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(7364);function i(e){return Object.assign({},(0,r.A)(),e)}},4327:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}n.d(t,{Z:()=>r})},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},4426:(e,t,n)=>{"use strict";function r(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}n.d(t,{A:()=>r})},4545:(e,t,n)=>{"use strict";if(n.d(t,{$:()=>i,U:()=>o}),/^(591|702)$/.test(n.j))var r=n(4327);const i=e=>{e.querySelectorAll(":scope > .help-block.help-critical").forEach(e=>e.remove())},o=(e,t)=>{t.forEach(t=>{const n=document.createElement("p");n.classList.add("help-block"),n.classList.add("help-critical"),n.innerHTML=(0,r.Z)(t),e.insertBefore(n,e.childNodes[0])})}},4549:(e,t,n)=>{"use strict";n.d(t,{qc:()=>p,b5:()=>h,Mn:()=>f,Ay:()=>v});var r=n(2427),i=n.n(r),o=n(2321),a=n(2833),s=n(2898);function l({item:{label:e,description:t,blockDefId:n},previewLabel:r}){const o=n?new URL(s.HE.ADMIN_URLS.BLOCK_PREVIEW,window.location.href):void 0;return o?.searchParams.append("id",n||""),i().createElement("div",{className:"w-combobox-preview"},i().createElement("iframe",{className:"w-combobox-preview__iframe",title:r,src:o?.toString()}),i().createElement("div",{className:"w-combobox-preview__details"},i().createElement("div",{className:"w-combobox-preview__label"},e),t?i().createElement("p",{className:"w-combobox-preview__description"},t):null))}var u=n(1238);const c=new Intl.Collator(void 0,{usage:"search",sensitivity:"base",ignorePunctuation:!0}),d=(e,t,n)=>e.filter(e=>t(e).some(e=>e&&((e,t)=>{if(0===t.length)return!0;const n=e.normalize("NFC"),r=t.normalize("NFC");for(let e=0;e+r.length<=n.length;e+=1){const t=n.slice(e,e+r.length);if(0===c.compare(r,t))return!0}return!1})(e,n))),f=(0,a.AP)("Insert a block"),p=(0,a.AP)("Search options…"),h=(0,a.AP)("No results"),m=(0,a.AP)("Preview");function v({label:e,placeholder:t,inputValue:n,items:a,getItemLabel:s,getItemDescription:c,getSearchFields:f,onSelect:p,noResultsText:h}){const v=!e,g=a.flatMap(e=>e.items||[]),[b,y]=(0,r.useState)(g),[w,E]=(0,r.useState)(-1),k=a.reduce((e,t,n)=>t.label||0===n?[...e,{...t,items:t.items.slice()}]:(e[n-1].items=e[n-1].items.concat(t.items),e),[]),x=0===b.length,{getLabelProps:T,getMenuProps:S,getInputProps:O,getItemProps:C,setHighlightedIndex:A,setInputValue:_,openMenu:N}=(0,o.Bp)({...void 0!==n&&{inputValue:n},initialInputValue:n||"",items:b,itemToString:e=>e&&(c(e)||s(e.type,e))||"",selectedItem:null,onSelectedItemChange:e=>{switch(e.type){case o.Bp.stateChangeTypes.InputKeyDownEnter:case o.Bp.stateChangeTypes.ItemClick:p(e)}},stateReducer:(e,t)=>{const{type:n,changes:r}=t;return n===o.Bp.stateChangeTypes.InputBlur?{...r,isOpen:e.isOpen,highlightedIndex:e.highlightedIndex,inputValue:e.inputValue}:r},onInputValueChange:e=>{E(-1);const{inputValue:t}=e;if(!t)return void y(g);const n=d(g,f,t);y(n),A(0)}});(0,r.useEffect)(()=>{if(n){N(),_(n);const e=d(g,f,n);y(e),A(0)}else _(""),y(g),A(-1)},[n]);const D=w>=0?b[w]:null;return i().createElement("div",{className:"w-combobox-container"},i().createElement("div",{className:"w-combobox"},i().createElement("label",{...T(),className:"w-sr-only"},e),i().createElement("div",{className:"w-combobox__field"},i().createElement("input",{...O(),type:"text",disabled:v,placeholder:t})),x?i().createElement("div",{className:"w-combobox__status"},h):null,i().createElement("div",{...S(),className:"w-combobox__menu"},k.map(e=>{const t=(e.items||[]).filter(e=>b.find(t=>t.type===e.type)),n=Math.ceil(t.length/2);return 0===t.length?null:i().createElement("div",{className:"w-combobox__optgroup",key:e.type},e.label?i().createElement("div",{className:"w-combobox__optgroup-label"},e.label):null,t.map((e,t)=>{const r=s(e.type,e),o=c(e),a=b.findIndex(t=>t.type===e.type),l=t+1<=n?1:2,d=void 0!==e.icon&&null!==e.icon;let f=null;return d&&(f=Array.isArray(e.icon)?i().createElement(u.A,{name:"custom",viewBox:"0 0 1024 1024"},e.icon.map(e=>i().createElement("path",{key:e,d:e}))):"string"==typeof e.icon?i().createElement(u.A,{name:e.icon}):e.icon),i().createElement("div",{key:e.type,className:`w-combobox__option-row w-combobox__option-row--col${l}`},i().createElement("div",{...C({item:e,index:a}),className:"w-combobox__option"},i().createElement("div",{className:"w-combobox__option-icon"},f,r&&!d?i().createElement("span",null,r):null),i().createElement("div",{className:"w-combobox__option-text"},e.render?e.render({option:e}):o)),e.isPreviewable?i().createElement("button",{className:"w-combobox__option-preview","aria-label":m,"aria-expanded":w===a,type:"button",onClick:()=>E(w===a?-1:a)},i().createElement(u.A,{name:"view"})):null)}))}))),D?.isPreviewable?i().createElement(l,{item:D,previewLabel:m}):null)}},4595:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(2427),i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},4602:(e,t,n)=>{"use strict";var r=n(4994);t.__esModule=!0,t.default=void 0;var i,o=r(n(1833)),a="clearTimeout",s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-u)),r=setTimeout(e,n);return u=t,r},l=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};o.default&&["","webkit","moz","o","ms"].some(function(e){var t=l(e,"request");if(t in window)return a=l(e,"cancel"),s=function(e){return window[t](e)}});var u=(new Date).getTime();(i=function(e){return s(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var c=i;t.default=c,e.exports=t.default},4708:(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)}function i(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,l(r.key),r)}}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}var u=n(2427),c=n(5556),d=n(2697).createFocusTrap,f=n(9054).isFocusable,p=function(e){function t(e){var n,i,s,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=a(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,o()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}(this,t,[e]),i=n,u=function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];n=n.apply(void 0,i)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a,s=n;if("string"==typeof n&&!(s=null===(a=this.getDocument())||void 0===a?void 0:a.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},(s=l(s="getNodeForOption"))in i?Object.defineProperty(i,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[s]=u,n.handleDeactivate=n.handleDeactivate.bind(n),n.handlePostDeactivate=n.handlePostDeactivate.bind(n),n.handleClickOutsideDeactivates=n.handleClickOutsideDeactivates.bind(n),n.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:n.handleDeactivate,onPostDeactivate:n.handlePostDeactivate,clickOutsideDeactivates:n.handleClickOutsideDeactivates},n.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var c=e.focusTrapOptions;for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&("returnFocusOnDeactivate"!==d&&"onDeactivate"!==d&&"onPostDeactivate"!==d&&"checkCanReturnFocus"!==d&&"clickOutsideDeactivates"!==d?n.internalOptions[d]=c[d]:n.originalOptions[d]=c[d]);return n.outsideClick=null,n.focusTrapElements=e.containerElements||[],n.updatePreviousElement(),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,(c=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||f(e.outsideClick.target,e.internalOptions.tabbableOptions))),r=e.internalOptions.preventScroll,i=void 0!==r&&r;n&&t.focus({preventScroll:i}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?u.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===u.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return u.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&i(n.prototype,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,c}(u.Component),h="undefined"==typeof Element?Function:Element;p.propTypes={active:c.bool,paused:c.bool,focusTrapOptions:c.shape({document:c.object,onActivate:c.func,onPostActivate:c.func,checkCanFocusTrap:c.func,onPause:c.func,onPostPause:c.func,onUnpause:c.func,onPostUnpause:c.func,onDeactivate:c.func,onPostDeactivate:c.func,checkCanReturnFocus:c.func,initialFocus:c.oneOfType([c.instanceOf(h),c.string,c.bool,c.func]),fallbackFocus:c.oneOfType([c.instanceOf(h),c.string,c.func]),escapeDeactivates:c.oneOfType([c.bool,c.func]),clickOutsideDeactivates:c.oneOfType([c.bool,c.func]),returnFocusOnDeactivate:c.bool,setReturnFocus:c.oneOfType([c.instanceOf(h),c.string,c.bool,c.func]),allowOutsideClick:c.oneOfType([c.bool,c.func]),preventScroll:c.bool,tabbableOptions:c.shape({displayCheck:c.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:c.oneOfType([c.bool,c.func])}),trapStack:c.array,isKeyForward:c.func,isKeyBackward:c.func}),containerElements:c.arrayOf(c.instanceOf(h)),children:c.oneOfType([c.element,c.instanceOf(h)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=p},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5128:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>c}),/^(114|262|591|61)$/.test(n.j))var r=n(8979);if(/^(114|262|591|61)$/.test(n.j))var i=n(7604);if(/^(114|262|591|61)$/.test(n.j))var o=n(271);if(/^(114|262|591|61)$/.test(n.j))var a=n(5581);if(/^(114|262|591|61)$/.test(n.j))var s=n(2063);if(/^(114|262|591|61)$/.test(n.j))var l=n(2083);function u(e){return(0,a.sb)(e)&&"fixed"!==(0,o.A)(e).position?e.offsetParent:null}function c(e){for(var t=(0,r.A)(e),n=u(e);n&&(0,s.A)(n)&&"static"===(0,o.A)(n).position;)n=u(n);return n&&("html"===(0,i.A)(n)||"body"===(0,i.A)(n)&&"static"===(0,o.A)(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,a.sb)(e)&&"fixed"===(0,o.A)(e).position)return null;for(var n=(0,l.A)(e);(0,a.sb)(n)&&["html","body"].indexOf((0,i.A)(n))<0;){var r=(0,o.A)(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}},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},5287:(e,t,n)=>{"use strict";var r=n(5228),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}function E(){}function k(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||b}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=w.prototype;var x=k.prototype=new E;x.constructor=k,r(x,w.prototype),x.isPureReactComponent=!0;var T={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:T.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var _=/\/+/g,N=[];function D(e,t,n,r){if(N.length){var i=N.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>N.length&&N.push(e)}function P(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return n(r,e,""===t?"."+F(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=t+F(i=e[l],l);s+=P(i,u,n,r)}else if("function"==typeof(u=null===e||"object"!=typeof e?null:"function"==typeof(u=v&&e[v]||e["@@iterator"])?u:null))for(e=u.call(e),l=0;!(i=e.next()).done;)s+=P(i=i.value,u=t+F(i,l++),n,r);else if("object"===i)throw n=""+e,Error(g(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function M(e,t,n){return null==e?0:P(e,"",t,n)}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function j(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?R(e,r,n,function(e){return e}):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(_,"$&/")+"/")+n)),r.push(e))}function R(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(_,"$&/")+"/"),M(e,j,t=D(t,o,r,i)),I(t)}var $={current:null};function B(){var e=$.current;if(null===e)throw Error(g(321));return e}var V={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return R(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;M(e,L,t=D(null,null,t,n)),I(t)},count:function(e){return M(e,function(){return null},null)},toArray:function(e){var t=[];return R(e,t,null,function(e){return e}),t},only:function(e){if(!A(e))throw Error(g(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=u,t.PureComponent=k,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cloneElement=function(e,t,n){if(null==e)throw Error(g(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=T.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},5446:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(5581);function i(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}},5487:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>a}),/^(114|262|591|61)$/.test(n.j))var r=n(8979);if(/^(114|262|591|61)$/.test(n.j))var i=n(9760);if(/^(114|262|591|61)$/.test(n.j))var o=n(793);function a(e){var t=(0,r.A)(e),n=(0,i.A)(e),a=t.visualViewport,s=n.clientWidth,l=n.clientHeight,u=0,c=0;return a&&(s=a.width,l=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=a.offsetLeft,c=a.offsetTop)),{width:s,height:l,x:u+(0,o.A)(e),y:c}}},5533:e=>{e.exports=function(){for(var e=arguments.length,t=[],n=0;n<e;n++)t[n]=arguments[n];if(0!==(t=t.filter(function(e){return null!=e})).length)return 1===t.length?t[0]:t.reduce(function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}})}},5556:(e,t,n)=>{e.exports=n(2694)()},5581:(e,t,n)=>{"use strict";if(n.d(t,{Ng:()=>a,sb:()=>o,vq:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(8979);function i(e){return e instanceof(0,r.A)(e).Element||e instanceof Element}function o(e){return e instanceof(0,r.A)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.A)(e).ShadowRoot||e instanceof ShadowRoot)}},5996:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(5556),i=n.n(r),o=n(2427),a=n(6931);class s extends o.Component{static propTypes={onClose:i().func.isRequired,node:i().instanceOf(Element),children:i().node,closeOnClick:i().bool,closeOnType:i().bool,closeOnResize:i().bool};static defaultProps={node:document.body,children:null,closeOnClick:!1,closeOnType:!1,closeOnResize:!1};portal;constructor(e){super(e),this.portal=document.createElement("div"),this.onCloseEvent=this.onCloseEvent.bind(this)}onCloseEvent(e){const{onClose:t}=this.props,n=e.target;this.portal.contains(n)||t()}componentDidMount(){const{node:e,onClose:t,closeOnClick:n,closeOnType:r,closeOnResize:i}=this.props;e.appendChild(this.portal),n&&document.addEventListener("mouseup",this.onCloseEvent),r&&document.addEventListener("keyup",this.onCloseEvent),i&&window.addEventListener("resize",t)}componentWillUnmount(){const{node:e,onClose:t}=this.props;e.removeChild(this.portal),document.removeEventListener("mouseup",this.onCloseEvent),document.removeEventListener("keyup",this.onCloseEvent),window.removeEventListener("resize",t)}render(){const{children:e}=this.props;return(0,a.createPortal)(e,this.portal)}}const l=/^(114|262)$/.test(n.j)?s:null},6032:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});const r=e=>{if(!e.type||"application/javascript"===e.type){const t=document.createElement("script");Array.from(e.attributes).forEach(e=>t.setAttribute(e.nodeName,e.nodeValue||"")),t.text=e.text,e.replaceWith(t)}},i=e=>{const t="script:not([src])";e instanceof HTMLElement&&e.matches(t)?r(e):e.querySelectorAll(t).forEach(r)}},6233:(e,t,n)=>{"use strict";function r(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}n.d(t,{A:()=>r})},6338:(e,t,n)=>{"use strict";n(1458),n(387)},6354:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>o}),/^(114|262|591|61)$/.test(n.j))var r=n(5581);if(/^(114|262|591|61)$/.test(n.j))var i=n(6906);function o(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if((0,r.sb)(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(o=(0,i.LI)(n.width)/l||1),s>0&&(a=(0,i.LI)(n.height)/s||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}},6411:(e,t,n)=>{var r;!function(i,o){if(i){for(var a,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},c={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)s[111+d]="f"+d;for(d=0;d<=9;++d)s[d+96]=d.toString();y.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},y.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},y.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},y.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(b(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);a=null},y.init=function(){var e=y(o);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),i.Mousetrap=y,e.exports&&(e.exports=y),void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function h(e,t){return e.sort().join(",")===t.sort().join(",")}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function v(e,t,n){return n||(n=function(){if(!a)for(var e in a={},s)e>95&&e<112||s.hasOwnProperty(e)&&(a[s[e]]=e);return a}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function g(e,t){var n,r,i,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i<n.length;++i)r=n[i],c[r]&&(r=c[r]),t&&"keypress"!=t&&u[r]&&(r=u[r],o.push("shift")),m(r)&&o.push(r);return{key:r,modifiers:o,action:t=v(r,o,t)}}function b(e,t){return null!==e&&e!==o&&(e===t||b(e.parentNode,t))}function y(e){var t=this;if(e=e||o,!(t instanceof y))return new y(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},i=!1,a=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function u(e,n,i,o,a,s){var l,u,c=[],d=i.type;if(!t._callbacks[e])return[];for("keyup"==d&&m(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(u=t._callbacks[e][l],(o||!u.seq||r[u.seq]==u.level)&&d==u.action&&("keypress"==d&&!i.metaKey&&!i.ctrlKey||h(n,u.modifiers))){var f=!o&&u.combo==a,p=o&&u.seq==o&&u.level==s;(f||p)&&t._callbacks[e].splice(l,1),c.push(u)}return c}function c(e,n,r,i){t.stopCallback(n,n.target||n.srcElement,r,i)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=p(e);n&&("keyup"!=e.type||i!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):i=!1)}function v(e,o,a,d,f){t._directMap[e+":"+a]=o;var h,m=(e=e.replace(/\s+/g," ")).split(" ");m.length>1?function(e,t,o,a){function u(t){return function(){s=t,++r[e],clearTimeout(n),n=setTimeout(l,1e3)}}function d(t){c(o,t,e),"keyup"!==a&&(i=p(t)),setTimeout(l,10)}r[e]=0;for(var f=0;f<t.length;++f){var h=f+1===t.length?d:u(a||g(t[f+1]).action);v(t[f],h,a,e,f)}}(e,m,o,a):(h=g(e,a),t._callbacks[h.key]=t._callbacks[h.key]||[],u(h.key,h.modifiers,{type:h.action},d,e,f),t._callbacks[h.key][d?"unshift":"push"]({callback:o,modifiers:h.modifiers,action:h.action,seq:d,level:f,combo:e}))}t._handleKey=function(e,t,n){var r,i=u(e,t,n),o={},d=0,f=!1;for(r=0;r<i.length;++r)i[r].seq&&(d=Math.max(d,i[r].level));for(r=0;r<i.length;++r)if(i[r].seq){if(i[r].level!=d)continue;f=!0,o[i[r].seq]=1,c(i[r].callback,n,i[r].combo,i[r].seq)}else f||c(i[r].callback,n,i[r].combo);var p="keypress"==n.type&&a;n.type!=s||m(e)||p||l(o),a=f&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)v(e[r],t,n)},f(e,"keypress",d),f(e,"keydown",d),f(e,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6778:(e,t,n)=>{"use strict";function r(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function i(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function o(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=i(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=i(o),o=r(t,n)),o},r}}n.d(t,{Qb:()=>o,o6:()=>r})},6906:(e,t,n)=>{"use strict";n.d(t,{LI:()=>o,T9:()=>r,jk:()=>i});var r=Math.max,i=Math.min,o=Math.round},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6931:(e,t,n)=>{var r=n(961);n(4160).ReactDOM=r,e.exports=r},6979:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(6354);function i(e){var t=(0,r.A)(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}},7241:(e,t,n)=>{"use strict";t.__esModule=!0;var 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},i=f(n(2963)),o=f(n(788)),a=f(n(4602)),s=n(4002),l=f(n(2427)),u=f(n(5556)),c=n(6931),d=n(554);function f(e){return e&&e.__esModule?e:{default:e}}function p(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}var h=[];s.transitionEnd&&h.push(s.transitionEnd),s.animationEnd&&h.push(s.animationEnd),u.default.node,d.nameShape.isRequired,u.default.bool,u.default.bool,u.default.bool,u.default.number,u.default.number,u.default.number;var m=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,e.call.apply(e,[this].concat(o))),r.componentWillAppear=function(e){r.props.appear?r.transition("appear",e,r.props.appearTimeout):e()},r.componentWillEnter=function(e){r.props.enter?r.transition("enter",e,r.props.enterTimeout):e()},r.componentWillLeave=function(e){r.props.leave?r.transition("leave",e,r.props.leaveTimeout):e()},p(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.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},t.prototype.transition=function(e,t,n){var r=(0,c.findDOMNode)(this);if(r){var a=this.props.name[e]||this.props.name+"-"+e,l=this.props.name[e+"Active"]||a+"-active",u=null,d=void 0;(0,i.default)(r,a),this.queueClassAndNode(l,r);var f=function(e){e&&e.target!==r||(clearTimeout(u),d&&d(),(0,o.default)(r,a),(0,o.default)(r,l),d&&d(),t&&t())};n?(u=setTimeout(f,n),this.transitionTimeouts.push(u)):s.transitionEnd&&(d=function(e,t){return h.length?h.forEach(function(n){return e.addEventListener(n,t,!1)}):setTimeout(t,0),function(){h.length&&h.forEach(function(n){return e.removeEventListener(n,t,!1)})}}(r,f))}else t&&t()},t.prototype.queueClassAndNode=function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=(0,a.default)(function(){return n.flushClassNameAndNodeQueue()}))},t.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(e){e.node.scrollTop,(0,i.default)(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},t.prototype.render=function(){var e=r({},this.props);return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,l.default.cloneElement(l.default.Children.only(this.props.children),e)},t}(l.default.Component);m.displayName="CSSTransitionGroupChild",m.propTypes={},t.default=m,e.exports=t.default},7310:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>d}),/^(114|262|591|61)$/.test(n.j))var r=n(6354);if(/^(114|262|591|61)$/.test(n.j))var i=n(3318);if(/^(114|262|591|61)$/.test(n.j))var o=n(7604);if(/^(114|262|591|61)$/.test(n.j))var a=n(5581);if(/^(114|262|591|61)$/.test(n.j))var s=n(793);if(/^(114|262|591|61)$/.test(n.j))var l=n(9760);if(/^(114|262|591|61)$/.test(n.j))var u=n(134);if(/^(114|262|591|61)$/.test(n.j))var c=n(6906);function d(e,t,n){void 0===n&&(n=!1);var d=(0,a.sb)(t),f=(0,a.sb)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,c.LI)(t.width)/e.offsetWidth||1,r=(0,c.LI)(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),p=(0,l.A)(t),h=(0,r.A)(e,f),m={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!n)&&(("body"!==(0,o.A)(t)||(0,u.A)(p))&&(m=(0,i.A)(t)),(0,a.sb)(t)?((v=(0,r.A)(t,!0)).x+=t.clientLeft,v.y+=t.clientTop):p&&(v.x=(0,s.A)(p))),{x:h.left+m.scrollLeft-v.x,y:h.top+m.scrollTop-v.y,width:h.width,height:h.height}}},7364:(e,t,n)=>{"use strict";function r(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{A:()=>r})},7381:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Ie});var r=n(7310),i=n(6979),o=n(3341),a=n(5128),s=n(1206),l=n(571),u=n(844),c=n(5581),d={placement:"bottom",modifiers:[],strategy:"absolute"};function f(){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 p(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,p=void 0===n?[]:n,h=t.defaultOptions,m=void 0===h?d:h;return function(e,t,n){void 0===n&&(n=m);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},d,m),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},v=[],g=!1,b={state:h,setOptions:function(n){var r="function"==typeof n?n(h.options):n;y(),h.options=Object.assign({},m,h.options,r),h.scrollParents={reference:(0,c.vq)(e)?(0,o.A)(e):e.contextElement?(0,o.A)(e.contextElement):[],popper:(0,o.A)(t)};var i=(0,s.A)((0,u.A)([].concat(p,h.options.modifiers)));return h.orderedModifiers=i.filter(function(e){return e.enabled}),h.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:h,name:t,instance:b,options:r});v.push(o||function(){})}}),b.update()},forceUpdate:function(){if(!g){var e=h.elements,t=e.reference,n=e.popper;if(f(t,n)){h.rects={reference:(0,r.A)(t,(0,a.A)(n),"fixed"===h.options.strategy),popper:(0,i.A)(n)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(e){return h.modifiersData[e.name]=Object.assign({},e.data)});for(var o=0;o<h.orderedModifiers.length;o++)if(!0!==h.reset){var s=h.orderedModifiers[o],l=s.fn,u=s.options,c=void 0===u?{}:u,d=s.name;"function"==typeof l&&(h=l({state:h,options:c,name:d,instance:b})||h)}else h.reset=!1,o=-1}}},update:(0,l.A)(function(){return new Promise(function(e){b.forceUpdate(),e(h)})}),destroy:function(){y(),g=!0}};if(!f(e,t))return b;function y(){v.forEach(function(e){return e()}),v=[]}return b.setOptions(n).then(function(e){!g&&n.onFirstUpdate&&n.onFirstUpdate(e)}),b}}var h=n(8979),m={passive:!0};const v={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=(0,h.A)(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,m)}),s&&l.addEventListener("resize",n.update,m),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,m)}),s&&l.removeEventListener("resize",n.update,m)}},data:{}};var g=n(1815);const b={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,g.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var y=n(4278),w=n(9760),E=n(271),k=n(2632),x=n(8101),T=n(6906),S={top:"auto",right:"auto",bottom:"auto",left:"auto"};function O(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,m=void 0===p?0:p,v=s.y,g=void 0===v?0:v,b="function"==typeof d?d({x:m,y:g}):{x:m,y:g};m=b.x,g=b.y;var k=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),O=y.kb,C=y.Mn,A=window;if(c){var _=(0,a.A)(n),N="clientHeight",D="clientWidth";_===(0,h.A)(n)&&(_=(0,w.A)(n),"static"!==(0,E.A)(_).position&&"absolute"===l&&(N="scrollHeight",D="scrollWidth")),(i===y.Mn||(i===y.kb||i===y.pG)&&o===y._N)&&(C=y.sQ,g-=(f&&A.visualViewport?A.visualViewport.height:_[N])-r.height,g*=u?1:-1),i!==y.kb&&(i!==y.Mn&&i!==y.sQ||o!==y._N)||(O=y.pG,m-=(f&&A.visualViewport?A.visualViewport.width:_[D])-r.width,m*=u?1:-1)}var I,P=Object.assign({position:l},c&&S),M=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:(0,T.LI)(t*r)/r||0,y:(0,T.LI)(n*r)/r||0}}({x:m,y:g}):{x:m,y:g};return m=M.x,g=M.y,u?Object.assign({},P,((I={})[C]=x?"0":"",I[O]=k?"0":"",I.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",I)):Object.assign({},P,((t={})[C]=x?g+"px":"",t[O]=k?m+"px":"",t.transform="",t))}const C={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:(0,k.A)(t.placement),variation:(0,x.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,O(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,O(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var A=n(7604);const _={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]||{},i=t.elements[e];(0,c.sb)(i)&&(0,A.A)(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.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],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});(0,c.sb)(r)&&(0,A.A)(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},N={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=y.DD.reduce(function(e,n){return e[n]=function(e,t,n){var r=(0,k.A)(e),i=[y.kb,y.Mn].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[y.kb,y.pG].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var D={left:"right",right:"left",bottom:"top",top:"bottom"};function I(e){return e.replace(/left|right|bottom|top/g,function(e){return D[e]})}var P={start:"end",end:"start"};function M(e){return e.replace(/start|end/g,function(e){return P[e]})}var F=n(9913);const L={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 i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=(0,k.A)(v),b=l||(g!==v&&h?function(e){if((0,k.A)(e)===y.qZ)return[];var t=I(e);return[M(e),t,M(t)]}(v):[I(v)]),w=[v].concat(b).reduce(function(e,n){return e.concat((0,k.A)(n)===y.qZ?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?y.DD:l,c=(0,x.A)(r),d=c?s?y.Ol:y.Ol.filter(function(e){return(0,x.A)(e)===c}):y.OM,f=d.filter(function(e){return u.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=(0,F.A)(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[(0,k.A)(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)},[]),E=t.rects.reference,T=t.rects.popper,S=new Map,O=!0,C=w[0],A=0;A<w.length;A++){var _=w[A],N=(0,k.A)(_),D=(0,x.A)(_)===y.ni,P=[y.Mn,y.sQ].indexOf(N)>=0,L=P?"width":"height",j=(0,F.A)(t,{placement:_,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),R=P?D?y.pG:y.kb:D?y.sQ:y.Mn;E[L]>T[L]&&(R=I(R));var $=I(R),B=[];if(o&&B.push(j[N]<=0),s&&B.push(j[R]<=0,j[$]<=0),B.every(function(e){return e})){C=_,O=!1;break}S.set(_,B)}if(O)for(var V=function(e){var t=w.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},z=h?3:1;z>0&&"break"!==V(z);z--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};var j=n(9703);function R(e,t,n){return(0,T.T9)(e,(0,T.jk)(t,n))}var $=n(7364);const B={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=void 0===o||o,l=n.altAxis,u=void 0!==l&&l,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,v=n.tetherOffset,g=void 0===v?0:v,b=(0,F.A)(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:f}),w=(0,k.A)(t.placement),E=(0,x.A)(t.placement),S=!E,O=(0,j.A)(w),C="x"===O?"y":"x",A=t.modifiersData.popperOffsets,_=t.rects.reference,N=t.rects.popper,D="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,I="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(A){if(s){var L,B="y"===O?y.Mn:y.kb,V="y"===O?y.sQ:y.pG,z="y"===O?"height":"width",U=A[O],K=U+b[B],W=U-b[V],H=m?-N[z]/2:0,q=E===y.ni?_[z]:N[z],Q=E===y.ni?-N[z]:-_[z],Y=t.elements.arrow,G=m&&Y?(0,i.A)(Y):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,$.A)(),Z=X[B],J=X[V],ee=R(0,_[z],G[z]),te=S?_[z]/2-H-ee-Z-I.mainAxis:q-ee-Z-I.mainAxis,ne=S?-_[z]/2+H+ee+J+I.mainAxis:Q+ee+J+I.mainAxis,re=t.elements.arrow&&(0,a.A)(t.elements.arrow),ie=re?"y"===O?re.clientTop||0:re.clientLeft||0:0,oe=null!=(L=null==P?void 0:P[O])?L:0,ae=U+te-oe-ie,se=U+ne-oe,le=R(m?(0,T.jk)(K,ae):K,U,m?(0,T.T9)(W,se):W);A[O]=le,M[O]=le-U}if(u){var ue,ce="x"===O?y.Mn:y.kb,de="x"===O?y.sQ:y.pG,fe=A[C],pe="y"===C?"height":"width",he=fe+b[ce],me=fe-b[de],ve=-1!==[y.Mn,y.kb].indexOf(w),ge=null!=(ue=null==P?void 0:P[C])?ue:0,be=ve?he:fe-_[pe]-N[pe]-ge+I.altAxis,ye=ve?fe+_[pe]+N[pe]-ge-I.altAxis:me,we=m&&ve?function(e,t,n){var r=R(e,t,n);return r>n?n:r}(be,fe,ye):R(m?be:he,fe,m?ye:me);A[C]=we,M[C]=we-fe}t.modifiersData[r]=M}},requiresIfExists:["offset"]};var V=n(5446),z=n(4318),U=n(1007);function K(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 W(e){return[y.Mn,y.pG,y.sQ,y.kb].some(function(t){return e[t]>=0})}var H=p({defaultModifiers:[v,b,C,_,N,L,B,{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,u=(0,k.A)(n.placement),c=(0,j.A)(u),d=[y.kb,y.pG].indexOf(u)>=0?"height":"width";if(s&&l){var f=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,z.A)("number"!=typeof e?e:(0,U.A)(e,y.OM))}(o.padding,n),p=(0,i.A)(s),h="y"===c?y.Mn:y.kb,m="y"===c?y.sQ:y.pG,v=n.rects.reference[d]+n.rects.reference[c]-l[c]-n.rects.popper[d],g=l[c]-n.rects.reference[c],b=(0,a.A)(s),w=b?"y"===c?b.clientHeight||0:b.clientWidth||0:0,E=v/2-g/2,x=f[h],T=w-p[d]-f[m],S=w/2-p[d]/2+E,O=R(x,S,T),C=c;n.modifiersData[r]=((t={})[C]=O,t.centerOffset=O-S,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)))&&(0,V.A)(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=(0,F.A)(t,{elementContext:"reference"}),s=(0,F.A)(t,{altBoundary:!0}),l=K(a,r),u=K(s,i,o),c=W(l),d=W(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),q="tippy-content",Q="tippy-arrow",Y="tippy-svg-arrow",G={passive:!0,capture:!0},X=function(){return document.body};function Z(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function J(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ee(e,t){return"function"==typeof e?e.apply(void 0,t):e}function te(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)};var n}function ne(e){return[].concat(e)}function re(e,t){-1===e.indexOf(t)&&e.push(t)}function ie(e){return[].slice.call(e)}function oe(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function ae(){return document.createElement("div")}function se(e){return["Element","Fragment"].some(function(t){return J(e,t)})}function le(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function ue(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function ce(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function de(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var fe={isTouch:!1},pe=0;function he(){fe.isTouch||(fe.isTouch=!0,window.performance&&document.addEventListener("mousemove",me))}function me(){var e=performance.now();e-pe<20&&(fe.isTouch=!1,document.removeEventListener("mousemove",me)),pe=e}function ve(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var ge=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),be=Object.assign({appendTo:X,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),ye=Object.keys(be);function we(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=be[i])?r:o),t},{});return Object.assign({},e,t)}function Ee(e,t){var n=Object.assign({},t,{content:ee(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(we(Object.assign({},be,{plugins:t}))):ye).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})}(e,t.plugins));return n.aria=Object.assign({},be.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function ke(e,t){e.innerHTML=t}function xe(e){var t=ae();return!0===e?t.className=Q:(t.className=Y,se(e)?t.appendChild(e):ke(t,e)),t}function Te(e,t){se(t.content)?(ke(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ke(e,t.content):e.textContent=t.content)}function Se(e){var t=e.firstElementChild,n=ie(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(q)}),arrow:n.find(function(e){return e.classList.contains(Q)||e.classList.contains(Y)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Oe(e){var t=ae(),n=ae();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ae();function i(n,r){var i=Se(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Te(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(xe(r.arrow))):o.appendChild(xe(r.arrow)):s&&o.removeChild(s)}return r.className=q,r.setAttribute("data-state","hidden"),Te(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}Oe.$$tippy=!0;var Ce=1,Ae=[],_e=[];function Ne(e,t){var n,r,i,o,a,s,l,u,c=Ee(e,Object.assign({},be,we(oe(t)))),d=!1,f=!1,p=!1,h=!1,m=[],v=te(Q,c.interactiveDebounce),g=Ce++,b=(u=c.plugins).filter(function(e,t){return u.indexOf(e)===t}),y={id:g,reference:e,popper:ae(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(!y.state.isDestroyed){P("onBeforeUpdate",[y,t]),W();var n=y.props,r=Ee(e,Object.assign({},n,oe(t),{ignoreAttributes:!0}));y.props=r,K(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),v=te(Q,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?ne(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded"),F(),I(),k&&k(n,r),y.popperInstance&&(he(),ve().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),P("onAfterUpdate",[y,t])}},setContent:function(e){y.setProps({content:e})},show:function(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=fe.isTouch&&!y.props.touch,i=Z(y.props.duration,0,be.duration);if(!(e||t||n||r||A().hasAttribute("disabled")||(P("onShow",[y],!1),!1===y.props.onShow(y)))){if(y.state.isVisible=!0,C()&&(E.style.visibility="visible"),I(),B(),y.state.isMounted||(E.style.transition="none"),C()){var o=N();le([o.box,o.content],0)}var a,l,u;s=function(){var e;if(y.state.isVisible&&!h){if(h=!0,E.offsetHeight,E.style.transition=y.props.moveTransition,C()&&y.props.animation){var t=N(),n=t.box,r=t.content;le([n,r],i),ue([n,r],"visible")}M(),F(),re(_e,y),null==(e=y.popperInstance)||e.forceUpdate(),P("onMount",[y]),y.props.animation&&C()&&function(e){z(e,function(){y.state.isShown=!0,P("onShown",[y])})}(i)}},l=y.props.appendTo,u=A(),(a=y.props.interactive&&l===X||"parent"===l?u.parentNode:ee(l,[u])).contains(E)||a.appendChild(E),y.state.isMounted=!0,he()}},hide:function(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=Z(y.props.duration,1,be.duration);if(!(e||t||n)&&(P("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,h=!1,d=!1,C()&&(E.style.visibility="hidden"),L(),V(),I(!0),C()){var i=N(),o=i.box,a=i.content;y.props.animation&&(le([o,a],r),ue([o,a],"hidden"))}M(),F(),y.props.animation?C()&&function(e,t){z(e,function(){!y.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&t()})}(r,y.unmount):y.unmount()}},hideWithInteractivity:function(e){_().addEventListener("mousemove",v),re(Ae,v),v(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide(),y.state.isMounted&&(me(),ve().forEach(function(e){e._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),_e=_e.filter(function(e){return e!==y}),y.state.isMounted=!1,P("onHidden",[y]))},destroy:function(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),W(),delete e._tippy,y.state.isDestroyed=!0,P("onDestroy",[y]))}};if(!c.render)return y;var w=c.render(y),E=w.popper,k=w.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+y.id,y.popper=E,e._tippy=y,E._tippy=y;var x=b.map(function(e){return e.fn(y)}),T=e.hasAttribute("aria-expanded");return K(),F(),I(),P("onCreate",[y]),c.showOnCreate&&ye(),E.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&_().addEventListener("mousemove",v)}),y;function S(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function O(){return"hold"===S()[0]}function C(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function A(){return l||e}function _(){var e,t,n=A().parentNode;return n?null!=(t=ne(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function N(){return Se(E)}function D(e){return y.state.isMounted&&!y.state.isVisible||fe.isTouch||o&&"focus"===o.type?0:Z(y.props.delay,e?0:1,be.delay)}function I(e){void 0===e&&(e=!1),E.style.pointerEvents=y.props.interactive&&!e?"":"none",E.style.zIndex=""+y.props.zIndex}function P(e,t,n){var r;void 0===n&&(n=!0),x.forEach(function(n){n[e]&&n[e].apply(n,t)}),n&&(r=y.props)[e].apply(r,t)}function M(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,r=E.id;ne(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function F(){!T&&y.props.aria.expanded&&ne(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")})}function L(){_().removeEventListener("mousemove",v),Ae=Ae.filter(function(e){return e!==v})}function j(t){if(!fe.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!de(E,n)){if(ne(y.props.triggerTarget||e).some(function(e){return de(e,n)})){if(fe.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),f=!0,setTimeout(function(){f=!1}),y.state.isMounted||V())}}}function R(){p=!0}function $(){p=!1}function B(){var e=_();e.addEventListener("mousedown",j,!0),e.addEventListener("touchend",j,G),e.addEventListener("touchstart",$,G),e.addEventListener("touchmove",R,G)}function V(){var e=_();e.removeEventListener("mousedown",j,!0),e.removeEventListener("touchend",j,G),e.removeEventListener("touchstart",$,G),e.removeEventListener("touchmove",R,G)}function z(e,t){var n=N().box;function r(e){e.target===n&&(ce(n,"remove",r),t())}if(0===e)return t();ce(n,"remove",a),ce(n,"add",r),a=r}function U(t,n,r){void 0===r&&(r=!1),ne(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})})}function K(){var e;O()&&(U("touchstart",q,{passive:!0}),U("touchend",Y,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(U(e,q),e){case"mouseenter":U("mouseleave",Y);break;case"focus":U(ge?"focusout":"blur",se);break;case"focusin":U("focusout",se)}})}function W(){m.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),m=[]}function q(e){var t,n=!1;if(y.state.isEnabled&&!pe(e)&&!f){var r="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,F(),!y.state.isVisible&&J(e,"MouseEvent")&&Ae.forEach(function(t){return t(e)}),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||d)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:ye(e),"click"===e.type&&(d=!n),n&&!r&&ke(e)}}function Q(e){var t=e.target,n=A().contains(t)||E.contains(t);if("mousemove"!==e.type||!n){var r=ve().concat(E).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null}).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=i.placement.split("-")[0],s=i.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,d="left"===a?s.right.x:0,f=t.top-r+l>o,p=r-t.bottom-u>o,h=t.left-n+c>o,m=n-t.right-d>o;return f||p||h||m})})(r,e)&&(L(),ke(e))}}function Y(e){pe(e)||y.props.trigger.indexOf("click")>=0&&d||(y.props.interactive?y.hideWithInteractivity(e):ke(e))}function se(e){y.props.trigger.indexOf("focusin")<0&&e.target!==A()||y.props.interactive&&e.relatedTarget&&E.contains(e.relatedTarget)||ke(e)}function pe(e){return!!fe.isTouch&&O()!==e.type.indexOf("touch")>=0}function he(){me();var t=y.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,l=C()?Se(E).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||A()}:e,c=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(C()){var n=N().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];C()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),y.popperInstance=H(u,E,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:c}))}function me(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function ve(){return ie(E.querySelectorAll("[data-tippy-root]"))}function ye(e){y.clearDelayTimeouts(),e&&P("onTrigger",[y,e]),B();var t=D(!0),r=S(),i=r[0],o=r[1];fe.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout(function(){y.show()},t):y.show()}function ke(e){if(y.clearDelayTimeouts(),P("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=D(!1);t?r=setTimeout(function(){y.state.isVisible&&y.hide()},t):i=requestAnimationFrame(function(){y.hide()})}}else V()}}function De(e,t){void 0===t&&(t={});var n=be.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",he,G),window.addEventListener("blur",ve);var r,i=Object.assign({},t,{plugins:n}),o=(r=e,se(r)?[r]:function(e){return J(e,"NodeList")}(r)?ie(r):Array.isArray(r)?r:ie(document.querySelectorAll(r))).reduce(function(e,t){var n=t&&Ne(t,i);return n&&e.push(n),e},[]);return se(e)?o[0]:o}De.defaultProps=be,De.setDefaultProps=function(e){Object.keys(e).forEach(function(t){be[t]=e[t]})},De.currentInput=fe,Object.assign({},_,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),De.setDefaultProps({render:Oe});const Ie=De},7463:(e,t)=>{"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(u,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var v=f.now();t.unstable_now=function(){return f.now()-v}}var g=!1,b=null,y=-1,w=5,E=0;o=function(){return t.unstable_now()>=E},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,x=k.port2;k.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();E=e+w;try{b(!0,e)?x.postMessage(null):(g=!1,b=null)}catch(e){throw x.postMessage(null),e}}else g=!1},n=function(e){b=e,g||(g=!0,x.postMessage(null))},r=function(e,n){y=p(function(){e(t.unstable_now())},n)},i=function(){h(y),y=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],_=[],N=1,D=null,I=3,P=!1,M=!1,F=!1;function L(e){for(var t=S(_);null!==t;){if(null===t.callback)O(_);else{if(!(t.startTime<=e))break;O(_),t.sortIndex=t.expirationTime,T(A,t)}t=S(_)}}function j(e){if(F=!1,L(e),!M)if(null!==S(A))M=!0,n(R);else{var t=S(_);null!==t&&r(j,t.startTime-e)}}function R(e,n){M=!1,F&&(F=!1,i()),P=!0;var a=I;try{for(L(n),D=S(A);null!==D&&(!(D.expirationTime>n)||e&&!o());){var s=D.callback;if(null!==s){D.callback=null,I=D.priorityLevel;var l=s(D.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?D.callback=l:D===S(A)&&O(A),L(n)}else O(A);D=S(A)}if(null!==D)var u=!0;else{var c=S(_);null!==c&&r(j,c.startTime-n),u=!1}return u}finally{D=null,I=a,P=!1}}function $(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||P||(M=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return S(A)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:$(e)}else a=$(e),l=s;return e={id:N++,callback:o,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,T(_,e),null===S(A)&&e===S(_)&&(F?i():F=!0,r(j,l-s))):(e.sortIndex=a,T(A,e),M||P||(M=!0,n(R))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=S(A);return n!==D&&null!==D&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<D.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},7604:(e,t,n)=>{"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{A:()=>r})},7684:(e,t,n)=>{"use strict";function r(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}n.d(t,{A:()=>r})},8101:(e,t,n)=>{"use strict";function r(e){return e.split("-")[1]}n.d(t,{A:()=>r})},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8298:(e,t,n)=>{"use strict";n.d(t,{d:()=>i,f:()=>o});var r=/^(262|61)$/.test(n.j)?function(e){e()}:null,i=function(e){return r=e},o=function(){return r}},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},8610:e=>{"use strict";e.exports=function(){}},8661:(e,t,n)=>{"use strict";if(n.d(t,{K:()=>o}),/^(262|61)$/.test(n.j))var r=n(8298);var i={notify:function(){},get:function(){return[]}};function o(e,t){var n,o=i;function a(){l.onStateChange&&l.onStateChange()}function s(){var i,s,l;n||(n=t?t.addNestedSub(a):e.subscribe(a),i=(0,r.f)(),s=null,l=null,o={clear:function(){s=null,l=null},notify:function(){i(function(){for(var e=s;e;)e.callback(),e=e.next})},get:function(){for(var e=[],t=s;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,n=l={callback:e,next:null,prev:l};return n.prev?n.prev.next=n:s=n,function(){t&&null!==s&&(t=!1,n.next?n.next.prev=n.prev:l=n.prev,n.prev?n.prev.next=n.next:s=n.next)}}})}var l={addNestedSub:function(e){return s(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(n)},trySubscribe:s,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=i)},getListeners:function(){return o}};return l}},8667:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});const r=(e,t=0)=>{let n;const r=(...r)=>{if(window.clearTimeout(n),"number"==typeof t&&!Number.isNaN(t))return new Promise((i,o)=>{n=window.setTimeout(()=>{try{i(e(...r))}catch(e){o(e)}},t)});try{return Promise.resolve(e(...r))}catch(e){return Promise.reject(e)}};return r.cancel=()=>{"number"==typeof n&&window.clearTimeout(n)},r.restore=()=>e,r}},8848:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>l}),/^(114|262|591|61)$/.test(n.j))var r=n(9760);if(/^(114|262|591|61)$/.test(n.j))var i=n(271);if(/^(114|262|591|61)$/.test(n.j))var o=n(793);if(/^(114|262|591|61)$/.test(n.j))var a=n(222);if(/^(114|262|591|61)$/.test(n.j))var s=n(6906);function l(e){var t,n=(0,r.A)(e),l=(0,a.A)(e),u=null==(t=e.ownerDocument)?void 0:t.body,c=(0,s.T9)(n.scrollWidth,n.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),d=(0,s.T9)(n.scrollHeight,n.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),f=-l.scrollLeft+(0,o.A)(e),p=-l.scrollTop;return"rtl"===(0,i.A)(u||n).direction&&(f+=(0,s.T9)(n.clientWidth,u?u.clientWidth:0)-c),{width:c,height:d,x:f,y:p}}},8979:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{A:()=>r})},9054:(e,t,n)=>{"use strict";n.r(t),n.d(t,{focusable:()=>E,getTabIndex:()=>f,isFocusable:()=>T,isTabbable:()=>k,tabbable:()=>w});var r=/^(125|61)$/.test(n.j)?["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"]:null,i=/^(125|61)$/.test(n.j)?r.join(","):null,o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},u=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r.filter(n)},c=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var u=s.shift();if(!l(u,!1))if("SLOT"===u.tagName){var c=u.assignedElements(),d=e(c.length?c:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:u,candidates:d})}else{a.call(u,i)&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var f=u.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(u),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(f&&p){var h=e(!0===f?u.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:u,candidates:h})}else s.unshift.apply(s,u.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},m=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},v=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return m(e)}else{if("function"==typeof r){for(var o=e;e;){var l=e.parentElement,u=s(e);if(l&&!l.shadowRoot&&!0===r(l))return m(e);e=e.assignedSlot?e.assignedSlot:l||u===e.ownerDocument?l:u.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var u,c,d;l=!(null===(c=a=null===(u=o=s(a))||void 0===u?void 0:u.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},g=function(e,t){return!(function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||f(t)<0||!v(e,t))},b=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},y=function e(t){var n=[],r=[];return t.forEach(function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})}),r.sort(p).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},w=function(e,t){var n;return n=(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:g.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:b}):u(e,t.includeContainer,g.bind(null,t)),y(n)},E=function(e,t){return(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:v.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):u(e,t.includeContainer,v.bind(null,t))},k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&g(t,e)},x=/^(125|61)$/.test(n.j)?r.concat("iframe").join(","):null,T=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,x)&&v(t,e)}},9104:(e,t,n)=>{"use strict";n.d(t,{v:()=>y});var r=n(2891);const i=":not([inert]):not([inert] *)",o=':not([tabindex^="-"])',a=":not(:disabled)";var s=[`a[href]${i}${o}`,`area[href]${i}${o}`,`input:not([type="hidden"]):not([type="radio"])${i}${o}${a}`,`input[type="radio"]${i}${o}${a}`,`select${i}${o}${a}`,`textarea${i}${o}${a}`,`button${i}${o}${a}`,`details${i} > summary:first-of-type${o}`,`iframe${i}${o}`,`audio[controls]${i}${o}`,`video[controls]${i}${o}`,`[contenteditable]${i}${o}`,`[tabindex]${i}${o}`];function l(e){(e.querySelector("[autofocus]")||e).focus()}function u(e,t){if(t&&f(e))return e;if(function(e){return!(e.shadowRoot&&"-1"===e.getAttribute("tabindex")||e.matches(":disabled,[hidden],[inert]"))}(e))if(e.shadowRoot){let n=c(e.shadowRoot,t);for(;n;){const e=u(n,t);if(e)return e;n=d(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=u(e,t);if(n)return n}}else{let n=c(e,t);for(;n;){const e=u(n,t);if(e)return e;n=d(n,t)}}return!t&&f(e)?e:null}function c(e,t){return t?e.firstElementChild:e.lastElementChild}function d(e,t){return t?e.nextElementSibling:e.previousElementSibling}const f=e=>!e.shadowRoot?.delegatesFocus&&e.matches(s.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function p(e=document){const t=e.activeElement;return t?t.shadowRoot?p(t.shadowRoot)||document.activeElement:t:null}function h(e,t){return function t(n){if(!n||n===document||n===window)return null;const r=m(n);return r&&(n=r),n.closest(e)||t(n.getRootNode().host)}(t)}function m(e){return e.assignedSlot||(e.parentNode?m(e.parentNode):null)}const v="data-a11y-dialog";class g{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(v)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=p(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus():l(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return this.shown?(this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.previouslyFocused?.focus?.()),this):this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){const n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){const t=e.composedPath()[0],n=h(`[${v}-show="${this.id}"]`,t),r=h(`[${v}-hide="${this.id}"]`,t),i=h(`[${v}-hide]`,t)&&h('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(r||i)&&this.hide(e)}bindKeypress(e){if(h('[aria-modal="true"]',p())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){const[n,r]=function(e){const t=u(e,!0);return[t,t?u(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const i=p();t.shiftKey&&i===n?(r.focus(),t.preventDefault()):t.shiftKey||i!==r||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){const e=p();h(`[aria-modal="true"], [${v}-ignore-focus-trap]`,e)||l(this.$el)}}function b(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new g(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",b):b());class y extends r.Controller{static values={theme:{default:"",type:String}};static targets=["body","notify","confirm"];get eventDetail(){return{body:this.bodyTarget,dialog:this.dialog}}connect(){this.dialog=new g(this.element);const e="floating"===this.themeValue;return this.dialog.on("show",()=>{e||(document.documentElement.style.overflowY="hidden"),this.dispatch("shown",{detail:this.eventDetail,cancelable:!1}),this.notifyTargets.forEach(e=>{this.dispatch("shown",{target:e,bubbles:!1,cancelable:!1})})}).on("hide",()=>{e||(document.documentElement.style.overflowY=""),this.dispatch("hidden",{detail:this.eventDetail,cancelable:!1}),this.notifyTargets.forEach(e=>{this.dispatch("hidden",{target:e,bubbles:!1,cancelable:!1})})}),this.dispatch("ready",{detail:this.eventDetail}),this.notifyTargets&&Array.isArray(this.notifyTargets)&&this.notifyTargets.forEach(e=>{this.dispatch("ready",{target:e,bubbles:!1,cancelable:!1})}),this.dialog}hide(){this.dialog.hide()}show(){this.dialog.show()}confirm(){this.hide(),this.dispatch("confirmed",{detail:this.eventDetail,cancelable:!1})}}},9124:(e,t,n)=>{"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function i(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!r(e[n[o]],t[n[o]]))return!1;return!0}n.d(t,{A:()=>i})},9465:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,y:()=>i});var r=n(2614);class i extends EventTarget{chooserModalClass=r.ZZ;titleStateKey="title";editUrlStateKey="edit_url";constructor(e,t={}){super(),this.opts=t,this.initHTMLElements(e),this.state=this.getStateFromHTML();for(const e of this.chooserElement.querySelectorAll("[data-chooser-action-choose]"))e.addEventListener("click",()=>{this.openChooserModal()});for(const e of this.chooserElement.querySelectorAll("[data-chooser-action-clear]"))e.addEventListener("click",()=>{this.clear()});this.chooserElement.widget=this}initHTMLElements(e){this.chooserElement=document.getElementById(`${e}-chooser`),this.titleElement=this.chooserElement.querySelector("[data-chooser-title]"),this.input=document.getElementById(e),this.editLink=this.chooserElement.querySelector("[data-chooser-edit-link]")}getStateFromHTML(){if(this.input.value){const e={id:this.input.value};return this.titleElement&&this.titleStateKey&&(e[this.titleStateKey]=this.titleElement.textContent),this.editLink&&this.editUrlStateKey&&(e[this.editUrlStateKey]=this.editLink.getAttribute("href")),e}return null}getState(){return this.state}getValue(){return this.state&&this.state.id}setState(e){this.state=e,e?this.renderState(e):this.renderEmptyState()}setStateFromModalData(e){this.setState(e),this.dispatchEvent(new CustomEvent("chosen",{detail:e}))}clear(){this.setState(null)}renderEmptyState(){this.input.setAttribute("value",""),this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.chooserElement.classList.add("blank")}renderState(e){if(this.input.setAttribute("value",e.id),this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.titleElement&&this.titleStateKey&&(this.titleElement.textContent=e[this.titleStateKey]),this.chooserElement.classList.remove("blank"),this.editLink){const t=e[this.editUrlStateKey];t?(this.editLink.setAttribute("href",t),this.editLink.hidden=!1):this.editLink.hidden=!0}}getTextLabel(e){if(!this.state)return null;const t=this.state[this.titleStateKey];return e&&e.maxLength&&t.length>e.maxLength?t.substring(0,e.maxLength-1)+"…":t}focus(){this.chooserElement.querySelector("button").focus()}getModalOptions(){const e={};if(this.opts.linkedFields)for(const[t,n]of Object.entries(this.opts.linkedFields)){let r;if("string"==typeof n)r=document.querySelector(n).value;else if(n.id)r=document.getElementById(n.id).value;else if(n.selector)r=document.querySelector(n.selector).value;else if(n.match&&this.chooserElement.id){const e=this.chooserElement.id.match(new RegExp(n.match));if(e){let t=e[0];n.append&&(t+=n.append),r=document.getElementById(t).value}}r&&(e[t]=r)}return Object.keys(e).length?{linkedFieldFilters:e}:null}openChooserModal(){this.modal||(this.modal=new this.chooserModalClass(this.opts.modalUrl||this.chooserElement.dataset.chooserUrl)),this.modal.open(this.getModalOptions(),e=>{this.setStateFromModalData(e)})}}class o{widgetClass=i;chooserModalClass=r.ZZ;constructor(e,t,n={}){this.html=e,this.idPattern=t,this.opts=n}render(e,t,n,r){const i=this.html.replace(/__NAME__/g,t).replace(/__ID__/g,n);e.outerHTML=i;const o=new this.widgetClass(n,this.opts);return o.setState(r),o}getModalOptions(){return null}openModal(e,t){if(!this.modal){if(!this.opts.modalUrl)throw new Error("ChooserFactory must be passed a modalUrl option if openModal is used");this.modal=new this.chooserModalClass(this.opts.modalUrl)}const n={...this.getModalOptions(),...t};this.modal.open(n,e)}getById(e){return document.getElementById(`${e}-chooser`).widget}getByName(e,t){const n=t.querySelector(`input[name="${e}"]`);return this.getById(n.id)}}},9610:()=>{!function(e){if(e){var t={},n=e.prototype.stopCallback;e.prototype.stopCallback=function(e,r,i,o){return!!this.paused||!t[i]&&!t[o]&&n.call(this,e,r,i)},e.prototype.bindGlobal=function(e,n,r){if(this.bind(e,n,r),e instanceof Array)for(var i=0;i<e.length;i++)t[e[i]]=!0;else t[e]=!0},e.init()}}("undefined"!=typeof Mousetrap?Mousetrap:void 0)},9675:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});const r=(e=0,t=0)=>[...Array(t-e).keys()].map(t=>t+e)},9703:(e,t,n)=>{"use strict";function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{A:()=>r})},9760:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>i}),/^(114|262|591|61)$/.test(n.j))var r=n(5581);function i(e){return(((0,r.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},9904:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(2427),i=n.n(r),o=n(1458),a=n(8661),s=n(4595);const l=/^(262|61)$/.test(n.j)?function(e){var t=e.store,n=e.context,l=e.children,u=(0,r.useMemo)(function(){var e=(0,a.K)(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}},[t]),c=(0,r.useMemo)(function(){return t.getState()},[t]);(0,s.E)(function(){var e=u.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[u,c]);var d=n||o.t;return i().createElement(d.Provider,{value:u},l)}:null},9913:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>f}),/^(114|262|591|61)$/.test(n.j))var r=n(2883);if(/^(114|262|591|61)$/.test(n.j))var i=n(9760);if(/^(114|262|591|61)$/.test(n.j))var o=n(6354);if(/^(114|262|591|61)$/.test(n.j))var a=n(1815);if(/^(114|262|591|61)$/.test(n.j))var s=n(4426);if(/^(114|262|591|61)$/.test(n.j))var l=n(4278);if(/^(114|262|591|61)$/.test(n.j))var u=n(5581);if(/^(114|262|591|61)$/.test(n.j))var c=n(4318);if(/^(114|262|591|61)$/.test(n.j))var d=n(1007);function f(e,t){void 0===t&&(t={});var n=t,f=n.placement,p=void 0===f?e.placement:f,h=n.boundary,m=void 0===h?l.WY:h,v=n.rootBoundary,g=void 0===v?l.R9:v,b=n.elementContext,y=void 0===b?l.xf:b,w=n.altBoundary,E=void 0!==w&&w,k=n.padding,x=void 0===k?0:k,T=(0,c.A)("number"!=typeof x?x:(0,d.A)(x,l.OM)),S=y===l.xf?l.ir:l.xf,O=e.rects.popper,C=e.elements[E?S:y],A=(0,r.A)((0,u.vq)(C)?C:C.contextElement||(0,i.A)(e.elements.popper),m,g),_=(0,o.A)(e.elements.reference),N=(0,a.A)({reference:_,element:O,strategy:"absolute",placement:p}),D=(0,s.A)(Object.assign({},O,N)),I=y===l.xf?D:_,P={top:A.top-I.top+T.top,bottom:I.bottom-A.bottom+T.bottom,left:A.left-I.left+T.left,right:I.right-A.right+T.right},M=e.modifiersData.offset;if(y===l.xf&&M){var F=M[p];Object.keys(P).forEach(function(e){var t=[l.pG,l.sQ].indexOf(e)>=0?1:-1,n=[l.Mn,l.sQ].indexOf(e)>=0?"y":"x";P[e]+=F[n]*t})}return P}},9970:(e,t,n)=>{"use strict";if(n.d(t,{A:()=>s}),/^(114|262|591|61)$/.test(n.j))var r=n(2083);if(/^(114|262|591|61)$/.test(n.j))var i=n(134);if(/^(114|262|591|61)$/.test(n.j))var o=n(7604);if(/^(114|262|591|61)$/.test(n.j))var a=n(5581);function s(e){return["html","body","#document"].indexOf((0,o.A)(e))>=0?e.ownerDocument.body:(0,a.sb)(e)&&(0,i.A)(e)?e:s((0,r.A)(e))}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)}}]);